@easyedu/js-lsm-api 1.82.0 → 1.84.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.
- package/.openapi-generator/FILES +60 -0
- package/README.md +64 -2
- package/dist/apis/ContentLibraryApi.d.ts +290 -0
- package/dist/apis/ContentLibraryApi.js +744 -0
- package/dist/apis/CourseApi.d.ts +172 -0
- package/dist/apis/CourseApi.js +443 -0
- package/dist/apis/PlayerApi.d.ts +112 -0
- package/dist/apis/PlayerApi.js +297 -0
- package/dist/apis/QuizApi.d.ts +3 -2
- package/dist/apis/QuizApi.js +4 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentLibraryApi.d.ts +290 -0
- package/dist/esm/apis/ContentLibraryApi.js +740 -0
- package/dist/esm/apis/CourseApi.d.ts +172 -0
- package/dist/esm/apis/CourseApi.js +443 -0
- package/dist/esm/apis/PlayerApi.d.ts +112 -0
- package/dist/esm/apis/PlayerApi.js +297 -0
- package/dist/esm/apis/QuizApi.d.ts +3 -2
- package/dist/esm/apis/QuizApi.js +4 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ContentLibraryVersionStatus.d.ts +26 -0
- package/dist/esm/models/ContentLibraryVersionStatus.js +44 -0
- package/dist/esm/models/GetContentLibraryVersion.d.ts +126 -0
- package/dist/esm/models/GetContentLibraryVersion.js +87 -0
- package/dist/esm/models/GetCourseVersion.d.ts +101 -0
- package/dist/esm/models/GetCourseVersion.js +86 -0
- package/dist/esm/models/GetCourseVersionItem.d.ts +135 -0
- package/dist/esm/models/GetCourseVersionItem.js +104 -0
- package/dist/esm/models/GetCourseVersionItemLaunch.d.ts +103 -0
- package/dist/esm/models/GetCourseVersionItemLaunch.js +82 -0
- package/dist/esm/models/GetCourseVersionItemSession.d.ts +124 -0
- package/dist/esm/models/GetCourseVersionItemSession.js +101 -0
- package/dist/esm/models/GetCourseVersionList.d.ts +33 -0
- package/dist/esm/models/GetCourseVersionList.js +44 -0
- package/dist/esm/models/GetCourseVersionModule.d.ts +64 -0
- package/dist/esm/models/GetCourseVersionModule.js +65 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInner.js +3 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +13 -0
- package/dist/esm/models/GetQuizResultsQuestionsInner.js +5 -0
- package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/esm/models/GetResource.d.ts +118 -0
- package/dist/esm/models/GetResource.js +95 -0
- package/dist/esm/models/GetResourceList.d.ts +57 -0
- package/dist/esm/models/GetResourceList.js +60 -0
- package/dist/esm/models/GetResourceUsage.d.ts +63 -0
- package/dist/esm/models/GetResourceUsage.js +64 -0
- package/dist/esm/models/GetResourceUsageCoursesInner.d.ts +63 -0
- package/dist/esm/models/GetResourceUsageCoursesInner.js +64 -0
- package/dist/esm/models/GetResourceVersionUpload.d.ts +38 -0
- package/dist/esm/models/GetResourceVersionUpload.js +47 -0
- package/dist/esm/models/PostCourseDraft.d.ts +32 -0
- package/dist/esm/models/PostCourseDraft.js +41 -0
- package/dist/esm/models/PostCourseVersionItem.d.ts +97 -0
- package/dist/esm/models/PostCourseVersionItem.js +71 -0
- package/dist/esm/models/PostCourseVersionItemSession.d.ts +32 -0
- package/dist/esm/models/PostCourseVersionItemSession.js +41 -0
- package/dist/esm/models/PostCourseVersionPublish.d.ts +32 -0
- package/dist/esm/models/PostCourseVersionPublish.js +41 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInner.js +3 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/esm/models/PostResource.d.ts +58 -0
- package/dist/esm/models/PostResource.js +55 -0
- package/dist/esm/models/PostResourceVersion.d.ts +45 -0
- package/dist/esm/models/PostResourceVersion.js +46 -0
- package/dist/esm/models/PostResourceVersionComplete.d.ts +32 -0
- package/dist/esm/models/PostResourceVersionComplete.js +43 -0
- package/dist/esm/models/PostResourceVersionUpload.d.ts +50 -0
- package/dist/esm/models/PostResourceVersionUpload.js +55 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +85 -0
- package/dist/esm/models/PutCourseVersionItem.js +63 -0
- package/dist/esm/models/PutQuizAnswerResponse.d.ts +77 -0
- package/dist/esm/models/PutQuizAnswerResponse.js +64 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestion.js +88 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
- package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +54 -0
- package/dist/esm/models/PutQuizAnswerResponseProgress.d.ts +50 -0
- package/dist/esm/models/PutQuizAnswerResponseProgress.js +55 -0
- package/dist/esm/models/PutResource.d.ts +38 -0
- package/dist/esm/models/PutResource.js +43 -0
- package/dist/esm/models/PutResourceVersion.d.ts +53 -0
- package/dist/esm/models/PutResourceVersion.js +48 -0
- package/dist/esm/models/ResourceType.d.ts +32 -0
- package/dist/esm/models/ResourceType.js +50 -0
- package/dist/esm/models/index.d.ts +29 -0
- package/dist/esm/models/index.js +29 -0
- package/dist/models/ContentLibraryVersionStatus.d.ts +26 -0
- package/dist/models/ContentLibraryVersionStatus.js +52 -0
- package/dist/models/GetContentLibraryVersion.d.ts +126 -0
- package/dist/models/GetContentLibraryVersion.js +94 -0
- package/dist/models/GetCourseVersion.d.ts +101 -0
- package/dist/models/GetCourseVersion.js +93 -0
- package/dist/models/GetCourseVersionItem.d.ts +135 -0
- package/dist/models/GetCourseVersionItem.js +112 -0
- package/dist/models/GetCourseVersionItemLaunch.d.ts +103 -0
- package/dist/models/GetCourseVersionItemLaunch.js +89 -0
- package/dist/models/GetCourseVersionItemSession.d.ts +124 -0
- package/dist/models/GetCourseVersionItemSession.js +108 -0
- package/dist/models/GetCourseVersionList.d.ts +33 -0
- package/dist/models/GetCourseVersionList.js +51 -0
- package/dist/models/GetCourseVersionModule.d.ts +64 -0
- package/dist/models/GetCourseVersionModule.js +72 -0
- package/dist/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/models/GetQuizAttemptQuestionsInner.js +3 -0
- package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/models/GetQuizResultsQuestionsInner.d.ts +13 -0
- package/dist/models/GetQuizResultsQuestionsInner.js +5 -0
- package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/models/GetResource.d.ts +118 -0
- package/dist/models/GetResource.js +102 -0
- package/dist/models/GetResourceList.d.ts +57 -0
- package/dist/models/GetResourceList.js +67 -0
- package/dist/models/GetResourceUsage.d.ts +63 -0
- package/dist/models/GetResourceUsage.js +71 -0
- package/dist/models/GetResourceUsageCoursesInner.d.ts +63 -0
- package/dist/models/GetResourceUsageCoursesInner.js +71 -0
- package/dist/models/GetResourceVersionUpload.d.ts +38 -0
- package/dist/models/GetResourceVersionUpload.js +54 -0
- package/dist/models/PostCourseDraft.d.ts +32 -0
- package/dist/models/PostCourseDraft.js +48 -0
- package/dist/models/PostCourseVersionItem.d.ts +97 -0
- package/dist/models/PostCourseVersionItem.js +79 -0
- package/dist/models/PostCourseVersionItemSession.d.ts +32 -0
- package/dist/models/PostCourseVersionItemSession.js +48 -0
- package/dist/models/PostCourseVersionPublish.d.ts +32 -0
- package/dist/models/PostCourseVersionPublish.js +48 -0
- package/dist/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
- package/dist/models/PostQuizAttemptQuestionsInner.js +3 -0
- package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
- package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
- package/dist/models/PostResource.d.ts +58 -0
- package/dist/models/PostResource.js +62 -0
- package/dist/models/PostResourceVersion.d.ts +45 -0
- package/dist/models/PostResourceVersion.js +53 -0
- package/dist/models/PostResourceVersionComplete.d.ts +32 -0
- package/dist/models/PostResourceVersionComplete.js +50 -0
- package/dist/models/PostResourceVersionUpload.d.ts +50 -0
- package/dist/models/PostResourceVersionUpload.js +62 -0
- package/dist/models/PutCourseVersionItem.d.ts +85 -0
- package/dist/models/PutCourseVersionItem.js +71 -0
- package/dist/models/PutQuizAnswerResponse.d.ts +77 -0
- package/dist/models/PutQuizAnswerResponse.js +71 -0
- package/dist/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
- package/dist/models/PutQuizAnswerResponseNextQuestion.js +96 -0
- package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
- package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +61 -0
- package/dist/models/PutQuizAnswerResponseProgress.d.ts +50 -0
- package/dist/models/PutQuizAnswerResponseProgress.js +62 -0
- package/dist/models/PutResource.d.ts +38 -0
- package/dist/models/PutResource.js +50 -0
- package/dist/models/PutResourceVersion.d.ts +53 -0
- package/dist/models/PutResourceVersion.js +55 -0
- package/dist/models/ResourceType.d.ts +32 -0
- package/dist/models/ResourceType.js +58 -0
- package/dist/models/index.d.ts +29 -0
- package/dist/models/index.js +29 -0
- package/docs/ContentLibraryApi.md +1132 -0
- package/docs/ContentLibraryVersionStatus.md +33 -0
- package/docs/CourseApi.md +797 -96
- package/docs/GetContentLibraryVersion.md +64 -0
- package/docs/GetCourseVersion.md +56 -0
- package/docs/GetCourseVersionItem.md +62 -0
- package/docs/GetCourseVersionItemLaunch.md +56 -0
- package/docs/GetCourseVersionItemSession.md +65 -0
- package/docs/GetCourseVersionList.md +34 -0
- package/docs/GetCourseVersionModule.md +44 -0
- package/docs/GetQuizAttemptQuestionsInner.md +2 -0
- package/docs/GetQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
- package/docs/GetQuizResultsQuestionsInner.md +4 -0
- package/docs/GetQuizResultsQuestionsInnerAnswerChoicesInner.md +2 -0
- package/docs/GetResource.md +62 -0
- package/docs/GetResourceList.md +42 -0
- package/docs/GetResourceUsage.md +44 -0
- package/docs/GetResourceUsageCoursesInner.md +44 -0
- package/docs/GetResourceVersionUpload.md +36 -0
- package/docs/PlayerApi.md +480 -0
- package/docs/PostCourseDraft.md +34 -0
- package/docs/PostCourseVersionItem.md +52 -0
- package/docs/PostCourseVersionItemSession.md +35 -0
- package/docs/PostCourseVersionPublish.md +34 -0
- package/docs/PostQuizAttemptQuestionsInner.md +2 -0
- package/docs/PostQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
- package/docs/PostResource.md +42 -0
- package/docs/PostResourceVersion.md +38 -0
- package/docs/PostResourceVersionComplete.md +34 -0
- package/docs/PostResourceVersionUpload.md +40 -0
- package/docs/PutCourseVersionItem.md +48 -0
- package/docs/PutQuizAnswerResponse.md +48 -0
- package/docs/PutQuizAnswerResponseNextQuestion.md +52 -0
- package/docs/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.md +40 -0
- package/docs/PutQuizAnswerResponseProgress.md +40 -0
- package/docs/PutResource.md +36 -0
- package/docs/PutResourceVersion.md +40 -0
- package/docs/QuizApi.md +3 -3
- package/docs/ResourceType.md +33 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +1024 -0
- package/src/apis/CourseApi.ts +636 -0
- package/src/apis/PlayerApi.ts +400 -0
- package/src/apis/QuizApi.ts +10 -4
- package/src/apis/index.ts +1 -0
- package/src/models/ContentLibraryVersionStatus.ts +54 -0
- package/src/models/GetContentLibraryVersion.ts +209 -0
- package/src/models/GetCourseVersion.ts +187 -0
- package/src/models/GetCourseVersionItem.ts +215 -0
- package/src/models/GetCourseVersionItemLaunch.ts +185 -0
- package/src/models/GetCourseVersionItemSession.ts +216 -0
- package/src/models/GetCourseVersionList.ts +74 -0
- package/src/models/GetCourseVersionModule.ts +126 -0
- package/src/models/GetQuizAttemptQuestionsInner.ts +15 -0
- package/src/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
- package/src/models/GetQuizResultsQuestionsInner.ts +23 -0
- package/src/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.ts +16 -0
- package/src/models/GetResource.ts +206 -0
- package/src/models/GetResourceList.ts +110 -0
- package/src/models/GetResourceUsage.ts +119 -0
- package/src/models/GetResourceUsageCoursesInner.ts +121 -0
- package/src/models/GetResourceVersionUpload.ts +75 -0
- package/src/models/PostCourseDraft.ts +65 -0
- package/src/models/PostCourseVersionItem.ts +158 -0
- package/src/models/PostCourseVersionItemSession.ts +65 -0
- package/src/models/PostCourseVersionPublish.ts +65 -0
- package/src/models/PostQuizAttemptQuestionsInner.ts +15 -0
- package/src/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
- package/src/models/PostResource.ts +116 -0
- package/src/models/PostResourceVersion.ts +89 -0
- package/src/models/PostResourceVersionComplete.ts +66 -0
- package/src/models/PostResourceVersionUpload.ts +93 -0
- package/src/models/PutCourseVersionItem.ts +140 -0
- package/src/models/PutQuizAnswerResponse.ts +146 -0
- package/src/models/PutQuizAnswerResponseNextQuestion.ts +175 -0
- package/src/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.ts +100 -0
- package/src/models/PutQuizAnswerResponseProgress.ts +93 -0
- package/src/models/PutResource.ts +73 -0
- package/src/models/PutResourceVersion.ts +97 -0
- package/src/models/ResourceType.ts +60 -0
- package/src/models/index.ts +29 -0
package/dist/esm/models/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from './ContentAttemptRollupScore';
|
|
|
8
8
|
export * from './ContentAttemptScore';
|
|
9
9
|
export * from './ContentAttemptSettings';
|
|
10
10
|
export * from './ContentLaunchMode';
|
|
11
|
+
export * from './ContentLibraryVersionStatus';
|
|
11
12
|
export * from './CourseCatalog';
|
|
12
13
|
export * from './CourseShare';
|
|
13
14
|
export * from './CriteriaBasedSelection';
|
|
@@ -32,6 +33,7 @@ export * from './GetContentInstructorBasicReporting';
|
|
|
32
33
|
export * from './GetContentInstructorBasicReportingContentInfo';
|
|
33
34
|
export * from './GetContentInstructorBasicReportingEngagement';
|
|
34
35
|
export * from './GetContentInstructorBasicReportingPerformance';
|
|
36
|
+
export * from './GetContentLibraryVersion';
|
|
35
37
|
export * from './GetContentList';
|
|
36
38
|
export * from './GetContentSession';
|
|
37
39
|
export * from './GetContentSessionDetail';
|
|
@@ -62,6 +64,12 @@ export * from './GetCourseStudentReportingCourseInfo';
|
|
|
62
64
|
export * from './GetCourseStudentReportingEngagement';
|
|
63
65
|
export * from './GetCourseStudentReportingModulesInner';
|
|
64
66
|
export * from './GetCourseStudentReportingPerformance';
|
|
67
|
+
export * from './GetCourseVersion';
|
|
68
|
+
export * from './GetCourseVersionItem';
|
|
69
|
+
export * from './GetCourseVersionItemLaunch';
|
|
70
|
+
export * from './GetCourseVersionItemSession';
|
|
71
|
+
export * from './GetCourseVersionList';
|
|
72
|
+
export * from './GetCourseVersionModule';
|
|
65
73
|
export * from './GetManualQuestionSelectionItem';
|
|
66
74
|
export * from './GetManualQuestionSelectionList';
|
|
67
75
|
export * from './GetModule';
|
|
@@ -139,6 +147,11 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
|
139
147
|
export * from './GetQuizResultsScore';
|
|
140
148
|
export * from './GetQuizResultsTiming';
|
|
141
149
|
export * from './GetQuizStatistics';
|
|
150
|
+
export * from './GetResource';
|
|
151
|
+
export * from './GetResourceList';
|
|
152
|
+
export * from './GetResourceUsage';
|
|
153
|
+
export * from './GetResourceUsageCoursesInner';
|
|
154
|
+
export * from './GetResourceVersionUpload';
|
|
142
155
|
export * from './GetRichTextAssetUpload';
|
|
143
156
|
export * from './GetRole';
|
|
144
157
|
export * from './GetScormApiLogItem';
|
|
@@ -202,9 +215,13 @@ export * from './PostConversation';
|
|
|
202
215
|
export * from './PostConversationResponse';
|
|
203
216
|
export * from './PostCourse';
|
|
204
217
|
export * from './PostCourseCatalog';
|
|
218
|
+
export * from './PostCourseDraft';
|
|
205
219
|
export * from './PostCourseEnrollment';
|
|
206
220
|
export * from './PostCourseExport';
|
|
207
221
|
export * from './PostCourseResume';
|
|
222
|
+
export * from './PostCourseVersionItem';
|
|
223
|
+
export * from './PostCourseVersionItemSession';
|
|
224
|
+
export * from './PostCourseVersionPublish';
|
|
208
225
|
export * from './PostDuplicate';
|
|
209
226
|
export * from './PostDuplicate1';
|
|
210
227
|
export * from './PostDuplicate2';
|
|
@@ -236,6 +253,10 @@ export * from './PostQuizQuestions';
|
|
|
236
253
|
export * from './PostQuizQuestionsQuestionsInner';
|
|
237
254
|
export * from './PostQuizSettings';
|
|
238
255
|
export * from './PostResetPassword';
|
|
256
|
+
export * from './PostResource';
|
|
257
|
+
export * from './PostResourceVersion';
|
|
258
|
+
export * from './PostResourceVersionComplete';
|
|
259
|
+
export * from './PostResourceVersionUpload';
|
|
239
260
|
export * from './PostRevokeCertificate';
|
|
240
261
|
export * from './PostRichTextAssetComplete';
|
|
241
262
|
export * from './PostRichTextAssetUpload';
|
|
@@ -256,6 +277,7 @@ export * from './PutContentVersion';
|
|
|
256
277
|
export * from './PutCourse';
|
|
257
278
|
export * from './PutCourseCatalog';
|
|
258
279
|
export * from './PutCourseEnrollment';
|
|
280
|
+
export * from './PutCourseVersionItem';
|
|
259
281
|
export * from './PutModule';
|
|
260
282
|
export * from './PutModuleReorder';
|
|
261
283
|
export * from './PutPortalBranding';
|
|
@@ -267,7 +289,13 @@ export * from './PutQuiz';
|
|
|
267
289
|
export * from './PutQuizAnswer';
|
|
268
290
|
export * from './PutQuizAnswerAnswer';
|
|
269
291
|
export * from './PutQuizAnswerGrade';
|
|
292
|
+
export * from './PutQuizAnswerResponse';
|
|
293
|
+
export * from './PutQuizAnswerResponseNextQuestion';
|
|
294
|
+
export * from './PutQuizAnswerResponseNextQuestionAnswerChoicesInner';
|
|
295
|
+
export * from './PutQuizAnswerResponseProgress';
|
|
270
296
|
export * from './PutQuizSettings';
|
|
297
|
+
export * from './PutResource';
|
|
298
|
+
export * from './PutResourceVersion';
|
|
271
299
|
export * from './PutRole';
|
|
272
300
|
export * from './PutRolePermissions';
|
|
273
301
|
export * from './PutSupportTicket';
|
|
@@ -275,6 +303,7 @@ export * from './PutUser';
|
|
|
275
303
|
export * from './QuizContent';
|
|
276
304
|
export * from './QuizContentAssignment';
|
|
277
305
|
export * from './QuizContentSettings';
|
|
306
|
+
export * from './ResourceType';
|
|
278
307
|
export * from './RichTextAsset';
|
|
279
308
|
export * from './RichTextDocument';
|
|
280
309
|
export * from './RichTextInput';
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Lifecycle state of an immutable Content Library version.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ContentLibraryVersionStatus: {
|
|
17
|
+
readonly Draft: "draft";
|
|
18
|
+
readonly Published: "published";
|
|
19
|
+
readonly Archived: "archived";
|
|
20
|
+
};
|
|
21
|
+
export type ContentLibraryVersionStatus = typeof ContentLibraryVersionStatus[keyof typeof ContentLibraryVersionStatus];
|
|
22
|
+
export declare function instanceOfContentLibraryVersionStatus(value: any): boolean;
|
|
23
|
+
export declare function ContentLibraryVersionStatusFromJSON(json: any): ContentLibraryVersionStatus;
|
|
24
|
+
export declare function ContentLibraryVersionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryVersionStatus;
|
|
25
|
+
export declare function ContentLibraryVersionStatusToJSON(value?: ContentLibraryVersionStatus | null): any;
|
|
26
|
+
export declare function ContentLibraryVersionStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ContentLibraryVersionStatus;
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ContentLibraryVersionStatus = void 0;
|
|
17
|
+
exports.instanceOfContentLibraryVersionStatus = instanceOfContentLibraryVersionStatus;
|
|
18
|
+
exports.ContentLibraryVersionStatusFromJSON = ContentLibraryVersionStatusFromJSON;
|
|
19
|
+
exports.ContentLibraryVersionStatusFromJSONTyped = ContentLibraryVersionStatusFromJSONTyped;
|
|
20
|
+
exports.ContentLibraryVersionStatusToJSON = ContentLibraryVersionStatusToJSON;
|
|
21
|
+
exports.ContentLibraryVersionStatusToJSONTyped = ContentLibraryVersionStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Lifecycle state of an immutable Content Library version.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ContentLibraryVersionStatus = {
|
|
27
|
+
Draft: 'draft',
|
|
28
|
+
Published: 'published',
|
|
29
|
+
Archived: 'archived'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfContentLibraryVersionStatus(value) {
|
|
32
|
+
for (const key in exports.ContentLibraryVersionStatus) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.ContentLibraryVersionStatus, key)) {
|
|
34
|
+
if (exports.ContentLibraryVersionStatus[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function ContentLibraryVersionStatusFromJSON(json) {
|
|
42
|
+
return ContentLibraryVersionStatusFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ContentLibraryVersionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function ContentLibraryVersionStatusToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function ContentLibraryVersionStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
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 type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetContentLibraryVersion
|
|
18
|
+
*/
|
|
19
|
+
export interface GetContentLibraryVersion {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetContentLibraryVersion
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof GetContentLibraryVersion
|
|
30
|
+
*/
|
|
31
|
+
versionNumber: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ContentLibraryVersionStatus}
|
|
35
|
+
* @memberof GetContentLibraryVersion
|
|
36
|
+
*/
|
|
37
|
+
status: ContentLibraryVersionStatus;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GetContentLibraryVersion
|
|
42
|
+
*/
|
|
43
|
+
changeNotes?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: any; }}
|
|
47
|
+
* @memberof GetContentLibraryVersion
|
|
48
|
+
*/
|
|
49
|
+
metadata: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof GetContentLibraryVersion
|
|
56
|
+
*/
|
|
57
|
+
filename?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof GetContentLibraryVersion
|
|
62
|
+
*/
|
|
63
|
+
mimeType?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof GetContentLibraryVersion
|
|
68
|
+
*/
|
|
69
|
+
fileSizeBytes?: number | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof GetContentLibraryVersion
|
|
74
|
+
*/
|
|
75
|
+
checksumSha256?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof GetContentLibraryVersion
|
|
80
|
+
*/
|
|
81
|
+
linkUrl?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {RichTextDocument}
|
|
85
|
+
* @memberof GetContentLibraryVersion
|
|
86
|
+
*/
|
|
87
|
+
richText?: RichTextDocument | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof GetContentLibraryVersion
|
|
92
|
+
*/
|
|
93
|
+
createdBy: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof GetContentLibraryVersion
|
|
98
|
+
*/
|
|
99
|
+
createdAt: number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof GetContentLibraryVersion
|
|
104
|
+
*/
|
|
105
|
+
updatedAt: number;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof GetContentLibraryVersion
|
|
110
|
+
*/
|
|
111
|
+
publishedAt?: number | null;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof GetContentLibraryVersion
|
|
116
|
+
*/
|
|
117
|
+
archivedAt?: number | null;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Check if a given object implements the GetContentLibraryVersion interface.
|
|
121
|
+
*/
|
|
122
|
+
export declare function instanceOfGetContentLibraryVersion(value: object): value is GetContentLibraryVersion;
|
|
123
|
+
export declare function GetContentLibraryVersionFromJSON(json: any): GetContentLibraryVersion;
|
|
124
|
+
export declare function GetContentLibraryVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentLibraryVersion;
|
|
125
|
+
export declare function GetContentLibraryVersionToJSON(json: any): GetContentLibraryVersion;
|
|
126
|
+
export declare function GetContentLibraryVersionToJSONTyped(value?: GetContentLibraryVersion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetContentLibraryVersion = instanceOfGetContentLibraryVersion;
|
|
17
|
+
exports.GetContentLibraryVersionFromJSON = GetContentLibraryVersionFromJSON;
|
|
18
|
+
exports.GetContentLibraryVersionFromJSONTyped = GetContentLibraryVersionFromJSONTyped;
|
|
19
|
+
exports.GetContentLibraryVersionToJSON = GetContentLibraryVersionToJSON;
|
|
20
|
+
exports.GetContentLibraryVersionToJSONTyped = GetContentLibraryVersionToJSONTyped;
|
|
21
|
+
const ContentLibraryVersionStatus_1 = require("./ContentLibraryVersionStatus");
|
|
22
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetContentLibraryVersion interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetContentLibraryVersion(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function GetContentLibraryVersionFromJSON(json) {
|
|
44
|
+
return GetContentLibraryVersionFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetContentLibraryVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'versionNumber': json['version_number'],
|
|
53
|
+
'status': (0, ContentLibraryVersionStatus_1.ContentLibraryVersionStatusFromJSON)(json['status']),
|
|
54
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
55
|
+
'metadata': json['metadata'],
|
|
56
|
+
'filename': json['filename'] == null ? undefined : json['filename'],
|
|
57
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
58
|
+
'fileSizeBytes': json['file_size_bytes'] == null ? undefined : json['file_size_bytes'],
|
|
59
|
+
'checksumSha256': json['checksum_sha256'] == null ? undefined : json['checksum_sha256'],
|
|
60
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
61
|
+
'richText': json['rich_text'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['rich_text']),
|
|
62
|
+
'createdBy': json['created_by'],
|
|
63
|
+
'createdAt': json['created_at'],
|
|
64
|
+
'updatedAt': json['updated_at'],
|
|
65
|
+
'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
|
|
66
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function GetContentLibraryVersionToJSON(json) {
|
|
70
|
+
return GetContentLibraryVersionToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function GetContentLibraryVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'id': value['id'],
|
|
78
|
+
'version_number': value['versionNumber'],
|
|
79
|
+
'status': (0, ContentLibraryVersionStatus_1.ContentLibraryVersionStatusToJSON)(value['status']),
|
|
80
|
+
'change_notes': value['changeNotes'],
|
|
81
|
+
'metadata': value['metadata'],
|
|
82
|
+
'filename': value['filename'],
|
|
83
|
+
'mime_type': value['mimeType'],
|
|
84
|
+
'file_size_bytes': value['fileSizeBytes'],
|
|
85
|
+
'checksum_sha256': value['checksumSha256'],
|
|
86
|
+
'link_url': value['linkUrl'],
|
|
87
|
+
'rich_text': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['richText']),
|
|
88
|
+
'created_by': value['createdBy'],
|
|
89
|
+
'created_at': value['createdAt'],
|
|
90
|
+
'updated_at': value['updatedAt'],
|
|
91
|
+
'published_at': value['publishedAt'],
|
|
92
|
+
'archived_at': value['archivedAt'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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 type { GetCourseVersionModule } from './GetCourseVersionModule';
|
|
13
|
+
import type { ContentLibraryVersionStatus } from './ContentLibraryVersionStatus';
|
|
14
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetCourseVersion
|
|
19
|
+
*/
|
|
20
|
+
export interface GetCourseVersion {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof GetCourseVersion
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof GetCourseVersion
|
|
31
|
+
*/
|
|
32
|
+
courseId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof GetCourseVersion
|
|
37
|
+
*/
|
|
38
|
+
versionNumber: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {ContentLibraryVersionStatus}
|
|
42
|
+
* @memberof GetCourseVersion
|
|
43
|
+
*/
|
|
44
|
+
status: ContentLibraryVersionStatus;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof GetCourseVersion
|
|
49
|
+
*/
|
|
50
|
+
name: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof GetCourseVersion
|
|
55
|
+
*/
|
|
56
|
+
description: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {RichTextDocument}
|
|
60
|
+
* @memberof GetCourseVersion
|
|
61
|
+
*/
|
|
62
|
+
descriptionRich: RichTextDocument;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof GetCourseVersion
|
|
67
|
+
*/
|
|
68
|
+
changeNotes?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<GetCourseVersionModule>}
|
|
72
|
+
* @memberof GetCourseVersion
|
|
73
|
+
*/
|
|
74
|
+
modules: Array<GetCourseVersionModule>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof GetCourseVersion
|
|
79
|
+
*/
|
|
80
|
+
createdAt: number;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {number}
|
|
84
|
+
* @memberof GetCourseVersion
|
|
85
|
+
*/
|
|
86
|
+
updatedAt: number;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @memberof GetCourseVersion
|
|
91
|
+
*/
|
|
92
|
+
publishedAt?: number | null;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the GetCourseVersion interface.
|
|
96
|
+
*/
|
|
97
|
+
export declare function instanceOfGetCourseVersion(value: object): value is GetCourseVersion;
|
|
98
|
+
export declare function GetCourseVersionFromJSON(json: any): GetCourseVersion;
|
|
99
|
+
export declare function GetCourseVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersion;
|
|
100
|
+
export declare function GetCourseVersionToJSON(json: any): GetCourseVersion;
|
|
101
|
+
export declare function GetCourseVersionToJSONTyped(value?: GetCourseVersion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetCourseVersion = instanceOfGetCourseVersion;
|
|
17
|
+
exports.GetCourseVersionFromJSON = GetCourseVersionFromJSON;
|
|
18
|
+
exports.GetCourseVersionFromJSONTyped = GetCourseVersionFromJSONTyped;
|
|
19
|
+
exports.GetCourseVersionToJSON = GetCourseVersionToJSON;
|
|
20
|
+
exports.GetCourseVersionToJSONTyped = GetCourseVersionToJSONTyped;
|
|
21
|
+
const GetCourseVersionModule_1 = require("./GetCourseVersionModule");
|
|
22
|
+
const ContentLibraryVersionStatus_1 = require("./ContentLibraryVersionStatus");
|
|
23
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetCourseVersion interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfGetCourseVersion(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('descriptionRich' in value) || value['descriptionRich'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('modules' in value) || value['modules'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function GetCourseVersionFromJSON(json) {
|
|
51
|
+
return GetCourseVersionFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function GetCourseVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'],
|
|
59
|
+
'courseId': json['course_id'],
|
|
60
|
+
'versionNumber': json['version_number'],
|
|
61
|
+
'status': (0, ContentLibraryVersionStatus_1.ContentLibraryVersionStatusFromJSON)(json['status']),
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'description': json['description'],
|
|
64
|
+
'descriptionRich': (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['description_rich']),
|
|
65
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
66
|
+
'modules': (json['modules'].map(GetCourseVersionModule_1.GetCourseVersionModuleFromJSON)),
|
|
67
|
+
'createdAt': json['created_at'],
|
|
68
|
+
'updatedAt': json['updated_at'],
|
|
69
|
+
'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function GetCourseVersionToJSON(json) {
|
|
73
|
+
return GetCourseVersionToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function GetCourseVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'id': value['id'],
|
|
81
|
+
'course_id': value['courseId'],
|
|
82
|
+
'version_number': value['versionNumber'],
|
|
83
|
+
'status': (0, ContentLibraryVersionStatus_1.ContentLibraryVersionStatusToJSON)(value['status']),
|
|
84
|
+
'name': value['name'],
|
|
85
|
+
'description': value['description'],
|
|
86
|
+
'description_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['descriptionRich']),
|
|
87
|
+
'change_notes': value['changeNotes'],
|
|
88
|
+
'modules': (value['modules'].map(GetCourseVersionModule_1.GetCourseVersionModuleToJSON)),
|
|
89
|
+
'created_at': value['createdAt'],
|
|
90
|
+
'updated_at': value['updatedAt'],
|
|
91
|
+
'published_at': value['publishedAt'],
|
|
92
|
+
};
|
|
93
|
+
}
|