@digital8/lighting-illusions-ts-sdk 0.0.1902 → 0.0.1904
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +12 -0
- package/README.md +8 -2
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +2 -8
- package/dist/models/AddressResource.js +2 -4
- package/dist/models/CartCouponLiteResource.d.ts +44 -0
- package/dist/models/CartCouponLiteResource.js +59 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +18 -0
- package/dist/models/CartListResource.js +8 -0
- package/dist/models/CartResource.d.ts +18 -0
- package/dist/models/CartResource.js +8 -0
- package/dist/models/CustomerListResource.d.ts +6 -0
- package/dist/models/CustomerListResource.js +2 -0
- package/dist/models/CustomerResource.d.ts +6 -0
- package/dist/models/CustomerResource.js +2 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/FrontendCartResource.d.ts +138 -0
- package/dist/models/FrontendCartResource.js +119 -0
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
- package/dist/models/FrontendLineItemResource.d.ts +63 -0
- package/dist/models/FrontendLineItemResource.js +70 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildCartLiteResource.d.ts +6 -0
- package/dist/models/ProductChildCartLiteResource.js +4 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
- package/dist/models/StoreCartRequestShippingAddress.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -6
- package/dist/models/StoreStoreRequestAddress.js +0 -2
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/AddressResource.md +1 -3
- package/docs/CartCouponLiteResource.md +38 -0
- package/docs/CartCouponLiteResourceArrayResponse.md +34 -0
- package/docs/CartListResource.md +6 -0
- package/docs/CartResource.md +6 -0
- package/docs/CustomerListResource.md +2 -0
- package/docs/CustomerResource.md +2 -0
- package/docs/FrontendCartResource.md +68 -0
- package/docs/FrontendCartResourceArrayResponse.md +34 -0
- package/docs/FrontendLineItemResource.md +44 -0
- package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
- package/docs/ProductChildCartLiteResource.md +2 -0
- package/docs/StoreCartRequestShippingAddress.md +0 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/StoreStoreRequestAddress.md +0 -2
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +4 -12
- package/src/models/CartCouponLiteResource.ts +84 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +25 -0
- package/src/models/CartResource.ts +25 -0
- package/src/models/CustomerListResource.ts +8 -0
- package/src/models/CustomerResource.ts +8 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/FrontendCartResource.ts +246 -0
- package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
- package/src/models/FrontendLineItemResource.ts +118 -0
- package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildCartLiteResource.ts +9 -0
- package/src/models/StoreCartRequestShippingAddress.ts +0 -8
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/StoreStoreRequestAddress.ts +0 -8
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { FrontendCartResource } from './FrontendCartResource';
|
|
17
|
+
import {
|
|
18
|
+
FrontendCartResourceFromJSON,
|
|
19
|
+
FrontendCartResourceFromJSONTyped,
|
|
20
|
+
FrontendCartResourceToJSON,
|
|
21
|
+
FrontendCartResourceToJSONTyped,
|
|
22
|
+
} from './FrontendCartResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FrontendCartResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface FrontendCartResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<FrontendCartResource>}
|
|
33
|
+
* @memberof FrontendCartResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<FrontendCartResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the FrontendCartResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfFrontendCartResourceArrayResponse(value: object): value is FrontendCartResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function FrontendCartResourceArrayResponseFromJSON(json: any): FrontendCartResourceArrayResponse {
|
|
46
|
+
return FrontendCartResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function FrontendCartResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(FrontendCartResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function FrontendCartResourceArrayResponseToJSON(json: any): FrontendCartResourceArrayResponse {
|
|
60
|
+
return FrontendCartResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function FrontendCartResourceArrayResponseToJSONTyped(value?: FrontendCartResourceArrayResponse | 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(FrontendCartResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductChildCartLiteResourceFromJSON,
|
|
19
|
+
ProductChildCartLiteResourceFromJSONTyped,
|
|
20
|
+
ProductChildCartLiteResourceToJSON,
|
|
21
|
+
ProductChildCartLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductChildCartLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FrontendLineItemResource
|
|
28
|
+
*/
|
|
29
|
+
export interface FrontendLineItemResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof FrontendLineItemResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof FrontendLineItemResource
|
|
40
|
+
*/
|
|
41
|
+
quantity: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof FrontendLineItemResource
|
|
46
|
+
*/
|
|
47
|
+
productPrice: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof FrontendLineItemResource
|
|
52
|
+
*/
|
|
53
|
+
subtotalAmount: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof FrontendLineItemResource
|
|
58
|
+
*/
|
|
59
|
+
totalAmount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {ProductChildCartLiteResource}
|
|
63
|
+
* @memberof FrontendLineItemResource
|
|
64
|
+
*/
|
|
65
|
+
productChild: ProductChildCartLiteResource | null;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the FrontendLineItemResource interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfFrontendLineItemResource(value: object): value is FrontendLineItemResource {
|
|
72
|
+
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
73
|
+
if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
|
|
74
|
+
if (!('subtotalAmount' in value) || value['subtotalAmount'] === undefined) return false;
|
|
75
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
|
|
76
|
+
if (!('productChild' in value) || value['productChild'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function FrontendLineItemResourceFromJSON(json: any): FrontendLineItemResource {
|
|
81
|
+
return FrontendLineItemResourceFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function FrontendLineItemResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendLineItemResource {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
91
|
+
'quantity': json['quantity'],
|
|
92
|
+
'productPrice': json['product_price'],
|
|
93
|
+
'subtotalAmount': json['subtotal_amount'],
|
|
94
|
+
'totalAmount': json['total_amount'],
|
|
95
|
+
'productChild': ProductChildCartLiteResourceFromJSON(json['product_child']),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function FrontendLineItemResourceToJSON(json: any): FrontendLineItemResource {
|
|
100
|
+
return FrontendLineItemResourceToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function FrontendLineItemResourceToJSONTyped(value?: FrontendLineItemResource | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'id': value['id'],
|
|
111
|
+
'quantity': value['quantity'],
|
|
112
|
+
'product_price': value['productPrice'],
|
|
113
|
+
'subtotal_amount': value['subtotalAmount'],
|
|
114
|
+
'total_amount': value['totalAmount'],
|
|
115
|
+
'product_child': ProductChildCartLiteResourceToJSON(value['productChild']),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { FrontendLineItemResource } from './FrontendLineItemResource';
|
|
17
|
+
import {
|
|
18
|
+
FrontendLineItemResourceFromJSON,
|
|
19
|
+
FrontendLineItemResourceFromJSONTyped,
|
|
20
|
+
FrontendLineItemResourceToJSON,
|
|
21
|
+
FrontendLineItemResourceToJSONTyped,
|
|
22
|
+
} from './FrontendLineItemResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FrontendLineItemResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface FrontendLineItemResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<FrontendLineItemResource>}
|
|
33
|
+
* @memberof FrontendLineItemResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<FrontendLineItemResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the FrontendLineItemResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfFrontendLineItemResourceArrayResponse(value: object): value is FrontendLineItemResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function FrontendLineItemResourceArrayResponseFromJSON(json: any): FrontendLineItemResourceArrayResponse {
|
|
46
|
+
return FrontendLineItemResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function FrontendLineItemResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendLineItemResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(FrontendLineItemResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function FrontendLineItemResourceArrayResponseToJSON(json: any): FrontendLineItemResourceArrayResponse {
|
|
60
|
+
return FrontendLineItemResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function FrontendLineItemResourceArrayResponseToJSONTyped(value?: FrontendLineItemResourceArrayResponse | 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(FrontendLineItemResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -64,6 +64,12 @@ export interface ProductChildCartLiteResource {
|
|
|
64
64
|
* @memberof ProductChildCartLiteResource
|
|
65
65
|
*/
|
|
66
66
|
name: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ProductChildCartLiteResource
|
|
71
|
+
*/
|
|
72
|
+
slug: string;
|
|
67
73
|
/**
|
|
68
74
|
*
|
|
69
75
|
* @type {AssetLiteResource}
|
|
@@ -87,6 +93,7 @@ export function instanceOfProductChildCartLiteResource(value: object): value is
|
|
|
87
93
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
88
94
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
89
95
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
96
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
90
97
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
91
98
|
if (!('label' in value) || value['label'] === undefined) return false;
|
|
92
99
|
return true;
|
|
@@ -107,6 +114,7 @@ export function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscr
|
|
|
107
114
|
'sku': json['sku'],
|
|
108
115
|
'model': json['model'],
|
|
109
116
|
'name': json['name'],
|
|
117
|
+
'slug': json['slug'],
|
|
110
118
|
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
111
119
|
'label': LabelResourceFromJSON(json['label']),
|
|
112
120
|
};
|
|
@@ -128,6 +136,7 @@ export function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCart
|
|
|
128
136
|
'sku': value['sku'],
|
|
129
137
|
'model': value['model'],
|
|
130
138
|
'name': value['name'],
|
|
139
|
+
'slug': value['slug'],
|
|
131
140
|
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
132
141
|
'label': LabelResourceToJSON(value['label']),
|
|
133
142
|
};
|
|
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface StoreCartRequestShippingAddress
|
|
20
20
|
*/
|
|
21
21
|
export interface StoreCartRequestShippingAddress {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof StoreCartRequestShippingAddress
|
|
26
|
-
*/
|
|
27
|
-
addresseeName?: string | null;
|
|
28
22
|
/**
|
|
29
23
|
*
|
|
30
24
|
* @type {string}
|
|
@@ -86,7 +80,6 @@ export function StoreCartRequestShippingAddressFromJSONTyped(json: any, ignoreDi
|
|
|
86
80
|
}
|
|
87
81
|
return {
|
|
88
82
|
|
|
89
|
-
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
90
83
|
'company': json['company'] == null ? undefined : json['company'],
|
|
91
84
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
92
85
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -108,7 +101,6 @@ export function StoreCartRequestShippingAddressToJSONTyped(value?: StoreCartRequ
|
|
|
108
101
|
|
|
109
102
|
return {
|
|
110
103
|
|
|
111
|
-
'addressee_name': value['addresseeName'],
|
|
112
104
|
'company': value['company'],
|
|
113
105
|
'line_1': value['line1'],
|
|
114
106
|
'line_2': value['line2'],
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -128,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
128
129
|
'siteId': json['siteId'],
|
|
129
130
|
'name': json['name'],
|
|
130
131
|
'email': json['email'],
|
|
131
|
-
'website': json['website']
|
|
132
|
+
'website': json['website'],
|
|
132
133
|
'phone': json['phone'],
|
|
133
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
134
135
|
'latitude': json['latitude'],
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -98,6 +98,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
98
98
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
99
99
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
101
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
102
103
|
return true;
|
|
103
104
|
}
|
|
@@ -118,7 +119,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
118
119
|
'phone': json['phone'],
|
|
119
120
|
'longitude': json['longitude'],
|
|
120
121
|
'latitude': json['latitude'],
|
|
121
|
-
'tagLine': json['tag_line']
|
|
122
|
+
'tagLine': json['tag_line'],
|
|
122
123
|
'email': json['email'],
|
|
123
124
|
'website': json['website'] == null ? undefined : json['website'],
|
|
124
125
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -137,7 +137,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
137
137
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
138
138
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
139
139
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
140
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
141
140
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
142
141
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
143
142
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -162,7 +161,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
162
161
|
'phone': json['phone'],
|
|
163
162
|
'longitude': json['longitude'],
|
|
164
163
|
'latitude': json['latitude'],
|
|
165
|
-
'tagLine': json['tag_line'],
|
|
164
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
166
165
|
'email': json['email'],
|
|
167
166
|
'website': json['website'],
|
|
168
167
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['display_start_date'],
|
|
95
94
|
'displayEndDate': json['display_end_date'],
|
|
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface StoreStoreRequestAddress
|
|
20
20
|
*/
|
|
21
21
|
export interface StoreStoreRequestAddress {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof StoreStoreRequestAddress
|
|
26
|
-
*/
|
|
27
|
-
addresseeName?: string | null;
|
|
28
22
|
/**
|
|
29
23
|
*
|
|
30
24
|
* @type {string}
|
|
@@ -92,7 +86,6 @@ export function StoreStoreRequestAddressFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
92
86
|
}
|
|
93
87
|
return {
|
|
94
88
|
|
|
95
|
-
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
96
89
|
'company': json['company'],
|
|
97
90
|
'line1': json['line_1'],
|
|
98
91
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -114,7 +107,6 @@ export function StoreStoreRequestAddressToJSONTyped(value?: StoreStoreRequestAdd
|
|
|
114
107
|
|
|
115
108
|
return {
|
|
116
109
|
|
|
117
|
-
'addressee_name': value['addresseeName'],
|
|
118
110
|
'company': value['company'],
|
|
119
111
|
'line_1': value['line1'],
|
|
120
112
|
'line_2': value['line2'],
|
package/src/models/index.ts
CHANGED
|
@@ -44,6 +44,8 @@ export * from './AttributeResourceArrayResponse';
|
|
|
44
44
|
export * from './AttributeType';
|
|
45
45
|
export * from './AttributeValueResource';
|
|
46
46
|
export * from './AttributeValueResourceArrayResponse';
|
|
47
|
+
export * from './CartCouponLiteResource';
|
|
48
|
+
export * from './CartCouponLiteResourceArrayResponse';
|
|
47
49
|
export * from './CartCouponResource';
|
|
48
50
|
export * from './CartCouponResourceArrayResponse';
|
|
49
51
|
export * from './CartListResource';
|
|
@@ -100,6 +102,10 @@ export * from './ExternalApiLogResource';
|
|
|
100
102
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
101
103
|
export * from './ExternalApiProvider';
|
|
102
104
|
export * from './ExternalApiSyncStatus';
|
|
105
|
+
export * from './FrontendCartResource';
|
|
106
|
+
export * from './FrontendCartResourceArrayResponse';
|
|
107
|
+
export * from './FrontendLineItemResource';
|
|
108
|
+
export * from './FrontendLineItemResourceArrayResponse';
|
|
103
109
|
export * from './GenericResponse';
|
|
104
110
|
export * from './GetAllAttributeRequest';
|
|
105
111
|
export * from './GetAllAttributeValueRequest';
|