@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,50 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostResourceVersionUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface PostResourceVersionUpload {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostResourceVersionUpload
|
|
22
|
+
*/
|
|
23
|
+
filename: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostResourceVersionUpload
|
|
28
|
+
*/
|
|
29
|
+
mimeType: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostResourceVersionUpload
|
|
34
|
+
*/
|
|
35
|
+
fileSizeBytes: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostResourceVersionUpload
|
|
40
|
+
*/
|
|
41
|
+
checksumSha256: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PostResourceVersionUpload interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPostResourceVersionUpload(value: object): value is PostResourceVersionUpload;
|
|
47
|
+
export declare function PostResourceVersionUploadFromJSON(json: any): PostResourceVersionUpload;
|
|
48
|
+
export declare function PostResourceVersionUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionUpload;
|
|
49
|
+
export declare function PostResourceVersionUploadToJSON(json: any): PostResourceVersionUpload;
|
|
50
|
+
export declare function PostResourceVersionUploadToJSONTyped(value?: PostResourceVersionUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfPostResourceVersionUpload = instanceOfPostResourceVersionUpload;
|
|
17
|
+
exports.PostResourceVersionUploadFromJSON = PostResourceVersionUploadFromJSON;
|
|
18
|
+
exports.PostResourceVersionUploadFromJSONTyped = PostResourceVersionUploadFromJSONTyped;
|
|
19
|
+
exports.PostResourceVersionUploadToJSON = PostResourceVersionUploadToJSON;
|
|
20
|
+
exports.PostResourceVersionUploadToJSONTyped = PostResourceVersionUploadToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostResourceVersionUpload interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostResourceVersionUpload(value) {
|
|
25
|
+
if (!('filename' in value) || value['filename'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('fileSizeBytes' in value) || value['fileSizeBytes'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('checksumSha256' in value) || value['checksumSha256'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function PostResourceVersionUploadFromJSON(json) {
|
|
36
|
+
return PostResourceVersionUploadFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function PostResourceVersionUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'filename': json['filename'],
|
|
44
|
+
'mimeType': json['mime_type'],
|
|
45
|
+
'fileSizeBytes': json['file_size_bytes'],
|
|
46
|
+
'checksumSha256': json['checksum_sha256'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function PostResourceVersionUploadToJSON(json) {
|
|
50
|
+
return PostResourceVersionUploadToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function PostResourceVersionUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'filename': value['filename'],
|
|
58
|
+
'mime_type': value['mimeType'],
|
|
59
|
+
'file_size_bytes': value['fileSizeBytes'],
|
|
60
|
+
'checksum_sha256': value['checksumSha256'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { ContentLaunchMode } from './ContentLaunchMode';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PutCourseVersionItem
|
|
17
|
+
*/
|
|
18
|
+
export interface PutCourseVersionItem {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PutCourseVersionItem
|
|
23
|
+
*/
|
|
24
|
+
contentLibraryVersionId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PutCourseVersionItem
|
|
29
|
+
*/
|
|
30
|
+
displayName?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PutCourseVersionItem
|
|
35
|
+
*/
|
|
36
|
+
displayOrder?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof PutCourseVersionItem
|
|
41
|
+
*/
|
|
42
|
+
isVisible?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ContentLaunchMode}
|
|
46
|
+
* @memberof PutCourseVersionItem
|
|
47
|
+
*/
|
|
48
|
+
launchMode?: ContentLaunchMode;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof PutCourseVersionItem
|
|
53
|
+
*/
|
|
54
|
+
maxAttempts?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {PutCourseVersionItemScoreRollupStrategyEnum}
|
|
58
|
+
* @memberof PutCourseVersionItem
|
|
59
|
+
*/
|
|
60
|
+
scoreRollupStrategy?: PutCourseVersionItemScoreRollupStrategyEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {{ [key: string]: any; }}
|
|
64
|
+
* @memberof PutCourseVersionItem
|
|
65
|
+
*/
|
|
66
|
+
settings?: {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export declare const PutCourseVersionItemScoreRollupStrategyEnum: {
|
|
74
|
+
readonly Latest: "Latest";
|
|
75
|
+
readonly Best: "Best";
|
|
76
|
+
};
|
|
77
|
+
export type PutCourseVersionItemScoreRollupStrategyEnum = typeof PutCourseVersionItemScoreRollupStrategyEnum[keyof typeof PutCourseVersionItemScoreRollupStrategyEnum];
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the PutCourseVersionItem interface.
|
|
80
|
+
*/
|
|
81
|
+
export declare function instanceOfPutCourseVersionItem(value: object): value is PutCourseVersionItem;
|
|
82
|
+
export declare function PutCourseVersionItemFromJSON(json: any): PutCourseVersionItem;
|
|
83
|
+
export declare function PutCourseVersionItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCourseVersionItem;
|
|
84
|
+
export declare function PutCourseVersionItemToJSON(json: any): PutCourseVersionItem;
|
|
85
|
+
export declare function PutCourseVersionItemToJSONTyped(value?: PutCourseVersionItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.PutCourseVersionItemScoreRollupStrategyEnum = void 0;
|
|
17
|
+
exports.instanceOfPutCourseVersionItem = instanceOfPutCourseVersionItem;
|
|
18
|
+
exports.PutCourseVersionItemFromJSON = PutCourseVersionItemFromJSON;
|
|
19
|
+
exports.PutCourseVersionItemFromJSONTyped = PutCourseVersionItemFromJSONTyped;
|
|
20
|
+
exports.PutCourseVersionItemToJSON = PutCourseVersionItemToJSON;
|
|
21
|
+
exports.PutCourseVersionItemToJSONTyped = PutCourseVersionItemToJSONTyped;
|
|
22
|
+
const ContentLaunchMode_1 = require("./ContentLaunchMode");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PutCourseVersionItemScoreRollupStrategyEnum = {
|
|
27
|
+
Latest: 'Latest',
|
|
28
|
+
Best: 'Best'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutCourseVersionItem interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfPutCourseVersionItem(value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function PutCourseVersionItemFromJSON(json) {
|
|
37
|
+
return PutCourseVersionItemFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PutCourseVersionItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'contentLibraryVersionId': json['content_library_version_id'] == null ? undefined : json['content_library_version_id'],
|
|
45
|
+
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
46
|
+
'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
|
|
47
|
+
'isVisible': json['is_visible'] == null ? undefined : json['is_visible'],
|
|
48
|
+
'launchMode': json['launch_mode'] == null ? undefined : (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
|
|
49
|
+
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
50
|
+
'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
|
|
51
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function PutCourseVersionItemToJSON(json) {
|
|
55
|
+
return PutCourseVersionItemToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function PutCourseVersionItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
63
|
+
'display_name': value['displayName'],
|
|
64
|
+
'display_order': value['displayOrder'],
|
|
65
|
+
'is_visible': value['isVisible'],
|
|
66
|
+
'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
|
|
67
|
+
'max_attempts': value['maxAttempts'],
|
|
68
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
69
|
+
'settings': value['settings'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { PutQuizAnswerResponseProgress } from './PutQuizAnswerResponseProgress';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
14
|
+
import type { PutQuizAnswerResponseNextQuestion } from './PutQuizAnswerResponseNextQuestion';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PutQuizAnswerResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface PutQuizAnswerResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Whether the answer was saved
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof PutQuizAnswerResponse
|
|
25
|
+
*/
|
|
26
|
+
success: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Question ID that was answered
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof PutQuizAnswerResponse
|
|
31
|
+
*/
|
|
32
|
+
questionId: number;
|
|
33
|
+
/**
|
|
34
|
+
* Immediate correctness feedback when review is disabled
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
* @memberof PutQuizAnswerResponse
|
|
37
|
+
*/
|
|
38
|
+
isCorrect?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Immediate points earned when review is disabled
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof PutQuizAnswerResponse
|
|
43
|
+
*/
|
|
44
|
+
pointsEarned?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Plain-text explanation when immediate feedback is enabled
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof PutQuizAnswerResponse
|
|
49
|
+
*/
|
|
50
|
+
explanation?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {RichTextDocument}
|
|
54
|
+
* @memberof PutQuizAnswerResponse
|
|
55
|
+
*/
|
|
56
|
+
explanationRich?: RichTextDocument;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {PutQuizAnswerResponseNextQuestion}
|
|
60
|
+
* @memberof PutQuizAnswerResponse
|
|
61
|
+
*/
|
|
62
|
+
nextQuestion?: PutQuizAnswerResponseNextQuestion;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {PutQuizAnswerResponseProgress}
|
|
66
|
+
* @memberof PutQuizAnswerResponse
|
|
67
|
+
*/
|
|
68
|
+
progress: PutQuizAnswerResponseProgress;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the PutQuizAnswerResponse interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfPutQuizAnswerResponse(value: object): value is PutQuizAnswerResponse;
|
|
74
|
+
export declare function PutQuizAnswerResponseFromJSON(json: any): PutQuizAnswerResponse;
|
|
75
|
+
export declare function PutQuizAnswerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponse;
|
|
76
|
+
export declare function PutQuizAnswerResponseToJSON(json: any): PutQuizAnswerResponse;
|
|
77
|
+
export declare function PutQuizAnswerResponseToJSONTyped(value?: PutQuizAnswerResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfPutQuizAnswerResponse = instanceOfPutQuizAnswerResponse;
|
|
17
|
+
exports.PutQuizAnswerResponseFromJSON = PutQuizAnswerResponseFromJSON;
|
|
18
|
+
exports.PutQuizAnswerResponseFromJSONTyped = PutQuizAnswerResponseFromJSONTyped;
|
|
19
|
+
exports.PutQuizAnswerResponseToJSON = PutQuizAnswerResponseToJSON;
|
|
20
|
+
exports.PutQuizAnswerResponseToJSONTyped = PutQuizAnswerResponseToJSONTyped;
|
|
21
|
+
const PutQuizAnswerResponseProgress_1 = require("./PutQuizAnswerResponseProgress");
|
|
22
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
|
+
const PutQuizAnswerResponseNextQuestion_1 = require("./PutQuizAnswerResponseNextQuestion");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the PutQuizAnswerResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfPutQuizAnswerResponse(value) {
|
|
28
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('progress' in value) || value['progress'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function PutQuizAnswerResponseFromJSON(json) {
|
|
37
|
+
return PutQuizAnswerResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PutQuizAnswerResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'success': json['success'],
|
|
45
|
+
'questionId': json['question_id'],
|
|
46
|
+
'isCorrect': json['is_correct'] == null ? undefined : json['is_correct'],
|
|
47
|
+
'pointsEarned': json['points_earned'] == null ? undefined : json['points_earned'],
|
|
48
|
+
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
49
|
+
'explanationRich': json['explanation_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['explanation_rich']),
|
|
50
|
+
'nextQuestion': json['next_question'] == null ? undefined : (0, PutQuizAnswerResponseNextQuestion_1.PutQuizAnswerResponseNextQuestionFromJSON)(json['next_question']),
|
|
51
|
+
'progress': (0, PutQuizAnswerResponseProgress_1.PutQuizAnswerResponseProgressFromJSON)(json['progress']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function PutQuizAnswerResponseToJSON(json) {
|
|
55
|
+
return PutQuizAnswerResponseToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function PutQuizAnswerResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'success': value['success'],
|
|
63
|
+
'question_id': value['questionId'],
|
|
64
|
+
'is_correct': value['isCorrect'],
|
|
65
|
+
'points_earned': value['pointsEarned'],
|
|
66
|
+
'explanation': value['explanation'],
|
|
67
|
+
'explanation_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanationRich']),
|
|
68
|
+
'next_question': (0, PutQuizAnswerResponseNextQuestion_1.PutQuizAnswerResponseNextQuestionToJSON)(value['nextQuestion']),
|
|
69
|
+
'progress': (0, PutQuizAnswerResponseProgress_1.PutQuizAnswerResponseProgressToJSON)(value['progress']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 { RichTextDocument } from './RichTextDocument';
|
|
13
|
+
import type { PutQuizAnswerResponseNextQuestionAnswerChoicesInner } from './PutQuizAnswerResponseNextQuestionAnswerChoicesInner';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PutQuizAnswerResponseNextQuestion
|
|
18
|
+
*/
|
|
19
|
+
export interface PutQuizAnswerResponseNextQuestion {
|
|
20
|
+
/**
|
|
21
|
+
* Attempt question ID
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof PutQuizAnswerResponseNextQuestion
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
* Original question ID
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof PutQuizAnswerResponseNextQuestion
|
|
30
|
+
*/
|
|
31
|
+
questionId: number;
|
|
32
|
+
/**
|
|
33
|
+
* Order of question in this attempt
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof PutQuizAnswerResponseNextQuestion
|
|
36
|
+
*/
|
|
37
|
+
questionOrder: number;
|
|
38
|
+
/**
|
|
39
|
+
* Points assigned to this question
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof PutQuizAnswerResponseNextQuestion
|
|
42
|
+
*/
|
|
43
|
+
points: number;
|
|
44
|
+
/**
|
|
45
|
+
* Question text
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PutQuizAnswerResponseNextQuestion
|
|
48
|
+
*/
|
|
49
|
+
questionText: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {RichTextDocument}
|
|
53
|
+
* @memberof PutQuizAnswerResponseNextQuestion
|
|
54
|
+
*/
|
|
55
|
+
questionTextRich?: RichTextDocument;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PutQuizAnswerResponseNextQuestionQuestionTypeEnum}
|
|
59
|
+
* @memberof PutQuizAnswerResponseNextQuestion
|
|
60
|
+
*/
|
|
61
|
+
questionType: PutQuizAnswerResponseNextQuestionQuestionTypeEnum;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<PutQuizAnswerResponseNextQuestionAnswerChoicesInner>}
|
|
65
|
+
* @memberof PutQuizAnswerResponseNextQuestion
|
|
66
|
+
*/
|
|
67
|
+
answerChoices: Array<PutQuizAnswerResponseNextQuestionAnswerChoicesInner>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof PutQuizAnswerResponseNextQuestion
|
|
72
|
+
*/
|
|
73
|
+
isAnswered: boolean;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {{ [key: string]: any; }}
|
|
77
|
+
* @memberof PutQuizAnswerResponseNextQuestion
|
|
78
|
+
*/
|
|
79
|
+
userAnswer?: {
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @export
|
|
85
|
+
*/
|
|
86
|
+
export declare const PutQuizAnswerResponseNextQuestionQuestionTypeEnum: {
|
|
87
|
+
readonly SingleAnswer: "single_answer";
|
|
88
|
+
readonly MultipleAnswer: "multiple_answer";
|
|
89
|
+
readonly FillInBlank: "fill_in_blank";
|
|
90
|
+
readonly ShortAnswer: "short_answer";
|
|
91
|
+
readonly Matching: "matching";
|
|
92
|
+
readonly Essay: "essay";
|
|
93
|
+
};
|
|
94
|
+
export type PutQuizAnswerResponseNextQuestionQuestionTypeEnum = typeof PutQuizAnswerResponseNextQuestionQuestionTypeEnum[keyof typeof PutQuizAnswerResponseNextQuestionQuestionTypeEnum];
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the PutQuizAnswerResponseNextQuestion interface.
|
|
97
|
+
*/
|
|
98
|
+
export declare function instanceOfPutQuizAnswerResponseNextQuestion(value: object): value is PutQuizAnswerResponseNextQuestion;
|
|
99
|
+
export declare function PutQuizAnswerResponseNextQuestionFromJSON(json: any): PutQuizAnswerResponseNextQuestion;
|
|
100
|
+
export declare function PutQuizAnswerResponseNextQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponseNextQuestion;
|
|
101
|
+
export declare function PutQuizAnswerResponseNextQuestionToJSON(json: any): PutQuizAnswerResponseNextQuestion;
|
|
102
|
+
export declare function PutQuizAnswerResponseNextQuestionToJSONTyped(value?: PutQuizAnswerResponseNextQuestion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,96 @@
|
|
|
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.PutQuizAnswerResponseNextQuestionQuestionTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfPutQuizAnswerResponseNextQuestion = instanceOfPutQuizAnswerResponseNextQuestion;
|
|
18
|
+
exports.PutQuizAnswerResponseNextQuestionFromJSON = PutQuizAnswerResponseNextQuestionFromJSON;
|
|
19
|
+
exports.PutQuizAnswerResponseNextQuestionFromJSONTyped = PutQuizAnswerResponseNextQuestionFromJSONTyped;
|
|
20
|
+
exports.PutQuizAnswerResponseNextQuestionToJSON = PutQuizAnswerResponseNextQuestionToJSON;
|
|
21
|
+
exports.PutQuizAnswerResponseNextQuestionToJSONTyped = PutQuizAnswerResponseNextQuestionToJSONTyped;
|
|
22
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
|
+
const PutQuizAnswerResponseNextQuestionAnswerChoicesInner_1 = require("./PutQuizAnswerResponseNextQuestionAnswerChoicesInner");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.PutQuizAnswerResponseNextQuestionQuestionTypeEnum = {
|
|
28
|
+
SingleAnswer: 'single_answer',
|
|
29
|
+
MultipleAnswer: 'multiple_answer',
|
|
30
|
+
FillInBlank: 'fill_in_blank',
|
|
31
|
+
ShortAnswer: 'short_answer',
|
|
32
|
+
Matching: 'matching',
|
|
33
|
+
Essay: 'essay'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the PutQuizAnswerResponseNextQuestion interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfPutQuizAnswerResponseNextQuestion(value) {
|
|
39
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('questionId' in value) || value['questionId'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('questionOrder' in value) || value['questionOrder'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('points' in value) || value['points'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('questionText' in value) || value['questionText'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('questionType' in value) || value['questionType'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('answerChoices' in value) || value['answerChoices'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('isAnswered' in value) || value['isAnswered'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
function PutQuizAnswerResponseNextQuestionFromJSON(json) {
|
|
58
|
+
return PutQuizAnswerResponseNextQuestionFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function PutQuizAnswerResponseNextQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': json['id'],
|
|
66
|
+
'questionId': json['question_id'],
|
|
67
|
+
'questionOrder': json['question_order'],
|
|
68
|
+
'points': json['points'],
|
|
69
|
+
'questionText': json['question_text'],
|
|
70
|
+
'questionTextRich': json['question_text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['question_text_rich']),
|
|
71
|
+
'questionType': json['question_type'],
|
|
72
|
+
'answerChoices': (json['answer_choices'].map(PutQuizAnswerResponseNextQuestionAnswerChoicesInner_1.PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON)),
|
|
73
|
+
'isAnswered': json['is_answered'],
|
|
74
|
+
'userAnswer': json['user_answer'] == null ? undefined : json['user_answer'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function PutQuizAnswerResponseNextQuestionToJSON(json) {
|
|
78
|
+
return PutQuizAnswerResponseNextQuestionToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
function PutQuizAnswerResponseNextQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'id': value['id'],
|
|
86
|
+
'question_id': value['questionId'],
|
|
87
|
+
'question_order': value['questionOrder'],
|
|
88
|
+
'points': value['points'],
|
|
89
|
+
'question_text': value['questionText'],
|
|
90
|
+
'question_text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['questionTextRich']),
|
|
91
|
+
'question_type': value['questionType'],
|
|
92
|
+
'answer_choices': (value['answerChoices'].map(PutQuizAnswerResponseNextQuestionAnswerChoicesInner_1.PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON)),
|
|
93
|
+
'is_answered': value['isAnswered'],
|
|
94
|
+
'user_answer': value['userAnswer'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { RichTextDocument } from './RichTextDocument';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PutQuizAnswerResponseNextQuestionAnswerChoicesInner
|
|
17
|
+
*/
|
|
18
|
+
export interface PutQuizAnswerResponseNextQuestionAnswerChoicesInner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
|
|
29
|
+
*/
|
|
30
|
+
text: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextDocument}
|
|
34
|
+
* @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
|
|
35
|
+
*/
|
|
36
|
+
textRich?: RichTextDocument;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
|
|
41
|
+
*/
|
|
42
|
+
displayOrder: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PutQuizAnswerResponseNextQuestionAnswerChoicesInner interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPutQuizAnswerResponseNextQuestionAnswerChoicesInner(value: object): value is PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
|
|
48
|
+
export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON(json: any): PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
|
|
49
|
+
export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
|
|
50
|
+
export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON(json: any): PutQuizAnswerResponseNextQuestionAnswerChoicesInner;
|
|
51
|
+
export declare function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSONTyped(value?: PutQuizAnswerResponseNextQuestionAnswerChoicesInner | null, ignoreDiscriminator?: boolean): any;
|