@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,79 @@
|
|
|
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.PostCourseVersionItemScoreRollupStrategyEnum = void 0;
|
|
17
|
+
exports.instanceOfPostCourseVersionItem = instanceOfPostCourseVersionItem;
|
|
18
|
+
exports.PostCourseVersionItemFromJSON = PostCourseVersionItemFromJSON;
|
|
19
|
+
exports.PostCourseVersionItemFromJSONTyped = PostCourseVersionItemFromJSONTyped;
|
|
20
|
+
exports.PostCourseVersionItemToJSON = PostCourseVersionItemToJSON;
|
|
21
|
+
exports.PostCourseVersionItemToJSONTyped = PostCourseVersionItemToJSONTyped;
|
|
22
|
+
const ContentLaunchMode_1 = require("./ContentLaunchMode");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PostCourseVersionItemScoreRollupStrategyEnum = {
|
|
27
|
+
Latest: 'Latest',
|
|
28
|
+
Best: 'Best'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostCourseVersionItem interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfPostCourseVersionItem(value) {
|
|
34
|
+
if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('moduleId' in value) || value['moduleId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function PostCourseVersionItemFromJSON(json) {
|
|
41
|
+
return PostCourseVersionItemFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PostCourseVersionItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'contentLibraryItemId': json['content_library_item_id'],
|
|
49
|
+
'contentLibraryVersionId': json['content_library_version_id'] == null ? undefined : json['content_library_version_id'],
|
|
50
|
+
'moduleId': json['module_id'],
|
|
51
|
+
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
52
|
+
'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
|
|
53
|
+
'isVisible': json['is_visible'] == null ? undefined : json['is_visible'],
|
|
54
|
+
'launchMode': json['launch_mode'] == null ? undefined : (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
|
|
55
|
+
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
56
|
+
'scoreRollupStrategy': json['score_rollup_strategy'] == null ? undefined : json['score_rollup_strategy'],
|
|
57
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function PostCourseVersionItemToJSON(json) {
|
|
61
|
+
return PostCourseVersionItemToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function PostCourseVersionItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'content_library_item_id': value['contentLibraryItemId'],
|
|
69
|
+
'content_library_version_id': value['contentLibraryVersionId'],
|
|
70
|
+
'module_id': value['moduleId'],
|
|
71
|
+
'display_name': value['displayName'],
|
|
72
|
+
'display_order': value['displayOrder'],
|
|
73
|
+
'is_visible': value['isVisible'],
|
|
74
|
+
'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
|
|
75
|
+
'max_attempts': value['maxAttempts'],
|
|
76
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
77
|
+
'settings': value['settings'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Start or resume a learner attempt for an exact course resource version.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostCourseVersionItemSession
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCourseVersionItemSession {
|
|
18
|
+
/**
|
|
19
|
+
* Create a new attempt instead of returning the current attempt.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PostCourseVersionItemSession
|
|
22
|
+
*/
|
|
23
|
+
retake?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostCourseVersionItemSession interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostCourseVersionItemSession(value: object): value is PostCourseVersionItemSession;
|
|
29
|
+
export declare function PostCourseVersionItemSessionFromJSON(json: any): PostCourseVersionItemSession;
|
|
30
|
+
export declare function PostCourseVersionItemSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionItemSession;
|
|
31
|
+
export declare function PostCourseVersionItemSessionToJSON(json: any): PostCourseVersionItemSession;
|
|
32
|
+
export declare function PostCourseVersionItemSessionToJSONTyped(value?: PostCourseVersionItemSession | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfPostCourseVersionItemSession = instanceOfPostCourseVersionItemSession;
|
|
17
|
+
exports.PostCourseVersionItemSessionFromJSON = PostCourseVersionItemSessionFromJSON;
|
|
18
|
+
exports.PostCourseVersionItemSessionFromJSONTyped = PostCourseVersionItemSessionFromJSONTyped;
|
|
19
|
+
exports.PostCourseVersionItemSessionToJSON = PostCourseVersionItemSessionToJSON;
|
|
20
|
+
exports.PostCourseVersionItemSessionToJSONTyped = PostCourseVersionItemSessionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostCourseVersionItemSession interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostCourseVersionItemSession(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PostCourseVersionItemSessionFromJSON(json) {
|
|
28
|
+
return PostCourseVersionItemSessionFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PostCourseVersionItemSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'retake': json['retake'] == null ? undefined : json['retake'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function PostCourseVersionItemSessionToJSON(json) {
|
|
39
|
+
return PostCourseVersionItemSessionToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PostCourseVersionItemSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'retake': value['retake'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 PostCourseVersionPublish
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCourseVersionPublish {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCourseVersionPublish
|
|
22
|
+
*/
|
|
23
|
+
changeNotes?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostCourseVersionPublish interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostCourseVersionPublish(value: object): value is PostCourseVersionPublish;
|
|
29
|
+
export declare function PostCourseVersionPublishFromJSON(json: any): PostCourseVersionPublish;
|
|
30
|
+
export declare function PostCourseVersionPublishFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseVersionPublish;
|
|
31
|
+
export declare function PostCourseVersionPublishToJSON(json: any): PostCourseVersionPublish;
|
|
32
|
+
export declare function PostCourseVersionPublishToJSONTyped(value?: PostCourseVersionPublish | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfPostCourseVersionPublish = instanceOfPostCourseVersionPublish;
|
|
17
|
+
exports.PostCourseVersionPublishFromJSON = PostCourseVersionPublishFromJSON;
|
|
18
|
+
exports.PostCourseVersionPublishFromJSONTyped = PostCourseVersionPublishFromJSONTyped;
|
|
19
|
+
exports.PostCourseVersionPublishToJSON = PostCourseVersionPublishToJSON;
|
|
20
|
+
exports.PostCourseVersionPublishToJSONTyped = PostCourseVersionPublishToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostCourseVersionPublish interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostCourseVersionPublish(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PostCourseVersionPublishFromJSON(json) {
|
|
28
|
+
return PostCourseVersionPublishFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PostCourseVersionPublishFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function PostCourseVersionPublishToJSON(json) {
|
|
39
|
+
return PostCourseVersionPublishToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PostCourseVersionPublishToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'change_notes': value['changeNotes'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PostQuizAttemptQuestionsInnerAnswerChoicesInner } from './PostQuizAttemptQuestionsInnerAnswerChoicesInner';
|
|
13
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -46,6 +47,12 @@ export interface PostQuizAttemptQuestionsInner {
|
|
|
46
47
|
* @memberof PostQuizAttemptQuestionsInner
|
|
47
48
|
*/
|
|
48
49
|
questionText: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {RichTextDocument}
|
|
53
|
+
* @memberof PostQuizAttemptQuestionsInner
|
|
54
|
+
*/
|
|
55
|
+
questionTextRich?: RichTextDocument;
|
|
49
56
|
/**
|
|
50
57
|
* Question type
|
|
51
58
|
* @type {PostQuizAttemptQuestionsInnerQuestionTypeEnum}
|
|
@@ -20,6 +20,7 @@ exports.PostQuizAttemptQuestionsInnerFromJSONTyped = PostQuizAttemptQuestionsInn
|
|
|
20
20
|
exports.PostQuizAttemptQuestionsInnerToJSON = PostQuizAttemptQuestionsInnerToJSON;
|
|
21
21
|
exports.PostQuizAttemptQuestionsInnerToJSONTyped = PostQuizAttemptQuestionsInnerToJSONTyped;
|
|
22
22
|
const PostQuizAttemptQuestionsInnerAnswerChoicesInner_1 = require("./PostQuizAttemptQuestionsInnerAnswerChoicesInner");
|
|
23
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -64,6 +65,7 @@ function PostQuizAttemptQuestionsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
65
|
'questionOrder': json['question_order'],
|
|
65
66
|
'points': json['points'],
|
|
66
67
|
'questionText': json['question_text'],
|
|
68
|
+
'questionTextRich': json['question_text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['question_text_rich']),
|
|
67
69
|
'questionType': json['question_type'],
|
|
68
70
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuizAttemptQuestionsInnerAnswerChoicesInner_1.PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON)),
|
|
69
71
|
'isAnswered': json['is_answered'],
|
|
@@ -82,6 +84,7 @@ function PostQuizAttemptQuestionsInnerToJSONTyped(value, ignoreDiscriminator = f
|
|
|
82
84
|
'question_order': value['questionOrder'],
|
|
83
85
|
'points': value['points'],
|
|
84
86
|
'question_text': value['questionText'],
|
|
87
|
+
'question_text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['questionTextRich']),
|
|
85
88
|
'question_type': value['questionType'],
|
|
86
89
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuizAttemptQuestionsInnerAnswerChoicesInner_1.PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON)),
|
|
87
90
|
'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 PostQuizAttemptQuestionsInnerAnswerChoicesInner {
|
|
|
27
28
|
* @memberof PostQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
28
29
|
*/
|
|
29
30
|
text: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextDocument}
|
|
34
|
+
* @memberof PostQuizAttemptQuestionsInnerAnswerChoicesInner
|
|
35
|
+
*/
|
|
36
|
+
textRich?: RichTextDocument;
|
|
30
37
|
/**
|
|
31
38
|
* Display order (may be randomized)
|
|
32
39
|
* @type {number}
|
|
@@ -18,6 +18,7 @@ exports.PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON = PostQuizAttemp
|
|
|
18
18
|
exports.PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped = PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped;
|
|
19
19
|
exports.PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON = PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSON;
|
|
20
20
|
exports.PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped = PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped;
|
|
21
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the PostQuizAttemptQuestionsInnerAnswerChoicesInner interface.
|
|
23
24
|
*/
|
|
@@ -40,6 +41,7 @@ function PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSONTyped(json, igno
|
|
|
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 PostQuizAttemptQuestionsInnerAnswerChoicesInnerToJSONTyped(value, ignor
|
|
|
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
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { ResourceType } from './ResourceType';
|
|
13
|
+
import type { RichTextInput } from './RichTextInput';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PostResource
|
|
18
|
+
*/
|
|
19
|
+
export interface PostResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PostResource
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PostResource
|
|
30
|
+
*/
|
|
31
|
+
description?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ResourceType}
|
|
35
|
+
* @memberof PostResource
|
|
36
|
+
*/
|
|
37
|
+
resourceType: ResourceType;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof PostResource
|
|
42
|
+
*/
|
|
43
|
+
linkUrl?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {RichTextInput}
|
|
47
|
+
* @memberof PostResource
|
|
48
|
+
*/
|
|
49
|
+
richText?: RichTextInput | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PostResource interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfPostResource(value: object): value is PostResource;
|
|
55
|
+
export declare function PostResourceFromJSON(json: any): PostResource;
|
|
56
|
+
export declare function PostResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResource;
|
|
57
|
+
export declare function PostResourceToJSON(json: any): PostResource;
|
|
58
|
+
export declare function PostResourceToJSONTyped(value?: PostResource | 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.instanceOfPostResource = instanceOfPostResource;
|
|
17
|
+
exports.PostResourceFromJSON = PostResourceFromJSON;
|
|
18
|
+
exports.PostResourceFromJSONTyped = PostResourceFromJSONTyped;
|
|
19
|
+
exports.PostResourceToJSON = PostResourceToJSON;
|
|
20
|
+
exports.PostResourceToJSONTyped = PostResourceToJSONTyped;
|
|
21
|
+
const ResourceType_1 = require("./ResourceType");
|
|
22
|
+
const RichTextInput_1 = require("./RichTextInput");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PostResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPostResource(value) {
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('resourceType' in value) || value['resourceType'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PostResourceFromJSON(json) {
|
|
34
|
+
return PostResourceFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PostResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
43
|
+
'resourceType': (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
|
|
44
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
45
|
+
'richText': json['rich_text'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['rich_text']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function PostResourceToJSON(json) {
|
|
49
|
+
return PostResourceToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function PostResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'description': value['description'],
|
|
58
|
+
'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
|
|
59
|
+
'link_url': value['linkUrl'],
|
|
60
|
+
'rich_text': (0, RichTextInput_1.RichTextInputToJSON)(value['richText']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { RichTextInput } from './RichTextInput';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostResourceVersion
|
|
17
|
+
*/
|
|
18
|
+
export interface PostResourceVersion {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PostResourceVersion
|
|
23
|
+
*/
|
|
24
|
+
changeNotes?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PostResourceVersion
|
|
29
|
+
*/
|
|
30
|
+
linkUrl?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {RichTextInput}
|
|
34
|
+
* @memberof PostResourceVersion
|
|
35
|
+
*/
|
|
36
|
+
richText?: RichTextInput | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PostResourceVersion interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfPostResourceVersion(value: object): value is PostResourceVersion;
|
|
42
|
+
export declare function PostResourceVersionFromJSON(json: any): PostResourceVersion;
|
|
43
|
+
export declare function PostResourceVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersion;
|
|
44
|
+
export declare function PostResourceVersionToJSON(json: any): PostResourceVersion;
|
|
45
|
+
export declare function PostResourceVersionToJSONTyped(value?: PostResourceVersion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.instanceOfPostResourceVersion = instanceOfPostResourceVersion;
|
|
17
|
+
exports.PostResourceVersionFromJSON = PostResourceVersionFromJSON;
|
|
18
|
+
exports.PostResourceVersionFromJSONTyped = PostResourceVersionFromJSONTyped;
|
|
19
|
+
exports.PostResourceVersionToJSON = PostResourceVersionToJSON;
|
|
20
|
+
exports.PostResourceVersionToJSONTyped = PostResourceVersionToJSONTyped;
|
|
21
|
+
const RichTextInput_1 = require("./RichTextInput");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PostResourceVersion interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPostResourceVersion(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function PostResourceVersionFromJSON(json) {
|
|
29
|
+
return PostResourceVersionFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function PostResourceVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
37
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
38
|
+
'richText': json['rich_text'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['rich_text']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PostResourceVersionToJSON(json) {
|
|
42
|
+
return PostResourceVersionToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PostResourceVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'change_notes': value['changeNotes'],
|
|
50
|
+
'link_url': value['linkUrl'],
|
|
51
|
+
'rich_text': (0, RichTextInput_1.RichTextInputToJSON)(value['richText']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 PostResourceVersionComplete
|
|
16
|
+
*/
|
|
17
|
+
export interface PostResourceVersionComplete {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostResourceVersionComplete
|
|
22
|
+
*/
|
|
23
|
+
checksumSha256: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostResourceVersionComplete interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostResourceVersionComplete(value: object): value is PostResourceVersionComplete;
|
|
29
|
+
export declare function PostResourceVersionCompleteFromJSON(json: any): PostResourceVersionComplete;
|
|
30
|
+
export declare function PostResourceVersionCompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionComplete;
|
|
31
|
+
export declare function PostResourceVersionCompleteToJSON(json: any): PostResourceVersionComplete;
|
|
32
|
+
export declare function PostResourceVersionCompleteToJSONTyped(value?: PostResourceVersionComplete | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPostResourceVersionComplete = instanceOfPostResourceVersionComplete;
|
|
17
|
+
exports.PostResourceVersionCompleteFromJSON = PostResourceVersionCompleteFromJSON;
|
|
18
|
+
exports.PostResourceVersionCompleteFromJSONTyped = PostResourceVersionCompleteFromJSONTyped;
|
|
19
|
+
exports.PostResourceVersionCompleteToJSON = PostResourceVersionCompleteToJSON;
|
|
20
|
+
exports.PostResourceVersionCompleteToJSONTyped = PostResourceVersionCompleteToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostResourceVersionComplete interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostResourceVersionComplete(value) {
|
|
25
|
+
if (!('checksumSha256' in value) || value['checksumSha256'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostResourceVersionCompleteFromJSON(json) {
|
|
30
|
+
return PostResourceVersionCompleteFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostResourceVersionCompleteFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'checksumSha256': json['checksum_sha256'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PostResourceVersionCompleteToJSON(json) {
|
|
41
|
+
return PostResourceVersionCompleteToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PostResourceVersionCompleteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'checksum_sha256': value['checksumSha256'],
|
|
49
|
+
};
|
|
50
|
+
}
|