@digital8/lighting-illusions-ts-sdk 0.0.955 → 0.0.957
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +5 -3
- package/dist/apis/ProductCategoryApi.d.ts +18 -3
- package/dist/apis/ProductCategoryApi.js +56 -5
- package/dist/models/CategoryAutomationRuleResource.d.ts +3 -3
- package/dist/models/CategoryAutomationRuleResource.js +3 -5
- package/dist/models/GetAllProductChildRequest.d.ts +6 -0
- package/dist/models/GetAllProductChildRequest.js +2 -0
- package/dist/models/GetHierarchyProductCategoryRequest.d.ts +32 -0
- package/dist/models/GetHierarchyProductCategoryRequest.js +51 -0
- package/dist/models/IndexProductCategoryRequest.d.ts +2 -0
- package/dist/models/IndexProductCategoryRequest.js +3 -1
- package/dist/models/IndexProductChildRequest.d.ts +6 -0
- package/dist/models/IndexProductChildRequest.js +2 -0
- package/dist/models/PreviewAutomationRulesResource.d.ts +0 -6
- package/dist/models/PreviewAutomationRulesResource.js +0 -2
- package/dist/models/ProductAggregationResource.d.ts +2 -2
- package/dist/models/ProductCategoryResource.d.ts +6 -0
- package/dist/models/ProductCategoryResource.js +4 -0
- package/dist/models/ProductChildResource.d.ts +6 -0
- package/dist/models/ProductChildResource.js +4 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +18 -0
- package/dist/models/ProductChildSiteDetailResource.js +12 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +3 -3
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +3 -5
- package/dist/models/StoreProductChildRequest.d.ts +7 -1
- package/dist/models/StoreProductChildRequest.js +6 -4
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +18 -0
- package/dist/models/StoreProductChildRequestSitesInner.js +12 -0
- package/dist/models/UpdateProductChildRequest.d.ts +6 -0
- package/dist/models/UpdateProductChildRequest.js +4 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/CategoryAutomationRuleResource.md +3 -3
- package/docs/GetAllProductChildRequest.md +2 -0
- package/docs/GetHierarchyProductCategoryRequest.md +34 -0
- package/docs/IndexProductChildRequest.md +2 -0
- package/docs/PreviewAutomationRulesResource.md +0 -2
- package/docs/ProductAggregationResource.md +1 -1
- package/docs/ProductCategoryApi.md +83 -6
- package/docs/ProductCategoryResource.md +2 -0
- package/docs/ProductChildResource.md +2 -0
- package/docs/ProductChildSiteDetailResource.md +6 -0
- package/docs/StoreProductCategoryRequestAutomationRulesInner.md +2 -2
- package/docs/StoreProductChildRequest.md +2 -0
- package/docs/StoreProductChildRequestSitesInner.md +6 -0
- package/docs/UpdateProductChildRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +62 -4
- package/src/models/CategoryAutomationRuleResource.ts +6 -7
- package/src/models/GetAllProductChildRequest.ts +8 -0
- package/src/models/GetHierarchyProductCategoryRequest.ts +66 -0
- package/src/models/IndexProductCategoryRequest.ts +3 -1
- package/src/models/IndexProductChildRequest.ts +8 -0
- package/src/models/PreviewAutomationRulesResource.ts +0 -8
- package/src/models/ProductAggregationResource.ts +2 -2
- package/src/models/ProductCategoryResource.ts +9 -0
- package/src/models/ProductChildResource.ts +9 -0
- package/src/models/ProductChildSiteDetailResource.ts +27 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +6 -7
- package/src/models/StoreProductChildRequest.ts +12 -4
- package/src/models/StoreProductChildRequestSitesInner.ts +27 -0
- package/src/models/UpdateProductChildRequest.ts +9 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -83,6 +83,7 @@ docs/GetAllProductChildRequest.md
|
|
|
83
83
|
docs/GetAllProductRequest.md
|
|
84
84
|
docs/GetAllProductTypeRequest.md
|
|
85
85
|
docs/GetAllSupplierRequest.md
|
|
86
|
+
docs/GetHierarchyProductCategoryRequest.md
|
|
86
87
|
docs/GlobalSearchCategoryResource.md
|
|
87
88
|
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
88
89
|
docs/GlobalSearchProductResource.md
|
|
@@ -390,6 +391,7 @@ src/models/GetAllProductChildRequest.ts
|
|
|
390
391
|
src/models/GetAllProductRequest.ts
|
|
391
392
|
src/models/GetAllProductTypeRequest.ts
|
|
392
393
|
src/models/GetAllSupplierRequest.ts
|
|
394
|
+
src/models/GetHierarchyProductCategoryRequest.ts
|
|
393
395
|
src/models/GlobalSearchCategoryResource.ts
|
|
394
396
|
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
395
397
|
src/models/GlobalSearchProductResource.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.957
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -122,9 +122,10 @@ All URIs are relative to *http://localhost/api*
|
|
|
122
122
|
*ProductCategoryApi* | [**bulkDetachProductsProductCategory**](docs/ProductCategoryApi.md#bulkdetachproductsproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/bulk-detach-products | Auto-generated: bulkDetachProductsProductCategory
|
|
123
123
|
*ProductCategoryApi* | [**destroyProductCategory**](docs/ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory
|
|
124
124
|
*ProductCategoryApi* | [**detachProductsProductCategory**](docs/ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory
|
|
125
|
+
*ProductCategoryApi* | [**getAllChildrenProductCategory**](docs/ProductCategoryApi.md#getallchildrenproductcategory) | **POST** /admin-api/product-category/{productCategory}/children/all | Auto-generated: getAllChildrenProductCategory
|
|
125
126
|
*ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
|
|
126
127
|
*ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
|
|
127
|
-
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#
|
|
128
|
+
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategoryoperation) | **POST** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
|
|
128
129
|
*ProductCategoryApi* | [**indexProductCategory**](docs/ProductCategoryApi.md#indexproductcategoryoperation) | **POST** /admin-api/product-category/list | Auto-generated: indexProductCategory
|
|
129
130
|
*ProductCategoryApi* | [**previewAutomationRulesProductCategory**](docs/ProductCategoryApi.md#previewautomationrulesproductcategoryoperation) | **POST** /admin-api/product-category/preview-automation-rules | Auto-generated: previewAutomationRulesProductCategory
|
|
130
131
|
*ProductCategoryApi* | [**showProductCategory**](docs/ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory
|
|
@@ -243,6 +244,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
243
244
|
- [GetAllProductRequest](docs/GetAllProductRequest.md)
|
|
244
245
|
- [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
|
|
245
246
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
247
|
+
- [GetHierarchyProductCategoryRequest](docs/GetHierarchyProductCategoryRequest.md)
|
|
246
248
|
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
247
249
|
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
248
250
|
- [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
|
|
@@ -463,7 +465,7 @@ and is automatically generated by the
|
|
|
463
465
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
464
466
|
|
|
465
467
|
- API version: `1.0.0`
|
|
466
|
-
- Package version: `0.0.
|
|
468
|
+
- Package version: `0.0.957`
|
|
467
469
|
- Generator version: `7.19.0`
|
|
468
470
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
469
471
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachProductsProductCategoryRequest, DetachProductsProductCategoryRequest, GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
13
|
+
import type { AttachProductsProductCategoryRequest, DetachProductsProductCategoryRequest, GenericResponse, GetAllProductCategoryRequest, GetHierarchyProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryListResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
14
14
|
export interface AttachProductsProductCategoryOperationRequest {
|
|
15
15
|
productCategory: number;
|
|
16
16
|
attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
|
|
@@ -25,6 +25,10 @@ export interface DetachProductsProductCategoryOperationRequest {
|
|
|
25
25
|
productCategory: number;
|
|
26
26
|
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
27
27
|
}
|
|
28
|
+
export interface GetAllChildrenProductCategoryRequest {
|
|
29
|
+
productCategory: number;
|
|
30
|
+
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
31
|
+
}
|
|
28
32
|
export interface GetAllProductCategoryOperationRequest {
|
|
29
33
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
30
34
|
}
|
|
@@ -32,6 +36,9 @@ export interface GetChildrenProductCategoryRequest {
|
|
|
32
36
|
productCategory: number;
|
|
33
37
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
34
38
|
}
|
|
39
|
+
export interface GetHierarchyProductCategoryOperationRequest {
|
|
40
|
+
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
41
|
+
}
|
|
35
42
|
export interface IndexProductCategoryOperationRequest {
|
|
36
43
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
37
44
|
}
|
|
@@ -84,6 +91,14 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
84
91
|
* Auto-generated: detachProductsProductCategory
|
|
85
92
|
*/
|
|
86
93
|
detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
|
|
94
|
+
/**
|
|
95
|
+
* Auto-generated: getAllChildrenProductCategory
|
|
96
|
+
*/
|
|
97
|
+
getAllChildrenProductCategoryRaw(requestParameters: GetAllChildrenProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryListResourceArrayResponse>>;
|
|
98
|
+
/**
|
|
99
|
+
* Auto-generated: getAllChildrenProductCategory
|
|
100
|
+
*/
|
|
101
|
+
getAllChildrenProductCategory(requestParameters: GetAllChildrenProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryListResourceArrayResponse>;
|
|
87
102
|
/**
|
|
88
103
|
* Auto-generated: getAllProductCategory
|
|
89
104
|
*/
|
|
@@ -103,11 +118,11 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
103
118
|
/**
|
|
104
119
|
* Auto-generated: getHierarchyProductCategory
|
|
105
120
|
*/
|
|
106
|
-
getHierarchyProductCategoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>>;
|
|
121
|
+
getHierarchyProductCategoryRaw(requestParameters: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>>;
|
|
107
122
|
/**
|
|
108
123
|
* Auto-generated: getHierarchyProductCategory
|
|
109
124
|
*/
|
|
110
|
-
getHierarchyProductCategory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse>;
|
|
125
|
+
getHierarchyProductCategory(requestParameters?: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse>;
|
|
111
126
|
/**
|
|
112
127
|
* Auto-generated: indexProductCategory
|
|
113
128
|
*/
|
|
@@ -263,6 +263,54 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
263
263
|
});
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
+
/**
|
|
267
|
+
* Auto-generated: getAllChildrenProductCategory
|
|
268
|
+
*/
|
|
269
|
+
ProductCategoryApi.prototype.getAllChildrenProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
271
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
272
|
+
return __generator(this, function (_a) {
|
|
273
|
+
switch (_a.label) {
|
|
274
|
+
case 0:
|
|
275
|
+
if (requestParameters['productCategory'] == null) {
|
|
276
|
+
throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling getAllChildrenProductCategory().');
|
|
277
|
+
}
|
|
278
|
+
queryParameters = {};
|
|
279
|
+
headerParameters = {};
|
|
280
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
281
|
+
urlPath = "/admin-api/product-category/{productCategory}/children/all";
|
|
282
|
+
urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
|
|
283
|
+
return [4 /*yield*/, this.request({
|
|
284
|
+
path: urlPath,
|
|
285
|
+
method: 'POST',
|
|
286
|
+
headers: headerParameters,
|
|
287
|
+
query: queryParameters,
|
|
288
|
+
body: (0, index_1.GetAllProductCategoryRequestToJSON)(requestParameters['getAllProductCategoryRequest']),
|
|
289
|
+
}, initOverrides)];
|
|
290
|
+
case 1:
|
|
291
|
+
response = _a.sent();
|
|
292
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryListResourceArrayResponseFromJSON)(jsonValue); })];
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Auto-generated: getAllChildrenProductCategory
|
|
299
|
+
*/
|
|
300
|
+
ProductCategoryApi.prototype.getAllChildrenProductCategory = function (requestParameters, initOverrides) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
302
|
+
var response;
|
|
303
|
+
return __generator(this, function (_a) {
|
|
304
|
+
switch (_a.label) {
|
|
305
|
+
case 0: return [4 /*yield*/, this.getAllChildrenProductCategoryRaw(requestParameters, initOverrides)];
|
|
306
|
+
case 1:
|
|
307
|
+
response = _a.sent();
|
|
308
|
+
return [4 /*yield*/, response.value()];
|
|
309
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
});
|
|
313
|
+
};
|
|
266
314
|
/**
|
|
267
315
|
* Auto-generated: getAllProductCategory
|
|
268
316
|
*/
|
|
@@ -359,7 +407,7 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
359
407
|
/**
|
|
360
408
|
* Auto-generated: getHierarchyProductCategory
|
|
361
409
|
*/
|
|
362
|
-
ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (initOverrides) {
|
|
410
|
+
ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (requestParameters, initOverrides) {
|
|
363
411
|
return __awaiter(this, void 0, void 0, function () {
|
|
364
412
|
var queryParameters, headerParameters, urlPath, response;
|
|
365
413
|
return __generator(this, function (_a) {
|
|
@@ -367,12 +415,14 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
367
415
|
case 0:
|
|
368
416
|
queryParameters = {};
|
|
369
417
|
headerParameters = {};
|
|
418
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
370
419
|
urlPath = "/admin-api/product-category/hierarchy";
|
|
371
420
|
return [4 /*yield*/, this.request({
|
|
372
421
|
path: urlPath,
|
|
373
|
-
method: '
|
|
422
|
+
method: 'POST',
|
|
374
423
|
headers: headerParameters,
|
|
375
424
|
query: queryParameters,
|
|
425
|
+
body: (0, index_1.GetHierarchyProductCategoryRequestToJSON)(requestParameters['getHierarchyProductCategoryRequest']),
|
|
376
426
|
}, initOverrides)];
|
|
377
427
|
case 1:
|
|
378
428
|
response = _a.sent();
|
|
@@ -384,12 +434,13 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
384
434
|
/**
|
|
385
435
|
* Auto-generated: getHierarchyProductCategory
|
|
386
436
|
*/
|
|
387
|
-
ProductCategoryApi.prototype.getHierarchyProductCategory = function (
|
|
388
|
-
return __awaiter(this,
|
|
437
|
+
ProductCategoryApi.prototype.getHierarchyProductCategory = function () {
|
|
438
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
389
439
|
var response;
|
|
440
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
390
441
|
return __generator(this, function (_a) {
|
|
391
442
|
switch (_a.label) {
|
|
392
|
-
case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(initOverrides)];
|
|
443
|
+
case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(requestParameters, initOverrides)];
|
|
393
444
|
case 1:
|
|
394
445
|
response = _a.sent();
|
|
395
446
|
return [4 /*yield*/, response.value()];
|
|
@@ -35,10 +35,10 @@ export interface CategoryAutomationRuleResource {
|
|
|
35
35
|
comparisonType: object;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof CategoryAutomationRuleResource
|
|
40
40
|
*/
|
|
41
|
-
groupId
|
|
41
|
+
groupId?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -56,7 +56,7 @@ export interface CategoryAutomationRuleResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof CategoryAutomationRuleResource
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
valueId?: string | null;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Check if a given object implements the CategoryAutomationRuleResource interface.
|
|
@@ -26,8 +26,6 @@ function instanceOfCategoryAutomationRuleResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('comparisonType' in value) || value['comparisonType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('groupId' in value) || value['groupId'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('value' in value) || value['value'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
return true;
|
|
@@ -43,10 +41,10 @@ function CategoryAutomationRuleResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
43
41
|
'id': json['id'] == null ? undefined : json['id'],
|
|
44
42
|
'fieldType': json['fieldType'],
|
|
45
43
|
'comparisonType': json['comparisonType'],
|
|
46
|
-
'groupId': json['groupId'],
|
|
44
|
+
'groupId': json['groupId'] == null ? undefined : json['groupId'],
|
|
47
45
|
'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
|
|
48
46
|
'value': json['value'],
|
|
49
|
-
'
|
|
47
|
+
'valueId': json['valueId'] == null ? undefined : json['valueId'],
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
function CategoryAutomationRuleResourceToJSON(json) {
|
|
@@ -64,6 +62,6 @@ function CategoryAutomationRuleResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
64
62
|
'groupId': value['groupId'],
|
|
65
63
|
'relatedId': value['relatedId'],
|
|
66
64
|
'value': value['value'],
|
|
67
|
-
'
|
|
65
|
+
'valueId': value['valueId'],
|
|
68
66
|
};
|
|
69
67
|
}
|
|
@@ -87,6 +87,12 @@ export interface GetAllProductChildRequest {
|
|
|
87
87
|
* @memberof GetAllProductChildRequest
|
|
88
88
|
*/
|
|
89
89
|
productTypeId?: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Array<string>}
|
|
93
|
+
* @memberof GetAllProductChildRequest
|
|
94
|
+
*/
|
|
95
|
+
parentIsAccessory?: Array<string>;
|
|
90
96
|
}
|
|
91
97
|
/**
|
|
92
98
|
* @export
|
|
@@ -78,6 +78,7 @@ function GetAllProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
78
|
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
79
79
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
80
80
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
81
|
+
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
function GetAllProductChildRequestToJSON(json) {
|
|
@@ -101,5 +102,6 @@ function GetAllProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
101
102
|
'category-id': value['categoryId'],
|
|
102
103
|
'supplier-id': value['supplierId'],
|
|
103
104
|
'productType-id': value['productTypeId'],
|
|
105
|
+
'parent-is_accessory': value['parentIsAccessory'],
|
|
104
106
|
};
|
|
105
107
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 GetHierarchyProductCategoryRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GetHierarchyProductCategoryRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetHierarchyProductCategoryRequest
|
|
22
|
+
*/
|
|
23
|
+
siteId: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetHierarchyProductCategoryRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetHierarchyProductCategoryRequest(value: object): value is GetHierarchyProductCategoryRequest;
|
|
29
|
+
export declare function GetHierarchyProductCategoryRequestFromJSON(json: any): GetHierarchyProductCategoryRequest;
|
|
30
|
+
export declare function GetHierarchyProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHierarchyProductCategoryRequest;
|
|
31
|
+
export declare function GetHierarchyProductCategoryRequestToJSON(json: any): GetHierarchyProductCategoryRequest;
|
|
32
|
+
export declare function GetHierarchyProductCategoryRequestToJSONTyped(value?: GetHierarchyProductCategoryRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfGetHierarchyProductCategoryRequest = instanceOfGetHierarchyProductCategoryRequest;
|
|
17
|
+
exports.GetHierarchyProductCategoryRequestFromJSON = GetHierarchyProductCategoryRequestFromJSON;
|
|
18
|
+
exports.GetHierarchyProductCategoryRequestFromJSONTyped = GetHierarchyProductCategoryRequestFromJSONTyped;
|
|
19
|
+
exports.GetHierarchyProductCategoryRequestToJSON = GetHierarchyProductCategoryRequestToJSON;
|
|
20
|
+
exports.GetHierarchyProductCategoryRequestToJSONTyped = GetHierarchyProductCategoryRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetHierarchyProductCategoryRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetHierarchyProductCategoryRequest(value) {
|
|
25
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GetHierarchyProductCategoryRequestFromJSON(json) {
|
|
30
|
+
return GetHierarchyProductCategoryRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GetHierarchyProductCategoryRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'siteId': json['site_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetHierarchyProductCategoryRequestToJSON(json) {
|
|
41
|
+
return GetHierarchyProductCategoryRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetHierarchyProductCategoryRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'site_id': value['siteId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -128,6 +128,8 @@ export type IndexProductCategoryRequestSortDirectionEnum = typeof IndexProductCa
|
|
|
128
128
|
export declare const IndexProductCategoryRequestRelatedTypeEnum: {
|
|
129
129
|
readonly Product: "product";
|
|
130
130
|
readonly ProductChildSiteDetail: "productChildSiteDetail";
|
|
131
|
+
readonly Attribute: "attribute";
|
|
132
|
+
readonly AttributeValue: "attributeValue";
|
|
131
133
|
};
|
|
132
134
|
export type IndexProductCategoryRequestRelatedTypeEnum = typeof IndexProductCategoryRequestRelatedTypeEnum[keyof typeof IndexProductCategoryRequestRelatedTypeEnum];
|
|
133
135
|
/**
|
|
@@ -44,7 +44,9 @@ exports.IndexProductCategoryRequestSortDirectionEnum = {
|
|
|
44
44
|
*/
|
|
45
45
|
exports.IndexProductCategoryRequestRelatedTypeEnum = {
|
|
46
46
|
Product: 'product',
|
|
47
|
-
ProductChildSiteDetail: 'productChildSiteDetail'
|
|
47
|
+
ProductChildSiteDetail: 'productChildSiteDetail',
|
|
48
|
+
Attribute: 'attribute',
|
|
49
|
+
AttributeValue: 'attributeValue'
|
|
48
50
|
};
|
|
49
51
|
/**
|
|
50
52
|
* Check if a given object implements the IndexProductCategoryRequest interface.
|
|
@@ -81,6 +81,12 @@ export interface IndexProductChildRequest {
|
|
|
81
81
|
* @memberof IndexProductChildRequest
|
|
82
82
|
*/
|
|
83
83
|
productTypeId?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof IndexProductChildRequest
|
|
88
|
+
*/
|
|
89
|
+
parentIsAccessory?: Array<string>;
|
|
84
90
|
/**
|
|
85
91
|
*
|
|
86
92
|
* @type {number}
|
|
@@ -85,6 +85,7 @@ function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
85
|
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
86
86
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
87
87
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
88
|
+
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
88
89
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
89
90
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
90
91
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -110,6 +111,7 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
110
111
|
'category-id': value['categoryId'],
|
|
111
112
|
'supplier-id': value['supplierId'],
|
|
112
113
|
'productType-id': value['productTypeId'],
|
|
114
|
+
'parent-is_accessory': value['parentIsAccessory'],
|
|
113
115
|
'related_id': value['relatedId'],
|
|
114
116
|
'related_type': value['relatedType'],
|
|
115
117
|
'includes_relations': value['includesRelations'],
|
|
@@ -27,12 +27,6 @@ export interface PreviewAutomationRulesResource {
|
|
|
27
27
|
* @memberof PreviewAutomationRulesResource
|
|
28
28
|
*/
|
|
29
29
|
tooComplex: boolean;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PreviewAutomationRulesResource
|
|
34
|
-
*/
|
|
35
|
-
query?: string | null;
|
|
36
30
|
}
|
|
37
31
|
/**
|
|
38
32
|
* Check if a given object implements the PreviewAutomationRulesResource interface.
|
|
@@ -38,7 +38,6 @@ function PreviewAutomationRulesResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
38
38
|
return {
|
|
39
39
|
'count': json['count'],
|
|
40
40
|
'tooComplex': json['too_complex'],
|
|
41
|
-
'query': json['query'] == null ? undefined : json['query'],
|
|
42
41
|
};
|
|
43
42
|
}
|
|
44
43
|
function PreviewAutomationRulesResourceToJSON(json) {
|
|
@@ -52,6 +51,5 @@ function PreviewAutomationRulesResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
51
|
return {
|
|
53
52
|
'count': value['count'],
|
|
54
53
|
'too_complex': value['tooComplex'],
|
|
55
|
-
'query': value['query'],
|
|
56
54
|
};
|
|
57
55
|
}
|
|
@@ -110,6 +110,12 @@ export interface ProductCategoryResource {
|
|
|
110
110
|
* @memberof ProductCategoryResource
|
|
111
111
|
*/
|
|
112
112
|
descriptions: Array<DescriptionResource> | null;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof ProductCategoryResource
|
|
117
|
+
*/
|
|
118
|
+
linkedProductsCount: number;
|
|
113
119
|
}
|
|
114
120
|
/**
|
|
115
121
|
* Check if a given object implements the ProductCategoryResource interface.
|
|
@@ -51,6 +51,8 @@ function instanceOfProductCategoryResource(value) {
|
|
|
51
51
|
return false;
|
|
52
52
|
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
53
53
|
return false;
|
|
54
|
+
if (!('linkedProductsCount' in value) || value['linkedProductsCount'] === undefined)
|
|
55
|
+
return false;
|
|
54
56
|
return true;
|
|
55
57
|
}
|
|
56
58
|
function ProductCategoryResourceFromJSON(json) {
|
|
@@ -76,6 +78,7 @@ function ProductCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
78
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
77
79
|
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
78
80
|
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
81
|
+
'linkedProductsCount': json['linkedProductsCount'],
|
|
79
82
|
};
|
|
80
83
|
}
|
|
81
84
|
function ProductCategoryResourceToJSON(json) {
|
|
@@ -102,5 +105,6 @@ function ProductCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
105
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
103
106
|
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
104
107
|
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
108
|
+
'linkedProductsCount': value['linkedProductsCount'],
|
|
105
109
|
};
|
|
106
110
|
}
|
|
@@ -36,6 +36,8 @@ function instanceOfProductChildResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('warranty' in value) || value['warranty'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('isWarrantyOverridden' in value) || value['isWarrantyOverridden'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('sku' in value) || value['sku'] === undefined)
|
|
@@ -86,6 +88,7 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
88
|
'modelNumber': json['modelNumber'],
|
|
87
89
|
'weight': json['weight'],
|
|
88
90
|
'warranty': json['warranty'],
|
|
91
|
+
'isWarrantyOverridden': json['isWarrantyOverridden'],
|
|
89
92
|
'stock': json['stock'],
|
|
90
93
|
'sku': json['sku'],
|
|
91
94
|
'buyPrice': json['buyPrice'],
|
|
@@ -123,6 +126,7 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
123
126
|
'modelNumber': value['modelNumber'],
|
|
124
127
|
'weight': value['weight'],
|
|
125
128
|
'warranty': value['warranty'],
|
|
129
|
+
'isWarrantyOverridden': value['isWarrantyOverridden'],
|
|
126
130
|
'stock': value['stock'],
|
|
127
131
|
'sku': value['sku'],
|
|
128
132
|
'buyPrice': value['buyPrice'],
|
|
@@ -35,12 +35,24 @@ export interface ProductChildSiteDetailResource {
|
|
|
35
35
|
* @memberof ProductChildSiteDetailResource
|
|
36
36
|
*/
|
|
37
37
|
name: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof ProductChildSiteDetailResource
|
|
42
|
+
*/
|
|
43
|
+
isNameOverridden: boolean;
|
|
38
44
|
/**
|
|
39
45
|
*
|
|
40
46
|
* @type {string}
|
|
41
47
|
* @memberof ProductChildSiteDetailResource
|
|
42
48
|
*/
|
|
43
49
|
slug: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof ProductChildSiteDetailResource
|
|
54
|
+
*/
|
|
55
|
+
isSlugOverridden: boolean;
|
|
44
56
|
/**
|
|
45
57
|
*
|
|
46
58
|
* @type {string}
|
|
@@ -53,6 +65,12 @@ export interface ProductChildSiteDetailResource {
|
|
|
53
65
|
* @memberof ProductChildSiteDetailResource
|
|
54
66
|
*/
|
|
55
67
|
displayName: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof ProductChildSiteDetailResource
|
|
72
|
+
*/
|
|
73
|
+
isDisplayNameOverridden: boolean;
|
|
56
74
|
/**
|
|
57
75
|
*
|
|
58
76
|
* @type {number}
|
|
@@ -30,12 +30,18 @@ function instanceOfProductChildSiteDetailResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('name' in value) || value['name'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('isNameOverridden' in value) || value['isNameOverridden'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('slug' in value) || value['slug'] === undefined)
|
|
34
36
|
return false;
|
|
37
|
+
if (!('isSlugOverridden' in value) || value['isSlugOverridden'] === undefined)
|
|
38
|
+
return false;
|
|
35
39
|
if (!('description' in value) || value['description'] === undefined)
|
|
36
40
|
return false;
|
|
37
41
|
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
38
42
|
return false;
|
|
43
|
+
if (!('isDisplayNameOverridden' in value) || value['isDisplayNameOverridden'] === undefined)
|
|
44
|
+
return false;
|
|
39
45
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined)
|
|
40
46
|
return false;
|
|
41
47
|
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
@@ -57,9 +63,12 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
57
63
|
'id': json['id'],
|
|
58
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
59
65
|
'name': json['name'],
|
|
66
|
+
'isNameOverridden': json['isNameOverridden'],
|
|
60
67
|
'slug': json['slug'],
|
|
68
|
+
'isSlugOverridden': json['isSlugOverridden'],
|
|
61
69
|
'description': json['description'],
|
|
62
70
|
'displayName': json['displayName'],
|
|
71
|
+
'isDisplayNameOverridden': json['isDisplayNameOverridden'],
|
|
63
72
|
'rrpPrice': json['rrpPrice'],
|
|
64
73
|
'salePrice': json['salePrice'],
|
|
65
74
|
'isDisabled': json['isDisabled'],
|
|
@@ -80,9 +89,12 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
80
89
|
'id': value['id'],
|
|
81
90
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
82
91
|
'name': value['name'],
|
|
92
|
+
'isNameOverridden': value['isNameOverridden'],
|
|
83
93
|
'slug': value['slug'],
|
|
94
|
+
'isSlugOverridden': value['isSlugOverridden'],
|
|
84
95
|
'description': value['description'],
|
|
85
96
|
'displayName': value['displayName'],
|
|
97
|
+
'isDisplayNameOverridden': value['isDisplayNameOverridden'],
|
|
86
98
|
'rrpPrice': value['rrpPrice'],
|
|
87
99
|
'salePrice': value['salePrice'],
|
|
88
100
|
'isDisabled': value['isDisabled'],
|