@digital8/lighting-illusions-ts-sdk 0.0.2443 → 0.0.2445
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 +2 -2
- package/dist/models/AddressResource.js +3 -3
- 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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/FrontendCartResource.d.ts +0 -6
- package/dist/models/FrontendCartResource.js +0 -4
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +3 -3
- 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 +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.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 +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 +5 -5
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/AppliedCouponResource.ts +0 -45
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/FrontendCartResource.ts +0 -9
- package/src/models/OrderFulfillmentResource.ts +5 -5
- 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 +3 -2
- package/src/models/StoreResource.ts +3 -2
- 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
|
@@ -117,12 +117,6 @@ export interface SearchCartsRequest {
|
|
|
117
117
|
* @memberof SearchCartsRequest
|
|
118
118
|
*/
|
|
119
119
|
includesRelations?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {number}
|
|
123
|
-
* @memberof SearchCartsRequest
|
|
124
|
-
*/
|
|
125
|
-
couponId?: number | null;
|
|
126
120
|
}
|
|
127
121
|
/**
|
|
128
122
|
* @export
|
|
@@ -66,7 +66,6 @@ function SearchCartsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
66
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
67
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
68
68
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
69
|
-
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
70
69
|
};
|
|
71
70
|
}
|
|
72
71
|
function SearchCartsRequestToJSON(json) {
|
|
@@ -95,6 +94,5 @@ function SearchCartsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
95
94
|
'related_id': value['relatedId'],
|
|
96
95
|
'related_type': value['relatedType'],
|
|
97
96
|
'includes_relations': value['includesRelations'],
|
|
98
|
-
'coupon_id': value['couponId'],
|
|
99
97
|
};
|
|
100
98
|
}
|
|
@@ -129,12 +129,6 @@ export interface SearchOrdersRequest {
|
|
|
129
129
|
* @memberof SearchOrdersRequest
|
|
130
130
|
*/
|
|
131
131
|
includesRelations?: boolean;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {number}
|
|
135
|
-
* @memberof SearchOrdersRequest
|
|
136
|
-
*/
|
|
137
|
-
couponId?: number | null;
|
|
138
132
|
}
|
|
139
133
|
/**
|
|
140
134
|
* @export
|
|
@@ -69,7 +69,6 @@ function SearchOrdersRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
69
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
70
70
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
71
71
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
72
|
-
'couponId': json['coupon_id'] == null ? undefined : json['coupon_id'],
|
|
73
72
|
};
|
|
74
73
|
}
|
|
75
74
|
function SearchOrdersRequestToJSON(json) {
|
|
@@ -100,6 +99,5 @@ function SearchOrdersRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
100
99
|
'related_id': value['relatedId'],
|
|
101
100
|
'related_type': value['relatedType'],
|
|
102
101
|
'includes_relations': value['includesRelations'],
|
|
103
|
-
'coupon_id': value['couponId'],
|
|
104
102
|
};
|
|
105
103
|
}
|
|
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -55,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
57
|
'phone': json['phone'],
|
|
56
58
|
'longitude': json['longitude'],
|
|
57
59
|
'latitude': json['latitude'],
|
|
58
|
-
'tagLine': json['tagLine']
|
|
60
|
+
'tagLine': json['tagLine'],
|
|
59
61
|
'email': json['email'],
|
|
60
62
|
'website': json['website'] == null ? undefined : json['website'],
|
|
61
63
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -38,6 +38,8 @@ function instanceOfStoreResource(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
42
44
|
return false;
|
|
43
45
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -66,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
'latitude': json['latitude'],
|
|
67
69
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
68
70
|
'email': json['email'],
|
|
69
|
-
'website': json['website']
|
|
71
|
+
'website': json['website'],
|
|
70
72
|
'netsuiteId': json['netsuiteId'],
|
|
71
73
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
72
74
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SuburbValidationResource
|
|
16
|
+
*/
|
|
17
|
+
export interface SuburbValidationResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof SuburbValidationResource
|
|
22
|
+
*/
|
|
23
|
+
found: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SuburbValidationResource interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSuburbValidationResource(value: object): value is SuburbValidationResource;
|
|
29
|
+
export declare function SuburbValidationResourceFromJSON(json: any): SuburbValidationResource;
|
|
30
|
+
export declare function SuburbValidationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResource;
|
|
31
|
+
export declare function SuburbValidationResourceToJSON(json: any): SuburbValidationResource;
|
|
32
|
+
export declare function SuburbValidationResourceToJSONTyped(value?: SuburbValidationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSuburbValidationResource = instanceOfSuburbValidationResource;
|
|
17
|
+
exports.SuburbValidationResourceFromJSON = SuburbValidationResourceFromJSON;
|
|
18
|
+
exports.SuburbValidationResourceFromJSONTyped = SuburbValidationResourceFromJSONTyped;
|
|
19
|
+
exports.SuburbValidationResourceToJSON = SuburbValidationResourceToJSON;
|
|
20
|
+
exports.SuburbValidationResourceToJSONTyped = SuburbValidationResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SuburbValidationResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSuburbValidationResource(value) {
|
|
25
|
+
if (!('found' in value) || value['found'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SuburbValidationResourceFromJSON(json) {
|
|
30
|
+
return SuburbValidationResourceFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SuburbValidationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'found': json['found'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SuburbValidationResourceToJSON(json) {
|
|
41
|
+
return SuburbValidationResourceToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SuburbValidationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'found': value['found'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SuburbValidationResource } from './SuburbValidationResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SuburbValidationResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SuburbValidationResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SuburbValidationResource>}
|
|
22
|
+
* @memberof SuburbValidationResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<SuburbValidationResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SuburbValidationResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfSuburbValidationResourceArrayResponse(value: object): value is SuburbValidationResourceArrayResponse;
|
|
30
|
+
export declare function SuburbValidationResourceArrayResponseFromJSON(json: any): SuburbValidationResourceArrayResponse;
|
|
31
|
+
export declare function SuburbValidationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResourceArrayResponse;
|
|
32
|
+
export declare function SuburbValidationResourceArrayResponseToJSON(json: any): SuburbValidationResourceArrayResponse;
|
|
33
|
+
export declare function SuburbValidationResourceArrayResponseToJSONTyped(value?: SuburbValidationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSuburbValidationResourceArrayResponse = instanceOfSuburbValidationResourceArrayResponse;
|
|
17
|
+
exports.SuburbValidationResourceArrayResponseFromJSON = SuburbValidationResourceArrayResponseFromJSON;
|
|
18
|
+
exports.SuburbValidationResourceArrayResponseFromJSONTyped = SuburbValidationResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.SuburbValidationResourceArrayResponseToJSON = SuburbValidationResourceArrayResponseToJSON;
|
|
20
|
+
exports.SuburbValidationResourceArrayResponseToJSONTyped = SuburbValidationResourceArrayResponseToJSONTyped;
|
|
21
|
+
var SuburbValidationResource_1 = require("./SuburbValidationResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SuburbValidationResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSuburbValidationResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function SuburbValidationResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return SuburbValidationResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function SuburbValidationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(SuburbValidationResource_1.SuburbValidationResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function SuburbValidationResourceArrayResponseToJSON(json) {
|
|
40
|
+
return SuburbValidationResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SuburbValidationResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(SuburbValidationResource_1.SuburbValidationResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ValidateSuburbRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ValidateSuburbRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ValidateSuburbRequest
|
|
22
|
+
*/
|
|
23
|
+
siteId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ValidateSuburbRequest
|
|
28
|
+
*/
|
|
29
|
+
suburb: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ValidateSuburbRequest
|
|
34
|
+
*/
|
|
35
|
+
state: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ValidateSuburbRequest
|
|
40
|
+
*/
|
|
41
|
+
postcode: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ValidateSuburbRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfValidateSuburbRequest(value: object): value is ValidateSuburbRequest;
|
|
47
|
+
export declare function ValidateSuburbRequestFromJSON(json: any): ValidateSuburbRequest;
|
|
48
|
+
export declare function ValidateSuburbRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateSuburbRequest;
|
|
49
|
+
export declare function ValidateSuburbRequestToJSON(json: any): ValidateSuburbRequest;
|
|
50
|
+
export declare function ValidateSuburbRequestToJSONTyped(value?: ValidateSuburbRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfValidateSuburbRequest = instanceOfValidateSuburbRequest;
|
|
17
|
+
exports.ValidateSuburbRequestFromJSON = ValidateSuburbRequestFromJSON;
|
|
18
|
+
exports.ValidateSuburbRequestFromJSONTyped = ValidateSuburbRequestFromJSONTyped;
|
|
19
|
+
exports.ValidateSuburbRequestToJSON = ValidateSuburbRequestToJSON;
|
|
20
|
+
exports.ValidateSuburbRequestToJSONTyped = ValidateSuburbRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ValidateSuburbRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfValidateSuburbRequest(value) {
|
|
25
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ValidateSuburbRequestFromJSON(json) {
|
|
36
|
+
return ValidateSuburbRequestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ValidateSuburbRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'siteId': json['site_id'],
|
|
44
|
+
'suburb': json['suburb'],
|
|
45
|
+
'state': json['state'],
|
|
46
|
+
'postcode': json['postcode'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ValidateSuburbRequestToJSON(json) {
|
|
50
|
+
return ValidateSuburbRequestToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ValidateSuburbRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'site_id': value['siteId'],
|
|
59
|
+
'suburb': value['suburb'],
|
|
60
|
+
'state': value['state'],
|
|
61
|
+
'postcode': value['postcode'],
|
|
62
|
+
};
|
|
63
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -79,13 +79,6 @@ export * from './CategoryFrontendResourceArrayResponse';
|
|
|
79
79
|
export * from './CategoryWithChildrenFrontendResource';
|
|
80
80
|
export * from './CategoryWithChildrenFrontendResourceArrayResponse';
|
|
81
81
|
export * from './CouponDiscountType';
|
|
82
|
-
export * from './CouponListResource';
|
|
83
|
-
export * from './CouponListResourceArrayResponse';
|
|
84
|
-
export * from './CouponLiteResource';
|
|
85
|
-
export * from './CouponLiteResourceArrayResponse';
|
|
86
|
-
export * from './CouponResource';
|
|
87
|
-
export * from './CouponResourceArrayResponse';
|
|
88
|
-
export * from './CouponType';
|
|
89
82
|
export * from './CreateAssetFileRequest';
|
|
90
83
|
export * from './CreateAssetForAssetableRequest';
|
|
91
84
|
export * from './CreateAttributeRequest';
|
|
@@ -96,8 +89,6 @@ export * from './CreateBlogCategoryRequestSeoInner';
|
|
|
96
89
|
export * from './CreateCartRequest';
|
|
97
90
|
export * from './CreateCartRequestItemsInner';
|
|
98
91
|
export * from './CreateCartRequestShippingAddress';
|
|
99
|
-
export * from './CreateCouponRequest';
|
|
100
|
-
export * from './CreateCouponRequestCouponablesInner';
|
|
101
92
|
export * from './CreateCustomerRequest';
|
|
102
93
|
export * from './CreateDefinitionRequest';
|
|
103
94
|
export * from './CreateDocumentFileRequest';
|
|
@@ -289,8 +280,6 @@ export * from './PaginatedBlogCategoryResourceResponse';
|
|
|
289
280
|
export * from './PaginatedBlogFrontendResourceResponse';
|
|
290
281
|
export * from './PaginatedCartListResourceResponse';
|
|
291
282
|
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
292
|
-
export * from './PaginatedCouponListResourceResponse';
|
|
293
|
-
export * from './PaginatedCouponResourceResponse';
|
|
294
283
|
export * from './PaginatedCustomerListResourceResponse';
|
|
295
284
|
export * from './PaginatedCustomerReviewableItemFrontendResourceResponse';
|
|
296
285
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
@@ -494,7 +483,6 @@ export * from './SearchAdminNotesRequest';
|
|
|
494
483
|
export * from './SearchAllAttributeValuesRequest';
|
|
495
484
|
export * from './SearchAllAttributesRequest';
|
|
496
485
|
export * from './SearchAllBlogCategoriesRequest';
|
|
497
|
-
export * from './SearchAllCouponsRequest';
|
|
498
486
|
export * from './SearchAllDefinitionsRequest';
|
|
499
487
|
export * from './SearchAllDocumentsRequest';
|
|
500
488
|
export * from './SearchAllFrontendComponentsRequest';
|
|
@@ -517,7 +505,6 @@ export * from './SearchAttributeValuesRequest';
|
|
|
517
505
|
export * from './SearchAttributesRequest';
|
|
518
506
|
export * from './SearchBlogCategoriesRequest';
|
|
519
507
|
export * from './SearchCartsRequest';
|
|
520
|
-
export * from './SearchCouponsRequest';
|
|
521
508
|
export * from './SearchCustomersRequest';
|
|
522
509
|
export * from './SearchDefinitionsRequest';
|
|
523
510
|
export * from './SearchDocumentsRequest';
|
|
@@ -581,6 +568,8 @@ export * from './StoreSpecialDateResourceArrayResponse';
|
|
|
581
568
|
export * from './StoreStockType';
|
|
582
569
|
export * from './StoreTransactionResource';
|
|
583
570
|
export * from './StoreTransactionResourceArrayResponse';
|
|
571
|
+
export * from './SuburbValidationResource';
|
|
572
|
+
export * from './SuburbValidationResourceArrayResponse';
|
|
584
573
|
export * from './SupplierFrontendResource';
|
|
585
574
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
586
575
|
export * from './SupplierListResource';
|
|
@@ -615,7 +604,6 @@ export * from './UpdateAttributeRequest';
|
|
|
615
604
|
export * from './UpdateAttributeValueRequest';
|
|
616
605
|
export * from './UpdateBlogCategoryRequest';
|
|
617
606
|
export * from './UpdateCartRequest';
|
|
618
|
-
export * from './UpdateCouponRequest';
|
|
619
607
|
export * from './UpdateDefinitionRequest';
|
|
620
608
|
export * from './UpdateDocumentRequest';
|
|
621
609
|
export * from './UpdateLabelRequest';
|
|
@@ -645,6 +633,7 @@ export * from './UpdateStoreRequest';
|
|
|
645
633
|
export * from './UpdateStoreRequestSpecialDatesInner';
|
|
646
634
|
export * from './UpdateSupplierRequest';
|
|
647
635
|
export * from './UpdateTagRequest';
|
|
636
|
+
export * from './ValidateSuburbRequest';
|
|
648
637
|
export * from './WishlistCheckResource';
|
|
649
638
|
export * from './WishlistCheckResourceArrayResponse';
|
|
650
639
|
export * from './WishlistToggleResource';
|
package/dist/models/index.js
CHANGED
|
@@ -97,13 +97,6 @@ __exportStar(require("./CategoryFrontendResourceArrayResponse"), exports);
|
|
|
97
97
|
__exportStar(require("./CategoryWithChildrenFrontendResource"), exports);
|
|
98
98
|
__exportStar(require("./CategoryWithChildrenFrontendResourceArrayResponse"), exports);
|
|
99
99
|
__exportStar(require("./CouponDiscountType"), exports);
|
|
100
|
-
__exportStar(require("./CouponListResource"), exports);
|
|
101
|
-
__exportStar(require("./CouponListResourceArrayResponse"), exports);
|
|
102
|
-
__exportStar(require("./CouponLiteResource"), exports);
|
|
103
|
-
__exportStar(require("./CouponLiteResourceArrayResponse"), exports);
|
|
104
|
-
__exportStar(require("./CouponResource"), exports);
|
|
105
|
-
__exportStar(require("./CouponResourceArrayResponse"), exports);
|
|
106
|
-
__exportStar(require("./CouponType"), exports);
|
|
107
100
|
__exportStar(require("./CreateAssetFileRequest"), exports);
|
|
108
101
|
__exportStar(require("./CreateAssetForAssetableRequest"), exports);
|
|
109
102
|
__exportStar(require("./CreateAttributeRequest"), exports);
|
|
@@ -114,8 +107,6 @@ __exportStar(require("./CreateBlogCategoryRequestSeoInner"), exports);
|
|
|
114
107
|
__exportStar(require("./CreateCartRequest"), exports);
|
|
115
108
|
__exportStar(require("./CreateCartRequestItemsInner"), exports);
|
|
116
109
|
__exportStar(require("./CreateCartRequestShippingAddress"), exports);
|
|
117
|
-
__exportStar(require("./CreateCouponRequest"), exports);
|
|
118
|
-
__exportStar(require("./CreateCouponRequestCouponablesInner"), exports);
|
|
119
110
|
__exportStar(require("./CreateCustomerRequest"), exports);
|
|
120
111
|
__exportStar(require("./CreateDefinitionRequest"), exports);
|
|
121
112
|
__exportStar(require("./CreateDocumentFileRequest"), exports);
|
|
@@ -307,8 +298,6 @@ __exportStar(require("./PaginatedBlogCategoryResourceResponse"), exports);
|
|
|
307
298
|
__exportStar(require("./PaginatedBlogFrontendResourceResponse"), exports);
|
|
308
299
|
__exportStar(require("./PaginatedCartListResourceResponse"), exports);
|
|
309
300
|
__exportStar(require("./PaginatedCategoryFrontendResourceResponse"), exports);
|
|
310
|
-
__exportStar(require("./PaginatedCouponListResourceResponse"), exports);
|
|
311
|
-
__exportStar(require("./PaginatedCouponResourceResponse"), exports);
|
|
312
301
|
__exportStar(require("./PaginatedCustomerListResourceResponse"), exports);
|
|
313
302
|
__exportStar(require("./PaginatedCustomerReviewableItemFrontendResourceResponse"), exports);
|
|
314
303
|
__exportStar(require("./PaginatedDefinitionListResourceResponse"), exports);
|
|
@@ -512,7 +501,6 @@ __exportStar(require("./SearchAdminNotesRequest"), exports);
|
|
|
512
501
|
__exportStar(require("./SearchAllAttributeValuesRequest"), exports);
|
|
513
502
|
__exportStar(require("./SearchAllAttributesRequest"), exports);
|
|
514
503
|
__exportStar(require("./SearchAllBlogCategoriesRequest"), exports);
|
|
515
|
-
__exportStar(require("./SearchAllCouponsRequest"), exports);
|
|
516
504
|
__exportStar(require("./SearchAllDefinitionsRequest"), exports);
|
|
517
505
|
__exportStar(require("./SearchAllDocumentsRequest"), exports);
|
|
518
506
|
__exportStar(require("./SearchAllFrontendComponentsRequest"), exports);
|
|
@@ -535,7 +523,6 @@ __exportStar(require("./SearchAttributeValuesRequest"), exports);
|
|
|
535
523
|
__exportStar(require("./SearchAttributesRequest"), exports);
|
|
536
524
|
__exportStar(require("./SearchBlogCategoriesRequest"), exports);
|
|
537
525
|
__exportStar(require("./SearchCartsRequest"), exports);
|
|
538
|
-
__exportStar(require("./SearchCouponsRequest"), exports);
|
|
539
526
|
__exportStar(require("./SearchCustomersRequest"), exports);
|
|
540
527
|
__exportStar(require("./SearchDefinitionsRequest"), exports);
|
|
541
528
|
__exportStar(require("./SearchDocumentsRequest"), exports);
|
|
@@ -599,6 +586,8 @@ __exportStar(require("./StoreSpecialDateResourceArrayResponse"), exports);
|
|
|
599
586
|
__exportStar(require("./StoreStockType"), exports);
|
|
600
587
|
__exportStar(require("./StoreTransactionResource"), exports);
|
|
601
588
|
__exportStar(require("./StoreTransactionResourceArrayResponse"), exports);
|
|
589
|
+
__exportStar(require("./SuburbValidationResource"), exports);
|
|
590
|
+
__exportStar(require("./SuburbValidationResourceArrayResponse"), exports);
|
|
602
591
|
__exportStar(require("./SupplierFrontendResource"), exports);
|
|
603
592
|
__exportStar(require("./SupplierFrontendResourceArrayResponse"), exports);
|
|
604
593
|
__exportStar(require("./SupplierListResource"), exports);
|
|
@@ -633,7 +622,6 @@ __exportStar(require("./UpdateAttributeRequest"), exports);
|
|
|
633
622
|
__exportStar(require("./UpdateAttributeValueRequest"), exports);
|
|
634
623
|
__exportStar(require("./UpdateBlogCategoryRequest"), exports);
|
|
635
624
|
__exportStar(require("./UpdateCartRequest"), exports);
|
|
636
|
-
__exportStar(require("./UpdateCouponRequest"), exports);
|
|
637
625
|
__exportStar(require("./UpdateDefinitionRequest"), exports);
|
|
638
626
|
__exportStar(require("./UpdateDocumentRequest"), exports);
|
|
639
627
|
__exportStar(require("./UpdateLabelRequest"), exports);
|
|
@@ -663,6 +651,7 @@ __exportStar(require("./UpdateStoreRequest"), exports);
|
|
|
663
651
|
__exportStar(require("./UpdateStoreRequestSpecialDatesInner"), exports);
|
|
664
652
|
__exportStar(require("./UpdateSupplierRequest"), exports);
|
|
665
653
|
__exportStar(require("./UpdateTagRequest"), exports);
|
|
654
|
+
__exportStar(require("./ValidateSuburbRequest"), exports);
|
|
666
655
|
__exportStar(require("./WishlistCheckResource"), exports);
|
|
667
656
|
__exportStar(require("./WishlistCheckResourceArrayResponse"), exports);
|
|
668
657
|
__exportStar(require("./WishlistToggleResource"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
SuburbValidationResource,
|
|
19
|
+
ValidateSuburbRequest,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
SuburbValidationResourceFromJSON,
|
|
23
|
+
SuburbValidationResourceToJSON,
|
|
24
|
+
ValidateSuburbRequestFromJSON,
|
|
25
|
+
ValidateSuburbRequestToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface ValidateSuburbValidationRequest {
|
|
29
|
+
validateSuburbRequest?: ValidateSuburbRequest;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export class AuspostApi extends runtime.BaseAPI {
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Auto-generated: validateSuburbValidation
|
|
39
|
+
*/
|
|
40
|
+
async validateSuburbValidationRaw(requestParameters: ValidateSuburbValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuburbValidationResource>> {
|
|
41
|
+
const queryParameters: any = {};
|
|
42
|
+
|
|
43
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
44
|
+
|
|
45
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
let urlPath = `/admin-api/auspost/validate-suburb`;
|
|
49
|
+
|
|
50
|
+
const response = await this.request({
|
|
51
|
+
path: urlPath,
|
|
52
|
+
method: 'POST',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
body: ValidateSuburbRequestToJSON(requestParameters['validateSuburbRequest']),
|
|
56
|
+
}, initOverrides);
|
|
57
|
+
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuburbValidationResourceFromJSON(jsonValue));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Auto-generated: validateSuburbValidation
|
|
63
|
+
*/
|
|
64
|
+
async validateSuburbValidation(requestParameters: ValidateSuburbValidationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuburbValidationResource> {
|
|
65
|
+
const response = await this.validateSuburbValidationRaw(requestParameters, initOverrides);
|
|
66
|
+
return await response.value();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
export * from './AdminApi';
|
|
4
4
|
export * from './AssetApi';
|
|
5
5
|
export * from './AttributeApi';
|
|
6
|
+
export * from './AuspostApi';
|
|
6
7
|
export * from './BlogCategoryApi';
|
|
7
8
|
export * from './CartsApi';
|
|
8
|
-
export * from './CouponsApi';
|
|
9
9
|
export * from './CustomersApi';
|
|
10
10
|
export * from './DefinitionApi';
|
|
11
11
|
export * from './DocumentApi';
|
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -75,7 +75,6 @@ export interface AddressFrontendResource {
|
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
76
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
79
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
80
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
81
80
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -96,7 +95,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
96
95
|
|
|
97
96
|
'company': json['company'],
|
|
98
97
|
'line1': json['line1'],
|
|
99
|
-
'line2': json['line2'],
|
|
98
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
100
99
|
'postcode': json['postcode'],
|
|
101
100
|
'suburb': json['suburb'],
|
|
102
101
|
'country': json['country'],
|