@digital8/lighting-illusions-ts-sdk 0.0.954 → 0.0.955
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 +0 -2
- package/README.md +3 -5
- package/dist/apis/ProductCategoryApi.d.ts +3 -18
- package/dist/apis/ProductCategoryApi.js +5 -56
- package/dist/models/CategoryAutomationRuleResource.d.ts +3 -3
- package/dist/models/CategoryAutomationRuleResource.js +5 -3
- package/dist/models/GetAllProductChildRequest.d.ts +0 -6
- package/dist/models/GetAllProductChildRequest.js +0 -2
- package/dist/models/IndexProductCategoryRequest.d.ts +0 -2
- package/dist/models/IndexProductCategoryRequest.js +1 -3
- package/dist/models/IndexProductChildRequest.d.ts +0 -6
- package/dist/models/IndexProductChildRequest.js +0 -2
- package/dist/models/PreviewAutomationRulesResource.d.ts +6 -0
- package/dist/models/PreviewAutomationRulesResource.js +2 -0
- package/dist/models/ProductAggregationResource.d.ts +2 -2
- package/dist/models/ProductCategoryResource.d.ts +0 -6
- package/dist/models/ProductCategoryResource.js +0 -4
- package/dist/models/ProductChildResource.d.ts +0 -6
- package/dist/models/ProductChildResource.js +0 -4
- package/dist/models/ProductChildSiteDetailResource.d.ts +0 -18
- package/dist/models/ProductChildSiteDetailResource.js +0 -12
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +3 -3
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +5 -3
- package/dist/models/StoreProductChildRequest.d.ts +1 -7
- package/dist/models/StoreProductChildRequest.js +4 -6
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +0 -18
- package/dist/models/StoreProductChildRequestSitesInner.js +0 -12
- package/dist/models/UpdateProductChildRequest.d.ts +0 -6
- package/dist/models/UpdateProductChildRequest.js +0 -4
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/CategoryAutomationRuleResource.md +3 -3
- package/docs/GetAllProductChildRequest.md +0 -2
- package/docs/IndexProductChildRequest.md +0 -2
- package/docs/PreviewAutomationRulesResource.md +2 -0
- package/docs/ProductAggregationResource.md +1 -1
- package/docs/ProductCategoryApi.md +6 -83
- package/docs/ProductCategoryResource.md +0 -2
- package/docs/ProductChildResource.md +0 -2
- package/docs/ProductChildSiteDetailResource.md +0 -6
- package/docs/StoreProductCategoryRequestAutomationRulesInner.md +2 -2
- package/docs/StoreProductChildRequest.md +0 -2
- package/docs/StoreProductChildRequestSitesInner.md +0 -6
- package/docs/UpdateProductChildRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +4 -62
- package/src/models/CategoryAutomationRuleResource.ts +7 -6
- package/src/models/GetAllProductChildRequest.ts +0 -8
- package/src/models/IndexProductCategoryRequest.ts +1 -3
- package/src/models/IndexProductChildRequest.ts +0 -8
- package/src/models/PreviewAutomationRulesResource.ts +8 -0
- package/src/models/ProductAggregationResource.ts +2 -2
- package/src/models/ProductCategoryResource.ts +0 -9
- package/src/models/ProductChildResource.ts +0 -9
- package/src/models/ProductChildSiteDetailResource.ts +0 -27
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +7 -6
- package/src/models/StoreProductChildRequest.ts +4 -12
- package/src/models/StoreProductChildRequestSitesInner.ts +0 -27
- package/src/models/UpdateProductChildRequest.ts +0 -9
- package/src/models/index.ts +0 -1
- package/dist/models/GetHierarchyProductCategoryRequest.d.ts +0 -32
- package/dist/models/GetHierarchyProductCategoryRequest.js +0 -51
- package/docs/GetHierarchyProductCategoryRequest.md +0 -34
- package/src/models/GetHierarchyProductCategoryRequest.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -83,7 +83,6 @@ docs/GetAllProductChildRequest.md
|
|
|
83
83
|
docs/GetAllProductRequest.md
|
|
84
84
|
docs/GetAllProductTypeRequest.md
|
|
85
85
|
docs/GetAllSupplierRequest.md
|
|
86
|
-
docs/GetHierarchyProductCategoryRequest.md
|
|
87
86
|
docs/GlobalSearchCategoryResource.md
|
|
88
87
|
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
89
88
|
docs/GlobalSearchProductResource.md
|
|
@@ -391,7 +390,6 @@ src/models/GetAllProductChildRequest.ts
|
|
|
391
390
|
src/models/GetAllProductRequest.ts
|
|
392
391
|
src/models/GetAllProductTypeRequest.ts
|
|
393
392
|
src/models/GetAllSupplierRequest.ts
|
|
394
|
-
src/models/GetHierarchyProductCategoryRequest.ts
|
|
395
393
|
src/models/GlobalSearchCategoryResource.ts
|
|
396
394
|
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
397
395
|
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.955
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -122,10 +122,9 @@ 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
|
|
126
125
|
*ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
|
|
127
126
|
*ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
|
|
128
|
-
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#
|
|
127
|
+
*ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
|
|
129
128
|
*ProductCategoryApi* | [**indexProductCategory**](docs/ProductCategoryApi.md#indexproductcategoryoperation) | **POST** /admin-api/product-category/list | Auto-generated: indexProductCategory
|
|
130
129
|
*ProductCategoryApi* | [**previewAutomationRulesProductCategory**](docs/ProductCategoryApi.md#previewautomationrulesproductcategoryoperation) | **POST** /admin-api/product-category/preview-automation-rules | Auto-generated: previewAutomationRulesProductCategory
|
|
131
130
|
*ProductCategoryApi* | [**showProductCategory**](docs/ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory
|
|
@@ -244,7 +243,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
244
243
|
- [GetAllProductRequest](docs/GetAllProductRequest.md)
|
|
245
244
|
- [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
|
|
246
245
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
247
|
-
- [GetHierarchyProductCategoryRequest](docs/GetHierarchyProductCategoryRequest.md)
|
|
248
246
|
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
249
247
|
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
250
248
|
- [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
|
|
@@ -465,7 +463,7 @@ and is automatically generated by the
|
|
|
465
463
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
466
464
|
|
|
467
465
|
- API version: `1.0.0`
|
|
468
|
-
- Package version: `0.0.
|
|
466
|
+
- Package version: `0.0.955`
|
|
469
467
|
- Generator version: `7.19.0`
|
|
470
468
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
471
469
|
|
|
@@ -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,
|
|
13
|
+
import type { AttachProductsProductCategoryRequest, DetachProductsProductCategoryRequest, GenericResponse, GetAllProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
|
|
14
14
|
export interface AttachProductsProductCategoryOperationRequest {
|
|
15
15
|
productCategory: number;
|
|
16
16
|
attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
|
|
@@ -25,10 +25,6 @@ export interface DetachProductsProductCategoryOperationRequest {
|
|
|
25
25
|
productCategory: number;
|
|
26
26
|
detachProductsProductCategoryRequest?: DetachProductsProductCategoryRequest;
|
|
27
27
|
}
|
|
28
|
-
export interface GetAllChildrenProductCategoryRequest {
|
|
29
|
-
productCategory: number;
|
|
30
|
-
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
31
|
-
}
|
|
32
28
|
export interface GetAllProductCategoryOperationRequest {
|
|
33
29
|
getAllProductCategoryRequest?: GetAllProductCategoryRequest;
|
|
34
30
|
}
|
|
@@ -36,9 +32,6 @@ export interface GetChildrenProductCategoryRequest {
|
|
|
36
32
|
productCategory: number;
|
|
37
33
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
38
34
|
}
|
|
39
|
-
export interface GetHierarchyProductCategoryOperationRequest {
|
|
40
|
-
getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
|
|
41
|
-
}
|
|
42
35
|
export interface IndexProductCategoryOperationRequest {
|
|
43
36
|
indexProductCategoryRequest?: IndexProductCategoryRequest;
|
|
44
37
|
}
|
|
@@ -91,14 +84,6 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
91
84
|
* Auto-generated: detachProductsProductCategory
|
|
92
85
|
*/
|
|
93
86
|
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>;
|
|
102
87
|
/**
|
|
103
88
|
* Auto-generated: getAllProductCategory
|
|
104
89
|
*/
|
|
@@ -118,11 +103,11 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
|
|
|
118
103
|
/**
|
|
119
104
|
* Auto-generated: getHierarchyProductCategory
|
|
120
105
|
*/
|
|
121
|
-
getHierarchyProductCategoryRaw(
|
|
106
|
+
getHierarchyProductCategoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>>;
|
|
122
107
|
/**
|
|
123
108
|
* Auto-generated: getHierarchyProductCategory
|
|
124
109
|
*/
|
|
125
|
-
getHierarchyProductCategory(
|
|
110
|
+
getHierarchyProductCategory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse>;
|
|
126
111
|
/**
|
|
127
112
|
* Auto-generated: indexProductCategory
|
|
128
113
|
*/
|
|
@@ -263,54 +263,6 @@ 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
|
-
};
|
|
314
266
|
/**
|
|
315
267
|
* Auto-generated: getAllProductCategory
|
|
316
268
|
*/
|
|
@@ -407,7 +359,7 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
407
359
|
/**
|
|
408
360
|
* Auto-generated: getHierarchyProductCategory
|
|
409
361
|
*/
|
|
410
|
-
ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (
|
|
362
|
+
ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (initOverrides) {
|
|
411
363
|
return __awaiter(this, void 0, void 0, function () {
|
|
412
364
|
var queryParameters, headerParameters, urlPath, response;
|
|
413
365
|
return __generator(this, function (_a) {
|
|
@@ -415,14 +367,12 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
415
367
|
case 0:
|
|
416
368
|
queryParameters = {};
|
|
417
369
|
headerParameters = {};
|
|
418
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
419
370
|
urlPath = "/admin-api/product-category/hierarchy";
|
|
420
371
|
return [4 /*yield*/, this.request({
|
|
421
372
|
path: urlPath,
|
|
422
|
-
method: '
|
|
373
|
+
method: 'GET',
|
|
423
374
|
headers: headerParameters,
|
|
424
375
|
query: queryParameters,
|
|
425
|
-
body: (0, index_1.GetHierarchyProductCategoryRequestToJSON)(requestParameters['getHierarchyProductCategoryRequest']),
|
|
426
376
|
}, initOverrides)];
|
|
427
377
|
case 1:
|
|
428
378
|
response = _a.sent();
|
|
@@ -434,13 +384,12 @@ var ProductCategoryApi = /** @class */ (function (_super) {
|
|
|
434
384
|
/**
|
|
435
385
|
* Auto-generated: getHierarchyProductCategory
|
|
436
386
|
*/
|
|
437
|
-
ProductCategoryApi.prototype.getHierarchyProductCategory = function () {
|
|
438
|
-
return __awaiter(this,
|
|
387
|
+
ProductCategoryApi.prototype.getHierarchyProductCategory = function (initOverrides) {
|
|
388
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
439
389
|
var response;
|
|
440
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
441
390
|
return __generator(this, function (_a) {
|
|
442
391
|
switch (_a.label) {
|
|
443
|
-
case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(
|
|
392
|
+
case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(initOverrides)];
|
|
444
393
|
case 1:
|
|
445
394
|
response = _a.sent();
|
|
446
395
|
return [4 /*yield*/, response.value()];
|
|
@@ -35,10 +35,10 @@ export interface CategoryAutomationRuleResource {
|
|
|
35
35
|
comparisonType: object;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {number}
|
|
39
39
|
* @memberof CategoryAutomationRuleResource
|
|
40
40
|
*/
|
|
41
|
-
groupId
|
|
41
|
+
groupId: number;
|
|
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
|
+
valueIds?: string | null;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Check if a given object implements the CategoryAutomationRuleResource interface.
|
|
@@ -26,6 +26,8 @@ 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;
|
|
29
31
|
if (!('value' in value) || value['value'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
return true;
|
|
@@ -41,10 +43,10 @@ function CategoryAutomationRuleResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
41
43
|
'id': json['id'] == null ? undefined : json['id'],
|
|
42
44
|
'fieldType': json['fieldType'],
|
|
43
45
|
'comparisonType': json['comparisonType'],
|
|
44
|
-
'groupId': json['groupId']
|
|
46
|
+
'groupId': json['groupId'],
|
|
45
47
|
'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
|
|
46
48
|
'value': json['value'],
|
|
47
|
-
'
|
|
49
|
+
'valueIds': json['valueIds'] == null ? undefined : json['valueIds'],
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
function CategoryAutomationRuleResourceToJSON(json) {
|
|
@@ -62,6 +64,6 @@ function CategoryAutomationRuleResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
62
64
|
'groupId': value['groupId'],
|
|
63
65
|
'relatedId': value['relatedId'],
|
|
64
66
|
'value': value['value'],
|
|
65
|
-
'
|
|
67
|
+
'valueIds': value['valueIds'],
|
|
66
68
|
};
|
|
67
69
|
}
|
|
@@ -87,12 +87,6 @@ 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>;
|
|
96
90
|
}
|
|
97
91
|
/**
|
|
98
92
|
* @export
|
|
@@ -78,7 +78,6 @@ 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'],
|
|
82
81
|
};
|
|
83
82
|
}
|
|
84
83
|
function GetAllProductChildRequestToJSON(json) {
|
|
@@ -102,6 +101,5 @@ function GetAllProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
101
|
'category-id': value['categoryId'],
|
|
103
102
|
'supplier-id': value['supplierId'],
|
|
104
103
|
'productType-id': value['productTypeId'],
|
|
105
|
-
'parent-is_accessory': value['parentIsAccessory'],
|
|
106
104
|
};
|
|
107
105
|
}
|
|
@@ -128,8 +128,6 @@ 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";
|
|
133
131
|
};
|
|
134
132
|
export type IndexProductCategoryRequestRelatedTypeEnum = typeof IndexProductCategoryRequestRelatedTypeEnum[keyof typeof IndexProductCategoryRequestRelatedTypeEnum];
|
|
135
133
|
/**
|
|
@@ -44,9 +44,7 @@ exports.IndexProductCategoryRequestSortDirectionEnum = {
|
|
|
44
44
|
*/
|
|
45
45
|
exports.IndexProductCategoryRequestRelatedTypeEnum = {
|
|
46
46
|
Product: 'product',
|
|
47
|
-
ProductChildSiteDetail: 'productChildSiteDetail'
|
|
48
|
-
Attribute: 'attribute',
|
|
49
|
-
AttributeValue: 'attributeValue'
|
|
47
|
+
ProductChildSiteDetail: 'productChildSiteDetail'
|
|
50
48
|
};
|
|
51
49
|
/**
|
|
52
50
|
* Check if a given object implements the IndexProductCategoryRequest interface.
|
|
@@ -81,12 +81,6 @@ 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>;
|
|
90
84
|
/**
|
|
91
85
|
*
|
|
92
86
|
* @type {number}
|
|
@@ -85,7 +85,6 @@ 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'],
|
|
89
88
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
90
89
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
91
90
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -111,7 +110,6 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
111
110
|
'category-id': value['categoryId'],
|
|
112
111
|
'supplier-id': value['supplierId'],
|
|
113
112
|
'productType-id': value['productTypeId'],
|
|
114
|
-
'parent-is_accessory': value['parentIsAccessory'],
|
|
115
113
|
'related_id': value['relatedId'],
|
|
116
114
|
'related_type': value['relatedType'],
|
|
117
115
|
'includes_relations': value['includesRelations'],
|
|
@@ -27,6 +27,12 @@ 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;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the PreviewAutomationRulesResource interface.
|
|
@@ -38,6 +38,7 @@ 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'],
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
function PreviewAutomationRulesResourceToJSON(json) {
|
|
@@ -51,5 +52,6 @@ function PreviewAutomationRulesResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
52
|
return {
|
|
52
53
|
'count': value['count'],
|
|
53
54
|
'too_complex': value['tooComplex'],
|
|
55
|
+
'query': value['query'],
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -110,12 +110,6 @@ 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;
|
|
119
113
|
}
|
|
120
114
|
/**
|
|
121
115
|
* Check if a given object implements the ProductCategoryResource interface.
|
|
@@ -51,8 +51,6 @@ 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;
|
|
56
54
|
return true;
|
|
57
55
|
}
|
|
58
56
|
function ProductCategoryResourceFromJSON(json) {
|
|
@@ -78,7 +76,6 @@ function ProductCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
76
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
79
77
|
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
80
78
|
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
81
|
-
'linkedProductsCount': json['linkedProductsCount'],
|
|
82
79
|
};
|
|
83
80
|
}
|
|
84
81
|
function ProductCategoryResourceToJSON(json) {
|
|
@@ -105,6 +102,5 @@ function ProductCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
105
102
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
106
103
|
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
107
104
|
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
108
|
-
'linkedProductsCount': value['linkedProductsCount'],
|
|
109
105
|
};
|
|
110
106
|
}
|
|
@@ -36,8 +36,6 @@ 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;
|
|
41
39
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('sku' in value) || value['sku'] === undefined)
|
|
@@ -88,7 +86,6 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
86
|
'modelNumber': json['modelNumber'],
|
|
89
87
|
'weight': json['weight'],
|
|
90
88
|
'warranty': json['warranty'],
|
|
91
|
-
'isWarrantyOverridden': json['isWarrantyOverridden'],
|
|
92
89
|
'stock': json['stock'],
|
|
93
90
|
'sku': json['sku'],
|
|
94
91
|
'buyPrice': json['buyPrice'],
|
|
@@ -126,7 +123,6 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
126
123
|
'modelNumber': value['modelNumber'],
|
|
127
124
|
'weight': value['weight'],
|
|
128
125
|
'warranty': value['warranty'],
|
|
129
|
-
'isWarrantyOverridden': value['isWarrantyOverridden'],
|
|
130
126
|
'stock': value['stock'],
|
|
131
127
|
'sku': value['sku'],
|
|
132
128
|
'buyPrice': value['buyPrice'],
|
|
@@ -35,24 +35,12 @@ 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;
|
|
44
38
|
/**
|
|
45
39
|
*
|
|
46
40
|
* @type {string}
|
|
47
41
|
* @memberof ProductChildSiteDetailResource
|
|
48
42
|
*/
|
|
49
43
|
slug: string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {boolean}
|
|
53
|
-
* @memberof ProductChildSiteDetailResource
|
|
54
|
-
*/
|
|
55
|
-
isSlugOverridden: boolean;
|
|
56
44
|
/**
|
|
57
45
|
*
|
|
58
46
|
* @type {string}
|
|
@@ -65,12 +53,6 @@ export interface ProductChildSiteDetailResource {
|
|
|
65
53
|
* @memberof ProductChildSiteDetailResource
|
|
66
54
|
*/
|
|
67
55
|
displayName: string;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {boolean}
|
|
71
|
-
* @memberof ProductChildSiteDetailResource
|
|
72
|
-
*/
|
|
73
|
-
isDisplayNameOverridden: boolean;
|
|
74
56
|
/**
|
|
75
57
|
*
|
|
76
58
|
* @type {number}
|
|
@@ -30,18 +30,12 @@ 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;
|
|
35
33
|
if (!('slug' in value) || value['slug'] === undefined)
|
|
36
34
|
return false;
|
|
37
|
-
if (!('isSlugOverridden' in value) || value['isSlugOverridden'] === undefined)
|
|
38
|
-
return false;
|
|
39
35
|
if (!('description' in value) || value['description'] === undefined)
|
|
40
36
|
return false;
|
|
41
37
|
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
42
38
|
return false;
|
|
43
|
-
if (!('isDisplayNameOverridden' in value) || value['isDisplayNameOverridden'] === undefined)
|
|
44
|
-
return false;
|
|
45
39
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined)
|
|
46
40
|
return false;
|
|
47
41
|
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
@@ -63,12 +57,9 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
63
57
|
'id': json['id'],
|
|
64
58
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
65
59
|
'name': json['name'],
|
|
66
|
-
'isNameOverridden': json['isNameOverridden'],
|
|
67
60
|
'slug': json['slug'],
|
|
68
|
-
'isSlugOverridden': json['isSlugOverridden'],
|
|
69
61
|
'description': json['description'],
|
|
70
62
|
'displayName': json['displayName'],
|
|
71
|
-
'isDisplayNameOverridden': json['isDisplayNameOverridden'],
|
|
72
63
|
'rrpPrice': json['rrpPrice'],
|
|
73
64
|
'salePrice': json['salePrice'],
|
|
74
65
|
'isDisabled': json['isDisabled'],
|
|
@@ -89,12 +80,9 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
80
|
'id': value['id'],
|
|
90
81
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
91
82
|
'name': value['name'],
|
|
92
|
-
'isNameOverridden': value['isNameOverridden'],
|
|
93
83
|
'slug': value['slug'],
|
|
94
|
-
'isSlugOverridden': value['isSlugOverridden'],
|
|
95
84
|
'description': value['description'],
|
|
96
85
|
'displayName': value['displayName'],
|
|
97
|
-
'isDisplayNameOverridden': value['isDisplayNameOverridden'],
|
|
98
86
|
'rrpPrice': value['rrpPrice'],
|
|
99
87
|
'salePrice': value['salePrice'],
|
|
100
88
|
'isDisabled': value['isDisabled'],
|
|
@@ -32,7 +32,7 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
34
34
|
*/
|
|
35
|
-
groupId
|
|
35
|
+
groupId: number;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -47,10 +47,10 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
47
47
|
value?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {number}
|
|
50
|
+
* @type {Array<number>}
|
|
51
51
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
valueIds?: Array<number>;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* @export
|
|
@@ -50,6 +50,8 @@ function instanceOfStoreProductCategoryRequestAutomationRulesInner(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('comparisonType' in value) || value['comparisonType'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
+
if (!('groupId' in value) || value['groupId'] === undefined)
|
|
54
|
+
return false;
|
|
53
55
|
return true;
|
|
54
56
|
}
|
|
55
57
|
function StoreProductCategoryRequestAutomationRulesInnerFromJSON(json) {
|
|
@@ -62,10 +64,10 @@ function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json, igno
|
|
|
62
64
|
return {
|
|
63
65
|
'fieldType': json['field_type'],
|
|
64
66
|
'comparisonType': json['comparison_type'],
|
|
65
|
-
'groupId': json['group_id']
|
|
67
|
+
'groupId': json['group_id'],
|
|
66
68
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
69
|
'value': json['value'] == null ? undefined : json['value'],
|
|
68
|
-
'
|
|
70
|
+
'valueIds': json['value_ids'] == null ? undefined : json['value_ids'],
|
|
69
71
|
};
|
|
70
72
|
}
|
|
71
73
|
function StoreProductCategoryRequestAutomationRulesInnerToJSON(json) {
|
|
@@ -82,6 +84,6 @@ function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value, ignor
|
|
|
82
84
|
'group_id': value['groupId'],
|
|
83
85
|
'related_id': value['relatedId'],
|
|
84
86
|
'value': value['value'],
|
|
85
|
-
'
|
|
87
|
+
'value_ids': value['valueIds'],
|
|
86
88
|
};
|
|
87
89
|
}
|
|
@@ -60,12 +60,6 @@ export interface StoreProductChildRequest {
|
|
|
60
60
|
* @memberof StoreProductChildRequest
|
|
61
61
|
*/
|
|
62
62
|
warranty?: string;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {boolean}
|
|
66
|
-
* @memberof StoreProductChildRequest
|
|
67
|
-
*/
|
|
68
|
-
isWarrantyOverridden: boolean;
|
|
69
63
|
/**
|
|
70
64
|
*
|
|
71
65
|
* @type {boolean}
|
|
@@ -125,7 +119,7 @@ export interface StoreProductChildRequest {
|
|
|
125
119
|
* @type {Array<StoreProductChildRequestAttributeValuesInner>}
|
|
126
120
|
* @memberof StoreProductChildRequest
|
|
127
121
|
*/
|
|
128
|
-
attributeValues
|
|
122
|
+
attributeValues: Array<StoreProductChildRequestAttributeValuesInner>;
|
|
129
123
|
/**
|
|
130
124
|
*
|
|
131
125
|
* @type {Array<StoreProductChildRequestAssetsInner>}
|