yellowgrid-api-ts 3.0.84-dev.0 → 3.0.85-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 +170 -175
- package/dist/api.d.ts +103 -94
- package/dist/api.js +162 -188
- 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
|
@@ -4313,6 +4313,31 @@ export interface PostGetClientCredentialsRequest {
|
|
|
4313
4313
|
*/
|
|
4314
4314
|
'scopes'?: Array<string>;
|
|
4315
4315
|
}
|
|
4316
|
+
/**
|
|
4317
|
+
*
|
|
4318
|
+
* @export
|
|
4319
|
+
* @interface PostGetProductForCustomerRequest
|
|
4320
|
+
*/
|
|
4321
|
+
export interface PostGetProductForCustomerRequest {
|
|
4322
|
+
/**
|
|
4323
|
+
* Quantity
|
|
4324
|
+
* @type {number}
|
|
4325
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4326
|
+
*/
|
|
4327
|
+
'quantity'?: number | null;
|
|
4328
|
+
/**
|
|
4329
|
+
* 3CX Licence Key
|
|
4330
|
+
* @type {string}
|
|
4331
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4332
|
+
*/
|
|
4333
|
+
'licenceKey'?: string | null;
|
|
4334
|
+
/**
|
|
4335
|
+
* 3CX Hosting
|
|
4336
|
+
* @type {boolean}
|
|
4337
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4338
|
+
*/
|
|
4339
|
+
'hosting'?: boolean | null;
|
|
4340
|
+
}
|
|
4316
4341
|
/**
|
|
4317
4342
|
* Price & Stock List
|
|
4318
4343
|
* @export
|
|
@@ -16334,20 +16359,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16334
16359
|
};
|
|
16335
16360
|
},
|
|
16336
16361
|
/**
|
|
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
|
|
16362
|
+
* Get Products
|
|
16363
|
+
* @summary Get Products
|
|
16343
16364
|
* @param {*} [options] Override http request option.
|
|
16344
16365
|
* @throws {RequiredError}
|
|
16345
16366
|
*/
|
|
16346
|
-
|
|
16347
|
-
|
|
16348
|
-
assertParamExists('getGetProduct', 'sku', sku)
|
|
16349
|
-
const localVarPath = `/products/{sku}`
|
|
16350
|
-
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16367
|
+
getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16368
|
+
const localVarPath = `/products`;
|
|
16351
16369
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16352
16370
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16353
16371
|
let baseOptions;
|
|
@@ -16359,18 +16377,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16359
16377
|
const localVarHeaderParameter = {} as any;
|
|
16360
16378
|
const localVarQueryParameter = {} as any;
|
|
16361
16379
|
|
|
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
16380
|
|
|
16375
16381
|
|
|
16376
16382
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16383,23 +16389,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16383
16389
|
};
|
|
16384
16390
|
},
|
|
16385
16391
|
/**
|
|
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
|
|
16392
|
+
* Get Current Stock & Pricing
|
|
16393
|
+
* @summary Get Current Stock & Pricing
|
|
16393
16394
|
* @param {*} [options] Override http request option.
|
|
16394
16395
|
* @throws {RequiredError}
|
|
16395
16396
|
*/
|
|
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)));
|
|
16397
|
+
getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16398
|
+
const localVarPath = `/products/stock`;
|
|
16403
16399
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16404
16400
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16405
16401
|
let baseOptions;
|
|
@@ -16411,22 +16407,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16411
16407
|
const localVarHeaderParameter = {} as any;
|
|
16412
16408
|
const localVarQueryParameter = {} as any;
|
|
16413
16409
|
|
|
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
16410
|
|
|
16431
16411
|
|
|
16432
16412
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16439,13 +16419,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16439
16419
|
};
|
|
16440
16420
|
},
|
|
16441
16421
|
/**
|
|
16442
|
-
* Get
|
|
16443
|
-
* @summary Get
|
|
16422
|
+
* Get 3CX Templates
|
|
16423
|
+
* @summary Get 3CX Templates
|
|
16444
16424
|
* @param {*} [options] Override http request option.
|
|
16445
16425
|
* @throws {RequiredError}
|
|
16446
16426
|
*/
|
|
16447
|
-
|
|
16448
|
-
const localVarPath = `/products`;
|
|
16427
|
+
getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16428
|
+
const localVarPath = `/products/attributes/tcx/templates`;
|
|
16449
16429
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16450
16430
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16451
16431
|
let baseOptions;
|
|
@@ -16469,13 +16449,16 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16469
16449
|
};
|
|
16470
16450
|
},
|
|
16471
16451
|
/**
|
|
16472
|
-
*
|
|
16473
|
-
* @summary
|
|
16452
|
+
* Search Products
|
|
16453
|
+
* @summary Search Products
|
|
16454
|
+
* @param {number} [pageSize] Number Of Results
|
|
16455
|
+
* @param {number} [page] Page Number
|
|
16456
|
+
* @param {string} [search] Search
|
|
16474
16457
|
* @param {*} [options] Override http request option.
|
|
16475
16458
|
* @throws {RequiredError}
|
|
16476
16459
|
*/
|
|
16477
|
-
|
|
16478
|
-
const localVarPath = `/products/
|
|
16460
|
+
getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16461
|
+
const localVarPath = `/products/search`;
|
|
16479
16462
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16480
16463
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16481
16464
|
let baseOptions;
|
|
@@ -16487,6 +16470,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16487
16470
|
const localVarHeaderParameter = {} as any;
|
|
16488
16471
|
const localVarQueryParameter = {} as any;
|
|
16489
16472
|
|
|
16473
|
+
if (pageSize !== undefined) {
|
|
16474
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
16475
|
+
}
|
|
16476
|
+
|
|
16477
|
+
if (page !== undefined) {
|
|
16478
|
+
localVarQueryParameter['page'] = page;
|
|
16479
|
+
}
|
|
16480
|
+
|
|
16481
|
+
if (search !== undefined) {
|
|
16482
|
+
localVarQueryParameter['search'] = search;
|
|
16483
|
+
}
|
|
16484
|
+
|
|
16490
16485
|
|
|
16491
16486
|
|
|
16492
16487
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16499,13 +16494,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16499
16494
|
};
|
|
16500
16495
|
},
|
|
16501
16496
|
/**
|
|
16502
|
-
* Get
|
|
16503
|
-
* @summary Get
|
|
16497
|
+
* Get Product
|
|
16498
|
+
* @summary Get Product
|
|
16499
|
+
* @param {string} sku Product SKU
|
|
16500
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16504
16501
|
* @param {*} [options] Override http request option.
|
|
16505
16502
|
* @throws {RequiredError}
|
|
16506
16503
|
*/
|
|
16507
|
-
|
|
16508
|
-
|
|
16504
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16505
|
+
// verify required parameter 'sku' is not null or undefined
|
|
16506
|
+
assertParamExists('postGetProduct', 'sku', sku)
|
|
16507
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
16508
|
+
assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
16509
|
+
const localVarPath = `/products/{sku}`
|
|
16510
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16509
16511
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16510
16512
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16511
16513
|
let baseOptions;
|
|
@@ -16513,15 +16515,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16513
16515
|
baseOptions = configuration.baseOptions;
|
|
16514
16516
|
}
|
|
16515
16517
|
|
|
16516
|
-
const localVarRequestOptions = { method: '
|
|
16518
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16517
16519
|
const localVarHeaderParameter = {} as any;
|
|
16518
16520
|
const localVarQueryParameter = {} as any;
|
|
16519
16521
|
|
|
16520
16522
|
|
|
16521
16523
|
|
|
16524
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16525
|
+
|
|
16522
16526
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16523
16527
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16524
16528
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16529
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16525
16530
|
|
|
16526
16531
|
return {
|
|
16527
16532
|
url: toPathString(localVarUrlObj),
|
|
@@ -16529,16 +16534,23 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16529
16534
|
};
|
|
16530
16535
|
},
|
|
16531
16536
|
/**
|
|
16532
|
-
*
|
|
16533
|
-
* @summary
|
|
16534
|
-
* @param {number}
|
|
16535
|
-
* @param {
|
|
16536
|
-
* @param {
|
|
16537
|
+
* Get Product For Customer
|
|
16538
|
+
* @summary Get Product For Customer
|
|
16539
|
+
* @param {number} customerId Customer ID
|
|
16540
|
+
* @param {string} sku Product SKU
|
|
16541
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16537
16542
|
* @param {*} [options] Override http request option.
|
|
16538
16543
|
* @throws {RequiredError}
|
|
16539
16544
|
*/
|
|
16540
|
-
|
|
16541
|
-
|
|
16545
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16546
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
16547
|
+
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
16548
|
+
// verify required parameter 'sku' is not null or undefined
|
|
16549
|
+
assertParamExists('postGetProductForCustomer', 'sku', sku)
|
|
16550
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
16551
|
+
assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
16552
|
+
const localVarPath = `/admin/products/{sku}`
|
|
16553
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16542
16554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16543
16555
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16544
16556
|
let baseOptions;
|
|
@@ -16546,27 +16558,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16546
16558
|
baseOptions = configuration.baseOptions;
|
|
16547
16559
|
}
|
|
16548
16560
|
|
|
16549
|
-
const localVarRequestOptions = { method: '
|
|
16561
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16550
16562
|
const localVarHeaderParameter = {} as any;
|
|
16551
16563
|
const localVarQueryParameter = {} as any;
|
|
16552
16564
|
|
|
16553
|
-
if (
|
|
16554
|
-
localVarQueryParameter['
|
|
16555
|
-
}
|
|
16556
|
-
|
|
16557
|
-
if (page !== undefined) {
|
|
16558
|
-
localVarQueryParameter['page'] = page;
|
|
16559
|
-
}
|
|
16560
|
-
|
|
16561
|
-
if (search !== undefined) {
|
|
16562
|
-
localVarQueryParameter['search'] = search;
|
|
16565
|
+
if (customerId !== undefined) {
|
|
16566
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
16563
16567
|
}
|
|
16564
16568
|
|
|
16565
16569
|
|
|
16566
16570
|
|
|
16571
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16572
|
+
|
|
16567
16573
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16568
16574
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16569
16575
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16576
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16570
16577
|
|
|
16571
16578
|
return {
|
|
16572
16579
|
url: toPathString(localVarUrlObj),
|
|
@@ -16609,39 +16616,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16609
16616
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetLegacyStockList']?.[localVarOperationServerIndex]?.url;
|
|
16610
16617
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16611
16618
|
},
|
|
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
16619
|
/**
|
|
16646
16620
|
* Get Products
|
|
16647
16621
|
* @summary Get Products
|
|
@@ -16693,6 +16667,35 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16693
16667
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
|
|
16694
16668
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16695
16669
|
},
|
|
16670
|
+
/**
|
|
16671
|
+
* Get Product
|
|
16672
|
+
* @summary Get Product
|
|
16673
|
+
* @param {string} sku Product SKU
|
|
16674
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16675
|
+
* @param {*} [options] Override http request option.
|
|
16676
|
+
* @throws {RequiredError}
|
|
16677
|
+
*/
|
|
16678
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
16679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
16680
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16681
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
16682
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16683
|
+
},
|
|
16684
|
+
/**
|
|
16685
|
+
* Get Product For Customer
|
|
16686
|
+
* @summary Get Product For Customer
|
|
16687
|
+
* @param {number} customerId Customer ID
|
|
16688
|
+
* @param {string} sku Product SKU
|
|
16689
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16690
|
+
* @param {*} [options] Override http request option.
|
|
16691
|
+
* @throws {RequiredError}
|
|
16692
|
+
*/
|
|
16693
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
16694
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
16695
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16696
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
16697
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16698
|
+
},
|
|
16696
16699
|
}
|
|
16697
16700
|
};
|
|
16698
16701
|
|
|
@@ -16723,33 +16726,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16723
16726
|
getGetLegacyStockList(format: GetGetLegacyStockListFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
16724
16727
|
return localVarFp.getGetLegacyStockList(format, options).then((request) => request(axios, basePath));
|
|
16725
16728
|
},
|
|
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
16729
|
/**
|
|
16754
16730
|
* Get Products
|
|
16755
16731
|
* @summary Get Products
|
|
@@ -16789,6 +16765,29 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16789
16765
|
getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
|
|
16790
16766
|
return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
16791
16767
|
},
|
|
16768
|
+
/**
|
|
16769
|
+
* Get Product
|
|
16770
|
+
* @summary Get Product
|
|
16771
|
+
* @param {string} sku Product SKU
|
|
16772
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16773
|
+
* @param {*} [options] Override http request option.
|
|
16774
|
+
* @throws {RequiredError}
|
|
16775
|
+
*/
|
|
16776
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
16777
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
16778
|
+
},
|
|
16779
|
+
/**
|
|
16780
|
+
* Get Product For Customer
|
|
16781
|
+
* @summary Get Product For Customer
|
|
16782
|
+
* @param {number} customerId Customer ID
|
|
16783
|
+
* @param {string} sku Product SKU
|
|
16784
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16785
|
+
* @param {*} [options] Override http request option.
|
|
16786
|
+
* @throws {RequiredError}
|
|
16787
|
+
*/
|
|
16788
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
16789
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
16790
|
+
},
|
|
16792
16791
|
};
|
|
16793
16792
|
};
|
|
16794
16793
|
|
|
@@ -16823,37 +16822,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
16823
16822
|
return ProductsApiFp(this.configuration).getGetLegacyStockList(format, options).then((request) => request(this.axios, this.basePath));
|
|
16824
16823
|
}
|
|
16825
16824
|
|
|
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
16825
|
/**
|
|
16858
16826
|
* Get Products
|
|
16859
16827
|
* @summary Get Products
|
|
@@ -16900,6 +16868,33 @@ export class ProductsApi extends BaseAPI {
|
|
|
16900
16868
|
public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
16901
16869
|
return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
16902
16870
|
}
|
|
16871
|
+
|
|
16872
|
+
/**
|
|
16873
|
+
* Get Product
|
|
16874
|
+
* @summary Get Product
|
|
16875
|
+
* @param {string} sku Product SKU
|
|
16876
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16877
|
+
* @param {*} [options] Override http request option.
|
|
16878
|
+
* @throws {RequiredError}
|
|
16879
|
+
* @memberof ProductsApi
|
|
16880
|
+
*/
|
|
16881
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
16882
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16883
|
+
}
|
|
16884
|
+
|
|
16885
|
+
/**
|
|
16886
|
+
* Get Product For Customer
|
|
16887
|
+
* @summary Get Product For Customer
|
|
16888
|
+
* @param {number} customerId Customer ID
|
|
16889
|
+
* @param {string} sku Product SKU
|
|
16890
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16891
|
+
* @param {*} [options] Override http request option.
|
|
16892
|
+
* @throws {RequiredError}
|
|
16893
|
+
* @memberof ProductsApi
|
|
16894
|
+
*/
|
|
16895
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
16896
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16897
|
+
}
|
|
16903
16898
|
}
|
|
16904
16899
|
|
|
16905
16900
|
/**
|