@easyedu/js-lsm-api 1.32.0 → 1.33.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/.openapi-generator/VERSION +1 -1
- package/README.md +20 -4
- package/dist/apis/ContentApi.d.ts +89 -0
- package/dist/apis/ContentApi.js +301 -102
- package/dist/apis/CourseApi.d.ts +48 -0
- package/dist/apis/CourseApi.js +157 -49
- package/dist/apis/ModuleApi.d.ts +16 -0
- package/dist/apis/ModuleApi.js +52 -16
- package/dist/apis/OtherApi.d.ts +4 -0
- package/dist/apis/OtherApi.js +13 -4
- package/dist/apis/PortalApi.d.ts +30 -3
- package/dist/apis/PortalApi.js +92 -32
- package/dist/apis/QuestionApi.d.ts +20 -0
- package/dist/apis/QuestionApi.js +65 -20
- package/dist/apis/QuizApi.d.ts +100 -0
- package/dist/apis/QuizApi.js +325 -100
- package/dist/apis/ReportingApi.d.ts +36 -0
- package/dist/apis/ReportingApi.js +117 -36
- package/dist/apis/RoleApi.d.ts +169 -0
- package/dist/apis/RoleApi.js +442 -0
- package/dist/apis/UserApi.d.ts +28 -0
- package/dist/apis/UserApi.js +91 -28
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentApi.d.ts +89 -0
- package/dist/esm/apis/ContentApi.js +301 -102
- package/dist/esm/apis/CourseApi.d.ts +48 -0
- package/dist/esm/apis/CourseApi.js +157 -49
- package/dist/esm/apis/ModuleApi.d.ts +16 -0
- package/dist/esm/apis/ModuleApi.js +52 -16
- package/dist/esm/apis/OtherApi.d.ts +4 -0
- package/dist/esm/apis/OtherApi.js +13 -4
- package/dist/esm/apis/PortalApi.d.ts +30 -3
- package/dist/esm/apis/PortalApi.js +92 -32
- package/dist/esm/apis/QuestionApi.d.ts +20 -0
- package/dist/esm/apis/QuestionApi.js +65 -20
- package/dist/esm/apis/QuizApi.d.ts +100 -0
- package/dist/esm/apis/QuizApi.js +325 -100
- package/dist/esm/apis/ReportingApi.d.ts +36 -0
- package/dist/esm/apis/ReportingApi.js +117 -36
- package/dist/esm/apis/RoleApi.d.ts +169 -0
- package/dist/esm/apis/RoleApi.js +438 -0
- package/dist/esm/apis/UserApi.d.ts +28 -0
- package/dist/esm/apis/UserApi.js +91 -28
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CriteriaBasedSelection.d.ts +1 -1
- package/dist/esm/models/CriteriaBasedSelectionCriteria.d.ts +2 -2
- package/dist/esm/models/FillInBlank.d.ts +1 -1
- package/dist/esm/models/FillInBlank1.d.ts +1 -1
- package/dist/esm/models/GetContent.d.ts +1 -1
- package/dist/esm/models/GetContentGradeDetail.d.ts +3 -3
- package/dist/esm/models/GetContentGradesItemsInner.d.ts +2 -2
- package/dist/esm/models/GetContentInstructorBasicReportingContentInfo.d.ts +1 -1
- package/dist/esm/models/GetContentSessionDetail.d.ts +2 -2
- package/dist/esm/models/GetCourseEnrollment.d.ts +2 -2
- package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +2 -2
- package/dist/esm/models/GetCourseExport.d.ts +2 -2
- package/dist/esm/models/GetPermission.d.ts +50 -0
- package/dist/esm/models/GetPermission.js +53 -0
- package/dist/esm/models/GetPortal.d.ts +23 -4
- package/dist/esm/models/GetPortal.js +14 -0
- package/dist/esm/models/GetPortalUser.d.ts +2 -11
- package/dist/esm/models/GetPortalUser.js +0 -8
- package/dist/esm/models/GetQuestion.d.ts +2 -2
- package/dist/esm/models/GetQuestionListFilters.d.ts +2 -2
- package/dist/esm/models/GetQuiz.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsBasicInfo.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +2 -2
- package/dist/esm/models/GetQuizAttemptAttempt.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptListAllOfAttempts.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptListAllOfFilters.d.ts +1 -1
- package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/esm/models/GetQuizCriteriaItem.d.ts +2 -2
- package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +2 -2
- package/dist/esm/models/GetQuizListAllOfFilters.d.ts +1 -1
- package/dist/esm/models/GetQuizListAllOfQuizzes.d.ts +1 -1
- package/dist/esm/models/GetQuizQuestions.d.ts +1 -1
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +2 -2
- package/dist/esm/models/GetQuizResults.d.ts +1 -1
- package/dist/esm/models/GetQuizResultsFeedbackDifficultyPerformanceInner.d.ts +1 -1
- package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +1 -1
- package/dist/esm/models/GetRole.d.ts +88 -0
- package/dist/esm/models/GetRole.js +80 -0
- package/dist/esm/models/GetScormApiLogItem.d.ts +1 -1
- package/dist/esm/models/GetUserQuizAttemptsAllOfAttempts.d.ts +1 -1
- package/dist/esm/models/GetUserQuizAttemptsAllOfFilters.d.ts +1 -1
- package/dist/esm/models/GetUserRole.d.ts +63 -0
- package/dist/esm/models/GetUserRole.js +67 -0
- package/dist/esm/models/ManualSelection.d.ts +1 -1
- package/dist/esm/models/MultipleAnswer.d.ts +1 -1
- package/dist/esm/models/MultipleAnswer1.d.ts +1 -1
- package/dist/esm/models/NoAnswer.d.ts +1 -1
- package/dist/esm/models/PostContentUpload.d.ts +1 -1
- package/dist/esm/models/PostCourseExport.d.ts +1 -1
- package/dist/esm/models/PostPortalInvite.d.ts +6 -2
- package/dist/esm/models/PostPortalInvite.js +5 -1
- package/dist/esm/models/PostQuestion.d.ts +2 -2
- package/dist/esm/models/PostQuiz.d.ts +1 -1
- package/dist/esm/models/PostQuizAttemptAttempt.d.ts +1 -1
- package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/esm/models/PostQuizAttemptSubmit.d.ts +1 -1
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +2 -2
- package/dist/esm/models/PostRole.d.ts +57 -0
- package/dist/esm/models/PostRole.js +61 -0
- package/dist/esm/models/PutCourseEnrollment.d.ts +2 -2
- package/dist/esm/models/PutQuestion.d.ts +2 -2
- package/dist/esm/models/PutQuiz.d.ts +1 -1
- package/dist/esm/models/PutRole.d.ts +38 -0
- package/dist/esm/models/PutRole.js +45 -0
- package/dist/esm/models/PutRolePermissions.d.ts +32 -0
- package/dist/esm/models/PutRolePermissions.js +43 -0
- package/dist/esm/models/QuizContent.d.ts +1 -1
- package/dist/esm/models/SingleAnswer.d.ts +1 -1
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/runtime.js +15 -0
- package/dist/models/CriteriaBasedSelection.d.ts +1 -1
- package/dist/models/CriteriaBasedSelectionCriteria.d.ts +2 -2
- package/dist/models/FillInBlank.d.ts +1 -1
- package/dist/models/FillInBlank1.d.ts +1 -1
- package/dist/models/GetContent.d.ts +1 -1
- package/dist/models/GetContentGradeDetail.d.ts +3 -3
- package/dist/models/GetContentGradesItemsInner.d.ts +2 -2
- package/dist/models/GetContentInstructorBasicReportingContentInfo.d.ts +1 -1
- package/dist/models/GetContentSessionDetail.d.ts +2 -2
- package/dist/models/GetCourseEnrollment.d.ts +2 -2
- package/dist/models/GetCourseEnrollmentListItem.d.ts +2 -2
- package/dist/models/GetCourseExport.d.ts +2 -2
- package/dist/models/GetPermission.d.ts +50 -0
- package/dist/models/GetPermission.js +60 -0
- package/dist/models/GetPortal.d.ts +23 -4
- package/dist/models/GetPortal.js +15 -1
- package/dist/models/GetPortalUser.d.ts +2 -11
- package/dist/models/GetPortalUser.js +0 -9
- package/dist/models/GetQuestion.d.ts +2 -2
- package/dist/models/GetQuestionListFilters.d.ts +2 -2
- package/dist/models/GetQuiz.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsBasicInfo.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +1 -1
- package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +2 -2
- package/dist/models/GetQuizAttemptAttempt.d.ts +1 -1
- package/dist/models/GetQuizAttemptListAllOfAttempts.d.ts +1 -1
- package/dist/models/GetQuizAttemptListAllOfFilters.d.ts +1 -1
- package/dist/models/GetQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/models/GetQuizCriteriaItem.d.ts +2 -2
- package/dist/models/GetQuizCriteriaListItemsInner.d.ts +2 -2
- package/dist/models/GetQuizListAllOfFilters.d.ts +1 -1
- package/dist/models/GetQuizListAllOfQuizzes.d.ts +1 -1
- package/dist/models/GetQuizQuestions.d.ts +1 -1
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +2 -2
- package/dist/models/GetQuizResults.d.ts +1 -1
- package/dist/models/GetQuizResultsFeedbackDifficultyPerformanceInner.d.ts +1 -1
- package/dist/models/GetQuizResultsQuestionsInner.d.ts +1 -1
- package/dist/models/GetRole.d.ts +88 -0
- package/dist/models/GetRole.js +88 -0
- package/dist/models/GetScormApiLogItem.d.ts +1 -1
- package/dist/models/GetUserQuizAttemptsAllOfAttempts.d.ts +1 -1
- package/dist/models/GetUserQuizAttemptsAllOfFilters.d.ts +1 -1
- package/dist/models/GetUserRole.d.ts +63 -0
- package/dist/models/GetUserRole.js +75 -0
- package/dist/models/ManualSelection.d.ts +1 -1
- package/dist/models/MultipleAnswer.d.ts +1 -1
- package/dist/models/MultipleAnswer1.d.ts +1 -1
- package/dist/models/NoAnswer.d.ts +1 -1
- package/dist/models/PostContentUpload.d.ts +1 -1
- package/dist/models/PostCourseExport.d.ts +1 -1
- package/dist/models/PostPortalInvite.d.ts +6 -2
- package/dist/models/PostPortalInvite.js +5 -1
- package/dist/models/PostQuestion.d.ts +2 -2
- package/dist/models/PostQuiz.d.ts +1 -1
- package/dist/models/PostQuizAttemptAttempt.d.ts +1 -1
- package/dist/models/PostQuizAttemptQuestionsInner.d.ts +1 -1
- package/dist/models/PostQuizAttemptSubmit.d.ts +1 -1
- package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +2 -2
- package/dist/models/PostRole.d.ts +57 -0
- package/dist/models/PostRole.js +69 -0
- package/dist/models/PutCourseEnrollment.d.ts +2 -2
- package/dist/models/PutQuestion.d.ts +2 -2
- package/dist/models/PutQuiz.d.ts +1 -1
- package/dist/models/PutRole.d.ts +38 -0
- package/dist/models/PutRole.js +52 -0
- package/dist/models/PutRolePermissions.d.ts +32 -0
- package/dist/models/PutRolePermissions.js +50 -0
- package/dist/models/QuizContent.d.ts +1 -1
- package/dist/models/SingleAnswer.d.ts +1 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/runtime.js +15 -0
- package/docs/GetPermission.md +41 -0
- package/docs/GetPortal.md +2 -0
- package/docs/GetRole.md +49 -0
- package/docs/GetUserRole.md +41 -0
- package/docs/PortalApi.md +3 -6
- package/docs/PostRole.md +39 -0
- package/docs/PutRole.md +37 -0
- package/docs/PutRolePermissions.md +35 -0
- package/docs/RoleApi.md +685 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +279 -102
- package/src/apis/CourseApi.ts +145 -49
- package/src/apis/ModuleApi.ts +48 -16
- package/src/apis/OtherApi.ts +12 -4
- package/src/apis/PortalApi.ts +85 -34
- package/src/apis/QuestionApi.ts +60 -20
- package/src/apis/QuizApi.ts +300 -100
- package/src/apis/ReportingApi.ts +108 -36
- package/src/apis/RoleApi.ts +576 -0
- package/src/apis/UserApi.ts +84 -28
- package/src/apis/index.ts +1 -0
- package/src/models/CriteriaBasedSelection.ts +1 -1
- package/src/models/CriteriaBasedSelectionCriteria.ts +2 -2
- package/src/models/FillInBlank.ts +1 -1
- package/src/models/FillInBlank1.ts +1 -1
- package/src/models/GetContent.ts +1 -1
- package/src/models/GetContentGradeDetail.ts +3 -3
- package/src/models/GetContentGradesItemsInner.ts +2 -2
- package/src/models/GetContentInstructorBasicReportingContentInfo.ts +1 -1
- package/src/models/GetContentSessionDetail.ts +2 -2
- package/src/models/GetCourseEnrollment.ts +2 -2
- package/src/models/GetCourseEnrollmentListItem.ts +2 -2
- package/src/models/GetCourseExport.ts +2 -2
- package/src/models/GetPermission.ts +92 -0
- package/src/models/GetPortal.ts +26 -4
- package/src/models/GetPortalUser.ts +2 -14
- package/src/models/GetQuestion.ts +2 -2
- package/src/models/GetQuestionListFilters.ts +2 -2
- package/src/models/GetQuiz.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsBasicInfo.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.ts +1 -1
- package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +2 -2
- package/src/models/GetQuizAttemptAttempt.ts +1 -1
- package/src/models/GetQuizAttemptListAllOfAttempts.ts +1 -1
- package/src/models/GetQuizAttemptListAllOfFilters.ts +1 -1
- package/src/models/GetQuizAttemptQuestionsInner.ts +1 -1
- package/src/models/GetQuizCriteriaItem.ts +2 -2
- package/src/models/GetQuizCriteriaListItemsInner.ts +2 -2
- package/src/models/GetQuizListAllOfFilters.ts +1 -1
- package/src/models/GetQuizListAllOfQuizzes.ts +1 -1
- package/src/models/GetQuizQuestions.ts +1 -1
- package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +2 -2
- package/src/models/GetQuizResults.ts +1 -1
- package/src/models/GetQuizResultsFeedbackDifficultyPerformanceInner.ts +1 -1
- package/src/models/GetQuizResultsQuestionsInner.ts +1 -1
- package/src/models/GetRole.ts +151 -0
- package/src/models/GetScormApiLogItem.ts +1 -1
- package/src/models/GetUserQuizAttemptsAllOfAttempts.ts +1 -1
- package/src/models/GetUserQuizAttemptsAllOfFilters.ts +1 -1
- package/src/models/GetUserRole.ts +109 -0
- package/src/models/ManualSelection.ts +1 -1
- package/src/models/MultipleAnswer.ts +1 -1
- package/src/models/MultipleAnswer1.ts +1 -1
- package/src/models/NoAnswer.ts +1 -1
- package/src/models/PostContentUpload.ts +1 -1
- package/src/models/PostCourseExport.ts +1 -1
- package/src/models/PostPortalInvite.ts +7 -3
- package/src/models/PostQuestion.ts +2 -2
- package/src/models/PostQuiz.ts +1 -1
- package/src/models/PostQuizAttemptAttempt.ts +1 -1
- package/src/models/PostQuizAttemptQuestionsInner.ts +1 -1
- package/src/models/PostQuizAttemptSubmit.ts +1 -1
- package/src/models/PostQuizCriteriaCriteriaInner.ts +2 -2
- package/src/models/PostRole.ts +99 -0
- package/src/models/PutCourseEnrollment.ts +2 -2
- package/src/models/PutQuestion.ts +2 -2
- package/src/models/PutQuiz.ts +1 -1
- package/src/models/PutRole.ts +74 -0
- package/src/models/PutRolePermissions.ts +66 -0
- package/src/models/QuizContent.ts +1 -1
- package/src/models/SingleAnswer.ts +1 -1
- package/src/models/index.ts +6 -0
- package/src/runtime.ts +18 -0
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Request body for creating a new custom role
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostRole
|
|
20
|
+
*/
|
|
21
|
+
export interface PostRole {
|
|
22
|
+
/**
|
|
23
|
+
* Display name for the role
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostRole
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Optional description
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostRole
|
|
32
|
+
*/
|
|
33
|
+
description?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* The base role type to derive from (determines default permissions)
|
|
36
|
+
* @type {PostRoleBaseTypeEnum}
|
|
37
|
+
* @memberof PostRole
|
|
38
|
+
*/
|
|
39
|
+
baseType: PostRoleBaseTypeEnum;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const PostRoleBaseTypeEnum = {
|
|
47
|
+
Owner: 'Owner',
|
|
48
|
+
Admin: 'Admin',
|
|
49
|
+
Instructor: 'Instructor',
|
|
50
|
+
Learner: 'Learner',
|
|
51
|
+
ClientSuperAdmin: 'ClientSuperAdmin',
|
|
52
|
+
ClientManager: 'ClientManager',
|
|
53
|
+
PortalClientAdministrator: 'PortalClientAdministrator'
|
|
54
|
+
} as const;
|
|
55
|
+
export type PostRoleBaseTypeEnum = typeof PostRoleBaseTypeEnum[keyof typeof PostRoleBaseTypeEnum];
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the PostRole interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfPostRole(value: object): value is PostRole {
|
|
62
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
63
|
+
if (!('baseType' in value) || value['baseType'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PostRoleFromJSON(json: any): PostRole {
|
|
68
|
+
return PostRoleFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function PostRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostRole {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'name': json['name'],
|
|
78
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
79
|
+
'baseType': json['base_type'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PostRoleToJSON(json: any): PostRole {
|
|
84
|
+
return PostRoleToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function PostRoleToJSONTyped(value?: PostRole | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'name': value['name'],
|
|
95
|
+
'description': value['description'],
|
|
96
|
+
'base_type': value['baseType'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -21,13 +21,13 @@ import { mapValues } from '../runtime';
|
|
|
21
21
|
export interface PutCourseEnrollment {
|
|
22
22
|
/**
|
|
23
23
|
* Current status of the enrollment
|
|
24
|
-
* @type {
|
|
24
|
+
* @type {PutCourseEnrollmentStatusEnum}
|
|
25
25
|
* @memberof PutCourseEnrollment
|
|
26
26
|
*/
|
|
27
27
|
status?: PutCourseEnrollmentStatusEnum;
|
|
28
28
|
/**
|
|
29
29
|
* The role/type of the user in this enrollment
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {PutCourseEnrollmentUserTypeEnum}
|
|
31
31
|
* @memberof PutCourseEnrollment
|
|
32
32
|
*/
|
|
33
33
|
userType?: PutCourseEnrollmentUserTypeEnum;
|
|
@@ -35,7 +35,7 @@ export interface PutQuestion {
|
|
|
35
35
|
questionText?: string;
|
|
36
36
|
/**
|
|
37
37
|
* Type of question: single answer (True/False, multiple choice), multiple answer, or fill in the blank
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {PutQuestionQuestionTypeEnum}
|
|
39
39
|
* @memberof PutQuestion
|
|
40
40
|
*/
|
|
41
41
|
questionType?: PutQuestionQuestionTypeEnum;
|
|
@@ -71,7 +71,7 @@ export interface PutQuestion {
|
|
|
71
71
|
course?: string;
|
|
72
72
|
/**
|
|
73
73
|
* Difficulty level of the question
|
|
74
|
-
* @type {
|
|
74
|
+
* @type {PutQuestionDifficultyLevelEnum}
|
|
75
75
|
* @memberof PutQuestion
|
|
76
76
|
*/
|
|
77
77
|
difficultyLevel?: PutQuestionDifficultyLevelEnum;
|
package/src/models/PutQuiz.ts
CHANGED
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Request body for updating a custom role
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutRole
|
|
20
|
+
*/
|
|
21
|
+
export interface PutRole {
|
|
22
|
+
/**
|
|
23
|
+
* Updated display name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PutRole
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Updated description
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PutRole
|
|
32
|
+
*/
|
|
33
|
+
description?: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PutRole interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPutRole(value: object): value is PutRole {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PutRoleFromJSON(json: any): PutRole {
|
|
45
|
+
return PutRoleFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function PutRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutRole {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PutRoleToJSON(json: any): PutRole {
|
|
60
|
+
return PutRoleToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PutRoleToJSONTyped(value?: PutRole | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'name': value['name'],
|
|
71
|
+
'description': value['description'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Request body for replacing all permissions on a role
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutRolePermissions
|
|
20
|
+
*/
|
|
21
|
+
export interface PutRolePermissions {
|
|
22
|
+
/**
|
|
23
|
+
* List of permission keys to assign (e.g. ["course:create", "module:update"])
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof PutRolePermissions
|
|
26
|
+
*/
|
|
27
|
+
permissionKeys: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutRolePermissions interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPutRolePermissions(value: object): value is PutRolePermissions {
|
|
34
|
+
if (!('permissionKeys' in value) || value['permissionKeys'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PutRolePermissionsFromJSON(json: any): PutRolePermissions {
|
|
39
|
+
return PutRolePermissionsFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PutRolePermissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutRolePermissions {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'permissionKeys': json['permission_keys'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PutRolePermissionsToJSON(json: any): PutRolePermissions {
|
|
53
|
+
return PutRolePermissionsToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PutRolePermissionsToJSONTyped(value?: PutRolePermissions | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'permission_keys': value['permissionKeys'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './GetModuleList';
|
|
|
52
52
|
export * from './GetModuleStudentReporting';
|
|
53
53
|
export * from './GetModuleStudentReportingAccess';
|
|
54
54
|
export * from './GetModuleStudentReportingProgress';
|
|
55
|
+
export * from './GetPermission';
|
|
55
56
|
export * from './GetPortal';
|
|
56
57
|
export * from './GetPortalBasicReporting';
|
|
57
58
|
export * from './GetPortalBasicReportingCertificates';
|
|
@@ -111,6 +112,7 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
|
111
112
|
export * from './GetQuizResultsScore';
|
|
112
113
|
export * from './GetQuizResultsTiming';
|
|
113
114
|
export * from './GetQuizStatistics';
|
|
115
|
+
export * from './GetRole';
|
|
114
116
|
export * from './GetScormApiLogItem';
|
|
115
117
|
export * from './GetScormApiLogs';
|
|
116
118
|
export * from './GetScormPackage';
|
|
@@ -122,6 +124,7 @@ export * from './GetUserQuizAttempts';
|
|
|
122
124
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
123
125
|
export * from './GetUserQuizAttemptsAllOfFilters';
|
|
124
126
|
export * from './GetUserQuizAttemptsAllOfSummary';
|
|
127
|
+
export * from './GetUserRole';
|
|
125
128
|
export * from './LoginRes';
|
|
126
129
|
export * from './LoginResAuthData';
|
|
127
130
|
export * from './LoginResUserData';
|
|
@@ -163,6 +166,7 @@ export * from './PostQuizQuestions';
|
|
|
163
166
|
export * from './PostQuizQuestionsQuestionsInner';
|
|
164
167
|
export * from './PostQuizSettings';
|
|
165
168
|
export * from './PostResetPassword';
|
|
169
|
+
export * from './PostRole';
|
|
166
170
|
export * from './PostSendResetPassword';
|
|
167
171
|
export * from './PostVerifyManifest';
|
|
168
172
|
export * from './PostVerifyManifestItemsInner';
|
|
@@ -179,6 +183,8 @@ export * from './PutQuiz';
|
|
|
179
183
|
export * from './PutQuizAnswer';
|
|
180
184
|
export * from './PutQuizAnswerAnswer';
|
|
181
185
|
export * from './PutQuizSettings';
|
|
186
|
+
export * from './PutRole';
|
|
187
|
+
export * from './PutRolePermissions';
|
|
182
188
|
export * from './PutUser';
|
|
183
189
|
export * from './QuizContent';
|
|
184
190
|
export * from './QuizContentAssignment';
|
package/src/runtime.ts
CHANGED
|
@@ -261,6 +261,12 @@ export class ResponseError extends Error {
|
|
|
261
261
|
override name: "ResponseError" = "ResponseError";
|
|
262
262
|
constructor(public response: Response, msg?: string) {
|
|
263
263
|
super(msg);
|
|
264
|
+
|
|
265
|
+
// restore prototype chain
|
|
266
|
+
const actualProto = new.target.prototype;
|
|
267
|
+
if (Object.setPrototypeOf) {
|
|
268
|
+
Object.setPrototypeOf(this, actualProto);
|
|
269
|
+
}
|
|
264
270
|
}
|
|
265
271
|
}
|
|
266
272
|
|
|
@@ -268,6 +274,12 @@ export class FetchError extends Error {
|
|
|
268
274
|
override name: "FetchError" = "FetchError";
|
|
269
275
|
constructor(public cause: Error, msg?: string) {
|
|
270
276
|
super(msg);
|
|
277
|
+
|
|
278
|
+
// restore prototype chain
|
|
279
|
+
const actualProto = new.target.prototype;
|
|
280
|
+
if (Object.setPrototypeOf) {
|
|
281
|
+
Object.setPrototypeOf(this, actualProto);
|
|
282
|
+
}
|
|
271
283
|
}
|
|
272
284
|
}
|
|
273
285
|
|
|
@@ -275,6 +287,12 @@ export class RequiredError extends Error {
|
|
|
275
287
|
override name: "RequiredError" = "RequiredError";
|
|
276
288
|
constructor(public field: string, msg?: string) {
|
|
277
289
|
super(msg);
|
|
290
|
+
|
|
291
|
+
// restore prototype chain
|
|
292
|
+
const actualProto = new.target.prototype;
|
|
293
|
+
if (Object.setPrototypeOf) {
|
|
294
|
+
Object.setPrototypeOf(this, actualProto);
|
|
295
|
+
}
|
|
278
296
|
}
|
|
279
297
|
}
|
|
280
298
|
|