@digital8/lighting-illusions-ts-sdk 0.0.1839 → 0.0.1840

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.
Files changed (82) hide show
  1. package/.openapi-generator/FILES +10 -10
  2. package/README.md +8 -8
  3. package/dist/apis/CartsApi.d.ts +6 -6
  4. package/dist/apis/CartsApi.js +5 -3
  5. package/dist/apis/CouponsApi.d.ts +33 -0
  6. package/dist/apis/CouponsApi.js +138 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +3 -1
  11. package/dist/models/AdminCartResource.d.ts +4 -34
  12. package/dist/models/AdminCartResource.js +10 -32
  13. package/dist/models/AttachCouponCartRequest.d.ts +2 -2
  14. package/dist/models/AttachCouponCartRequest.js +3 -3
  15. package/dist/models/FrontendCartResource.d.ts +0 -12
  16. package/dist/models/FrontendCartResource.js +0 -8
  17. package/dist/models/LineItemListResource.d.ts +3 -27
  18. package/dist/models/LineItemListResource.js +3 -19
  19. package/dist/models/StoreFrontendResource.d.ts +1 -1
  20. package/dist/models/StoreFrontendResource.js +1 -3
  21. package/dist/models/StoreListResource.d.ts +1 -1
  22. package/dist/models/StoreListResource.js +3 -1
  23. package/dist/models/StoreResource.d.ts +2 -2
  24. package/dist/models/StoreResource.js +2 -6
  25. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  26. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  27. package/dist/models/VerifyCouponRequest.d.ts +63 -0
  28. package/dist/models/VerifyCouponRequest.js +64 -0
  29. package/dist/models/VerifyCouponRequestProductsInner.d.ts +38 -0
  30. package/dist/models/VerifyCouponRequestProductsInner.js +51 -0
  31. package/dist/models/VerifyCouponResource.d.ts +38 -0
  32. package/dist/models/VerifyCouponResource.js +55 -0
  33. package/dist/models/VerifyCouponResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/VerifyCouponResourceArrayResponse.js +50 -0
  35. package/dist/models/index.d.ts +4 -5
  36. package/dist/models/index.js +4 -5
  37. package/docs/AdminCartResource.md +6 -16
  38. package/docs/AttachCouponCartRequest.md +2 -2
  39. package/docs/CartsApi.md +8 -8
  40. package/docs/CouponsApi.md +74 -0
  41. package/docs/FrontendCartResource.md +0 -4
  42. package/docs/LineItemListResource.md +1 -9
  43. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  44. package/docs/VerifyCouponRequest.md +44 -0
  45. package/docs/{DiscountValueType.md → VerifyCouponRequestProductsInner.md} +8 -4
  46. package/docs/{DetachCouponCartRequest.md → VerifyCouponResource.md} +8 -6
  47. package/docs/{DiscountType.md → VerifyCouponResourceArrayResponse.md} +6 -4
  48. package/package.json +1 -1
  49. package/src/apis/CartsApi.ts +14 -12
  50. package/src/apis/CouponsApi.ts +77 -0
  51. package/src/apis/index.ts +1 -0
  52. package/src/models/AddressResource.ts +3 -2
  53. package/src/models/AdminCartResource.ts +14 -60
  54. package/src/models/AttachCouponCartRequest.ts +5 -5
  55. package/src/models/FrontendCartResource.ts +0 -18
  56. package/src/models/LineItemListResource.ts +10 -46
  57. package/src/models/StoreFrontendResource.ts +2 -3
  58. package/src/models/StoreListResource.ts +3 -2
  59. package/src/models/StoreResource.ts +4 -6
  60. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  61. package/src/models/VerifyCouponRequest.ts +115 -0
  62. package/src/models/VerifyCouponRequestProductsInner.ts +73 -0
  63. package/src/models/VerifyCouponResource.ts +75 -0
  64. package/src/models/VerifyCouponResourceArrayResponse.ts +73 -0
  65. package/src/models/index.ts +4 -5
  66. package/dist/models/DetachCouponCartRequest.d.ts +0 -32
  67. package/dist/models/DetachCouponCartRequest.js +0 -51
  68. package/dist/models/DiscountType.d.ts +0 -26
  69. package/dist/models/DiscountType.js +0 -52
  70. package/dist/models/DiscountValueType.d.ts +0 -25
  71. package/dist/models/DiscountValueType.js +0 -51
  72. package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
  73. package/dist/models/ProductChildCartLiteResource.js +0 -77
  74. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
  75. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
  76. package/docs/ProductChildCartLiteResource.md +0 -46
  77. package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
  78. package/src/models/DetachCouponCartRequest.ts +0 -66
  79. package/src/models/DiscountType.ts +0 -54
  80. package/src/models/DiscountValueType.ts +0 -53
  81. package/src/models/ProductChildCartLiteResource.ts +0 -135
  82. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
@@ -1,46 +0,0 @@
1
-
2
- # ProductChildCartLiteResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `parentId` | number
11
- `sku` | string
12
- `model` | string
13
- `name` | string
14
- `thumbnail` | [AssetLiteResource](AssetLiteResource.md)
15
- `label` | [LabelResource](LabelResource.md)
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import type { ProductChildCartLiteResource } from '@digital8/lighting-illusions-ts-sdk'
21
-
22
- // TODO: Update the object below with actual values
23
- const example = {
24
- "id": null,
25
- "parentId": null,
26
- "sku": null,
27
- "model": null,
28
- "name": null,
29
- "thumbnail": null,
30
- "label": null,
31
- } satisfies ProductChildCartLiteResource
32
-
33
- console.log(example)
34
-
35
- // Convert the instance to a JSON string
36
- const exampleJSON: string = JSON.stringify(example)
37
- console.log(exampleJSON)
38
-
39
- // Parse the JSON string back to an object
40
- const exampleParsed = JSON.parse(exampleJSON) as ProductChildCartLiteResource
41
- console.log(exampleParsed)
42
- ```
43
-
44
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
-
46
-
@@ -1,34 +0,0 @@
1
-
2
- # ProductChildCartLiteResourceArrayResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array<ProductChildCartLiteResource>](ProductChildCartLiteResource.md)
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import type { ProductChildCartLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
-
16
- // TODO: Update the object below with actual values
17
- const example = {
18
- "data": null,
19
- } satisfies ProductChildCartLiteResourceArrayResponse
20
-
21
- console.log(example)
22
-
23
- // Convert the instance to a JSON string
24
- const exampleJSON: string = JSON.stringify(example)
25
- console.log(exampleJSON)
26
-
27
- // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as ProductChildCartLiteResourceArrayResponse
29
- console.log(exampleParsed)
30
- ```
31
-
32
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
-
34
-
@@ -1,66 +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
- /**
17
- *
18
- * @export
19
- * @interface DetachCouponCartRequest
20
- */
21
- export interface DetachCouponCartRequest {
22
- /**
23
- *
24
- * @type {Array<number>}
25
- * @memberof DetachCouponCartRequest
26
- */
27
- couponIds: Array<number>;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the DetachCouponCartRequest interface.
32
- */
33
- export function instanceOfDetachCouponCartRequest(value: object): value is DetachCouponCartRequest {
34
- if (!('couponIds' in value) || value['couponIds'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function DetachCouponCartRequestFromJSON(json: any): DetachCouponCartRequest {
39
- return DetachCouponCartRequestFromJSONTyped(json, false);
40
- }
41
-
42
- export function DetachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponCartRequest {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'couponIds': json['coupon_ids'],
49
- };
50
- }
51
-
52
- export function DetachCouponCartRequestToJSON(json: any): DetachCouponCartRequest {
53
- return DetachCouponCartRequestToJSONTyped(json, false);
54
- }
55
-
56
- export function DetachCouponCartRequestToJSONTyped(value?: DetachCouponCartRequest | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'coupon_ids': value['couponIds'],
64
- };
65
- }
66
-
@@ -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
-