@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,105 @@
|
|
|
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 GetUserCourseListItemEnrollmentStatusEnum = {
|
|
18
|
+
Enrolled: 'Enrolled',
|
|
19
|
+
InProgress: 'InProgress',
|
|
20
|
+
Completed: 'Completed',
|
|
21
|
+
Failed: 'Failed',
|
|
22
|
+
Expired: 'Expired',
|
|
23
|
+
Withdrawn: 'Withdrawn',
|
|
24
|
+
Removed: 'Removed',
|
|
25
|
+
Archived: 'Archived',
|
|
26
|
+
Suspended: 'Suspended'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const GetUserCourseListItemEnrollmentAccessStateEnum = {
|
|
32
|
+
Active: 'active',
|
|
33
|
+
CompletedReview: 'completed_review',
|
|
34
|
+
Expired: 'expired',
|
|
35
|
+
Suspended: 'suspended',
|
|
36
|
+
Failed: 'failed',
|
|
37
|
+
Withdrawn: 'withdrawn',
|
|
38
|
+
Removed: 'removed',
|
|
39
|
+
Archived: 'archived'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export const GetUserCourseListItemEnrollmentUserTypeEnum = {
|
|
45
|
+
Student: 'Student',
|
|
46
|
+
Instructor: 'Instructor'
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the GetUserCourseListItemEnrollment interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfGetUserCourseListItemEnrollment(value) {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('accessState' in value) || value['accessState'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('daysUntilExpiry' in value) || value['daysUntilExpiry'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('userType' in value) || value['userType'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('completionDate' in value) || value['completionDate'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
export function GetUserCourseListItemEnrollmentFromJSON(json) {
|
|
71
|
+
return GetUserCourseListItemEnrollmentFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
export function GetUserCourseListItemEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': json['id'],
|
|
79
|
+
'status': json['status'],
|
|
80
|
+
'accessState': json['access_state'],
|
|
81
|
+
'daysUntilExpiry': json['days_until_expiry'],
|
|
82
|
+
'userType': json['user_type'],
|
|
83
|
+
'enrollmentDateStart': json['enrollment_date_start'],
|
|
84
|
+
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
85
|
+
'completionDate': json['completion_date'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export function GetUserCourseListItemEnrollmentToJSON(json) {
|
|
89
|
+
return GetUserCourseListItemEnrollmentToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
export function GetUserCourseListItemEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
'id': value['id'],
|
|
97
|
+
'status': value['status'],
|
|
98
|
+
'access_state': value['accessState'],
|
|
99
|
+
'days_until_expiry': value['daysUntilExpiry'],
|
|
100
|
+
'user_type': value['userType'],
|
|
101
|
+
'enrollment_date_start': value['enrollmentDateStart'],
|
|
102
|
+
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
103
|
+
'completion_date': value['completionDate'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -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
|
+
* Learner progress for an enrolled user's course list item.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetUserCourseListItemProgress
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUserCourseListItemProgress {
|
|
18
|
+
/**
|
|
19
|
+
* Completed visible content divided by total visible content. Null when total content count is zero.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetUserCourseListItemProgress
|
|
22
|
+
*/
|
|
23
|
+
completionPercentage: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetUserCourseListItemProgress
|
|
28
|
+
*/
|
|
29
|
+
completedContentCount: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetUserCourseListItemProgress
|
|
34
|
+
*/
|
|
35
|
+
totalContentCount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetUserCourseListItemProgress interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetUserCourseListItemProgress(value: object): value is GetUserCourseListItemProgress;
|
|
41
|
+
export declare function GetUserCourseListItemProgressFromJSON(json: any): GetUserCourseListItemProgress;
|
|
42
|
+
export declare function GetUserCourseListItemProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserCourseListItemProgress;
|
|
43
|
+
export declare function GetUserCourseListItemProgressToJSON(json: any): GetUserCourseListItemProgress;
|
|
44
|
+
export declare function GetUserCourseListItemProgressToJSONTyped(value?: GetUserCourseListItemProgress | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 GetUserCourseListItemProgress interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetUserCourseListItemProgress(value) {
|
|
18
|
+
if (!('completionPercentage' in value) || value['completionPercentage'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('completedContentCount' in value) || value['completedContentCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('totalContentCount' in value) || value['totalContentCount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetUserCourseListItemProgressFromJSON(json) {
|
|
27
|
+
return GetUserCourseListItemProgressFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetUserCourseListItemProgressFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'completionPercentage': json['completion_percentage'],
|
|
35
|
+
'completedContentCount': json['completed_content_count'],
|
|
36
|
+
'totalContentCount': json['total_content_count'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function GetUserCourseListItemProgressToJSON(json) {
|
|
40
|
+
return GetUserCourseListItemProgressToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function GetUserCourseListItemProgressToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'completion_percentage': value['completionPercentage'],
|
|
48
|
+
'completed_content_count': value['completedContentCount'],
|
|
49
|
+
'total_content_count': value['totalContentCount'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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
|
}
|