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

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 (96) hide show
  1. package/.openapi-generator/FILES +42 -0
  2. package/README.md +30 -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/ProductCategoryHierarchyResource.d.ts +62 -0
  28. package/dist/models/ProductCategoryHierarchyResource.js +69 -0
  29. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/ProductCategoryHierarchyResourceArrayResponse.js +50 -0
  31. package/dist/models/ProductCategoryListResource.d.ts +75 -0
  32. package/dist/models/ProductCategoryListResource.js +78 -0
  33. package/dist/models/ProductCategoryListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/ProductCategoryListResourceArrayResponse.js +50 -0
  35. package/dist/models/ProductCategoryLiteResource.d.ts +38 -0
  36. package/dist/models/ProductCategoryLiteResource.js +53 -0
  37. package/dist/models/ProductCategoryLiteResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/ProductCategoryLiteResourceArrayResponse.js +50 -0
  39. package/dist/models/ProductCategoryResource.d.ts +107 -0
  40. package/dist/models/ProductCategoryResource.js +96 -0
  41. package/dist/models/ProductCategoryResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/ProductCategoryResourceArrayResponse.js +50 -0
  43. package/dist/models/StoreProductCategoryRequest.d.ts +105 -0
  44. package/dist/models/StoreProductCategoryRequest.js +86 -0
  45. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +62 -0
  46. package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +63 -0
  47. package/dist/models/UpdateProductCategoryRequest.d.ts +105 -0
  48. package/dist/models/UpdateProductCategoryRequest.js +74 -0
  49. package/dist/models/index.d.ts +20 -0
  50. package/dist/models/index.js +20 -0
  51. package/docs/CategoryAutomationComparisonType.md +32 -0
  52. package/docs/CategoryAutomationConditionType.md +32 -0
  53. package/docs/CategoryAutomationFieldType.md +32 -0
  54. package/docs/CategoryAutomationRuleResource.md +46 -0
  55. package/docs/CategoryAutomationRuleResourceArrayResponse.md +34 -0
  56. package/docs/GetAllProductCategoryRequest.md +52 -0
  57. package/docs/IndexProductCategoryRequest.md +56 -0
  58. package/docs/PaginatedProductCategoryListResourceResponse.md +36 -0
  59. package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
  60. package/docs/ProductCategoryApi.md +534 -0
  61. package/docs/ProductCategoryHierarchyResource.md +44 -0
  62. package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
  63. package/docs/ProductCategoryListResource.md +48 -0
  64. package/docs/ProductCategoryListResourceArrayResponse.md +34 -0
  65. package/docs/ProductCategoryLiteResource.md +36 -0
  66. package/docs/ProductCategoryLiteResourceArrayResponse.md +34 -0
  67. package/docs/ProductCategoryResource.md +58 -0
  68. package/docs/ProductCategoryResourceArrayResponse.md +34 -0
  69. package/docs/StoreProductCategoryRequest.md +58 -0
  70. package/docs/StoreProductCategoryRequestAutomationRulesInner.md +44 -0
  71. package/docs/UpdateProductCategoryRequest.md +58 -0
  72. package/package.json +1 -1
  73. package/src/apis/ProductCategoryApi.ts +363 -0
  74. package/src/apis/index.ts +1 -0
  75. package/src/models/CategoryAutomationComparisonType.ts +57 -0
  76. package/src/models/CategoryAutomationConditionType.ts +53 -0
  77. package/src/models/CategoryAutomationFieldType.ts +58 -0
  78. package/src/models/CategoryAutomationRuleResource.ts +116 -0
  79. package/src/models/CategoryAutomationRuleResourceArrayResponse.ts +73 -0
  80. package/src/models/ExternalApiLogResource.ts +3 -2
  81. package/src/models/GetAllProductCategoryRequest.ts +171 -0
  82. package/src/models/IndexProductCategoryRequest.ts +187 -0
  83. package/src/models/PaginatedProductCategoryListResourceResponse.ts +90 -0
  84. package/src/models/PaginatedProductCategoryResourceResponse.ts +90 -0
  85. package/src/models/ProductCategoryHierarchyResource.ts +110 -0
  86. package/src/models/ProductCategoryHierarchyResourceArrayResponse.ts +73 -0
  87. package/src/models/ProductCategoryListResource.ts +136 -0
  88. package/src/models/ProductCategoryListResourceArrayResponse.ts +73 -0
  89. package/src/models/ProductCategoryLiteResource.ts +74 -0
  90. package/src/models/ProductCategoryLiteResourceArrayResponse.ts +73 -0
  91. package/src/models/ProductCategoryResource.ts +193 -0
  92. package/src/models/ProductCategoryResourceArrayResponse.ts +73 -0
  93. package/src/models/StoreProductCategoryRequest.ts +175 -0
  94. package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +107 -0
  95. package/src/models/UpdateProductCategoryRequest.ts +169 -0
  96. package/src/models/index.ts +20 -0
@@ -0,0 +1,107 @@
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 StoreProductCategoryRequestAutomationRulesInner
20
+ */
21
+ export interface StoreProductCategoryRequestAutomationRulesInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof StoreProductCategoryRequestAutomationRulesInner
26
+ */
27
+ fieldType: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof StoreProductCategoryRequestAutomationRulesInner
32
+ */
33
+ comparisonType: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof StoreProductCategoryRequestAutomationRulesInner
38
+ */
39
+ groupId?: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof StoreProductCategoryRequestAutomationRulesInner
44
+ */
45
+ relatedId?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof StoreProductCategoryRequestAutomationRulesInner
50
+ */
51
+ value?: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof StoreProductCategoryRequestAutomationRulesInner
56
+ */
57
+ valueId?: number;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the StoreProductCategoryRequestAutomationRulesInner interface.
62
+ */
63
+ export function instanceOfStoreProductCategoryRequestAutomationRulesInner(value: object): value is StoreProductCategoryRequestAutomationRulesInner {
64
+ if (!('fieldType' in value) || value['fieldType'] === undefined) return false;
65
+ if (!('comparisonType' in value) || value['comparisonType'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function StoreProductCategoryRequestAutomationRulesInnerFromJSON(json: any): StoreProductCategoryRequestAutomationRulesInner {
70
+ return StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequestAutomationRulesInner {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'fieldType': json['field_type'],
80
+ 'comparisonType': json['comparison_type'],
81
+ 'groupId': json['group_id'] == null ? undefined : json['group_id'],
82
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
83
+ 'value': json['value'] == null ? undefined : json['value'],
84
+ 'valueId': json['value_id'] == null ? undefined : json['value_id'],
85
+ };
86
+ }
87
+
88
+ export function StoreProductCategoryRequestAutomationRulesInnerToJSON(json: any): StoreProductCategoryRequestAutomationRulesInner {
89
+ return StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(json, false);
90
+ }
91
+
92
+ export function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value?: StoreProductCategoryRequestAutomationRulesInner | null, ignoreDiscriminator: boolean = false): any {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+
97
+ return {
98
+
99
+ 'field_type': value['fieldType'],
100
+ 'comparison_type': value['comparisonType'],
101
+ 'group_id': value['groupId'],
102
+ 'related_id': value['relatedId'],
103
+ 'value': value['value'],
104
+ 'value_id': value['valueId'],
105
+ };
106
+ }
107
+
@@ -0,0 +1,169 @@
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
+ import type { StoreProductCategoryRequestAutomationRulesInner } from './StoreProductCategoryRequestAutomationRulesInner';
17
+ import {
18
+ StoreProductCategoryRequestAutomationRulesInnerFromJSON,
19
+ StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped,
20
+ StoreProductCategoryRequestAutomationRulesInnerToJSON,
21
+ StoreProductCategoryRequestAutomationRulesInnerToJSONTyped,
22
+ } from './StoreProductCategoryRequestAutomationRulesInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UpdateProductCategoryRequest
28
+ */
29
+ export interface UpdateProductCategoryRequest {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UpdateProductCategoryRequest
34
+ */
35
+ siteId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UpdateProductCategoryRequest
40
+ */
41
+ name?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof UpdateProductCategoryRequest
46
+ */
47
+ slug?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof UpdateProductCategoryRequest
52
+ */
53
+ parentId?: string;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof UpdateProductCategoryRequest
58
+ */
59
+ isDisabled?: boolean;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof UpdateProductCategoryRequest
64
+ */
65
+ hideFromFrontend?: boolean;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof UpdateProductCategoryRequest
70
+ */
71
+ isAutomated?: boolean;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof UpdateProductCategoryRequest
76
+ */
77
+ index?: number;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof UpdateProductCategoryRequest
82
+ */
83
+ automatedConditionType?: string;
84
+ /**
85
+ *
86
+ * @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
87
+ * @memberof UpdateProductCategoryRequest
88
+ */
89
+ automationRules?: Array<StoreProductCategoryRequestAutomationRulesInner>;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof UpdateProductCategoryRequest
94
+ */
95
+ altText?: string;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof UpdateProductCategoryRequest
100
+ */
101
+ mimeType?: string;
102
+ /**
103
+ *
104
+ * @type {number}
105
+ * @memberof UpdateProductCategoryRequest
106
+ */
107
+ fileId?: number;
108
+ }
109
+
110
+ /**
111
+ * Check if a given object implements the UpdateProductCategoryRequest interface.
112
+ */
113
+ export function instanceOfUpdateProductCategoryRequest(value: object): value is UpdateProductCategoryRequest {
114
+ return true;
115
+ }
116
+
117
+ export function UpdateProductCategoryRequestFromJSON(json: any): UpdateProductCategoryRequest {
118
+ return UpdateProductCategoryRequestFromJSONTyped(json, false);
119
+ }
120
+
121
+ export function UpdateProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductCategoryRequest {
122
+ if (json == null) {
123
+ return json;
124
+ }
125
+ return {
126
+
127
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
128
+ 'name': json['name'] == null ? undefined : json['name'],
129
+ 'slug': json['slug'] == null ? undefined : json['slug'],
130
+ 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
131
+ 'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
132
+ 'hideFromFrontend': json['hide_from_frontend'] == null ? undefined : json['hide_from_frontend'],
133
+ 'isAutomated': json['is_automated'] == null ? undefined : json['is_automated'],
134
+ 'index': json['index'] == null ? undefined : json['index'],
135
+ 'automatedConditionType': json['automated_condition_type'] == null ? undefined : json['automated_condition_type'],
136
+ 'automationRules': json['automation_rules'] == null ? undefined : ((json['automation_rules'] as Array<any>).map(StoreProductCategoryRequestAutomationRulesInnerFromJSON)),
137
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
138
+ 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
139
+ 'fileId': json['file_id'] == null ? undefined : json['file_id'],
140
+ };
141
+ }
142
+
143
+ export function UpdateProductCategoryRequestToJSON(json: any): UpdateProductCategoryRequest {
144
+ return UpdateProductCategoryRequestToJSONTyped(json, false);
145
+ }
146
+
147
+ export function UpdateProductCategoryRequestToJSONTyped(value?: UpdateProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
148
+ if (value == null) {
149
+ return value;
150
+ }
151
+
152
+ return {
153
+
154
+ 'site_id': value['siteId'],
155
+ 'name': value['name'],
156
+ 'slug': value['slug'],
157
+ 'parent_id': value['parentId'],
158
+ 'is_disabled': value['isDisabled'],
159
+ 'hide_from_frontend': value['hideFromFrontend'],
160
+ 'is_automated': value['isAutomated'],
161
+ 'index': value['index'],
162
+ 'automated_condition_type': value['automatedConditionType'],
163
+ 'automation_rules': value['automationRules'] == null ? undefined : ((value['automationRules'] as Array<any>).map(StoreProductCategoryRequestAutomationRulesInnerToJSON)),
164
+ 'alt_text': value['altText'],
165
+ 'mime_type': value['mimeType'],
166
+ 'file_id': value['fileId'],
167
+ };
168
+ }
169
+
@@ -26,6 +26,11 @@ export * from './AttributeResourceArrayResponse';
26
26
  export * from './AttributeType';
27
27
  export * from './AttributeValueResource';
28
28
  export * from './AttributeValueResourceArrayResponse';
29
+ export * from './CategoryAutomationComparisonType';
30
+ export * from './CategoryAutomationConditionType';
31
+ export * from './CategoryAutomationFieldType';
32
+ export * from './CategoryAutomationRuleResource';
33
+ export * from './CategoryAutomationRuleResourceArrayResponse';
29
34
  export * from './CouponDiscountType';
30
35
  export * from './DescriptionResource';
31
36
  export * from './DescriptionResourceArrayResponse';
@@ -51,6 +56,7 @@ export * from './GetAllAttributeRequest';
51
56
  export * from './GetAllDocumentRequest';
52
57
  export * from './GetAllGoogleCategoryRequest';
53
58
  export * from './GetAllOverlayTemplateRequest';
59
+ export * from './GetAllProductCategoryRequest';
54
60
  export * from './GetAllProductChildRequest';
55
61
  export * from './GetAllProductRequest';
56
62
  export * from './GetAllProductTypeRequest';
@@ -61,6 +67,7 @@ export * from './IndexAttributeRequest';
61
67
  export * from './IndexDocumentRequest';
62
68
  export * from './IndexExternalApiLogRequest';
63
69
  export * from './IndexOverlayTemplateRequest';
70
+ export * from './IndexProductCategoryRequest';
64
71
  export * from './IndexProductChildRequest';
65
72
  export * from './IndexProductRequest';
66
73
  export * from './IndexProductTypeRequest';
@@ -90,6 +97,8 @@ export * from './PaginatedGoogleCategoryResourceResponse';
90
97
  export * from './PaginatedOverlayTemplateListResourceResponse';
91
98
  export * from './PaginatedOverlayTemplateLiteResourceResponse';
92
99
  export * from './PaginatedOverlayTemplateResourceResponse';
100
+ export * from './PaginatedProductCategoryListResourceResponse';
101
+ export * from './PaginatedProductCategoryResourceResponse';
93
102
  export * from './PaginatedProductChildListResourceResponse';
94
103
  export * from './PaginatedProductChildLiteResourceResponse';
95
104
  export * from './PaginatedProductChildOverlayRelationResourceResponse';
@@ -114,6 +123,14 @@ export * from './PaginatedTagListResourceResponse';
114
123
  export * from './PaginatedTagLiteResourceResponse';
115
124
  export * from './PaginatedTagResourceResponse';
116
125
  export * from './PagingMetadata';
126
+ export * from './ProductCategoryHierarchyResource';
127
+ export * from './ProductCategoryHierarchyResourceArrayResponse';
128
+ export * from './ProductCategoryListResource';
129
+ export * from './ProductCategoryListResourceArrayResponse';
130
+ export * from './ProductCategoryLiteResource';
131
+ export * from './ProductCategoryLiteResourceArrayResponse';
132
+ export * from './ProductCategoryResource';
133
+ export * from './ProductCategoryResourceArrayResponse';
117
134
  export * from './ProductChildListResource';
118
135
  export * from './ProductChildListResourceArrayResponse';
119
136
  export * from './ProductChildLiteResource';
@@ -163,6 +180,8 @@ export * from './StoreDocumentFileRequest';
163
180
  export * from './StoreDocumentRequest';
164
181
  export * from './StoreOverlayTemplateAssetRequest';
165
182
  export * from './StoreOverlayTemplateRequest';
183
+ export * from './StoreProductCategoryRequest';
184
+ export * from './StoreProductCategoryRequestAutomationRulesInner';
166
185
  export * from './StoreProductChildRequest';
167
186
  export * from './StoreProductChildRequestAssetsInner';
168
187
  export * from './StoreProductChildRequestAttributeValuesInner';
@@ -198,6 +217,7 @@ export * from './UpdateFilterOrderAttributeRequestValuesInner';
198
217
  export * from './UpdateModelAttributeRequest';
199
218
  export * from './UpdateOverlayTemplateAssetRequest';
200
219
  export * from './UpdateOverlayTemplateRequest';
220
+ export * from './UpdateProductCategoryRequest';
201
221
  export * from './UpdateProductChildRequest';
202
222
  export * from './UpdateProductChildRequestAssetsInner';
203
223
  export * from './UpdateProductRequest';