yellowgrid-api-ts 3.0.84-dev.0 → 3.0.86-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 +1 -0
- package/README.md +3 -2
- package/api.ts +176 -175
- package/dist/api.d.ts +109 -94
- package/dist/api.js +162 -188
- package/docs/AdminOrderRequestDTO.md +2 -0
- package/docs/PostGetProductForCustomerRequest.md +24 -0
- package/docs/ProductsApi.md +79 -89
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -139,12 +139,12 @@ Class | Method | HTTP request | Description
|
|
|
139
139
|
*PricingApi* | [**postSendPriceList**](docs/PricingApi.md#postsendpricelist) | **POST** /finance/pricing/lists/send | Send Price List
|
|
140
140
|
*ProductsApi* | [**getGetAttributeSets**](docs/ProductsApi.md#getgetattributesets) | **GET** /products/attributes | Get Attribute Sets
|
|
141
141
|
*ProductsApi* | [**getGetLegacyStockList**](docs/ProductsApi.md#getgetlegacystocklist) | **GET** /products/stock/legacy | Get Current Stock & Pricing
|
|
142
|
-
*ProductsApi* | [**getGetProduct**](docs/ProductsApi.md#getgetproduct) | **GET** /products/{sku} | Get Product
|
|
143
|
-
*ProductsApi* | [**getGetProductForCustomer**](docs/ProductsApi.md#getgetproductforcustomer) | **GET** /admin/products/{sku} | Get Product For Customer
|
|
144
142
|
*ProductsApi* | [**getGetProducts**](docs/ProductsApi.md#getgetproducts) | **GET** /products | Get Products
|
|
145
143
|
*ProductsApi* | [**getGetStockList**](docs/ProductsApi.md#getgetstocklist) | **GET** /products/stock | Get Current Stock & Pricing
|
|
146
144
|
*ProductsApi* | [**getGetTcxTemplates**](docs/ProductsApi.md#getgettcxtemplates) | **GET** /products/attributes/tcx/templates | Get 3CX Templates
|
|
147
145
|
*ProductsApi* | [**getSearchProducts**](docs/ProductsApi.md#getsearchproducts) | **GET** /products/search | Search Products
|
|
146
|
+
*ProductsApi* | [**postGetProduct**](docs/ProductsApi.md#postgetproduct) | **POST** /products/{sku} | Get Product
|
|
147
|
+
*ProductsApi* | [**postGetProductForCustomer**](docs/ProductsApi.md#postgetproductforcustomer) | **POST** /admin/products/{sku} | Get Product For Customer
|
|
148
148
|
*ProvisioningApi* | [**deleteAddFanvilMac**](docs/ProvisioningApi.md#deleteaddfanvilmac) | **DELETE** /provisioning/fanvil/groups/{id}/macs/{mac} | Remove MAC address from DB and FDPS group
|
|
149
149
|
*ProvisioningApi* | [**deleteDeleteFanvilGroup**](docs/ProvisioningApi.md#deletedeletefanvilgroup) | **DELETE** /provisioning/fanvil/groups/{id} | Delete group from DB and FDPS
|
|
150
150
|
*ProvisioningApi* | [**getGetFanvilEncryptionKey**](docs/ProvisioningApi.md#getgetfanvilencryptionkey) | **GET** /provisioning/fanvil/groups/{id}/macs/{mac}/key | Get group Fanvil encryption key
|
|
@@ -294,6 +294,7 @@ Class | Method | HTTP request | Description
|
|
|
294
294
|
- [PortalLoginModel](docs/PortalLoginModel.md)
|
|
295
295
|
- [PostAddWebhook200Response](docs/PostAddWebhook200Response.md)
|
|
296
296
|
- [PostGetClientCredentialsRequest](docs/PostGetClientCredentialsRequest.md)
|
|
297
|
+
- [PostGetProductForCustomerRequest](docs/PostGetProductForCustomerRequest.md)
|
|
297
298
|
- [PriceListItemModel](docs/PriceListItemModel.md)
|
|
298
299
|
- [PrizesEntity](docs/PrizesEntity.md)
|
|
299
300
|
- [ProductSearchResultsModel](docs/ProductSearchResultsModel.md)
|
package/api.ts
CHANGED
|
@@ -772,6 +772,12 @@ export interface AdminOrderRequestDTO {
|
|
|
772
772
|
* @memberof AdminOrderRequestDTO
|
|
773
773
|
*/
|
|
774
774
|
'includeNfrPromos'?: boolean;
|
|
775
|
+
/**
|
|
776
|
+
* Carriage Charge
|
|
777
|
+
* @type {number}
|
|
778
|
+
* @memberof AdminOrderRequestDTO
|
|
779
|
+
*/
|
|
780
|
+
'carriageCharge'?: number;
|
|
775
781
|
}
|
|
776
782
|
/**
|
|
777
783
|
* Admin User
|
|
@@ -4313,6 +4319,31 @@ export interface PostGetClientCredentialsRequest {
|
|
|
4313
4319
|
*/
|
|
4314
4320
|
'scopes'?: Array<string>;
|
|
4315
4321
|
}
|
|
4322
|
+
/**
|
|
4323
|
+
*
|
|
4324
|
+
* @export
|
|
4325
|
+
* @interface PostGetProductForCustomerRequest
|
|
4326
|
+
*/
|
|
4327
|
+
export interface PostGetProductForCustomerRequest {
|
|
4328
|
+
/**
|
|
4329
|
+
* Quantity
|
|
4330
|
+
* @type {number}
|
|
4331
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4332
|
+
*/
|
|
4333
|
+
'quantity'?: number | null;
|
|
4334
|
+
/**
|
|
4335
|
+
* 3CX Licence Key
|
|
4336
|
+
* @type {string}
|
|
4337
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4338
|
+
*/
|
|
4339
|
+
'licenceKey'?: string | null;
|
|
4340
|
+
/**
|
|
4341
|
+
* 3CX Hosting
|
|
4342
|
+
* @type {boolean}
|
|
4343
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4344
|
+
*/
|
|
4345
|
+
'hosting'?: boolean | null;
|
|
4346
|
+
}
|
|
4316
4347
|
/**
|
|
4317
4348
|
* Price & Stock List
|
|
4318
4349
|
* @export
|
|
@@ -16334,20 +16365,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16334
16365
|
};
|
|
16335
16366
|
},
|
|
16336
16367
|
/**
|
|
16337
|
-
* Get
|
|
16338
|
-
* @summary Get
|
|
16339
|
-
* @param {string} sku Product SKU
|
|
16340
|
-
* @param {number} [quantity] Quantity
|
|
16341
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
16342
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
16368
|
+
* Get Products
|
|
16369
|
+
* @summary Get Products
|
|
16343
16370
|
* @param {*} [options] Override http request option.
|
|
16344
16371
|
* @throws {RequiredError}
|
|
16345
16372
|
*/
|
|
16346
|
-
|
|
16347
|
-
|
|
16348
|
-
assertParamExists('getGetProduct', 'sku', sku)
|
|
16349
|
-
const localVarPath = `/products/{sku}`
|
|
16350
|
-
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16373
|
+
getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16374
|
+
const localVarPath = `/products`;
|
|
16351
16375
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16352
16376
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16353
16377
|
let baseOptions;
|
|
@@ -16359,18 +16383,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16359
16383
|
const localVarHeaderParameter = {} as any;
|
|
16360
16384
|
const localVarQueryParameter = {} as any;
|
|
16361
16385
|
|
|
16362
|
-
if (quantity !== undefined) {
|
|
16363
|
-
localVarQueryParameter['quantity'] = quantity;
|
|
16364
|
-
}
|
|
16365
|
-
|
|
16366
|
-
if (licenceKey !== undefined) {
|
|
16367
|
-
localVarQueryParameter['licenceKey'] = licenceKey;
|
|
16368
|
-
}
|
|
16369
|
-
|
|
16370
|
-
if (hosting !== undefined) {
|
|
16371
|
-
localVarQueryParameter['hosting'] = hosting;
|
|
16372
|
-
}
|
|
16373
|
-
|
|
16374
16386
|
|
|
16375
16387
|
|
|
16376
16388
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16383,23 +16395,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16383
16395
|
};
|
|
16384
16396
|
},
|
|
16385
16397
|
/**
|
|
16386
|
-
* Get
|
|
16387
|
-
* @summary Get
|
|
16388
|
-
* @param {number} customerId Customer ID
|
|
16389
|
-
* @param {string} sku Product SKU
|
|
16390
|
-
* @param {number} [quantity] Quantity
|
|
16391
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
16392
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
16398
|
+
* Get Current Stock & Pricing
|
|
16399
|
+
* @summary Get Current Stock & Pricing
|
|
16393
16400
|
* @param {*} [options] Override http request option.
|
|
16394
16401
|
* @throws {RequiredError}
|
|
16395
16402
|
*/
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
assertParamExists('getGetProductForCustomer', 'customerId', customerId)
|
|
16399
|
-
// verify required parameter 'sku' is not null or undefined
|
|
16400
|
-
assertParamExists('getGetProductForCustomer', 'sku', sku)
|
|
16401
|
-
const localVarPath = `/admin/products/{sku}`
|
|
16402
|
-
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16403
|
+
getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16404
|
+
const localVarPath = `/products/stock`;
|
|
16403
16405
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16404
16406
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16405
16407
|
let baseOptions;
|
|
@@ -16411,22 +16413,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16411
16413
|
const localVarHeaderParameter = {} as any;
|
|
16412
16414
|
const localVarQueryParameter = {} as any;
|
|
16413
16415
|
|
|
16414
|
-
if (customerId !== undefined) {
|
|
16415
|
-
localVarQueryParameter['customerId'] = customerId;
|
|
16416
|
-
}
|
|
16417
|
-
|
|
16418
|
-
if (quantity !== undefined) {
|
|
16419
|
-
localVarQueryParameter['quantity'] = quantity;
|
|
16420
|
-
}
|
|
16421
|
-
|
|
16422
|
-
if (licenceKey !== undefined) {
|
|
16423
|
-
localVarQueryParameter['licenceKey'] = licenceKey;
|
|
16424
|
-
}
|
|
16425
|
-
|
|
16426
|
-
if (hosting !== undefined) {
|
|
16427
|
-
localVarQueryParameter['hosting'] = hosting;
|
|
16428
|
-
}
|
|
16429
|
-
|
|
16430
16416
|
|
|
16431
16417
|
|
|
16432
16418
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16439,13 +16425,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16439
16425
|
};
|
|
16440
16426
|
},
|
|
16441
16427
|
/**
|
|
16442
|
-
* Get
|
|
16443
|
-
* @summary Get
|
|
16428
|
+
* Get 3CX Templates
|
|
16429
|
+
* @summary Get 3CX Templates
|
|
16444
16430
|
* @param {*} [options] Override http request option.
|
|
16445
16431
|
* @throws {RequiredError}
|
|
16446
16432
|
*/
|
|
16447
|
-
|
|
16448
|
-
const localVarPath = `/products`;
|
|
16433
|
+
getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16434
|
+
const localVarPath = `/products/attributes/tcx/templates`;
|
|
16449
16435
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16450
16436
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16451
16437
|
let baseOptions;
|
|
@@ -16469,13 +16455,16 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16469
16455
|
};
|
|
16470
16456
|
},
|
|
16471
16457
|
/**
|
|
16472
|
-
*
|
|
16473
|
-
* @summary
|
|
16458
|
+
* Search Products
|
|
16459
|
+
* @summary Search Products
|
|
16460
|
+
* @param {number} [pageSize] Number Of Results
|
|
16461
|
+
* @param {number} [page] Page Number
|
|
16462
|
+
* @param {string} [search] Search
|
|
16474
16463
|
* @param {*} [options] Override http request option.
|
|
16475
16464
|
* @throws {RequiredError}
|
|
16476
16465
|
*/
|
|
16477
|
-
|
|
16478
|
-
const localVarPath = `/products/
|
|
16466
|
+
getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16467
|
+
const localVarPath = `/products/search`;
|
|
16479
16468
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16480
16469
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16481
16470
|
let baseOptions;
|
|
@@ -16487,6 +16476,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16487
16476
|
const localVarHeaderParameter = {} as any;
|
|
16488
16477
|
const localVarQueryParameter = {} as any;
|
|
16489
16478
|
|
|
16479
|
+
if (pageSize !== undefined) {
|
|
16480
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
16481
|
+
}
|
|
16482
|
+
|
|
16483
|
+
if (page !== undefined) {
|
|
16484
|
+
localVarQueryParameter['page'] = page;
|
|
16485
|
+
}
|
|
16486
|
+
|
|
16487
|
+
if (search !== undefined) {
|
|
16488
|
+
localVarQueryParameter['search'] = search;
|
|
16489
|
+
}
|
|
16490
|
+
|
|
16490
16491
|
|
|
16491
16492
|
|
|
16492
16493
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16499,13 +16500,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16499
16500
|
};
|
|
16500
16501
|
},
|
|
16501
16502
|
/**
|
|
16502
|
-
* Get
|
|
16503
|
-
* @summary Get
|
|
16503
|
+
* Get Product
|
|
16504
|
+
* @summary Get Product
|
|
16505
|
+
* @param {string} sku Product SKU
|
|
16506
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16504
16507
|
* @param {*} [options] Override http request option.
|
|
16505
16508
|
* @throws {RequiredError}
|
|
16506
16509
|
*/
|
|
16507
|
-
|
|
16508
|
-
|
|
16510
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16511
|
+
// verify required parameter 'sku' is not null or undefined
|
|
16512
|
+
assertParamExists('postGetProduct', 'sku', sku)
|
|
16513
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
16514
|
+
assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
16515
|
+
const localVarPath = `/products/{sku}`
|
|
16516
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16509
16517
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16510
16518
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16511
16519
|
let baseOptions;
|
|
@@ -16513,15 +16521,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16513
16521
|
baseOptions = configuration.baseOptions;
|
|
16514
16522
|
}
|
|
16515
16523
|
|
|
16516
|
-
const localVarRequestOptions = { method: '
|
|
16524
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16517
16525
|
const localVarHeaderParameter = {} as any;
|
|
16518
16526
|
const localVarQueryParameter = {} as any;
|
|
16519
16527
|
|
|
16520
16528
|
|
|
16521
16529
|
|
|
16530
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16531
|
+
|
|
16522
16532
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16523
16533
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16524
16534
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16535
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16525
16536
|
|
|
16526
16537
|
return {
|
|
16527
16538
|
url: toPathString(localVarUrlObj),
|
|
@@ -16529,16 +16540,23 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16529
16540
|
};
|
|
16530
16541
|
},
|
|
16531
16542
|
/**
|
|
16532
|
-
*
|
|
16533
|
-
* @summary
|
|
16534
|
-
* @param {number}
|
|
16535
|
-
* @param {
|
|
16536
|
-
* @param {
|
|
16543
|
+
* Get Product For Customer
|
|
16544
|
+
* @summary Get Product For Customer
|
|
16545
|
+
* @param {number} customerId Customer ID
|
|
16546
|
+
* @param {string} sku Product SKU
|
|
16547
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16537
16548
|
* @param {*} [options] Override http request option.
|
|
16538
16549
|
* @throws {RequiredError}
|
|
16539
16550
|
*/
|
|
16540
|
-
|
|
16541
|
-
|
|
16551
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16552
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
16553
|
+
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
16554
|
+
// verify required parameter 'sku' is not null or undefined
|
|
16555
|
+
assertParamExists('postGetProductForCustomer', 'sku', sku)
|
|
16556
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
16557
|
+
assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
16558
|
+
const localVarPath = `/admin/products/{sku}`
|
|
16559
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16542
16560
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16543
16561
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16544
16562
|
let baseOptions;
|
|
@@ -16546,27 +16564,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16546
16564
|
baseOptions = configuration.baseOptions;
|
|
16547
16565
|
}
|
|
16548
16566
|
|
|
16549
|
-
const localVarRequestOptions = { method: '
|
|
16567
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16550
16568
|
const localVarHeaderParameter = {} as any;
|
|
16551
16569
|
const localVarQueryParameter = {} as any;
|
|
16552
16570
|
|
|
16553
|
-
if (
|
|
16554
|
-
localVarQueryParameter['
|
|
16555
|
-
}
|
|
16556
|
-
|
|
16557
|
-
if (page !== undefined) {
|
|
16558
|
-
localVarQueryParameter['page'] = page;
|
|
16559
|
-
}
|
|
16560
|
-
|
|
16561
|
-
if (search !== undefined) {
|
|
16562
|
-
localVarQueryParameter['search'] = search;
|
|
16571
|
+
if (customerId !== undefined) {
|
|
16572
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
16563
16573
|
}
|
|
16564
16574
|
|
|
16565
16575
|
|
|
16566
16576
|
|
|
16577
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16578
|
+
|
|
16567
16579
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16568
16580
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16569
16581
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16582
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16570
16583
|
|
|
16571
16584
|
return {
|
|
16572
16585
|
url: toPathString(localVarUrlObj),
|
|
@@ -16609,39 +16622,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16609
16622
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetLegacyStockList']?.[localVarOperationServerIndex]?.url;
|
|
16610
16623
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16611
16624
|
},
|
|
16612
|
-
/**
|
|
16613
|
-
* Get Product
|
|
16614
|
-
* @summary Get Product
|
|
16615
|
-
* @param {string} sku Product SKU
|
|
16616
|
-
* @param {number} [quantity] Quantity
|
|
16617
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
16618
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
16619
|
-
* @param {*} [options] Override http request option.
|
|
16620
|
-
* @throws {RequiredError}
|
|
16621
|
-
*/
|
|
16622
|
-
async getGetProduct(sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
16623
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProduct(sku, quantity, licenceKey, hosting, options);
|
|
16624
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16625
|
-
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
16626
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16627
|
-
},
|
|
16628
|
-
/**
|
|
16629
|
-
* Get Product For Customer
|
|
16630
|
-
* @summary Get Product For Customer
|
|
16631
|
-
* @param {number} customerId Customer ID
|
|
16632
|
-
* @param {string} sku Product SKU
|
|
16633
|
-
* @param {number} [quantity] Quantity
|
|
16634
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
16635
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
16636
|
-
* @param {*} [options] Override http request option.
|
|
16637
|
-
* @throws {RequiredError}
|
|
16638
|
-
*/
|
|
16639
|
-
async getGetProductForCustomer(customerId: number, sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
16640
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProductForCustomer(customerId, sku, quantity, licenceKey, hosting, options);
|
|
16641
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16642
|
-
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
16643
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16644
|
-
},
|
|
16645
16625
|
/**
|
|
16646
16626
|
* Get Products
|
|
16647
16627
|
* @summary Get Products
|
|
@@ -16693,6 +16673,35 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16693
16673
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
|
|
16694
16674
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16695
16675
|
},
|
|
16676
|
+
/**
|
|
16677
|
+
* Get Product
|
|
16678
|
+
* @summary Get Product
|
|
16679
|
+
* @param {string} sku Product SKU
|
|
16680
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16681
|
+
* @param {*} [options] Override http request option.
|
|
16682
|
+
* @throws {RequiredError}
|
|
16683
|
+
*/
|
|
16684
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
16685
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
16686
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16687
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
16688
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16689
|
+
},
|
|
16690
|
+
/**
|
|
16691
|
+
* Get Product For Customer
|
|
16692
|
+
* @summary Get Product For Customer
|
|
16693
|
+
* @param {number} customerId Customer ID
|
|
16694
|
+
* @param {string} sku Product SKU
|
|
16695
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16696
|
+
* @param {*} [options] Override http request option.
|
|
16697
|
+
* @throws {RequiredError}
|
|
16698
|
+
*/
|
|
16699
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
16700
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
16701
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16702
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
16703
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16704
|
+
},
|
|
16696
16705
|
}
|
|
16697
16706
|
};
|
|
16698
16707
|
|
|
@@ -16723,33 +16732,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16723
16732
|
getGetLegacyStockList(format: GetGetLegacyStockListFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
16724
16733
|
return localVarFp.getGetLegacyStockList(format, options).then((request) => request(axios, basePath));
|
|
16725
16734
|
},
|
|
16726
|
-
/**
|
|
16727
|
-
* Get Product
|
|
16728
|
-
* @summary Get Product
|
|
16729
|
-
* @param {string} sku Product SKU
|
|
16730
|
-
* @param {number} [quantity] Quantity
|
|
16731
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
16732
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
16733
|
-
* @param {*} [options] Override http request option.
|
|
16734
|
-
* @throws {RequiredError}
|
|
16735
|
-
*/
|
|
16736
|
-
getGetProduct(sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
16737
|
-
return localVarFp.getGetProduct(sku, quantity, licenceKey, hosting, options).then((request) => request(axios, basePath));
|
|
16738
|
-
},
|
|
16739
|
-
/**
|
|
16740
|
-
* Get Product For Customer
|
|
16741
|
-
* @summary Get Product For Customer
|
|
16742
|
-
* @param {number} customerId Customer ID
|
|
16743
|
-
* @param {string} sku Product SKU
|
|
16744
|
-
* @param {number} [quantity] Quantity
|
|
16745
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
16746
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
16747
|
-
* @param {*} [options] Override http request option.
|
|
16748
|
-
* @throws {RequiredError}
|
|
16749
|
-
*/
|
|
16750
|
-
getGetProductForCustomer(customerId: number, sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
16751
|
-
return localVarFp.getGetProductForCustomer(customerId, sku, quantity, licenceKey, hosting, options).then((request) => request(axios, basePath));
|
|
16752
|
-
},
|
|
16753
16735
|
/**
|
|
16754
16736
|
* Get Products
|
|
16755
16737
|
* @summary Get Products
|
|
@@ -16789,6 +16771,29 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16789
16771
|
getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
|
|
16790
16772
|
return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
16791
16773
|
},
|
|
16774
|
+
/**
|
|
16775
|
+
* Get Product
|
|
16776
|
+
* @summary Get Product
|
|
16777
|
+
* @param {string} sku Product SKU
|
|
16778
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16779
|
+
* @param {*} [options] Override http request option.
|
|
16780
|
+
* @throws {RequiredError}
|
|
16781
|
+
*/
|
|
16782
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
16783
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
16784
|
+
},
|
|
16785
|
+
/**
|
|
16786
|
+
* Get Product For Customer
|
|
16787
|
+
* @summary Get Product For Customer
|
|
16788
|
+
* @param {number} customerId Customer ID
|
|
16789
|
+
* @param {string} sku Product SKU
|
|
16790
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16791
|
+
* @param {*} [options] Override http request option.
|
|
16792
|
+
* @throws {RequiredError}
|
|
16793
|
+
*/
|
|
16794
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
16795
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
16796
|
+
},
|
|
16792
16797
|
};
|
|
16793
16798
|
};
|
|
16794
16799
|
|
|
@@ -16823,37 +16828,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
16823
16828
|
return ProductsApiFp(this.configuration).getGetLegacyStockList(format, options).then((request) => request(this.axios, this.basePath));
|
|
16824
16829
|
}
|
|
16825
16830
|
|
|
16826
|
-
/**
|
|
16827
|
-
* Get Product
|
|
16828
|
-
* @summary Get Product
|
|
16829
|
-
* @param {string} sku Product SKU
|
|
16830
|
-
* @param {number} [quantity] Quantity
|
|
16831
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
16832
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
16833
|
-
* @param {*} [options] Override http request option.
|
|
16834
|
-
* @throws {RequiredError}
|
|
16835
|
-
* @memberof ProductsApi
|
|
16836
|
-
*/
|
|
16837
|
-
public getGetProduct(sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig) {
|
|
16838
|
-
return ProductsApiFp(this.configuration).getGetProduct(sku, quantity, licenceKey, hosting, options).then((request) => request(this.axios, this.basePath));
|
|
16839
|
-
}
|
|
16840
|
-
|
|
16841
|
-
/**
|
|
16842
|
-
* Get Product For Customer
|
|
16843
|
-
* @summary Get Product For Customer
|
|
16844
|
-
* @param {number} customerId Customer ID
|
|
16845
|
-
* @param {string} sku Product SKU
|
|
16846
|
-
* @param {number} [quantity] Quantity
|
|
16847
|
-
* @param {string} [licenceKey] 3CX Licence Key
|
|
16848
|
-
* @param {boolean} [hosting] 3CX Hosting
|
|
16849
|
-
* @param {*} [options] Override http request option.
|
|
16850
|
-
* @throws {RequiredError}
|
|
16851
|
-
* @memberof ProductsApi
|
|
16852
|
-
*/
|
|
16853
|
-
public getGetProductForCustomer(customerId: number, sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig) {
|
|
16854
|
-
return ProductsApiFp(this.configuration).getGetProductForCustomer(customerId, sku, quantity, licenceKey, hosting, options).then((request) => request(this.axios, this.basePath));
|
|
16855
|
-
}
|
|
16856
|
-
|
|
16857
16831
|
/**
|
|
16858
16832
|
* Get Products
|
|
16859
16833
|
* @summary Get Products
|
|
@@ -16900,6 +16874,33 @@ export class ProductsApi extends BaseAPI {
|
|
|
16900
16874
|
public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
16901
16875
|
return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
16902
16876
|
}
|
|
16877
|
+
|
|
16878
|
+
/**
|
|
16879
|
+
* Get Product
|
|
16880
|
+
* @summary Get Product
|
|
16881
|
+
* @param {string} sku Product SKU
|
|
16882
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16883
|
+
* @param {*} [options] Override http request option.
|
|
16884
|
+
* @throws {RequiredError}
|
|
16885
|
+
* @memberof ProductsApi
|
|
16886
|
+
*/
|
|
16887
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
16888
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16889
|
+
}
|
|
16890
|
+
|
|
16891
|
+
/**
|
|
16892
|
+
* Get Product For Customer
|
|
16893
|
+
* @summary Get Product For Customer
|
|
16894
|
+
* @param {number} customerId Customer ID
|
|
16895
|
+
* @param {string} sku Product SKU
|
|
16896
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16897
|
+
* @param {*} [options] Override http request option.
|
|
16898
|
+
* @throws {RequiredError}
|
|
16899
|
+
* @memberof ProductsApi
|
|
16900
|
+
*/
|
|
16901
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
16902
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16903
|
+
}
|
|
16903
16904
|
}
|
|
16904
16905
|
|
|
16905
16906
|
/**
|