@easyedu/js-lsm-api 1.51.0 → 1.53.0

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 (91) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +30 -2
  3. package/dist/apis/CourseCatalogApi.d.ts +138 -0
  4. package/dist/apis/CourseCatalogApi.js +352 -0
  5. package/dist/apis/CourseShareApi.d.ts +153 -0
  6. package/dist/apis/CourseShareApi.js +385 -0
  7. package/dist/apis/PortalSublicenseApi.d.ts +36 -0
  8. package/dist/apis/PortalSublicenseApi.js +79 -0
  9. package/dist/apis/index.d.ts +3 -0
  10. package/dist/apis/index.js +3 -0
  11. package/dist/esm/apis/CourseCatalogApi.d.ts +138 -0
  12. package/dist/esm/apis/CourseCatalogApi.js +348 -0
  13. package/dist/esm/apis/CourseShareApi.d.ts +153 -0
  14. package/dist/esm/apis/CourseShareApi.js +381 -0
  15. package/dist/esm/apis/PortalSublicenseApi.d.ts +36 -0
  16. package/dist/esm/apis/PortalSublicenseApi.js +75 -0
  17. package/dist/esm/apis/index.d.ts +3 -0
  18. package/dist/esm/apis/index.js +3 -0
  19. package/dist/esm/models/CourseCatalog.d.ts +44 -0
  20. package/dist/esm/models/CourseCatalog.js +51 -0
  21. package/dist/esm/models/CourseShare.d.ts +88 -0
  22. package/dist/esm/models/CourseShare.js +85 -0
  23. package/dist/esm/models/PortalSublicense.d.ts +65 -0
  24. package/dist/esm/models/PortalSublicense.js +61 -0
  25. package/dist/esm/models/PostCourseCatalog.d.ts +38 -0
  26. package/dist/esm/models/PostCourseCatalog.js +45 -0
  27. package/dist/esm/models/PostOfferCatalog.d.ts +59 -0
  28. package/dist/esm/models/PostOfferCatalog.js +59 -0
  29. package/dist/esm/models/PostOfferCatalogResponse.d.ts +32 -0
  30. package/dist/esm/models/PostOfferCatalogResponse.js +43 -0
  31. package/dist/esm/models/PostOfferCourse.d.ts +59 -0
  32. package/dist/esm/models/PostOfferCourse.js +59 -0
  33. package/dist/esm/models/PostOfferCourseResponse.d.ts +49 -0
  34. package/dist/esm/models/PostOfferCourseResponse.js +57 -0
  35. package/dist/esm/models/PutCourseCatalog.d.ts +38 -0
  36. package/dist/esm/models/PutCourseCatalog.js +43 -0
  37. package/dist/esm/models/PutPortalSublicense.d.ts +46 -0
  38. package/dist/esm/models/PutPortalSublicense.js +45 -0
  39. package/dist/esm/models/index.d.ts +10 -0
  40. package/dist/esm/models/index.js +10 -0
  41. package/dist/models/CourseCatalog.d.ts +44 -0
  42. package/dist/models/CourseCatalog.js +58 -0
  43. package/dist/models/CourseShare.d.ts +88 -0
  44. package/dist/models/CourseShare.js +93 -0
  45. package/dist/models/PortalSublicense.d.ts +65 -0
  46. package/dist/models/PortalSublicense.js +69 -0
  47. package/dist/models/PostCourseCatalog.d.ts +38 -0
  48. package/dist/models/PostCourseCatalog.js +52 -0
  49. package/dist/models/PostOfferCatalog.d.ts +59 -0
  50. package/dist/models/PostOfferCatalog.js +67 -0
  51. package/dist/models/PostOfferCatalogResponse.d.ts +32 -0
  52. package/dist/models/PostOfferCatalogResponse.js +50 -0
  53. package/dist/models/PostOfferCourse.d.ts +59 -0
  54. package/dist/models/PostOfferCourse.js +67 -0
  55. package/dist/models/PostOfferCourseResponse.d.ts +49 -0
  56. package/dist/models/PostOfferCourseResponse.js +65 -0
  57. package/dist/models/PutCourseCatalog.d.ts +38 -0
  58. package/dist/models/PutCourseCatalog.js +50 -0
  59. package/dist/models/PutPortalSublicense.d.ts +46 -0
  60. package/dist/models/PutPortalSublicense.js +52 -0
  61. package/dist/models/index.d.ts +10 -0
  62. package/dist/models/index.js +10 -0
  63. package/docs/CourseCatalog.md +38 -0
  64. package/docs/CourseCatalogApi.md +544 -0
  65. package/docs/CourseShare.md +46 -0
  66. package/docs/CourseShareApi.md +609 -0
  67. package/docs/PortalSublicense.md +42 -0
  68. package/docs/PortalSublicenseApi.md +81 -0
  69. package/docs/PostCourseCatalog.md +36 -0
  70. package/docs/PostOfferCatalog.md +40 -0
  71. package/docs/PostOfferCatalogResponse.md +34 -0
  72. package/docs/PostOfferCourse.md +40 -0
  73. package/docs/PostOfferCourseResponse.md +36 -0
  74. package/docs/PutCourseCatalog.md +36 -0
  75. package/docs/PutPortalSublicense.md +39 -0
  76. package/package.json +1 -1
  77. package/src/apis/CourseCatalogApi.ts +447 -0
  78. package/src/apis/CourseShareApi.ts +480 -0
  79. package/src/apis/PortalSublicenseApi.ts +95 -0
  80. package/src/apis/index.ts +3 -0
  81. package/src/models/CourseCatalog.ts +84 -0
  82. package/src/models/CourseShare.ts +144 -0
  83. package/src/models/PortalSublicense.ts +111 -0
  84. package/src/models/PostCourseCatalog.ts +74 -0
  85. package/src/models/PostOfferCatalog.ts +103 -0
  86. package/src/models/PostOfferCatalogResponse.ts +66 -0
  87. package/src/models/PostOfferCourse.ts +103 -0
  88. package/src/models/PostOfferCourseResponse.ts +89 -0
  89. package/src/models/PutCourseCatalog.ts +73 -0
  90. package/src/models/PutPortalSublicense.ts +83 -0
  91. package/src/models/index.ts +10 -0
@@ -0,0 +1,544 @@
1
+ # CourseCatalogApi
2
+
3
+ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com/stage1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**addCourseToCatalog**](CourseCatalogApi.md#addcoursetocatalog) | **POST** /catalogs/{catalogId}/courses/{courseId} | Add a course to a catalog |
8
+ | [**deleteCourseCatalog**](CourseCatalogApi.md#deletecoursecatalog) | **DELETE** /catalogs/{catalogId} | Delete a catalog |
9
+ | [**getCatalogCourses**](CourseCatalogApi.md#getcatalogcourses) | **GET** /catalogs/{catalogId}/courses | List the courses in a catalog |
10
+ | [**getCourseCatalog**](CourseCatalogApi.md#getcoursecatalog) | **GET** /catalogs/{catalogId} | Get a catalog |
11
+ | [**getCourseCatalogs**](CourseCatalogApi.md#getcoursecatalogs) | **GET** /catalogs | List catalogs in the current portal |
12
+ | [**postCourseCatalog**](CourseCatalogApi.md#postcoursecatalog) | **POST** /catalogs | Create a course catalog |
13
+ | [**putCourseCatalog**](CourseCatalogApi.md#putcoursecatalog) | **PUT** /catalogs/{catalogId} | Update a catalog |
14
+ | [**removeCourseFromCatalog**](CourseCatalogApi.md#removecoursefromcatalog) | **DELETE** /catalogs/{catalogId}/courses/{courseId} | Remove a course from a catalog |
15
+
16
+
17
+
18
+ ## addCourseToCatalog
19
+
20
+ > addCourseToCatalog(catalogId, courseId)
21
+
22
+ Add a course to a catalog
23
+
24
+ ### Example
25
+
26
+ ```ts
27
+ import {
28
+ Configuration,
29
+ CourseCatalogApi,
30
+ } from '@easyedu/js-lsm-api';
31
+ import type { AddCourseToCatalogRequest } from '@easyedu/js-lsm-api';
32
+
33
+ async function example() {
34
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
35
+ const api = new CourseCatalogApi();
36
+
37
+ const body = {
38
+ // string
39
+ catalogId: catalogId_example,
40
+ // string
41
+ courseId: courseId_example,
42
+ } satisfies AddCourseToCatalogRequest;
43
+
44
+ try {
45
+ const data = await api.addCourseToCatalog(body);
46
+ console.log(data);
47
+ } catch (error) {
48
+ console.error(error);
49
+ }
50
+ }
51
+
52
+ // Run the test
53
+ example().catch(console.error);
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+
59
+ | Name | Type | Description | Notes |
60
+ |------------- | ------------- | ------------- | -------------|
61
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
62
+ | **courseId** | `string` | | [Defaults to `undefined`] |
63
+
64
+ ### Return type
65
+
66
+ `void` (Empty response body)
67
+
68
+ ### Authorization
69
+
70
+ No authorization required
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: Not defined
75
+ - **Accept**: Not defined
76
+
77
+
78
+ ### HTTP response details
79
+ | Status code | Description | Response headers |
80
+ |-------------|-------------|------------------|
81
+ | **201** | Added | - |
82
+ | **404** | Catalog or course not found | - |
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
+ ## deleteCourseCatalog
88
+
89
+ > deleteCourseCatalog(catalogId)
90
+
91
+ Delete a catalog
92
+
93
+ ### Example
94
+
95
+ ```ts
96
+ import {
97
+ Configuration,
98
+ CourseCatalogApi,
99
+ } from '@easyedu/js-lsm-api';
100
+ import type { DeleteCourseCatalogRequest } from '@easyedu/js-lsm-api';
101
+
102
+ async function example() {
103
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
104
+ const api = new CourseCatalogApi();
105
+
106
+ const body = {
107
+ // string
108
+ catalogId: catalogId_example,
109
+ } satisfies DeleteCourseCatalogRequest;
110
+
111
+ try {
112
+ const data = await api.deleteCourseCatalog(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
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
129
+
130
+ ### Return type
131
+
132
+ `void` (Empty response body)
133
+
134
+ ### Authorization
135
+
136
+ No authorization required
137
+
138
+ ### HTTP request headers
139
+
140
+ - **Content-Type**: Not defined
141
+ - **Accept**: Not defined
142
+
143
+
144
+ ### HTTP response details
145
+ | Status code | Description | Response headers |
146
+ |-------------|-------------|------------------|
147
+ | **204** | Deleted | - |
148
+ | **404** | Not found | - |
149
+
150
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
151
+
152
+
153
+ ## getCatalogCourses
154
+
155
+ > Array<GetCourse> getCatalogCourses(catalogId)
156
+
157
+ List the courses in a catalog
158
+
159
+ ### Example
160
+
161
+ ```ts
162
+ import {
163
+ Configuration,
164
+ CourseCatalogApi,
165
+ } from '@easyedu/js-lsm-api';
166
+ import type { GetCatalogCoursesRequest } from '@easyedu/js-lsm-api';
167
+
168
+ async function example() {
169
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
170
+ const api = new CourseCatalogApi();
171
+
172
+ const body = {
173
+ // string
174
+ catalogId: catalogId_example,
175
+ } satisfies GetCatalogCoursesRequest;
176
+
177
+ try {
178
+ const data = await api.getCatalogCourses(body);
179
+ console.log(data);
180
+ } catch (error) {
181
+ console.error(error);
182
+ }
183
+ }
184
+
185
+ // Run the test
186
+ example().catch(console.error);
187
+ ```
188
+
189
+ ### Parameters
190
+
191
+
192
+ | Name | Type | Description | Notes |
193
+ |------------- | ------------- | ------------- | -------------|
194
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
195
+
196
+ ### Return type
197
+
198
+ [**Array<GetCourse>**](GetCourse.md)
199
+
200
+ ### Authorization
201
+
202
+ No authorization required
203
+
204
+ ### HTTP request headers
205
+
206
+ - **Content-Type**: Not defined
207
+ - **Accept**: `application/json`
208
+
209
+
210
+ ### HTTP response details
211
+ | Status code | Description | Response headers |
212
+ |-------------|-------------|------------------|
213
+ | **200** | Courses in the catalog | - |
214
+ | **403** | Catalog not owned by your portal | - |
215
+ | **404** | Catalog not found | - |
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
+ ## getCourseCatalog
221
+
222
+ > CourseCatalog getCourseCatalog(catalogId)
223
+
224
+ Get a catalog
225
+
226
+ ### Example
227
+
228
+ ```ts
229
+ import {
230
+ Configuration,
231
+ CourseCatalogApi,
232
+ } from '@easyedu/js-lsm-api';
233
+ import type { GetCourseCatalogRequest } from '@easyedu/js-lsm-api';
234
+
235
+ async function example() {
236
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
237
+ const api = new CourseCatalogApi();
238
+
239
+ const body = {
240
+ // string
241
+ catalogId: catalogId_example,
242
+ } satisfies GetCourseCatalogRequest;
243
+
244
+ try {
245
+ const data = await api.getCourseCatalog(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
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
262
+
263
+ ### Return type
264
+
265
+ [**CourseCatalog**](CourseCatalog.md)
266
+
267
+ ### Authorization
268
+
269
+ No authorization required
270
+
271
+ ### HTTP request headers
272
+
273
+ - **Content-Type**: Not defined
274
+ - **Accept**: `application/json`
275
+
276
+
277
+ ### HTTP response details
278
+ | Status code | Description | Response headers |
279
+ |-------------|-------------|------------------|
280
+ | **200** | Catalog details | - |
281
+ | **404** | Not found | - |
282
+
283
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
284
+
285
+
286
+ ## getCourseCatalogs
287
+
288
+ > Array<CourseCatalog> getCourseCatalogs()
289
+
290
+ List catalogs in the current portal
291
+
292
+ ### Example
293
+
294
+ ```ts
295
+ import {
296
+ Configuration,
297
+ CourseCatalogApi,
298
+ } from '@easyedu/js-lsm-api';
299
+ import type { GetCourseCatalogsRequest } from '@easyedu/js-lsm-api';
300
+
301
+ async function example() {
302
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
303
+ const api = new CourseCatalogApi();
304
+
305
+ try {
306
+ const data = await api.getCourseCatalogs();
307
+ console.log(data);
308
+ } catch (error) {
309
+ console.error(error);
310
+ }
311
+ }
312
+
313
+ // Run the test
314
+ example().catch(console.error);
315
+ ```
316
+
317
+ ### Parameters
318
+
319
+ This endpoint does not need any parameter.
320
+
321
+ ### Return type
322
+
323
+ [**Array<CourseCatalog>**](CourseCatalog.md)
324
+
325
+ ### Authorization
326
+
327
+ No authorization required
328
+
329
+ ### HTTP request headers
330
+
331
+ - **Content-Type**: Not defined
332
+ - **Accept**: `application/json`
333
+
334
+
335
+ ### HTTP response details
336
+ | Status code | Description | Response headers |
337
+ |-------------|-------------|------------------|
338
+ | **200** | List of catalogs | - |
339
+
340
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
341
+
342
+
343
+ ## postCourseCatalog
344
+
345
+ > CourseCatalog postCourseCatalog(postCourseCatalog)
346
+
347
+ Create a course catalog
348
+
349
+ ### Example
350
+
351
+ ```ts
352
+ import {
353
+ Configuration,
354
+ CourseCatalogApi,
355
+ } from '@easyedu/js-lsm-api';
356
+ import type { PostCourseCatalogRequest } from '@easyedu/js-lsm-api';
357
+
358
+ async function example() {
359
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
360
+ const api = new CourseCatalogApi();
361
+
362
+ const body = {
363
+ // PostCourseCatalog
364
+ postCourseCatalog: ...,
365
+ } satisfies PostCourseCatalogRequest;
366
+
367
+ try {
368
+ const data = await api.postCourseCatalog(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
+ | **postCourseCatalog** | [PostCourseCatalog](PostCourseCatalog.md) | | |
385
+
386
+ ### Return type
387
+
388
+ [**CourseCatalog**](CourseCatalog.md)
389
+
390
+ ### Authorization
391
+
392
+ No authorization required
393
+
394
+ ### HTTP request headers
395
+
396
+ - **Content-Type**: `application/json`
397
+ - **Accept**: `application/json`
398
+
399
+
400
+ ### HTTP response details
401
+ | Status code | Description | Response headers |
402
+ |-------------|-------------|------------------|
403
+ | **201** | Created | - |
404
+
405
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
406
+
407
+
408
+ ## putCourseCatalog
409
+
410
+ > CourseCatalog putCourseCatalog(catalogId, putCourseCatalog)
411
+
412
+ Update a catalog
413
+
414
+ ### Example
415
+
416
+ ```ts
417
+ import {
418
+ Configuration,
419
+ CourseCatalogApi,
420
+ } from '@easyedu/js-lsm-api';
421
+ import type { PutCourseCatalogRequest } from '@easyedu/js-lsm-api';
422
+
423
+ async function example() {
424
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
425
+ const api = new CourseCatalogApi();
426
+
427
+ const body = {
428
+ // string
429
+ catalogId: catalogId_example,
430
+ // PutCourseCatalog
431
+ putCourseCatalog: ...,
432
+ } satisfies PutCourseCatalogRequest;
433
+
434
+ try {
435
+ const data = await api.putCourseCatalog(body);
436
+ console.log(data);
437
+ } catch (error) {
438
+ console.error(error);
439
+ }
440
+ }
441
+
442
+ // Run the test
443
+ example().catch(console.error);
444
+ ```
445
+
446
+ ### Parameters
447
+
448
+
449
+ | Name | Type | Description | Notes |
450
+ |------------- | ------------- | ------------- | -------------|
451
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
452
+ | **putCourseCatalog** | [PutCourseCatalog](PutCourseCatalog.md) | | |
453
+
454
+ ### Return type
455
+
456
+ [**CourseCatalog**](CourseCatalog.md)
457
+
458
+ ### Authorization
459
+
460
+ No authorization required
461
+
462
+ ### HTTP request headers
463
+
464
+ - **Content-Type**: `application/json`
465
+ - **Accept**: `application/json`
466
+
467
+
468
+ ### HTTP response details
469
+ | Status code | Description | Response headers |
470
+ |-------------|-------------|------------------|
471
+ | **200** | Updated | - |
472
+ | **404** | Not found | - |
473
+
474
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
475
+
476
+
477
+ ## removeCourseFromCatalog
478
+
479
+ > removeCourseFromCatalog(catalogId, courseId)
480
+
481
+ Remove a course from a catalog
482
+
483
+ ### Example
484
+
485
+ ```ts
486
+ import {
487
+ Configuration,
488
+ CourseCatalogApi,
489
+ } from '@easyedu/js-lsm-api';
490
+ import type { RemoveCourseFromCatalogRequest } from '@easyedu/js-lsm-api';
491
+
492
+ async function example() {
493
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
494
+ const api = new CourseCatalogApi();
495
+
496
+ const body = {
497
+ // string
498
+ catalogId: catalogId_example,
499
+ // string
500
+ courseId: courseId_example,
501
+ } satisfies RemoveCourseFromCatalogRequest;
502
+
503
+ try {
504
+ const data = await api.removeCourseFromCatalog(body);
505
+ console.log(data);
506
+ } catch (error) {
507
+ console.error(error);
508
+ }
509
+ }
510
+
511
+ // Run the test
512
+ example().catch(console.error);
513
+ ```
514
+
515
+ ### Parameters
516
+
517
+
518
+ | Name | Type | Description | Notes |
519
+ |------------- | ------------- | ------------- | -------------|
520
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
521
+ | **courseId** | `string` | | [Defaults to `undefined`] |
522
+
523
+ ### Return type
524
+
525
+ `void` (Empty response body)
526
+
527
+ ### Authorization
528
+
529
+ No authorization required
530
+
531
+ ### HTTP request headers
532
+
533
+ - **Content-Type**: Not defined
534
+ - **Accept**: Not defined
535
+
536
+
537
+ ### HTTP response details
538
+ | Status code | Description | Response headers |
539
+ |-------------|-------------|------------------|
540
+ | **204** | Removed | - |
541
+ | **404** | Catalog or course not found | - |
542
+
543
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
544
+
@@ -0,0 +1,46 @@
1
+
2
+ # CourseShare
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `sourcePortalId` | number
11
+ `targetPortalId` | number
12
+ `courseId` | number
13
+ `allowedMode` | string
14
+ `state` | string
15
+ `allowResharing` | boolean
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { CourseShare } from '@easyedu/js-lsm-api'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "sourcePortalId": null,
26
+ "targetPortalId": null,
27
+ "courseId": null,
28
+ "allowedMode": null,
29
+ "state": null,
30
+ "allowResharing": null,
31
+ } satisfies CourseShare
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 CourseShare
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
+