@digital8/lighting-illusions-ts-sdk 0.0.1776 → 0.0.1778
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 +6 -0
- package/README.md +11 -2
- package/dist/apis/CartsApi.d.ts +97 -1
- package/dist/apis/CartsApi.js +372 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AttachCouponCartRequest.d.ts +32 -0
- package/dist/models/AttachCouponCartRequest.js +51 -0
- package/dist/models/AttachItemCartRequest.d.ts +44 -0
- package/dist/models/AttachItemCartRequest.js +57 -0
- package/dist/models/CartResource.d.ts +2 -2
- package/dist/models/CartResource.js +3 -1
- package/dist/models/IndexCartRequest.d.ts +6 -6
- package/dist/models/IndexCartRequest.js +2 -2
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +7 -0
- package/dist/models/ProductChildSiteDetailLiteResource.js +5 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +6 -2
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +2 -6
- package/dist/models/UpdateItemCartRequest.d.ts +38 -0
- package/dist/models/UpdateItemCartRequest.js +53 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/AttachCouponCartRequest.md +34 -0
- package/docs/AttachItemCartRequest.md +38 -0
- package/docs/CartResource.md +1 -1
- package/docs/CartsApi.md +414 -0
- package/docs/IndexCartRequest.md +2 -2
- package/docs/ProductChildSiteDetailLiteResource.md +2 -0
- package/docs/UpdateItemCartRequest.md +36 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +342 -0
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AttachCouponCartRequest.ts +66 -0
- package/src/models/AttachItemCartRequest.ts +83 -0
- package/src/models/CartResource.ts +4 -3
- package/src/models/IndexCartRequest.ts +8 -8
- package/src/models/ProductChildSiteDetailLiteResource.ts +16 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +6 -4
- package/src/models/StoreResource.ts +4 -6
- package/src/models/UpdateItemCartRequest.ts +74 -0
- package/src/models/index.ts +3 -0
|
@@ -20,6 +20,13 @@ 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';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -69,6 +76,12 @@ export interface ProductChildSiteDetailLiteResource {
|
|
|
69
76
|
* @memberof ProductChildSiteDetailLiteResource
|
|
70
77
|
*/
|
|
71
78
|
isDisabled: boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {LabelResource}
|
|
82
|
+
* @memberof ProductChildSiteDetailLiteResource
|
|
83
|
+
*/
|
|
84
|
+
label: LabelResource | null;
|
|
72
85
|
}
|
|
73
86
|
|
|
74
87
|
/**
|
|
@@ -82,6 +95,7 @@ export function instanceOfProductChildSiteDetailLiteResource(value: object): val
|
|
|
82
95
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined) return false;
|
|
83
96
|
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
84
97
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
98
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
85
99
|
return true;
|
|
86
100
|
}
|
|
87
101
|
|
|
@@ -102,6 +116,7 @@ export function ProductChildSiteDetailLiteResourceFromJSONTyped(json: any, ignor
|
|
|
102
116
|
'rrpPrice': json['rrpPrice'],
|
|
103
117
|
'salePrice': json['salePrice'],
|
|
104
118
|
'isDisabled': json['isDisabled'],
|
|
119
|
+
'label': LabelResourceFromJSON(json['label']),
|
|
105
120
|
};
|
|
106
121
|
}
|
|
107
122
|
|
|
@@ -123,6 +138,7 @@ export function ProductChildSiteDetailLiteResourceToJSONTyped(value?: ProductChi
|
|
|
123
138
|
'rrpPrice': value['rrpPrice'],
|
|
124
139
|
'salePrice': value['salePrice'],
|
|
125
140
|
'isDisabled': value['isDisabled'],
|
|
141
|
+
'label': LabelResourceToJSON(value['label']),
|
|
126
142
|
};
|
|
127
143
|
}
|
|
128
144
|
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ 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;
|
|
110
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
112
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -130,7 +129,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
130
129
|
'siteId': json['siteId'],
|
|
131
130
|
'name': json['name'],
|
|
132
131
|
'email': json['email'],
|
|
133
|
-
'website': json['website'],
|
|
132
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
136
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}
|
|
@@ -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}
|
|
@@ -98,7 +98,9 @@ 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;
|
|
103
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
102
104
|
return true;
|
|
103
105
|
}
|
|
104
106
|
|
|
@@ -118,9 +120,9 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
118
120
|
'phone': json['phone'],
|
|
119
121
|
'longitude': json['longitude'],
|
|
120
122
|
'latitude': json['latitude'],
|
|
121
|
-
'tagLine': json['tag_line']
|
|
123
|
+
'tagLine': json['tag_line'],
|
|
122
124
|
'email': json['email'],
|
|
123
|
-
'website': json['website']
|
|
125
|
+
'website': json['website'],
|
|
124
126
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
125
127
|
};
|
|
126
128
|
}
|
|
@@ -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 | null;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {string}
|
|
@@ -137,9 +137,7 @@ 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
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
143
141
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
144
142
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
145
143
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -162,9 +160,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
162
160
|
'phone': json['phone'],
|
|
163
161
|
'longitude': json['longitude'],
|
|
164
162
|
'latitude': json['latitude'],
|
|
165
|
-
'tagLine': json['tag_line'],
|
|
163
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
166
164
|
'email': json['email'],
|
|
167
|
-
'website': json['website'],
|
|
165
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
168
166
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
169
167
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
170
168
|
'address': AddressResourceFromJSON(json['address']),
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateItemCartRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateItemCartRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UpdateItemCartRequest
|
|
26
|
+
*/
|
|
27
|
+
quantity: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof UpdateItemCartRequest
|
|
32
|
+
*/
|
|
33
|
+
productPrice?: number | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UpdateItemCartRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUpdateItemCartRequest(value: object): value is UpdateItemCartRequest {
|
|
40
|
+
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function UpdateItemCartRequestFromJSON(json: any): UpdateItemCartRequest {
|
|
45
|
+
return UpdateItemCartRequestFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function UpdateItemCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateItemCartRequest {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'quantity': json['quantity'],
|
|
55
|
+
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UpdateItemCartRequestToJSON(json: any): UpdateItemCartRequest {
|
|
60
|
+
return UpdateItemCartRequestToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function UpdateItemCartRequestToJSONTyped(value?: UpdateItemCartRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'quantity': value['quantity'],
|
|
71
|
+
'product_price': value['productPrice'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -20,11 +20,13 @@ export * from './AttachAssetsOverlayTemplateRequest';
|
|
|
20
20
|
export * from './AttachAttributeProductTypeRequest';
|
|
21
21
|
export * from './AttachAttributesProductRangeRequest';
|
|
22
22
|
export * from './AttachAttributesProductRangeRequestAttributesInner';
|
|
23
|
+
export * from './AttachCouponCartRequest';
|
|
23
24
|
export * from './AttachDocumentablesDocumentRequest';
|
|
24
25
|
export * from './AttachDocumentablesDocumentRequestDocumentablesInner';
|
|
25
26
|
export * from './AttachDocumentsProductChildRequest';
|
|
26
27
|
export * from './AttachDocumentsProductChildRequestDocumentsInner';
|
|
27
28
|
export * from './AttachDocumentsProductRangeRequest';
|
|
29
|
+
export * from './AttachItemCartRequest';
|
|
28
30
|
export * from './AttachProductTypeAttributeRequest';
|
|
29
31
|
export * from './AttachProductsProductCategoryRequest';
|
|
30
32
|
export * from './AttachStoresSupplierRequest';
|
|
@@ -434,6 +436,7 @@ export * from './UpdateDefinitionRequest';
|
|
|
434
436
|
export * from './UpdateDocumentRequest';
|
|
435
437
|
export * from './UpdateFilterOrderAttributeRequest';
|
|
436
438
|
export * from './UpdateFilterOrderAttributeRequestValuesInner';
|
|
439
|
+
export * from './UpdateItemCartRequest';
|
|
437
440
|
export * from './UpdateLabelRequest';
|
|
438
441
|
export * from './UpdateMenuItemRequest';
|
|
439
442
|
export * from './UpdateMenuRequest';
|