yellowgrid-api-ts 3.2.304 → 3.2.305
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 +3 -1
- package/api.ts +181 -17
- package/dist/api.d.ts +140 -15
- package/dist/api.js +125 -4
- package/dist/models/CategoryEnum.d.ts +103 -0
- package/dist/models/CategoryEnum.js +105 -0
- package/docs/{StockProductPriceModel.md → ProductPriceModel.md} +4 -4
- package/docs/StockProductModel.md +7 -5
- package/docs/SupplierProductDTO.md +43 -0
- package/docs/SuppliersApi.md +56 -0
- package/models/CategoryEnum.ts +104 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -226,6 +226,7 @@ docs/PrizesEntity.md
|
|
|
226
226
|
docs/ProcessedCdr.md
|
|
227
227
|
docs/ProductDetailedSummaryDTO.md
|
|
228
228
|
docs/ProductPriceListItemModel.md
|
|
229
|
+
docs/ProductPriceModel.md
|
|
229
230
|
docs/ProductSearchResultsModel.md
|
|
230
231
|
docs/ProductSerialInfoDTO.md
|
|
231
232
|
docs/ProductSerialInfoModel.md
|
|
@@ -340,7 +341,6 @@ docs/StockOrderSupplierEntity.md
|
|
|
340
341
|
docs/StockOrderSupplierModel.md
|
|
341
342
|
docs/StockOrdersModel.md
|
|
342
343
|
docs/StockProductModel.md
|
|
343
|
-
docs/StockProductPriceModel.md
|
|
344
344
|
docs/StockProductSummariesModel.md
|
|
345
345
|
docs/StockProductSummaryModel.md
|
|
346
346
|
docs/StockReportItemModel.md
|
|
@@ -351,6 +351,7 @@ docs/SupplierItemEntity.md
|
|
|
351
351
|
docs/SupplierItemModel.md
|
|
352
352
|
docs/SupplierItemsResultsDTO.md
|
|
353
353
|
docs/SupplierModel.md
|
|
354
|
+
docs/SupplierProductDTO.md
|
|
354
355
|
docs/SupplierProductModel.md
|
|
355
356
|
docs/SupplierProductResultsModel.md
|
|
356
357
|
docs/SuppliersApi.md
|
package/README.md
CHANGED
|
@@ -439,6 +439,7 @@ Class | Method | HTTP request | Description
|
|
|
439
439
|
*SuppliersApi* | [**getGetSupplierItem**](docs/SuppliersApi.md#getgetsupplieritem) | **GET** /suppliers/items/{id} | Get Supplier Item
|
|
440
440
|
*SuppliersApi* | [**getGetSupplierItems**](docs/SuppliersApi.md#getgetsupplieritems) | **GET** /suppliers/items | Get Supplier Items
|
|
441
441
|
*SuppliersApi* | [**getGetSuppliers**](docs/SuppliersApi.md#getgetsuppliers) | **GET** /suppliers | Get Suppliers
|
|
442
|
+
*SuppliersApi* | [**postGetSupplierItems**](docs/SuppliersApi.md#postgetsupplieritems) | **POST** /suppliers/items |
|
|
442
443
|
*SuppliersApi* | [**putGetSupplierItem**](docs/SuppliersApi.md#putgetsupplieritem) | **PUT** /suppliers/items/{id} | Update Supplier Product
|
|
443
444
|
*SystemApi* | [**getLogSearch**](docs/SystemApi.md#getlogsearch) | **GET** /system/logs/api/search | Search for logs
|
|
444
445
|
*TicketsApi* | [**getCreateTicket**](docs/TicketsApi.md#getcreateticket) | **GET** /tickets/support |
|
|
@@ -657,6 +658,7 @@ Class | Method | HTTP request | Description
|
|
|
657
658
|
- [ProcessedCdr](docs/ProcessedCdr.md)
|
|
658
659
|
- [ProductDetailedSummaryDTO](docs/ProductDetailedSummaryDTO.md)
|
|
659
660
|
- [ProductPriceListItemModel](docs/ProductPriceListItemModel.md)
|
|
661
|
+
- [ProductPriceModel](docs/ProductPriceModel.md)
|
|
660
662
|
- [ProductSearchResultsModel](docs/ProductSearchResultsModel.md)
|
|
661
663
|
- [ProductSerialInfoDTO](docs/ProductSerialInfoDTO.md)
|
|
662
664
|
- [ProductSerialInfoModel](docs/ProductSerialInfoModel.md)
|
|
@@ -760,7 +762,6 @@ Class | Method | HTTP request | Description
|
|
|
760
762
|
- [StockOrderSupplierModel](docs/StockOrderSupplierModel.md)
|
|
761
763
|
- [StockOrdersModel](docs/StockOrdersModel.md)
|
|
762
764
|
- [StockProductModel](docs/StockProductModel.md)
|
|
763
|
-
- [StockProductPriceModel](docs/StockProductPriceModel.md)
|
|
764
765
|
- [StockProductSummariesModel](docs/StockProductSummariesModel.md)
|
|
765
766
|
- [StockProductSummaryModel](docs/StockProductSummaryModel.md)
|
|
766
767
|
- [StockReportItemModel](docs/StockReportItemModel.md)
|
|
@@ -771,6 +772,7 @@ Class | Method | HTTP request | Description
|
|
|
771
772
|
- [SupplierItemModel](docs/SupplierItemModel.md)
|
|
772
773
|
- [SupplierItemsResultsDTO](docs/SupplierItemsResultsDTO.md)
|
|
773
774
|
- [SupplierModel](docs/SupplierModel.md)
|
|
775
|
+
- [SupplierProductDTO](docs/SupplierProductDTO.md)
|
|
774
776
|
- [SupplierProductModel](docs/SupplierProductModel.md)
|
|
775
777
|
- [SupplierProductResultsModel](docs/SupplierProductResultsModel.md)
|
|
776
778
|
- [SupportTicketModel](docs/SupportTicketModel.md)
|
package/api.ts
CHANGED
|
@@ -6181,6 +6181,18 @@ export interface ProductPriceListItemModel {
|
|
|
6181
6181
|
*/
|
|
6182
6182
|
'brand'?: string | null;
|
|
6183
6183
|
}
|
|
6184
|
+
/**
|
|
6185
|
+
* Product Price
|
|
6186
|
+
*/
|
|
6187
|
+
export interface ProductPriceModel {
|
|
6188
|
+
'priceList': CustomerPriceListEnum;
|
|
6189
|
+
/**
|
|
6190
|
+
* Price (£)
|
|
6191
|
+
*/
|
|
6192
|
+
'price'?: number | null;
|
|
6193
|
+
}
|
|
6194
|
+
|
|
6195
|
+
|
|
6184
6196
|
/**
|
|
6185
6197
|
* Product Search Results
|
|
6186
6198
|
*/
|
|
@@ -8982,11 +8994,11 @@ export interface StockProductModel {
|
|
|
8982
8994
|
*/
|
|
8983
8995
|
'manufacturerId': number;
|
|
8984
8996
|
/**
|
|
8985
|
-
*
|
|
8997
|
+
* SKU
|
|
8986
8998
|
*/
|
|
8987
8999
|
'sku': string;
|
|
8988
9000
|
/**
|
|
8989
|
-
*
|
|
9001
|
+
* Title
|
|
8990
9002
|
*/
|
|
8991
9003
|
'title': string;
|
|
8992
9004
|
/**
|
|
@@ -8999,10 +9011,6 @@ export interface StockProductModel {
|
|
|
8999
9011
|
'carton': number;
|
|
9000
9012
|
'manufacturer'?: StockOrderSupplierModel;
|
|
9001
9013
|
'attributeSet'?: AttributeSetEnum | null;
|
|
9002
|
-
/**
|
|
9003
|
-
* Current Quantity
|
|
9004
|
-
*/
|
|
9005
|
-
'stock'?: number | null;
|
|
9006
9014
|
/**
|
|
9007
9015
|
* Weight (KG)
|
|
9008
9016
|
*/
|
|
@@ -9023,21 +9031,41 @@ export interface StockProductModel {
|
|
|
9023
9031
|
/**
|
|
9024
9032
|
* Prices
|
|
9025
9033
|
*/
|
|
9026
|
-
'salesPrices'?: Array<
|
|
9027
|
-
}
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
/**
|
|
9031
|
-
* Stock Product Price
|
|
9032
|
-
*/
|
|
9033
|
-
export interface StockProductPriceModel {
|
|
9034
|
-
'priceList': CustomerPriceListEnum;
|
|
9034
|
+
'salesPrices'?: Array<ProductPriceModel>;
|
|
9035
9035
|
/**
|
|
9036
|
-
*
|
|
9036
|
+
* Category
|
|
9037
9037
|
*/
|
|
9038
|
-
'
|
|
9038
|
+
'category'?: StockProductModelCategoryEnum;
|
|
9039
|
+
/**
|
|
9040
|
+
* Current Quantity
|
|
9041
|
+
*/
|
|
9042
|
+
'stock'?: number | null;
|
|
9039
9043
|
}
|
|
9040
9044
|
|
|
9045
|
+
export const StockProductModelCategoryEnum = {
|
|
9046
|
+
Yealink: 'Yealink',
|
|
9047
|
+
Mairdi: 'Mairdi',
|
|
9048
|
+
Jabra: 'Jabra',
|
|
9049
|
+
_3Cx: '3CX',
|
|
9050
|
+
Fanvil: 'Fanvil',
|
|
9051
|
+
Vt: 'VT',
|
|
9052
|
+
Netgear: 'Netgear',
|
|
9053
|
+
Algo: 'Algo',
|
|
9054
|
+
YealinkHeadsets: 'Yealink Headsets',
|
|
9055
|
+
YealinkDectHandsets: 'Yealink DECT Handsets',
|
|
9056
|
+
YealinkDectHeadsets: 'Yealink DECT Headsets',
|
|
9057
|
+
YealinkBtHeadsets: 'Yealink BT Headsets',
|
|
9058
|
+
YealinkUsbWiredHeadsets: 'Yealink USB Wired Headsets',
|
|
9059
|
+
YealinkMeetingRooms: 'Yealink Meeting Rooms',
|
|
9060
|
+
FanvilPhones: 'Fanvil Phones',
|
|
9061
|
+
FanvilHeadsets: 'Fanvil Headsets',
|
|
9062
|
+
FanvilWirelessPhones: 'Fanvil Wireless Phones',
|
|
9063
|
+
FanvilSecurityProducts: 'Fanvil Security Products',
|
|
9064
|
+
FanvilAccessories: 'Fanvil Accessories',
|
|
9065
|
+
FanvilHotelPhones: 'Fanvil Hotel Phones',
|
|
9066
|
+
} as const;
|
|
9067
|
+
|
|
9068
|
+
export type StockProductModelCategoryEnum = typeof StockProductModelCategoryEnum[keyof typeof StockProductModelCategoryEnum];
|
|
9041
9069
|
|
|
9042
9070
|
/**
|
|
9043
9071
|
* Stock Products
|
|
@@ -9384,6 +9412,79 @@ export interface SupplierModel {
|
|
|
9384
9412
|
*/
|
|
9385
9413
|
'xeroAccountNumber': string;
|
|
9386
9414
|
}
|
|
9415
|
+
/**
|
|
9416
|
+
* Supplier Product
|
|
9417
|
+
*/
|
|
9418
|
+
export interface SupplierProductDTO {
|
|
9419
|
+
/**
|
|
9420
|
+
* Title
|
|
9421
|
+
*/
|
|
9422
|
+
'title': string;
|
|
9423
|
+
/**
|
|
9424
|
+
* SKU
|
|
9425
|
+
*/
|
|
9426
|
+
'sku': string;
|
|
9427
|
+
'attributeSet'?: AttributeSetEnum | null;
|
|
9428
|
+
/**
|
|
9429
|
+
* Weight (KG)
|
|
9430
|
+
*/
|
|
9431
|
+
'weight'?: number | null;
|
|
9432
|
+
/**
|
|
9433
|
+
* EAN
|
|
9434
|
+
*/
|
|
9435
|
+
'ean'?: string | null;
|
|
9436
|
+
/**
|
|
9437
|
+
* Serial Prefix
|
|
9438
|
+
*/
|
|
9439
|
+
'serialPrefix'?: string | null;
|
|
9440
|
+
/**
|
|
9441
|
+
* 3CX Phone Label
|
|
9442
|
+
*/
|
|
9443
|
+
'tcxLabel'?: string | null;
|
|
9444
|
+
'tcxTemplate'?: TcxTemplateXmlEnum | null;
|
|
9445
|
+
/**
|
|
9446
|
+
* Prices
|
|
9447
|
+
*/
|
|
9448
|
+
'salesPrices': Array<ProductPriceModel>;
|
|
9449
|
+
/**
|
|
9450
|
+
* Category
|
|
9451
|
+
*/
|
|
9452
|
+
'category': SupplierProductDTOCategoryEnum;
|
|
9453
|
+
/**
|
|
9454
|
+
* Supplier ID
|
|
9455
|
+
*/
|
|
9456
|
+
'supplierId': number;
|
|
9457
|
+
/**
|
|
9458
|
+
* Supplier Price
|
|
9459
|
+
*/
|
|
9460
|
+
'price': number;
|
|
9461
|
+
}
|
|
9462
|
+
|
|
9463
|
+
export const SupplierProductDTOCategoryEnum = {
|
|
9464
|
+
Yealink: 'Yealink',
|
|
9465
|
+
Mairdi: 'Mairdi',
|
|
9466
|
+
Jabra: 'Jabra',
|
|
9467
|
+
_3Cx: '3CX',
|
|
9468
|
+
Fanvil: 'Fanvil',
|
|
9469
|
+
Vt: 'VT',
|
|
9470
|
+
Netgear: 'Netgear',
|
|
9471
|
+
Algo: 'Algo',
|
|
9472
|
+
YealinkHeadsets: 'Yealink Headsets',
|
|
9473
|
+
YealinkDectHandsets: 'Yealink DECT Handsets',
|
|
9474
|
+
YealinkDectHeadsets: 'Yealink DECT Headsets',
|
|
9475
|
+
YealinkBtHeadsets: 'Yealink BT Headsets',
|
|
9476
|
+
YealinkUsbWiredHeadsets: 'Yealink USB Wired Headsets',
|
|
9477
|
+
YealinkMeetingRooms: 'Yealink Meeting Rooms',
|
|
9478
|
+
FanvilPhones: 'Fanvil Phones',
|
|
9479
|
+
FanvilHeadsets: 'Fanvil Headsets',
|
|
9480
|
+
FanvilWirelessPhones: 'Fanvil Wireless Phones',
|
|
9481
|
+
FanvilSecurityProducts: 'Fanvil Security Products',
|
|
9482
|
+
FanvilAccessories: 'Fanvil Accessories',
|
|
9483
|
+
FanvilHotelPhones: 'Fanvil Hotel Phones',
|
|
9484
|
+
} as const;
|
|
9485
|
+
|
|
9486
|
+
export type SupplierProductDTOCategoryEnum = typeof SupplierProductDTOCategoryEnum[keyof typeof SupplierProductDTOCategoryEnum];
|
|
9487
|
+
|
|
9387
9488
|
/**
|
|
9388
9489
|
* Supplier Product
|
|
9389
9490
|
*/
|
|
@@ -40202,6 +40303,38 @@ export const SuppliersApiAxiosParamCreator = function (configuration?: Configura
|
|
|
40202
40303
|
options: localVarRequestOptions,
|
|
40203
40304
|
};
|
|
40204
40305
|
},
|
|
40306
|
+
/**
|
|
40307
|
+
* Create Supplier Product
|
|
40308
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
40309
|
+
* @param {*} [options] Override http request option.
|
|
40310
|
+
* @throws {RequiredError}
|
|
40311
|
+
*/
|
|
40312
|
+
postGetSupplierItems: async (supplierProductDTO?: SupplierProductDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40313
|
+
const localVarPath = `/suppliers/items`;
|
|
40314
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40315
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40316
|
+
let baseOptions;
|
|
40317
|
+
if (configuration) {
|
|
40318
|
+
baseOptions = configuration.baseOptions;
|
|
40319
|
+
}
|
|
40320
|
+
|
|
40321
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40322
|
+
const localVarHeaderParameter = {} as any;
|
|
40323
|
+
const localVarQueryParameter = {} as any;
|
|
40324
|
+
|
|
40325
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40326
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
40327
|
+
|
|
40328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40330
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40331
|
+
localVarRequestOptions.data = serializeDataIfNeeded(supplierProductDTO, localVarRequestOptions, configuration)
|
|
40332
|
+
|
|
40333
|
+
return {
|
|
40334
|
+
url: toPathString(localVarUrlObj),
|
|
40335
|
+
options: localVarRequestOptions,
|
|
40336
|
+
};
|
|
40337
|
+
},
|
|
40205
40338
|
/**
|
|
40206
40339
|
* Update Supplier Product
|
|
40207
40340
|
* @summary Update Supplier Product
|
|
@@ -40288,6 +40421,18 @@ export const SuppliersApiFp = function(configuration?: Configuration) {
|
|
|
40288
40421
|
const localVarOperationServerBasePath = operationServerMap['SuppliersApi.getGetSuppliers']?.[localVarOperationServerIndex]?.url;
|
|
40289
40422
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40290
40423
|
},
|
|
40424
|
+
/**
|
|
40425
|
+
* Create Supplier Product
|
|
40426
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
40427
|
+
* @param {*} [options] Override http request option.
|
|
40428
|
+
* @throws {RequiredError}
|
|
40429
|
+
*/
|
|
40430
|
+
async postGetSupplierItems(supplierProductDTO?: SupplierProductDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductDTO>> {
|
|
40431
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetSupplierItems(supplierProductDTO, options);
|
|
40432
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40433
|
+
const localVarOperationServerBasePath = operationServerMap['SuppliersApi.postGetSupplierItems']?.[localVarOperationServerIndex]?.url;
|
|
40434
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40435
|
+
},
|
|
40291
40436
|
/**
|
|
40292
40437
|
* Update Supplier Product
|
|
40293
40438
|
* @summary Update Supplier Product
|
|
@@ -40342,6 +40487,15 @@ export const SuppliersApiFactory = function (configuration?: Configuration, base
|
|
|
40342
40487
|
getGetSuppliers(options?: RawAxiosRequestConfig): AxiosPromise<Array<SupplierModel>> {
|
|
40343
40488
|
return localVarFp.getGetSuppliers(options).then((request) => request(axios, basePath));
|
|
40344
40489
|
},
|
|
40490
|
+
/**
|
|
40491
|
+
* Create Supplier Product
|
|
40492
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
40493
|
+
* @param {*} [options] Override http request option.
|
|
40494
|
+
* @throws {RequiredError}
|
|
40495
|
+
*/
|
|
40496
|
+
postGetSupplierItems(supplierProductDTO?: SupplierProductDTO, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductDTO> {
|
|
40497
|
+
return localVarFp.postGetSupplierItems(supplierProductDTO, options).then((request) => request(axios, basePath));
|
|
40498
|
+
},
|
|
40345
40499
|
/**
|
|
40346
40500
|
* Update Supplier Product
|
|
40347
40501
|
* @summary Update Supplier Product
|
|
@@ -40394,6 +40548,16 @@ export class SuppliersApi extends BaseAPI {
|
|
|
40394
40548
|
return SuppliersApiFp(this.configuration).getGetSuppliers(options).then((request) => request(this.axios, this.basePath));
|
|
40395
40549
|
}
|
|
40396
40550
|
|
|
40551
|
+
/**
|
|
40552
|
+
* Create Supplier Product
|
|
40553
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
40554
|
+
* @param {*} [options] Override http request option.
|
|
40555
|
+
* @throws {RequiredError}
|
|
40556
|
+
*/
|
|
40557
|
+
public postGetSupplierItems(supplierProductDTO?: SupplierProductDTO, options?: RawAxiosRequestConfig) {
|
|
40558
|
+
return SuppliersApiFp(this.configuration).postGetSupplierItems(supplierProductDTO, options).then((request) => request(this.axios, this.basePath));
|
|
40559
|
+
}
|
|
40560
|
+
|
|
40397
40561
|
/**
|
|
40398
40562
|
* Update Supplier Product
|
|
40399
40563
|
* @summary Update Supplier Product
|
package/dist/api.d.ts
CHANGED
|
@@ -6087,6 +6087,16 @@ export interface ProductPriceListItemModel {
|
|
|
6087
6087
|
*/
|
|
6088
6088
|
'brand'?: string | null;
|
|
6089
6089
|
}
|
|
6090
|
+
/**
|
|
6091
|
+
* Product Price
|
|
6092
|
+
*/
|
|
6093
|
+
export interface ProductPriceModel {
|
|
6094
|
+
'priceList': CustomerPriceListEnum;
|
|
6095
|
+
/**
|
|
6096
|
+
* Price (£)
|
|
6097
|
+
*/
|
|
6098
|
+
'price'?: number | null;
|
|
6099
|
+
}
|
|
6090
6100
|
/**
|
|
6091
6101
|
* Product Search Results
|
|
6092
6102
|
*/
|
|
@@ -8811,11 +8821,11 @@ export interface StockProductModel {
|
|
|
8811
8821
|
*/
|
|
8812
8822
|
'manufacturerId': number;
|
|
8813
8823
|
/**
|
|
8814
|
-
*
|
|
8824
|
+
* SKU
|
|
8815
8825
|
*/
|
|
8816
8826
|
'sku': string;
|
|
8817
8827
|
/**
|
|
8818
|
-
*
|
|
8828
|
+
* Title
|
|
8819
8829
|
*/
|
|
8820
8830
|
'title': string;
|
|
8821
8831
|
/**
|
|
@@ -8828,10 +8838,6 @@ export interface StockProductModel {
|
|
|
8828
8838
|
'carton': number;
|
|
8829
8839
|
'manufacturer'?: StockOrderSupplierModel;
|
|
8830
8840
|
'attributeSet'?: AttributeSetEnum | null;
|
|
8831
|
-
/**
|
|
8832
|
-
* Current Quantity
|
|
8833
|
-
*/
|
|
8834
|
-
'stock'?: number | null;
|
|
8835
8841
|
/**
|
|
8836
8842
|
* Weight (KG)
|
|
8837
8843
|
*/
|
|
@@ -8852,18 +8858,39 @@ export interface StockProductModel {
|
|
|
8852
8858
|
/**
|
|
8853
8859
|
* Prices
|
|
8854
8860
|
*/
|
|
8855
|
-
'salesPrices'?: Array<
|
|
8856
|
-
}
|
|
8857
|
-
/**
|
|
8858
|
-
* Stock Product Price
|
|
8859
|
-
*/
|
|
8860
|
-
export interface StockProductPriceModel {
|
|
8861
|
-
'priceList': CustomerPriceListEnum;
|
|
8861
|
+
'salesPrices'?: Array<ProductPriceModel>;
|
|
8862
8862
|
/**
|
|
8863
|
-
*
|
|
8863
|
+
* Category
|
|
8864
8864
|
*/
|
|
8865
|
-
'
|
|
8865
|
+
'category'?: StockProductModelCategoryEnum;
|
|
8866
|
+
/**
|
|
8867
|
+
* Current Quantity
|
|
8868
|
+
*/
|
|
8869
|
+
'stock'?: number | null;
|
|
8866
8870
|
}
|
|
8871
|
+
export declare const StockProductModelCategoryEnum: {
|
|
8872
|
+
readonly Yealink: "Yealink";
|
|
8873
|
+
readonly Mairdi: "Mairdi";
|
|
8874
|
+
readonly Jabra: "Jabra";
|
|
8875
|
+
readonly _3Cx: "3CX";
|
|
8876
|
+
readonly Fanvil: "Fanvil";
|
|
8877
|
+
readonly Vt: "VT";
|
|
8878
|
+
readonly Netgear: "Netgear";
|
|
8879
|
+
readonly Algo: "Algo";
|
|
8880
|
+
readonly YealinkHeadsets: "Yealink Headsets";
|
|
8881
|
+
readonly YealinkDectHandsets: "Yealink DECT Handsets";
|
|
8882
|
+
readonly YealinkDectHeadsets: "Yealink DECT Headsets";
|
|
8883
|
+
readonly YealinkBtHeadsets: "Yealink BT Headsets";
|
|
8884
|
+
readonly YealinkUsbWiredHeadsets: "Yealink USB Wired Headsets";
|
|
8885
|
+
readonly YealinkMeetingRooms: "Yealink Meeting Rooms";
|
|
8886
|
+
readonly FanvilPhones: "Fanvil Phones";
|
|
8887
|
+
readonly FanvilHeadsets: "Fanvil Headsets";
|
|
8888
|
+
readonly FanvilWirelessPhones: "Fanvil Wireless Phones";
|
|
8889
|
+
readonly FanvilSecurityProducts: "Fanvil Security Products";
|
|
8890
|
+
readonly FanvilAccessories: "Fanvil Accessories";
|
|
8891
|
+
readonly FanvilHotelPhones: "Fanvil Hotel Phones";
|
|
8892
|
+
};
|
|
8893
|
+
export type StockProductModelCategoryEnum = typeof StockProductModelCategoryEnum[keyof typeof StockProductModelCategoryEnum];
|
|
8867
8894
|
/**
|
|
8868
8895
|
* Stock Products
|
|
8869
8896
|
*/
|
|
@@ -9206,6 +9233,76 @@ export interface SupplierModel {
|
|
|
9206
9233
|
*/
|
|
9207
9234
|
'xeroAccountNumber': string;
|
|
9208
9235
|
}
|
|
9236
|
+
/**
|
|
9237
|
+
* Supplier Product
|
|
9238
|
+
*/
|
|
9239
|
+
export interface SupplierProductDTO {
|
|
9240
|
+
/**
|
|
9241
|
+
* Title
|
|
9242
|
+
*/
|
|
9243
|
+
'title': string;
|
|
9244
|
+
/**
|
|
9245
|
+
* SKU
|
|
9246
|
+
*/
|
|
9247
|
+
'sku': string;
|
|
9248
|
+
'attributeSet'?: AttributeSetEnum | null;
|
|
9249
|
+
/**
|
|
9250
|
+
* Weight (KG)
|
|
9251
|
+
*/
|
|
9252
|
+
'weight'?: number | null;
|
|
9253
|
+
/**
|
|
9254
|
+
* EAN
|
|
9255
|
+
*/
|
|
9256
|
+
'ean'?: string | null;
|
|
9257
|
+
/**
|
|
9258
|
+
* Serial Prefix
|
|
9259
|
+
*/
|
|
9260
|
+
'serialPrefix'?: string | null;
|
|
9261
|
+
/**
|
|
9262
|
+
* 3CX Phone Label
|
|
9263
|
+
*/
|
|
9264
|
+
'tcxLabel'?: string | null;
|
|
9265
|
+
'tcxTemplate'?: TcxTemplateXmlEnum | null;
|
|
9266
|
+
/**
|
|
9267
|
+
* Prices
|
|
9268
|
+
*/
|
|
9269
|
+
'salesPrices': Array<ProductPriceModel>;
|
|
9270
|
+
/**
|
|
9271
|
+
* Category
|
|
9272
|
+
*/
|
|
9273
|
+
'category': SupplierProductDTOCategoryEnum;
|
|
9274
|
+
/**
|
|
9275
|
+
* Supplier ID
|
|
9276
|
+
*/
|
|
9277
|
+
'supplierId': number;
|
|
9278
|
+
/**
|
|
9279
|
+
* Supplier Price
|
|
9280
|
+
*/
|
|
9281
|
+
'price': number;
|
|
9282
|
+
}
|
|
9283
|
+
export declare const SupplierProductDTOCategoryEnum: {
|
|
9284
|
+
readonly Yealink: "Yealink";
|
|
9285
|
+
readonly Mairdi: "Mairdi";
|
|
9286
|
+
readonly Jabra: "Jabra";
|
|
9287
|
+
readonly _3Cx: "3CX";
|
|
9288
|
+
readonly Fanvil: "Fanvil";
|
|
9289
|
+
readonly Vt: "VT";
|
|
9290
|
+
readonly Netgear: "Netgear";
|
|
9291
|
+
readonly Algo: "Algo";
|
|
9292
|
+
readonly YealinkHeadsets: "Yealink Headsets";
|
|
9293
|
+
readonly YealinkDectHandsets: "Yealink DECT Handsets";
|
|
9294
|
+
readonly YealinkDectHeadsets: "Yealink DECT Headsets";
|
|
9295
|
+
readonly YealinkBtHeadsets: "Yealink BT Headsets";
|
|
9296
|
+
readonly YealinkUsbWiredHeadsets: "Yealink USB Wired Headsets";
|
|
9297
|
+
readonly YealinkMeetingRooms: "Yealink Meeting Rooms";
|
|
9298
|
+
readonly FanvilPhones: "Fanvil Phones";
|
|
9299
|
+
readonly FanvilHeadsets: "Fanvil Headsets";
|
|
9300
|
+
readonly FanvilWirelessPhones: "Fanvil Wireless Phones";
|
|
9301
|
+
readonly FanvilSecurityProducts: "Fanvil Security Products";
|
|
9302
|
+
readonly FanvilAccessories: "Fanvil Accessories";
|
|
9303
|
+
readonly FanvilHotelPhones: "Fanvil Hotel Phones";
|
|
9304
|
+
};
|
|
9305
|
+
export type SupplierProductDTOCategoryEnum = typeof SupplierProductDTOCategoryEnum[keyof typeof SupplierProductDTOCategoryEnum];
|
|
9209
9306
|
/**
|
|
9210
9307
|
* Supplier Product
|
|
9211
9308
|
*/
|
|
@@ -24625,6 +24722,13 @@ export declare const SuppliersApiAxiosParamCreator: (configuration?: Configurati
|
|
|
24625
24722
|
* @throws {RequiredError}
|
|
24626
24723
|
*/
|
|
24627
24724
|
getGetSuppliers: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24725
|
+
/**
|
|
24726
|
+
* Create Supplier Product
|
|
24727
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
24728
|
+
* @param {*} [options] Override http request option.
|
|
24729
|
+
* @throws {RequiredError}
|
|
24730
|
+
*/
|
|
24731
|
+
postGetSupplierItems: (supplierProductDTO?: SupplierProductDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
24628
24732
|
/**
|
|
24629
24733
|
* Update Supplier Product
|
|
24630
24734
|
* @summary Update Supplier Product
|
|
@@ -24664,6 +24768,13 @@ export declare const SuppliersApiFp: (configuration?: Configuration) => {
|
|
|
24664
24768
|
* @throws {RequiredError}
|
|
24665
24769
|
*/
|
|
24666
24770
|
getGetSuppliers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SupplierModel>>>;
|
|
24771
|
+
/**
|
|
24772
|
+
* Create Supplier Product
|
|
24773
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
24774
|
+
* @param {*} [options] Override http request option.
|
|
24775
|
+
* @throws {RequiredError}
|
|
24776
|
+
*/
|
|
24777
|
+
postGetSupplierItems(supplierProductDTO?: SupplierProductDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductDTO>>;
|
|
24667
24778
|
/**
|
|
24668
24779
|
* Update Supplier Product
|
|
24669
24780
|
* @summary Update Supplier Product
|
|
@@ -24703,6 +24814,13 @@ export declare const SuppliersApiFactory: (configuration?: Configuration, basePa
|
|
|
24703
24814
|
* @throws {RequiredError}
|
|
24704
24815
|
*/
|
|
24705
24816
|
getGetSuppliers(options?: RawAxiosRequestConfig): AxiosPromise<Array<SupplierModel>>;
|
|
24817
|
+
/**
|
|
24818
|
+
* Create Supplier Product
|
|
24819
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
24820
|
+
* @param {*} [options] Override http request option.
|
|
24821
|
+
* @throws {RequiredError}
|
|
24822
|
+
*/
|
|
24823
|
+
postGetSupplierItems(supplierProductDTO?: SupplierProductDTO, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductDTO>;
|
|
24706
24824
|
/**
|
|
24707
24825
|
* Update Supplier Product
|
|
24708
24826
|
* @summary Update Supplier Product
|
|
@@ -24742,6 +24860,13 @@ export declare class SuppliersApi extends BaseAPI {
|
|
|
24742
24860
|
* @throws {RequiredError}
|
|
24743
24861
|
*/
|
|
24744
24862
|
getGetSuppliers(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SupplierModel[], any, {}>>;
|
|
24863
|
+
/**
|
|
24864
|
+
* Create Supplier Product
|
|
24865
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
24866
|
+
* @param {*} [options] Override http request option.
|
|
24867
|
+
* @throws {RequiredError}
|
|
24868
|
+
*/
|
|
24869
|
+
postGetSupplierItems(supplierProductDTO?: SupplierProductDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SupplierProductDTO, any, {}>>;
|
|
24745
24870
|
/**
|
|
24746
24871
|
* Update Supplier Product
|
|
24747
24872
|
* @summary Update Supplier Product
|
package/dist/api.js
CHANGED
|
@@ -85,10 +85,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
87
|
exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.SeriesDTOTypeEnum = exports.SdrReferenceType = exports.RmaSummaryDTOStatusEnum = exports.RmaRequestDTORequestedResolutionEnum = exports.RmaRequestDTOReasonEnum = exports.RmaItemDTOStatusEnum = exports.RmaDTOStatusEnum = exports.RmaDTOResolutionEnum = exports.RmaDTOReasonEnum = exports.RmaCreditItemRequestDTORefundPercentageEnum = exports.ResolutionRequestModelResolutionEnum = exports.ReportRequestDTOGraphTypeEnum = exports.ReportRequestDTOReportEnum = exports.ReasonRequestModelReasonEnum = exports.ProspectDTOStatusEnum = exports.PostGetServicePlansRequestPlanGroupEnum = exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.PasswordSenderDTOIntervalTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemResolutionRequestModelResolutionEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.GraphDTOCurrencyEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.CustomerRateType = exports.BrandedVideoSummaryDTOStatusEnum = exports.BrandedVideoSummaryDTOTypeEnum = exports.AxisDataDTOTypeEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminRmaSummaryDTOStatusEnum = exports.AdminRmaItemDTOResolutionEnum = exports.AdminRmaItemDTOStatusEnum = exports.AdminRmaDTOStatusEnum = exports.AdminRmaDTOResolutionEnum = exports.AdminRmaDTOReasonEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.
|
|
91
|
-
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SuppliersApi = exports.SuppliersApiFactory = exports.SuppliersApiFp = exports.SuppliersApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = void 0;
|
|
88
|
+
exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.GetGetBrandedVideosTypeEnum = exports.BrandedVideosApi = exports.BrandedVideosApiFactory = exports.BrandedVideosApiFp = exports.BrandedVideosApiAxiosParamCreator = exports.GetGetServicesPlanDetailsTypeEnum = exports.GetGetConnectionsTypeEnum = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = exports.PatchSetOnHoldStateEnum = exports.PatchSetAccountStatusStateEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.SupplierProductDTOCategoryEnum = exports.StockReportItemModelCurrencyEnum = exports.StockProductModelCategoryEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = void 0;
|
|
89
|
+
exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.MiscApi = exports.MiscApiFactory = exports.MiscApiFp = exports.MiscApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.PatchMarkEngineerTaskAsCompleteCompleteEnum = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = void 0;
|
|
90
|
+
exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.RMAApi = exports.RMAApiFactory = exports.RMAApiFp = exports.RMAApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.PromotionsApi = exports.PromotionsApiFactory = exports.PromotionsApiFp = exports.PromotionsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = void 0;
|
|
91
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SuppliersApi = exports.SuppliersApiFactory = exports.SuppliersApiFp = exports.SuppliersApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = void 0;
|
|
92
92
|
var axios_1 = require("axios");
|
|
93
93
|
// Some imports not used depending on template conditions
|
|
94
94
|
// @ts-ignore
|
|
@@ -629,6 +629,28 @@ exports.StockOrderModelPaidEnum = {
|
|
|
629
629
|
NUMBER_1: 1,
|
|
630
630
|
NUMBER_2: 2,
|
|
631
631
|
};
|
|
632
|
+
exports.StockProductModelCategoryEnum = {
|
|
633
|
+
Yealink: 'Yealink',
|
|
634
|
+
Mairdi: 'Mairdi',
|
|
635
|
+
Jabra: 'Jabra',
|
|
636
|
+
_3Cx: '3CX',
|
|
637
|
+
Fanvil: 'Fanvil',
|
|
638
|
+
Vt: 'VT',
|
|
639
|
+
Netgear: 'Netgear',
|
|
640
|
+
Algo: 'Algo',
|
|
641
|
+
YealinkHeadsets: 'Yealink Headsets',
|
|
642
|
+
YealinkDectHandsets: 'Yealink DECT Handsets',
|
|
643
|
+
YealinkDectHeadsets: 'Yealink DECT Headsets',
|
|
644
|
+
YealinkBtHeadsets: 'Yealink BT Headsets',
|
|
645
|
+
YealinkUsbWiredHeadsets: 'Yealink USB Wired Headsets',
|
|
646
|
+
YealinkMeetingRooms: 'Yealink Meeting Rooms',
|
|
647
|
+
FanvilPhones: 'Fanvil Phones',
|
|
648
|
+
FanvilHeadsets: 'Fanvil Headsets',
|
|
649
|
+
FanvilWirelessPhones: 'Fanvil Wireless Phones',
|
|
650
|
+
FanvilSecurityProducts: 'Fanvil Security Products',
|
|
651
|
+
FanvilAccessories: 'Fanvil Accessories',
|
|
652
|
+
FanvilHotelPhones: 'Fanvil Hotel Phones',
|
|
653
|
+
};
|
|
632
654
|
exports.StockReportItemModelCurrencyEnum = {
|
|
633
655
|
Eur: 'EUR',
|
|
634
656
|
Usd: 'USD',
|
|
@@ -662,6 +684,28 @@ exports.StockReportItemModelCurrencyEnum = {
|
|
|
662
684
|
Thb: 'THB',
|
|
663
685
|
Zar: 'ZAR',
|
|
664
686
|
};
|
|
687
|
+
exports.SupplierProductDTOCategoryEnum = {
|
|
688
|
+
Yealink: 'Yealink',
|
|
689
|
+
Mairdi: 'Mairdi',
|
|
690
|
+
Jabra: 'Jabra',
|
|
691
|
+
_3Cx: '3CX',
|
|
692
|
+
Fanvil: 'Fanvil',
|
|
693
|
+
Vt: 'VT',
|
|
694
|
+
Netgear: 'Netgear',
|
|
695
|
+
Algo: 'Algo',
|
|
696
|
+
YealinkHeadsets: 'Yealink Headsets',
|
|
697
|
+
YealinkDectHandsets: 'Yealink DECT Handsets',
|
|
698
|
+
YealinkDectHeadsets: 'Yealink DECT Headsets',
|
|
699
|
+
YealinkBtHeadsets: 'Yealink BT Headsets',
|
|
700
|
+
YealinkUsbWiredHeadsets: 'Yealink USB Wired Headsets',
|
|
701
|
+
YealinkMeetingRooms: 'Yealink Meeting Rooms',
|
|
702
|
+
FanvilPhones: 'Fanvil Phones',
|
|
703
|
+
FanvilHeadsets: 'Fanvil Headsets',
|
|
704
|
+
FanvilWirelessPhones: 'Fanvil Wireless Phones',
|
|
705
|
+
FanvilSecurityProducts: 'Fanvil Security Products',
|
|
706
|
+
FanvilAccessories: 'Fanvil Accessories',
|
|
707
|
+
FanvilHotelPhones: 'Fanvil Hotel Phones',
|
|
708
|
+
};
|
|
665
709
|
exports.TcxMultiTenantModelPackageEnum = {
|
|
666
710
|
_3CxStarterBundle: '3CX Starter Bundle',
|
|
667
711
|
};
|
|
@@ -34817,6 +34861,42 @@ var SuppliersApiAxiosParamCreator = function (configuration) {
|
|
|
34817
34861
|
});
|
|
34818
34862
|
});
|
|
34819
34863
|
},
|
|
34864
|
+
/**
|
|
34865
|
+
* Create Supplier Product
|
|
34866
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
34867
|
+
* @param {*} [options] Override http request option.
|
|
34868
|
+
* @throws {RequiredError}
|
|
34869
|
+
*/
|
|
34870
|
+
postGetSupplierItems: function (supplierProductDTO_1) {
|
|
34871
|
+
var args_1 = [];
|
|
34872
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
34873
|
+
args_1[_i - 1] = arguments[_i];
|
|
34874
|
+
}
|
|
34875
|
+
return __awaiter(_this, __spreadArray([supplierProductDTO_1], args_1, true), void 0, function (supplierProductDTO, options) {
|
|
34876
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
34877
|
+
if (options === void 0) { options = {}; }
|
|
34878
|
+
return __generator(this, function (_a) {
|
|
34879
|
+
localVarPath = "/suppliers/items";
|
|
34880
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
34881
|
+
if (configuration) {
|
|
34882
|
+
baseOptions = configuration.baseOptions;
|
|
34883
|
+
}
|
|
34884
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
34885
|
+
localVarHeaderParameter = {};
|
|
34886
|
+
localVarQueryParameter = {};
|
|
34887
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34888
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
34889
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
34890
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34891
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34892
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(supplierProductDTO, localVarRequestOptions, configuration);
|
|
34893
|
+
return [2 /*return*/, {
|
|
34894
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
34895
|
+
options: localVarRequestOptions,
|
|
34896
|
+
}];
|
|
34897
|
+
});
|
|
34898
|
+
});
|
|
34899
|
+
},
|
|
34820
34900
|
/**
|
|
34821
34901
|
* Update Supplier Product
|
|
34822
34902
|
* @summary Update Supplier Product
|
|
@@ -34937,6 +35017,28 @@ var SuppliersApiFp = function (configuration) {
|
|
|
34937
35017
|
});
|
|
34938
35018
|
});
|
|
34939
35019
|
},
|
|
35020
|
+
/**
|
|
35021
|
+
* Create Supplier Product
|
|
35022
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
35023
|
+
* @param {*} [options] Override http request option.
|
|
35024
|
+
* @throws {RequiredError}
|
|
35025
|
+
*/
|
|
35026
|
+
postGetSupplierItems: function (supplierProductDTO, options) {
|
|
35027
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
35028
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
35029
|
+
var _a, _b, _c;
|
|
35030
|
+
return __generator(this, function (_d) {
|
|
35031
|
+
switch (_d.label) {
|
|
35032
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetSupplierItems(supplierProductDTO, options)];
|
|
35033
|
+
case 1:
|
|
35034
|
+
localVarAxiosArgs = _d.sent();
|
|
35035
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
35036
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SuppliersApi.postGetSupplierItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
35037
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
35038
|
+
}
|
|
35039
|
+
});
|
|
35040
|
+
});
|
|
35041
|
+
},
|
|
34940
35042
|
/**
|
|
34941
35043
|
* Update Supplier Product
|
|
34942
35044
|
* @summary Update Supplier Product
|
|
@@ -35001,6 +35103,15 @@ var SuppliersApiFactory = function (configuration, basePath, axios) {
|
|
|
35001
35103
|
getGetSuppliers: function (options) {
|
|
35002
35104
|
return localVarFp.getGetSuppliers(options).then(function (request) { return request(axios, basePath); });
|
|
35003
35105
|
},
|
|
35106
|
+
/**
|
|
35107
|
+
* Create Supplier Product
|
|
35108
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
35109
|
+
* @param {*} [options] Override http request option.
|
|
35110
|
+
* @throws {RequiredError}
|
|
35111
|
+
*/
|
|
35112
|
+
postGetSupplierItems: function (supplierProductDTO, options) {
|
|
35113
|
+
return localVarFp.postGetSupplierItems(supplierProductDTO, options).then(function (request) { return request(axios, basePath); });
|
|
35114
|
+
},
|
|
35004
35115
|
/**
|
|
35005
35116
|
* Update Supplier Product
|
|
35006
35117
|
* @summary Update Supplier Product
|
|
@@ -35057,6 +35168,16 @@ var SuppliersApi = /** @class */ (function (_super) {
|
|
|
35057
35168
|
var _this = this;
|
|
35058
35169
|
return (0, exports.SuppliersApiFp)(this.configuration).getGetSuppliers(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
35059
35170
|
};
|
|
35171
|
+
/**
|
|
35172
|
+
* Create Supplier Product
|
|
35173
|
+
* @param {SupplierProductDTO} [supplierProductDTO] Supplier Product
|
|
35174
|
+
* @param {*} [options] Override http request option.
|
|
35175
|
+
* @throws {RequiredError}
|
|
35176
|
+
*/
|
|
35177
|
+
SuppliersApi.prototype.postGetSupplierItems = function (supplierProductDTO, options) {
|
|
35178
|
+
var _this = this;
|
|
35179
|
+
return (0, exports.SuppliersApiFp)(this.configuration).postGetSupplierItems(supplierProductDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
35180
|
+
};
|
|
35060
35181
|
/**
|
|
35061
35182
|
* Update Supplier Product
|
|
35062
35183
|
* @summary Update Supplier Product
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export declare const CategoryEnum: {
|
|
2
|
+
readonly YEALINK: {
|
|
3
|
+
readonly name: "YEALINK";
|
|
4
|
+
readonly value: "Yealink";
|
|
5
|
+
readonly publicValue: "Yealink";
|
|
6
|
+
};
|
|
7
|
+
readonly MAIRDI: {
|
|
8
|
+
readonly name: "MAIRDI";
|
|
9
|
+
readonly value: "Mairdi";
|
|
10
|
+
readonly publicValue: "Mairdi";
|
|
11
|
+
};
|
|
12
|
+
readonly JABRA: {
|
|
13
|
+
readonly name: "JABRA";
|
|
14
|
+
readonly value: "Jabra";
|
|
15
|
+
readonly publicValue: "Jabra";
|
|
16
|
+
};
|
|
17
|
+
readonly TCX: {
|
|
18
|
+
readonly name: "TCX";
|
|
19
|
+
readonly value: "3CX";
|
|
20
|
+
readonly publicValue: "3CX";
|
|
21
|
+
};
|
|
22
|
+
readonly FANVIL: {
|
|
23
|
+
readonly name: "FANVIL";
|
|
24
|
+
readonly value: "Fanvil";
|
|
25
|
+
readonly publicValue: "Fanvil";
|
|
26
|
+
};
|
|
27
|
+
readonly VT: {
|
|
28
|
+
readonly name: "VT";
|
|
29
|
+
readonly value: "VT";
|
|
30
|
+
readonly publicValue: "VT";
|
|
31
|
+
};
|
|
32
|
+
readonly NETGEAR: {
|
|
33
|
+
readonly name: "NETGEAR";
|
|
34
|
+
readonly value: "Netgear";
|
|
35
|
+
readonly publicValue: "Netgear";
|
|
36
|
+
};
|
|
37
|
+
readonly ALGO: {
|
|
38
|
+
readonly name: "ALGO";
|
|
39
|
+
readonly value: "Algo";
|
|
40
|
+
readonly publicValue: "Algo";
|
|
41
|
+
};
|
|
42
|
+
readonly YEALINK_HEADSETS: {
|
|
43
|
+
readonly name: "YEALINK_HEADSETS";
|
|
44
|
+
readonly value: "Yealink Headsets";
|
|
45
|
+
readonly publicValue: "Yealink Headsets";
|
|
46
|
+
};
|
|
47
|
+
readonly YEALINK_DECT_HANDSETS: {
|
|
48
|
+
readonly name: "YEALINK_DECT_HANDSETS";
|
|
49
|
+
readonly value: "Yealink DECT Handsets";
|
|
50
|
+
readonly publicValue: "Yealink DECT Handsets";
|
|
51
|
+
};
|
|
52
|
+
readonly YEALINK_DECT_HEADSETS: {
|
|
53
|
+
readonly name: "YEALINK_DECT_HEADSETS";
|
|
54
|
+
readonly value: "Yealink DECT Headsets";
|
|
55
|
+
readonly publicValue: "Yealink DECT Headsets";
|
|
56
|
+
};
|
|
57
|
+
readonly YEALINK_BT_HEADSETS: {
|
|
58
|
+
readonly name: "YEALINK_BT_HEADSETS";
|
|
59
|
+
readonly value: "Yealink BT Headsets";
|
|
60
|
+
readonly publicValue: "Yealink BT Headsets";
|
|
61
|
+
};
|
|
62
|
+
readonly YEALINK_USB_WIRED_HEADSETS: {
|
|
63
|
+
readonly name: "YEALINK_USB_WIRED_HEADSETS";
|
|
64
|
+
readonly value: "Yealink USB Wired Headsets";
|
|
65
|
+
readonly publicValue: "Yealink USB Wired Headsets";
|
|
66
|
+
};
|
|
67
|
+
readonly YEALINK_MEETING_ROOMS: {
|
|
68
|
+
readonly name: "YEALINK_MEETING_ROOMS";
|
|
69
|
+
readonly value: "Yealink Meeting Rooms";
|
|
70
|
+
readonly publicValue: "Yealink Meeting Rooms";
|
|
71
|
+
};
|
|
72
|
+
readonly FANVIL_VOIP_PHONES: {
|
|
73
|
+
readonly name: "FANVIL_VOIP_PHONES";
|
|
74
|
+
readonly value: "Fanvil Phones";
|
|
75
|
+
readonly publicValue: "Fanvil Phones";
|
|
76
|
+
};
|
|
77
|
+
readonly FANVIL_HEADSETS: {
|
|
78
|
+
readonly name: "FANVIL_HEADSETS";
|
|
79
|
+
readonly value: "Fanvil Headsets";
|
|
80
|
+
readonly publicValue: "Fanvil Headsets";
|
|
81
|
+
};
|
|
82
|
+
readonly FANVIL_WIRELESS: {
|
|
83
|
+
readonly name: "FANVIL_WIRELESS";
|
|
84
|
+
readonly value: "Fanvil Wireless Phones";
|
|
85
|
+
readonly publicValue: "Fanvil Wireless Phones";
|
|
86
|
+
};
|
|
87
|
+
readonly FANVIL_SECURITY_PRODUCTS: {
|
|
88
|
+
readonly name: "FANVIL_SECURITY_PRODUCTS";
|
|
89
|
+
readonly value: "Fanvil Security Products";
|
|
90
|
+
readonly publicValue: "Fanvil Security Products";
|
|
91
|
+
};
|
|
92
|
+
readonly FANVIL_ACCESSORIES: {
|
|
93
|
+
readonly name: "FANVIL_ACCESSORIES";
|
|
94
|
+
readonly value: "Fanvil Accessories";
|
|
95
|
+
readonly publicValue: "Fanvil Accessories";
|
|
96
|
+
};
|
|
97
|
+
readonly FANVIL_HOTEL_PHONES: {
|
|
98
|
+
readonly name: "FANVIL_HOTEL_PHONES";
|
|
99
|
+
readonly value: "Fanvil Hotel Phones";
|
|
100
|
+
readonly publicValue: "Fanvil Hotel Phones";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export type CategoryEnum = typeof CategoryEnum;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CategoryEnum = void 0;
|
|
4
|
+
exports.CategoryEnum = {
|
|
5
|
+
"YEALINK": {
|
|
6
|
+
"name": "YEALINK",
|
|
7
|
+
"value": "Yealink",
|
|
8
|
+
"publicValue": "Yealink"
|
|
9
|
+
},
|
|
10
|
+
"MAIRDI": {
|
|
11
|
+
"name": "MAIRDI",
|
|
12
|
+
"value": "Mairdi",
|
|
13
|
+
"publicValue": "Mairdi"
|
|
14
|
+
},
|
|
15
|
+
"JABRA": {
|
|
16
|
+
"name": "JABRA",
|
|
17
|
+
"value": "Jabra",
|
|
18
|
+
"publicValue": "Jabra"
|
|
19
|
+
},
|
|
20
|
+
"TCX": {
|
|
21
|
+
"name": "TCX",
|
|
22
|
+
"value": "3CX",
|
|
23
|
+
"publicValue": "3CX"
|
|
24
|
+
},
|
|
25
|
+
"FANVIL": {
|
|
26
|
+
"name": "FANVIL",
|
|
27
|
+
"value": "Fanvil",
|
|
28
|
+
"publicValue": "Fanvil"
|
|
29
|
+
},
|
|
30
|
+
"VT": {
|
|
31
|
+
"name": "VT",
|
|
32
|
+
"value": "VT",
|
|
33
|
+
"publicValue": "VT"
|
|
34
|
+
},
|
|
35
|
+
"NETGEAR": {
|
|
36
|
+
"name": "NETGEAR",
|
|
37
|
+
"value": "Netgear",
|
|
38
|
+
"publicValue": "Netgear"
|
|
39
|
+
},
|
|
40
|
+
"ALGO": {
|
|
41
|
+
"name": "ALGO",
|
|
42
|
+
"value": "Algo",
|
|
43
|
+
"publicValue": "Algo"
|
|
44
|
+
},
|
|
45
|
+
"YEALINK_HEADSETS": {
|
|
46
|
+
"name": "YEALINK_HEADSETS",
|
|
47
|
+
"value": "Yealink Headsets",
|
|
48
|
+
"publicValue": "Yealink Headsets"
|
|
49
|
+
},
|
|
50
|
+
"YEALINK_DECT_HANDSETS": {
|
|
51
|
+
"name": "YEALINK_DECT_HANDSETS",
|
|
52
|
+
"value": "Yealink DECT Handsets",
|
|
53
|
+
"publicValue": "Yealink DECT Handsets"
|
|
54
|
+
},
|
|
55
|
+
"YEALINK_DECT_HEADSETS": {
|
|
56
|
+
"name": "YEALINK_DECT_HEADSETS",
|
|
57
|
+
"value": "Yealink DECT Headsets",
|
|
58
|
+
"publicValue": "Yealink DECT Headsets"
|
|
59
|
+
},
|
|
60
|
+
"YEALINK_BT_HEADSETS": {
|
|
61
|
+
"name": "YEALINK_BT_HEADSETS",
|
|
62
|
+
"value": "Yealink BT Headsets",
|
|
63
|
+
"publicValue": "Yealink BT Headsets"
|
|
64
|
+
},
|
|
65
|
+
"YEALINK_USB_WIRED_HEADSETS": {
|
|
66
|
+
"name": "YEALINK_USB_WIRED_HEADSETS",
|
|
67
|
+
"value": "Yealink USB Wired Headsets",
|
|
68
|
+
"publicValue": "Yealink USB Wired Headsets"
|
|
69
|
+
},
|
|
70
|
+
"YEALINK_MEETING_ROOMS": {
|
|
71
|
+
"name": "YEALINK_MEETING_ROOMS",
|
|
72
|
+
"value": "Yealink Meeting Rooms",
|
|
73
|
+
"publicValue": "Yealink Meeting Rooms"
|
|
74
|
+
},
|
|
75
|
+
"FANVIL_VOIP_PHONES": {
|
|
76
|
+
"name": "FANVIL_VOIP_PHONES",
|
|
77
|
+
"value": "Fanvil Phones",
|
|
78
|
+
"publicValue": "Fanvil Phones"
|
|
79
|
+
},
|
|
80
|
+
"FANVIL_HEADSETS": {
|
|
81
|
+
"name": "FANVIL_HEADSETS",
|
|
82
|
+
"value": "Fanvil Headsets",
|
|
83
|
+
"publicValue": "Fanvil Headsets"
|
|
84
|
+
},
|
|
85
|
+
"FANVIL_WIRELESS": {
|
|
86
|
+
"name": "FANVIL_WIRELESS",
|
|
87
|
+
"value": "Fanvil Wireless Phones",
|
|
88
|
+
"publicValue": "Fanvil Wireless Phones"
|
|
89
|
+
},
|
|
90
|
+
"FANVIL_SECURITY_PRODUCTS": {
|
|
91
|
+
"name": "FANVIL_SECURITY_PRODUCTS",
|
|
92
|
+
"value": "Fanvil Security Products",
|
|
93
|
+
"publicValue": "Fanvil Security Products"
|
|
94
|
+
},
|
|
95
|
+
"FANVIL_ACCESSORIES": {
|
|
96
|
+
"name": "FANVIL_ACCESSORIES",
|
|
97
|
+
"value": "Fanvil Accessories",
|
|
98
|
+
"publicValue": "Fanvil Accessories"
|
|
99
|
+
},
|
|
100
|
+
"FANVIL_HOTEL_PHONES": {
|
|
101
|
+
"name": "FANVIL_HOTEL_PHONES",
|
|
102
|
+
"value": "Fanvil Hotel Phones",
|
|
103
|
+
"publicValue": "Fanvil Hotel Phones"
|
|
104
|
+
}
|
|
105
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ProductPriceModel
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Product Price
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import {
|
|
15
|
+
import { ProductPriceModel } from 'yellowgrid-api-ts';
|
|
16
16
|
|
|
17
|
-
const instance:
|
|
17
|
+
const instance: ProductPriceModel = {
|
|
18
18
|
priceList,
|
|
19
19
|
price,
|
|
20
20
|
};
|
|
@@ -8,19 +8,20 @@ Name | Type | Description | Notes
|
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**id** | **number** | id | [default to undefined]
|
|
10
10
|
**manufacturerId** | **number** | manId | [default to undefined]
|
|
11
|
-
**sku** | **string** |
|
|
12
|
-
**title** | **string** |
|
|
11
|
+
**sku** | **string** | SKU | [default to undefined]
|
|
12
|
+
**title** | **string** | Title | [default to undefined]
|
|
13
13
|
**price** | **number** | price | [default to undefined]
|
|
14
14
|
**carton** | **number** | carton | [default to undefined]
|
|
15
15
|
**manufacturer** | [**StockOrderSupplierModel**](StockOrderSupplierModel.md) | | [optional] [default to undefined]
|
|
16
16
|
**attributeSet** | [**AttributeSetEnum**](AttributeSetEnum.md) | | [optional] [default to undefined]
|
|
17
|
-
**stock** | **number** | Current Quantity | [optional] [default to undefined]
|
|
18
17
|
**weight** | **number** | Weight (KG) | [optional] [default to undefined]
|
|
19
18
|
**ean** | **string** | EAN | [optional] [default to undefined]
|
|
20
19
|
**serialPrefix** | **string** | Serial Prefix | [optional] [default to undefined]
|
|
21
20
|
**tcxLabel** | **string** | 3CX Phone Label | [optional] [default to undefined]
|
|
22
21
|
**tcxTemplate** | [**TcxTemplateXmlEnum**](TcxTemplateXmlEnum.md) | | [optional] [default to undefined]
|
|
23
|
-
**salesPrices** | [**Array<
|
|
22
|
+
**salesPrices** | [**Array<ProductPriceModel>**](ProductPriceModel.md) | Prices | [optional] [default to undefined]
|
|
23
|
+
**category** | **string** | Category | [optional] [default to undefined]
|
|
24
|
+
**stock** | **number** | Current Quantity | [optional] [default to undefined]
|
|
24
25
|
|
|
25
26
|
## Example
|
|
26
27
|
|
|
@@ -36,13 +37,14 @@ const instance: StockProductModel = {
|
|
|
36
37
|
carton,
|
|
37
38
|
manufacturer,
|
|
38
39
|
attributeSet,
|
|
39
|
-
stock,
|
|
40
40
|
weight,
|
|
41
41
|
ean,
|
|
42
42
|
serialPrefix,
|
|
43
43
|
tcxLabel,
|
|
44
44
|
tcxTemplate,
|
|
45
45
|
salesPrices,
|
|
46
|
+
category,
|
|
47
|
+
stock,
|
|
46
48
|
};
|
|
47
49
|
```
|
|
48
50
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# SupplierProductDTO
|
|
2
|
+
|
|
3
|
+
Supplier Product
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**title** | **string** | Title | [default to undefined]
|
|
10
|
+
**sku** | **string** | SKU | [default to undefined]
|
|
11
|
+
**attributeSet** | [**AttributeSetEnum**](AttributeSetEnum.md) | | [optional] [default to undefined]
|
|
12
|
+
**weight** | **number** | Weight (KG) | [optional] [default to undefined]
|
|
13
|
+
**ean** | **string** | EAN | [optional] [default to undefined]
|
|
14
|
+
**serialPrefix** | **string** | Serial Prefix | [optional] [default to undefined]
|
|
15
|
+
**tcxLabel** | **string** | 3CX Phone Label | [optional] [default to undefined]
|
|
16
|
+
**tcxTemplate** | [**TcxTemplateXmlEnum**](TcxTemplateXmlEnum.md) | | [optional] [default to undefined]
|
|
17
|
+
**salesPrices** | [**Array<ProductPriceModel>**](ProductPriceModel.md) | Prices | [default to undefined]
|
|
18
|
+
**category** | **string** | Category | [default to undefined]
|
|
19
|
+
**supplierId** | **number** | Supplier ID | [default to undefined]
|
|
20
|
+
**price** | **number** | Supplier Price | [default to undefined]
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { SupplierProductDTO } from 'yellowgrid-api-ts';
|
|
26
|
+
|
|
27
|
+
const instance: SupplierProductDTO = {
|
|
28
|
+
title,
|
|
29
|
+
sku,
|
|
30
|
+
attributeSet,
|
|
31
|
+
weight,
|
|
32
|
+
ean,
|
|
33
|
+
serialPrefix,
|
|
34
|
+
tcxLabel,
|
|
35
|
+
tcxTemplate,
|
|
36
|
+
salesPrices,
|
|
37
|
+
category,
|
|
38
|
+
supplierId,
|
|
39
|
+
price,
|
|
40
|
+
};
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/SuppliersApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *https://bitbucket.org*
|
|
|
7
7
|
|[**getGetSupplierItem**](#getgetsupplieritem) | **GET** /suppliers/items/{id} | Get Supplier Item|
|
|
8
8
|
|[**getGetSupplierItems**](#getgetsupplieritems) | **GET** /suppliers/items | Get Supplier Items|
|
|
9
9
|
|[**getGetSuppliers**](#getgetsuppliers) | **GET** /suppliers | Get Suppliers|
|
|
10
|
+
|[**postGetSupplierItems**](#postgetsupplieritems) | **POST** /suppliers/items | |
|
|
10
11
|
|[**putGetSupplierItem**](#putgetsupplieritem) | **PUT** /suppliers/items/{id} | Update Supplier Product|
|
|
11
12
|
|
|
12
13
|
# **getGetSupplierItem**
|
|
@@ -170,6 +171,61 @@ No authorization required
|
|
|
170
171
|
|
|
171
172
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
172
173
|
|
|
174
|
+
# **postGetSupplierItems**
|
|
175
|
+
> SupplierProductDTO postGetSupplierItems()
|
|
176
|
+
|
|
177
|
+
Create Supplier Product
|
|
178
|
+
|
|
179
|
+
### Example
|
|
180
|
+
|
|
181
|
+
```typescript
|
|
182
|
+
import {
|
|
183
|
+
SuppliersApi,
|
|
184
|
+
Configuration,
|
|
185
|
+
SupplierProductDTO
|
|
186
|
+
} from 'yellowgrid-api-ts';
|
|
187
|
+
|
|
188
|
+
const configuration = new Configuration();
|
|
189
|
+
const apiInstance = new SuppliersApi(configuration);
|
|
190
|
+
|
|
191
|
+
let supplierProductDTO: SupplierProductDTO; //Supplier Product (optional)
|
|
192
|
+
|
|
193
|
+
const { status, data } = await apiInstance.postGetSupplierItems(
|
|
194
|
+
supplierProductDTO
|
|
195
|
+
);
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Parameters
|
|
199
|
+
|
|
200
|
+
|Name | Type | Description | Notes|
|
|
201
|
+
|------------- | ------------- | ------------- | -------------|
|
|
202
|
+
| **supplierProductDTO** | **SupplierProductDTO**| Supplier Product | |
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Return type
|
|
206
|
+
|
|
207
|
+
**SupplierProductDTO**
|
|
208
|
+
|
|
209
|
+
### Authorization
|
|
210
|
+
|
|
211
|
+
No authorization required
|
|
212
|
+
|
|
213
|
+
### HTTP request headers
|
|
214
|
+
|
|
215
|
+
- **Content-Type**: application/json
|
|
216
|
+
- **Accept**: application/json
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### HTTP response details
|
|
220
|
+
| Status code | Description | Response headers |
|
|
221
|
+
|-------------|-------------|------------------|
|
|
222
|
+
|**200** | Supplier Product | - |
|
|
223
|
+
|**400** | Bad Request | - |
|
|
224
|
+
|**401** | Unauthorised | - |
|
|
225
|
+
|**403** | Access Denied | - |
|
|
226
|
+
|
|
227
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
228
|
+
|
|
173
229
|
# **putGetSupplierItem**
|
|
174
230
|
> SupplierProductModel putGetSupplierItem()
|
|
175
231
|
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export const CategoryEnum = {
|
|
2
|
+
"YEALINK": {
|
|
3
|
+
"name": "YEALINK",
|
|
4
|
+
"value": "Yealink",
|
|
5
|
+
"publicValue": "Yealink"
|
|
6
|
+
},
|
|
7
|
+
"MAIRDI": {
|
|
8
|
+
"name": "MAIRDI",
|
|
9
|
+
"value": "Mairdi",
|
|
10
|
+
"publicValue": "Mairdi"
|
|
11
|
+
},
|
|
12
|
+
"JABRA": {
|
|
13
|
+
"name": "JABRA",
|
|
14
|
+
"value": "Jabra",
|
|
15
|
+
"publicValue": "Jabra"
|
|
16
|
+
},
|
|
17
|
+
"TCX": {
|
|
18
|
+
"name": "TCX",
|
|
19
|
+
"value": "3CX",
|
|
20
|
+
"publicValue": "3CX"
|
|
21
|
+
},
|
|
22
|
+
"FANVIL": {
|
|
23
|
+
"name": "FANVIL",
|
|
24
|
+
"value": "Fanvil",
|
|
25
|
+
"publicValue": "Fanvil"
|
|
26
|
+
},
|
|
27
|
+
"VT": {
|
|
28
|
+
"name": "VT",
|
|
29
|
+
"value": "VT",
|
|
30
|
+
"publicValue": "VT"
|
|
31
|
+
},
|
|
32
|
+
"NETGEAR": {
|
|
33
|
+
"name": "NETGEAR",
|
|
34
|
+
"value": "Netgear",
|
|
35
|
+
"publicValue": "Netgear"
|
|
36
|
+
},
|
|
37
|
+
"ALGO": {
|
|
38
|
+
"name": "ALGO",
|
|
39
|
+
"value": "Algo",
|
|
40
|
+
"publicValue": "Algo"
|
|
41
|
+
},
|
|
42
|
+
"YEALINK_HEADSETS": {
|
|
43
|
+
"name": "YEALINK_HEADSETS",
|
|
44
|
+
"value": "Yealink Headsets",
|
|
45
|
+
"publicValue": "Yealink Headsets"
|
|
46
|
+
},
|
|
47
|
+
"YEALINK_DECT_HANDSETS": {
|
|
48
|
+
"name": "YEALINK_DECT_HANDSETS",
|
|
49
|
+
"value": "Yealink DECT Handsets",
|
|
50
|
+
"publicValue": "Yealink DECT Handsets"
|
|
51
|
+
},
|
|
52
|
+
"YEALINK_DECT_HEADSETS": {
|
|
53
|
+
"name": "YEALINK_DECT_HEADSETS",
|
|
54
|
+
"value": "Yealink DECT Headsets",
|
|
55
|
+
"publicValue": "Yealink DECT Headsets"
|
|
56
|
+
},
|
|
57
|
+
"YEALINK_BT_HEADSETS": {
|
|
58
|
+
"name": "YEALINK_BT_HEADSETS",
|
|
59
|
+
"value": "Yealink BT Headsets",
|
|
60
|
+
"publicValue": "Yealink BT Headsets"
|
|
61
|
+
},
|
|
62
|
+
"YEALINK_USB_WIRED_HEADSETS": {
|
|
63
|
+
"name": "YEALINK_USB_WIRED_HEADSETS",
|
|
64
|
+
"value": "Yealink USB Wired Headsets",
|
|
65
|
+
"publicValue": "Yealink USB Wired Headsets"
|
|
66
|
+
},
|
|
67
|
+
"YEALINK_MEETING_ROOMS": {
|
|
68
|
+
"name": "YEALINK_MEETING_ROOMS",
|
|
69
|
+
"value": "Yealink Meeting Rooms",
|
|
70
|
+
"publicValue": "Yealink Meeting Rooms"
|
|
71
|
+
},
|
|
72
|
+
"FANVIL_VOIP_PHONES": {
|
|
73
|
+
"name": "FANVIL_VOIP_PHONES",
|
|
74
|
+
"value": "Fanvil Phones",
|
|
75
|
+
"publicValue": "Fanvil Phones"
|
|
76
|
+
},
|
|
77
|
+
"FANVIL_HEADSETS": {
|
|
78
|
+
"name": "FANVIL_HEADSETS",
|
|
79
|
+
"value": "Fanvil Headsets",
|
|
80
|
+
"publicValue": "Fanvil Headsets"
|
|
81
|
+
},
|
|
82
|
+
"FANVIL_WIRELESS": {
|
|
83
|
+
"name": "FANVIL_WIRELESS",
|
|
84
|
+
"value": "Fanvil Wireless Phones",
|
|
85
|
+
"publicValue": "Fanvil Wireless Phones"
|
|
86
|
+
},
|
|
87
|
+
"FANVIL_SECURITY_PRODUCTS": {
|
|
88
|
+
"name": "FANVIL_SECURITY_PRODUCTS",
|
|
89
|
+
"value": "Fanvil Security Products",
|
|
90
|
+
"publicValue": "Fanvil Security Products"
|
|
91
|
+
},
|
|
92
|
+
"FANVIL_ACCESSORIES": {
|
|
93
|
+
"name": "FANVIL_ACCESSORIES",
|
|
94
|
+
"value": "Fanvil Accessories",
|
|
95
|
+
"publicValue": "Fanvil Accessories"
|
|
96
|
+
},
|
|
97
|
+
"FANVIL_HOTEL_PHONES": {
|
|
98
|
+
"name": "FANVIL_HOTEL_PHONES",
|
|
99
|
+
"value": "Fanvil Hotel Phones",
|
|
100
|
+
"publicValue": "Fanvil Hotel Phones"
|
|
101
|
+
}
|
|
102
|
+
} as const;
|
|
103
|
+
|
|
104
|
+
export type CategoryEnum = typeof CategoryEnum;
|