@digital8/lighting-illusions-ts-sdk 0.0.2034 → 0.0.2035

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 (125) hide show
  1. package/.openapi-generator/FILES +18 -8
  2. package/README.md +12 -7
  3. package/dist/apis/OrdersApi.d.ts +15 -0
  4. package/dist/apis/OrdersApi.js +59 -0
  5. package/dist/apis/ProductApi.d.ts +0 -16
  6. package/dist/apis/ProductApi.js +0 -59
  7. package/dist/apis/TransactionsApi.d.ts +3 -3
  8. package/dist/apis/TransactionsApi.js +2 -2
  9. package/dist/models/AddressFrontendResource.d.ts +1 -1
  10. package/dist/models/AddressFrontendResource.js +3 -1
  11. package/dist/models/AddressResource.d.ts +1 -7
  12. package/dist/models/AddressResource.js +3 -3
  13. package/dist/models/AdminNoteResource.d.ts +12 -0
  14. package/dist/models/AdminNoteResource.js +8 -0
  15. package/dist/models/AdminOrderResource.d.ts +3 -3
  16. package/dist/models/AdminOrderResource.js +3 -3
  17. package/dist/models/CartCouponLiteResource.d.ts +56 -0
  18. package/dist/models/CartCouponLiteResource.js +67 -0
  19. package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
  20. package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
  21. package/dist/models/CartResource.d.ts +3 -3
  22. package/dist/models/CartResource.js +3 -3
  23. package/dist/models/CreateTransactionRequest.d.ts +0 -6
  24. package/dist/models/CreateTransactionRequest.js +0 -2
  25. package/dist/models/CustomerListResource.d.ts +7 -0
  26. package/dist/models/CustomerListResource.js +5 -0
  27. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  28. package/dist/models/ExternalApiLogResource.js +3 -1
  29. package/dist/models/FrontendCartResource.d.ts +144 -0
  30. package/dist/models/FrontendCartResource.js +121 -0
  31. package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
  33. package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
  34. package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
  35. package/dist/models/FrontendLineItemResource.d.ts +81 -0
  36. package/dist/models/FrontendLineItemResource.js +82 -0
  37. package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
  39. package/dist/models/FrontendOrderResource.d.ts +168 -0
  40. package/dist/models/FrontendOrderResource.js +137 -0
  41. package/dist/models/FrontendOrderResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/FrontendOrderResourceArrayResponse.js +50 -0
  43. package/dist/models/PaymentSource.d.ts +1 -0
  44. package/dist/models/PaymentSource.js +2 -1
  45. package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
  46. package/dist/models/ProductChildLineItemLiteResource.js +12 -0
  47. package/dist/models/StoreFrontendResource.d.ts +1 -1
  48. package/dist/models/StoreFrontendResource.js +3 -1
  49. package/dist/models/StoreListResource.d.ts +1 -1
  50. package/dist/models/StoreListResource.js +3 -1
  51. package/dist/models/StoreResource.d.ts +2 -2
  52. package/dist/models/StoreResource.js +4 -4
  53. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  54. package/dist/models/StoreSpecialDateResource.js +3 -1
  55. package/dist/models/TransactionLiteResource.d.ts +0 -12
  56. package/dist/models/TransactionLiteResource.js +0 -4
  57. package/dist/models/UpdateOrderRequest.d.ts +0 -6
  58. package/dist/models/UpdateOrderRequest.js +0 -2
  59. package/dist/models/index.d.ts +9 -4
  60. package/dist/models/index.js +9 -4
  61. package/docs/AddressResource.md +0 -2
  62. package/docs/AdminNoteResource.md +4 -0
  63. package/docs/AdminOrderResource.md +1 -1
  64. package/docs/CartCouponLiteResource.md +42 -0
  65. package/docs/{TransactionListResourceArrayResponse.md → CartCouponLiteResourceArrayResponse.md} +5 -5
  66. package/docs/CartResource.md +1 -1
  67. package/docs/CreateTransactionRequest.md +0 -2
  68. package/docs/CustomerListResource.md +2 -0
  69. package/docs/FrontendCartResource.md +70 -0
  70. package/docs/{SkuSearchProductChildRequest.md → FrontendCartResourceArrayResponse.md} +6 -8
  71. package/docs/FrontendCartResourceCouponsInner.md +42 -0
  72. package/docs/FrontendLineItemResource.md +50 -0
  73. package/docs/{PaginatedTransactionListResourceResponse.md → FrontendLineItemResourceArrayResponse.md} +5 -7
  74. package/docs/FrontendOrderResource.md +78 -0
  75. package/docs/FrontendOrderResourceArrayResponse.md +34 -0
  76. package/docs/OrdersApi.md +66 -0
  77. package/docs/ProductApi.md +0 -66
  78. package/docs/ProductChildLineItemLiteResource.md +6 -0
  79. package/docs/StoreSpecialDateResource.md +1 -1
  80. package/docs/TransactionLiteResource.md +0 -4
  81. package/docs/TransactionsApi.md +3 -3
  82. package/docs/UpdateOrderRequest.md +0 -2
  83. package/package.json +1 -1
  84. package/src/apis/OrdersApi.ts +49 -0
  85. package/src/apis/ProductApi.ts +0 -49
  86. package/src/apis/TransactionsApi.ts +7 -7
  87. package/src/models/AddressFrontendResource.ts +3 -2
  88. package/src/models/AddressResource.ts +3 -10
  89. package/src/models/AdminNoteResource.ts +18 -0
  90. package/src/models/AdminOrderResource.ts +11 -11
  91. package/src/models/CartCouponLiteResource.ts +102 -0
  92. package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
  93. package/src/models/CartResource.ts +11 -11
  94. package/src/models/CreateTransactionRequest.ts +0 -8
  95. package/src/models/CustomerListResource.ts +16 -0
  96. package/src/models/ExternalApiLogResource.ts +3 -2
  97. package/src/models/FrontendCartResource.ts +254 -0
  98. package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
  99. package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
  100. package/src/models/FrontendLineItemResource.ts +145 -0
  101. package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
  102. package/src/models/FrontendOrderResource.ts +290 -0
  103. package/src/models/FrontendOrderResourceArrayResponse.ts +73 -0
  104. package/src/models/PaymentSource.ts +2 -1
  105. package/src/models/ProductChildLineItemLiteResource.ts +27 -0
  106. package/src/models/StoreFrontendResource.ts +3 -2
  107. package/src/models/StoreListResource.ts +3 -2
  108. package/src/models/StoreResource.ts +5 -5
  109. package/src/models/StoreSpecialDateResource.ts +4 -3
  110. package/src/models/TransactionLiteResource.ts +0 -16
  111. package/src/models/UpdateOrderRequest.ts +0 -8
  112. package/src/models/index.ts +9 -4
  113. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  114. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  115. package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
  116. package/dist/models/SkuSearchProductChildRequest.js +0 -55
  117. package/dist/models/TransactionListResource.d.ts +0 -116
  118. package/dist/models/TransactionListResource.js +0 -97
  119. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  120. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  121. package/docs/TransactionListResource.md +0 -62
  122. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  123. package/src/models/SkuSearchProductChildRequest.ts +0 -75
  124. package/src/models/TransactionListResource.ts +0 -187
  125. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
@@ -1,90 +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 { PagingMetadata } from './PagingMetadata';
17
- import {
18
- PagingMetadataFromJSON,
19
- PagingMetadataFromJSONTyped,
20
- PagingMetadataToJSON,
21
- PagingMetadataToJSONTyped,
22
- } from './PagingMetadata';
23
- import type { TransactionListResource } from './TransactionListResource';
24
- import {
25
- TransactionListResourceFromJSON,
26
- TransactionListResourceFromJSONTyped,
27
- TransactionListResourceToJSON,
28
- TransactionListResourceToJSONTyped,
29
- } from './TransactionListResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedTransactionListResourceResponse
35
- */
36
- export interface PaginatedTransactionListResourceResponse {
37
- /**
38
- *
39
- * @type {Array<TransactionListResource>}
40
- * @memberof PaginatedTransactionListResourceResponse
41
- */
42
- data: Array<TransactionListResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedTransactionListResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedTransactionListResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse {
55
- if (!('data' in value) || value['data'] === undefined) return false;
56
- if (!('meta' in value) || value['meta'] === undefined) return false;
57
- return true;
58
- }
59
-
60
- export function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse {
61
- return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse {
76
- return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
- if (value == null) {
81
- return value;
82
- }
83
-
84
- return {
85
-
86
- 'data': ((value['data'] as Array<any>).map(TransactionListResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -1,75 +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 SkuSearchProductChildRequest
20
- */
21
- export interface SkuSearchProductChildRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof SkuSearchProductChildRequest
26
- */
27
- sku: string;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof SkuSearchProductChildRequest
32
- */
33
- siteId: number;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the SkuSearchProductChildRequest interface.
38
- */
39
- export function instanceOfSkuSearchProductChildRequest(value: object): value is SkuSearchProductChildRequest {
40
- if (!('sku' in value) || value['sku'] === undefined) return false;
41
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function SkuSearchProductChildRequestFromJSON(json: any): SkuSearchProductChildRequest {
46
- return SkuSearchProductChildRequestFromJSONTyped(json, false);
47
- }
48
-
49
- export function SkuSearchProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkuSearchProductChildRequest {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'sku': json['sku'],
56
- 'siteId': json['site_id'],
57
- };
58
- }
59
-
60
- export function SkuSearchProductChildRequestToJSON(json: any): SkuSearchProductChildRequest {
61
- return SkuSearchProductChildRequestToJSONTyped(json, false);
62
- }
63
-
64
- export function SkuSearchProductChildRequestToJSONTyped(value?: SkuSearchProductChildRequest | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'sku': value['sku'],
72
- 'site_id': value['siteId'],
73
- };
74
- }
75
-
@@ -1,187 +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 TransactionListResource
20
- */
21
- export interface TransactionListResource {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof TransactionListResource
26
- */
27
- id: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof TransactionListResource
32
- */
33
- paymentSource: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof TransactionListResource
38
- */
39
- paymentMethod: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof TransactionListResource
44
- */
45
- type: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof TransactionListResource
50
- */
51
- status: string;
52
- /**
53
- *
54
- * @type {number}
55
- * @memberof TransactionListResource
56
- */
57
- totalAmount: number;
58
- /**
59
- *
60
- * @type {number}
61
- * @memberof TransactionListResource
62
- */
63
- surcharge: number;
64
- /**
65
- *
66
- * @type {number}
67
- * @memberof TransactionListResource
68
- */
69
- refundedAmount: number;
70
- /**
71
- *
72
- * @type {number}
73
- * @memberof TransactionListResource
74
- */
75
- unrefundedAmount: number;
76
- /**
77
- *
78
- * @type {string}
79
- * @memberof TransactionListResource
80
- */
81
- reference: string;
82
- /**
83
- *
84
- * @type {string}
85
- * @memberof TransactionListResource
86
- */
87
- description?: string | null;
88
- /**
89
- *
90
- * @type {string}
91
- * @memberof TransactionListResource
92
- */
93
- extendedData?: string | null;
94
- /**
95
- *
96
- * @type {string}
97
- * @memberof TransactionListResource
98
- */
99
- riskScore?: string | null;
100
- /**
101
- *
102
- * @type {string}
103
- * @memberof TransactionListResource
104
- */
105
- fraudDecision?: string | null;
106
- /**
107
- *
108
- * @type {Date}
109
- * @memberof TransactionListResource
110
- */
111
- createdAt?: Date | null;
112
- }
113
-
114
- /**
115
- * Check if a given object implements the TransactionListResource interface.
116
- */
117
- export function instanceOfTransactionListResource(value: object): value is TransactionListResource {
118
- if (!('id' in value) || value['id'] === undefined) return false;
119
- if (!('paymentSource' in value) || value['paymentSource'] === undefined) return false;
120
- if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
121
- if (!('type' in value) || value['type'] === undefined) return false;
122
- if (!('status' in value) || value['status'] === undefined) return false;
123
- if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
124
- if (!('surcharge' in value) || value['surcharge'] === undefined) return false;
125
- if (!('refundedAmount' in value) || value['refundedAmount'] === undefined) return false;
126
- if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined) return false;
127
- if (!('reference' in value) || value['reference'] === undefined) return false;
128
- return true;
129
- }
130
-
131
- export function TransactionListResourceFromJSON(json: any): TransactionListResource {
132
- return TransactionListResourceFromJSONTyped(json, false);
133
- }
134
-
135
- export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource {
136
- if (json == null) {
137
- return json;
138
- }
139
- return {
140
-
141
- 'id': json['id'],
142
- 'paymentSource': json['paymentSource'],
143
- 'paymentMethod': json['paymentMethod'],
144
- 'type': json['type'],
145
- 'status': json['status'],
146
- 'totalAmount': json['totalAmount'],
147
- 'surcharge': json['surcharge'],
148
- 'refundedAmount': json['refundedAmount'],
149
- 'unrefundedAmount': json['unrefundedAmount'],
150
- 'reference': json['reference'],
151
- 'description': json['description'] == null ? undefined : json['description'],
152
- 'extendedData': json['extendedData'] == null ? undefined : json['extendedData'],
153
- 'riskScore': json['riskScore'] == null ? undefined : json['riskScore'],
154
- 'fraudDecision': json['fraudDecision'] == null ? undefined : json['fraudDecision'],
155
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
156
- };
157
- }
158
-
159
- export function TransactionListResourceToJSON(json: any): TransactionListResource {
160
- return TransactionListResourceToJSONTyped(json, false);
161
- }
162
-
163
- export function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator: boolean = false): any {
164
- if (value == null) {
165
- return value;
166
- }
167
-
168
- return {
169
-
170
- 'id': value['id'],
171
- 'paymentSource': value['paymentSource'],
172
- 'paymentMethod': value['paymentMethod'],
173
- 'type': value['type'],
174
- 'status': value['status'],
175
- 'totalAmount': value['totalAmount'],
176
- 'surcharge': value['surcharge'],
177
- 'refundedAmount': value['refundedAmount'],
178
- 'unrefundedAmount': value['unrefundedAmount'],
179
- 'reference': value['reference'],
180
- 'description': value['description'],
181
- 'extendedData': value['extendedData'],
182
- 'riskScore': value['riskScore'],
183
- 'fraudDecision': value['fraudDecision'],
184
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
185
- };
186
- }
187
-
@@ -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 { TransactionListResource } from './TransactionListResource';
17
- import {
18
- TransactionListResourceFromJSON,
19
- TransactionListResourceFromJSONTyped,
20
- TransactionListResourceToJSON,
21
- TransactionListResourceToJSONTyped,
22
- } from './TransactionListResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface TransactionListResourceArrayResponse
28
- */
29
- export interface TransactionListResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<TransactionListResource>}
33
- * @memberof TransactionListResourceArrayResponse
34
- */
35
- data?: Array<TransactionListResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the TransactionListResourceArrayResponse interface.
40
- */
41
- export function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse {
46
- return TransactionListResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse {
60
- return TransactionListResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | 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(TransactionListResourceToJSON)),
71
- };
72
- }
73
-