@digital8/lighting-illusions-ts-sdk 0.0.531 → 0.0.533
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +66 -0
- package/README.md +42 -2
- 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/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
- package/dist/models/ProductAggregationResource.d.ts +50 -0
- package/dist/models/ProductAggregationResource.js +63 -0
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductAggregationResourceArrayResponse.js +50 -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/ProductRating.d.ts +26 -0
- package/dist/models/ProductRating.js +52 -0
- package/dist/models/ProductSearchResponseResource.d.ts +54 -0
- package/dist/models/ProductSearchResponseResource.js +67 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
- package/dist/models/ProductSearchResultResource.d.ts +116 -0
- package/dist/models/ProductSearchResultResource.js +105 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
- package/dist/models/ProductSortBy.d.ts +32 -0
- package/dist/models/ProductSortBy.js +58 -0
- package/dist/models/ProductStatus.d.ts +24 -0
- package/dist/models/ProductStatus.js +50 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +113 -0
- package/dist/models/StoreProductCategoryRequest.js +94 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +87 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +87 -0
- package/dist/models/UpdateProductCategoryRequest.d.ts +113 -0
- package/dist/models/UpdateProductCategoryRequest.js +82 -0
- package/dist/models/index.d.ts +32 -0
- package/dist/models/index.js +32 -0
- package/docs/CategoryAutomationComparisonType.md +32 -0
- package/docs/CategoryAutomationConditionType.md +32 -0
- package/docs/CategoryAutomationFieldType.md +32 -0
- 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/PaginatedProductCategoryListResourceResponse.md +36 -0
- package/docs/PaginatedProductCategoryResourceResponse.md +36 -0
- package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
- package/docs/ProductAggregationResource.md +40 -0
- package/docs/ProductAggregationResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryApi.md +534 -0
- package/docs/ProductCategoryHierarchyResource.md +44 -0
- package/docs/ProductCategoryHierarchyResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryListResource.md +48 -0
- package/docs/ProductCategoryListResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryLiteResource.md +36 -0
- package/docs/ProductCategoryLiteResourceArrayResponse.md +34 -0
- package/docs/ProductCategoryResource.md +58 -0
- package/docs/ProductCategoryResourceArrayResponse.md +34 -0
- package/docs/ProductRating.md +32 -0
- package/docs/ProductSearchResponseResource.md +40 -0
- package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
- package/docs/ProductSearchResponseResourceMeta.md +40 -0
- package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
- package/docs/ProductSearchResultResource.md +62 -0
- package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
- package/docs/ProductSortBy.md +32 -0
- package/docs/ProductStatus.md +32 -0
- 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/PaginatedProductSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductAggregationResource.ts +93 -0
- package/src/models/ProductAggregationResourceArrayResponse.ts +73 -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/ProductRating.ts +54 -0
- package/src/models/ProductSearchResponseResource.ts +122 -0
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
- package/src/models/ProductSearchResultResource.ts +191 -0
- package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
- package/src/models/ProductSortBy.ts +60 -0
- package/src/models/ProductStatus.ts +52 -0
- package/src/models/StoreProductCategoryRequest.ts +186 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +136 -0
- package/src/models/UpdateProductCategoryRequest.ts +180 -0
- package/src/models/index.ts +32 -0
|
@@ -0,0 +1,186 @@
|
|
|
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?: StoreProductCategoryRequestAutomatedConditionTypeEnum;
|
|
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
|
+
/**
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export const StoreProductCategoryRequestAutomatedConditionTypeEnum = {
|
|
115
|
+
And: 'and',
|
|
116
|
+
Or: 'or'
|
|
117
|
+
} as const;
|
|
118
|
+
export type StoreProductCategoryRequestAutomatedConditionTypeEnum = typeof StoreProductCategoryRequestAutomatedConditionTypeEnum[keyof typeof StoreProductCategoryRequestAutomatedConditionTypeEnum];
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Check if a given object implements the StoreProductCategoryRequest interface.
|
|
123
|
+
*/
|
|
124
|
+
export function instanceOfStoreProductCategoryRequest(value: object): value is StoreProductCategoryRequest {
|
|
125
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
126
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
127
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
128
|
+
if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
|
|
129
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
130
|
+
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function StoreProductCategoryRequestFromJSON(json: any): StoreProductCategoryRequest {
|
|
135
|
+
return StoreProductCategoryRequestFromJSONTyped(json, false);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function StoreProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequest {
|
|
139
|
+
if (json == null) {
|
|
140
|
+
return json;
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'siteId': json['site_id'],
|
|
145
|
+
'name': json['name'],
|
|
146
|
+
'slug': json['slug'],
|
|
147
|
+
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
148
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
149
|
+
'hideFromFrontend': json['hide_from_frontend'] == null ? undefined : json['hide_from_frontend'],
|
|
150
|
+
'isAutomated': json['is_automated'],
|
|
151
|
+
'index': json['index'] == null ? undefined : json['index'],
|
|
152
|
+
'automatedConditionType': json['automated_condition_type'] == null ? undefined : json['automated_condition_type'],
|
|
153
|
+
'automationRules': json['automation_rules'] == null ? undefined : ((json['automation_rules'] as Array<any>).map(StoreProductCategoryRequestAutomationRulesInnerFromJSON)),
|
|
154
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
155
|
+
'mimeType': json['mime_type'],
|
|
156
|
+
'fileId': json['file_id'],
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function StoreProductCategoryRequestToJSON(json: any): StoreProductCategoryRequest {
|
|
161
|
+
return StoreProductCategoryRequestToJSONTyped(json, false);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function StoreProductCategoryRequestToJSONTyped(value?: StoreProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
165
|
+
if (value == null) {
|
|
166
|
+
return value;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return {
|
|
170
|
+
|
|
171
|
+
'site_id': value['siteId'],
|
|
172
|
+
'name': value['name'],
|
|
173
|
+
'slug': value['slug'],
|
|
174
|
+
'parent_id': value['parentId'],
|
|
175
|
+
'is_disabled': value['isDisabled'],
|
|
176
|
+
'hide_from_frontend': value['hideFromFrontend'],
|
|
177
|
+
'is_automated': value['isAutomated'],
|
|
178
|
+
'index': value['index'],
|
|
179
|
+
'automated_condition_type': value['automatedConditionType'],
|
|
180
|
+
'automation_rules': value['automationRules'] == null ? undefined : ((value['automationRules'] as Array<any>).map(StoreProductCategoryRequestAutomationRulesInnerToJSON)),
|
|
181
|
+
'alt_text': value['altText'],
|
|
182
|
+
'mime_type': value['mimeType'],
|
|
183
|
+
'file_id': value['fileId'],
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface StoreProductCategoryRequestAutomationRulesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
26
|
+
*/
|
|
27
|
+
fieldType: StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
32
|
+
*/
|
|
33
|
+
comparisonType: StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum;
|
|
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
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
|
|
65
|
+
Price: 'price',
|
|
66
|
+
Name: 'name',
|
|
67
|
+
VariantName: 'variant_name',
|
|
68
|
+
Attribute: 'attribute',
|
|
69
|
+
Tag: 'tag',
|
|
70
|
+
Supplier: 'supplier',
|
|
71
|
+
Label: 'label'
|
|
72
|
+
} as const;
|
|
73
|
+
export type StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof StoreProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = {
|
|
79
|
+
Greater: 'greater',
|
|
80
|
+
Less: 'less',
|
|
81
|
+
Equal: 'equal',
|
|
82
|
+
NotEqual: 'notEqual',
|
|
83
|
+
Contains: 'contains',
|
|
84
|
+
NotContains: 'notContains'
|
|
85
|
+
} as const;
|
|
86
|
+
export type StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = typeof StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum[keyof typeof StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum];
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Check if a given object implements the StoreProductCategoryRequestAutomationRulesInner interface.
|
|
91
|
+
*/
|
|
92
|
+
export function instanceOfStoreProductCategoryRequestAutomationRulesInner(value: object): value is StoreProductCategoryRequestAutomationRulesInner {
|
|
93
|
+
if (!('fieldType' in value) || value['fieldType'] === undefined) return false;
|
|
94
|
+
if (!('comparisonType' in value) || value['comparisonType'] === undefined) return false;
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function StoreProductCategoryRequestAutomationRulesInnerFromJSON(json: any): StoreProductCategoryRequestAutomationRulesInner {
|
|
99
|
+
return StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductCategoryRequestAutomationRulesInner {
|
|
103
|
+
if (json == null) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'fieldType': json['field_type'],
|
|
109
|
+
'comparisonType': json['comparison_type'],
|
|
110
|
+
'groupId': json['group_id'] == null ? undefined : json['group_id'],
|
|
111
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
112
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
113
|
+
'valueId': json['value_id'] == null ? undefined : json['value_id'],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function StoreProductCategoryRequestAutomationRulesInnerToJSON(json: any): StoreProductCategoryRequestAutomationRulesInner {
|
|
118
|
+
return StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value?: StoreProductCategoryRequestAutomationRulesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
122
|
+
if (value == null) {
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'field_type': value['fieldType'],
|
|
129
|
+
'comparison_type': value['comparisonType'],
|
|
130
|
+
'group_id': value['groupId'],
|
|
131
|
+
'related_id': value['relatedId'],
|
|
132
|
+
'value': value['value'],
|
|
133
|
+
'value_id': value['valueId'],
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
@@ -0,0 +1,180 @@
|
|
|
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?: UpdateProductCategoryRequestAutomatedConditionTypeEnum;
|
|
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
|
+
/**
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export const UpdateProductCategoryRequestAutomatedConditionTypeEnum = {
|
|
115
|
+
And: 'and',
|
|
116
|
+
Or: 'or'
|
|
117
|
+
} as const;
|
|
118
|
+
export type UpdateProductCategoryRequestAutomatedConditionTypeEnum = typeof UpdateProductCategoryRequestAutomatedConditionTypeEnum[keyof typeof UpdateProductCategoryRequestAutomatedConditionTypeEnum];
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Check if a given object implements the UpdateProductCategoryRequest interface.
|
|
123
|
+
*/
|
|
124
|
+
export function instanceOfUpdateProductCategoryRequest(value: object): value is UpdateProductCategoryRequest {
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function UpdateProductCategoryRequestFromJSON(json: any): UpdateProductCategoryRequest {
|
|
129
|
+
return UpdateProductCategoryRequestFromJSONTyped(json, false);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function UpdateProductCategoryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductCategoryRequest {
|
|
133
|
+
if (json == null) {
|
|
134
|
+
return json;
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
|
|
138
|
+
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
139
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
140
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
141
|
+
'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
|
|
142
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
143
|
+
'hideFromFrontend': json['hide_from_frontend'] == null ? undefined : json['hide_from_frontend'],
|
|
144
|
+
'isAutomated': json['is_automated'] == null ? undefined : json['is_automated'],
|
|
145
|
+
'index': json['index'] == null ? undefined : json['index'],
|
|
146
|
+
'automatedConditionType': json['automated_condition_type'] == null ? undefined : json['automated_condition_type'],
|
|
147
|
+
'automationRules': json['automation_rules'] == null ? undefined : ((json['automation_rules'] as Array<any>).map(StoreProductCategoryRequestAutomationRulesInnerFromJSON)),
|
|
148
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
149
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
150
|
+
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function UpdateProductCategoryRequestToJSON(json: any): UpdateProductCategoryRequest {
|
|
155
|
+
return UpdateProductCategoryRequestToJSONTyped(json, false);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function UpdateProductCategoryRequestToJSONTyped(value?: UpdateProductCategoryRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
159
|
+
if (value == null) {
|
|
160
|
+
return value;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return {
|
|
164
|
+
|
|
165
|
+
'site_id': value['siteId'],
|
|
166
|
+
'name': value['name'],
|
|
167
|
+
'slug': value['slug'],
|
|
168
|
+
'parent_id': value['parentId'],
|
|
169
|
+
'is_disabled': value['isDisabled'],
|
|
170
|
+
'hide_from_frontend': value['hideFromFrontend'],
|
|
171
|
+
'is_automated': value['isAutomated'],
|
|
172
|
+
'index': value['index'],
|
|
173
|
+
'automated_condition_type': value['automatedConditionType'],
|
|
174
|
+
'automation_rules': value['automationRules'] == null ? undefined : ((value['automationRules'] as Array<any>).map(StoreProductCategoryRequestAutomationRulesInnerToJSON)),
|
|
175
|
+
'alt_text': value['altText'],
|
|
176
|
+
'mime_type': value['mimeType'],
|
|
177
|
+
'file_id': value['fileId'],
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|
|
@@ -98,6 +107,7 @@ export * from './PaginatedProductChildResourceResponse';
|
|
|
98
107
|
export * from './PaginatedProductListResourceResponse';
|
|
99
108
|
export * from './PaginatedProductLiteResourceResponse';
|
|
100
109
|
export * from './PaginatedProductResourceResponse';
|
|
110
|
+
export * from './PaginatedProductSearchResultResourceResponse';
|
|
101
111
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
102
112
|
export * from './PaginatedProductTypeLiteResourceResponse';
|
|
103
113
|
export * from './PaginatedProductTypeResourceResponse';
|
|
@@ -114,6 +124,16 @@ export * from './PaginatedTagListResourceResponse';
|
|
|
114
124
|
export * from './PaginatedTagLiteResourceResponse';
|
|
115
125
|
export * from './PaginatedTagResourceResponse';
|
|
116
126
|
export * from './PagingMetadata';
|
|
127
|
+
export * from './ProductAggregationResource';
|
|
128
|
+
export * from './ProductAggregationResourceArrayResponse';
|
|
129
|
+
export * from './ProductCategoryHierarchyResource';
|
|
130
|
+
export * from './ProductCategoryHierarchyResourceArrayResponse';
|
|
131
|
+
export * from './ProductCategoryListResource';
|
|
132
|
+
export * from './ProductCategoryListResourceArrayResponse';
|
|
133
|
+
export * from './ProductCategoryLiteResource';
|
|
134
|
+
export * from './ProductCategoryLiteResourceArrayResponse';
|
|
135
|
+
export * from './ProductCategoryResource';
|
|
136
|
+
export * from './ProductCategoryResourceArrayResponse';
|
|
117
137
|
export * from './ProductChildListResource';
|
|
118
138
|
export * from './ProductChildListResourceArrayResponse';
|
|
119
139
|
export * from './ProductChildLiteResource';
|
|
@@ -132,8 +152,17 @@ export * from './ProductListResource';
|
|
|
132
152
|
export * from './ProductListResourceArrayResponse';
|
|
133
153
|
export * from './ProductLiteResource';
|
|
134
154
|
export * from './ProductLiteResourceArrayResponse';
|
|
155
|
+
export * from './ProductRating';
|
|
135
156
|
export * from './ProductResource';
|
|
136
157
|
export * from './ProductResourceArrayResponse';
|
|
158
|
+
export * from './ProductSearchResponseResource';
|
|
159
|
+
export * from './ProductSearchResponseResourceArrayResponse';
|
|
160
|
+
export * from './ProductSearchResponseResourceMeta';
|
|
161
|
+
export * from './ProductSearchResponseResourcePriceInfo';
|
|
162
|
+
export * from './ProductSearchResultResource';
|
|
163
|
+
export * from './ProductSearchResultResourceArrayResponse';
|
|
164
|
+
export * from './ProductSortBy';
|
|
165
|
+
export * from './ProductStatus';
|
|
137
166
|
export * from './ProductTypeListResource';
|
|
138
167
|
export * from './ProductTypeListResourceArrayResponse';
|
|
139
168
|
export * from './ProductTypeLiteResource';
|
|
@@ -163,6 +192,8 @@ export * from './StoreDocumentFileRequest';
|
|
|
163
192
|
export * from './StoreDocumentRequest';
|
|
164
193
|
export * from './StoreOverlayTemplateAssetRequest';
|
|
165
194
|
export * from './StoreOverlayTemplateRequest';
|
|
195
|
+
export * from './StoreProductCategoryRequest';
|
|
196
|
+
export * from './StoreProductCategoryRequestAutomationRulesInner';
|
|
166
197
|
export * from './StoreProductChildRequest';
|
|
167
198
|
export * from './StoreProductChildRequestAssetsInner';
|
|
168
199
|
export * from './StoreProductChildRequestAttributeValuesInner';
|
|
@@ -198,6 +229,7 @@ export * from './UpdateFilterOrderAttributeRequestValuesInner';
|
|
|
198
229
|
export * from './UpdateModelAttributeRequest';
|
|
199
230
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
200
231
|
export * from './UpdateOverlayTemplateRequest';
|
|
232
|
+
export * from './UpdateProductCategoryRequest';
|
|
201
233
|
export * from './UpdateProductChildRequest';
|
|
202
234
|
export * from './UpdateProductChildRequestAssetsInner';
|
|
203
235
|
export * from './UpdateProductRequest';
|