@digital8/lighting-illusions-ts-sdk 0.0.1839 → 0.0.1841
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 -10
- package/README.md +3 -8
- package/dist/apis/CartsApi.d.ts +6 -6
- package/dist/apis/CartsApi.js +5 -3
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminCartResource.d.ts +4 -34
- package/dist/models/AdminCartResource.js +10 -32
- package/dist/models/AttachCouponCartRequest.d.ts +2 -2
- package/dist/models/AttachCouponCartRequest.js +3 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendCartResource.d.ts +0 -12
- package/dist/models/FrontendCartResource.js +0 -8
- package/dist/models/LineItemListResource.d.ts +3 -27
- package/dist/models/LineItemListResource.js +3 -19
- package/dist/models/StoreCartRequest.d.ts +2 -2
- package/dist/models/StoreCartRequest.js +2 -6
- package/dist/models/StoreCartRequestShippingAddress.d.ts +4 -4
- package/dist/models/StoreCartRequestShippingAddress.js +4 -12
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +2 -2
- package/dist/models/UpdateCartRequest.js +2 -6
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/docs/AdminCartResource.md +6 -16
- package/docs/AttachCouponCartRequest.md +2 -2
- package/docs/CartsApi.md +8 -8
- package/docs/FrontendCartResource.md +0 -4
- package/docs/LineItemListResource.md +1 -9
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +14 -12
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminCartResource.ts +14 -60
- package/src/models/AttachCouponCartRequest.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +0 -18
- package/src/models/LineItemListResource.ts +10 -46
- package/src/models/StoreCartRequest.ts +4 -6
- package/src/models/StoreCartRequestShippingAddress.ts +8 -12
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/UpdateCartRequest.ts +4 -6
- package/src/models/index.ts +0 -5
- 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/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/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/ProductChildCartLiteResource.md +0 -46
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/ProductChildCartLiteResource.ts +0 -135
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const DiscountType = {
|
|
21
|
-
Shipping: 'shipping',
|
|
22
|
-
Subtotal: 'subtotal',
|
|
23
|
-
Product: 'product'
|
|
24
|
-
} as const;
|
|
25
|
-
export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export function instanceOfDiscountType(value: any): boolean {
|
|
29
|
-
for (const key in DiscountType) {
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(DiscountType, key)) {
|
|
31
|
-
if (DiscountType[key as keyof typeof DiscountType] === value) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function DiscountTypeFromJSON(json: any): DiscountType {
|
|
40
|
-
return DiscountTypeFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function DiscountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountType {
|
|
44
|
-
return json as DiscountType;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function DiscountTypeToJSON(value?: DiscountType | null): any {
|
|
48
|
-
return value as any;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function DiscountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountType {
|
|
52
|
-
return value as DiscountType;
|
|
53
|
-
}
|
|
54
|
-
|
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const DiscountValueType = {
|
|
21
|
-
FixedValue: 'fixed_value',
|
|
22
|
-
Percentage: 'percentage'
|
|
23
|
-
} as const;
|
|
24
|
-
export type DiscountValueType = typeof DiscountValueType[keyof typeof DiscountValueType];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export function instanceOfDiscountValueType(value: any): boolean {
|
|
28
|
-
for (const key in DiscountValueType) {
|
|
29
|
-
if (Object.prototype.hasOwnProperty.call(DiscountValueType, key)) {
|
|
30
|
-
if (DiscountValueType[key as keyof typeof DiscountValueType] === value) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function DiscountValueTypeFromJSON(json: any): DiscountValueType {
|
|
39
|
-
return DiscountValueTypeFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function DiscountValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountValueType {
|
|
43
|
-
return json as DiscountValueType;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function DiscountValueTypeToJSON(value?: DiscountValueType | null): any {
|
|
47
|
-
return value as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function DiscountValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountValueType {
|
|
51
|
-
return value as DiscountValueType;
|
|
52
|
-
}
|
|
53
|
-
|
|
@@ -1,135 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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
|
-
|