@digital8/lighting-illusions-ts-sdk 0.0.888 → 0.0.889
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/README.md +2 -2
- package/dist/models/CategoryAutomationRuleResource.d.ts +2 -2
- package/dist/models/CategoryAutomationRuleResource.js +1 -3
- package/dist/models/ProductCategoryResource.d.ts +6 -0
- package/dist/models/ProductCategoryResource.js +4 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +1 -3
- package/docs/CategoryAutomationRuleResource.md +1 -1
- package/docs/ProductCategoryResource.md +2 -0
- package/package.json +1 -1
- package/src/models/CategoryAutomationRuleResource.ts +3 -4
- package/src/models/ProductCategoryResource.ts +9 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.889
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -463,7 +463,7 @@ and is automatically generated by the
|
|
|
463
463
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
464
464
|
|
|
465
465
|
- API version: `1.0.0`
|
|
466
|
-
- Package version: `0.0.
|
|
466
|
+
- Package version: `0.0.889`
|
|
467
467
|
- Generator version: `7.19.0`
|
|
468
468
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
469
469
|
|
|
@@ -35,10 +35,10 @@ export interface CategoryAutomationRuleResource {
|
|
|
35
35
|
comparisonType: object;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof CategoryAutomationRuleResource
|
|
40
40
|
*/
|
|
41
|
-
groupId
|
|
41
|
+
groupId?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -26,8 +26,6 @@ function instanceOfCategoryAutomationRuleResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('comparisonType' in value) || value['comparisonType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('groupId' in value) || value['groupId'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('value' in value) || value['value'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
return true;
|
|
@@ -43,7 +41,7 @@ function CategoryAutomationRuleResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
43
41
|
'id': json['id'] == null ? undefined : json['id'],
|
|
44
42
|
'fieldType': json['fieldType'],
|
|
45
43
|
'comparisonType': json['comparisonType'],
|
|
46
|
-
'groupId': json['groupId'],
|
|
44
|
+
'groupId': json['groupId'] == null ? undefined : json['groupId'],
|
|
47
45
|
'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
|
|
48
46
|
'value': json['value'],
|
|
49
47
|
'valueId': json['valueId'] == null ? undefined : json['valueId'],
|
|
@@ -110,6 +110,12 @@ export interface ProductCategoryResource {
|
|
|
110
110
|
* @memberof ProductCategoryResource
|
|
111
111
|
*/
|
|
112
112
|
descriptions: Array<DescriptionResource> | null;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof ProductCategoryResource
|
|
117
|
+
*/
|
|
118
|
+
linkedProductsCount: number;
|
|
113
119
|
}
|
|
114
120
|
/**
|
|
115
121
|
* Check if a given object implements the ProductCategoryResource interface.
|
|
@@ -51,6 +51,8 @@ function instanceOfProductCategoryResource(value) {
|
|
|
51
51
|
return false;
|
|
52
52
|
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
53
53
|
return false;
|
|
54
|
+
if (!('linkedProductsCount' in value) || value['linkedProductsCount'] === undefined)
|
|
55
|
+
return false;
|
|
54
56
|
return true;
|
|
55
57
|
}
|
|
56
58
|
function ProductCategoryResourceFromJSON(json) {
|
|
@@ -76,6 +78,7 @@ function ProductCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
78
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
77
79
|
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
78
80
|
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
81
|
+
'linkedProductsCount': json['linkedProductsCount'],
|
|
79
82
|
};
|
|
80
83
|
}
|
|
81
84
|
function ProductCategoryResourceToJSON(json) {
|
|
@@ -102,5 +105,6 @@ function ProductCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
105
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
103
106
|
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
104
107
|
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
108
|
+
'linkedProductsCount': value['linkedProductsCount'],
|
|
105
109
|
};
|
|
106
110
|
}
|
|
@@ -50,8 +50,6 @@ function instanceOfStoreProductCategoryRequestAutomationRulesInner(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('comparisonType' in value) || value['comparisonType'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
-
if (!('groupId' in value) || value['groupId'] === undefined)
|
|
54
|
-
return false;
|
|
55
53
|
return true;
|
|
56
54
|
}
|
|
57
55
|
function StoreProductCategoryRequestAutomationRulesInnerFromJSON(json) {
|
|
@@ -64,7 +62,7 @@ function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(json, igno
|
|
|
64
62
|
return {
|
|
65
63
|
'fieldType': json['field_type'],
|
|
66
64
|
'comparisonType': json['comparison_type'],
|
|
67
|
-
'groupId': json['group_id'],
|
|
65
|
+
'groupId': json['group_id'] == null ? undefined : json['group_id'],
|
|
68
66
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
69
67
|
'value': json['value'] == null ? undefined : json['value'],
|
|
70
68
|
'valueId': json['value_id'] == null ? undefined : json['value_id'],
|
|
@@ -21,6 +21,7 @@ Name | Type
|
|
|
21
21
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
22
22
|
`seo` | [Array<SEOResource>](SEOResource.md)
|
|
23
23
|
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
24
|
+
`linkedProductsCount` | number
|
|
24
25
|
|
|
25
26
|
## Example
|
|
26
27
|
|
|
@@ -44,6 +45,7 @@ const example = {
|
|
|
44
45
|
"site": null,
|
|
45
46
|
"seo": null,
|
|
46
47
|
"descriptions": null,
|
|
48
|
+
"linkedProductsCount": null,
|
|
47
49
|
} satisfies ProductCategoryResource
|
|
48
50
|
|
|
49
51
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -39,10 +39,10 @@ export interface CategoryAutomationRuleResource {
|
|
|
39
39
|
comparisonType: object;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof CategoryAutomationRuleResource
|
|
44
44
|
*/
|
|
45
|
-
groupId
|
|
45
|
+
groupId?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -69,7 +69,6 @@ export interface CategoryAutomationRuleResource {
|
|
|
69
69
|
export function instanceOfCategoryAutomationRuleResource(value: object): value is CategoryAutomationRuleResource {
|
|
70
70
|
if (!('fieldType' in value) || value['fieldType'] === undefined) return false;
|
|
71
71
|
if (!('comparisonType' in value) || value['comparisonType'] === undefined) return false;
|
|
72
|
-
if (!('groupId' in value) || value['groupId'] === undefined) return false;
|
|
73
72
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
74
73
|
return true;
|
|
75
74
|
}
|
|
@@ -87,7 +86,7 @@ export function CategoryAutomationRuleResourceFromJSONTyped(json: any, ignoreDis
|
|
|
87
86
|
'id': json['id'] == null ? undefined : json['id'],
|
|
88
87
|
'fieldType': json['fieldType'],
|
|
89
88
|
'comparisonType': json['comparisonType'],
|
|
90
|
-
'groupId': json['groupId'],
|
|
89
|
+
'groupId': json['groupId'] == null ? undefined : json['groupId'],
|
|
91
90
|
'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
|
|
92
91
|
'value': json['value'],
|
|
93
92
|
'valueId': json['valueId'] == null ? undefined : json['valueId'],
|
|
@@ -145,6 +145,12 @@ export interface ProductCategoryResource {
|
|
|
145
145
|
* @memberof ProductCategoryResource
|
|
146
146
|
*/
|
|
147
147
|
descriptions: Array<DescriptionResource> | null;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {number}
|
|
151
|
+
* @memberof ProductCategoryResource
|
|
152
|
+
*/
|
|
153
|
+
linkedProductsCount: number;
|
|
148
154
|
}
|
|
149
155
|
|
|
150
156
|
/**
|
|
@@ -163,6 +169,7 @@ export function instanceOfProductCategoryResource(value: object): value is Produ
|
|
|
163
169
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
164
170
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
165
171
|
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
172
|
+
if (!('linkedProductsCount' in value) || value['linkedProductsCount'] === undefined) return false;
|
|
166
173
|
return true;
|
|
167
174
|
}
|
|
168
175
|
|
|
@@ -191,6 +198,7 @@ export function ProductCategoryResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
191
198
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
192
199
|
'seo': (json['seo'] == null ? null : (json['seo'] as Array<any>).map(SEOResourceFromJSON)),
|
|
193
200
|
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
201
|
+
'linkedProductsCount': json['linkedProductsCount'],
|
|
194
202
|
};
|
|
195
203
|
}
|
|
196
204
|
|
|
@@ -220,6 +228,7 @@ export function ProductCategoryResourceToJSONTyped(value?: ProductCategoryResour
|
|
|
220
228
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
221
229
|
'seo': (value['seo'] == null ? null : (value['seo'] as Array<any>).map(SEOResourceToJSON)),
|
|
222
230
|
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
231
|
+
'linkedProductsCount': value['linkedProductsCount'],
|
|
223
232
|
};
|
|
224
233
|
}
|
|
225
234
|
|
|
@@ -36,7 +36,7 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
38
38
|
*/
|
|
39
|
-
groupId
|
|
39
|
+
groupId?: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -92,7 +92,6 @@ export type StoreProductCategoryRequestAutomationRulesInnerComparisonTypeEnum =
|
|
|
92
92
|
export function instanceOfStoreProductCategoryRequestAutomationRulesInner(value: object): value is StoreProductCategoryRequestAutomationRulesInner {
|
|
93
93
|
if (!('fieldType' in value) || value['fieldType'] === undefined) return false;
|
|
94
94
|
if (!('comparisonType' in value) || value['comparisonType'] === undefined) return false;
|
|
95
|
-
if (!('groupId' in value) || value['groupId'] === undefined) return false;
|
|
96
95
|
return true;
|
|
97
96
|
}
|
|
98
97
|
|
|
@@ -108,7 +107,7 @@ export function StoreProductCategoryRequestAutomationRulesInnerFromJSONTyped(jso
|
|
|
108
107
|
|
|
109
108
|
'fieldType': json['field_type'],
|
|
110
109
|
'comparisonType': json['comparison_type'],
|
|
111
|
-
'groupId': json['group_id'],
|
|
110
|
+
'groupId': json['group_id'] == null ? undefined : json['group_id'],
|
|
112
111
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
113
112
|
'value': json['value'] == null ? undefined : json['value'],
|
|
114
113
|
'valueId': json['value_id'] == null ? undefined : json['value_id'],
|