@digital8/lighting-illusions-ts-sdk 0.0.2316 → 0.0.2317

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 (206) hide show
  1. package/.openapi-generator/FILES +68 -4
  2. package/README.md +44 -4
  3. package/dist/apis/AdminsApi.d.ts +116 -0
  4. package/dist/apis/AdminsApi.js +440 -0
  5. package/dist/apis/CustomersApi.d.ts +50 -0
  6. package/dist/apis/CustomersApi.js +182 -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 +1 -3
  11. package/dist/models/AddressType.d.ts +2 -0
  12. package/dist/models/AddressType.js +3 -1
  13. package/dist/models/AdminListResource.d.ts +52 -0
  14. package/dist/models/AdminListResource.js +61 -0
  15. package/dist/models/AdminListResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/AdminListResourceArrayResponse.js +50 -0
  17. package/dist/models/AdminLiteResource.d.ts +39 -0
  18. package/dist/models/AdminLiteResource.js +54 -0
  19. package/dist/models/AdminLiteResourceArrayResponse.d.ts +33 -0
  20. package/dist/models/AdminLiteResourceArrayResponse.js +50 -0
  21. package/dist/models/AdminOrderResource.d.ts +3 -2
  22. package/dist/models/AdminOrderResource.js +3 -2
  23. package/dist/models/AdminResource.d.ts +58 -0
  24. package/dist/models/AdminResource.js +63 -0
  25. package/dist/models/AdminResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/AdminResourceArrayResponse.js +50 -0
  27. package/dist/models/CartCouponResource.d.ts +50 -0
  28. package/dist/models/{AppliedCouponResource.js → CartCouponResource.js} +13 -13
  29. package/dist/models/CartCouponResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/CartCouponResourceArrayResponse.js +50 -0
  31. package/dist/models/CheckEmailFrontendResource.d.ts +38 -0
  32. package/dist/models/CheckEmailFrontendResource.js +53 -0
  33. package/dist/models/CheckEmailFrontendResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/CheckEmailFrontendResourceArrayResponse.js +50 -0
  35. package/dist/models/CreateAdminUserRequest.d.ts +62 -0
  36. package/dist/models/CreateAdminUserRequest.js +69 -0
  37. package/dist/models/CreateCustomerRequest.d.ts +18 -6
  38. package/dist/models/CreateCustomerRequest.js +12 -6
  39. package/dist/models/CustomerAuthResponseResource.d.ts +39 -0
  40. package/dist/models/CustomerAuthResponseResource.js +56 -0
  41. package/dist/models/CustomerAuthResponseResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/CustomerAuthResponseResourceArrayResponse.js +50 -0
  43. package/dist/models/CustomerFrontendResource.d.ts +70 -0
  44. package/dist/models/CustomerFrontendResource.js +75 -0
  45. package/dist/models/CustomerFrontendResourceArrayResponse.d.ts +33 -0
  46. package/dist/models/CustomerFrontendResourceArrayResponse.js +50 -0
  47. package/dist/models/CustomerListResource.d.ts +21 -8
  48. package/dist/models/CustomerListResource.js +20 -13
  49. package/dist/models/CustomerResource.d.ts +34 -9
  50. package/dist/models/CustomerResource.js +27 -16
  51. package/dist/models/CustomerSocialLinkableResource.d.ts +38 -0
  52. package/dist/models/CustomerSocialLinkableResource.js +55 -0
  53. package/dist/models/CustomerSocialLinkableResourceArrayResponse.d.ts +33 -0
  54. package/dist/models/CustomerSocialLinkableResourceArrayResponse.js +50 -0
  55. package/dist/models/CustomerType.d.ts +25 -0
  56. package/dist/models/CustomerType.js +51 -0
  57. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  58. package/dist/models/ExternalApiLogResource.js +1 -3
  59. package/dist/models/FrontendOrderResource.d.ts +3 -3
  60. package/dist/models/FrontendOrderResource.js +3 -3
  61. package/dist/models/OrderFulfillmentResource.d.ts +1 -1
  62. package/dist/models/OrderFulfillmentResource.js +1 -3
  63. package/dist/models/PaginatedAdminListResourceResponse.d.ts +40 -0
  64. package/dist/models/PaginatedAdminListResourceResponse.js +57 -0
  65. package/dist/models/PaginatedAdminLiteResourceResponse.d.ts +40 -0
  66. package/dist/models/PaginatedAdminLiteResourceResponse.js +57 -0
  67. package/dist/models/PaginatedRoleLiteResourceResponse.d.ts +40 -0
  68. package/dist/models/PaginatedRoleLiteResourceResponse.js +57 -0
  69. package/dist/models/RoleLiteResource.d.ts +38 -0
  70. package/dist/models/RoleLiteResource.js +53 -0
  71. package/dist/models/RoleLiteResourceArrayResponse.d.ts +33 -0
  72. package/dist/models/RoleLiteResourceArrayResponse.js +50 -0
  73. package/dist/models/SearchAdminUsersRequest.d.ts +112 -0
  74. package/dist/models/SearchAdminUsersRequest.js +88 -0
  75. package/dist/models/SearchAllAdminUsersRequest.d.ts +82 -0
  76. package/dist/models/SearchAllAdminUsersRequest.js +78 -0
  77. package/dist/models/SearchAllCustomersRequest.d.ts +103 -0
  78. package/dist/models/SearchAllCustomersRequest.js +87 -0
  79. package/dist/models/SearchCustomersRequest.d.ts +31 -3
  80. package/dist/models/SearchCustomersRequest.js +15 -3
  81. package/dist/models/SignUpType.d.ts +29 -0
  82. package/dist/models/SignUpType.js +55 -0
  83. package/dist/models/SocialProvider.d.ts +26 -0
  84. package/dist/models/SocialProvider.js +52 -0
  85. package/dist/models/StoreFrontendResource.d.ts +1 -1
  86. package/dist/models/StoreFrontendResource.js +3 -1
  87. package/dist/models/StoreListResource.d.ts +2 -2
  88. package/dist/models/StoreListResource.js +6 -2
  89. package/dist/models/StoreResource.d.ts +1 -1
  90. package/dist/models/StoreResource.js +3 -1
  91. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  92. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  93. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  94. package/dist/models/StoreSpecialDateResource.js +3 -1
  95. package/dist/models/UpdateAdminUserRequest.d.ts +62 -0
  96. package/dist/models/UpdateAdminUserRequest.js +67 -0
  97. package/dist/models/UpdateCustomerRequest.d.ts +62 -0
  98. package/dist/models/UpdateCustomerRequest.js +65 -0
  99. package/dist/models/UserLiteResource.d.ts +62 -0
  100. package/dist/models/UserLiteResource.js +69 -0
  101. package/dist/models/UserLiteResourceArrayResponse.d.ts +33 -0
  102. package/dist/models/UserLiteResourceArrayResponse.js +50 -0
  103. package/dist/models/UserType.d.ts +25 -0
  104. package/dist/models/UserType.js +51 -0
  105. package/dist/models/index.d.ts +33 -2
  106. package/dist/models/index.js +33 -2
  107. package/docs/AdminListResource.md +40 -0
  108. package/docs/{AppliedCouponResourceArrayResponse.md → AdminListResourceArrayResponse.md} +5 -5
  109. package/docs/AdminLiteResource.md +36 -0
  110. package/docs/AdminLiteResourceArrayResponse.md +34 -0
  111. package/docs/AdminOrderResource.md +1 -1
  112. package/docs/AdminResource.md +42 -0
  113. package/docs/AdminResourceArrayResponse.md +34 -0
  114. package/docs/AdminsApi.md +407 -0
  115. package/docs/{AppliedCouponResource.md → CartCouponResource.md} +4 -4
  116. package/docs/CartCouponResourceArrayResponse.md +34 -0
  117. package/docs/CheckEmailFrontendResource.md +36 -0
  118. package/docs/CheckEmailFrontendResourceArrayResponse.md +34 -0
  119. package/docs/CreateAdminUserRequest.md +44 -0
  120. package/docs/CreateCustomerRequest.md +8 -4
  121. package/docs/CustomerAuthResponseResource.md +36 -0
  122. package/docs/CustomerAuthResponseResourceArrayResponse.md +34 -0
  123. package/docs/CustomerFrontendResource.md +46 -0
  124. package/docs/CustomerFrontendResourceArrayResponse.md +34 -0
  125. package/docs/CustomerListResource.md +12 -8
  126. package/docs/CustomerResource.md +17 -9
  127. package/docs/CustomerSocialLinkableResource.md +36 -0
  128. package/docs/CustomerSocialLinkableResourceArrayResponse.md +34 -0
  129. package/docs/CustomerType.md +32 -0
  130. package/docs/CustomersApi.md +201 -0
  131. package/docs/FrontendOrderResource.md +1 -1
  132. package/docs/PaginatedAdminListResourceResponse.md +36 -0
  133. package/docs/PaginatedAdminLiteResourceResponse.md +36 -0
  134. package/docs/PaginatedRoleLiteResourceResponse.md +36 -0
  135. package/docs/RoleLiteResource.md +36 -0
  136. package/docs/RoleLiteResourceArrayResponse.md +34 -0
  137. package/docs/SearchAdminUsersRequest.md +54 -0
  138. package/docs/SearchAllAdminUsersRequest.md +44 -0
  139. package/docs/SearchAllCustomersRequest.md +50 -0
  140. package/docs/SearchCustomersRequest.md +8 -0
  141. package/docs/SignUpType.md +32 -0
  142. package/docs/SocialProvider.md +32 -0
  143. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  144. package/docs/StoreSpecialDateResource.md +1 -1
  145. package/docs/UpdateAdminUserRequest.md +44 -0
  146. package/docs/UpdateCustomerRequest.md +44 -0
  147. package/docs/UserLiteResource.md +44 -0
  148. package/docs/UserLiteResourceArrayResponse.md +34 -0
  149. package/docs/UserType.md +32 -0
  150. package/package.json +1 -1
  151. package/src/apis/AdminsApi.ts +345 -0
  152. package/src/apis/CustomersApi.ts +166 -0
  153. package/src/apis/index.ts +1 -0
  154. package/src/models/AddressResource.ts +2 -3
  155. package/src/models/AddressType.ts +3 -1
  156. package/src/models/AdminListResource.ts +106 -0
  157. package/src/models/AdminListResourceArrayResponse.ts +73 -0
  158. package/src/models/AdminLiteResource.ts +82 -0
  159. package/src/models/AdminLiteResourceArrayResponse.ts +73 -0
  160. package/src/models/AdminOrderResource.ts +11 -4
  161. package/src/models/AdminResource.ts +114 -0
  162. package/src/models/AdminResourceArrayResponse.ts +73 -0
  163. package/src/models/{AppliedCouponResource.ts → CartCouponResource.ts} +14 -14
  164. package/src/models/CartCouponResourceArrayResponse.ts +73 -0
  165. package/src/models/CheckEmailFrontendResource.ts +74 -0
  166. package/src/models/CheckEmailFrontendResourceArrayResponse.ts +73 -0
  167. package/src/models/CreateAdminUserRequest.ts +110 -0
  168. package/src/models/CreateCustomerRequest.ts +28 -11
  169. package/src/models/CustomerAuthResponseResource.ts +83 -0
  170. package/src/models/CustomerAuthResponseResourceArrayResponse.ts +73 -0
  171. package/src/models/CustomerFrontendResource.ts +134 -0
  172. package/src/models/CustomerFrontendResourceArrayResponse.ts +73 -0
  173. package/src/models/CustomerListResource.ts +44 -20
  174. package/src/models/CustomerResource.ts +68 -28
  175. package/src/models/CustomerSocialLinkableResource.ts +75 -0
  176. package/src/models/CustomerSocialLinkableResourceArrayResponse.ts +73 -0
  177. package/src/models/CustomerType.ts +53 -0
  178. package/src/models/ExternalApiLogResource.ts +2 -3
  179. package/src/models/FrontendOrderResource.ts +11 -11
  180. package/src/models/OrderFulfillmentResource.ts +2 -3
  181. package/src/models/PaginatedAdminListResourceResponse.ts +90 -0
  182. package/src/models/PaginatedAdminLiteResourceResponse.ts +90 -0
  183. package/src/models/PaginatedRoleLiteResourceResponse.ts +90 -0
  184. package/src/models/RoleLiteResource.ts +74 -0
  185. package/src/models/RoleLiteResourceArrayResponse.ts +73 -0
  186. package/src/models/SearchAdminUsersRequest.ts +169 -0
  187. package/src/models/SearchAllAdminUsersRequest.ts +129 -0
  188. package/src/models/SearchAllCustomersRequest.ts +156 -0
  189. package/src/models/SearchCustomersRequest.ts +39 -3
  190. package/src/models/SignUpType.ts +57 -0
  191. package/src/models/SocialProvider.ts +54 -0
  192. package/src/models/StoreFrontendResource.ts +3 -2
  193. package/src/models/StoreListResource.ts +6 -4
  194. package/src/models/StoreResource.ts +3 -2
  195. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  196. package/src/models/StoreSpecialDateResource.ts +4 -3
  197. package/src/models/UpdateAdminUserRequest.ts +109 -0
  198. package/src/models/UpdateCustomerRequest.ts +108 -0
  199. package/src/models/UserLiteResource.ts +110 -0
  200. package/src/models/UserLiteResourceArrayResponse.ts +73 -0
  201. package/src/models/UserType.ts +53 -0
  202. package/src/models/index.ts +33 -2
  203. package/dist/models/AppliedCouponResource.d.ts +0 -50
  204. package/dist/models/AppliedCouponResourceArrayResponse.d.ts +0 -33
  205. package/dist/models/AppliedCouponResourceArrayResponse.js +0 -50
  206. package/src/models/AppliedCouponResourceArrayResponse.ts +0 -73
@@ -0,0 +1,407 @@
1
+ # AdminsApi
2
+
3
+ All URIs are relative to *http://localhost/api*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**destroyAdminUser**](AdminsApi.md#destroyadminuser) | **DELETE** /admin-api/admins/{admin}/delete | Auto-generated: destroyAdminUser |
8
+ | [**getAllAdminUser**](AdminsApi.md#getalladminuser) | **POST** /admin-api/admins/all | Auto-generated: getAllAdminUser |
9
+ | [**indexAdminUser**](AdminsApi.md#indexadminuser) | **POST** /admin-api/admins/list | Auto-generated: indexAdminUser |
10
+ | [**showAdminUser**](AdminsApi.md#showadminuser) | **GET** /admin-api/admins/{admin} | Auto-generated: showAdminUser |
11
+ | [**storeAdminUser**](AdminsApi.md#storeadminuser) | **POST** /admin-api/admins/create | Auto-generated: storeAdminUser |
12
+ | [**updateAdminUser**](AdminsApi.md#updateadminuseroperation) | **PUT** /admin-api/admins/{admin}/update | Auto-generated: updateAdminUser |
13
+
14
+
15
+
16
+ ## destroyAdminUser
17
+
18
+ > GenericResponse destroyAdminUser(admin)
19
+
20
+ Auto-generated: destroyAdminUser
21
+
22
+ ### Example
23
+
24
+ ```ts
25
+ import {
26
+ Configuration,
27
+ AdminsApi,
28
+ } from '@digital8/lighting-illusions-ts-sdk';
29
+ import type { DestroyAdminUserRequest } from '@digital8/lighting-illusions-ts-sdk';
30
+
31
+ async function example() {
32
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
33
+ const api = new AdminsApi();
34
+
35
+ const body = {
36
+ // number | The id of the admin
37
+ admin: 56,
38
+ } satisfies DestroyAdminUserRequest;
39
+
40
+ try {
41
+ const data = await api.destroyAdminUser(body);
42
+ console.log(data);
43
+ } catch (error) {
44
+ console.error(error);
45
+ }
46
+ }
47
+
48
+ // Run the test
49
+ example().catch(console.error);
50
+ ```
51
+
52
+ ### Parameters
53
+
54
+
55
+ | Name | Type | Description | Notes |
56
+ |------------- | ------------- | ------------- | -------------|
57
+ | **admin** | `number` | The id of the admin | [Defaults to `undefined`] |
58
+
59
+ ### Return type
60
+
61
+ [**GenericResponse**](GenericResponse.md)
62
+
63
+ ### Authorization
64
+
65
+ No authorization required
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: Not defined
70
+ - **Accept**: `application/json`
71
+
72
+
73
+ ### HTTP response details
74
+ | Status code | Description | Response headers |
75
+ |-------------|-------------|------------------|
76
+ | **200** | \\JsonResponse | - |
77
+
78
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
79
+
80
+
81
+ ## getAllAdminUser
82
+
83
+ > AdminLiteResourceArrayResponse getAllAdminUser(searchAllAdminUsersRequest)
84
+
85
+ Auto-generated: getAllAdminUser
86
+
87
+ ### Example
88
+
89
+ ```ts
90
+ import {
91
+ Configuration,
92
+ AdminsApi,
93
+ } from '@digital8/lighting-illusions-ts-sdk';
94
+ import type { GetAllAdminUserRequest } from '@digital8/lighting-illusions-ts-sdk';
95
+
96
+ async function example() {
97
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
98
+ const api = new AdminsApi();
99
+
100
+ const body = {
101
+ // SearchAllAdminUsersRequest (optional)
102
+ searchAllAdminUsersRequest: ...,
103
+ } satisfies GetAllAdminUserRequest;
104
+
105
+ try {
106
+ const data = await api.getAllAdminUser(body);
107
+ console.log(data);
108
+ } catch (error) {
109
+ console.error(error);
110
+ }
111
+ }
112
+
113
+ // Run the test
114
+ example().catch(console.error);
115
+ ```
116
+
117
+ ### Parameters
118
+
119
+
120
+ | Name | Type | Description | Notes |
121
+ |------------- | ------------- | ------------- | -------------|
122
+ | **searchAllAdminUsersRequest** | [SearchAllAdminUsersRequest](SearchAllAdminUsersRequest.md) | | [Optional] |
123
+
124
+ ### Return type
125
+
126
+ [**AdminLiteResourceArrayResponse**](AdminLiteResourceArrayResponse.md)
127
+
128
+ ### Authorization
129
+
130
+ No authorization required
131
+
132
+ ### HTTP request headers
133
+
134
+ - **Content-Type**: `application/json`
135
+ - **Accept**: `application/json`
136
+
137
+
138
+ ### HTTP response details
139
+ | Status code | Description | Response headers |
140
+ |-------------|-------------|------------------|
141
+ | **200** | Successful resource response | - |
142
+
143
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
144
+
145
+
146
+ ## indexAdminUser
147
+
148
+ > PaginatedAdminListResourceResponse indexAdminUser(searchAdminUsersRequest)
149
+
150
+ Auto-generated: indexAdminUser
151
+
152
+ ### Example
153
+
154
+ ```ts
155
+ import {
156
+ Configuration,
157
+ AdminsApi,
158
+ } from '@digital8/lighting-illusions-ts-sdk';
159
+ import type { IndexAdminUserRequest } from '@digital8/lighting-illusions-ts-sdk';
160
+
161
+ async function example() {
162
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
163
+ const api = new AdminsApi();
164
+
165
+ const body = {
166
+ // SearchAdminUsersRequest (optional)
167
+ searchAdminUsersRequest: ...,
168
+ } satisfies IndexAdminUserRequest;
169
+
170
+ try {
171
+ const data = await api.indexAdminUser(body);
172
+ console.log(data);
173
+ } catch (error) {
174
+ console.error(error);
175
+ }
176
+ }
177
+
178
+ // Run the test
179
+ example().catch(console.error);
180
+ ```
181
+
182
+ ### Parameters
183
+
184
+
185
+ | Name | Type | Description | Notes |
186
+ |------------- | ------------- | ------------- | -------------|
187
+ | **searchAdminUsersRequest** | [SearchAdminUsersRequest](SearchAdminUsersRequest.md) | | [Optional] |
188
+
189
+ ### Return type
190
+
191
+ [**PaginatedAdminListResourceResponse**](PaginatedAdminListResourceResponse.md)
192
+
193
+ ### Authorization
194
+
195
+ No authorization required
196
+
197
+ ### HTTP request headers
198
+
199
+ - **Content-Type**: `application/json`
200
+ - **Accept**: `application/json`
201
+
202
+
203
+ ### HTTP response details
204
+ | Status code | Description | Response headers |
205
+ |-------------|-------------|------------------|
206
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\AdminListResource[]>> | - |
207
+
208
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
209
+
210
+
211
+ ## showAdminUser
212
+
213
+ > AdminResource showAdminUser(admin)
214
+
215
+ Auto-generated: showAdminUser
216
+
217
+ ### Example
218
+
219
+ ```ts
220
+ import {
221
+ Configuration,
222
+ AdminsApi,
223
+ } from '@digital8/lighting-illusions-ts-sdk';
224
+ import type { ShowAdminUserRequest } from '@digital8/lighting-illusions-ts-sdk';
225
+
226
+ async function example() {
227
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
228
+ const api = new AdminsApi();
229
+
230
+ const body = {
231
+ // number | The id of the admin
232
+ admin: 56,
233
+ } satisfies ShowAdminUserRequest;
234
+
235
+ try {
236
+ const data = await api.showAdminUser(body);
237
+ console.log(data);
238
+ } catch (error) {
239
+ console.error(error);
240
+ }
241
+ }
242
+
243
+ // Run the test
244
+ example().catch(console.error);
245
+ ```
246
+
247
+ ### Parameters
248
+
249
+
250
+ | Name | Type | Description | Notes |
251
+ |------------- | ------------- | ------------- | -------------|
252
+ | **admin** | `number` | The id of the admin | [Defaults to `undefined`] |
253
+
254
+ ### Return type
255
+
256
+ [**AdminResource**](AdminResource.md)
257
+
258
+ ### Authorization
259
+
260
+ No authorization required
261
+
262
+ ### HTTP request headers
263
+
264
+ - **Content-Type**: Not defined
265
+ - **Accept**: `application/json`
266
+
267
+
268
+ ### HTTP response details
269
+ | Status code | Description | Response headers |
270
+ |-------------|-------------|------------------|
271
+ | **200** | Successful resource response | - |
272
+
273
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
274
+
275
+
276
+ ## storeAdminUser
277
+
278
+ > AdminResource storeAdminUser(createAdminUserRequest)
279
+
280
+ Auto-generated: storeAdminUser
281
+
282
+ ### Example
283
+
284
+ ```ts
285
+ import {
286
+ Configuration,
287
+ AdminsApi,
288
+ } from '@digital8/lighting-illusions-ts-sdk';
289
+ import type { StoreAdminUserRequest } from '@digital8/lighting-illusions-ts-sdk';
290
+
291
+ async function example() {
292
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
293
+ const api = new AdminsApi();
294
+
295
+ const body = {
296
+ // CreateAdminUserRequest (optional)
297
+ createAdminUserRequest: ...,
298
+ } satisfies StoreAdminUserRequest;
299
+
300
+ try {
301
+ const data = await api.storeAdminUser(body);
302
+ console.log(data);
303
+ } catch (error) {
304
+ console.error(error);
305
+ }
306
+ }
307
+
308
+ // Run the test
309
+ example().catch(console.error);
310
+ ```
311
+
312
+ ### Parameters
313
+
314
+
315
+ | Name | Type | Description | Notes |
316
+ |------------- | ------------- | ------------- | -------------|
317
+ | **createAdminUserRequest** | [CreateAdminUserRequest](CreateAdminUserRequest.md) | | [Optional] |
318
+
319
+ ### Return type
320
+
321
+ [**AdminResource**](AdminResource.md)
322
+
323
+ ### Authorization
324
+
325
+ No authorization required
326
+
327
+ ### HTTP request headers
328
+
329
+ - **Content-Type**: `application/json`
330
+ - **Accept**: `application/json`
331
+
332
+
333
+ ### HTTP response details
334
+ | Status code | Description | Response headers |
335
+ |-------------|-------------|------------------|
336
+ | **200** | Successful resource response | - |
337
+
338
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
339
+
340
+
341
+ ## updateAdminUser
342
+
343
+ > AdminResource updateAdminUser(admin, updateAdminUserRequest)
344
+
345
+ Auto-generated: updateAdminUser
346
+
347
+ ### Example
348
+
349
+ ```ts
350
+ import {
351
+ Configuration,
352
+ AdminsApi,
353
+ } from '@digital8/lighting-illusions-ts-sdk';
354
+ import type { UpdateAdminUserOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
355
+
356
+ async function example() {
357
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
358
+ const api = new AdminsApi();
359
+
360
+ const body = {
361
+ // number | The id of the admin
362
+ admin: 56,
363
+ // UpdateAdminUserRequest (optional)
364
+ updateAdminUserRequest: ...,
365
+ } satisfies UpdateAdminUserOperationRequest;
366
+
367
+ try {
368
+ const data = await api.updateAdminUser(body);
369
+ console.log(data);
370
+ } catch (error) {
371
+ console.error(error);
372
+ }
373
+ }
374
+
375
+ // Run the test
376
+ example().catch(console.error);
377
+ ```
378
+
379
+ ### Parameters
380
+
381
+
382
+ | Name | Type | Description | Notes |
383
+ |------------- | ------------- | ------------- | -------------|
384
+ | **admin** | `number` | The id of the admin | [Defaults to `undefined`] |
385
+ | **updateAdminUserRequest** | [UpdateAdminUserRequest](UpdateAdminUserRequest.md) | | [Optional] |
386
+
387
+ ### Return type
388
+
389
+ [**AdminResource**](AdminResource.md)
390
+
391
+ ### Authorization
392
+
393
+ No authorization required
394
+
395
+ ### HTTP request headers
396
+
397
+ - **Content-Type**: `application/json`
398
+ - **Accept**: `application/json`
399
+
400
+
401
+ ### HTTP response details
402
+ | Status code | Description | Response headers |
403
+ |-------------|-------------|------------------|
404
+ | **200** | Successful resource response | - |
405
+
406
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
407
+
@@ -1,5 +1,5 @@
1
1
 
2
- # AppliedCouponResource
2
+ # CartCouponResource
3
3
 
4
4
 
5
5
  ## Properties
@@ -14,7 +14,7 @@ Name | Type
14
14
  ## Example
15
15
 
16
16
  ```typescript
17
- import type { AppliedCouponResource } from '@digital8/lighting-illusions-ts-sdk'
17
+ import type { CartCouponResource } from '@digital8/lighting-illusions-ts-sdk'
18
18
 
19
19
  // TODO: Update the object below with actual values
20
20
  const example = {
@@ -22,7 +22,7 @@ const example = {
22
22
  "code": null,
23
23
  "name": null,
24
24
  "discountTotal": null,
25
- } satisfies AppliedCouponResource
25
+ } satisfies CartCouponResource
26
26
 
27
27
  console.log(example)
28
28
 
@@ -31,7 +31,7 @@ const exampleJSON: string = JSON.stringify(example)
31
31
  console.log(exampleJSON)
32
32
 
33
33
  // Parse the JSON string back to an object
34
- const exampleParsed = JSON.parse(exampleJSON) as AppliedCouponResource
34
+ const exampleParsed = JSON.parse(exampleJSON) as CartCouponResource
35
35
  console.log(exampleParsed)
36
36
  ```
37
37
 
@@ -0,0 +1,34 @@
1
+
2
+ # CartCouponResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<CartCouponResource>](CartCouponResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CartCouponResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies CartCouponResourceArrayResponse
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 CartCouponResourceArrayResponse
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
+
@@ -0,0 +1,36 @@
1
+
2
+ # CheckEmailFrontendResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `_exists` | boolean
10
+ `name` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { CheckEmailFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "_exists": null,
20
+ "name": null,
21
+ } satisfies CheckEmailFrontendResource
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as CheckEmailFrontendResource
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,34 @@
1
+
2
+ # CheckEmailFrontendResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<CheckEmailFrontendResource>](CheckEmailFrontendResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CheckEmailFrontendResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies CheckEmailFrontendResourceArrayResponse
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 CheckEmailFrontendResourceArrayResponse
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
+
@@ -0,0 +1,44 @@
1
+
2
+ # CreateAdminUserRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `firstName` | string
10
+ `lastName` | string
11
+ `phone` | string
12
+ `password` | string
13
+ `email` | string
14
+ `roleIds` | Array<number>
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { CreateAdminUserRequest } from '@digital8/lighting-illusions-ts-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "firstName": null,
24
+ "lastName": null,
25
+ "phone": null,
26
+ "password": null,
27
+ "email": null,
28
+ "roleIds": null,
29
+ } satisfies CreateAdminUserRequest
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as CreateAdminUserRequest
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -6,11 +6,13 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `siteId` | number
10
9
  `firstName` | string
11
10
  `lastName` | string
12
- `email` | string
13
11
  `phone` | string
12
+ `password` | string
13
+ `email` | string
14
+ `siteId` | number
15
+ `subscribedToNewsletter` | boolean
14
16
 
15
17
  ## Example
16
18
 
@@ -19,11 +21,13 @@ import type { CreateCustomerRequest } from '@digital8/lighting-illusions-ts-sdk'
19
21
 
20
22
  // TODO: Update the object below with actual values
21
23
  const example = {
22
- "siteId": null,
23
24
  "firstName": null,
24
25
  "lastName": null,
25
- "email": null,
26
26
  "phone": null,
27
+ "password": null,
28
+ "email": null,
29
+ "siteId": null,
30
+ "subscribedToNewsletter": null,
27
31
  } satisfies CreateCustomerRequest
28
32
 
29
33
  console.log(example)
@@ -0,0 +1,36 @@
1
+
2
+ # CustomerAuthResponseResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `token` | string
10
+ `customer` | [CustomerFrontendResource](CustomerFrontendResource.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { CustomerAuthResponseResource } from '@digital8/lighting-illusions-ts-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "token": null,
20
+ "customer": null,
21
+ } satisfies CustomerAuthResponseResource
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as CustomerAuthResponseResource
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,34 @@
1
+
2
+ # CustomerAuthResponseResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<CustomerAuthResponseResource>](CustomerAuthResponseResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CustomerAuthResponseResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies CustomerAuthResponseResourceArrayResponse
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 CustomerAuthResponseResourceArrayResponse
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
+