@digital8/lighting-illusions-ts-sdk 0.0.1886 → 0.0.1888

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 (65) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +20 -2
  3. package/dist/apis/DocumentApi.d.ts +156 -0
  4. package/dist/apis/DocumentApi.js +613 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +1 -3
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +3 -1
  11. package/dist/models/AttachDocumentablesToDocumentRequest.d.ts +33 -0
  12. package/dist/models/AttachDocumentablesToDocumentRequest.js +52 -0
  13. package/dist/models/AttachDocumentablesToDocumentRequestDocumentablesInner.d.ts +53 -0
  14. package/dist/models/AttachDocumentablesToDocumentRequestDocumentablesInner.js +66 -0
  15. package/dist/models/CreateDocumentFileRequest.d.ts +38 -0
  16. package/dist/models/CreateDocumentFileRequest.js +55 -0
  17. package/dist/models/CreateDocumentRequest.d.ts +44 -0
  18. package/dist/models/CreateDocumentRequest.js +57 -0
  19. package/dist/models/DetachDocumentablesFromDocumentRequest.d.ts +33 -0
  20. package/dist/models/DetachDocumentablesFromDocumentRequest.js +52 -0
  21. package/dist/models/DetachDocumentablesFromDocumentRequestDocumentablesInner.d.ts +47 -0
  22. package/dist/models/DetachDocumentablesFromDocumentRequestDocumentablesInner.js +64 -0
  23. package/dist/models/SearchAllDocumentsRequest.d.ts +95 -0
  24. package/dist/models/SearchAllDocumentsRequest.js +86 -0
  25. package/dist/models/SearchDocumentsRequest.d.ts +107 -0
  26. package/dist/models/SearchDocumentsRequest.js +90 -0
  27. package/dist/models/StoreFrontendResource.d.ts +1 -1
  28. package/dist/models/StoreFrontendResource.js +3 -1
  29. package/dist/models/StoreResource.d.ts +2 -2
  30. package/dist/models/StoreResource.js +6 -2
  31. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  32. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  33. package/dist/models/UpdateDocumentRequest.d.ts +44 -0
  34. package/dist/models/UpdateDocumentRequest.js +57 -0
  35. package/dist/models/index.d.ts +9 -0
  36. package/dist/models/index.js +9 -0
  37. package/docs/AttachDocumentablesToDocumentRequest.md +34 -0
  38. package/docs/AttachDocumentablesToDocumentRequestDocumentablesInner.md +38 -0
  39. package/docs/CreateDocumentFileRequest.md +36 -0
  40. package/docs/CreateDocumentRequest.md +38 -0
  41. package/docs/DetachDocumentablesFromDocumentRequest.md +34 -0
  42. package/docs/DetachDocumentablesFromDocumentRequestDocumentablesInner.md +36 -0
  43. package/docs/DocumentApi.md +611 -0
  44. package/docs/SearchAllDocumentsRequest.md +46 -0
  45. package/docs/SearchDocumentsRequest.md +50 -0
  46. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  47. package/docs/UpdateDocumentRequest.md +38 -0
  48. package/package.json +1 -1
  49. package/src/apis/DocumentApi.ts +496 -0
  50. package/src/apis/index.ts +1 -0
  51. package/src/models/AddressFrontendResource.ts +2 -3
  52. package/src/models/AddressResource.ts +3 -2
  53. package/src/models/AttachDocumentablesToDocumentRequest.ts +74 -0
  54. package/src/models/AttachDocumentablesToDocumentRequestDocumentablesInner.ts +95 -0
  55. package/src/models/CreateDocumentFileRequest.ts +75 -0
  56. package/src/models/CreateDocumentRequest.ts +83 -0
  57. package/src/models/DetachDocumentablesFromDocumentRequest.ts +74 -0
  58. package/src/models/DetachDocumentablesFromDocumentRequestDocumentablesInner.ts +87 -0
  59. package/src/models/SearchAllDocumentsRequest.ts +145 -0
  60. package/src/models/SearchDocumentsRequest.ts +161 -0
  61. package/src/models/StoreFrontendResource.ts +3 -2
  62. package/src/models/StoreResource.ts +6 -4
  63. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  64. package/src/models/UpdateDocumentRequest.ts +83 -0
  65. package/src/models/index.ts +9 -0
@@ -0,0 +1,611 @@
1
+ # DocumentApi
2
+
3
+ All URIs are relative to *http://localhost/api*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**attachDocumentablesDocument**](DocumentApi.md#attachdocumentablesdocument) | **POST** /admin-api/document/{document}/attach-documentables | Auto-generated: attachDocumentablesDocument |
8
+ | [**destroyDocument**](DocumentApi.md#destroydocument) | **DELETE** /admin-api/document/{document}/delete | Auto-generated: destroyDocument |
9
+ | [**detachDocumentablesDocument**](DocumentApi.md#detachdocumentablesdocument) | **POST** /admin-api/document/{document}/detach-documentables | Auto-generated: detachDocumentablesDocument |
10
+ | [**getAllDocument**](DocumentApi.md#getalldocument) | **POST** /admin-api/document/all | Auto-generated: getAllDocument |
11
+ | [**indexDocument**](DocumentApi.md#indexdocument) | **POST** /admin-api/document/list | Auto-generated: indexDocument |
12
+ | [**showDocument**](DocumentApi.md#showdocument) | **GET** /admin-api/document/{document} | Auto-generated: showDocument |
13
+ | [**storeDocument**](DocumentApi.md#storedocument) | **POST** /admin-api/document/create | Auto-generated: storeDocument |
14
+ | [**storeDocumentFile**](DocumentApi.md#storedocumentfile) | **POST** /admin-api/document/files | Auto-generated: storeDocumentFile |
15
+ | [**updateDocument**](DocumentApi.md#updatedocumentoperation) | **PUT** /admin-api/document/{document}/update | Auto-generated: updateDocument |
16
+
17
+
18
+
19
+ ## attachDocumentablesDocument
20
+
21
+ > DocumentResource attachDocumentablesDocument(document, attachDocumentablesToDocumentRequest)
22
+
23
+ Auto-generated: attachDocumentablesDocument
24
+
25
+ ### Example
26
+
27
+ ```ts
28
+ import {
29
+ Configuration,
30
+ DocumentApi,
31
+ } from '@digital8/lighting-illusions-ts-sdk';
32
+ import type { AttachDocumentablesDocumentRequest } 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 DocumentApi();
37
+
38
+ const body = {
39
+ // number | The id of the document
40
+ document: 56,
41
+ // AttachDocumentablesToDocumentRequest (optional)
42
+ attachDocumentablesToDocumentRequest: ...,
43
+ } satisfies AttachDocumentablesDocumentRequest;
44
+
45
+ try {
46
+ const data = await api.attachDocumentablesDocument(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
+ | **document** | `number` | The id of the document | [Defaults to `undefined`] |
63
+ | **attachDocumentablesToDocumentRequest** | [AttachDocumentablesToDocumentRequest](AttachDocumentablesToDocumentRequest.md) | | [Optional] |
64
+
65
+ ### Return type
66
+
67
+ [**DocumentResource**](DocumentResource.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
+ ## destroyDocument
88
+
89
+ > GenericResponse destroyDocument(document)
90
+
91
+ Auto-generated: destroyDocument
92
+
93
+ ### Example
94
+
95
+ ```ts
96
+ import {
97
+ Configuration,
98
+ DocumentApi,
99
+ } from '@digital8/lighting-illusions-ts-sdk';
100
+ import type { DestroyDocumentRequest } 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 DocumentApi();
105
+
106
+ const body = {
107
+ // number | The id of the document
108
+ document: 56,
109
+ } satisfies DestroyDocumentRequest;
110
+
111
+ try {
112
+ const data = await api.destroyDocument(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
+ | **document** | `number` | The id of the document | [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 | - |
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
+ ## detachDocumentablesDocument
153
+
154
+ > DocumentResource detachDocumentablesDocument(document, detachDocumentablesFromDocumentRequest)
155
+
156
+ Auto-generated: detachDocumentablesDocument
157
+
158
+ ### Example
159
+
160
+ ```ts
161
+ import {
162
+ Configuration,
163
+ DocumentApi,
164
+ } from '@digital8/lighting-illusions-ts-sdk';
165
+ import type { DetachDocumentablesDocumentRequest } 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 DocumentApi();
170
+
171
+ const body = {
172
+ // number | The id of the document
173
+ document: 56,
174
+ // DetachDocumentablesFromDocumentRequest (optional)
175
+ detachDocumentablesFromDocumentRequest: ...,
176
+ } satisfies DetachDocumentablesDocumentRequest;
177
+
178
+ try {
179
+ const data = await api.detachDocumentablesDocument(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
+ | **document** | `number` | The id of the document | [Defaults to `undefined`] |
196
+ | **detachDocumentablesFromDocumentRequest** | [DetachDocumentablesFromDocumentRequest](DetachDocumentablesFromDocumentRequest.md) | | [Optional] |
197
+
198
+ ### Return type
199
+
200
+ [**DocumentResource**](DocumentResource.md)
201
+
202
+ ### Authorization
203
+
204
+ No authorization required
205
+
206
+ ### HTTP request headers
207
+
208
+ - **Content-Type**: `application/json`
209
+ - **Accept**: `application/json`
210
+
211
+
212
+ ### HTTP response details
213
+ | Status code | Description | Response headers |
214
+ |-------------|-------------|------------------|
215
+ | **200** | Successful resource response | - |
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
+ ## getAllDocument
221
+
222
+ > DocumentResourceArrayResponse getAllDocument(searchAllDocumentsRequest)
223
+
224
+ Auto-generated: getAllDocument
225
+
226
+ ### Example
227
+
228
+ ```ts
229
+ import {
230
+ Configuration,
231
+ DocumentApi,
232
+ } from '@digital8/lighting-illusions-ts-sdk';
233
+ import type { GetAllDocumentRequest } 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 DocumentApi();
238
+
239
+ const body = {
240
+ // SearchAllDocumentsRequest (optional)
241
+ searchAllDocumentsRequest: ...,
242
+ } satisfies GetAllDocumentRequest;
243
+
244
+ try {
245
+ const data = await api.getAllDocument(body);
246
+ console.log(data);
247
+ } catch (error) {
248
+ console.error(error);
249
+ }
250
+ }
251
+
252
+ // Run the test
253
+ example().catch(console.error);
254
+ ```
255
+
256
+ ### Parameters
257
+
258
+
259
+ | Name | Type | Description | Notes |
260
+ |------------- | ------------- | ------------- | -------------|
261
+ | **searchAllDocumentsRequest** | [SearchAllDocumentsRequest](SearchAllDocumentsRequest.md) | | [Optional] |
262
+
263
+ ### Return type
264
+
265
+ [**DocumentResourceArrayResponse**](DocumentResourceArrayResponse.md)
266
+
267
+ ### Authorization
268
+
269
+ No authorization required
270
+
271
+ ### HTTP request headers
272
+
273
+ - **Content-Type**: `application/json`
274
+ - **Accept**: `application/json`
275
+
276
+
277
+ ### HTTP response details
278
+ | Status code | Description | Response headers |
279
+ |-------------|-------------|------------------|
280
+ | **200** | Successful resource response | - |
281
+
282
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
283
+
284
+
285
+ ## indexDocument
286
+
287
+ > PaginatedDocumentResourceResponse indexDocument(searchDocumentsRequest)
288
+
289
+ Auto-generated: indexDocument
290
+
291
+ ### Example
292
+
293
+ ```ts
294
+ import {
295
+ Configuration,
296
+ DocumentApi,
297
+ } from '@digital8/lighting-illusions-ts-sdk';
298
+ import type { IndexDocumentRequest } from '@digital8/lighting-illusions-ts-sdk';
299
+
300
+ async function example() {
301
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
302
+ const api = new DocumentApi();
303
+
304
+ const body = {
305
+ // SearchDocumentsRequest (optional)
306
+ searchDocumentsRequest: ...,
307
+ } satisfies IndexDocumentRequest;
308
+
309
+ try {
310
+ const data = await api.indexDocument(body);
311
+ console.log(data);
312
+ } catch (error) {
313
+ console.error(error);
314
+ }
315
+ }
316
+
317
+ // Run the test
318
+ example().catch(console.error);
319
+ ```
320
+
321
+ ### Parameters
322
+
323
+
324
+ | Name | Type | Description | Notes |
325
+ |------------- | ------------- | ------------- | -------------|
326
+ | **searchDocumentsRequest** | [SearchDocumentsRequest](SearchDocumentsRequest.md) | | [Optional] |
327
+
328
+ ### Return type
329
+
330
+ [**PaginatedDocumentResourceResponse**](PaginatedDocumentResourceResponse.md)
331
+
332
+ ### Authorization
333
+
334
+ No authorization required
335
+
336
+ ### HTTP request headers
337
+
338
+ - **Content-Type**: `application/json`
339
+ - **Accept**: `application/json`
340
+
341
+
342
+ ### HTTP response details
343
+ | Status code | Description | Response headers |
344
+ |-------------|-------------|------------------|
345
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\DocumentResource[]>> | - |
346
+
347
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
348
+
349
+
350
+ ## showDocument
351
+
352
+ > DocumentResource showDocument(document)
353
+
354
+ Auto-generated: showDocument
355
+
356
+ ### Example
357
+
358
+ ```ts
359
+ import {
360
+ Configuration,
361
+ DocumentApi,
362
+ } from '@digital8/lighting-illusions-ts-sdk';
363
+ import type { ShowDocumentRequest } from '@digital8/lighting-illusions-ts-sdk';
364
+
365
+ async function example() {
366
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
367
+ const api = new DocumentApi();
368
+
369
+ const body = {
370
+ // number | The id of the document
371
+ document: 56,
372
+ } satisfies ShowDocumentRequest;
373
+
374
+ try {
375
+ const data = await api.showDocument(body);
376
+ console.log(data);
377
+ } catch (error) {
378
+ console.error(error);
379
+ }
380
+ }
381
+
382
+ // Run the test
383
+ example().catch(console.error);
384
+ ```
385
+
386
+ ### Parameters
387
+
388
+
389
+ | Name | Type | Description | Notes |
390
+ |------------- | ------------- | ------------- | -------------|
391
+ | **document** | `number` | The id of the document | [Defaults to `undefined`] |
392
+
393
+ ### Return type
394
+
395
+ [**DocumentResource**](DocumentResource.md)
396
+
397
+ ### Authorization
398
+
399
+ No authorization required
400
+
401
+ ### HTTP request headers
402
+
403
+ - **Content-Type**: Not defined
404
+ - **Accept**: `application/json`
405
+
406
+
407
+ ### HTTP response details
408
+ | Status code | Description | Response headers |
409
+ |-------------|-------------|------------------|
410
+ | **200** | Successful resource response | - |
411
+
412
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
413
+
414
+
415
+ ## storeDocument
416
+
417
+ > DocumentResource storeDocument(createDocumentRequest)
418
+
419
+ Auto-generated: storeDocument
420
+
421
+ ### Example
422
+
423
+ ```ts
424
+ import {
425
+ Configuration,
426
+ DocumentApi,
427
+ } from '@digital8/lighting-illusions-ts-sdk';
428
+ import type { StoreDocumentRequest } from '@digital8/lighting-illusions-ts-sdk';
429
+
430
+ async function example() {
431
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
432
+ const api = new DocumentApi();
433
+
434
+ const body = {
435
+ // CreateDocumentRequest (optional)
436
+ createDocumentRequest: ...,
437
+ } satisfies StoreDocumentRequest;
438
+
439
+ try {
440
+ const data = await api.storeDocument(body);
441
+ console.log(data);
442
+ } catch (error) {
443
+ console.error(error);
444
+ }
445
+ }
446
+
447
+ // Run the test
448
+ example().catch(console.error);
449
+ ```
450
+
451
+ ### Parameters
452
+
453
+
454
+ | Name | Type | Description | Notes |
455
+ |------------- | ------------- | ------------- | -------------|
456
+ | **createDocumentRequest** | [CreateDocumentRequest](CreateDocumentRequest.md) | | [Optional] |
457
+
458
+ ### Return type
459
+
460
+ [**DocumentResource**](DocumentResource.md)
461
+
462
+ ### Authorization
463
+
464
+ No authorization required
465
+
466
+ ### HTTP request headers
467
+
468
+ - **Content-Type**: `application/json`
469
+ - **Accept**: `application/json`
470
+
471
+
472
+ ### HTTP response details
473
+ | Status code | Description | Response headers |
474
+ |-------------|-------------|------------------|
475
+ | **200** | Successful resource response | - |
476
+
477
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
478
+
479
+
480
+ ## storeDocumentFile
481
+
482
+ > DocumentFileForUploadResource storeDocumentFile(createDocumentFileRequest)
483
+
484
+ Auto-generated: storeDocumentFile
485
+
486
+ ### Example
487
+
488
+ ```ts
489
+ import {
490
+ Configuration,
491
+ DocumentApi,
492
+ } from '@digital8/lighting-illusions-ts-sdk';
493
+ import type { StoreDocumentFileRequest } from '@digital8/lighting-illusions-ts-sdk';
494
+
495
+ async function example() {
496
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
497
+ const api = new DocumentApi();
498
+
499
+ const body = {
500
+ // CreateDocumentFileRequest (optional)
501
+ createDocumentFileRequest: ...,
502
+ } satisfies StoreDocumentFileRequest;
503
+
504
+ try {
505
+ const data = await api.storeDocumentFile(body);
506
+ console.log(data);
507
+ } catch (error) {
508
+ console.error(error);
509
+ }
510
+ }
511
+
512
+ // Run the test
513
+ example().catch(console.error);
514
+ ```
515
+
516
+ ### Parameters
517
+
518
+
519
+ | Name | Type | Description | Notes |
520
+ |------------- | ------------- | ------------- | -------------|
521
+ | **createDocumentFileRequest** | [CreateDocumentFileRequest](CreateDocumentFileRequest.md) | | [Optional] |
522
+
523
+ ### Return type
524
+
525
+ [**DocumentFileForUploadResource**](DocumentFileForUploadResource.md)
526
+
527
+ ### Authorization
528
+
529
+ No authorization required
530
+
531
+ ### HTTP request headers
532
+
533
+ - **Content-Type**: `application/json`
534
+ - **Accept**: `application/json`
535
+
536
+
537
+ ### HTTP response details
538
+ | Status code | Description | Response headers |
539
+ |-------------|-------------|------------------|
540
+ | **200** | Successful resource response | - |
541
+
542
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
543
+
544
+
545
+ ## updateDocument
546
+
547
+ > DocumentResource updateDocument(document, updateDocumentRequest)
548
+
549
+ Auto-generated: updateDocument
550
+
551
+ ### Example
552
+
553
+ ```ts
554
+ import {
555
+ Configuration,
556
+ DocumentApi,
557
+ } from '@digital8/lighting-illusions-ts-sdk';
558
+ import type { UpdateDocumentOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
559
+
560
+ async function example() {
561
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
562
+ const api = new DocumentApi();
563
+
564
+ const body = {
565
+ // number | The id of the document
566
+ document: 56,
567
+ // UpdateDocumentRequest (optional)
568
+ updateDocumentRequest: ...,
569
+ } satisfies UpdateDocumentOperationRequest;
570
+
571
+ try {
572
+ const data = await api.updateDocument(body);
573
+ console.log(data);
574
+ } catch (error) {
575
+ console.error(error);
576
+ }
577
+ }
578
+
579
+ // Run the test
580
+ example().catch(console.error);
581
+ ```
582
+
583
+ ### Parameters
584
+
585
+
586
+ | Name | Type | Description | Notes |
587
+ |------------- | ------------- | ------------- | -------------|
588
+ | **document** | `number` | The id of the document | [Defaults to `undefined`] |
589
+ | **updateDocumentRequest** | [UpdateDocumentRequest](UpdateDocumentRequest.md) | | [Optional] |
590
+
591
+ ### Return type
592
+
593
+ [**DocumentResource**](DocumentResource.md)
594
+
595
+ ### Authorization
596
+
597
+ No authorization required
598
+
599
+ ### HTTP request headers
600
+
601
+ - **Content-Type**: `application/json`
602
+ - **Accept**: `application/json`
603
+
604
+
605
+ ### HTTP response details
606
+ | Status code | Description | Response headers |
607
+ |-------------|-------------|------------------|
608
+ | **200** | Successful resource response | - |
609
+
610
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
611
+
@@ -0,0 +1,46 @@
1
+
2
+ # SearchAllDocumentsRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `search` | string
10
+ `sortBy` | string
11
+ `sortDirection` | string
12
+ `relatedId` | number
13
+ `relatedType` | string
14
+ `includesRelations` | boolean
15
+ `sitesId` | Array<string>
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { SearchAllDocumentsRequest } from '@digital8/lighting-illusions-ts-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "search": null,
25
+ "sortBy": null,
26
+ "sortDirection": null,
27
+ "relatedId": null,
28
+ "relatedType": null,
29
+ "includesRelations": null,
30
+ "sitesId": null,
31
+ } satisfies SearchAllDocumentsRequest
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as SearchAllDocumentsRequest
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,50 @@
1
+
2
+ # SearchDocumentsRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `search` | string
10
+ `sortBy` | string
11
+ `sortDirection` | string
12
+ `perPage` | number
13
+ `page` | number
14
+ `sitesId` | Array<string>
15
+ `relatedId` | number
16
+ `relatedType` | string
17
+ `includesRelations` | boolean
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { SearchDocumentsRequest } from '@digital8/lighting-illusions-ts-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "search": null,
27
+ "sortBy": null,
28
+ "sortDirection": null,
29
+ "perPage": null,
30
+ "page": null,
31
+ "sitesId": null,
32
+ "relatedId": null,
33
+ "relatedType": null,
34
+ "includesRelations": null,
35
+ } satisfies SearchDocumentsRequest
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as SearchDocumentsRequest
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | object
12
+ `date` | string
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object