@digital8/lighting-illusions-ts-sdk 0.0.592 → 0.0.593
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 +16 -4
- package/README.md +10 -7
- package/dist/apis/ProductCategoryApi.d.ts +1 -36
- package/dist/apis/ProductCategoryApi.js +0 -142
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllDocumentRequest.d.ts +0 -6
- package/dist/models/GetAllDocumentRequest.js +0 -2
- package/dist/models/GetAllProductChildRequest.d.ts +1 -1
- package/dist/models/GetAllProductChildRequest.js +3 -3
- package/dist/models/GlobalSearchCategoryResource.d.ts +44 -0
- package/dist/models/GlobalSearchCategoryResource.js +59 -0
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.js +50 -0
- package/dist/models/GlobalSearchProductResource.d.ts +86 -0
- package/dist/models/GlobalSearchProductResource.js +87 -0
- package/dist/models/GlobalSearchProductResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchProductResourceArrayResponse.js +50 -0
- package/dist/models/GlobalSearchRangeResource.d.ts +56 -0
- package/dist/models/GlobalSearchRangeResource.js +67 -0
- package/dist/models/GlobalSearchRangeResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchRangeResourceArrayResponse.js +50 -0
- package/dist/models/GlobalSearchResponseResource.d.ts +47 -0
- package/dist/models/GlobalSearchResponseResource.js +62 -0
- package/dist/models/GlobalSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/IndexDocumentRequest.d.ts +0 -6
- package/dist/models/IndexDocumentRequest.js +0 -2
- package/dist/models/IndexProductChildRequest.d.ts +1 -3
- package/dist/models/IndexProductChildRequest.js +3 -5
- package/dist/models/index.d.ts +8 -2
- package/dist/models/index.js +8 -2
- package/docs/GetAllDocumentRequest.md +0 -2
- package/docs/{AttachProductsProductCategoryRequest.md → GlobalSearchCategoryResource.md} +10 -6
- package/docs/GlobalSearchCategoryResourceArrayResponse.md +34 -0
- package/docs/GlobalSearchProductResource.md +52 -0
- package/docs/GlobalSearchProductResourceArrayResponse.md +34 -0
- package/docs/GlobalSearchRangeResource.md +42 -0
- package/docs/{DetachProductsProductCategoryRequest.md → GlobalSearchRangeResourceArrayResponse.md} +6 -6
- package/docs/GlobalSearchResponseResource.md +38 -0
- package/docs/GlobalSearchResponseResourceArrayResponse.md +34 -0
- package/docs/IndexDocumentRequest.md +0 -2
- package/docs/ProductCategoryApi.md +0 -204
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +0 -137
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllDocumentRequest.ts +0 -8
- package/src/models/GetAllProductChildRequest.ts +3 -3
- package/src/models/GlobalSearchCategoryResource.ts +84 -0
- package/src/models/GlobalSearchCategoryResourceArrayResponse.ts +73 -0
- package/src/models/GlobalSearchProductResource.ts +147 -0
- package/src/models/GlobalSearchProductResourceArrayResponse.ts +73 -0
- package/src/models/GlobalSearchRangeResource.ts +102 -0
- package/src/models/GlobalSearchRangeResourceArrayResponse.ts +73 -0
- package/src/models/GlobalSearchResponseResource.ts +106 -0
- package/src/models/GlobalSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/IndexDocumentRequest.ts +0 -8
- package/src/models/IndexProductChildRequest.ts +3 -5
- package/src/models/index.ts +8 -2
- package/dist/models/AttachProductsProductCategoryRequest.d.ts +0 -32
- package/dist/models/AttachProductsProductCategoryRequest.js +0 -51
- package/dist/models/DetachProductsProductCategoryRequest.d.ts +0 -32
- package/dist/models/DetachProductsProductCategoryRequest.js +0 -51
- package/src/models/AttachProductsProductCategoryRequest.ts +0 -66
- package/src/models/DetachProductsProductCategoryRequest.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -17,7 +17,6 @@ docs/AttachDocumentablesDocumentRequestDocumentablesInner.md
|
|
|
17
17
|
docs/AttachDocumentsProductChildSiteDetailRequest.md
|
|
18
18
|
docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md
|
|
19
19
|
docs/AttachProductTypeAttributeRequest.md
|
|
20
|
-
docs/AttachProductsProductCategoryRequest.md
|
|
21
20
|
docs/AttributeApi.md
|
|
22
21
|
docs/AttributeFieldType.md
|
|
23
22
|
docs/AttributeListResource.md
|
|
@@ -44,7 +43,6 @@ docs/DetachAssetableOverlayTemplateRequest.md
|
|
|
44
43
|
docs/DetachDocumentablesDocumentRequest.md
|
|
45
44
|
docs/DetachDocumentablesDocumentRequestDocumentablesInner.md
|
|
46
45
|
docs/DetachDocumentsProductChildSiteDetailRequest.md
|
|
47
|
-
docs/DetachProductsProductCategoryRequest.md
|
|
48
46
|
docs/DocumentApi.md
|
|
49
47
|
docs/DocumentFileForUploadResource.md
|
|
50
48
|
docs/DocumentFileForUploadResourceArrayResponse.md
|
|
@@ -69,6 +67,14 @@ docs/GetAllProductChildRequest.md
|
|
|
69
67
|
docs/GetAllProductRequest.md
|
|
70
68
|
docs/GetAllProductTypeRequest.md
|
|
71
69
|
docs/GetAllSupplierRequest.md
|
|
70
|
+
docs/GlobalSearchCategoryResource.md
|
|
71
|
+
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
72
|
+
docs/GlobalSearchProductResource.md
|
|
73
|
+
docs/GlobalSearchProductResourceArrayResponse.md
|
|
74
|
+
docs/GlobalSearchRangeResource.md
|
|
75
|
+
docs/GlobalSearchRangeResourceArrayResponse.md
|
|
76
|
+
docs/GlobalSearchResponseResource.md
|
|
77
|
+
docs/GlobalSearchResponseResourceArrayResponse.md
|
|
72
78
|
docs/GoogleCategoryApi.md
|
|
73
79
|
docs/GoogleCategoryResource.md
|
|
74
80
|
docs/GoogleCategoryResourceArrayResponse.md
|
|
@@ -289,7 +295,6 @@ src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
|
289
295
|
src/models/AttachDocumentsProductChildSiteDetailRequest.ts
|
|
290
296
|
src/models/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.ts
|
|
291
297
|
src/models/AttachProductTypeAttributeRequest.ts
|
|
292
|
-
src/models/AttachProductsProductCategoryRequest.ts
|
|
293
298
|
src/models/AttributeFieldType.ts
|
|
294
299
|
src/models/AttributeListResource.ts
|
|
295
300
|
src/models/AttributeListResourceArrayResponse.ts
|
|
@@ -315,7 +320,6 @@ src/models/DetachAssetableOverlayTemplateRequest.ts
|
|
|
315
320
|
src/models/DetachDocumentablesDocumentRequest.ts
|
|
316
321
|
src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts
|
|
317
322
|
src/models/DetachDocumentsProductChildSiteDetailRequest.ts
|
|
318
|
-
src/models/DetachProductsProductCategoryRequest.ts
|
|
319
323
|
src/models/DocumentFileForUploadResource.ts
|
|
320
324
|
src/models/DocumentFileForUploadResourceArrayResponse.ts
|
|
321
325
|
src/models/DocumentLiteResource.ts
|
|
@@ -338,6 +342,14 @@ src/models/GetAllProductChildRequest.ts
|
|
|
338
342
|
src/models/GetAllProductRequest.ts
|
|
339
343
|
src/models/GetAllProductTypeRequest.ts
|
|
340
344
|
src/models/GetAllSupplierRequest.ts
|
|
345
|
+
src/models/GlobalSearchCategoryResource.ts
|
|
346
|
+
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
347
|
+
src/models/GlobalSearchProductResource.ts
|
|
348
|
+
src/models/GlobalSearchProductResourceArrayResponse.ts
|
|
349
|
+
src/models/GlobalSearchRangeResource.ts
|
|
350
|
+
src/models/GlobalSearchRangeResourceArrayResponse.ts
|
|
351
|
+
src/models/GlobalSearchResponseResource.ts
|
|
352
|
+
src/models/GlobalSearchResponseResourceArrayResponse.ts
|
|
341
353
|
src/models/GoogleCategoryResource.ts
|
|
342
354
|
src/models/GoogleCategoryResourceArrayResponse.ts
|
|
343
355
|
src/models/IndexAttributeRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.593
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -107,10 +107,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
107
107
|
*ProductApi* | [**storeProductChild**](docs/ProductApi.md#storeproductchildoperation) | **POST** /admin-api/product/children/create | Auto-generated: storeProductChild
|
|
108
108
|
*ProductApi* | [**updateProduct**](docs/ProductApi.md#updateproductoperation) | **PUT** /admin-api/product/parent/{product}/update | Auto-generated: updateProduct
|
|
109
109
|
*ProductApi* | [**updateProductChild**](docs/ProductApi.md#updateproductchildoperation) | **PUT** /admin-api/product/children/{productChild}/update | Auto-generated: updateProductChild
|
|
110
|
-
*ProductCategoryApi* | [**attachProductsProductCategory**](docs/ProductCategoryApi.md#attachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/attach-products | Auto-generated: attachProductsProductCategory
|
|
111
|
-
*ProductCategoryApi* | [**bulkDetachProductsProductCategory**](docs/ProductCategoryApi.md#bulkdetachproductsproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/bulk-detach-products | Auto-generated: bulkDetachProductsProductCategory
|
|
112
110
|
*ProductCategoryApi* | [**destroyProductCategory**](docs/ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory
|
|
113
|
-
*ProductCategoryApi* | [**detachProductsProductCategory**](docs/ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory
|
|
114
111
|
*ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
|
|
115
112
|
*ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
|
|
116
113
|
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
|
|
@@ -172,7 +169,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
172
169
|
- [AttachDocumentsProductChildSiteDetailRequest](docs/AttachDocumentsProductChildSiteDetailRequest.md)
|
|
173
170
|
- [AttachDocumentsProductChildSiteDetailRequestDocumentsInner](docs/AttachDocumentsProductChildSiteDetailRequestDocumentsInner.md)
|
|
174
171
|
- [AttachProductTypeAttributeRequest](docs/AttachProductTypeAttributeRequest.md)
|
|
175
|
-
- [AttachProductsProductCategoryRequest](docs/AttachProductsProductCategoryRequest.md)
|
|
176
172
|
- [AttributeFieldType](docs/AttributeFieldType.md)
|
|
177
173
|
- [AttributeListResource](docs/AttributeListResource.md)
|
|
178
174
|
- [AttributeListResourceArrayResponse](docs/AttributeListResourceArrayResponse.md)
|
|
@@ -198,7 +194,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
198
194
|
- [DetachDocumentablesDocumentRequest](docs/DetachDocumentablesDocumentRequest.md)
|
|
199
195
|
- [DetachDocumentablesDocumentRequestDocumentablesInner](docs/DetachDocumentablesDocumentRequestDocumentablesInner.md)
|
|
200
196
|
- [DetachDocumentsProductChildSiteDetailRequest](docs/DetachDocumentsProductChildSiteDetailRequest.md)
|
|
201
|
-
- [DetachProductsProductCategoryRequest](docs/DetachProductsProductCategoryRequest.md)
|
|
202
197
|
- [DocumentFileForUploadResource](docs/DocumentFileForUploadResource.md)
|
|
203
198
|
- [DocumentFileForUploadResourceArrayResponse](docs/DocumentFileForUploadResourceArrayResponse.md)
|
|
204
199
|
- [DocumentLiteResource](docs/DocumentLiteResource.md)
|
|
@@ -221,6 +216,14 @@ All URIs are relative to *http://localhost/api*
|
|
|
221
216
|
- [GetAllProductRequest](docs/GetAllProductRequest.md)
|
|
222
217
|
- [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
|
|
223
218
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
219
|
+
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
220
|
+
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
221
|
+
- [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
|
|
222
|
+
- [GlobalSearchProductResourceArrayResponse](docs/GlobalSearchProductResourceArrayResponse.md)
|
|
223
|
+
- [GlobalSearchRangeResource](docs/GlobalSearchRangeResource.md)
|
|
224
|
+
- [GlobalSearchRangeResourceArrayResponse](docs/GlobalSearchRangeResourceArrayResponse.md)
|
|
225
|
+
- [GlobalSearchResponseResource](docs/GlobalSearchResponseResource.md)
|
|
226
|
+
- [GlobalSearchResponseResourceArrayResponse](docs/GlobalSearchResponseResourceArrayResponse.md)
|
|
224
227
|
- [GoogleCategoryResource](docs/GoogleCategoryResource.md)
|
|
225
228
|
- [GoogleCategoryResourceArrayResponse](docs/GoogleCategoryResourceArrayResponse.md)
|
|
226
229
|
- [IndexAttributeRequest](docs/IndexAttributeRequest.md)
|
|
@@ -415,7 +418,7 @@ and is automatically generated by the
|
|
|
415
418
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
416
419
|
|
|
417
420
|
- API version: `1.0.0`
|
|
418
|
-
- Package version: `0.0.
|
|
421
|
+
- Package version: `0.0.593`
|
|
419
422
|
- Generator version: `7.18.0`
|
|
420
423
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
421
424
|
|
|
@@ -10,21 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface AttachProductsProductCategoryOperationRequest {
|
|
15
|
-
productCategory: number;
|
|
16
|
-
attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
|
|
17
|
-
}
|
|
18
|
-
export interface BulkDetachProductsProductCategoryRequest {
|
|
19
|
-
productCategory: number;
|
|
20
|
-
}
|
|
13
|
+
import type { GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
21
14
|
export interface DestroyProductCategoryRequest {
|
|
22
15
|
productCategory: number;
|
|
23
16
|
}
|
|
24
|
-
export interface DetachProductsProductCategoryOperationRequest {
|
|
25
|
-
productCategory: number;
|
|
26
|
-
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
27
|
-
}
|
|
28
17
|
export interface GetAllProductCategoryOperationRequest {
|
|
29
18
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
30
19
|
}
|
|
@@ -52,22 +41,6 @@ export interface UpdateProductCategoryOperationRequest {
|
|
|
52
41
|
*
|
|
53
42
|
*/
|
|
54
43
|
export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
55
|
-
/**
|
|
56
|
-
* Auto-generated: attachProductsProductCategory
|
|
57
|
-
*/
|
|
58
|
-
attachProductsProductCategoryRaw(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>>;
|
|
59
|
-
/**
|
|
60
|
-
* Auto-generated: attachProductsProductCategory
|
|
61
|
-
*/
|
|
62
|
-
attachProductsProductCategory(requestParameters: AttachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
|
|
63
|
-
/**
|
|
64
|
-
* Auto-generated: bulkDetachProductsProductCategory
|
|
65
|
-
*/
|
|
66
|
-
bulkDetachProductsProductCategoryRaw(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
67
|
-
/**
|
|
68
|
-
* Auto-generated: bulkDetachProductsProductCategory
|
|
69
|
-
*/
|
|
70
|
-
bulkDetachProductsProductCategory(requestParameters: BulkDetachProductsProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
71
44
|
/**
|
|
72
45
|
* Auto-generated: destroyProductCategory
|
|
73
46
|
*/
|
|
@@ -76,14 +49,6 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
76
49
|
* Auto-generated: destroyProductCategory
|
|
77
50
|
*/
|
|
78
51
|
destroyProductCategory(requestParameters: DestroyProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
79
|
-
/**
|
|
80
|
-
* Auto-generated: detachProductsProductCategory
|
|
81
|
-
*/
|
|
82
|
-
detachProductsProductCategoryRaw(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryResource>>;
|
|
83
|
-
/**
|
|
84
|
-
* Auto-generated: detachProductsProductCategory
|
|
85
|
-
*/
|
|
86
|
-
detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
|
|
87
52
|
/**
|
|
88
53
|
* Auto-generated: getAllProductCategory
|
|
89
54
|
*/
|
|
@@ -75,100 +75,6 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ProductCategoryApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Auto-generated: attachProductsProductCategory
|
|
80
|
-
*/
|
|
81
|
-
ProductCategoryApi.prototype.attachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
if (requestParameters['productCategory'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling attachProductsProductCategory().');
|
|
89
|
-
}
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
-
urlPath = "/admin-api/product-category/{productCategory}/attach-products";
|
|
94
|
-
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
95
|
-
return [4 /*yield*/, this.request({
|
|
96
|
-
path: urlPath,
|
|
97
|
-
method: 'POST',
|
|
98
|
-
headers: headerParameters,
|
|
99
|
-
query: queryParameters,
|
|
100
|
-
body: (0, index_1.AttachProductsProductCategoryRequestToJSON)(requestParameters['attachProductsProductCategoryRequest']),
|
|
101
|
-
}, initOverrides)];
|
|
102
|
-
case 1:
|
|
103
|
-
response = _a.sent();
|
|
104
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* Auto-generated: attachProductsProductCategory
|
|
111
|
-
*/
|
|
112
|
-
ProductCategoryApi.prototype.attachProductsProductCategory = function (requestParameters, initOverrides) {
|
|
113
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
114
|
-
var response;
|
|
115
|
-
return __generator(this, function (_a) {
|
|
116
|
-
switch (_a.label) {
|
|
117
|
-
case 0: return [4 /*yield*/, this.attachProductsProductCategoryRaw(requestParameters, initOverrides)];
|
|
118
|
-
case 1:
|
|
119
|
-
response = _a.sent();
|
|
120
|
-
return [4 /*yield*/, response.value()];
|
|
121
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* Auto-generated: bulkDetachProductsProductCategory
|
|
128
|
-
*/
|
|
129
|
-
ProductCategoryApi.prototype.bulkDetachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
130
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
131
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
132
|
-
return __generator(this, function (_a) {
|
|
133
|
-
switch (_a.label) {
|
|
134
|
-
case 0:
|
|
135
|
-
if (requestParameters['productCategory'] == null) {
|
|
136
|
-
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling bulkDetachProductsProductCategory().');
|
|
137
|
-
}
|
|
138
|
-
queryParameters = {};
|
|
139
|
-
headerParameters = {};
|
|
140
|
-
urlPath = "/admin-api/product-category/{productCategory}/bulk-detach-products";
|
|
141
|
-
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
142
|
-
return [4 /*yield*/, this.request({
|
|
143
|
-
path: urlPath,
|
|
144
|
-
method: 'DELETE',
|
|
145
|
-
headers: headerParameters,
|
|
146
|
-
query: queryParameters,
|
|
147
|
-
}, initOverrides)];
|
|
148
|
-
case 1:
|
|
149
|
-
response = _a.sent();
|
|
150
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* Auto-generated: bulkDetachProductsProductCategory
|
|
157
|
-
*/
|
|
158
|
-
ProductCategoryApi.prototype.bulkDetachProductsProductCategory = function (requestParameters, initOverrides) {
|
|
159
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
160
|
-
var response;
|
|
161
|
-
return __generator(this, function (_a) {
|
|
162
|
-
switch (_a.label) {
|
|
163
|
-
case 0: return [4 /*yield*/, this.bulkDetachProductsProductCategoryRaw(requestParameters, initOverrides)];
|
|
164
|
-
case 1:
|
|
165
|
-
response = _a.sent();
|
|
166
|
-
return [4 /*yield*/, response.value()];
|
|
167
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
};
|
|
172
78
|
/**
|
|
173
79
|
* Auto-generated: destroyProductCategory
|
|
174
80
|
*/
|
|
@@ -215,54 +121,6 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
215
121
|
});
|
|
216
122
|
});
|
|
217
123
|
};
|
|
218
|
-
/**
|
|
219
|
-
* Auto-generated: detachProductsProductCategory
|
|
220
|
-
*/
|
|
221
|
-
ProductCategoryApi.prototype.detachProductsProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
222
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
223
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
224
|
-
return __generator(this, function (_a) {
|
|
225
|
-
switch (_a.label) {
|
|
226
|
-
case 0:
|
|
227
|
-
if (requestParameters['productCategory'] == null) {
|
|
228
|
-
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling detachProductsProductCategory().');
|
|
229
|
-
}
|
|
230
|
-
queryParameters = {};
|
|
231
|
-
headerParameters = {};
|
|
232
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
233
|
-
urlPath = "/admin-api/product-category/{productCategory}/detach-products";
|
|
234
|
-
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
235
|
-
return [4 /*yield*/, this.request({
|
|
236
|
-
path: urlPath,
|
|
237
|
-
method: 'POST',
|
|
238
|
-
headers: headerParameters,
|
|
239
|
-
query: queryParameters,
|
|
240
|
-
body: (0, index_1.DetachProductsProductCategoryRequestToJSON)(requestParameters['detachProductsProductCategoryRequest']),
|
|
241
|
-
}, initOverrides)];
|
|
242
|
-
case 1:
|
|
243
|
-
response = _a.sent();
|
|
244
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryResourceFromJSON)(jsonValue); })];
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
};
|
|
249
|
-
/**
|
|
250
|
-
* Auto-generated: detachProductsProductCategory
|
|
251
|
-
*/
|
|
252
|
-
ProductCategoryApi.prototype.detachProductsProductCategory = function (requestParameters, initOverrides) {
|
|
253
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
254
|
-
var response;
|
|
255
|
-
return __generator(this, function (_a) {
|
|
256
|
-
switch (_a.label) {
|
|
257
|
-
case 0: return [4 /*yield*/, this.detachProductsProductCategoryRaw(requestParameters, initOverrides)];
|
|
258
|
-
case 1:
|
|
259
|
-
response = _a.sent();
|
|
260
|
-
return [4 /*yield*/, response.value()];
|
|
261
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
});
|
|
265
|
-
};
|
|
266
124
|
/**
|
|
267
125
|
* Auto-generated: getAllProductCategory
|
|
268
126
|
*/
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -62,7 +62,6 @@ function GetAllDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
63
63
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
64
64
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
65
|
-
'sitesId': json['sites-id'] == null ? undefined : json['sites-id'],
|
|
66
65
|
};
|
|
67
66
|
}
|
|
68
67
|
function GetAllDocumentRequestToJSON(json) {
|
|
@@ -80,6 +79,5 @@ function GetAllDocumentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
79
|
'related_id': value['relatedId'],
|
|
81
80
|
'related_type': value['relatedType'],
|
|
82
81
|
'includes_relations': value['includesRelations'],
|
|
83
|
-
'sites-id': value['sitesId'],
|
|
84
82
|
};
|
|
85
83
|
}
|
|
@@ -81,7 +81,7 @@ export declare const GetAllProductChildRequestSortByEnum: {
|
|
|
81
81
|
readonly SiteDetailsSlug: "siteDetails-slug";
|
|
82
82
|
readonly Sku: "sku";
|
|
83
83
|
readonly Model: "model";
|
|
84
|
-
readonly NetsuiteSyncNetsuiteId: "
|
|
84
|
+
readonly NetsuiteSyncNetsuiteId: "netsuite_sync-netsuite_id";
|
|
85
85
|
readonly NewArrivalStartDate: "new_arrival_start_date";
|
|
86
86
|
readonly NewArrivalEndDate: "new_arrival_end_date";
|
|
87
87
|
readonly CreatedAt: "created_at";
|
|
@@ -30,7 +30,7 @@ exports.GetAllProductChildRequestSortByEnum = {
|
|
|
30
30
|
SiteDetailsSlug: 'siteDetails-slug',
|
|
31
31
|
Sku: 'sku',
|
|
32
32
|
Model: 'model',
|
|
33
|
-
NetsuiteSyncNetsuiteId: '
|
|
33
|
+
NetsuiteSyncNetsuiteId: 'netsuite_sync-netsuite_id',
|
|
34
34
|
NewArrivalStartDate: 'new_arrival_start_date',
|
|
35
35
|
NewArrivalEndDate: 'new_arrival_end_date',
|
|
36
36
|
CreatedAt: 'created_at',
|
|
@@ -74,7 +74,7 @@ function GetAllProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
74
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
75
75
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
76
76
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
77
|
-
'netsuiteSyncHasNetsuiteId': json['
|
|
77
|
+
'netsuiteSyncHasNetsuiteId': json['netsuite_sync-has_netsuite_id'] == null ? undefined : json['netsuite_sync-has_netsuite_id'],
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
function GetAllProductChildRequestToJSON(json) {
|
|
@@ -94,6 +94,6 @@ function GetAllProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
94
94
|
'includes_relations': value['includesRelations'],
|
|
95
95
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
96
96
|
'is_disabled': value['isDisabled'],
|
|
97
|
-
'
|
|
97
|
+
'netsuite_sync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
98
98
|
};
|
|
99
99
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GlobalSearchCategoryResource
|
|
16
|
+
*/
|
|
17
|
+
export interface GlobalSearchCategoryResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GlobalSearchCategoryResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GlobalSearchCategoryResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GlobalSearchCategoryResource
|
|
34
|
+
*/
|
|
35
|
+
slug: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GlobalSearchCategoryResource interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGlobalSearchCategoryResource(value: object): value is GlobalSearchCategoryResource;
|
|
41
|
+
export declare function GlobalSearchCategoryResourceFromJSON(json: any): GlobalSearchCategoryResource;
|
|
42
|
+
export declare function GlobalSearchCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResource;
|
|
43
|
+
export declare function GlobalSearchCategoryResourceToJSON(json: any): GlobalSearchCategoryResource;
|
|
44
|
+
export declare function GlobalSearchCategoryResourceToJSONTyped(value?: GlobalSearchCategoryResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGlobalSearchCategoryResource = instanceOfGlobalSearchCategoryResource;
|
|
17
|
+
exports.GlobalSearchCategoryResourceFromJSON = GlobalSearchCategoryResourceFromJSON;
|
|
18
|
+
exports.GlobalSearchCategoryResourceFromJSONTyped = GlobalSearchCategoryResourceFromJSONTyped;
|
|
19
|
+
exports.GlobalSearchCategoryResourceToJSON = GlobalSearchCategoryResourceToJSON;
|
|
20
|
+
exports.GlobalSearchCategoryResourceToJSONTyped = GlobalSearchCategoryResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GlobalSearchCategoryResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGlobalSearchCategoryResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GlobalSearchCategoryResourceFromJSON(json) {
|
|
34
|
+
return GlobalSearchCategoryResourceFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GlobalSearchCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'slug': json['slug'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function GlobalSearchCategoryResourceToJSON(json) {
|
|
47
|
+
return GlobalSearchCategoryResourceToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GlobalSearchCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'slug': value['slug'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GlobalSearchCategoryResource } from './GlobalSearchCategoryResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GlobalSearchCategoryResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GlobalSearchCategoryResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GlobalSearchCategoryResource>}
|
|
22
|
+
* @memberof GlobalSearchCategoryResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<GlobalSearchCategoryResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GlobalSearchCategoryResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGlobalSearchCategoryResourceArrayResponse(value: object): value is GlobalSearchCategoryResourceArrayResponse;
|
|
30
|
+
export declare function GlobalSearchCategoryResourceArrayResponseFromJSON(json: any): GlobalSearchCategoryResourceArrayResponse;
|
|
31
|
+
export declare function GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResourceArrayResponse;
|
|
32
|
+
export declare function GlobalSearchCategoryResourceArrayResponseToJSON(json: any): GlobalSearchCategoryResourceArrayResponse;
|
|
33
|
+
export declare function GlobalSearchCategoryResourceArrayResponseToJSONTyped(value?: GlobalSearchCategoryResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGlobalSearchCategoryResourceArrayResponse = instanceOfGlobalSearchCategoryResourceArrayResponse;
|
|
17
|
+
exports.GlobalSearchCategoryResourceArrayResponseFromJSON = GlobalSearchCategoryResourceArrayResponseFromJSON;
|
|
18
|
+
exports.GlobalSearchCategoryResourceArrayResponseFromJSONTyped = GlobalSearchCategoryResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.GlobalSearchCategoryResourceArrayResponseToJSON = GlobalSearchCategoryResourceArrayResponseToJSON;
|
|
20
|
+
exports.GlobalSearchCategoryResourceArrayResponseToJSONTyped = GlobalSearchCategoryResourceArrayResponseToJSONTyped;
|
|
21
|
+
var GlobalSearchCategoryResource_1 = require("./GlobalSearchCategoryResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GlobalSearchCategoryResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGlobalSearchCategoryResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function GlobalSearchCategoryResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(GlobalSearchCategoryResource_1.GlobalSearchCategoryResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function GlobalSearchCategoryResourceArrayResponseToJSON(json) {
|
|
40
|
+
return GlobalSearchCategoryResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function GlobalSearchCategoryResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(GlobalSearchCategoryResource_1.GlobalSearchCategoryResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|