@digital8/lighting-illusions-ts-sdk 0.0.2496 → 0.0.2498
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 -9
- 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/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/FrontendCartResource.d.ts +6 -0
- package/dist/models/FrontendCartResource.js +2 -0
- package/dist/models/FrontendOrderResource.d.ts +0 -7
- package/dist/models/FrontendOrderResource.js +0 -5
- 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 +2 -6
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/UpdateCouponRequest.d.ts +120 -0
- package/dist/models/UpdateCouponRequest.js +103 -0
- package/dist/models/index.d.ts +14 -8
- package/dist/models/index.js +14 -8
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +286 -0
- package/src/apis/index.ts +1 -1
- 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/FrontendCartResource.ts +8 -0
- package/src/models/FrontendOrderResource.ts +0 -16
- 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 +4 -6
- package/src/models/StoreResource.ts +3 -2
- package/src/models/UpdateCouponRequest.ts +198 -0
- package/src/models/index.ts +14 -8
- package/dist/apis/AuspostApi.d.ts +0 -29
- package/dist/apis/AuspostApi.js +0 -125
- package/dist/models/FrontendOrderFulfillmentResource.d.ts +0 -62
- package/dist/models/FrontendOrderFulfillmentResource.js +0 -71
- package/dist/models/FrontendOrderFulfillmentResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendOrderFulfillmentResourceArrayResponse.js +0 -50
- package/dist/models/FrontendOrderListResource.d.ts +0 -70
- package/dist/models/FrontendOrderListResource.js +0 -77
- package/dist/models/FrontendOrderListResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendOrderListResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedFrontendOrderListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedFrontendOrderListResourceResponse.js +0 -57
- 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/FrontendOrderFulfillmentResource.ts +0 -111
- package/src/models/FrontendOrderFulfillmentResourceArrayResponse.ts +0 -73
- package/src/models/FrontendOrderListResource.ts +0 -135
- package/src/models/FrontendOrderListResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedFrontendOrderListResourceResponse.ts +0 -90
- package/src/models/SuburbValidationResource.ts +0 -66
- package/src/models/SuburbValidationResourceArrayResponse.ts +0 -73
- package/src/models/ValidateSuburbRequest.ts +0 -93
package/src/apis/AuspostApi.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface FrontendOrderFulfillmentResource
|
|
20
|
-
*/
|
|
21
|
-
export interface FrontendOrderFulfillmentResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof FrontendOrderFulfillmentResource
|
|
26
|
-
*/
|
|
27
|
-
id: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {Date}
|
|
31
|
-
* @memberof FrontendOrderFulfillmentResource
|
|
32
|
-
*/
|
|
33
|
-
dateShipped: Date;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof FrontendOrderFulfillmentResource
|
|
38
|
-
*/
|
|
39
|
-
trackingNumber: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof FrontendOrderFulfillmentResource
|
|
44
|
-
*/
|
|
45
|
-
trackingUrl: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof FrontendOrderFulfillmentResource
|
|
50
|
-
*/
|
|
51
|
-
trackingCompany: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof FrontendOrderFulfillmentResource
|
|
56
|
-
*/
|
|
57
|
-
itemCount: number;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Check if a given object implements the FrontendOrderFulfillmentResource interface.
|
|
62
|
-
*/
|
|
63
|
-
export function instanceOfFrontendOrderFulfillmentResource(value: object): value is FrontendOrderFulfillmentResource {
|
|
64
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
-
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
66
|
-
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
67
|
-
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
68
|
-
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
69
|
-
if (!('itemCount' in value) || value['itemCount'] === undefined) return false;
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function FrontendOrderFulfillmentResourceFromJSON(json: any): FrontendOrderFulfillmentResource {
|
|
74
|
-
return FrontendOrderFulfillmentResourceFromJSONTyped(json, false);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function FrontendOrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendOrderFulfillmentResource {
|
|
78
|
-
if (json == null) {
|
|
79
|
-
return json;
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
'id': json['id'],
|
|
84
|
-
'dateShipped': (new Date(json['dateShipped'])),
|
|
85
|
-
'trackingNumber': json['trackingNumber'],
|
|
86
|
-
'trackingUrl': json['trackingUrl'],
|
|
87
|
-
'trackingCompany': json['trackingCompany'],
|
|
88
|
-
'itemCount': json['itemCount'],
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function FrontendOrderFulfillmentResourceToJSON(json: any): FrontendOrderFulfillmentResource {
|
|
93
|
-
return FrontendOrderFulfillmentResourceToJSONTyped(json, false);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function FrontendOrderFulfillmentResourceToJSONTyped(value?: FrontendOrderFulfillmentResource | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
-
if (value == null) {
|
|
98
|
-
return value;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return {
|
|
102
|
-
|
|
103
|
-
'id': value['id'],
|
|
104
|
-
'dateShipped': ((value['dateShipped']).toISOString()),
|
|
105
|
-
'trackingNumber': value['trackingNumber'],
|
|
106
|
-
'trackingUrl': value['trackingUrl'],
|
|
107
|
-
'trackingCompany': value['trackingCompany'],
|
|
108
|
-
'itemCount': value['itemCount'],
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { FrontendOrderFulfillmentResource } from './FrontendOrderFulfillmentResource';
|
|
17
|
-
import {
|
|
18
|
-
FrontendOrderFulfillmentResourceFromJSON,
|
|
19
|
-
FrontendOrderFulfillmentResourceFromJSONTyped,
|
|
20
|
-
FrontendOrderFulfillmentResourceToJSON,
|
|
21
|
-
FrontendOrderFulfillmentResourceToJSONTyped,
|
|
22
|
-
} from './FrontendOrderFulfillmentResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface FrontendOrderFulfillmentResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface FrontendOrderFulfillmentResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<FrontendOrderFulfillmentResource>}
|
|
33
|
-
* @memberof FrontendOrderFulfillmentResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<FrontendOrderFulfillmentResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the FrontendOrderFulfillmentResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfFrontendOrderFulfillmentResourceArrayResponse(value: object): value is FrontendOrderFulfillmentResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function FrontendOrderFulfillmentResourceArrayResponseFromJSON(json: any): FrontendOrderFulfillmentResourceArrayResponse {
|
|
46
|
-
return FrontendOrderFulfillmentResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function FrontendOrderFulfillmentResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendOrderFulfillmentResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(FrontendOrderFulfillmentResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function FrontendOrderFulfillmentResourceArrayResponseToJSON(json: any): FrontendOrderFulfillmentResourceArrayResponse {
|
|
60
|
-
return FrontendOrderFulfillmentResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function FrontendOrderFulfillmentResourceArrayResponseToJSONTyped(value?: FrontendOrderFulfillmentResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(FrontendOrderFulfillmentResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,135 +0,0 @@
|
|
|
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 { OrderStatusLiteResource } from './OrderStatusLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
OrderStatusLiteResourceFromJSON,
|
|
19
|
-
OrderStatusLiteResourceFromJSONTyped,
|
|
20
|
-
OrderStatusLiteResourceToJSON,
|
|
21
|
-
OrderStatusLiteResourceToJSONTyped,
|
|
22
|
-
} from './OrderStatusLiteResource';
|
|
23
|
-
import type { CustomerListResource } from './CustomerListResource';
|
|
24
|
-
import {
|
|
25
|
-
CustomerListResourceFromJSON,
|
|
26
|
-
CustomerListResourceFromJSONTyped,
|
|
27
|
-
CustomerListResourceToJSON,
|
|
28
|
-
CustomerListResourceToJSONTyped,
|
|
29
|
-
} from './CustomerListResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface FrontendOrderListResource
|
|
35
|
-
*/
|
|
36
|
-
export interface FrontendOrderListResource {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof FrontendOrderListResource
|
|
41
|
-
*/
|
|
42
|
-
id: number;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {Date}
|
|
46
|
-
* @memberof FrontendOrderListResource
|
|
47
|
-
*/
|
|
48
|
-
placedAt: Date;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {object}
|
|
52
|
-
* @memberof FrontendOrderListResource
|
|
53
|
-
*/
|
|
54
|
-
shippedAt: object;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof FrontendOrderListResource
|
|
59
|
-
*/
|
|
60
|
-
shippingType: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {number}
|
|
64
|
-
* @memberof FrontendOrderListResource
|
|
65
|
-
*/
|
|
66
|
-
finalTotalAmount: number;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {OrderStatusLiteResource}
|
|
70
|
-
* @memberof FrontendOrderListResource
|
|
71
|
-
*/
|
|
72
|
-
status: OrderStatusLiteResource | null;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {CustomerListResource}
|
|
76
|
-
* @memberof FrontendOrderListResource
|
|
77
|
-
*/
|
|
78
|
-
customer: CustomerListResource | null;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Check if a given object implements the FrontendOrderListResource interface.
|
|
83
|
-
*/
|
|
84
|
-
export function instanceOfFrontendOrderListResource(value: object): value is FrontendOrderListResource {
|
|
85
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
86
|
-
if (!('placedAt' in value) || value['placedAt'] === undefined) return false;
|
|
87
|
-
if (!('shippedAt' in value) || value['shippedAt'] === undefined) return false;
|
|
88
|
-
if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
|
|
89
|
-
if (!('finalTotalAmount' in value) || value['finalTotalAmount'] === undefined) return false;
|
|
90
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
91
|
-
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function FrontendOrderListResourceFromJSON(json: any): FrontendOrderListResource {
|
|
96
|
-
return FrontendOrderListResourceFromJSONTyped(json, false);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function FrontendOrderListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendOrderListResource {
|
|
100
|
-
if (json == null) {
|
|
101
|
-
return json;
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
|
|
105
|
-
'id': json['id'],
|
|
106
|
-
'placedAt': (new Date(json['placedAt'])),
|
|
107
|
-
'shippedAt': json['shippedAt'],
|
|
108
|
-
'shippingType': json['shippingType'],
|
|
109
|
-
'finalTotalAmount': json['finalTotalAmount'],
|
|
110
|
-
'status': OrderStatusLiteResourceFromJSON(json['status']),
|
|
111
|
-
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function FrontendOrderListResourceToJSON(json: any): FrontendOrderListResource {
|
|
116
|
-
return FrontendOrderListResourceToJSONTyped(json, false);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export function FrontendOrderListResourceToJSONTyped(value?: FrontendOrderListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
-
if (value == null) {
|
|
121
|
-
return value;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return {
|
|
125
|
-
|
|
126
|
-
'id': value['id'],
|
|
127
|
-
'placedAt': ((value['placedAt']).toISOString()),
|
|
128
|
-
'shippedAt': value['shippedAt'],
|
|
129
|
-
'shippingType': value['shippingType'],
|
|
130
|
-
'finalTotalAmount': value['finalTotalAmount'],
|
|
131
|
-
'status': OrderStatusLiteResourceToJSON(value['status']),
|
|
132
|
-
'customer': CustomerListResourceToJSON(value['customer']),
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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 { FrontendOrderListResource } from './FrontendOrderListResource';
|
|
17
|
-
import {
|
|
18
|
-
FrontendOrderListResourceFromJSON,
|
|
19
|
-
FrontendOrderListResourceFromJSONTyped,
|
|
20
|
-
FrontendOrderListResourceToJSON,
|
|
21
|
-
FrontendOrderListResourceToJSONTyped,
|
|
22
|
-
} from './FrontendOrderListResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface FrontendOrderListResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface FrontendOrderListResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<FrontendOrderListResource>}
|
|
33
|
-
* @memberof FrontendOrderListResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<FrontendOrderListResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the FrontendOrderListResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfFrontendOrderListResourceArrayResponse(value: object): value is FrontendOrderListResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function FrontendOrderListResourceArrayResponseFromJSON(json: any): FrontendOrderListResourceArrayResponse {
|
|
46
|
-
return FrontendOrderListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function FrontendOrderListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendOrderListResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(FrontendOrderListResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function FrontendOrderListResourceArrayResponseToJSON(json: any): FrontendOrderListResourceArrayResponse {
|
|
60
|
-
return FrontendOrderListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function FrontendOrderListResourceArrayResponseToJSONTyped(value?: FrontendOrderListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(FrontendOrderListResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
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 { FrontendOrderListResource } from './FrontendOrderListResource';
|
|
17
|
-
import {
|
|
18
|
-
FrontendOrderListResourceFromJSON,
|
|
19
|
-
FrontendOrderListResourceFromJSONTyped,
|
|
20
|
-
FrontendOrderListResourceToJSON,
|
|
21
|
-
FrontendOrderListResourceToJSONTyped,
|
|
22
|
-
} from './FrontendOrderListResource';
|
|
23
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
24
|
-
import {
|
|
25
|
-
PagingMetadataFromJSON,
|
|
26
|
-
PagingMetadataFromJSONTyped,
|
|
27
|
-
PagingMetadataToJSON,
|
|
28
|
-
PagingMetadataToJSONTyped,
|
|
29
|
-
} from './PagingMetadata';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedFrontendOrderListResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedFrontendOrderListResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<FrontendOrderListResource>}
|
|
40
|
-
* @memberof PaginatedFrontendOrderListResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<FrontendOrderListResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedFrontendOrderListResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedFrontendOrderListResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedFrontendOrderListResourceResponse(value: object): value is PaginatedFrontendOrderListResourceResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PaginatedFrontendOrderListResourceResponseFromJSON(json: any): PaginatedFrontendOrderListResourceResponse {
|
|
61
|
-
return PaginatedFrontendOrderListResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedFrontendOrderListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedFrontendOrderListResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(FrontendOrderListResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedFrontendOrderListResourceResponseToJSON(json: any): PaginatedFrontendOrderListResourceResponse {
|
|
76
|
-
return PaginatedFrontendOrderListResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedFrontendOrderListResourceResponseToJSONTyped(value?: PaginatedFrontendOrderListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': ((value['data'] as Array<any>).map(FrontendOrderListResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface SuburbValidationResource
|
|
20
|
-
*/
|
|
21
|
-
export interface SuburbValidationResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {boolean}
|
|
25
|
-
* @memberof SuburbValidationResource
|
|
26
|
-
*/
|
|
27
|
-
found: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the SuburbValidationResource interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfSuburbValidationResource(value: object): value is SuburbValidationResource {
|
|
34
|
-
if (!('found' in value) || value['found'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function SuburbValidationResourceFromJSON(json: any): SuburbValidationResource {
|
|
39
|
-
return SuburbValidationResourceFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function SuburbValidationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResource {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'found': json['found'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function SuburbValidationResourceToJSON(json: any): SuburbValidationResource {
|
|
53
|
-
return SuburbValidationResourceToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function SuburbValidationResourceToJSONTyped(value?: SuburbValidationResource | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'found': value['found'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { SuburbValidationResource } from './SuburbValidationResource';
|
|
17
|
-
import {
|
|
18
|
-
SuburbValidationResourceFromJSON,
|
|
19
|
-
SuburbValidationResourceFromJSONTyped,
|
|
20
|
-
SuburbValidationResourceToJSON,
|
|
21
|
-
SuburbValidationResourceToJSONTyped,
|
|
22
|
-
} from './SuburbValidationResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface SuburbValidationResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface SuburbValidationResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<SuburbValidationResource>}
|
|
33
|
-
* @memberof SuburbValidationResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<SuburbValidationResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the SuburbValidationResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfSuburbValidationResourceArrayResponse(value: object): value is SuburbValidationResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function SuburbValidationResourceArrayResponseFromJSON(json: any): SuburbValidationResourceArrayResponse {
|
|
46
|
-
return SuburbValidationResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function SuburbValidationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuburbValidationResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SuburbValidationResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function SuburbValidationResourceArrayResponseToJSON(json: any): SuburbValidationResourceArrayResponse {
|
|
60
|
-
return SuburbValidationResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function SuburbValidationResourceArrayResponseToJSONTyped(value?: SuburbValidationResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(SuburbValidationResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|