@digital8/lighting-illusions-ts-sdk 0.0.1632 → 0.0.1634
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 +40 -24
- package/README.md +26 -16
- package/dist/apis/ProductRegistrationApi.d.ts +95 -0
- package/dist/apis/ProductRegistrationApi.js +377 -0
- package/dist/apis/StoreApi.d.ts +1 -28
- package/dist/apis/StoreApi.js +0 -113
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/DestroyAttributeValueRequest.d.ts +1 -1
- package/dist/models/GetAllAttributeRequest.d.ts +1 -1
- package/dist/models/GetAllAttributeValueRequest.d.ts +1 -1
- package/dist/models/GetAllDefinitionRequest.d.ts +1 -1
- package/dist/models/GetAllDocumentRequest.d.ts +1 -1
- package/dist/models/GetAllGoogleCategoryRequest.d.ts +1 -1
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +1 -1
- package/dist/models/GetAllProductCategoryRequest.d.ts +1 -1
- package/dist/models/GetAllProductChildRequest.d.ts +1 -1
- package/dist/models/GetAllProductRangeRequest.d.ts +1 -1
- package/dist/models/GetAllProductRegistrationRequest.d.ts +88 -0
- package/dist/models/GetAllProductRegistrationRequest.js +80 -0
- package/dist/models/GetAllProductRequest.d.ts +1 -1
- package/dist/models/GetAllProductTypeRequest.d.ts +1 -1
- package/dist/models/GetAllStoreRequest.d.ts +1 -1
- package/dist/models/GetAllSupplierRequest.d.ts +1 -1
- package/dist/models/GlobalSearchProductResource.d.ts +6 -0
- package/dist/models/GlobalSearchProductResource.js +4 -0
- package/dist/models/IndexAttributeRequest.d.ts +1 -1
- package/dist/models/IndexAttributeValueRequest.d.ts +1 -1
- package/dist/models/IndexDefinitionRequest.d.ts +1 -1
- package/dist/models/IndexDocumentRequest.d.ts +1 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +1 -1
- package/dist/models/IndexLabelRequest.d.ts +1 -1
- package/dist/models/IndexModelAttributeRequest.d.ts +1 -1
- package/dist/models/IndexOverlayTemplateRequest.d.ts +1 -1
- package/dist/models/IndexProductCategoryRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.d.ts +2 -1
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRangeRequest.d.ts +1 -1
- package/dist/models/IndexProductRegistrationRequest.d.ts +131 -0
- package/dist/models/IndexProductRegistrationRequest.js +98 -0
- package/dist/models/IndexProductRequest.d.ts +1 -1
- package/dist/models/IndexProductTypeRequest.d.ts +1 -1
- package/dist/models/IndexSiteNotificationRequest.d.ts +1 -1
- package/dist/models/IndexSiteRequest.d.ts +1 -1
- package/dist/models/IndexStoreRequest.d.ts +1 -1
- package/dist/models/IndexSupplierRequest.d.ts +1 -1
- package/dist/models/IndexTagRequest.d.ts +1 -1
- package/dist/models/LabelListResource.d.ts +0 -6
- package/dist/models/LabelListResource.js +0 -4
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/ListAssetsProductRegistrationRequest.js +83 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +6 -0
- package/dist/models/ProductChildListResource.js +2 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +0 -7
- package/dist/models/ProductRangeFrontendResource.js +0 -5
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
- package/dist/models/ProductRegistrationAssetType.js +51 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +62 -0
- package/dist/models/ProductRegistrationCustomerResource.js +65 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +57 -0
- package/dist/models/ProductRegistrationListResource.js +64 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationProductChildResource.d.ts +50 -0
- package/dist/models/ProductRegistrationProductChildResource.js +63 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +90 -0
- package/dist/models/ProductRegistrationResource.js +81 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResultResource.d.ts +6 -0
- package/dist/models/ProductSearchResultResource.js +4 -0
- package/dist/models/ShowAssetsProductChildRequest.d.ts +1 -1
- package/dist/models/ShowAttributesProductChildRequest.d.ts +1 -1
- package/dist/models/StoreAssetForAssetableRequest.d.ts +1 -1
- package/dist/models/StoreFrontendResource.d.ts +1 -7
- package/dist/models/StoreFrontendResource.js +1 -5
- package/dist/models/StoreLabelRequest.d.ts +4 -4
- package/dist/models/StoreListResource.d.ts +0 -6
- package/dist/models/StoreListResource.js +0 -2
- package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequest.d.ts +4 -4
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +2 -2
- package/dist/models/StoreProductCategoryRequestDescriptionsInner.d.ts +2 -2
- package/dist/models/StoreProductCategoryRequestSeoInner.d.ts +2 -2
- package/dist/models/StoreProductChildRequest.d.ts +4 -4
- package/dist/models/StoreProductChildRequestAssetsInner.d.ts +1 -1
- package/dist/models/StoreProductChildRequestAttributeValuesInner.d.ts +1 -1
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +5 -5
- package/dist/models/StoreProductRangeRequest.d.ts +1 -1
- package/dist/models/StoreProductRangeRequestSitesInner.d.ts +5 -5
- package/dist/models/StoreProductRequest.d.ts +1 -1
- package/dist/models/StoreResource.d.ts +0 -18
- package/dist/models/StoreResource.js +0 -6
- package/dist/models/StoreStoreRequest.d.ts +4 -22
- package/dist/models/StoreStoreRequest.js +3 -7
- package/dist/models/StoreStoreRequestAddress.d.ts +1 -1
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +5 -5
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +5 -5
- package/dist/models/StoreSupplierRequest.d.ts +1 -1
- package/dist/models/StoreTagRequest.d.ts +4 -4
- package/dist/models/UpdateAssetForAssetableRequest.d.ts +3 -3
- package/dist/models/UpdateLabelRequest.d.ts +4 -4
- package/dist/models/UpdateModelAttributeRequest.d.ts +3 -3
- package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/UpdateProductCategoryRequest.d.ts +4 -4
- package/dist/models/UpdateProductChildRequest.d.ts +4 -4
- package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +1 -1
- package/dist/models/UpdateProductRangeRequest.d.ts +1 -1
- package/dist/models/UpdateProductRequest.d.ts +1 -1
- package/dist/models/UpdateSiteRequest.d.ts +5 -5
- package/dist/models/UpdateStoreRequest.d.ts +4 -22
- package/dist/models/UpdateStoreRequest.js +3 -7
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +5 -5
- package/dist/models/UpdateSupplierRequest.d.ts +1 -1
- package/dist/models/UpdateTagRequest.d.ts +4 -4
- package/dist/models/index.d.ts +19 -11
- package/dist/models/index.js +19 -11
- package/docs/GetAllProductRegistrationRequest.md +46 -0
- package/docs/GlobalSearchProductResource.md +2 -0
- package/docs/IndexProductRegistrationRequest.md +58 -0
- package/docs/LabelListResource.md +0 -2
- package/docs/{IndexRedirectRequest.md → ListAssetsProductRegistrationRequest.md} +8 -12
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/PaginatedProductRegistrationListResourceResponse.md +36 -0
- package/docs/{PaginatedRedirectListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductChildListResource.md +2 -0
- package/docs/ProductRangeFrontendResource.md +0 -2
- package/docs/ProductRegistrationApi.md +344 -0
- package/docs/{RedirectListResourceArrayResponse.md → ProductRegistrationAssetResource.md} +10 -6
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +34 -0
- package/docs/{ProductChildStoreStockType.md → ProductRegistrationAssetType.md} +4 -4
- package/docs/{RedirectListResource.md → ProductRegistrationCustomerResource.md} +14 -16
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationListResource.md +42 -0
- package/docs/{ModelAttributeFrontendResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{ModelAttributeFrontendResource.md → ProductRegistrationLiteResource.md} +8 -8
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +34 -0
- package/docs/{RedirectFrontendResource.md → ProductRegistrationProductChildResource.md} +10 -14
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationResource.md +52 -0
- package/docs/{RedirectFrontendResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/ProductSearchResultResource.md +2 -0
- package/docs/StoreApi.md +0 -124
- package/docs/StoreFrontendResource.md +0 -2
- package/docs/StoreListResource.md +0 -2
- package/docs/StoreResource.md +0 -6
- package/docs/StoreStoreRequest.md +1 -7
- package/docs/UpdateModelAttributeRequest.md +1 -1
- package/docs/UpdateStoreRequest.md +1 -7
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +297 -0
- package/src/apis/StoreApi.ts +0 -84
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/DestroyAttributeValueRequest.ts +1 -1
- package/src/models/GetAllAttributeRequest.ts +1 -1
- package/src/models/GetAllAttributeValueRequest.ts +1 -1
- package/src/models/GetAllDefinitionRequest.ts +1 -1
- package/src/models/GetAllDocumentRequest.ts +1 -1
- package/src/models/GetAllGoogleCategoryRequest.ts +1 -1
- package/src/models/GetAllOverlayTemplateRequest.ts +1 -1
- package/src/models/GetAllProductCategoryRequest.ts +1 -1
- package/src/models/GetAllProductChildRequest.ts +1 -1
- package/src/models/GetAllProductRangeRequest.ts +1 -1
- package/src/models/GetAllProductRegistrationRequest.ts +137 -0
- package/src/models/GetAllProductRequest.ts +1 -1
- package/src/models/GetAllProductTypeRequest.ts +1 -1
- package/src/models/GetAllStoreRequest.ts +1 -1
- package/src/models/GetAllSupplierRequest.ts +1 -1
- package/src/models/GlobalSearchProductResource.ts +9 -0
- package/src/models/IndexAttributeRequest.ts +1 -1
- package/src/models/IndexAttributeValueRequest.ts +1 -1
- package/src/models/IndexDefinitionRequest.ts +1 -1
- package/src/models/IndexDocumentRequest.ts +1 -1
- package/src/models/IndexExternalApiLogRequest.ts +1 -1
- package/src/models/IndexLabelRequest.ts +1 -1
- package/src/models/IndexModelAttributeRequest.ts +1 -1
- package/src/models/IndexOverlayTemplateRequest.ts +1 -1
- package/src/models/IndexProductCategoryRequest.ts +1 -1
- package/src/models/IndexProductChildRequest.ts +2 -1
- package/src/models/IndexProductRangeRequest.ts +1 -1
- package/src/models/IndexProductRegistrationRequest.ts +193 -0
- package/src/models/IndexProductRequest.ts +1 -1
- package/src/models/IndexProductTypeRequest.ts +1 -1
- package/src/models/IndexSiteNotificationRequest.ts +1 -1
- package/src/models/IndexSiteRequest.ts +1 -1
- package/src/models/IndexStoreRequest.ts +1 -1
- package/src/models/IndexSupplierRequest.ts +1 -1
- package/src/models/IndexTagRequest.ts +1 -1
- package/src/models/LabelListResource.ts +0 -9
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +8 -0
- package/src/models/ProductRangeFrontendResource.ts +0 -16
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerResource.ts +108 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +108 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationProductChildResource.ts +93 -0
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +171 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResultResource.ts +9 -0
- package/src/models/ShowAssetsProductChildRequest.ts +1 -1
- package/src/models/ShowAttributesProductChildRequest.ts +1 -1
- package/src/models/StoreAssetForAssetableRequest.ts +1 -1
- package/src/models/StoreFrontendResource.ts +2 -11
- package/src/models/StoreLabelRequest.ts +4 -4
- package/src/models/StoreListResource.ts +0 -8
- package/src/models/StoreOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/StoreProductCategoryRequest.ts +4 -4
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -2
- package/src/models/StoreProductCategoryRequestDescriptionsInner.ts +2 -2
- package/src/models/StoreProductCategoryRequestSeoInner.ts +2 -2
- package/src/models/StoreProductChildRequest.ts +4 -4
- package/src/models/StoreProductChildRequestAssetsInner.ts +1 -1
- package/src/models/StoreProductChildRequestAttributeValuesInner.ts +1 -1
- package/src/models/StoreProductChildRequestSitesInner.ts +5 -5
- package/src/models/StoreProductRangeRequest.ts +1 -1
- package/src/models/StoreProductRangeRequestSitesInner.ts +5 -5
- package/src/models/StoreProductRequest.ts +1 -1
- package/src/models/StoreResource.ts +0 -24
- package/src/models/StoreStoreRequest.ts +6 -29
- package/src/models/StoreStoreRequestAddress.ts +1 -1
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +5 -5
- package/src/models/StoreStoreSpecialDateRequest.ts +5 -5
- package/src/models/StoreSupplierRequest.ts +1 -1
- package/src/models/StoreTagRequest.ts +4 -4
- package/src/models/UpdateAssetForAssetableRequest.ts +3 -3
- package/src/models/UpdateLabelRequest.ts +4 -4
- package/src/models/UpdateModelAttributeRequest.ts +3 -3
- package/src/models/UpdateOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/UpdateProductCategoryRequest.ts +4 -4
- package/src/models/UpdateProductChildRequest.ts +4 -4
- package/src/models/UpdateProductChildRequestAssetsInner.ts +1 -1
- package/src/models/UpdateProductRangeRequest.ts +1 -1
- package/src/models/UpdateProductRequest.ts +1 -1
- package/src/models/UpdateSiteRequest.ts +5 -5
- package/src/models/UpdateStoreRequest.ts +6 -29
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +5 -5
- package/src/models/UpdateSupplierRequest.ts +1 -1
- package/src/models/UpdateTagRequest.ts +4 -4
- package/src/models/index.ts +19 -11
- package/dist/apis/RedirectApi.d.ts +0 -33
- package/dist/apis/RedirectApi.js +0 -138
- package/dist/models/IndexRedirectRequest.d.ts +0 -124
- package/dist/models/IndexRedirectRequest.js +0 -95
- package/dist/models/ModelAttributeFrontendResource.d.ts +0 -38
- package/dist/models/ModelAttributeFrontendResource.js +0 -55
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedRedirectListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedRedirectListResourceResponse.js +0 -57
- package/dist/models/ProductChildStoreStockType.d.ts +0 -25
- package/dist/models/ProductChildStoreStockType.js +0 -51
- package/dist/models/RedirectFrontendResource.d.ts +0 -62
- package/dist/models/RedirectFrontendResource.js +0 -71
- package/dist/models/RedirectFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/RedirectFrontendResourceArrayResponse.js +0 -50
- package/dist/models/RedirectListResource.d.ts +0 -69
- package/dist/models/RedirectListResource.js +0 -76
- package/dist/models/RedirectListResourceArrayResponse.d.ts +0 -33
- package/dist/models/RedirectListResourceArrayResponse.js +0 -50
- package/dist/models/SaveMapStoreStockMigrationRequest.d.ts +0 -33
- package/dist/models/SaveMapStoreStockMigrationRequest.js +0 -52
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.d.ts +0 -52
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.js +0 -67
- package/docs/RedirectApi.md +0 -74
- package/docs/SaveMapStoreStockMigrationRequest.md +0 -34
- package/docs/SaveMapStoreStockMigrationRequestAssociationsInner.md +0 -38
- package/src/apis/RedirectApi.ts +0 -77
- package/src/models/IndexRedirectRequest.ts +0 -184
- package/src/models/ModelAttributeFrontendResource.ts +0 -75
- package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedRedirectListResourceResponse.ts +0 -90
- package/src/models/ProductChildStoreStockType.ts +0 -53
- package/src/models/RedirectFrontendResource.ts +0 -111
- package/src/models/RedirectFrontendResourceArrayResponse.ts +0 -73
- package/src/models/RedirectListResource.ts +0 -128
- package/src/models/RedirectListResourceArrayResponse.ts +0 -73
- package/src/models/SaveMapStoreStockMigrationRequest.ts +0 -74
- package/src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts +0 -95
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.ProductRegistrationApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var ProductRegistrationApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ProductRegistrationApi, _super);
|
|
75
|
+
function ProductRegistrationApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for getAllProductRegistration without sending the request
|
|
80
|
+
*/
|
|
81
|
+
ProductRegistrationApi.prototype.getAllProductRegistrationRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
queryParameters = {};
|
|
86
|
+
headerParameters = {};
|
|
87
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
+
urlPath = "/admin-api/product-registration/all";
|
|
89
|
+
return [2 /*return*/, {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
body: (0, index_1.GetAllProductRegistrationRequestToJSON)(requestParameters['getAllProductRegistrationRequest']),
|
|
95
|
+
}];
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Auto-generated: getAllProductRegistration
|
|
101
|
+
*/
|
|
102
|
+
ProductRegistrationApi.prototype.getAllProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
104
|
+
var requestOptions, response;
|
|
105
|
+
return __generator(this, function (_a) {
|
|
106
|
+
switch (_a.label) {
|
|
107
|
+
case 0: return [4 /*yield*/, this.getAllProductRegistrationRequestOpts(requestParameters)];
|
|
108
|
+
case 1:
|
|
109
|
+
requestOptions = _a.sent();
|
|
110
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
111
|
+
case 2:
|
|
112
|
+
response = _a.sent();
|
|
113
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductRegistrationLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Auto-generated: getAllProductRegistration
|
|
120
|
+
*/
|
|
121
|
+
ProductRegistrationApi.prototype.getAllProductRegistration = function () {
|
|
122
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
123
|
+
var response;
|
|
124
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
switch (_a.label) {
|
|
127
|
+
case 0: return [4 /*yield*/, this.getAllProductRegistrationRaw(requestParameters, initOverrides)];
|
|
128
|
+
case 1:
|
|
129
|
+
response = _a.sent();
|
|
130
|
+
return [4 /*yield*/, response.value()];
|
|
131
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Creates request options for indexProductRegistration without sending the request
|
|
138
|
+
*/
|
|
139
|
+
ProductRegistrationApi.prototype.indexProductRegistrationRequestOpts = function (requestParameters) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
+
var queryParameters, headerParameters, urlPath;
|
|
142
|
+
return __generator(this, function (_a) {
|
|
143
|
+
queryParameters = {};
|
|
144
|
+
headerParameters = {};
|
|
145
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
146
|
+
urlPath = "/admin-api/product-registration/list";
|
|
147
|
+
return [2 /*return*/, {
|
|
148
|
+
path: urlPath,
|
|
149
|
+
method: 'POST',
|
|
150
|
+
headers: headerParameters,
|
|
151
|
+
query: queryParameters,
|
|
152
|
+
body: (0, index_1.IndexProductRegistrationRequestToJSON)(requestParameters['indexProductRegistrationRequest']),
|
|
153
|
+
}];
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Auto-generated: indexProductRegistration
|
|
159
|
+
*/
|
|
160
|
+
ProductRegistrationApi.prototype.indexProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
162
|
+
var requestOptions, response;
|
|
163
|
+
return __generator(this, function (_a) {
|
|
164
|
+
switch (_a.label) {
|
|
165
|
+
case 0: return [4 /*yield*/, this.indexProductRegistrationRequestOpts(requestParameters)];
|
|
166
|
+
case 1:
|
|
167
|
+
requestOptions = _a.sent();
|
|
168
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
169
|
+
case 2:
|
|
170
|
+
response = _a.sent();
|
|
171
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductRegistrationListResourceResponseFromJSON)(jsonValue); })];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Auto-generated: indexProductRegistration
|
|
178
|
+
*/
|
|
179
|
+
ProductRegistrationApi.prototype.indexProductRegistration = function () {
|
|
180
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
181
|
+
var response;
|
|
182
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
183
|
+
return __generator(this, function (_a) {
|
|
184
|
+
switch (_a.label) {
|
|
185
|
+
case 0: return [4 /*yield*/, this.indexProductRegistrationRaw(requestParameters, initOverrides)];
|
|
186
|
+
case 1:
|
|
187
|
+
response = _a.sent();
|
|
188
|
+
return [4 /*yield*/, response.value()];
|
|
189
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Creates request options for listAssetsProductRegistration without sending the request
|
|
196
|
+
*/
|
|
197
|
+
ProductRegistrationApi.prototype.listAssetsProductRegistrationRequestOpts = function (requestParameters) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
+
var queryParameters, headerParameters, urlPath;
|
|
200
|
+
return __generator(this, function (_a) {
|
|
201
|
+
if (requestParameters['productRegistration'] == null) {
|
|
202
|
+
throw new runtime.RequiredError('productRegistration', 'Required parameter "productRegistration" was null or undefined when calling listAssetsProductRegistration().');
|
|
203
|
+
}
|
|
204
|
+
queryParameters = {};
|
|
205
|
+
headerParameters = {};
|
|
206
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
207
|
+
urlPath = "/admin-api/product-registration/{productRegistration}/assets";
|
|
208
|
+
urlPath = urlPath.replace("{".concat("productRegistration", "}"), encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
209
|
+
return [2 /*return*/, {
|
|
210
|
+
path: urlPath,
|
|
211
|
+
method: 'POST',
|
|
212
|
+
headers: headerParameters,
|
|
213
|
+
query: queryParameters,
|
|
214
|
+
body: (0, index_1.ListAssetsProductRegistrationRequestToJSON)(requestParameters['listAssetsProductRegistrationRequest']),
|
|
215
|
+
}];
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Auto-generated: listAssetsProductRegistration
|
|
221
|
+
*/
|
|
222
|
+
ProductRegistrationApi.prototype.listAssetsProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
223
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
224
|
+
var requestOptions, response;
|
|
225
|
+
return __generator(this, function (_a) {
|
|
226
|
+
switch (_a.label) {
|
|
227
|
+
case 0: return [4 /*yield*/, this.listAssetsProductRegistrationRequestOpts(requestParameters)];
|
|
228
|
+
case 1:
|
|
229
|
+
requestOptions = _a.sent();
|
|
230
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
231
|
+
case 2:
|
|
232
|
+
response = _a.sent();
|
|
233
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductRegistrationAssetResourceResponseFromJSON)(jsonValue); })];
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Auto-generated: listAssetsProductRegistration
|
|
240
|
+
*/
|
|
241
|
+
ProductRegistrationApi.prototype.listAssetsProductRegistration = function (requestParameters, initOverrides) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
243
|
+
var response;
|
|
244
|
+
return __generator(this, function (_a) {
|
|
245
|
+
switch (_a.label) {
|
|
246
|
+
case 0: return [4 /*yield*/, this.listAssetsProductRegistrationRaw(requestParameters, initOverrides)];
|
|
247
|
+
case 1:
|
|
248
|
+
response = _a.sent();
|
|
249
|
+
return [4 /*yield*/, response.value()];
|
|
250
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Creates request options for listProductsProductRegistration without sending the request
|
|
257
|
+
*/
|
|
258
|
+
ProductRegistrationApi.prototype.listProductsProductRegistrationRequestOpts = function (requestParameters) {
|
|
259
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
260
|
+
var queryParameters, headerParameters, urlPath;
|
|
261
|
+
return __generator(this, function (_a) {
|
|
262
|
+
if (requestParameters['productRegistration'] == null) {
|
|
263
|
+
throw new runtime.RequiredError('productRegistration', 'Required parameter "productRegistration" was null or undefined when calling listProductsProductRegistration().');
|
|
264
|
+
}
|
|
265
|
+
queryParameters = {};
|
|
266
|
+
headerParameters = {};
|
|
267
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
268
|
+
urlPath = "/admin-api/product-registration/{productRegistration}/product/list";
|
|
269
|
+
urlPath = urlPath.replace("{".concat("productRegistration", "}"), encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
270
|
+
return [2 /*return*/, {
|
|
271
|
+
path: urlPath,
|
|
272
|
+
method: 'POST',
|
|
273
|
+
headers: headerParameters,
|
|
274
|
+
query: queryParameters,
|
|
275
|
+
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
276
|
+
}];
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Auto-generated: listProductsProductRegistration
|
|
282
|
+
*/
|
|
283
|
+
ProductRegistrationApi.prototype.listProductsProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
284
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
285
|
+
var requestOptions, response;
|
|
286
|
+
return __generator(this, function (_a) {
|
|
287
|
+
switch (_a.label) {
|
|
288
|
+
case 0: return [4 /*yield*/, this.listProductsProductRegistrationRequestOpts(requestParameters)];
|
|
289
|
+
case 1:
|
|
290
|
+
requestOptions = _a.sent();
|
|
291
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
292
|
+
case 2:
|
|
293
|
+
response = _a.sent();
|
|
294
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildListResourceResponseFromJSON)(jsonValue); })];
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Auto-generated: listProductsProductRegistration
|
|
301
|
+
*/
|
|
302
|
+
ProductRegistrationApi.prototype.listProductsProductRegistration = function (requestParameters, initOverrides) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
304
|
+
var response;
|
|
305
|
+
return __generator(this, function (_a) {
|
|
306
|
+
switch (_a.label) {
|
|
307
|
+
case 0: return [4 /*yield*/, this.listProductsProductRegistrationRaw(requestParameters, initOverrides)];
|
|
308
|
+
case 1:
|
|
309
|
+
response = _a.sent();
|
|
310
|
+
return [4 /*yield*/, response.value()];
|
|
311
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* Creates request options for showProductRegistration without sending the request
|
|
318
|
+
*/
|
|
319
|
+
ProductRegistrationApi.prototype.showProductRegistrationRequestOpts = function (requestParameters) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
321
|
+
var queryParameters, headerParameters, urlPath;
|
|
322
|
+
return __generator(this, function (_a) {
|
|
323
|
+
if (requestParameters['productRegistration'] == null) {
|
|
324
|
+
throw new runtime.RequiredError('productRegistration', 'Required parameter "productRegistration" was null or undefined when calling showProductRegistration().');
|
|
325
|
+
}
|
|
326
|
+
queryParameters = {};
|
|
327
|
+
headerParameters = {};
|
|
328
|
+
urlPath = "/admin-api/product-registration/{productRegistration}";
|
|
329
|
+
urlPath = urlPath.replace("{".concat("productRegistration", "}"), encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
330
|
+
return [2 /*return*/, {
|
|
331
|
+
path: urlPath,
|
|
332
|
+
method: 'GET',
|
|
333
|
+
headers: headerParameters,
|
|
334
|
+
query: queryParameters,
|
|
335
|
+
}];
|
|
336
|
+
});
|
|
337
|
+
});
|
|
338
|
+
};
|
|
339
|
+
/**
|
|
340
|
+
* Auto-generated: showProductRegistration
|
|
341
|
+
*/
|
|
342
|
+
ProductRegistrationApi.prototype.showProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
343
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
344
|
+
var requestOptions, response;
|
|
345
|
+
return __generator(this, function (_a) {
|
|
346
|
+
switch (_a.label) {
|
|
347
|
+
case 0: return [4 /*yield*/, this.showProductRegistrationRequestOpts(requestParameters)];
|
|
348
|
+
case 1:
|
|
349
|
+
requestOptions = _a.sent();
|
|
350
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
351
|
+
case 2:
|
|
352
|
+
response = _a.sent();
|
|
353
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductRegistrationResourceFromJSON)(jsonValue); })];
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Auto-generated: showProductRegistration
|
|
360
|
+
*/
|
|
361
|
+
ProductRegistrationApi.prototype.showProductRegistration = function (requestParameters, initOverrides) {
|
|
362
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
363
|
+
var response;
|
|
364
|
+
return __generator(this, function (_a) {
|
|
365
|
+
switch (_a.label) {
|
|
366
|
+
case 0: return [4 /*yield*/, this.showProductRegistrationRaw(requestParameters, initOverrides)];
|
|
367
|
+
case 1:
|
|
368
|
+
response = _a.sent();
|
|
369
|
+
return [4 /*yield*/, response.value()];
|
|
370
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
};
|
|
375
|
+
return ProductRegistrationApi;
|
|
376
|
+
}(runtime.BaseAPI));
|
|
377
|
+
exports.ProductRegistrationApi = ProductRegistrationApi;
|
package/dist/apis/StoreApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachSuppliersStoreRequest, DetachSuppliersStoreRequest, GenericResponse, GetAllStoreRequest, IndexStoreRequest, PaginatedStoreListResourceResponse,
|
|
13
|
+
import type { AttachSuppliersStoreRequest, DetachSuppliersStoreRequest, GenericResponse, GetAllStoreRequest, IndexStoreRequest, PaginatedStoreListResourceResponse, StoreListResourceArrayResponse, StoreResource, StoreSpecialDateResource, StoreStoreRequest, StoreStoreSpecialDateRequest, UpdateStoreRequest } from '../models/index';
|
|
14
14
|
export interface AttachSuppliersStoreOperationRequest {
|
|
15
15
|
store: number;
|
|
16
16
|
attachSuppliersStoreRequest?: AttachSuppliersStoreRequest;
|
|
@@ -32,9 +32,6 @@ export interface GetAllStoreOperationRequest {
|
|
|
32
32
|
export interface IndexStoreOperationRequest {
|
|
33
33
|
indexStoreRequest?: IndexStoreRequest;
|
|
34
34
|
}
|
|
35
|
-
export interface SaveMapStoreStockMigrationOperationRequest {
|
|
36
|
-
saveMapStoreStockMigrationRequest?: SaveMapStoreStockMigrationRequest;
|
|
37
|
-
}
|
|
38
35
|
export interface ShowStoreRequest {
|
|
39
36
|
store: number;
|
|
40
37
|
}
|
|
@@ -130,30 +127,6 @@ export declare class StoreApi extends runtime.BaseAPI {
|
|
|
130
127
|
* Auto-generated: indexStore
|
|
131
128
|
*/
|
|
132
129
|
indexStore(requestParameters?: IndexStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedStoreListResourceResponse>;
|
|
133
|
-
/**
|
|
134
|
-
* Creates request options for optionsStoreStockMigration without sending the request
|
|
135
|
-
*/
|
|
136
|
-
optionsStoreStockMigrationRequestOpts(): Promise<runtime.RequestOpts>;
|
|
137
|
-
/**
|
|
138
|
-
* Auto-generated: optionsStoreStockMigration
|
|
139
|
-
*/
|
|
140
|
-
optionsStoreStockMigrationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
141
|
-
/**
|
|
142
|
-
* Auto-generated: optionsStoreStockMigration
|
|
143
|
-
*/
|
|
144
|
-
optionsStoreStockMigration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
145
|
-
/**
|
|
146
|
-
* Creates request options for saveMapStoreStockMigration without sending the request
|
|
147
|
-
*/
|
|
148
|
-
saveMapStoreStockMigrationRequestOpts(requestParameters: SaveMapStoreStockMigrationOperationRequest): Promise<runtime.RequestOpts>;
|
|
149
|
-
/**
|
|
150
|
-
* Auto-generated: saveMapStoreStockMigration
|
|
151
|
-
*/
|
|
152
|
-
saveMapStoreStockMigrationRaw(requestParameters: SaveMapStoreStockMigrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
153
|
-
/**
|
|
154
|
-
* Auto-generated: saveMapStoreStockMigration
|
|
155
|
-
*/
|
|
156
|
-
saveMapStoreStockMigration(requestParameters?: SaveMapStoreStockMigrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
157
130
|
/**
|
|
158
131
|
* Creates request options for showStore without sending the request
|
|
159
132
|
*/
|
package/dist/apis/StoreApi.js
CHANGED
|
@@ -435,119 +435,6 @@ var StoreApi = /** @class */ (function (_super) {
|
|
|
435
435
|
});
|
|
436
436
|
});
|
|
437
437
|
};
|
|
438
|
-
/**
|
|
439
|
-
* Creates request options for optionsStoreStockMigration without sending the request
|
|
440
|
-
*/
|
|
441
|
-
StoreApi.prototype.optionsStoreStockMigrationRequestOpts = function () {
|
|
442
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
443
|
-
var queryParameters, headerParameters, urlPath;
|
|
444
|
-
return __generator(this, function (_a) {
|
|
445
|
-
queryParameters = {};
|
|
446
|
-
headerParameters = {};
|
|
447
|
-
urlPath = "/admin-api/store/stock-migration/options";
|
|
448
|
-
return [2 /*return*/, {
|
|
449
|
-
path: urlPath,
|
|
450
|
-
method: 'GET',
|
|
451
|
-
headers: headerParameters,
|
|
452
|
-
query: queryParameters,
|
|
453
|
-
}];
|
|
454
|
-
});
|
|
455
|
-
});
|
|
456
|
-
};
|
|
457
|
-
/**
|
|
458
|
-
* Auto-generated: optionsStoreStockMigration
|
|
459
|
-
*/
|
|
460
|
-
StoreApi.prototype.optionsStoreStockMigrationRaw = function (initOverrides) {
|
|
461
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
462
|
-
var requestOptions, response;
|
|
463
|
-
return __generator(this, function (_a) {
|
|
464
|
-
switch (_a.label) {
|
|
465
|
-
case 0: return [4 /*yield*/, this.optionsStoreStockMigrationRequestOpts()];
|
|
466
|
-
case 1:
|
|
467
|
-
requestOptions = _a.sent();
|
|
468
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
469
|
-
case 2:
|
|
470
|
-
response = _a.sent();
|
|
471
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
472
|
-
}
|
|
473
|
-
});
|
|
474
|
-
});
|
|
475
|
-
};
|
|
476
|
-
/**
|
|
477
|
-
* Auto-generated: optionsStoreStockMigration
|
|
478
|
-
*/
|
|
479
|
-
StoreApi.prototype.optionsStoreStockMigration = function (initOverrides) {
|
|
480
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
481
|
-
var response;
|
|
482
|
-
return __generator(this, function (_a) {
|
|
483
|
-
switch (_a.label) {
|
|
484
|
-
case 0: return [4 /*yield*/, this.optionsStoreStockMigrationRaw(initOverrides)];
|
|
485
|
-
case 1:
|
|
486
|
-
response = _a.sent();
|
|
487
|
-
return [4 /*yield*/, response.value()];
|
|
488
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
489
|
-
}
|
|
490
|
-
});
|
|
491
|
-
});
|
|
492
|
-
};
|
|
493
|
-
/**
|
|
494
|
-
* Creates request options for saveMapStoreStockMigration without sending the request
|
|
495
|
-
*/
|
|
496
|
-
StoreApi.prototype.saveMapStoreStockMigrationRequestOpts = function (requestParameters) {
|
|
497
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
498
|
-
var queryParameters, headerParameters, urlPath;
|
|
499
|
-
return __generator(this, function (_a) {
|
|
500
|
-
queryParameters = {};
|
|
501
|
-
headerParameters = {};
|
|
502
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
503
|
-
urlPath = "/admin-api/store/stock-migration/save-map";
|
|
504
|
-
return [2 /*return*/, {
|
|
505
|
-
path: urlPath,
|
|
506
|
-
method: 'POST',
|
|
507
|
-
headers: headerParameters,
|
|
508
|
-
query: queryParameters,
|
|
509
|
-
body: (0, index_1.SaveMapStoreStockMigrationRequestToJSON)(requestParameters['saveMapStoreStockMigrationRequest']),
|
|
510
|
-
}];
|
|
511
|
-
});
|
|
512
|
-
});
|
|
513
|
-
};
|
|
514
|
-
/**
|
|
515
|
-
* Auto-generated: saveMapStoreStockMigration
|
|
516
|
-
*/
|
|
517
|
-
StoreApi.prototype.saveMapStoreStockMigrationRaw = function (requestParameters, initOverrides) {
|
|
518
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
519
|
-
var requestOptions, response;
|
|
520
|
-
return __generator(this, function (_a) {
|
|
521
|
-
switch (_a.label) {
|
|
522
|
-
case 0: return [4 /*yield*/, this.saveMapStoreStockMigrationRequestOpts(requestParameters)];
|
|
523
|
-
case 1:
|
|
524
|
-
requestOptions = _a.sent();
|
|
525
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
526
|
-
case 2:
|
|
527
|
-
response = _a.sent();
|
|
528
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
529
|
-
}
|
|
530
|
-
});
|
|
531
|
-
});
|
|
532
|
-
};
|
|
533
|
-
/**
|
|
534
|
-
* Auto-generated: saveMapStoreStockMigration
|
|
535
|
-
*/
|
|
536
|
-
StoreApi.prototype.saveMapStoreStockMigration = function () {
|
|
537
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
538
|
-
var response;
|
|
539
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
540
|
-
return __generator(this, function (_a) {
|
|
541
|
-
switch (_a.label) {
|
|
542
|
-
case 0: return [4 /*yield*/, this.saveMapStoreStockMigrationRaw(requestParameters, initOverrides)];
|
|
543
|
-
case 1:
|
|
544
|
-
response = _a.sent();
|
|
545
|
-
return [4 /*yield*/, response.value()];
|
|
546
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
547
|
-
}
|
|
548
|
-
});
|
|
549
|
-
});
|
|
550
|
-
};
|
|
551
438
|
/**
|
|
552
439
|
* Creates request options for showStore without sending the request
|
|
553
440
|
*/
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export * from './OverlayTemplateApi';
|
|
|
10
10
|
export * from './ProductApi';
|
|
11
11
|
export * from './ProductCategoryApi';
|
|
12
12
|
export * from './ProductRangeApi';
|
|
13
|
+
export * from './ProductRegistrationApi';
|
|
13
14
|
export * from './ProductTypeApi';
|
|
14
|
-
export * from './RedirectApi';
|
|
15
15
|
export * from './SiteApi';
|
|
16
16
|
export * from './StoreApi';
|
|
17
17
|
export * from './SupplierApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -28,8 +28,8 @@ __exportStar(require("./OverlayTemplateApi"), exports);
|
|
|
28
28
|
__exportStar(require("./ProductApi"), exports);
|
|
29
29
|
__exportStar(require("./ProductCategoryApi"), exports);
|
|
30
30
|
__exportStar(require("./ProductRangeApi"), exports);
|
|
31
|
+
__exportStar(require("./ProductRegistrationApi"), exports);
|
|
31
32
|
__exportStar(require("./ProductTypeApi"), exports);
|
|
32
|
-
__exportStar(require("./RedirectApi"), exports);
|
|
33
33
|
__exportStar(require("./SiteApi"), exports);
|
|
34
34
|
__exportStar(require("./StoreApi"), exports);
|
|
35
35
|
__exportStar(require("./SupplierApi"), exports);
|
|
@@ -22,6 +22,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
27
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -44,7 +46,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
return json;
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
|
-
'company': json['company']
|
|
49
|
+
'company': json['company'],
|
|
48
50
|
'line1': json['line1'],
|
|
49
51
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
50
52
|
'postcode': json['postcode'],
|
|
@@ -20,7 +20,7 @@ export interface DestroyAttributeValueRequest {
|
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof DestroyAttributeValueRequest
|
|
22
22
|
*/
|
|
23
|
-
attributeValueId?: number
|
|
23
|
+
attributeValueId?: number;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the DestroyAttributeValueRequest interface.
|