@digital8/lighting-illusions-ts-sdk 0.0.771 → 0.0.772
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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllProductChildRequest.d.ts +18 -0
- package/dist/models/GetAllProductChildRequest.js +6 -0
- package/dist/models/IndexProductChildRequest.d.ts +18 -0
- package/dist/models/IndexProductChildRequest.js +6 -0
- package/dist/models/ProductCategoryLiteResource.d.ts +6 -0
- package/dist/models/ProductCategoryLiteResource.js +4 -0
- package/docs/GetAllProductChildRequest.md +6 -0
- package/docs/IndexProductChildRequest.md +6 -0
- package/docs/ProductCategoryLiteResource.md +2 -0
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllProductChildRequest.ts +24 -0
- package/src/models/IndexProductChildRequest.ts +24 -0
- package/src/models/ProductCategoryLiteResource.ts +9 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.772
|
|
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.772`
|
|
467
467
|
- Generator version: `7.19.0`
|
|
468
468
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
469
469
|
|
|
@@ -37,6 +37,8 @@ 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;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -69,6 +69,24 @@ export interface GetAllProductChildRequest {
|
|
|
69
69
|
* @memberof GetAllProductChildRequest
|
|
70
70
|
*/
|
|
71
71
|
netsuiteSyncHasNetsuiteId?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof GetAllProductChildRequest
|
|
76
|
+
*/
|
|
77
|
+
categoryId?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof GetAllProductChildRequest
|
|
82
|
+
*/
|
|
83
|
+
supplierId?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof GetAllProductChildRequest
|
|
88
|
+
*/
|
|
89
|
+
productTypeId?: Array<string>;
|
|
72
90
|
}
|
|
73
91
|
/**
|
|
74
92
|
* @export
|
|
@@ -75,6 +75,9 @@ function GetAllProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
75
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
76
76
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
77
77
|
'netsuiteSyncHasNetsuiteId': json['netsuiteSync-has_netsuite_id'] == null ? undefined : json['netsuiteSync-has_netsuite_id'],
|
|
78
|
+
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
79
|
+
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
80
|
+
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
78
81
|
};
|
|
79
82
|
}
|
|
80
83
|
function GetAllProductChildRequestToJSON(json) {
|
|
@@ -95,5 +98,8 @@ function GetAllProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
95
98
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
96
99
|
'is_disabled': value['isDisabled'],
|
|
97
100
|
'netsuiteSync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
101
|
+
'category-id': value['categoryId'],
|
|
102
|
+
'supplier-id': value['supplierId'],
|
|
103
|
+
'productType-id': value['productTypeId'],
|
|
98
104
|
};
|
|
99
105
|
}
|
|
@@ -63,6 +63,24 @@ export interface IndexProductChildRequest {
|
|
|
63
63
|
* @memberof IndexProductChildRequest
|
|
64
64
|
*/
|
|
65
65
|
netsuiteSyncHasNetsuiteId?: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof IndexProductChildRequest
|
|
70
|
+
*/
|
|
71
|
+
categoryId?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof IndexProductChildRequest
|
|
76
|
+
*/
|
|
77
|
+
supplierId?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof IndexProductChildRequest
|
|
82
|
+
*/
|
|
83
|
+
productTypeId?: Array<string>;
|
|
66
84
|
/**
|
|
67
85
|
*
|
|
68
86
|
* @type {number}
|
|
@@ -82,6 +82,9 @@ function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
82
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
83
83
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
84
84
|
'netsuiteSyncHasNetsuiteId': json['netsuiteSync-has_netsuite_id'] == null ? undefined : json['netsuiteSync-has_netsuite_id'],
|
|
85
|
+
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
86
|
+
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
87
|
+
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
85
88
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
86
89
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
87
90
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -104,6 +107,9 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
104
107
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
105
108
|
'is_disabled': value['isDisabled'],
|
|
106
109
|
'netsuiteSync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
110
|
+
'category-id': value['categoryId'],
|
|
111
|
+
'supplier-id': value['supplierId'],
|
|
112
|
+
'productType-id': value['productTypeId'],
|
|
107
113
|
'related_id': value['relatedId'],
|
|
108
114
|
'related_type': value['relatedType'],
|
|
109
115
|
'includes_relations': value['includesRelations'],
|
|
@@ -33,6 +33,12 @@ export interface ProductCategoryLiteResource {
|
|
|
33
33
|
* @memberof ProductCategoryLiteResource
|
|
34
34
|
*/
|
|
35
35
|
siteId: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ProductCategoryLiteResource
|
|
40
|
+
*/
|
|
41
|
+
isAutomated: boolean;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the ProductCategoryLiteResource interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfProductCategoryLiteResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('isAutomated' in value) || value['isAutomated'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function ProductCategoryLiteResourceFromJSON(json) {
|
|
@@ -39,6 +41,7 @@ function ProductCategoryLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
41
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
42
|
'name': json['name'],
|
|
41
43
|
'siteId': json['siteId'],
|
|
44
|
+
'isAutomated': json['isAutomated'],
|
|
42
45
|
};
|
|
43
46
|
}
|
|
44
47
|
function ProductCategoryLiteResourceToJSON(json) {
|
|
@@ -53,5 +56,6 @@ function ProductCategoryLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
53
56
|
'id': value['id'],
|
|
54
57
|
'name': value['name'],
|
|
55
58
|
'siteId': value['siteId'],
|
|
59
|
+
'isAutomated': value['isAutomated'],
|
|
56
60
|
};
|
|
57
61
|
}
|
|
@@ -15,6 +15,9 @@ Name | Type
|
|
|
15
15
|
`siteDetailsSiteId` | Array<string>
|
|
16
16
|
`isDisabled` | Array<string>
|
|
17
17
|
`netsuiteSyncHasNetsuiteId` | Array<string>
|
|
18
|
+
`categoryId` | Array<string>
|
|
19
|
+
`supplierId` | Array<string>
|
|
20
|
+
`productTypeId` | Array<string>
|
|
18
21
|
|
|
19
22
|
## Example
|
|
20
23
|
|
|
@@ -32,6 +35,9 @@ const example = {
|
|
|
32
35
|
"siteDetailsSiteId": null,
|
|
33
36
|
"isDisabled": null,
|
|
34
37
|
"netsuiteSyncHasNetsuiteId": null,
|
|
38
|
+
"categoryId": null,
|
|
39
|
+
"supplierId": null,
|
|
40
|
+
"productTypeId": null,
|
|
35
41
|
} satisfies GetAllProductChildRequest
|
|
36
42
|
|
|
37
43
|
console.log(example)
|
|
@@ -14,6 +14,9 @@ Name | Type
|
|
|
14
14
|
`siteDetailsSiteId` | Array<string>
|
|
15
15
|
`isDisabled` | Array<string>
|
|
16
16
|
`netsuiteSyncHasNetsuiteId` | Array<string>
|
|
17
|
+
`categoryId` | Array<string>
|
|
18
|
+
`supplierId` | Array<string>
|
|
19
|
+
`productTypeId` | Array<string>
|
|
17
20
|
`relatedId` | number
|
|
18
21
|
`relatedType` | string
|
|
19
22
|
`includesRelations` | boolean
|
|
@@ -33,6 +36,9 @@ const example = {
|
|
|
33
36
|
"siteDetailsSiteId": null,
|
|
34
37
|
"isDisabled": null,
|
|
35
38
|
"netsuiteSyncHasNetsuiteId": null,
|
|
39
|
+
"categoryId": null,
|
|
40
|
+
"supplierId": null,
|
|
41
|
+
"productTypeId": null,
|
|
36
42
|
"relatedId": null,
|
|
37
43
|
"relatedType": null,
|
|
38
44
|
"includesRelations": null,
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
11
|
`siteId` | number
|
|
12
|
+
`isAutomated` | boolean
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const example = {
|
|
|
20
21
|
"id": null,
|
|
21
22
|
"name": null,
|
|
22
23
|
"siteId": null,
|
|
24
|
+
"isAutomated": null,
|
|
23
25
|
} satisfies ProductCategoryLiteResource
|
|
24
26
|
|
|
25
27
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ 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;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -73,6 +73,24 @@ export interface GetAllProductChildRequest {
|
|
|
73
73
|
* @memberof GetAllProductChildRequest
|
|
74
74
|
*/
|
|
75
75
|
netsuiteSyncHasNetsuiteId?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<string>}
|
|
79
|
+
* @memberof GetAllProductChildRequest
|
|
80
|
+
*/
|
|
81
|
+
categoryId?: Array<string>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<string>}
|
|
85
|
+
* @memberof GetAllProductChildRequest
|
|
86
|
+
*/
|
|
87
|
+
supplierId?: Array<string>;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {Array<string>}
|
|
91
|
+
* @memberof GetAllProductChildRequest
|
|
92
|
+
*/
|
|
93
|
+
productTypeId?: Array<string>;
|
|
76
94
|
}
|
|
77
95
|
|
|
78
96
|
|
|
@@ -142,6 +160,9 @@ export function GetAllProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
142
160
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
143
161
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
144
162
|
'netsuiteSyncHasNetsuiteId': json['netsuiteSync-has_netsuite_id'] == null ? undefined : json['netsuiteSync-has_netsuite_id'],
|
|
163
|
+
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
164
|
+
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
165
|
+
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
145
166
|
};
|
|
146
167
|
}
|
|
147
168
|
|
|
@@ -165,6 +186,9 @@ export function GetAllProductChildRequestToJSONTyped(value?: GetAllProductChildR
|
|
|
165
186
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
166
187
|
'is_disabled': value['isDisabled'],
|
|
167
188
|
'netsuiteSync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
189
|
+
'category-id': value['categoryId'],
|
|
190
|
+
'supplier-id': value['supplierId'],
|
|
191
|
+
'productType-id': value['productTypeId'],
|
|
168
192
|
};
|
|
169
193
|
}
|
|
170
194
|
|
|
@@ -67,6 +67,24 @@ export interface IndexProductChildRequest {
|
|
|
67
67
|
* @memberof IndexProductChildRequest
|
|
68
68
|
*/
|
|
69
69
|
netsuiteSyncHasNetsuiteId?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<string>}
|
|
73
|
+
* @memberof IndexProductChildRequest
|
|
74
|
+
*/
|
|
75
|
+
categoryId?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<string>}
|
|
79
|
+
* @memberof IndexProductChildRequest
|
|
80
|
+
*/
|
|
81
|
+
supplierId?: Array<string>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<string>}
|
|
85
|
+
* @memberof IndexProductChildRequest
|
|
86
|
+
*/
|
|
87
|
+
productTypeId?: Array<string>;
|
|
70
88
|
/**
|
|
71
89
|
*
|
|
72
90
|
* @type {number}
|
|
@@ -161,6 +179,9 @@ export function IndexProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
161
179
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
162
180
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
163
181
|
'netsuiteSyncHasNetsuiteId': json['netsuiteSync-has_netsuite_id'] == null ? undefined : json['netsuiteSync-has_netsuite_id'],
|
|
182
|
+
'categoryId': json['category-id'] == null ? undefined : json['category-id'],
|
|
183
|
+
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
184
|
+
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
164
185
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
165
186
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
166
187
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -186,6 +207,9 @@ export function IndexProductChildRequestToJSONTyped(value?: IndexProductChildReq
|
|
|
186
207
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
187
208
|
'is_disabled': value['isDisabled'],
|
|
188
209
|
'netsuiteSync-has_netsuite_id': value['netsuiteSyncHasNetsuiteId'],
|
|
210
|
+
'category-id': value['categoryId'],
|
|
211
|
+
'supplier-id': value['supplierId'],
|
|
212
|
+
'productType-id': value['productTypeId'],
|
|
189
213
|
'related_id': value['relatedId'],
|
|
190
214
|
'related_type': value['relatedType'],
|
|
191
215
|
'includes_relations': value['includesRelations'],
|
|
@@ -37,6 +37,12 @@ export interface ProductCategoryLiteResource {
|
|
|
37
37
|
* @memberof ProductCategoryLiteResource
|
|
38
38
|
*/
|
|
39
39
|
siteId: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof ProductCategoryLiteResource
|
|
44
|
+
*/
|
|
45
|
+
isAutomated: boolean;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -45,6 +51,7 @@ export interface ProductCategoryLiteResource {
|
|
|
45
51
|
export function instanceOfProductCategoryLiteResource(value: object): value is ProductCategoryLiteResource {
|
|
46
52
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
53
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
54
|
+
if (!('isAutomated' in value) || value['isAutomated'] === undefined) return false;
|
|
48
55
|
return true;
|
|
49
56
|
}
|
|
50
57
|
|
|
@@ -61,6 +68,7 @@ export function ProductCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
61
68
|
'id': json['id'] == null ? undefined : json['id'],
|
|
62
69
|
'name': json['name'],
|
|
63
70
|
'siteId': json['siteId'],
|
|
71
|
+
'isAutomated': json['isAutomated'],
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
|
|
@@ -78,6 +86,7 @@ export function ProductCategoryLiteResourceToJSONTyped(value?: ProductCategoryLi
|
|
|
78
86
|
'id': value['id'],
|
|
79
87
|
'name': value['name'],
|
|
80
88
|
'siteId': value['siteId'],
|
|
89
|
+
'isAutomated': value['isAutomated'],
|
|
81
90
|
};
|
|
82
91
|
}
|
|
83
92
|
|