@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,187 @@
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 IndexProductCategoryRequest
20
+ */
21
+ export interface IndexProductCategoryRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof IndexProductCategoryRequest
26
+ */
27
+ search?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof IndexProductCategoryRequest
32
+ */
33
+ sortBy?: IndexProductCategoryRequestSortByEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof IndexProductCategoryRequest
38
+ */
39
+ sortDirection?: IndexProductCategoryRequestSortDirectionEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof IndexProductCategoryRequest
44
+ */
45
+ perPage?: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof IndexProductCategoryRequest
50
+ */
51
+ page?: number;
52
+ /**
53
+ *
54
+ * @type {Array<string>}
55
+ * @memberof IndexProductCategoryRequest
56
+ */
57
+ siteId?: Array<string>;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof IndexProductCategoryRequest
62
+ */
63
+ parentId?: Array<string>;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof IndexProductCategoryRequest
68
+ */
69
+ isDisabled?: Array<string>;
70
+ /**
71
+ *
72
+ * @type {Array<string>}
73
+ * @memberof IndexProductCategoryRequest
74
+ */
75
+ isAutomated?: Array<string>;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof IndexProductCategoryRequest
80
+ */
81
+ relatedId?: number;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof IndexProductCategoryRequest
86
+ */
87
+ relatedType?: IndexProductCategoryRequestRelatedTypeEnum;
88
+ /**
89
+ *
90
+ * @type {boolean}
91
+ * @memberof IndexProductCategoryRequest
92
+ */
93
+ includesRelations?: boolean;
94
+ }
95
+
96
+
97
+ /**
98
+ * @export
99
+ */
100
+ export const IndexProductCategoryRequestSortByEnum = {
101
+ Id: 'id',
102
+ Name: 'name',
103
+ Slug: 'slug',
104
+ Index: 'index',
105
+ IsDisabled: 'is_disabled',
106
+ IsAutomated: 'is_automated',
107
+ CreatedAt: 'created_at',
108
+ UpdatedAt: 'updated_at'
109
+ } as const;
110
+ export type IndexProductCategoryRequestSortByEnum = typeof IndexProductCategoryRequestSortByEnum[keyof typeof IndexProductCategoryRequestSortByEnum];
111
+
112
+ /**
113
+ * @export
114
+ */
115
+ export const IndexProductCategoryRequestSortDirectionEnum = {
116
+ Asc: 'asc',
117
+ Desc: 'desc'
118
+ } as const;
119
+ export type IndexProductCategoryRequestSortDirectionEnum = typeof IndexProductCategoryRequestSortDirectionEnum[keyof typeof IndexProductCategoryRequestSortDirectionEnum];
120
+
121
+ /**
122
+ * @export
123
+ */
124
+ export const IndexProductCategoryRequestRelatedTypeEnum = {
125
+ Product: 'product'
126
+ } as const;
127
+ export type IndexProductCategoryRequestRelatedTypeEnum = typeof IndexProductCategoryRequestRelatedTypeEnum[keyof typeof IndexProductCategoryRequestRelatedTypeEnum];
128
+
129
+
130
+ /**
131
+ * Check if a given object implements the IndexProductCategoryRequest interface.
132
+ */
133
+ export function instanceOfIndexProductCategoryRequest(value: object): value is IndexProductCategoryRequest {
134
+ return true;
135
+ }
136
+
137
+ export function IndexProductCategoryRequestFromJSON(json: any): IndexProductCategoryRequest {
138
+ return IndexProductCategoryRequestFromJSONTyped(json, false);
139
+ }
140
+
141
+ export function IndexProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductCategoryRequest {
142
+ if (json == null) {
143
+ return json;
144
+ }
145
+ return {
146
+
147
+ 'search': json['search'] == null ? undefined : json['search'],
148
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
149
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
150
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
151
+ 'page': json['page'] == null ? undefined : json['page'],
152
+ 'siteId': json['site_id'] == null ? undefined : json['site_id'],
153
+ 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
154
+ 'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
155
+ 'isAutomated': json['is_automated'] == null ? undefined : json['is_automated'],
156
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
157
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
158
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
159
+ };
160
+ }
161
+
162
+ export function IndexProductCategoryRequestToJSON(json: any): IndexProductCategoryRequest {
163
+ return IndexProductCategoryRequestToJSONTyped(json, false);
164
+ }
165
+
166
+ export function IndexProductCategoryRequestToJSONTyped(value?: IndexProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
167
+ if (value == null) {
168
+ return value;
169
+ }
170
+
171
+ return {
172
+
173
+ 'search': value['search'],
174
+ 'sortBy': value['sortBy'],
175
+ 'sortDirection': value['sortDirection'],
176
+ 'per_page': value['perPage'],
177
+ 'page': value['page'],
178
+ 'site_id': value['siteId'],
179
+ 'parent_id': value['parentId'],
180
+ 'is_disabled': value['isDisabled'],
181
+ 'is_automated': value['isAutomated'],
182
+ 'related_id': value['relatedId'],
183
+ 'related_type': value['relatedType'],
184
+ 'includes_relations': value['includesRelations'],
185
+ };
186
+ }
187
+
@@ -0,0 +1,90 @@
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
+ import type { PagingMetadata } from './PagingMetadata';
24
+ import {
25
+ PagingMetadataFromJSON,
26
+ PagingMetadataFromJSONTyped,
27
+ PagingMetadataToJSON,
28
+ PagingMetadataToJSONTyped,
29
+ } from './PagingMetadata';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedProductCategoryListResourceResponse
35
+ */
36
+ export interface PaginatedProductCategoryListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<ProductCategoryListResource>}
40
+ * @memberof PaginatedProductCategoryListResourceResponse
41
+ */
42
+ data: Array<ProductCategoryListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedProductCategoryListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedProductCategoryListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedProductCategoryListResourceResponse(value: object): value is PaginatedProductCategoryListResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedProductCategoryListResourceResponseFromJSON(json: any): PaginatedProductCategoryListResourceResponse {
61
+ return PaginatedProductCategoryListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedProductCategoryListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductCategoryListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(ProductCategoryListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedProductCategoryListResourceResponseToJSON(json: any): PaginatedProductCategoryListResourceResponse {
76
+ return PaginatedProductCategoryListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedProductCategoryListResourceResponseToJSONTyped(value?: PaginatedProductCategoryListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(ProductCategoryListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
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 { PagingMetadata } from './PagingMetadata';
17
+ import {
18
+ PagingMetadataFromJSON,
19
+ PagingMetadataFromJSONTyped,
20
+ PagingMetadataToJSON,
21
+ PagingMetadataToJSONTyped,
22
+ } from './PagingMetadata';
23
+ import type { ProductCategoryResource } from './ProductCategoryResource';
24
+ import {
25
+ ProductCategoryResourceFromJSON,
26
+ ProductCategoryResourceFromJSONTyped,
27
+ ProductCategoryResourceToJSON,
28
+ ProductCategoryResourceToJSONTyped,
29
+ } from './ProductCategoryResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedProductCategoryResourceResponse
35
+ */
36
+ export interface PaginatedProductCategoryResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<ProductCategoryResource>}
40
+ * @memberof PaginatedProductCategoryResourceResponse
41
+ */
42
+ data: Array<ProductCategoryResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedProductCategoryResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedProductCategoryResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedProductCategoryResourceResponse(value: object): value is PaginatedProductCategoryResourceResponse {
55
+ if (!('data' in value) || value['data'] === undefined) return false;
56
+ if (!('meta' in value) || value['meta'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PaginatedProductCategoryResourceResponseFromJSON(json: any): PaginatedProductCategoryResourceResponse {
61
+ return PaginatedProductCategoryResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedProductCategoryResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductCategoryResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(ProductCategoryResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedProductCategoryResourceResponseToJSON(json: any): PaginatedProductCategoryResourceResponse {
76
+ return PaginatedProductCategoryResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedProductCategoryResourceResponseToJSONTyped(value?: PaginatedProductCategoryResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'data': ((value['data'] as Array<any>).map(ProductCategoryResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,110 @@
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 ProductCategoryHierarchyResource
20
+ */
21
+ export interface ProductCategoryHierarchyResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ProductCategoryHierarchyResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ProductCategoryHierarchyResource
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ProductCategoryHierarchyResource
38
+ */
39
+ slug: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ProductCategoryHierarchyResource
44
+ */
45
+ index: number;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof ProductCategoryHierarchyResource
50
+ */
51
+ isAutomated: boolean;
52
+ /**
53
+ *
54
+ * @type {object}
55
+ * @memberof ProductCategoryHierarchyResource
56
+ */
57
+ children: object;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the ProductCategoryHierarchyResource interface.
62
+ */
63
+ export function instanceOfProductCategoryHierarchyResource(value: object): value is ProductCategoryHierarchyResource {
64
+ if (!('name' in value) || value['name'] === undefined) return false;
65
+ if (!('slug' in value) || value['slug'] === undefined) return false;
66
+ if (!('index' in value) || value['index'] === undefined) return false;
67
+ if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
68
+ if (!('children' in value) || value['children'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function ProductCategoryHierarchyResourceFromJSON(json: any): ProductCategoryHierarchyResource {
73
+ return ProductCategoryHierarchyResourceFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function ProductCategoryHierarchyResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryHierarchyResource {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'id': json['id'] == null ? undefined : json['id'],
83
+ 'name': json['name'],
84
+ 'slug': json['slug'],
85
+ 'index': json['index'],
86
+ 'isAutomated': json['isAutomated'],
87
+ 'children': json['children'],
88
+ };
89
+ }
90
+
91
+ export function ProductCategoryHierarchyResourceToJSON(json: any): ProductCategoryHierarchyResource {
92
+ return ProductCategoryHierarchyResourceToJSONTyped(json, false);
93
+ }
94
+
95
+ export function ProductCategoryHierarchyResourceToJSONTyped(value?: ProductCategoryHierarchyResource | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'id': value['id'],
103
+ 'name': value['name'],
104
+ 'slug': value['slug'],
105
+ 'index': value['index'],
106
+ 'isAutomated': value['isAutomated'],
107
+ 'children': value['children'],
108
+ };
109
+ }
110
+
@@ -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 { ProductCategoryHierarchyResource } from './ProductCategoryHierarchyResource';
17
+ import {
18
+ ProductCategoryHierarchyResourceFromJSON,
19
+ ProductCategoryHierarchyResourceFromJSONTyped,
20
+ ProductCategoryHierarchyResourceToJSON,
21
+ ProductCategoryHierarchyResourceToJSONTyped,
22
+ } from './ProductCategoryHierarchyResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductCategoryHierarchyResourceArrayResponse
28
+ */
29
+ export interface ProductCategoryHierarchyResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<ProductCategoryHierarchyResource>}
33
+ * @memberof ProductCategoryHierarchyResourceArrayResponse
34
+ */
35
+ data?: Array<ProductCategoryHierarchyResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ProductCategoryHierarchyResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfProductCategoryHierarchyResourceArrayResponse(value: object): value is ProductCategoryHierarchyResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function ProductCategoryHierarchyResourceArrayResponseFromJSON(json: any): ProductCategoryHierarchyResourceArrayResponse {
46
+ return ProductCategoryHierarchyResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ProductCategoryHierarchyResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryHierarchyResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductCategoryHierarchyResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function ProductCategoryHierarchyResourceArrayResponseToJSON(json: any): ProductCategoryHierarchyResourceArrayResponse {
60
+ return ProductCategoryHierarchyResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProductCategoryHierarchyResourceArrayResponseToJSONTyped(value?: ProductCategoryHierarchyResourceArrayResponse | 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(ProductCategoryHierarchyResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,136 @@
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
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ProductCategoryListResource
28
+ */
29
+ export interface ProductCategoryListResource {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ProductCategoryListResource
34
+ */
35
+ id?: number | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ProductCategoryListResource
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ProductCategoryListResource
46
+ */
47
+ slug: string;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof ProductCategoryListResource
52
+ */
53
+ isDisabled: boolean;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof ProductCategoryListResource
58
+ */
59
+ isAutomated: boolean;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof ProductCategoryListResource
64
+ */
65
+ hasChildren: boolean;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof ProductCategoryListResource
70
+ */
71
+ productCount: number;
72
+ /**
73
+ *
74
+ * @type {SiteLiteResource}
75
+ * @memberof ProductCategoryListResource
76
+ */
77
+ site: SiteLiteResource | null;
78
+ }
79
+
80
+ /**
81
+ * Check if a given object implements the ProductCategoryListResource interface.
82
+ */
83
+ export function instanceOfProductCategoryListResource(value: object): value is ProductCategoryListResource {
84
+ if (!('name' in value) || value['name'] === undefined) return false;
85
+ if (!('slug' in value) || value['slug'] === undefined) return false;
86
+ if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
87
+ if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
88
+ if (!('hasChildren' in value) || value['hasChildren'] === undefined) return false;
89
+ if (!('productCount' in value) || value['productCount'] === undefined) return false;
90
+ if (!('site' in value) || value['site'] === undefined) return false;
91
+ return true;
92
+ }
93
+
94
+ export function ProductCategoryListResourceFromJSON(json: any): ProductCategoryListResource {
95
+ return ProductCategoryListResourceFromJSONTyped(json, false);
96
+ }
97
+
98
+ export function ProductCategoryListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductCategoryListResource {
99
+ if (json == null) {
100
+ return json;
101
+ }
102
+ return {
103
+
104
+ 'id': json['id'] == null ? undefined : json['id'],
105
+ 'name': json['name'],
106
+ 'slug': json['slug'],
107
+ 'isDisabled': json['isDisabled'],
108
+ 'isAutomated': json['isAutomated'],
109
+ 'hasChildren': json['hasChildren'],
110
+ 'productCount': json['productCount'],
111
+ 'site': SiteLiteResourceFromJSON(json['site']),
112
+ };
113
+ }
114
+
115
+ export function ProductCategoryListResourceToJSON(json: any): ProductCategoryListResource {
116
+ return ProductCategoryListResourceToJSONTyped(json, false);
117
+ }
118
+
119
+ export function ProductCategoryListResourceToJSONTyped(value?: ProductCategoryListResource | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'id': value['id'],
127
+ 'name': value['name'],
128
+ 'slug': value['slug'],
129
+ 'isDisabled': value['isDisabled'],
130
+ 'isAutomated': value['isAutomated'],
131
+ 'hasChildren': value['hasChildren'],
132
+ 'productCount': value['productCount'],
133
+ 'site': SiteLiteResourceToJSON(value['site']),
134
+ };
135
+ }
136
+