@digital8/lighting-illusions-ts-sdk 0.0.991 → 0.0.992

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.
Files changed (76) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +3 -8
  3. package/dist/apis/AttributeApi.d.ts +1 -16
  4. package/dist/apis/AttributeApi.js +0 -58
  5. package/dist/apis/ProductCategoryApi.d.ts +4 -23
  6. package/dist/apis/ProductCategoryApi.js +7 -71
  7. package/dist/models/CategoryAutomationRuleResource.d.ts +3 -3
  8. package/dist/models/CategoryAutomationRuleResource.js +5 -3
  9. package/dist/models/GetAllProductChildRequest.d.ts +0 -6
  10. package/dist/models/GetAllProductChildRequest.js +0 -2
  11. package/dist/models/IndexProductCategoryRequest.d.ts +0 -2
  12. package/dist/models/IndexProductCategoryRequest.js +1 -3
  13. package/dist/models/IndexProductChildRequest.d.ts +0 -6
  14. package/dist/models/IndexProductChildRequest.js +0 -2
  15. package/dist/models/PreviewAutomationRulesResource.d.ts +6 -0
  16. package/dist/models/PreviewAutomationRulesResource.js +2 -0
  17. package/dist/models/ProductAggregationResource.d.ts +2 -2
  18. package/dist/models/ProductCategoryResource.d.ts +0 -6
  19. package/dist/models/ProductCategoryResource.js +0 -4
  20. package/dist/models/ProductChildResource.d.ts +0 -6
  21. package/dist/models/ProductChildResource.js +0 -4
  22. package/dist/models/ProductChildSiteDetailResource.d.ts +0 -18
  23. package/dist/models/ProductChildSiteDetailResource.js +0 -12
  24. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +3 -3
  25. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +5 -3
  26. package/dist/models/StoreProductChildRequest.d.ts +1 -7
  27. package/dist/models/StoreProductChildRequest.js +4 -6
  28. package/dist/models/StoreProductChildRequestSitesInner.d.ts +0 -18
  29. package/dist/models/StoreProductChildRequestSitesInner.js +0 -12
  30. package/dist/models/UpdateProductChildRequest.d.ts +0 -12
  31. package/dist/models/UpdateProductChildRequest.js +0 -6
  32. package/dist/models/index.d.ts +0 -3
  33. package/dist/models/index.js +0 -3
  34. package/docs/AttributeApi.md +0 -66
  35. package/docs/CategoryAutomationRuleResource.md +3 -3
  36. package/docs/GetAllProductChildRequest.md +0 -2
  37. package/docs/IndexProductChildRequest.md +0 -2
  38. package/docs/PreviewAutomationRulesResource.md +2 -0
  39. package/docs/ProductAggregationResource.md +1 -1
  40. package/docs/ProductCategoryApi.md +6 -83
  41. package/docs/ProductCategoryResource.md +0 -2
  42. package/docs/ProductChildResource.md +0 -2
  43. package/docs/ProductChildSiteDetailResource.md +0 -6
  44. package/docs/StoreProductCategoryRequestAutomationRulesInner.md +2 -2
  45. package/docs/StoreProductChildRequest.md +0 -2
  46. package/docs/StoreProductChildRequestSitesInner.md +0 -6
  47. package/docs/UpdateProductChildRequest.md +0 -4
  48. package/package.json +1 -1
  49. package/src/apis/AttributeApi.ts +0 -50
  50. package/src/apis/ProductCategoryApi.ts +6 -72
  51. package/src/models/CategoryAutomationRuleResource.ts +7 -6
  52. package/src/models/GetAllProductChildRequest.ts +0 -8
  53. package/src/models/IndexProductCategoryRequest.ts +1 -3
  54. package/src/models/IndexProductChildRequest.ts +0 -8
  55. package/src/models/PreviewAutomationRulesResource.ts +8 -0
  56. package/src/models/ProductAggregationResource.ts +2 -2
  57. package/src/models/ProductCategoryResource.ts +0 -9
  58. package/src/models/ProductChildResource.ts +0 -9
  59. package/src/models/ProductChildSiteDetailResource.ts +0 -27
  60. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +7 -6
  61. package/src/models/StoreProductChildRequest.ts +4 -12
  62. package/src/models/StoreProductChildRequestSitesInner.ts +0 -27
  63. package/src/models/UpdateProductChildRequest.ts +0 -17
  64. package/src/models/index.ts +0 -3
  65. package/dist/models/GetHierarchyProductCategoryRequest.d.ts +0 -32
  66. package/dist/models/GetHierarchyProductCategoryRequest.js +0 -51
  67. package/dist/models/IndexAttributeValueRequest.d.ts +0 -105
  68. package/dist/models/IndexAttributeValueRequest.js +0 -88
  69. package/dist/models/PaginatedAttributeValueResourceResponse.d.ts +0 -40
  70. package/dist/models/PaginatedAttributeValueResourceResponse.js +0 -57
  71. package/docs/GetHierarchyProductCategoryRequest.md +0 -34
  72. package/docs/IndexAttributeValueRequest.md +0 -50
  73. package/docs/PaginatedAttributeValueResourceResponse.md +0 -36
  74. package/src/models/GetHierarchyProductCategoryRequest.ts +0 -66
  75. package/src/models/IndexAttributeValueRequest.ts +0 -159
  76. package/src/models/PaginatedAttributeValueResourceResponse.ts +0 -90
@@ -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
@@ -96,7 +95,6 @@ docs/GoogleCategoryApi.md
96
95
  docs/GoogleCategoryResource.md
97
96
  docs/GoogleCategoryResourceArrayResponse.md
98
97
  docs/IndexAttributeRequest.md
99
- docs/IndexAttributeValueRequest.md
100
98
  docs/IndexDefinitionRequest.md
101
99
  docs/IndexDocumentRequest.md
102
100
  docs/IndexExternalApiLogRequest.md
@@ -127,7 +125,6 @@ docs/PaginatedAttributeListResourceResponse.md
127
125
  docs/PaginatedAttributeLiteResourceResponse.md
128
126
  docs/PaginatedAttributeProductTypeRelationResourceResponse.md
129
127
  docs/PaginatedAttributeResourceResponse.md
130
- docs/PaginatedAttributeValueResourceResponse.md
131
128
  docs/PaginatedCategoryFrontendResourceResponse.md
132
129
  docs/PaginatedDefinitionListResourceResponse.md
133
130
  docs/PaginatedDefinitionResourceResponse.md
@@ -393,7 +390,6 @@ src/models/GetAllProductChildRequest.ts
393
390
  src/models/GetAllProductRequest.ts
394
391
  src/models/GetAllProductTypeRequest.ts
395
392
  src/models/GetAllSupplierRequest.ts
396
- src/models/GetHierarchyProductCategoryRequest.ts
397
393
  src/models/GlobalSearchCategoryResource.ts
398
394
  src/models/GlobalSearchCategoryResourceArrayResponse.ts
399
395
  src/models/GlobalSearchProductResource.ts
@@ -405,7 +401,6 @@ src/models/GlobalSearchResponseResourceArrayResponse.ts
405
401
  src/models/GoogleCategoryResource.ts
406
402
  src/models/GoogleCategoryResourceArrayResponse.ts
407
403
  src/models/IndexAttributeRequest.ts
408
- src/models/IndexAttributeValueRequest.ts
409
404
  src/models/IndexDefinitionRequest.ts
410
405
  src/models/IndexDocumentRequest.ts
411
406
  src/models/IndexExternalApiLogRequest.ts
@@ -435,7 +430,6 @@ src/models/PaginatedAttributeListResourceResponse.ts
435
430
  src/models/PaginatedAttributeLiteResourceResponse.ts
436
431
  src/models/PaginatedAttributeProductTypeRelationResourceResponse.ts
437
432
  src/models/PaginatedAttributeResourceResponse.ts
438
- src/models/PaginatedAttributeValueResourceResponse.ts
439
433
  src/models/PaginatedCategoryFrontendResourceResponse.ts
440
434
  src/models/PaginatedDefinitionListResourceResponse.ts
441
435
  src/models/PaginatedDefinitionResourceResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.991
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.992
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -60,7 +60,6 @@ All URIs are relative to *http://localhost/api*
60
60
  *AttributeApi* | [**detachProductTypeAttribute**](docs/AttributeApi.md#detachproducttypeattribute) | **POST** /admin-api/attribute/{attribute}/detach-product-type/{productType} | Auto-generated: detachProductTypeAttribute
61
61
  *AttributeApi* | [**getAllAttribute**](docs/AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute
62
62
  *AttributeApi* | [**indexAttribute**](docs/AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute
63
- *AttributeApi* | [**indexAttributeValue**](docs/AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue
64
63
  *AttributeApi* | [**showAttribute**](docs/AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute
65
64
  *AttributeApi* | [**storeAttribute**](docs/AttributeApi.md#storeattributeoperation) | **POST** /admin-api/attribute/create | Auto-generated: storeAttribute
66
65
  *AttributeApi* | [**storeAttributeValue**](docs/AttributeApi.md#storeattributevalueoperation) | **POST** /admin-api/attribute/value/create | Auto-generated: storeAttributeValue
@@ -123,10 +122,9 @@ All URIs are relative to *http://localhost/api*
123
122
  *ProductCategoryApi* | [**bulkDetachProductsProductCategory**](docs/ProductCategoryApi.md#bulkdetachproductsproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/bulk-detach-products | Auto-generated: bulkDetachProductsProductCategory
124
123
  *ProductCategoryApi* | [**destroyProductCategory**](docs/ProductCategoryApi.md#destroyproductcategory) | **DELETE** /admin-api/product-category/{productCategory}/delete | Auto-generated: destroyProductCategory
125
124
  *ProductCategoryApi* | [**detachProductsProductCategory**](docs/ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory
126
- *ProductCategoryApi* | [**getAllChildrenProductCategory**](docs/ProductCategoryApi.md#getallchildrenproductcategory) | **POST** /admin-api/product-category/{productCategory}/children/all | Auto-generated: getAllChildrenProductCategory
127
125
  *ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
128
126
  *ProductCategoryApi* | [**getChildrenProductCategory**](docs/ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory
129
- *ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategoryoperation) | **POST** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
127
+ *ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
130
128
  *ProductCategoryApi* | [**indexProductCategory**](docs/ProductCategoryApi.md#indexproductcategoryoperation) | **POST** /admin-api/product-category/list | Auto-generated: indexProductCategory
131
129
  *ProductCategoryApi* | [**previewAutomationRulesProductCategory**](docs/ProductCategoryApi.md#previewautomationrulesproductcategoryoperation) | **POST** /admin-api/product-category/preview-automation-rules | Auto-generated: previewAutomationRulesProductCategory
132
130
  *ProductCategoryApi* | [**showProductCategory**](docs/ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory
@@ -245,7 +243,6 @@ All URIs are relative to *http://localhost/api*
245
243
  - [GetAllProductRequest](docs/GetAllProductRequest.md)
246
244
  - [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
247
245
  - [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
248
- - [GetHierarchyProductCategoryRequest](docs/GetHierarchyProductCategoryRequest.md)
249
246
  - [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
250
247
  - [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
251
248
  - [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
@@ -257,7 +254,6 @@ All URIs are relative to *http://localhost/api*
257
254
  - [GoogleCategoryResource](docs/GoogleCategoryResource.md)
258
255
  - [GoogleCategoryResourceArrayResponse](docs/GoogleCategoryResourceArrayResponse.md)
259
256
  - [IndexAttributeRequest](docs/IndexAttributeRequest.md)
260
- - [IndexAttributeValueRequest](docs/IndexAttributeValueRequest.md)
261
257
  - [IndexDefinitionRequest](docs/IndexDefinitionRequest.md)
262
258
  - [IndexDocumentRequest](docs/IndexDocumentRequest.md)
263
259
  - [IndexExternalApiLogRequest](docs/IndexExternalApiLogRequest.md)
@@ -287,7 +283,6 @@ All URIs are relative to *http://localhost/api*
287
283
  - [PaginatedAttributeLiteResourceResponse](docs/PaginatedAttributeLiteResourceResponse.md)
288
284
  - [PaginatedAttributeProductTypeRelationResourceResponse](docs/PaginatedAttributeProductTypeRelationResourceResponse.md)
289
285
  - [PaginatedAttributeResourceResponse](docs/PaginatedAttributeResourceResponse.md)
290
- - [PaginatedAttributeValueResourceResponse](docs/PaginatedAttributeValueResourceResponse.md)
291
286
  - [PaginatedCategoryFrontendResourceResponse](docs/PaginatedCategoryFrontendResourceResponse.md)
292
287
  - [PaginatedDefinitionListResourceResponse](docs/PaginatedDefinitionListResourceResponse.md)
293
288
  - [PaginatedDefinitionResourceResponse](docs/PaginatedDefinitionResourceResponse.md)
@@ -468,7 +463,7 @@ and is automatically generated by the
468
463
  [OpenAPI Generator](https://openapi-generator.tech) project:
469
464
 
470
465
  - API version: `1.0.0`
471
- - Package version: `0.0.991`
466
+ - Package version: `0.0.992`
472
467
  - Generator version: `7.20.0`
473
468
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
474
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 { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, IndexAttributeValueRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, PaginatedAttributeValueResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
13
+ import type { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
14
14
  export interface AttachProductTypeAttributeOperationRequest {
15
15
  attribute: number;
16
16
  attachProductTypeAttributeRequest?: AttachProductTypeAttributeRequest;
@@ -32,9 +32,6 @@ export interface GetAllAttributeOperationRequest {
32
32
  export interface IndexAttributeOperationRequest {
33
33
  indexAttributeRequest?: IndexAttributeRequest;
34
34
  }
35
- export interface IndexAttributeValueOperationRequest {
36
- indexAttributeValueRequest?: IndexAttributeValueRequest;
37
- }
38
35
  export interface ShowAttributeRequest {
39
36
  attribute: number;
40
37
  }
@@ -139,18 +136,6 @@ export declare class AttributeApi extends runtime.BaseAPI {
139
136
  * Auto-generated: indexAttribute
140
137
  */
141
138
  indexAttribute(requestParameters?: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeListResourceResponse>;
142
- /**
143
- * Creates request options for indexAttributeValue without sending the request
144
- */
145
- indexAttributeValueRequestOpts(requestParameters: IndexAttributeValueOperationRequest): Promise<runtime.RequestOpts>;
146
- /**
147
- * Auto-generated: indexAttributeValue
148
- */
149
- indexAttributeValueRaw(requestParameters: IndexAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeValueResourceResponse>>;
150
- /**
151
- * Auto-generated: indexAttributeValue
152
- */
153
- indexAttributeValue(requestParameters?: IndexAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeValueResourceResponse>;
154
139
  /**
155
140
  * Creates request options for showAttribute without sending the request
156
141
  */
@@ -435,64 +435,6 @@ var AttributeApi = /** @class */ (function (_super) {
435
435
  });
436
436
  });
437
437
  };
438
- /**
439
- * Creates request options for indexAttributeValue without sending the request
440
- */
441
- AttributeApi.prototype.indexAttributeValueRequestOpts = function (requestParameters) {
442
- return __awaiter(this, void 0, void 0, function () {
443
- var queryParameters, headerParameters, urlPath;
444
- return __generator(this, function (_a) {
445
- queryParameters = {};
446
- headerParameters = {};
447
- headerParameters['Content-Type'] = 'application/json';
448
- urlPath = "/admin-api/attribute/value/list";
449
- return [2 /*return*/, {
450
- path: urlPath,
451
- method: 'POST',
452
- headers: headerParameters,
453
- query: queryParameters,
454
- body: (0, index_1.IndexAttributeValueRequestToJSON)(requestParameters['indexAttributeValueRequest']),
455
- }];
456
- });
457
- });
458
- };
459
- /**
460
- * Auto-generated: indexAttributeValue
461
- */
462
- AttributeApi.prototype.indexAttributeValueRaw = function (requestParameters, initOverrides) {
463
- return __awaiter(this, void 0, void 0, function () {
464
- var requestOptions, response;
465
- return __generator(this, function (_a) {
466
- switch (_a.label) {
467
- case 0: return [4 /*yield*/, this.indexAttributeValueRequestOpts(requestParameters)];
468
- case 1:
469
- requestOptions = _a.sent();
470
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
471
- case 2:
472
- response = _a.sent();
473
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedAttributeValueResourceResponseFromJSON)(jsonValue); })];
474
- }
475
- });
476
- });
477
- };
478
- /**
479
- * Auto-generated: indexAttributeValue
480
- */
481
- AttributeApi.prototype.indexAttributeValue = function () {
482
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
483
- var response;
484
- if (requestParameters === void 0) { requestParameters = {}; }
485
- return __generator(this, function (_a) {
486
- switch (_a.label) {
487
- case 0: return [4 /*yield*/, this.indexAttributeValueRaw(requestParameters, initOverrides)];
488
- case 1:
489
- response = _a.sent();
490
- return [4 /*yield*/, response.value()];
491
- case 2: return [2 /*return*/, _a.sent()];
492
- }
493
- });
494
- });
495
- };
496
438
  /**
497
439
  * Creates request options for showAttribute without sending the request
498
440
  */
@@ -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, GetHierarchyProductCategoryRequest, IndexProductCategoryRequest, PaginatedProductCategoryListResourceResponse, PreviewAutomationRulesProductCategoryRequest, PreviewAutomationRulesResource, ProductCategoryHierarchyResourceArrayResponse, ProductCategoryListResourceArrayResponse, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
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
  }
@@ -107,18 +100,6 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
107
100
  * Auto-generated: detachProductsProductCategory
108
101
  */
109
102
  detachProductsProductCategory(requestParameters: DetachProductsProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryResource>;
110
- /**
111
- * Creates request options for getAllChildrenProductCategory without sending the request
112
- */
113
- getAllChildrenProductCategoryRequestOpts(requestParameters: GetAllChildrenProductCategoryRequest): Promise<runtime.RequestOpts>;
114
- /**
115
- * Auto-generated: getAllChildrenProductCategory
116
- */
117
- getAllChildrenProductCategoryRaw(requestParameters: GetAllChildrenProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryListResourceArrayResponse>>;
118
- /**
119
- * Auto-generated: getAllChildrenProductCategory
120
- */
121
- getAllChildrenProductCategory(requestParameters: GetAllChildrenProductCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryListResourceArrayResponse>;
122
103
  /**
123
104
  * Creates request options for getAllProductCategory without sending the request
124
105
  */
@@ -146,15 +127,15 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
146
127
  /**
147
128
  * Creates request options for getHierarchyProductCategory without sending the request
148
129
  */
149
- getHierarchyProductCategoryRequestOpts(requestParameters: GetHierarchyProductCategoryOperationRequest): Promise<runtime.RequestOpts>;
130
+ getHierarchyProductCategoryRequestOpts(): Promise<runtime.RequestOpts>;
150
131
  /**
151
132
  * Auto-generated: getHierarchyProductCategory
152
133
  */
153
- getHierarchyProductCategoryRaw(requestParameters: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>>;
134
+ getHierarchyProductCategoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>>;
154
135
  /**
155
136
  * Auto-generated: getHierarchyProductCategory
156
137
  */
157
- getHierarchyProductCategory(requestParameters?: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse>;
138
+ getHierarchyProductCategory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse>;
158
139
  /**
159
140
  * Creates request options for indexProductCategory without sending the request
160
141
  */
@@ -315,67 +315,6 @@ var ProductCategoryApi = /** @class */ (function (_super) {
315
315
  });
316
316
  });
317
317
  };
318
- /**
319
- * Creates request options for getAllChildrenProductCategory without sending the request
320
- */
321
- ProductCategoryApi.prototype.getAllChildrenProductCategoryRequestOpts = function (requestParameters) {
322
- return __awaiter(this, void 0, void 0, function () {
323
- var queryParameters, headerParameters, urlPath;
324
- return __generator(this, function (_a) {
325
- if (requestParameters['productCategory'] == null) {
326
- throw new runtime.RequiredError('productCategory', 'Required parameter "productCategory" was null or undefined when calling getAllChildrenProductCategory().');
327
- }
328
- queryParameters = {};
329
- headerParameters = {};
330
- headerParameters['Content-Type'] = 'application/json';
331
- urlPath = "/admin-api/product-category/{productCategory}/children/all";
332
- urlPath = urlPath.replace("{".concat("productCategory", "}"), encodeURIComponent(String(requestParameters['productCategory'])));
333
- return [2 /*return*/, {
334
- path: urlPath,
335
- method: 'POST',
336
- headers: headerParameters,
337
- query: queryParameters,
338
- body: (0, index_1.GetAllProductCategoryRequestToJSON)(requestParameters['getAllProductCategoryRequest']),
339
- }];
340
- });
341
- });
342
- };
343
- /**
344
- * Auto-generated: getAllChildrenProductCategory
345
- */
346
- ProductCategoryApi.prototype.getAllChildrenProductCategoryRaw = function (requestParameters, initOverrides) {
347
- return __awaiter(this, void 0, void 0, function () {
348
- var requestOptions, response;
349
- return __generator(this, function (_a) {
350
- switch (_a.label) {
351
- case 0: return [4 /*yield*/, this.getAllChildrenProductCategoryRequestOpts(requestParameters)];
352
- case 1:
353
- requestOptions = _a.sent();
354
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
355
- case 2:
356
- response = _a.sent();
357
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductCategoryListResourceArrayResponseFromJSON)(jsonValue); })];
358
- }
359
- });
360
- });
361
- };
362
- /**
363
- * Auto-generated: getAllChildrenProductCategory
364
- */
365
- ProductCategoryApi.prototype.getAllChildrenProductCategory = function (requestParameters, initOverrides) {
366
- return __awaiter(this, void 0, void 0, function () {
367
- var response;
368
- return __generator(this, function (_a) {
369
- switch (_a.label) {
370
- case 0: return [4 /*yield*/, this.getAllChildrenProductCategoryRaw(requestParameters, initOverrides)];
371
- case 1:
372
- response = _a.sent();
373
- return [4 /*yield*/, response.value()];
374
- case 2: return [2 /*return*/, _a.sent()];
375
- }
376
- });
377
- });
378
- };
379
318
  /**
380
319
  * Creates request options for getAllProductCategory without sending the request
381
320
  */
@@ -498,20 +437,18 @@ var ProductCategoryApi = /** @class */ (function (_super) {
498
437
  /**
499
438
  * Creates request options for getHierarchyProductCategory without sending the request
500
439
  */
501
- ProductCategoryApi.prototype.getHierarchyProductCategoryRequestOpts = function (requestParameters) {
440
+ ProductCategoryApi.prototype.getHierarchyProductCategoryRequestOpts = function () {
502
441
  return __awaiter(this, void 0, void 0, function () {
503
442
  var queryParameters, headerParameters, urlPath;
504
443
  return __generator(this, function (_a) {
505
444
  queryParameters = {};
506
445
  headerParameters = {};
507
- headerParameters['Content-Type'] = 'application/json';
508
446
  urlPath = "/admin-api/product-category/hierarchy";
509
447
  return [2 /*return*/, {
510
448
  path: urlPath,
511
- method: 'POST',
449
+ method: 'GET',
512
450
  headers: headerParameters,
513
451
  query: queryParameters,
514
- body: (0, index_1.GetHierarchyProductCategoryRequestToJSON)(requestParameters['getHierarchyProductCategoryRequest']),
515
452
  }];
516
453
  });
517
454
  });
@@ -519,12 +456,12 @@ var ProductCategoryApi = /** @class */ (function (_super) {
519
456
  /**
520
457
  * Auto-generated: getHierarchyProductCategory
521
458
  */
522
- ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (requestParameters, initOverrides) {
459
+ ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (initOverrides) {
523
460
  return __awaiter(this, void 0, void 0, function () {
524
461
  var requestOptions, response;
525
462
  return __generator(this, function (_a) {
526
463
  switch (_a.label) {
527
- case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRequestOpts(requestParameters)];
464
+ case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRequestOpts()];
528
465
  case 1:
529
466
  requestOptions = _a.sent();
530
467
  return [4 /*yield*/, this.request(requestOptions, initOverrides)];
@@ -538,13 +475,12 @@ var ProductCategoryApi = /** @class */ (function (_super) {
538
475
  /**
539
476
  * Auto-generated: getHierarchyProductCategory
540
477
  */
541
- ProductCategoryApi.prototype.getHierarchyProductCategory = function () {
542
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
478
+ ProductCategoryApi.prototype.getHierarchyProductCategory = function (initOverrides) {
479
+ return __awaiter(this, void 0, void 0, function () {
543
480
  var response;
544
- if (requestParameters === void 0) { requestParameters = {}; }
545
481
  return __generator(this, function (_a) {
546
482
  switch (_a.label) {
547
- case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(requestParameters, initOverrides)];
483
+ case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(initOverrides)];
548
484
  case 1:
549
485
  response = _a.sent();
550
486
  return [4 /*yield*/, response.value()];
@@ -35,10 +35,10 @@ export interface CategoryAutomationRuleResource {
35
35
  comparisonType: object;
36
36
  /**
37
37
  *
38
- * @type {string}
38
+ * @type {number}
39
39
  * @memberof CategoryAutomationRuleResource
40
40
  */
41
- groupId?: string | null;
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
- valueId?: string | null;
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'] == null ? undefined : json['groupId'],
46
+ 'groupId': json['groupId'],
45
47
  'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
46
48
  'value': json['value'],
47
- 'valueId': json['valueId'] == null ? undefined : json['valueId'],
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
- 'valueId': value['valueId'],
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
  }
@@ -17,10 +17,10 @@
17
17
  export interface ProductAggregationResource {
18
18
  /**
19
19
  *
20
- * @type {Array<object>}
20
+ * @type {object}
21
21
  * @memberof ProductAggregationResource
22
22
  */
23
- attributes: Array<object>;
23
+ attributes: object;
24
24
  /**
25
25
  *
26
26
  * @type {Array<object>}
@@ -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
  }
@@ -53,12 +53,6 @@ export interface ProductChildResource {
53
53
  * @memberof ProductChildResource
54
54
  */
55
55
  warranty: string;
56
- /**
57
- *
58
- * @type {boolean}
59
- * @memberof ProductChildResource
60
- */
61
- isWarrantyOverridden: boolean;
62
56
  /**
63
57
  *
64
58
  * @type {number}