@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,33 @@
|
|
|
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 { GetCourseVersion } from './GetCourseVersion';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCourseVersionList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseVersionList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GetCourseVersion>}
|
|
22
|
+
* @memberof GetCourseVersionList
|
|
23
|
+
*/
|
|
24
|
+
items: Array<GetCourseVersion>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetCourseVersionList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetCourseVersionList(value: object): value is GetCourseVersionList;
|
|
30
|
+
export declare function GetCourseVersionListFromJSON(json: any): GetCourseVersionList;
|
|
31
|
+
export declare function GetCourseVersionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionList;
|
|
32
|
+
export declare function GetCourseVersionListToJSON(json: any): GetCourseVersionList;
|
|
33
|
+
export declare function GetCourseVersionListToJSONTyped(value?: GetCourseVersionList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfGetCourseVersionList = instanceOfGetCourseVersionList;
|
|
17
|
+
exports.GetCourseVersionListFromJSON = GetCourseVersionListFromJSON;
|
|
18
|
+
exports.GetCourseVersionListFromJSONTyped = GetCourseVersionListFromJSONTyped;
|
|
19
|
+
exports.GetCourseVersionListToJSON = GetCourseVersionListToJSON;
|
|
20
|
+
exports.GetCourseVersionListToJSONTyped = GetCourseVersionListToJSONTyped;
|
|
21
|
+
const GetCourseVersion_1 = require("./GetCourseVersion");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetCourseVersionList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetCourseVersionList(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function GetCourseVersionListFromJSON(json) {
|
|
31
|
+
return GetCourseVersionListFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function GetCourseVersionListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'items': (json['items'].map(GetCourseVersion_1.GetCourseVersionFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function GetCourseVersionListToJSON(json) {
|
|
42
|
+
return GetCourseVersionListToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GetCourseVersionListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'items': (value['items'].map(GetCourseVersion_1.GetCourseVersionToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { GetCourseVersionItem } from './GetCourseVersionItem';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetCourseVersionModule
|
|
18
|
+
*/
|
|
19
|
+
export interface GetCourseVersionModule {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetCourseVersionModule
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GetCourseVersionModule
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GetCourseVersionModule
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {RichTextDocument}
|
|
41
|
+
* @memberof GetCourseVersionModule
|
|
42
|
+
*/
|
|
43
|
+
descriptionRich: RichTextDocument;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof GetCourseVersionModule
|
|
48
|
+
*/
|
|
49
|
+
displayOrder: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<GetCourseVersionItem>}
|
|
53
|
+
* @memberof GetCourseVersionModule
|
|
54
|
+
*/
|
|
55
|
+
items: Array<GetCourseVersionItem>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the GetCourseVersionModule interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfGetCourseVersionModule(value: object): value is GetCourseVersionModule;
|
|
61
|
+
export declare function GetCourseVersionModuleFromJSON(json: any): GetCourseVersionModule;
|
|
62
|
+
export declare function GetCourseVersionModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseVersionModule;
|
|
63
|
+
export declare function GetCourseVersionModuleToJSON(json: any): GetCourseVersionModule;
|
|
64
|
+
export declare function GetCourseVersionModuleToJSONTyped(value?: GetCourseVersionModule | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.instanceOfGetCourseVersionModule = instanceOfGetCourseVersionModule;
|
|
17
|
+
exports.GetCourseVersionModuleFromJSON = GetCourseVersionModuleFromJSON;
|
|
18
|
+
exports.GetCourseVersionModuleFromJSONTyped = GetCourseVersionModuleFromJSONTyped;
|
|
19
|
+
exports.GetCourseVersionModuleToJSON = GetCourseVersionModuleToJSON;
|
|
20
|
+
exports.GetCourseVersionModuleToJSONTyped = GetCourseVersionModuleToJSONTyped;
|
|
21
|
+
const GetCourseVersionItem_1 = require("./GetCourseVersionItem");
|
|
22
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetCourseVersionModule interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetCourseVersionModule(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('descriptionRich' in value) || value['descriptionRich'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function GetCourseVersionModuleFromJSON(json) {
|
|
42
|
+
return GetCourseVersionModuleFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GetCourseVersionModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
'description': json['description'],
|
|
52
|
+
'descriptionRich': (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['description_rich']),
|
|
53
|
+
'displayOrder': json['display_order'],
|
|
54
|
+
'items': (json['items'].map(GetCourseVersionItem_1.GetCourseVersionItemFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function GetCourseVersionModuleToJSON(json) {
|
|
58
|
+
return GetCourseVersionModuleToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function GetCourseVersionModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'name': value['name'],
|
|
67
|
+
'description': value['description'],
|
|
68
|
+
'description_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['descriptionRich']),
|
|
69
|
+
'display_order': value['displayOrder'],
|
|
70
|
+
'items': (value['items'].map(GetCourseVersionItem_1.GetCourseVersionItemToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GetQuizAttemptQuestionsInnerCurrentAnswer } from './GetQuizAttemptQuestionsInnerCurrentAnswer';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
13
14
|
import type { GetQuizAttemptQuestionsInnerAnswerChoicesInner } from './GetQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -47,6 +48,12 @@ export interface GetQuizAttemptQuestionsInner {
|
|
|
47
48
|
* @memberof GetQuizAttemptQuestionsInner
|
|
48
49
|
*/
|
|
49
50
|
questionText: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {RichTextDocument}
|
|
54
|
+
* @memberof GetQuizAttemptQuestionsInner
|
|
55
|
+
*/
|
|
56
|
+
questionTextRich?: RichTextDocument;
|
|
50
57
|
/**
|
|
51
58
|
* Question type
|
|
52
59
|
* @type {GetQuizAttemptQuestionsInnerQuestionTypeEnum}
|
|
@@ -20,6 +20,7 @@ exports.GetQuizAttemptQuestionsInnerFromJSONTyped = GetQuizAttemptQuestionsInner
|
|
|
20
20
|
exports.GetQuizAttemptQuestionsInnerToJSON = GetQuizAttemptQuestionsInnerToJSON;
|
|
21
21
|
exports.GetQuizAttemptQuestionsInnerToJSONTyped = GetQuizAttemptQuestionsInnerToJSONTyped;
|
|
22
22
|
const GetQuizAttemptQuestionsInnerCurrentAnswer_1 = require("./GetQuizAttemptQuestionsInnerCurrentAnswer");
|
|
23
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
24
|
const GetQuizAttemptQuestionsInnerAnswerChoicesInner_1 = require("./GetQuizAttemptQuestionsInnerAnswerChoicesInner");
|
|
24
25
|
/**
|
|
25
26
|
* @export
|
|
@@ -65,6 +66,7 @@ function GetQuizAttemptQuestionsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
66
|
'questionOrder': json['question_order'],
|
|
66
67
|
'points': json['points'],
|
|
67
68
|
'questionText': json['question_text'],
|
|
69
|
+
'questionTextRich': json['question_text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['question_text_rich']),
|
|
68
70
|
'questionType': json['question_type'],
|
|
69
71
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizAttemptQuestionsInnerAnswerChoicesInner_1.GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON)),
|
|
70
72
|
'isAnswered': json['is_answered'],
|
|
@@ -85,6 +87,7 @@ function GetQuizAttemptQuestionsInnerToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
85
87
|
'question_order': value['questionOrder'],
|
|
86
88
|
'points': value['points'],
|
|
87
89
|
'question_text': value['questionText'],
|
|
90
|
+
'question_text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['questionTextRich']),
|
|
88
91
|
'question_type': value['questionType'],
|
|
89
92
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizAttemptQuestionsInnerAnswerChoicesInner_1.GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
|
|
90
93
|
'is_answered': value['isAnswered'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface GetQuizAttemptQuestionsInnerAnswerChoicesInner {
|
|
|
27
28
|
* @memberof GetQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
28
29
|
*/
|
|
29
30
|
text: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextDocument}
|
|
34
|
+
* @memberof GetQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
35
|
+
*/
|
|
36
|
+
textRich?: RichTextDocument;
|
|
30
37
|
/**
|
|
31
38
|
* Display order
|
|
32
39
|
* @type {number}
|
|
@@ -18,6 +18,7 @@ exports.GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON = GetQuizAttemptQ
|
|
|
18
18
|
exports.GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped = GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped;
|
|
19
19
|
exports.GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON = GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON;
|
|
20
20
|
exports.GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped = GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped;
|
|
21
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the GetQuizAttemptQuestionsInnerAnswerChoicesInner interface.
|
|
23
24
|
*/
|
|
@@ -40,6 +41,7 @@ function GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped(json, ignor
|
|
|
40
41
|
return {
|
|
41
42
|
'id': json['id'],
|
|
42
43
|
'text': json['text'],
|
|
44
|
+
'textRich': json['text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['text_rich']),
|
|
43
45
|
'displayOrder': json['display_order'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
@@ -53,6 +55,7 @@ function GetQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped(value, ignore
|
|
|
53
55
|
return {
|
|
54
56
|
'id': value['id'],
|
|
55
57
|
'text': value['text'],
|
|
58
|
+
'text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['textRich']),
|
|
56
59
|
'display_order': value['displayOrder'],
|
|
57
60
|
};
|
|
58
61
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GetQuizResultsQuestionsInnerAnswerChoicesInner } from './GetQuizResultsQuestionsInnerAnswerChoicesInner';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
13
14
|
import type { GetQuizResultsQuestionsInnerStudentAnswer } from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -35,6 +36,12 @@ export interface GetQuizResultsQuestionsInner {
|
|
|
35
36
|
* @memberof GetQuizResultsQuestionsInner
|
|
36
37
|
*/
|
|
37
38
|
questionText: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {RichTextDocument}
|
|
42
|
+
* @memberof GetQuizResultsQuestionsInner
|
|
43
|
+
*/
|
|
44
|
+
questionTextRich?: RichTextDocument;
|
|
38
45
|
/**
|
|
39
46
|
* Type of question
|
|
40
47
|
* @type {GetQuizResultsQuestionsInnerQuestionTypeEnum}
|
|
@@ -59,6 +66,12 @@ export interface GetQuizResultsQuestionsInner {
|
|
|
59
66
|
* @memberof GetQuizResultsQuestionsInner
|
|
60
67
|
*/
|
|
61
68
|
explanation?: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {RichTextDocument}
|
|
72
|
+
* @memberof GetQuizResultsQuestionsInner
|
|
73
|
+
*/
|
|
74
|
+
explanationRich?: RichTextDocument;
|
|
62
75
|
/**
|
|
63
76
|
* Time spent on this question in seconds
|
|
64
77
|
* @type {number}
|
|
@@ -20,6 +20,7 @@ exports.GetQuizResultsQuestionsInnerFromJSONTyped = GetQuizResultsQuestionsInner
|
|
|
20
20
|
exports.GetQuizResultsQuestionsInnerToJSON = GetQuizResultsQuestionsInnerToJSON;
|
|
21
21
|
exports.GetQuizResultsQuestionsInnerToJSONTyped = GetQuizResultsQuestionsInnerToJSONTyped;
|
|
22
22
|
const GetQuizResultsQuestionsInnerAnswerChoicesInner_1 = require("./GetQuizResultsQuestionsInnerAnswerChoicesInner");
|
|
23
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
24
|
const GetQuizResultsQuestionsInnerStudentAnswer_1 = require("./GetQuizResultsQuestionsInnerStudentAnswer");
|
|
24
25
|
/**
|
|
25
26
|
* @export
|
|
@@ -59,10 +60,12 @@ function GetQuizResultsQuestionsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
60
|
'questionId': json['question_id'],
|
|
60
61
|
'questionOrder': json['question_order'],
|
|
61
62
|
'questionText': json['question_text'],
|
|
63
|
+
'questionTextRich': json['question_text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['question_text_rich']),
|
|
62
64
|
'questionType': json['question_type'],
|
|
63
65
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizResultsQuestionsInnerAnswerChoicesInner_1.GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSON)),
|
|
64
66
|
'studentAnswer': (0, GetQuizResultsQuestionsInnerStudentAnswer_1.GetQuizResultsQuestionsInnerStudentAnswerFromJSON)(json['student_answer']),
|
|
65
67
|
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
68
|
+
'explanationRich': json['explanation_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['explanation_rich']),
|
|
66
69
|
'timeSpent': json['time_spent'] == null ? undefined : json['time_spent'],
|
|
67
70
|
'wasFlagged': json['was_flagged'] == null ? undefined : json['was_flagged'],
|
|
68
71
|
};
|
|
@@ -78,10 +81,12 @@ function GetQuizResultsQuestionsInnerToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
78
81
|
'question_id': value['questionId'],
|
|
79
82
|
'question_order': value['questionOrder'],
|
|
80
83
|
'question_text': value['questionText'],
|
|
84
|
+
'question_text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['questionTextRich']),
|
|
81
85
|
'question_type': value['questionType'],
|
|
82
86
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizResultsQuestionsInnerAnswerChoicesInner_1.GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSON)),
|
|
83
87
|
'student_answer': (0, GetQuizResultsQuestionsInnerStudentAnswer_1.GetQuizResultsQuestionsInnerStudentAnswerToJSON)(value['studentAnswer']),
|
|
84
88
|
'explanation': value['explanation'],
|
|
89
|
+
'explanation_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanationRich']),
|
|
85
90
|
'time_spent': value['timeSpent'],
|
|
86
91
|
'was_flagged': value['wasFlagged'],
|
|
87
92
|
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface GetQuizResultsQuestionsInnerAnswerChoicesInner {
|
|
|
27
28
|
* @memberof GetQuizResultsQuestionsInnerAnswerChoicesInner
|
|
28
29
|
*/
|
|
29
30
|
text: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextDocument}
|
|
34
|
+
* @memberof GetQuizResultsQuestionsInnerAnswerChoicesInner
|
|
35
|
+
*/
|
|
36
|
+
textRich?: RichTextDocument;
|
|
30
37
|
/**
|
|
31
38
|
*
|
|
32
39
|
* @type {boolean}
|
|
@@ -18,6 +18,7 @@ exports.GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSON = GetQuizResultsQ
|
|
|
18
18
|
exports.GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSONTyped = GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSONTyped;
|
|
19
19
|
exports.GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSON = GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSON;
|
|
20
20
|
exports.GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSONTyped = GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSONTyped;
|
|
21
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the GetQuizResultsQuestionsInnerAnswerChoicesInner interface.
|
|
23
24
|
*/
|
|
@@ -42,6 +43,7 @@ function GetQuizResultsQuestionsInnerAnswerChoicesInnerFromJSONTyped(json, ignor
|
|
|
42
43
|
return {
|
|
43
44
|
'id': json['id'],
|
|
44
45
|
'text': json['text'],
|
|
46
|
+
'textRich': json['text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['text_rich']),
|
|
45
47
|
'isCorrect': json['is_correct'],
|
|
46
48
|
'wasSelected': json['was_selected'],
|
|
47
49
|
};
|
|
@@ -56,6 +58,7 @@ function GetQuizResultsQuestionsInnerAnswerChoicesInnerToJSONTyped(value, ignore
|
|
|
56
58
|
return {
|
|
57
59
|
'id': value['id'],
|
|
58
60
|
'text': value['text'],
|
|
61
|
+
'text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['textRich']),
|
|
59
62
|
'is_correct': value['isCorrect'],
|
|
60
63
|
'was_selected': value['wasSelected'],
|
|
61
64
|
};
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { GetContentLibraryVersion } from './GetContentLibraryVersion';
|
|
13
|
+
import type { ResourceType } from './ResourceType';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetResource
|
|
18
|
+
*/
|
|
19
|
+
export interface GetResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetResource
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GetResource
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof GetResource
|
|
36
|
+
*/
|
|
37
|
+
description: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ResourceType}
|
|
41
|
+
* @memberof GetResource
|
|
42
|
+
*/
|
|
43
|
+
resourceType: ResourceType;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GetResource
|
|
48
|
+
*/
|
|
49
|
+
ownerId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {GetContentLibraryVersion}
|
|
53
|
+
* @memberof GetResource
|
|
54
|
+
*/
|
|
55
|
+
latestPublishedVersion?: GetContentLibraryVersion | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {GetContentLibraryVersion}
|
|
59
|
+
* @memberof GetResource
|
|
60
|
+
*/
|
|
61
|
+
draftVersion?: GetContentLibraryVersion | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<GetContentLibraryVersion>}
|
|
65
|
+
* @memberof GetResource
|
|
66
|
+
*/
|
|
67
|
+
versions: Array<GetContentLibraryVersion>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof GetResource
|
|
72
|
+
*/
|
|
73
|
+
publishedCourseCount: number;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof GetResource
|
|
78
|
+
*/
|
|
79
|
+
draftCourseCount: number;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof GetResource
|
|
84
|
+
*/
|
|
85
|
+
historicalCourseCount: number;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof GetResource
|
|
90
|
+
*/
|
|
91
|
+
activeLearnerCount: number;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof GetResource
|
|
96
|
+
*/
|
|
97
|
+
createdAt: number;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof GetResource
|
|
102
|
+
*/
|
|
103
|
+
updatedAt: number;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof GetResource
|
|
108
|
+
*/
|
|
109
|
+
archivedAt?: number | null;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Check if a given object implements the GetResource interface.
|
|
113
|
+
*/
|
|
114
|
+
export declare function instanceOfGetResource(value: object): value is GetResource;
|
|
115
|
+
export declare function GetResourceFromJSON(json: any): GetResource;
|
|
116
|
+
export declare function GetResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResource;
|
|
117
|
+
export declare function GetResourceToJSON(json: any): GetResource;
|
|
118
|
+
export declare function GetResourceToJSONTyped(value?: GetResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,102 @@
|
|
|
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.instanceOfGetResource = instanceOfGetResource;
|
|
17
|
+
exports.GetResourceFromJSON = GetResourceFromJSON;
|
|
18
|
+
exports.GetResourceFromJSONTyped = GetResourceFromJSONTyped;
|
|
19
|
+
exports.GetResourceToJSON = GetResourceToJSON;
|
|
20
|
+
exports.GetResourceToJSONTyped = GetResourceToJSONTyped;
|
|
21
|
+
const GetContentLibraryVersion_1 = require("./GetContentLibraryVersion");
|
|
22
|
+
const ResourceType_1 = require("./ResourceType");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetResource(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('resourceType' in value) || value['resourceType'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('ownerId' in value) || value['ownerId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('versions' in value) || value['versions'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('draftCourseCount' in value) || value['draftCourseCount'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('historicalCourseCount' in value) || value['historicalCourseCount'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('activeLearnerCount' in value) || value['activeLearnerCount'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
function GetResourceFromJSON(json) {
|
|
54
|
+
return GetResourceFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': json['id'],
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'description': json['description'],
|
|
64
|
+
'resourceType': (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
|
|
65
|
+
'ownerId': json['owner_id'],
|
|
66
|
+
'latestPublishedVersion': json['latest_published_version'] == null ? undefined : (0, GetContentLibraryVersion_1.GetContentLibraryVersionFromJSON)(json['latest_published_version']),
|
|
67
|
+
'draftVersion': json['draft_version'] == null ? undefined : (0, GetContentLibraryVersion_1.GetContentLibraryVersionFromJSON)(json['draft_version']),
|
|
68
|
+
'versions': (json['versions'].map(GetContentLibraryVersion_1.GetContentLibraryVersionFromJSON)),
|
|
69
|
+
'publishedCourseCount': json['published_course_count'],
|
|
70
|
+
'draftCourseCount': json['draft_course_count'],
|
|
71
|
+
'historicalCourseCount': json['historical_course_count'],
|
|
72
|
+
'activeLearnerCount': json['active_learner_count'],
|
|
73
|
+
'createdAt': json['created_at'],
|
|
74
|
+
'updatedAt': json['updated_at'],
|
|
75
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function GetResourceToJSON(json) {
|
|
79
|
+
return GetResourceToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function GetResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'description': value['description'],
|
|
89
|
+
'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
|
|
90
|
+
'owner_id': value['ownerId'],
|
|
91
|
+
'latest_published_version': (0, GetContentLibraryVersion_1.GetContentLibraryVersionToJSON)(value['latestPublishedVersion']),
|
|
92
|
+
'draft_version': (0, GetContentLibraryVersion_1.GetContentLibraryVersionToJSON)(value['draftVersion']),
|
|
93
|
+
'versions': (value['versions'].map(GetContentLibraryVersion_1.GetContentLibraryVersionToJSON)),
|
|
94
|
+
'published_course_count': value['publishedCourseCount'],
|
|
95
|
+
'draft_course_count': value['draftCourseCount'],
|
|
96
|
+
'historical_course_count': value['historicalCourseCount'],
|
|
97
|
+
'active_learner_count': value['activeLearnerCount'],
|
|
98
|
+
'created_at': value['createdAt'],
|
|
99
|
+
'updated_at': value['updatedAt'],
|
|
100
|
+
'archived_at': value['archivedAt'],
|
|
101
|
+
};
|
|
102
|
+
}
|