yellowgrid-api-ts 3.2.236 → 3.2.237
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 +4 -0
- package/README.md +7 -0
- package/api.ts +369 -0
- package/dist/api.d.ts +204 -0
- package/dist/api.js +380 -1
- package/docs/SupplierItemModel.md +2 -0
- package/docs/SupplierItemsResultsDTO.md +21 -0
- package/docs/SupplierProductModel.md +25 -0
- package/docs/SupplierProductResultsModel.md +27 -0
- package/docs/SuppliersApi.md +230 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -87,7 +87,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
87
87
|
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.StockReportItemModelCurrencyEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.ProspectDTOStatusEnum = exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
|
|
88
88
|
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.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.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = void 0;
|
|
89
89
|
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.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = 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 = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = void 0;
|
|
90
|
-
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.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = void 0;
|
|
90
|
+
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;
|
|
91
91
|
var axios_1 = require("axios");
|
|
92
92
|
// Some imports not used depending on template conditions
|
|
93
93
|
// @ts-ignore
|
|
@@ -24187,6 +24187,385 @@ var StockManagementApi = /** @class */ (function (_super) {
|
|
|
24187
24187
|
return StockManagementApi;
|
|
24188
24188
|
}(base_1.BaseAPI));
|
|
24189
24189
|
exports.StockManagementApi = StockManagementApi;
|
|
24190
|
+
/**
|
|
24191
|
+
* SuppliersApi - axios parameter creator
|
|
24192
|
+
*/
|
|
24193
|
+
var SuppliersApiAxiosParamCreator = function (configuration) {
|
|
24194
|
+
var _this = this;
|
|
24195
|
+
return {
|
|
24196
|
+
/**
|
|
24197
|
+
* Get Supplier Item
|
|
24198
|
+
* @summary Get Supplier Item
|
|
24199
|
+
* @param {string} id ID (SKU)
|
|
24200
|
+
* @param {*} [options] Override http request option.
|
|
24201
|
+
* @throws {RequiredError}
|
|
24202
|
+
*/
|
|
24203
|
+
getGetSupplierItem: function (id_1) {
|
|
24204
|
+
var args_1 = [];
|
|
24205
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
24206
|
+
args_1[_i - 1] = arguments[_i];
|
|
24207
|
+
}
|
|
24208
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
24209
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
24210
|
+
if (options === void 0) { options = {}; }
|
|
24211
|
+
return __generator(this, function (_a) {
|
|
24212
|
+
// verify required parameter 'id' is not null or undefined
|
|
24213
|
+
(0, common_1.assertParamExists)('getGetSupplierItem', 'id', id);
|
|
24214
|
+
localVarPath = "/suppliers/items/{id}"
|
|
24215
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
24216
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
24217
|
+
if (configuration) {
|
|
24218
|
+
baseOptions = configuration.baseOptions;
|
|
24219
|
+
}
|
|
24220
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
24221
|
+
localVarHeaderParameter = {};
|
|
24222
|
+
localVarQueryParameter = {};
|
|
24223
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
24224
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
24225
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24226
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
24227
|
+
return [2 /*return*/, {
|
|
24228
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
24229
|
+
options: localVarRequestOptions,
|
|
24230
|
+
}];
|
|
24231
|
+
});
|
|
24232
|
+
});
|
|
24233
|
+
},
|
|
24234
|
+
/**
|
|
24235
|
+
* Get Supplier Items
|
|
24236
|
+
* @summary Get Supplier Items
|
|
24237
|
+
* @param {number} [pageSize] Number Of Results
|
|
24238
|
+
* @param {number} [page] Page Number
|
|
24239
|
+
* @param {string} [search] Search
|
|
24240
|
+
* @param {*} [options] Override http request option.
|
|
24241
|
+
* @throws {RequiredError}
|
|
24242
|
+
*/
|
|
24243
|
+
getGetSupplierItems: function (pageSize_1, page_1, search_1) {
|
|
24244
|
+
var args_1 = [];
|
|
24245
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
24246
|
+
args_1[_i - 3] = arguments[_i];
|
|
24247
|
+
}
|
|
24248
|
+
return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1], args_1, true), void 0, function (pageSize, page, search, options) {
|
|
24249
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
24250
|
+
if (options === void 0) { options = {}; }
|
|
24251
|
+
return __generator(this, function (_a) {
|
|
24252
|
+
localVarPath = "/suppliers/items";
|
|
24253
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
24254
|
+
if (configuration) {
|
|
24255
|
+
baseOptions = configuration.baseOptions;
|
|
24256
|
+
}
|
|
24257
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
24258
|
+
localVarHeaderParameter = {};
|
|
24259
|
+
localVarQueryParameter = {};
|
|
24260
|
+
if (pageSize !== undefined) {
|
|
24261
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
24262
|
+
}
|
|
24263
|
+
if (page !== undefined) {
|
|
24264
|
+
localVarQueryParameter['page'] = page;
|
|
24265
|
+
}
|
|
24266
|
+
if (search !== undefined) {
|
|
24267
|
+
localVarQueryParameter['search'] = search;
|
|
24268
|
+
}
|
|
24269
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
24270
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
24271
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24272
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
24273
|
+
return [2 /*return*/, {
|
|
24274
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
24275
|
+
options: localVarRequestOptions,
|
|
24276
|
+
}];
|
|
24277
|
+
});
|
|
24278
|
+
});
|
|
24279
|
+
},
|
|
24280
|
+
/**
|
|
24281
|
+
* Get Suppliers
|
|
24282
|
+
* @summary Get Suppliers
|
|
24283
|
+
* @param {*} [options] Override http request option.
|
|
24284
|
+
* @throws {RequiredError}
|
|
24285
|
+
*/
|
|
24286
|
+
getGetSuppliers: function () {
|
|
24287
|
+
var args_1 = [];
|
|
24288
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
24289
|
+
args_1[_i] = arguments[_i];
|
|
24290
|
+
}
|
|
24291
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
24292
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
24293
|
+
if (options === void 0) { options = {}; }
|
|
24294
|
+
return __generator(this, function (_a) {
|
|
24295
|
+
localVarPath = "/suppliers";
|
|
24296
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
24297
|
+
if (configuration) {
|
|
24298
|
+
baseOptions = configuration.baseOptions;
|
|
24299
|
+
}
|
|
24300
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
24301
|
+
localVarHeaderParameter = {};
|
|
24302
|
+
localVarQueryParameter = {};
|
|
24303
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
24304
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
24305
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24306
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
24307
|
+
return [2 /*return*/, {
|
|
24308
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
24309
|
+
options: localVarRequestOptions,
|
|
24310
|
+
}];
|
|
24311
|
+
});
|
|
24312
|
+
});
|
|
24313
|
+
},
|
|
24314
|
+
/**
|
|
24315
|
+
* Update Supplier Product
|
|
24316
|
+
* @summary Update Supplier Product
|
|
24317
|
+
* @param {string} id ID (SKU)
|
|
24318
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
24319
|
+
* @param {*} [options] Override http request option.
|
|
24320
|
+
* @throws {RequiredError}
|
|
24321
|
+
*/
|
|
24322
|
+
putGetSupplierItem: function (id_1, supplierProductModel_1) {
|
|
24323
|
+
var args_1 = [];
|
|
24324
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
24325
|
+
args_1[_i - 2] = arguments[_i];
|
|
24326
|
+
}
|
|
24327
|
+
return __awaiter(_this, __spreadArray([id_1, supplierProductModel_1], args_1, true), void 0, function (id, supplierProductModel, options) {
|
|
24328
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
24329
|
+
if (options === void 0) { options = {}; }
|
|
24330
|
+
return __generator(this, function (_a) {
|
|
24331
|
+
// verify required parameter 'id' is not null or undefined
|
|
24332
|
+
(0, common_1.assertParamExists)('putGetSupplierItem', 'id', id);
|
|
24333
|
+
localVarPath = "/suppliers/items/{id}"
|
|
24334
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
24335
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
24336
|
+
if (configuration) {
|
|
24337
|
+
baseOptions = configuration.baseOptions;
|
|
24338
|
+
}
|
|
24339
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
24340
|
+
localVarHeaderParameter = {};
|
|
24341
|
+
localVarQueryParameter = {};
|
|
24342
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24343
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
24344
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
24345
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24346
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
24347
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(supplierProductModel, localVarRequestOptions, configuration);
|
|
24348
|
+
return [2 /*return*/, {
|
|
24349
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
24350
|
+
options: localVarRequestOptions,
|
|
24351
|
+
}];
|
|
24352
|
+
});
|
|
24353
|
+
});
|
|
24354
|
+
},
|
|
24355
|
+
};
|
|
24356
|
+
};
|
|
24357
|
+
exports.SuppliersApiAxiosParamCreator = SuppliersApiAxiosParamCreator;
|
|
24358
|
+
/**
|
|
24359
|
+
* SuppliersApi - functional programming interface
|
|
24360
|
+
*/
|
|
24361
|
+
var SuppliersApiFp = function (configuration) {
|
|
24362
|
+
var localVarAxiosParamCreator = (0, exports.SuppliersApiAxiosParamCreator)(configuration);
|
|
24363
|
+
return {
|
|
24364
|
+
/**
|
|
24365
|
+
* Get Supplier Item
|
|
24366
|
+
* @summary Get Supplier Item
|
|
24367
|
+
* @param {string} id ID (SKU)
|
|
24368
|
+
* @param {*} [options] Override http request option.
|
|
24369
|
+
* @throws {RequiredError}
|
|
24370
|
+
*/
|
|
24371
|
+
getGetSupplierItem: function (id, options) {
|
|
24372
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
24373
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
24374
|
+
var _a, _b, _c;
|
|
24375
|
+
return __generator(this, function (_d) {
|
|
24376
|
+
switch (_d.label) {
|
|
24377
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetSupplierItem(id, options)];
|
|
24378
|
+
case 1:
|
|
24379
|
+
localVarAxiosArgs = _d.sent();
|
|
24380
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
24381
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SuppliersApi.getGetSupplierItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
24382
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
24383
|
+
}
|
|
24384
|
+
});
|
|
24385
|
+
});
|
|
24386
|
+
},
|
|
24387
|
+
/**
|
|
24388
|
+
* Get Supplier Items
|
|
24389
|
+
* @summary Get Supplier Items
|
|
24390
|
+
* @param {number} [pageSize] Number Of Results
|
|
24391
|
+
* @param {number} [page] Page Number
|
|
24392
|
+
* @param {string} [search] Search
|
|
24393
|
+
* @param {*} [options] Override http request option.
|
|
24394
|
+
* @throws {RequiredError}
|
|
24395
|
+
*/
|
|
24396
|
+
getGetSupplierItems: function (pageSize, page, search, options) {
|
|
24397
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
24398
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
24399
|
+
var _a, _b, _c;
|
|
24400
|
+
return __generator(this, function (_d) {
|
|
24401
|
+
switch (_d.label) {
|
|
24402
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetSupplierItems(pageSize, page, search, options)];
|
|
24403
|
+
case 1:
|
|
24404
|
+
localVarAxiosArgs = _d.sent();
|
|
24405
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
24406
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SuppliersApi.getGetSupplierItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
24407
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
24408
|
+
}
|
|
24409
|
+
});
|
|
24410
|
+
});
|
|
24411
|
+
},
|
|
24412
|
+
/**
|
|
24413
|
+
* Get Suppliers
|
|
24414
|
+
* @summary Get Suppliers
|
|
24415
|
+
* @param {*} [options] Override http request option.
|
|
24416
|
+
* @throws {RequiredError}
|
|
24417
|
+
*/
|
|
24418
|
+
getGetSuppliers: function (options) {
|
|
24419
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
24420
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
24421
|
+
var _a, _b, _c;
|
|
24422
|
+
return __generator(this, function (_d) {
|
|
24423
|
+
switch (_d.label) {
|
|
24424
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetSuppliers(options)];
|
|
24425
|
+
case 1:
|
|
24426
|
+
localVarAxiosArgs = _d.sent();
|
|
24427
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
24428
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SuppliersApi.getGetSuppliers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
24429
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
24430
|
+
}
|
|
24431
|
+
});
|
|
24432
|
+
});
|
|
24433
|
+
},
|
|
24434
|
+
/**
|
|
24435
|
+
* Update Supplier Product
|
|
24436
|
+
* @summary Update Supplier Product
|
|
24437
|
+
* @param {string} id ID (SKU)
|
|
24438
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
24439
|
+
* @param {*} [options] Override http request option.
|
|
24440
|
+
* @throws {RequiredError}
|
|
24441
|
+
*/
|
|
24442
|
+
putGetSupplierItem: function (id, supplierProductModel, options) {
|
|
24443
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
24444
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
24445
|
+
var _a, _b, _c;
|
|
24446
|
+
return __generator(this, function (_d) {
|
|
24447
|
+
switch (_d.label) {
|
|
24448
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.putGetSupplierItem(id, supplierProductModel, options)];
|
|
24449
|
+
case 1:
|
|
24450
|
+
localVarAxiosArgs = _d.sent();
|
|
24451
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
24452
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SuppliersApi.putGetSupplierItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
24453
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
24454
|
+
}
|
|
24455
|
+
});
|
|
24456
|
+
});
|
|
24457
|
+
},
|
|
24458
|
+
};
|
|
24459
|
+
};
|
|
24460
|
+
exports.SuppliersApiFp = SuppliersApiFp;
|
|
24461
|
+
/**
|
|
24462
|
+
* SuppliersApi - factory interface
|
|
24463
|
+
*/
|
|
24464
|
+
var SuppliersApiFactory = function (configuration, basePath, axios) {
|
|
24465
|
+
var localVarFp = (0, exports.SuppliersApiFp)(configuration);
|
|
24466
|
+
return {
|
|
24467
|
+
/**
|
|
24468
|
+
* Get Supplier Item
|
|
24469
|
+
* @summary Get Supplier Item
|
|
24470
|
+
* @param {string} id ID (SKU)
|
|
24471
|
+
* @param {*} [options] Override http request option.
|
|
24472
|
+
* @throws {RequiredError}
|
|
24473
|
+
*/
|
|
24474
|
+
getGetSupplierItem: function (id, options) {
|
|
24475
|
+
return localVarFp.getGetSupplierItem(id, options).then(function (request) { return request(axios, basePath); });
|
|
24476
|
+
},
|
|
24477
|
+
/**
|
|
24478
|
+
* Get Supplier Items
|
|
24479
|
+
* @summary Get Supplier Items
|
|
24480
|
+
* @param {number} [pageSize] Number Of Results
|
|
24481
|
+
* @param {number} [page] Page Number
|
|
24482
|
+
* @param {string} [search] Search
|
|
24483
|
+
* @param {*} [options] Override http request option.
|
|
24484
|
+
* @throws {RequiredError}
|
|
24485
|
+
*/
|
|
24486
|
+
getGetSupplierItems: function (pageSize, page, search, options) {
|
|
24487
|
+
return localVarFp.getGetSupplierItems(pageSize, page, search, options).then(function (request) { return request(axios, basePath); });
|
|
24488
|
+
},
|
|
24489
|
+
/**
|
|
24490
|
+
* Get Suppliers
|
|
24491
|
+
* @summary Get Suppliers
|
|
24492
|
+
* @param {*} [options] Override http request option.
|
|
24493
|
+
* @throws {RequiredError}
|
|
24494
|
+
*/
|
|
24495
|
+
getGetSuppliers: function (options) {
|
|
24496
|
+
return localVarFp.getGetSuppliers(options).then(function (request) { return request(axios, basePath); });
|
|
24497
|
+
},
|
|
24498
|
+
/**
|
|
24499
|
+
* Update Supplier Product
|
|
24500
|
+
* @summary Update Supplier Product
|
|
24501
|
+
* @param {string} id ID (SKU)
|
|
24502
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
24503
|
+
* @param {*} [options] Override http request option.
|
|
24504
|
+
* @throws {RequiredError}
|
|
24505
|
+
*/
|
|
24506
|
+
putGetSupplierItem: function (id, supplierProductModel, options) {
|
|
24507
|
+
return localVarFp.putGetSupplierItem(id, supplierProductModel, options).then(function (request) { return request(axios, basePath); });
|
|
24508
|
+
},
|
|
24509
|
+
};
|
|
24510
|
+
};
|
|
24511
|
+
exports.SuppliersApiFactory = SuppliersApiFactory;
|
|
24512
|
+
/**
|
|
24513
|
+
* SuppliersApi - object-oriented interface
|
|
24514
|
+
*/
|
|
24515
|
+
var SuppliersApi = /** @class */ (function (_super) {
|
|
24516
|
+
__extends(SuppliersApi, _super);
|
|
24517
|
+
function SuppliersApi() {
|
|
24518
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
24519
|
+
}
|
|
24520
|
+
/**
|
|
24521
|
+
* Get Supplier Item
|
|
24522
|
+
* @summary Get Supplier Item
|
|
24523
|
+
* @param {string} id ID (SKU)
|
|
24524
|
+
* @param {*} [options] Override http request option.
|
|
24525
|
+
* @throws {RequiredError}
|
|
24526
|
+
*/
|
|
24527
|
+
SuppliersApi.prototype.getGetSupplierItem = function (id, options) {
|
|
24528
|
+
var _this = this;
|
|
24529
|
+
return (0, exports.SuppliersApiFp)(this.configuration).getGetSupplierItem(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
24530
|
+
};
|
|
24531
|
+
/**
|
|
24532
|
+
* Get Supplier Items
|
|
24533
|
+
* @summary Get Supplier Items
|
|
24534
|
+
* @param {number} [pageSize] Number Of Results
|
|
24535
|
+
* @param {number} [page] Page Number
|
|
24536
|
+
* @param {string} [search] Search
|
|
24537
|
+
* @param {*} [options] Override http request option.
|
|
24538
|
+
* @throws {RequiredError}
|
|
24539
|
+
*/
|
|
24540
|
+
SuppliersApi.prototype.getGetSupplierItems = function (pageSize, page, search, options) {
|
|
24541
|
+
var _this = this;
|
|
24542
|
+
return (0, exports.SuppliersApiFp)(this.configuration).getGetSupplierItems(pageSize, page, search, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
24543
|
+
};
|
|
24544
|
+
/**
|
|
24545
|
+
* Get Suppliers
|
|
24546
|
+
* @summary Get Suppliers
|
|
24547
|
+
* @param {*} [options] Override http request option.
|
|
24548
|
+
* @throws {RequiredError}
|
|
24549
|
+
*/
|
|
24550
|
+
SuppliersApi.prototype.getGetSuppliers = function (options) {
|
|
24551
|
+
var _this = this;
|
|
24552
|
+
return (0, exports.SuppliersApiFp)(this.configuration).getGetSuppliers(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
24553
|
+
};
|
|
24554
|
+
/**
|
|
24555
|
+
* Update Supplier Product
|
|
24556
|
+
* @summary Update Supplier Product
|
|
24557
|
+
* @param {string} id ID (SKU)
|
|
24558
|
+
* @param {SupplierProductModel} [supplierProductModel] Supplier Product
|
|
24559
|
+
* @param {*} [options] Override http request option.
|
|
24560
|
+
* @throws {RequiredError}
|
|
24561
|
+
*/
|
|
24562
|
+
SuppliersApi.prototype.putGetSupplierItem = function (id, supplierProductModel, options) {
|
|
24563
|
+
var _this = this;
|
|
24564
|
+
return (0, exports.SuppliersApiFp)(this.configuration).putGetSupplierItem(id, supplierProductModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
24565
|
+
};
|
|
24566
|
+
return SuppliersApi;
|
|
24567
|
+
}(base_1.BaseAPI));
|
|
24568
|
+
exports.SuppliersApi = SuppliersApi;
|
|
24190
24569
|
/**
|
|
24191
24570
|
* SystemApi - axios parameter creator
|
|
24192
24571
|
*/
|
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**itemPrice** | **number** | itemPrice | [optional] [default to undefined]
|
|
15
15
|
**itemType** | **number** | itemType | [optional] [default to undefined]
|
|
16
16
|
**supplierSku** | **string** | supplierSku | [optional] [default to undefined]
|
|
17
|
+
**supplier** | [**SupplierModel**](SupplierModel.md) | | [optional] [default to undefined]
|
|
17
18
|
|
|
18
19
|
## Example
|
|
19
20
|
|
|
@@ -29,6 +30,7 @@ const instance: SupplierItemModel = {
|
|
|
29
30
|
itemPrice,
|
|
30
31
|
itemType,
|
|
31
32
|
supplierSku,
|
|
33
|
+
supplier,
|
|
32
34
|
};
|
|
33
35
|
```
|
|
34
36
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# SupplierItemsResultsDTO
|
|
2
|
+
|
|
3
|
+
Supplier Item Results
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**results** | [**Array<SupplierItemModel>**](SupplierItemModel.md) | Results | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SupplierItemsResultsDTO } from 'yellowgrid-api-ts';
|
|
15
|
+
|
|
16
|
+
const instance: SupplierItemsResultsDTO = {
|
|
17
|
+
results,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# SupplierProductModel
|
|
2
|
+
|
|
3
|
+
Supplier Product
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**sku** | **string** | SKU | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | Description | [optional] [default to undefined]
|
|
11
|
+
**items** | [**Array<SupplierItemModel>**](SupplierItemModel.md) | Items | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { SupplierProductModel } from 'yellowgrid-api-ts';
|
|
17
|
+
|
|
18
|
+
const instance: SupplierProductModel = {
|
|
19
|
+
sku,
|
|
20
|
+
description,
|
|
21
|
+
items,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# SupplierProductResultsModel
|
|
2
|
+
|
|
3
|
+
Supplier Product Results
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**results** | [**Array<SupplierProductModel>**](SupplierProductModel.md) | Results | [optional] [default to undefined]
|
|
10
|
+
**page** | **number** | Page | [optional] [default to undefined]
|
|
11
|
+
**perPage** | **number** | Per Page | [optional] [default to undefined]
|
|
12
|
+
**totalResults** | **number** | Total Results | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { SupplierProductResultsModel } from 'yellowgrid-api-ts';
|
|
18
|
+
|
|
19
|
+
const instance: SupplierProductResultsModel = {
|
|
20
|
+
results,
|
|
21
|
+
page,
|
|
22
|
+
perPage,
|
|
23
|
+
totalResults,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|