@digital8/lighting-illusions-ts-sdk 0.0.2640 → 0.0.2641
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/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/dist/apis/OrdersApi.d.ts +9 -1
- package/dist/apis/OrdersApi.js +42 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +2 -6
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminOrderResource.d.ts +6 -0
- package/dist/models/AdminOrderResource.js +4 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/NetsuiteSyncFailureCountResource.d.ts +32 -0
- package/dist/models/NetsuiteSyncFailureCountResource.js +51 -0
- package/dist/models/NetsuiteSyncFailureCountResourceArrayResponse.d.ts +33 -0
- package/dist/models/NetsuiteSyncFailureCountResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +6 -2
- package/dist/models/OrderOmnisendEvent.d.ts +1 -0
- package/dist/models/OrderOmnisendEvent.js +2 -1
- package/dist/models/SearchAllOrdersRequest.d.ts +1 -1
- package/dist/models/SearchAllOrdersRequest.js +1 -1
- package/dist/models/SearchOrdersRequest.d.ts +7 -1
- package/dist/models/SearchOrdersRequest.js +3 -1
- 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/StoreLocationResource.d.ts +38 -0
- package/dist/models/StoreLocationResource.js +55 -0
- package/dist/models/StoreLocationResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreLocationResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/OrdersApi.ts +32 -0
- package/src/models/AddressFrontendResource.ts +4 -6
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/NetsuiteSyncFailureCountResource.ts +66 -0
- package/src/models/NetsuiteSyncFailureCountResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +6 -4
- package/src/models/OrderOmnisendEvent.ts +2 -1
- package/src/models/SearchAllOrdersRequest.ts +1 -1
- package/src/models/SearchOrdersRequest.ts +9 -1
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreLocationResource.ts +75 -0
- package/src/models/StoreLocationResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfStoreLocationResource = instanceOfStoreLocationResource;
|
|
17
|
+
exports.StoreLocationResourceFromJSON = StoreLocationResourceFromJSON;
|
|
18
|
+
exports.StoreLocationResourceFromJSONTyped = StoreLocationResourceFromJSONTyped;
|
|
19
|
+
exports.StoreLocationResourceToJSON = StoreLocationResourceToJSON;
|
|
20
|
+
exports.StoreLocationResourceToJSONTyped = StoreLocationResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreLocationResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreLocationResource(value) {
|
|
25
|
+
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function StoreLocationResourceFromJSON(json) {
|
|
32
|
+
return StoreLocationResourceFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function StoreLocationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'latitude': json['latitude'],
|
|
40
|
+
'longitude': json['longitude'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function StoreLocationResourceToJSON(json) {
|
|
44
|
+
return StoreLocationResourceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function StoreLocationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'latitude': value['latitude'],
|
|
53
|
+
'longitude': value['longitude'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { StoreLocationResource } from './StoreLocationResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StoreLocationResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface StoreLocationResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<StoreLocationResource>}
|
|
22
|
+
* @memberof StoreLocationResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<StoreLocationResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the StoreLocationResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfStoreLocationResourceArrayResponse(value: object): value is StoreLocationResourceArrayResponse;
|
|
30
|
+
export declare function StoreLocationResourceArrayResponseFromJSON(json: any): StoreLocationResourceArrayResponse;
|
|
31
|
+
export declare function StoreLocationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResourceArrayResponse;
|
|
32
|
+
export declare function StoreLocationResourceArrayResponseToJSON(json: any): StoreLocationResourceArrayResponse;
|
|
33
|
+
export declare function StoreLocationResourceArrayResponseToJSONTyped(value?: StoreLocationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfStoreLocationResourceArrayResponse = instanceOfStoreLocationResourceArrayResponse;
|
|
17
|
+
exports.StoreLocationResourceArrayResponseFromJSON = StoreLocationResourceArrayResponseFromJSON;
|
|
18
|
+
exports.StoreLocationResourceArrayResponseFromJSONTyped = StoreLocationResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.StoreLocationResourceArrayResponseToJSON = StoreLocationResourceArrayResponseToJSON;
|
|
20
|
+
exports.StoreLocationResourceArrayResponseToJSONTyped = StoreLocationResourceArrayResponseToJSONTyped;
|
|
21
|
+
var StoreLocationResource_1 = require("./StoreLocationResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the StoreLocationResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfStoreLocationResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function StoreLocationResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return StoreLocationResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function StoreLocationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(StoreLocationResource_1.StoreLocationResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function StoreLocationResourceArrayResponseToJSON(json) {
|
|
40
|
+
return StoreLocationResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function StoreLocationResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(StoreLocationResource_1.StoreLocationResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -275,6 +275,8 @@ export * from './ModelAttributeListResource';
|
|
|
275
275
|
export * from './ModelAttributeListResourceArrayResponse';
|
|
276
276
|
export * from './ModelAttributeResource';
|
|
277
277
|
export * from './ModelAttributeResourceArrayResponse';
|
|
278
|
+
export * from './NetsuiteSyncFailureCountResource';
|
|
279
|
+
export * from './NetsuiteSyncFailureCountResourceArrayResponse';
|
|
278
280
|
export * from './NetsuiteSyncLiteResource';
|
|
279
281
|
export * from './NetsuiteSyncLiteResourceArrayResponse';
|
|
280
282
|
export * from './OmnisendSyncLiteResource';
|
|
@@ -671,6 +673,8 @@ export * from './StoreListResource';
|
|
|
671
673
|
export * from './StoreListResourceArrayResponse';
|
|
672
674
|
export * from './StoreLiteResource';
|
|
673
675
|
export * from './StoreLiteResourceArrayResponse';
|
|
676
|
+
export * from './StoreLocationResource';
|
|
677
|
+
export * from './StoreLocationResourceArrayResponse';
|
|
674
678
|
export * from './StoreResource';
|
|
675
679
|
export * from './StoreResourceArrayResponse';
|
|
676
680
|
export * from './StoreSpecialDateFrontendResource';
|
package/dist/models/index.js
CHANGED
|
@@ -293,6 +293,8 @@ __exportStar(require("./ModelAttributeListResource"), exports);
|
|
|
293
293
|
__exportStar(require("./ModelAttributeListResourceArrayResponse"), exports);
|
|
294
294
|
__exportStar(require("./ModelAttributeResource"), exports);
|
|
295
295
|
__exportStar(require("./ModelAttributeResourceArrayResponse"), exports);
|
|
296
|
+
__exportStar(require("./NetsuiteSyncFailureCountResource"), exports);
|
|
297
|
+
__exportStar(require("./NetsuiteSyncFailureCountResourceArrayResponse"), exports);
|
|
296
298
|
__exportStar(require("./NetsuiteSyncLiteResource"), exports);
|
|
297
299
|
__exportStar(require("./NetsuiteSyncLiteResourceArrayResponse"), exports);
|
|
298
300
|
__exportStar(require("./OmnisendSyncLiteResource"), exports);
|
|
@@ -689,6 +691,8 @@ __exportStar(require("./StoreListResource"), exports);
|
|
|
689
691
|
__exportStar(require("./StoreListResourceArrayResponse"), exports);
|
|
690
692
|
__exportStar(require("./StoreLiteResource"), exports);
|
|
691
693
|
__exportStar(require("./StoreLiteResourceArrayResponse"), exports);
|
|
694
|
+
__exportStar(require("./StoreLocationResource"), exports);
|
|
695
|
+
__exportStar(require("./StoreLocationResourceArrayResponse"), exports);
|
|
692
696
|
__exportStar(require("./StoreResource"), exports);
|
|
693
697
|
__exportStar(require("./StoreResourceArrayResponse"), exports);
|
|
694
698
|
__exportStar(require("./StoreSpecialDateFrontendResource"), exports);
|
package/package.json
CHANGED
package/src/apis/OrdersApi.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
AttachLineItemRequest,
|
|
21
21
|
DetachCouponRequest,
|
|
22
22
|
GenericResponse,
|
|
23
|
+
NetsuiteSyncFailureCountResource,
|
|
23
24
|
OrderLiteResourceArrayResponse,
|
|
24
25
|
OrderStatusWithCountResourceArrayResponse,
|
|
25
26
|
PaginatedOrderFulfillmentResourceResponse,
|
|
@@ -41,6 +42,8 @@ import {
|
|
|
41
42
|
DetachCouponRequestToJSON,
|
|
42
43
|
GenericResponseFromJSON,
|
|
43
44
|
GenericResponseToJSON,
|
|
45
|
+
NetsuiteSyncFailureCountResourceFromJSON,
|
|
46
|
+
NetsuiteSyncFailureCountResourceToJSON,
|
|
44
47
|
OrderLiteResourceArrayResponseFromJSON,
|
|
45
48
|
OrderLiteResourceArrayResponseToJSON,
|
|
46
49
|
OrderStatusWithCountResourceArrayResponseFromJSON,
|
|
@@ -427,6 +430,35 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
427
430
|
return await response.value();
|
|
428
431
|
}
|
|
429
432
|
|
|
433
|
+
/**
|
|
434
|
+
* Auto-generated: netsuiteSyncFailureCountOrder
|
|
435
|
+
*/
|
|
436
|
+
async netsuiteSyncFailureCountOrderRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NetsuiteSyncFailureCountResource>> {
|
|
437
|
+
const queryParameters: any = {};
|
|
438
|
+
|
|
439
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
let urlPath = `/admin-api/orders/netsuite-sync-failures/count`;
|
|
443
|
+
|
|
444
|
+
const response = await this.request({
|
|
445
|
+
path: urlPath,
|
|
446
|
+
method: 'POST',
|
|
447
|
+
headers: headerParameters,
|
|
448
|
+
query: queryParameters,
|
|
449
|
+
}, initOverrides);
|
|
450
|
+
|
|
451
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NetsuiteSyncFailureCountResourceFromJSON(jsonValue));
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Auto-generated: netsuiteSyncFailureCountOrder
|
|
456
|
+
*/
|
|
457
|
+
async netsuiteSyncFailureCountOrder(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NetsuiteSyncFailureCountResource> {
|
|
458
|
+
const response = await this.netsuiteSyncFailureCountOrderRaw(initOverrides);
|
|
459
|
+
return await response.value();
|
|
460
|
+
}
|
|
461
|
+
|
|
430
462
|
/**
|
|
431
463
|
* Auto-generated: pdfOrder
|
|
432
464
|
*/
|
|
@@ -36,13 +36,13 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
addresseeName
|
|
39
|
+
addresseeName?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
company
|
|
45
|
+
company?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -91,8 +91,6 @@ export interface AddressFrontendResource {
|
|
|
91
91
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
92
92
|
*/
|
|
93
93
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
94
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
95
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
96
94
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
97
95
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
98
96
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -114,8 +112,8 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
114
112
|
|
|
115
113
|
'id': json['id'] == null ? undefined : json['id'],
|
|
116
114
|
'type': json['type'] == null ? undefined : json['type'],
|
|
117
|
-
'addresseeName': json['addresseeName'],
|
|
118
|
-
'company': json['company'],
|
|
115
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
116
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
119
117
|
'line1': json['line1'],
|
|
120
118
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
121
119
|
'postcode': json['postcode'],
|
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
addresseeName
|
|
45
|
+
addresseeName?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -97,7 +97,6 @@ export interface AddressResource {
|
|
|
97
97
|
* Check if a given object implements the AddressResource interface.
|
|
98
98
|
*/
|
|
99
99
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
100
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
102
101
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
103
102
|
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
@@ -122,7 +121,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
122
121
|
'id': json['id'] == null ? undefined : json['id'],
|
|
123
122
|
'type': json['type'] == null ? undefined : json['type'],
|
|
124
123
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
125
|
-
'addresseeName': json['addresseeName'],
|
|
124
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
126
125
|
'company': json['company'],
|
|
127
126
|
'line1': json['line1'],
|
|
128
127
|
'line2': json['line2'],
|
|
@@ -186,6 +186,12 @@ export interface AdminOrderResource {
|
|
|
186
186
|
* @memberof AdminOrderResource
|
|
187
187
|
*/
|
|
188
188
|
isNetsuiteLocked: boolean;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof AdminOrderResource
|
|
193
|
+
*/
|
|
194
|
+
netsuiteSyncStatus: string;
|
|
189
195
|
/**
|
|
190
196
|
*
|
|
191
197
|
* @type {number}
|
|
@@ -377,6 +383,7 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
|
|
|
377
383
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
378
384
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
379
385
|
if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined) return false;
|
|
386
|
+
if (!('netsuiteSyncStatus' in value) || value['netsuiteSyncStatus'] === undefined) return false;
|
|
380
387
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
381
388
|
if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined) return false;
|
|
382
389
|
if (!('subtotalDiscountAmount' in value) || value['subtotalDiscountAmount'] === undefined) return false;
|
|
@@ -435,6 +442,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
435
442
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
436
443
|
'netsuiteId': json['netsuiteId'],
|
|
437
444
|
'isNetsuiteLocked': json['isNetsuiteLocked'],
|
|
445
|
+
'netsuiteSyncStatus': json['netsuiteSyncStatus'],
|
|
438
446
|
'subtotal': json['subtotal'],
|
|
439
447
|
'productDiscountAmount': json['productDiscountAmount'],
|
|
440
448
|
'subtotalDiscountAmount': json['subtotalDiscountAmount'],
|
|
@@ -494,6 +502,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
|
|
|
494
502
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
495
503
|
'netsuiteId': value['netsuiteId'],
|
|
496
504
|
'isNetsuiteLocked': value['isNetsuiteLocked'],
|
|
505
|
+
'netsuiteSyncStatus': value['netsuiteSyncStatus'],
|
|
497
506
|
'subtotal': value['subtotal'],
|
|
498
507
|
'productDiscountAmount': value['productDiscountAmount'],
|
|
499
508
|
'subtotalDiscountAmount': value['subtotalDiscountAmount'],
|
|
@@ -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']),
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface NetsuiteSyncFailureCountResource
|
|
20
|
+
*/
|
|
21
|
+
export interface NetsuiteSyncFailureCountResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof NetsuiteSyncFailureCountResource
|
|
26
|
+
*/
|
|
27
|
+
count: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the NetsuiteSyncFailureCountResource interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfNetsuiteSyncFailureCountResource(value: object): value is NetsuiteSyncFailureCountResource {
|
|
34
|
+
if (!('count' in value) || value['count'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function NetsuiteSyncFailureCountResourceFromJSON(json: any): NetsuiteSyncFailureCountResource {
|
|
39
|
+
return NetsuiteSyncFailureCountResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function NetsuiteSyncFailureCountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetsuiteSyncFailureCountResource {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'count': json['count'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function NetsuiteSyncFailureCountResourceToJSON(json: any): NetsuiteSyncFailureCountResource {
|
|
53
|
+
return NetsuiteSyncFailureCountResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function NetsuiteSyncFailureCountResourceToJSONTyped(value?: NetsuiteSyncFailureCountResource | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'count': value['count'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { NetsuiteSyncFailureCountResource } from './NetsuiteSyncFailureCountResource';
|
|
17
|
+
import {
|
|
18
|
+
NetsuiteSyncFailureCountResourceFromJSON,
|
|
19
|
+
NetsuiteSyncFailureCountResourceFromJSONTyped,
|
|
20
|
+
NetsuiteSyncFailureCountResourceToJSON,
|
|
21
|
+
NetsuiteSyncFailureCountResourceToJSONTyped,
|
|
22
|
+
} from './NetsuiteSyncFailureCountResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface NetsuiteSyncFailureCountResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface NetsuiteSyncFailureCountResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<NetsuiteSyncFailureCountResource>}
|
|
33
|
+
* @memberof NetsuiteSyncFailureCountResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<NetsuiteSyncFailureCountResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the NetsuiteSyncFailureCountResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfNetsuiteSyncFailureCountResourceArrayResponse(value: object): value is NetsuiteSyncFailureCountResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function NetsuiteSyncFailureCountResourceArrayResponseFromJSON(json: any): NetsuiteSyncFailureCountResourceArrayResponse {
|
|
46
|
+
return NetsuiteSyncFailureCountResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NetsuiteSyncFailureCountResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetsuiteSyncFailureCountResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NetsuiteSyncFailureCountResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function NetsuiteSyncFailureCountResourceArrayResponseToJSON(json: any): NetsuiteSyncFailureCountResourceArrayResponse {
|
|
60
|
+
return NetsuiteSyncFailureCountResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function NetsuiteSyncFailureCountResourceArrayResponseToJSONTyped(value?: NetsuiteSyncFailureCountResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(NetsuiteSyncFailureCountResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -56,13 +56,13 @@ export interface OrderFulfillmentResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof OrderFulfillmentResource
|
|
64
64
|
*/
|
|
65
|
-
trackingCompany
|
|
65
|
+
trackingCompany: string;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -102,6 +102,8 @@ 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 (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
106
|
+
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
105
107
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
106
108
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
107
109
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -122,8 +124,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
122
124
|
'orderId': json['orderId'],
|
|
123
125
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
124
126
|
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
125
|
-
'trackingUrl': json['trackingUrl']
|
|
126
|
-
'trackingCompany': json['trackingCompany']
|
|
127
|
+
'trackingUrl': json['trackingUrl'],
|
|
128
|
+
'trackingCompany': json['trackingCompany'],
|
|
127
129
|
'docnum': json['docnum'],
|
|
128
130
|
'netsuiteId': json['netsuiteId'],
|
|
129
131
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export const OrderOmnisendEvent = {
|
|
21
21
|
PlacedOrder: 'placed order',
|
|
22
|
-
PaidForOrder: 'paid for order'
|
|
22
|
+
PaidForOrder: 'paid for order',
|
|
23
|
+
OrderFulfilled: 'order fulfilled'
|
|
23
24
|
} as const;
|
|
24
25
|
export type OrderOmnisendEvent = typeof OrderOmnisendEvent[keyof typeof OrderOmnisendEvent];
|
|
25
26
|
|
|
@@ -96,7 +96,7 @@ export const SearchAllOrdersRequestSortByEnum = {
|
|
|
96
96
|
CreatedAt: 'created_at',
|
|
97
97
|
PlacedAt: 'placed_at',
|
|
98
98
|
UpdatedAt: 'updated_at',
|
|
99
|
-
|
|
99
|
+
NetsuiteSyncNetsuiteId: 'netsuiteSync-netsuite_id'
|
|
100
100
|
} as const;
|
|
101
101
|
export type SearchAllOrdersRequestSortByEnum = typeof SearchAllOrdersRequestSortByEnum[keyof typeof SearchAllOrdersRequestSortByEnum];
|
|
102
102
|
|
|
@@ -139,6 +139,12 @@ export interface SearchOrdersRequest {
|
|
|
139
139
|
* @memberof SearchOrdersRequest
|
|
140
140
|
*/
|
|
141
141
|
couponId?: number | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {boolean}
|
|
145
|
+
* @memberof SearchOrdersRequest
|
|
146
|
+
*/
|
|
147
|
+
failedNetsuiteSync?: boolean;
|
|
142
148
|
}
|
|
143
149
|
|
|
144
150
|
|
|
@@ -150,7 +156,7 @@ export const SearchOrdersRequestSortByEnum = {
|
|
|
150
156
|
CreatedAt: 'created_at',
|
|
151
157
|
PlacedAt: 'placed_at',
|
|
152
158
|
UpdatedAt: 'updated_at',
|
|
153
|
-
|
|
159
|
+
NetsuiteSyncNetsuiteId: 'netsuiteSync-netsuite_id'
|
|
154
160
|
} as const;
|
|
155
161
|
export type SearchOrdersRequestSortByEnum = typeof SearchOrdersRequestSortByEnum[keyof typeof SearchOrdersRequestSortByEnum];
|
|
156
162
|
|
|
@@ -201,6 +207,7 @@ export function SearchOrdersRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
201
207
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
202
208
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
203
209
|
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
210
|
+
'failedNetsuiteSync': json['failed_netsuite_sync'] == null ? undefined : json['failed_netsuite_sync'],
|
|
204
211
|
};
|
|
205
212
|
}
|
|
206
213
|
|
|
@@ -235,6 +242,7 @@ export function SearchOrdersRequestToJSONTyped(value?: SearchOrdersRequest | nul
|
|
|
235
242
|
'related_type': value['relatedType'],
|
|
236
243
|
'includes_relations': value['includesRelations'],
|
|
237
244
|
'coupon_id': value['couponId'],
|
|
245
|
+
'failed_netsuite_sync': value['failedNetsuiteSync'],
|
|
238
246
|
};
|
|
239
247
|
}
|
|
240
248
|
|
|
@@ -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'],
|
|
@@ -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 (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
116
115
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
@@ -133,7 +132,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
133
132
|
'phone': json['phone'],
|
|
134
133
|
'longitude': json['longitude'],
|
|
135
134
|
'latitude': json['latitude'],
|
|
136
|
-
'tagLine': json['tagLine'],
|
|
135
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
137
136
|
'email': json['email'],
|
|
138
137
|
'website': json['website'] == null ? undefined : json['website'],
|
|
139
138
|
'netsuiteId': json['netsuiteId'],
|