@digital8/lighting-illusions-ts-sdk 0.0.982 → 0.0.983

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 (64) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +5 -3
  3. package/dist/apis/ProductCategoryApi.d.ts +23 -4
  4. package/dist/apis/ProductCategoryApi.js +71 -7
  5. package/dist/models/CategoryAutomationRuleResource.d.ts +3 -3
  6. package/dist/models/CategoryAutomationRuleResource.js +3 -5
  7. package/dist/models/GetAllProductChildRequest.d.ts +6 -0
  8. package/dist/models/GetAllProductChildRequest.js +2 -0
  9. package/dist/models/GetHierarchyProductCategoryRequest.d.ts +32 -0
  10. package/dist/models/GetHierarchyProductCategoryRequest.js +51 -0
  11. package/dist/models/IndexProductCategoryRequest.d.ts +2 -0
  12. package/dist/models/IndexProductCategoryRequest.js +3 -1
  13. package/dist/models/IndexProductChildRequest.d.ts +6 -0
  14. package/dist/models/IndexProductChildRequest.js +2 -0
  15. package/dist/models/PreviewAutomationRulesResource.d.ts +0 -6
  16. package/dist/models/PreviewAutomationRulesResource.js +0 -2
  17. package/dist/models/ProductAggregationResource.d.ts +2 -2
  18. package/dist/models/ProductCategoryResource.d.ts +6 -0
  19. package/dist/models/ProductCategoryResource.js +4 -0
  20. package/dist/models/ProductChildResource.d.ts +6 -0
  21. package/dist/models/ProductChildResource.js +4 -0
  22. package/dist/models/ProductChildSiteDetailResource.d.ts +18 -0
  23. package/dist/models/ProductChildSiteDetailResource.js +12 -0
  24. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +3 -3
  25. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +3 -5
  26. package/dist/models/StoreProductChildRequest.d.ts +7 -1
  27. package/dist/models/StoreProductChildRequest.js +6 -4
  28. package/dist/models/StoreProductChildRequestSitesInner.d.ts +18 -0
  29. package/dist/models/StoreProductChildRequestSitesInner.js +12 -0
  30. package/dist/models/UpdateProductChildRequest.d.ts +6 -0
  31. package/dist/models/UpdateProductChildRequest.js +4 -0
  32. package/dist/models/index.d.ts +1 -0
  33. package/dist/models/index.js +1 -0
  34. package/docs/CategoryAutomationRuleResource.md +3 -3
  35. package/docs/GetAllProductChildRequest.md +2 -0
  36. package/docs/GetHierarchyProductCategoryRequest.md +34 -0
  37. package/docs/IndexProductChildRequest.md +2 -0
  38. package/docs/PreviewAutomationRulesResource.md +0 -2
  39. package/docs/ProductAggregationResource.md +1 -1
  40. package/docs/ProductCategoryApi.md +83 -6
  41. package/docs/ProductCategoryResource.md +2 -0
  42. package/docs/ProductChildResource.md +2 -0
  43. package/docs/ProductChildSiteDetailResource.md +6 -0
  44. package/docs/StoreProductCategoryRequestAutomationRulesInner.md +2 -2
  45. package/docs/StoreProductChildRequest.md +2 -0
  46. package/docs/StoreProductChildRequestSitesInner.md +6 -0
  47. package/docs/UpdateProductChildRequest.md +2 -0
  48. package/package.json +1 -1
  49. package/src/apis/ProductCategoryApi.ts +72 -6
  50. package/src/models/CategoryAutomationRuleResource.ts +6 -7
  51. package/src/models/GetAllProductChildRequest.ts +8 -0
  52. package/src/models/GetHierarchyProductCategoryRequest.ts +66 -0
  53. package/src/models/IndexProductCategoryRequest.ts +3 -1
  54. package/src/models/IndexProductChildRequest.ts +8 -0
  55. package/src/models/PreviewAutomationRulesResource.ts +0 -8
  56. package/src/models/ProductAggregationResource.ts +2 -2
  57. package/src/models/ProductCategoryResource.ts +9 -0
  58. package/src/models/ProductChildResource.ts +9 -0
  59. package/src/models/ProductChildSiteDetailResource.ts +27 -0
  60. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +6 -7
  61. package/src/models/StoreProductChildRequest.ts +12 -4
  62. package/src/models/StoreProductChildRequestSitesInner.ts +27 -0
  63. package/src/models/UpdateProductChildRequest.ts +9 -0
  64. package/src/models/index.ts +1 -0
@@ -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.982
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.983
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#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
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.982`
468
+ - Package version: `0.0.983`
467
469
  - Generator version: `7.20.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
  }
@@ -100,6 +107,18 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
100
107
  * Auto-generated: detachProductsProductCategory
101
108
  */
102
109
  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>;
103
122
  /**
104
123
  * Creates request options for getAllProductCategory without sending the request
105
124
  */
@@ -127,15 +146,15 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
127
146
  /**
128
147
  * Creates request options for getHierarchyProductCategory without sending the request
129
148
  */
130
- getHierarchyProductCategoryRequestOpts(): Promise<runtime.RequestOpts>;
149
+ getHierarchyProductCategoryRequestOpts(requestParameters: GetHierarchyProductCategoryOperationRequest): Promise<runtime.RequestOpts>;
131
150
  /**
132
151
  * Auto-generated: getHierarchyProductCategory
133
152
  */
134
- getHierarchyProductCategoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>>;
153
+ getHierarchyProductCategoryRaw(requestParameters: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>>;
135
154
  /**
136
155
  * Auto-generated: getHierarchyProductCategory
137
156
  */
138
- getHierarchyProductCategory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse>;
157
+ getHierarchyProductCategory(requestParameters?: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse>;
139
158
  /**
140
159
  * Creates request options for indexProductCategory without sending the request
141
160
  */
@@ -315,6 +315,67 @@ 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
+ };
318
379
  /**
319
380
  * Creates request options for getAllProductCategory without sending the request
320
381
  */
@@ -437,18 +498,20 @@ var ProductCategoryApi = /** @class */ (function (_super) {
437
498
  /**
438
499
  * Creates request options for getHierarchyProductCategory without sending the request
439
500
  */
440
- ProductCategoryApi.prototype.getHierarchyProductCategoryRequestOpts = function () {
501
+ ProductCategoryApi.prototype.getHierarchyProductCategoryRequestOpts = function (requestParameters) {
441
502
  return __awaiter(this, void 0, void 0, function () {
442
503
  var queryParameters, headerParameters, urlPath;
443
504
  return __generator(this, function (_a) {
444
505
  queryParameters = {};
445
506
  headerParameters = {};
507
+ headerParameters['Content-Type'] = 'application/json';
446
508
  urlPath = "/admin-api/product-category/hierarchy";
447
509
  return [2 /*return*/, {
448
510
  path: urlPath,
449
- method: 'GET',
511
+ method: 'POST',
450
512
  headers: headerParameters,
451
513
  query: queryParameters,
514
+ body: (0, index_1.GetHierarchyProductCategoryRequestToJSON)(requestParameters['getHierarchyProductCategoryRequest']),
452
515
  }];
453
516
  });
454
517
  });
@@ -456,12 +519,12 @@ var ProductCategoryApi = /** @class */ (function (_super) {
456
519
  /**
457
520
  * Auto-generated: getHierarchyProductCategory
458
521
  */
459
- ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (initOverrides) {
522
+ ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (requestParameters, initOverrides) {
460
523
  return __awaiter(this, void 0, void 0, function () {
461
524
  var requestOptions, response;
462
525
  return __generator(this, function (_a) {
463
526
  switch (_a.label) {
464
- case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRequestOpts()];
527
+ case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRequestOpts(requestParameters)];
465
528
  case 1:
466
529
  requestOptions = _a.sent();
467
530
  return [4 /*yield*/, this.request(requestOptions, initOverrides)];
@@ -475,12 +538,13 @@ var ProductCategoryApi = /** @class */ (function (_super) {
475
538
  /**
476
539
  * Auto-generated: getHierarchyProductCategory
477
540
  */
478
- ProductCategoryApi.prototype.getHierarchyProductCategory = function (initOverrides) {
479
- return __awaiter(this, void 0, void 0, function () {
541
+ ProductCategoryApi.prototype.getHierarchyProductCategory = function () {
542
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
480
543
  var response;
544
+ if (requestParameters === void 0) { requestParameters = {}; }
481
545
  return __generator(this, function (_a) {
482
546
  switch (_a.label) {
483
- case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(initOverrides)];
547
+ case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(requestParameters, initOverrides)];
484
548
  case 1:
485
549
  response = _a.sent();
486
550
  return [4 /*yield*/, response.value()];
@@ -35,10 +35,10 @@ export interface CategoryAutomationRuleResource {
35
35
  comparisonType: object;
36
36
  /**
37
37
  *
38
- * @type {number}
38
+ * @type {string}
39
39
  * @memberof CategoryAutomationRuleResource
40
40
  */
41
- groupId: number;
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
- valueIds?: string | null;
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
- 'valueIds': json['valueIds'] == null ? undefined : json['valueIds'],
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
- 'valueIds': value['valueIds'],
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
  }
@@ -17,10 +17,10 @@
17
17
  export interface ProductAggregationResource {
18
18
  /**
19
19
  *
20
- * @type {object}
20
+ * @type {Array<object>}
21
21
  * @memberof ProductAggregationResource
22
22
  */
23
- attributes: object;
23
+ attributes: Array<object>;
24
24
  /**
25
25
  *
26
26
  * @type {Array<object>}
@@ -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
  }
@@ -53,6 +53,12 @@ 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;
56
62
  /**
57
63
  *
58
64
  * @type {number}
@@ -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}