@digital8/lighting-illusions-ts-sdk 0.0.530 → 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.
- package/.openapi-generator/FILES +42 -24
- package/README.md +30 -14
- package/dist/apis/ProductCategoryApi.d.ts +105 -0
- package/dist/apis/ProductCategoryApi.js +445 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/CategoryAutomationComparisonType.d.ts +29 -0
- package/dist/models/CategoryAutomationComparisonType.js +55 -0
- package/dist/models/CategoryAutomationConditionType.d.ts +25 -0
- package/dist/models/CategoryAutomationConditionType.js +51 -0
- package/dist/models/CategoryAutomationFieldType.d.ts +30 -0
- package/dist/models/CategoryAutomationFieldType.js +56 -0
- package/dist/models/CategoryAutomationRuleResource.d.ts +68 -0
- package/dist/models/CategoryAutomationRuleResource.js +67 -0
- package/dist/models/CategoryAutomationRuleResourceArrayResponse.d.ts +33 -0
- package/dist/models/CategoryAutomationRuleResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllProductCategoryRequest.d.ts +115 -0
- package/dist/models/GetAllProductCategoryRequest.js +94 -0
- package/dist/models/IndexProductCategoryRequest.d.ts +127 -0
- package/dist/models/IndexProductCategoryRequest.js +98 -0
- package/dist/models/PaginatedProductCategoryListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductCategoryListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductCategoryResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductCategoryResourceResponse.js +57 -0
- package/dist/models/ProductCategoryHierarchyResource.d.ts +62 -0
- package/dist/models/ProductCategoryHierarchyResource.js +69 -0
- package/dist/models/ProductCategoryHierarchyResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryHierarchyResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryListResource.d.ts +75 -0
- package/dist/models/ProductCategoryListResource.js +78 -0
- package/dist/models/ProductCategoryListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryListResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryLiteResource.d.ts +38 -0
- package/dist/models/ProductCategoryLiteResource.js +53 -0
- package/dist/models/ProductCategoryLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductCategoryResource.d.ts +107 -0
- package/dist/models/ProductCategoryResource.js +96 -0
- package/dist/models/ProductCategoryResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductCategoryResourceArrayResponse.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +105 -0
- package/dist/models/StoreProductCategoryRequest.js +86 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +62 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +63 -0
- package/dist/models/UpdateProductCategoryRequest.d.ts +105 -0
- package/dist/models/UpdateProductCategoryRequest.js +74 -0
- package/dist/models/index.d.ts +20 -12
- package/dist/models/index.js +20 -12
- package/docs/{ProductSortBy.md → CategoryAutomationComparisonType.md} +4 -4
- package/docs/{ProductStatus.md → CategoryAutomationConditionType.md} +4 -4
- package/docs/{ProductRating.md → CategoryAutomationFieldType.md} +4 -4
- package/docs/CategoryAutomationRuleResource.md +46 -0
- package/docs/CategoryAutomationRuleResourceArrayResponse.md +34 -0
- package/docs/GetAllProductCategoryRequest.md +52 -0
- package/docs/IndexProductCategoryRequest.md +56 -0
- package/docs/{PaginatedProductSearchResultResourceResponse.md → PaginatedProductCategoryListResourceResponse.md} +5 -5
- package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
- package/docs/ProductCategoryApi.md +534 -0
- package/docs/{ProductAggregationResource.md → ProductCategoryHierarchyResource.md} +16 -12
- package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryListResource.md +48 -0
- package/docs/{ProductSearchResultResourceArrayResponse.md → ProductCategoryListResourceArrayResponse.md} +5 -5
- package/docs/ProductCategoryLiteResource.md +36 -0
- package/docs/{ProductSearchResponseResourceArrayResponse.md → ProductCategoryLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductCategoryResource.md +58 -0
- package/docs/{ProductAggregationResourceArrayResponse.md → ProductCategoryResourceArrayResponse.md} +5 -5
- package/docs/StoreProductCategoryRequest.md +58 -0
- package/docs/StoreProductCategoryRequestAutomationRulesInner.md +44 -0
- package/docs/UpdateProductCategoryRequest.md +58 -0
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +363 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CategoryAutomationComparisonType.ts +57 -0
- package/src/models/CategoryAutomationConditionType.ts +53 -0
- package/src/models/CategoryAutomationFieldType.ts +58 -0
- package/src/models/CategoryAutomationRuleResource.ts +116 -0
- package/src/models/CategoryAutomationRuleResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllProductCategoryRequest.ts +171 -0
- package/src/models/IndexProductCategoryRequest.ts +187 -0
- package/src/models/PaginatedProductCategoryListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductCategoryResourceResponse.ts +90 -0
- package/src/models/ProductCategoryHierarchyResource.ts +110 -0
- package/src/models/ProductCategoryHierarchyResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryListResource.ts +136 -0
- package/src/models/ProductCategoryListResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryLiteResource.ts +74 -0
- package/src/models/ProductCategoryLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductCategoryResource.ts +193 -0
- package/src/models/ProductCategoryResourceArrayResponse.ts +73 -0
- package/src/models/StoreProductCategoryRequest.ts +175 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +107 -0
- package/src/models/UpdateProductCategoryRequest.ts +169 -0
- package/src/models/index.ts +20 -12
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +0 -57
- package/dist/models/ProductAggregationResource.d.ts +0 -50
- package/dist/models/ProductAggregationResource.js +0 -63
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductAggregationResourceArrayResponse.js +0 -50
- package/dist/models/ProductRating.d.ts +0 -26
- package/dist/models/ProductRating.js +0 -52
- package/dist/models/ProductSearchResponseResource.d.ts +0 -54
- package/dist/models/ProductSearchResponseResource.js +0 -67
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourceMeta.js +0 -63
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +0 -50
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +0 -63
- package/dist/models/ProductSearchResultResource.d.ts +0 -116
- package/dist/models/ProductSearchResultResource.js +0 -105
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductSearchResultResourceArrayResponse.js +0 -50
- package/dist/models/ProductSortBy.d.ts +0 -32
- package/dist/models/ProductSortBy.js +0 -58
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/docs/ProductSearchResponseResource.md +0 -40
- package/docs/ProductSearchResponseResourceMeta.md +0 -40
- package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
- package/docs/ProductSearchResultResource.md +0 -62
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +0 -90
- package/src/models/ProductAggregationResource.ts +0 -93
- package/src/models/ProductAggregationResourceArrayResponse.ts +0 -73
- package/src/models/ProductRating.ts +0 -54
- package/src/models/ProductSearchResponseResource.ts +0 -122
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +0 -73
- package/src/models/ProductSearchResponseResourceMeta.ts +0 -93
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +0 -93
- package/src/models/ProductSearchResultResource.ts +0 -191
- package/src/models/ProductSearchResultResourceArrayResponse.ts +0 -73
- package/src/models/ProductSortBy.ts +0 -60
- package/src/models/ProductStatus.ts +0 -52
|
@@ -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
|
+
|
|
@@ -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
|
+
|