@easyedu/js-lsm-api 1.80.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 +14 -0
- package/README.md +11 -2
- package/dist/apis/RichTextApi.d.ts +67 -0
- package/dist/apis/RichTextApi.js +158 -0
- 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/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/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 +6 -0
- package/dist/esm/models/index.js +6 -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/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 +6 -0
- package/dist/models/index.js +6 -0
- package/docs/GetQuestion.md +2 -2
- package/docs/GetQuestionAnswerChoicesInner.md +1 -1
- package/docs/GetRichTextAssetUpload.md +40 -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/package.json +1 -1
- package/src/apis/RichTextApi.ts +201 -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/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 +6 -0
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
14
15
|
import { GetQuestionAnswerChoicesInnerFromJSON, GetQuestionAnswerChoicesInnerToJSON, } from './GetQuestionAnswerChoicesInner';
|
|
15
16
|
import { GetQuestionQuizzesInnerFromJSON, } from './GetQuestionQuizzesInner';
|
|
16
17
|
/**
|
|
@@ -61,11 +62,11 @@ export function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
62
|
}
|
|
62
63
|
return {
|
|
63
64
|
'id': json['id'],
|
|
64
|
-
'questionText': json['question_text'],
|
|
65
|
+
'questionText': RichTextDocumentFromJSON(json['question_text']),
|
|
65
66
|
'questionType': json['question_type'],
|
|
66
67
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuestionAnswerChoicesInnerFromJSON)),
|
|
67
68
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
68
|
-
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
69
|
+
'explanation': json['explanation'] == null ? undefined : RichTextDocumentFromJSON(json['explanation']),
|
|
69
70
|
'topic': json['topic'],
|
|
70
71
|
'difficultyLevel': json['difficulty_level'],
|
|
71
72
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -85,11 +86,11 @@ export function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
86
|
return value;
|
|
86
87
|
}
|
|
87
88
|
return {
|
|
88
|
-
'question_text': value['questionText'],
|
|
89
|
+
'question_text': RichTextDocumentToJSON(value['questionText']),
|
|
89
90
|
'question_type': value['questionType'],
|
|
90
91
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuestionAnswerChoicesInnerToJSON)),
|
|
91
92
|
'correct_answer': value['correctAnswer'],
|
|
92
|
-
'explanation': value['explanation'],
|
|
93
|
+
'explanation': RichTextDocumentToJSON(value['explanation']),
|
|
93
94
|
'topic': value['topic'],
|
|
94
95
|
'difficulty_level': value['difficultyLevel'],
|
|
95
96
|
'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 { RichTextDocument } from './RichTextDocument';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -23,10 +24,10 @@ export interface GetQuestionAnswerChoicesInner {
|
|
|
23
24
|
id: string;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
|
-
* @type {
|
|
27
|
+
* @type {RichTextDocument}
|
|
27
28
|
* @memberof GetQuestionAnswerChoicesInner
|
|
28
29
|
*/
|
|
29
|
-
text:
|
|
30
|
+
text: RichTextDocument;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
33
|
* @type {boolean}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the GetQuestionAnswerChoicesInner interface.
|
|
16
17
|
*/
|
|
@@ -32,7 +33,7 @@ export function GetQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscrimin
|
|
|
32
33
|
}
|
|
33
34
|
return {
|
|
34
35
|
'id': json['id'],
|
|
35
|
-
'text': json['text'],
|
|
36
|
+
'text': RichTextDocumentFromJSON(json['text']),
|
|
36
37
|
'isCorrect': json['is_correct'],
|
|
37
38
|
};
|
|
38
39
|
}
|
|
@@ -45,7 +46,7 @@ export function GetQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscrimina
|
|
|
45
46
|
}
|
|
46
47
|
return {
|
|
47
48
|
'id': value['id'],
|
|
48
|
-
'text': value['text'],
|
|
49
|
+
'text': RichTextDocumentToJSON(value['text']),
|
|
49
50
|
'is_correct': value['isCorrect'],
|
|
50
51
|
};
|
|
51
52
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetRichTextAssetUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface GetRichTextAssetUpload {
|
|
18
|
+
/**
|
|
19
|
+
* Created pending asset ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetRichTextAssetUpload
|
|
22
|
+
*/
|
|
23
|
+
assetId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Presigned URL for direct upload
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetRichTextAssetUpload
|
|
28
|
+
*/
|
|
29
|
+
uploadUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
* Authenticated API URL that redirects to a signed asset URL once completed
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetRichTextAssetUpload
|
|
34
|
+
*/
|
|
35
|
+
renderUrl: string;
|
|
36
|
+
/**
|
|
37
|
+
* Upload URL lifetime
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetRichTextAssetUpload
|
|
40
|
+
*/
|
|
41
|
+
expiresInSeconds: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the GetRichTextAssetUpload interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfGetRichTextAssetUpload(value: object): value is GetRichTextAssetUpload;
|
|
47
|
+
export declare function GetRichTextAssetUploadFromJSON(json: any): GetRichTextAssetUpload;
|
|
48
|
+
export declare function GetRichTextAssetUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRichTextAssetUpload;
|
|
49
|
+
export declare function GetRichTextAssetUploadToJSON(json: any): GetRichTextAssetUpload;
|
|
50
|
+
export declare function GetRichTextAssetUploadToJSONTyped(value?: GetRichTextAssetUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the GetRichTextAssetUpload interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetRichTextAssetUpload(value) {
|
|
18
|
+
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('uploadUrl' in value) || value['uploadUrl'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('renderUrl' in value) || value['renderUrl'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('expiresInSeconds' in value) || value['expiresInSeconds'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function GetRichTextAssetUploadFromJSON(json) {
|
|
29
|
+
return GetRichTextAssetUploadFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function GetRichTextAssetUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'assetId': json['asset_id'],
|
|
37
|
+
'uploadUrl': json['upload_url'],
|
|
38
|
+
'renderUrl': json['render_url'],
|
|
39
|
+
'expiresInSeconds': json['expires_in_seconds'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function GetRichTextAssetUploadToJSON(json) {
|
|
43
|
+
return GetRichTextAssetUploadToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function GetRichTextAssetUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'asset_id': value['assetId'],
|
|
51
|
+
'upload_url': value['uploadUrl'],
|
|
52
|
+
'render_url': value['renderUrl'],
|
|
53
|
+
'expires_in_seconds': value['expiresInSeconds'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PostQuestionAnswerChoicesInner } from './PostQuestionAnswerChoicesInner';
|
|
13
|
+
import type { RichTextInput } from './RichTextInput';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -17,11 +18,11 @@ import type { PostQuestionAnswerChoicesInner } from './PostQuestionAnswerChoices
|
|
|
17
18
|
*/
|
|
18
19
|
export interface PostQuestion {
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {
|
|
21
|
+
*
|
|
22
|
+
* @type {RichTextInput}
|
|
22
23
|
* @memberof PostQuestion
|
|
23
24
|
*/
|
|
24
|
-
questionText:
|
|
25
|
+
questionText: RichTextInput;
|
|
25
26
|
/**
|
|
26
27
|
* Type of question
|
|
27
28
|
* @type {PostQuestionQuestionTypeEnum}
|
|
@@ -41,11 +42,11 @@ export interface PostQuestion {
|
|
|
41
42
|
*/
|
|
42
43
|
correctAnswer?: string;
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {
|
|
45
|
+
*
|
|
46
|
+
* @type {RichTextInput}
|
|
46
47
|
* @memberof PostQuestion
|
|
47
48
|
*/
|
|
48
|
-
explanation?:
|
|
49
|
+
explanation?: RichTextInput;
|
|
49
50
|
/**
|
|
50
51
|
* Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
|
|
51
52
|
* @type {string}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { PostQuestionAnswerChoicesInnerFromJSON, PostQuestionAnswerChoicesInnerToJSON, } from './PostQuestionAnswerChoicesInner';
|
|
15
|
+
import { RichTextInputFromJSON, RichTextInputToJSON, } from './RichTextInput';
|
|
15
16
|
/**
|
|
16
17
|
* @export
|
|
17
18
|
*/
|
|
@@ -53,11 +54,11 @@ export function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
54
|
return json;
|
|
54
55
|
}
|
|
55
56
|
return {
|
|
56
|
-
'questionText': json['question_text'],
|
|
57
|
+
'questionText': RichTextInputFromJSON(json['question_text']),
|
|
57
58
|
'questionType': json['question_type'],
|
|
58
59
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuestionAnswerChoicesInnerFromJSON)),
|
|
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 : RichTextInputFromJSON(json['explanation']),
|
|
61
62
|
'topic': json['topic'],
|
|
62
63
|
'difficultyLevel': json['difficulty_level'],
|
|
63
64
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -72,11 +73,11 @@ export function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
73
|
return value;
|
|
73
74
|
}
|
|
74
75
|
return {
|
|
75
|
-
'question_text': value['questionText'],
|
|
76
|
+
'question_text': RichTextInputToJSON(value['questionText']),
|
|
76
77
|
'question_type': value['questionType'],
|
|
77
78
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuestionAnswerChoicesInnerToJSON)),
|
|
78
79
|
'correct_answer': value['correctAnswer'],
|
|
79
|
-
'explanation': value['explanation'],
|
|
80
|
+
'explanation': 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
|
|
@@ -17,10 +18,10 @@
|
|
|
17
18
|
export interface PostQuestionAnswerChoicesInner {
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {RichTextInput}
|
|
21
22
|
* @memberof PostQuestionAnswerChoicesInner
|
|
22
23
|
*/
|
|
23
|
-
text:
|
|
24
|
+
text: RichTextInput;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @type {boolean}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { RichTextInputFromJSON, RichTextInputToJSON, } from './RichTextInput';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the PostQuestionAnswerChoicesInner interface.
|
|
16
17
|
*/
|
|
@@ -29,7 +30,7 @@ export function PostQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscrimi
|
|
|
29
30
|
return json;
|
|
30
31
|
}
|
|
31
32
|
return {
|
|
32
|
-
'text': json['text'],
|
|
33
|
+
'text': RichTextInputFromJSON(json['text']),
|
|
33
34
|
'isCorrect': json['is_correct'],
|
|
34
35
|
};
|
|
35
36
|
}
|
|
@@ -41,7 +42,7 @@ export function PostQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscrimin
|
|
|
41
42
|
return value;
|
|
42
43
|
}
|
|
43
44
|
return {
|
|
44
|
-
'text': value['text'],
|
|
45
|
+
'text': RichTextInputToJSON(value['text']),
|
|
45
46
|
'is_correct': value['isCorrect'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 PostRichTextAssetComplete
|
|
16
|
+
*/
|
|
17
|
+
export interface PostRichTextAssetComplete {
|
|
18
|
+
/**
|
|
19
|
+
* Uploaded size confirmed by the client
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PostRichTextAssetComplete
|
|
22
|
+
*/
|
|
23
|
+
byteSize: number;
|
|
24
|
+
/**
|
|
25
|
+
* Image width in pixels
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PostRichTextAssetComplete
|
|
28
|
+
*/
|
|
29
|
+
width?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Image height in pixels
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostRichTextAssetComplete
|
|
34
|
+
*/
|
|
35
|
+
height?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PostRichTextAssetComplete interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPostRichTextAssetComplete(value: object): value is PostRichTextAssetComplete;
|
|
41
|
+
export declare function PostRichTextAssetCompleteFromJSON(json: any): PostRichTextAssetComplete;
|
|
42
|
+
export declare function PostRichTextAssetCompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostRichTextAssetComplete;
|
|
43
|
+
export declare function PostRichTextAssetCompleteToJSON(json: any): PostRichTextAssetComplete;
|
|
44
|
+
export declare function PostRichTextAssetCompleteToJSONTyped(value?: PostRichTextAssetComplete | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PostRichTextAssetComplete interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostRichTextAssetComplete(value) {
|
|
18
|
+
if (!('byteSize' in value) || value['byteSize'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostRichTextAssetCompleteFromJSON(json) {
|
|
23
|
+
return PostRichTextAssetCompleteFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostRichTextAssetCompleteFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'byteSize': json['byte_size'],
|
|
31
|
+
'width': json['width'] == null ? undefined : json['width'],
|
|
32
|
+
'height': json['height'] == null ? undefined : json['height'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PostRichTextAssetCompleteToJSON(json) {
|
|
36
|
+
return PostRichTextAssetCompleteToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PostRichTextAssetCompleteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'byte_size': value['byteSize'],
|
|
44
|
+
'width': value['width'],
|
|
45
|
+
'height': value['height'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 PostRichTextAssetUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface PostRichTextAssetUpload {
|
|
18
|
+
/**
|
|
19
|
+
* Original file name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostRichTextAssetUpload
|
|
22
|
+
*/
|
|
23
|
+
filename: string;
|
|
24
|
+
/**
|
|
25
|
+
* Expected MIME type
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostRichTextAssetUpload
|
|
28
|
+
*/
|
|
29
|
+
mimeType: string;
|
|
30
|
+
/**
|
|
31
|
+
* Expected upload size in bytes
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PostRichTextAssetUpload
|
|
34
|
+
*/
|
|
35
|
+
byteSize: number;
|
|
36
|
+
/**
|
|
37
|
+
* Image width in pixels
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PostRichTextAssetUpload
|
|
40
|
+
*/
|
|
41
|
+
width?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Image height in pixels
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PostRichTextAssetUpload
|
|
46
|
+
*/
|
|
47
|
+
height?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Asset access policy context
|
|
50
|
+
* @type {PostRichTextAssetUploadUsageContextEnum}
|
|
51
|
+
* @memberof PostRichTextAssetUpload
|
|
52
|
+
*/
|
|
53
|
+
usageContext: PostRichTextAssetUploadUsageContextEnum;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const PostRichTextAssetUploadUsageContextEnum: {
|
|
59
|
+
readonly LearningContent: "learning_content";
|
|
60
|
+
};
|
|
61
|
+
export type PostRichTextAssetUploadUsageContextEnum = typeof PostRichTextAssetUploadUsageContextEnum[keyof typeof PostRichTextAssetUploadUsageContextEnum];
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the PostRichTextAssetUpload interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfPostRichTextAssetUpload(value: object): value is PostRichTextAssetUpload;
|
|
66
|
+
export declare function PostRichTextAssetUploadFromJSON(json: any): PostRichTextAssetUpload;
|
|
67
|
+
export declare function PostRichTextAssetUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostRichTextAssetUpload;
|
|
68
|
+
export declare function PostRichTextAssetUploadToJSON(json: any): PostRichTextAssetUpload;
|
|
69
|
+
export declare function PostRichTextAssetUploadToJSONTyped(value?: PostRichTextAssetUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PostRichTextAssetUploadUsageContextEnum = {
|
|
18
|
+
LearningContent: 'learning_content'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the PostRichTextAssetUpload interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfPostRichTextAssetUpload(value) {
|
|
24
|
+
if (!('filename' in value) || value['filename'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('byteSize' in value) || value['byteSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('usageContext' in value) || value['usageContext'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function PostRichTextAssetUploadFromJSON(json) {
|
|
35
|
+
return PostRichTextAssetUploadFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PostRichTextAssetUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'filename': json['filename'],
|
|
43
|
+
'mimeType': json['mime_type'],
|
|
44
|
+
'byteSize': json['byte_size'],
|
|
45
|
+
'width': json['width'] == null ? undefined : json['width'],
|
|
46
|
+
'height': json['height'] == null ? undefined : json['height'],
|
|
47
|
+
'usageContext': json['usage_context'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function PostRichTextAssetUploadToJSON(json) {
|
|
51
|
+
return PostRichTextAssetUploadToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function PostRichTextAssetUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'filename': value['filename'],
|
|
59
|
+
'mime_type': value['mimeType'],
|
|
60
|
+
'byte_size': value['byteSize'],
|
|
61
|
+
'width': value['width'],
|
|
62
|
+
'height': value['height'],
|
|
63
|
+
'usage_context': value['usageContext'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -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}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { PutQuestionAnswerChoicesInnerFromJSON, PutQuestionAnswerChoicesInnerToJSON, } from './PutQuestionAnswerChoicesInner';
|
|
15
|
+
import { RichTextInputFromJSON, RichTextInputToJSON, } from './RichTextInput';
|
|
15
16
|
/**
|
|
16
17
|
* @export
|
|
17
18
|
*/
|
|
@@ -45,11 +46,11 @@ export function PutQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
46
|
return json;
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
|
-
'questionText': json['question_text'] == null ? undefined : json['question_text'],
|
|
49
|
+
'questionText': json['question_text'] == null ? undefined : RichTextInputFromJSON(json['question_text']),
|
|
49
50
|
'questionType': json['question_type'] == null ? undefined : json['question_type'],
|
|
50
51
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PutQuestionAnswerChoicesInnerFromJSON)),
|
|
51
52
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
52
|
-
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
53
|
+
'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
|
|
53
54
|
'topic': json['topic'] == null ? undefined : json['topic'],
|
|
54
55
|
'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
|
|
55
56
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -64,11 +65,11 @@ export function PutQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
65
|
return value;
|
|
65
66
|
}
|
|
66
67
|
return {
|
|
67
|
-
'question_text': value['questionText'],
|
|
68
|
+
'question_text': RichTextInputToJSON(value['questionText']),
|
|
68
69
|
'question_type': value['questionType'],
|
|
69
70
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PutQuestionAnswerChoicesInnerToJSON)),
|
|
70
71
|
'correct_answer': value['correctAnswer'],
|
|
71
|
-
'explanation': value['explanation'],
|
|
72
|
+
'explanation': RichTextInputToJSON(value['explanation']),
|
|
72
73
|
'topic': value['topic'],
|
|
73
74
|
'difficulty_level': value['difficultyLevel'],
|
|
74
75
|
'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}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { RichTextInputFromJSON, RichTextInputToJSON, } from './RichTextInput';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the PutQuestionAnswerChoicesInner interface.
|
|
16
17
|
*/
|
|
@@ -30,7 +31,7 @@ export function PutQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscrimin
|
|
|
30
31
|
}
|
|
31
32
|
return {
|
|
32
33
|
'id': json['id'] == null ? undefined : json['id'],
|
|
33
|
-
'text': json['text'],
|
|
34
|
+
'text': RichTextInputFromJSON(json['text']),
|
|
34
35
|
'isCorrect': json['is_correct'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
@@ -43,7 +44,7 @@ export function PutQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscrimina
|
|
|
43
44
|
}
|
|
44
45
|
return {
|
|
45
46
|
'id': value['id'],
|
|
46
|
-
'text': value['text'],
|
|
47
|
+
'text': RichTextInputToJSON(value['text']),
|
|
47
48
|
'is_correct': value['isCorrect'],
|
|
48
49
|
};
|
|
49
50
|
}
|