@digital8/lighting-illusions-ts-sdk 0.0.2125 → 0.0.2126
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 -14
- package/README.md +2 -9
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminOrderLineItemResource.d.ts +8 -1
- package/dist/models/AdminOrderLineItemResource.js +8 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +4 -4
- package/dist/models/OrderListResource.d.ts +8 -2
- package/dist/models/OrderListResource.js +7 -3
- package/dist/models/ProductChildLineItemLiteResource.d.ts +0 -18
- package/dist/models/ProductChildLineItemLiteResource.js +0 -12
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/docs/AdminOrderLineItemResource.md +2 -0
- package/docs/OrderListResource.md +4 -2
- package/docs/ProductChildLineItemLiteResource.md +0 -6
- package/package.json +1 -1
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminOrderLineItemResource.ts +19 -2
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/OrderFulfillmentResource.ts +5 -5
- package/src/models/OrderListResource.ts +14 -5
- package/src/models/ProductChildLineItemLiteResource.ts +0 -27
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreResource.ts +5 -5
- package/src/models/index.ts +0 -7
- package/dist/models/CartCouponLiteResource.d.ts +0 -56
- package/dist/models/CartCouponLiteResource.js +0 -67
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResource.d.ts +0 -138
- package/dist/models/FrontendCartResource.js +0 -119
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +0 -56
- package/dist/models/FrontendCartResourceCouponsInner.js +0 -57
- package/dist/models/FrontendLineItemResource.d.ts +0 -81
- package/dist/models/FrontendLineItemResource.js +0 -82
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendLineItemResourceArrayResponse.js +0 -50
- package/docs/CartCouponLiteResource.md +0 -42
- package/docs/CartCouponLiteResourceArrayResponse.md +0 -34
- package/docs/FrontendCartResource.md +0 -68
- package/docs/FrontendCartResourceArrayResponse.md +0 -34
- package/docs/FrontendCartResourceCouponsInner.md +0 -42
- package/docs/FrontendLineItemResource.md +0 -50
- package/docs/FrontendLineItemResourceArrayResponse.md +0 -34
- package/src/models/CartCouponLiteResource.ts +0 -102
- package/src/models/CartCouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResource.ts +0 -246
- package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResourceCouponsInner.ts +0 -97
- package/src/models/FrontendLineItemResource.ts +0 -145
- package/src/models/FrontendLineItemResourceArrayResponse.ts +0 -73
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LabelLiteResource } from './LabelLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
LabelLiteResourceFromJSON,
|
|
19
|
+
LabelLiteResourceFromJSONTyped,
|
|
20
|
+
LabelLiteResourceToJSON,
|
|
21
|
+
LabelLiteResourceToJSONTyped,
|
|
22
|
+
} from './LabelLiteResource';
|
|
16
23
|
import type { ProductChildLineItemLiteResource } from './ProductChildLineItemLiteResource';
|
|
17
24
|
import {
|
|
18
25
|
ProductChildLineItemLiteResourceFromJSON,
|
|
@@ -50,7 +57,13 @@ export interface AdminOrderLineItemResource {
|
|
|
50
57
|
* @type {number}
|
|
51
58
|
* @memberof AdminOrderLineItemResource
|
|
52
59
|
*/
|
|
53
|
-
labelId
|
|
60
|
+
labelId: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {LabelLiteResource}
|
|
64
|
+
* @memberof AdminOrderLineItemResource
|
|
65
|
+
*/
|
|
66
|
+
label: LabelLiteResource | null;
|
|
54
67
|
/**
|
|
55
68
|
*
|
|
56
69
|
* @type {number}
|
|
@@ -126,6 +139,8 @@ export function instanceOfAdminOrderLineItemResource(value: object): value is Ad
|
|
|
126
139
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
127
140
|
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
128
141
|
if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
|
|
142
|
+
if (!('labelId' in value) || value['labelId'] === undefined) return false;
|
|
143
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
129
144
|
if (!('productDiscount' in value) || value['productDiscount'] === undefined) return false;
|
|
130
145
|
if (!('totalDiscount' in value) || value['totalDiscount'] === undefined) return false;
|
|
131
146
|
if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined) return false;
|
|
@@ -153,7 +168,8 @@ export function AdminOrderLineItemResourceFromJSONTyped(json: any, ignoreDiscrim
|
|
|
153
168
|
'id': json['id'],
|
|
154
169
|
'quantity': json['quantity'],
|
|
155
170
|
'productPrice': json['productPrice'],
|
|
156
|
-
'labelId': json['labelId']
|
|
171
|
+
'labelId': json['labelId'],
|
|
172
|
+
'label': LabelLiteResourceFromJSON(json['label']),
|
|
157
173
|
'productDiscount': json['productDiscount'],
|
|
158
174
|
'totalDiscount': json['totalDiscount'],
|
|
159
175
|
'lineSubtotal': json['lineSubtotal'],
|
|
@@ -183,6 +199,7 @@ export function AdminOrderLineItemResourceToJSONTyped(value?: AdminOrderLineItem
|
|
|
183
199
|
'quantity': value['quantity'],
|
|
184
200
|
'productPrice': value['productPrice'],
|
|
185
201
|
'labelId': value['labelId'],
|
|
202
|
+
'label': LabelLiteResourceToJSON(value['label']),
|
|
186
203
|
'productDiscount': value['productDiscount'],
|
|
187
204
|
'totalDiscount': value['totalDiscount'],
|
|
188
205
|
'lineSubtotal': value['lineSubtotal'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ 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;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -50,7 +50,7 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
@@ -62,7 +62,7 @@ export interface OrderFulfillmentResource {
|
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof OrderFulfillmentResource
|
|
64
64
|
*/
|
|
65
|
-
trackingCompany
|
|
65
|
+
trackingCompany?: string | null;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -102,8 +102,8 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
102
102
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
|
+
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
105
106
|
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
106
|
-
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
107
107
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
108
108
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
109
109
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -123,9 +123,9 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
123
123
|
'id': json['id'],
|
|
124
124
|
'orderId': json['orderId'],
|
|
125
125
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
126
|
-
'trackingNumber': json['trackingNumber']
|
|
126
|
+
'trackingNumber': json['trackingNumber'],
|
|
127
127
|
'trackingUrl': json['trackingUrl'],
|
|
128
|
-
'trackingCompany': json['trackingCompany'],
|
|
128
|
+
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
129
129
|
'docnum': json['docnum'],
|
|
130
130
|
'netsuiteId': json['netsuiteId'],
|
|
131
131
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -123,10 +123,16 @@ export interface OrderListResource {
|
|
|
123
123
|
lineItems: Array<LineItemListResource> | null;
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
126
|
-
* @type {
|
|
126
|
+
* @type {TransactionLiteResource}
|
|
127
127
|
* @memberof OrderListResource
|
|
128
128
|
*/
|
|
129
|
-
|
|
129
|
+
latestTransaction: TransactionLiteResource | null;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {number}
|
|
133
|
+
* @memberof OrderListResource
|
|
134
|
+
*/
|
|
135
|
+
transactionsCount: number;
|
|
130
136
|
}
|
|
131
137
|
|
|
132
138
|
/**
|
|
@@ -141,7 +147,8 @@ export function instanceOfOrderListResource(value: object): value is OrderListRe
|
|
|
141
147
|
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
142
148
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
143
149
|
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
144
|
-
if (!('
|
|
150
|
+
if (!('latestTransaction' in value) || value['latestTransaction'] === undefined) return false;
|
|
151
|
+
if (!('transactionsCount' in value) || value['transactionsCount'] === undefined) return false;
|
|
145
152
|
return true;
|
|
146
153
|
}
|
|
147
154
|
|
|
@@ -166,7 +173,8 @@ export function OrderListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
166
173
|
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
167
174
|
'status': OrderStatusLiteResourceFromJSON(json['status']),
|
|
168
175
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
169
|
-
'
|
|
176
|
+
'latestTransaction': TransactionLiteResourceFromJSON(json['latestTransaction']),
|
|
177
|
+
'transactionsCount': json['transactionsCount'],
|
|
170
178
|
};
|
|
171
179
|
}
|
|
172
180
|
|
|
@@ -192,7 +200,8 @@ export function OrderListResourceToJSONTyped(value?: OrderListResource | null, i
|
|
|
192
200
|
'customer': CustomerListResourceToJSON(value['customer']),
|
|
193
201
|
'status': OrderStatusLiteResourceToJSON(value['status']),
|
|
194
202
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
195
|
-
'
|
|
203
|
+
'latestTransaction': TransactionLiteResourceToJSON(value['latestTransaction']),
|
|
204
|
+
'transactionsCount': value['transactionsCount'],
|
|
196
205
|
};
|
|
197
206
|
}
|
|
198
207
|
|
|
@@ -70,24 +70,6 @@ export interface ProductChildLineItemLiteResource {
|
|
|
70
70
|
* @memberof ProductChildLineItemLiteResource
|
|
71
71
|
*/
|
|
72
72
|
name: string;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof ProductChildLineItemLiteResource
|
|
77
|
-
*/
|
|
78
|
-
parentName: string;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof ProductChildLineItemLiteResource
|
|
83
|
-
*/
|
|
84
|
-
variantName: string;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof ProductChildLineItemLiteResource
|
|
89
|
-
*/
|
|
90
|
-
slug: string;
|
|
91
73
|
/**
|
|
92
74
|
*
|
|
93
75
|
* @type {number}
|
|
@@ -124,9 +106,6 @@ export function instanceOfProductChildLineItemLiteResource(value: object): value
|
|
|
124
106
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
125
107
|
if (!('modelNumber' in value) || value['modelNumber'] === undefined) return false;
|
|
126
108
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
127
|
-
if (!('parentName' in value) || value['parentName'] === undefined) return false;
|
|
128
|
-
if (!('variantName' in value) || value['variantName'] === undefined) return false;
|
|
129
|
-
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
130
109
|
if (!('stock' in value) || value['stock'] === undefined) return false;
|
|
131
110
|
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
132
111
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
@@ -150,9 +129,6 @@ export function ProductChildLineItemLiteResourceFromJSONTyped(json: any, ignoreD
|
|
|
150
129
|
'model': json['model'],
|
|
151
130
|
'modelNumber': json['modelNumber'],
|
|
152
131
|
'name': json['name'],
|
|
153
|
-
'parentName': json['parentName'],
|
|
154
|
-
'variantName': json['variantName'],
|
|
155
|
-
'slug': json['slug'],
|
|
156
132
|
'stock': json['stock'],
|
|
157
133
|
'salePrice': json['salePrice'],
|
|
158
134
|
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
@@ -177,9 +153,6 @@ export function ProductChildLineItemLiteResourceToJSONTyped(value?: ProductChild
|
|
|
177
153
|
'model': value['model'],
|
|
178
154
|
'modelNumber': value['modelNumber'],
|
|
179
155
|
'name': value['name'],
|
|
180
|
-
'parentName': value['parentName'],
|
|
181
|
-
'variantName': value['variantName'],
|
|
182
|
-
'slug': value['slug'],
|
|
183
156
|
'stock': value['stock'],
|
|
184
157
|
'salePrice': value['salePrice'],
|
|
185
158
|
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -110,9 +110,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
113
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
116
114
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
117
115
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
118
116
|
return true;
|
|
@@ -134,9 +132,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
134
132
|
'phone': json['phone'],
|
|
135
133
|
'longitude': json['longitude'],
|
|
136
134
|
'latitude': json['latitude'],
|
|
137
|
-
'tagLine': json['tagLine'],
|
|
135
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
138
136
|
'email': json['email'],
|
|
139
|
-
'website': json['website'],
|
|
137
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
140
138
|
'netsuiteId': json['netsuiteId'],
|
|
141
139
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
142
140
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -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}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website: string;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {number}
|
|
@@ -149,8 +149,8 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
152
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
154
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
155
155
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
156
156
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -175,9 +175,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
175
175
|
'phone': json['phone'],
|
|
176
176
|
'longitude': json['longitude'],
|
|
177
177
|
'latitude': json['latitude'],
|
|
178
|
-
'tagLine': json['tagLine'],
|
|
178
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
179
179
|
'email': json['email'],
|
|
180
|
-
'website': json['website']
|
|
180
|
+
'website': json['website'],
|
|
181
181
|
'netsuiteId': json['netsuiteId'],
|
|
182
182
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
183
183
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
package/src/models/index.ts
CHANGED
|
@@ -61,8 +61,6 @@ export * from './BlogFrontendResource';
|
|
|
61
61
|
export * from './BlogFrontendResourceArrayResponse';
|
|
62
62
|
export * from './BlogResource';
|
|
63
63
|
export * from './BlogResourceArrayResponse';
|
|
64
|
-
export * from './CartCouponLiteResource';
|
|
65
|
-
export * from './CartCouponLiteResourceArrayResponse';
|
|
66
64
|
export * from './CartCouponResource';
|
|
67
65
|
export * from './CartCouponResourceArrayResponse';
|
|
68
66
|
export * from './CartListResource';
|
|
@@ -168,15 +166,10 @@ export * from './ExternalApiLogResource';
|
|
|
168
166
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
169
167
|
export * from './ExternalApiProvider';
|
|
170
168
|
export * from './ExternalApiSyncStatus';
|
|
171
|
-
export * from './FrontendCartResource';
|
|
172
|
-
export * from './FrontendCartResourceArrayResponse';
|
|
173
|
-
export * from './FrontendCartResourceCouponsInner';
|
|
174
169
|
export * from './FrontendComponentLiteResource';
|
|
175
170
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
176
171
|
export * from './FrontendComponentResource';
|
|
177
172
|
export * from './FrontendComponentResourceArrayResponse';
|
|
178
|
-
export * from './FrontendLineItemResource';
|
|
179
|
-
export * from './FrontendLineItemResourceArrayResponse';
|
|
180
173
|
export * from './GenericResponse';
|
|
181
174
|
export * from './GetUniqueEndpointsRequest';
|
|
182
175
|
export * from './GlobalSearchCategoryResource';
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CartCouponLiteResource
|
|
16
|
-
*/
|
|
17
|
-
export interface CartCouponLiteResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof CartCouponLiteResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CartCouponLiteResource
|
|
28
|
-
*/
|
|
29
|
-
code: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CartCouponLiteResource
|
|
34
|
-
*/
|
|
35
|
-
name: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof CartCouponLiteResource
|
|
40
|
-
*/
|
|
41
|
-
discount: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CartCouponLiteResource
|
|
46
|
-
*/
|
|
47
|
-
appliesTo: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the CartCouponLiteResource interface.
|
|
51
|
-
*/
|
|
52
|
-
export declare function instanceOfCartCouponLiteResource(value: object): value is CartCouponLiteResource;
|
|
53
|
-
export declare function CartCouponLiteResourceFromJSON(json: any): CartCouponLiteResource;
|
|
54
|
-
export declare function CartCouponLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResource;
|
|
55
|
-
export declare function CartCouponLiteResourceToJSON(json: any): CartCouponLiteResource;
|
|
56
|
-
export declare function CartCouponLiteResourceToJSONTyped(value?: CartCouponLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfCartCouponLiteResource = instanceOfCartCouponLiteResource;
|
|
17
|
-
exports.CartCouponLiteResourceFromJSON = CartCouponLiteResourceFromJSON;
|
|
18
|
-
exports.CartCouponLiteResourceFromJSONTyped = CartCouponLiteResourceFromJSONTyped;
|
|
19
|
-
exports.CartCouponLiteResourceToJSON = CartCouponLiteResourceToJSON;
|
|
20
|
-
exports.CartCouponLiteResourceToJSONTyped = CartCouponLiteResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the CartCouponLiteResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfCartCouponLiteResource(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('code' in value) || value['code'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('discount' in value) || value['discount'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('appliesTo' in value) || value['appliesTo'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
function CartCouponLiteResourceFromJSON(json) {
|
|
38
|
-
return CartCouponLiteResourceFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
function CartCouponLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
-
if (json == null) {
|
|
42
|
-
return json;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'id': json['id'],
|
|
46
|
-
'code': json['code'],
|
|
47
|
-
'name': json['name'],
|
|
48
|
-
'discount': json['discount'],
|
|
49
|
-
'appliesTo': json['appliesTo'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function CartCouponLiteResourceToJSON(json) {
|
|
53
|
-
return CartCouponLiteResourceToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
function CartCouponLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
'id': value['id'],
|
|
62
|
-
'code': value['code'],
|
|
63
|
-
'name': value['name'],
|
|
64
|
-
'discount': value['discount'],
|
|
65
|
-
'appliesTo': value['appliesTo'],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { CartCouponLiteResource } from './CartCouponLiteResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CartCouponLiteResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface CartCouponLiteResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<CartCouponLiteResource>}
|
|
22
|
-
* @memberof CartCouponLiteResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<CartCouponLiteResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the CartCouponLiteResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfCartCouponLiteResourceArrayResponse(value: object): value is CartCouponLiteResourceArrayResponse;
|
|
30
|
-
export declare function CartCouponLiteResourceArrayResponseFromJSON(json: any): CartCouponLiteResourceArrayResponse;
|
|
31
|
-
export declare function CartCouponLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResourceArrayResponse;
|
|
32
|
-
export declare function CartCouponLiteResourceArrayResponseToJSON(json: any): CartCouponLiteResourceArrayResponse;
|
|
33
|
-
export declare function CartCouponLiteResourceArrayResponseToJSONTyped(value?: CartCouponLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfCartCouponLiteResourceArrayResponse = instanceOfCartCouponLiteResourceArrayResponse;
|
|
17
|
-
exports.CartCouponLiteResourceArrayResponseFromJSON = CartCouponLiteResourceArrayResponseFromJSON;
|
|
18
|
-
exports.CartCouponLiteResourceArrayResponseFromJSONTyped = CartCouponLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.CartCouponLiteResourceArrayResponseToJSON = CartCouponLiteResourceArrayResponseToJSON;
|
|
20
|
-
exports.CartCouponLiteResourceArrayResponseToJSONTyped = CartCouponLiteResourceArrayResponseToJSONTyped;
|
|
21
|
-
var CartCouponLiteResource_1 = require("./CartCouponLiteResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the CartCouponLiteResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfCartCouponLiteResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function CartCouponLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return CartCouponLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function CartCouponLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(CartCouponLiteResource_1.CartCouponLiteResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function CartCouponLiteResourceArrayResponseToJSON(json) {
|
|
40
|
-
return CartCouponLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function CartCouponLiteResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(CartCouponLiteResource_1.CartCouponLiteResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|