@digital8/lighting-illusions-ts-sdk 0.0.1856 → 0.0.1857
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 +10 -0
- package/README.md +8 -3
- package/dist/apis/CartsApi.d.ts +6 -6
- package/dist/apis/CartsApi.js +3 -5
- package/dist/models/AttachCouponCartRequest.d.ts +2 -2
- package/dist/models/AttachCouponCartRequest.js +3 -3
- package/dist/models/CartResource.d.ts +34 -4
- package/dist/models/CartResource.js +32 -10
- package/dist/models/DetachCouponCartRequest.d.ts +32 -0
- package/dist/models/DetachCouponCartRequest.js +51 -0
- package/dist/models/DiscountType.d.ts +26 -0
- package/dist/models/DiscountType.js +52 -0
- package/dist/models/DiscountValueType.d.ts +25 -0
- package/dist/models/DiscountValueType.js +51 -0
- package/dist/models/LineItemListResource.d.ts +27 -3
- package/dist/models/LineItemListResource.js +19 -3
- package/dist/models/ProductChildCartLiteResource.d.ts +70 -0
- package/dist/models/ProductChildCartLiteResource.js +77 -0
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- 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/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AttachCouponCartRequest.md +2 -2
- package/docs/CartResource.md +16 -6
- package/docs/CartsApi.md +8 -8
- package/docs/DetachCouponCartRequest.md +34 -0
- package/docs/DiscountType.md +32 -0
- package/docs/DiscountValueType.md +32 -0
- package/docs/LineItemListResource.md +9 -1
- package/docs/ProductChildCartLiteResource.md +46 -0
- package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +12 -14
- package/src/models/AttachCouponCartRequest.ts +5 -5
- package/src/models/CartResource.ts +60 -14
- package/src/models/DetachCouponCartRequest.ts +66 -0
- package/src/models/DiscountType.ts +54 -0
- package/src/models/DiscountValueType.ts +53 -0
- package/src/models/LineItemListResource.ts +46 -10
- package/src/models/ProductChildCartLiteResource.ts +135 -0
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,135 @@
|
|
|
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 { LabelResource } from './LabelResource';
|
|
17
|
+
import {
|
|
18
|
+
LabelResourceFromJSON,
|
|
19
|
+
LabelResourceFromJSONTyped,
|
|
20
|
+
LabelResourceToJSON,
|
|
21
|
+
LabelResourceToJSONTyped,
|
|
22
|
+
} from './LabelResource';
|
|
23
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
AssetLiteResourceFromJSON,
|
|
26
|
+
AssetLiteResourceFromJSONTyped,
|
|
27
|
+
AssetLiteResourceToJSON,
|
|
28
|
+
AssetLiteResourceToJSONTyped,
|
|
29
|
+
} from './AssetLiteResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ProductChildCartLiteResource
|
|
35
|
+
*/
|
|
36
|
+
export interface ProductChildCartLiteResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ProductChildCartLiteResource
|
|
41
|
+
*/
|
|
42
|
+
id: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ProductChildCartLiteResource
|
|
47
|
+
*/
|
|
48
|
+
parentId: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ProductChildCartLiteResource
|
|
53
|
+
*/
|
|
54
|
+
sku: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ProductChildCartLiteResource
|
|
59
|
+
*/
|
|
60
|
+
model: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ProductChildCartLiteResource
|
|
65
|
+
*/
|
|
66
|
+
name: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {AssetLiteResource}
|
|
70
|
+
* @memberof ProductChildCartLiteResource
|
|
71
|
+
*/
|
|
72
|
+
thumbnail: AssetLiteResource | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {LabelResource}
|
|
76
|
+
* @memberof ProductChildCartLiteResource
|
|
77
|
+
*/
|
|
78
|
+
label: LabelResource | null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the ProductChildCartLiteResource interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfProductChildCartLiteResource(value: object): value is ProductChildCartLiteResource {
|
|
85
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
86
|
+
if (!('parentId' in value) || value['parentId'] === undefined) return false;
|
|
87
|
+
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
88
|
+
if (!('model' in value) || value['model'] === undefined) return false;
|
|
89
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
90
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
91
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ProductChildCartLiteResourceFromJSON(json: any): ProductChildCartLiteResource {
|
|
96
|
+
return ProductChildCartLiteResourceFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResource {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'id': json['id'],
|
|
106
|
+
'parentId': json['parent_id'],
|
|
107
|
+
'sku': json['sku'],
|
|
108
|
+
'model': json['model'],
|
|
109
|
+
'name': json['name'],
|
|
110
|
+
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
111
|
+
'label': LabelResourceFromJSON(json['label']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ProductChildCartLiteResourceToJSON(json: any): ProductChildCartLiteResource {
|
|
116
|
+
return ProductChildCartLiteResourceToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCartLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'id': value['id'],
|
|
127
|
+
'parent_id': value['parentId'],
|
|
128
|
+
'sku': value['sku'],
|
|
129
|
+
'model': value['model'],
|
|
130
|
+
'name': value['name'],
|
|
131
|
+
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
132
|
+
'label': LabelResourceToJSON(value['label']),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductChildCartLiteResourceFromJSON,
|
|
19
|
+
ProductChildCartLiteResourceFromJSONTyped,
|
|
20
|
+
ProductChildCartLiteResourceToJSON,
|
|
21
|
+
ProductChildCartLiteResourceToJSONTyped,
|
|
22
|
+
} from './ProductChildCartLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductChildCartLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductChildCartLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductChildCartLiteResource>}
|
|
33
|
+
* @memberof ProductChildCartLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductChildCartLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse {
|
|
46
|
+
return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildCartLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse {
|
|
60
|
+
return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | 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(ProductChildCartLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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}
|
|
@@ -98,7 +98,6 @@ 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;
|
|
102
101
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
102
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
104
103
|
return true;
|
|
@@ -120,7 +119,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
120
119
|
'phone': json['phone'],
|
|
121
120
|
'longitude': json['longitude'],
|
|
122
121
|
'latitude': json['latitude'],
|
|
123
|
-
'tagLine': json['tag_line'],
|
|
122
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
124
123
|
'email': json['email'],
|
|
125
124
|
'website': json['website'],
|
|
126
125
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -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 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'],
|
package/src/models/index.ts
CHANGED
|
@@ -74,6 +74,7 @@ export * from './DestroyAttributeValueRequest';
|
|
|
74
74
|
export * from './DetachAccessoriesProductRangeRequest';
|
|
75
75
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
76
76
|
export * from './DetachAttributesProductRangeRequest';
|
|
77
|
+
export * from './DetachCouponCartRequest';
|
|
77
78
|
export * from './DetachDocumentablesDocumentRequest';
|
|
78
79
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
79
80
|
export * from './DetachDocumentsProductChildRequest';
|
|
@@ -81,6 +82,8 @@ export * from './DetachDocumentsProductRangeRequest';
|
|
|
81
82
|
export * from './DetachProductsProductCategoryRequest';
|
|
82
83
|
export * from './DetachStoresSupplierRequest';
|
|
83
84
|
export * from './DetachSuppliersStoreRequest';
|
|
85
|
+
export * from './DiscountType';
|
|
86
|
+
export * from './DiscountValueType';
|
|
84
87
|
export * from './DocumentFileForUploadResource';
|
|
85
88
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
86
89
|
export * from './DocumentFrontendResource';
|
|
@@ -265,6 +268,8 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
265
268
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
266
269
|
export * from './ProductChildAttributeResource';
|
|
267
270
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
271
|
+
export * from './ProductChildCartLiteResource';
|
|
272
|
+
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
268
273
|
export * from './ProductChildListResource';
|
|
269
274
|
export * from './ProductChildListResourceArrayResponse';
|
|
270
275
|
export * from './ProductChildLiteResource';
|