@easyedu/js-lsm-api 1.50.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
@@ -9,6 +9,10 @@ docs/CertificatePublic.md
9
9
  docs/ChatApi.md
10
10
  docs/ContentApi.md
11
11
  docs/CourseApi.md
12
+ docs/CourseCatalog.md
13
+ docs/CourseCatalogApi.md
14
+ docs/CourseShare.md
15
+ docs/CourseShareApi.md
12
16
  docs/CriteriaBasedSelection.md
13
17
  docs/CriteriaBasedSelectionCriteria.md
14
18
  docs/CriteriaBasedSelectionDistribution.md
@@ -167,6 +171,8 @@ docs/NoAnswer.md
167
171
  docs/OtherApi.md
168
172
  docs/Paginated.md
169
173
  docs/PortalApi.md
174
+ docs/PortalSublicense.md
175
+ docs/PortalSublicenseApi.md
170
176
  docs/PostCertificate.md
171
177
  docs/PostCertificateConfig.md
172
178
  docs/PostContentQuiz.md
@@ -178,6 +184,7 @@ docs/PostContentUpload.md
178
184
  docs/PostConversation.md
179
185
  docs/PostConversationResponse.md
180
186
  docs/PostCourse.md
187
+ docs/PostCourseCatalog.md
181
188
  docs/PostCourseEnrollment.md
182
189
  docs/PostCourseExport.md
183
190
  docs/PostLogin.md
@@ -185,6 +192,10 @@ docs/PostManualQuestionSelection.md
185
192
  docs/PostMessage.md
186
193
  docs/PostMessageResponse.md
187
194
  docs/PostModule.md
195
+ docs/PostOfferCatalog.md
196
+ docs/PostOfferCatalogResponse.md
197
+ docs/PostOfferCourse.md
198
+ docs/PostOfferCourseResponse.md
188
199
  docs/PostPortal.md
189
200
  docs/PostPortalInvite.md
190
201
  docs/PostQuestion.md
@@ -217,10 +228,12 @@ docs/PutContent.md
217
228
  docs/PutContentReorder.md
218
229
  docs/PutContentVersion.md
219
230
  docs/PutCourse.md
231
+ docs/PutCourseCatalog.md
220
232
  docs/PutCourseEnrollment.md
221
233
  docs/PutModule.md
222
234
  docs/PutModuleReorder.md
223
235
  docs/PutPortalBranding.md
236
+ docs/PutPortalSublicense.md
224
237
  docs/PutQuestion.md
225
238
  docs/PutQuestionAnswerChoicesInner.md
226
239
  docs/PutQuiz.md
@@ -260,9 +273,12 @@ src/apis/CertificateApi.ts
260
273
  src/apis/ChatApi.ts
261
274
  src/apis/ContentApi.ts
262
275
  src/apis/CourseApi.ts
276
+ src/apis/CourseCatalogApi.ts
277
+ src/apis/CourseShareApi.ts
263
278
  src/apis/ModuleApi.ts
264
279
  src/apis/OtherApi.ts
265
280
  src/apis/PortalApi.ts
281
+ src/apis/PortalSublicenseApi.ts
266
282
  src/apis/QuestionApi.ts
267
283
  src/apis/QuizApi.ts
268
284
  src/apis/ReportingApi.ts
@@ -274,6 +290,8 @@ src/index.ts
274
290
  src/models/Certificate.ts
275
291
  src/models/CertificateConfig.ts
276
292
  src/models/CertificatePublic.ts
293
+ src/models/CourseCatalog.ts
294
+ src/models/CourseShare.ts
277
295
  src/models/CriteriaBasedSelection.ts
278
296
  src/models/CriteriaBasedSelectionCriteria.ts
279
297
  src/models/CriteriaBasedSelectionDistribution.ts
@@ -429,6 +447,7 @@ src/models/MultipleAnswer.ts
429
447
  src/models/MultipleAnswer1.ts
430
448
  src/models/NoAnswer.ts
431
449
  src/models/Paginated.ts
450
+ src/models/PortalSublicense.ts
432
451
  src/models/PostCertificate.ts
433
452
  src/models/PostCertificateConfig.ts
434
453
  src/models/PostContentQuiz.ts
@@ -440,6 +459,7 @@ src/models/PostContentUpload.ts
440
459
  src/models/PostConversation.ts
441
460
  src/models/PostConversationResponse.ts
442
461
  src/models/PostCourse.ts
462
+ src/models/PostCourseCatalog.ts
443
463
  src/models/PostCourseEnrollment.ts
444
464
  src/models/PostCourseExport.ts
445
465
  src/models/PostLogin.ts
@@ -447,6 +467,10 @@ src/models/PostManualQuestionSelection.ts
447
467
  src/models/PostMessage.ts
448
468
  src/models/PostMessageResponse.ts
449
469
  src/models/PostModule.ts
470
+ src/models/PostOfferCatalog.ts
471
+ src/models/PostOfferCatalogResponse.ts
472
+ src/models/PostOfferCourse.ts
473
+ src/models/PostOfferCourseResponse.ts
450
474
  src/models/PostPortal.ts
451
475
  src/models/PostPortalInvite.ts
452
476
  src/models/PostQuestion.ts
@@ -479,10 +503,12 @@ src/models/PutContent.ts
479
503
  src/models/PutContentReorder.ts
480
504
  src/models/PutContentVersion.ts
481
505
  src/models/PutCourse.ts
506
+ src/models/PutCourseCatalog.ts
482
507
  src/models/PutCourseEnrollment.ts
483
508
  src/models/PutModule.ts
484
509
  src/models/PutModuleReorder.ts
485
510
  src/models/PutPortalBranding.ts
511
+ src/models/PutPortalSublicense.ts
486
512
  src/models/PutQuestion.ts
487
513
  src/models/PutQuestionAnswerChoicesInner.ts
488
514
  src/models/PutQuiz.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.50.0
1
+ # @easyedu/js-lsm-api@1.52.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -105,6 +105,22 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
105
105
  *CourseApi* | [**postCourseImageUpload**](docs/CourseApi.md#postcourseimageupload) | **POST** /courses/{courseId}/image | Upload a course image
106
106
  *CourseApi* | [**putCourse**](docs/CourseApi.md#putcourse) | **PUT** /courses/{courseId} | Update a course by id
107
107
  *CourseApi* | [**putCourseEnrollment**](docs/CourseApi.md#putcourseenrollment) | **PUT** /courses/{courseId}/enrollments/{enrollmentId} | Update a course enrollment
108
+ *CourseCatalogApi* | [**addCourseToCatalog**](docs/CourseCatalogApi.md#addcoursetocatalog) | **POST** /catalogs/{catalogId}/courses/{courseId} | Add a course to a catalog
109
+ *CourseCatalogApi* | [**deleteCourseCatalog**](docs/CourseCatalogApi.md#deletecoursecatalog) | **DELETE** /catalogs/{catalogId} | Delete a catalog
110
+ *CourseCatalogApi* | [**getCourseCatalog**](docs/CourseCatalogApi.md#getcoursecatalog) | **GET** /catalogs/{catalogId} | Get a catalog
111
+ *CourseCatalogApi* | [**getCourseCatalogs**](docs/CourseCatalogApi.md#getcoursecatalogs) | **GET** /catalogs | List catalogs in the current portal
112
+ *CourseCatalogApi* | [**postCourseCatalog**](docs/CourseCatalogApi.md#postcoursecatalog) | **POST** /catalogs | Create a course catalog
113
+ *CourseCatalogApi* | [**putCourseCatalog**](docs/CourseCatalogApi.md#putcoursecatalog) | **PUT** /catalogs/{catalogId} | Update a catalog
114
+ *CourseCatalogApi* | [**removeCourseFromCatalog**](docs/CourseCatalogApi.md#removecoursefromcatalog) | **DELETE** /catalogs/{catalogId}/courses/{courseId} | Remove a course from a catalog
115
+ *CourseShareApi* | [**deleteCourseShare**](docs/CourseShareApi.md#deletecourseshare) | **DELETE** /course-shares/{shareId} | Revoke a share
116
+ *CourseShareApi* | [**getCourseSharesOfferedByMe**](docs/CourseShareApi.md#getcoursesharesofferedbyme) | **GET** /course-shares/offered-by-me | List shares the current portal has offered out
117
+ *CourseShareApi* | [**getCourseSharesOfferedToMe**](docs/CourseShareApi.md#getcoursesharesofferedtome) | **GET** /course-shares/offered-to-me | List shares offered to the current portal
118
+ *CourseShareApi* | [**postOfferCatalog**](docs/CourseShareApi.md#postoffercatalog) | **POST** /catalogs/{catalogId}/shares | Offer every course in a catalog to a descendant portal
119
+ *CourseShareApi* | [**postOfferCourse**](docs/CourseShareApi.md#postoffercourse) | **POST** /courses/{courseId}/shares | Offer a single course to a descendant portal
120
+ *CourseShareApi* | [**postUnrevokeShare**](docs/CourseShareApi.md#postunrevokeshare) | **POST** /course-shares/{shareId}/unrevoke | Restore a previously revoked share
121
+ *CourseShareApi* | [**putAcceptClone**](docs/CourseShareApi.md#putacceptclone) | **PUT** /course-shares/{shareId}/accept-clone | Accept an offer as a clone (deep copy into your portal)
122
+ *CourseShareApi* | [**putAcceptMirror**](docs/CourseShareApi.md#putacceptmirror) | **PUT** /course-shares/{shareId}/accept-mirror | Accept an offer as a mirror (no copy, live link to source)
123
+ *CourseShareApi* | [**putDeclineShare**](docs/CourseShareApi.md#putdeclineshare) | **PUT** /course-shares/{shareId}/decline | Decline an offer
108
124
  *ModuleApi* | [**getModule**](docs/ModuleApi.md#getmodule) | **GET** /courses/{courseId}/modules/{moduleId} | get a course module
109
125
  *ModuleApi* | [**getModuleList**](docs/ModuleApi.md#getmodulelist) | **GET** /courses/{courseId}/modules | get module list
110
126
  *ModuleApi* | [**postModule**](docs/ModuleApi.md#postmodule) | **POST** /courses/{courseId}/modules | Post a new module
@@ -120,6 +136,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
120
136
  *PortalApi* | [**postPortalLogoUpload**](docs/PortalApi.md#postportallogoupload) | **POST** /portals/{portalId}/branding/logo | Upload a logo image for portal branding
121
137
  *PortalApi* | [**putPortalBranding**](docs/PortalApi.md#putportalbranding) | **PUT** /portals/{portalId} | Update portal branding (name, background color, text color)
122
138
  *PortalApi* | [**updateSelectedPortal**](docs/PortalApi.md#updateselectedportal) | **PUT** /portals/{portalId}/selected | Update the users current selected portal. Returns new JWT with updated roles.
139
+ *PortalSublicenseApi* | [**putPortalSublicense**](docs/PortalSublicenseApi.md#putportalsublicense) | **PUT** /portals/{portalId}/sublicense | Manage seat limit and license window for a descendant portal
123
140
  *QuestionApi* | [**deleteQuestion**](docs/QuestionApi.md#deletequestion) | **DELETE** /questions/{questionId} | Delete a question by ID
124
141
  *QuestionApi* | [**getQuestion**](docs/QuestionApi.md#getquestion) | **GET** /questions/{questionId} | Get a question by ID
125
142
  *QuestionApi* | [**getQuestionList**](docs/QuestionApi.md#getquestionlist) | **GET** /questions | Get list of questions with filtering and pagination
@@ -194,6 +211,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
194
211
  - [Certificate](docs/Certificate.md)
195
212
  - [CertificateConfig](docs/CertificateConfig.md)
196
213
  - [CertificatePublic](docs/CertificatePublic.md)
214
+ - [CourseCatalog](docs/CourseCatalog.md)
215
+ - [CourseShare](docs/CourseShare.md)
197
216
  - [CriteriaBasedSelection](docs/CriteriaBasedSelection.md)
198
217
  - [CriteriaBasedSelectionCriteria](docs/CriteriaBasedSelectionCriteria.md)
199
218
  - [CriteriaBasedSelectionDistribution](docs/CriteriaBasedSelectionDistribution.md)
@@ -349,6 +368,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
349
368
  - [MultipleAnswer1](docs/MultipleAnswer1.md)
350
369
  - [NoAnswer](docs/NoAnswer.md)
351
370
  - [Paginated](docs/Paginated.md)
371
+ - [PortalSublicense](docs/PortalSublicense.md)
352
372
  - [PostCertificate](docs/PostCertificate.md)
353
373
  - [PostCertificateConfig](docs/PostCertificateConfig.md)
354
374
  - [PostContentQuiz](docs/PostContentQuiz.md)
@@ -360,6 +380,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
360
380
  - [PostConversation](docs/PostConversation.md)
361
381
  - [PostConversationResponse](docs/PostConversationResponse.md)
362
382
  - [PostCourse](docs/PostCourse.md)
383
+ - [PostCourseCatalog](docs/PostCourseCatalog.md)
363
384
  - [PostCourseEnrollment](docs/PostCourseEnrollment.md)
364
385
  - [PostCourseExport](docs/PostCourseExport.md)
365
386
  - [PostLogin](docs/PostLogin.md)
@@ -367,6 +388,10 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
367
388
  - [PostMessage](docs/PostMessage.md)
368
389
  - [PostMessageResponse](docs/PostMessageResponse.md)
369
390
  - [PostModule](docs/PostModule.md)
391
+ - [PostOfferCatalog](docs/PostOfferCatalog.md)
392
+ - [PostOfferCatalogResponse](docs/PostOfferCatalogResponse.md)
393
+ - [PostOfferCourse](docs/PostOfferCourse.md)
394
+ - [PostOfferCourseResponse](docs/PostOfferCourseResponse.md)
370
395
  - [PostPortal](docs/PostPortal.md)
371
396
  - [PostPortalInvite](docs/PostPortalInvite.md)
372
397
  - [PostQuestion](docs/PostQuestion.md)
@@ -399,10 +424,12 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
399
424
  - [PutContentReorder](docs/PutContentReorder.md)
400
425
  - [PutContentVersion](docs/PutContentVersion.md)
401
426
  - [PutCourse](docs/PutCourse.md)
427
+ - [PutCourseCatalog](docs/PutCourseCatalog.md)
402
428
  - [PutCourseEnrollment](docs/PutCourseEnrollment.md)
403
429
  - [PutModule](docs/PutModule.md)
404
430
  - [PutModuleReorder](docs/PutModuleReorder.md)
405
431
  - [PutPortalBranding](docs/PutPortalBranding.md)
432
+ - [PutPortalSublicense](docs/PutPortalSublicense.md)
406
433
  - [PutQuestion](docs/PutQuestion.md)
407
434
  - [PutQuestionAnswerChoicesInner](docs/PutQuestionAnswerChoicesInner.md)
408
435
  - [PutQuiz](docs/PutQuiz.md)
@@ -444,7 +471,7 @@ and is automatically generated by the
444
471
  [OpenAPI Generator](https://openapi-generator.tech) project:
445
472
 
446
473
  - API version: `1.0.0`
447
- - Package version: `1.50.0`
474
+ - Package version: `1.52.0`
448
475
  - Generator version: `7.21.0`
449
476
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
450
477
 
@@ -0,0 +1,123 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { CourseCatalog, PostCourseCatalog, PutCourseCatalog } from '../models/index';
14
+ export interface AddCourseToCatalogRequest {
15
+ catalogId: string;
16
+ courseId: string;
17
+ }
18
+ export interface DeleteCourseCatalogRequest {
19
+ catalogId: string;
20
+ }
21
+ export interface GetCourseCatalogRequest {
22
+ catalogId: string;
23
+ }
24
+ export interface PostCourseCatalogRequest {
25
+ postCourseCatalog: PostCourseCatalog;
26
+ }
27
+ export interface PutCourseCatalogRequest {
28
+ catalogId: string;
29
+ putCourseCatalog: PutCourseCatalog;
30
+ }
31
+ export interface RemoveCourseFromCatalogRequest {
32
+ catalogId: string;
33
+ courseId: string;
34
+ }
35
+ /**
36
+ *
37
+ */
38
+ export declare class CourseCatalogApi extends runtime.BaseAPI {
39
+ /**
40
+ * Creates request options for addCourseToCatalog without sending the request
41
+ */
42
+ addCourseToCatalogRequestOpts(requestParameters: AddCourseToCatalogRequest): Promise<runtime.RequestOpts>;
43
+ /**
44
+ * Add a course to a catalog
45
+ */
46
+ addCourseToCatalogRaw(requestParameters: AddCourseToCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
47
+ /**
48
+ * Add a course to a catalog
49
+ */
50
+ addCourseToCatalog(requestParameters: AddCourseToCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
51
+ /**
52
+ * Creates request options for deleteCourseCatalog without sending the request
53
+ */
54
+ deleteCourseCatalogRequestOpts(requestParameters: DeleteCourseCatalogRequest): Promise<runtime.RequestOpts>;
55
+ /**
56
+ * Delete a catalog
57
+ */
58
+ deleteCourseCatalogRaw(requestParameters: DeleteCourseCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
59
+ /**
60
+ * Delete a catalog
61
+ */
62
+ deleteCourseCatalog(requestParameters: DeleteCourseCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
63
+ /**
64
+ * Creates request options for getCourseCatalog without sending the request
65
+ */
66
+ getCourseCatalogRequestOpts(requestParameters: GetCourseCatalogRequest): Promise<runtime.RequestOpts>;
67
+ /**
68
+ * Get a catalog
69
+ */
70
+ getCourseCatalogRaw(requestParameters: GetCourseCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CourseCatalog>>;
71
+ /**
72
+ * Get a catalog
73
+ */
74
+ getCourseCatalog(requestParameters: GetCourseCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CourseCatalog>;
75
+ /**
76
+ * Creates request options for getCourseCatalogs without sending the request
77
+ */
78
+ getCourseCatalogsRequestOpts(): Promise<runtime.RequestOpts>;
79
+ /**
80
+ * List catalogs in the current portal
81
+ */
82
+ getCourseCatalogsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CourseCatalog>>>;
83
+ /**
84
+ * List catalogs in the current portal
85
+ */
86
+ getCourseCatalogs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CourseCatalog>>;
87
+ /**
88
+ * Creates request options for postCourseCatalog without sending the request
89
+ */
90
+ postCourseCatalogRequestOpts(requestParameters: PostCourseCatalogRequest): Promise<runtime.RequestOpts>;
91
+ /**
92
+ * Create a course catalog
93
+ */
94
+ postCourseCatalogRaw(requestParameters: PostCourseCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CourseCatalog>>;
95
+ /**
96
+ * Create a course catalog
97
+ */
98
+ postCourseCatalog(requestParameters: PostCourseCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CourseCatalog>;
99
+ /**
100
+ * Creates request options for putCourseCatalog without sending the request
101
+ */
102
+ putCourseCatalogRequestOpts(requestParameters: PutCourseCatalogRequest): Promise<runtime.RequestOpts>;
103
+ /**
104
+ * Update a catalog
105
+ */
106
+ putCourseCatalogRaw(requestParameters: PutCourseCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CourseCatalog>>;
107
+ /**
108
+ * Update a catalog
109
+ */
110
+ putCourseCatalog(requestParameters: PutCourseCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CourseCatalog>;
111
+ /**
112
+ * Creates request options for removeCourseFromCatalog without sending the request
113
+ */
114
+ removeCourseFromCatalogRequestOpts(requestParameters: RemoveCourseFromCatalogRequest): Promise<runtime.RequestOpts>;
115
+ /**
116
+ * Remove a course from a catalog
117
+ */
118
+ removeCourseFromCatalogRaw(requestParameters: RemoveCourseFromCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
119
+ /**
120
+ * Remove a course from a catalog
121
+ */
122
+ removeCourseFromCatalog(requestParameters: RemoveCourseFromCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
123
+ }
@@ -0,0 +1,313 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.CourseCatalogApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class CourseCatalogApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for addCourseToCatalog without sending the request
34
+ */
35
+ addCourseToCatalogRequestOpts(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['catalogId'] == null) {
38
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling addCourseToCatalog().');
39
+ }
40
+ if (requestParameters['courseId'] == null) {
41
+ throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling addCourseToCatalog().');
42
+ }
43
+ const queryParameters = {};
44
+ const headerParameters = {};
45
+ let urlPath = `/catalogs/{catalogId}/courses/{courseId}`;
46
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
47
+ urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
48
+ return {
49
+ path: urlPath,
50
+ method: 'POST',
51
+ headers: headerParameters,
52
+ query: queryParameters,
53
+ };
54
+ });
55
+ }
56
+ /**
57
+ * Add a course to a catalog
58
+ */
59
+ addCourseToCatalogRaw(requestParameters, initOverrides) {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ const requestOptions = yield this.addCourseToCatalogRequestOpts(requestParameters);
62
+ const response = yield this.request(requestOptions, initOverrides);
63
+ return new runtime.VoidApiResponse(response);
64
+ });
65
+ }
66
+ /**
67
+ * Add a course to a catalog
68
+ */
69
+ addCourseToCatalog(requestParameters, initOverrides) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ yield this.addCourseToCatalogRaw(requestParameters, initOverrides);
72
+ });
73
+ }
74
+ /**
75
+ * Creates request options for deleteCourseCatalog without sending the request
76
+ */
77
+ deleteCourseCatalogRequestOpts(requestParameters) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ if (requestParameters['catalogId'] == null) {
80
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling deleteCourseCatalog().');
81
+ }
82
+ const queryParameters = {};
83
+ const headerParameters = {};
84
+ let urlPath = `/catalogs/{catalogId}`;
85
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
86
+ return {
87
+ path: urlPath,
88
+ method: 'DELETE',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ };
92
+ });
93
+ }
94
+ /**
95
+ * Delete a catalog
96
+ */
97
+ deleteCourseCatalogRaw(requestParameters, initOverrides) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const requestOptions = yield this.deleteCourseCatalogRequestOpts(requestParameters);
100
+ const response = yield this.request(requestOptions, initOverrides);
101
+ return new runtime.VoidApiResponse(response);
102
+ });
103
+ }
104
+ /**
105
+ * Delete a catalog
106
+ */
107
+ deleteCourseCatalog(requestParameters, initOverrides) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ yield this.deleteCourseCatalogRaw(requestParameters, initOverrides);
110
+ });
111
+ }
112
+ /**
113
+ * Creates request options for getCourseCatalog without sending the request
114
+ */
115
+ getCourseCatalogRequestOpts(requestParameters) {
116
+ return __awaiter(this, void 0, void 0, function* () {
117
+ if (requestParameters['catalogId'] == null) {
118
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling getCourseCatalog().');
119
+ }
120
+ const queryParameters = {};
121
+ const headerParameters = {};
122
+ let urlPath = `/catalogs/{catalogId}`;
123
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
124
+ return {
125
+ path: urlPath,
126
+ method: 'GET',
127
+ headers: headerParameters,
128
+ query: queryParameters,
129
+ };
130
+ });
131
+ }
132
+ /**
133
+ * Get a catalog
134
+ */
135
+ getCourseCatalogRaw(requestParameters, initOverrides) {
136
+ return __awaiter(this, void 0, void 0, function* () {
137
+ const requestOptions = yield this.getCourseCatalogRequestOpts(requestParameters);
138
+ const response = yield this.request(requestOptions, initOverrides);
139
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CourseCatalogFromJSON)(jsonValue));
140
+ });
141
+ }
142
+ /**
143
+ * Get a catalog
144
+ */
145
+ getCourseCatalog(requestParameters, initOverrides) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ const response = yield this.getCourseCatalogRaw(requestParameters, initOverrides);
148
+ return yield response.value();
149
+ });
150
+ }
151
+ /**
152
+ * Creates request options for getCourseCatalogs without sending the request
153
+ */
154
+ getCourseCatalogsRequestOpts() {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ const queryParameters = {};
157
+ const headerParameters = {};
158
+ let urlPath = `/catalogs`;
159
+ return {
160
+ path: urlPath,
161
+ method: 'GET',
162
+ headers: headerParameters,
163
+ query: queryParameters,
164
+ };
165
+ });
166
+ }
167
+ /**
168
+ * List catalogs in the current portal
169
+ */
170
+ getCourseCatalogsRaw(initOverrides) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ const requestOptions = yield this.getCourseCatalogsRequestOpts();
173
+ const response = yield this.request(requestOptions, initOverrides);
174
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.CourseCatalogFromJSON));
175
+ });
176
+ }
177
+ /**
178
+ * List catalogs in the current portal
179
+ */
180
+ getCourseCatalogs(initOverrides) {
181
+ return __awaiter(this, void 0, void 0, function* () {
182
+ const response = yield this.getCourseCatalogsRaw(initOverrides);
183
+ return yield response.value();
184
+ });
185
+ }
186
+ /**
187
+ * Creates request options for postCourseCatalog without sending the request
188
+ */
189
+ postCourseCatalogRequestOpts(requestParameters) {
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ if (requestParameters['postCourseCatalog'] == null) {
192
+ throw new runtime.RequiredError('postCourseCatalog', 'Required parameter "postCourseCatalog" was null or undefined when calling postCourseCatalog().');
193
+ }
194
+ const queryParameters = {};
195
+ const headerParameters = {};
196
+ headerParameters['Content-Type'] = 'application/json';
197
+ let urlPath = `/catalogs`;
198
+ return {
199
+ path: urlPath,
200
+ method: 'POST',
201
+ headers: headerParameters,
202
+ query: queryParameters,
203
+ body: (0, index_1.PostCourseCatalogToJSON)(requestParameters['postCourseCatalog']),
204
+ };
205
+ });
206
+ }
207
+ /**
208
+ * Create a course catalog
209
+ */
210
+ postCourseCatalogRaw(requestParameters, initOverrides) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ const requestOptions = yield this.postCourseCatalogRequestOpts(requestParameters);
213
+ const response = yield this.request(requestOptions, initOverrides);
214
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CourseCatalogFromJSON)(jsonValue));
215
+ });
216
+ }
217
+ /**
218
+ * Create a course catalog
219
+ */
220
+ postCourseCatalog(requestParameters, initOverrides) {
221
+ return __awaiter(this, void 0, void 0, function* () {
222
+ const response = yield this.postCourseCatalogRaw(requestParameters, initOverrides);
223
+ return yield response.value();
224
+ });
225
+ }
226
+ /**
227
+ * Creates request options for putCourseCatalog without sending the request
228
+ */
229
+ putCourseCatalogRequestOpts(requestParameters) {
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ if (requestParameters['catalogId'] == null) {
232
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling putCourseCatalog().');
233
+ }
234
+ if (requestParameters['putCourseCatalog'] == null) {
235
+ throw new runtime.RequiredError('putCourseCatalog', 'Required parameter "putCourseCatalog" was null or undefined when calling putCourseCatalog().');
236
+ }
237
+ const queryParameters = {};
238
+ const headerParameters = {};
239
+ headerParameters['Content-Type'] = 'application/json';
240
+ let urlPath = `/catalogs/{catalogId}`;
241
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
242
+ return {
243
+ path: urlPath,
244
+ method: 'PUT',
245
+ headers: headerParameters,
246
+ query: queryParameters,
247
+ body: (0, index_1.PutCourseCatalogToJSON)(requestParameters['putCourseCatalog']),
248
+ };
249
+ });
250
+ }
251
+ /**
252
+ * Update a catalog
253
+ */
254
+ putCourseCatalogRaw(requestParameters, initOverrides) {
255
+ return __awaiter(this, void 0, void 0, function* () {
256
+ const requestOptions = yield this.putCourseCatalogRequestOpts(requestParameters);
257
+ const response = yield this.request(requestOptions, initOverrides);
258
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CourseCatalogFromJSON)(jsonValue));
259
+ });
260
+ }
261
+ /**
262
+ * Update a catalog
263
+ */
264
+ putCourseCatalog(requestParameters, initOverrides) {
265
+ return __awaiter(this, void 0, void 0, function* () {
266
+ const response = yield this.putCourseCatalogRaw(requestParameters, initOverrides);
267
+ return yield response.value();
268
+ });
269
+ }
270
+ /**
271
+ * Creates request options for removeCourseFromCatalog without sending the request
272
+ */
273
+ removeCourseFromCatalogRequestOpts(requestParameters) {
274
+ return __awaiter(this, void 0, void 0, function* () {
275
+ if (requestParameters['catalogId'] == null) {
276
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling removeCourseFromCatalog().');
277
+ }
278
+ if (requestParameters['courseId'] == null) {
279
+ throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling removeCourseFromCatalog().');
280
+ }
281
+ const queryParameters = {};
282
+ const headerParameters = {};
283
+ let urlPath = `/catalogs/{catalogId}/courses/{courseId}`;
284
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
285
+ urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
286
+ return {
287
+ path: urlPath,
288
+ method: 'DELETE',
289
+ headers: headerParameters,
290
+ query: queryParameters,
291
+ };
292
+ });
293
+ }
294
+ /**
295
+ * Remove a course from a catalog
296
+ */
297
+ removeCourseFromCatalogRaw(requestParameters, initOverrides) {
298
+ return __awaiter(this, void 0, void 0, function* () {
299
+ const requestOptions = yield this.removeCourseFromCatalogRequestOpts(requestParameters);
300
+ const response = yield this.request(requestOptions, initOverrides);
301
+ return new runtime.VoidApiResponse(response);
302
+ });
303
+ }
304
+ /**
305
+ * Remove a course from a catalog
306
+ */
307
+ removeCourseFromCatalog(requestParameters, initOverrides) {
308
+ return __awaiter(this, void 0, void 0, function* () {
309
+ yield this.removeCourseFromCatalogRaw(requestParameters, initOverrides);
310
+ });
311
+ }
312
+ }
313
+ exports.CourseCatalogApi = CourseCatalogApi;