@digital8/lighting-illusions-ts-sdk 0.0.2499 → 0.0.2501
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 +15 -4
- package/README.md +2 -2
- package/dist/apis/CouponsApi.d.ts +85 -0
- package/dist/apis/CouponsApi.js +355 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AppliedCouponResource.d.ts +30 -0
- package/dist/models/AppliedCouponResource.js +20 -0
- package/dist/models/CouponListResource.d.ts +99 -0
- package/dist/models/CouponListResource.js +91 -0
- package/dist/models/CouponListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponListResourceArrayResponse.js +50 -0
- package/dist/models/CouponLiteResource.d.ts +44 -0
- package/dist/models/CouponLiteResource.js +57 -0
- package/dist/models/CouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/CouponResource.d.ts +163 -0
- package/dist/models/CouponResource.js +135 -0
- package/dist/models/CouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/CouponResourceArrayResponse.js +50 -0
- package/dist/models/CouponType.d.ts +26 -0
- package/dist/models/CouponType.js +52 -0
- package/dist/models/CreateCouponRequest.d.ts +126 -0
- package/dist/models/CreateCouponRequest.js +107 -0
- package/dist/models/CreateCouponRequestCouponablesInner.d.ts +48 -0
- package/dist/models/CreateCouponRequestCouponablesInner.js +61 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/FrontendCartResource.d.ts +6 -0
- package/dist/models/FrontendCartResource.js +2 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/PaginatedCouponListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponListResourceResponse.js +57 -0
- package/dist/models/PaginatedCouponResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCouponResourceResponse.js +57 -0
- package/dist/models/ProductCategoryLiteResource.d.ts +6 -0
- package/dist/models/ProductCategoryLiteResource.js +4 -0
- package/dist/models/ProductChildListResource.d.ts +6 -0
- package/dist/models/ProductChildListResource.js +4 -0
- package/dist/models/SearchAllCouponsRequest.d.ts +101 -0
- package/dist/models/SearchAllCouponsRequest.js +85 -0
- package/dist/models/SearchCartsRequest.d.ts +6 -0
- package/dist/models/SearchCartsRequest.js +2 -0
- package/dist/models/SearchCouponsRequest.d.ts +137 -0
- package/dist/models/SearchCouponsRequest.js +97 -0
- package/dist/models/SearchOrdersRequest.d.ts +6 -0
- package/dist/models/SearchOrdersRequest.js +2 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/UpdateCouponRequest.d.ts +120 -0
- package/dist/models/UpdateCouponRequest.js +103 -0
- package/dist/models/index.d.ts +14 -3
- package/dist/models/index.js +14 -3
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +286 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AppliedCouponResource.ts +45 -0
- package/src/models/CouponListResource.ts +170 -0
- package/src/models/CouponListResourceArrayResponse.ts +73 -0
- package/src/models/CouponLiteResource.ts +83 -0
- package/src/models/CouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CouponResource.ts +288 -0
- package/src/models/CouponResourceArrayResponse.ts +73 -0
- package/src/models/CouponType.ts +54 -0
- package/src/models/CreateCouponRequest.ts +207 -0
- package/src/models/CreateCouponRequestCouponablesInner.ts +86 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/FrontendCartResource.ts +8 -0
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/PaginatedCouponListResourceResponse.ts +90 -0
- package/src/models/PaginatedCouponResourceResponse.ts +90 -0
- package/src/models/ProductCategoryLiteResource.ts +9 -0
- package/src/models/ProductChildListResource.ts +9 -0
- package/src/models/SearchAllCouponsRequest.ts +154 -0
- package/src/models/SearchCartsRequest.ts +8 -0
- package/src/models/SearchCouponsRequest.ts +202 -0
- package/src/models/SearchOrdersRequest.ts +8 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +6 -4
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/UpdateCouponRequest.ts +198 -0
- package/src/models/index.ts +14 -3
- package/dist/apis/AuspostApi.d.ts +0 -29
- package/dist/apis/AuspostApi.js +0 -125
- package/dist/models/SuburbValidationResource.d.ts +0 -32
- package/dist/models/SuburbValidationResource.js +0 -51
- package/dist/models/SuburbValidationResourceArrayResponse.d.ts +0 -33
- package/dist/models/SuburbValidationResourceArrayResponse.js +0 -50
- package/dist/models/ValidateSuburbRequest.d.ts +0 -50
- package/dist/models/ValidateSuburbRequest.js +0 -63
- package/src/apis/AuspostApi.ts +0 -69
- package/src/models/SuburbValidationResource.ts +0 -66
- package/src/models/SuburbValidationResourceArrayResponse.ts +0 -73
- package/src/models/ValidateSuburbRequest.ts +0 -93
|
@@ -0,0 +1,198 @@
|
|
|
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 { CreateCouponRequestCouponablesInner } from './CreateCouponRequestCouponablesInner';
|
|
17
|
+
import {
|
|
18
|
+
CreateCouponRequestCouponablesInnerFromJSON,
|
|
19
|
+
CreateCouponRequestCouponablesInnerFromJSONTyped,
|
|
20
|
+
CreateCouponRequestCouponablesInnerToJSON,
|
|
21
|
+
CreateCouponRequestCouponablesInnerToJSONTyped,
|
|
22
|
+
} from './CreateCouponRequestCouponablesInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateCouponRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateCouponRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateCouponRequest
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateCouponRequest
|
|
40
|
+
*/
|
|
41
|
+
code: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateCouponRequest
|
|
46
|
+
*/
|
|
47
|
+
type: UpdateCouponRequestTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UpdateCouponRequest
|
|
52
|
+
*/
|
|
53
|
+
discountType: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof UpdateCouponRequest
|
|
58
|
+
*/
|
|
59
|
+
discountAmount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof UpdateCouponRequest
|
|
64
|
+
*/
|
|
65
|
+
minAmount: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof UpdateCouponRequest
|
|
70
|
+
*/
|
|
71
|
+
minProducts: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof UpdateCouponRequest
|
|
76
|
+
*/
|
|
77
|
+
totalUseLimit: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof UpdateCouponRequest
|
|
82
|
+
*/
|
|
83
|
+
customerUseLimit: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof UpdateCouponRequest
|
|
88
|
+
*/
|
|
89
|
+
startDate?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof UpdateCouponRequest
|
|
94
|
+
*/
|
|
95
|
+
endDate?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof UpdateCouponRequest
|
|
100
|
+
*/
|
|
101
|
+
isForAllProducts?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof UpdateCouponRequest
|
|
106
|
+
*/
|
|
107
|
+
isForAllCustomers?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {Array<CreateCouponRequestCouponablesInner>}
|
|
111
|
+
* @memberof UpdateCouponRequest
|
|
112
|
+
*/
|
|
113
|
+
couponables?: Array<CreateCouponRequestCouponablesInner>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
120
|
+
export const UpdateCouponRequestTypeEnum = {
|
|
121
|
+
Subtotal: 'subtotal',
|
|
122
|
+
Product: 'product',
|
|
123
|
+
Shipping: 'shipping'
|
|
124
|
+
} as const;
|
|
125
|
+
export type UpdateCouponRequestTypeEnum = typeof UpdateCouponRequestTypeEnum[keyof typeof UpdateCouponRequestTypeEnum];
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Check if a given object implements the UpdateCouponRequest interface.
|
|
130
|
+
*/
|
|
131
|
+
export function instanceOfUpdateCouponRequest(value: object): value is UpdateCouponRequest {
|
|
132
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
133
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
134
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
135
|
+
if (!('discountType' in value) || value['discountType'] === undefined) return false;
|
|
136
|
+
if (!('discountAmount' in value) || value['discountAmount'] === undefined) return false;
|
|
137
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined) return false;
|
|
138
|
+
if (!('minProducts' in value) || value['minProducts'] === undefined) return false;
|
|
139
|
+
if (!('totalUseLimit' in value) || value['totalUseLimit'] === undefined) return false;
|
|
140
|
+
if (!('customerUseLimit' in value) || value['customerUseLimit'] === undefined) return false;
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function UpdateCouponRequestFromJSON(json: any): UpdateCouponRequest {
|
|
145
|
+
return UpdateCouponRequestFromJSONTyped(json, false);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function UpdateCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCouponRequest {
|
|
149
|
+
if (json == null) {
|
|
150
|
+
return json;
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'name': json['name'],
|
|
155
|
+
'code': json['code'],
|
|
156
|
+
'type': json['type'],
|
|
157
|
+
'discountType': json['discount_type'],
|
|
158
|
+
'discountAmount': json['discount_amount'],
|
|
159
|
+
'minAmount': json['min_amount'],
|
|
160
|
+
'minProducts': json['min_products'],
|
|
161
|
+
'totalUseLimit': json['total_use_limit'],
|
|
162
|
+
'customerUseLimit': json['customer_use_limit'],
|
|
163
|
+
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
164
|
+
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
165
|
+
'isForAllProducts': json['is_for_all_products'] == null ? undefined : json['is_for_all_products'],
|
|
166
|
+
'isForAllCustomers': json['is_for_all_customers'] == null ? undefined : json['is_for_all_customers'],
|
|
167
|
+
'couponables': json['couponables'] == null ? undefined : ((json['couponables'] as Array<any>).map(CreateCouponRequestCouponablesInnerFromJSON)),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function UpdateCouponRequestToJSON(json: any): UpdateCouponRequest {
|
|
172
|
+
return UpdateCouponRequestToJSONTyped(json, false);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export function UpdateCouponRequestToJSONTyped(value?: UpdateCouponRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
176
|
+
if (value == null) {
|
|
177
|
+
return value;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return {
|
|
181
|
+
|
|
182
|
+
'name': value['name'],
|
|
183
|
+
'code': value['code'],
|
|
184
|
+
'type': value['type'],
|
|
185
|
+
'discount_type': value['discountType'],
|
|
186
|
+
'discount_amount': value['discountAmount'],
|
|
187
|
+
'min_amount': value['minAmount'],
|
|
188
|
+
'min_products': value['minProducts'],
|
|
189
|
+
'total_use_limit': value['totalUseLimit'],
|
|
190
|
+
'customer_use_limit': value['customerUseLimit'],
|
|
191
|
+
'start_date': value['startDate'],
|
|
192
|
+
'end_date': value['endDate'],
|
|
193
|
+
'is_for_all_products': value['isForAllProducts'],
|
|
194
|
+
'is_for_all_customers': value['isForAllCustomers'],
|
|
195
|
+
'couponables': value['couponables'] == null ? undefined : ((value['couponables'] as Array<any>).map(CreateCouponRequestCouponablesInnerToJSON)),
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -81,6 +81,13 @@ 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';
|
|
84
91
|
export * from './CreateAssetFileRequest';
|
|
85
92
|
export * from './CreateAssetForAssetableRequest';
|
|
86
93
|
export * from './CreateAttributeRequest';
|
|
@@ -91,6 +98,8 @@ export * from './CreateBlogCategoryRequestSeoInner';
|
|
|
91
98
|
export * from './CreateCartRequest';
|
|
92
99
|
export * from './CreateCartRequestItemsInner';
|
|
93
100
|
export * from './CreateCartRequestShippingAddress';
|
|
101
|
+
export * from './CreateCouponRequest';
|
|
102
|
+
export * from './CreateCouponRequestCouponablesInner';
|
|
94
103
|
export * from './CreateCustomerRequest';
|
|
95
104
|
export * from './CreateDefinitionRequest';
|
|
96
105
|
export * from './CreateDocumentFileRequest';
|
|
@@ -282,6 +291,8 @@ export * from './PaginatedBlogCategoryResourceResponse';
|
|
|
282
291
|
export * from './PaginatedBlogFrontendResourceResponse';
|
|
283
292
|
export * from './PaginatedCartListResourceResponse';
|
|
284
293
|
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
294
|
+
export * from './PaginatedCouponListResourceResponse';
|
|
295
|
+
export * from './PaginatedCouponResourceResponse';
|
|
285
296
|
export * from './PaginatedCustomerListResourceResponse';
|
|
286
297
|
export * from './PaginatedCustomerReviewableItemFrontendResourceResponse';
|
|
287
298
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
@@ -485,6 +496,7 @@ export * from './SearchAdminNotesRequest';
|
|
|
485
496
|
export * from './SearchAllAttributeValuesRequest';
|
|
486
497
|
export * from './SearchAllAttributesRequest';
|
|
487
498
|
export * from './SearchAllBlogCategoriesRequest';
|
|
499
|
+
export * from './SearchAllCouponsRequest';
|
|
488
500
|
export * from './SearchAllDefinitionsRequest';
|
|
489
501
|
export * from './SearchAllDocumentsRequest';
|
|
490
502
|
export * from './SearchAllFrontendComponentsRequest';
|
|
@@ -507,6 +519,7 @@ export * from './SearchAttributeValuesRequest';
|
|
|
507
519
|
export * from './SearchAttributesRequest';
|
|
508
520
|
export * from './SearchBlogCategoriesRequest';
|
|
509
521
|
export * from './SearchCartsRequest';
|
|
522
|
+
export * from './SearchCouponsRequest';
|
|
510
523
|
export * from './SearchCustomersRequest';
|
|
511
524
|
export * from './SearchDefinitionsRequest';
|
|
512
525
|
export * from './SearchDocumentsRequest';
|
|
@@ -570,8 +583,6 @@ export * from './StoreSpecialDateResourceArrayResponse';
|
|
|
570
583
|
export * from './StoreStockType';
|
|
571
584
|
export * from './StoreTransactionResource';
|
|
572
585
|
export * from './StoreTransactionResourceArrayResponse';
|
|
573
|
-
export * from './SuburbValidationResource';
|
|
574
|
-
export * from './SuburbValidationResourceArrayResponse';
|
|
575
586
|
export * from './SupplierFrontendResource';
|
|
576
587
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
577
588
|
export * from './SupplierListResource';
|
|
@@ -606,6 +617,7 @@ export * from './UpdateAttributeRequest';
|
|
|
606
617
|
export * from './UpdateAttributeValueRequest';
|
|
607
618
|
export * from './UpdateBlogCategoryRequest';
|
|
608
619
|
export * from './UpdateCartRequest';
|
|
620
|
+
export * from './UpdateCouponRequest';
|
|
609
621
|
export * from './UpdateDefinitionRequest';
|
|
610
622
|
export * from './UpdateDocumentRequest';
|
|
611
623
|
export * from './UpdateLabelRequest';
|
|
@@ -635,7 +647,6 @@ export * from './UpdateStoreRequest';
|
|
|
635
647
|
export * from './UpdateStoreRequestSpecialDatesInner';
|
|
636
648
|
export * from './UpdateSupplierRequest';
|
|
637
649
|
export * from './UpdateTagRequest';
|
|
638
|
-
export * from './ValidateSuburbRequest';
|
|
639
650
|
export * from './WishlistCheckResource';
|
|
640
651
|
export * from './WishlistCheckResourceArrayResponse';
|
|
641
652
|
export * from './WishlistToggleResource';
|
|
@@ -1,29 +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 { SuburbValidationResource, ValidateSuburbRequest } from '../models/index';
|
|
14
|
-
export interface ValidateSuburbValidationRequest {
|
|
15
|
-
validateSuburbRequest?: ValidateSuburbRequest;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export declare class AuspostApi extends runtime.BaseAPI {
|
|
21
|
-
/**
|
|
22
|
-
* Auto-generated: validateSuburbValidation
|
|
23
|
-
*/
|
|
24
|
-
validateSuburbValidationRaw(requestParameters: ValidateSuburbValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuburbValidationResource>>;
|
|
25
|
-
/**
|
|
26
|
-
* Auto-generated: validateSuburbValidation
|
|
27
|
-
*/
|
|
28
|
-
validateSuburbValidation(requestParameters?: ValidateSuburbValidationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuburbValidationResource>;
|
|
29
|
-
}
|
package/dist/apis/AuspostApi.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
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
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.AuspostApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var AuspostApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(AuspostApi, _super);
|
|
75
|
-
function AuspostApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Auto-generated: validateSuburbValidation
|
|
80
|
-
*/
|
|
81
|
-
AuspostApi.prototype.validateSuburbValidationRaw = function (requestParameters, initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
queryParameters = {};
|
|
88
|
-
headerParameters = {};
|
|
89
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
-
urlPath = "/admin-api/auspost/validate-suburb";
|
|
91
|
-
return [4 /*yield*/, this.request({
|
|
92
|
-
path: urlPath,
|
|
93
|
-
method: 'POST',
|
|
94
|
-
headers: headerParameters,
|
|
95
|
-
query: queryParameters,
|
|
96
|
-
body: (0, index_1.ValidateSuburbRequestToJSON)(requestParameters['validateSuburbRequest']),
|
|
97
|
-
}, initOverrides)];
|
|
98
|
-
case 1:
|
|
99
|
-
response = _a.sent();
|
|
100
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SuburbValidationResourceFromJSON)(jsonValue); })];
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Auto-generated: validateSuburbValidation
|
|
107
|
-
*/
|
|
108
|
-
AuspostApi.prototype.validateSuburbValidation = function () {
|
|
109
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
110
|
-
var response;
|
|
111
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
112
|
-
return __generator(this, function (_a) {
|
|
113
|
-
switch (_a.label) {
|
|
114
|
-
case 0: return [4 /*yield*/, this.validateSuburbValidationRaw(requestParameters, initOverrides)];
|
|
115
|
-
case 1:
|
|
116
|
-
response = _a.sent();
|
|
117
|
-
return [4 /*yield*/, response.value()];
|
|
118
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
return AuspostApi;
|
|
124
|
-
}(runtime.BaseAPI));
|
|
125
|
-
exports.AuspostApi = AuspostApi;
|
|
@@ -1,32 +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
|
-
/**
|
|
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;
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,33 +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 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;
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,50 +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
|
-
/**
|
|
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;
|