@digital8/lighting-illusions-ts-sdk 0.0.2460 → 0.0.2462
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/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 +1 -3
- package/dist/models/FrontendCartResource.d.ts +0 -6
- package/dist/models/FrontendCartResource.js +0 -4
- 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 +2 -2
- package/dist/models/StoreFrontendResource.js +2 -6
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- 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/AppliedCouponResource.ts +0 -45
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +0 -9
- 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 +4 -6
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +3 -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
|
@@ -40,6 +40,8 @@ function instanceOfStoreResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -68,7 +70,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
70
|
'latitude': json['latitude'],
|
|
69
71
|
'tagLine': json['tagLine'],
|
|
70
72
|
'email': json['email'],
|
|
71
|
-
'website': json['website']
|
|
73
|
+
'website': json['website'],
|
|
72
74
|
'netsuiteId': json['netsuiteId'],
|
|
73
75
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
74
76
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -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';
|
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -73,7 +73,6 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
76
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
77
|
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
79
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
@@ -94,7 +93,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
94
93
|
}
|
|
95
94
|
return {
|
|
96
95
|
|
|
97
|
-
'company': json['company'],
|
|
96
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
98
97
|
'line1': json['line1'],
|
|
99
98
|
'line2': json['line2'],
|
|
100
99
|
'postcode': json['postcode'],
|