@easyedu/js-lsm-api 1.79.0 → 1.81.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 +26 -0
- package/README.md +18 -2
- package/dist/apis/RichTextApi.d.ts +67 -0
- package/dist/apis/RichTextApi.js +158 -0
- package/dist/apis/UserApi.d.ts +42 -0
- package/dist/apis/UserApi.js +79 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/RichTextApi.d.ts +67 -0
- package/dist/esm/apis/RichTextApi.js +154 -0
- package/dist/esm/apis/UserApi.d.ts +42 -0
- package/dist/esm/apis/UserApi.js +78 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetQuestion.d.ts +7 -6
- package/dist/esm/models/GetQuestion.js +5 -4
- package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/GetQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/GetRichTextAssetUpload.d.ts +50 -0
- package/dist/esm/models/GetRichTextAssetUpload.js +55 -0
- package/dist/esm/models/GetUserCourseList.d.ts +57 -0
- package/dist/esm/models/GetUserCourseList.js +60 -0
- package/dist/esm/models/GetUserCourseListItem.d.ts +54 -0
- package/dist/esm/models/GetUserCourseListItem.js +59 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.d.ts +74 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.js +75 -0
- package/dist/esm/models/GetUserCourseListItemCourse.d.ts +89 -0
- package/dist/esm/models/GetUserCourseListItemCourse.js +82 -0
- package/dist/esm/models/GetUserCourseListItemEnrollment.d.ts +111 -0
- package/dist/esm/models/GetUserCourseListItemEnrollment.js +105 -0
- package/dist/esm/models/GetUserCourseListItemProgress.d.ts +44 -0
- package/dist/esm/models/GetUserCourseListItemProgress.js +51 -0
- package/dist/esm/models/PostQuestion.d.ts +7 -6
- package/dist/esm/models/PostQuestion.js +5 -4
- package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/PostQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/PostRichTextAssetComplete.d.ts +44 -0
- package/dist/esm/models/PostRichTextAssetComplete.js +47 -0
- package/dist/esm/models/PostRichTextAssetUpload.d.ts +69 -0
- package/dist/esm/models/PostRichTextAssetUpload.js +65 -0
- package/dist/esm/models/PutQuestion.d.ts +7 -6
- package/dist/esm/models/PutQuestion.js +5 -4
- package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/PutQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/RichTextAsset.d.ts +62 -0
- package/dist/esm/models/RichTextAsset.js +59 -0
- package/dist/esm/models/RichTextDocument.d.ts +60 -0
- package/dist/esm/models/RichTextDocument.js +62 -0
- package/dist/esm/models/RichTextInput.d.ts +47 -0
- package/dist/esm/models/RichTextInput.js +53 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/GetQuestion.d.ts +7 -6
- package/dist/models/GetQuestion.js +5 -4
- package/dist/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/GetQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/GetRichTextAssetUpload.d.ts +50 -0
- package/dist/models/GetRichTextAssetUpload.js +62 -0
- package/dist/models/GetUserCourseList.d.ts +57 -0
- package/dist/models/GetUserCourseList.js +67 -0
- package/dist/models/GetUserCourseListItem.d.ts +54 -0
- package/dist/models/GetUserCourseListItem.js +66 -0
- package/dist/models/GetUserCourseListItemCertificate.d.ts +74 -0
- package/dist/models/GetUserCourseListItemCertificate.js +83 -0
- package/dist/models/GetUserCourseListItemCourse.d.ts +89 -0
- package/dist/models/GetUserCourseListItemCourse.js +90 -0
- package/dist/models/GetUserCourseListItemEnrollment.d.ts +111 -0
- package/dist/models/GetUserCourseListItemEnrollment.js +113 -0
- package/dist/models/GetUserCourseListItemProgress.d.ts +44 -0
- package/dist/models/GetUserCourseListItemProgress.js +58 -0
- package/dist/models/PostQuestion.d.ts +7 -6
- package/dist/models/PostQuestion.js +5 -4
- package/dist/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/PostQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/PostRichTextAssetComplete.d.ts +44 -0
- package/dist/models/PostRichTextAssetComplete.js +54 -0
- package/dist/models/PostRichTextAssetUpload.d.ts +69 -0
- package/dist/models/PostRichTextAssetUpload.js +73 -0
- package/dist/models/PutQuestion.d.ts +7 -6
- package/dist/models/PutQuestion.js +5 -4
- package/dist/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/PutQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/RichTextAsset.d.ts +62 -0
- package/dist/models/RichTextAsset.js +66 -0
- package/dist/models/RichTextDocument.d.ts +60 -0
- package/dist/models/RichTextDocument.js +70 -0
- package/dist/models/RichTextInput.d.ts +47 -0
- package/dist/models/RichTextInput.js +61 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/docs/GetQuestion.md +2 -2
- package/docs/GetQuestionAnswerChoicesInner.md +1 -1
- package/docs/GetRichTextAssetUpload.md +40 -0
- package/docs/GetUserCourseList.md +43 -0
- package/docs/GetUserCourseListItem.md +41 -0
- package/docs/GetUserCourseListItemCertificate.md +43 -0
- package/docs/GetUserCourseListItemCourse.md +51 -0
- package/docs/GetUserCourseListItemEnrollment.md +49 -0
- package/docs/GetUserCourseListItemProgress.md +39 -0
- package/docs/PostQuestion.md +2 -2
- package/docs/PostQuestionAnswerChoicesInner.md +1 -1
- package/docs/PostRichTextAssetComplete.md +38 -0
- package/docs/PostRichTextAssetUpload.md +44 -0
- package/docs/PutQuestion.md +2 -2
- package/docs/PutQuestionAnswerChoicesInner.md +1 -1
- package/docs/RichTextApi.md +212 -0
- package/docs/RichTextAsset.md +44 -0
- package/docs/RichTextDocument.md +40 -0
- package/docs/RichTextInput.md +36 -0
- package/docs/UserApi.md +90 -0
- package/package.json +1 -1
- package/src/apis/RichTextApi.ts +201 -0
- package/src/apis/UserApi.ts +108 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetQuestion.ts +17 -10
- package/src/models/GetQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/GetRichTextAssetUpload.ts +93 -0
- package/src/models/GetUserCourseList.ts +110 -0
- package/src/models/GetUserCourseListItem.ts +122 -0
- package/src/models/GetUserCourseListItemCertificate.ts +124 -0
- package/src/models/GetUserCourseListItemCourse.ts +149 -0
- package/src/models/GetUserCourseListItemEnrollment.ts +171 -0
- package/src/models/GetUserCourseListItemProgress.ts +84 -0
- package/src/models/PostQuestion.ts +17 -10
- package/src/models/PostQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/PostRichTextAssetComplete.ts +82 -0
- package/src/models/PostRichTextAssetUpload.ts +119 -0
- package/src/models/PutQuestion.ts +17 -10
- package/src/models/PutQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/RichTextAsset.ts +109 -0
- package/src/models/RichTextDocument.ts +111 -0
- package/src/models/RichTextInput.ts +85 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,73 @@
|
|
|
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.PostRichTextAssetUploadUsageContextEnum = void 0;
|
|
17
|
+
exports.instanceOfPostRichTextAssetUpload = instanceOfPostRichTextAssetUpload;
|
|
18
|
+
exports.PostRichTextAssetUploadFromJSON = PostRichTextAssetUploadFromJSON;
|
|
19
|
+
exports.PostRichTextAssetUploadFromJSONTyped = PostRichTextAssetUploadFromJSONTyped;
|
|
20
|
+
exports.PostRichTextAssetUploadToJSON = PostRichTextAssetUploadToJSON;
|
|
21
|
+
exports.PostRichTextAssetUploadToJSONTyped = PostRichTextAssetUploadToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PostRichTextAssetUploadUsageContextEnum = {
|
|
26
|
+
LearningContent: 'learning_content'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the PostRichTextAssetUpload interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfPostRichTextAssetUpload(value) {
|
|
32
|
+
if (!('filename' in value) || value['filename'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('byteSize' in value) || value['byteSize'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('usageContext' in value) || value['usageContext'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function PostRichTextAssetUploadFromJSON(json) {
|
|
43
|
+
return PostRichTextAssetUploadFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function PostRichTextAssetUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'filename': json['filename'],
|
|
51
|
+
'mimeType': json['mime_type'],
|
|
52
|
+
'byteSize': json['byte_size'],
|
|
53
|
+
'width': json['width'] == null ? undefined : json['width'],
|
|
54
|
+
'height': json['height'] == null ? undefined : json['height'],
|
|
55
|
+
'usageContext': json['usage_context'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function PostRichTextAssetUploadToJSON(json) {
|
|
59
|
+
return PostRichTextAssetUploadToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function PostRichTextAssetUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'filename': value['filename'],
|
|
67
|
+
'mime_type': value['mimeType'],
|
|
68
|
+
'byte_size': value['byteSize'],
|
|
69
|
+
'width': value['width'],
|
|
70
|
+
'height': value['height'],
|
|
71
|
+
'usage_context': value['usageContext'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PutQuestionAnswerChoicesInner } from './PutQuestionAnswerChoicesInner';
|
|
13
|
+
import type { RichTextInput } from './RichTextInput';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -17,11 +18,11 @@ import type { PutQuestionAnswerChoicesInner } from './PutQuestionAnswerChoicesIn
|
|
|
17
18
|
*/
|
|
18
19
|
export interface PutQuestion {
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {
|
|
21
|
+
*
|
|
22
|
+
* @type {RichTextInput}
|
|
22
23
|
* @memberof PutQuestion
|
|
23
24
|
*/
|
|
24
|
-
questionText?:
|
|
25
|
+
questionText?: RichTextInput;
|
|
25
26
|
/**
|
|
26
27
|
* Type of question
|
|
27
28
|
* @type {PutQuestionQuestionTypeEnum}
|
|
@@ -41,11 +42,11 @@ export interface PutQuestion {
|
|
|
41
42
|
*/
|
|
42
43
|
correctAnswer?: string;
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {
|
|
45
|
+
*
|
|
46
|
+
* @type {RichTextInput}
|
|
46
47
|
* @memberof PutQuestion
|
|
47
48
|
*/
|
|
48
|
-
explanation?:
|
|
49
|
+
explanation?: RichTextInput;
|
|
49
50
|
/**
|
|
50
51
|
* Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
|
|
51
52
|
* @type {string}
|
|
@@ -20,6 +20,7 @@ exports.PutQuestionFromJSONTyped = PutQuestionFromJSONTyped;
|
|
|
20
20
|
exports.PutQuestionToJSON = PutQuestionToJSON;
|
|
21
21
|
exports.PutQuestionToJSONTyped = PutQuestionToJSONTyped;
|
|
22
22
|
const PutQuestionAnswerChoicesInner_1 = require("./PutQuestionAnswerChoicesInner");
|
|
23
|
+
const RichTextInput_1 = require("./RichTextInput");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -53,11 +54,11 @@ function PutQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
54
|
return json;
|
|
54
55
|
}
|
|
55
56
|
return {
|
|
56
|
-
'questionText': json['question_text'] == null ? undefined : json['question_text'],
|
|
57
|
+
'questionText': json['question_text'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['question_text']),
|
|
57
58
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
58
59
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PutQuestionAnswerChoicesInner_1.PutQuestionAnswerChoicesInnerFromJSON)),
|
|
59
60
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
60
|
-
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
61
|
+
'explanation': json['explanation'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['explanation']),
|
|
61
62
|
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
62
63
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
63
64
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -72,11 +73,11 @@ function PutQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
73
|
return value;
|
|
73
74
|
}
|
|
74
75
|
return {
|
|
75
|
-
'question_text': value['questionText'],
|
|
76
|
+
'question_text': (0, RichTextInput_1.RichTextInputToJSON)(value['questionText']),
|
|
76
77
|
'question_type': value['questionType'],
|
|
77
78
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PutQuestionAnswerChoicesInner_1.PutQuestionAnswerChoicesInnerToJSON)),
|
|
78
79
|
'correct_answer': value['correctAnswer'],
|
|
79
|
-
'explanation': value['explanation'],
|
|
80
|
+
'explanation': (0, RichTextInput_1.RichTextInputToJSON)(value['explanation']),
|
|
80
81
|
'topic': value['topic'],
|
|
81
82
|
'difficulty_level': value['difficultyLevel'],
|
|
82
83
|
'tags': value['tags'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RichTextInput } from './RichTextInput';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -23,10 +24,10 @@ export interface PutQuestionAnswerChoicesInner {
|
|
|
23
24
|
id?: string;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
|
-
* @type {
|
|
27
|
+
* @type {RichTextInput}
|
|
27
28
|
* @memberof PutQuestionAnswerChoicesInner
|
|
28
29
|
*/
|
|
29
|
-
text:
|
|
30
|
+
text: RichTextInput;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
33
|
* @type {boolean}
|
|
@@ -18,6 +18,7 @@ exports.PutQuestionAnswerChoicesInnerFromJSON = PutQuestionAnswerChoicesInnerFro
|
|
|
18
18
|
exports.PutQuestionAnswerChoicesInnerFromJSONTyped = PutQuestionAnswerChoicesInnerFromJSONTyped;
|
|
19
19
|
exports.PutQuestionAnswerChoicesInnerToJSON = PutQuestionAnswerChoicesInnerToJSON;
|
|
20
20
|
exports.PutQuestionAnswerChoicesInnerToJSONTyped = PutQuestionAnswerChoicesInnerToJSONTyped;
|
|
21
|
+
const RichTextInput_1 = require("./RichTextInput");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the PutQuestionAnswerChoicesInner interface.
|
|
23
24
|
*/
|
|
@@ -37,7 +38,7 @@ function PutQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
39
40
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
|
-
'text': json['text'],
|
|
41
|
+
'text': (0, RichTextInput_1.RichTextInputFromJSON)(json['text']),
|
|
41
42
|
'isCorrect': json['is_correct'],
|
|
42
43
|
};
|
|
43
44
|
}
|
|
@@ -50,7 +51,7 @@ function PutQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = f
|
|
|
50
51
|
}
|
|
51
52
|
return {
|
|
52
53
|
'id': value['id'],
|
|
53
|
-
'text': value['text'],
|
|
54
|
+
'text': (0, RichTextInput_1.RichTextInputToJSON)(value['text']),
|
|
54
55
|
'is_correct': value['isCorrect'],
|
|
55
56
|
};
|
|
56
57
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 RichTextAsset
|
|
16
|
+
*/
|
|
17
|
+
export interface RichTextAsset {
|
|
18
|
+
/**
|
|
19
|
+
* Rich text asset external identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RichTextAsset
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Asset MIME type
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RichTextAsset
|
|
28
|
+
*/
|
|
29
|
+
mimeType: string;
|
|
30
|
+
/**
|
|
31
|
+
* Uploaded asset size in bytes
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RichTextAsset
|
|
34
|
+
*/
|
|
35
|
+
byteSize: number;
|
|
36
|
+
/**
|
|
37
|
+
* Image width in pixels
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RichTextAsset
|
|
40
|
+
*/
|
|
41
|
+
width?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Image height in pixels
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof RichTextAsset
|
|
46
|
+
*/
|
|
47
|
+
height?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Authenticated API URL that redirects to a signed asset URL
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof RichTextAsset
|
|
52
|
+
*/
|
|
53
|
+
renderUrl: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the RichTextAsset interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfRichTextAsset(value: object): value is RichTextAsset;
|
|
59
|
+
export declare function RichTextAssetFromJSON(json: any): RichTextAsset;
|
|
60
|
+
export declare function RichTextAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextAsset;
|
|
61
|
+
export declare function RichTextAssetToJSON(json: any): RichTextAsset;
|
|
62
|
+
export declare function RichTextAssetToJSONTyped(value?: RichTextAsset | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfRichTextAsset = instanceOfRichTextAsset;
|
|
17
|
+
exports.RichTextAssetFromJSON = RichTextAssetFromJSON;
|
|
18
|
+
exports.RichTextAssetFromJSONTyped = RichTextAssetFromJSONTyped;
|
|
19
|
+
exports.RichTextAssetToJSON = RichTextAssetToJSON;
|
|
20
|
+
exports.RichTextAssetToJSONTyped = RichTextAssetToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RichTextAsset interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRichTextAsset(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('byteSize' in value) || value['byteSize'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('renderUrl' in value) || value['renderUrl'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function RichTextAssetFromJSON(json) {
|
|
36
|
+
return RichTextAssetFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function RichTextAssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'mimeType': json['mime_type'],
|
|
45
|
+
'byteSize': json['byte_size'],
|
|
46
|
+
'width': json['width'] == null ? undefined : json['width'],
|
|
47
|
+
'height': json['height'] == null ? undefined : json['height'],
|
|
48
|
+
'renderUrl': json['render_url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function RichTextAssetToJSON(json) {
|
|
52
|
+
return RichTextAssetToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function RichTextAssetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'mime_type': value['mimeType'],
|
|
61
|
+
'byte_size': value['byteSize'],
|
|
62
|
+
'width': value['width'],
|
|
63
|
+
'height': value['height'],
|
|
64
|
+
'render_url': value['renderUrl'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { RichTextAsset } from './RichTextAsset';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RichTextDocument
|
|
17
|
+
*/
|
|
18
|
+
export interface RichTextDocument {
|
|
19
|
+
/**
|
|
20
|
+
* Rich text document format
|
|
21
|
+
* @type {RichTextDocumentFormatEnum}
|
|
22
|
+
* @memberof RichTextDocument
|
|
23
|
+
*/
|
|
24
|
+
format: RichTextDocumentFormatEnum;
|
|
25
|
+
/**
|
|
26
|
+
* TipTap/ProseMirror JSON document
|
|
27
|
+
* @type {{ [key: string]: any; }}
|
|
28
|
+
* @memberof RichTextDocument
|
|
29
|
+
*/
|
|
30
|
+
document: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Server-derived plain text for search and previews
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof RichTextDocument
|
|
37
|
+
*/
|
|
38
|
+
plainText: string;
|
|
39
|
+
/**
|
|
40
|
+
* Assets referenced by the document
|
|
41
|
+
* @type {Array<RichTextAsset>}
|
|
42
|
+
* @memberof RichTextDocument
|
|
43
|
+
*/
|
|
44
|
+
assets: Array<RichTextAsset>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export declare const RichTextDocumentFormatEnum: {
|
|
50
|
+
readonly TiptapV2: "tiptap-v2";
|
|
51
|
+
};
|
|
52
|
+
export type RichTextDocumentFormatEnum = typeof RichTextDocumentFormatEnum[keyof typeof RichTextDocumentFormatEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the RichTextDocument interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfRichTextDocument(value: object): value is RichTextDocument;
|
|
57
|
+
export declare function RichTextDocumentFromJSON(json: any): RichTextDocument;
|
|
58
|
+
export declare function RichTextDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextDocument;
|
|
59
|
+
export declare function RichTextDocumentToJSON(json: any): RichTextDocument;
|
|
60
|
+
export declare function RichTextDocumentToJSONTyped(value?: RichTextDocument | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.RichTextDocumentFormatEnum = void 0;
|
|
17
|
+
exports.instanceOfRichTextDocument = instanceOfRichTextDocument;
|
|
18
|
+
exports.RichTextDocumentFromJSON = RichTextDocumentFromJSON;
|
|
19
|
+
exports.RichTextDocumentFromJSONTyped = RichTextDocumentFromJSONTyped;
|
|
20
|
+
exports.RichTextDocumentToJSON = RichTextDocumentToJSON;
|
|
21
|
+
exports.RichTextDocumentToJSONTyped = RichTextDocumentToJSONTyped;
|
|
22
|
+
const RichTextAsset_1 = require("./RichTextAsset");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.RichTextDocumentFormatEnum = {
|
|
27
|
+
TiptapV2: 'tiptap-v2'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the RichTextDocument interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfRichTextDocument(value) {
|
|
33
|
+
if (!('format' in value) || value['format'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('document' in value) || value['document'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('plainText' in value) || value['plainText'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('assets' in value) || value['assets'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function RichTextDocumentFromJSON(json) {
|
|
44
|
+
return RichTextDocumentFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function RichTextDocumentFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'format': json['format'],
|
|
52
|
+
'document': json['document'],
|
|
53
|
+
'plainText': json['plain_text'],
|
|
54
|
+
'assets': (json['assets'].map(RichTextAsset_1.RichTextAssetFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function RichTextDocumentToJSON(json) {
|
|
58
|
+
return RichTextDocumentToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function RichTextDocumentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'format': value['format'],
|
|
66
|
+
'document': value['document'],
|
|
67
|
+
'plain_text': value['plainText'],
|
|
68
|
+
'assets': (value['assets'].map(RichTextAsset_1.RichTextAssetToJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 RichTextInput
|
|
16
|
+
*/
|
|
17
|
+
export interface RichTextInput {
|
|
18
|
+
/**
|
|
19
|
+
* Rich text document format
|
|
20
|
+
* @type {RichTextInputFormatEnum}
|
|
21
|
+
* @memberof RichTextInput
|
|
22
|
+
*/
|
|
23
|
+
format: RichTextInputFormatEnum;
|
|
24
|
+
/**
|
|
25
|
+
* TipTap/ProseMirror JSON document
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
|
+
* @memberof RichTextInput
|
|
28
|
+
*/
|
|
29
|
+
document: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export declare const RichTextInputFormatEnum: {
|
|
37
|
+
readonly TiptapV2: "tiptap-v2";
|
|
38
|
+
};
|
|
39
|
+
export type RichTextInputFormatEnum = typeof RichTextInputFormatEnum[keyof typeof RichTextInputFormatEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the RichTextInput interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfRichTextInput(value: object): value is RichTextInput;
|
|
44
|
+
export declare function RichTextInputFromJSON(json: any): RichTextInput;
|
|
45
|
+
export declare function RichTextInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextInput;
|
|
46
|
+
export declare function RichTextInputToJSON(json: any): RichTextInput;
|
|
47
|
+
export declare function RichTextInputToJSONTyped(value?: RichTextInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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.RichTextInputFormatEnum = void 0;
|
|
17
|
+
exports.instanceOfRichTextInput = instanceOfRichTextInput;
|
|
18
|
+
exports.RichTextInputFromJSON = RichTextInputFromJSON;
|
|
19
|
+
exports.RichTextInputFromJSONTyped = RichTextInputFromJSONTyped;
|
|
20
|
+
exports.RichTextInputToJSON = RichTextInputToJSON;
|
|
21
|
+
exports.RichTextInputToJSONTyped = RichTextInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.RichTextInputFormatEnum = {
|
|
26
|
+
TiptapV2: 'tiptap-v2'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the RichTextInput interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfRichTextInput(value) {
|
|
32
|
+
if (!('format' in value) || value['format'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('document' in value) || value['document'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function RichTextInputFromJSON(json) {
|
|
39
|
+
return RichTextInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function RichTextInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'format': json['format'],
|
|
47
|
+
'document': json['document'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function RichTextInputToJSON(json) {
|
|
51
|
+
return RichTextInputToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function RichTextInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'format': value['format'],
|
|
59
|
+
'document': value['document'],
|
|
60
|
+
};
|
|
61
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
|
137
137
|
export * from './GetQuizResultsScore';
|
|
138
138
|
export * from './GetQuizResultsTiming';
|
|
139
139
|
export * from './GetQuizStatistics';
|
|
140
|
+
export * from './GetRichTextAssetUpload';
|
|
140
141
|
export * from './GetRole';
|
|
141
142
|
export * from './GetScormApiLogItem';
|
|
142
143
|
export * from './GetScormApiLogs';
|
|
@@ -153,6 +154,12 @@ export * from './GetSystemBillingList';
|
|
|
153
154
|
export * from './GetSystemMetrics';
|
|
154
155
|
export * from './GetUser';
|
|
155
156
|
export * from './GetUserAvatarUpload';
|
|
157
|
+
export * from './GetUserCourseList';
|
|
158
|
+
export * from './GetUserCourseListItem';
|
|
159
|
+
export * from './GetUserCourseListItemCertificate';
|
|
160
|
+
export * from './GetUserCourseListItemCourse';
|
|
161
|
+
export * from './GetUserCourseListItemEnrollment';
|
|
162
|
+
export * from './GetUserCourseListItemProgress';
|
|
156
163
|
export * from './GetUserQuizAttempts';
|
|
157
164
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
158
165
|
export * from './GetUserQuizAttemptsAllOfFilters';
|
|
@@ -228,6 +235,8 @@ export * from './PostQuizQuestionsQuestionsInner';
|
|
|
228
235
|
export * from './PostQuizSettings';
|
|
229
236
|
export * from './PostResetPassword';
|
|
230
237
|
export * from './PostRevokeCertificate';
|
|
238
|
+
export * from './PostRichTextAssetComplete';
|
|
239
|
+
export * from './PostRichTextAssetUpload';
|
|
231
240
|
export * from './PostRole';
|
|
232
241
|
export * from './PostSendResetPassword';
|
|
233
242
|
export * from './PostSignupRequest';
|
|
@@ -264,6 +273,9 @@ export * from './PutUser';
|
|
|
264
273
|
export * from './QuizContent';
|
|
265
274
|
export * from './QuizContentAssignment';
|
|
266
275
|
export * from './QuizContentSettings';
|
|
276
|
+
export * from './RichTextAsset';
|
|
277
|
+
export * from './RichTextDocument';
|
|
278
|
+
export * from './RichTextInput';
|
|
267
279
|
export * from './SCORMContent';
|
|
268
280
|
export * from './ScormGetValueResponse';
|
|
269
281
|
export * from './ScormSessionData';
|
package/dist/models/index.js
CHANGED
|
@@ -155,6 +155,7 @@ __exportStar(require("./GetQuizResultsQuestionsInnerStudentAnswer"), exports);
|
|
|
155
155
|
__exportStar(require("./GetQuizResultsScore"), exports);
|
|
156
156
|
__exportStar(require("./GetQuizResultsTiming"), exports);
|
|
157
157
|
__exportStar(require("./GetQuizStatistics"), exports);
|
|
158
|
+
__exportStar(require("./GetRichTextAssetUpload"), exports);
|
|
158
159
|
__exportStar(require("./GetRole"), exports);
|
|
159
160
|
__exportStar(require("./GetScormApiLogItem"), exports);
|
|
160
161
|
__exportStar(require("./GetScormApiLogs"), exports);
|
|
@@ -171,6 +172,12 @@ __exportStar(require("./GetSystemBillingList"), exports);
|
|
|
171
172
|
__exportStar(require("./GetSystemMetrics"), exports);
|
|
172
173
|
__exportStar(require("./GetUser"), exports);
|
|
173
174
|
__exportStar(require("./GetUserAvatarUpload"), exports);
|
|
175
|
+
__exportStar(require("./GetUserCourseList"), exports);
|
|
176
|
+
__exportStar(require("./GetUserCourseListItem"), exports);
|
|
177
|
+
__exportStar(require("./GetUserCourseListItemCertificate"), exports);
|
|
178
|
+
__exportStar(require("./GetUserCourseListItemCourse"), exports);
|
|
179
|
+
__exportStar(require("./GetUserCourseListItemEnrollment"), exports);
|
|
180
|
+
__exportStar(require("./GetUserCourseListItemProgress"), exports);
|
|
174
181
|
__exportStar(require("./GetUserQuizAttempts"), exports);
|
|
175
182
|
__exportStar(require("./GetUserQuizAttemptsAllOfAttempts"), exports);
|
|
176
183
|
__exportStar(require("./GetUserQuizAttemptsAllOfFilters"), exports);
|
|
@@ -246,6 +253,8 @@ __exportStar(require("./PostQuizQuestionsQuestionsInner"), exports);
|
|
|
246
253
|
__exportStar(require("./PostQuizSettings"), exports);
|
|
247
254
|
__exportStar(require("./PostResetPassword"), exports);
|
|
248
255
|
__exportStar(require("./PostRevokeCertificate"), exports);
|
|
256
|
+
__exportStar(require("./PostRichTextAssetComplete"), exports);
|
|
257
|
+
__exportStar(require("./PostRichTextAssetUpload"), exports);
|
|
249
258
|
__exportStar(require("./PostRole"), exports);
|
|
250
259
|
__exportStar(require("./PostSendResetPassword"), exports);
|
|
251
260
|
__exportStar(require("./PostSignupRequest"), exports);
|
|
@@ -282,6 +291,9 @@ __exportStar(require("./PutUser"), exports);
|
|
|
282
291
|
__exportStar(require("./QuizContent"), exports);
|
|
283
292
|
__exportStar(require("./QuizContentAssignment"), exports);
|
|
284
293
|
__exportStar(require("./QuizContentSettings"), exports);
|
|
294
|
+
__exportStar(require("./RichTextAsset"), exports);
|
|
295
|
+
__exportStar(require("./RichTextDocument"), exports);
|
|
296
|
+
__exportStar(require("./RichTextInput"), exports);
|
|
285
297
|
__exportStar(require("./SCORMContent"), exports);
|
|
286
298
|
__exportStar(require("./ScormGetValueResponse"), exports);
|
|
287
299
|
__exportStar(require("./ScormSessionData"), exports);
|
package/docs/GetQuestion.md
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | string
|
|
10
|
-
`questionText` |
|
|
10
|
+
`questionText` | [RichTextDocument](RichTextDocument.md)
|
|
11
11
|
`questionType` | string
|
|
12
12
|
`answerChoices` | [Array<GetQuestionAnswerChoicesInner>](GetQuestionAnswerChoicesInner.md)
|
|
13
13
|
`correctAnswer` | string
|
|
14
|
-
`explanation` |
|
|
14
|
+
`explanation` | [RichTextDocument](RichTextDocument.md)
|
|
15
15
|
`topic` | string
|
|
16
16
|
`difficultyLevel` | string
|
|
17
17
|
`tags` | Array<string>
|