yellowgrid-api-ts 3.2.177-dev.0 → 3.2.178-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/.openapi-generator/FILES +2 -1
- package/README.md +4 -1
- package/api.ts +170 -30
- package/dist/api.d.ts +110 -19
- package/dist/api.js +144 -40
- package/docs/Class3CXApi.md +50 -2
- package/docs/ExpiringKeyDTO.md +29 -0
- package/docs/OpayoRedirectDTO.md +29 -0
- package/docs/OrdersApi.md +4 -1
- package/docs/ProductsApi.md +8 -2
- package/docs/ProvisioningApi.md +12 -4
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.gitignore
|
|
2
2
|
.npmignore
|
|
3
|
-
.openapi-generator-ignore
|
|
4
3
|
README.md
|
|
5
4
|
api.ts
|
|
6
5
|
base.ts
|
|
@@ -86,6 +85,7 @@ docs/EventSubscriptionModel.md
|
|
|
86
85
|
docs/EventUpdateDTO.md
|
|
87
86
|
docs/EventUpdateEntity.md
|
|
88
87
|
docs/EventUpdateRequestDTO.md
|
|
88
|
+
docs/ExpiringKeyDTO.md
|
|
89
89
|
docs/FraudManagementModel.md
|
|
90
90
|
docs/FreshdeskCompanyTicketsModel.md
|
|
91
91
|
docs/FreshdeskTicketEntity.md
|
|
@@ -125,6 +125,7 @@ docs/NumberPortingApi.md
|
|
|
125
125
|
docs/NumberPortsModel.md
|
|
126
126
|
docs/OAuth20Api.md
|
|
127
127
|
docs/OfflineInstancesEntity.md
|
|
128
|
+
docs/OpayoRedirectDTO.md
|
|
128
129
|
docs/OrderDTO.md
|
|
129
130
|
docs/OrderDetailsDTO.md
|
|
130
131
|
docs/OrderEntity.md
|
package/README.md
CHANGED
|
@@ -103,7 +103,8 @@ Class | Method | HTTP request | Description
|
|
|
103
103
|
*CRMApi* | [**postCreateCrmNote**](docs/CRMApi.md#postcreatecrmnote) | **POST** /admin/crm/{id}/activities/note |
|
|
104
104
|
*Class3CXApi* | [**getGetLicenceDetails**](docs/Class3CXApi.md#getgetlicencedetails) | **GET** /tcx/licences/details | Get 3CX Licence Details
|
|
105
105
|
*Class3CXApi* | [**getGetTcxCreditStatus**](docs/Class3CXApi.md#getgettcxcreditstatus) | **GET** /tcx/admin/credit | Get 3CX Credit Status
|
|
106
|
-
*Class3CXApi* | [**getGetTcxExpiringKeys**](docs/Class3CXApi.md#getgettcxexpiringkeys) | **GET** /tcx/admin/keys/expiring
|
|
106
|
+
*Class3CXApi* | [**getGetTcxExpiringKeys**](docs/Class3CXApi.md#getgettcxexpiringkeys) | **GET** /tcx/admin/keys/expiring | Get 3CX Expiring Keys
|
|
107
|
+
*Class3CXApi* | [**getGetTcxExpiringKeysCsv**](docs/Class3CXApi.md#getgettcxexpiringkeyscsv) | **GET** /tcx/admin/keys/expiring/csv | Get 3CX Expiring Keys
|
|
107
108
|
*Class3CXApi* | [**getGetTcxPartners**](docs/Class3CXApi.md#getgettcxpartners) | **GET** /tcx/admin/partners | Get 3CX Partners
|
|
108
109
|
*Class3CXApi* | [**postGetBulkLicenceDetails**](docs/Class3CXApi.md#postgetbulklicencedetails) | **POST** /tcx/licences/bulk/details | Get bulk 3CX Licence Details
|
|
109
110
|
*Class3CXInstallationWizardApi* | [**deleteAddExtensions**](docs/Class3CXInstallationWizardApi.md#deleteaddextensions) | **DELETE** /tcx/wizards/extensions | Delete 3CX Installation Wizard Extensions
|
|
@@ -393,6 +394,7 @@ Class | Method | HTTP request | Description
|
|
|
393
394
|
- [EventUpdateDTO](docs/EventUpdateDTO.md)
|
|
394
395
|
- [EventUpdateEntity](docs/EventUpdateEntity.md)
|
|
395
396
|
- [EventUpdateRequestDTO](docs/EventUpdateRequestDTO.md)
|
|
397
|
+
- [ExpiringKeyDTO](docs/ExpiringKeyDTO.md)
|
|
396
398
|
- [FraudManagementModel](docs/FraudManagementModel.md)
|
|
397
399
|
- [FreshdeskCompanyTicketsModel](docs/FreshdeskCompanyTicketsModel.md)
|
|
398
400
|
- [FreshdeskTicketEntity](docs/FreshdeskTicketEntity.md)
|
|
@@ -429,6 +431,7 @@ Class | Method | HTTP request | Description
|
|
|
429
431
|
- [NumberPortRangeRequestDTO](docs/NumberPortRangeRequestDTO.md)
|
|
430
432
|
- [NumberPortsModel](docs/NumberPortsModel.md)
|
|
431
433
|
- [OfflineInstancesEntity](docs/OfflineInstancesEntity.md)
|
|
434
|
+
- [OpayoRedirectDTO](docs/OpayoRedirectDTO.md)
|
|
432
435
|
- [OrderDTO](docs/OrderDTO.md)
|
|
433
436
|
- [OrderDetailsDTO](docs/OrderDetailsDTO.md)
|
|
434
437
|
- [OrderEntity](docs/OrderEntity.md)
|
package/api.ts
CHANGED
|
@@ -2488,6 +2488,28 @@ export interface EventUpdateRequestDTO {
|
|
|
2488
2488
|
*/
|
|
2489
2489
|
'createdAt'?: string;
|
|
2490
2490
|
}
|
|
2491
|
+
/**
|
|
2492
|
+
* 3CX Expiring Key
|
|
2493
|
+
*/
|
|
2494
|
+
export interface ExpiringKeyDTO {
|
|
2495
|
+
/**
|
|
2496
|
+
* Date Time
|
|
2497
|
+
*/
|
|
2498
|
+
'expiryDate'?: string;
|
|
2499
|
+
/**
|
|
2500
|
+
* Licence Key
|
|
2501
|
+
*/
|
|
2502
|
+
'licenceKey'?: string;
|
|
2503
|
+
/**
|
|
2504
|
+
* Edition
|
|
2505
|
+
*/
|
|
2506
|
+
'edition'?: string;
|
|
2507
|
+
/**
|
|
2508
|
+
* Type
|
|
2509
|
+
*/
|
|
2510
|
+
'type'?: string;
|
|
2511
|
+
'partner'?: PartnerDTO;
|
|
2512
|
+
}
|
|
2491
2513
|
/**
|
|
2492
2514
|
* Fraud Management
|
|
2493
2515
|
*/
|
|
@@ -3562,6 +3584,31 @@ export interface OfflineInstancesEntity {
|
|
|
3562
3584
|
*/
|
|
3563
3585
|
'alerted'?: number;
|
|
3564
3586
|
}
|
|
3587
|
+
/**
|
|
3588
|
+
* Opayo Redirect
|
|
3589
|
+
*/
|
|
3590
|
+
export interface OpayoRedirectDTO {
|
|
3591
|
+
/**
|
|
3592
|
+
* acsUrl
|
|
3593
|
+
*/
|
|
3594
|
+
'acsUrl'?: string | null;
|
|
3595
|
+
/**
|
|
3596
|
+
* paReq
|
|
3597
|
+
*/
|
|
3598
|
+
'paReq'?: string | null;
|
|
3599
|
+
/**
|
|
3600
|
+
* Transaction ID
|
|
3601
|
+
*/
|
|
3602
|
+
'transactionId'?: string | null;
|
|
3603
|
+
/**
|
|
3604
|
+
* dsTranId
|
|
3605
|
+
*/
|
|
3606
|
+
'dsTranId'?: string | null;
|
|
3607
|
+
/**
|
|
3608
|
+
* cReq
|
|
3609
|
+
*/
|
|
3610
|
+
'cReq'?: string | null;
|
|
3611
|
+
}
|
|
3565
3612
|
/**
|
|
3566
3613
|
* Legacy Portal Order
|
|
3567
3614
|
*/
|
|
@@ -12297,6 +12344,36 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12297
12344
|
* @throws {RequiredError}
|
|
12298
12345
|
*/
|
|
12299
12346
|
getGetTcxExpiringKeys: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12347
|
+
const localVarPath = `/tcx/admin/keys/expiring`;
|
|
12348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12349
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12350
|
+
let baseOptions;
|
|
12351
|
+
if (configuration) {
|
|
12352
|
+
baseOptions = configuration.baseOptions;
|
|
12353
|
+
}
|
|
12354
|
+
|
|
12355
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12356
|
+
const localVarHeaderParameter = {} as any;
|
|
12357
|
+
const localVarQueryParameter = {} as any;
|
|
12358
|
+
|
|
12359
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
12360
|
+
|
|
12361
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12362
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12363
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12364
|
+
|
|
12365
|
+
return {
|
|
12366
|
+
url: toPathString(localVarUrlObj),
|
|
12367
|
+
options: localVarRequestOptions,
|
|
12368
|
+
};
|
|
12369
|
+
},
|
|
12370
|
+
/**
|
|
12371
|
+
* Get 3CX Expiring Keys
|
|
12372
|
+
* @summary Get 3CX Expiring Keys
|
|
12373
|
+
* @param {*} [options] Override http request option.
|
|
12374
|
+
* @throws {RequiredError}
|
|
12375
|
+
*/
|
|
12376
|
+
getGetTcxExpiringKeysCsv: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12300
12377
|
const localVarPath = `/tcx/admin/keys/expiring/csv`;
|
|
12301
12378
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12302
12379
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12423,12 +12500,24 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
12423
12500
|
* @param {*} [options] Override http request option.
|
|
12424
12501
|
* @throws {RequiredError}
|
|
12425
12502
|
*/
|
|
12426
|
-
async getGetTcxExpiringKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
12503
|
+
async getGetTcxExpiringKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExpiringKeyDTO>>> {
|
|
12427
12504
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetTcxExpiringKeys(options);
|
|
12428
12505
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12429
12506
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetTcxExpiringKeys']?.[localVarOperationServerIndex]?.url;
|
|
12430
12507
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12431
12508
|
},
|
|
12509
|
+
/**
|
|
12510
|
+
* Get 3CX Expiring Keys
|
|
12511
|
+
* @summary Get 3CX Expiring Keys
|
|
12512
|
+
* @param {*} [options] Override http request option.
|
|
12513
|
+
* @throws {RequiredError}
|
|
12514
|
+
*/
|
|
12515
|
+
async getGetTcxExpiringKeysCsv(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
12516
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetTcxExpiringKeysCsv(options);
|
|
12517
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12518
|
+
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetTcxExpiringKeysCsv']?.[localVarOperationServerIndex]?.url;
|
|
12519
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12520
|
+
},
|
|
12432
12521
|
/**
|
|
12433
12522
|
* Get 3CX Partners
|
|
12434
12523
|
* @summary Get 3CX Partners
|
|
@@ -12488,9 +12577,18 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
12488
12577
|
* @param {*} [options] Override http request option.
|
|
12489
12578
|
* @throws {RequiredError}
|
|
12490
12579
|
*/
|
|
12491
|
-
getGetTcxExpiringKeys(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
12580
|
+
getGetTcxExpiringKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<ExpiringKeyDTO>> {
|
|
12492
12581
|
return localVarFp.getGetTcxExpiringKeys(options).then((request) => request(axios, basePath));
|
|
12493
12582
|
},
|
|
12583
|
+
/**
|
|
12584
|
+
* Get 3CX Expiring Keys
|
|
12585
|
+
* @summary Get 3CX Expiring Keys
|
|
12586
|
+
* @param {*} [options] Override http request option.
|
|
12587
|
+
* @throws {RequiredError}
|
|
12588
|
+
*/
|
|
12589
|
+
getGetTcxExpiringKeysCsv(options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
12590
|
+
return localVarFp.getGetTcxExpiringKeysCsv(options).then((request) => request(axios, basePath));
|
|
12591
|
+
},
|
|
12494
12592
|
/**
|
|
12495
12593
|
* Get 3CX Partners
|
|
12496
12594
|
* @summary Get 3CX Partners
|
|
@@ -12548,6 +12646,16 @@ export class Class3CXApi extends BaseAPI {
|
|
|
12548
12646
|
return Class3CXApiFp(this.configuration).getGetTcxExpiringKeys(options).then((request) => request(this.axios, this.basePath));
|
|
12549
12647
|
}
|
|
12550
12648
|
|
|
12649
|
+
/**
|
|
12650
|
+
* Get 3CX Expiring Keys
|
|
12651
|
+
* @summary Get 3CX Expiring Keys
|
|
12652
|
+
* @param {*} [options] Override http request option.
|
|
12653
|
+
* @throws {RequiredError}
|
|
12654
|
+
*/
|
|
12655
|
+
public getGetTcxExpiringKeysCsv(options?: RawAxiosRequestConfig) {
|
|
12656
|
+
return Class3CXApiFp(this.configuration).getGetTcxExpiringKeysCsv(options).then((request) => request(this.axios, this.basePath));
|
|
12657
|
+
}
|
|
12658
|
+
|
|
12551
12659
|
/**
|
|
12552
12660
|
* Get 3CX Partners
|
|
12553
12661
|
* @summary Get 3CX Partners
|
|
@@ -20017,12 +20125,15 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20017
20125
|
* Mark Order As Complete (Admin)
|
|
20018
20126
|
* @summary Mark Order As Complete (Admin)
|
|
20019
20127
|
* @param {number} id Order ID
|
|
20128
|
+
* @param {boolean} complete Complete Status
|
|
20020
20129
|
* @param {*} [options] Override http request option.
|
|
20021
20130
|
* @throws {RequiredError}
|
|
20022
20131
|
*/
|
|
20023
|
-
patchCompleteOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20132
|
+
patchCompleteOrder: async (id: number, complete: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20024
20133
|
// verify required parameter 'id' is not null or undefined
|
|
20025
20134
|
assertParamExists('patchCompleteOrder', 'id', id)
|
|
20135
|
+
// verify required parameter 'complete' is not null or undefined
|
|
20136
|
+
assertParamExists('patchCompleteOrder', 'complete', complete)
|
|
20026
20137
|
const localVarPath = `/admin/orders/{id}/complete`
|
|
20027
20138
|
.replace('{id}', encodeURIComponent(String(id)));
|
|
20028
20139
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -20036,6 +20147,10 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20036
20147
|
const localVarHeaderParameter = {} as any;
|
|
20037
20148
|
const localVarQueryParameter = {} as any;
|
|
20038
20149
|
|
|
20150
|
+
if (complete !== undefined) {
|
|
20151
|
+
localVarQueryParameter['complete'] = complete;
|
|
20152
|
+
}
|
|
20153
|
+
|
|
20039
20154
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
20040
20155
|
|
|
20041
20156
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -20983,11 +21098,12 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
20983
21098
|
* Mark Order As Complete (Admin)
|
|
20984
21099
|
* @summary Mark Order As Complete (Admin)
|
|
20985
21100
|
* @param {number} id Order ID
|
|
21101
|
+
* @param {boolean} complete Complete Status
|
|
20986
21102
|
* @param {*} [options] Override http request option.
|
|
20987
21103
|
* @throws {RequiredError}
|
|
20988
21104
|
*/
|
|
20989
|
-
async patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
|
|
20990
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCompleteOrder(id, options);
|
|
21105
|
+
async patchCompleteOrder(id: number, complete: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
|
|
21106
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCompleteOrder(id, complete, options);
|
|
20991
21107
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20992
21108
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.patchCompleteOrder']?.[localVarOperationServerIndex]?.url;
|
|
20993
21109
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -21403,11 +21519,12 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
21403
21519
|
* Mark Order As Complete (Admin)
|
|
21404
21520
|
* @summary Mark Order As Complete (Admin)
|
|
21405
21521
|
* @param {number} id Order ID
|
|
21522
|
+
* @param {boolean} complete Complete Status
|
|
21406
21523
|
* @param {*} [options] Override http request option.
|
|
21407
21524
|
* @throws {RequiredError}
|
|
21408
21525
|
*/
|
|
21409
|
-
patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
|
|
21410
|
-
return localVarFp.patchCompleteOrder(id, options).then((request) => request(axios, basePath));
|
|
21526
|
+
patchCompleteOrder(id: number, complete: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
|
|
21527
|
+
return localVarFp.patchCompleteOrder(id, complete, options).then((request) => request(axios, basePath));
|
|
21411
21528
|
},
|
|
21412
21529
|
/**
|
|
21413
21530
|
* Add Order Note
|
|
@@ -21772,11 +21889,12 @@ export class OrdersApi extends BaseAPI {
|
|
|
21772
21889
|
* Mark Order As Complete (Admin)
|
|
21773
21890
|
* @summary Mark Order As Complete (Admin)
|
|
21774
21891
|
* @param {number} id Order ID
|
|
21892
|
+
* @param {boolean} complete Complete Status
|
|
21775
21893
|
* @param {*} [options] Override http request option.
|
|
21776
21894
|
* @throws {RequiredError}
|
|
21777
21895
|
*/
|
|
21778
|
-
public patchCompleteOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
21779
|
-
return OrdersApiFp(this.configuration).patchCompleteOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
21896
|
+
public patchCompleteOrder(id: number, complete: boolean, options?: RawAxiosRequestConfig) {
|
|
21897
|
+
return OrdersApiFp(this.configuration).patchCompleteOrder(id, complete, options).then((request) => request(this.axios, this.basePath));
|
|
21780
21898
|
}
|
|
21781
21899
|
|
|
21782
21900
|
/**
|
|
@@ -22650,10 +22768,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
22650
22768
|
* @summary Get Product
|
|
22651
22769
|
* @param {string} sku Product SKU
|
|
22652
22770
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
22771
|
+
* @param {number} [orderId] Order ID
|
|
22653
22772
|
* @param {*} [options] Override http request option.
|
|
22654
22773
|
* @throws {RequiredError}
|
|
22655
22774
|
*/
|
|
22656
|
-
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22775
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22657
22776
|
// verify required parameter 'sku' is not null or undefined
|
|
22658
22777
|
assertParamExists('postGetProduct', 'sku', sku)
|
|
22659
22778
|
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
@@ -22671,6 +22790,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
22671
22790
|
const localVarHeaderParameter = {} as any;
|
|
22672
22791
|
const localVarQueryParameter = {} as any;
|
|
22673
22792
|
|
|
22793
|
+
if (orderId !== undefined) {
|
|
22794
|
+
localVarQueryParameter['orderId'] = orderId;
|
|
22795
|
+
}
|
|
22796
|
+
|
|
22674
22797
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22675
22798
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
22676
22799
|
|
|
@@ -22690,10 +22813,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
22690
22813
|
* @param {number} customerId Customer ID
|
|
22691
22814
|
* @param {string} sku Product SKU
|
|
22692
22815
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
22816
|
+
* @param {number} [orderId] Order ID
|
|
22693
22817
|
* @param {*} [options] Override http request option.
|
|
22694
22818
|
* @throws {RequiredError}
|
|
22695
22819
|
*/
|
|
22696
|
-
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22820
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22697
22821
|
// verify required parameter 'customerId' is not null or undefined
|
|
22698
22822
|
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
22699
22823
|
// verify required parameter 'sku' is not null or undefined
|
|
@@ -22717,6 +22841,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
22717
22841
|
localVarQueryParameter['customerId'] = customerId;
|
|
22718
22842
|
}
|
|
22719
22843
|
|
|
22844
|
+
if (orderId !== undefined) {
|
|
22845
|
+
localVarQueryParameter['orderId'] = orderId;
|
|
22846
|
+
}
|
|
22847
|
+
|
|
22720
22848
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22721
22849
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
22722
22850
|
|
|
@@ -22847,11 +22975,12 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
22847
22975
|
* @summary Get Product
|
|
22848
22976
|
* @param {string} sku Product SKU
|
|
22849
22977
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
22978
|
+
* @param {number} [orderId] Order ID
|
|
22850
22979
|
* @param {*} [options] Override http request option.
|
|
22851
22980
|
* @throws {RequiredError}
|
|
22852
22981
|
*/
|
|
22853
|
-
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
22854
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
22982
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
22983
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, orderId, options);
|
|
22855
22984
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22856
22985
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
22857
22986
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -22862,11 +22991,12 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
22862
22991
|
* @param {number} customerId Customer ID
|
|
22863
22992
|
* @param {string} sku Product SKU
|
|
22864
22993
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
22994
|
+
* @param {number} [orderId] Order ID
|
|
22865
22995
|
* @param {*} [options] Override http request option.
|
|
22866
22996
|
* @throws {RequiredError}
|
|
22867
22997
|
*/
|
|
22868
|
-
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
22869
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
22998
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
22999
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, orderId, options);
|
|
22870
23000
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22871
23001
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
22872
23002
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -22964,11 +23094,12 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
22964
23094
|
* @summary Get Product
|
|
22965
23095
|
* @param {string} sku Product SKU
|
|
22966
23096
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
23097
|
+
* @param {number} [orderId] Order ID
|
|
22967
23098
|
* @param {*} [options] Override http request option.
|
|
22968
23099
|
* @throws {RequiredError}
|
|
22969
23100
|
*/
|
|
22970
|
-
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
22971
|
-
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
23101
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
23102
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, orderId, options).then((request) => request(axios, basePath));
|
|
22972
23103
|
},
|
|
22973
23104
|
/**
|
|
22974
23105
|
* Get Product For Customer
|
|
@@ -22976,11 +23107,12 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
22976
23107
|
* @param {number} customerId Customer ID
|
|
22977
23108
|
* @param {string} sku Product SKU
|
|
22978
23109
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
23110
|
+
* @param {number} [orderId] Order ID
|
|
22979
23111
|
* @param {*} [options] Override http request option.
|
|
22980
23112
|
* @throws {RequiredError}
|
|
22981
23113
|
*/
|
|
22982
|
-
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
22983
|
-
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
23114
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
23115
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, orderId, options).then((request) => request(axios, basePath));
|
|
22984
23116
|
},
|
|
22985
23117
|
};
|
|
22986
23118
|
};
|
|
@@ -23081,11 +23213,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
23081
23213
|
* @summary Get Product
|
|
23082
23214
|
* @param {string} sku Product SKU
|
|
23083
23215
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
23216
|
+
* @param {number} [orderId] Order ID
|
|
23084
23217
|
* @param {*} [options] Override http request option.
|
|
23085
23218
|
* @throws {RequiredError}
|
|
23086
23219
|
*/
|
|
23087
|
-
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
23088
|
-
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
23220
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig) {
|
|
23221
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, orderId, options).then((request) => request(this.axios, this.basePath));
|
|
23089
23222
|
}
|
|
23090
23223
|
|
|
23091
23224
|
/**
|
|
@@ -23094,11 +23227,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
23094
23227
|
* @param {number} customerId Customer ID
|
|
23095
23228
|
* @param {string} sku Product SKU
|
|
23096
23229
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
23230
|
+
* @param {number} [orderId] Order ID
|
|
23097
23231
|
* @param {*} [options] Override http request option.
|
|
23098
23232
|
* @throws {RequiredError}
|
|
23099
23233
|
*/
|
|
23100
|
-
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
23101
|
-
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
23234
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig) {
|
|
23235
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, orderId, options).then((request) => request(this.axios, this.basePath));
|
|
23102
23236
|
}
|
|
23103
23237
|
}
|
|
23104
23238
|
|
|
@@ -23746,10 +23880,11 @@ export const ProvisioningApiAxiosParamCreator = function (configuration?: Config
|
|
|
23746
23880
|
},
|
|
23747
23881
|
/**
|
|
23748
23882
|
* Create a MAC address in FDPS
|
|
23883
|
+
* @param {MacAddressDTO} [macAddressDTO] Mac Address
|
|
23749
23884
|
* @param {*} [options] Override http request option.
|
|
23750
23885
|
* @throws {RequiredError}
|
|
23751
23886
|
*/
|
|
23752
|
-
postCreateMac: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23887
|
+
postCreateMac: async (macAddressDTO?: MacAddressDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23753
23888
|
const localVarPath = `/admin/provisioning/fanvil/macs/`;
|
|
23754
23889
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23755
23890
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -23762,11 +23897,13 @@ export const ProvisioningApiAxiosParamCreator = function (configuration?: Config
|
|
|
23762
23897
|
const localVarHeaderParameter = {} as any;
|
|
23763
23898
|
const localVarQueryParameter = {} as any;
|
|
23764
23899
|
|
|
23900
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23765
23901
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
23766
23902
|
|
|
23767
23903
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23768
23904
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23769
23905
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
23906
|
+
localVarRequestOptions.data = serializeDataIfNeeded(macAddressDTO, localVarRequestOptions, configuration)
|
|
23770
23907
|
|
|
23771
23908
|
return {
|
|
23772
23909
|
url: toPathString(localVarUrlObj),
|
|
@@ -23902,11 +24039,12 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
23902
24039
|
},
|
|
23903
24040
|
/**
|
|
23904
24041
|
* Create a MAC address in FDPS
|
|
24042
|
+
* @param {MacAddressDTO} [macAddressDTO] Mac Address
|
|
23905
24043
|
* @param {*} [options] Override http request option.
|
|
23906
24044
|
* @throws {RequiredError}
|
|
23907
24045
|
*/
|
|
23908
|
-
async postCreateMac(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MacAddressDTO>> {
|
|
23909
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateMac(options);
|
|
24046
|
+
async postCreateMac(macAddressDTO?: MacAddressDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MacAddressDTO>> {
|
|
24047
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateMac(macAddressDTO, options);
|
|
23910
24048
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
23911
24049
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postCreateMac']?.[localVarOperationServerIndex]?.url;
|
|
23912
24050
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -24013,11 +24151,12 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
24013
24151
|
},
|
|
24014
24152
|
/**
|
|
24015
24153
|
* Create a MAC address in FDPS
|
|
24154
|
+
* @param {MacAddressDTO} [macAddressDTO] Mac Address
|
|
24016
24155
|
* @param {*} [options] Override http request option.
|
|
24017
24156
|
* @throws {RequiredError}
|
|
24018
24157
|
*/
|
|
24019
|
-
postCreateMac(options?: RawAxiosRequestConfig): AxiosPromise<MacAddressDTO> {
|
|
24020
|
-
return localVarFp.postCreateMac(options).then((request) => request(axios, basePath));
|
|
24158
|
+
postCreateMac(macAddressDTO?: MacAddressDTO, options?: RawAxiosRequestConfig): AxiosPromise<MacAddressDTO> {
|
|
24159
|
+
return localVarFp.postCreateMac(macAddressDTO, options).then((request) => request(axios, basePath));
|
|
24021
24160
|
},
|
|
24022
24161
|
};
|
|
24023
24162
|
};
|
|
@@ -24128,11 +24267,12 @@ export class ProvisioningApi extends BaseAPI {
|
|
|
24128
24267
|
|
|
24129
24268
|
/**
|
|
24130
24269
|
* Create a MAC address in FDPS
|
|
24270
|
+
* @param {MacAddressDTO} [macAddressDTO] Mac Address
|
|
24131
24271
|
* @param {*} [options] Override http request option.
|
|
24132
24272
|
* @throws {RequiredError}
|
|
24133
24273
|
*/
|
|
24134
|
-
public postCreateMac(options?: RawAxiosRequestConfig) {
|
|
24135
|
-
return ProvisioningApiFp(this.configuration).postCreateMac(options).then((request) => request(this.axios, this.basePath));
|
|
24274
|
+
public postCreateMac(macAddressDTO?: MacAddressDTO, options?: RawAxiosRequestConfig) {
|
|
24275
|
+
return ProvisioningApiFp(this.configuration).postCreateMac(macAddressDTO, options).then((request) => request(this.axios, this.basePath));
|
|
24136
24276
|
}
|
|
24137
24277
|
}
|
|
24138
24278
|
|