@digital8/lighting-illusions-ts-sdk 0.0.2537 → 0.0.2539
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/apis/ExternalApiLogApi.d.ts +44 -0
- package/dist/apis/ExternalApiLogApi.js +184 -0
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +4 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +3 -3
- package/dist/models/ProductRegistrationResource.d.ts +6 -0
- package/dist/models/ProductRegistrationResource.js +4 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/package.json +1 -1
- package/src/apis/ExternalApiLogApi.ts +164 -0
- package/src/models/AddressResource.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/OrderFulfillmentResource.ts +5 -5
- package/src/models/ProductRegistrationResource.ts +9 -0
- package/src/models/StoreFrontendResource.ts +3 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
## @digital8/lighting-illusions-ts-sdk@0.0.2539
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/lighting-illusions-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/lighting-illusions-ts-sdk@0.0.2539 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { GenericResponse, GetUniqueEndpointsRequest, PaginatedExternalApiLogResourceResponse, SearchExternalApiLogsRequest } from '../models/index';
|
|
14
|
+
export interface FreshSyncOmnisendForCartExternalApiLogRequest {
|
|
15
|
+
cart: number;
|
|
16
|
+
}
|
|
17
|
+
export interface FreshSyncOmnisendForOrderExternalApiLogRequest {
|
|
18
|
+
order: number;
|
|
19
|
+
}
|
|
20
|
+
export interface FreshSyncOmnisendForProductChildExternalApiLogRequest {
|
|
21
|
+
productChild: number;
|
|
22
|
+
}
|
|
23
|
+
export interface FreshSyncOmnisendForProductRegistrationExternalApiLogRequest {
|
|
24
|
+
productRegistration: number;
|
|
25
|
+
}
|
|
14
26
|
export interface GetUniqueEndpointsExternalApiLogRequest {
|
|
15
27
|
getUniqueEndpointsRequest?: GetUniqueEndpointsRequest;
|
|
16
28
|
}
|
|
@@ -21,6 +33,38 @@ export interface IndexExternalApiLogRequest {
|
|
|
21
33
|
*
|
|
22
34
|
*/
|
|
23
35
|
export declare class ExternalApiLogApi extends runtime.BaseAPI {
|
|
36
|
+
/**
|
|
37
|
+
* Auto-generated: freshSyncOmnisendForCartExternalApiLog
|
|
38
|
+
*/
|
|
39
|
+
freshSyncOmnisendForCartExternalApiLogRaw(requestParameters: FreshSyncOmnisendForCartExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
40
|
+
/**
|
|
41
|
+
* Auto-generated: freshSyncOmnisendForCartExternalApiLog
|
|
42
|
+
*/
|
|
43
|
+
freshSyncOmnisendForCartExternalApiLog(requestParameters: FreshSyncOmnisendForCartExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Auto-generated: freshSyncOmnisendForOrderExternalApiLog
|
|
46
|
+
*/
|
|
47
|
+
freshSyncOmnisendForOrderExternalApiLogRaw(requestParameters: FreshSyncOmnisendForOrderExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
48
|
+
/**
|
|
49
|
+
* Auto-generated: freshSyncOmnisendForOrderExternalApiLog
|
|
50
|
+
*/
|
|
51
|
+
freshSyncOmnisendForOrderExternalApiLog(requestParameters: FreshSyncOmnisendForOrderExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Auto-generated: freshSyncOmnisendForProductChildExternalApiLog
|
|
54
|
+
*/
|
|
55
|
+
freshSyncOmnisendForProductChildExternalApiLogRaw(requestParameters: FreshSyncOmnisendForProductChildExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
56
|
+
/**
|
|
57
|
+
* Auto-generated: freshSyncOmnisendForProductChildExternalApiLog
|
|
58
|
+
*/
|
|
59
|
+
freshSyncOmnisendForProductChildExternalApiLog(requestParameters: FreshSyncOmnisendForProductChildExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Auto-generated: freshSyncOmnisendForProductRegistrationExternalApiLog
|
|
62
|
+
*/
|
|
63
|
+
freshSyncOmnisendForProductRegistrationExternalApiLogRaw(requestParameters: FreshSyncOmnisendForProductRegistrationExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
64
|
+
/**
|
|
65
|
+
* Auto-generated: freshSyncOmnisendForProductRegistrationExternalApiLog
|
|
66
|
+
*/
|
|
67
|
+
freshSyncOmnisendForProductRegistrationExternalApiLog(requestParameters: FreshSyncOmnisendForProductRegistrationExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
24
68
|
/**
|
|
25
69
|
* Auto-generated: getUniqueEndpointsExternalApiLog
|
|
26
70
|
*/
|
|
@@ -75,6 +75,190 @@ var ExternalApiLogApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ExternalApiLogApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Auto-generated: freshSyncOmnisendForCartExternalApiLog
|
|
80
|
+
*/
|
|
81
|
+
ExternalApiLogApi.prototype.freshSyncOmnisendForCartExternalApiLogRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['cart'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('cart', 'Required parameter "cart" was null or undefined when calling freshSyncOmnisendForCartExternalApiLog().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
urlPath = "/admin-api/external-api-log/carts/{cart}/fresh-sync-omnisend";
|
|
93
|
+
urlPath = urlPath.replace("{".concat("cart", "}"), encodeURIComponent(String(requestParameters['cart'])));
|
|
94
|
+
return [4 /*yield*/, this.request({
|
|
95
|
+
path: urlPath,
|
|
96
|
+
method: 'POST',
|
|
97
|
+
headers: headerParameters,
|
|
98
|
+
query: queryParameters,
|
|
99
|
+
}, initOverrides)];
|
|
100
|
+
case 1:
|
|
101
|
+
response = _a.sent();
|
|
102
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Auto-generated: freshSyncOmnisendForCartExternalApiLog
|
|
109
|
+
*/
|
|
110
|
+
ExternalApiLogApi.prototype.freshSyncOmnisendForCartExternalApiLog = function (requestParameters, initOverrides) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
+
var response;
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
switch (_a.label) {
|
|
115
|
+
case 0: return [4 /*yield*/, this.freshSyncOmnisendForCartExternalApiLogRaw(requestParameters, initOverrides)];
|
|
116
|
+
case 1:
|
|
117
|
+
response = _a.sent();
|
|
118
|
+
return [4 /*yield*/, response.value()];
|
|
119
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Auto-generated: freshSyncOmnisendForOrderExternalApiLog
|
|
126
|
+
*/
|
|
127
|
+
ExternalApiLogApi.prototype.freshSyncOmnisendForOrderExternalApiLogRaw = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
switch (_a.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
if (requestParameters['order'] == null) {
|
|
134
|
+
throw new runtime.RequiredError('order', 'Required parameter "order" was null or undefined when calling freshSyncOmnisendForOrderExternalApiLog().');
|
|
135
|
+
}
|
|
136
|
+
queryParameters = {};
|
|
137
|
+
headerParameters = {};
|
|
138
|
+
urlPath = "/admin-api/external-api-log/orders/{order}/fresh-sync-omnisend";
|
|
139
|
+
urlPath = urlPath.replace("{".concat("order", "}"), encodeURIComponent(String(requestParameters['order'])));
|
|
140
|
+
return [4 /*yield*/, this.request({
|
|
141
|
+
path: urlPath,
|
|
142
|
+
method: 'POST',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
}, initOverrides)];
|
|
146
|
+
case 1:
|
|
147
|
+
response = _a.sent();
|
|
148
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Auto-generated: freshSyncOmnisendForOrderExternalApiLog
|
|
155
|
+
*/
|
|
156
|
+
ExternalApiLogApi.prototype.freshSyncOmnisendForOrderExternalApiLog = function (requestParameters, initOverrides) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
158
|
+
var response;
|
|
159
|
+
return __generator(this, function (_a) {
|
|
160
|
+
switch (_a.label) {
|
|
161
|
+
case 0: return [4 /*yield*/, this.freshSyncOmnisendForOrderExternalApiLogRaw(requestParameters, initOverrides)];
|
|
162
|
+
case 1:
|
|
163
|
+
response = _a.sent();
|
|
164
|
+
return [4 /*yield*/, response.value()];
|
|
165
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Auto-generated: freshSyncOmnisendForProductChildExternalApiLog
|
|
172
|
+
*/
|
|
173
|
+
ExternalApiLogApi.prototype.freshSyncOmnisendForProductChildExternalApiLogRaw = function (requestParameters, initOverrides) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
175
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
176
|
+
return __generator(this, function (_a) {
|
|
177
|
+
switch (_a.label) {
|
|
178
|
+
case 0:
|
|
179
|
+
if (requestParameters['productChild'] == null) {
|
|
180
|
+
throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling freshSyncOmnisendForProductChildExternalApiLog().');
|
|
181
|
+
}
|
|
182
|
+
queryParameters = {};
|
|
183
|
+
headerParameters = {};
|
|
184
|
+
urlPath = "/admin-api/external-api-log/product-children/{productChild}/fresh-sync-omnisend";
|
|
185
|
+
urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
|
|
186
|
+
return [4 /*yield*/, this.request({
|
|
187
|
+
path: urlPath,
|
|
188
|
+
method: 'POST',
|
|
189
|
+
headers: headerParameters,
|
|
190
|
+
query: queryParameters,
|
|
191
|
+
}, initOverrides)];
|
|
192
|
+
case 1:
|
|
193
|
+
response = _a.sent();
|
|
194
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Auto-generated: freshSyncOmnisendForProductChildExternalApiLog
|
|
201
|
+
*/
|
|
202
|
+
ExternalApiLogApi.prototype.freshSyncOmnisendForProductChildExternalApiLog = function (requestParameters, initOverrides) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
204
|
+
var response;
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0: return [4 /*yield*/, this.freshSyncOmnisendForProductChildExternalApiLogRaw(requestParameters, initOverrides)];
|
|
208
|
+
case 1:
|
|
209
|
+
response = _a.sent();
|
|
210
|
+
return [4 /*yield*/, response.value()];
|
|
211
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* Auto-generated: freshSyncOmnisendForProductRegistrationExternalApiLog
|
|
218
|
+
*/
|
|
219
|
+
ExternalApiLogApi.prototype.freshSyncOmnisendForProductRegistrationExternalApiLogRaw = function (requestParameters, initOverrides) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
221
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
222
|
+
return __generator(this, function (_a) {
|
|
223
|
+
switch (_a.label) {
|
|
224
|
+
case 0:
|
|
225
|
+
if (requestParameters['productRegistration'] == null) {
|
|
226
|
+
throw new runtime.RequiredError('productRegistration', 'Required parameter "productRegistration" was null or undefined when calling freshSyncOmnisendForProductRegistrationExternalApiLog().');
|
|
227
|
+
}
|
|
228
|
+
queryParameters = {};
|
|
229
|
+
headerParameters = {};
|
|
230
|
+
urlPath = "/admin-api/external-api-log/product-registrations/{productRegistration}/fresh-sync-omnisend";
|
|
231
|
+
urlPath = urlPath.replace("{".concat("productRegistration", "}"), encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
232
|
+
return [4 /*yield*/, this.request({
|
|
233
|
+
path: urlPath,
|
|
234
|
+
method: 'POST',
|
|
235
|
+
headers: headerParameters,
|
|
236
|
+
query: queryParameters,
|
|
237
|
+
}, initOverrides)];
|
|
238
|
+
case 1:
|
|
239
|
+
response = _a.sent();
|
|
240
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* Auto-generated: freshSyncOmnisendForProductRegistrationExternalApiLog
|
|
247
|
+
*/
|
|
248
|
+
ExternalApiLogApi.prototype.freshSyncOmnisendForProductRegistrationExternalApiLog = function (requestParameters, initOverrides) {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
250
|
+
var response;
|
|
251
|
+
return __generator(this, function (_a) {
|
|
252
|
+
switch (_a.label) {
|
|
253
|
+
case 0: return [4 /*yield*/, this.freshSyncOmnisendForProductRegistrationExternalApiLogRaw(requestParameters, initOverrides)];
|
|
254
|
+
case 1:
|
|
255
|
+
response = _a.sent();
|
|
256
|
+
return [4 /*yield*/, response.value()];
|
|
257
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
};
|
|
78
262
|
/**
|
|
79
263
|
* Auto-generated: getUniqueEndpointsExternalApiLog
|
|
80
264
|
*/
|
|
@@ -44,7 +44,7 @@ export interface AddressResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof AddressResource
|
|
46
46
|
*/
|
|
47
|
-
company
|
|
47
|
+
company: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -56,7 +56,7 @@ export interface AddressResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof AddressResource
|
|
58
58
|
*/
|
|
59
|
-
line2
|
|
59
|
+
line2?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -24,9 +24,9 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('line1' in value) || value['line1'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
32
|
return false;
|
|
@@ -52,9 +52,9 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'type': json['type'] == null ? undefined : json['type'],
|
|
53
53
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
54
54
|
'addresseeName': json['addresseeName'],
|
|
55
|
-
'company': json['company']
|
|
55
|
+
'company': json['company'],
|
|
56
56
|
'line1': json['line1'],
|
|
57
|
-
'line2': json['line2'],
|
|
57
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
58
58
|
'postcode': json['postcode'],
|
|
59
59
|
'suburb': json['suburb'],
|
|
60
60
|
'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']),
|
|
@@ -39,13 +39,13 @@ export interface OrderFulfillmentResource {
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof OrderFulfillmentResource
|
|
41
41
|
*/
|
|
42
|
-
trackingNumber
|
|
42
|
+
trackingNumber: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderFulfillmentResource
|
|
47
47
|
*/
|
|
48
|
-
trackingUrl
|
|
48
|
+
trackingUrl?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
@@ -29,7 +29,7 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
|
|
33
33
|
return false;
|
|
34
34
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
35
35
|
return false;
|
|
@@ -50,8 +50,8 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'id': json['id'],
|
|
51
51
|
'orderId': json['orderId'],
|
|
52
52
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
53
|
-
'trackingNumber': json['trackingNumber']
|
|
54
|
-
'trackingUrl': json['trackingUrl'],
|
|
53
|
+
'trackingNumber': json['trackingNumber'],
|
|
54
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
55
55
|
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
56
56
|
'docnum': json['docnum'],
|
|
57
57
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -67,6 +67,12 @@ export interface ProductRegistrationResource {
|
|
|
67
67
|
* @memberof ProductRegistrationResource
|
|
68
68
|
*/
|
|
69
69
|
omnisendSyncStatus?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof ProductRegistrationResource
|
|
74
|
+
*/
|
|
75
|
+
isPrivilegedAdmin: boolean;
|
|
70
76
|
/**
|
|
71
77
|
*
|
|
72
78
|
* @type {Date}
|
|
@@ -36,6 +36,8 @@ function instanceOfProductRegistrationResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('assets' in value) || value['assets'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
return true;
|
|
40
42
|
}
|
|
41
43
|
function ProductRegistrationResourceFromJSON(json) {
|
|
@@ -54,6 +56,7 @@ function ProductRegistrationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'assets': (json['assets'] == null ? null : json['assets'].map(ProductRegistrationAssetResource_1.ProductRegistrationAssetResourceFromJSON)),
|
|
55
57
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
56
58
|
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
59
|
+
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
57
60
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
58
61
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
59
62
|
};
|
|
@@ -76,6 +79,7 @@ function ProductRegistrationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
76
79
|
'assets': (value['assets'] == null ? null : value['assets'].map(ProductRegistrationAssetResource_1.ProductRegistrationAssetResourceToJSON)),
|
|
77
80
|
'omnisendId': value['omnisendId'],
|
|
78
81
|
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
82
|
+
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
|
79
83
|
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
80
84
|
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
81
85
|
};
|
|
@@ -36,6 +36,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -59,7 +61,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
62
|
'latitude': json['latitude'],
|
|
61
63
|
'longitude': json['longitude'],
|
|
62
|
-
'tagLine': json['tagLine']
|
|
64
|
+
'tagLine': json['tagLine'],
|
|
63
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
64
66
|
'specialDates': json['specialDates'],
|
|
65
67
|
'suppliers': json['suppliers'],
|
package/package.json
CHANGED
|
@@ -31,6 +31,22 @@ import {
|
|
|
31
31
|
SearchExternalApiLogsRequestToJSON,
|
|
32
32
|
} from '../models/index';
|
|
33
33
|
|
|
34
|
+
export interface FreshSyncOmnisendForCartExternalApiLogRequest {
|
|
35
|
+
cart: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface FreshSyncOmnisendForOrderExternalApiLogRequest {
|
|
39
|
+
order: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface FreshSyncOmnisendForProductChildExternalApiLogRequest {
|
|
43
|
+
productChild: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface FreshSyncOmnisendForProductRegistrationExternalApiLogRequest {
|
|
47
|
+
productRegistration: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
34
50
|
export interface GetUniqueEndpointsExternalApiLogRequest {
|
|
35
51
|
getUniqueEndpointsRequest?: GetUniqueEndpointsRequest;
|
|
36
52
|
}
|
|
@@ -44,6 +60,154 @@ export interface IndexExternalApiLogRequest {
|
|
|
44
60
|
*/
|
|
45
61
|
export class ExternalApiLogApi extends runtime.BaseAPI {
|
|
46
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Auto-generated: freshSyncOmnisendForCartExternalApiLog
|
|
65
|
+
*/
|
|
66
|
+
async freshSyncOmnisendForCartExternalApiLogRaw(requestParameters: FreshSyncOmnisendForCartExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
67
|
+
if (requestParameters['cart'] == null) {
|
|
68
|
+
throw new runtime.RequiredError(
|
|
69
|
+
'cart',
|
|
70
|
+
'Required parameter "cart" was null or undefined when calling freshSyncOmnisendForCartExternalApiLog().'
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const queryParameters: any = {};
|
|
75
|
+
|
|
76
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
let urlPath = `/admin-api/external-api-log/carts/{cart}/fresh-sync-omnisend`;
|
|
80
|
+
urlPath = urlPath.replace(`{${"cart"}}`, encodeURIComponent(String(requestParameters['cart'])));
|
|
81
|
+
|
|
82
|
+
const response = await this.request({
|
|
83
|
+
path: urlPath,
|
|
84
|
+
method: 'POST',
|
|
85
|
+
headers: headerParameters,
|
|
86
|
+
query: queryParameters,
|
|
87
|
+
}, initOverrides);
|
|
88
|
+
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Auto-generated: freshSyncOmnisendForCartExternalApiLog
|
|
94
|
+
*/
|
|
95
|
+
async freshSyncOmnisendForCartExternalApiLog(requestParameters: FreshSyncOmnisendForCartExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
96
|
+
const response = await this.freshSyncOmnisendForCartExternalApiLogRaw(requestParameters, initOverrides);
|
|
97
|
+
return await response.value();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Auto-generated: freshSyncOmnisendForOrderExternalApiLog
|
|
102
|
+
*/
|
|
103
|
+
async freshSyncOmnisendForOrderExternalApiLogRaw(requestParameters: FreshSyncOmnisendForOrderExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
104
|
+
if (requestParameters['order'] == null) {
|
|
105
|
+
throw new runtime.RequiredError(
|
|
106
|
+
'order',
|
|
107
|
+
'Required parameter "order" was null or undefined when calling freshSyncOmnisendForOrderExternalApiLog().'
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const queryParameters: any = {};
|
|
112
|
+
|
|
113
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
let urlPath = `/admin-api/external-api-log/orders/{order}/fresh-sync-omnisend`;
|
|
117
|
+
urlPath = urlPath.replace(`{${"order"}}`, encodeURIComponent(String(requestParameters['order'])));
|
|
118
|
+
|
|
119
|
+
const response = await this.request({
|
|
120
|
+
path: urlPath,
|
|
121
|
+
method: 'POST',
|
|
122
|
+
headers: headerParameters,
|
|
123
|
+
query: queryParameters,
|
|
124
|
+
}, initOverrides);
|
|
125
|
+
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Auto-generated: freshSyncOmnisendForOrderExternalApiLog
|
|
131
|
+
*/
|
|
132
|
+
async freshSyncOmnisendForOrderExternalApiLog(requestParameters: FreshSyncOmnisendForOrderExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
133
|
+
const response = await this.freshSyncOmnisendForOrderExternalApiLogRaw(requestParameters, initOverrides);
|
|
134
|
+
return await response.value();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Auto-generated: freshSyncOmnisendForProductChildExternalApiLog
|
|
139
|
+
*/
|
|
140
|
+
async freshSyncOmnisendForProductChildExternalApiLogRaw(requestParameters: FreshSyncOmnisendForProductChildExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
141
|
+
if (requestParameters['productChild'] == null) {
|
|
142
|
+
throw new runtime.RequiredError(
|
|
143
|
+
'productChild',
|
|
144
|
+
'Required parameter "productChild" was null or undefined when calling freshSyncOmnisendForProductChildExternalApiLog().'
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const queryParameters: any = {};
|
|
149
|
+
|
|
150
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
let urlPath = `/admin-api/external-api-log/product-children/{productChild}/fresh-sync-omnisend`;
|
|
154
|
+
urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
|
|
155
|
+
|
|
156
|
+
const response = await this.request({
|
|
157
|
+
path: urlPath,
|
|
158
|
+
method: 'POST',
|
|
159
|
+
headers: headerParameters,
|
|
160
|
+
query: queryParameters,
|
|
161
|
+
}, initOverrides);
|
|
162
|
+
|
|
163
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Auto-generated: freshSyncOmnisendForProductChildExternalApiLog
|
|
168
|
+
*/
|
|
169
|
+
async freshSyncOmnisendForProductChildExternalApiLog(requestParameters: FreshSyncOmnisendForProductChildExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
170
|
+
const response = await this.freshSyncOmnisendForProductChildExternalApiLogRaw(requestParameters, initOverrides);
|
|
171
|
+
return await response.value();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Auto-generated: freshSyncOmnisendForProductRegistrationExternalApiLog
|
|
176
|
+
*/
|
|
177
|
+
async freshSyncOmnisendForProductRegistrationExternalApiLogRaw(requestParameters: FreshSyncOmnisendForProductRegistrationExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
178
|
+
if (requestParameters['productRegistration'] == null) {
|
|
179
|
+
throw new runtime.RequiredError(
|
|
180
|
+
'productRegistration',
|
|
181
|
+
'Required parameter "productRegistration" was null or undefined when calling freshSyncOmnisendForProductRegistrationExternalApiLog().'
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const queryParameters: any = {};
|
|
186
|
+
|
|
187
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
let urlPath = `/admin-api/external-api-log/product-registrations/{productRegistration}/fresh-sync-omnisend`;
|
|
191
|
+
urlPath = urlPath.replace(`{${"productRegistration"}}`, encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
192
|
+
|
|
193
|
+
const response = await this.request({
|
|
194
|
+
path: urlPath,
|
|
195
|
+
method: 'POST',
|
|
196
|
+
headers: headerParameters,
|
|
197
|
+
query: queryParameters,
|
|
198
|
+
}, initOverrides);
|
|
199
|
+
|
|
200
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Auto-generated: freshSyncOmnisendForProductRegistrationExternalApiLog
|
|
205
|
+
*/
|
|
206
|
+
async freshSyncOmnisendForProductRegistrationExternalApiLog(requestParameters: FreshSyncOmnisendForProductRegistrationExternalApiLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
207
|
+
const response = await this.freshSyncOmnisendForProductRegistrationExternalApiLogRaw(requestParameters, initOverrides);
|
|
208
|
+
return await response.value();
|
|
209
|
+
}
|
|
210
|
+
|
|
47
211
|
/**
|
|
48
212
|
* Auto-generated: getUniqueEndpointsExternalApiLog
|
|
49
213
|
*/
|
|
@@ -48,7 +48,7 @@ export interface AddressResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AddressResource
|
|
50
50
|
*/
|
|
51
|
-
company
|
|
51
|
+
company: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -60,7 +60,7 @@ export interface AddressResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof AddressResource
|
|
62
62
|
*/
|
|
63
|
-
line2
|
|
63
|
+
line2?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -98,8 +98,8 @@ export interface AddressResource {
|
|
|
98
98
|
*/
|
|
99
99
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
100
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
101
102
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
102
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
103
103
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
104
104
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
105
105
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -122,9 +122,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
122
122
|
'type': json['type'] == null ? undefined : json['type'],
|
|
123
123
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
124
124
|
'addresseeName': json['addresseeName'],
|
|
125
|
-
'company': json['company']
|
|
125
|
+
'company': json['company'],
|
|
126
126
|
'line1': json['line1'],
|
|
127
|
-
'line2': json['line2'],
|
|
127
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
128
128
|
'postcode': json['postcode'],
|
|
129
129
|
'suburb': json['suburb'],
|
|
130
130
|
'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']),
|
|
@@ -50,13 +50,13 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl?: string | null;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -102,7 +102,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
102
102
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
|
-
if (!('
|
|
105
|
+
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
106
106
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
107
107
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
108
108
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -122,8 +122,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
122
122
|
'id': json['id'],
|
|
123
123
|
'orderId': json['orderId'],
|
|
124
124
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
125
|
-
'trackingNumber': json['trackingNumber']
|
|
126
|
-
'trackingUrl': json['trackingUrl'],
|
|
125
|
+
'trackingNumber': json['trackingNumber'],
|
|
126
|
+
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
127
127
|
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
128
128
|
'docnum': json['docnum'],
|
|
129
129
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -96,6 +96,12 @@ export interface ProductRegistrationResource {
|
|
|
96
96
|
* @memberof ProductRegistrationResource
|
|
97
97
|
*/
|
|
98
98
|
omnisendSyncStatus?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
* @memberof ProductRegistrationResource
|
|
103
|
+
*/
|
|
104
|
+
isPrivilegedAdmin: boolean;
|
|
99
105
|
/**
|
|
100
106
|
*
|
|
101
107
|
* @type {Date}
|
|
@@ -119,6 +125,7 @@ export function instanceOfProductRegistrationResource(value: object): value is P
|
|
|
119
125
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
120
126
|
if (!('productChildren' in value) || value['productChildren'] === undefined) return false;
|
|
121
127
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
128
|
+
if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined) return false;
|
|
122
129
|
return true;
|
|
123
130
|
}
|
|
124
131
|
|
|
@@ -140,6 +147,7 @@ export function ProductRegistrationResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
140
147
|
'assets': (json['assets'] == null ? null : (json['assets'] as Array<any>).map(ProductRegistrationAssetResourceFromJSON)),
|
|
141
148
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
142
149
|
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
150
|
+
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
143
151
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
144
152
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
145
153
|
};
|
|
@@ -164,6 +172,7 @@ export function ProductRegistrationResourceToJSONTyped(value?: ProductRegistrati
|
|
|
164
172
|
'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(ProductRegistrationAssetResourceToJSON)),
|
|
165
173
|
'omnisendId': value['omnisendId'],
|
|
166
174
|
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
175
|
+
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
|
167
176
|
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
168
177
|
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
169
178
|
};
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -110,6 +110,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
113
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
113
114
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
114
115
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
115
116
|
return true;
|
|
@@ -134,7 +135,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
136
137
|
'longitude': json['longitude'],
|
|
137
|
-
'tagLine': json['tagLine']
|
|
138
|
+
'tagLine': json['tagLine'],
|
|
138
139
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
139
140
|
'specialDates': json['specialDates'],
|
|
140
141
|
'suppliers': json['suppliers'],
|