@digital8/lighting-illusions-ts-sdk 0.0.2555 → 0.0.2556
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 +0 -2
- package/README.md +2 -2
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderResource.d.ts +6 -0
- package/dist/models/AdminOrderResource.js +4 -0
- package/dist/models/OrderFulfillmentResource.d.ts +3 -3
- package/dist/models/OrderFulfillmentResource.js +4 -6
- 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 +1 -1
- package/dist/models/SearchOrdersRequest.js +1 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/OrderFulfillmentResource.ts +7 -8
- package/src/models/OrderOmnisendEvent.ts +2 -1
- package/src/models/SearchAllOrdersRequest.ts +1 -1
- package/src/models/SearchOrdersRequest.ts +1 -1
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/index.ts +0 -2
- package/dist/models/StoreLocationResource.d.ts +0 -38
- package/dist/models/StoreLocationResource.js +0 -55
- package/dist/models/StoreLocationResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreLocationResourceArrayResponse.js +0 -50
- package/src/models/StoreLocationResource.ts +0 -75
- package/src/models/StoreLocationResourceArrayResponse.ts +0 -73
package/.openapi-generator/FILES
CHANGED
|
@@ -603,8 +603,6 @@ src/models/StoreListResource.ts
|
|
|
603
603
|
src/models/StoreListResourceArrayResponse.ts
|
|
604
604
|
src/models/StoreLiteResource.ts
|
|
605
605
|
src/models/StoreLiteResourceArrayResponse.ts
|
|
606
|
-
src/models/StoreLocationResource.ts
|
|
607
|
-
src/models/StoreLocationResourceArrayResponse.ts
|
|
608
606
|
src/models/StoreResource.ts
|
|
609
607
|
src/models/StoreResourceArrayResponse.ts
|
|
610
608
|
src/models/StoreSpecialDateFrontendResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
## @digital8/lighting-illusions-ts-sdk@0.0.2556
|
|
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.2556 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -20,7 +20,7 @@ export interface AddressFrontendResource {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AddressFrontendResource
|
|
22
22
|
*/
|
|
23
|
-
company
|
|
23
|
+
company: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
@@ -32,7 +32,7 @@ export interface AddressFrontendResource {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AddressFrontendResource
|
|
34
34
|
*/
|
|
35
|
-
line2
|
|
35
|
+
line2?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
@@ -22,9 +22,9 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -46,9 +46,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
return json;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
|
-
'company': json['company']
|
|
49
|
+
'company': json['company'],
|
|
50
50
|
'line1': json['line1'],
|
|
51
|
-
'line2': json['line2'],
|
|
51
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
52
52
|
'postcode': json['postcode'],
|
|
53
53
|
'suburb': json['suburb'],
|
|
54
54
|
'country': json['country'],
|
|
@@ -28,6 +28,8 @@ function instanceOfAddressResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('line2' in value) || value['line2'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -54,7 +56,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'addresseeName': json['addresseeName'],
|
|
55
57
|
'company': json['company'],
|
|
56
58
|
'line1': json['line1'],
|
|
57
|
-
'line2': json['line2']
|
|
59
|
+
'line2': json['line2'],
|
|
58
60
|
'postcode': json['postcode'],
|
|
59
61
|
'suburb': json['suburb'],
|
|
60
62
|
'country': json['country'],
|
|
@@ -121,6 +121,12 @@ export interface AdminOrderResource {
|
|
|
121
121
|
* @memberof AdminOrderResource
|
|
122
122
|
*/
|
|
123
123
|
isNetsuiteLocked: boolean;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof AdminOrderResource
|
|
128
|
+
*/
|
|
129
|
+
netsuiteSyncStatus: string;
|
|
124
130
|
/**
|
|
125
131
|
*
|
|
126
132
|
* @type {boolean}
|
|
@@ -54,6 +54,8 @@ function instanceOfAdminOrderResource(value) {
|
|
|
54
54
|
return false;
|
|
55
55
|
if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined)
|
|
56
56
|
return false;
|
|
57
|
+
if (!('netsuiteSyncStatus' in value) || value['netsuiteSyncStatus'] === undefined)
|
|
58
|
+
return false;
|
|
57
59
|
if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined)
|
|
58
60
|
return false;
|
|
59
61
|
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
@@ -140,6 +142,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
140
142
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
141
143
|
'netsuiteId': json['netsuiteId'],
|
|
142
144
|
'isNetsuiteLocked': json['isNetsuiteLocked'],
|
|
145
|
+
'netsuiteSyncStatus': json['netsuiteSyncStatus'],
|
|
143
146
|
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
144
147
|
'subtotal': json['subtotal'],
|
|
145
148
|
'productDiscountAmount': json['productDiscountAmount'],
|
|
@@ -198,6 +201,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
198
201
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
199
202
|
'netsuiteId': value['netsuiteId'],
|
|
200
203
|
'isNetsuiteLocked': value['isNetsuiteLocked'],
|
|
204
|
+
'netsuiteSyncStatus': value['netsuiteSyncStatus'],
|
|
201
205
|
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
|
202
206
|
'subtotal': value['subtotal'],
|
|
203
207
|
'productDiscountAmount': value['productDiscountAmount'],
|
|
@@ -39,19 +39,19 @@ export interface OrderFulfillmentResource {
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof OrderFulfillmentResource
|
|
41
41
|
*/
|
|
42
|
-
trackingNumber
|
|
42
|
+
trackingNumber?: string | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderFulfillmentResource
|
|
47
47
|
*/
|
|
48
|
-
trackingUrl
|
|
48
|
+
trackingUrl: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof OrderFulfillmentResource
|
|
53
53
|
*/
|
|
54
|
-
trackingCompany
|
|
54
|
+
trackingCompany?: string | null;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
@@ -29,9 +29,7 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
33
|
-
return false;
|
|
34
|
-
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
32
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
35
33
|
return false;
|
|
36
34
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
37
35
|
return false;
|
|
@@ -52,9 +50,9 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
50
|
'id': json['id'],
|
|
53
51
|
'orderId': json['orderId'],
|
|
54
52
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
55
|
-
'trackingNumber': json['trackingNumber'],
|
|
56
|
-
'trackingUrl': json['trackingUrl']
|
|
57
|
-
'trackingCompany': json['trackingCompany'],
|
|
53
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
54
|
+
'trackingUrl': json['trackingUrl'],
|
|
55
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
58
56
|
'docnum': json['docnum'],
|
|
59
57
|
'netsuiteId': json['netsuiteId'],
|
|
60
58
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export declare const OrderOmnisendEvent: {
|
|
17
17
|
readonly PlacedOrder: "placed order";
|
|
18
18
|
readonly PaidForOrder: "paid for order";
|
|
19
|
+
readonly OrderFulfilled: "order fulfilled";
|
|
19
20
|
};
|
|
20
21
|
export type OrderOmnisendEvent = typeof OrderOmnisendEvent[keyof typeof OrderOmnisendEvent];
|
|
21
22
|
export declare function instanceOfOrderOmnisendEvent(value: any): boolean;
|
|
@@ -25,7 +25,8 @@ exports.OrderOmnisendEventToJSONTyped = OrderOmnisendEventToJSONTyped;
|
|
|
25
25
|
*/
|
|
26
26
|
exports.OrderOmnisendEvent = {
|
|
27
27
|
PlacedOrder: 'placed order',
|
|
28
|
-
PaidForOrder: 'paid for order'
|
|
28
|
+
PaidForOrder: 'paid for order',
|
|
29
|
+
OrderFulfilled: 'order fulfilled'
|
|
29
30
|
};
|
|
30
31
|
function instanceOfOrderOmnisendEvent(value) {
|
|
31
32
|
for (var key in exports.OrderOmnisendEvent) {
|
|
@@ -90,7 +90,7 @@ export declare const SearchAllOrdersRequestSortByEnum: {
|
|
|
90
90
|
readonly CreatedAt: "created_at";
|
|
91
91
|
readonly PlacedAt: "placed_at";
|
|
92
92
|
readonly UpdatedAt: "updated_at";
|
|
93
|
-
readonly
|
|
93
|
+
readonly NetsuiteSyncNetsuiteId: "netsuiteSync-netsuite_id";
|
|
94
94
|
};
|
|
95
95
|
export type SearchAllOrdersRequestSortByEnum = typeof SearchAllOrdersRequestSortByEnum[keyof typeof SearchAllOrdersRequestSortByEnum];
|
|
96
96
|
/**
|
|
@@ -138,7 +138,7 @@ export declare const SearchOrdersRequestSortByEnum: {
|
|
|
138
138
|
readonly CreatedAt: "created_at";
|
|
139
139
|
readonly PlacedAt: "placed_at";
|
|
140
140
|
readonly UpdatedAt: "updated_at";
|
|
141
|
-
readonly
|
|
141
|
+
readonly NetsuiteSyncNetsuiteId: "netsuiteSync-netsuite_id";
|
|
142
142
|
};
|
|
143
143
|
export type SearchOrdersRequestSortByEnum = typeof SearchOrdersRequestSortByEnum[keyof typeof SearchOrdersRequestSortByEnum];
|
|
144
144
|
/**
|
|
@@ -33,8 +33,6 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
-
return false;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
40
38
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -59,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'phone': json['phone'],
|
|
60
58
|
'longitude': json['longitude'],
|
|
61
59
|
'latitude': json['latitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
60
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
61
|
'email': json['email'],
|
|
64
62
|
'website': json['website'],
|
|
65
63
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -36,6 +36,8 @@ 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;
|
|
39
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
'phone': json['phone'],
|
|
67
69
|
'longitude': json['longitude'],
|
|
68
70
|
'latitude': json['latitude'],
|
|
69
|
-
'tagLine': json['tagLine']
|
|
71
|
+
'tagLine': json['tagLine'],
|
|
70
72
|
'email': json['email'],
|
|
71
73
|
'website': json['website'],
|
|
72
74
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -564,8 +564,6 @@ export * from './StoreListResource';
|
|
|
564
564
|
export * from './StoreListResourceArrayResponse';
|
|
565
565
|
export * from './StoreLiteResource';
|
|
566
566
|
export * from './StoreLiteResourceArrayResponse';
|
|
567
|
-
export * from './StoreLocationResource';
|
|
568
|
-
export * from './StoreLocationResourceArrayResponse';
|
|
569
567
|
export * from './StoreResource';
|
|
570
568
|
export * from './StoreResourceArrayResponse';
|
|
571
569
|
export * from './StoreSpecialDateFrontendResource';
|
package/dist/models/index.js
CHANGED
|
@@ -582,8 +582,6 @@ __exportStar(require("./StoreListResource"), exports);
|
|
|
582
582
|
__exportStar(require("./StoreListResourceArrayResponse"), exports);
|
|
583
583
|
__exportStar(require("./StoreLiteResource"), exports);
|
|
584
584
|
__exportStar(require("./StoreLiteResourceArrayResponse"), exports);
|
|
585
|
-
__exportStar(require("./StoreLocationResource"), exports);
|
|
586
|
-
__exportStar(require("./StoreLocationResourceArrayResponse"), exports);
|
|
587
585
|
__exportStar(require("./StoreResource"), exports);
|
|
588
586
|
__exportStar(require("./StoreResourceArrayResponse"), exports);
|
|
589
587
|
__exportStar(require("./StoreSpecialDateFrontendResource"), exports);
|
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}
|
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -73,8 +73,8 @@ 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
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
78
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
79
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
80
80
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -93,9 +93,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
93
93
|
}
|
|
94
94
|
return {
|
|
95
95
|
|
|
96
|
-
'company': json['company']
|
|
96
|
+
'company': json['company'],
|
|
97
97
|
'line1': json['line1'],
|
|
98
|
-
'line2': json['line2'],
|
|
98
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
99
99
|
'postcode': json['postcode'],
|
|
100
100
|
'suburb': json['suburb'],
|
|
101
101
|
'country': json['country'],
|
|
@@ -60,7 +60,7 @@ export interface AddressResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof AddressResource
|
|
62
62
|
*/
|
|
63
|
-
line2
|
|
63
|
+
line2: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -100,6 +100,7 @@ export function instanceOfAddressResource(value: object): value is AddressResour
|
|
|
100
100
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
101
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
102
102
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
103
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
103
104
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
104
105
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
105
106
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -124,7 +125,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
124
125
|
'addresseeName': json['addresseeName'],
|
|
125
126
|
'company': json['company'],
|
|
126
127
|
'line1': json['line1'],
|
|
127
|
-
'line2': json['line2']
|
|
128
|
+
'line2': json['line2'],
|
|
128
129
|
'postcode': json['postcode'],
|
|
129
130
|
'suburb': json['suburb'],
|
|
130
131
|
'country': json['country'],
|
|
@@ -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 {boolean}
|
|
@@ -383,6 +389,7 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
|
|
|
383
389
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
384
390
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
385
391
|
if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined) return false;
|
|
392
|
+
if (!('netsuiteSyncStatus' in value) || value['netsuiteSyncStatus'] === undefined) return false;
|
|
386
393
|
if (!('isPrivilegedAdmin' in value) || value['isPrivilegedAdmin'] === undefined) return false;
|
|
387
394
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
388
395
|
if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined) return false;
|
|
@@ -442,6 +449,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
442
449
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
443
450
|
'netsuiteId': json['netsuiteId'],
|
|
444
451
|
'isNetsuiteLocked': json['isNetsuiteLocked'],
|
|
452
|
+
'netsuiteSyncStatus': json['netsuiteSyncStatus'],
|
|
445
453
|
'isPrivilegedAdmin': json['isPrivilegedAdmin'],
|
|
446
454
|
'subtotal': json['subtotal'],
|
|
447
455
|
'productDiscountAmount': json['productDiscountAmount'],
|
|
@@ -502,6 +510,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
|
|
|
502
510
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
503
511
|
'netsuiteId': value['netsuiteId'],
|
|
504
512
|
'isNetsuiteLocked': value['isNetsuiteLocked'],
|
|
513
|
+
'netsuiteSyncStatus': value['netsuiteSyncStatus'],
|
|
505
514
|
'isPrivilegedAdmin': value['isPrivilegedAdmin'],
|
|
506
515
|
'subtotal': value['subtotal'],
|
|
507
516
|
'productDiscountAmount': value['productDiscountAmount'],
|
|
@@ -50,19 +50,19 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
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 | null;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -102,8 +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 (!('
|
|
106
|
-
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
105
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
107
106
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
108
107
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
109
108
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -123,9 +122,9 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
123
122
|
'id': json['id'],
|
|
124
123
|
'orderId': json['orderId'],
|
|
125
124
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
126
|
-
'trackingNumber': json['trackingNumber'],
|
|
127
|
-
'trackingUrl': json['trackingUrl']
|
|
128
|
-
'trackingCompany': json['trackingCompany'],
|
|
125
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
126
|
+
'trackingUrl': json['trackingUrl'],
|
|
127
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
129
128
|
'docnum': json['docnum'],
|
|
130
129
|
'netsuiteId': json['netsuiteId'],
|
|
131
130
|
'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
|
|
|
@@ -144,7 +144,7 @@ export const SearchOrdersRequestSortByEnum = {
|
|
|
144
144
|
CreatedAt: 'created_at',
|
|
145
145
|
PlacedAt: 'placed_at',
|
|
146
146
|
UpdatedAt: 'updated_at',
|
|
147
|
-
|
|
147
|
+
NetsuiteSyncNetsuiteId: 'netsuiteSync-netsuite_id'
|
|
148
148
|
} as const;
|
|
149
149
|
export type SearchOrdersRequestSortByEnum = typeof SearchOrdersRequestSortByEnum[keyof typeof SearchOrdersRequestSortByEnum];
|
|
150
150
|
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -110,7 +110,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
113
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
114
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
116
115
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -134,7 +133,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'longitude': json['longitude'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
137
|
-
'tagLine': json['tagLine'],
|
|
136
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
138
137
|
'email': json['email'],
|
|
139
138
|
'website': json['website'],
|
|
140
139
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -149,6 +149,7 @@ 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;
|
|
152
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
154
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
154
155
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -175,7 +176,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
175
176
|
'phone': json['phone'],
|
|
176
177
|
'longitude': json['longitude'],
|
|
177
178
|
'latitude': json['latitude'],
|
|
178
|
-
'tagLine': json['tagLine']
|
|
179
|
+
'tagLine': json['tagLine'],
|
|
179
180
|
'email': json['email'],
|
|
180
181
|
'website': json['website'],
|
|
181
182
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
package/src/models/index.ts
CHANGED
|
@@ -566,8 +566,6 @@ export * from './StoreListResource';
|
|
|
566
566
|
export * from './StoreListResourceArrayResponse';
|
|
567
567
|
export * from './StoreLiteResource';
|
|
568
568
|
export * from './StoreLiteResourceArrayResponse';
|
|
569
|
-
export * from './StoreLocationResource';
|
|
570
|
-
export * from './StoreLocationResourceArrayResponse';
|
|
571
569
|
export * from './StoreResource';
|
|
572
570
|
export * from './StoreResourceArrayResponse';
|
|
573
571
|
export * from './StoreSpecialDateFrontendResource';
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface StoreLocationResource
|
|
16
|
-
*/
|
|
17
|
-
export interface StoreLocationResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof StoreLocationResource
|
|
22
|
-
*/
|
|
23
|
-
latitude: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof StoreLocationResource
|
|
28
|
-
*/
|
|
29
|
-
longitude: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the StoreLocationResource interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfStoreLocationResource(value: object): value is StoreLocationResource;
|
|
35
|
-
export declare function StoreLocationResourceFromJSON(json: any): StoreLocationResource;
|
|
36
|
-
export declare function StoreLocationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResource;
|
|
37
|
-
export declare function StoreLocationResourceToJSON(json: any): StoreLocationResource;
|
|
38
|
-
export declare function StoreLocationResourceToJSONTyped(value?: StoreLocationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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;
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
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 StoreLocationResource
|
|
20
|
-
*/
|
|
21
|
-
export interface StoreLocationResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof StoreLocationResource
|
|
26
|
-
*/
|
|
27
|
-
latitude: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof StoreLocationResource
|
|
32
|
-
*/
|
|
33
|
-
longitude: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the StoreLocationResource interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfStoreLocationResource(value: object): value is StoreLocationResource {
|
|
40
|
-
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
41
|
-
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function StoreLocationResourceFromJSON(json: any): StoreLocationResource {
|
|
46
|
-
return StoreLocationResourceFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function StoreLocationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResource {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'latitude': json['latitude'],
|
|
56
|
-
'longitude': json['longitude'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function StoreLocationResourceToJSON(json: any): StoreLocationResource {
|
|
61
|
-
return StoreLocationResourceToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function StoreLocationResourceToJSONTyped(value?: StoreLocationResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'latitude': value['latitude'],
|
|
72
|
-
'longitude': value['longitude'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { StoreLocationResource } from './StoreLocationResource';
|
|
17
|
-
import {
|
|
18
|
-
StoreLocationResourceFromJSON,
|
|
19
|
-
StoreLocationResourceFromJSONTyped,
|
|
20
|
-
StoreLocationResourceToJSON,
|
|
21
|
-
StoreLocationResourceToJSONTyped,
|
|
22
|
-
} from './StoreLocationResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface StoreLocationResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface StoreLocationResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<StoreLocationResource>}
|
|
33
|
-
* @memberof StoreLocationResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<StoreLocationResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the StoreLocationResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfStoreLocationResourceArrayResponse(value: object): value is StoreLocationResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function StoreLocationResourceArrayResponseFromJSON(json: any): StoreLocationResourceArrayResponse {
|
|
46
|
-
return StoreLocationResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function StoreLocationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLocationResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(StoreLocationResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function StoreLocationResourceArrayResponseToJSON(json: any): StoreLocationResourceArrayResponse {
|
|
60
|
-
return StoreLocationResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function StoreLocationResourceArrayResponseToJSONTyped(value?: StoreLocationResourceArrayResponse | 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(StoreLocationResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|