netcup-node
Version:
A node wrapper for the Netcup CCP API (https://www.netcup-wiki.de/wiki/CCP_API)
9 lines (8 loc) • 554 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.INVALID_FORMAT_ERROR = exports.NOT_INITIALIZED_ERROR = exports.defaultFormat = exports.BASE_URL = void 0;
const Formats_1 = require("./@types/Formats");
exports.BASE_URL = 'https://ccp.netcup.net/run/webservice/servers/endpoint.php';
exports.defaultFormat = Formats_1.Formats.JSON;
exports.NOT_INITIALIZED_ERROR = 'Not initialized. Call init() first.';
exports.INVALID_FORMAT_ERROR = `Invalid format. Valid formats are: ${Object.values(Formats_1.Formats).join(', ')}`;