@easyedu/js-lsm-api 1.51.0 → 1.52.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 +29 -2
  3. package/dist/apis/CourseCatalogApi.d.ts +123 -0
  4. package/dist/apis/CourseCatalogApi.js +313 -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 +123 -0
  12. package/dist/esm/apis/CourseCatalogApi.js +309 -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 +476 -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 +395 -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,476 @@
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
+ | [**getCourseCatalog**](CourseCatalogApi.md#getcoursecatalog) | **GET** /catalogs/{catalogId} | Get a catalog |
10
+ | [**getCourseCatalogs**](CourseCatalogApi.md#getcoursecatalogs) | **GET** /catalogs | List catalogs in the current portal |
11
+ | [**postCourseCatalog**](CourseCatalogApi.md#postcoursecatalog) | **POST** /catalogs | Create a course catalog |
12
+ | [**putCourseCatalog**](CourseCatalogApi.md#putcoursecatalog) | **PUT** /catalogs/{catalogId} | Update a catalog |
13
+ | [**removeCourseFromCatalog**](CourseCatalogApi.md#removecoursefromcatalog) | **DELETE** /catalogs/{catalogId}/courses/{courseId} | Remove a course from a catalog |
14
+
15
+
16
+
17
+ ## addCourseToCatalog
18
+
19
+ > addCourseToCatalog(catalogId, courseId)
20
+
21
+ Add a course to a catalog
22
+
23
+ ### Example
24
+
25
+ ```ts
26
+ import {
27
+ Configuration,
28
+ CourseCatalogApi,
29
+ } from '@easyedu/js-lsm-api';
30
+ import type { AddCourseToCatalogRequest } from '@easyedu/js-lsm-api';
31
+
32
+ async function example() {
33
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
34
+ const api = new CourseCatalogApi();
35
+
36
+ const body = {
37
+ // string
38
+ catalogId: catalogId_example,
39
+ // string
40
+ courseId: courseId_example,
41
+ } satisfies AddCourseToCatalogRequest;
42
+
43
+ try {
44
+ const data = await api.addCourseToCatalog(body);
45
+ console.log(data);
46
+ } catch (error) {
47
+ console.error(error);
48
+ }
49
+ }
50
+
51
+ // Run the test
52
+ example().catch(console.error);
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+
58
+ | Name | Type | Description | Notes |
59
+ |------------- | ------------- | ------------- | -------------|
60
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
61
+ | **courseId** | `string` | | [Defaults to `undefined`] |
62
+
63
+ ### Return type
64
+
65
+ `void` (Empty response body)
66
+
67
+ ### Authorization
68
+
69
+ No authorization required
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: Not defined
75
+
76
+
77
+ ### HTTP response details
78
+ | Status code | Description | Response headers |
79
+ |-------------|-------------|------------------|
80
+ | **201** | Added | - |
81
+ | **404** | Catalog or course not found | - |
82
+
83
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
84
+
85
+
86
+ ## deleteCourseCatalog
87
+
88
+ > deleteCourseCatalog(catalogId)
89
+
90
+ Delete a catalog
91
+
92
+ ### Example
93
+
94
+ ```ts
95
+ import {
96
+ Configuration,
97
+ CourseCatalogApi,
98
+ } from '@easyedu/js-lsm-api';
99
+ import type { DeleteCourseCatalogRequest } from '@easyedu/js-lsm-api';
100
+
101
+ async function example() {
102
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
103
+ const api = new CourseCatalogApi();
104
+
105
+ const body = {
106
+ // string
107
+ catalogId: catalogId_example,
108
+ } satisfies DeleteCourseCatalogRequest;
109
+
110
+ try {
111
+ const data = await api.deleteCourseCatalog(body);
112
+ console.log(data);
113
+ } catch (error) {
114
+ console.error(error);
115
+ }
116
+ }
117
+
118
+ // Run the test
119
+ example().catch(console.error);
120
+ ```
121
+
122
+ ### Parameters
123
+
124
+
125
+ | Name | Type | Description | Notes |
126
+ |------------- | ------------- | ------------- | -------------|
127
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
128
+
129
+ ### Return type
130
+
131
+ `void` (Empty response body)
132
+
133
+ ### Authorization
134
+
135
+ No authorization required
136
+
137
+ ### HTTP request headers
138
+
139
+ - **Content-Type**: Not defined
140
+ - **Accept**: Not defined
141
+
142
+
143
+ ### HTTP response details
144
+ | Status code | Description | Response headers |
145
+ |-------------|-------------|------------------|
146
+ | **204** | Deleted | - |
147
+ | **404** | Not found | - |
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
+ ## getCourseCatalog
153
+
154
+ > CourseCatalog getCourseCatalog(catalogId)
155
+
156
+ Get a catalog
157
+
158
+ ### Example
159
+
160
+ ```ts
161
+ import {
162
+ Configuration,
163
+ CourseCatalogApi,
164
+ } from '@easyedu/js-lsm-api';
165
+ import type { GetCourseCatalogRequest } from '@easyedu/js-lsm-api';
166
+
167
+ async function example() {
168
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
169
+ const api = new CourseCatalogApi();
170
+
171
+ const body = {
172
+ // string
173
+ catalogId: catalogId_example,
174
+ } satisfies GetCourseCatalogRequest;
175
+
176
+ try {
177
+ const data = await api.getCourseCatalog(body);
178
+ console.log(data);
179
+ } catch (error) {
180
+ console.error(error);
181
+ }
182
+ }
183
+
184
+ // Run the test
185
+ example().catch(console.error);
186
+ ```
187
+
188
+ ### Parameters
189
+
190
+
191
+ | Name | Type | Description | Notes |
192
+ |------------- | ------------- | ------------- | -------------|
193
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
194
+
195
+ ### Return type
196
+
197
+ [**CourseCatalog**](CourseCatalog.md)
198
+
199
+ ### Authorization
200
+
201
+ No authorization required
202
+
203
+ ### HTTP request headers
204
+
205
+ - **Content-Type**: Not defined
206
+ - **Accept**: `application/json`
207
+
208
+
209
+ ### HTTP response details
210
+ | Status code | Description | Response headers |
211
+ |-------------|-------------|------------------|
212
+ | **200** | Catalog details | - |
213
+ | **404** | Not found | - |
214
+
215
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
216
+
217
+
218
+ ## getCourseCatalogs
219
+
220
+ > Array<CourseCatalog> getCourseCatalogs()
221
+
222
+ List catalogs in the current portal
223
+
224
+ ### Example
225
+
226
+ ```ts
227
+ import {
228
+ Configuration,
229
+ CourseCatalogApi,
230
+ } from '@easyedu/js-lsm-api';
231
+ import type { GetCourseCatalogsRequest } from '@easyedu/js-lsm-api';
232
+
233
+ async function example() {
234
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
235
+ const api = new CourseCatalogApi();
236
+
237
+ try {
238
+ const data = await api.getCourseCatalogs();
239
+ console.log(data);
240
+ } catch (error) {
241
+ console.error(error);
242
+ }
243
+ }
244
+
245
+ // Run the test
246
+ example().catch(console.error);
247
+ ```
248
+
249
+ ### Parameters
250
+
251
+ This endpoint does not need any parameter.
252
+
253
+ ### Return type
254
+
255
+ [**Array<CourseCatalog>**](CourseCatalog.md)
256
+
257
+ ### Authorization
258
+
259
+ No authorization required
260
+
261
+ ### HTTP request headers
262
+
263
+ - **Content-Type**: Not defined
264
+ - **Accept**: `application/json`
265
+
266
+
267
+ ### HTTP response details
268
+ | Status code | Description | Response headers |
269
+ |-------------|-------------|------------------|
270
+ | **200** | List of catalogs | - |
271
+
272
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
273
+
274
+
275
+ ## postCourseCatalog
276
+
277
+ > CourseCatalog postCourseCatalog(postCourseCatalog)
278
+
279
+ Create a course catalog
280
+
281
+ ### Example
282
+
283
+ ```ts
284
+ import {
285
+ Configuration,
286
+ CourseCatalogApi,
287
+ } from '@easyedu/js-lsm-api';
288
+ import type { PostCourseCatalogRequest } from '@easyedu/js-lsm-api';
289
+
290
+ async function example() {
291
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
292
+ const api = new CourseCatalogApi();
293
+
294
+ const body = {
295
+ // PostCourseCatalog
296
+ postCourseCatalog: ...,
297
+ } satisfies PostCourseCatalogRequest;
298
+
299
+ try {
300
+ const data = await api.postCourseCatalog(body);
301
+ console.log(data);
302
+ } catch (error) {
303
+ console.error(error);
304
+ }
305
+ }
306
+
307
+ // Run the test
308
+ example().catch(console.error);
309
+ ```
310
+
311
+ ### Parameters
312
+
313
+
314
+ | Name | Type | Description | Notes |
315
+ |------------- | ------------- | ------------- | -------------|
316
+ | **postCourseCatalog** | [PostCourseCatalog](PostCourseCatalog.md) | | |
317
+
318
+ ### Return type
319
+
320
+ [**CourseCatalog**](CourseCatalog.md)
321
+
322
+ ### Authorization
323
+
324
+ No authorization required
325
+
326
+ ### HTTP request headers
327
+
328
+ - **Content-Type**: `application/json`
329
+ - **Accept**: `application/json`
330
+
331
+
332
+ ### HTTP response details
333
+ | Status code | Description | Response headers |
334
+ |-------------|-------------|------------------|
335
+ | **201** | Created | - |
336
+
337
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
338
+
339
+
340
+ ## putCourseCatalog
341
+
342
+ > CourseCatalog putCourseCatalog(catalogId, putCourseCatalog)
343
+
344
+ Update a catalog
345
+
346
+ ### Example
347
+
348
+ ```ts
349
+ import {
350
+ Configuration,
351
+ CourseCatalogApi,
352
+ } from '@easyedu/js-lsm-api';
353
+ import type { PutCourseCatalogRequest } from '@easyedu/js-lsm-api';
354
+
355
+ async function example() {
356
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
357
+ const api = new CourseCatalogApi();
358
+
359
+ const body = {
360
+ // string
361
+ catalogId: catalogId_example,
362
+ // PutCourseCatalog
363
+ putCourseCatalog: ...,
364
+ } satisfies PutCourseCatalogRequest;
365
+
366
+ try {
367
+ const data = await api.putCourseCatalog(body);
368
+ console.log(data);
369
+ } catch (error) {
370
+ console.error(error);
371
+ }
372
+ }
373
+
374
+ // Run the test
375
+ example().catch(console.error);
376
+ ```
377
+
378
+ ### Parameters
379
+
380
+
381
+ | Name | Type | Description | Notes |
382
+ |------------- | ------------- | ------------- | -------------|
383
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
384
+ | **putCourseCatalog** | [PutCourseCatalog](PutCourseCatalog.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
+ | **200** | Updated | - |
404
+ | **404** | Not found | - |
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
+
408
+
409
+ ## removeCourseFromCatalog
410
+
411
+ > removeCourseFromCatalog(catalogId, courseId)
412
+
413
+ Remove a course from a catalog
414
+
415
+ ### Example
416
+
417
+ ```ts
418
+ import {
419
+ Configuration,
420
+ CourseCatalogApi,
421
+ } from '@easyedu/js-lsm-api';
422
+ import type { RemoveCourseFromCatalogRequest } from '@easyedu/js-lsm-api';
423
+
424
+ async function example() {
425
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
426
+ const api = new CourseCatalogApi();
427
+
428
+ const body = {
429
+ // string
430
+ catalogId: catalogId_example,
431
+ // string
432
+ courseId: courseId_example,
433
+ } satisfies RemoveCourseFromCatalogRequest;
434
+
435
+ try {
436
+ const data = await api.removeCourseFromCatalog(body);
437
+ console.log(data);
438
+ } catch (error) {
439
+ console.error(error);
440
+ }
441
+ }
442
+
443
+ // Run the test
444
+ example().catch(console.error);
445
+ ```
446
+
447
+ ### Parameters
448
+
449
+
450
+ | Name | Type | Description | Notes |
451
+ |------------- | ------------- | ------------- | -------------|
452
+ | **catalogId** | `string` | | [Defaults to `undefined`] |
453
+ | **courseId** | `string` | | [Defaults to `undefined`] |
454
+
455
+ ### Return type
456
+
457
+ `void` (Empty response body)
458
+
459
+ ### Authorization
460
+
461
+ No authorization required
462
+
463
+ ### HTTP request headers
464
+
465
+ - **Content-Type**: Not defined
466
+ - **Accept**: Not defined
467
+
468
+
469
+ ### HTTP response details
470
+ | Status code | Description | Response headers |
471
+ |-------------|-------------|------------------|
472
+ | **204** | Removed | - |
473
+ | **404** | Catalog or course not found | - |
474
+
475
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
476
+
@@ -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
+