@digital8/lighting-illusions-ts-sdk 0.0.899 → 0.0.901

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.
@@ -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.899
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.901
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -124,7 +124,7 @@ All URIs are relative to *http://localhost/api*
124
124
  *ProductCategoryApi* | [**detachProductsProductCategory**](docs/ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory
125
125
  *ProductCategoryApi* | [**getAllProductCategory**](docs/ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory
126
126
  *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
127
+ *ProductCategoryApi* | [**getHierarchyProductCategory**](docs/ProductCategoryApi.md#gethierarchyproductcategoryoperation) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory
128
128
  *ProductCategoryApi* | [**indexProductCategory**](docs/ProductCategoryApi.md#indexproductcategoryoperation) | **POST** /admin-api/product-category/list | Auto-generated: indexProductCategory
129
129
  *ProductCategoryApi* | [**previewAutomationRulesProductCategory**](docs/ProductCategoryApi.md#previewautomationrulesproductcategoryoperation) | **POST** /admin-api/product-category/preview-automation-rules | Auto-generated: previewAutomationRulesProductCategory
130
130
  *ProductCategoryApi* | [**showProductCategory**](docs/ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory
@@ -243,6 +243,7 @@ All URIs are relative to *http://localhost/api*
243
243
  - [GetAllProductRequest](docs/GetAllProductRequest.md)
244
244
  - [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
245
245
  - [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
246
+ - [GetHierarchyProductCategoryRequest](docs/GetHierarchyProductCategoryRequest.md)
246
247
  - [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
247
248
  - [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
248
249
  - [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
@@ -463,7 +464,7 @@ and is automatically generated by the
463
464
  [OpenAPI Generator](https://openapi-generator.tech) project:
464
465
 
465
466
  - API version: `1.0.0`
466
- - Package version: `0.0.899`
467
+ - Package version: `0.0.901`
467
468
  - Generator version: `7.19.0`
468
469
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
469
470
 
@@ -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, ProductCategoryLiteResourceArrayResponse, ProductCategoryResource, StoreProductCategoryRequest, UpdateProductCategoryRequest } from '../models/index';
14
14
  export interface AttachProductsProductCategoryOperationRequest {
15
15
  productCategory: number;
16
16
  attachProductsProductCategoryRequest?: AttachProductsProductCategoryRequest;
@@ -32,6 +32,9 @@ export interface GetChildrenProductCategoryRequest {
32
32
  productCategory: number;
33
33
  indexProductCategoryRequest?: IndexProductCategoryRequest;
34
34
  }
35
+ export interface GetHierarchyProductCategoryOperationRequest {
36
+ getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
37
+ }
35
38
  export interface IndexProductCategoryOperationRequest {
36
39
  indexProductCategoryRequest?: IndexProductCategoryRequest;
37
40
  }
@@ -103,11 +106,11 @@ export declare class ProductCategoryApi extends runtime.BaseAPI {
103
106
  /**
104
107
  * Auto-generated: getHierarchyProductCategory
105
108
  */
106
- getHierarchyProductCategoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>>;
109
+ getHierarchyProductCategoryRaw(requestParameters: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>>;
107
110
  /**
108
111
  * Auto-generated: getHierarchyProductCategory
109
112
  */
110
- getHierarchyProductCategory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse>;
113
+ getHierarchyProductCategory(requestParameters?: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse>;
111
114
  /**
112
115
  * Auto-generated: indexProductCategory
113
116
  */
@@ -359,7 +359,7 @@ var ProductCategoryApi = /** @class */ (function (_super) {
359
359
  /**
360
360
  * Auto-generated: getHierarchyProductCategory
361
361
  */
362
- ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (initOverrides) {
362
+ ProductCategoryApi.prototype.getHierarchyProductCategoryRaw = function (requestParameters, initOverrides) {
363
363
  return __awaiter(this, void 0, void 0, function () {
364
364
  var queryParameters, headerParameters, urlPath, response;
365
365
  return __generator(this, function (_a) {
@@ -367,12 +367,14 @@ var ProductCategoryApi = /** @class */ (function (_super) {
367
367
  case 0:
368
368
  queryParameters = {};
369
369
  headerParameters = {};
370
+ headerParameters['Content-Type'] = 'application/json';
370
371
  urlPath = "/admin-api/product-category/hierarchy";
371
372
  return [4 /*yield*/, this.request({
372
373
  path: urlPath,
373
374
  method: 'GET',
374
375
  headers: headerParameters,
375
376
  query: queryParameters,
377
+ body: (0, index_1.GetHierarchyProductCategoryRequestToJSON)(requestParameters['getHierarchyProductCategoryRequest']),
376
378
  }, initOverrides)];
377
379
  case 1:
378
380
  response = _a.sent();
@@ -384,12 +386,13 @@ var ProductCategoryApi = /** @class */ (function (_super) {
384
386
  /**
385
387
  * Auto-generated: getHierarchyProductCategory
386
388
  */
387
- ProductCategoryApi.prototype.getHierarchyProductCategory = function (initOverrides) {
388
- return __awaiter(this, void 0, void 0, function () {
389
+ ProductCategoryApi.prototype.getHierarchyProductCategory = function () {
390
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
389
391
  var response;
392
+ if (requestParameters === void 0) { requestParameters = {}; }
390
393
  return __generator(this, function (_a) {
391
394
  switch (_a.label) {
392
- case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(initOverrides)];
395
+ case 0: return [4 /*yield*/, this.getHierarchyProductCategoryRaw(requestParameters, initOverrides)];
393
396
  case 1:
394
397
  response = _a.sent();
395
398
  return [4 /*yield*/, response.value()];
@@ -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.
@@ -44,7 +44,7 @@ function CategoryAutomationRuleResourceFromJSONTyped(json, ignoreDiscriminator)
44
44
  'groupId': json['groupId'] == null ? undefined : json['groupId'],
45
45
  'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
46
46
  'value': json['value'],
47
- 'valueIds': json['valueIds'] == null ? undefined : json['valueIds'],
47
+ 'valueId': json['valueId'] == null ? undefined : json['valueId'],
48
48
  };
49
49
  }
50
50
  function CategoryAutomationRuleResourceToJSON(json) {
@@ -62,6 +62,6 @@ function CategoryAutomationRuleResourceToJSONTyped(value, ignoreDiscriminator) {
62
62
  'groupId': value['groupId'],
63
63
  'relatedId': value['relatedId'],
64
64
  'value': value['value'],
65
- 'valueIds': value['valueIds'],
65
+ 'valueId': value['valueId'],
66
66
  };
67
67
  }
@@ -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
+ }
@@ -47,10 +47,10 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
47
47
  value?: string;
48
48
  /**
49
49
  *
50
- * @type {Array<number>}
50
+ * @type {number}
51
51
  * @memberof StoreProductCategoryRequestAutomationRulesInner
52
52
  */
53
- valueIds?: Array<number>;
53
+ valueId?: number;
54
54
  }
55
55
  /**
56
56
  * @export
@@ -65,7 +65,7 @@ function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json, igno
65
65
  'groupId': json['group_id'] == null ? undefined : json['group_id'],
66
66
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
67
67
  'value': json['value'] == null ? undefined : json['value'],
68
- 'valueIds': json['value_ids'] == null ? undefined : json['value_ids'],
68
+ 'valueId': json['value_id'] == null ? undefined : json['value_id'],
69
69
  };
70
70
  }
71
71
  function StoreProductCategoryRequestAutomationRulesInnerToJSON(json) {
@@ -82,6 +82,6 @@ function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value, ignor
82
82
  'group_id': value['groupId'],
83
83
  'related_id': value['relatedId'],
84
84
  'value': value['value'],
85
- 'value_ids': value['valueIds'],
85
+ 'value_id': value['valueId'],
86
86
  };
87
87
  }
@@ -74,6 +74,7 @@ export * from './GetAllProductChildRequest';
74
74
  export * from './GetAllProductRequest';
75
75
  export * from './GetAllProductTypeRequest';
76
76
  export * from './GetAllSupplierRequest';
77
+ export * from './GetHierarchyProductCategoryRequest';
77
78
  export * from './GlobalSearchCategoryResource';
78
79
  export * from './GlobalSearchCategoryResourceArrayResponse';
79
80
  export * from './GlobalSearchProductResource';
@@ -92,6 +92,7 @@ __exportStar(require("./GetAllProductChildRequest"), exports);
92
92
  __exportStar(require("./GetAllProductRequest"), exports);
93
93
  __exportStar(require("./GetAllProductTypeRequest"), exports);
94
94
  __exportStar(require("./GetAllSupplierRequest"), exports);
95
+ __exportStar(require("./GetHierarchyProductCategoryRequest"), exports);
95
96
  __exportStar(require("./GlobalSearchCategoryResource"), exports);
96
97
  __exportStar(require("./GlobalSearchCategoryResourceArrayResponse"), exports);
97
98
  __exportStar(require("./GlobalSearchProductResource"), exports);
@@ -12,7 +12,7 @@ Name | Type
12
12
  `groupId` | string
13
13
  `relatedId` | string
14
14
  `value` | string
15
- `valueIds` | string
15
+ `valueId` | string
16
16
 
17
17
  ## Example
18
18
 
@@ -27,7 +27,7 @@ const example = {
27
27
  "groupId": null,
28
28
  "relatedId": null,
29
29
  "value": null,
30
- "valueIds": null,
30
+ "valueId": null,
31
31
  } satisfies CategoryAutomationRuleResource
32
32
 
33
33
  console.log(example)
@@ -0,0 +1,34 @@
1
+
2
+ # GetHierarchyProductCategoryRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `siteId` | number
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { GetHierarchyProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "siteId": null,
19
+ } satisfies GetHierarchyProductCategoryRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as GetHierarchyProductCategoryRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -10,7 +10,7 @@ All URIs are relative to *http://localhost/api*
10
10
  | [**detachProductsProductCategory**](ProductCategoryApi.md#detachproductsproductcategoryoperation) | **POST** /admin-api/product-category/{productCategory}/detach-products | Auto-generated: detachProductsProductCategory |
11
11
  | [**getAllProductCategory**](ProductCategoryApi.md#getallproductcategoryoperation) | **POST** /admin-api/product-category/all | Auto-generated: getAllProductCategory |
12
12
  | [**getChildrenProductCategory**](ProductCategoryApi.md#getchildrenproductcategory) | **GET** /admin-api/product-category/{productCategory}/children | Auto-generated: getChildrenProductCategory |
13
- | [**getHierarchyProductCategory**](ProductCategoryApi.md#gethierarchyproductcategory) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory |
13
+ | [**getHierarchyProductCategory**](ProductCategoryApi.md#gethierarchyproductcategoryoperation) | **GET** /admin-api/product-category/hierarchy | Auto-generated: getHierarchyProductCategory |
14
14
  | [**indexProductCategory**](ProductCategoryApi.md#indexproductcategoryoperation) | **POST** /admin-api/product-category/list | Auto-generated: indexProductCategory |
15
15
  | [**previewAutomationRulesProductCategory**](ProductCategoryApi.md#previewautomationrulesproductcategoryoperation) | **POST** /admin-api/product-category/preview-automation-rules | Auto-generated: previewAutomationRulesProductCategory |
16
16
  | [**showProductCategory**](ProductCategoryApi.md#showproductcategory) | **GET** /admin-api/product-category/{productCategory} | Auto-generated: showProductCategory |
@@ -420,7 +420,7 @@ No authorization required
420
420
 
421
421
  ## getHierarchyProductCategory
422
422
 
423
- > ProductCategoryHierarchyResourceArrayResponse getHierarchyProductCategory()
423
+ > ProductCategoryHierarchyResourceArrayResponse getHierarchyProductCategory(getHierarchyProductCategoryRequest)
424
424
 
425
425
  Auto-generated: getHierarchyProductCategory
426
426
 
@@ -431,14 +431,19 @@ import {
431
431
  Configuration,
432
432
  ProductCategoryApi,
433
433
  } from '@digital8/lighting-illusions-ts-sdk';
434
- import type { GetHierarchyProductCategoryRequest } from '@digital8/lighting-illusions-ts-sdk';
434
+ import type { GetHierarchyProductCategoryOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
435
435
 
436
436
  async function example() {
437
437
  console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
438
438
  const api = new ProductCategoryApi();
439
439
 
440
+ const body = {
441
+ // GetHierarchyProductCategoryRequest (optional)
442
+ getHierarchyProductCategoryRequest: ...,
443
+ } satisfies GetHierarchyProductCategoryOperationRequest;
444
+
440
445
  try {
441
- const data = await api.getHierarchyProductCategory();
446
+ const data = await api.getHierarchyProductCategory(body);
442
447
  console.log(data);
443
448
  } catch (error) {
444
449
  console.error(error);
@@ -451,7 +456,10 @@ example().catch(console.error);
451
456
 
452
457
  ### Parameters
453
458
 
454
- This endpoint does not need any parameter.
459
+
460
+ | Name | Type | Description | Notes |
461
+ |------------- | ------------- | ------------- | -------------|
462
+ | **getHierarchyProductCategoryRequest** | [GetHierarchyProductCategoryRequest](GetHierarchyProductCategoryRequest.md) | | [Optional] |
455
463
 
456
464
  ### Return type
457
465
 
@@ -463,7 +471,7 @@ No authorization required
463
471
 
464
472
  ### HTTP request headers
465
473
 
466
- - **Content-Type**: Not defined
474
+ - **Content-Type**: `application/json`
467
475
  - **Accept**: `application/json`
468
476
 
469
477
 
@@ -11,7 +11,7 @@ Name | Type
11
11
  `groupId` | number
12
12
  `relatedId` | string
13
13
  `value` | string
14
- `valueIds` | Array&lt;number&gt;
14
+ `valueId` | number
15
15
 
16
16
  ## Example
17
17
 
@@ -25,7 +25,7 @@ const example = {
25
25
  "groupId": null,
26
26
  "relatedId": null,
27
27
  "value": null,
28
- "valueIds": null,
28
+ "valueId": null,
29
29
  } satisfies StoreProductCategoryRequestAutomationRulesInner
30
30
 
31
31
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.899",
3
+ "version": "0.0.901",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -19,6 +19,7 @@ import type {
19
19
  DetachProductsProductCategoryRequest,
20
20
  GenericResponse,
21
21
  GetAllProductCategoryRequest,
22
+ GetHierarchyProductCategoryRequest,
22
23
  IndexProductCategoryRequest,
23
24
  PaginatedProductCategoryListResourceResponse,
24
25
  PreviewAutomationRulesProductCategoryRequest,
@@ -38,6 +39,8 @@ import {
38
39
  GenericResponseToJSON,
39
40
  GetAllProductCategoryRequestFromJSON,
40
41
  GetAllProductCategoryRequestToJSON,
42
+ GetHierarchyProductCategoryRequestFromJSON,
43
+ GetHierarchyProductCategoryRequestToJSON,
41
44
  IndexProductCategoryRequestFromJSON,
42
45
  IndexProductCategoryRequestToJSON,
43
46
  PaginatedProductCategoryListResourceResponseFromJSON,
@@ -85,6 +88,10 @@ export interface GetChildrenProductCategoryRequest {
85
88
  indexProductCategoryRequest?: IndexProductCategoryRequest;
86
89
  }
87
90
 
91
+ export interface GetHierarchyProductCategoryOperationRequest {
92
+ getHierarchyProductCategoryRequest?: GetHierarchyProductCategoryRequest;
93
+ }
94
+
88
95
  export interface IndexProductCategoryOperationRequest {
89
96
  indexProductCategoryRequest?: IndexProductCategoryRequest;
90
97
  }
@@ -340,11 +347,13 @@ export class ProductCategoryApi extends runtime.BaseAPI {
340
347
  /**
341
348
  * Auto-generated: getHierarchyProductCategory
342
349
  */
343
- async getHierarchyProductCategoryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>> {
350
+ async getHierarchyProductCategoryRaw(requestParameters: GetHierarchyProductCategoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductCategoryHierarchyResourceArrayResponse>> {
344
351
  const queryParameters: any = {};
345
352
 
346
353
  const headerParameters: runtime.HTTPHeaders = {};
347
354
 
355
+ headerParameters['Content-Type'] = 'application/json';
356
+
348
357
 
349
358
  let urlPath = `/admin-api/product-category/hierarchy`;
350
359
 
@@ -353,6 +362,7 @@ export class ProductCategoryApi extends runtime.BaseAPI {
353
362
  method: 'GET',
354
363
  headers: headerParameters,
355
364
  query: queryParameters,
365
+ body: GetHierarchyProductCategoryRequestToJSON(requestParameters['getHierarchyProductCategoryRequest']),
356
366
  }, initOverrides);
357
367
 
358
368
  return new runtime.JSONApiResponse(response, (jsonValue) => ProductCategoryHierarchyResourceArrayResponseFromJSON(jsonValue));
@@ -361,8 +371,8 @@ export class ProductCategoryApi extends runtime.BaseAPI {
361
371
  /**
362
372
  * Auto-generated: getHierarchyProductCategory
363
373
  */
364
- async getHierarchyProductCategory(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse> {
365
- const response = await this.getHierarchyProductCategoryRaw(initOverrides);
374
+ async getHierarchyProductCategory(requestParameters: GetHierarchyProductCategoryOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductCategoryHierarchyResourceArrayResponse> {
375
+ const response = await this.getHierarchyProductCategoryRaw(requestParameters, initOverrides);
366
376
  return await response.value();
367
377
  }
368
378
 
@@ -60,7 +60,7 @@ export interface CategoryAutomationRuleResource {
60
60
  * @type {string}
61
61
  * @memberof CategoryAutomationRuleResource
62
62
  */
63
- valueIds?: string | null;
63
+ valueId?: string | null;
64
64
  }
65
65
 
66
66
  /**
@@ -89,7 +89,7 @@ export function CategoryAutomationRuleResourceFromJSONTyped(json: any, ignoreDis
89
89
  'groupId': json['groupId'] == null ? undefined : json['groupId'],
90
90
  'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
91
91
  'value': json['value'],
92
- 'valueIds': json['valueIds'] == null ? undefined : json['valueIds'],
92
+ 'valueId': json['valueId'] == null ? undefined : json['valueId'],
93
93
  };
94
94
  }
95
95
 
@@ -110,7 +110,7 @@ export function CategoryAutomationRuleResourceToJSONTyped(value?: CategoryAutoma
110
110
  'groupId': value['groupId'],
111
111
  'relatedId': value['relatedId'],
112
112
  'value': value['value'],
113
- 'valueIds': value['valueIds'],
113
+ 'valueId': value['valueId'],
114
114
  };
115
115
  }
116
116
 
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface GetHierarchyProductCategoryRequest
20
+ */
21
+ export interface GetHierarchyProductCategoryRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof GetHierarchyProductCategoryRequest
26
+ */
27
+ siteId: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GetHierarchyProductCategoryRequest interface.
32
+ */
33
+ export function instanceOfGetHierarchyProductCategoryRequest(value: object): value is GetHierarchyProductCategoryRequest {
34
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function GetHierarchyProductCategoryRequestFromJSON(json: any): GetHierarchyProductCategoryRequest {
39
+ return GetHierarchyProductCategoryRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function GetHierarchyProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHierarchyProductCategoryRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'siteId': json['site_id'],
49
+ };
50
+ }
51
+
52
+ export function GetHierarchyProductCategoryRequestToJSON(json: any): GetHierarchyProductCategoryRequest {
53
+ return GetHierarchyProductCategoryRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetHierarchyProductCategoryRequestToJSONTyped(value?: GetHierarchyProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'site_id': value['siteId'],
64
+ };
65
+ }
66
+
@@ -51,10 +51,10 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
51
51
  value?: string;
52
52
  /**
53
53
  *
54
- * @type {Array<number>}
54
+ * @type {number}
55
55
  * @memberof StoreProductCategoryRequestAutomationRulesInner
56
56
  */
57
- valueIds?: Array<number>;
57
+ valueId?: number;
58
58
  }
59
59
 
60
60
 
@@ -110,7 +110,7 @@ export function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(jso
110
110
  'groupId': json['group_id'] == null ? undefined : json['group_id'],
111
111
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
112
112
  'value': json['value'] == null ? undefined : json['value'],
113
- 'valueIds': json['value_ids'] == null ? undefined : json['value_ids'],
113
+ 'valueId': json['value_id'] == null ? undefined : json['value_id'],
114
114
  };
115
115
  }
116
116
 
@@ -130,7 +130,7 @@ export function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value
130
130
  'group_id': value['groupId'],
131
131
  'related_id': value['relatedId'],
132
132
  'value': value['value'],
133
- 'value_ids': value['valueIds'],
133
+ 'value_id': value['valueId'],
134
134
  };
135
135
  }
136
136
 
@@ -76,6 +76,7 @@ export * from './GetAllProductChildRequest';
76
76
  export * from './GetAllProductRequest';
77
77
  export * from './GetAllProductTypeRequest';
78
78
  export * from './GetAllSupplierRequest';
79
+ export * from './GetHierarchyProductCategoryRequest';
79
80
  export * from './GlobalSearchCategoryResource';
80
81
  export * from './GlobalSearchCategoryResourceArrayResponse';
81
82
  export * from './GlobalSearchProductResource';