@digital8/lighting-illusions-ts-sdk 0.0.1006 → 0.0.1007
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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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/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/ExternalApiLogResource.ts +2 -3
- 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.1007
|
|
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.1007`
|
|
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
|
}
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -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)
|
|
@@ -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
|
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -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
|
|