yellowgrid-api-ts 3.2.24-dev.0 → 3.2.25-dev.0

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
@@ -84,9 +84,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = exports.AdminUserModelRoleEnum = void 0;
88
- exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = void 0;
89
- exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = void 0;
87
+ exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.IncidentUpdateRequestDTOTypeEnum = exports.IncidentUpdateDTOTypeEnum = exports.IncidentRequestDTOServiceEnum = exports.IncidentRequestDTOTypeEnum = exports.IncidentDTOStatusEnum = exports.IncidentDTOServiceEnum = exports.IncidentDTOTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.DivertResponseModelStatusEnum = exports.AdminUserModelRoleEnum = void 0;
88
+ exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = void 0;
89
+ exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = void 0;
90
90
  var axios_1 = require("axios");
91
91
  // Some imports not used depending on template conditions
92
92
  // @ts-ignore
@@ -119,6 +119,35 @@ exports.HostingRegionDTOCodeEnum = {
119
119
  UsEastVa1: 'US-EAST-VA-1',
120
120
  UsWestOr1: 'US-WEST-OR-1'
121
121
  };
122
+ exports.IncidentDTOTypeEnum = {
123
+ NUMBER_0: 0,
124
+ NUMBER_1: 1
125
+ };
126
+ exports.IncidentDTOServiceEnum = {
127
+ NUMBER_0: 0
128
+ };
129
+ exports.IncidentDTOStatusEnum = {
130
+ NUMBER_0: 0,
131
+ NUMBER_1: 1,
132
+ NUMBER_2: 2
133
+ };
134
+ exports.IncidentRequestDTOTypeEnum = {
135
+ NUMBER_0: 0,
136
+ NUMBER_1: 1
137
+ };
138
+ exports.IncidentRequestDTOServiceEnum = {
139
+ NUMBER_0: 0
140
+ };
141
+ exports.IncidentUpdateDTOTypeEnum = {
142
+ NUMBER_0: 0,
143
+ NUMBER_1: 1,
144
+ NUMBER_2: 2
145
+ };
146
+ exports.IncidentUpdateRequestDTOTypeEnum = {
147
+ NUMBER_0: 0,
148
+ NUMBER_1: 1,
149
+ NUMBER_2: 2
150
+ };
122
151
  exports.ItemDiscountEntityTypeEnum = {
123
152
  TcxPhones: 'TCX_PHONES',
124
153
  PhoneBulk: 'PHONE_BULK',
@@ -181,6 +210,16 @@ exports.OrderTotalModelCurrencyEnum = {
181
210
  Thb: 'THB',
182
211
  Zar: 'ZAR'
183
212
  };
213
+ exports.ServiceHealthDTOGlobalStatusEnum = {
214
+ NUMBER_0: 0,
215
+ NUMBER_1: 1,
216
+ NUMBER_2: 2
217
+ };
218
+ exports.ServiceStatusDTOStatusEnum = {
219
+ NUMBER_0: 0,
220
+ NUMBER_1: 1,
221
+ NUMBER_2: 2
222
+ };
184
223
  exports.ShippingServiceDTOCourierEnum = {
185
224
  Dpd: 'DPD',
186
225
  ChorltonPallet: 'Chorlton Pallet',
@@ -7306,35 +7345,32 @@ var MyPBXToolsApi = /** @class */ (function (_super) {
7306
7345
  }(base_1.BaseAPI));
7307
7346
  exports.MyPBXToolsApi = MyPBXToolsApi;
7308
7347
  /**
7309
- * NumberPortingApi - axios parameter creator
7348
+ * OAuth20Api - axios parameter creator
7310
7349
  */
7311
- var NumberPortingApiAxiosParamCreator = function (configuration) {
7350
+ var OAuth20ApiAxiosParamCreator = function (configuration) {
7312
7351
  var _this = this;
7313
7352
  return {
7314
7353
  /**
7315
- *
7316
- * @param {number} id Number Port ID
7354
+ * Get MFA QR Code
7355
+ * @summary Get MFA QR Code
7317
7356
  * @param {*} [options] Override http request option.
7318
7357
  * @throws {RequiredError}
7319
7358
  */
7320
- deleteGetAdminNumberPort: function (id_1) {
7359
+ getGetMfaQrCode: function () {
7321
7360
  var args_1 = [];
7322
- for (var _i = 1; _i < arguments.length; _i++) {
7323
- args_1[_i - 1] = arguments[_i];
7361
+ for (var _i = 0; _i < arguments.length; _i++) {
7362
+ args_1[_i] = arguments[_i];
7324
7363
  }
7325
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
7364
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
7326
7365
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7327
7366
  if (options === void 0) { options = {}; }
7328
7367
  return __generator(this, function (_a) {
7329
- // verify required parameter 'id' is not null or undefined
7330
- (0, common_1.assertParamExists)('deleteGetAdminNumberPort', 'id', id);
7331
- localVarPath = "/admin/sip/numbers/ports/{id}"
7332
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
7368
+ localVarPath = "/oauth2/qr/code";
7333
7369
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7334
7370
  if (configuration) {
7335
7371
  baseOptions = configuration.baseOptions;
7336
7372
  }
7337
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
7373
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
7338
7374
  localVarHeaderParameter = {};
7339
7375
  localVarQueryParameter = {};
7340
7376
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -7348,23 +7384,21 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7348
7384
  });
7349
7385
  },
7350
7386
  /**
7351
- *
7352
- * @param {number} [pageSize] Number Of Results
7353
- * @param {number} [page] Page Number
7354
- * @param {string} [search] Search
7387
+ * Get Scopes
7388
+ * @summary Get Scopes
7355
7389
  * @param {*} [options] Override http request option.
7356
7390
  * @throws {RequiredError}
7357
7391
  */
7358
- getCreateNumberPort: function (pageSize_1, page_1, search_1) {
7392
+ getGetScopes: function () {
7359
7393
  var args_1 = [];
7360
- for (var _i = 3; _i < arguments.length; _i++) {
7361
- args_1[_i - 3] = arguments[_i];
7394
+ for (var _i = 0; _i < arguments.length; _i++) {
7395
+ args_1[_i] = arguments[_i];
7362
7396
  }
7363
- return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
7397
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
7364
7398
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7365
7399
  if (options === void 0) { options = {}; }
7366
7400
  return __generator(this, function (_a) {
7367
- localVarPath = "/sip/numbers/ports";
7401
+ localVarPath = "/oauth2/scopes";
7368
7402
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7369
7403
  if (configuration) {
7370
7404
  baseOptions = configuration.baseOptions;
@@ -7372,15 +7406,6 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7372
7406
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
7373
7407
  localVarHeaderParameter = {};
7374
7408
  localVarQueryParameter = {};
7375
- if (pageSize !== undefined) {
7376
- localVarQueryParameter['pageSize'] = pageSize;
7377
- }
7378
- if (page !== undefined) {
7379
- localVarQueryParameter['page'] = page;
7380
- }
7381
- if (search !== undefined) {
7382
- localVarQueryParameter['search'] = search;
7383
- }
7384
7409
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7385
7410
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7386
7411
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7392,34 +7417,82 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7392
7417
  });
7393
7418
  },
7394
7419
  /**
7395
- *
7396
- * @param {number} id Number Port ID
7420
+ * Get an OAuth 2.0 access token
7421
+ * @summary Validates client credentials and returns access token
7422
+ * @param {string | null} [clientId] OAuth 2.0 Client ID
7423
+ * @param {string | null} [clientSecret] OAuth 2.0 Client Secret
7424
+ * @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
7425
+ * @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
7426
+ * @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
7427
+ * @param {string | null} [code] OAuth 2.0 Auth Code
7428
+ * @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
7429
+ * @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
7430
+ * @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
7431
+ * @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
7432
+ * @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
7433
+ * @param {boolean | null} [endUser] End User (Only used in Token Exchange)
7397
7434
  * @param {*} [options] Override http request option.
7398
7435
  * @throws {RequiredError}
7399
7436
  */
7400
- getGetAdminNumberPort: function (id_1) {
7437
+ postAccessToken: function (clientId_1, clientSecret_1, grantType_1, scope_1, redirectUri_1, code_1, refreshToken_1, codeVerifier_1, token_1, tokenExchangeType_1, licenceKey_1, endUser_1) {
7401
7438
  var args_1 = [];
7402
- for (var _i = 1; _i < arguments.length; _i++) {
7403
- args_1[_i - 1] = arguments[_i];
7439
+ for (var _i = 12; _i < arguments.length; _i++) {
7440
+ args_1[_i - 12] = arguments[_i];
7404
7441
  }
7405
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
7406
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7442
+ return __awaiter(_this, __spreadArray([clientId_1, clientSecret_1, grantType_1, scope_1, redirectUri_1, code_1, refreshToken_1, codeVerifier_1, token_1, tokenExchangeType_1, licenceKey_1, endUser_1], args_1, true), void 0, function (clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options) {
7443
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
7407
7444
  if (options === void 0) { options = {}; }
7408
7445
  return __generator(this, function (_a) {
7409
- // verify required parameter 'id' is not null or undefined
7410
- (0, common_1.assertParamExists)('getGetAdminNumberPort', 'id', id);
7411
- localVarPath = "/admin/sip/numbers/ports/{id}"
7412
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
7446
+ localVarPath = "/oauth2/access_token";
7413
7447
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7414
7448
  if (configuration) {
7415
7449
  baseOptions = configuration.baseOptions;
7416
7450
  }
7417
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
7451
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
7418
7452
  localVarHeaderParameter = {};
7419
7453
  localVarQueryParameter = {};
7454
+ localVarFormParams = new URLSearchParams();
7455
+ if (clientId !== undefined) {
7456
+ localVarFormParams.set('client_id', clientId);
7457
+ }
7458
+ if (clientSecret !== undefined) {
7459
+ localVarFormParams.set('client_secret', clientSecret);
7460
+ }
7461
+ if (grantType !== undefined) {
7462
+ localVarFormParams.set('grant_type', grantType);
7463
+ }
7464
+ if (scope !== undefined) {
7465
+ localVarFormParams.set('scope', scope);
7466
+ }
7467
+ if (redirectUri !== undefined) {
7468
+ localVarFormParams.set('redirect_uri', redirectUri);
7469
+ }
7470
+ if (code !== undefined) {
7471
+ localVarFormParams.set('code', code);
7472
+ }
7473
+ if (refreshToken !== undefined) {
7474
+ localVarFormParams.set('refresh_token', refreshToken);
7475
+ }
7476
+ if (codeVerifier !== undefined) {
7477
+ localVarFormParams.set('code_verifier', codeVerifier);
7478
+ }
7479
+ if (token !== undefined) {
7480
+ localVarFormParams.set('token', token);
7481
+ }
7482
+ if (tokenExchangeType !== undefined) {
7483
+ localVarFormParams.set('token_exchange_type', tokenExchangeType);
7484
+ }
7485
+ if (licenceKey !== undefined) {
7486
+ localVarFormParams.set('licence_key', licenceKey);
7487
+ }
7488
+ if (endUser !== undefined) {
7489
+ localVarFormParams.set('end_user', endUser);
7490
+ }
7491
+ localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
7420
7492
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7421
7493
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7422
7494
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7495
+ localVarRequestOptions.data = localVarFormParams.toString();
7423
7496
  return [2 /*return*/, {
7424
7497
  url: (0, common_1.toPathString)(localVarUrlObj),
7425
7498
  options: localVarRequestOptions,
@@ -7428,38 +7501,61 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7428
7501
  });
7429
7502
  },
7430
7503
  /**
7431
- *
7432
- * @param {number} [pageSize] Number Of Results
7433
- * @param {number} [page] Page Number
7434
- * @param {string} [search] Search
7504
+ * Get an OAuth 2.0 auth code
7505
+ * @summary Get OAuth2.0 Auth Code
7506
+ * @param {string} clientId OAuth 2.0 Client ID
7507
+ * @param {string} responseType OAuth 2.0 Response Type
7508
+ * @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
7509
+ * @param {string} [redirectUri] OAuth 2.0 Redirect URI
7510
+ * @param {string} [state] OAuth 2.0 State
7511
+ * @param {string} [codeChallenge] OAuth 2.0 Code Challenge
7512
+ * @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
7435
7513
  * @param {*} [options] Override http request option.
7436
7514
  * @throws {RequiredError}
7437
7515
  */
7438
- getGetAdminNumberPorts: function (pageSize_1, page_1, search_1) {
7516
+ postAuthorise: function (clientId_1, responseType_1, scope_1, redirectUri_1, state_1, codeChallenge_1, codeChallengeMethod_1) {
7439
7517
  var args_1 = [];
7440
- for (var _i = 3; _i < arguments.length; _i++) {
7441
- args_1[_i - 3] = arguments[_i];
7518
+ for (var _i = 7; _i < arguments.length; _i++) {
7519
+ args_1[_i - 7] = arguments[_i];
7442
7520
  }
7443
- return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
7521
+ return __awaiter(_this, __spreadArray([clientId_1, responseType_1, scope_1, redirectUri_1, state_1, codeChallenge_1, codeChallengeMethod_1], args_1, true), void 0, function (clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options) {
7444
7522
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7445
7523
  if (options === void 0) { options = {}; }
7446
7524
  return __generator(this, function (_a) {
7447
- localVarPath = "/admin/sip/numbers/ports";
7525
+ // verify required parameter 'clientId' is not null or undefined
7526
+ (0, common_1.assertParamExists)('postAuthorise', 'clientId', clientId);
7527
+ // verify required parameter 'responseType' is not null or undefined
7528
+ (0, common_1.assertParamExists)('postAuthorise', 'responseType', responseType);
7529
+ // verify required parameter 'scope' is not null or undefined
7530
+ (0, common_1.assertParamExists)('postAuthorise', 'scope', scope);
7531
+ localVarPath = "/oauth2/authorise";
7448
7532
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7449
7533
  if (configuration) {
7450
7534
  baseOptions = configuration.baseOptions;
7451
7535
  }
7452
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
7536
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
7453
7537
  localVarHeaderParameter = {};
7454
7538
  localVarQueryParameter = {};
7455
- if (pageSize !== undefined) {
7456
- localVarQueryParameter['pageSize'] = pageSize;
7539
+ if (clientId !== undefined) {
7540
+ localVarQueryParameter['client_id'] = clientId;
7457
7541
  }
7458
- if (page !== undefined) {
7459
- localVarQueryParameter['page'] = page;
7542
+ if (responseType !== undefined) {
7543
+ localVarQueryParameter['response_type'] = responseType;
7460
7544
  }
7461
- if (search !== undefined) {
7462
- localVarQueryParameter['search'] = search;
7545
+ if (redirectUri !== undefined) {
7546
+ localVarQueryParameter['redirect_uri'] = redirectUri;
7547
+ }
7548
+ if (scope !== undefined) {
7549
+ localVarQueryParameter['scope'] = scope;
7550
+ }
7551
+ if (state !== undefined) {
7552
+ localVarQueryParameter['state'] = state;
7553
+ }
7554
+ if (codeChallenge !== undefined) {
7555
+ localVarQueryParameter['code_challenge'] = codeChallenge;
7556
+ }
7557
+ if (codeChallengeMethod !== undefined) {
7558
+ localVarQueryParameter['code_challenge_method'] = codeChallengeMethod;
7463
7559
  }
7464
7560
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7465
7561
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -7472,29 +7568,26 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7472
7568
  });
7473
7569
  },
7474
7570
  /**
7475
- *
7476
- * @param {number} id Number Port ID
7571
+ * Get Token Identity
7572
+ * @summary Get Token Identity
7477
7573
  * @param {*} [options] Override http request option.
7478
7574
  * @throws {RequiredError}
7479
7575
  */
7480
- getUpdateNumberPort: function (id_1) {
7576
+ postGetIdentity: function () {
7481
7577
  var args_1 = [];
7482
- for (var _i = 1; _i < arguments.length; _i++) {
7483
- args_1[_i - 1] = arguments[_i];
7578
+ for (var _i = 0; _i < arguments.length; _i++) {
7579
+ args_1[_i] = arguments[_i];
7484
7580
  }
7485
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
7581
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
7486
7582
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7487
7583
  if (options === void 0) { options = {}; }
7488
7584
  return __generator(this, function (_a) {
7489
- // verify required parameter 'id' is not null or undefined
7490
- (0, common_1.assertParamExists)('getUpdateNumberPort', 'id', id);
7491
- localVarPath = "/sip/numbers/ports/{id}"
7492
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
7585
+ localVarPath = "/oauth2/me";
7493
7586
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7494
7587
  if (configuration) {
7495
7588
  baseOptions = configuration.baseOptions;
7496
7589
  }
7497
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
7590
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
7498
7591
  localVarHeaderParameter = {};
7499
7592
  localVarQueryParameter = {};
7500
7593
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -7508,32 +7601,22 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7508
7601
  });
7509
7602
  },
7510
7603
  /**
7511
- *
7512
- * @param {string | null} [companyName] Company Name
7513
- * @param {string | null} [addressLine1] Address Line 1
7514
- * @param {string | null} [addressLine2] Address Line 2
7515
- * @param {string | null} [city] City
7516
- * @param {string | null} [postCode] Post Code
7517
- * @param {number | null} [trunkId] Trunk ID
7518
- * @param {string | null} [tenantId] Starter Bundle ID
7519
- * @param {string | null} [requestedPortDate] Requested Port Date
7520
- * @param {boolean | null} [asap] Port Date ASAP
7521
- * @param {string | null} [comment] Comment
7522
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
7523
- * @param {File} [cloa] CLOA (only provide on submission)
7524
- * @param {*} [options] Override http request option.
7525
- * @throws {RequiredError}
7526
- */
7527
- postCreateNumberPort: function (companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1) {
7604
+ * Portal Login
7605
+ * @summary Portal Login
7606
+ * @param {PortalLoginModel} [portalLoginModel] Login Credentials
7607
+ * @param {*} [options] Override http request option.
7608
+ * @throws {RequiredError}
7609
+ */
7610
+ postPortalLogin: function (portalLoginModel_1) {
7528
7611
  var args_1 = [];
7529
- for (var _i = 12; _i < arguments.length; _i++) {
7530
- args_1[_i - 12] = arguments[_i];
7612
+ for (var _i = 1; _i < arguments.length; _i++) {
7613
+ args_1[_i - 1] = arguments[_i];
7531
7614
  }
7532
- return __awaiter(_this, __spreadArray([companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1], args_1, true), void 0, function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
7533
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
7615
+ return __awaiter(_this, __spreadArray([portalLoginModel_1], args_1, true), void 0, function (portalLoginModel, options) {
7616
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7534
7617
  if (options === void 0) { options = {}; }
7535
7618
  return __generator(this, function (_a) {
7536
- localVarPath = "/sip/numbers/ports";
7619
+ localVarPath = "/oauth2/portal/login";
7537
7620
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7538
7621
  if (configuration) {
7539
7622
  baseOptions = configuration.baseOptions;
@@ -7541,48 +7624,11 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7541
7624
  localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
7542
7625
  localVarHeaderParameter = {};
7543
7626
  localVarQueryParameter = {};
7544
- localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
7545
- if (companyName !== undefined) {
7546
- localVarFormParams.append('companyName', companyName);
7547
- }
7548
- if (addressLine1 !== undefined) {
7549
- localVarFormParams.append('addressLine1', addressLine1);
7550
- }
7551
- if (addressLine2 !== undefined) {
7552
- localVarFormParams.append('addressLine2', addressLine2);
7553
- }
7554
- if (city !== undefined) {
7555
- localVarFormParams.append('city', city);
7556
- }
7557
- if (postCode !== undefined) {
7558
- localVarFormParams.append('postCode', postCode);
7559
- }
7560
- if (trunkId !== undefined) {
7561
- localVarFormParams.append('trunkId', trunkId);
7562
- }
7563
- if (tenantId !== undefined) {
7564
- localVarFormParams.append('tenantId', tenantId);
7565
- }
7566
- if (requestedPortDate !== undefined) {
7567
- localVarFormParams.append('requestedPortDate', requestedPortDate);
7568
- }
7569
- if (asap !== undefined) {
7570
- localVarFormParams.append('asap', String(asap));
7571
- }
7572
- if (comment !== undefined) {
7573
- localVarFormParams.append('comment', comment);
7574
- }
7575
- if (numberRanges) {
7576
- localVarFormParams.append('numberRanges', numberRanges.join(base_1.COLLECTION_FORMATS.csv));
7577
- }
7578
- if (cloa !== undefined) {
7579
- localVarFormParams.append('cloa', cloa);
7580
- }
7581
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
7627
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7582
7628
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7583
7629
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7584
7630
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7585
- localVarRequestOptions.data = localVarFormParams;
7631
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(portalLoginModel, localVarRequestOptions, configuration);
7586
7632
  return [2 /*return*/, {
7587
7633
  url: (0, common_1.toPathString)(localVarUrlObj),
7588
7634
  options: localVarRequestOptions,
@@ -7590,540 +7636,162 @@ var NumberPortingApiAxiosParamCreator = function (configuration) {
7590
7636
  });
7591
7637
  });
7592
7638
  },
7639
+ };
7640
+ };
7641
+ exports.OAuth20ApiAxiosParamCreator = OAuth20ApiAxiosParamCreator;
7642
+ /**
7643
+ * OAuth20Api - functional programming interface
7644
+ */
7645
+ var OAuth20ApiFp = function (configuration) {
7646
+ var localVarAxiosParamCreator = (0, exports.OAuth20ApiAxiosParamCreator)(configuration);
7647
+ return {
7593
7648
  /**
7594
- *
7595
- * @param {number} id Number Port ID
7596
- * @param {string | null} [companyName] Company Name
7597
- * @param {string | null} [addressLine1] Address Line 1
7598
- * @param {string | null} [addressLine2] Address Line 2
7599
- * @param {string | null} [city] City
7600
- * @param {string | null} [postCode] Post Code
7601
- * @param {number | null} [trunkId] Trunk ID
7602
- * @param {string | null} [tenantId] Starter Bundle ID
7603
- * @param {string | null} [requestedPortDate] Requested Port Date
7604
- * @param {boolean | null} [asap] Port Date ASAP
7605
- * @param {string | null} [comment] Comment
7606
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
7607
- * @param {File} [cloa] CLOA (only provide on submission)
7608
- * @param {*} [options] Override http request option.
7609
- * @throws {RequiredError}
7610
- */
7611
- postSubmitNumberPort: function (id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1) {
7612
- var args_1 = [];
7613
- for (var _i = 13; _i < arguments.length; _i++) {
7614
- args_1[_i - 13] = arguments[_i];
7615
- }
7616
- return __awaiter(_this, __spreadArray([id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1], args_1, true), void 0, function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
7617
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
7618
- if (options === void 0) { options = {}; }
7619
- return __generator(this, function (_a) {
7620
- // verify required parameter 'id' is not null or undefined
7621
- (0, common_1.assertParamExists)('postSubmitNumberPort', 'id', id);
7622
- localVarPath = "/sip/numbers/ports/{id}/submit"
7623
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
7624
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7625
- if (configuration) {
7626
- baseOptions = configuration.baseOptions;
7627
- }
7628
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
7629
- localVarHeaderParameter = {};
7630
- localVarQueryParameter = {};
7631
- localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
7632
- if (companyName !== undefined) {
7633
- localVarFormParams.append('companyName', companyName);
7634
- }
7635
- if (addressLine1 !== undefined) {
7636
- localVarFormParams.append('addressLine1', addressLine1);
7637
- }
7638
- if (addressLine2 !== undefined) {
7639
- localVarFormParams.append('addressLine2', addressLine2);
7640
- }
7641
- if (city !== undefined) {
7642
- localVarFormParams.append('city', city);
7643
- }
7644
- if (postCode !== undefined) {
7645
- localVarFormParams.append('postCode', postCode);
7646
- }
7647
- if (trunkId !== undefined) {
7648
- localVarFormParams.append('trunkId', trunkId);
7649
- }
7650
- if (tenantId !== undefined) {
7651
- localVarFormParams.append('tenantId', tenantId);
7652
- }
7653
- if (requestedPortDate !== undefined) {
7654
- localVarFormParams.append('requestedPortDate', requestedPortDate);
7655
- }
7656
- if (asap !== undefined) {
7657
- localVarFormParams.append('asap', String(asap));
7658
- }
7659
- if (comment !== undefined) {
7660
- localVarFormParams.append('comment', comment);
7661
- }
7662
- if (numberRanges) {
7663
- localVarFormParams.append('numberRanges', numberRanges.join(base_1.COLLECTION_FORMATS.csv));
7664
- }
7665
- if (cloa !== undefined) {
7666
- localVarFormParams.append('cloa', cloa);
7667
- }
7668
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
7669
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7670
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7671
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7672
- localVarRequestOptions.data = localVarFormParams;
7673
- return [2 /*return*/, {
7674
- url: (0, common_1.toPathString)(localVarUrlObj),
7675
- options: localVarRequestOptions,
7676
- }];
7677
- });
7678
- });
7679
- },
7680
- /**
7681
- *
7682
- * @param {number} id Number Port ID
7683
- * @param {string | null} [companyName] Company Name
7684
- * @param {string | null} [addressLine1] Address Line 1
7685
- * @param {string | null} [addressLine2] Address Line 2
7686
- * @param {string | null} [city] City
7687
- * @param {string | null} [postCode] Post Code
7688
- * @param {number | null} [trunkId] Trunk ID
7689
- * @param {string | null} [tenantId] Starter Bundle ID
7690
- * @param {string | null} [requestedPortDate] Requested Port Date
7691
- * @param {boolean | null} [asap] Port Date ASAP
7692
- * @param {string | null} [comment] Comment
7693
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
7694
- * @param {File} [cloa] CLOA (only provide on submission)
7695
- * @param {*} [options] Override http request option.
7696
- * @throws {RequiredError}
7697
- */
7698
- postUpdateNumberPort: function (id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1) {
7699
- var args_1 = [];
7700
- for (var _i = 13; _i < arguments.length; _i++) {
7701
- args_1[_i - 13] = arguments[_i];
7702
- }
7703
- return __awaiter(_this, __spreadArray([id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, numberRanges_1, cloa_1], args_1, true), void 0, function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
7704
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
7705
- if (options === void 0) { options = {}; }
7706
- return __generator(this, function (_a) {
7707
- // verify required parameter 'id' is not null or undefined
7708
- (0, common_1.assertParamExists)('postUpdateNumberPort', 'id', id);
7709
- localVarPath = "/sip/numbers/ports/{id}"
7710
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
7711
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7712
- if (configuration) {
7713
- baseOptions = configuration.baseOptions;
7714
- }
7715
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
7716
- localVarHeaderParameter = {};
7717
- localVarQueryParameter = {};
7718
- localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
7719
- if (companyName !== undefined) {
7720
- localVarFormParams.append('companyName', companyName);
7721
- }
7722
- if (addressLine1 !== undefined) {
7723
- localVarFormParams.append('addressLine1', addressLine1);
7724
- }
7725
- if (addressLine2 !== undefined) {
7726
- localVarFormParams.append('addressLine2', addressLine2);
7727
- }
7728
- if (city !== undefined) {
7729
- localVarFormParams.append('city', city);
7730
- }
7731
- if (postCode !== undefined) {
7732
- localVarFormParams.append('postCode', postCode);
7733
- }
7734
- if (trunkId !== undefined) {
7735
- localVarFormParams.append('trunkId', trunkId);
7736
- }
7737
- if (tenantId !== undefined) {
7738
- localVarFormParams.append('tenantId', tenantId);
7739
- }
7740
- if (requestedPortDate !== undefined) {
7741
- localVarFormParams.append('requestedPortDate', requestedPortDate);
7742
- }
7743
- if (asap !== undefined) {
7744
- localVarFormParams.append('asap', String(asap));
7745
- }
7746
- if (comment !== undefined) {
7747
- localVarFormParams.append('comment', comment);
7748
- }
7749
- if (numberRanges) {
7750
- localVarFormParams.append('numberRanges', numberRanges.join(base_1.COLLECTION_FORMATS.csv));
7751
- }
7752
- if (cloa !== undefined) {
7753
- localVarFormParams.append('cloa', cloa);
7754
- }
7755
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
7756
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7757
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7758
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7759
- localVarRequestOptions.data = localVarFormParams;
7760
- return [2 /*return*/, {
7761
- url: (0, common_1.toPathString)(localVarUrlObj),
7762
- options: localVarRequestOptions,
7763
- }];
7764
- });
7765
- });
7766
- },
7767
- /**
7768
- *
7769
- * @param {number} id Number Port ID
7770
- * @param {string | null} [companyName] Company Name
7771
- * @param {string | null} [addressLine1] Address Line 1
7772
- * @param {string | null} [addressLine2] Address Line 2
7773
- * @param {string | null} [city] City
7774
- * @param {string | null} [postCode] Post Code
7775
- * @param {number | null} [trunkId] Trunk ID
7776
- * @param {string | null} [tenantId] Starter Bundle ID
7777
- * @param {string | null} [requestedPortDate] Requested Port Date
7778
- * @param {boolean | null} [asap] Port Date ASAP
7779
- * @param {string | null} [comment] Comment
7780
- * @param {number} [id2] Number Port ID
7781
- * @param {string} [customerName] Customer Name
7782
- * @param {string} [portDate] Porting Date
7783
- * @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
7784
- * @param {number} [status] Status
7785
- * @param {number | null} [ticketId] Ticket ID
7786
- * @param {*} [options] Override http request option.
7787
- * @throws {RequiredError}
7788
- */
7789
- putGetAdminNumberPort: function (id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, id2_1, customerName_1, portDate_1, numberRanges_1, status_1, ticketId_1) {
7790
- var args_1 = [];
7791
- for (var _i = 17; _i < arguments.length; _i++) {
7792
- args_1[_i - 17] = arguments[_i];
7793
- }
7794
- return __awaiter(_this, __spreadArray([id_1, companyName_1, addressLine1_1, addressLine2_1, city_1, postCode_1, trunkId_1, tenantId_1, requestedPortDate_1, asap_1, comment_1, id2_1, customerName_1, portDate_1, numberRanges_1, status_1, ticketId_1], args_1, true), void 0, function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, id2, customerName, portDate, numberRanges, status, ticketId, options) {
7795
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
7796
- if (options === void 0) { options = {}; }
7797
- return __generator(this, function (_a) {
7798
- // verify required parameter 'id' is not null or undefined
7799
- (0, common_1.assertParamExists)('putGetAdminNumberPort', 'id', id);
7800
- localVarPath = "/admin/sip/numbers/ports/{id}"
7801
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
7802
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7803
- if (configuration) {
7804
- baseOptions = configuration.baseOptions;
7805
- }
7806
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
7807
- localVarHeaderParameter = {};
7808
- localVarQueryParameter = {};
7809
- localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
7810
- if (companyName !== undefined) {
7811
- localVarFormParams.append('companyName', companyName);
7812
- }
7813
- if (addressLine1 !== undefined) {
7814
- localVarFormParams.append('addressLine1', addressLine1);
7815
- }
7816
- if (addressLine2 !== undefined) {
7817
- localVarFormParams.append('addressLine2', addressLine2);
7818
- }
7819
- if (city !== undefined) {
7820
- localVarFormParams.append('city', city);
7821
- }
7822
- if (postCode !== undefined) {
7823
- localVarFormParams.append('postCode', postCode);
7824
- }
7825
- if (trunkId !== undefined) {
7826
- localVarFormParams.append('trunkId', trunkId);
7827
- }
7828
- if (tenantId !== undefined) {
7829
- localVarFormParams.append('tenantId', tenantId);
7830
- }
7831
- if (requestedPortDate !== undefined) {
7832
- localVarFormParams.append('requestedPortDate', requestedPortDate);
7833
- }
7834
- if (asap !== undefined) {
7835
- localVarFormParams.append('asap', String(asap));
7836
- }
7837
- if (comment !== undefined) {
7838
- localVarFormParams.append('comment', comment);
7839
- }
7840
- if (id2 !== undefined) {
7841
- localVarFormParams.append('id', id2);
7842
- }
7843
- if (customerName !== undefined) {
7844
- localVarFormParams.append('customerName', customerName);
7845
- }
7846
- if (portDate !== undefined) {
7847
- localVarFormParams.append('portDate', portDate);
7848
- }
7849
- if (numberRanges) {
7850
- localVarFormParams.append('numberRanges', numberRanges.join(base_1.COLLECTION_FORMATS.csv));
7851
- }
7852
- if (status !== undefined) {
7853
- localVarFormParams.append('status', status);
7854
- }
7855
- if (ticketId !== undefined) {
7856
- localVarFormParams.append('ticketId', ticketId);
7857
- }
7858
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
7859
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7860
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7861
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7862
- localVarRequestOptions.data = localVarFormParams;
7863
- return [2 /*return*/, {
7864
- url: (0, common_1.toPathString)(localVarUrlObj),
7865
- options: localVarRequestOptions,
7866
- }];
7867
- });
7868
- });
7869
- },
7870
- };
7871
- };
7872
- exports.NumberPortingApiAxiosParamCreator = NumberPortingApiAxiosParamCreator;
7873
- /**
7874
- * NumberPortingApi - functional programming interface
7875
- */
7876
- var NumberPortingApiFp = function (configuration) {
7877
- var localVarAxiosParamCreator = (0, exports.NumberPortingApiAxiosParamCreator)(configuration);
7878
- return {
7879
- /**
7880
- *
7881
- * @param {number} id Number Port ID
7649
+ * Get MFA QR Code
7650
+ * @summary Get MFA QR Code
7882
7651
  * @param {*} [options] Override http request option.
7883
7652
  * @throws {RequiredError}
7884
7653
  */
7885
- deleteGetAdminNumberPort: function (id, options) {
7654
+ getGetMfaQrCode: function (options) {
7886
7655
  return __awaiter(this, void 0, void 0, function () {
7887
7656
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
7888
7657
  var _a, _b, _c;
7889
7658
  return __generator(this, function (_d) {
7890
7659
  switch (_d.label) {
7891
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteGetAdminNumberPort(id, options)];
7660
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetMfaQrCode(options)];
7892
7661
  case 1:
7893
7662
  localVarAxiosArgs = _d.sent();
7894
7663
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7895
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.deleteGetAdminNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7664
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.getGetMfaQrCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7896
7665
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
7897
7666
  }
7898
7667
  });
7899
7668
  });
7900
7669
  },
7901
7670
  /**
7902
- *
7903
- * @param {number} [pageSize] Number Of Results
7904
- * @param {number} [page] Page Number
7905
- * @param {string} [search] Search
7671
+ * Get Scopes
7672
+ * @summary Get Scopes
7906
7673
  * @param {*} [options] Override http request option.
7907
7674
  * @throws {RequiredError}
7908
7675
  */
7909
- getCreateNumberPort: function (pageSize, page, search, options) {
7676
+ getGetScopes: function (options) {
7910
7677
  return __awaiter(this, void 0, void 0, function () {
7911
7678
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
7912
7679
  var _a, _b, _c;
7913
7680
  return __generator(this, function (_d) {
7914
7681
  switch (_d.label) {
7915
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCreateNumberPort(pageSize, page, search, options)];
7682
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetScopes(options)];
7916
7683
  case 1:
7917
7684
  localVarAxiosArgs = _d.sent();
7918
7685
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7919
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.getCreateNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7686
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.getGetScopes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7920
7687
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
7921
7688
  }
7922
7689
  });
7923
7690
  });
7924
7691
  },
7925
7692
  /**
7926
- *
7927
- * @param {number} id Number Port ID
7693
+ * Get an OAuth 2.0 access token
7694
+ * @summary Validates client credentials and returns access token
7695
+ * @param {string | null} [clientId] OAuth 2.0 Client ID
7696
+ * @param {string | null} [clientSecret] OAuth 2.0 Client Secret
7697
+ * @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
7698
+ * @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
7699
+ * @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
7700
+ * @param {string | null} [code] OAuth 2.0 Auth Code
7701
+ * @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
7702
+ * @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
7703
+ * @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
7704
+ * @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
7705
+ * @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
7706
+ * @param {boolean | null} [endUser] End User (Only used in Token Exchange)
7928
7707
  * @param {*} [options] Override http request option.
7929
7708
  * @throws {RequiredError}
7930
7709
  */
7931
- getGetAdminNumberPort: function (id, options) {
7710
+ postAccessToken: function (clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options) {
7932
7711
  return __awaiter(this, void 0, void 0, function () {
7933
7712
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
7934
7713
  var _a, _b, _c;
7935
7714
  return __generator(this, function (_d) {
7936
7715
  switch (_d.label) {
7937
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminNumberPort(id, options)];
7716
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options)];
7938
7717
  case 1:
7939
7718
  localVarAxiosArgs = _d.sent();
7940
7719
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7941
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.getGetAdminNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7720
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postAccessToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7942
7721
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
7943
7722
  }
7944
7723
  });
7945
7724
  });
7946
7725
  },
7947
7726
  /**
7948
- *
7949
- * @param {number} [pageSize] Number Of Results
7950
- * @param {number} [page] Page Number
7951
- * @param {string} [search] Search
7727
+ * Get an OAuth 2.0 auth code
7728
+ * @summary Get OAuth2.0 Auth Code
7729
+ * @param {string} clientId OAuth 2.0 Client ID
7730
+ * @param {string} responseType OAuth 2.0 Response Type
7731
+ * @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
7732
+ * @param {string} [redirectUri] OAuth 2.0 Redirect URI
7733
+ * @param {string} [state] OAuth 2.0 State
7734
+ * @param {string} [codeChallenge] OAuth 2.0 Code Challenge
7735
+ * @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
7952
7736
  * @param {*} [options] Override http request option.
7953
7737
  * @throws {RequiredError}
7954
7738
  */
7955
- getGetAdminNumberPorts: function (pageSize, page, search, options) {
7739
+ postAuthorise: function (clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options) {
7956
7740
  return __awaiter(this, void 0, void 0, function () {
7957
7741
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
7958
7742
  var _a, _b, _c;
7959
7743
  return __generator(this, function (_d) {
7960
7744
  switch (_d.label) {
7961
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminNumberPorts(pageSize, page, search, options)];
7745
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options)];
7962
7746
  case 1:
7963
7747
  localVarAxiosArgs = _d.sent();
7964
7748
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7965
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.getGetAdminNumberPorts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7749
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postAuthorise']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7966
7750
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
7967
7751
  }
7968
7752
  });
7969
7753
  });
7970
7754
  },
7971
7755
  /**
7972
- *
7973
- * @param {number} id Number Port ID
7756
+ * Get Token Identity
7757
+ * @summary Get Token Identity
7974
7758
  * @param {*} [options] Override http request option.
7975
7759
  * @throws {RequiredError}
7976
7760
  */
7977
- getUpdateNumberPort: function (id, options) {
7978
- return __awaiter(this, void 0, void 0, function () {
7979
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
7980
- var _a, _b, _c;
7981
- return __generator(this, function (_d) {
7982
- switch (_d.label) {
7983
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUpdateNumberPort(id, options)];
7984
- case 1:
7985
- localVarAxiosArgs = _d.sent();
7986
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7987
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.getUpdateNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7988
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
7989
- }
7990
- });
7991
- });
7992
- },
7993
- /**
7994
- *
7995
- * @param {string | null} [companyName] Company Name
7996
- * @param {string | null} [addressLine1] Address Line 1
7997
- * @param {string | null} [addressLine2] Address Line 2
7998
- * @param {string | null} [city] City
7999
- * @param {string | null} [postCode] Post Code
8000
- * @param {number | null} [trunkId] Trunk ID
8001
- * @param {string | null} [tenantId] Starter Bundle ID
8002
- * @param {string | null} [requestedPortDate] Requested Port Date
8003
- * @param {boolean | null} [asap] Port Date ASAP
8004
- * @param {string | null} [comment] Comment
8005
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
8006
- * @param {File} [cloa] CLOA (only provide on submission)
8007
- * @param {*} [options] Override http request option.
8008
- * @throws {RequiredError}
8009
- */
8010
- postCreateNumberPort: function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
8011
- return __awaiter(this, void 0, void 0, function () {
8012
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8013
- var _a, _b, _c;
8014
- return __generator(this, function (_d) {
8015
- switch (_d.label) {
8016
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options)];
8017
- case 1:
8018
- localVarAxiosArgs = _d.sent();
8019
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8020
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.postCreateNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8021
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8022
- }
8023
- });
8024
- });
8025
- },
8026
- /**
8027
- *
8028
- * @param {number} id Number Port ID
8029
- * @param {string | null} [companyName] Company Name
8030
- * @param {string | null} [addressLine1] Address Line 1
8031
- * @param {string | null} [addressLine2] Address Line 2
8032
- * @param {string | null} [city] City
8033
- * @param {string | null} [postCode] Post Code
8034
- * @param {number | null} [trunkId] Trunk ID
8035
- * @param {string | null} [tenantId] Starter Bundle ID
8036
- * @param {string | null} [requestedPortDate] Requested Port Date
8037
- * @param {boolean | null} [asap] Port Date ASAP
8038
- * @param {string | null} [comment] Comment
8039
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
8040
- * @param {File} [cloa] CLOA (only provide on submission)
8041
- * @param {*} [options] Override http request option.
8042
- * @throws {RequiredError}
8043
- */
8044
- postSubmitNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
8045
- return __awaiter(this, void 0, void 0, function () {
8046
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8047
- var _a, _b, _c;
8048
- return __generator(this, function (_d) {
8049
- switch (_d.label) {
8050
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options)];
8051
- case 1:
8052
- localVarAxiosArgs = _d.sent();
8053
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8054
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.postSubmitNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8055
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8056
- }
8057
- });
8058
- });
8059
- },
8060
- /**
8061
- *
8062
- * @param {number} id Number Port ID
8063
- * @param {string | null} [companyName] Company Name
8064
- * @param {string | null} [addressLine1] Address Line 1
8065
- * @param {string | null} [addressLine2] Address Line 2
8066
- * @param {string | null} [city] City
8067
- * @param {string | null} [postCode] Post Code
8068
- * @param {number | null} [trunkId] Trunk ID
8069
- * @param {string | null} [tenantId] Starter Bundle ID
8070
- * @param {string | null} [requestedPortDate] Requested Port Date
8071
- * @param {boolean | null} [asap] Port Date ASAP
8072
- * @param {string | null} [comment] Comment
8073
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
8074
- * @param {File} [cloa] CLOA (only provide on submission)
8075
- * @param {*} [options] Override http request option.
8076
- * @throws {RequiredError}
8077
- */
8078
- postUpdateNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
7761
+ postGetIdentity: function (options) {
8079
7762
  return __awaiter(this, void 0, void 0, function () {
8080
7763
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8081
7764
  var _a, _b, _c;
8082
7765
  return __generator(this, function (_d) {
8083
7766
  switch (_d.label) {
8084
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options)];
7767
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetIdentity(options)];
8085
7768
  case 1:
8086
7769
  localVarAxiosArgs = _d.sent();
8087
7770
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8088
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.postUpdateNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7771
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postGetIdentity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8089
7772
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8090
7773
  }
8091
7774
  });
8092
7775
  });
8093
7776
  },
8094
7777
  /**
8095
- *
8096
- * @param {number} id Number Port ID
8097
- * @param {string | null} [companyName] Company Name
8098
- * @param {string | null} [addressLine1] Address Line 1
8099
- * @param {string | null} [addressLine2] Address Line 2
8100
- * @param {string | null} [city] City
8101
- * @param {string | null} [postCode] Post Code
8102
- * @param {number | null} [trunkId] Trunk ID
8103
- * @param {string | null} [tenantId] Starter Bundle ID
8104
- * @param {string | null} [requestedPortDate] Requested Port Date
8105
- * @param {boolean | null} [asap] Port Date ASAP
8106
- * @param {string | null} [comment] Comment
8107
- * @param {number} [id2] Number Port ID
8108
- * @param {string} [customerName] Customer Name
8109
- * @param {string} [portDate] Porting Date
8110
- * @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
8111
- * @param {number} [status] Status
8112
- * @param {number | null} [ticketId] Ticket ID
8113
- * @param {*} [options] Override http request option.
8114
- * @throws {RequiredError}
8115
- */
8116
- putGetAdminNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, id2, customerName, portDate, numberRanges, status, ticketId, options) {
7778
+ * Portal Login
7779
+ * @summary Portal Login
7780
+ * @param {PortalLoginModel} [portalLoginModel] Login Credentials
7781
+ * @param {*} [options] Override http request option.
7782
+ * @throws {RequiredError}
7783
+ */
7784
+ postPortalLogin: function (portalLoginModel, options) {
8117
7785
  return __awaiter(this, void 0, void 0, function () {
8118
7786
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8119
7787
  var _a, _b, _c;
8120
7788
  return __generator(this, function (_d) {
8121
7789
  switch (_d.label) {
8122
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putGetAdminNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, id2, customerName, portDate, numberRanges, status, ticketId, options)];
7790
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postPortalLogin(portalLoginModel, options)];
8123
7791
  case 1:
8124
7792
  localVarAxiosArgs = _d.sent();
8125
7793
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8126
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NumberPortingApi.putGetAdminNumberPort']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7794
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postPortalLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8127
7795
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8128
7796
  }
8129
7797
  });
@@ -8131,335 +7799,277 @@ var NumberPortingApiFp = function (configuration) {
8131
7799
  },
8132
7800
  };
8133
7801
  };
8134
- exports.NumberPortingApiFp = NumberPortingApiFp;
7802
+ exports.OAuth20ApiFp = OAuth20ApiFp;
8135
7803
  /**
8136
- * NumberPortingApi - factory interface
7804
+ * OAuth20Api - factory interface
8137
7805
  */
8138
- var NumberPortingApiFactory = function (configuration, basePath, axios) {
8139
- var localVarFp = (0, exports.NumberPortingApiFp)(configuration);
7806
+ var OAuth20ApiFactory = function (configuration, basePath, axios) {
7807
+ var localVarFp = (0, exports.OAuth20ApiFp)(configuration);
8140
7808
  return {
8141
7809
  /**
8142
- *
8143
- * @param {number} id Number Port ID
8144
- * @param {*} [options] Override http request option.
8145
- * @throws {RequiredError}
8146
- */
8147
- deleteGetAdminNumberPort: function (id, options) {
8148
- return localVarFp.deleteGetAdminNumberPort(id, options).then(function (request) { return request(axios, basePath); });
8149
- },
8150
- /**
8151
- *
8152
- * @param {number} [pageSize] Number Of Results
8153
- * @param {number} [page] Page Number
8154
- * @param {string} [search] Search
7810
+ * Get MFA QR Code
7811
+ * @summary Get MFA QR Code
8155
7812
  * @param {*} [options] Override http request option.
8156
7813
  * @throws {RequiredError}
8157
7814
  */
8158
- getCreateNumberPort: function (pageSize, page, search, options) {
8159
- return localVarFp.getCreateNumberPort(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
7815
+ getGetMfaQrCode: function (options) {
7816
+ return localVarFp.getGetMfaQrCode(options).then(function (request) { return request(axios, basePath); });
8160
7817
  },
8161
7818
  /**
8162
- *
8163
- * @param {number} id Number Port ID
7819
+ * Get Scopes
7820
+ * @summary Get Scopes
8164
7821
  * @param {*} [options] Override http request option.
8165
7822
  * @throws {RequiredError}
8166
7823
  */
8167
- getGetAdminNumberPort: function (id, options) {
8168
- return localVarFp.getGetAdminNumberPort(id, options).then(function (request) { return request(axios, basePath); });
7824
+ getGetScopes: function (options) {
7825
+ return localVarFp.getGetScopes(options).then(function (request) { return request(axios, basePath); });
8169
7826
  },
8170
7827
  /**
8171
- *
8172
- * @param {number} [pageSize] Number Of Results
8173
- * @param {number} [page] Page Number
8174
- * @param {string} [search] Search
8175
- * @param {*} [options] Override http request option.
8176
- * @throws {RequiredError}
8177
- */
8178
- getGetAdminNumberPorts: function (pageSize, page, search, options) {
8179
- return localVarFp.getGetAdminNumberPorts(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
8180
- },
8181
- /**
8182
- *
8183
- * @param {number} id Number Port ID
7828
+ * Get an OAuth 2.0 access token
7829
+ * @summary Validates client credentials and returns access token
7830
+ * @param {string | null} [clientId] OAuth 2.0 Client ID
7831
+ * @param {string | null} [clientSecret] OAuth 2.0 Client Secret
7832
+ * @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
7833
+ * @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
7834
+ * @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
7835
+ * @param {string | null} [code] OAuth 2.0 Auth Code
7836
+ * @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
7837
+ * @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
7838
+ * @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
7839
+ * @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
7840
+ * @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
7841
+ * @param {boolean | null} [endUser] End User (Only used in Token Exchange)
8184
7842
  * @param {*} [options] Override http request option.
8185
7843
  * @throws {RequiredError}
8186
7844
  */
8187
- getUpdateNumberPort: function (id, options) {
8188
- return localVarFp.getUpdateNumberPort(id, options).then(function (request) { return request(axios, basePath); });
7845
+ postAccessToken: function (clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options) {
7846
+ return localVarFp.postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options).then(function (request) { return request(axios, basePath); });
8189
7847
  },
8190
7848
  /**
8191
- *
8192
- * @param {string | null} [companyName] Company Name
8193
- * @param {string | null} [addressLine1] Address Line 1
8194
- * @param {string | null} [addressLine2] Address Line 2
8195
- * @param {string | null} [city] City
8196
- * @param {string | null} [postCode] Post Code
8197
- * @param {number | null} [trunkId] Trunk ID
8198
- * @param {string | null} [tenantId] Starter Bundle ID
8199
- * @param {string | null} [requestedPortDate] Requested Port Date
8200
- * @param {boolean | null} [asap] Port Date ASAP
8201
- * @param {string | null} [comment] Comment
8202
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
8203
- * @param {File} [cloa] CLOA (only provide on submission)
7849
+ * Get an OAuth 2.0 auth code
7850
+ * @summary Get OAuth2.0 Auth Code
7851
+ * @param {string} clientId OAuth 2.0 Client ID
7852
+ * @param {string} responseType OAuth 2.0 Response Type
7853
+ * @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
7854
+ * @param {string} [redirectUri] OAuth 2.0 Redirect URI
7855
+ * @param {string} [state] OAuth 2.0 State
7856
+ * @param {string} [codeChallenge] OAuth 2.0 Code Challenge
7857
+ * @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
8204
7858
  * @param {*} [options] Override http request option.
8205
7859
  * @throws {RequiredError}
8206
7860
  */
8207
- postCreateNumberPort: function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
8208
- return localVarFp.postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(axios, basePath); });
7861
+ postAuthorise: function (clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options) {
7862
+ return localVarFp.postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options).then(function (request) { return request(axios, basePath); });
8209
7863
  },
8210
7864
  /**
8211
- *
8212
- * @param {number} id Number Port ID
8213
- * @param {string | null} [companyName] Company Name
8214
- * @param {string | null} [addressLine1] Address Line 1
8215
- * @param {string | null} [addressLine2] Address Line 2
8216
- * @param {string | null} [city] City
8217
- * @param {string | null} [postCode] Post Code
8218
- * @param {number | null} [trunkId] Trunk ID
8219
- * @param {string | null} [tenantId] Starter Bundle ID
8220
- * @param {string | null} [requestedPortDate] Requested Port Date
8221
- * @param {boolean | null} [asap] Port Date ASAP
8222
- * @param {string | null} [comment] Comment
8223
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
8224
- * @param {File} [cloa] CLOA (only provide on submission)
7865
+ * Get Token Identity
7866
+ * @summary Get Token Identity
8225
7867
  * @param {*} [options] Override http request option.
8226
7868
  * @throws {RequiredError}
8227
7869
  */
8228
- postSubmitNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
8229
- return localVarFp.postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(axios, basePath); });
7870
+ postGetIdentity: function (options) {
7871
+ return localVarFp.postGetIdentity(options).then(function (request) { return request(axios, basePath); });
8230
7872
  },
8231
7873
  /**
8232
- *
8233
- * @param {number} id Number Port ID
8234
- * @param {string | null} [companyName] Company Name
8235
- * @param {string | null} [addressLine1] Address Line 1
8236
- * @param {string | null} [addressLine2] Address Line 2
8237
- * @param {string | null} [city] City
8238
- * @param {string | null} [postCode] Post Code
8239
- * @param {number | null} [trunkId] Trunk ID
8240
- * @param {string | null} [tenantId] Starter Bundle ID
8241
- * @param {string | null} [requestedPortDate] Requested Port Date
8242
- * @param {boolean | null} [asap] Port Date ASAP
8243
- * @param {string | null} [comment] Comment
8244
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
8245
- * @param {File} [cloa] CLOA (only provide on submission)
7874
+ * Portal Login
7875
+ * @summary Portal Login
7876
+ * @param {PortalLoginModel} [portalLoginModel] Login Credentials
8246
7877
  * @param {*} [options] Override http request option.
8247
7878
  * @throws {RequiredError}
8248
7879
  */
8249
- postUpdateNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
8250
- return localVarFp.postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(axios, basePath); });
8251
- },
8252
- /**
8253
- *
8254
- * @param {number} id Number Port ID
8255
- * @param {string | null} [companyName] Company Name
8256
- * @param {string | null} [addressLine1] Address Line 1
8257
- * @param {string | null} [addressLine2] Address Line 2
8258
- * @param {string | null} [city] City
8259
- * @param {string | null} [postCode] Post Code
8260
- * @param {number | null} [trunkId] Trunk ID
8261
- * @param {string | null} [tenantId] Starter Bundle ID
8262
- * @param {string | null} [requestedPortDate] Requested Port Date
8263
- * @param {boolean | null} [asap] Port Date ASAP
8264
- * @param {string | null} [comment] Comment
8265
- * @param {number} [id2] Number Port ID
8266
- * @param {string} [customerName] Customer Name
8267
- * @param {string} [portDate] Porting Date
8268
- * @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
8269
- * @param {number} [status] Status
8270
- * @param {number | null} [ticketId] Ticket ID
8271
- * @param {*} [options] Override http request option.
8272
- * @throws {RequiredError}
8273
- */
8274
- putGetAdminNumberPort: function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, id2, customerName, portDate, numberRanges, status, ticketId, options) {
8275
- return localVarFp.putGetAdminNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, id2, customerName, portDate, numberRanges, status, ticketId, options).then(function (request) { return request(axios, basePath); });
7880
+ postPortalLogin: function (portalLoginModel, options) {
7881
+ return localVarFp.postPortalLogin(portalLoginModel, options).then(function (request) { return request(axios, basePath); });
8276
7882
  },
8277
7883
  };
8278
7884
  };
8279
- exports.NumberPortingApiFactory = NumberPortingApiFactory;
7885
+ exports.OAuth20ApiFactory = OAuth20ApiFactory;
8280
7886
  /**
8281
- * NumberPortingApi - object-oriented interface
7887
+ * OAuth20Api - object-oriented interface
8282
7888
  */
8283
- var NumberPortingApi = /** @class */ (function (_super) {
8284
- __extends(NumberPortingApi, _super);
8285
- function NumberPortingApi() {
7889
+ var OAuth20Api = /** @class */ (function (_super) {
7890
+ __extends(OAuth20Api, _super);
7891
+ function OAuth20Api() {
8286
7892
  return _super !== null && _super.apply(this, arguments) || this;
8287
7893
  }
8288
7894
  /**
8289
- *
8290
- * @param {number} id Number Port ID
8291
- * @param {*} [options] Override http request option.
8292
- * @throws {RequiredError}
8293
- */
8294
- NumberPortingApi.prototype.deleteGetAdminNumberPort = function (id, options) {
8295
- var _this = this;
8296
- return (0, exports.NumberPortingApiFp)(this.configuration).deleteGetAdminNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8297
- };
8298
- /**
8299
- *
8300
- * @param {number} [pageSize] Number Of Results
8301
- * @param {number} [page] Page Number
8302
- * @param {string} [search] Search
8303
- * @param {*} [options] Override http request option.
8304
- * @throws {RequiredError}
8305
- */
8306
- NumberPortingApi.prototype.getCreateNumberPort = function (pageSize, page, search, options) {
8307
- var _this = this;
8308
- return (0, exports.NumberPortingApiFp)(this.configuration).getCreateNumberPort(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
8309
- };
8310
- /**
8311
- *
8312
- * @param {number} id Number Port ID
8313
- * @param {*} [options] Override http request option.
8314
- * @throws {RequiredError}
8315
- */
8316
- NumberPortingApi.prototype.getGetAdminNumberPort = function (id, options) {
8317
- var _this = this;
8318
- return (0, exports.NumberPortingApiFp)(this.configuration).getGetAdminNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
8319
- };
8320
- /**
8321
- *
8322
- * @param {number} [pageSize] Number Of Results
8323
- * @param {number} [page] Page Number
8324
- * @param {string} [search] Search
7895
+ * Get MFA QR Code
7896
+ * @summary Get MFA QR Code
8325
7897
  * @param {*} [options] Override http request option.
8326
7898
  * @throws {RequiredError}
8327
7899
  */
8328
- NumberPortingApi.prototype.getGetAdminNumberPorts = function (pageSize, page, search, options) {
7900
+ OAuth20Api.prototype.getGetMfaQrCode = function (options) {
8329
7901
  var _this = this;
8330
- return (0, exports.NumberPortingApiFp)(this.configuration).getGetAdminNumberPorts(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
7902
+ return (0, exports.OAuth20ApiFp)(this.configuration).getGetMfaQrCode(options).then(function (request) { return request(_this.axios, _this.basePath); });
8331
7903
  };
8332
7904
  /**
8333
- *
8334
- * @param {number} id Number Port ID
7905
+ * Get Scopes
7906
+ * @summary Get Scopes
8335
7907
  * @param {*} [options] Override http request option.
8336
7908
  * @throws {RequiredError}
8337
7909
  */
8338
- NumberPortingApi.prototype.getUpdateNumberPort = function (id, options) {
7910
+ OAuth20Api.prototype.getGetScopes = function (options) {
8339
7911
  var _this = this;
8340
- return (0, exports.NumberPortingApiFp)(this.configuration).getUpdateNumberPort(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
7912
+ return (0, exports.OAuth20ApiFp)(this.configuration).getGetScopes(options).then(function (request) { return request(_this.axios, _this.basePath); });
8341
7913
  };
8342
7914
  /**
8343
- *
8344
- * @param {string | null} [companyName] Company Name
8345
- * @param {string | null} [addressLine1] Address Line 1
8346
- * @param {string | null} [addressLine2] Address Line 2
8347
- * @param {string | null} [city] City
8348
- * @param {string | null} [postCode] Post Code
8349
- * @param {number | null} [trunkId] Trunk ID
8350
- * @param {string | null} [tenantId] Starter Bundle ID
8351
- * @param {string | null} [requestedPortDate] Requested Port Date
8352
- * @param {boolean | null} [asap] Port Date ASAP
8353
- * @param {string | null} [comment] Comment
8354
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
8355
- * @param {File} [cloa] CLOA (only provide on submission)
7915
+ * Get an OAuth 2.0 access token
7916
+ * @summary Validates client credentials and returns access token
7917
+ * @param {string | null} [clientId] OAuth 2.0 Client ID
7918
+ * @param {string | null} [clientSecret] OAuth 2.0 Client Secret
7919
+ * @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
7920
+ * @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
7921
+ * @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
7922
+ * @param {string | null} [code] OAuth 2.0 Auth Code
7923
+ * @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
7924
+ * @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
7925
+ * @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
7926
+ * @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
7927
+ * @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
7928
+ * @param {boolean | null} [endUser] End User (Only used in Token Exchange)
8356
7929
  * @param {*} [options] Override http request option.
8357
7930
  * @throws {RequiredError}
8358
7931
  */
8359
- NumberPortingApi.prototype.postCreateNumberPort = function (companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
7932
+ OAuth20Api.prototype.postAccessToken = function (clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options) {
8360
7933
  var _this = this;
8361
- return (0, exports.NumberPortingApiFp)(this.configuration).postCreateNumberPort(companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(_this.axios, _this.basePath); });
7934
+ return (0, exports.OAuth20ApiFp)(this.configuration).postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options).then(function (request) { return request(_this.axios, _this.basePath); });
8362
7935
  };
8363
7936
  /**
8364
- *
8365
- * @param {number} id Number Port ID
8366
- * @param {string | null} [companyName] Company Name
8367
- * @param {string | null} [addressLine1] Address Line 1
8368
- * @param {string | null} [addressLine2] Address Line 2
8369
- * @param {string | null} [city] City
8370
- * @param {string | null} [postCode] Post Code
8371
- * @param {number | null} [trunkId] Trunk ID
8372
- * @param {string | null} [tenantId] Starter Bundle ID
8373
- * @param {string | null} [requestedPortDate] Requested Port Date
8374
- * @param {boolean | null} [asap] Port Date ASAP
8375
- * @param {string | null} [comment] Comment
8376
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
8377
- * @param {File} [cloa] CLOA (only provide on submission)
7937
+ * Get an OAuth 2.0 auth code
7938
+ * @summary Get OAuth2.0 Auth Code
7939
+ * @param {string} clientId OAuth 2.0 Client ID
7940
+ * @param {string} responseType OAuth 2.0 Response Type
7941
+ * @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
7942
+ * @param {string} [redirectUri] OAuth 2.0 Redirect URI
7943
+ * @param {string} [state] OAuth 2.0 State
7944
+ * @param {string} [codeChallenge] OAuth 2.0 Code Challenge
7945
+ * @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
8378
7946
  * @param {*} [options] Override http request option.
8379
7947
  * @throws {RequiredError}
8380
7948
  */
8381
- NumberPortingApi.prototype.postSubmitNumberPort = function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
7949
+ OAuth20Api.prototype.postAuthorise = function (clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options) {
8382
7950
  var _this = this;
8383
- return (0, exports.NumberPortingApiFp)(this.configuration).postSubmitNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(_this.axios, _this.basePath); });
7951
+ return (0, exports.OAuth20ApiFp)(this.configuration).postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options).then(function (request) { return request(_this.axios, _this.basePath); });
8384
7952
  };
8385
7953
  /**
8386
- *
8387
- * @param {number} id Number Port ID
8388
- * @param {string | null} [companyName] Company Name
8389
- * @param {string | null} [addressLine1] Address Line 1
8390
- * @param {string | null} [addressLine2] Address Line 2
8391
- * @param {string | null} [city] City
8392
- * @param {string | null} [postCode] Post Code
8393
- * @param {number | null} [trunkId] Trunk ID
8394
- * @param {string | null} [tenantId] Starter Bundle ID
8395
- * @param {string | null} [requestedPortDate] Requested Port Date
8396
- * @param {boolean | null} [asap] Port Date ASAP
8397
- * @param {string | null} [comment] Comment
8398
- * @param {Array<NumberPortRangeRequestDTO>} [numberRanges] Number Ranges
8399
- * @param {File} [cloa] CLOA (only provide on submission)
7954
+ * Get Token Identity
7955
+ * @summary Get Token Identity
8400
7956
  * @param {*} [options] Override http request option.
8401
7957
  * @throws {RequiredError}
8402
7958
  */
8403
- NumberPortingApi.prototype.postUpdateNumberPort = function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options) {
7959
+ OAuth20Api.prototype.postGetIdentity = function (options) {
8404
7960
  var _this = this;
8405
- return (0, exports.NumberPortingApiFp)(this.configuration).postUpdateNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, numberRanges, cloa, options).then(function (request) { return request(_this.axios, _this.basePath); });
7961
+ return (0, exports.OAuth20ApiFp)(this.configuration).postGetIdentity(options).then(function (request) { return request(_this.axios, _this.basePath); });
8406
7962
  };
8407
7963
  /**
8408
- *
8409
- * @param {number} id Number Port ID
8410
- * @param {string | null} [companyName] Company Name
8411
- * @param {string | null} [addressLine1] Address Line 1
8412
- * @param {string | null} [addressLine2] Address Line 2
8413
- * @param {string | null} [city] City
8414
- * @param {string | null} [postCode] Post Code
8415
- * @param {number | null} [trunkId] Trunk ID
8416
- * @param {string | null} [tenantId] Starter Bundle ID
8417
- * @param {string | null} [requestedPortDate] Requested Port Date
8418
- * @param {boolean | null} [asap] Port Date ASAP
8419
- * @param {string | null} [comment] Comment
8420
- * @param {number} [id2] Number Port ID
8421
- * @param {string} [customerName] Customer Name
8422
- * @param {string} [portDate] Porting Date
8423
- * @param {Array<NumberPortRangeDTO>} [numberRanges] Number Ranges
8424
- * @param {number} [status] Status
8425
- * @param {number | null} [ticketId] Ticket ID
7964
+ * Portal Login
7965
+ * @summary Portal Login
7966
+ * @param {PortalLoginModel} [portalLoginModel] Login Credentials
8426
7967
  * @param {*} [options] Override http request option.
8427
7968
  * @throws {RequiredError}
8428
7969
  */
8429
- NumberPortingApi.prototype.putGetAdminNumberPort = function (id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, id2, customerName, portDate, numberRanges, status, ticketId, options) {
7970
+ OAuth20Api.prototype.postPortalLogin = function (portalLoginModel, options) {
8430
7971
  var _this = this;
8431
- return (0, exports.NumberPortingApiFp)(this.configuration).putGetAdminNumberPort(id, companyName, addressLine1, addressLine2, city, postCode, trunkId, tenantId, requestedPortDate, asap, comment, id2, customerName, portDate, numberRanges, status, ticketId, options).then(function (request) { return request(_this.axios, _this.basePath); });
7972
+ return (0, exports.OAuth20ApiFp)(this.configuration).postPortalLogin(portalLoginModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
8432
7973
  };
8433
- return NumberPortingApi;
7974
+ return OAuth20Api;
8434
7975
  }(base_1.BaseAPI));
8435
- exports.NumberPortingApi = NumberPortingApi;
7976
+ exports.OAuth20Api = OAuth20Api;
7977
+ exports.PostAccessTokenGrantTypeEnum = {
7978
+ ClientCredentials: 'client_credentials',
7979
+ Code: 'code',
7980
+ RefreshToken: 'refresh_token',
7981
+ AuthorizationCode: 'authorization_code',
7982
+ MsAuth: 'ms_auth',
7983
+ TokenExchange: 'token_exchange',
7984
+ Password: 'password'
7985
+ };
7986
+ exports.PostAccessTokenScopeEnum = {
7987
+ Star: '*',
7988
+ Fdps: 'fdps',
7989
+ Scope: 'scope',
7990
+ Portal: 'portal',
7991
+ TcxWizard: 'tcx_wizard',
7992
+ AccountsRead: 'accounts.read',
7993
+ AccountsWrite: 'accounts.write',
7994
+ PricingRead: 'pricing.read',
7995
+ OrdersRead: 'orders.read',
7996
+ OrdersWrite: 'orders.write',
7997
+ ProductsRead: 'products.read',
7998
+ ProvisioningRead: 'provisioning.read',
7999
+ ProvisioningWrite: 'provisioning.write',
8000
+ TrunksRead: 'trunks.read',
8001
+ TrunksWrite: 'trunks.write',
8002
+ TcxIntegrationsRead: 'tcx_integrations.read',
8003
+ TcxIntegrationsWrite: 'tcx_integrations.write',
8004
+ TcxLicenceDetailsRead: 'tcx_licence_details.read',
8005
+ TcxInstallationsRead: 'tcx_installations.read',
8006
+ TcxInstallationsWrite: 'tcx_installations.write',
8007
+ TcxMtRead: 'tcx_mt.read',
8008
+ TcxMtWrite: 'tcx_mt.write',
8009
+ TicketsRead: 'tickets.read',
8010
+ TicketsWrite: 'tickets.write'
8011
+ };
8012
+ exports.PostAccessTokenTokenExchangeTypeEnum = {
8013
+ TcxWizard: 'tcx_wizard',
8014
+ Portal: 'portal'
8015
+ };
8016
+ exports.PostAuthoriseScopeEnum = {
8017
+ Star: '*',
8018
+ Fdps: 'fdps',
8019
+ Scope: 'scope',
8020
+ Portal: 'portal',
8021
+ TcxWizard: 'tcx_wizard',
8022
+ AccountsRead: 'accounts.read',
8023
+ AccountsWrite: 'accounts.write',
8024
+ PricingRead: 'pricing.read',
8025
+ OrdersRead: 'orders.read',
8026
+ OrdersWrite: 'orders.write',
8027
+ ProductsRead: 'products.read',
8028
+ ProvisioningRead: 'provisioning.read',
8029
+ ProvisioningWrite: 'provisioning.write',
8030
+ TrunksRead: 'trunks.read',
8031
+ TrunksWrite: 'trunks.write',
8032
+ TcxIntegrationsRead: 'tcx_integrations.read',
8033
+ TcxIntegrationsWrite: 'tcx_integrations.write',
8034
+ TcxLicenceDetailsRead: 'tcx_licence_details.read',
8035
+ TcxInstallationsRead: 'tcx_installations.read',
8036
+ TcxInstallationsWrite: 'tcx_installations.write',
8037
+ TcxMtRead: 'tcx_mt.read',
8038
+ TcxMtWrite: 'tcx_mt.write',
8039
+ TicketsRead: 'tickets.read',
8040
+ TicketsWrite: 'tickets.write'
8041
+ };
8436
8042
  /**
8437
- * OAuth20Api - axios parameter creator
8043
+ * OrdersApi - axios parameter creator
8438
8044
  */
8439
- var OAuth20ApiAxiosParamCreator = function (configuration) {
8045
+ var OrdersApiAxiosParamCreator = function (configuration) {
8440
8046
  var _this = this;
8441
8047
  return {
8442
8048
  /**
8443
- * Get MFA QR Code
8444
- * @summary Get MFA QR Code
8049
+ * Delete Orders (Beta)
8050
+ * @summary Delete Orders (Beta)
8051
+ * @param {number} id Order ID
8445
8052
  * @param {*} [options] Override http request option.
8446
8053
  * @throws {RequiredError}
8447
8054
  */
8448
- getGetMfaQrCode: function () {
8055
+ deleteUpdateOrder: function (id_1) {
8449
8056
  var args_1 = [];
8450
- for (var _i = 0; _i < arguments.length; _i++) {
8451
- args_1[_i] = arguments[_i];
8057
+ for (var _i = 1; _i < arguments.length; _i++) {
8058
+ args_1[_i - 1] = arguments[_i];
8452
8059
  }
8453
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
8060
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8454
8061
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8455
8062
  if (options === void 0) { options = {}; }
8456
8063
  return __generator(this, function (_a) {
8457
- localVarPath = "/oauth2/qr/code";
8064
+ // verify required parameter 'id' is not null or undefined
8065
+ (0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
8066
+ localVarPath = "/orders/{id}"
8067
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8458
8068
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8459
8069
  if (configuration) {
8460
8070
  baseOptions = configuration.baseOptions;
8461
8071
  }
8462
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8072
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
8463
8073
  localVarHeaderParameter = {};
8464
8074
  localVarQueryParameter = {};
8465
8075
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -8473,21 +8083,25 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
8473
8083
  });
8474
8084
  },
8475
8085
  /**
8476
- * Get Scopes
8477
- * @summary Get Scopes
8086
+ * Get Editable Order (Admin)
8087
+ * @summary Get Editable Order (Admin)
8088
+ * @param {number} id Order ID
8478
8089
  * @param {*} [options] Override http request option.
8479
8090
  * @throws {RequiredError}
8480
8091
  */
8481
- getGetScopes: function () {
8092
+ getGetAdminEditableOrder: function (id_1) {
8482
8093
  var args_1 = [];
8483
- for (var _i = 0; _i < arguments.length; _i++) {
8484
- args_1[_i] = arguments[_i];
8094
+ for (var _i = 1; _i < arguments.length; _i++) {
8095
+ args_1[_i - 1] = arguments[_i];
8485
8096
  }
8486
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
8097
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8487
8098
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8488
8099
  if (options === void 0) { options = {}; }
8489
8100
  return __generator(this, function (_a) {
8490
- localVarPath = "/oauth2/scopes";
8101
+ // verify required parameter 'id' is not null or undefined
8102
+ (0, common_1.assertParamExists)('getGetAdminEditableOrder', 'id', id);
8103
+ localVarPath = "/admin/orders/{id}/views/editable"
8104
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8491
8105
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8492
8106
  if (configuration) {
8493
8107
  baseOptions = configuration.baseOptions;
@@ -8506,82 +8120,35 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
8506
8120
  });
8507
8121
  },
8508
8122
  /**
8509
- * Get an OAuth 2.0 access token
8510
- * @summary Validates client credentials and returns access token
8511
- * @param {string | null} [clientId] OAuth 2.0 Client ID
8512
- * @param {string | null} [clientSecret] OAuth 2.0 Client Secret
8513
- * @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
8514
- * @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
8515
- * @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
8516
- * @param {string | null} [code] OAuth 2.0 Auth Code
8517
- * @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
8518
- * @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
8519
- * @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
8520
- * @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
8521
- * @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
8522
- * @param {boolean | null} [endUser] End User (Only used in Token Exchange)
8523
- * @param {*} [options] Override http request option.
8123
+ * Get Editable Order (Beta)
8124
+ * @summary Get Editable Order (Beta)
8125
+ * @param {number} id Order ID
8126
+ * @param {*} [options] Override http request option.
8524
8127
  * @throws {RequiredError}
8525
8128
  */
8526
- postAccessToken: function (clientId_1, clientSecret_1, grantType_1, scope_1, redirectUri_1, code_1, refreshToken_1, codeVerifier_1, token_1, tokenExchangeType_1, licenceKey_1, endUser_1) {
8129
+ getGetEditableOrder: function (id_1) {
8527
8130
  var args_1 = [];
8528
- for (var _i = 12; _i < arguments.length; _i++) {
8529
- args_1[_i - 12] = arguments[_i];
8131
+ for (var _i = 1; _i < arguments.length; _i++) {
8132
+ args_1[_i - 1] = arguments[_i];
8530
8133
  }
8531
- return __awaiter(_this, __spreadArray([clientId_1, clientSecret_1, grantType_1, scope_1, redirectUri_1, code_1, refreshToken_1, codeVerifier_1, token_1, tokenExchangeType_1, licenceKey_1, endUser_1], args_1, true), void 0, function (clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options) {
8532
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
8134
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
8135
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8533
8136
  if (options === void 0) { options = {}; }
8534
8137
  return __generator(this, function (_a) {
8535
- localVarPath = "/oauth2/access_token";
8138
+ // verify required parameter 'id' is not null or undefined
8139
+ (0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
8140
+ localVarPath = "/orders/{id}/views/editable"
8141
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8536
8142
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8537
8143
  if (configuration) {
8538
8144
  baseOptions = configuration.baseOptions;
8539
8145
  }
8540
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8146
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8541
8147
  localVarHeaderParameter = {};
8542
8148
  localVarQueryParameter = {};
8543
- localVarFormParams = new URLSearchParams();
8544
- if (clientId !== undefined) {
8545
- localVarFormParams.set('client_id', clientId);
8546
- }
8547
- if (clientSecret !== undefined) {
8548
- localVarFormParams.set('client_secret', clientSecret);
8549
- }
8550
- if (grantType !== undefined) {
8551
- localVarFormParams.set('grant_type', grantType);
8552
- }
8553
- if (scope !== undefined) {
8554
- localVarFormParams.set('scope', scope);
8555
- }
8556
- if (redirectUri !== undefined) {
8557
- localVarFormParams.set('redirect_uri', redirectUri);
8558
- }
8559
- if (code !== undefined) {
8560
- localVarFormParams.set('code', code);
8561
- }
8562
- if (refreshToken !== undefined) {
8563
- localVarFormParams.set('refresh_token', refreshToken);
8564
- }
8565
- if (codeVerifier !== undefined) {
8566
- localVarFormParams.set('code_verifier', codeVerifier);
8567
- }
8568
- if (token !== undefined) {
8569
- localVarFormParams.set('token', token);
8570
- }
8571
- if (tokenExchangeType !== undefined) {
8572
- localVarFormParams.set('token_exchange_type', tokenExchangeType);
8573
- }
8574
- if (licenceKey !== undefined) {
8575
- localVarFormParams.set('licence_key', licenceKey);
8576
- }
8577
- if (endUser !== undefined) {
8578
- localVarFormParams.set('end_user', endUser);
8579
- }
8580
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
8581
8149
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8582
8150
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8583
8151
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8584
- localVarRequestOptions.data = localVarFormParams.toString();
8585
8152
  return [2 /*return*/, {
8586
8153
  url: (0, common_1.toPathString)(localVarUrlObj),
8587
8154
  options: localVarRequestOptions,
@@ -8590,61 +8157,55 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
8590
8157
  });
8591
8158
  },
8592
8159
  /**
8593
- * Get an OAuth 2.0 auth code
8594
- * @summary Get OAuth2.0 Auth Code
8595
- * @param {string} clientId OAuth 2.0 Client ID
8596
- * @param {string} responseType OAuth 2.0 Response Type
8597
- * @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
8598
- * @param {string} [redirectUri] OAuth 2.0 Redirect URI
8599
- * @param {string} [state] OAuth 2.0 State
8600
- * @param {string} [codeChallenge] OAuth 2.0 Code Challenge
8601
- * @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
8160
+ * Get Orders (Beta)
8161
+ * @summary Get Orders (Beta)
8162
+ * @param {number} [pageSize] Number Of Results
8163
+ * @param {number} [page] Page Number
8164
+ * @param {string} [search] Search
8165
+ * @param {boolean | null} [fulfillable] Fulfillable
8166
+ * @param {GetGetOrdersStatusEnum} [status] Status
8167
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
8168
+ * @param {number | null} [customerId] Customer ID
8602
8169
  * @param {*} [options] Override http request option.
8603
8170
  * @throws {RequiredError}
8604
8171
  */
8605
- postAuthorise: function (clientId_1, responseType_1, scope_1, redirectUri_1, state_1, codeChallenge_1, codeChallengeMethod_1) {
8172
+ getGetOrders: function (pageSize_1, page_1, search_1, fulfillable_1, status_1, filter_1, customerId_1) {
8606
8173
  var args_1 = [];
8607
8174
  for (var _i = 7; _i < arguments.length; _i++) {
8608
8175
  args_1[_i - 7] = arguments[_i];
8609
8176
  }
8610
- return __awaiter(_this, __spreadArray([clientId_1, responseType_1, scope_1, redirectUri_1, state_1, codeChallenge_1, codeChallengeMethod_1], args_1, true), void 0, function (clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options) {
8177
+ return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1, fulfillable_1, status_1, filter_1, customerId_1], args_1, true), void 0, function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
8611
8178
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8612
8179
  if (options === void 0) { options = {}; }
8613
8180
  return __generator(this, function (_a) {
8614
- // verify required parameter 'clientId' is not null or undefined
8615
- (0, common_1.assertParamExists)('postAuthorise', 'clientId', clientId);
8616
- // verify required parameter 'responseType' is not null or undefined
8617
- (0, common_1.assertParamExists)('postAuthorise', 'responseType', responseType);
8618
- // verify required parameter 'scope' is not null or undefined
8619
- (0, common_1.assertParamExists)('postAuthorise', 'scope', scope);
8620
- localVarPath = "/oauth2/authorise";
8181
+ localVarPath = "/orders";
8621
8182
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8622
8183
  if (configuration) {
8623
8184
  baseOptions = configuration.baseOptions;
8624
8185
  }
8625
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8186
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8626
8187
  localVarHeaderParameter = {};
8627
8188
  localVarQueryParameter = {};
8628
- if (clientId !== undefined) {
8629
- localVarQueryParameter['client_id'] = clientId;
8189
+ if (pageSize !== undefined) {
8190
+ localVarQueryParameter['pageSize'] = pageSize;
8630
8191
  }
8631
- if (responseType !== undefined) {
8632
- localVarQueryParameter['response_type'] = responseType;
8192
+ if (page !== undefined) {
8193
+ localVarQueryParameter['page'] = page;
8633
8194
  }
8634
- if (redirectUri !== undefined) {
8635
- localVarQueryParameter['redirect_uri'] = redirectUri;
8195
+ if (search !== undefined) {
8196
+ localVarQueryParameter['search'] = search;
8636
8197
  }
8637
- if (scope !== undefined) {
8638
- localVarQueryParameter['scope'] = scope;
8198
+ if (fulfillable !== undefined) {
8199
+ localVarQueryParameter['fulfillable'] = fulfillable;
8639
8200
  }
8640
- if (state !== undefined) {
8641
- localVarQueryParameter['state'] = state;
8201
+ if (status !== undefined) {
8202
+ localVarQueryParameter['status'] = status;
8642
8203
  }
8643
- if (codeChallenge !== undefined) {
8644
- localVarQueryParameter['code_challenge'] = codeChallenge;
8204
+ if (filter !== undefined) {
8205
+ localVarQueryParameter['filter'] = filter;
8645
8206
  }
8646
- if (codeChallengeMethod !== undefined) {
8647
- localVarQueryParameter['code_challenge_method'] = codeChallengeMethod;
8207
+ if (customerId !== undefined) {
8208
+ localVarQueryParameter['customerId'] = customerId;
8648
8209
  }
8649
8210
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8650
8211
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -8657,21 +8218,23 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
8657
8218
  });
8658
8219
  },
8659
8220
  /**
8660
- * Get Token Identity
8661
- * @summary Get Token Identity
8221
+ * Create An Order (Admin)
8222
+ * @summary Create An Order (Admin)
8223
+ * @param {boolean} [readonly] Readonly Order
8224
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8662
8225
  * @param {*} [options] Override http request option.
8663
8226
  * @throws {RequiredError}
8664
8227
  */
8665
- postGetIdentity: function () {
8228
+ postCreateAdminOrder: function (readonly_1, adminOrderRequestDTO_1) {
8666
8229
  var args_1 = [];
8667
- for (var _i = 0; _i < arguments.length; _i++) {
8668
- args_1[_i] = arguments[_i];
8230
+ for (var _i = 2; _i < arguments.length; _i++) {
8231
+ args_1[_i - 2] = arguments[_i];
8669
8232
  }
8670
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
8233
+ return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
8671
8234
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8672
8235
  if (options === void 0) { options = {}; }
8673
8236
  return __generator(this, function (_a) {
8674
- localVarPath = "/oauth2/me";
8237
+ localVarPath = "/admin/orders";
8675
8238
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8676
8239
  if (configuration) {
8677
8240
  baseOptions = configuration.baseOptions;
@@ -8679,9 +8242,14 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
8679
8242
  localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8680
8243
  localVarHeaderParameter = {};
8681
8244
  localVarQueryParameter = {};
8245
+ if (readonly !== undefined) {
8246
+ localVarQueryParameter['readonly'] = readonly;
8247
+ }
8248
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8682
8249
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8683
8250
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8684
8251
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8252
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
8685
8253
  return [2 /*return*/, {
8686
8254
  url: (0, common_1.toPathString)(localVarUrlObj),
8687
8255
  options: localVarRequestOptions,
@@ -8690,22 +8258,23 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
8690
8258
  });
8691
8259
  },
8692
8260
  /**
8693
- * Portal Login
8694
- * @summary Portal Login
8695
- * @param {PortalLoginModel} [portalLoginModel] Login Credentials
8261
+ * Create An Order (Beta)
8262
+ * @summary Create An Order (Beta)
8263
+ * @param {boolean} [readonly] Readonly Order
8264
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8696
8265
  * @param {*} [options] Override http request option.
8697
8266
  * @throws {RequiredError}
8698
8267
  */
8699
- postPortalLogin: function (portalLoginModel_1) {
8268
+ postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
8700
8269
  var args_1 = [];
8701
- for (var _i = 1; _i < arguments.length; _i++) {
8702
- args_1[_i - 1] = arguments[_i];
8270
+ for (var _i = 2; _i < arguments.length; _i++) {
8271
+ args_1[_i - 2] = arguments[_i];
8703
8272
  }
8704
- return __awaiter(_this, __spreadArray([portalLoginModel_1], args_1, true), void 0, function (portalLoginModel, options) {
8273
+ return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
8705
8274
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8706
8275
  if (options === void 0) { options = {}; }
8707
8276
  return __generator(this, function (_a) {
8708
- localVarPath = "/oauth2/portal/login";
8277
+ localVarPath = "/orders";
8709
8278
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8710
8279
  if (configuration) {
8711
8280
  baseOptions = configuration.baseOptions;
@@ -8713,11 +8282,14 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
8713
8282
  localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8714
8283
  localVarHeaderParameter = {};
8715
8284
  localVarQueryParameter = {};
8285
+ if (readonly !== undefined) {
8286
+ localVarQueryParameter['readonly'] = readonly;
8287
+ }
8716
8288
  localVarHeaderParameter['Content-Type'] = 'application/json';
8717
8289
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8718
8290
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8719
8291
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8720
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(portalLoginModel, localVarRequestOptions, configuration);
8292
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
8721
8293
  return [2 /*return*/, {
8722
8294
  url: (0, common_1.toPathString)(localVarUrlObj),
8723
8295
  options: localVarRequestOptions,
@@ -8725,992 +8297,327 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
8725
8297
  });
8726
8298
  });
8727
8299
  },
8728
- };
8729
- };
8730
- exports.OAuth20ApiAxiosParamCreator = OAuth20ApiAxiosParamCreator;
8731
- /**
8732
- * OAuth20Api - functional programming interface
8733
- */
8734
- var OAuth20ApiFp = function (configuration) {
8735
- var localVarAxiosParamCreator = (0, exports.OAuth20ApiAxiosParamCreator)(configuration);
8736
- return {
8737
8300
  /**
8738
- * Get MFA QR Code
8739
- * @summary Get MFA QR Code
8301
+ * Update An Order (Admin)
8302
+ * @summary Update An Order (Admin)
8303
+ * @param {number} id Order ID
8304
+ * @param {boolean} [readonly] Readonly Order
8305
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8740
8306
  * @param {*} [options] Override http request option.
8741
8307
  * @throws {RequiredError}
8742
8308
  */
8743
- getGetMfaQrCode: function (options) {
8744
- return __awaiter(this, void 0, void 0, function () {
8745
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8746
- var _a, _b, _c;
8747
- return __generator(this, function (_d) {
8748
- switch (_d.label) {
8749
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetMfaQrCode(options)];
8750
- case 1:
8751
- localVarAxiosArgs = _d.sent();
8752
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8753
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.getGetMfaQrCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8754
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8309
+ putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
8310
+ var args_1 = [];
8311
+ for (var _i = 3; _i < arguments.length; _i++) {
8312
+ args_1[_i - 3] = arguments[_i];
8313
+ }
8314
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
8315
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8316
+ if (options === void 0) { options = {}; }
8317
+ return __generator(this, function (_a) {
8318
+ // verify required parameter 'id' is not null or undefined
8319
+ (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
8320
+ localVarPath = "/admin/orders/{id}"
8321
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8322
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8323
+ if (configuration) {
8324
+ baseOptions = configuration.baseOptions;
8325
+ }
8326
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
8327
+ localVarHeaderParameter = {};
8328
+ localVarQueryParameter = {};
8329
+ if (readonly !== undefined) {
8330
+ localVarQueryParameter['readonly'] = readonly;
8755
8331
  }
8332
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8333
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8334
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8335
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8336
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
8337
+ return [2 /*return*/, {
8338
+ url: (0, common_1.toPathString)(localVarUrlObj),
8339
+ options: localVarRequestOptions,
8340
+ }];
8756
8341
  });
8757
8342
  });
8758
8343
  },
8759
8344
  /**
8760
- * Get Scopes
8761
- * @summary Get Scopes
8345
+ * Update An Order (Beta)
8346
+ * @summary Update An Order (Beta)
8347
+ * @param {number} id Order ID
8348
+ * @param {boolean} [readonly] Readonly Order
8349
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8762
8350
  * @param {*} [options] Override http request option.
8763
8351
  * @throws {RequiredError}
8764
8352
  */
8765
- getGetScopes: function (options) {
8766
- return __awaiter(this, void 0, void 0, function () {
8767
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8768
- var _a, _b, _c;
8769
- return __generator(this, function (_d) {
8770
- switch (_d.label) {
8771
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetScopes(options)];
8772
- case 1:
8773
- localVarAxiosArgs = _d.sent();
8774
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8775
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.getGetScopes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8776
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8777
- }
8778
- });
8779
- });
8780
- },
8781
- /**
8782
- * Get an OAuth 2.0 access token
8783
- * @summary Validates client credentials and returns access token
8784
- * @param {string | null} [clientId] OAuth 2.0 Client ID
8785
- * @param {string | null} [clientSecret] OAuth 2.0 Client Secret
8786
- * @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
8787
- * @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
8788
- * @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
8789
- * @param {string | null} [code] OAuth 2.0 Auth Code
8790
- * @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
8791
- * @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
8792
- * @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
8793
- * @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
8794
- * @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
8795
- * @param {boolean | null} [endUser] End User (Only used in Token Exchange)
8353
+ putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
8354
+ var args_1 = [];
8355
+ for (var _i = 3; _i < arguments.length; _i++) {
8356
+ args_1[_i - 3] = arguments[_i];
8357
+ }
8358
+ return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
8359
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8360
+ if (options === void 0) { options = {}; }
8361
+ return __generator(this, function (_a) {
8362
+ // verify required parameter 'id' is not null or undefined
8363
+ (0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
8364
+ localVarPath = "/orders/{id}"
8365
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
8366
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8367
+ if (configuration) {
8368
+ baseOptions = configuration.baseOptions;
8369
+ }
8370
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
8371
+ localVarHeaderParameter = {};
8372
+ localVarQueryParameter = {};
8373
+ if (readonly !== undefined) {
8374
+ localVarQueryParameter['readonly'] = readonly;
8375
+ }
8376
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8377
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8378
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8379
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8380
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
8381
+ return [2 /*return*/, {
8382
+ url: (0, common_1.toPathString)(localVarUrlObj),
8383
+ options: localVarRequestOptions,
8384
+ }];
8385
+ });
8386
+ });
8387
+ },
8388
+ };
8389
+ };
8390
+ exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
8391
+ /**
8392
+ * OrdersApi - functional programming interface
8393
+ */
8394
+ var OrdersApiFp = function (configuration) {
8395
+ var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
8396
+ return {
8397
+ /**
8398
+ * Delete Orders (Beta)
8399
+ * @summary Delete Orders (Beta)
8400
+ * @param {number} id Order ID
8796
8401
  * @param {*} [options] Override http request option.
8797
8402
  * @throws {RequiredError}
8798
8403
  */
8799
- postAccessToken: function (clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options) {
8404
+ deleteUpdateOrder: function (id, options) {
8800
8405
  return __awaiter(this, void 0, void 0, function () {
8801
8406
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8802
8407
  var _a, _b, _c;
8803
8408
  return __generator(this, function (_d) {
8804
8409
  switch (_d.label) {
8805
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options)];
8410
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
8806
8411
  case 1:
8807
8412
  localVarAxiosArgs = _d.sent();
8808
8413
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8809
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postAccessToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8414
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8810
8415
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8811
8416
  }
8812
8417
  });
8813
8418
  });
8814
8419
  },
8815
8420
  /**
8816
- * Get an OAuth 2.0 auth code
8817
- * @summary Get OAuth2.0 Auth Code
8818
- * @param {string} clientId OAuth 2.0 Client ID
8819
- * @param {string} responseType OAuth 2.0 Response Type
8820
- * @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
8821
- * @param {string} [redirectUri] OAuth 2.0 Redirect URI
8822
- * @param {string} [state] OAuth 2.0 State
8823
- * @param {string} [codeChallenge] OAuth 2.0 Code Challenge
8824
- * @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
8421
+ * Get Editable Order (Admin)
8422
+ * @summary Get Editable Order (Admin)
8423
+ * @param {number} id Order ID
8825
8424
  * @param {*} [options] Override http request option.
8826
8425
  * @throws {RequiredError}
8827
8426
  */
8828
- postAuthorise: function (clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options) {
8427
+ getGetAdminEditableOrder: function (id, options) {
8829
8428
  return __awaiter(this, void 0, void 0, function () {
8830
8429
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8831
8430
  var _a, _b, _c;
8832
8431
  return __generator(this, function (_d) {
8833
8432
  switch (_d.label) {
8834
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options)];
8433
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminEditableOrder(id, options)];
8835
8434
  case 1:
8836
8435
  localVarAxiosArgs = _d.sent();
8837
8436
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8838
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postAuthorise']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8437
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8839
8438
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8840
8439
  }
8841
8440
  });
8842
8441
  });
8843
8442
  },
8844
8443
  /**
8845
- * Get Token Identity
8846
- * @summary Get Token Identity
8444
+ * Get Editable Order (Beta)
8445
+ * @summary Get Editable Order (Beta)
8446
+ * @param {number} id Order ID
8847
8447
  * @param {*} [options] Override http request option.
8848
8448
  * @throws {RequiredError}
8849
8449
  */
8850
- postGetIdentity: function (options) {
8450
+ getGetEditableOrder: function (id, options) {
8851
8451
  return __awaiter(this, void 0, void 0, function () {
8852
8452
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8853
8453
  var _a, _b, _c;
8854
8454
  return __generator(this, function (_d) {
8855
8455
  switch (_d.label) {
8856
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetIdentity(options)];
8456
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
8857
8457
  case 1:
8858
8458
  localVarAxiosArgs = _d.sent();
8859
8459
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8860
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postGetIdentity']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8460
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8861
8461
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8862
8462
  }
8863
8463
  });
8864
8464
  });
8865
8465
  },
8866
8466
  /**
8867
- * Portal Login
8868
- * @summary Portal Login
8869
- * @param {PortalLoginModel} [portalLoginModel] Login Credentials
8467
+ * Get Orders (Beta)
8468
+ * @summary Get Orders (Beta)
8469
+ * @param {number} [pageSize] Number Of Results
8470
+ * @param {number} [page] Page Number
8471
+ * @param {string} [search] Search
8472
+ * @param {boolean | null} [fulfillable] Fulfillable
8473
+ * @param {GetGetOrdersStatusEnum} [status] Status
8474
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
8475
+ * @param {number | null} [customerId] Customer ID
8870
8476
  * @param {*} [options] Override http request option.
8871
8477
  * @throws {RequiredError}
8872
8478
  */
8873
- postPortalLogin: function (portalLoginModel, options) {
8479
+ getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
8874
8480
  return __awaiter(this, void 0, void 0, function () {
8875
8481
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8876
8482
  var _a, _b, _c;
8877
8483
  return __generator(this, function (_d) {
8878
8484
  switch (_d.label) {
8879
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postPortalLogin(portalLoginModel, options)];
8485
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options)];
8880
8486
  case 1:
8881
8487
  localVarAxiosArgs = _d.sent();
8882
8488
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8883
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postPortalLogin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8489
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8884
8490
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8885
8491
  }
8886
8492
  });
8887
8493
  });
8888
8494
  },
8889
- };
8890
- };
8891
- exports.OAuth20ApiFp = OAuth20ApiFp;
8892
- /**
8893
- * OAuth20Api - factory interface
8894
- */
8895
- var OAuth20ApiFactory = function (configuration, basePath, axios) {
8896
- var localVarFp = (0, exports.OAuth20ApiFp)(configuration);
8897
- return {
8898
8495
  /**
8899
- * Get MFA QR Code
8900
- * @summary Get MFA QR Code
8496
+ * Create An Order (Admin)
8497
+ * @summary Create An Order (Admin)
8498
+ * @param {boolean} [readonly] Readonly Order
8499
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
8901
8500
  * @param {*} [options] Override http request option.
8902
8501
  * @throws {RequiredError}
8903
8502
  */
8904
- getGetMfaQrCode: function (options) {
8905
- return localVarFp.getGetMfaQrCode(options).then(function (request) { return request(axios, basePath); });
8503
+ postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
8504
+ return __awaiter(this, void 0, void 0, function () {
8505
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8506
+ var _a, _b, _c;
8507
+ return __generator(this, function (_d) {
8508
+ switch (_d.label) {
8509
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
8510
+ case 1:
8511
+ localVarAxiosArgs = _d.sent();
8512
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8513
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8514
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8515
+ }
8516
+ });
8517
+ });
8906
8518
  },
8907
8519
  /**
8908
- * Get Scopes
8909
- * @summary Get Scopes
8520
+ * Create An Order (Beta)
8521
+ * @summary Create An Order (Beta)
8522
+ * @param {boolean} [readonly] Readonly Order
8523
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8910
8524
  * @param {*} [options] Override http request option.
8911
8525
  * @throws {RequiredError}
8912
8526
  */
8913
- getGetScopes: function (options) {
8914
- return localVarFp.getGetScopes(options).then(function (request) { return request(axios, basePath); });
8527
+ postGetOrders: function (readonly, customerOrderRequestDTO, options) {
8528
+ return __awaiter(this, void 0, void 0, function () {
8529
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8530
+ var _a, _b, _c;
8531
+ return __generator(this, function (_d) {
8532
+ switch (_d.label) {
8533
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
8534
+ case 1:
8535
+ localVarAxiosArgs = _d.sent();
8536
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8537
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8538
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8539
+ }
8540
+ });
8541
+ });
8915
8542
  },
8916
8543
  /**
8917
- * Get an OAuth 2.0 access token
8918
- * @summary Validates client credentials and returns access token
8919
- * @param {string | null} [clientId] OAuth 2.0 Client ID
8920
- * @param {string | null} [clientSecret] OAuth 2.0 Client Secret
8921
- * @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
8922
- * @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
8923
- * @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
8924
- * @param {string | null} [code] OAuth 2.0 Auth Code
8925
- * @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
8926
- * @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
8927
- * @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
8928
- * @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
8929
- * @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
8930
- * @param {boolean | null} [endUser] End User (Only used in Token Exchange)
8544
+ * Update An Order (Admin)
8545
+ * @summary Update An Order (Admin)
8546
+ * @param {number} id Order ID
8547
+ * @param {boolean} [readonly] Readonly Order
8548
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
8931
8549
  * @param {*} [options] Override http request option.
8932
8550
  * @throws {RequiredError}
8933
8551
  */
8934
- postAccessToken: function (clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options) {
8935
- return localVarFp.postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options).then(function (request) { return request(axios, basePath); });
8552
+ putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
8553
+ return __awaiter(this, void 0, void 0, function () {
8554
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8555
+ var _a, _b, _c;
8556
+ return __generator(this, function (_d) {
8557
+ switch (_d.label) {
8558
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
8559
+ case 1:
8560
+ localVarAxiosArgs = _d.sent();
8561
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8562
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8563
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8564
+ }
8565
+ });
8566
+ });
8936
8567
  },
8937
8568
  /**
8938
- * Get an OAuth 2.0 auth code
8939
- * @summary Get OAuth2.0 Auth Code
8940
- * @param {string} clientId OAuth 2.0 Client ID
8941
- * @param {string} responseType OAuth 2.0 Response Type
8942
- * @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
8943
- * @param {string} [redirectUri] OAuth 2.0 Redirect URI
8944
- * @param {string} [state] OAuth 2.0 State
8945
- * @param {string} [codeChallenge] OAuth 2.0 Code Challenge
8946
- * @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
8569
+ * Update An Order (Beta)
8570
+ * @summary Update An Order (Beta)
8571
+ * @param {number} id Order ID
8572
+ * @param {boolean} [readonly] Readonly Order
8573
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
8947
8574
  * @param {*} [options] Override http request option.
8948
8575
  * @throws {RequiredError}
8949
8576
  */
8950
- postAuthorise: function (clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options) {
8951
- return localVarFp.postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options).then(function (request) { return request(axios, basePath); });
8577
+ putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
8578
+ return __awaiter(this, void 0, void 0, function () {
8579
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
8580
+ var _a, _b, _c;
8581
+ return __generator(this, function (_d) {
8582
+ switch (_d.label) {
8583
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
8584
+ case 1:
8585
+ localVarAxiosArgs = _d.sent();
8586
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8587
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8588
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
8589
+ }
8590
+ });
8591
+ });
8952
8592
  },
8593
+ };
8594
+ };
8595
+ exports.OrdersApiFp = OrdersApiFp;
8596
+ /**
8597
+ * OrdersApi - factory interface
8598
+ */
8599
+ var OrdersApiFactory = function (configuration, basePath, axios) {
8600
+ var localVarFp = (0, exports.OrdersApiFp)(configuration);
8601
+ return {
8953
8602
  /**
8954
- * Get Token Identity
8955
- * @summary Get Token Identity
8603
+ * Delete Orders (Beta)
8604
+ * @summary Delete Orders (Beta)
8605
+ * @param {number} id Order ID
8956
8606
  * @param {*} [options] Override http request option.
8957
8607
  * @throws {RequiredError}
8958
8608
  */
8959
- postGetIdentity: function (options) {
8960
- return localVarFp.postGetIdentity(options).then(function (request) { return request(axios, basePath); });
8609
+ deleteUpdateOrder: function (id, options) {
8610
+ return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
8961
8611
  },
8962
8612
  /**
8963
- * Portal Login
8964
- * @summary Portal Login
8965
- * @param {PortalLoginModel} [portalLoginModel] Login Credentials
8613
+ * Get Editable Order (Admin)
8614
+ * @summary Get Editable Order (Admin)
8615
+ * @param {number} id Order ID
8966
8616
  * @param {*} [options] Override http request option.
8967
8617
  * @throws {RequiredError}
8968
8618
  */
8969
- postPortalLogin: function (portalLoginModel, options) {
8970
- return localVarFp.postPortalLogin(portalLoginModel, options).then(function (request) { return request(axios, basePath); });
8971
- },
8972
- };
8973
- };
8974
- exports.OAuth20ApiFactory = OAuth20ApiFactory;
8975
- /**
8976
- * OAuth20Api - object-oriented interface
8977
- */
8978
- var OAuth20Api = /** @class */ (function (_super) {
8979
- __extends(OAuth20Api, _super);
8980
- function OAuth20Api() {
8981
- return _super !== null && _super.apply(this, arguments) || this;
8982
- }
8983
- /**
8984
- * Get MFA QR Code
8985
- * @summary Get MFA QR Code
8986
- * @param {*} [options] Override http request option.
8987
- * @throws {RequiredError}
8988
- */
8989
- OAuth20Api.prototype.getGetMfaQrCode = function (options) {
8990
- var _this = this;
8991
- return (0, exports.OAuth20ApiFp)(this.configuration).getGetMfaQrCode(options).then(function (request) { return request(_this.axios, _this.basePath); });
8992
- };
8993
- /**
8994
- * Get Scopes
8995
- * @summary Get Scopes
8996
- * @param {*} [options] Override http request option.
8997
- * @throws {RequiredError}
8998
- */
8999
- OAuth20Api.prototype.getGetScopes = function (options) {
9000
- var _this = this;
9001
- return (0, exports.OAuth20ApiFp)(this.configuration).getGetScopes(options).then(function (request) { return request(_this.axios, _this.basePath); });
9002
- };
9003
- /**
9004
- * Get an OAuth 2.0 access token
9005
- * @summary Validates client credentials and returns access token
9006
- * @param {string | null} [clientId] OAuth 2.0 Client ID
9007
- * @param {string | null} [clientSecret] OAuth 2.0 Client Secret
9008
- * @param {PostAccessTokenGrantTypeEnum} [grantType] OAuth 2.0 Grant Type
9009
- * @param {PostAccessTokenScopeEnum} [scope] OAuth 2.0 Scope
9010
- * @param {string | null} [redirectUri] OAuth 2.0 Redirect URI
9011
- * @param {string | null} [code] OAuth 2.0 Auth Code
9012
- * @param {string | null} [refreshToken] OAuth 2.0 Refresh Token
9013
- * @param {string | null} [codeVerifier] OAuth 2.0 Code Verifier
9014
- * @param {string | null} [token] OAuth 2.0 Token (Only used in Token Exchange)
9015
- * @param {PostAccessTokenTokenExchangeTypeEnum} [tokenExchangeType] Token Exchange Type (Only used in Token Exchange)
9016
- * @param {string | null} [licenceKey] 3CX Licence Key (Only used in Token Exchange)
9017
- * @param {boolean | null} [endUser] End User (Only used in Token Exchange)
9018
- * @param {*} [options] Override http request option.
9019
- * @throws {RequiredError}
9020
- */
9021
- OAuth20Api.prototype.postAccessToken = function (clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options) {
9022
- var _this = this;
9023
- return (0, exports.OAuth20ApiFp)(this.configuration).postAccessToken(clientId, clientSecret, grantType, scope, redirectUri, code, refreshToken, codeVerifier, token, tokenExchangeType, licenceKey, endUser, options).then(function (request) { return request(_this.axios, _this.basePath); });
9024
- };
9025
- /**
9026
- * Get an OAuth 2.0 auth code
9027
- * @summary Get OAuth2.0 Auth Code
9028
- * @param {string} clientId OAuth 2.0 Client ID
9029
- * @param {string} responseType OAuth 2.0 Response Type
9030
- * @param {PostAuthoriseScopeEnum} scope OAuth 2.0 Scope
9031
- * @param {string} [redirectUri] OAuth 2.0 Redirect URI
9032
- * @param {string} [state] OAuth 2.0 State
9033
- * @param {string} [codeChallenge] OAuth 2.0 Code Challenge
9034
- * @param {string} [codeChallengeMethod] OAuth 2.0 Code Challenge Method
9035
- * @param {*} [options] Override http request option.
9036
- * @throws {RequiredError}
9037
- */
9038
- OAuth20Api.prototype.postAuthorise = function (clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options) {
9039
- var _this = this;
9040
- return (0, exports.OAuth20ApiFp)(this.configuration).postAuthorise(clientId, responseType, scope, redirectUri, state, codeChallenge, codeChallengeMethod, options).then(function (request) { return request(_this.axios, _this.basePath); });
9041
- };
9042
- /**
9043
- * Get Token Identity
9044
- * @summary Get Token Identity
9045
- * @param {*} [options] Override http request option.
9046
- * @throws {RequiredError}
9047
- */
9048
- OAuth20Api.prototype.postGetIdentity = function (options) {
9049
- var _this = this;
9050
- return (0, exports.OAuth20ApiFp)(this.configuration).postGetIdentity(options).then(function (request) { return request(_this.axios, _this.basePath); });
9051
- };
9052
- /**
9053
- * Portal Login
9054
- * @summary Portal Login
9055
- * @param {PortalLoginModel} [portalLoginModel] Login Credentials
9056
- * @param {*} [options] Override http request option.
9057
- * @throws {RequiredError}
9058
- */
9059
- OAuth20Api.prototype.postPortalLogin = function (portalLoginModel, options) {
9060
- var _this = this;
9061
- return (0, exports.OAuth20ApiFp)(this.configuration).postPortalLogin(portalLoginModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
9062
- };
9063
- return OAuth20Api;
9064
- }(base_1.BaseAPI));
9065
- exports.OAuth20Api = OAuth20Api;
9066
- exports.PostAccessTokenGrantTypeEnum = {
9067
- ClientCredentials: 'client_credentials',
9068
- Code: 'code',
9069
- RefreshToken: 'refresh_token',
9070
- AuthorizationCode: 'authorization_code',
9071
- MsAuth: 'ms_auth',
9072
- TokenExchange: 'token_exchange',
9073
- Password: 'password'
9074
- };
9075
- exports.PostAccessTokenScopeEnum = {
9076
- Star: '*',
9077
- Fdps: 'fdps',
9078
- Scope: 'scope',
9079
- Portal: 'portal',
9080
- TcxWizard: 'tcx_wizard',
9081
- AccountsRead: 'accounts.read',
9082
- AccountsWrite: 'accounts.write',
9083
- NumberPortingRead: 'number_porting.read',
9084
- NumberPortingWrite: 'number_porting.write',
9085
- PricingRead: 'pricing.read',
9086
- OrdersRead: 'orders.read',
9087
- OrdersWrite: 'orders.write',
9088
- ProductsRead: 'products.read',
9089
- ProvisioningRead: 'provisioning.read',
9090
- ProvisioningWrite: 'provisioning.write',
9091
- TrunksRead: 'trunks.read',
9092
- TrunksWrite: 'trunks.write',
9093
- TcxIntegrationsRead: 'tcx_integrations.read',
9094
- TcxIntegrationsWrite: 'tcx_integrations.write',
9095
- TcxLicenceDetailsRead: 'tcx_licence_details.read',
9096
- TcxInstallationsRead: 'tcx_installations.read',
9097
- TcxInstallationsWrite: 'tcx_installations.write',
9098
- TcxMtRead: 'tcx_mt.read',
9099
- TcxMtWrite: 'tcx_mt.write',
9100
- TicketsRead: 'tickets.read',
9101
- TicketsWrite: 'tickets.write'
9102
- };
9103
- exports.PostAccessTokenTokenExchangeTypeEnum = {
9104
- TcxWizard: 'tcx_wizard',
9105
- Portal: 'portal'
9106
- };
9107
- exports.PostAuthoriseScopeEnum = {
9108
- Star: '*',
9109
- Fdps: 'fdps',
9110
- Scope: 'scope',
9111
- Portal: 'portal',
9112
- TcxWizard: 'tcx_wizard',
9113
- AccountsRead: 'accounts.read',
9114
- AccountsWrite: 'accounts.write',
9115
- NumberPortingRead: 'number_porting.read',
9116
- NumberPortingWrite: 'number_porting.write',
9117
- PricingRead: 'pricing.read',
9118
- OrdersRead: 'orders.read',
9119
- OrdersWrite: 'orders.write',
9120
- ProductsRead: 'products.read',
9121
- ProvisioningRead: 'provisioning.read',
9122
- ProvisioningWrite: 'provisioning.write',
9123
- TrunksRead: 'trunks.read',
9124
- TrunksWrite: 'trunks.write',
9125
- TcxIntegrationsRead: 'tcx_integrations.read',
9126
- TcxIntegrationsWrite: 'tcx_integrations.write',
9127
- TcxLicenceDetailsRead: 'tcx_licence_details.read',
9128
- TcxInstallationsRead: 'tcx_installations.read',
9129
- TcxInstallationsWrite: 'tcx_installations.write',
9130
- TcxMtRead: 'tcx_mt.read',
9131
- TcxMtWrite: 'tcx_mt.write',
9132
- TicketsRead: 'tickets.read',
9133
- TicketsWrite: 'tickets.write'
9134
- };
9135
- /**
9136
- * OrdersApi - axios parameter creator
9137
- */
9138
- var OrdersApiAxiosParamCreator = function (configuration) {
9139
- var _this = this;
9140
- return {
9141
- /**
9142
- * Delete Orders (Beta)
9143
- * @summary Delete Orders (Beta)
9144
- * @param {number} id Order ID
9145
- * @param {*} [options] Override http request option.
9146
- * @throws {RequiredError}
9147
- */
9148
- deleteUpdateOrder: function (id_1) {
9149
- var args_1 = [];
9150
- for (var _i = 1; _i < arguments.length; _i++) {
9151
- args_1[_i - 1] = arguments[_i];
9152
- }
9153
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
9154
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9155
- if (options === void 0) { options = {}; }
9156
- return __generator(this, function (_a) {
9157
- // verify required parameter 'id' is not null or undefined
9158
- (0, common_1.assertParamExists)('deleteUpdateOrder', 'id', id);
9159
- localVarPath = "/orders/{id}"
9160
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9161
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9162
- if (configuration) {
9163
- baseOptions = configuration.baseOptions;
9164
- }
9165
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
9166
- localVarHeaderParameter = {};
9167
- localVarQueryParameter = {};
9168
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9169
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9170
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9171
- return [2 /*return*/, {
9172
- url: (0, common_1.toPathString)(localVarUrlObj),
9173
- options: localVarRequestOptions,
9174
- }];
9175
- });
9176
- });
9177
- },
9178
- /**
9179
- * Get Editable Order (Admin)
9180
- * @summary Get Editable Order (Admin)
9181
- * @param {number} id Order ID
9182
- * @param {*} [options] Override http request option.
9183
- * @throws {RequiredError}
9184
- */
9185
- getGetAdminEditableOrder: function (id_1) {
9186
- var args_1 = [];
9187
- for (var _i = 1; _i < arguments.length; _i++) {
9188
- args_1[_i - 1] = arguments[_i];
9189
- }
9190
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
9191
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9192
- if (options === void 0) { options = {}; }
9193
- return __generator(this, function (_a) {
9194
- // verify required parameter 'id' is not null or undefined
9195
- (0, common_1.assertParamExists)('getGetAdminEditableOrder', 'id', id);
9196
- localVarPath = "/admin/orders/{id}/views/editable"
9197
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9198
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9199
- if (configuration) {
9200
- baseOptions = configuration.baseOptions;
9201
- }
9202
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9203
- localVarHeaderParameter = {};
9204
- localVarQueryParameter = {};
9205
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9206
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9207
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9208
- return [2 /*return*/, {
9209
- url: (0, common_1.toPathString)(localVarUrlObj),
9210
- options: localVarRequestOptions,
9211
- }];
9212
- });
9213
- });
9214
- },
9215
- /**
9216
- * Get Editable Order (Beta)
9217
- * @summary Get Editable Order (Beta)
9218
- * @param {number} id Order ID
9219
- * @param {*} [options] Override http request option.
9220
- * @throws {RequiredError}
9221
- */
9222
- getGetEditableOrder: function (id_1) {
9223
- var args_1 = [];
9224
- for (var _i = 1; _i < arguments.length; _i++) {
9225
- args_1[_i - 1] = arguments[_i];
9226
- }
9227
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
9228
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9229
- if (options === void 0) { options = {}; }
9230
- return __generator(this, function (_a) {
9231
- // verify required parameter 'id' is not null or undefined
9232
- (0, common_1.assertParamExists)('getGetEditableOrder', 'id', id);
9233
- localVarPath = "/orders/{id}/views/editable"
9234
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9235
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9236
- if (configuration) {
9237
- baseOptions = configuration.baseOptions;
9238
- }
9239
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9240
- localVarHeaderParameter = {};
9241
- localVarQueryParameter = {};
9242
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9243
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9244
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9245
- return [2 /*return*/, {
9246
- url: (0, common_1.toPathString)(localVarUrlObj),
9247
- options: localVarRequestOptions,
9248
- }];
9249
- });
9250
- });
9251
- },
9252
- /**
9253
- * Get Orders (Beta)
9254
- * @summary Get Orders (Beta)
9255
- * @param {number} [pageSize] Number Of Results
9256
- * @param {number} [page] Page Number
9257
- * @param {string} [search] Search
9258
- * @param {boolean | null} [fulfillable] Fulfillable
9259
- * @param {GetGetOrdersStatusEnum} [status] Status
9260
- * @param {GetGetOrdersFilterEnum} [filter] Filter
9261
- * @param {number | null} [customerId] Customer ID
9262
- * @param {*} [options] Override http request option.
9263
- * @throws {RequiredError}
9264
- */
9265
- getGetOrders: function (pageSize_1, page_1, search_1, fulfillable_1, status_1, filter_1, customerId_1) {
9266
- var args_1 = [];
9267
- for (var _i = 7; _i < arguments.length; _i++) {
9268
- args_1[_i - 7] = arguments[_i];
9269
- }
9270
- return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1, fulfillable_1, status_1, filter_1, customerId_1], args_1, true), void 0, function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
9271
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9272
- if (options === void 0) { options = {}; }
9273
- return __generator(this, function (_a) {
9274
- localVarPath = "/orders";
9275
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9276
- if (configuration) {
9277
- baseOptions = configuration.baseOptions;
9278
- }
9279
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
9280
- localVarHeaderParameter = {};
9281
- localVarQueryParameter = {};
9282
- if (pageSize !== undefined) {
9283
- localVarQueryParameter['pageSize'] = pageSize;
9284
- }
9285
- if (page !== undefined) {
9286
- localVarQueryParameter['page'] = page;
9287
- }
9288
- if (search !== undefined) {
9289
- localVarQueryParameter['search'] = search;
9290
- }
9291
- if (fulfillable !== undefined) {
9292
- localVarQueryParameter['fulfillable'] = fulfillable;
9293
- }
9294
- if (status !== undefined) {
9295
- localVarQueryParameter['status'] = status;
9296
- }
9297
- if (filter !== undefined) {
9298
- localVarQueryParameter['filter'] = filter;
9299
- }
9300
- if (customerId !== undefined) {
9301
- localVarQueryParameter['customerId'] = customerId;
9302
- }
9303
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9304
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9305
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9306
- return [2 /*return*/, {
9307
- url: (0, common_1.toPathString)(localVarUrlObj),
9308
- options: localVarRequestOptions,
9309
- }];
9310
- });
9311
- });
9312
- },
9313
- /**
9314
- * Create An Order (Admin)
9315
- * @summary Create An Order (Admin)
9316
- * @param {boolean} [readonly] Readonly Order
9317
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
9318
- * @param {*} [options] Override http request option.
9319
- * @throws {RequiredError}
9320
- */
9321
- postCreateAdminOrder: function (readonly_1, adminOrderRequestDTO_1) {
9322
- var args_1 = [];
9323
- for (var _i = 2; _i < arguments.length; _i++) {
9324
- args_1[_i - 2] = arguments[_i];
9325
- }
9326
- return __awaiter(_this, __spreadArray([readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (readonly, adminOrderRequestDTO, options) {
9327
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9328
- if (options === void 0) { options = {}; }
9329
- return __generator(this, function (_a) {
9330
- localVarPath = "/admin/orders";
9331
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9332
- if (configuration) {
9333
- baseOptions = configuration.baseOptions;
9334
- }
9335
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9336
- localVarHeaderParameter = {};
9337
- localVarQueryParameter = {};
9338
- if (readonly !== undefined) {
9339
- localVarQueryParameter['readonly'] = readonly;
9340
- }
9341
- localVarHeaderParameter['Content-Type'] = 'application/json';
9342
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9343
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9344
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9345
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
9346
- return [2 /*return*/, {
9347
- url: (0, common_1.toPathString)(localVarUrlObj),
9348
- options: localVarRequestOptions,
9349
- }];
9350
- });
9351
- });
9352
- },
9353
- /**
9354
- * Create An Order (Beta)
9355
- * @summary Create An Order (Beta)
9356
- * @param {boolean} [readonly] Readonly Order
9357
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
9358
- * @param {*} [options] Override http request option.
9359
- * @throws {RequiredError}
9360
- */
9361
- postGetOrders: function (readonly_1, customerOrderRequestDTO_1) {
9362
- var args_1 = [];
9363
- for (var _i = 2; _i < arguments.length; _i++) {
9364
- args_1[_i - 2] = arguments[_i];
9365
- }
9366
- return __awaiter(_this, __spreadArray([readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (readonly, customerOrderRequestDTO, options) {
9367
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9368
- if (options === void 0) { options = {}; }
9369
- return __generator(this, function (_a) {
9370
- localVarPath = "/orders";
9371
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9372
- if (configuration) {
9373
- baseOptions = configuration.baseOptions;
9374
- }
9375
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
9376
- localVarHeaderParameter = {};
9377
- localVarQueryParameter = {};
9378
- if (readonly !== undefined) {
9379
- localVarQueryParameter['readonly'] = readonly;
9380
- }
9381
- localVarHeaderParameter['Content-Type'] = 'application/json';
9382
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9383
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9384
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9385
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
9386
- return [2 /*return*/, {
9387
- url: (0, common_1.toPathString)(localVarUrlObj),
9388
- options: localVarRequestOptions,
9389
- }];
9390
- });
9391
- });
9392
- },
9393
- /**
9394
- * Update An Order (Admin)
9395
- * @summary Update An Order (Admin)
9396
- * @param {number} id Order ID
9397
- * @param {boolean} [readonly] Readonly Order
9398
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
9399
- * @param {*} [options] Override http request option.
9400
- * @throws {RequiredError}
9401
- */
9402
- putUpdateAdminOrder: function (id_1, readonly_1, adminOrderRequestDTO_1) {
9403
- var args_1 = [];
9404
- for (var _i = 3; _i < arguments.length; _i++) {
9405
- args_1[_i - 3] = arguments[_i];
9406
- }
9407
- return __awaiter(_this, __spreadArray([id_1, readonly_1, adminOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, adminOrderRequestDTO, options) {
9408
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9409
- if (options === void 0) { options = {}; }
9410
- return __generator(this, function (_a) {
9411
- // verify required parameter 'id' is not null or undefined
9412
- (0, common_1.assertParamExists)('putUpdateAdminOrder', 'id', id);
9413
- localVarPath = "/admin/orders/{id}"
9414
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9415
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9416
- if (configuration) {
9417
- baseOptions = configuration.baseOptions;
9418
- }
9419
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
9420
- localVarHeaderParameter = {};
9421
- localVarQueryParameter = {};
9422
- if (readonly !== undefined) {
9423
- localVarQueryParameter['readonly'] = readonly;
9424
- }
9425
- localVarHeaderParameter['Content-Type'] = 'application/json';
9426
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9427
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9428
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9429
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderRequestDTO, localVarRequestOptions, configuration);
9430
- return [2 /*return*/, {
9431
- url: (0, common_1.toPathString)(localVarUrlObj),
9432
- options: localVarRequestOptions,
9433
- }];
9434
- });
9435
- });
9436
- },
9437
- /**
9438
- * Update An Order (Beta)
9439
- * @summary Update An Order (Beta)
9440
- * @param {number} id Order ID
9441
- * @param {boolean} [readonly] Readonly Order
9442
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
9443
- * @param {*} [options] Override http request option.
9444
- * @throws {RequiredError}
9445
- */
9446
- putUpdateOrder: function (id_1, readonly_1, customerOrderRequestDTO_1) {
9447
- var args_1 = [];
9448
- for (var _i = 3; _i < arguments.length; _i++) {
9449
- args_1[_i - 3] = arguments[_i];
9450
- }
9451
- return __awaiter(_this, __spreadArray([id_1, readonly_1, customerOrderRequestDTO_1], args_1, true), void 0, function (id, readonly, customerOrderRequestDTO, options) {
9452
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
9453
- if (options === void 0) { options = {}; }
9454
- return __generator(this, function (_a) {
9455
- // verify required parameter 'id' is not null or undefined
9456
- (0, common_1.assertParamExists)('putUpdateOrder', 'id', id);
9457
- localVarPath = "/orders/{id}"
9458
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
9459
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9460
- if (configuration) {
9461
- baseOptions = configuration.baseOptions;
9462
- }
9463
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
9464
- localVarHeaderParameter = {};
9465
- localVarQueryParameter = {};
9466
- if (readonly !== undefined) {
9467
- localVarQueryParameter['readonly'] = readonly;
9468
- }
9469
- localVarHeaderParameter['Content-Type'] = 'application/json';
9470
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9471
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9472
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9473
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customerOrderRequestDTO, localVarRequestOptions, configuration);
9474
- return [2 /*return*/, {
9475
- url: (0, common_1.toPathString)(localVarUrlObj),
9476
- options: localVarRequestOptions,
9477
- }];
9478
- });
9479
- });
9480
- },
9481
- };
9482
- };
9483
- exports.OrdersApiAxiosParamCreator = OrdersApiAxiosParamCreator;
9484
- /**
9485
- * OrdersApi - functional programming interface
9486
- */
9487
- var OrdersApiFp = function (configuration) {
9488
- var localVarAxiosParamCreator = (0, exports.OrdersApiAxiosParamCreator)(configuration);
9489
- return {
9490
- /**
9491
- * Delete Orders (Beta)
9492
- * @summary Delete Orders (Beta)
9493
- * @param {number} id Order ID
9494
- * @param {*} [options] Override http request option.
9495
- * @throws {RequiredError}
9496
- */
9497
- deleteUpdateOrder: function (id, options) {
9498
- return __awaiter(this, void 0, void 0, function () {
9499
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9500
- var _a, _b, _c;
9501
- return __generator(this, function (_d) {
9502
- switch (_d.label) {
9503
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateOrder(id, options)];
9504
- case 1:
9505
- localVarAxiosArgs = _d.sent();
9506
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9507
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.deleteUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9508
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9509
- }
9510
- });
9511
- });
9512
- },
9513
- /**
9514
- * Get Editable Order (Admin)
9515
- * @summary Get Editable Order (Admin)
9516
- * @param {number} id Order ID
9517
- * @param {*} [options] Override http request option.
9518
- * @throws {RequiredError}
9519
- */
9520
- getGetAdminEditableOrder: function (id, options) {
9521
- return __awaiter(this, void 0, void 0, function () {
9522
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9523
- var _a, _b, _c;
9524
- return __generator(this, function (_d) {
9525
- switch (_d.label) {
9526
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetAdminEditableOrder(id, options)];
9527
- case 1:
9528
- localVarAxiosArgs = _d.sent();
9529
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9530
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetAdminEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9531
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9532
- }
9533
- });
9534
- });
9535
- },
9536
- /**
9537
- * Get Editable Order (Beta)
9538
- * @summary Get Editable Order (Beta)
9539
- * @param {number} id Order ID
9540
- * @param {*} [options] Override http request option.
9541
- * @throws {RequiredError}
9542
- */
9543
- getGetEditableOrder: function (id, options) {
9544
- return __awaiter(this, void 0, void 0, function () {
9545
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9546
- var _a, _b, _c;
9547
- return __generator(this, function (_d) {
9548
- switch (_d.label) {
9549
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetEditableOrder(id, options)];
9550
- case 1:
9551
- localVarAxiosArgs = _d.sent();
9552
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9553
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetEditableOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9554
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9555
- }
9556
- });
9557
- });
9558
- },
9559
- /**
9560
- * Get Orders (Beta)
9561
- * @summary Get Orders (Beta)
9562
- * @param {number} [pageSize] Number Of Results
9563
- * @param {number} [page] Page Number
9564
- * @param {string} [search] Search
9565
- * @param {boolean | null} [fulfillable] Fulfillable
9566
- * @param {GetGetOrdersStatusEnum} [status] Status
9567
- * @param {GetGetOrdersFilterEnum} [filter] Filter
9568
- * @param {number | null} [customerId] Customer ID
9569
- * @param {*} [options] Override http request option.
9570
- * @throws {RequiredError}
9571
- */
9572
- getGetOrders: function (pageSize, page, search, fulfillable, status, filter, customerId, options) {
9573
- return __awaiter(this, void 0, void 0, function () {
9574
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9575
- var _a, _b, _c;
9576
- return __generator(this, function (_d) {
9577
- switch (_d.label) {
9578
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options)];
9579
- case 1:
9580
- localVarAxiosArgs = _d.sent();
9581
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9582
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9583
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9584
- }
9585
- });
9586
- });
9587
- },
9588
- /**
9589
- * Create An Order (Admin)
9590
- * @summary Create An Order (Admin)
9591
- * @param {boolean} [readonly] Readonly Order
9592
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
9593
- * @param {*} [options] Override http request option.
9594
- * @throws {RequiredError}
9595
- */
9596
- postCreateAdminOrder: function (readonly, adminOrderRequestDTO, options) {
9597
- return __awaiter(this, void 0, void 0, function () {
9598
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9599
- var _a, _b, _c;
9600
- return __generator(this, function (_d) {
9601
- switch (_d.label) {
9602
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options)];
9603
- case 1:
9604
- localVarAxiosArgs = _d.sent();
9605
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9606
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postCreateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9607
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9608
- }
9609
- });
9610
- });
9611
- },
9612
- /**
9613
- * Create An Order (Beta)
9614
- * @summary Create An Order (Beta)
9615
- * @param {boolean} [readonly] Readonly Order
9616
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
9617
- * @param {*} [options] Override http request option.
9618
- * @throws {RequiredError}
9619
- */
9620
- postGetOrders: function (readonly, customerOrderRequestDTO, options) {
9621
- return __awaiter(this, void 0, void 0, function () {
9622
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9623
- var _a, _b, _c;
9624
- return __generator(this, function (_d) {
9625
- switch (_d.label) {
9626
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options)];
9627
- case 1:
9628
- localVarAxiosArgs = _d.sent();
9629
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9630
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.postGetOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9631
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9632
- }
9633
- });
9634
- });
9635
- },
9636
- /**
9637
- * Update An Order (Admin)
9638
- * @summary Update An Order (Admin)
9639
- * @param {number} id Order ID
9640
- * @param {boolean} [readonly] Readonly Order
9641
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
9642
- * @param {*} [options] Override http request option.
9643
- * @throws {RequiredError}
9644
- */
9645
- putUpdateAdminOrder: function (id, readonly, adminOrderRequestDTO, options) {
9646
- return __awaiter(this, void 0, void 0, function () {
9647
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9648
- var _a, _b, _c;
9649
- return __generator(this, function (_d) {
9650
- switch (_d.label) {
9651
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options)];
9652
- case 1:
9653
- localVarAxiosArgs = _d.sent();
9654
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9655
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateAdminOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9656
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9657
- }
9658
- });
9659
- });
9660
- },
9661
- /**
9662
- * Update An Order (Beta)
9663
- * @summary Update An Order (Beta)
9664
- * @param {number} id Order ID
9665
- * @param {boolean} [readonly] Readonly Order
9666
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
9667
- * @param {*} [options] Override http request option.
9668
- * @throws {RequiredError}
9669
- */
9670
- putUpdateOrder: function (id, readonly, customerOrderRequestDTO, options) {
9671
- return __awaiter(this, void 0, void 0, function () {
9672
- var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
9673
- var _a, _b, _c;
9674
- return __generator(this, function (_d) {
9675
- switch (_d.label) {
9676
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options)];
9677
- case 1:
9678
- localVarAxiosArgs = _d.sent();
9679
- localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9680
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.putUpdateOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9681
- return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
9682
- }
9683
- });
9684
- });
9685
- },
9686
- };
9687
- };
9688
- exports.OrdersApiFp = OrdersApiFp;
9689
- /**
9690
- * OrdersApi - factory interface
9691
- */
9692
- var OrdersApiFactory = function (configuration, basePath, axios) {
9693
- var localVarFp = (0, exports.OrdersApiFp)(configuration);
9694
- return {
9695
- /**
9696
- * Delete Orders (Beta)
9697
- * @summary Delete Orders (Beta)
9698
- * @param {number} id Order ID
9699
- * @param {*} [options] Override http request option.
9700
- * @throws {RequiredError}
9701
- */
9702
- deleteUpdateOrder: function (id, options) {
9703
- return localVarFp.deleteUpdateOrder(id, options).then(function (request) { return request(axios, basePath); });
9704
- },
9705
- /**
9706
- * Get Editable Order (Admin)
9707
- * @summary Get Editable Order (Admin)
9708
- * @param {number} id Order ID
9709
- * @param {*} [options] Override http request option.
9710
- * @throws {RequiredError}
9711
- */
9712
- getGetAdminEditableOrder: function (id, options) {
9713
- return localVarFp.getGetAdminEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
8619
+ getGetAdminEditableOrder: function (id, options) {
8620
+ return localVarFp.getGetAdminEditableOrder(id, options).then(function (request) { return request(axios, basePath); });
9714
8621
  },
9715
8622
  /**
9716
8623
  * Get Editable Order (Beta)
@@ -13581,24 +12488,291 @@ var SMSApiAxiosParamCreator = function (configuration) {
13581
12488
  var _this = this;
13582
12489
  return {
13583
12490
  /**
13584
- * Send SMS
13585
- * @param {string} authorization Bearer Token
13586
- * @param {SmsMessageModel} [smsMessageModel] SMS Message
12491
+ * Send SMS
12492
+ * @param {string} authorization Bearer Token
12493
+ * @param {SmsMessageModel} [smsMessageModel] SMS Message
12494
+ * @param {*} [options] Override http request option.
12495
+ * @throws {RequiredError}
12496
+ */
12497
+ postSendSms: function (authorization_1, smsMessageModel_1) {
12498
+ var args_1 = [];
12499
+ for (var _i = 2; _i < arguments.length; _i++) {
12500
+ args_1[_i - 2] = arguments[_i];
12501
+ }
12502
+ return __awaiter(_this, __spreadArray([authorization_1, smsMessageModel_1], args_1, true), void 0, function (authorization, smsMessageModel, options) {
12503
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12504
+ if (options === void 0) { options = {}; }
12505
+ return __generator(this, function (_a) {
12506
+ // verify required parameter 'authorization' is not null or undefined
12507
+ (0, common_1.assertParamExists)('postSendSms', 'authorization', authorization);
12508
+ localVarPath = "/messaging/sms/send";
12509
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12510
+ if (configuration) {
12511
+ baseOptions = configuration.baseOptions;
12512
+ }
12513
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
12514
+ localVarHeaderParameter = {};
12515
+ localVarQueryParameter = {};
12516
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12517
+ if (authorization != null) {
12518
+ localVarHeaderParameter['Authorization'] = String(authorization);
12519
+ }
12520
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12521
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12522
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12523
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(smsMessageModel, localVarRequestOptions, configuration);
12524
+ return [2 /*return*/, {
12525
+ url: (0, common_1.toPathString)(localVarUrlObj),
12526
+ options: localVarRequestOptions,
12527
+ }];
12528
+ });
12529
+ });
12530
+ },
12531
+ };
12532
+ };
12533
+ exports.SMSApiAxiosParamCreator = SMSApiAxiosParamCreator;
12534
+ /**
12535
+ * SMSApi - functional programming interface
12536
+ */
12537
+ var SMSApiFp = function (configuration) {
12538
+ var localVarAxiosParamCreator = (0, exports.SMSApiAxiosParamCreator)(configuration);
12539
+ return {
12540
+ /**
12541
+ * Send SMS
12542
+ * @param {string} authorization Bearer Token
12543
+ * @param {SmsMessageModel} [smsMessageModel] SMS Message
12544
+ * @param {*} [options] Override http request option.
12545
+ * @throws {RequiredError}
12546
+ */
12547
+ postSendSms: function (authorization, smsMessageModel, options) {
12548
+ return __awaiter(this, void 0, void 0, function () {
12549
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12550
+ var _a, _b, _c;
12551
+ return __generator(this, function (_d) {
12552
+ switch (_d.label) {
12553
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendSms(authorization, smsMessageModel, options)];
12554
+ case 1:
12555
+ localVarAxiosArgs = _d.sent();
12556
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12557
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SMSApi.postSendSms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12558
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12559
+ }
12560
+ });
12561
+ });
12562
+ },
12563
+ };
12564
+ };
12565
+ exports.SMSApiFp = SMSApiFp;
12566
+ /**
12567
+ * SMSApi - factory interface
12568
+ */
12569
+ var SMSApiFactory = function (configuration, basePath, axios) {
12570
+ var localVarFp = (0, exports.SMSApiFp)(configuration);
12571
+ return {
12572
+ /**
12573
+ * Send SMS
12574
+ * @param {string} authorization Bearer Token
12575
+ * @param {SmsMessageModel} [smsMessageModel] SMS Message
12576
+ * @param {*} [options] Override http request option.
12577
+ * @throws {RequiredError}
12578
+ */
12579
+ postSendSms: function (authorization, smsMessageModel, options) {
12580
+ return localVarFp.postSendSms(authorization, smsMessageModel, options).then(function (request) { return request(axios, basePath); });
12581
+ },
12582
+ };
12583
+ };
12584
+ exports.SMSApiFactory = SMSApiFactory;
12585
+ /**
12586
+ * SMSApi - object-oriented interface
12587
+ */
12588
+ var SMSApi = /** @class */ (function (_super) {
12589
+ __extends(SMSApi, _super);
12590
+ function SMSApi() {
12591
+ return _super !== null && _super.apply(this, arguments) || this;
12592
+ }
12593
+ /**
12594
+ * Send SMS
12595
+ * @param {string} authorization Bearer Token
12596
+ * @param {SmsMessageModel} [smsMessageModel] SMS Message
12597
+ * @param {*} [options] Override http request option.
12598
+ * @throws {RequiredError}
12599
+ */
12600
+ SMSApi.prototype.postSendSms = function (authorization, smsMessageModel, options) {
12601
+ var _this = this;
12602
+ return (0, exports.SMSApiFp)(this.configuration).postSendSms(authorization, smsMessageModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
12603
+ };
12604
+ return SMSApi;
12605
+ }(base_1.BaseAPI));
12606
+ exports.SMSApi = SMSApi;
12607
+ /**
12608
+ * ServicesApi - axios parameter creator
12609
+ */
12610
+ var ServicesApiAxiosParamCreator = function (configuration) {
12611
+ var _this = this;
12612
+ return {
12613
+ /**
12614
+ *
12615
+ * @param {string} [id] Unsubscribe Email ID
12616
+ * @param {string} [email] Unsubscribe Email Address
12617
+ * @param {*} [options] Override http request option.
12618
+ * @throws {RequiredError}
12619
+ */
12620
+ deleteUnsubscribe: function (id_1, email_1) {
12621
+ var args_1 = [];
12622
+ for (var _i = 2; _i < arguments.length; _i++) {
12623
+ args_1[_i - 2] = arguments[_i];
12624
+ }
12625
+ return __awaiter(_this, __spreadArray([id_1, email_1], args_1, true), void 0, function (id, email, options) {
12626
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12627
+ if (options === void 0) { options = {}; }
12628
+ return __generator(this, function (_a) {
12629
+ localVarPath = "/services/incidents/unsubscribe";
12630
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12631
+ if (configuration) {
12632
+ baseOptions = configuration.baseOptions;
12633
+ }
12634
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
12635
+ localVarHeaderParameter = {};
12636
+ localVarQueryParameter = {};
12637
+ if (id !== undefined) {
12638
+ localVarQueryParameter['id'] = id;
12639
+ }
12640
+ if (email !== undefined) {
12641
+ localVarQueryParameter['email'] = email;
12642
+ }
12643
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12644
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12645
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12646
+ return [2 /*return*/, {
12647
+ url: (0, common_1.toPathString)(localVarUrlObj),
12648
+ options: localVarRequestOptions,
12649
+ }];
12650
+ });
12651
+ });
12652
+ },
12653
+ /**
12654
+ *
12655
+ * @param {*} [options] Override http request option.
12656
+ * @throws {RequiredError}
12657
+ */
12658
+ getGetServiceHealth: function () {
12659
+ var args_1 = [];
12660
+ for (var _i = 0; _i < arguments.length; _i++) {
12661
+ args_1[_i] = arguments[_i];
12662
+ }
12663
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
12664
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12665
+ if (options === void 0) { options = {}; }
12666
+ return __generator(this, function (_a) {
12667
+ localVarPath = "/services/health";
12668
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12669
+ if (configuration) {
12670
+ baseOptions = configuration.baseOptions;
12671
+ }
12672
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12673
+ localVarHeaderParameter = {};
12674
+ localVarQueryParameter = {};
12675
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12676
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12677
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12678
+ return [2 /*return*/, {
12679
+ url: (0, common_1.toPathString)(localVarUrlObj),
12680
+ options: localVarRequestOptions,
12681
+ }];
12682
+ });
12683
+ });
12684
+ },
12685
+ /**
12686
+ *
12687
+ * @param {string} id Group ID
12688
+ * @param {*} [options] Override http request option.
12689
+ * @throws {RequiredError}
12690
+ */
12691
+ patchArchiveIncident: function (id_1) {
12692
+ var args_1 = [];
12693
+ for (var _i = 1; _i < arguments.length; _i++) {
12694
+ args_1[_i - 1] = arguments[_i];
12695
+ }
12696
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
12697
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12698
+ if (options === void 0) { options = {}; }
12699
+ return __generator(this, function (_a) {
12700
+ // verify required parameter 'id' is not null or undefined
12701
+ (0, common_1.assertParamExists)('patchArchiveIncident', 'id', id);
12702
+ localVarPath = "/services/incidents/{id}/archive"
12703
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
12704
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12705
+ if (configuration) {
12706
+ baseOptions = configuration.baseOptions;
12707
+ }
12708
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
12709
+ localVarHeaderParameter = {};
12710
+ localVarQueryParameter = {};
12711
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12712
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12713
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12714
+ return [2 /*return*/, {
12715
+ url: (0, common_1.toPathString)(localVarUrlObj),
12716
+ options: localVarRequestOptions,
12717
+ }];
12718
+ });
12719
+ });
12720
+ },
12721
+ /**
12722
+ *
12723
+ * @param {IncidentRequestDTO} [incidentRequestDTO]
12724
+ * @param {*} [options] Override http request option.
12725
+ * @throws {RequiredError}
12726
+ */
12727
+ postCreateIncident: function (incidentRequestDTO_1) {
12728
+ var args_1 = [];
12729
+ for (var _i = 1; _i < arguments.length; _i++) {
12730
+ args_1[_i - 1] = arguments[_i];
12731
+ }
12732
+ return __awaiter(_this, __spreadArray([incidentRequestDTO_1], args_1, true), void 0, function (incidentRequestDTO, options) {
12733
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12734
+ if (options === void 0) { options = {}; }
12735
+ return __generator(this, function (_a) {
12736
+ localVarPath = "/services/incidents";
12737
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12738
+ if (configuration) {
12739
+ baseOptions = configuration.baseOptions;
12740
+ }
12741
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
12742
+ localVarHeaderParameter = {};
12743
+ localVarQueryParameter = {};
12744
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12745
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12746
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12747
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12748
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(incidentRequestDTO, localVarRequestOptions, configuration);
12749
+ return [2 /*return*/, {
12750
+ url: (0, common_1.toPathString)(localVarUrlObj),
12751
+ options: localVarRequestOptions,
12752
+ }];
12753
+ });
12754
+ });
12755
+ },
12756
+ /**
12757
+ *
12758
+ * @param {string} id Group ID
12759
+ * @param {IncidentUpdateRequestDTO} [incidentUpdateRequestDTO]
13587
12760
  * @param {*} [options] Override http request option.
13588
12761
  * @throws {RequiredError}
13589
12762
  */
13590
- postSendSms: function (authorization_1, smsMessageModel_1) {
12763
+ postCreateIncidentUpdate: function (id_1, incidentUpdateRequestDTO_1) {
13591
12764
  var args_1 = [];
13592
12765
  for (var _i = 2; _i < arguments.length; _i++) {
13593
12766
  args_1[_i - 2] = arguments[_i];
13594
12767
  }
13595
- return __awaiter(_this, __spreadArray([authorization_1, smsMessageModel_1], args_1, true), void 0, function (authorization, smsMessageModel, options) {
12768
+ return __awaiter(_this, __spreadArray([id_1, incidentUpdateRequestDTO_1], args_1, true), void 0, function (id, incidentUpdateRequestDTO, options) {
13596
12769
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13597
12770
  if (options === void 0) { options = {}; }
13598
12771
  return __generator(this, function (_a) {
13599
- // verify required parameter 'authorization' is not null or undefined
13600
- (0, common_1.assertParamExists)('postSendSms', 'authorization', authorization);
13601
- localVarPath = "/messaging/sms/send";
12772
+ // verify required parameter 'id' is not null or undefined
12773
+ (0, common_1.assertParamExists)('postCreateIncidentUpdate', 'id', id);
12774
+ localVarPath = "/services/incidents/{id}/updates"
12775
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
13602
12776
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13603
12777
  if (configuration) {
13604
12778
  baseOptions = configuration.baseOptions;
@@ -13607,13 +12781,46 @@ var SMSApiAxiosParamCreator = function (configuration) {
13607
12781
  localVarHeaderParameter = {};
13608
12782
  localVarQueryParameter = {};
13609
12783
  localVarHeaderParameter['Content-Type'] = 'application/json';
13610
- if (authorization != null) {
13611
- localVarHeaderParameter['Authorization'] = String(authorization);
12784
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12785
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12786
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12787
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(incidentUpdateRequestDTO, localVarRequestOptions, configuration);
12788
+ return [2 /*return*/, {
12789
+ url: (0, common_1.toPathString)(localVarUrlObj),
12790
+ options: localVarRequestOptions,
12791
+ }];
12792
+ });
12793
+ });
12794
+ },
12795
+ /**
12796
+ *
12797
+ * @param {string} [email] Subscription Email Address
12798
+ * @param {*} [options] Override http request option.
12799
+ * @throws {RequiredError}
12800
+ */
12801
+ postSubscribe: function (email_1) {
12802
+ var args_1 = [];
12803
+ for (var _i = 1; _i < arguments.length; _i++) {
12804
+ args_1[_i - 1] = arguments[_i];
12805
+ }
12806
+ return __awaiter(_this, __spreadArray([email_1], args_1, true), void 0, function (email, options) {
12807
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12808
+ if (options === void 0) { options = {}; }
12809
+ return __generator(this, function (_a) {
12810
+ localVarPath = "/services/incidents/subscribe";
12811
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12812
+ if (configuration) {
12813
+ baseOptions = configuration.baseOptions;
12814
+ }
12815
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
12816
+ localVarHeaderParameter = {};
12817
+ localVarQueryParameter = {};
12818
+ if (email !== undefined) {
12819
+ localVarQueryParameter['email'] = email;
13612
12820
  }
13613
12821
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13614
12822
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13615
12823
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13616
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(smsMessageModel, localVarRequestOptions, configuration);
13617
12824
  return [2 /*return*/, {
13618
12825
  url: (0, common_1.toPathString)(localVarUrlObj),
13619
12826
  options: localVarRequestOptions,
@@ -13623,31 +12830,141 @@ var SMSApiAxiosParamCreator = function (configuration) {
13623
12830
  },
13624
12831
  };
13625
12832
  };
13626
- exports.SMSApiAxiosParamCreator = SMSApiAxiosParamCreator;
12833
+ exports.ServicesApiAxiosParamCreator = ServicesApiAxiosParamCreator;
13627
12834
  /**
13628
- * SMSApi - functional programming interface
12835
+ * ServicesApi - functional programming interface
13629
12836
  */
13630
- var SMSApiFp = function (configuration) {
13631
- var localVarAxiosParamCreator = (0, exports.SMSApiAxiosParamCreator)(configuration);
12837
+ var ServicesApiFp = function (configuration) {
12838
+ var localVarAxiosParamCreator = (0, exports.ServicesApiAxiosParamCreator)(configuration);
13632
12839
  return {
13633
12840
  /**
13634
- * Send SMS
13635
- * @param {string} authorization Bearer Token
13636
- * @param {SmsMessageModel} [smsMessageModel] SMS Message
12841
+ *
12842
+ * @param {string} [id] Unsubscribe Email ID
12843
+ * @param {string} [email] Unsubscribe Email Address
13637
12844
  * @param {*} [options] Override http request option.
13638
12845
  * @throws {RequiredError}
13639
12846
  */
13640
- postSendSms: function (authorization, smsMessageModel, options) {
12847
+ deleteUnsubscribe: function (id, email, options) {
13641
12848
  return __awaiter(this, void 0, void 0, function () {
13642
12849
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
13643
12850
  var _a, _b, _c;
13644
12851
  return __generator(this, function (_d) {
13645
12852
  switch (_d.label) {
13646
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSendSms(authorization, smsMessageModel, options)];
12853
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUnsubscribe(id, email, options)];
13647
12854
  case 1:
13648
12855
  localVarAxiosArgs = _d.sent();
13649
12856
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13650
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SMSApi.postSendSms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12857
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServicesApi.deleteUnsubscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12858
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12859
+ }
12860
+ });
12861
+ });
12862
+ },
12863
+ /**
12864
+ *
12865
+ * @param {*} [options] Override http request option.
12866
+ * @throws {RequiredError}
12867
+ */
12868
+ getGetServiceHealth: function (options) {
12869
+ return __awaiter(this, void 0, void 0, function () {
12870
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12871
+ var _a, _b, _c;
12872
+ return __generator(this, function (_d) {
12873
+ switch (_d.label) {
12874
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetServiceHealth(options)];
12875
+ case 1:
12876
+ localVarAxiosArgs = _d.sent();
12877
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12878
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServicesApi.getGetServiceHealth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12879
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12880
+ }
12881
+ });
12882
+ });
12883
+ },
12884
+ /**
12885
+ *
12886
+ * @param {string} id Group ID
12887
+ * @param {*} [options] Override http request option.
12888
+ * @throws {RequiredError}
12889
+ */
12890
+ patchArchiveIncident: function (id, options) {
12891
+ return __awaiter(this, void 0, void 0, function () {
12892
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12893
+ var _a, _b, _c;
12894
+ return __generator(this, function (_d) {
12895
+ switch (_d.label) {
12896
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchArchiveIncident(id, options)];
12897
+ case 1:
12898
+ localVarAxiosArgs = _d.sent();
12899
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12900
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServicesApi.patchArchiveIncident']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12901
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12902
+ }
12903
+ });
12904
+ });
12905
+ },
12906
+ /**
12907
+ *
12908
+ * @param {IncidentRequestDTO} [incidentRequestDTO]
12909
+ * @param {*} [options] Override http request option.
12910
+ * @throws {RequiredError}
12911
+ */
12912
+ postCreateIncident: function (incidentRequestDTO, options) {
12913
+ return __awaiter(this, void 0, void 0, function () {
12914
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12915
+ var _a, _b, _c;
12916
+ return __generator(this, function (_d) {
12917
+ switch (_d.label) {
12918
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateIncident(incidentRequestDTO, options)];
12919
+ case 1:
12920
+ localVarAxiosArgs = _d.sent();
12921
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12922
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServicesApi.postCreateIncident']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12923
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12924
+ }
12925
+ });
12926
+ });
12927
+ },
12928
+ /**
12929
+ *
12930
+ * @param {string} id Group ID
12931
+ * @param {IncidentUpdateRequestDTO} [incidentUpdateRequestDTO]
12932
+ * @param {*} [options] Override http request option.
12933
+ * @throws {RequiredError}
12934
+ */
12935
+ postCreateIncidentUpdate: function (id, incidentUpdateRequestDTO, options) {
12936
+ return __awaiter(this, void 0, void 0, function () {
12937
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12938
+ var _a, _b, _c;
12939
+ return __generator(this, function (_d) {
12940
+ switch (_d.label) {
12941
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateIncidentUpdate(id, incidentUpdateRequestDTO, options)];
12942
+ case 1:
12943
+ localVarAxiosArgs = _d.sent();
12944
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12945
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServicesApi.postCreateIncidentUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12946
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12947
+ }
12948
+ });
12949
+ });
12950
+ },
12951
+ /**
12952
+ *
12953
+ * @param {string} [email] Subscription Email Address
12954
+ * @param {*} [options] Override http request option.
12955
+ * @throws {RequiredError}
12956
+ */
12957
+ postSubscribe: function (email, options) {
12958
+ return __awaiter(this, void 0, void 0, function () {
12959
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12960
+ var _a, _b, _c;
12961
+ return __generator(this, function (_d) {
12962
+ switch (_d.label) {
12963
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postSubscribe(email, options)];
12964
+ case 1:
12965
+ localVarAxiosArgs = _d.sent();
12966
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12967
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ServicesApi.postSubscribe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13651
12968
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
13652
12969
  }
13653
12970
  });
@@ -13655,48 +12972,143 @@ var SMSApiFp = function (configuration) {
13655
12972
  },
13656
12973
  };
13657
12974
  };
13658
- exports.SMSApiFp = SMSApiFp;
12975
+ exports.ServicesApiFp = ServicesApiFp;
13659
12976
  /**
13660
- * SMSApi - factory interface
12977
+ * ServicesApi - factory interface
13661
12978
  */
13662
- var SMSApiFactory = function (configuration, basePath, axios) {
13663
- var localVarFp = (0, exports.SMSApiFp)(configuration);
12979
+ var ServicesApiFactory = function (configuration, basePath, axios) {
12980
+ var localVarFp = (0, exports.ServicesApiFp)(configuration);
13664
12981
  return {
13665
12982
  /**
13666
- * Send SMS
13667
- * @param {string} authorization Bearer Token
13668
- * @param {SmsMessageModel} [smsMessageModel] SMS Message
12983
+ *
12984
+ * @param {string} [id] Unsubscribe Email ID
12985
+ * @param {string} [email] Unsubscribe Email Address
13669
12986
  * @param {*} [options] Override http request option.
13670
12987
  * @throws {RequiredError}
13671
12988
  */
13672
- postSendSms: function (authorization, smsMessageModel, options) {
13673
- return localVarFp.postSendSms(authorization, smsMessageModel, options).then(function (request) { return request(axios, basePath); });
12989
+ deleteUnsubscribe: function (id, email, options) {
12990
+ return localVarFp.deleteUnsubscribe(id, email, options).then(function (request) { return request(axios, basePath); });
12991
+ },
12992
+ /**
12993
+ *
12994
+ * @param {*} [options] Override http request option.
12995
+ * @throws {RequiredError}
12996
+ */
12997
+ getGetServiceHealth: function (options) {
12998
+ return localVarFp.getGetServiceHealth(options).then(function (request) { return request(axios, basePath); });
12999
+ },
13000
+ /**
13001
+ *
13002
+ * @param {string} id Group ID
13003
+ * @param {*} [options] Override http request option.
13004
+ * @throws {RequiredError}
13005
+ */
13006
+ patchArchiveIncident: function (id, options) {
13007
+ return localVarFp.patchArchiveIncident(id, options).then(function (request) { return request(axios, basePath); });
13008
+ },
13009
+ /**
13010
+ *
13011
+ * @param {IncidentRequestDTO} [incidentRequestDTO]
13012
+ * @param {*} [options] Override http request option.
13013
+ * @throws {RequiredError}
13014
+ */
13015
+ postCreateIncident: function (incidentRequestDTO, options) {
13016
+ return localVarFp.postCreateIncident(incidentRequestDTO, options).then(function (request) { return request(axios, basePath); });
13017
+ },
13018
+ /**
13019
+ *
13020
+ * @param {string} id Group ID
13021
+ * @param {IncidentUpdateRequestDTO} [incidentUpdateRequestDTO]
13022
+ * @param {*} [options] Override http request option.
13023
+ * @throws {RequiredError}
13024
+ */
13025
+ postCreateIncidentUpdate: function (id, incidentUpdateRequestDTO, options) {
13026
+ return localVarFp.postCreateIncidentUpdate(id, incidentUpdateRequestDTO, options).then(function (request) { return request(axios, basePath); });
13027
+ },
13028
+ /**
13029
+ *
13030
+ * @param {string} [email] Subscription Email Address
13031
+ * @param {*} [options] Override http request option.
13032
+ * @throws {RequiredError}
13033
+ */
13034
+ postSubscribe: function (email, options) {
13035
+ return localVarFp.postSubscribe(email, options).then(function (request) { return request(axios, basePath); });
13674
13036
  },
13675
13037
  };
13676
13038
  };
13677
- exports.SMSApiFactory = SMSApiFactory;
13039
+ exports.ServicesApiFactory = ServicesApiFactory;
13678
13040
  /**
13679
- * SMSApi - object-oriented interface
13041
+ * ServicesApi - object-oriented interface
13680
13042
  */
13681
- var SMSApi = /** @class */ (function (_super) {
13682
- __extends(SMSApi, _super);
13683
- function SMSApi() {
13043
+ var ServicesApi = /** @class */ (function (_super) {
13044
+ __extends(ServicesApi, _super);
13045
+ function ServicesApi() {
13684
13046
  return _super !== null && _super.apply(this, arguments) || this;
13685
13047
  }
13686
13048
  /**
13687
- * Send SMS
13688
- * @param {string} authorization Bearer Token
13689
- * @param {SmsMessageModel} [smsMessageModel] SMS Message
13049
+ *
13050
+ * @param {string} [id] Unsubscribe Email ID
13051
+ * @param {string} [email] Unsubscribe Email Address
13690
13052
  * @param {*} [options] Override http request option.
13691
13053
  * @throws {RequiredError}
13692
13054
  */
13693
- SMSApi.prototype.postSendSms = function (authorization, smsMessageModel, options) {
13055
+ ServicesApi.prototype.deleteUnsubscribe = function (id, email, options) {
13694
13056
  var _this = this;
13695
- return (0, exports.SMSApiFp)(this.configuration).postSendSms(authorization, smsMessageModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
13057
+ return (0, exports.ServicesApiFp)(this.configuration).deleteUnsubscribe(id, email, options).then(function (request) { return request(_this.axios, _this.basePath); });
13696
13058
  };
13697
- return SMSApi;
13059
+ /**
13060
+ *
13061
+ * @param {*} [options] Override http request option.
13062
+ * @throws {RequiredError}
13063
+ */
13064
+ ServicesApi.prototype.getGetServiceHealth = function (options) {
13065
+ var _this = this;
13066
+ return (0, exports.ServicesApiFp)(this.configuration).getGetServiceHealth(options).then(function (request) { return request(_this.axios, _this.basePath); });
13067
+ };
13068
+ /**
13069
+ *
13070
+ * @param {string} id Group ID
13071
+ * @param {*} [options] Override http request option.
13072
+ * @throws {RequiredError}
13073
+ */
13074
+ ServicesApi.prototype.patchArchiveIncident = function (id, options) {
13075
+ var _this = this;
13076
+ return (0, exports.ServicesApiFp)(this.configuration).patchArchiveIncident(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
13077
+ };
13078
+ /**
13079
+ *
13080
+ * @param {IncidentRequestDTO} [incidentRequestDTO]
13081
+ * @param {*} [options] Override http request option.
13082
+ * @throws {RequiredError}
13083
+ */
13084
+ ServicesApi.prototype.postCreateIncident = function (incidentRequestDTO, options) {
13085
+ var _this = this;
13086
+ return (0, exports.ServicesApiFp)(this.configuration).postCreateIncident(incidentRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
13087
+ };
13088
+ /**
13089
+ *
13090
+ * @param {string} id Group ID
13091
+ * @param {IncidentUpdateRequestDTO} [incidentUpdateRequestDTO]
13092
+ * @param {*} [options] Override http request option.
13093
+ * @throws {RequiredError}
13094
+ */
13095
+ ServicesApi.prototype.postCreateIncidentUpdate = function (id, incidentUpdateRequestDTO, options) {
13096
+ var _this = this;
13097
+ return (0, exports.ServicesApiFp)(this.configuration).postCreateIncidentUpdate(id, incidentUpdateRequestDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
13098
+ };
13099
+ /**
13100
+ *
13101
+ * @param {string} [email] Subscription Email Address
13102
+ * @param {*} [options] Override http request option.
13103
+ * @throws {RequiredError}
13104
+ */
13105
+ ServicesApi.prototype.postSubscribe = function (email, options) {
13106
+ var _this = this;
13107
+ return (0, exports.ServicesApiFp)(this.configuration).postSubscribe(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
13108
+ };
13109
+ return ServicesApi;
13698
13110
  }(base_1.BaseAPI));
13699
- exports.SMSApi = SMSApi;
13111
+ exports.ServicesApi = ServicesApi;
13700
13112
  /**
13701
13113
  * ShippingApi - axios parameter creator
13702
13114
  */