@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,73 @@
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 { ProductCategoryListResource } from './ProductCategoryListResource';
17
+ import {
18
+ ProductCategoryListResourceFromJSON,
19
+ ProductCategoryListResourceFromJSONTyped,
20
+ ProductCategoryListResourceToJSON,
21
+ ProductCategoryListResourceToJSONTyped,
22
+ } from './ProductCategoryListResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductCategoryListResourceArrayResponse
28
+ */
29
+ export interface ProductCategoryListResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductCategoryListResource>}
33
+ * @memberof ProductCategoryListResourceArrayResponse
34
+ */
35
+ data?: Array<ProductCategoryListResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductCategoryListResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductCategoryListResourceArrayResponse(value: object): value is ProductCategoryListResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductCategoryListResourceArrayResponseFromJSON(json: any): ProductCategoryListResourceArrayResponse {
46
+ return ProductCategoryListResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductCategoryListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryListResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductCategoryListResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductCategoryListResourceArrayResponseToJSON(json: any): ProductCategoryListResourceArrayResponse {
60
+ return ProductCategoryListResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductCategoryListResourceArrayResponseToJSONTyped(value?: ProductCategoryListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductCategoryListResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,74 @@
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 ProductCategoryLiteResource
20
+ */
21
+ export interface ProductCategoryLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ProductCategoryLiteResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ProductCategoryLiteResource
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ProductCategoryLiteResource interface.
38
+ */
39
+ export function instanceOfProductCategoryLiteResource(value: object): value is ProductCategoryLiteResource {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function ProductCategoryLiteResourceFromJSON(json: any): ProductCategoryLiteResource {
45
+ return ProductCategoryLiteResourceFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function ProductCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryLiteResource {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'id': json['id'] == null ? undefined : json['id'],
55
+ 'name': json['name'],
56
+ };
57
+ }
58
+
59
+ export function ProductCategoryLiteResourceToJSON(json: any): ProductCategoryLiteResource {
60
+ return ProductCategoryLiteResourceToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductCategoryLiteResourceToJSONTyped(value?: ProductCategoryLiteResource | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'id': value['id'],
71
+ 'name': value['name'],
72
+ };
73
+ }
74
+
@@ -0,0 +1,73 @@
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 { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
17
+ import {
18
+ ProductCategoryLiteResourceFromJSON,
19
+ ProductCategoryLiteResourceFromJSONTyped,
20
+ ProductCategoryLiteResourceToJSON,
21
+ ProductCategoryLiteResourceToJSONTyped,
22
+ } from './ProductCategoryLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductCategoryLiteResourceArrayResponse
28
+ */
29
+ export interface ProductCategoryLiteResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductCategoryLiteResource>}
33
+ * @memberof ProductCategoryLiteResourceArrayResponse
34
+ */
35
+ data?: Array<ProductCategoryLiteResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductCategoryLiteResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductCategoryLiteResourceArrayResponse(value: object): value is ProductCategoryLiteResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductCategoryLiteResourceArrayResponseFromJSON(json: any): ProductCategoryLiteResourceArrayResponse {
46
+ return ProductCategoryLiteResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductCategoryLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryLiteResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductCategoryLiteResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductCategoryLiteResourceArrayResponseToJSON(json: any): ProductCategoryLiteResourceArrayResponse {
60
+ return ProductCategoryLiteResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductCategoryLiteResourceArrayResponseToJSONTyped(value?: ProductCategoryLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductCategoryLiteResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,193 @@
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 { SiteLiteResource } from './SiteLiteResource';
17
+ import {
18
+ SiteLiteResourceFromJSON,
19
+ SiteLiteResourceFromJSONTyped,
20
+ SiteLiteResourceToJSON,
21
+ SiteLiteResourceToJSONTyped,
22
+ } from './SiteLiteResource';
23
+ import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
24
+ import {
25
+ ProductCategoryLiteResourceFromJSON,
26
+ ProductCategoryLiteResourceFromJSONTyped,
27
+ ProductCategoryLiteResourceToJSON,
28
+ ProductCategoryLiteResourceToJSONTyped,
29
+ } from './ProductCategoryLiteResource';
30
+ import type { AssetResource } from './AssetResource';
31
+ import {
32
+ AssetResourceFromJSON,
33
+ AssetResourceFromJSONTyped,
34
+ AssetResourceToJSON,
35
+ AssetResourceToJSONTyped,
36
+ } from './AssetResource';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface ProductCategoryResource
42
+ */
43
+ export interface ProductCategoryResource {
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof ProductCategoryResource
48
+ */
49
+ id?: number | null;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof ProductCategoryResource
54
+ */
55
+ siteId: number;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ProductCategoryResource
60
+ */
61
+ name: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof ProductCategoryResource
66
+ */
67
+ slug: string;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof ProductCategoryResource
72
+ */
73
+ parentId?: string | null;
74
+ /**
75
+ *
76
+ * @type {boolean}
77
+ * @memberof ProductCategoryResource
78
+ */
79
+ isDisabled: boolean;
80
+ /**
81
+ *
82
+ * @type {boolean}
83
+ * @memberof ProductCategoryResource
84
+ */
85
+ isAutomated: boolean;
86
+ /**
87
+ *
88
+ * @type {number}
89
+ * @memberof ProductCategoryResource
90
+ */
91
+ index: number;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof ProductCategoryResource
96
+ */
97
+ automatedConditionType?: string | null;
98
+ /**
99
+ *
100
+ * @type {AssetResource}
101
+ * @memberof ProductCategoryResource
102
+ */
103
+ thumbnail: AssetResource | null;
104
+ /**
105
+ *
106
+ * @type {object}
107
+ * @memberof ProductCategoryResource
108
+ */
109
+ automationRules: object;
110
+ /**
111
+ *
112
+ * @type {ProductCategoryLiteResource}
113
+ * @memberof ProductCategoryResource
114
+ */
115
+ parent: ProductCategoryLiteResource | null;
116
+ /**
117
+ *
118
+ * @type {SiteLiteResource}
119
+ * @memberof ProductCategoryResource
120
+ */
121
+ site: SiteLiteResource | null;
122
+ }
123
+
124
+ /**
125
+ * Check if a given object implements the ProductCategoryResource interface.
126
+ */
127
+ export function instanceOfProductCategoryResource(value: object): value is ProductCategoryResource {
128
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
129
+ if (!('name' in value) || value['name'] === undefined) return false;
130
+ if (!('slug' in value) || value['slug'] === undefined) return false;
131
+ if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
132
+ if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
133
+ if (!('index' in value) || value['index'] === undefined) return false;
134
+ if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
135
+ if (!('automationRules' in value) || value['automationRules'] === undefined) return false;
136
+ if (!('parent' in value) || value['parent'] === undefined) return false;
137
+ if (!('site' in value) || value['site'] === undefined) return false;
138
+ return true;
139
+ }
140
+
141
+ export function ProductCategoryResourceFromJSON(json: any): ProductCategoryResource {
142
+ return ProductCategoryResourceFromJSONTyped(json, false);
143
+ }
144
+
145
+ export function ProductCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryResource {
146
+ if (json == null) {
147
+ return json;
148
+ }
149
+ return {
150
+
151
+ 'id': json['id'] == null ? undefined : json['id'],
152
+ 'siteId': json['siteId'],
153
+ 'name': json['name'],
154
+ 'slug': json['slug'],
155
+ 'parentId': json['parentId'] == null ? undefined : json['parentId'],
156
+ 'isDisabled': json['isDisabled'],
157
+ 'isAutomated': json['isAutomated'],
158
+ 'index': json['index'],
159
+ 'automatedConditionType': json['automatedConditionType'] == null ? undefined : json['automatedConditionType'],
160
+ 'thumbnail': AssetResourceFromJSON(json['thumbnail']),
161
+ 'automationRules': json['automationRules'],
162
+ 'parent': ProductCategoryLiteResourceFromJSON(json['parent']),
163
+ 'site': SiteLiteResourceFromJSON(json['site']),
164
+ };
165
+ }
166
+
167
+ export function ProductCategoryResourceToJSON(json: any): ProductCategoryResource {
168
+ return ProductCategoryResourceToJSONTyped(json, false);
169
+ }
170
+
171
+ export function ProductCategoryResourceToJSONTyped(value?: ProductCategoryResource | null, ignoreDiscriminator: boolean = false): any {
172
+ if (value == null) {
173
+ return value;
174
+ }
175
+
176
+ return {
177
+
178
+ 'id': value['id'],
179
+ 'siteId': value['siteId'],
180
+ 'name': value['name'],
181
+ 'slug': value['slug'],
182
+ 'parentId': value['parentId'],
183
+ 'isDisabled': value['isDisabled'],
184
+ 'isAutomated': value['isAutomated'],
185
+ 'index': value['index'],
186
+ 'automatedConditionType': value['automatedConditionType'],
187
+ 'thumbnail': AssetResourceToJSON(value['thumbnail']),
188
+ 'automationRules': value['automationRules'],
189
+ 'parent': ProductCategoryLiteResourceToJSON(value['parent']),
190
+ 'site': SiteLiteResourceToJSON(value['site']),
191
+ };
192
+ }
193
+
@@ -0,0 +1,73 @@
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 { ProductCategoryResource } from './ProductCategoryResource';
17
+ import {
18
+ ProductCategoryResourceFromJSON,
19
+ ProductCategoryResourceFromJSONTyped,
20
+ ProductCategoryResourceToJSON,
21
+ ProductCategoryResourceToJSONTyped,
22
+ } from './ProductCategoryResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductCategoryResourceArrayResponse
28
+ */
29
+ export interface ProductCategoryResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductCategoryResource>}
33
+ * @memberof ProductCategoryResourceArrayResponse
34
+ */
35
+ data?: Array<ProductCategoryResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductCategoryResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductCategoryResourceArrayResponse(value: object): value is ProductCategoryResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductCategoryResourceArrayResponseFromJSON(json: any): ProductCategoryResourceArrayResponse {
46
+ return ProductCategoryResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductCategoryResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductCategoryResourceArrayResponseToJSON(json: any): ProductCategoryResourceArrayResponse {
60
+ return ProductCategoryResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductCategoryResourceArrayResponseToJSONTyped(value?: ProductCategoryResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductCategoryResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,175 @@
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 StoreProductCategoryRequest
28
+ */
29
+ export interface StoreProductCategoryRequest {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof StoreProductCategoryRequest
34
+ */
35
+ siteId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof StoreProductCategoryRequest
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof StoreProductCategoryRequest
46
+ */
47
+ slug: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof StoreProductCategoryRequest
52
+ */
53
+ parentId?: string;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof StoreProductCategoryRequest
58
+ */
59
+ isDisabled?: boolean;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof StoreProductCategoryRequest
64
+ */
65
+ hideFromFrontend?: boolean;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof StoreProductCategoryRequest
70
+ */
71
+ isAutomated: boolean;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof StoreProductCategoryRequest
76
+ */
77
+ index?: number;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof StoreProductCategoryRequest
82
+ */
83
+ automatedConditionType?: string;
84
+ /**
85
+ *
86
+ * @type {Array<StoreProductCategoryRequestAutomationRulesInner>}
87
+ * @memberof StoreProductCategoryRequest
88
+ */
89
+ automationRules?: Array<StoreProductCategoryRequestAutomationRulesInner>;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof StoreProductCategoryRequest
94
+ */
95
+ altText?: string;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof StoreProductCategoryRequest
100
+ */
101
+ mimeType: string;
102
+ /**
103
+ *
104
+ * @type {number}
105
+ * @memberof StoreProductCategoryRequest
106
+ */
107
+ fileId: number;
108
+ }
109
+
110
+ /**
111
+ * Check if a given object implements the StoreProductCategoryRequest interface.
112
+ */
113
+ export function instanceOfStoreProductCategoryRequest(value: object): value is StoreProductCategoryRequest {
114
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
115
+ if (!('name' in value) || value['name'] === undefined) return false;
116
+ if (!('slug' in value) || value['slug'] === undefined) return false;
117
+ if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
118
+ if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
119
+ if (!('fileId' in value) || value['fileId'] === undefined) return false;
120
+ return true;
121
+ }
122
+
123
+ export function StoreProductCategoryRequestFromJSON(json: any): StoreProductCategoryRequest {
124
+ return StoreProductCategoryRequestFromJSONTyped(json, false);
125
+ }
126
+
127
+ export function StoreProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequest {
128
+ if (json == null) {
129
+ return json;
130
+ }
131
+ return {
132
+
133
+ 'siteId': json['site_id'],
134
+ 'name': json['name'],
135
+ 'slug': json['slug'],
136
+ 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
137
+ 'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
138
+ 'hideFromFrontend': json['hide_from_frontend'] == null ? undefined : json['hide_from_frontend'],
139
+ 'isAutomated': json['is_automated'],
140
+ 'index': json['index'] == null ? undefined : json['index'],
141
+ 'automatedConditionType': json['automated_condition_type'] == null ? undefined : json['automated_condition_type'],
142
+ 'automationRules': json['automation_rules'] == null ? undefined : ((json['automation_rules'] as Array<any>).map(StoreProductCategoryRequestAutomationRulesInnerFromJSON)),
143
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
144
+ 'mimeType': json['mime_type'],
145
+ 'fileId': json['file_id'],
146
+ };
147
+ }
148
+
149
+ export function StoreProductCategoryRequestToJSON(json: any): StoreProductCategoryRequest {
150
+ return StoreProductCategoryRequestToJSONTyped(json, false);
151
+ }
152
+
153
+ export function StoreProductCategoryRequestToJSONTyped(value?: StoreProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
154
+ if (value == null) {
155
+ return value;
156
+ }
157
+
158
+ return {
159
+
160
+ 'site_id': value['siteId'],
161
+ 'name': value['name'],
162
+ 'slug': value['slug'],
163
+ 'parent_id': value['parentId'],
164
+ 'is_disabled': value['isDisabled'],
165
+ 'hide_from_frontend': value['hideFromFrontend'],
166
+ 'is_automated': value['isAutomated'],
167
+ 'index': value['index'],
168
+ 'automated_condition_type': value['automatedConditionType'],
169
+ 'automation_rules': value['automationRules'] == null ? undefined : ((value['automationRules'] as Array<any>).map(StoreProductCategoryRequestAutomationRulesInnerToJSON)),
170
+ 'alt_text': value['altText'],
171
+ 'mime_type': value['mimeType'],
172
+ 'file_id': value['fileId'],
173
+ };
174
+ }
175
+