@digital8/lighting-illusions-ts-sdk 0.0.2089 → 0.0.2090
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/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/SearchProductChildrenRequest.d.ts +14 -0
- package/dist/models/SearchProductChildrenRequest.js +10 -1
- package/dist/models/SearchProductsRequest.d.ts +0 -14
- package/dist/models/SearchProductsRequest.js +1 -10
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/docs/SearchProductChildrenRequest.md +2 -0
- package/docs/SearchProductsRequest.md +0 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/SearchProductChildrenRequest.ts +17 -0
- package/src/models/SearchProductsRequest.ts +0 -17
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +3 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.2090
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -804,7 +804,7 @@ and is automatically generated by the
|
|
|
804
804
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
805
805
|
|
|
806
806
|
- API version: `1.0.0`
|
|
807
|
-
- Package version: `0.0.
|
|
807
|
+
- Package version: `0.0.2090`
|
|
808
808
|
- Generator version: `7.22.0`
|
|
809
809
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
810
810
|
|
|
@@ -22,8 +22,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -47,7 +45,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
49
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'company': json['company'],
|
|
48
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
51
49
|
'line1': json['line_1'],
|
|
52
50
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
53
51
|
'postcode': json['postcode'],
|
|
@@ -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']),
|
|
@@ -135,6 +135,12 @@ export interface SearchProductChildrenRequest {
|
|
|
135
135
|
* @memberof SearchProductChildrenRequest
|
|
136
136
|
*/
|
|
137
137
|
includesRelations?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {SearchProductChildrenRequestOmnisendSyncStatusEnum}
|
|
141
|
+
* @memberof SearchProductChildrenRequest
|
|
142
|
+
*/
|
|
143
|
+
omnisendSyncStatus?: SearchProductChildrenRequestOmnisendSyncStatusEnum | null;
|
|
138
144
|
}
|
|
139
145
|
/**
|
|
140
146
|
* @export
|
|
@@ -183,6 +189,14 @@ export declare const SearchProductChildrenRequestRelatedTypeEnum: {
|
|
|
183
189
|
readonly Site: "site";
|
|
184
190
|
};
|
|
185
191
|
export type SearchProductChildrenRequestRelatedTypeEnum = typeof SearchProductChildrenRequestRelatedTypeEnum[keyof typeof SearchProductChildrenRequestRelatedTypeEnum];
|
|
192
|
+
/**
|
|
193
|
+
* @export
|
|
194
|
+
*/
|
|
195
|
+
export declare const SearchProductChildrenRequestOmnisendSyncStatusEnum: {
|
|
196
|
+
readonly Synced: "synced";
|
|
197
|
+
readonly Failed: "failed";
|
|
198
|
+
};
|
|
199
|
+
export type SearchProductChildrenRequestOmnisendSyncStatusEnum = typeof SearchProductChildrenRequestOmnisendSyncStatusEnum[keyof typeof SearchProductChildrenRequestOmnisendSyncStatusEnum];
|
|
186
200
|
/**
|
|
187
201
|
* Check if a given object implements the SearchProductChildrenRequest interface.
|
|
188
202
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SearchProductChildrenRequestRelatedTypeEnum = exports.SearchProductChildrenRequestSortDirectionEnum = exports.SearchProductChildrenRequestSortByEnum = void 0;
|
|
16
|
+
exports.SearchProductChildrenRequestOmnisendSyncStatusEnum = exports.SearchProductChildrenRequestRelatedTypeEnum = exports.SearchProductChildrenRequestSortDirectionEnum = exports.SearchProductChildrenRequestSortByEnum = void 0;
|
|
17
17
|
exports.instanceOfSearchProductChildrenRequest = instanceOfSearchProductChildrenRequest;
|
|
18
18
|
exports.SearchProductChildrenRequestFromJSON = SearchProductChildrenRequestFromJSON;
|
|
19
19
|
exports.SearchProductChildrenRequestFromJSONTyped = SearchProductChildrenRequestFromJSONTyped;
|
|
@@ -63,6 +63,13 @@ exports.SearchProductChildrenRequestRelatedTypeEnum = {
|
|
|
63
63
|
Label: 'label',
|
|
64
64
|
Site: 'site'
|
|
65
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
exports.SearchProductChildrenRequestOmnisendSyncStatusEnum = {
|
|
70
|
+
Synced: 'synced',
|
|
71
|
+
Failed: 'failed'
|
|
72
|
+
};
|
|
66
73
|
/**
|
|
67
74
|
* Check if a given object implements the SearchProductChildrenRequest interface.
|
|
68
75
|
*/
|
|
@@ -97,6 +104,7 @@ function SearchProductChildrenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
104
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
98
105
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
99
106
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
107
|
+
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
100
108
|
};
|
|
101
109
|
}
|
|
102
110
|
function SearchProductChildrenRequestToJSON(json) {
|
|
@@ -128,5 +136,6 @@ function SearchProductChildrenRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
128
136
|
'related_id': value['relatedId'],
|
|
129
137
|
'related_type': value['relatedType'],
|
|
130
138
|
'includes_relations': value['includesRelations'],
|
|
139
|
+
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
131
140
|
};
|
|
132
141
|
}
|
|
@@ -93,12 +93,6 @@ export interface SearchProductsRequest {
|
|
|
93
93
|
* @memberof SearchProductsRequest
|
|
94
94
|
*/
|
|
95
95
|
includesRelations?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {SearchProductsRequestOmnisendSyncStatusEnum}
|
|
99
|
-
* @memberof SearchProductsRequest
|
|
100
|
-
*/
|
|
101
|
-
omnisendSyncStatus?: SearchProductsRequestOmnisendSyncStatusEnum | null;
|
|
102
96
|
}
|
|
103
97
|
/**
|
|
104
98
|
* @export
|
|
@@ -126,14 +120,6 @@ export declare const SearchProductsRequestRelatedTypeEnum: {
|
|
|
126
120
|
readonly ProductChild: "productChild";
|
|
127
121
|
};
|
|
128
122
|
export type SearchProductsRequestRelatedTypeEnum = typeof SearchProductsRequestRelatedTypeEnum[keyof typeof SearchProductsRequestRelatedTypeEnum];
|
|
129
|
-
/**
|
|
130
|
-
* @export
|
|
131
|
-
*/
|
|
132
|
-
export declare const SearchProductsRequestOmnisendSyncStatusEnum: {
|
|
133
|
-
readonly Synced: "synced";
|
|
134
|
-
readonly Failed: "failed";
|
|
135
|
-
};
|
|
136
|
-
export type SearchProductsRequestOmnisendSyncStatusEnum = typeof SearchProductsRequestOmnisendSyncStatusEnum[keyof typeof SearchProductsRequestOmnisendSyncStatusEnum];
|
|
137
123
|
/**
|
|
138
124
|
* Check if a given object implements the SearchProductsRequest interface.
|
|
139
125
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.SearchProductsRequestRelatedTypeEnum = exports.SearchProductsRequestSortDirectionEnum = exports.SearchProductsRequestSortByEnum = void 0;
|
|
17
17
|
exports.instanceOfSearchProductsRequest = instanceOfSearchProductsRequest;
|
|
18
18
|
exports.SearchProductsRequestFromJSON = SearchProductsRequestFromJSON;
|
|
19
19
|
exports.SearchProductsRequestFromJSONTyped = SearchProductsRequestFromJSONTyped;
|
|
@@ -42,13 +42,6 @@ exports.SearchProductsRequestSortDirectionEnum = {
|
|
|
42
42
|
exports.SearchProductsRequestRelatedTypeEnum = {
|
|
43
43
|
ProductChild: 'productChild'
|
|
44
44
|
};
|
|
45
|
-
/**
|
|
46
|
-
* @export
|
|
47
|
-
*/
|
|
48
|
-
exports.SearchProductsRequestOmnisendSyncStatusEnum = {
|
|
49
|
-
Synced: 'synced',
|
|
50
|
-
Failed: 'failed'
|
|
51
|
-
};
|
|
52
45
|
/**
|
|
53
46
|
* Check if a given object implements the SearchProductsRequest interface.
|
|
54
47
|
*/
|
|
@@ -76,7 +69,6 @@ function SearchProductsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
69
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
77
70
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
78
71
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
79
|
-
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
80
72
|
};
|
|
81
73
|
}
|
|
82
74
|
function SearchProductsRequestToJSON(json) {
|
|
@@ -101,6 +93,5 @@ function SearchProductsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
101
93
|
'related_id': value['relatedId'],
|
|
102
94
|
'related_type': value['relatedType'],
|
|
103
95
|
'includes_relations': value['includesRelations'],
|
|
104
|
-
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
105
96
|
};
|
|
106
97
|
}
|
|
@@ -28,6 +28,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -54,7 +56,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'siteId': json['siteId'],
|
|
55
57
|
'name': json['name'],
|
|
56
58
|
'email': json['email'],
|
|
57
|
-
'website': json['website']
|
|
59
|
+
'website': json['website'],
|
|
58
60
|
'phone': json['phone'],
|
|
59
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
62
|
'latitude': json['latitude'],
|
|
@@ -33,8 +33,6 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
-
return false;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
40
38
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -59,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'phone': json['phone'],
|
|
60
58
|
'longitude': json['longitude'],
|
|
61
59
|
'latitude': json['latitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
60
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
61
|
'email': json['email'],
|
|
64
62
|
'website': json['website'],
|
|
65
63
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -26,6 +26,7 @@ Name | Type
|
|
|
26
26
|
`relatedId` | number
|
|
27
27
|
`relatedType` | string
|
|
28
28
|
`includesRelations` | boolean
|
|
29
|
+
`omnisendSyncStatus` | string
|
|
29
30
|
|
|
30
31
|
## Example
|
|
31
32
|
|
|
@@ -54,6 +55,7 @@ const example = {
|
|
|
54
55
|
"relatedId": null,
|
|
55
56
|
"relatedType": null,
|
|
56
57
|
"includesRelations": null,
|
|
58
|
+
"omnisendSyncStatus": null,
|
|
57
59
|
} satisfies SearchProductChildrenRequest
|
|
58
60
|
|
|
59
61
|
console.log(example)
|
|
@@ -19,7 +19,6 @@ Name | Type
|
|
|
19
19
|
`relatedId` | number
|
|
20
20
|
`relatedType` | string
|
|
21
21
|
`includesRelations` | boolean
|
|
22
|
-
`omnisendSyncStatus` | string
|
|
23
22
|
|
|
24
23
|
## Example
|
|
25
24
|
|
|
@@ -41,7 +40,6 @@ const example = {
|
|
|
41
40
|
"relatedId": null,
|
|
42
41
|
"relatedType": null,
|
|
43
42
|
"includesRelations": null,
|
|
44
|
-
"omnisendSyncStatus": null,
|
|
45
43
|
} satisfies SearchProductsRequest
|
|
46
44
|
|
|
47
45
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -79,7 +79,6 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
83
82
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
83
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
85
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -100,7 +99,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
100
99
|
return {
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
-
'company': json['company'],
|
|
102
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
104
103
|
'line1': json['line_1'],
|
|
105
104
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
106
105
|
'postcode': json['postcode'],
|
|
@@ -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']),
|
|
@@ -139,6 +139,12 @@ export interface SearchProductChildrenRequest {
|
|
|
139
139
|
* @memberof SearchProductChildrenRequest
|
|
140
140
|
*/
|
|
141
141
|
includesRelations?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {SearchProductChildrenRequestOmnisendSyncStatusEnum}
|
|
145
|
+
* @memberof SearchProductChildrenRequest
|
|
146
|
+
*/
|
|
147
|
+
omnisendSyncStatus?: SearchProductChildrenRequestOmnisendSyncStatusEnum | null;
|
|
142
148
|
}
|
|
143
149
|
|
|
144
150
|
|
|
@@ -192,6 +198,15 @@ export const SearchProductChildrenRequestRelatedTypeEnum = {
|
|
|
192
198
|
} as const;
|
|
193
199
|
export type SearchProductChildrenRequestRelatedTypeEnum = typeof SearchProductChildrenRequestRelatedTypeEnum[keyof typeof SearchProductChildrenRequestRelatedTypeEnum];
|
|
194
200
|
|
|
201
|
+
/**
|
|
202
|
+
* @export
|
|
203
|
+
*/
|
|
204
|
+
export const SearchProductChildrenRequestOmnisendSyncStatusEnum = {
|
|
205
|
+
Synced: 'synced',
|
|
206
|
+
Failed: 'failed'
|
|
207
|
+
} as const;
|
|
208
|
+
export type SearchProductChildrenRequestOmnisendSyncStatusEnum = typeof SearchProductChildrenRequestOmnisendSyncStatusEnum[keyof typeof SearchProductChildrenRequestOmnisendSyncStatusEnum];
|
|
209
|
+
|
|
195
210
|
|
|
196
211
|
/**
|
|
197
212
|
* Check if a given object implements the SearchProductChildrenRequest interface.
|
|
@@ -230,6 +245,7 @@ export function SearchProductChildrenRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
230
245
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
231
246
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
232
247
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
248
|
+
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
233
249
|
};
|
|
234
250
|
}
|
|
235
251
|
|
|
@@ -264,6 +280,7 @@ export function SearchProductChildrenRequestToJSONTyped(value?: SearchProductChi
|
|
|
264
280
|
'related_id': value['relatedId'],
|
|
265
281
|
'related_type': value['relatedType'],
|
|
266
282
|
'includes_relations': value['includesRelations'],
|
|
283
|
+
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
267
284
|
};
|
|
268
285
|
}
|
|
269
286
|
|
|
@@ -97,12 +97,6 @@ export interface SearchProductsRequest {
|
|
|
97
97
|
* @memberof SearchProductsRequest
|
|
98
98
|
*/
|
|
99
99
|
includesRelations?: boolean;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {SearchProductsRequestOmnisendSyncStatusEnum}
|
|
103
|
-
* @memberof SearchProductsRequest
|
|
104
|
-
*/
|
|
105
|
-
omnisendSyncStatus?: SearchProductsRequestOmnisendSyncStatusEnum | null;
|
|
106
100
|
}
|
|
107
101
|
|
|
108
102
|
|
|
@@ -135,15 +129,6 @@ export const SearchProductsRequestRelatedTypeEnum = {
|
|
|
135
129
|
} as const;
|
|
136
130
|
export type SearchProductsRequestRelatedTypeEnum = typeof SearchProductsRequestRelatedTypeEnum[keyof typeof SearchProductsRequestRelatedTypeEnum];
|
|
137
131
|
|
|
138
|
-
/**
|
|
139
|
-
* @export
|
|
140
|
-
*/
|
|
141
|
-
export const SearchProductsRequestOmnisendSyncStatusEnum = {
|
|
142
|
-
Synced: 'synced',
|
|
143
|
-
Failed: 'failed'
|
|
144
|
-
} as const;
|
|
145
|
-
export type SearchProductsRequestOmnisendSyncStatusEnum = typeof SearchProductsRequestOmnisendSyncStatusEnum[keyof typeof SearchProductsRequestOmnisendSyncStatusEnum];
|
|
146
|
-
|
|
147
132
|
|
|
148
133
|
/**
|
|
149
134
|
* Check if a given object implements the SearchProductsRequest interface.
|
|
@@ -175,7 +160,6 @@ export function SearchProductsRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
175
160
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
176
161
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
177
162
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
178
|
-
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
179
163
|
};
|
|
180
164
|
}
|
|
181
165
|
|
|
@@ -203,7 +187,6 @@ export function SearchProductsRequestToJSONTyped(value?: SearchProductsRequest |
|
|
|
203
187
|
'related_id': value['relatedId'],
|
|
204
188
|
'related_type': value['relatedType'],
|
|
205
189
|
'includes_relations': value['includesRelations'],
|
|
206
|
-
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
207
190
|
};
|
|
208
191
|
}
|
|
209
192
|
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +130,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
130
|
'siteId': json['siteId'],
|
|
130
131
|
'name': json['name'],
|
|
131
132
|
'email': json['email'],
|
|
132
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -110,7 +110,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
113
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
114
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
116
115
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -134,7 +133,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'longitude': json['longitude'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
137
|
-
'tagLine': json['tagLine'],
|
|
136
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
138
137
|
'email': json['email'],
|
|
139
138
|
'website': json['website'],
|
|
140
139
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|