@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
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
17
|
+
import {
|
|
18
|
+
RichTextDocumentFromJSON,
|
|
19
|
+
RichTextDocumentFromJSONTyped,
|
|
20
|
+
RichTextDocumentToJSON,
|
|
21
|
+
RichTextDocumentToJSONTyped,
|
|
22
|
+
} from './RichTextDocument';
|
|
23
|
+
import type { ResourceType } from './ResourceType';
|
|
24
|
+
import {
|
|
25
|
+
ResourceTypeFromJSON,
|
|
26
|
+
ResourceTypeFromJSONTyped,
|
|
27
|
+
ResourceTypeToJSON,
|
|
28
|
+
ResourceTypeToJSONTyped,
|
|
29
|
+
} from './ResourceType';
|
|
30
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
31
|
+
import {
|
|
32
|
+
ContentLaunchModeFromJSON,
|
|
33
|
+
ContentLaunchModeFromJSONTyped,
|
|
34
|
+
ContentLaunchModeToJSON,
|
|
35
|
+
ContentLaunchModeToJSONTyped,
|
|
36
|
+
} from './ContentLaunchMode';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetCourseVersionItemLaunch
|
|
42
|
+
*/
|
|
43
|
+
export interface GetCourseVersionItemLaunch {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GetCourseVersionItemLaunch
|
|
48
|
+
*/
|
|
49
|
+
courseVersionId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof GetCourseVersionItemLaunch
|
|
54
|
+
*/
|
|
55
|
+
itemId: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof GetCourseVersionItemLaunch
|
|
60
|
+
*/
|
|
61
|
+
contentLibraryItemId: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof GetCourseVersionItemLaunch
|
|
66
|
+
*/
|
|
67
|
+
contentLibraryVersionId: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {ResourceType}
|
|
71
|
+
* @memberof GetCourseVersionItemLaunch
|
|
72
|
+
*/
|
|
73
|
+
resourceType: ResourceType;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {ContentLaunchMode}
|
|
77
|
+
* @memberof GetCourseVersionItemLaunch
|
|
78
|
+
*/
|
|
79
|
+
launchMode: ContentLaunchMode;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof GetCourseVersionItemLaunch
|
|
84
|
+
*/
|
|
85
|
+
maxAttempts: number;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof GetCourseVersionItemLaunch
|
|
90
|
+
*/
|
|
91
|
+
url?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof GetCourseVersionItemLaunch
|
|
96
|
+
*/
|
|
97
|
+
filename?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof GetCourseVersionItemLaunch
|
|
102
|
+
*/
|
|
103
|
+
mimeType?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {RichTextDocument}
|
|
107
|
+
* @memberof GetCourseVersionItemLaunch
|
|
108
|
+
*/
|
|
109
|
+
richText?: RichTextDocument | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {{ [key: string]: any; }}
|
|
113
|
+
* @memberof GetCourseVersionItemLaunch
|
|
114
|
+
*/
|
|
115
|
+
metadata: { [key: string]: any; };
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Check if a given object implements the GetCourseVersionItemLaunch interface.
|
|
122
|
+
*/
|
|
123
|
+
export function instanceOfGetCourseVersionItemLaunch(value: object): value is GetCourseVersionItemLaunch {
|
|
124
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined) return false;
|
|
125
|
+
if (!('itemId' in value) || value['itemId'] === undefined) return false;
|
|
126
|
+
if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined) return false;
|
|
127
|
+
if (!('contentLibraryVersionId' in value) || value['contentLibraryVersionId'] === undefined) return false;
|
|
128
|
+
if (!('resourceType' in value) || value['resourceType'] === undefined) return false;
|
|
129
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined) return false;
|
|
130
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined) return false;
|
|
131
|
+
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function GetCourseVersionItemLaunchFromJSON(json: any): GetCourseVersionItemLaunch {
|
|
136
|
+
return GetCourseVersionItemLaunchFromJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function GetCourseVersionItemLaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionItemLaunch {
|
|
140
|
+
if (json == null) {
|
|
141
|
+
return json;
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
|
|
145
|
+
'courseVersionId': json['course_version_id'],
|
|
146
|
+
'itemId': json['item_id'],
|
|
147
|
+
'contentLibraryItemId': json['content_library_item_id'],
|
|
148
|
+
'contentLibraryVersionId': json['content_library_version_id'],
|
|
149
|
+
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
150
|
+
'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
|
|
151
|
+
'maxAttempts': json['max_attempts'],
|
|
152
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
153
|
+
'filename': json['filename'] == null ? undefined : json['filename'],
|
|
154
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
155
|
+
'richText': json['rich_text'] == null ? undefined : RichTextDocumentFromJSON(json['rich_text']),
|
|
156
|
+
'metadata': json['metadata'],
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function GetCourseVersionItemLaunchToJSON(json: any): GetCourseVersionItemLaunch {
|
|
161
|
+
return GetCourseVersionItemLaunchToJSONTyped(json, false);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function GetCourseVersionItemLaunchToJSONTyped(value?: GetCourseVersionItemLaunch | null, ignoreDiscriminator: boolean = false): any {
|
|
165
|
+
if (value == null) {
|
|
166
|
+
return value;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return {
|
|
170
|
+
|
|
171
|
+
'course_version_id': value['courseVersionId'],
|
|
172
|
+
'item_id': value['itemId'],
|
|
173
|
+
'content_library_item_id': value['contentLibraryItemId'],
|
|
174
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
175
|
+
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
176
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
177
|
+
'max_attempts': value['maxAttempts'],
|
|
178
|
+
'url': value['url'],
|
|
179
|
+
'filename': value['filename'],
|
|
180
|
+
'mime_type': value['mimeType'],
|
|
181
|
+
'rich_text': RichTextDocumentToJSON(value['richText']),
|
|
182
|
+
'metadata': value['metadata'],
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ResourceType } from './ResourceType';
|
|
17
|
+
import {
|
|
18
|
+
ResourceTypeFromJSON,
|
|
19
|
+
ResourceTypeFromJSONTyped,
|
|
20
|
+
ResourceTypeToJSON,
|
|
21
|
+
ResourceTypeToJSONTyped,
|
|
22
|
+
} from './ResourceType';
|
|
23
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
24
|
+
import {
|
|
25
|
+
ContentLaunchModeFromJSON,
|
|
26
|
+
ContentLaunchModeFromJSONTyped,
|
|
27
|
+
ContentLaunchModeToJSON,
|
|
28
|
+
ContentLaunchModeToJSONTyped,
|
|
29
|
+
} from './ContentLaunchMode';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A learner resource attempt pinned to an immutable course and Content Library version.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetCourseVersionItemSession
|
|
35
|
+
*/
|
|
36
|
+
export interface GetCourseVersionItemSession {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetCourseVersionItemSession
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetCourseVersionItemSession
|
|
47
|
+
*/
|
|
48
|
+
courseVersionId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetCourseVersionItemSession
|
|
53
|
+
*/
|
|
54
|
+
itemId: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof GetCourseVersionItemSession
|
|
59
|
+
*/
|
|
60
|
+
contentLibraryItemId: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof GetCourseVersionItemSession
|
|
65
|
+
*/
|
|
66
|
+
contentLibraryVersionId: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {ResourceType}
|
|
70
|
+
* @memberof GetCourseVersionItemSession
|
|
71
|
+
*/
|
|
72
|
+
resourceType: ResourceType;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {ContentLaunchMode}
|
|
76
|
+
* @memberof GetCourseVersionItemSession
|
|
77
|
+
*/
|
|
78
|
+
launchMode: ContentLaunchMode;
|
|
79
|
+
/**
|
|
80
|
+
* Session-aware player URL, direct asset URL, or external link.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof GetCourseVersionItemSession
|
|
83
|
+
*/
|
|
84
|
+
launchUrl: string | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof GetCourseVersionItemSession
|
|
89
|
+
*/
|
|
90
|
+
attemptNumber: number;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof GetCourseVersionItemSession
|
|
95
|
+
*/
|
|
96
|
+
isCurrent: boolean;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof GetCourseVersionItemSession
|
|
101
|
+
*/
|
|
102
|
+
completionStatus: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof GetCourseVersionItemSession
|
|
107
|
+
*/
|
|
108
|
+
gradeStatus: string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof GetCourseVersionItemSession
|
|
113
|
+
*/
|
|
114
|
+
scoreRaw?: number | null;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof GetCourseVersionItemSession
|
|
119
|
+
*/
|
|
120
|
+
createdAt: number;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @memberof GetCourseVersionItemSession
|
|
125
|
+
*/
|
|
126
|
+
updatedAt: number;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {number}
|
|
130
|
+
* @memberof GetCourseVersionItemSession
|
|
131
|
+
*/
|
|
132
|
+
completedAt?: number | null;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Check if a given object implements the GetCourseVersionItemSession interface.
|
|
139
|
+
*/
|
|
140
|
+
export function instanceOfGetCourseVersionItemSession(value: object): value is GetCourseVersionItemSession {
|
|
141
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
142
|
+
if (!('courseVersionId' in value) || value['courseVersionId'] === undefined) return false;
|
|
143
|
+
if (!('itemId' in value) || value['itemId'] === undefined) return false;
|
|
144
|
+
if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined) return false;
|
|
145
|
+
if (!('contentLibraryVersionId' in value) || value['contentLibraryVersionId'] === undefined) return false;
|
|
146
|
+
if (!('resourceType' in value) || value['resourceType'] === undefined) return false;
|
|
147
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined) return false;
|
|
148
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined) return false;
|
|
149
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined) return false;
|
|
150
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined) return false;
|
|
151
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
|
|
152
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
|
|
153
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
154
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
155
|
+
return true;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function GetCourseVersionItemSessionFromJSON(json: any): GetCourseVersionItemSession {
|
|
159
|
+
return GetCourseVersionItemSessionFromJSONTyped(json, false);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function GetCourseVersionItemSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionItemSession {
|
|
163
|
+
if (json == null) {
|
|
164
|
+
return json;
|
|
165
|
+
}
|
|
166
|
+
return {
|
|
167
|
+
|
|
168
|
+
'id': json['id'],
|
|
169
|
+
'courseVersionId': json['course_version_id'],
|
|
170
|
+
'itemId': json['item_id'],
|
|
171
|
+
'contentLibraryItemId': json['content_library_item_id'],
|
|
172
|
+
'contentLibraryVersionId': json['content_library_version_id'],
|
|
173
|
+
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
174
|
+
'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
|
|
175
|
+
'launchUrl': json['launch_url'],
|
|
176
|
+
'attemptNumber': json['attempt_number'],
|
|
177
|
+
'isCurrent': json['is_current'],
|
|
178
|
+
'completionStatus': json['completion_status'],
|
|
179
|
+
'gradeStatus': json['grade_status'],
|
|
180
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
181
|
+
'createdAt': json['created_at'],
|
|
182
|
+
'updatedAt': json['updated_at'],
|
|
183
|
+
'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function GetCourseVersionItemSessionToJSON(json: any): GetCourseVersionItemSession {
|
|
188
|
+
return GetCourseVersionItemSessionToJSONTyped(json, false);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function GetCourseVersionItemSessionToJSONTyped(value?: GetCourseVersionItemSession | null, ignoreDiscriminator: boolean = false): any {
|
|
192
|
+
if (value == null) {
|
|
193
|
+
return value;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
return {
|
|
197
|
+
|
|
198
|
+
'id': value['id'],
|
|
199
|
+
'course_version_id': value['courseVersionId'],
|
|
200
|
+
'item_id': value['itemId'],
|
|
201
|
+
'content_library_item_id': value['contentLibraryItemId'],
|
|
202
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
203
|
+
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
204
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
205
|
+
'launch_url': value['launchUrl'],
|
|
206
|
+
'attempt_number': value['attemptNumber'],
|
|
207
|
+
'is_current': value['isCurrent'],
|
|
208
|
+
'completion_status': value['completionStatus'],
|
|
209
|
+
'grade_status': value['gradeStatus'],
|
|
210
|
+
'score_raw': value['scoreRaw'],
|
|
211
|
+
'created_at': value['createdAt'],
|
|
212
|
+
'updated_at': value['updatedAt'],
|
|
213
|
+
'completed_at': value['completedAt'],
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetCourseVersion } from './GetCourseVersion';
|
|
17
|
+
import {
|
|
18
|
+
GetCourseVersionFromJSON,
|
|
19
|
+
GetCourseVersionFromJSONTyped,
|
|
20
|
+
GetCourseVersionToJSON,
|
|
21
|
+
GetCourseVersionToJSONTyped,
|
|
22
|
+
} from './GetCourseVersion';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetCourseVersionList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetCourseVersionList {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<GetCourseVersion>}
|
|
33
|
+
* @memberof GetCourseVersionList
|
|
34
|
+
*/
|
|
35
|
+
items: Array<GetCourseVersion>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetCourseVersionList interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetCourseVersionList(value: object): value is GetCourseVersionList {
|
|
42
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetCourseVersionListFromJSON(json: any): GetCourseVersionList {
|
|
47
|
+
return GetCourseVersionListFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetCourseVersionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionList {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'items': ((json['items'] as Array<any>).map(GetCourseVersionFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetCourseVersionListToJSON(json: any): GetCourseVersionList {
|
|
61
|
+
return GetCourseVersionListToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetCourseVersionListToJSONTyped(value?: GetCourseVersionList | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'items': ((value['items'] as Array<any>).map(GetCourseVersionToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetCourseVersionItem } from './GetCourseVersionItem';
|
|
17
|
+
import {
|
|
18
|
+
GetCourseVersionItemFromJSON,
|
|
19
|
+
GetCourseVersionItemFromJSONTyped,
|
|
20
|
+
GetCourseVersionItemToJSON,
|
|
21
|
+
GetCourseVersionItemToJSONTyped,
|
|
22
|
+
} from './GetCourseVersionItem';
|
|
23
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
24
|
+
import {
|
|
25
|
+
RichTextDocumentFromJSON,
|
|
26
|
+
RichTextDocumentFromJSONTyped,
|
|
27
|
+
RichTextDocumentToJSON,
|
|
28
|
+
RichTextDocumentToJSONTyped,
|
|
29
|
+
} from './RichTextDocument';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetCourseVersionModule
|
|
35
|
+
*/
|
|
36
|
+
export interface GetCourseVersionModule {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetCourseVersionModule
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetCourseVersionModule
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetCourseVersionModule
|
|
53
|
+
*/
|
|
54
|
+
description: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {RichTextDocument}
|
|
58
|
+
* @memberof GetCourseVersionModule
|
|
59
|
+
*/
|
|
60
|
+
descriptionRich: RichTextDocument;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof GetCourseVersionModule
|
|
65
|
+
*/
|
|
66
|
+
displayOrder: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<GetCourseVersionItem>}
|
|
70
|
+
* @memberof GetCourseVersionModule
|
|
71
|
+
*/
|
|
72
|
+
items: Array<GetCourseVersionItem>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the GetCourseVersionModule interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfGetCourseVersionModule(value: object): value is GetCourseVersionModule {
|
|
79
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
80
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
81
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
82
|
+
if (!('descriptionRich' in value) || value['descriptionRich'] === undefined) return false;
|
|
83
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined) return false;
|
|
84
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GetCourseVersionModuleFromJSON(json: any): GetCourseVersionModule {
|
|
89
|
+
return GetCourseVersionModuleFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetCourseVersionModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionModule {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'id': json['id'],
|
|
99
|
+
'name': json['name'],
|
|
100
|
+
'description': json['description'],
|
|
101
|
+
'descriptionRich': RichTextDocumentFromJSON(json['description_rich']),
|
|
102
|
+
'displayOrder': json['display_order'],
|
|
103
|
+
'items': ((json['items'] as Array<any>).map(GetCourseVersionItemFromJSON)),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function GetCourseVersionModuleToJSON(json: any): GetCourseVersionModule {
|
|
108
|
+
return GetCourseVersionModuleToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function GetCourseVersionModuleToJSONTyped(value?: GetCourseVersionModule | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'id': value['id'],
|
|
119
|
+
'name': value['name'],
|
|
120
|
+
'description': value['description'],
|
|
121
|
+
'description_rich': RichTextDocumentToJSON(value['descriptionRich']),
|
|
122
|
+
'display_order': value['displayOrder'],
|
|
123
|
+
'items': ((value['items'] as Array<any>).map(GetCourseVersionItemToJSON)),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
GetQuizAttemptQuestionsInnerCurrentAnswerToJSON,
|
|
21
21
|
GetQuizAttemptQuestionsInnerCurrentAnswerToJSONTyped,
|
|
22
22
|
} from './GetQuizAttemptQuestionsInnerCurrentAnswer';
|
|
23
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
24
|
+
import {
|
|
25
|
+
RichTextDocumentFromJSON,
|
|
26
|
+
RichTextDocumentFromJSONTyped,
|
|
27
|
+
RichTextDocumentToJSON,
|
|
28
|
+
RichTextDocumentToJSONTyped,
|
|
29
|
+
} from './RichTextDocument';
|
|
23
30
|
import type { GetQuizAttemptQuestionsInnerAnswerChoicesInner } from './GetQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
24
31
|
import {
|
|
25
32
|
GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON,
|
|
@@ -64,6 +71,12 @@ export interface GetQuizAttemptQuestionsInner {
|
|
|
64
71
|
* @memberof GetQuizAttemptQuestionsInner
|
|
65
72
|
*/
|
|
66
73
|
questionText: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {RichTextDocument}
|
|
77
|
+
* @memberof GetQuizAttemptQuestionsInner
|
|
78
|
+
*/
|
|
79
|
+
questionTextRich?: RichTextDocument;
|
|
67
80
|
/**
|
|
68
81
|
* Question type
|
|
69
82
|
* @type {GetQuizAttemptQuestionsInnerQuestionTypeEnum}
|
|
@@ -140,6 +153,7 @@ export function GetQuizAttemptQuestionsInnerFromJSONTyped(json: any, ignoreDiscr
|
|
|
140
153
|
'questionOrder': json['question_order'],
|
|
141
154
|
'points': json['points'],
|
|
142
155
|
'questionText': json['question_text'],
|
|
156
|
+
'questionTextRich': json['question_text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['question_text_rich']),
|
|
143
157
|
'questionType': json['question_type'],
|
|
144
158
|
'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON)),
|
|
145
159
|
'isAnswered': json['is_answered'],
|
|
@@ -164,6 +178,7 @@ export function GetQuizAttemptQuestionsInnerToJSONTyped(value?: GetQuizAttemptQu
|
|
|
164
178
|
'question_order': value['questionOrder'],
|
|
165
179
|
'points': value['points'],
|
|
166
180
|
'question_text': value['questionText'],
|
|
181
|
+
'question_text_rich': RichTextDocumentToJSON(value['questionTextRich']),
|
|
167
182
|
'question_type': value['questionType'],
|
|
168
183
|
'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
|
|
169
184
|
'is_answered': value['isAnswered'],
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
17
|
+
import {
|
|
18
|
+
RichTextDocumentFromJSON,
|
|
19
|
+
RichTextDocumentFromJSONTyped,
|
|
20
|
+
RichTextDocumentToJSON,
|
|
21
|
+
RichTextDocumentToJSONTyped,
|
|
22
|
+
} from './RichTextDocument';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -31,6 +39,12 @@ export interface GetQuizAttemptQuestionsInnerAnswerChoicesInner {
|
|
|
31
39
|
* @memberof GetQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
32
40
|
*/
|
|
33
41
|
text: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {RichTextDocument}
|
|
45
|
+
* @memberof GetQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
46
|
+
*/
|
|
47
|
+
textRich?: RichTextDocument;
|
|
34
48
|
/**
|
|
35
49
|
* Display order
|
|
36
50
|
* @type {number}
|
|
@@ -61,6 +75,7 @@ export function GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped(json
|
|
|
61
75
|
|
|
62
76
|
'id': json['id'],
|
|
63
77
|
'text': json['text'],
|
|
78
|
+
'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
|
|
64
79
|
'displayOrder': json['display_order'],
|
|
65
80
|
};
|
|
66
81
|
}
|
|
@@ -78,6 +93,7 @@ export function GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped(value?
|
|
|
78
93
|
|
|
79
94
|
'id': value['id'],
|
|
80
95
|
'text': value['text'],
|
|
96
|
+
'text_rich': RichTextDocumentToJSON(value['textRich']),
|
|
81
97
|
'display_order': value['displayOrder'],
|
|
82
98
|
};
|
|
83
99
|
}
|