@digital8/lighting-illusions-ts-sdk 0.0.2730 → 0.0.2731

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 (78) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/dist/apis/StoreCreditsApi.d.ts +29 -0
  4. package/dist/apis/StoreCreditsApi.js +125 -0
  5. package/dist/apis/TransactionsApi.d.ts +12 -1
  6. package/dist/apis/TransactionsApi.js +46 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AddressFrontendResource.d.ts +1 -1
  10. package/dist/models/AddressFrontendResource.js +3 -1
  11. package/dist/models/AddressResource.d.ts +2 -2
  12. package/dist/models/AddressResource.js +6 -2
  13. package/dist/models/AdminOrderResource.d.ts +6 -0
  14. package/dist/models/AdminOrderResource.js +4 -0
  15. package/dist/models/CreateTransactionRequest.d.ts +1 -0
  16. package/dist/models/CreateTransactionRequest.js +2 -1
  17. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  18. package/dist/models/ExternalApiLogResource.js +1 -3
  19. package/dist/models/FrontendCartResource.d.ts +24 -0
  20. package/dist/models/FrontendCartResource.js +16 -0
  21. package/dist/models/OrderFulfillmentResource.d.ts +2 -2
  22. package/dist/models/OrderFulfillmentResource.js +3 -3
  23. package/dist/models/PaginatedStoreCreditListResourceResponse.d.ts +40 -0
  24. package/dist/models/PaginatedStoreCreditListResourceResponse.js +57 -0
  25. package/dist/models/PaymentMethod.d.ts +1 -0
  26. package/dist/models/PaymentMethod.js +2 -1
  27. package/dist/models/PaymentTotalsResource.d.ts +18 -0
  28. package/dist/models/PaymentTotalsResource.js +12 -0
  29. package/dist/models/SearchStoreCreditsRequest.d.ts +106 -0
  30. package/dist/models/SearchStoreCreditsRequest.js +86 -0
  31. package/dist/models/SearchTransactionsRequest.d.ts +3 -2
  32. package/dist/models/SearchTransactionsRequest.js +3 -2
  33. package/dist/models/StoreCreditListResource.d.ts +86 -0
  34. package/dist/models/StoreCreditListResource.js +80 -0
  35. package/dist/models/StoreCreditListResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/StoreCreditListResourceArrayResponse.js +50 -0
  37. package/dist/models/StoreFrontendResource.d.ts +1 -1
  38. package/dist/models/StoreFrontendResource.js +3 -1
  39. package/dist/models/StoreListResource.d.ts +2 -2
  40. package/dist/models/StoreListResource.js +4 -4
  41. package/dist/models/StoreResource.d.ts +1 -1
  42. package/dist/models/StoreResource.js +3 -1
  43. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  44. package/dist/models/StoreSpecialDateResource.js +3 -1
  45. package/dist/models/TransactionListResource.d.ts +3 -2
  46. package/dist/models/TransactionListResource.js +3 -2
  47. package/dist/models/TransactionLiteResource.d.ts +3 -2
  48. package/dist/models/TransactionLiteResource.js +3 -2
  49. package/dist/models/TransactionResource.d.ts +3 -2
  50. package/dist/models/TransactionResource.js +3 -2
  51. package/dist/models/index.d.ts +4 -0
  52. package/dist/models/index.js +4 -0
  53. package/package.json +1 -1
  54. package/src/apis/StoreCreditsApi.ts +69 -0
  55. package/src/apis/TransactionsApi.ts +44 -0
  56. package/src/apis/index.ts +1 -0
  57. package/src/models/AddressFrontendResource.ts +3 -2
  58. package/src/models/AddressResource.ts +6 -4
  59. package/src/models/AdminOrderResource.ts +9 -0
  60. package/src/models/CreateTransactionRequest.ts +2 -1
  61. package/src/models/ExternalApiLogResource.ts +2 -3
  62. package/src/models/FrontendCartResource.ts +36 -0
  63. package/src/models/OrderFulfillmentResource.ts +5 -5
  64. package/src/models/PaginatedStoreCreditListResourceResponse.ts +90 -0
  65. package/src/models/PaymentMethod.ts +2 -1
  66. package/src/models/PaymentTotalsResource.ts +27 -0
  67. package/src/models/SearchStoreCreditsRequest.ts +161 -0
  68. package/src/models/SearchTransactionsRequest.ts +12 -4
  69. package/src/models/StoreCreditListResource.ts +143 -0
  70. package/src/models/StoreCreditListResourceArrayResponse.ts +73 -0
  71. package/src/models/StoreFrontendResource.ts +3 -2
  72. package/src/models/StoreListResource.ts +5 -5
  73. package/src/models/StoreResource.ts +3 -2
  74. package/src/models/StoreSpecialDateResource.ts +4 -3
  75. package/src/models/TransactionListResource.ts +14 -4
  76. package/src/models/TransactionLiteResource.ts +14 -4
  77. package/src/models/TransactionResource.ts +14 -4
  78. package/src/models/index.ts +4 -0
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website?: string | null;
104
+ website: string;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -150,6 +150,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
150
150
  if (!('longitude' in value) || value['longitude'] === undefined) return false;
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
152
  if (!('email' in value) || value['email'] === undefined) return false;
153
+ if (!('website' in value) || value['website'] === undefined) return false;
153
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
154
155
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
155
156
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -176,7 +177,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
176
177
  'latitude': json['latitude'],
177
178
  'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
178
179
  'email': json['email'],
179
- 'website': json['website'] == null ? undefined : json['website'],
180
+ 'website': json['website'],
180
181
  'netsuiteId': json['netsuiteId'],
181
182
  'displayNetsuiteId': json['displayNetsuiteId'],
182
183
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
39
39
  hours: string;
40
40
  /**
41
41
  *
42
- * @type {string}
42
+ * @type {object}
43
43
  * @memberof StoreSpecialDateResource
44
44
  */
45
- date?: string | null;
45
+ date: object;
46
46
  /**
47
47
  *
48
48
  * @type {boolean}
@@ -69,6 +69,7 @@ export interface StoreSpecialDateResource {
69
69
  export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
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;
72
73
  if (!('closed' in value) || value['closed'] === undefined) return false;
73
74
  if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
74
75
  if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
88
89
  'id': json['id'] == null ? undefined : json['id'],
89
90
  'name': json['name'],
90
91
  'hours': json['hours'],
91
- 'date': json['date'] == null ? undefined : json['date'],
92
+ 'date': json['date'],
92
93
  'closed': json['closed'],
93
94
  'displayStartDate': json['displayStartDate'],
94
95
  'displayEndDate': json['displayEndDate'],
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PaymentMethod } from './PaymentMethod';
17
+ import {
18
+ PaymentMethodFromJSON,
19
+ PaymentMethodFromJSONTyped,
20
+ PaymentMethodToJSON,
21
+ PaymentMethodToJSONTyped,
22
+ } from './PaymentMethod';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -33,10 +41,10 @@ export interface TransactionListResource {
33
41
  paymentSource: string;
34
42
  /**
35
43
  *
36
- * @type {string}
44
+ * @type {PaymentMethod}
37
45
  * @memberof TransactionListResource
38
46
  */
39
- paymentMethod: string;
47
+ paymentMethod: PaymentMethod;
40
48
  /**
41
49
  *
42
50
  * @type {string}
@@ -111,6 +119,8 @@ export interface TransactionListResource {
111
119
  createdAt?: Date | null;
112
120
  }
113
121
 
122
+
123
+
114
124
  /**
115
125
  * Check if a given object implements the TransactionListResource interface.
116
126
  */
@@ -140,7 +150,7 @@ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscrimina
140
150
 
141
151
  'id': json['id'],
142
152
  'paymentSource': json['paymentSource'],
143
- 'paymentMethod': json['paymentMethod'],
153
+ 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
144
154
  'type': json['type'],
145
155
  'status': json['status'],
146
156
  'totalAmount': json['totalAmount'],
@@ -169,7 +179,7 @@ export function TransactionListResourceToJSONTyped(value?: TransactionListResour
169
179
 
170
180
  'id': value['id'],
171
181
  'paymentSource': value['paymentSource'],
172
- 'paymentMethod': value['paymentMethod'],
182
+ 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
173
183
  'type': value['type'],
174
184
  'status': value['status'],
175
185
  'totalAmount': value['totalAmount'],
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PaymentMethod } from './PaymentMethod';
17
+ import {
18
+ PaymentMethodFromJSON,
19
+ PaymentMethodFromJSONTyped,
20
+ PaymentMethodToJSON,
21
+ PaymentMethodToJSONTyped,
22
+ } from './PaymentMethod';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -33,10 +41,10 @@ export interface TransactionLiteResource {
33
41
  paymentSource: string;
34
42
  /**
35
43
  *
36
- * @type {string}
44
+ * @type {PaymentMethod}
37
45
  * @memberof TransactionLiteResource
38
46
  */
39
- paymentMethod: string;
47
+ paymentMethod: PaymentMethod;
40
48
  /**
41
49
  *
42
50
  * @type {string}
@@ -93,6 +101,8 @@ export interface TransactionLiteResource {
93
101
  createdAt?: Date | null;
94
102
  }
95
103
 
104
+
105
+
96
106
  /**
97
107
  * Check if a given object implements the TransactionLiteResource interface.
98
108
  */
@@ -121,7 +131,7 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
121
131
 
122
132
  'id': json['id'] == null ? undefined : json['id'],
123
133
  'paymentSource': json['paymentSource'],
124
- 'paymentMethod': json['paymentMethod'],
134
+ 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
125
135
  'paymentMethodThumbnail': json['paymentMethodThumbnail'],
126
136
  'type': json['type'],
127
137
  'status': json['status'],
@@ -147,7 +157,7 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
147
157
 
148
158
  'id': value['id'],
149
159
  'paymentSource': value['paymentSource'],
150
- 'paymentMethod': value['paymentMethod'],
160
+ 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
151
161
  'paymentMethodThumbnail': value['paymentMethodThumbnail'],
152
162
  'type': value['type'],
153
163
  'status': value['status'],
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PaymentMethod } from './PaymentMethod';
17
+ import {
18
+ PaymentMethodFromJSON,
19
+ PaymentMethodFromJSONTyped,
20
+ PaymentMethodToJSON,
21
+ PaymentMethodToJSONTyped,
22
+ } from './PaymentMethod';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -33,10 +41,10 @@ export interface TransactionResource {
33
41
  paymentSource: string;
34
42
  /**
35
43
  *
36
- * @type {string}
44
+ * @type {PaymentMethod}
37
45
  * @memberof TransactionResource
38
46
  */
39
- paymentMethod: string;
47
+ paymentMethod: PaymentMethod;
40
48
  /**
41
49
  *
42
50
  * @type {string}
@@ -123,6 +131,8 @@ export interface TransactionResource {
123
131
  createdAt?: Date | null;
124
132
  }
125
133
 
134
+
135
+
126
136
  /**
127
137
  * Check if a given object implements the TransactionResource interface.
128
138
  */
@@ -152,7 +162,7 @@ export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator:
152
162
 
153
163
  'id': json['id'] == null ? undefined : json['id'],
154
164
  'paymentSource': json['paymentSource'],
155
- 'paymentMethod': json['paymentMethod'],
165
+ 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
156
166
  'type': json['type'],
157
167
  'status': json['status'],
158
168
  'amount': json['amount'],
@@ -183,7 +193,7 @@ export function TransactionResourceToJSONTyped(value?: TransactionResource | nul
183
193
 
184
194
  'id': value['id'],
185
195
  'paymentSource': value['paymentSource'],
186
- 'paymentMethod': value['paymentMethod'],
196
+ 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
187
197
  'type': value['type'],
188
198
  'status': value['status'],
189
199
  'amount': value['amount'],
@@ -402,6 +402,7 @@ export * from './PaginatedSiteLiteResourceResponse';
402
402
  export * from './PaginatedSiteNotificationListResourceResponse';
403
403
  export * from './PaginatedSiteNotificationResourceResponse';
404
404
  export * from './PaginatedSiteResourceResponse';
405
+ export * from './PaginatedStoreCreditListResourceResponse';
405
406
  export * from './PaginatedStoreListResourceResponse';
406
407
  export * from './PaginatedSupplierFrontendResourceResponse';
407
408
  export * from './PaginatedSupplierListResourceResponse';
@@ -647,6 +648,7 @@ export * from './SearchReviewsRequest';
647
648
  export * from './SearchRolesRequest';
648
649
  export * from './SearchSiteNotificationsRequest';
649
650
  export * from './SearchSitesRequest';
651
+ export * from './SearchStoreCreditsRequest';
650
652
  export * from './SearchStoresRequest';
651
653
  export * from './SearchSuppliersRequest';
652
654
  export * from './SearchTagsRequest';
@@ -671,6 +673,8 @@ export * from './SiteResource';
671
673
  export * from './SiteResourceArrayResponse';
672
674
  export * from './SkuSearchProductChildRequest';
673
675
  export * from './SocialProvider';
676
+ export * from './StoreCreditListResource';
677
+ export * from './StoreCreditListResourceArrayResponse';
674
678
  export * from './StoreFrontendResource';
675
679
  export * from './StoreFrontendResourceArrayResponse';
676
680
  export * from './StoreListResource';