@digital8/lighting-illusions-ts-sdk 0.0.2522 → 0.0.2523
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 +10 -0
- package/README.md +2 -2
- package/dist/apis/AuspostApi.d.ts +29 -0
- package/dist/apis/AuspostApi.js +125 -0
- package/dist/apis/CartsApi.d.ts +11 -0
- package/dist/apis/CartsApi.js +46 -0
- package/dist/apis/OrdersApi.d.ts +11 -0
- package/dist/apis/OrdersApi.js +46 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AppliedCouponResource.d.ts +30 -0
- package/dist/models/AppliedCouponResource.js +20 -0
- package/dist/models/CartResource.d.ts +6 -0
- package/dist/models/CartResource.js +4 -0
- package/dist/models/CustomerOrderTab.d.ts +26 -0
- package/dist/models/CustomerOrderTab.js +52 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendCartResource.d.ts +6 -0
- package/dist/models/FrontendCartResource.js +2 -0
- package/dist/models/FrontendOrderFulfillmentResource.d.ts +62 -0
- package/dist/models/FrontendOrderFulfillmentResource.js +71 -0
- package/dist/models/FrontendOrderFulfillmentResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderFulfillmentResourceArrayResponse.js +50 -0
- package/dist/models/FrontendOrderListResource.d.ts +70 -0
- package/dist/models/FrontendOrderListResource.js +77 -0
- package/dist/models/FrontendOrderListResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderListResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +3 -3
- package/dist/models/PaginatedFrontendOrderListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedFrontendOrderListResourceResponse.js +57 -0
- package/dist/models/PaymentTotalsResource.d.ts +6 -0
- package/dist/models/PaymentTotalsResource.js +4 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/SuburbValidationResource.d.ts +32 -0
- package/dist/models/SuburbValidationResource.js +51 -0
- package/dist/models/SuburbValidationResourceArrayResponse.d.ts +33 -0
- package/dist/models/SuburbValidationResourceArrayResponse.js +50 -0
- package/dist/models/ValidateSuburbRequest.d.ts +50 -0
- package/dist/models/ValidateSuburbRequest.js +63 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/AuspostApi.ts +69 -0
- package/src/apis/CartsApi.ts +41 -0
- package/src/apis/OrdersApi.ts +41 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AppliedCouponResource.ts +45 -0
- package/src/models/CartResource.ts +9 -0
- package/src/models/CustomerOrderTab.ts +54 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +8 -0
- package/src/models/FrontendOrderFulfillmentResource.ts +111 -0
- package/src/models/FrontendOrderFulfillmentResourceArrayResponse.ts +73 -0
- package/src/models/FrontendOrderListResource.ts +135 -0
- package/src/models/FrontendOrderListResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +5 -5
- package/src/models/PaginatedFrontendOrderListResourceResponse.ts +90 -0
- package/src/models/PaymentTotalsResource.ts +9 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +6 -4
- package/src/models/SuburbValidationResource.ts +66 -0
- package/src/models/SuburbValidationResourceArrayResponse.ts +73 -0
- package/src/models/ValidateSuburbRequest.ts +93 -0
- package/src/models/index.ts +9 -0
|
@@ -50,7 +50,7 @@ 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}
|
|
@@ -62,7 +62,7 @@ export interface OrderFulfillmentResource {
|
|
|
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,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,9 +122,9 @@ 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']
|
|
125
|
+
'trackingNumber': json['trackingNumber'],
|
|
126
126
|
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
127
|
-
'trackingCompany': json['trackingCompany'],
|
|
127
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
128
128
|
'docnum': json['docnum'],
|
|
129
129
|
'netsuiteId': json['netsuiteId'],
|
|
130
130
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { FrontendOrderListResource } from './FrontendOrderListResource';
|
|
17
|
+
import {
|
|
18
|
+
FrontendOrderListResourceFromJSON,
|
|
19
|
+
FrontendOrderListResourceFromJSONTyped,
|
|
20
|
+
FrontendOrderListResourceToJSON,
|
|
21
|
+
FrontendOrderListResourceToJSONTyped,
|
|
22
|
+
} from './FrontendOrderListResource';
|
|
23
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
24
|
+
import {
|
|
25
|
+
PagingMetadataFromJSON,
|
|
26
|
+
PagingMetadataFromJSONTyped,
|
|
27
|
+
PagingMetadataToJSON,
|
|
28
|
+
PagingMetadataToJSONTyped,
|
|
29
|
+
} from './PagingMetadata';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedFrontendOrderListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedFrontendOrderListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<FrontendOrderListResource>}
|
|
40
|
+
* @memberof PaginatedFrontendOrderListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<FrontendOrderListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedFrontendOrderListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedFrontendOrderListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedFrontendOrderListResourceResponse(value: object): value is PaginatedFrontendOrderListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedFrontendOrderListResourceResponseFromJSON(json: any): PaginatedFrontendOrderListResourceResponse {
|
|
61
|
+
return PaginatedFrontendOrderListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedFrontendOrderListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFrontendOrderListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(FrontendOrderListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedFrontendOrderListResourceResponseToJSON(json: any): PaginatedFrontendOrderListResourceResponse {
|
|
76
|
+
return PaginatedFrontendOrderListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedFrontendOrderListResourceResponseToJSONTyped(value?: PaginatedFrontendOrderListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(FrontendOrderListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -67,6 +67,12 @@ export interface PaymentTotalsResource {
|
|
|
67
67
|
* @memberof PaymentTotalsResource
|
|
68
68
|
*/
|
|
69
69
|
amountPaid: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof PaymentTotalsResource
|
|
74
|
+
*/
|
|
75
|
+
surchargePaid: number;
|
|
70
76
|
/**
|
|
71
77
|
*
|
|
72
78
|
* @type {number}
|
|
@@ -135,6 +141,7 @@ export function instanceOfPaymentTotalsResource(value: object): value is Payment
|
|
|
135
141
|
if (!('gstAmount' in value) || value['gstAmount'] === undefined) return false;
|
|
136
142
|
if (!('finalTotal' in value) || value['finalTotal'] === undefined) return false;
|
|
137
143
|
if (!('amountPaid' in value) || value['amountPaid'] === undefined) return false;
|
|
144
|
+
if (!('surchargePaid' in value) || value['surchargePaid'] === undefined) return false;
|
|
138
145
|
if (!('amountDue' in value) || value['amountDue'] === undefined) return false;
|
|
139
146
|
if (!('appliedCoupons' in value) || value['appliedCoupons'] === undefined) return false;
|
|
140
147
|
if (!('noOfItems' in value) || value['noOfItems'] === undefined) return false;
|
|
@@ -164,6 +171,7 @@ export function PaymentTotalsResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
164
171
|
'gstAmount': json['gstAmount'],
|
|
165
172
|
'finalTotal': json['finalTotal'],
|
|
166
173
|
'amountPaid': json['amountPaid'],
|
|
174
|
+
'surchargePaid': json['surchargePaid'],
|
|
167
175
|
'amountDue': json['amountDue'],
|
|
168
176
|
'appliedCoupons': json['appliedCoupons'],
|
|
169
177
|
'noOfItems': json['noOfItems'],
|
|
@@ -195,6 +203,7 @@ export function PaymentTotalsResourceToJSONTyped(value?: PaymentTotalsResource |
|
|
|
195
203
|
'gstAmount': value['gstAmount'],
|
|
196
204
|
'finalTotal': value['finalTotal'],
|
|
197
205
|
'amountPaid': value['amountPaid'],
|
|
206
|
+
'surchargePaid': value['surchargePaid'],
|
|
198
207
|
'amountDue': value['amountDue'],
|
|
199
208
|
'appliedCoupons': value['appliedCoupons'],
|
|
200
209
|
'noOfItems': value['noOfItems'],
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +130,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
130
|
'siteId': json['siteId'],
|
|
130
131
|
'name': json['name'],
|
|
131
132
|
'email': json['email'],
|
|
132
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -110,8 +110,8 @@ 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;
|
|
113
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
114
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
115
115
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
116
116
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
117
117
|
return true;
|
|
@@ -133,9 +133,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
133
133
|
'phone': json['phone'],
|
|
134
134
|
'longitude': json['longitude'],
|
|
135
135
|
'latitude': json['latitude'],
|
|
136
|
-
'tagLine': json['tagLine']
|
|
136
|
+
'tagLine': json['tagLine'],
|
|
137
137
|
'email': json['email'],
|
|
138
|
-
'website': json['website'],
|
|
138
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
139
139
|
'netsuiteId': json['netsuiteId'],
|
|
140
140
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
141
141
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -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}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website: string;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {number}
|
|
@@ -149,7 +149,9 @@ 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;
|
|
154
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
153
155
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
154
156
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
155
157
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -174,9 +176,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
174
176
|
'phone': json['phone'],
|
|
175
177
|
'longitude': json['longitude'],
|
|
176
178
|
'latitude': json['latitude'],
|
|
177
|
-
'tagLine': json['tagLine']
|
|
179
|
+
'tagLine': json['tagLine'],
|
|
178
180
|
'email': json['email'],
|
|
179
|
-
'website': json['website']
|
|
181
|
+
'website': json['website'],
|
|
180
182
|
'netsuiteId': json['netsuiteId'],
|
|
181
183
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
182
184
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -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 SuburbValidationResource
|
|
20
|
+
*/
|
|
21
|
+
export interface SuburbValidationResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SuburbValidationResource
|
|
26
|
+
*/
|
|
27
|
+
found: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SuburbValidationResource interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSuburbValidationResource(value: object): value is SuburbValidationResource {
|
|
34
|
+
if (!('found' in value) || value['found'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function SuburbValidationResourceFromJSON(json: any): SuburbValidationResource {
|
|
39
|
+
return SuburbValidationResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function SuburbValidationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResource {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'found': json['found'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SuburbValidationResourceToJSON(json: any): SuburbValidationResource {
|
|
53
|
+
return SuburbValidationResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SuburbValidationResourceToJSONTyped(value?: SuburbValidationResource | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'found': value['found'],
|
|
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 { SuburbValidationResource } from './SuburbValidationResource';
|
|
17
|
+
import {
|
|
18
|
+
SuburbValidationResourceFromJSON,
|
|
19
|
+
SuburbValidationResourceFromJSONTyped,
|
|
20
|
+
SuburbValidationResourceToJSON,
|
|
21
|
+
SuburbValidationResourceToJSONTyped,
|
|
22
|
+
} from './SuburbValidationResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SuburbValidationResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface SuburbValidationResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<SuburbValidationResource>}
|
|
33
|
+
* @memberof SuburbValidationResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<SuburbValidationResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SuburbValidationResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSuburbValidationResourceArrayResponse(value: object): value is SuburbValidationResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SuburbValidationResourceArrayResponseFromJSON(json: any): SuburbValidationResourceArrayResponse {
|
|
46
|
+
return SuburbValidationResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SuburbValidationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SuburbValidationResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SuburbValidationResourceArrayResponseToJSON(json: any): SuburbValidationResourceArrayResponse {
|
|
60
|
+
return SuburbValidationResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SuburbValidationResourceArrayResponseToJSONTyped(value?: SuburbValidationResourceArrayResponse | 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(SuburbValidationResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 ValidateSuburbRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ValidateSuburbRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ValidateSuburbRequest
|
|
26
|
+
*/
|
|
27
|
+
siteId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ValidateSuburbRequest
|
|
32
|
+
*/
|
|
33
|
+
suburb: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ValidateSuburbRequest
|
|
38
|
+
*/
|
|
39
|
+
state: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ValidateSuburbRequest
|
|
44
|
+
*/
|
|
45
|
+
postcode: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ValidateSuburbRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfValidateSuburbRequest(value: object): value is ValidateSuburbRequest {
|
|
52
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
53
|
+
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
54
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
55
|
+
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ValidateSuburbRequestFromJSON(json: any): ValidateSuburbRequest {
|
|
60
|
+
return ValidateSuburbRequestFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ValidateSuburbRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateSuburbRequest {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'siteId': json['site_id'],
|
|
70
|
+
'suburb': json['suburb'],
|
|
71
|
+
'state': json['state'],
|
|
72
|
+
'postcode': json['postcode'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ValidateSuburbRequestToJSON(json: any): ValidateSuburbRequest {
|
|
77
|
+
return ValidateSuburbRequestToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ValidateSuburbRequestToJSONTyped(value?: ValidateSuburbRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'site_id': value['siteId'],
|
|
88
|
+
'suburb': value['suburb'],
|
|
89
|
+
'state': value['state'],
|
|
90
|
+
'postcode': value['postcode'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -158,6 +158,7 @@ export * from './CustomerListResource';
|
|
|
158
158
|
export * from './CustomerListResourceArrayResponse';
|
|
159
159
|
export * from './CustomerLiteResource';
|
|
160
160
|
export * from './CustomerLiteResourceArrayResponse';
|
|
161
|
+
export * from './CustomerOrderTab';
|
|
161
162
|
export * from './CustomerResource';
|
|
162
163
|
export * from './CustomerResourceArrayResponse';
|
|
163
164
|
export * from './CustomerReviewableItemFrontendResource';
|
|
@@ -212,6 +213,10 @@ export * from './FrontendComponentResource';
|
|
|
212
213
|
export * from './FrontendComponentResourceArrayResponse';
|
|
213
214
|
export * from './FrontendLineItemResource';
|
|
214
215
|
export * from './FrontendLineItemResourceArrayResponse';
|
|
216
|
+
export * from './FrontendOrderFulfillmentResource';
|
|
217
|
+
export * from './FrontendOrderFulfillmentResourceArrayResponse';
|
|
218
|
+
export * from './FrontendOrderListResource';
|
|
219
|
+
export * from './FrontendOrderListResourceArrayResponse';
|
|
215
220
|
export * from './FrontendOrderResource';
|
|
216
221
|
export * from './FrontendOrderResourceArrayResponse';
|
|
217
222
|
export * from './GenericResponse';
|
|
@@ -333,6 +338,7 @@ export * from './PaginatedExternalApiLogListResourceResponse';
|
|
|
333
338
|
export * from './PaginatedExternalApiLogResourceResponse';
|
|
334
339
|
export * from './PaginatedFrontendComponentLiteResourceResponse';
|
|
335
340
|
export * from './PaginatedFrontendComponentResourceResponse';
|
|
341
|
+
export * from './PaginatedFrontendOrderListResourceResponse';
|
|
336
342
|
export * from './PaginatedGoogleCategoryResourceResponse';
|
|
337
343
|
export * from './PaginatedLabelListResourceResponse';
|
|
338
344
|
export * from './PaginatedMenuListResourceResponse';
|
|
@@ -642,6 +648,8 @@ export * from './StoreSpecialDateResourceArrayResponse';
|
|
|
642
648
|
export * from './StoreStockType';
|
|
643
649
|
export * from './StoreTransactionResource';
|
|
644
650
|
export * from './StoreTransactionResourceArrayResponse';
|
|
651
|
+
export * from './SuburbValidationResource';
|
|
652
|
+
export * from './SuburbValidationResourceArrayResponse';
|
|
645
653
|
export * from './SupplierFrontendResource';
|
|
646
654
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
647
655
|
export * from './SupplierListResource';
|
|
@@ -713,6 +721,7 @@ export * from './UpdateTagRequest';
|
|
|
713
721
|
export * from './UserLiteResource';
|
|
714
722
|
export * from './UserLiteResourceArrayResponse';
|
|
715
723
|
export * from './UserType';
|
|
724
|
+
export * from './ValidateSuburbRequest';
|
|
716
725
|
export * from './WishlistCheckResource';
|
|
717
726
|
export * from './WishlistCheckResourceArrayResponse';
|
|
718
727
|
export * from './WishlistToggleResource';
|