@digital8/lighting-illusions-ts-sdk 0.0.2525 → 0.0.2527
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 +12 -15
- 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 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AdminOrderResource.d.ts +6 -0
- package/dist/models/AdminOrderResource.js +4 -0
- package/dist/models/AppliedCouponResource.d.ts +0 -30
- package/dist/models/AppliedCouponResource.js +0 -20
- 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 +0 -6
- package/dist/models/FrontendCartResource.js +0 -4
- 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/FrontendOrderResource.d.ts +13 -0
- package/dist/models/FrontendOrderResource.js +9 -0
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +2 -6
- 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/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/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreLocationResource.d.ts +38 -0
- package/dist/models/StoreLocationResource.js +55 -0
- package/dist/models/StoreLocationResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreLocationResourceArrayResponse.js +50 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- 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 +11 -14
- package/dist/models/index.js +11 -14
- 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 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/AppliedCouponResource.ts +0 -45
- 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 +0 -9
- 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/FrontendOrderResource.ts +25 -0
- package/src/models/OrderFulfillmentResource.ts +4 -6
- package/src/models/PaginatedFrontendOrderListResourceResponse.ts +90 -0
- package/src/models/PaymentTotalsResource.ts +9 -0
- 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/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreLocationResource.ts +75 -0
- package/src/models/StoreLocationResourceArrayResponse.ts +73 -0
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- 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 +11 -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
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
|
|
@@ -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 { 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
|
+
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -149,7 +149,6 @@ 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;
|
|
153
152
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
154
153
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
155
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -176,7 +175,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
176
175
|
'phone': json['phone'],
|
|
177
176
|
'longitude': json['longitude'],
|
|
178
177
|
'latitude': json['latitude'],
|
|
179
|
-
'tagLine': json['tagLine'],
|
|
178
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
180
179
|
'email': json['email'],
|
|
181
180
|
'website': json['website'],
|
|
182
181
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
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;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -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';
|
|
@@ -138,6 +129,7 @@ export * from './CustomerListResource';
|
|
|
138
129
|
export * from './CustomerListResourceArrayResponse';
|
|
139
130
|
export * from './CustomerLiteResource';
|
|
140
131
|
export * from './CustomerLiteResourceArrayResponse';
|
|
132
|
+
export * from './CustomerOrderTab';
|
|
141
133
|
export * from './CustomerResource';
|
|
142
134
|
export * from './CustomerResourceArrayResponse';
|
|
143
135
|
export * from './CustomerReviewableItemFrontendResource';
|
|
@@ -186,6 +178,10 @@ export * from './FrontendComponentResource';
|
|
|
186
178
|
export * from './FrontendComponentResourceArrayResponse';
|
|
187
179
|
export * from './FrontendLineItemResource';
|
|
188
180
|
export * from './FrontendLineItemResourceArrayResponse';
|
|
181
|
+
export * from './FrontendOrderFulfillmentResource';
|
|
182
|
+
export * from './FrontendOrderFulfillmentResourceArrayResponse';
|
|
183
|
+
export * from './FrontendOrderListResource';
|
|
184
|
+
export * from './FrontendOrderListResourceArrayResponse';
|
|
189
185
|
export * from './FrontendOrderResource';
|
|
190
186
|
export * from './FrontendOrderResourceArrayResponse';
|
|
191
187
|
export * from './GenericResponse';
|
|
@@ -291,8 +287,6 @@ export * from './PaginatedBlogCategoryResourceResponse';
|
|
|
291
287
|
export * from './PaginatedBlogFrontendResourceResponse';
|
|
292
288
|
export * from './PaginatedCartListResourceResponse';
|
|
293
289
|
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
294
|
-
export * from './PaginatedCouponListResourceResponse';
|
|
295
|
-
export * from './PaginatedCouponResourceResponse';
|
|
296
290
|
export * from './PaginatedCustomerListResourceResponse';
|
|
297
291
|
export * from './PaginatedCustomerReviewableItemFrontendResourceResponse';
|
|
298
292
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
@@ -302,6 +296,7 @@ export * from './PaginatedExternalApiLogListResourceResponse';
|
|
|
302
296
|
export * from './PaginatedExternalApiLogResourceResponse';
|
|
303
297
|
export * from './PaginatedFrontendComponentLiteResourceResponse';
|
|
304
298
|
export * from './PaginatedFrontendComponentResourceResponse';
|
|
299
|
+
export * from './PaginatedFrontendOrderListResourceResponse';
|
|
305
300
|
export * from './PaginatedGoogleCategoryResourceResponse';
|
|
306
301
|
export * from './PaginatedLabelListResourceResponse';
|
|
307
302
|
export * from './PaginatedMenuListResourceResponse';
|
|
@@ -496,7 +491,6 @@ export * from './SearchAdminNotesRequest';
|
|
|
496
491
|
export * from './SearchAllAttributeValuesRequest';
|
|
497
492
|
export * from './SearchAllAttributesRequest';
|
|
498
493
|
export * from './SearchAllBlogCategoriesRequest';
|
|
499
|
-
export * from './SearchAllCouponsRequest';
|
|
500
494
|
export * from './SearchAllDefinitionsRequest';
|
|
501
495
|
export * from './SearchAllDocumentsRequest';
|
|
502
496
|
export * from './SearchAllFrontendComponentsRequest';
|
|
@@ -519,7 +513,6 @@ export * from './SearchAttributeValuesRequest';
|
|
|
519
513
|
export * from './SearchAttributesRequest';
|
|
520
514
|
export * from './SearchBlogCategoriesRequest';
|
|
521
515
|
export * from './SearchCartsRequest';
|
|
522
|
-
export * from './SearchCouponsRequest';
|
|
523
516
|
export * from './SearchCustomersRequest';
|
|
524
517
|
export * from './SearchDefinitionsRequest';
|
|
525
518
|
export * from './SearchDocumentsRequest';
|
|
@@ -573,6 +566,8 @@ export * from './StoreListResource';
|
|
|
573
566
|
export * from './StoreListResourceArrayResponse';
|
|
574
567
|
export * from './StoreLiteResource';
|
|
575
568
|
export * from './StoreLiteResourceArrayResponse';
|
|
569
|
+
export * from './StoreLocationResource';
|
|
570
|
+
export * from './StoreLocationResourceArrayResponse';
|
|
576
571
|
export * from './StoreResource';
|
|
577
572
|
export * from './StoreResourceArrayResponse';
|
|
578
573
|
export * from './StoreSpecialDateFrontendResource';
|
|
@@ -583,6 +578,8 @@ export * from './StoreSpecialDateResourceArrayResponse';
|
|
|
583
578
|
export * from './StoreStockType';
|
|
584
579
|
export * from './StoreTransactionResource';
|
|
585
580
|
export * from './StoreTransactionResourceArrayResponse';
|
|
581
|
+
export * from './SuburbValidationResource';
|
|
582
|
+
export * from './SuburbValidationResourceArrayResponse';
|
|
586
583
|
export * from './SupplierFrontendResource';
|
|
587
584
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
588
585
|
export * from './SupplierListResource';
|
|
@@ -617,7 +614,6 @@ export * from './UpdateAttributeRequest';
|
|
|
617
614
|
export * from './UpdateAttributeValueRequest';
|
|
618
615
|
export * from './UpdateBlogCategoryRequest';
|
|
619
616
|
export * from './UpdateCartRequest';
|
|
620
|
-
export * from './UpdateCouponRequest';
|
|
621
617
|
export * from './UpdateDefinitionRequest';
|
|
622
618
|
export * from './UpdateDocumentRequest';
|
|
623
619
|
export * from './UpdateLabelRequest';
|
|
@@ -647,6 +643,7 @@ export * from './UpdateStoreRequest';
|
|
|
647
643
|
export * from './UpdateStoreRequestSpecialDatesInner';
|
|
648
644
|
export * from './UpdateSupplierRequest';
|
|
649
645
|
export * from './UpdateTagRequest';
|
|
646
|
+
export * from './ValidateSuburbRequest';
|
|
650
647
|
export * from './WishlistCheckResource';
|
|
651
648
|
export * from './WishlistCheckResourceArrayResponse';
|
|
652
649
|
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
|
-
}
|