@digital8/lighting-illusions-ts-sdk 0.0.1113 → 0.0.1114

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 (96) hide show
  1. package/.openapi-generator/FILES +38 -0
  2. package/README.md +31 -2
  3. package/dist/apis/StoreApi.d.ts +158 -0
  4. package/dist/apis/StoreApi.js +621 -0
  5. package/dist/apis/SupplierApi.d.ts +33 -1
  6. package/dist/apis/SupplierApi.js +122 -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 +74 -0
  10. package/dist/models/AddressResource.js +79 -0
  11. package/dist/models/AddressResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/AddressResourceArrayResponse.js +50 -0
  13. package/dist/models/AttachStoresSupplierRequest.d.ts +32 -0
  14. package/dist/models/AttachStoresSupplierRequest.js +51 -0
  15. package/dist/models/AttachSuppliersStoreRequest.d.ts +32 -0
  16. package/dist/models/AttachSuppliersStoreRequest.js +51 -0
  17. package/dist/models/DetachStoresSupplierRequest.d.ts +32 -0
  18. package/dist/models/DetachStoresSupplierRequest.js +51 -0
  19. package/dist/models/DetachSuppliersStoreRequest.d.ts +32 -0
  20. package/dist/models/DetachSuppliersStoreRequest.js +51 -0
  21. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  22. package/dist/models/ExternalApiLogResource.js +1 -3
  23. package/dist/models/GetAllStoreRequest.d.ts +87 -0
  24. package/dist/models/GetAllStoreRequest.js +79 -0
  25. package/dist/models/StoreListResource.d.ts +93 -0
  26. package/dist/models/StoreListResource.js +82 -0
  27. package/dist/models/StoreListResourceArrayResponse.d.ts +33 -0
  28. package/dist/models/StoreListResourceArrayResponse.js +50 -0
  29. package/dist/models/StoreResource.d.ts +112 -0
  30. package/dist/models/StoreResource.js +97 -0
  31. package/dist/models/StoreResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/StoreResourceArrayResponse.js +50 -0
  33. package/dist/models/StoreSpecialDateResource.d.ts +56 -0
  34. package/dist/models/StoreSpecialDateResource.js +65 -0
  35. package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/StoreSpecialDateResourceArrayResponse.js +50 -0
  37. package/dist/models/StoreStoreRequest.d.ts +177 -0
  38. package/dist/models/StoreStoreRequest.js +124 -0
  39. package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +50 -0
  40. package/dist/models/StoreStoreRequestSpecialDatesInner.js +57 -0
  41. package/dist/models/StoreStoreSpecialDateRequest.d.ts +50 -0
  42. package/dist/models/StoreStoreSpecialDateRequest.js +57 -0
  43. package/dist/models/SupplierResource.d.ts +6 -0
  44. package/dist/models/SupplierResource.js +4 -0
  45. package/dist/models/UpdateStoreRequest.d.ts +177 -0
  46. package/dist/models/UpdateStoreRequest.js +124 -0
  47. package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +56 -0
  48. package/dist/models/UpdateStoreRequestSpecialDatesInner.js +57 -0
  49. package/dist/models/index.d.ts +18 -0
  50. package/dist/models/index.js +18 -0
  51. package/docs/AddressResource.md +48 -0
  52. package/docs/AddressResourceArrayResponse.md +34 -0
  53. package/docs/AttachStoresSupplierRequest.md +34 -0
  54. package/docs/AttachSuppliersStoreRequest.md +34 -0
  55. package/docs/DetachStoresSupplierRequest.md +34 -0
  56. package/docs/DetachSuppliersStoreRequest.md +34 -0
  57. package/docs/GetAllStoreRequest.md +46 -0
  58. package/docs/StoreApi.md +617 -0
  59. package/docs/StoreListResource.md +54 -0
  60. package/docs/StoreListResourceArrayResponse.md +34 -0
  61. package/docs/StoreResource.md +60 -0
  62. package/docs/StoreResourceArrayResponse.md +34 -0
  63. package/docs/StoreSpecialDateResource.md +42 -0
  64. package/docs/StoreSpecialDateResourceArrayResponse.md +34 -0
  65. package/docs/StoreStoreRequest.md +82 -0
  66. package/docs/StoreStoreRequestSpecialDatesInner.md +40 -0
  67. package/docs/StoreStoreSpecialDateRequest.md +40 -0
  68. package/docs/SupplierApi.md +138 -0
  69. package/docs/SupplierResource.md +2 -0
  70. package/docs/UpdateStoreRequest.md +82 -0
  71. package/docs/UpdateStoreRequestSpecialDatesInner.md +42 -0
  72. package/package.json +1 -1
  73. package/src/apis/StoreApi.ts +513 -0
  74. package/src/apis/SupplierApi.ts +112 -0
  75. package/src/apis/index.ts +1 -0
  76. package/src/models/AddressResource.ts +129 -0
  77. package/src/models/AddressResourceArrayResponse.ts +73 -0
  78. package/src/models/AttachStoresSupplierRequest.ts +66 -0
  79. package/src/models/AttachSuppliersStoreRequest.ts +66 -0
  80. package/src/models/DetachStoresSupplierRequest.ts +66 -0
  81. package/src/models/DetachSuppliersStoreRequest.ts +66 -0
  82. package/src/models/ExternalApiLogResource.ts +2 -3
  83. package/src/models/GetAllStoreRequest.ts +136 -0
  84. package/src/models/StoreListResource.ts +159 -0
  85. package/src/models/StoreListResourceArrayResponse.ts +73 -0
  86. package/src/models/StoreResource.ts +194 -0
  87. package/src/models/StoreResourceArrayResponse.ts +73 -0
  88. package/src/models/StoreSpecialDateResource.ts +101 -0
  89. package/src/models/StoreSpecialDateResourceArrayResponse.ts +73 -0
  90. package/src/models/StoreStoreRequest.ts +278 -0
  91. package/src/models/StoreStoreRequestSpecialDatesInner.ts +90 -0
  92. package/src/models/StoreStoreSpecialDateRequest.ts +90 -0
  93. package/src/models/SupplierResource.ts +9 -0
  94. package/src/models/UpdateStoreRequest.ts +278 -0
  95. package/src/models/UpdateStoreRequestSpecialDatesInner.ts +97 -0
  96. package/src/models/index.ts +18 -0
@@ -0,0 +1,617 @@
1
+ # StoreApi
2
+
3
+ All URIs are relative to *http://localhost/api*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**attachSuppliersStore**](StoreApi.md#attachsuppliersstoreoperation) | **POST** /admin-api/store/{store}/attach-suppliers | Auto-generated: attachSuppliersStore |
8
+ | [**destroyStore**](StoreApi.md#destroystore) | **DELETE** /admin-api/store/{store}/delete | Auto-generated: destroyStore |
9
+ | [**destroyStoreSpecialDate**](StoreApi.md#destroystorespecialdate) | **DELETE** /admin-api/store/{store}/special-dates/{storeSpecialDate} | Auto-generated: destroyStoreSpecialDate |
10
+ | [**detachSuppliersStore**](StoreApi.md#detachsuppliersstoreoperation) | **POST** /admin-api/store/{store}/detach-suppliers | Auto-generated: detachSuppliersStore |
11
+ | [**getAllStore**](StoreApi.md#getallstoreoperation) | **POST** /admin-api/store/all | Auto-generated: getAllStore |
12
+ | [**showStore**](StoreApi.md#showstore) | **GET** /admin-api/store/{store} | Auto-generated: showStore |
13
+ | [**storeStore**](StoreApi.md#storestoreoperation) | **POST** /admin-api/store/create | Auto-generated: storeStore |
14
+ | [**storeStoreSpecialDate**](StoreApi.md#storestorespecialdateoperation) | **POST** /admin-api/store/{store}/special-dates | Auto-generated: storeStoreSpecialDate |
15
+ | [**updateStore**](StoreApi.md#updatestoreoperation) | **PUT** /admin-api/store/{store}/update | Auto-generated: updateStore |
16
+
17
+
18
+
19
+ ## attachSuppliersStore
20
+
21
+ > StoreResource attachSuppliersStore(store, attachSuppliersStoreRequest)
22
+
23
+ Auto-generated: attachSuppliersStore
24
+
25
+ ### Example
26
+
27
+ ```ts
28
+ import {
29
+ Configuration,
30
+ StoreApi,
31
+ } from '@digital8/lighting-illusions-ts-sdk';
32
+ import type { AttachSuppliersStoreOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
33
+
34
+ async function example() {
35
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
36
+ const api = new StoreApi();
37
+
38
+ const body = {
39
+ // number | The id of the store
40
+ store: 56,
41
+ // AttachSuppliersStoreRequest (optional)
42
+ attachSuppliersStoreRequest: ...,
43
+ } satisfies AttachSuppliersStoreOperationRequest;
44
+
45
+ try {
46
+ const data = await api.attachSuppliersStore(body);
47
+ console.log(data);
48
+ } catch (error) {
49
+ console.error(error);
50
+ }
51
+ }
52
+
53
+ // Run the test
54
+ example().catch(console.error);
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+
60
+ | Name | Type | Description | Notes |
61
+ |------------- | ------------- | ------------- | -------------|
62
+ | **store** | `number` | The id of the store | [Defaults to `undefined`] |
63
+ | **attachSuppliersStoreRequest** | [AttachSuppliersStoreRequest](AttachSuppliersStoreRequest.md) | | [Optional] |
64
+
65
+ ### Return type
66
+
67
+ [**StoreResource**](StoreResource.md)
68
+
69
+ ### Authorization
70
+
71
+ No authorization required
72
+
73
+ ### HTTP request headers
74
+
75
+ - **Content-Type**: `application/json`
76
+ - **Accept**: `application/json`
77
+
78
+
79
+ ### HTTP response details
80
+ | Status code | Description | Response headers |
81
+ |-------------|-------------|------------------|
82
+ | **200** | Successful resource response | - |
83
+
84
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
85
+
86
+
87
+ ## destroyStore
88
+
89
+ > GenericResponse destroyStore(store)
90
+
91
+ Auto-generated: destroyStore
92
+
93
+ ### Example
94
+
95
+ ```ts
96
+ import {
97
+ Configuration,
98
+ StoreApi,
99
+ } from '@digital8/lighting-illusions-ts-sdk';
100
+ import type { DestroyStoreRequest } from '@digital8/lighting-illusions-ts-sdk';
101
+
102
+ async function example() {
103
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
104
+ const api = new StoreApi();
105
+
106
+ const body = {
107
+ // number | The id of the store
108
+ store: 56,
109
+ } satisfies DestroyStoreRequest;
110
+
111
+ try {
112
+ const data = await api.destroyStore(body);
113
+ console.log(data);
114
+ } catch (error) {
115
+ console.error(error);
116
+ }
117
+ }
118
+
119
+ // Run the test
120
+ example().catch(console.error);
121
+ ```
122
+
123
+ ### Parameters
124
+
125
+
126
+ | Name | Type | Description | Notes |
127
+ |------------- | ------------- | ------------- | -------------|
128
+ | **store** | `number` | The id of the store | [Defaults to `undefined`] |
129
+
130
+ ### Return type
131
+
132
+ [**GenericResponse**](GenericResponse.md)
133
+
134
+ ### Authorization
135
+
136
+ No authorization required
137
+
138
+ ### HTTP request headers
139
+
140
+ - **Content-Type**: Not defined
141
+ - **Accept**: `application/json`
142
+
143
+
144
+ ### HTTP response details
145
+ | Status code | Description | Response headers |
146
+ |-------------|-------------|------------------|
147
+ | **200** | \\JsonResponse<array{message: string}> | - |
148
+
149
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
150
+
151
+
152
+ ## destroyStoreSpecialDate
153
+
154
+ > GenericResponse destroyStoreSpecialDate(store, storeSpecialDate)
155
+
156
+ Auto-generated: destroyStoreSpecialDate
157
+
158
+ ### Example
159
+
160
+ ```ts
161
+ import {
162
+ Configuration,
163
+ StoreApi,
164
+ } from '@digital8/lighting-illusions-ts-sdk';
165
+ import type { DestroyStoreSpecialDateRequest } from '@digital8/lighting-illusions-ts-sdk';
166
+
167
+ async function example() {
168
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
169
+ const api = new StoreApi();
170
+
171
+ const body = {
172
+ // number | The id of the store
173
+ store: 56,
174
+ // number | The id of the storeSpecialDate
175
+ storeSpecialDate: 56,
176
+ } satisfies DestroyStoreSpecialDateRequest;
177
+
178
+ try {
179
+ const data = await api.destroyStoreSpecialDate(body);
180
+ console.log(data);
181
+ } catch (error) {
182
+ console.error(error);
183
+ }
184
+ }
185
+
186
+ // Run the test
187
+ example().catch(console.error);
188
+ ```
189
+
190
+ ### Parameters
191
+
192
+
193
+ | Name | Type | Description | Notes |
194
+ |------------- | ------------- | ------------- | -------------|
195
+ | **store** | `number` | The id of the store | [Defaults to `undefined`] |
196
+ | **storeSpecialDate** | `number` | The id of the storeSpecialDate | [Defaults to `undefined`] |
197
+
198
+ ### Return type
199
+
200
+ [**GenericResponse**](GenericResponse.md)
201
+
202
+ ### Authorization
203
+
204
+ No authorization required
205
+
206
+ ### HTTP request headers
207
+
208
+ - **Content-Type**: Not defined
209
+ - **Accept**: `application/json`
210
+
211
+
212
+ ### HTTP response details
213
+ | Status code | Description | Response headers |
214
+ |-------------|-------------|------------------|
215
+ | **200** | \\JsonResponse<array{message: string}> | - |
216
+
217
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
218
+
219
+
220
+ ## detachSuppliersStore
221
+
222
+ > StoreResource detachSuppliersStore(store, detachSuppliersStoreRequest)
223
+
224
+ Auto-generated: detachSuppliersStore
225
+
226
+ ### Example
227
+
228
+ ```ts
229
+ import {
230
+ Configuration,
231
+ StoreApi,
232
+ } from '@digital8/lighting-illusions-ts-sdk';
233
+ import type { DetachSuppliersStoreOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
234
+
235
+ async function example() {
236
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
237
+ const api = new StoreApi();
238
+
239
+ const body = {
240
+ // number | The id of the store
241
+ store: 56,
242
+ // DetachSuppliersStoreRequest (optional)
243
+ detachSuppliersStoreRequest: ...,
244
+ } satisfies DetachSuppliersStoreOperationRequest;
245
+
246
+ try {
247
+ const data = await api.detachSuppliersStore(body);
248
+ console.log(data);
249
+ } catch (error) {
250
+ console.error(error);
251
+ }
252
+ }
253
+
254
+ // Run the test
255
+ example().catch(console.error);
256
+ ```
257
+
258
+ ### Parameters
259
+
260
+
261
+ | Name | Type | Description | Notes |
262
+ |------------- | ------------- | ------------- | -------------|
263
+ | **store** | `number` | The id of the store | [Defaults to `undefined`] |
264
+ | **detachSuppliersStoreRequest** | [DetachSuppliersStoreRequest](DetachSuppliersStoreRequest.md) | | [Optional] |
265
+
266
+ ### Return type
267
+
268
+ [**StoreResource**](StoreResource.md)
269
+
270
+ ### Authorization
271
+
272
+ No authorization required
273
+
274
+ ### HTTP request headers
275
+
276
+ - **Content-Type**: `application/json`
277
+ - **Accept**: `application/json`
278
+
279
+
280
+ ### HTTP response details
281
+ | Status code | Description | Response headers |
282
+ |-------------|-------------|------------------|
283
+ | **200** | Successful resource response | - |
284
+
285
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
286
+
287
+
288
+ ## getAllStore
289
+
290
+ > StoreListResource getAllStore(getAllStoreRequest)
291
+
292
+ Auto-generated: getAllStore
293
+
294
+ ### Example
295
+
296
+ ```ts
297
+ import {
298
+ Configuration,
299
+ StoreApi,
300
+ } from '@digital8/lighting-illusions-ts-sdk';
301
+ import type { GetAllStoreOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
302
+
303
+ async function example() {
304
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
305
+ const api = new StoreApi();
306
+
307
+ const body = {
308
+ // GetAllStoreRequest (optional)
309
+ getAllStoreRequest: ...,
310
+ } satisfies GetAllStoreOperationRequest;
311
+
312
+ try {
313
+ const data = await api.getAllStore(body);
314
+ console.log(data);
315
+ } catch (error) {
316
+ console.error(error);
317
+ }
318
+ }
319
+
320
+ // Run the test
321
+ example().catch(console.error);
322
+ ```
323
+
324
+ ### Parameters
325
+
326
+
327
+ | Name | Type | Description | Notes |
328
+ |------------- | ------------- | ------------- | -------------|
329
+ | **getAllStoreRequest** | [GetAllStoreRequest](GetAllStoreRequest.md) | | [Optional] |
330
+
331
+ ### Return type
332
+
333
+ [**StoreListResource**](StoreListResource.md)
334
+
335
+ ### Authorization
336
+
337
+ No authorization required
338
+
339
+ ### HTTP request headers
340
+
341
+ - **Content-Type**: `application/json`
342
+ - **Accept**: `application/json`
343
+
344
+
345
+ ### HTTP response details
346
+ | Status code | Description | Response headers |
347
+ |-------------|-------------|------------------|
348
+ | **200** | Successful resource response | - |
349
+
350
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
351
+
352
+
353
+ ## showStore
354
+
355
+ > StoreResource showStore(store)
356
+
357
+ Auto-generated: showStore
358
+
359
+ ### Example
360
+
361
+ ```ts
362
+ import {
363
+ Configuration,
364
+ StoreApi,
365
+ } from '@digital8/lighting-illusions-ts-sdk';
366
+ import type { ShowStoreRequest } from '@digital8/lighting-illusions-ts-sdk';
367
+
368
+ async function example() {
369
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
370
+ const api = new StoreApi();
371
+
372
+ const body = {
373
+ // number | The id of the store
374
+ store: 56,
375
+ } satisfies ShowStoreRequest;
376
+
377
+ try {
378
+ const data = await api.showStore(body);
379
+ console.log(data);
380
+ } catch (error) {
381
+ console.error(error);
382
+ }
383
+ }
384
+
385
+ // Run the test
386
+ example().catch(console.error);
387
+ ```
388
+
389
+ ### Parameters
390
+
391
+
392
+ | Name | Type | Description | Notes |
393
+ |------------- | ------------- | ------------- | -------------|
394
+ | **store** | `number` | The id of the store | [Defaults to `undefined`] |
395
+
396
+ ### Return type
397
+
398
+ [**StoreResource**](StoreResource.md)
399
+
400
+ ### Authorization
401
+
402
+ No authorization required
403
+
404
+ ### HTTP request headers
405
+
406
+ - **Content-Type**: Not defined
407
+ - **Accept**: `application/json`
408
+
409
+
410
+ ### HTTP response details
411
+ | Status code | Description | Response headers |
412
+ |-------------|-------------|------------------|
413
+ | **200** | Successful resource response | - |
414
+
415
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
416
+
417
+
418
+ ## storeStore
419
+
420
+ > StoreResource storeStore(storeStoreRequest)
421
+
422
+ Auto-generated: storeStore
423
+
424
+ ### Example
425
+
426
+ ```ts
427
+ import {
428
+ Configuration,
429
+ StoreApi,
430
+ } from '@digital8/lighting-illusions-ts-sdk';
431
+ import type { StoreStoreOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
432
+
433
+ async function example() {
434
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
435
+ const api = new StoreApi();
436
+
437
+ const body = {
438
+ // StoreStoreRequest (optional)
439
+ storeStoreRequest: ...,
440
+ } satisfies StoreStoreOperationRequest;
441
+
442
+ try {
443
+ const data = await api.storeStore(body);
444
+ console.log(data);
445
+ } catch (error) {
446
+ console.error(error);
447
+ }
448
+ }
449
+
450
+ // Run the test
451
+ example().catch(console.error);
452
+ ```
453
+
454
+ ### Parameters
455
+
456
+
457
+ | Name | Type | Description | Notes |
458
+ |------------- | ------------- | ------------- | -------------|
459
+ | **storeStoreRequest** | [StoreStoreRequest](StoreStoreRequest.md) | | [Optional] |
460
+
461
+ ### Return type
462
+
463
+ [**StoreResource**](StoreResource.md)
464
+
465
+ ### Authorization
466
+
467
+ No authorization required
468
+
469
+ ### HTTP request headers
470
+
471
+ - **Content-Type**: `application/json`
472
+ - **Accept**: `application/json`
473
+
474
+
475
+ ### HTTP response details
476
+ | Status code | Description | Response headers |
477
+ |-------------|-------------|------------------|
478
+ | **200** | Successful resource response | - |
479
+
480
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
481
+
482
+
483
+ ## storeStoreSpecialDate
484
+
485
+ > StoreSpecialDateResource storeStoreSpecialDate(store, storeStoreSpecialDateRequest)
486
+
487
+ Auto-generated: storeStoreSpecialDate
488
+
489
+ ### Example
490
+
491
+ ```ts
492
+ import {
493
+ Configuration,
494
+ StoreApi,
495
+ } from '@digital8/lighting-illusions-ts-sdk';
496
+ import type { StoreStoreSpecialDateOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
497
+
498
+ async function example() {
499
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
500
+ const api = new StoreApi();
501
+
502
+ const body = {
503
+ // number | The id of the store
504
+ store: 56,
505
+ // StoreStoreSpecialDateRequest (optional)
506
+ storeStoreSpecialDateRequest: ...,
507
+ } satisfies StoreStoreSpecialDateOperationRequest;
508
+
509
+ try {
510
+ const data = await api.storeStoreSpecialDate(body);
511
+ console.log(data);
512
+ } catch (error) {
513
+ console.error(error);
514
+ }
515
+ }
516
+
517
+ // Run the test
518
+ example().catch(console.error);
519
+ ```
520
+
521
+ ### Parameters
522
+
523
+
524
+ | Name | Type | Description | Notes |
525
+ |------------- | ------------- | ------------- | -------------|
526
+ | **store** | `number` | The id of the store | [Defaults to `undefined`] |
527
+ | **storeStoreSpecialDateRequest** | [StoreStoreSpecialDateRequest](StoreStoreSpecialDateRequest.md) | | [Optional] |
528
+
529
+ ### Return type
530
+
531
+ [**StoreSpecialDateResource**](StoreSpecialDateResource.md)
532
+
533
+ ### Authorization
534
+
535
+ No authorization required
536
+
537
+ ### HTTP request headers
538
+
539
+ - **Content-Type**: `application/json`
540
+ - **Accept**: `application/json`
541
+
542
+
543
+ ### HTTP response details
544
+ | Status code | Description | Response headers |
545
+ |-------------|-------------|------------------|
546
+ | **200** | Successful resource response | - |
547
+
548
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
549
+
550
+
551
+ ## updateStore
552
+
553
+ > StoreResource updateStore(store, updateStoreRequest)
554
+
555
+ Auto-generated: updateStore
556
+
557
+ ### Example
558
+
559
+ ```ts
560
+ import {
561
+ Configuration,
562
+ StoreApi,
563
+ } from '@digital8/lighting-illusions-ts-sdk';
564
+ import type { UpdateStoreOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
565
+
566
+ async function example() {
567
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
568
+ const api = new StoreApi();
569
+
570
+ const body = {
571
+ // number | The id of the store
572
+ store: 56,
573
+ // UpdateStoreRequest (optional)
574
+ updateStoreRequest: ...,
575
+ } satisfies UpdateStoreOperationRequest;
576
+
577
+ try {
578
+ const data = await api.updateStore(body);
579
+ console.log(data);
580
+ } catch (error) {
581
+ console.error(error);
582
+ }
583
+ }
584
+
585
+ // Run the test
586
+ example().catch(console.error);
587
+ ```
588
+
589
+ ### Parameters
590
+
591
+
592
+ | Name | Type | Description | Notes |
593
+ |------------- | ------------- | ------------- | -------------|
594
+ | **store** | `number` | The id of the store | [Defaults to `undefined`] |
595
+ | **updateStoreRequest** | [UpdateStoreRequest](UpdateStoreRequest.md) | | [Optional] |
596
+
597
+ ### Return type
598
+
599
+ [**StoreResource**](StoreResource.md)
600
+
601
+ ### Authorization
602
+
603
+ No authorization required
604
+
605
+ ### HTTP request headers
606
+
607
+ - **Content-Type**: `application/json`
608
+ - **Accept**: `application/json`
609
+
610
+
611
+ ### HTTP response details
612
+ | Status code | Description | Response headers |
613
+ |-------------|-------------|------------------|
614
+ | **200** | Successful resource response | - |
615
+
616
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
617
+
@@ -0,0 +1,54 @@
1
+
2
+ # StoreListResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `site` | [SiteLiteResource](SiteLiteResource.md)
11
+ `name` | string
12
+ `phone` | string
13
+ `longitude` | number
14
+ `latitude` | number
15
+ `tagLine` | string
16
+ `email` | string
17
+ `openingHours` | string
18
+ `createdAt` | string
19
+ `updatedAt` | string
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { StoreListResource } from '@digital8/lighting-illusions-ts-sdk'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "id": null,
29
+ "site": null,
30
+ "name": null,
31
+ "phone": null,
32
+ "longitude": null,
33
+ "latitude": null,
34
+ "tagLine": null,
35
+ "email": null,
36
+ "openingHours": null,
37
+ "createdAt": null,
38
+ "updatedAt": null,
39
+ } satisfies StoreListResource
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as StoreListResource
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+
@@ -0,0 +1,34 @@
1
+
2
+ # StoreListResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<StoreListResource>](StoreListResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { StoreListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies StoreListResourceArrayResponse
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 StoreListResourceArrayResponse
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
+