@digital8/lighting-illusions-ts-sdk 0.0.2132 → 0.0.2134
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/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- 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/SearchAllProductChildrenRequest.d.ts +6 -0
- package/dist/models/SearchAllProductChildrenRequest.js +2 -0
- package/dist/models/SearchProductChildrenRequest.d.ts +14 -14
- package/dist/models/SearchProductChildrenRequest.js +10 -10
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/docs/SearchAllProductChildrenRequest.md +2 -0
- package/docs/SearchProductChildrenRequest.md +2 -2
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/SearchAllProductChildrenRequest.ts +8 -0
- package/src/models/SearchProductChildrenRequest.ts +17 -17
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateResource.ts +4 -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.2134
|
|
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.2134`
|
|
808
808
|
- Generator version: `7.22.0`
|
|
809
809
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
810
810
|
|
|
@@ -22,6 +22,8 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
27
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -44,7 +46,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
return json;
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
|
-
'company': json['company']
|
|
49
|
+
'company': json['company'],
|
|
48
50
|
'line1': json['line1'],
|
|
49
51
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
50
52
|
'postcode': json['postcode'],
|
|
@@ -26,8 +26,6 @@ function instanceOfAddressResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('line2' in value) || value['line2'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -51,7 +49,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'company': json['company'],
|
|
53
51
|
'line1': json['line_1'],
|
|
54
|
-
'line2': json['line_2'],
|
|
52
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
55
53
|
'postcode': json['postcode'],
|
|
56
54
|
'suburb': json['suburb'],
|
|
57
55
|
'country': json['country'],
|
|
@@ -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']),
|
|
@@ -123,6 +123,12 @@ export interface SearchAllProductChildrenRequest {
|
|
|
123
123
|
* @memberof SearchAllProductChildrenRequest
|
|
124
124
|
*/
|
|
125
125
|
siteDetailsSeoHasSeoDescription?: Array<string>;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {Array<string>}
|
|
129
|
+
* @memberof SearchAllProductChildrenRequest
|
|
130
|
+
*/
|
|
131
|
+
omnisendSyncStatus?: Array<string>;
|
|
126
132
|
}
|
|
127
133
|
/**
|
|
128
134
|
* @export
|
|
@@ -85,6 +85,7 @@ function SearchAllProductChildrenRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
85
85
|
'enabledSitesId': json['enabledSites-id'] == null ? undefined : json['enabledSites-id'],
|
|
86
86
|
'siteDetailsSeoHasSeoTitle': json['siteDetailsSeo-has_seo_title'] == null ? undefined : json['siteDetailsSeo-has_seo_title'],
|
|
87
87
|
'siteDetailsSeoHasSeoDescription': json['siteDetailsSeo-has_seo_description'] == null ? undefined : json['siteDetailsSeo-has_seo_description'],
|
|
88
|
+
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
91
|
function SearchAllProductChildrenRequestToJSON(json) {
|
|
@@ -114,5 +115,6 @@ function SearchAllProductChildrenRequestToJSONTyped(value, ignoreDiscriminator)
|
|
|
114
115
|
'enabledSites-id': value['enabledSitesId'],
|
|
115
116
|
'siteDetailsSeo-has_seo_title': value['siteDetailsSeoHasSeoTitle'],
|
|
116
117
|
'siteDetailsSeo-has_seo_description': value['siteDetailsSeoHasSeoDescription'],
|
|
118
|
+
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
117
119
|
};
|
|
118
120
|
}
|
|
@@ -117,6 +117,12 @@ export interface SearchProductChildrenRequest {
|
|
|
117
117
|
* @memberof SearchProductChildrenRequest
|
|
118
118
|
*/
|
|
119
119
|
siteDetailsSeoHasSeoDescription?: Array<string>;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {SearchProductChildrenRequestOmnisendSyncStatusEnum}
|
|
123
|
+
* @memberof SearchProductChildrenRequest
|
|
124
|
+
*/
|
|
125
|
+
omnisendSyncStatus?: SearchProductChildrenRequestOmnisendSyncStatusEnum | null;
|
|
120
126
|
/**
|
|
121
127
|
*
|
|
122
128
|
* @type {number}
|
|
@@ -135,12 +141,6 @@ export interface SearchProductChildrenRequest {
|
|
|
135
141
|
* @memberof SearchProductChildrenRequest
|
|
136
142
|
*/
|
|
137
143
|
includesRelations?: boolean;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {SearchProductChildrenRequestOmnisendSyncStatusEnum}
|
|
141
|
-
* @memberof SearchProductChildrenRequest
|
|
142
|
-
*/
|
|
143
|
-
omnisendSyncStatus?: SearchProductChildrenRequestOmnisendSyncStatusEnum | null;
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* @export
|
|
@@ -168,6 +168,14 @@ export declare const SearchProductChildrenRequestSortDirectionEnum: {
|
|
|
168
168
|
readonly Desc: "desc";
|
|
169
169
|
};
|
|
170
170
|
export type SearchProductChildrenRequestSortDirectionEnum = typeof SearchProductChildrenRequestSortDirectionEnum[keyof typeof SearchProductChildrenRequestSortDirectionEnum];
|
|
171
|
+
/**
|
|
172
|
+
* @export
|
|
173
|
+
*/
|
|
174
|
+
export declare const SearchProductChildrenRequestOmnisendSyncStatusEnum: {
|
|
175
|
+
readonly Synced: "synced";
|
|
176
|
+
readonly Failed: "failed";
|
|
177
|
+
};
|
|
178
|
+
export type SearchProductChildrenRequestOmnisendSyncStatusEnum = typeof SearchProductChildrenRequestOmnisendSyncStatusEnum[keyof typeof SearchProductChildrenRequestOmnisendSyncStatusEnum];
|
|
171
179
|
/**
|
|
172
180
|
* @export
|
|
173
181
|
*/
|
|
@@ -189,14 +197,6 @@ export declare const SearchProductChildrenRequestRelatedTypeEnum: {
|
|
|
189
197
|
readonly Site: "site";
|
|
190
198
|
};
|
|
191
199
|
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];
|
|
200
200
|
/**
|
|
201
201
|
* Check if a given object implements the SearchProductChildrenRequest interface.
|
|
202
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.
|
|
16
|
+
exports.SearchProductChildrenRequestRelatedTypeEnum = exports.SearchProductChildrenRequestOmnisendSyncStatusEnum = exports.SearchProductChildrenRequestSortDirectionEnum = exports.SearchProductChildrenRequestSortByEnum = void 0;
|
|
17
17
|
exports.instanceOfSearchProductChildrenRequest = instanceOfSearchProductChildrenRequest;
|
|
18
18
|
exports.SearchProductChildrenRequestFromJSON = SearchProductChildrenRequestFromJSON;
|
|
19
19
|
exports.SearchProductChildrenRequestFromJSONTyped = SearchProductChildrenRequestFromJSONTyped;
|
|
@@ -43,6 +43,13 @@ exports.SearchProductChildrenRequestSortDirectionEnum = {
|
|
|
43
43
|
Asc: 'asc',
|
|
44
44
|
Desc: 'desc'
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
exports.SearchProductChildrenRequestOmnisendSyncStatusEnum = {
|
|
50
|
+
Synced: 'synced',
|
|
51
|
+
Failed: 'failed'
|
|
52
|
+
};
|
|
46
53
|
/**
|
|
47
54
|
* @export
|
|
48
55
|
*/
|
|
@@ -63,13 +70,6 @@ exports.SearchProductChildrenRequestRelatedTypeEnum = {
|
|
|
63
70
|
Label: 'label',
|
|
64
71
|
Site: 'site'
|
|
65
72
|
};
|
|
66
|
-
/**
|
|
67
|
-
* @export
|
|
68
|
-
*/
|
|
69
|
-
exports.SearchProductChildrenRequestOmnisendSyncStatusEnum = {
|
|
70
|
-
Synced: 'synced',
|
|
71
|
-
Failed: 'failed'
|
|
72
|
-
};
|
|
73
73
|
/**
|
|
74
74
|
* Check if a given object implements the SearchProductChildrenRequest interface.
|
|
75
75
|
*/
|
|
@@ -101,10 +101,10 @@ function SearchProductChildrenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
101
101
|
'enabledSitesId': json['enabledSites-id'] == null ? undefined : json['enabledSites-id'],
|
|
102
102
|
'siteDetailsSeoHasSeoTitle': json['siteDetailsSeo-has_seo_title'] == null ? undefined : json['siteDetailsSeo-has_seo_title'],
|
|
103
103
|
'siteDetailsSeoHasSeoDescription': json['siteDetailsSeo-has_seo_description'] == null ? undefined : json['siteDetailsSeo-has_seo_description'],
|
|
104
|
+
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
104
105
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
105
106
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
106
107
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
107
|
-
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
function SearchProductChildrenRequestToJSON(json) {
|
|
@@ -133,9 +133,9 @@ function SearchProductChildrenRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
133
133
|
'enabledSites-id': value['enabledSitesId'],
|
|
134
134
|
'siteDetailsSeo-has_seo_title': value['siteDetailsSeoHasSeoTitle'],
|
|
135
135
|
'siteDetailsSeo-has_seo_description': value['siteDetailsSeoHasSeoDescription'],
|
|
136
|
+
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
136
137
|
'related_id': value['relatedId'],
|
|
137
138
|
'related_type': value['relatedType'],
|
|
138
139
|
'includes_relations': value['includesRelations'],
|
|
139
|
-
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
140
140
|
};
|
|
141
141
|
}
|
|
@@ -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'],
|
|
@@ -60,7 +60,7 @@ export interface StoreResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreResource
|
|
62
62
|
*/
|
|
63
|
-
tagLine
|
|
63
|
+
tagLine?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -72,7 +72,7 @@ export interface StoreResource {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreResource
|
|
74
74
|
*/
|
|
75
|
-
website
|
|
75
|
+
website: string;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {number}
|
|
@@ -36,10 +36,10 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
41
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
42
|
+
return false;
|
|
43
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
44
44
|
return false;
|
|
45
45
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -66,9 +66,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
66
|
'phone': json['phone'],
|
|
67
67
|
'longitude': json['longitude'],
|
|
68
68
|
'latitude': json['latitude'],
|
|
69
|
-
'tagLine': json['tagLine'],
|
|
69
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
70
70
|
'email': json['email'],
|
|
71
|
-
'website': json['website']
|
|
71
|
+
'website': json['website'],
|
|
72
72
|
'netsuiteId': json['netsuiteId'],
|
|
73
73
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
74
74
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -26,6 +26,8 @@ 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;
|
|
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 StoreSpecialDateResourceFromJSONTyped(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'],
|
|
@@ -24,6 +24,7 @@ Name | Type
|
|
|
24
24
|
`enabledSitesId` | Array<string>
|
|
25
25
|
`siteDetailsSeoHasSeoTitle` | Array<string>
|
|
26
26
|
`siteDetailsSeoHasSeoDescription` | Array<string>
|
|
27
|
+
`omnisendSyncStatus` | Array<string>
|
|
27
28
|
|
|
28
29
|
## Example
|
|
29
30
|
|
|
@@ -50,6 +51,7 @@ const example = {
|
|
|
50
51
|
"enabledSitesId": null,
|
|
51
52
|
"siteDetailsSeoHasSeoTitle": null,
|
|
52
53
|
"siteDetailsSeoHasSeoDescription": null,
|
|
54
|
+
"omnisendSyncStatus": null,
|
|
53
55
|
} satisfies SearchAllProductChildrenRequest
|
|
54
56
|
|
|
55
57
|
console.log(example)
|
|
@@ -23,10 +23,10 @@ Name | Type
|
|
|
23
23
|
`enabledSitesId` | Array<string>
|
|
24
24
|
`siteDetailsSeoHasSeoTitle` | Array<string>
|
|
25
25
|
`siteDetailsSeoHasSeoDescription` | Array<string>
|
|
26
|
+
`omnisendSyncStatus` | string
|
|
26
27
|
`relatedId` | number
|
|
27
28
|
`relatedType` | string
|
|
28
29
|
`includesRelations` | boolean
|
|
29
|
-
`omnisendSyncStatus` | string
|
|
30
30
|
|
|
31
31
|
## Example
|
|
32
32
|
|
|
@@ -52,10 +52,10 @@ const example = {
|
|
|
52
52
|
"enabledSitesId": null,
|
|
53
53
|
"siteDetailsSeoHasSeoTitle": null,
|
|
54
54
|
"siteDetailsSeoHasSeoDescription": null,
|
|
55
|
+
"omnisendSyncStatus": null,
|
|
55
56
|
"relatedId": null,
|
|
56
57
|
"relatedType": null,
|
|
57
58
|
"includesRelations": null,
|
|
58
|
-
"omnisendSyncStatus": null,
|
|
59
59
|
} satisfies SearchProductChildrenRequest
|
|
60
60
|
|
|
61
61
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -73,6 +73,7 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
76
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
77
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
78
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -92,7 +93,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
92
93
|
}
|
|
93
94
|
return {
|
|
94
95
|
|
|
95
|
-
'company': json['company']
|
|
96
|
+
'company': json['company'],
|
|
96
97
|
'line1': json['line1'],
|
|
97
98
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
98
99
|
'postcode': json['postcode'],
|
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
line2
|
|
45
|
+
line2?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -81,7 +81,6 @@ export interface AddressResource {
|
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
83
83
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
85
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
86
85
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
87
86
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -103,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
103
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
103
|
'company': json['company'],
|
|
105
104
|
'line1': json['line_1'],
|
|
106
|
-
'line2': json['line_2'],
|
|
105
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
107
106
|
'postcode': json['postcode'],
|
|
108
107
|
'suburb': json['suburb'],
|
|
109
108
|
'country': json['country'],
|
|
@@ -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']),
|
|
@@ -127,6 +127,12 @@ export interface SearchAllProductChildrenRequest {
|
|
|
127
127
|
* @memberof SearchAllProductChildrenRequest
|
|
128
128
|
*/
|
|
129
129
|
siteDetailsSeoHasSeoDescription?: Array<string>;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {Array<string>}
|
|
133
|
+
* @memberof SearchAllProductChildrenRequest
|
|
134
|
+
*/
|
|
135
|
+
omnisendSyncStatus?: Array<string>;
|
|
130
136
|
}
|
|
131
137
|
|
|
132
138
|
|
|
@@ -206,6 +212,7 @@ export function SearchAllProductChildrenRequestFromJSONTyped(json: any, ignoreDi
|
|
|
206
212
|
'enabledSitesId': json['enabledSites-id'] == null ? undefined : json['enabledSites-id'],
|
|
207
213
|
'siteDetailsSeoHasSeoTitle': json['siteDetailsSeo-has_seo_title'] == null ? undefined : json['siteDetailsSeo-has_seo_title'],
|
|
208
214
|
'siteDetailsSeoHasSeoDescription': json['siteDetailsSeo-has_seo_description'] == null ? undefined : json['siteDetailsSeo-has_seo_description'],
|
|
215
|
+
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
209
216
|
};
|
|
210
217
|
}
|
|
211
218
|
|
|
@@ -238,6 +245,7 @@ export function SearchAllProductChildrenRequestToJSONTyped(value?: SearchAllProd
|
|
|
238
245
|
'enabledSites-id': value['enabledSitesId'],
|
|
239
246
|
'siteDetailsSeo-has_seo_title': value['siteDetailsSeoHasSeoTitle'],
|
|
240
247
|
'siteDetailsSeo-has_seo_description': value['siteDetailsSeoHasSeoDescription'],
|
|
248
|
+
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
241
249
|
};
|
|
242
250
|
}
|
|
243
251
|
|
|
@@ -121,6 +121,12 @@ export interface SearchProductChildrenRequest {
|
|
|
121
121
|
* @memberof SearchProductChildrenRequest
|
|
122
122
|
*/
|
|
123
123
|
siteDetailsSeoHasSeoDescription?: Array<string>;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {SearchProductChildrenRequestOmnisendSyncStatusEnum}
|
|
127
|
+
* @memberof SearchProductChildrenRequest
|
|
128
|
+
*/
|
|
129
|
+
omnisendSyncStatus?: SearchProductChildrenRequestOmnisendSyncStatusEnum | null;
|
|
124
130
|
/**
|
|
125
131
|
*
|
|
126
132
|
* @type {number}
|
|
@@ -139,12 +145,6 @@ export interface SearchProductChildrenRequest {
|
|
|
139
145
|
* @memberof SearchProductChildrenRequest
|
|
140
146
|
*/
|
|
141
147
|
includesRelations?: boolean;
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @type {SearchProductChildrenRequestOmnisendSyncStatusEnum}
|
|
145
|
-
* @memberof SearchProductChildrenRequest
|
|
146
|
-
*/
|
|
147
|
-
omnisendSyncStatus?: SearchProductChildrenRequestOmnisendSyncStatusEnum | null;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
|
|
@@ -176,6 +176,15 @@ export const SearchProductChildrenRequestSortDirectionEnum = {
|
|
|
176
176
|
} as const;
|
|
177
177
|
export type SearchProductChildrenRequestSortDirectionEnum = typeof SearchProductChildrenRequestSortDirectionEnum[keyof typeof SearchProductChildrenRequestSortDirectionEnum];
|
|
178
178
|
|
|
179
|
+
/**
|
|
180
|
+
* @export
|
|
181
|
+
*/
|
|
182
|
+
export const SearchProductChildrenRequestOmnisendSyncStatusEnum = {
|
|
183
|
+
Synced: 'synced',
|
|
184
|
+
Failed: 'failed'
|
|
185
|
+
} as const;
|
|
186
|
+
export type SearchProductChildrenRequestOmnisendSyncStatusEnum = typeof SearchProductChildrenRequestOmnisendSyncStatusEnum[keyof typeof SearchProductChildrenRequestOmnisendSyncStatusEnum];
|
|
187
|
+
|
|
179
188
|
/**
|
|
180
189
|
* @export
|
|
181
190
|
*/
|
|
@@ -198,15 +207,6 @@ export const SearchProductChildrenRequestRelatedTypeEnum = {
|
|
|
198
207
|
} as const;
|
|
199
208
|
export type SearchProductChildrenRequestRelatedTypeEnum = typeof SearchProductChildrenRequestRelatedTypeEnum[keyof typeof SearchProductChildrenRequestRelatedTypeEnum];
|
|
200
209
|
|
|
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
|
-
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
212
|
* Check if a given object implements the SearchProductChildrenRequest interface.
|
|
@@ -242,10 +242,10 @@ export function SearchProductChildrenRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
242
242
|
'enabledSitesId': json['enabledSites-id'] == null ? undefined : json['enabledSites-id'],
|
|
243
243
|
'siteDetailsSeoHasSeoTitle': json['siteDetailsSeo-has_seo_title'] == null ? undefined : json['siteDetailsSeo-has_seo_title'],
|
|
244
244
|
'siteDetailsSeoHasSeoDescription': json['siteDetailsSeo-has_seo_description'] == null ? undefined : json['siteDetailsSeo-has_seo_description'],
|
|
245
|
+
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
245
246
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
246
247
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
247
248
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
248
|
-
'omnisendSyncStatus': json['omnisend_sync_status'] == null ? undefined : json['omnisend_sync_status'],
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
|
|
@@ -277,10 +277,10 @@ export function SearchProductChildrenRequestToJSONTyped(value?: SearchProductChi
|
|
|
277
277
|
'enabledSites-id': value['enabledSitesId'],
|
|
278
278
|
'siteDetailsSeo-has_seo_title': value['siteDetailsSeoHasSeoTitle'],
|
|
279
279
|
'siteDetailsSeo-has_seo_description': value['siteDetailsSeoHasSeoDescription'],
|
|
280
|
+
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
280
281
|
'related_id': value['relatedId'],
|
|
281
282
|
'related_type': value['relatedType'],
|
|
282
283
|
'includes_relations': value['includesRelations'],
|
|
283
|
-
'omnisend_sync_status': value['omnisendSyncStatus'],
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
286
|
|
|
@@ -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'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website: string;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {number}
|
|
@@ -149,8 +149,8 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
152
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
154
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
155
155
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
156
156
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -175,9 +175,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
175
175
|
'phone': json['phone'],
|
|
176
176
|
'longitude': json['longitude'],
|
|
177
177
|
'latitude': json['latitude'],
|
|
178
|
-
'tagLine': json['tagLine'],
|
|
178
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
179
179
|
'email': json['email'],
|
|
180
|
-
'website': json['website']
|
|
180
|
+
'website': json['website'],
|
|
181
181
|
'netsuiteId': json['netsuiteId'],
|
|
182
182
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
183
183
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ 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;
|
|
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 StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
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'],
|