@digital8/lighting-illusions-ts-sdk 0.0.531 → 0.0.533

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 (144) hide show
  1. package/.openapi-generator/FILES +66 -0
  2. package/README.md +42 -2
  3. package/dist/apis/ProductCategoryApi.d.ts +105 -0
  4. package/dist/apis/ProductCategoryApi.js +445 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/CategoryAutomationComparisonType.d.ts +29 -0
  8. package/dist/models/CategoryAutomationComparisonType.js +55 -0
  9. package/dist/models/CategoryAutomationConditionType.d.ts +25 -0
  10. package/dist/models/CategoryAutomationConditionType.js +51 -0
  11. package/dist/models/CategoryAutomationFieldType.d.ts +30 -0
  12. package/dist/models/CategoryAutomationFieldType.js +56 -0
  13. package/dist/models/CategoryAutomationRuleResource.d.ts +68 -0
  14. package/dist/models/CategoryAutomationRuleResource.js +67 -0
  15. package/dist/models/CategoryAutomationRuleResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/CategoryAutomationRuleResourceArrayResponse.js +50 -0
  17. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  18. package/dist/models/ExternalApiLogResource.js +3 -1
  19. package/dist/models/GetAllProductCategoryRequest.d.ts +115 -0
  20. package/dist/models/GetAllProductCategoryRequest.js +94 -0
  21. package/dist/models/IndexProductCategoryRequest.d.ts +127 -0
  22. package/dist/models/IndexProductCategoryRequest.js +98 -0
  23. package/dist/models/PaginatedProductCategoryListResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedProductCategoryListResourceResponse.js +57 -0
  25. package/dist/models/PaginatedProductCategoryResourceResponse.d.ts +40 -0
  26. package/dist/models/PaginatedProductCategoryResourceResponse.js +57 -0
  27. package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
  28. package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
  29. package/dist/models/ProductAggregationResource.d.ts +50 -0
  30. package/dist/models/ProductAggregationResource.js +63 -0
  31. package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/ProductAggregationResourceArrayResponse.js +50 -0
  33. package/dist/models/ProductCategoryHierarchyResource.d.ts +62 -0
  34. package/dist/models/ProductCategoryHierarchyResource.js +69 -0
  35. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.js +50 -0
  37. package/dist/models/ProductCategoryListResource.d.ts +75 -0
  38. package/dist/models/ProductCategoryListResource.js +78 -0
  39. package/dist/models/ProductCategoryListResourceArrayResponse.d.ts +33 -0
  40. package/dist/models/ProductCategoryListResourceArrayResponse.js +50 -0
  41. package/dist/models/ProductCategoryLiteResource.d.ts +38 -0
  42. package/dist/models/ProductCategoryLiteResource.js +53 -0
  43. package/dist/models/ProductCategoryLiteResourceArrayResponse.d.ts +33 -0
  44. package/dist/models/ProductCategoryLiteResourceArrayResponse.js +50 -0
  45. package/dist/models/ProductCategoryResource.d.ts +107 -0
  46. package/dist/models/ProductCategoryResource.js +96 -0
  47. package/dist/models/ProductCategoryResourceArrayResponse.d.ts +33 -0
  48. package/dist/models/ProductCategoryResourceArrayResponse.js +50 -0
  49. package/dist/models/ProductRating.d.ts +26 -0
  50. package/dist/models/ProductRating.js +52 -0
  51. package/dist/models/ProductSearchResponseResource.d.ts +54 -0
  52. package/dist/models/ProductSearchResponseResource.js +67 -0
  53. package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
  54. package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
  55. package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
  56. package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
  57. package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
  58. package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
  59. package/dist/models/ProductSearchResultResource.d.ts +116 -0
  60. package/dist/models/ProductSearchResultResource.js +105 -0
  61. package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
  62. package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
  63. package/dist/models/ProductSortBy.d.ts +32 -0
  64. package/dist/models/ProductSortBy.js +58 -0
  65. package/dist/models/ProductStatus.d.ts +24 -0
  66. package/dist/models/ProductStatus.js +50 -0
  67. package/dist/models/StoreProductCategoryRequest.d.ts +113 -0
  68. package/dist/models/StoreProductCategoryRequest.js +94 -0
  69. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +87 -0
  70. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +87 -0
  71. package/dist/models/UpdateProductCategoryRequest.d.ts +113 -0
  72. package/dist/models/UpdateProductCategoryRequest.js +82 -0
  73. package/dist/models/index.d.ts +32 -0
  74. package/dist/models/index.js +32 -0
  75. package/docs/CategoryAutomationComparisonType.md +32 -0
  76. package/docs/CategoryAutomationConditionType.md +32 -0
  77. package/docs/CategoryAutomationFieldType.md +32 -0
  78. package/docs/CategoryAutomationRuleResource.md +46 -0
  79. package/docs/CategoryAutomationRuleResourceArrayResponse.md +34 -0
  80. package/docs/GetAllProductCategoryRequest.md +52 -0
  81. package/docs/IndexProductCategoryRequest.md +56 -0
  82. package/docs/PaginatedProductCategoryListResourceResponse.md +36 -0
  83. package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
  84. package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
  85. package/docs/ProductAggregationResource.md +40 -0
  86. package/docs/ProductAggregationResourceArrayResponse.md +34 -0
  87. package/docs/ProductCategoryApi.md +534 -0
  88. package/docs/ProductCategoryHierarchyResource.md +44 -0
  89. package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
  90. package/docs/ProductCategoryListResource.md +48 -0
  91. package/docs/ProductCategoryListResourceArrayResponse.md +34 -0
  92. package/docs/ProductCategoryLiteResource.md +36 -0
  93. package/docs/ProductCategoryLiteResourceArrayResponse.md +34 -0
  94. package/docs/ProductCategoryResource.md +58 -0
  95. package/docs/ProductCategoryResourceArrayResponse.md +34 -0
  96. package/docs/ProductRating.md +32 -0
  97. package/docs/ProductSearchResponseResource.md +40 -0
  98. package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
  99. package/docs/ProductSearchResponseResourceMeta.md +40 -0
  100. package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
  101. package/docs/ProductSearchResultResource.md +62 -0
  102. package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
  103. package/docs/ProductSortBy.md +32 -0
  104. package/docs/ProductStatus.md +32 -0
  105. package/docs/StoreProductCategoryRequest.md +58 -0
  106. package/docs/StoreProductCategoryRequestAutomationRulesInner.md +44 -0
  107. package/docs/UpdateProductCategoryRequest.md +58 -0
  108. package/package.json +1 -1
  109. package/src/apis/ProductCategoryApi.ts +363 -0
  110. package/src/apis/index.ts +1 -0
  111. package/src/models/CategoryAutomationComparisonType.ts +57 -0
  112. package/src/models/CategoryAutomationConditionType.ts +53 -0
  113. package/src/models/CategoryAutomationFieldType.ts +58 -0
  114. package/src/models/CategoryAutomationRuleResource.ts +116 -0
  115. package/src/models/CategoryAutomationRuleResourceArrayResponse.ts +73 -0
  116. package/src/models/ExternalApiLogResource.ts +3 -2
  117. package/src/models/GetAllProductCategoryRequest.ts +171 -0
  118. package/src/models/IndexProductCategoryRequest.ts +187 -0
  119. package/src/models/PaginatedProductCategoryListResourceResponse.ts +90 -0
  120. package/src/models/PaginatedProductCategoryResourceResponse.ts +90 -0
  121. package/src/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
  122. package/src/models/ProductAggregationResource.ts +93 -0
  123. package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
  124. package/src/models/ProductCategoryHierarchyResource.ts +110 -0
  125. package/src/models/ProductCategoryHierarchyResourceArrayResponse.ts +73 -0
  126. package/src/models/ProductCategoryListResource.ts +136 -0
  127. package/src/models/ProductCategoryListResourceArrayResponse.ts +73 -0
  128. package/src/models/ProductCategoryLiteResource.ts +74 -0
  129. package/src/models/ProductCategoryLiteResourceArrayResponse.ts +73 -0
  130. package/src/models/ProductCategoryResource.ts +193 -0
  131. package/src/models/ProductCategoryResourceArrayResponse.ts +73 -0
  132. package/src/models/ProductRating.ts +54 -0
  133. package/src/models/ProductSearchResponseResource.ts +122 -0
  134. package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
  135. package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
  136. package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
  137. package/src/models/ProductSearchResultResource.ts +191 -0
  138. package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
  139. package/src/models/ProductSortBy.ts +60 -0
  140. package/src/models/ProductStatus.ts +52 -0
  141. package/src/models/StoreProductCategoryRequest.ts +186 -0
  142. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +136 -0
  143. package/src/models/UpdateProductCategoryRequest.ts +180 -0
  144. package/src/models/index.ts +32 -0
@@ -0,0 +1,69 @@
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.instanceOfProductCategoryHierarchyResource = instanceOfProductCategoryHierarchyResource;
17
+ exports.ProductCategoryHierarchyResourceFromJSON = ProductCategoryHierarchyResourceFromJSON;
18
+ exports.ProductCategoryHierarchyResourceFromJSONTyped = ProductCategoryHierarchyResourceFromJSONTyped;
19
+ exports.ProductCategoryHierarchyResourceToJSON = ProductCategoryHierarchyResourceToJSON;
20
+ exports.ProductCategoryHierarchyResourceToJSONTyped = ProductCategoryHierarchyResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ProductCategoryHierarchyResource interface.
23
+ */
24
+ function instanceOfProductCategoryHierarchyResource(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('slug' in value) || value['slug'] === undefined)
28
+ return false;
29
+ if (!('index' in value) || value['index'] === undefined)
30
+ return false;
31
+ if (!('isAutomated' in value) || value['isAutomated'] === undefined)
32
+ return false;
33
+ if (!('children' in value) || value['children'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function ProductCategoryHierarchyResourceFromJSON(json) {
38
+ return ProductCategoryHierarchyResourceFromJSONTyped(json, false);
39
+ }
40
+ function ProductCategoryHierarchyResourceFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'] == null ? undefined : json['id'],
46
+ 'name': json['name'],
47
+ 'slug': json['slug'],
48
+ 'index': json['index'],
49
+ 'isAutomated': json['isAutomated'],
50
+ 'children': json['children'],
51
+ };
52
+ }
53
+ function ProductCategoryHierarchyResourceToJSON(json) {
54
+ return ProductCategoryHierarchyResourceToJSONTyped(json, false);
55
+ }
56
+ function ProductCategoryHierarchyResourceToJSONTyped(value, ignoreDiscriminator) {
57
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'id': value['id'],
63
+ 'name': value['name'],
64
+ 'slug': value['slug'],
65
+ 'index': value['index'],
66
+ 'isAutomated': value['isAutomated'],
67
+ 'children': value['children'],
68
+ };
69
+ }
@@ -0,0 +1,33 @@
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
+ import type { ProductCategoryHierarchyResource } from './ProductCategoryHierarchyResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductCategoryHierarchyResourceArrayResponse
17
+ */
18
+ export interface ProductCategoryHierarchyResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductCategoryHierarchyResource>}
22
+ * @memberof ProductCategoryHierarchyResourceArrayResponse
23
+ */
24
+ data?: Array<ProductCategoryHierarchyResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductCategoryHierarchyResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductCategoryHierarchyResourceArrayResponse(value: object): value is ProductCategoryHierarchyResourceArrayResponse;
30
+ export declare function ProductCategoryHierarchyResourceArrayResponseFromJSON(json: any): ProductCategoryHierarchyResourceArrayResponse;
31
+ export declare function ProductCategoryHierarchyResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryHierarchyResourceArrayResponse;
32
+ export declare function ProductCategoryHierarchyResourceArrayResponseToJSON(json: any): ProductCategoryHierarchyResourceArrayResponse;
33
+ export declare function ProductCategoryHierarchyResourceArrayResponseToJSONTyped(value?: ProductCategoryHierarchyResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfProductCategoryHierarchyResourceArrayResponse = instanceOfProductCategoryHierarchyResourceArrayResponse;
17
+ exports.ProductCategoryHierarchyResourceArrayResponseFromJSON = ProductCategoryHierarchyResourceArrayResponseFromJSON;
18
+ exports.ProductCategoryHierarchyResourceArrayResponseFromJSONTyped = ProductCategoryHierarchyResourceArrayResponseFromJSONTyped;
19
+ exports.ProductCategoryHierarchyResourceArrayResponseToJSON = ProductCategoryHierarchyResourceArrayResponseToJSON;
20
+ exports.ProductCategoryHierarchyResourceArrayResponseToJSONTyped = ProductCategoryHierarchyResourceArrayResponseToJSONTyped;
21
+ var ProductCategoryHierarchyResource_1 = require("./ProductCategoryHierarchyResource");
22
+ /**
23
+ * Check if a given object implements the ProductCategoryHierarchyResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductCategoryHierarchyResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductCategoryHierarchyResourceArrayResponseFromJSON(json) {
29
+ return ProductCategoryHierarchyResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductCategoryHierarchyResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductCategoryHierarchyResource_1.ProductCategoryHierarchyResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductCategoryHierarchyResourceArrayResponseToJSON(json) {
40
+ return ProductCategoryHierarchyResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductCategoryHierarchyResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(ProductCategoryHierarchyResource_1.ProductCategoryHierarchyResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,75 @@
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
+ import type { SiteLiteResource } from './SiteLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductCategoryListResource
17
+ */
18
+ export interface ProductCategoryListResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof ProductCategoryListResource
23
+ */
24
+ id?: number | null;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ProductCategoryListResource
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ProductCategoryListResource
35
+ */
36
+ slug: string;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof ProductCategoryListResource
41
+ */
42
+ isDisabled: boolean;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof ProductCategoryListResource
47
+ */
48
+ isAutomated: boolean;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof ProductCategoryListResource
53
+ */
54
+ hasChildren: boolean;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof ProductCategoryListResource
59
+ */
60
+ productCount: number;
61
+ /**
62
+ *
63
+ * @type {SiteLiteResource}
64
+ * @memberof ProductCategoryListResource
65
+ */
66
+ site: SiteLiteResource | null;
67
+ }
68
+ /**
69
+ * Check if a given object implements the ProductCategoryListResource interface.
70
+ */
71
+ export declare function instanceOfProductCategoryListResource(value: object): value is ProductCategoryListResource;
72
+ export declare function ProductCategoryListResourceFromJSON(json: any): ProductCategoryListResource;
73
+ export declare function ProductCategoryListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryListResource;
74
+ export declare function ProductCategoryListResourceToJSON(json: any): ProductCategoryListResource;
75
+ export declare function ProductCategoryListResourceToJSONTyped(value?: ProductCategoryListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,78 @@
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.instanceOfProductCategoryListResource = instanceOfProductCategoryListResource;
17
+ exports.ProductCategoryListResourceFromJSON = ProductCategoryListResourceFromJSON;
18
+ exports.ProductCategoryListResourceFromJSONTyped = ProductCategoryListResourceFromJSONTyped;
19
+ exports.ProductCategoryListResourceToJSON = ProductCategoryListResourceToJSON;
20
+ exports.ProductCategoryListResourceToJSONTyped = ProductCategoryListResourceToJSONTyped;
21
+ var SiteLiteResource_1 = require("./SiteLiteResource");
22
+ /**
23
+ * Check if a given object implements the ProductCategoryListResource interface.
24
+ */
25
+ function instanceOfProductCategoryListResource(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('slug' in value) || value['slug'] === undefined)
29
+ return false;
30
+ if (!('isDisabled' in value) || value['isDisabled'] === undefined)
31
+ return false;
32
+ if (!('isAutomated' in value) || value['isAutomated'] === undefined)
33
+ return false;
34
+ if (!('hasChildren' in value) || value['hasChildren'] === undefined)
35
+ return false;
36
+ if (!('productCount' in value) || value['productCount'] === undefined)
37
+ return false;
38
+ if (!('site' in value) || value['site'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function ProductCategoryListResourceFromJSON(json) {
43
+ return ProductCategoryListResourceFromJSONTyped(json, false);
44
+ }
45
+ function ProductCategoryListResourceFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'id': json['id'] == null ? undefined : json['id'],
51
+ 'name': json['name'],
52
+ 'slug': json['slug'],
53
+ 'isDisabled': json['isDisabled'],
54
+ 'isAutomated': json['isAutomated'],
55
+ 'hasChildren': json['hasChildren'],
56
+ 'productCount': json['productCount'],
57
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
58
+ };
59
+ }
60
+ function ProductCategoryListResourceToJSON(json) {
61
+ return ProductCategoryListResourceToJSONTyped(json, false);
62
+ }
63
+ function ProductCategoryListResourceToJSONTyped(value, ignoreDiscriminator) {
64
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'id': value['id'],
70
+ 'name': value['name'],
71
+ 'slug': value['slug'],
72
+ 'isDisabled': value['isDisabled'],
73
+ 'isAutomated': value['isAutomated'],
74
+ 'hasChildren': value['hasChildren'],
75
+ 'productCount': value['productCount'],
76
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
77
+ };
78
+ }
@@ -0,0 +1,33 @@
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
+ import type { ProductCategoryListResource } from './ProductCategoryListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductCategoryListResourceArrayResponse
17
+ */
18
+ export interface ProductCategoryListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductCategoryListResource>}
22
+ * @memberof ProductCategoryListResourceArrayResponse
23
+ */
24
+ data?: Array<ProductCategoryListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductCategoryListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductCategoryListResourceArrayResponse(value: object): value is ProductCategoryListResourceArrayResponse;
30
+ export declare function ProductCategoryListResourceArrayResponseFromJSON(json: any): ProductCategoryListResourceArrayResponse;
31
+ export declare function ProductCategoryListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryListResourceArrayResponse;
32
+ export declare function ProductCategoryListResourceArrayResponseToJSON(json: any): ProductCategoryListResourceArrayResponse;
33
+ export declare function ProductCategoryListResourceArrayResponseToJSONTyped(value?: ProductCategoryListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfProductCategoryListResourceArrayResponse = instanceOfProductCategoryListResourceArrayResponse;
17
+ exports.ProductCategoryListResourceArrayResponseFromJSON = ProductCategoryListResourceArrayResponseFromJSON;
18
+ exports.ProductCategoryListResourceArrayResponseFromJSONTyped = ProductCategoryListResourceArrayResponseFromJSONTyped;
19
+ exports.ProductCategoryListResourceArrayResponseToJSON = ProductCategoryListResourceArrayResponseToJSON;
20
+ exports.ProductCategoryListResourceArrayResponseToJSONTyped = ProductCategoryListResourceArrayResponseToJSONTyped;
21
+ var ProductCategoryListResource_1 = require("./ProductCategoryListResource");
22
+ /**
23
+ * Check if a given object implements the ProductCategoryListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductCategoryListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductCategoryListResourceArrayResponseFromJSON(json) {
29
+ return ProductCategoryListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductCategoryListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductCategoryListResource_1.ProductCategoryListResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductCategoryListResourceArrayResponseToJSON(json) {
40
+ return ProductCategoryListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductCategoryListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(ProductCategoryListResource_1.ProductCategoryListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,38 @@
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 ProductCategoryLiteResource
16
+ */
17
+ export interface ProductCategoryLiteResource {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ProductCategoryLiteResource
22
+ */
23
+ id?: number | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ProductCategoryLiteResource
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ProductCategoryLiteResource interface.
33
+ */
34
+ export declare function instanceOfProductCategoryLiteResource(value: object): value is ProductCategoryLiteResource;
35
+ export declare function ProductCategoryLiteResourceFromJSON(json: any): ProductCategoryLiteResource;
36
+ export declare function ProductCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryLiteResource;
37
+ export declare function ProductCategoryLiteResourceToJSON(json: any): ProductCategoryLiteResource;
38
+ export declare function ProductCategoryLiteResourceToJSONTyped(value?: ProductCategoryLiteResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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.instanceOfProductCategoryLiteResource = instanceOfProductCategoryLiteResource;
17
+ exports.ProductCategoryLiteResourceFromJSON = ProductCategoryLiteResourceFromJSON;
18
+ exports.ProductCategoryLiteResourceFromJSONTyped = ProductCategoryLiteResourceFromJSONTyped;
19
+ exports.ProductCategoryLiteResourceToJSON = ProductCategoryLiteResourceToJSON;
20
+ exports.ProductCategoryLiteResourceToJSONTyped = ProductCategoryLiteResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ProductCategoryLiteResource interface.
23
+ */
24
+ function instanceOfProductCategoryLiteResource(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ProductCategoryLiteResourceFromJSON(json) {
30
+ return ProductCategoryLiteResourceFromJSONTyped(json, false);
31
+ }
32
+ function ProductCategoryLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'id': json['id'] == null ? undefined : json['id'],
38
+ 'name': json['name'],
39
+ };
40
+ }
41
+ function ProductCategoryLiteResourceToJSON(json) {
42
+ return ProductCategoryLiteResourceToJSONTyped(json, false);
43
+ }
44
+ function ProductCategoryLiteResourceToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'id': value['id'],
51
+ 'name': value['name'],
52
+ };
53
+ }
@@ -0,0 +1,33 @@
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
+ import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductCategoryLiteResourceArrayResponse
17
+ */
18
+ export interface ProductCategoryLiteResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ProductCategoryLiteResource>}
22
+ * @memberof ProductCategoryLiteResourceArrayResponse
23
+ */
24
+ data?: Array<ProductCategoryLiteResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ProductCategoryLiteResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfProductCategoryLiteResourceArrayResponse(value: object): value is ProductCategoryLiteResourceArrayResponse;
30
+ export declare function ProductCategoryLiteResourceArrayResponseFromJSON(json: any): ProductCategoryLiteResourceArrayResponse;
31
+ export declare function ProductCategoryLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryLiteResourceArrayResponse;
32
+ export declare function ProductCategoryLiteResourceArrayResponseToJSON(json: any): ProductCategoryLiteResourceArrayResponse;
33
+ export declare function ProductCategoryLiteResourceArrayResponseToJSONTyped(value?: ProductCategoryLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfProductCategoryLiteResourceArrayResponse = instanceOfProductCategoryLiteResourceArrayResponse;
17
+ exports.ProductCategoryLiteResourceArrayResponseFromJSON = ProductCategoryLiteResourceArrayResponseFromJSON;
18
+ exports.ProductCategoryLiteResourceArrayResponseFromJSONTyped = ProductCategoryLiteResourceArrayResponseFromJSONTyped;
19
+ exports.ProductCategoryLiteResourceArrayResponseToJSON = ProductCategoryLiteResourceArrayResponseToJSON;
20
+ exports.ProductCategoryLiteResourceArrayResponseToJSONTyped = ProductCategoryLiteResourceArrayResponseToJSONTyped;
21
+ var ProductCategoryLiteResource_1 = require("./ProductCategoryLiteResource");
22
+ /**
23
+ * Check if a given object implements the ProductCategoryLiteResourceArrayResponse interface.
24
+ */
25
+ function instanceOfProductCategoryLiteResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function ProductCategoryLiteResourceArrayResponseFromJSON(json) {
29
+ return ProductCategoryLiteResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function ProductCategoryLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(ProductCategoryLiteResource_1.ProductCategoryLiteResourceFromJSON)),
37
+ };
38
+ }
39
+ function ProductCategoryLiteResourceArrayResponseToJSON(json) {
40
+ return ProductCategoryLiteResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function ProductCategoryLiteResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(ProductCategoryLiteResource_1.ProductCategoryLiteResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,107 @@
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
+ import type { SiteLiteResource } from './SiteLiteResource';
13
+ import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
14
+ import type { AssetResource } from './AssetResource';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ProductCategoryResource
19
+ */
20
+ export interface ProductCategoryResource {
21
+ /**
22
+ *
23
+ * @type {number}
24
+ * @memberof ProductCategoryResource
25
+ */
26
+ id?: number | null;
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof ProductCategoryResource
31
+ */
32
+ siteId: number;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof ProductCategoryResource
37
+ */
38
+ name: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof ProductCategoryResource
43
+ */
44
+ slug: string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof ProductCategoryResource
49
+ */
50
+ parentId?: string | null;
51
+ /**
52
+ *
53
+ * @type {boolean}
54
+ * @memberof ProductCategoryResource
55
+ */
56
+ isDisabled: boolean;
57
+ /**
58
+ *
59
+ * @type {boolean}
60
+ * @memberof ProductCategoryResource
61
+ */
62
+ isAutomated: boolean;
63
+ /**
64
+ *
65
+ * @type {number}
66
+ * @memberof ProductCategoryResource
67
+ */
68
+ index: number;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof ProductCategoryResource
73
+ */
74
+ automatedConditionType?: string | null;
75
+ /**
76
+ *
77
+ * @type {AssetResource}
78
+ * @memberof ProductCategoryResource
79
+ */
80
+ thumbnail: AssetResource | null;
81
+ /**
82
+ *
83
+ * @type {object}
84
+ * @memberof ProductCategoryResource
85
+ */
86
+ automationRules: object;
87
+ /**
88
+ *
89
+ * @type {ProductCategoryLiteResource}
90
+ * @memberof ProductCategoryResource
91
+ */
92
+ parent: ProductCategoryLiteResource | null;
93
+ /**
94
+ *
95
+ * @type {SiteLiteResource}
96
+ * @memberof ProductCategoryResource
97
+ */
98
+ site: SiteLiteResource | null;
99
+ }
100
+ /**
101
+ * Check if a given object implements the ProductCategoryResource interface.
102
+ */
103
+ export declare function instanceOfProductCategoryResource(value: object): value is ProductCategoryResource;
104
+ export declare function ProductCategoryResourceFromJSON(json: any): ProductCategoryResource;
105
+ export declare function ProductCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryResource;
106
+ export declare function ProductCategoryResourceToJSON(json: any): ProductCategoryResource;
107
+ export declare function ProductCategoryResourceToJSONTyped(value?: ProductCategoryResource | null, ignoreDiscriminator?: boolean): any;