@digital8/lighting-illusions-ts-sdk 0.0.1845 → 0.0.1847
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 +0 -74
- package/README.md +2 -52
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +2 -6
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/MenuPosition.d.ts +0 -1
- package/dist/models/MenuPosition.js +1 -2
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
- package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
- package/dist/models/SitePaymentConfigResource.d.ts +0 -6
- package/dist/models/SitePaymentConfigResource.js +0 -4
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +6 -2
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreMenuRequest.d.ts +0 -1
- package/dist/models/StoreMenuRequest.js +1 -2
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateMenuRequest.d.ts +0 -1
- package/dist/models/UpdateMenuRequest.js +1 -2
- package/dist/models/UpdateSiteRequest.d.ts +0 -6
- package/dist/models/UpdateSiteRequest.js +0 -4
- package/dist/models/index.d.ts +0 -35
- package/dist/models/index.js +0 -35
- package/docs/ProductChildSiteDetailLiteResource.md +0 -2
- package/docs/SitePaymentConfigResource.md +0 -2
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateSiteRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/index.ts +0 -2
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +4 -6
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/MenuPosition.ts +1 -2
- package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
- package/src/models/SitePaymentConfigResource.ts +0 -9
- package/src/models/StoreFrontendResource.ts +6 -4
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreMenuRequest.ts +1 -2
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateMenuRequest.ts +1 -2
- package/src/models/UpdateSiteRequest.ts +0 -9
- package/src/models/index.ts +0 -35
- package/dist/apis/CartsApi.d.ts +0 -190
- package/dist/apis/CartsApi.js +0 -745
- package/dist/apis/CustomersApi.d.ts +0 -79
- package/dist/apis/CustomersApi.js +0 -316
- package/dist/models/AddressType.d.ts +0 -25
- package/dist/models/AddressType.js +0 -51
- package/dist/models/AdminCartResource.d.ts +0 -234
- package/dist/models/AdminCartResource.js +0 -169
- package/dist/models/AdminCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminCartResourceArrayResponse.js +0 -50
- package/dist/models/AttachCouponCartRequest.d.ts +0 -32
- package/dist/models/AttachCouponCartRequest.js +0 -51
- package/dist/models/AttachItemCartRequest.d.ts +0 -44
- package/dist/models/AttachItemCartRequest.js +0 -57
- package/dist/models/CartListResource.d.ts +0 -143
- package/dist/models/CartListResource.js +0 -110
- package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartListResourceArrayResponse.js +0 -50
- package/dist/models/CartOrderSource.d.ts +0 -29
- package/dist/models/CartOrderSource.js +0 -55
- package/dist/models/CartStatus.d.ts +0 -26
- package/dist/models/CartStatus.js +0 -52
- package/dist/models/CustomerListResource.d.ts +0 -76
- package/dist/models/CustomerListResource.js +0 -77
- package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerListResourceArrayResponse.js +0 -50
- package/dist/models/CustomerResource.d.ts +0 -76
- package/dist/models/CustomerResource.js +0 -77
- package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/CustomerResourceArrayResponse.js +0 -50
- package/dist/models/DetachCouponCartRequest.d.ts +0 -32
- package/dist/models/DetachCouponCartRequest.js +0 -51
- package/dist/models/DiscountType.d.ts +0 -26
- package/dist/models/DiscountType.js +0 -52
- package/dist/models/DiscountValueType.d.ts +0 -25
- package/dist/models/DiscountValueType.js +0 -51
- package/dist/models/IndexCartRequest.d.ts +0 -154
- package/dist/models/IndexCartRequest.js +0 -105
- package/dist/models/IndexCustomerRequest.d.ts +0 -99
- package/dist/models/IndexCustomerRequest.js +0 -83
- package/dist/models/LiAddressResource.d.ts +0 -86
- package/dist/models/LiAddressResource.js +0 -83
- package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
- package/dist/models/LiAddressResourceArrayResponse.js +0 -50
- package/dist/models/LineItemListResource.d.ts +0 -75
- package/dist/models/LineItemListResource.js +0 -78
- package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemListResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCartListResourceResponse.js +0 -57
- package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
- package/dist/models/ProductChildCartLiteResource.js +0 -77
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/dist/models/ShippingType.d.ts +0 -28
- package/dist/models/ShippingType.js +0 -54
- package/dist/models/StoreCartRequest.d.ts +0 -142
- package/dist/models/StoreCartRequest.js +0 -106
- package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
- package/dist/models/StoreCartRequestCustomer.js +0 -55
- package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
- package/dist/models/StoreCartRequestItemsInner.js +0 -57
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -68
- package/dist/models/StoreCartRequestShippingAddress.js +0 -61
- package/dist/models/StoreCustomerRequest.d.ts +0 -56
- package/dist/models/StoreCustomerRequest.js +0 -65
- package/dist/models/UpdateCartRequest.d.ts +0 -117
- package/dist/models/UpdateCartRequest.js +0 -93
- package/dist/models/UpdateCustomerRequest.d.ts +0 -56
- package/dist/models/UpdateCustomerRequest.js +0 -63
- package/dist/models/UpdateItemCartRequest.d.ts +0 -38
- package/dist/models/UpdateItemCartRequest.js +0 -53
- package/docs/AddressType.md +0 -32
- package/docs/AdminCartResource.md +0 -100
- package/docs/AdminCartResourceArrayResponse.md +0 -34
- package/docs/AttachCouponCartRequest.md +0 -34
- package/docs/AttachItemCartRequest.md +0 -38
- package/docs/CartListResource.md +0 -70
- package/docs/CartListResourceArrayResponse.md +0 -34
- package/docs/CartOrderSource.md +0 -32
- package/docs/CartStatus.md +0 -32
- package/docs/CartsApi.md +0 -755
- package/docs/CustomerListResource.md +0 -48
- package/docs/CustomerListResourceArrayResponse.md +0 -34
- package/docs/CustomerResource.md +0 -48
- package/docs/CustomerResourceArrayResponse.md +0 -34
- package/docs/CustomersApi.md +0 -275
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/IndexCartRequest.md +0 -66
- package/docs/IndexCustomerRequest.md +0 -50
- package/docs/LiAddressResource.md +0 -52
- package/docs/LiAddressResourceArrayResponse.md +0 -34
- package/docs/LineItemListResource.md +0 -48
- package/docs/LineItemListResourceArrayResponse.md +0 -34
- package/docs/PaginatedCartListResourceResponse.md +0 -36
- package/docs/PaginatedCustomerListResourceResponse.md +0 -36
- package/docs/ProductChildCartLiteResource.md +0 -46
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/docs/ShippingType.md +0 -32
- package/docs/StoreCartRequest.md +0 -62
- package/docs/StoreCartRequestCustomer.md +0 -40
- package/docs/StoreCartRequestItemsInner.md +0 -38
- package/docs/StoreCartRequestShippingAddress.md +0 -46
- package/docs/StoreCustomerRequest.md +0 -42
- package/docs/UpdateCartRequest.md +0 -54
- package/docs/UpdateCustomerRequest.md +0 -42
- package/docs/UpdateItemCartRequest.md +0 -36
- package/src/apis/CartsApi.ts +0 -624
- package/src/apis/CustomersApi.ts +0 -232
- package/src/models/AddressType.ts +0 -53
- package/src/models/AdminCartResource.ts +0 -383
- package/src/models/AdminCartResourceArrayResponse.ts +0 -73
- package/src/models/AttachCouponCartRequest.ts +0 -66
- package/src/models/AttachItemCartRequest.ts +0 -83
- package/src/models/CartListResource.ts +0 -242
- package/src/models/CartListResourceArrayResponse.ts +0 -73
- package/src/models/CartOrderSource.ts +0 -57
- package/src/models/CartStatus.ts +0 -54
- package/src/models/CustomerListResource.ts +0 -142
- package/src/models/CustomerListResourceArrayResponse.ts +0 -73
- package/src/models/CustomerResource.ts +0 -142
- package/src/models/CustomerResourceArrayResponse.ts +0 -73
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/IndexCartRequest.ts +0 -224
- package/src/models/IndexCustomerRequest.ts +0 -152
- package/src/models/LiAddressResource.ts +0 -145
- package/src/models/LiAddressResourceArrayResponse.ts +0 -73
- package/src/models/LineItemListResource.ts +0 -136
- package/src/models/LineItemListResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedCartListResourceResponse.ts +0 -90
- package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
- package/src/models/ProductChildCartLiteResource.ts +0 -135
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
- package/src/models/ShippingType.ts +0 -56
- package/src/models/StoreCartRequest.ts +0 -228
- package/src/models/StoreCartRequestCustomer.ts +0 -89
- package/src/models/StoreCartRequestItemsInner.ts +0 -83
- package/src/models/StoreCartRequestShippingAddress.ts +0 -113
- package/src/models/StoreCustomerRequest.ts +0 -101
- package/src/models/UpdateCartRequest.ts +0 -187
- package/src/models/UpdateCustomerRequest.ts +0 -100
- package/src/models/UpdateItemCartRequest.ts +0 -74
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -42,7 +42,7 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
line2
|
|
45
|
+
line2?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -79,9 +79,7 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
83
82
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
84
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
85
83
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
86
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
87
85
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -101,9 +99,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
101
99
|
return {
|
|
102
100
|
|
|
103
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
|
-
'company': json['company'],
|
|
102
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
105
103
|
'line1': json['line_1'],
|
|
106
|
-
'line2': json['line_2'],
|
|
104
|
+
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
107
105
|
'postcode': json['postcode'],
|
|
108
106
|
'suburb': json['suburb'],
|
|
109
107
|
'country': json['country'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
export const MenuPosition = {
|
|
21
21
|
Header: 'header',
|
|
22
22
|
HeaderSecondary: 'header_secondary',
|
|
23
|
-
Footer: 'footer'
|
|
24
|
-
FooterSecondary: 'footer_secondary'
|
|
23
|
+
Footer: 'footer'
|
|
25
24
|
} as const;
|
|
26
25
|
export type MenuPosition = typeof MenuPosition[keyof typeof MenuPosition];
|
|
27
26
|
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
SiteLiteResourceToJSON,
|
|
21
21
|
SiteLiteResourceToJSONTyped,
|
|
22
22
|
} from './SiteLiteResource';
|
|
23
|
-
import type { LabelResource } from './LabelResource';
|
|
24
|
-
import {
|
|
25
|
-
LabelResourceFromJSON,
|
|
26
|
-
LabelResourceFromJSONTyped,
|
|
27
|
-
LabelResourceToJSON,
|
|
28
|
-
LabelResourceToJSONTyped,
|
|
29
|
-
} from './LabelResource';
|
|
30
23
|
|
|
31
24
|
/**
|
|
32
25
|
*
|
|
@@ -76,12 +69,6 @@ export interface ProductChildSiteDetailLiteResource {
|
|
|
76
69
|
* @memberof ProductChildSiteDetailLiteResource
|
|
77
70
|
*/
|
|
78
71
|
isDisabled: boolean;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {LabelResource}
|
|
82
|
-
* @memberof ProductChildSiteDetailLiteResource
|
|
83
|
-
*/
|
|
84
|
-
label: LabelResource | null;
|
|
85
72
|
}
|
|
86
73
|
|
|
87
74
|
/**
|
|
@@ -95,7 +82,6 @@ export function instanceOfProductChildSiteDetailLiteResource(value: object): val
|
|
|
95
82
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
|
|
96
83
|
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
97
84
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
98
|
-
if (!('label' in value) || value['label'] === undefined) return false;
|
|
99
85
|
return true;
|
|
100
86
|
}
|
|
101
87
|
|
|
@@ -116,7 +102,6 @@ export function ProductChildSiteDetailLiteResourceFromJSONTyped(json: any, ignor
|
|
|
116
102
|
'rrpPrice': json['rrpPrice'],
|
|
117
103
|
'salePrice': json['salePrice'],
|
|
118
104
|
'isDisabled': json['isDisabled'],
|
|
119
|
-
'label': LabelResourceFromJSON(json['label']),
|
|
120
105
|
};
|
|
121
106
|
}
|
|
122
107
|
|
|
@@ -138,7 +123,6 @@ export function ProductChildSiteDetailLiteResourceToJSONTyped(value?: ProductChi
|
|
|
138
123
|
'rrpPrice': value['rrpPrice'],
|
|
139
124
|
'salePrice': value['salePrice'],
|
|
140
125
|
'isDisabled': value['isDisabled'],
|
|
141
|
-
'label': LabelResourceToJSON(value['label']),
|
|
142
126
|
};
|
|
143
127
|
}
|
|
144
128
|
|
|
@@ -79,12 +79,6 @@ export interface SitePaymentConfigResource {
|
|
|
79
79
|
* @memberof SitePaymentConfigResource
|
|
80
80
|
*/
|
|
81
81
|
acCouponExpiryDays: number;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {number}
|
|
85
|
-
* @memberof SitePaymentConfigResource
|
|
86
|
-
*/
|
|
87
|
-
cartExpiryDays: number;
|
|
88
82
|
/**
|
|
89
83
|
*
|
|
90
84
|
* @type {boolean}
|
|
@@ -107,7 +101,6 @@ export function instanceOfSitePaymentConfigResource(value: object): value is Sit
|
|
|
107
101
|
if (!('acCouponValue' in value) || value['acCouponValue'] === undefined) return false;
|
|
108
102
|
if (!('acCouponDiscountType' in value) || value['acCouponDiscountType'] === undefined) return false;
|
|
109
103
|
if (!('acCouponExpiryDays' in value) || value['acCouponExpiryDays'] === undefined) return false;
|
|
110
|
-
if (!('cartExpiryDays' in value) || value['cartExpiryDays'] === undefined) return false;
|
|
111
104
|
if (!('acCouponEnabled' in value) || value['acCouponEnabled'] === undefined) return false;
|
|
112
105
|
return true;
|
|
113
106
|
}
|
|
@@ -132,7 +125,6 @@ export function SitePaymentConfigResourceFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
132
125
|
'acCouponValue': json['acCouponValue'],
|
|
133
126
|
'acCouponDiscountType': json['acCouponDiscountType'],
|
|
134
127
|
'acCouponExpiryDays': json['acCouponExpiryDays'],
|
|
135
|
-
'cartExpiryDays': json['cartExpiryDays'],
|
|
136
128
|
'acCouponEnabled': json['acCouponEnabled'],
|
|
137
129
|
};
|
|
138
130
|
}
|
|
@@ -158,7 +150,6 @@ export function SitePaymentConfigResourceToJSONTyped(value?: SitePaymentConfigRe
|
|
|
158
150
|
'acCouponValue': value['acCouponValue'],
|
|
159
151
|
'acCouponDiscountType': value['acCouponDiscountType'],
|
|
160
152
|
'acCouponExpiryDays': value['acCouponExpiryDays'],
|
|
161
|
-
'cartExpiryDays': value['cartExpiryDays'],
|
|
162
153
|
'acCouponEnabled': value['acCouponEnabled'],
|
|
163
154
|
};
|
|
164
155
|
}
|
|
@@ -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}
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -106,9 +106,11 @@ 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;
|
|
113
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
112
114
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
113
115
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
114
116
|
return true;
|
|
@@ -128,12 +130,12 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
128
130
|
'siteId': json['siteId'],
|
|
129
131
|
'name': json['name'],
|
|
130
132
|
'email': json['email'],
|
|
131
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
132
134
|
'phone': json['phone'],
|
|
133
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
134
136
|
'latitude': json['latitude'],
|
|
135
137
|
'longitude': json['longitude'],
|
|
136
|
-
'tagLine': json['tagLine']
|
|
138
|
+
'tagLine': json['tagLine'],
|
|
137
139
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
138
140
|
'specialDates': json['specialDates'],
|
|
139
141
|
'suppliers': json['suppliers'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website: string;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -99,6 +99,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
99
99
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
101
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
102
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
102
103
|
return true;
|
|
103
104
|
}
|
|
104
105
|
|
|
@@ -120,7 +121,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
120
121
|
'latitude': json['latitude'],
|
|
121
122
|
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
122
123
|
'email': json['email'],
|
|
123
|
-
'website': json['website']
|
|
124
|
+
'website': json['website'],
|
|
124
125
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
125
126
|
};
|
|
126
127
|
}
|
|
@@ -46,8 +46,7 @@ export interface StoreMenuRequest {
|
|
|
46
46
|
export const StoreMenuRequestPositionEnum = {
|
|
47
47
|
Header: 'header',
|
|
48
48
|
HeaderSecondary: 'header_secondary',
|
|
49
|
-
Footer: 'footer'
|
|
50
|
-
FooterSecondary: 'footer_secondary'
|
|
49
|
+
Footer: 'footer'
|
|
51
50
|
} as const;
|
|
52
51
|
export type StoreMenuRequestPositionEnum = typeof StoreMenuRequestPositionEnum[keyof typeof StoreMenuRequestPositionEnum];
|
|
53
52
|
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website?: string | null;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {string}
|
|
@@ -139,7 +139,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
139
139
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
140
140
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
141
141
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
142
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
143
142
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
144
143
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
145
144
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -164,7 +163,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
164
163
|
'latitude': json['latitude'],
|
|
165
164
|
'tagLine': json['tag_line'],
|
|
166
165
|
'email': json['email'],
|
|
167
|
-
'website': json['website'],
|
|
166
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
168
167
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
169
168
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
170
169
|
'address': AddressResourceFromJSON(json['address']),
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ 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;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['display_start_date'],
|
|
94
95
|
'displayEndDate': json['display_end_date'],
|
|
@@ -60,8 +60,7 @@ export interface UpdateMenuRequest {
|
|
|
60
60
|
export const UpdateMenuRequestPositionEnum = {
|
|
61
61
|
Header: 'header',
|
|
62
62
|
HeaderSecondary: 'header_secondary',
|
|
63
|
-
Footer: 'footer'
|
|
64
|
-
FooterSecondary: 'footer_secondary'
|
|
63
|
+
Footer: 'footer'
|
|
65
64
|
} as const;
|
|
66
65
|
export type UpdateMenuRequestPositionEnum = typeof UpdateMenuRequestPositionEnum[keyof typeof UpdateMenuRequestPositionEnum];
|
|
67
66
|
|
|
@@ -145,12 +145,6 @@ export interface UpdateSiteRequest {
|
|
|
145
145
|
* @memberof UpdateSiteRequest
|
|
146
146
|
*/
|
|
147
147
|
acCouponExpiryDays: number;
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @type {number}
|
|
151
|
-
* @memberof UpdateSiteRequest
|
|
152
|
-
*/
|
|
153
|
-
cartExpiryDays: number;
|
|
154
148
|
/**
|
|
155
149
|
*
|
|
156
150
|
* @type {boolean}
|
|
@@ -190,7 +184,6 @@ export function instanceOfUpdateSiteRequest(value: object): value is UpdateSiteR
|
|
|
190
184
|
if (!('acCouponValue' in value) || value['acCouponValue'] === undefined) return false;
|
|
191
185
|
if (!('acCouponDiscountType' in value) || value['acCouponDiscountType'] === undefined) return false;
|
|
192
186
|
if (!('acCouponExpiryDays' in value) || value['acCouponExpiryDays'] === undefined) return false;
|
|
193
|
-
if (!('cartExpiryDays' in value) || value['cartExpiryDays'] === undefined) return false;
|
|
194
187
|
if (!('acCouponEnabled' in value) || value['acCouponEnabled'] === undefined) return false;
|
|
195
188
|
return true;
|
|
196
189
|
}
|
|
@@ -226,7 +219,6 @@ export function UpdateSiteRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
226
219
|
'acCouponValue': json['ac_coupon_value'],
|
|
227
220
|
'acCouponDiscountType': json['ac_coupon_discount_type'],
|
|
228
221
|
'acCouponExpiryDays': json['ac_coupon_expiry_days'],
|
|
229
|
-
'cartExpiryDays': json['cart_expiry_days'],
|
|
230
222
|
'acCouponEnabled': json['ac_coupon_enabled'],
|
|
231
223
|
};
|
|
232
224
|
}
|
|
@@ -263,7 +255,6 @@ export function UpdateSiteRequestToJSONTyped(value?: UpdateSiteRequest | null, i
|
|
|
263
255
|
'ac_coupon_value': value['acCouponValue'],
|
|
264
256
|
'ac_coupon_discount_type': value['acCouponDiscountType'],
|
|
265
257
|
'ac_coupon_expiry_days': value['acCouponExpiryDays'],
|
|
266
|
-
'cart_expiry_days': value['cartExpiryDays'],
|
|
267
258
|
'ac_coupon_enabled': value['acCouponEnabled'],
|
|
268
259
|
};
|
|
269
260
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -4,9 +4,6 @@ export * from './AddressFrontendResource';
|
|
|
4
4
|
export * from './AddressFrontendResourceArrayResponse';
|
|
5
5
|
export * from './AddressResource';
|
|
6
6
|
export * from './AddressResourceArrayResponse';
|
|
7
|
-
export * from './AddressType';
|
|
8
|
-
export * from './AdminCartResource';
|
|
9
|
-
export * from './AdminCartResourceArrayResponse';
|
|
10
7
|
export * from './AssetFileForUploadResource';
|
|
11
8
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
12
9
|
export * from './AssetFrontendResource';
|
|
@@ -23,13 +20,11 @@ export * from './AttachAssetsOverlayTemplateRequest';
|
|
|
23
20
|
export * from './AttachAttributeProductTypeRequest';
|
|
24
21
|
export * from './AttachAttributesProductRangeRequest';
|
|
25
22
|
export * from './AttachAttributesProductRangeRequestAttributesInner';
|
|
26
|
-
export * from './AttachCouponCartRequest';
|
|
27
23
|
export * from './AttachDocumentablesDocumentRequest';
|
|
28
24
|
export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
29
25
|
export * from './AttachDocumentsProductChildRequest';
|
|
30
26
|
export * from './AttachDocumentsProductChildRequestDocumentsInner';
|
|
31
27
|
export * from './AttachDocumentsProductRangeRequest';
|
|
32
|
-
export * from './AttachItemCartRequest';
|
|
33
28
|
export * from './AttachProductTypeAttributeRequest';
|
|
34
29
|
export * from './AttachProductsProductCategoryRequest';
|
|
35
30
|
export * from './AttachStoresSupplierRequest';
|
|
@@ -46,10 +41,6 @@ export * from './AttributeResourceArrayResponse';
|
|
|
46
41
|
export * from './AttributeType';
|
|
47
42
|
export * from './AttributeValueResource';
|
|
48
43
|
export * from './AttributeValueResourceArrayResponse';
|
|
49
|
-
export * from './CartListResource';
|
|
50
|
-
export * from './CartListResourceArrayResponse';
|
|
51
|
-
export * from './CartOrderSource';
|
|
52
|
-
export * from './CartStatus';
|
|
53
44
|
export * from './CategoryAutomationComparisonType';
|
|
54
45
|
export * from './CategoryAutomationConditionType';
|
|
55
46
|
export * from './CategoryAutomationFieldType';
|
|
@@ -60,10 +51,6 @@ export * from './CategoryFrontendResourceArrayResponse';
|
|
|
60
51
|
export * from './CategoryWithChildrenFrontendResource';
|
|
61
52
|
export * from './CategoryWithChildrenFrontendResourceArrayResponse';
|
|
62
53
|
export * from './CouponDiscountType';
|
|
63
|
-
export * from './CustomerListResource';
|
|
64
|
-
export * from './CustomerListResourceArrayResponse';
|
|
65
|
-
export * from './CustomerResource';
|
|
66
|
-
export * from './CustomerResourceArrayResponse';
|
|
67
54
|
export * from './DefinitionListResource';
|
|
68
55
|
export * from './DefinitionListResourceArrayResponse';
|
|
69
56
|
export * from './DefinitionResource';
|
|
@@ -74,7 +61,6 @@ export * from './DestroyAttributeValueRequest';
|
|
|
74
61
|
export * from './DetachAccessoriesProductRangeRequest';
|
|
75
62
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
76
63
|
export * from './DetachAttributesProductRangeRequest';
|
|
77
|
-
export * from './DetachCouponCartRequest';
|
|
78
64
|
export * from './DetachDocumentablesDocumentRequest';
|
|
79
65
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
80
66
|
export * from './DetachDocumentsProductChildRequest';
|
|
@@ -82,8 +68,6 @@ export * from './DetachDocumentsProductRangeRequest';
|
|
|
82
68
|
export * from './DetachProductsProductCategoryRequest';
|
|
83
69
|
export * from './DetachStoresSupplierRequest';
|
|
84
70
|
export * from './DetachSuppliersStoreRequest';
|
|
85
|
-
export * from './DiscountType';
|
|
86
|
-
export * from './DiscountValueType';
|
|
87
71
|
export * from './DocumentFileForUploadResource';
|
|
88
72
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
89
73
|
export * from './DocumentFrontendResource';
|
|
@@ -130,8 +114,6 @@ export * from './GoogleCategoryResource';
|
|
|
130
114
|
export * from './GoogleCategoryResourceArrayResponse';
|
|
131
115
|
export * from './IndexAttributeRequest';
|
|
132
116
|
export * from './IndexAttributeValueRequest';
|
|
133
|
-
export * from './IndexCartRequest';
|
|
134
|
-
export * from './IndexCustomerRequest';
|
|
135
117
|
export * from './IndexDefinitionRequest';
|
|
136
118
|
export * from './IndexDocumentRequest';
|
|
137
119
|
export * from './IndexExternalApiLogRequest';
|
|
@@ -157,10 +139,6 @@ export * from './LabelLiteResource';
|
|
|
157
139
|
export * from './LabelLiteResourceArrayResponse';
|
|
158
140
|
export * from './LabelResource';
|
|
159
141
|
export * from './LabelResourceArrayResponse';
|
|
160
|
-
export * from './LiAddressResource';
|
|
161
|
-
export * from './LiAddressResourceArrayResponse';
|
|
162
|
-
export * from './LineItemListResource';
|
|
163
|
-
export * from './LineItemListResourceArrayResponse';
|
|
164
142
|
export * from './ListAssetsProductRegistrationRequest';
|
|
165
143
|
export * from './MenuItemHierarchyResource';
|
|
166
144
|
export * from './MenuItemHierarchyResourceArrayResponse';
|
|
@@ -198,9 +176,7 @@ export * from './PaginatedAttributeLiteResourceResponse';
|
|
|
198
176
|
export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
199
177
|
export * from './PaginatedAttributeResourceResponse';
|
|
200
178
|
export * from './PaginatedAttributeValueResourceResponse';
|
|
201
|
-
export * from './PaginatedCartListResourceResponse';
|
|
202
179
|
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
203
|
-
export * from './PaginatedCustomerListResourceResponse';
|
|
204
180
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
205
181
|
export * from './PaginatedDefinitionResourceResponse';
|
|
206
182
|
export * from './PaginatedDocumentResourceResponse';
|
|
@@ -268,8 +244,6 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
268
244
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
269
245
|
export * from './ProductChildAttributeResource';
|
|
270
246
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
271
|
-
export * from './ProductChildCartLiteResource';
|
|
272
|
-
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
273
247
|
export * from './ProductChildListResource';
|
|
274
248
|
export * from './ProductChildListResourceArrayResponse';
|
|
275
249
|
export * from './ProductChildLiteResource';
|
|
@@ -352,7 +326,6 @@ export * from './RedirectListResourceArrayResponse';
|
|
|
352
326
|
export * from './SEOResource';
|
|
353
327
|
export * from './SEOResourceArrayResponse';
|
|
354
328
|
export * from './SearchLinkablesMenuItemRequest';
|
|
355
|
-
export * from './ShippingType';
|
|
356
329
|
export * from './ShowAssetsProductChildRequest';
|
|
357
330
|
export * from './ShowAttributesProductChildRequest';
|
|
358
331
|
export * from './SiteConfigResource';
|
|
@@ -373,11 +346,6 @@ export * from './StoreAssetFileRequest';
|
|
|
373
346
|
export * from './StoreAssetForAssetableRequest';
|
|
374
347
|
export * from './StoreAttributeRequest';
|
|
375
348
|
export * from './StoreAttributeValueRequest';
|
|
376
|
-
export * from './StoreCartRequest';
|
|
377
|
-
export * from './StoreCartRequestCustomer';
|
|
378
|
-
export * from './StoreCartRequestItemsInner';
|
|
379
|
-
export * from './StoreCartRequestShippingAddress';
|
|
380
|
-
export * from './StoreCustomerRequest';
|
|
381
349
|
export * from './StoreDefinitionRequest';
|
|
382
350
|
export * from './StoreDocumentFileRequest';
|
|
383
351
|
export * from './StoreDocumentRequest';
|
|
@@ -439,13 +407,10 @@ export * from './TagType';
|
|
|
439
407
|
export * from './UpdateAssetForAssetableRequest';
|
|
440
408
|
export * from './UpdateAttributeRequest';
|
|
441
409
|
export * from './UpdateAttributeValueRequest';
|
|
442
|
-
export * from './UpdateCartRequest';
|
|
443
|
-
export * from './UpdateCustomerRequest';
|
|
444
410
|
export * from './UpdateDefinitionRequest';
|
|
445
411
|
export * from './UpdateDocumentRequest';
|
|
446
412
|
export * from './UpdateFilterOrderAttributeRequest';
|
|
447
413
|
export * from './UpdateFilterOrderAttributeRequestValuesInner';
|
|
448
|
-
export * from './UpdateItemCartRequest';
|
|
449
414
|
export * from './UpdateLabelRequest';
|
|
450
415
|
export * from './UpdateMenuItemRequest';
|
|
451
416
|
export * from './UpdateMenuRequest';
|