@digital8/lighting-illusions-ts-sdk 0.0.1002 → 0.0.1003
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 +3 -3
- package/dist/models/CategoryAutomationRuleResource.js +3 -5
- package/dist/models/GetAllProductChildRequest.d.ts +12 -0
- package/dist/models/GetAllProductChildRequest.js +4 -0
- package/dist/models/IndexProductChildRequest.d.ts +12 -0
- package/dist/models/IndexProductChildRequest.js +4 -0
- package/dist/models/PreviewAutomationRulesResource.d.ts +0 -6
- package/dist/models/PreviewAutomationRulesResource.js +0 -2
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +3 -3
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +3 -5
- package/docs/CategoryAutomationRuleResource.md +3 -3
- package/docs/GetAllProductChildRequest.md +4 -0
- package/docs/IndexProductChildRequest.md +4 -0
- package/docs/PreviewAutomationRulesResource.md +0 -2
- package/docs/StoreProductCategoryRequestAutomationRulesInner.md +2 -2
- package/package.json +1 -1
- package/src/models/CategoryAutomationRuleResource.ts +6 -7
- package/src/models/GetAllProductChildRequest.ts +16 -0
- package/src/models/IndexProductChildRequest.ts +16 -0
- package/src/models/PreviewAutomationRulesResource.ts +0 -8
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +6 -7
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1003
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -468,7 +468,7 @@ and is automatically generated by the
|
|
|
468
468
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
469
469
|
|
|
470
470
|
- API version: `1.0.0`
|
|
471
|
-
- Package version: `0.0.
|
|
471
|
+
- Package version: `0.0.1003`
|
|
472
472
|
- Generator version: `7.20.0`
|
|
473
473
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
474
474
|
|
|
@@ -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}
|
|
@@ -56,7 +56,7 @@ export interface CategoryAutomationRuleResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof CategoryAutomationRuleResource
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
valueId?: string | null;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Check if a given object implements the CategoryAutomationRuleResource interface.
|
|
@@ -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,10 +41,10 @@ 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'],
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
function CategoryAutomationRuleResourceToJSON(json) {
|
|
@@ -64,6 +62,6 @@ function CategoryAutomationRuleResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
64
62
|
'groupId': value['groupId'],
|
|
65
63
|
'relatedId': value['relatedId'],
|
|
66
64
|
'value': value['value'],
|
|
67
|
-
'
|
|
65
|
+
'valueId': value['valueId'],
|
|
68
66
|
};
|
|
69
67
|
}
|
|
@@ -93,6 +93,18 @@ export interface GetAllProductChildRequest {
|
|
|
93
93
|
* @memberof GetAllProductChildRequest
|
|
94
94
|
*/
|
|
95
95
|
parentIsAccessory?: Array<string>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Array<string>}
|
|
99
|
+
* @memberof GetAllProductChildRequest
|
|
100
|
+
*/
|
|
101
|
+
availableOnSiteId?: Array<string>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {Array<string>}
|
|
105
|
+
* @memberof GetAllProductChildRequest
|
|
106
|
+
*/
|
|
107
|
+
enabledOnSiteId?: Array<string>;
|
|
96
108
|
}
|
|
97
109
|
/**
|
|
98
110
|
* @export
|
|
@@ -79,6 +79,8 @@ function GetAllProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
79
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
80
80
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
81
81
|
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
82
|
+
'availableOnSiteId': json['availableOnSiteId'] == null ? undefined : json['availableOnSiteId'],
|
|
83
|
+
'enabledOnSiteId': json['enabledOnSiteId'] == null ? undefined : json['enabledOnSiteId'],
|
|
82
84
|
};
|
|
83
85
|
}
|
|
84
86
|
function GetAllProductChildRequestToJSON(json) {
|
|
@@ -103,5 +105,7 @@ function GetAllProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
103
105
|
'supplier-id': value['supplierId'],
|
|
104
106
|
'productType-id': value['productTypeId'],
|
|
105
107
|
'parent-is_accessory': value['parentIsAccessory'],
|
|
108
|
+
'availableOnSiteId': value['availableOnSiteId'],
|
|
109
|
+
'enabledOnSiteId': value['enabledOnSiteId'],
|
|
106
110
|
};
|
|
107
111
|
}
|
|
@@ -87,6 +87,18 @@ export interface IndexProductChildRequest {
|
|
|
87
87
|
* @memberof IndexProductChildRequest
|
|
88
88
|
*/
|
|
89
89
|
parentIsAccessory?: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Array<string>}
|
|
93
|
+
* @memberof IndexProductChildRequest
|
|
94
|
+
*/
|
|
95
|
+
availableOnSiteId?: Array<string>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Array<string>}
|
|
99
|
+
* @memberof IndexProductChildRequest
|
|
100
|
+
*/
|
|
101
|
+
enabledOnSiteId?: Array<string>;
|
|
90
102
|
/**
|
|
91
103
|
*
|
|
92
104
|
* @type {number}
|
|
@@ -86,6 +86,8 @@ function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
86
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
87
87
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
88
88
|
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
89
|
+
'availableOnSiteId': json['availableOnSiteId'] == null ? undefined : json['availableOnSiteId'],
|
|
90
|
+
'enabledOnSiteId': json['enabledOnSiteId'] == null ? undefined : json['enabledOnSiteId'],
|
|
89
91
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
90
92
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
91
93
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -112,6 +114,8 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
112
114
|
'supplier-id': value['supplierId'],
|
|
113
115
|
'productType-id': value['productTypeId'],
|
|
114
116
|
'parent-is_accessory': value['parentIsAccessory'],
|
|
117
|
+
'availableOnSiteId': value['availableOnSiteId'],
|
|
118
|
+
'enabledOnSiteId': value['enabledOnSiteId'],
|
|
115
119
|
'related_id': value['relatedId'],
|
|
116
120
|
'related_type': value['relatedType'],
|
|
117
121
|
'includes_relations': value['includesRelations'],
|
|
@@ -27,12 +27,6 @@ export interface PreviewAutomationRulesResource {
|
|
|
27
27
|
* @memberof PreviewAutomationRulesResource
|
|
28
28
|
*/
|
|
29
29
|
tooComplex: boolean;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PreviewAutomationRulesResource
|
|
34
|
-
*/
|
|
35
|
-
query?: string | null;
|
|
36
30
|
}
|
|
37
31
|
/**
|
|
38
32
|
* Check if a given object implements the PreviewAutomationRulesResource interface.
|
|
@@ -38,7 +38,6 @@ function PreviewAutomationRulesResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
38
38
|
return {
|
|
39
39
|
'count': json['count'],
|
|
40
40
|
'tooComplex': json['too_complex'],
|
|
41
|
-
'query': json['query'] == null ? undefined : json['query'],
|
|
42
41
|
};
|
|
43
42
|
}
|
|
44
43
|
function PreviewAutomationRulesResourceToJSON(json) {
|
|
@@ -52,6 +51,5 @@ function PreviewAutomationRulesResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
51
|
return {
|
|
53
52
|
'count': value['count'],
|
|
54
53
|
'too_complex': value['tooComplex'],
|
|
55
|
-
'query': value['query'],
|
|
56
54
|
};
|
|
57
55
|
}
|
|
@@ -32,7 +32,7 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
34
34
|
*/
|
|
35
|
-
groupId
|
|
35
|
+
groupId?: number;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -47,10 +47,10 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
47
47
|
value?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {number}
|
|
51
51
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
valueId?: number;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* @export
|
|
@@ -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,10 +62,10 @@ 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'],
|
|
71
69
|
};
|
|
72
70
|
}
|
|
73
71
|
function StoreProductCategoryRequestAutomationRulesInnerToJSON(json) {
|
|
@@ -84,6 +82,6 @@ function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value, ignor
|
|
|
84
82
|
'group_id': value['groupId'],
|
|
85
83
|
'related_id': value['relatedId'],
|
|
86
84
|
'value': value['value'],
|
|
87
|
-
'
|
|
85
|
+
'value_id': value['valueId'],
|
|
88
86
|
};
|
|
89
87
|
}
|
|
@@ -9,10 +9,10 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`fieldType` | object
|
|
11
11
|
`comparisonType` | object
|
|
12
|
-
`groupId` |
|
|
12
|
+
`groupId` | string
|
|
13
13
|
`relatedId` | string
|
|
14
14
|
`value` | string
|
|
15
|
-
`
|
|
15
|
+
`valueId` | string
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
@@ -27,7 +27,7 @@ const example = {
|
|
|
27
27
|
"groupId": null,
|
|
28
28
|
"relatedId": null,
|
|
29
29
|
"value": null,
|
|
30
|
-
"
|
|
30
|
+
"valueId": null,
|
|
31
31
|
} satisfies CategoryAutomationRuleResource
|
|
32
32
|
|
|
33
33
|
console.log(example)
|
|
@@ -19,6 +19,8 @@ Name | Type
|
|
|
19
19
|
`supplierId` | Array<string>
|
|
20
20
|
`productTypeId` | Array<string>
|
|
21
21
|
`parentIsAccessory` | Array<string>
|
|
22
|
+
`availableOnSiteId` | Array<string>
|
|
23
|
+
`enabledOnSiteId` | Array<string>
|
|
22
24
|
|
|
23
25
|
## Example
|
|
24
26
|
|
|
@@ -40,6 +42,8 @@ const example = {
|
|
|
40
42
|
"supplierId": null,
|
|
41
43
|
"productTypeId": null,
|
|
42
44
|
"parentIsAccessory": null,
|
|
45
|
+
"availableOnSiteId": null,
|
|
46
|
+
"enabledOnSiteId": null,
|
|
43
47
|
} satisfies GetAllProductChildRequest
|
|
44
48
|
|
|
45
49
|
console.log(example)
|
|
@@ -18,6 +18,8 @@ Name | Type
|
|
|
18
18
|
`supplierId` | Array<string>
|
|
19
19
|
`productTypeId` | Array<string>
|
|
20
20
|
`parentIsAccessory` | Array<string>
|
|
21
|
+
`availableOnSiteId` | Array<string>
|
|
22
|
+
`enabledOnSiteId` | Array<string>
|
|
21
23
|
`relatedId` | number
|
|
22
24
|
`relatedType` | string
|
|
23
25
|
`includesRelations` | boolean
|
|
@@ -41,6 +43,8 @@ const example = {
|
|
|
41
43
|
"supplierId": null,
|
|
42
44
|
"productTypeId": null,
|
|
43
45
|
"parentIsAccessory": null,
|
|
46
|
+
"availableOnSiteId": null,
|
|
47
|
+
"enabledOnSiteId": null,
|
|
44
48
|
"relatedId": null,
|
|
45
49
|
"relatedType": null,
|
|
46
50
|
"includesRelations": null,
|
|
@@ -8,7 +8,6 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`count` | number
|
|
10
10
|
`tooComplex` | boolean
|
|
11
|
-
`query` | string
|
|
12
11
|
|
|
13
12
|
## Example
|
|
14
13
|
|
|
@@ -19,7 +18,6 @@ import type { PreviewAutomationRulesResource } from '@digital8/lighting-illusion
|
|
|
19
18
|
const example = {
|
|
20
19
|
"count": null,
|
|
21
20
|
"tooComplex": null,
|
|
22
|
-
"query": null,
|
|
23
21
|
} satisfies PreviewAutomationRulesResource
|
|
24
22
|
|
|
25
23
|
console.log(example)
|
|
@@ -11,7 +11,7 @@ Name | Type
|
|
|
11
11
|
`groupId` | number
|
|
12
12
|
`relatedId` | string
|
|
13
13
|
`value` | string
|
|
14
|
-
`
|
|
14
|
+
`valueId` | number
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
@@ -25,7 +25,7 @@ const example = {
|
|
|
25
25
|
"groupId": null,
|
|
26
26
|
"relatedId": null,
|
|
27
27
|
"value": null,
|
|
28
|
-
"
|
|
28
|
+
"valueId": null,
|
|
29
29
|
} satisfies StoreProductCategoryRequestAutomationRulesInner
|
|
30
30
|
|
|
31
31
|
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}
|
|
@@ -60,7 +60,7 @@ export interface CategoryAutomationRuleResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof CategoryAutomationRuleResource
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
valueId?: string | null;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -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,10 +86,10 @@ 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'],
|
|
94
93
|
};
|
|
95
94
|
}
|
|
96
95
|
|
|
@@ -111,7 +110,7 @@ export function CategoryAutomationRuleResourceToJSONTyped(value?: CategoryAutoma
|
|
|
111
110
|
'groupId': value['groupId'],
|
|
112
111
|
'relatedId': value['relatedId'],
|
|
113
112
|
'value': value['value'],
|
|
114
|
-
'
|
|
113
|
+
'valueId': value['valueId'],
|
|
115
114
|
};
|
|
116
115
|
}
|
|
117
116
|
|
|
@@ -97,6 +97,18 @@ export interface GetAllProductChildRequest {
|
|
|
97
97
|
* @memberof GetAllProductChildRequest
|
|
98
98
|
*/
|
|
99
99
|
parentIsAccessory?: Array<string>;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {Array<string>}
|
|
103
|
+
* @memberof GetAllProductChildRequest
|
|
104
|
+
*/
|
|
105
|
+
availableOnSiteId?: Array<string>;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {Array<string>}
|
|
109
|
+
* @memberof GetAllProductChildRequest
|
|
110
|
+
*/
|
|
111
|
+
enabledOnSiteId?: Array<string>;
|
|
100
112
|
}
|
|
101
113
|
|
|
102
114
|
|
|
@@ -170,6 +182,8 @@ export function GetAllProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
170
182
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
171
183
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
172
184
|
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
185
|
+
'availableOnSiteId': json['availableOnSiteId'] == null ? undefined : json['availableOnSiteId'],
|
|
186
|
+
'enabledOnSiteId': json['enabledOnSiteId'] == null ? undefined : json['enabledOnSiteId'],
|
|
173
187
|
};
|
|
174
188
|
}
|
|
175
189
|
|
|
@@ -197,6 +211,8 @@ export function GetAllProductChildRequestToJSONTyped(value?: GetAllProductChildR
|
|
|
197
211
|
'supplier-id': value['supplierId'],
|
|
198
212
|
'productType-id': value['productTypeId'],
|
|
199
213
|
'parent-is_accessory': value['parentIsAccessory'],
|
|
214
|
+
'availableOnSiteId': value['availableOnSiteId'],
|
|
215
|
+
'enabledOnSiteId': value['enabledOnSiteId'],
|
|
200
216
|
};
|
|
201
217
|
}
|
|
202
218
|
|
|
@@ -91,6 +91,18 @@ export interface IndexProductChildRequest {
|
|
|
91
91
|
* @memberof IndexProductChildRequest
|
|
92
92
|
*/
|
|
93
93
|
parentIsAccessory?: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {Array<string>}
|
|
97
|
+
* @memberof IndexProductChildRequest
|
|
98
|
+
*/
|
|
99
|
+
availableOnSiteId?: Array<string>;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {Array<string>}
|
|
103
|
+
* @memberof IndexProductChildRequest
|
|
104
|
+
*/
|
|
105
|
+
enabledOnSiteId?: Array<string>;
|
|
94
106
|
/**
|
|
95
107
|
*
|
|
96
108
|
* @type {number}
|
|
@@ -189,6 +201,8 @@ export function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
189
201
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
190
202
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
191
203
|
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
204
|
+
'availableOnSiteId': json['availableOnSiteId'] == null ? undefined : json['availableOnSiteId'],
|
|
205
|
+
'enabledOnSiteId': json['enabledOnSiteId'] == null ? undefined : json['enabledOnSiteId'],
|
|
192
206
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
193
207
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
194
208
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -218,6 +232,8 @@ export function IndexProductChildRequestToJSONTyped(value?: IndexProductChildReq
|
|
|
218
232
|
'supplier-id': value['supplierId'],
|
|
219
233
|
'productType-id': value['productTypeId'],
|
|
220
234
|
'parent-is_accessory': value['parentIsAccessory'],
|
|
235
|
+
'availableOnSiteId': value['availableOnSiteId'],
|
|
236
|
+
'enabledOnSiteId': value['enabledOnSiteId'],
|
|
221
237
|
'related_id': value['relatedId'],
|
|
222
238
|
'related_type': value['relatedType'],
|
|
223
239
|
'includes_relations': value['includesRelations'],
|
|
@@ -31,12 +31,6 @@ export interface PreviewAutomationRulesResource {
|
|
|
31
31
|
* @memberof PreviewAutomationRulesResource
|
|
32
32
|
*/
|
|
33
33
|
tooComplex: boolean;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof PreviewAutomationRulesResource
|
|
38
|
-
*/
|
|
39
|
-
query?: string | null;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
/**
|
|
@@ -60,7 +54,6 @@ export function PreviewAutomationRulesResourceFromJSONTyped(json: any, ignoreDis
|
|
|
60
54
|
|
|
61
55
|
'count': json['count'],
|
|
62
56
|
'tooComplex': json['too_complex'],
|
|
63
|
-
'query': json['query'] == null ? undefined : json['query'],
|
|
64
57
|
};
|
|
65
58
|
}
|
|
66
59
|
|
|
@@ -77,7 +70,6 @@ export function PreviewAutomationRulesResourceToJSONTyped(value?: PreviewAutomat
|
|
|
77
70
|
|
|
78
71
|
'count': value['count'],
|
|
79
72
|
'too_complex': value['tooComplex'],
|
|
80
|
-
'query': value['query'],
|
|
81
73
|
};
|
|
82
74
|
}
|
|
83
75
|
|
|
@@ -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}
|
|
@@ -51,10 +51,10 @@ export interface StoreProductCategoryRequestAutomationRulesInner {
|
|
|
51
51
|
value?: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @type {
|
|
54
|
+
* @type {number}
|
|
55
55
|
* @memberof StoreProductCategoryRequestAutomationRulesInner
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
valueId?: number;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
|
|
@@ -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,10 +107,10 @@ 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'],
|
|
115
114
|
};
|
|
116
115
|
}
|
|
117
116
|
|
|
@@ -131,7 +130,7 @@ export function StoreProductCategoryRequestAutomationRulesInnerToJSONTyped(value
|
|
|
131
130
|
'group_id': value['groupId'],
|
|
132
131
|
'related_id': value['relatedId'],
|
|
133
132
|
'value': value['value'],
|
|
134
|
-
'
|
|
133
|
+
'value_id': value['valueId'],
|
|
135
134
|
};
|
|
136
135
|
}
|
|
137
136
|
|