yellowgrid-api-ts 3.0.91 → 3.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -2212,6 +2212,76 @@ var Class3CXInstallationWizardApiAxiosParamCreator = function (configuration) {
2212
2212
  });
2213
2213
  });
2214
2214
  },
2215
+ /**
2216
+ * Get UK National Area Codes
2217
+ * @summary Get UK National Area Codes
2218
+ * @param {*} [options] Override http request option.
2219
+ * @throws {RequiredError}
2220
+ */
2221
+ getGetAreaCodesTcxWizard: function () {
2222
+ var args_1 = [];
2223
+ for (var _i = 0; _i < arguments.length; _i++) {
2224
+ args_1[_i] = arguments[_i];
2225
+ }
2226
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
2227
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2228
+ if (options === void 0) { options = {}; }
2229
+ return __generator(this, function (_a) {
2230
+ localVarPath = "/tcx/wizards/sip/trunks/area/codes";
2231
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2232
+ if (configuration) {
2233
+ baseOptions = configuration.baseOptions;
2234
+ }
2235
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2236
+ localVarHeaderParameter = {};
2237
+ localVarQueryParameter = {};
2238
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2239
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2240
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2241
+ return [2 /*return*/, {
2242
+ url: (0, common_1.toPathString)(localVarUrlObj),
2243
+ options: localVarRequestOptions,
2244
+ }];
2245
+ });
2246
+ });
2247
+ },
2248
+ /**
2249
+ * Get SIP Trunk DDIs
2250
+ * @summary Get SIP Trunk DDIs
2251
+ * @param {number} id SIP Trunk ID
2252
+ * @param {*} [options] Override http request option.
2253
+ * @throws {RequiredError}
2254
+ */
2255
+ getGetDdisTcxWizard: function (id_1) {
2256
+ var args_1 = [];
2257
+ for (var _i = 1; _i < arguments.length; _i++) {
2258
+ args_1[_i - 1] = arguments[_i];
2259
+ }
2260
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
2261
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2262
+ if (options === void 0) { options = {}; }
2263
+ return __generator(this, function (_a) {
2264
+ // verify required parameter 'id' is not null or undefined
2265
+ (0, common_1.assertParamExists)('getGetDdisTcxWizard', 'id', id);
2266
+ localVarPath = "/tcx/wizards/sip/trunks/{id}/ddis"
2267
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
2268
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2269
+ if (configuration) {
2270
+ baseOptions = configuration.baseOptions;
2271
+ }
2272
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2273
+ localVarHeaderParameter = {};
2274
+ localVarQueryParameter = {};
2275
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2276
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2277
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2278
+ return [2 /*return*/, {
2279
+ url: (0, common_1.toPathString)(localVarUrlObj),
2280
+ options: localVarRequestOptions,
2281
+ }];
2282
+ });
2283
+ });
2284
+ },
2215
2285
  /**
2216
2286
  * Get Hosting Price
2217
2287
  * @summary Get Hosting Price
@@ -2365,6 +2435,88 @@ var Class3CXInstallationWizardApiAxiosParamCreator = function (configuration) {
2365
2435
  });
2366
2436
  });
2367
2437
  },
2438
+ /**
2439
+ * Get SIP Trunk
2440
+ * @summary Get SIP Trunk
2441
+ * @param {number} id SIP Trunk ID
2442
+ * @param {*} [options] Override http request option.
2443
+ * @throws {RequiredError}
2444
+ */
2445
+ getGetSipTrunkTcxWizard: function (id_1) {
2446
+ var args_1 = [];
2447
+ for (var _i = 1; _i < arguments.length; _i++) {
2448
+ args_1[_i - 1] = arguments[_i];
2449
+ }
2450
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
2451
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2452
+ if (options === void 0) { options = {}; }
2453
+ return __generator(this, function (_a) {
2454
+ // verify required parameter 'id' is not null or undefined
2455
+ (0, common_1.assertParamExists)('getGetSipTrunkTcxWizard', 'id', id);
2456
+ localVarPath = "/tcx/wizards/sip/trunks/{id}"
2457
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
2458
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2459
+ if (configuration) {
2460
+ baseOptions = configuration.baseOptions;
2461
+ }
2462
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2463
+ localVarHeaderParameter = {};
2464
+ localVarQueryParameter = {};
2465
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2466
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2467
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2468
+ return [2 /*return*/, {
2469
+ url: (0, common_1.toPathString)(localVarUrlObj),
2470
+ options: localVarRequestOptions,
2471
+ }];
2472
+ });
2473
+ });
2474
+ },
2475
+ /**
2476
+ * Get SIP Trunks
2477
+ * @summary Get SIP Trunks
2478
+ * @param {number} [pageSize] Number Of Results
2479
+ * @param {number} [page] Page Number
2480
+ * @param {string} [search] Search
2481
+ * @param {*} [options] Override http request option.
2482
+ * @throws {RequiredError}
2483
+ */
2484
+ getGetSipTrunksTcxWizard: function (pageSize_1, page_1, search_1) {
2485
+ var args_1 = [];
2486
+ for (var _i = 3; _i < arguments.length; _i++) {
2487
+ args_1[_i - 3] = arguments[_i];
2488
+ }
2489
+ return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
2490
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2491
+ if (options === void 0) { options = {}; }
2492
+ return __generator(this, function (_a) {
2493
+ localVarPath = "/tcx/wizards/sip/trunks";
2494
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2495
+ if (configuration) {
2496
+ baseOptions = configuration.baseOptions;
2497
+ }
2498
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2499
+ localVarHeaderParameter = {};
2500
+ localVarQueryParameter = {};
2501
+ if (pageSize !== undefined) {
2502
+ localVarQueryParameter['pageSize'] = pageSize;
2503
+ }
2504
+ if (page !== undefined) {
2505
+ localVarQueryParameter['page'] = page;
2506
+ }
2507
+ if (search !== undefined) {
2508
+ localVarQueryParameter['search'] = search;
2509
+ }
2510
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2511
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2512
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2513
+ return [2 /*return*/, {
2514
+ url: (0, common_1.toPathString)(localVarUrlObj),
2515
+ options: localVarRequestOptions,
2516
+ }];
2517
+ });
2518
+ });
2519
+ },
2368
2520
  /**
2369
2521
  * Get 3CX Installation Wizard
2370
2522
  * @summary Get 3CX Installation Wizard
@@ -2904,6 +3056,118 @@ var Class3CXInstallationWizardApiAxiosParamCreator = function (configuration) {
2904
3056
  });
2905
3057
  });
2906
3058
  },
3059
+ /**
3060
+ * Add SIP Trunk DDIs
3061
+ * @summary Add SIP Trunk DDIs
3062
+ * @param {number} id SIP Trunk ID
3063
+ * @param {DdiRangesRequestModel} [ddiRangesRequestModel] DDI Request
3064
+ * @param {*} [options] Override http request option.
3065
+ * @throws {RequiredError}
3066
+ */
3067
+ postGetDdisTcxWizard: function (id_1, ddiRangesRequestModel_1) {
3068
+ var args_1 = [];
3069
+ for (var _i = 2; _i < arguments.length; _i++) {
3070
+ args_1[_i - 2] = arguments[_i];
3071
+ }
3072
+ return __awaiter(_this, __spreadArray([id_1, ddiRangesRequestModel_1], args_1, true), void 0, function (id, ddiRangesRequestModel, options) {
3073
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3074
+ if (options === void 0) { options = {}; }
3075
+ return __generator(this, function (_a) {
3076
+ // verify required parameter 'id' is not null or undefined
3077
+ (0, common_1.assertParamExists)('postGetDdisTcxWizard', 'id', id);
3078
+ localVarPath = "/tcx/wizards/sip/trunks/{id}/ddis"
3079
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
3080
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3081
+ if (configuration) {
3082
+ baseOptions = configuration.baseOptions;
3083
+ }
3084
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3085
+ localVarHeaderParameter = {};
3086
+ localVarQueryParameter = {};
3087
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3088
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3089
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3090
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3091
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ddiRangesRequestModel, localVarRequestOptions, configuration);
3092
+ return [2 /*return*/, {
3093
+ url: (0, common_1.toPathString)(localVarUrlObj),
3094
+ options: localVarRequestOptions,
3095
+ }];
3096
+ });
3097
+ });
3098
+ },
3099
+ /**
3100
+ * Get Requested DDIs
3101
+ * @summary Get Requested DDIs
3102
+ * @param {SipTrunkChangeResponseModel} [sipTrunkChangeResponseModel] Change Request
3103
+ * @param {*} [options] Override http request option.
3104
+ * @throws {RequiredError}
3105
+ */
3106
+ postGetRequestedDdisTcxWizard: function (sipTrunkChangeResponseModel_1) {
3107
+ var args_1 = [];
3108
+ for (var _i = 1; _i < arguments.length; _i++) {
3109
+ args_1[_i - 1] = arguments[_i];
3110
+ }
3111
+ return __awaiter(_this, __spreadArray([sipTrunkChangeResponseModel_1], args_1, true), void 0, function (sipTrunkChangeResponseModel, options) {
3112
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3113
+ if (options === void 0) { options = {}; }
3114
+ return __generator(this, function (_a) {
3115
+ localVarPath = "/tcx/wizards/sip/trunks/changes/ddis";
3116
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3117
+ if (configuration) {
3118
+ baseOptions = configuration.baseOptions;
3119
+ }
3120
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3121
+ localVarHeaderParameter = {};
3122
+ localVarQueryParameter = {};
3123
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3124
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3125
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3126
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3127
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sipTrunkChangeResponseModel, localVarRequestOptions, configuration);
3128
+ return [2 /*return*/, {
3129
+ url: (0, common_1.toPathString)(localVarUrlObj),
3130
+ options: localVarRequestOptions,
3131
+ }];
3132
+ });
3133
+ });
3134
+ },
3135
+ /**
3136
+ * Create New SIP Trunk
3137
+ * @summary Create New SIP Trunk
3138
+ * @param {SipTrunkCreationRequestModel} [sipTrunkCreationRequestModel] New SIP Trunk Request
3139
+ * @param {*} [options] Override http request option.
3140
+ * @throws {RequiredError}
3141
+ */
3142
+ postGetSipTrunksTcxWizard: function (sipTrunkCreationRequestModel_1) {
3143
+ var args_1 = [];
3144
+ for (var _i = 1; _i < arguments.length; _i++) {
3145
+ args_1[_i - 1] = arguments[_i];
3146
+ }
3147
+ return __awaiter(_this, __spreadArray([sipTrunkCreationRequestModel_1], args_1, true), void 0, function (sipTrunkCreationRequestModel, options) {
3148
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3149
+ if (options === void 0) { options = {}; }
3150
+ return __generator(this, function (_a) {
3151
+ localVarPath = "/tcx/wizards/sip/trunks";
3152
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3153
+ if (configuration) {
3154
+ baseOptions = configuration.baseOptions;
3155
+ }
3156
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3157
+ localVarHeaderParameter = {};
3158
+ localVarQueryParameter = {};
3159
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3160
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3161
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3162
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3163
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sipTrunkCreationRequestModel, localVarRequestOptions, configuration);
3164
+ return [2 /*return*/, {
3165
+ url: (0, common_1.toPathString)(localVarUrlObj),
3166
+ options: localVarRequestOptions,
3167
+ }];
3168
+ });
3169
+ });
3170
+ },
2907
3171
  /**
2908
3172
  * Upload 3CX Backup File
2909
3173
  * @param {File} backup 3CX Backup ZIP File
@@ -3031,61 +3295,106 @@ var Class3CXInstallationWizardApiFp = function (configuration) {
3031
3295
  * @param {*} [options] Override http request option.
3032
3296
  * @throws {RequiredError}
3033
3297
  */
3034
- deleteAddSbcs: function (tcxSbcModel, options) {
3298
+ deleteAddSbcs: function (tcxSbcModel, options) {
3299
+ return __awaiter(this, void 0, void 0, function () {
3300
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3301
+ var _a, _b, _c;
3302
+ return __generator(this, function (_d) {
3303
+ switch (_d.label) {
3304
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAddSbcs(tcxSbcModel, options)];
3305
+ case 1:
3306
+ localVarAxiosArgs = _d.sent();
3307
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3308
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.deleteAddSbcs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3309
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3310
+ }
3311
+ });
3312
+ });
3313
+ },
3314
+ /**
3315
+ * Delete 3CX Installation Wizard
3316
+ * @summary Delete 3CX Installation Wizard
3317
+ * @param {*} [options] Override http request option.
3318
+ * @throws {RequiredError}
3319
+ */
3320
+ deleteGetWizard: function (options) {
3321
+ return __awaiter(this, void 0, void 0, function () {
3322
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3323
+ var _a, _b, _c;
3324
+ return __generator(this, function (_d) {
3325
+ switch (_d.label) {
3326
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteGetWizard(options)];
3327
+ case 1:
3328
+ localVarAxiosArgs = _d.sent();
3329
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3330
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.deleteGetWizard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3331
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3332
+ }
3333
+ });
3334
+ });
3335
+ },
3336
+ /**
3337
+ * Get phones on linked order and MAC addresses
3338
+ * @summary Get phones on linked order and MAC addresses
3339
+ * @param {*} [options] Override http request option.
3340
+ * @throws {RequiredError}
3341
+ */
3342
+ getAddPhones: function (options) {
3035
3343
  return __awaiter(this, void 0, void 0, function () {
3036
3344
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3037
3345
  var _a, _b, _c;
3038
3346
  return __generator(this, function (_d) {
3039
3347
  switch (_d.label) {
3040
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAddSbcs(tcxSbcModel, options)];
3348
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAddPhones(options)];
3041
3349
  case 1:
3042
3350
  localVarAxiosArgs = _d.sent();
3043
3351
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3044
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.deleteAddSbcs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3352
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.getAddPhones']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3045
3353
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3046
3354
  }
3047
3355
  });
3048
3356
  });
3049
3357
  },
3050
3358
  /**
3051
- * Delete 3CX Installation Wizard
3052
- * @summary Delete 3CX Installation Wizard
3359
+ * Get UK National Area Codes
3360
+ * @summary Get UK National Area Codes
3053
3361
  * @param {*} [options] Override http request option.
3054
3362
  * @throws {RequiredError}
3055
3363
  */
3056
- deleteGetWizard: function (options) {
3364
+ getGetAreaCodesTcxWizard: function (options) {
3057
3365
  return __awaiter(this, void 0, void 0, function () {
3058
3366
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3059
3367
  var _a, _b, _c;
3060
3368
  return __generator(this, function (_d) {
3061
3369
  switch (_d.label) {
3062
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteGetWizard(options)];
3370
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAreaCodesTcxWizard(options)];
3063
3371
  case 1:
3064
3372
  localVarAxiosArgs = _d.sent();
3065
3373
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3066
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.deleteGetWizard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3374
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.getGetAreaCodesTcxWizard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3067
3375
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3068
3376
  }
3069
3377
  });
3070
3378
  });
3071
3379
  },
3072
3380
  /**
3073
- * Get phones on linked order and MAC addresses
3074
- * @summary Get phones on linked order and MAC addresses
3381
+ * Get SIP Trunk DDIs
3382
+ * @summary Get SIP Trunk DDIs
3383
+ * @param {number} id SIP Trunk ID
3075
3384
  * @param {*} [options] Override http request option.
3076
3385
  * @throws {RequiredError}
3077
3386
  */
3078
- getAddPhones: function (options) {
3387
+ getGetDdisTcxWizard: function (id, options) {
3079
3388
  return __awaiter(this, void 0, void 0, function () {
3080
3389
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3081
3390
  var _a, _b, _c;
3082
3391
  return __generator(this, function (_d) {
3083
3392
  switch (_d.label) {
3084
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAddPhones(options)];
3393
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetDdisTcxWizard(id, options)];
3085
3394
  case 1:
3086
3395
  localVarAxiosArgs = _d.sent();
3087
3396
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3088
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.getAddPhones']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3397
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.getGetDdisTcxWizard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3089
3398
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3090
3399
  }
3091
3400
  });
@@ -3184,6 +3493,54 @@ var Class3CXInstallationWizardApiFp = function (configuration) {
3184
3493
  });
3185
3494
  });
3186
3495
  },
3496
+ /**
3497
+ * Get SIP Trunk
3498
+ * @summary Get SIP Trunk
3499
+ * @param {number} id SIP Trunk ID
3500
+ * @param {*} [options] Override http request option.
3501
+ * @throws {RequiredError}
3502
+ */
3503
+ getGetSipTrunkTcxWizard: function (id, options) {
3504
+ return __awaiter(this, void 0, void 0, function () {
3505
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3506
+ var _a, _b, _c;
3507
+ return __generator(this, function (_d) {
3508
+ switch (_d.label) {
3509
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetSipTrunkTcxWizard(id, options)];
3510
+ case 1:
3511
+ localVarAxiosArgs = _d.sent();
3512
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3513
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.getGetSipTrunkTcxWizard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3514
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3515
+ }
3516
+ });
3517
+ });
3518
+ },
3519
+ /**
3520
+ * Get SIP Trunks
3521
+ * @summary Get SIP Trunks
3522
+ * @param {number} [pageSize] Number Of Results
3523
+ * @param {number} [page] Page Number
3524
+ * @param {string} [search] Search
3525
+ * @param {*} [options] Override http request option.
3526
+ * @throws {RequiredError}
3527
+ */
3528
+ getGetSipTrunksTcxWizard: function (pageSize, page, search, options) {
3529
+ return __awaiter(this, void 0, void 0, function () {
3530
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3531
+ var _a, _b, _c;
3532
+ return __generator(this, function (_d) {
3533
+ switch (_d.label) {
3534
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetSipTrunksTcxWizard(pageSize, page, search, options)];
3535
+ case 1:
3536
+ localVarAxiosArgs = _d.sent();
3537
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3538
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.getGetSipTrunksTcxWizard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3539
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3540
+ }
3541
+ });
3542
+ });
3543
+ },
3187
3544
  /**
3188
3545
  * Get 3CX Installation Wizard
3189
3546
  * @summary Get 3CX Installation Wizard
@@ -3511,6 +3868,76 @@ var Class3CXInstallationWizardApiFp = function (configuration) {
3511
3868
  });
3512
3869
  });
3513
3870
  },
3871
+ /**
3872
+ * Add SIP Trunk DDIs
3873
+ * @summary Add SIP Trunk DDIs
3874
+ * @param {number} id SIP Trunk ID
3875
+ * @param {DdiRangesRequestModel} [ddiRangesRequestModel] DDI Request
3876
+ * @param {*} [options] Override http request option.
3877
+ * @throws {RequiredError}
3878
+ */
3879
+ postGetDdisTcxWizard: function (id, ddiRangesRequestModel, options) {
3880
+ return __awaiter(this, void 0, void 0, function () {
3881
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3882
+ var _a, _b, _c;
3883
+ return __generator(this, function (_d) {
3884
+ switch (_d.label) {
3885
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetDdisTcxWizard(id, ddiRangesRequestModel, options)];
3886
+ case 1:
3887
+ localVarAxiosArgs = _d.sent();
3888
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3889
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.postGetDdisTcxWizard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3890
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3891
+ }
3892
+ });
3893
+ });
3894
+ },
3895
+ /**
3896
+ * Get Requested DDIs
3897
+ * @summary Get Requested DDIs
3898
+ * @param {SipTrunkChangeResponseModel} [sipTrunkChangeResponseModel] Change Request
3899
+ * @param {*} [options] Override http request option.
3900
+ * @throws {RequiredError}
3901
+ */
3902
+ postGetRequestedDdisTcxWizard: function (sipTrunkChangeResponseModel, options) {
3903
+ return __awaiter(this, void 0, void 0, function () {
3904
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3905
+ var _a, _b, _c;
3906
+ return __generator(this, function (_d) {
3907
+ switch (_d.label) {
3908
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetRequestedDdisTcxWizard(sipTrunkChangeResponseModel, options)];
3909
+ case 1:
3910
+ localVarAxiosArgs = _d.sent();
3911
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3912
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.postGetRequestedDdisTcxWizard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3913
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3914
+ }
3915
+ });
3916
+ });
3917
+ },
3918
+ /**
3919
+ * Create New SIP Trunk
3920
+ * @summary Create New SIP Trunk
3921
+ * @param {SipTrunkCreationRequestModel} [sipTrunkCreationRequestModel] New SIP Trunk Request
3922
+ * @param {*} [options] Override http request option.
3923
+ * @throws {RequiredError}
3924
+ */
3925
+ postGetSipTrunksTcxWizard: function (sipTrunkCreationRequestModel, options) {
3926
+ return __awaiter(this, void 0, void 0, function () {
3927
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3928
+ var _a, _b, _c;
3929
+ return __generator(this, function (_d) {
3930
+ switch (_d.label) {
3931
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetSipTrunksTcxWizard(sipTrunkCreationRequestModel, options)];
3932
+ case 1:
3933
+ localVarAxiosArgs = _d.sent();
3934
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3935
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationWizardApi.postGetSipTrunksTcxWizard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3936
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3937
+ }
3938
+ });
3939
+ });
3940
+ },
3514
3941
  /**
3515
3942
  * Upload 3CX Backup File
3516
3943
  * @param {File} backup 3CX Backup ZIP File
@@ -3601,6 +4028,25 @@ var Class3CXInstallationWizardApiFactory = function (configuration, basePath, ax
3601
4028
  getAddPhones: function (options) {
3602
4029
  return localVarFp.getAddPhones(options).then(function (request) { return request(axios, basePath); });
3603
4030
  },
4031
+ /**
4032
+ * Get UK National Area Codes
4033
+ * @summary Get UK National Area Codes
4034
+ * @param {*} [options] Override http request option.
4035
+ * @throws {RequiredError}
4036
+ */
4037
+ getGetAreaCodesTcxWizard: function (options) {
4038
+ return localVarFp.getGetAreaCodesTcxWizard(options).then(function (request) { return request(axios, basePath); });
4039
+ },
4040
+ /**
4041
+ * Get SIP Trunk DDIs
4042
+ * @summary Get SIP Trunk DDIs
4043
+ * @param {number} id SIP Trunk ID
4044
+ * @param {*} [options] Override http request option.
4045
+ * @throws {RequiredError}
4046
+ */
4047
+ getGetDdisTcxWizard: function (id, options) {
4048
+ return localVarFp.getGetDdisTcxWizard(id, options).then(function (request) { return request(axios, basePath); });
4049
+ },
3604
4050
  /**
3605
4051
  * Get Hosting Price
3606
4052
  * @summary Get Hosting Price
@@ -3642,6 +4088,28 @@ var Class3CXInstallationWizardApiFactory = function (configuration, basePath, ax
3642
4088
  getGetPbxIpAddress: function (options) {
3643
4089
  return localVarFp.getGetPbxIpAddress(options).then(function (request) { return request(axios, basePath); });
3644
4090
  },
4091
+ /**
4092
+ * Get SIP Trunk
4093
+ * @summary Get SIP Trunk
4094
+ * @param {number} id SIP Trunk ID
4095
+ * @param {*} [options] Override http request option.
4096
+ * @throws {RequiredError}
4097
+ */
4098
+ getGetSipTrunkTcxWizard: function (id, options) {
4099
+ return localVarFp.getGetSipTrunkTcxWizard(id, options).then(function (request) { return request(axios, basePath); });
4100
+ },
4101
+ /**
4102
+ * Get SIP Trunks
4103
+ * @summary Get SIP Trunks
4104
+ * @param {number} [pageSize] Number Of Results
4105
+ * @param {number} [page] Page Number
4106
+ * @param {string} [search] Search
4107
+ * @param {*} [options] Override http request option.
4108
+ * @throws {RequiredError}
4109
+ */
4110
+ getGetSipTrunksTcxWizard: function (pageSize, page, search, options) {
4111
+ return localVarFp.getGetSipTrunksTcxWizard(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
4112
+ },
3645
4113
  /**
3646
4114
  * Get 3CX Installation Wizard
3647
4115
  * @summary Get 3CX Installation Wizard
@@ -3787,6 +4255,37 @@ var Class3CXInstallationWizardApiFactory = function (configuration, basePath, ax
3787
4255
  postCreateInstanceFromWizard: function (id, u, c, p, options) {
3788
4256
  return localVarFp.postCreateInstanceFromWizard(id, u, c, p, options).then(function (request) { return request(axios, basePath); });
3789
4257
  },
4258
+ /**
4259
+ * Add SIP Trunk DDIs
4260
+ * @summary Add SIP Trunk DDIs
4261
+ * @param {number} id SIP Trunk ID
4262
+ * @param {DdiRangesRequestModel} [ddiRangesRequestModel] DDI Request
4263
+ * @param {*} [options] Override http request option.
4264
+ * @throws {RequiredError}
4265
+ */
4266
+ postGetDdisTcxWizard: function (id, ddiRangesRequestModel, options) {
4267
+ return localVarFp.postGetDdisTcxWizard(id, ddiRangesRequestModel, options).then(function (request) { return request(axios, basePath); });
4268
+ },
4269
+ /**
4270
+ * Get Requested DDIs
4271
+ * @summary Get Requested DDIs
4272
+ * @param {SipTrunkChangeResponseModel} [sipTrunkChangeResponseModel] Change Request
4273
+ * @param {*} [options] Override http request option.
4274
+ * @throws {RequiredError}
4275
+ */
4276
+ postGetRequestedDdisTcxWizard: function (sipTrunkChangeResponseModel, options) {
4277
+ return localVarFp.postGetRequestedDdisTcxWizard(sipTrunkChangeResponseModel, options).then(function (request) { return request(axios, basePath); });
4278
+ },
4279
+ /**
4280
+ * Create New SIP Trunk
4281
+ * @summary Create New SIP Trunk
4282
+ * @param {SipTrunkCreationRequestModel} [sipTrunkCreationRequestModel] New SIP Trunk Request
4283
+ * @param {*} [options] Override http request option.
4284
+ * @throws {RequiredError}
4285
+ */
4286
+ postGetSipTrunksTcxWizard: function (sipTrunkCreationRequestModel, options) {
4287
+ return localVarFp.postGetSipTrunksTcxWizard(sipTrunkCreationRequestModel, options).then(function (request) { return request(axios, basePath); });
4288
+ },
3790
4289
  /**
3791
4290
  * Upload 3CX Backup File
3792
4291
  * @param {File} backup 3CX Backup ZIP File
@@ -3880,6 +4379,29 @@ var Class3CXInstallationWizardApi = /** @class */ (function (_super) {
3880
4379
  var _this = this;
3881
4380
  return (0, exports.Class3CXInstallationWizardApiFp)(this.configuration).getAddPhones(options).then(function (request) { return request(_this.axios, _this.basePath); });
3882
4381
  };
4382
+ /**
4383
+ * Get UK National Area Codes
4384
+ * @summary Get UK National Area Codes
4385
+ * @param {*} [options] Override http request option.
4386
+ * @throws {RequiredError}
4387
+ * @memberof Class3CXInstallationWizardApi
4388
+ */
4389
+ Class3CXInstallationWizardApi.prototype.getGetAreaCodesTcxWizard = function (options) {
4390
+ var _this = this;
4391
+ return (0, exports.Class3CXInstallationWizardApiFp)(this.configuration).getGetAreaCodesTcxWizard(options).then(function (request) { return request(_this.axios, _this.basePath); });
4392
+ };
4393
+ /**
4394
+ * Get SIP Trunk DDIs
4395
+ * @summary Get SIP Trunk DDIs
4396
+ * @param {number} id SIP Trunk ID
4397
+ * @param {*} [options] Override http request option.
4398
+ * @throws {RequiredError}
4399
+ * @memberof Class3CXInstallationWizardApi
4400
+ */
4401
+ Class3CXInstallationWizardApi.prototype.getGetDdisTcxWizard = function (id, options) {
4402
+ var _this = this;
4403
+ return (0, exports.Class3CXInstallationWizardApiFp)(this.configuration).getGetDdisTcxWizard(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
4404
+ };
3883
4405
  /**
3884
4406
  * Get Hosting Price
3885
4407
  * @summary Get Hosting Price
@@ -3929,6 +4451,32 @@ var Class3CXInstallationWizardApi = /** @class */ (function (_super) {
3929
4451
  var _this = this;
3930
4452
  return (0, exports.Class3CXInstallationWizardApiFp)(this.configuration).getGetPbxIpAddress(options).then(function (request) { return request(_this.axios, _this.basePath); });
3931
4453
  };
4454
+ /**
4455
+ * Get SIP Trunk
4456
+ * @summary Get SIP Trunk
4457
+ * @param {number} id SIP Trunk ID
4458
+ * @param {*} [options] Override http request option.
4459
+ * @throws {RequiredError}
4460
+ * @memberof Class3CXInstallationWizardApi
4461
+ */
4462
+ Class3CXInstallationWizardApi.prototype.getGetSipTrunkTcxWizard = function (id, options) {
4463
+ var _this = this;
4464
+ return (0, exports.Class3CXInstallationWizardApiFp)(this.configuration).getGetSipTrunkTcxWizard(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
4465
+ };
4466
+ /**
4467
+ * Get SIP Trunks
4468
+ * @summary Get SIP Trunks
4469
+ * @param {number} [pageSize] Number Of Results
4470
+ * @param {number} [page] Page Number
4471
+ * @param {string} [search] Search
4472
+ * @param {*} [options] Override http request option.
4473
+ * @throws {RequiredError}
4474
+ * @memberof Class3CXInstallationWizardApi
4475
+ */
4476
+ Class3CXInstallationWizardApi.prototype.getGetSipTrunksTcxWizard = function (pageSize, page, search, options) {
4477
+ var _this = this;
4478
+ return (0, exports.Class3CXInstallationWizardApiFp)(this.configuration).getGetSipTrunksTcxWizard(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
4479
+ };
3932
4480
  /**
3933
4481
  * Get 3CX Installation Wizard
3934
4482
  * @summary Get 3CX Installation Wizard
@@ -4102,6 +4650,43 @@ var Class3CXInstallationWizardApi = /** @class */ (function (_super) {
4102
4650
  var _this = this;
4103
4651
  return (0, exports.Class3CXInstallationWizardApiFp)(this.configuration).postCreateInstanceFromWizard(id, u, c, p, options).then(function (request) { return request(_this.axios, _this.basePath); });
4104
4652
  };
4653
+ /**
4654
+ * Add SIP Trunk DDIs
4655
+ * @summary Add SIP Trunk DDIs
4656
+ * @param {number} id SIP Trunk ID
4657
+ * @param {DdiRangesRequestModel} [ddiRangesRequestModel] DDI Request
4658
+ * @param {*} [options] Override http request option.
4659
+ * @throws {RequiredError}
4660
+ * @memberof Class3CXInstallationWizardApi
4661
+ */
4662
+ Class3CXInstallationWizardApi.prototype.postGetDdisTcxWizard = function (id, ddiRangesRequestModel, options) {
4663
+ var _this = this;
4664
+ return (0, exports.Class3CXInstallationWizardApiFp)(this.configuration).postGetDdisTcxWizard(id, ddiRangesRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
4665
+ };
4666
+ /**
4667
+ * Get Requested DDIs
4668
+ * @summary Get Requested DDIs
4669
+ * @param {SipTrunkChangeResponseModel} [sipTrunkChangeResponseModel] Change Request
4670
+ * @param {*} [options] Override http request option.
4671
+ * @throws {RequiredError}
4672
+ * @memberof Class3CXInstallationWizardApi
4673
+ */
4674
+ Class3CXInstallationWizardApi.prototype.postGetRequestedDdisTcxWizard = function (sipTrunkChangeResponseModel, options) {
4675
+ var _this = this;
4676
+ return (0, exports.Class3CXInstallationWizardApiFp)(this.configuration).postGetRequestedDdisTcxWizard(sipTrunkChangeResponseModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
4677
+ };
4678
+ /**
4679
+ * Create New SIP Trunk
4680
+ * @summary Create New SIP Trunk
4681
+ * @param {SipTrunkCreationRequestModel} [sipTrunkCreationRequestModel] New SIP Trunk Request
4682
+ * @param {*} [options] Override http request option.
4683
+ * @throws {RequiredError}
4684
+ * @memberof Class3CXInstallationWizardApi
4685
+ */
4686
+ Class3CXInstallationWizardApi.prototype.postGetSipTrunksTcxWizard = function (sipTrunkCreationRequestModel, options) {
4687
+ var _this = this;
4688
+ return (0, exports.Class3CXInstallationWizardApiFp)(this.configuration).postGetSipTrunksTcxWizard(sipTrunkCreationRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
4689
+ };
4105
4690
  /**
4106
4691
  * Upload 3CX Backup File
4107
4692
  * @param {File} backup 3CX Backup ZIP File