yellowgrid-api-ts 3.2.192-dev.0 → 3.2.193-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/README.md CHANGED
@@ -313,6 +313,8 @@ Class | Method | HTTP request | Description
313
313
  *StockManagementApi* | [**putReceiveStockOrderItem**](docs/StockManagementApi.md#putreceivestockorderitem) | **PUT** /stock/orders/{order_id}/items/{item_id}/receive | Receive Stock Order Item
314
314
  *SuppliersApi* | [**getGetSupplierItem**](docs/SuppliersApi.md#getgetsupplieritem) | **GET** /suppliers/items/{id} | Get Supplier Item
315
315
  *SuppliersApi* | [**getGetSupplierItems**](docs/SuppliersApi.md#getgetsupplieritems) | **GET** /suppliers/items | Get Supplier Items
316
+ *SuppliersApi* | [**getGetSuppliers**](docs/SuppliersApi.md#getgetsuppliers) | **GET** /suppliers | Get Suppliers
317
+ *SuppliersApi* | [**putGetSupplierItem**](docs/SuppliersApi.md#putgetsupplieritem) | **PUT** /suppliers/items/{id} | Update Supplier Product
316
318
  *SystemApi* | [**getLogSearch**](docs/SystemApi.md#getlogsearch) | **GET** /system/logs/api/search | Search for logs
317
319
  *TicketsApi* | [**getCreateTicket**](docs/TicketsApi.md#getcreateticket) | **GET** /tickets/support |
318
320
  *TicketsApi* | [**getGetTicket**](docs/TicketsApi.md#getgetticket) | **GET** /tickets/support/{id} |
package/api.ts CHANGED
@@ -33871,6 +33871,74 @@ export const SuppliersApiAxiosParamCreator = function (configuration?: Configura
33871
33871
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33872
33872
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33873
33873
 
33874
+ return {
33875
+ url: toPathString(localVarUrlObj),
33876
+ options: localVarRequestOptions,
33877
+ };
33878
+ },
33879
+ /**
33880
+ * Get Suppliers
33881
+ * @summary Get Suppliers
33882
+ * @param {*} [options] Override http request option.
33883
+ * @throws {RequiredError}
33884
+ */
33885
+ getGetSuppliers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33886
+ const localVarPath = `/suppliers`;
33887
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33888
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33889
+ let baseOptions;
33890
+ if (configuration) {
33891
+ baseOptions = configuration.baseOptions;
33892
+ }
33893
+
33894
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33895
+ const localVarHeaderParameter = {} as any;
33896
+ const localVarQueryParameter = {} as any;
33897
+
33898
+
33899
+
33900
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33901
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33902
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33903
+
33904
+ return {
33905
+ url: toPathString(localVarUrlObj),
33906
+ options: localVarRequestOptions,
33907
+ };
33908
+ },
33909
+ /**
33910
+ * Update Supplier Product
33911
+ * @summary Update Supplier Product
33912
+ * @param {string} id ID (SKU)
33913
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
33914
+ * @param {*} [options] Override http request option.
33915
+ * @throws {RequiredError}
33916
+ */
33917
+ putGetSupplierItem: async (id: string, supplierProductModel?: SupplierProductModel, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33918
+ // verify required parameter 'id' is not null or undefined
33919
+ assertParamExists('putGetSupplierItem', 'id', id)
33920
+ const localVarPath = `/suppliers/items/{id}`
33921
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
33922
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33923
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33924
+ let baseOptions;
33925
+ if (configuration) {
33926
+ baseOptions = configuration.baseOptions;
33927
+ }
33928
+
33929
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
33930
+ const localVarHeaderParameter = {} as any;
33931
+ const localVarQueryParameter = {} as any;
33932
+
33933
+
33934
+
33935
+ localVarHeaderParameter['Content-Type'] = 'application/json';
33936
+
33937
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33938
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33939
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33940
+ localVarRequestOptions.data = serializeDataIfNeeded(supplierProductModel, localVarRequestOptions, configuration)
33941
+
33874
33942
  return {
33875
33943
  url: toPathString(localVarUrlObj),
33876
33944
  options: localVarRequestOptions,
@@ -33914,6 +33982,32 @@ export const SuppliersApiFp = function(configuration?: Configuration) {
33914
33982
  const localVarOperationServerBasePath = operationServerMap['SuppliersApi.getGetSupplierItems']?.[localVarOperationServerIndex]?.url;
33915
33983
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33916
33984
  },
33985
+ /**
33986
+ * Get Suppliers
33987
+ * @summary Get Suppliers
33988
+ * @param {*} [options] Override http request option.
33989
+ * @throws {RequiredError}
33990
+ */
33991
+ async getGetSuppliers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SupplierModel>>> {
33992
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetSuppliers(options);
33993
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
33994
+ const localVarOperationServerBasePath = operationServerMap['SuppliersApi.getGetSuppliers']?.[localVarOperationServerIndex]?.url;
33995
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33996
+ },
33997
+ /**
33998
+ * Update Supplier Product
33999
+ * @summary Update Supplier Product
34000
+ * @param {string} id ID (SKU)
34001
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
34002
+ * @param {*} [options] Override http request option.
34003
+ * @throws {RequiredError}
34004
+ */
34005
+ async putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductModel>> {
34006
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putGetSupplierItem(id, supplierProductModel, options);
34007
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34008
+ const localVarOperationServerBasePath = operationServerMap['SuppliersApi.putGetSupplierItem']?.[localVarOperationServerIndex]?.url;
34009
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34010
+ },
33917
34011
  }
33918
34012
  };
33919
34013
 
@@ -33946,6 +34040,26 @@ export const SuppliersApiFactory = function (configuration?: Configuration, base
33946
34040
  getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductResultsModel> {
33947
34041
  return localVarFp.getGetSupplierItems(pageSize, page, search, options).then((request) => request(axios, basePath));
33948
34042
  },
34043
+ /**
34044
+ * Get Suppliers
34045
+ * @summary Get Suppliers
34046
+ * @param {*} [options] Override http request option.
34047
+ * @throws {RequiredError}
34048
+ */
34049
+ getGetSuppliers(options?: RawAxiosRequestConfig): AxiosPromise<Array<SupplierModel>> {
34050
+ return localVarFp.getGetSuppliers(options).then((request) => request(axios, basePath));
34051
+ },
34052
+ /**
34053
+ * Update Supplier Product
34054
+ * @summary Update Supplier Product
34055
+ * @param {string} id ID (SKU)
34056
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
34057
+ * @param {*} [options] Override http request option.
34058
+ * @throws {RequiredError}
34059
+ */
34060
+ putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductModel> {
34061
+ return localVarFp.putGetSupplierItem(id, supplierProductModel, options).then((request) => request(axios, basePath));
34062
+ },
33949
34063
  };
33950
34064
  };
33951
34065
 
@@ -33981,6 +34095,30 @@ export class SuppliersApi extends BaseAPI {
33981
34095
  public getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
33982
34096
  return SuppliersApiFp(this.configuration).getGetSupplierItems(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
33983
34097
  }
34098
+
34099
+ /**
34100
+ * Get Suppliers
34101
+ * @summary Get Suppliers
34102
+ * @param {*} [options] Override http request option.
34103
+ * @throws {RequiredError}
34104
+ * @memberof SuppliersApi
34105
+ */
34106
+ public getGetSuppliers(options?: RawAxiosRequestConfig) {
34107
+ return SuppliersApiFp(this.configuration).getGetSuppliers(options).then((request) => request(this.axios, this.basePath));
34108
+ }
34109
+
34110
+ /**
34111
+ * Update Supplier Product
34112
+ * @summary Update Supplier Product
34113
+ * @param {string} id ID (SKU)
34114
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
34115
+ * @param {*} [options] Override http request option.
34116
+ * @throws {RequiredError}
34117
+ * @memberof SuppliersApi
34118
+ */
34119
+ public putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig) {
34120
+ return SuppliersApiFp(this.configuration).putGetSupplierItem(id, supplierProductModel, options).then((request) => request(this.axios, this.basePath));
34121
+ }
33984
34122
  }
33985
34123
 
33986
34124
 
package/dist/api.d.ts CHANGED
@@ -23133,6 +23133,22 @@ export declare const SuppliersApiAxiosParamCreator: (configuration?: Configurati
23133
23133
  * @throws {RequiredError}
23134
23134
  */
23135
23135
  getGetSupplierItems: (pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23136
+ /**
23137
+ * Get Suppliers
23138
+ * @summary Get Suppliers
23139
+ * @param {*} [options] Override http request option.
23140
+ * @throws {RequiredError}
23141
+ */
23142
+ getGetSuppliers: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23143
+ /**
23144
+ * Update Supplier Product
23145
+ * @summary Update Supplier Product
23146
+ * @param {string} id ID (SKU)
23147
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
23148
+ * @param {*} [options] Override http request option.
23149
+ * @throws {RequiredError}
23150
+ */
23151
+ putGetSupplierItem: (id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23136
23152
  };
23137
23153
  /**
23138
23154
  * SuppliersApi - functional programming interface
@@ -23157,6 +23173,22 @@ export declare const SuppliersApiFp: (configuration?: Configuration) => {
23157
23173
  * @throws {RequiredError}
23158
23174
  */
23159
23175
  getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductResultsModel>>;
23176
+ /**
23177
+ * Get Suppliers
23178
+ * @summary Get Suppliers
23179
+ * @param {*} [options] Override http request option.
23180
+ * @throws {RequiredError}
23181
+ */
23182
+ getGetSuppliers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SupplierModel>>>;
23183
+ /**
23184
+ * Update Supplier Product
23185
+ * @summary Update Supplier Product
23186
+ * @param {string} id ID (SKU)
23187
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
23188
+ * @param {*} [options] Override http request option.
23189
+ * @throws {RequiredError}
23190
+ */
23191
+ putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupplierProductModel>>;
23160
23192
  };
23161
23193
  /**
23162
23194
  * SuppliersApi - factory interface
@@ -23181,6 +23213,22 @@ export declare const SuppliersApiFactory: (configuration?: Configuration, basePa
23181
23213
  * @throws {RequiredError}
23182
23214
  */
23183
23215
  getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductResultsModel>;
23216
+ /**
23217
+ * Get Suppliers
23218
+ * @summary Get Suppliers
23219
+ * @param {*} [options] Override http request option.
23220
+ * @throws {RequiredError}
23221
+ */
23222
+ getGetSuppliers(options?: RawAxiosRequestConfig): AxiosPromise<Array<SupplierModel>>;
23223
+ /**
23224
+ * Update Supplier Product
23225
+ * @summary Update Supplier Product
23226
+ * @param {string} id ID (SKU)
23227
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
23228
+ * @param {*} [options] Override http request option.
23229
+ * @throws {RequiredError}
23230
+ */
23231
+ putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig): AxiosPromise<SupplierProductModel>;
23184
23232
  };
23185
23233
  /**
23186
23234
  * SuppliersApi - object-oriented interface
@@ -23209,6 +23257,24 @@ export declare class SuppliersApi extends BaseAPI {
23209
23257
  * @memberof SuppliersApi
23210
23258
  */
23211
23259
  getGetSupplierItems(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SupplierProductResultsModel, any, {}>>;
23260
+ /**
23261
+ * Get Suppliers
23262
+ * @summary Get Suppliers
23263
+ * @param {*} [options] Override http request option.
23264
+ * @throws {RequiredError}
23265
+ * @memberof SuppliersApi
23266
+ */
23267
+ getGetSuppliers(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SupplierModel[], any, {}>>;
23268
+ /**
23269
+ * Update Supplier Product
23270
+ * @summary Update Supplier Product
23271
+ * @param {string} id ID (SKU)
23272
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
23273
+ * @param {*} [options] Override http request option.
23274
+ * @throws {RequiredError}
23275
+ * @memberof SuppliersApi
23276
+ */
23277
+ putGetSupplierItem(id: string, supplierProductModel?: SupplierProductModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SupplierProductModel, any, {}>>;
23212
23278
  }
23213
23279
  /**
23214
23280
  * SystemApi - axios parameter creator
package/dist/api.js CHANGED
@@ -24328,6 +24328,79 @@ var SuppliersApiAxiosParamCreator = function (configuration) {
24328
24328
  });
24329
24329
  });
24330
24330
  },
24331
+ /**
24332
+ * Get Suppliers
24333
+ * @summary Get Suppliers
24334
+ * @param {*} [options] Override http request option.
24335
+ * @throws {RequiredError}
24336
+ */
24337
+ getGetSuppliers: function () {
24338
+ var args_1 = [];
24339
+ for (var _i = 0; _i < arguments.length; _i++) {
24340
+ args_1[_i] = arguments[_i];
24341
+ }
24342
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
24343
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
24344
+ if (options === void 0) { options = {}; }
24345
+ return __generator(this, function (_a) {
24346
+ localVarPath = "/suppliers";
24347
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
24348
+ if (configuration) {
24349
+ baseOptions = configuration.baseOptions;
24350
+ }
24351
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
24352
+ localVarHeaderParameter = {};
24353
+ localVarQueryParameter = {};
24354
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
24355
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24356
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
24357
+ return [2 /*return*/, {
24358
+ url: (0, common_1.toPathString)(localVarUrlObj),
24359
+ options: localVarRequestOptions,
24360
+ }];
24361
+ });
24362
+ });
24363
+ },
24364
+ /**
24365
+ * Update Supplier Product
24366
+ * @summary Update Supplier Product
24367
+ * @param {string} id ID (SKU)
24368
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
24369
+ * @param {*} [options] Override http request option.
24370
+ * @throws {RequiredError}
24371
+ */
24372
+ putGetSupplierItem: function (id_1, supplierProductModel_1) {
24373
+ var args_1 = [];
24374
+ for (var _i = 2; _i < arguments.length; _i++) {
24375
+ args_1[_i - 2] = arguments[_i];
24376
+ }
24377
+ return __awaiter(_this, __spreadArray([id_1, supplierProductModel_1], args_1, true), void 0, function (id, supplierProductModel, options) {
24378
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
24379
+ if (options === void 0) { options = {}; }
24380
+ return __generator(this, function (_a) {
24381
+ // verify required parameter 'id' is not null or undefined
24382
+ (0, common_1.assertParamExists)('putGetSupplierItem', 'id', id);
24383
+ localVarPath = "/suppliers/items/{id}"
24384
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
24385
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
24386
+ if (configuration) {
24387
+ baseOptions = configuration.baseOptions;
24388
+ }
24389
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
24390
+ localVarHeaderParameter = {};
24391
+ localVarQueryParameter = {};
24392
+ localVarHeaderParameter['Content-Type'] = 'application/json';
24393
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
24394
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24395
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
24396
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(supplierProductModel, localVarRequestOptions, configuration);
24397
+ return [2 /*return*/, {
24398
+ url: (0, common_1.toPathString)(localVarUrlObj),
24399
+ options: localVarRequestOptions,
24400
+ }];
24401
+ });
24402
+ });
24403
+ },
24331
24404
  };
24332
24405
  };
24333
24406
  exports.SuppliersApiAxiosParamCreator = SuppliersApiAxiosParamCreator;
@@ -24386,6 +24459,52 @@ var SuppliersApiFp = function (configuration) {
24386
24459
  });
24387
24460
  });
24388
24461
  },
24462
+ /**
24463
+ * Get Suppliers
24464
+ * @summary Get Suppliers
24465
+ * @param {*} [options] Override http request option.
24466
+ * @throws {RequiredError}
24467
+ */
24468
+ getGetSuppliers: function (options) {
24469
+ return __awaiter(this, void 0, void 0, function () {
24470
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
24471
+ var _a, _b, _c;
24472
+ return __generator(this, function (_d) {
24473
+ switch (_d.label) {
24474
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetSuppliers(options)];
24475
+ case 1:
24476
+ localVarAxiosArgs = _d.sent();
24477
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
24478
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SuppliersApi.getGetSuppliers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
24479
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
24480
+ }
24481
+ });
24482
+ });
24483
+ },
24484
+ /**
24485
+ * Update Supplier Product
24486
+ * @summary Update Supplier Product
24487
+ * @param {string} id ID (SKU)
24488
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
24489
+ * @param {*} [options] Override http request option.
24490
+ * @throws {RequiredError}
24491
+ */
24492
+ putGetSupplierItem: function (id, supplierProductModel, options) {
24493
+ return __awaiter(this, void 0, void 0, function () {
24494
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
24495
+ var _a, _b, _c;
24496
+ return __generator(this, function (_d) {
24497
+ switch (_d.label) {
24498
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putGetSupplierItem(id, supplierProductModel, options)];
24499
+ case 1:
24500
+ localVarAxiosArgs = _d.sent();
24501
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
24502
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SuppliersApi.putGetSupplierItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
24503
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
24504
+ }
24505
+ });
24506
+ });
24507
+ },
24389
24508
  };
24390
24509
  };
24391
24510
  exports.SuppliersApiFp = SuppliersApiFp;
@@ -24418,6 +24537,26 @@ var SuppliersApiFactory = function (configuration, basePath, axios) {
24418
24537
  getGetSupplierItems: function (pageSize, page, search, options) {
24419
24538
  return localVarFp.getGetSupplierItems(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
24420
24539
  },
24540
+ /**
24541
+ * Get Suppliers
24542
+ * @summary Get Suppliers
24543
+ * @param {*} [options] Override http request option.
24544
+ * @throws {RequiredError}
24545
+ */
24546
+ getGetSuppliers: function (options) {
24547
+ return localVarFp.getGetSuppliers(options).then(function (request) { return request(axios, basePath); });
24548
+ },
24549
+ /**
24550
+ * Update Supplier Product
24551
+ * @summary Update Supplier Product
24552
+ * @param {string} id ID (SKU)
24553
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
24554
+ * @param {*} [options] Override http request option.
24555
+ * @throws {RequiredError}
24556
+ */
24557
+ putGetSupplierItem: function (id, supplierProductModel, options) {
24558
+ return localVarFp.putGetSupplierItem(id, supplierProductModel, options).then(function (request) { return request(axios, basePath); });
24559
+ },
24421
24560
  };
24422
24561
  };
24423
24562
  exports.SuppliersApiFactory = SuppliersApiFactory;
@@ -24458,6 +24597,30 @@ var SuppliersApi = /** @class */ (function (_super) {
24458
24597
  var _this = this;
24459
24598
  return (0, exports.SuppliersApiFp)(this.configuration).getGetSupplierItems(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
24460
24599
  };
24600
+ /**
24601
+ * Get Suppliers
24602
+ * @summary Get Suppliers
24603
+ * @param {*} [options] Override http request option.
24604
+ * @throws {RequiredError}
24605
+ * @memberof SuppliersApi
24606
+ */
24607
+ SuppliersApi.prototype.getGetSuppliers = function (options) {
24608
+ var _this = this;
24609
+ return (0, exports.SuppliersApiFp)(this.configuration).getGetSuppliers(options).then(function (request) { return request(_this.axios, _this.basePath); });
24610
+ };
24611
+ /**
24612
+ * Update Supplier Product
24613
+ * @summary Update Supplier Product
24614
+ * @param {string} id ID (SKU)
24615
+ * @param {SupplierProductModel} [supplierProductModel] Supplier Product
24616
+ * @param {*} [options] Override http request option.
24617
+ * @throws {RequiredError}
24618
+ * @memberof SuppliersApi
24619
+ */
24620
+ SuppliersApi.prototype.putGetSupplierItem = function (id, supplierProductModel, options) {
24621
+ var _this = this;
24622
+ return (0, exports.SuppliersApiFp)(this.configuration).putGetSupplierItem(id, supplierProductModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
24623
+ };
24461
24624
  return SuppliersApi;
24462
24625
  }(base_1.BaseAPI));
24463
24626
  exports.SuppliersApi = SuppliersApi;
@@ -6,6 +6,8 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getGetSupplierItem**](#getgetsupplieritem) | **GET** /suppliers/items/{id} | Get Supplier Item|
8
8
  |[**getGetSupplierItems**](#getgetsupplieritems) | **GET** /suppliers/items | Get Supplier Items|
9
+ |[**getGetSuppliers**](#getgetsuppliers) | **GET** /suppliers | Get Suppliers|
10
+ |[**putGetSupplierItem**](#putgetsupplieritem) | **PUT** /suppliers/items/{id} | Update Supplier Product|
9
11
 
10
12
  # **getGetSupplierItem**
11
13
  > SupplierProductModel getGetSupplierItem()
@@ -121,3 +123,108 @@ No authorization required
121
123
 
122
124
  [[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)
123
125
 
126
+ # **getGetSuppliers**
127
+ > Array<SupplierModel> getGetSuppliers()
128
+
129
+ Get Suppliers
130
+
131
+ ### Example
132
+
133
+ ```typescript
134
+ import {
135
+ SuppliersApi,
136
+ Configuration
137
+ } from 'yellowgrid-api-ts';
138
+
139
+ const configuration = new Configuration();
140
+ const apiInstance = new SuppliersApi(configuration);
141
+
142
+ const { status, data } = await apiInstance.getGetSuppliers();
143
+ ```
144
+
145
+ ### Parameters
146
+ This endpoint does not have any parameters.
147
+
148
+
149
+ ### Return type
150
+
151
+ **Array<SupplierModel>**
152
+
153
+ ### Authorization
154
+
155
+ No authorization required
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: Not defined
160
+ - **Accept**: application/json
161
+
162
+
163
+ ### HTTP response details
164
+ | Status code | Description | Response headers |
165
+ |-------------|-------------|------------------|
166
+ |**200** | Suppliers | - |
167
+ |**400** | Bad Request | - |
168
+ |**401** | Unauthorised | - |
169
+ |**403** | Access Denied | - |
170
+
171
+ [[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
+ # **putGetSupplierItem**
174
+ > SupplierProductModel putGetSupplierItem()
175
+
176
+ Update Supplier Product
177
+
178
+ ### Example
179
+
180
+ ```typescript
181
+ import {
182
+ SuppliersApi,
183
+ Configuration,
184
+ SupplierProductModel
185
+ } from 'yellowgrid-api-ts';
186
+
187
+ const configuration = new Configuration();
188
+ const apiInstance = new SuppliersApi(configuration);
189
+
190
+ let id: string; //ID (SKU) (default to undefined)
191
+ let supplierProductModel: SupplierProductModel; //Supplier Product (optional)
192
+
193
+ const { status, data } = await apiInstance.putGetSupplierItem(
194
+ id,
195
+ supplierProductModel
196
+ );
197
+ ```
198
+
199
+ ### Parameters
200
+
201
+ |Name | Type | Description | Notes|
202
+ |------------- | ------------- | ------------- | -------------|
203
+ | **supplierProductModel** | **SupplierProductModel**| Supplier Product | |
204
+ | **id** | [**string**] | ID (SKU) | defaults to undefined|
205
+
206
+
207
+ ### Return type
208
+
209
+ **SupplierProductModel**
210
+
211
+ ### Authorization
212
+
213
+ No authorization required
214
+
215
+ ### HTTP request headers
216
+
217
+ - **Content-Type**: application/json
218
+ - **Accept**: application/json
219
+
220
+
221
+ ### HTTP response details
222
+ | Status code | Description | Response headers |
223
+ |-------------|-------------|------------------|
224
+ |**200** | Supplier Product Model | - |
225
+ |**400** | Bad Request | - |
226
+ |**401** | Unauthorised | - |
227
+ |**403** | Access Denied | - |
228
+
229
+ [[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)
230
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.192-dev.0",
3
+ "version": "3.2.193-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {