@digital8/lighting-illusions-ts-sdk 0.0.2437 → 0.0.2438
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 -15
- package/README.md +2 -2
- package/dist/apis/AuspostApi.d.ts +29 -0
- package/dist/apis/AuspostApi.js +125 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/ProductCategoryLiteResource.d.ts +0 -6
- package/dist/models/ProductCategoryLiteResource.js +0 -4
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -4
- package/dist/models/SearchCartsRequest.d.ts +0 -6
- package/dist/models/SearchCartsRequest.js +0 -2
- package/dist/models/SearchOrdersRequest.d.ts +0 -6
- package/dist/models/SearchOrdersRequest.js +0 -2
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- 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 +3 -14
- package/dist/models/index.js +3 -14
- package/package.json +1 -1
- package/src/apis/AuspostApi.ts +69 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +2 -3
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/ProductCategoryLiteResource.ts +0 -9
- package/src/models/ProductChildListResource.ts +0 -9
- package/src/models/SearchCartsRequest.ts +0 -8
- package/src/models/SearchOrdersRequest.ts +0 -8
- package/src/models/StoreListResource.ts +2 -3
- 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 +3 -14
- package/dist/apis/CouponsApi.d.ts +0 -85
- package/dist/apis/CouponsApi.js +0 -355
- package/dist/models/CouponListResource.d.ts +0 -99
- package/dist/models/CouponListResource.js +0 -91
- package/dist/models/CouponListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponListResourceArrayResponse.js +0 -50
- package/dist/models/CouponLiteResource.d.ts +0 -44
- package/dist/models/CouponLiteResource.js +0 -57
- package/dist/models/CouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/CouponResource.d.ts +0 -163
- package/dist/models/CouponResource.js +0 -135
- package/dist/models/CouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CouponResourceArrayResponse.js +0 -50
- package/dist/models/CouponType.d.ts +0 -26
- package/dist/models/CouponType.js +0 -52
- package/dist/models/CreateCouponRequest.d.ts +0 -126
- package/dist/models/CreateCouponRequest.js +0 -107
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +0 -48
- package/dist/models/CreateCouponRequestCouponablesInner.js +0 -61
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponListResourceResponse.js +0 -57
- package/dist/models/PaginatedCouponResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCouponResourceResponse.js +0 -57
- package/dist/models/SearchAllCouponsRequest.d.ts +0 -101
- package/dist/models/SearchAllCouponsRequest.js +0 -85
- package/dist/models/SearchCouponsRequest.d.ts +0 -137
- package/dist/models/SearchCouponsRequest.js +0 -97
- package/dist/models/UpdateCouponRequest.d.ts +0 -120
- package/dist/models/UpdateCouponRequest.js +0 -103
- package/src/apis/CouponsApi.ts +0 -286
- package/src/models/CouponListResource.ts +0 -170
- package/src/models/CouponListResourceArrayResponse.ts +0 -73
- package/src/models/CouponLiteResource.ts +0 -83
- package/src/models/CouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/CouponResource.ts +0 -288
- package/src/models/CouponResourceArrayResponse.ts +0 -73
- package/src/models/CouponType.ts +0 -54
- package/src/models/CreateCouponRequest.ts +0 -207
- package/src/models/CreateCouponRequestCouponablesInner.ts +0 -86
- package/src/models/PaginatedCouponListResourceResponse.ts +0 -90
- package/src/models/PaginatedCouponResourceResponse.ts +0 -90
- package/src/models/SearchAllCouponsRequest.ts +0 -154
- package/src/models/SearchCouponsRequest.ts +0 -202
- package/src/models/UpdateCouponRequest.ts +0 -198
|
@@ -121,12 +121,6 @@ export interface SearchCartsRequest {
|
|
|
121
121
|
* @memberof SearchCartsRequest
|
|
122
122
|
*/
|
|
123
123
|
includesRelations?: boolean;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @type {number}
|
|
127
|
-
* @memberof SearchCartsRequest
|
|
128
|
-
*/
|
|
129
|
-
couponId?: number | null;
|
|
130
124
|
}
|
|
131
125
|
|
|
132
126
|
|
|
@@ -185,7 +179,6 @@ export function SearchCartsRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
185
179
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
186
180
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
187
181
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
188
|
-
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
189
182
|
};
|
|
190
183
|
}
|
|
191
184
|
|
|
@@ -217,7 +210,6 @@ export function SearchCartsRequestToJSONTyped(value?: SearchCartsRequest | null,
|
|
|
217
210
|
'related_id': value['relatedId'],
|
|
218
211
|
'related_type': value['relatedType'],
|
|
219
212
|
'includes_relations': value['includesRelations'],
|
|
220
|
-
'coupon_id': value['couponId'],
|
|
221
213
|
};
|
|
222
214
|
}
|
|
223
215
|
|
|
@@ -133,12 +133,6 @@ export interface SearchOrdersRequest {
|
|
|
133
133
|
* @memberof SearchOrdersRequest
|
|
134
134
|
*/
|
|
135
135
|
includesRelations?: boolean;
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {number}
|
|
139
|
-
* @memberof SearchOrdersRequest
|
|
140
|
-
*/
|
|
141
|
-
couponId?: number | null;
|
|
142
136
|
}
|
|
143
137
|
|
|
144
138
|
|
|
@@ -200,7 +194,6 @@ export function SearchOrdersRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
200
194
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
201
195
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
202
196
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
203
|
-
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
204
197
|
};
|
|
205
198
|
}
|
|
206
199
|
|
|
@@ -234,7 +227,6 @@ export function SearchOrdersRequestToJSONTyped(value?: SearchOrdersRequest | nul
|
|
|
234
227
|
'related_id': value['relatedId'],
|
|
235
228
|
'related_type': value['relatedType'],
|
|
236
229
|
'includes_relations': value['includesRelations'],
|
|
237
|
-
'coupon_id': value['couponId'],
|
|
238
230
|
};
|
|
239
231
|
}
|
|
240
232
|
|
|
@@ -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}
|
|
@@ -112,7 +112,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
113
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
116
115
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
117
116
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
118
117
|
return true;
|
|
@@ -136,7 +135,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
136
135
|
'latitude': json['latitude'],
|
|
137
136
|
'tagLine': json['tagLine'],
|
|
138
137
|
'email': json['email'],
|
|
139
|
-
'website': json['website'],
|
|
138
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
140
139
|
'netsuiteId': json['netsuiteId'],
|
|
141
140
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
142
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
|
@@ -81,13 +81,6 @@ export * from './CategoryFrontendResourceArrayResponse';
|
|
|
81
81
|
export * from './CategoryWithChildrenFrontendResource';
|
|
82
82
|
export * from './CategoryWithChildrenFrontendResourceArrayResponse';
|
|
83
83
|
export * from './CouponDiscountType';
|
|
84
|
-
export * from './CouponListResource';
|
|
85
|
-
export * from './CouponListResourceArrayResponse';
|
|
86
|
-
export * from './CouponLiteResource';
|
|
87
|
-
export * from './CouponLiteResourceArrayResponse';
|
|
88
|
-
export * from './CouponResource';
|
|
89
|
-
export * from './CouponResourceArrayResponse';
|
|
90
|
-
export * from './CouponType';
|
|
91
84
|
export * from './CreateAssetFileRequest';
|
|
92
85
|
export * from './CreateAssetForAssetableRequest';
|
|
93
86
|
export * from './CreateAttributeRequest';
|
|
@@ -98,8 +91,6 @@ export * from './CreateBlogCategoryRequestSeoInner';
|
|
|
98
91
|
export * from './CreateCartRequest';
|
|
99
92
|
export * from './CreateCartRequestItemsInner';
|
|
100
93
|
export * from './CreateCartRequestShippingAddress';
|
|
101
|
-
export * from './CreateCouponRequest';
|
|
102
|
-
export * from './CreateCouponRequestCouponablesInner';
|
|
103
94
|
export * from './CreateCustomerRequest';
|
|
104
95
|
export * from './CreateDefinitionRequest';
|
|
105
96
|
export * from './CreateDocumentFileRequest';
|
|
@@ -291,8 +282,6 @@ export * from './PaginatedBlogCategoryResourceResponse';
|
|
|
291
282
|
export * from './PaginatedBlogFrontendResourceResponse';
|
|
292
283
|
export * from './PaginatedCartListResourceResponse';
|
|
293
284
|
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
294
|
-
export * from './PaginatedCouponListResourceResponse';
|
|
295
|
-
export * from './PaginatedCouponResourceResponse';
|
|
296
285
|
export * from './PaginatedCustomerListResourceResponse';
|
|
297
286
|
export * from './PaginatedCustomerReviewableItemFrontendResourceResponse';
|
|
298
287
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
@@ -496,7 +485,6 @@ export * from './SearchAdminNotesRequest';
|
|
|
496
485
|
export * from './SearchAllAttributeValuesRequest';
|
|
497
486
|
export * from './SearchAllAttributesRequest';
|
|
498
487
|
export * from './SearchAllBlogCategoriesRequest';
|
|
499
|
-
export * from './SearchAllCouponsRequest';
|
|
500
488
|
export * from './SearchAllDefinitionsRequest';
|
|
501
489
|
export * from './SearchAllDocumentsRequest';
|
|
502
490
|
export * from './SearchAllFrontendComponentsRequest';
|
|
@@ -519,7 +507,6 @@ export * from './SearchAttributeValuesRequest';
|
|
|
519
507
|
export * from './SearchAttributesRequest';
|
|
520
508
|
export * from './SearchBlogCategoriesRequest';
|
|
521
509
|
export * from './SearchCartsRequest';
|
|
522
|
-
export * from './SearchCouponsRequest';
|
|
523
510
|
export * from './SearchCustomersRequest';
|
|
524
511
|
export * from './SearchDefinitionsRequest';
|
|
525
512
|
export * from './SearchDocumentsRequest';
|
|
@@ -583,6 +570,8 @@ export * from './StoreSpecialDateResourceArrayResponse';
|
|
|
583
570
|
export * from './StoreStockType';
|
|
584
571
|
export * from './StoreTransactionResource';
|
|
585
572
|
export * from './StoreTransactionResourceArrayResponse';
|
|
573
|
+
export * from './SuburbValidationResource';
|
|
574
|
+
export * from './SuburbValidationResourceArrayResponse';
|
|
586
575
|
export * from './SupplierFrontendResource';
|
|
587
576
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
588
577
|
export * from './SupplierListResource';
|
|
@@ -617,7 +606,6 @@ export * from './UpdateAttributeRequest';
|
|
|
617
606
|
export * from './UpdateAttributeValueRequest';
|
|
618
607
|
export * from './UpdateBlogCategoryRequest';
|
|
619
608
|
export * from './UpdateCartRequest';
|
|
620
|
-
export * from './UpdateCouponRequest';
|
|
621
609
|
export * from './UpdateDefinitionRequest';
|
|
622
610
|
export * from './UpdateDocumentRequest';
|
|
623
611
|
export * from './UpdateLabelRequest';
|
|
@@ -647,6 +635,7 @@ export * from './UpdateStoreRequest';
|
|
|
647
635
|
export * from './UpdateStoreRequestSpecialDatesInner';
|
|
648
636
|
export * from './UpdateSupplierRequest';
|
|
649
637
|
export * from './UpdateTagRequest';
|
|
638
|
+
export * from './ValidateSuburbRequest';
|
|
650
639
|
export * from './WishlistCheckResource';
|
|
651
640
|
export * from './WishlistCheckResourceArrayResponse';
|
|
652
641
|
export * from './WishlistToggleResource';
|
|
@@ -1,85 +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 * as runtime from '../runtime';
|
|
13
|
-
import type { CouponLiteResourceArrayResponse, CouponResource, CreateCouponRequest, GenericResponse, PaginatedCouponListResourceResponse, SearchAllCouponsRequest, SearchCouponsRequest, UpdateCouponRequest } from '../models/index';
|
|
14
|
-
export interface DestroyCouponRequest {
|
|
15
|
-
coupon: number;
|
|
16
|
-
}
|
|
17
|
-
export interface GetAllCouponRequest {
|
|
18
|
-
searchAllCouponsRequest?: SearchAllCouponsRequest;
|
|
19
|
-
}
|
|
20
|
-
export interface IndexCouponRequest {
|
|
21
|
-
searchCouponsRequest?: SearchCouponsRequest;
|
|
22
|
-
}
|
|
23
|
-
export interface ShowCouponRequest {
|
|
24
|
-
coupon: number;
|
|
25
|
-
}
|
|
26
|
-
export interface StoreCouponRequest {
|
|
27
|
-
createCouponRequest?: CreateCouponRequest;
|
|
28
|
-
}
|
|
29
|
-
export interface UpdateCouponOperationRequest {
|
|
30
|
-
coupon: number;
|
|
31
|
-
updateCouponRequest?: UpdateCouponRequest;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
export declare class CouponsApi extends runtime.BaseAPI {
|
|
37
|
-
/**
|
|
38
|
-
* Auto-generated: destroyCoupon
|
|
39
|
-
*/
|
|
40
|
-
destroyCouponRaw(requestParameters: DestroyCouponRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
41
|
-
/**
|
|
42
|
-
* Auto-generated: destroyCoupon
|
|
43
|
-
*/
|
|
44
|
-
destroyCoupon(requestParameters: DestroyCouponRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Auto-generated: getAllCoupon
|
|
47
|
-
*/
|
|
48
|
-
getAllCouponRaw(requestParameters: GetAllCouponRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CouponLiteResourceArrayResponse>>;
|
|
49
|
-
/**
|
|
50
|
-
* Auto-generated: getAllCoupon
|
|
51
|
-
*/
|
|
52
|
-
getAllCoupon(requestParameters?: GetAllCouponRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CouponLiteResourceArrayResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* Auto-generated: indexCoupon
|
|
55
|
-
*/
|
|
56
|
-
indexCouponRaw(requestParameters: IndexCouponRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedCouponListResourceResponse>>;
|
|
57
|
-
/**
|
|
58
|
-
* Auto-generated: indexCoupon
|
|
59
|
-
*/
|
|
60
|
-
indexCoupon(requestParameters?: IndexCouponRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedCouponListResourceResponse>;
|
|
61
|
-
/**
|
|
62
|
-
* Auto-generated: showCoupon
|
|
63
|
-
*/
|
|
64
|
-
showCouponRaw(requestParameters: ShowCouponRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CouponResource>>;
|
|
65
|
-
/**
|
|
66
|
-
* Auto-generated: showCoupon
|
|
67
|
-
*/
|
|
68
|
-
showCoupon(requestParameters: ShowCouponRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CouponResource>;
|
|
69
|
-
/**
|
|
70
|
-
* Auto-generated: storeCoupon
|
|
71
|
-
*/
|
|
72
|
-
storeCouponRaw(requestParameters: StoreCouponRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CouponResource>>;
|
|
73
|
-
/**
|
|
74
|
-
* Auto-generated: storeCoupon
|
|
75
|
-
*/
|
|
76
|
-
storeCoupon(requestParameters?: StoreCouponRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CouponResource>;
|
|
77
|
-
/**
|
|
78
|
-
* Auto-generated: updateCoupon
|
|
79
|
-
*/
|
|
80
|
-
updateCouponRaw(requestParameters: UpdateCouponOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CouponResource>>;
|
|
81
|
-
/**
|
|
82
|
-
* Auto-generated: updateCoupon
|
|
83
|
-
*/
|
|
84
|
-
updateCoupon(requestParameters: UpdateCouponOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CouponResource>;
|
|
85
|
-
}
|