@easyedu/js-lsm-api 1.32.0 → 1.34.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 +9 -20
- package/dist/esm/models/GetPortal.js +8 -14
- 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 +9 -20
- package/dist/models/GetPortal.js +9 -15
- 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 -4
- 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 +12 -26
- 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,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetPermission } from './GetPermission';
|
|
13
|
+
/**
|
|
14
|
+
* A role with its assigned permissions
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetRole
|
|
17
|
+
*/
|
|
18
|
+
export interface GetRole {
|
|
19
|
+
/**
|
|
20
|
+
* External UUID of the role
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetRole
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Display name of the role
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetRole
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Optional description of the role
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetRole
|
|
35
|
+
*/
|
|
36
|
+
description?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* The base role type this role derives from
|
|
39
|
+
* @type {GetRoleBaseTypeEnum}
|
|
40
|
+
* @memberof GetRole
|
|
41
|
+
*/
|
|
42
|
+
baseType: GetRoleBaseTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Portal this role is scoped to (null for system roles)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetRole
|
|
47
|
+
*/
|
|
48
|
+
portalId?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Whether this is a built-in system role (cannot be modified)
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof GetRole
|
|
53
|
+
*/
|
|
54
|
+
isSystem: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether this role is active
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof GetRole
|
|
59
|
+
*/
|
|
60
|
+
isActive: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<GetPermission>}
|
|
64
|
+
* @memberof GetRole
|
|
65
|
+
*/
|
|
66
|
+
permissions: Array<GetPermission>;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const GetRoleBaseTypeEnum: {
|
|
72
|
+
readonly Owner: "Owner";
|
|
73
|
+
readonly Admin: "Admin";
|
|
74
|
+
readonly Instructor: "Instructor";
|
|
75
|
+
readonly Learner: "Learner";
|
|
76
|
+
readonly ClientSuperAdmin: "ClientSuperAdmin";
|
|
77
|
+
readonly ClientManager: "ClientManager";
|
|
78
|
+
readonly PortalClientAdministrator: "PortalClientAdministrator";
|
|
79
|
+
};
|
|
80
|
+
export type GetRoleBaseTypeEnum = typeof GetRoleBaseTypeEnum[keyof typeof GetRoleBaseTypeEnum];
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the GetRole interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfGetRole(value: object): value is GetRole;
|
|
85
|
+
export declare function GetRoleFromJSON(json: any): GetRole;
|
|
86
|
+
export declare function GetRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRole;
|
|
87
|
+
export declare function GetRoleToJSON(json: any): GetRole;
|
|
88
|
+
export declare function GetRoleToJSONTyped(value?: GetRole | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetRoleBaseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfGetRole = instanceOfGetRole;
|
|
18
|
+
exports.GetRoleFromJSON = GetRoleFromJSON;
|
|
19
|
+
exports.GetRoleFromJSONTyped = GetRoleFromJSONTyped;
|
|
20
|
+
exports.GetRoleToJSON = GetRoleToJSON;
|
|
21
|
+
exports.GetRoleToJSONTyped = GetRoleToJSONTyped;
|
|
22
|
+
const GetPermission_1 = require("./GetPermission");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GetRoleBaseTypeEnum = {
|
|
27
|
+
Owner: 'Owner',
|
|
28
|
+
Admin: 'Admin',
|
|
29
|
+
Instructor: 'Instructor',
|
|
30
|
+
Learner: 'Learner',
|
|
31
|
+
ClientSuperAdmin: 'ClientSuperAdmin',
|
|
32
|
+
ClientManager: 'ClientManager',
|
|
33
|
+
PortalClientAdministrator: 'PortalClientAdministrator'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the GetRole interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfGetRole(value) {
|
|
39
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('baseType' in value) || value['baseType'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('isSystem' in value) || value['isSystem'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
function GetRoleFromJSON(json) {
|
|
54
|
+
return GetRoleFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': json['id'],
|
|
62
|
+
'name': json['name'],
|
|
63
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
64
|
+
'baseType': json['base_type'],
|
|
65
|
+
'portalId': json['portal_id'] == null ? undefined : json['portal_id'],
|
|
66
|
+
'isSystem': json['is_system'],
|
|
67
|
+
'isActive': json['is_active'],
|
|
68
|
+
'permissions': (json['permissions'].map(GetPermission_1.GetPermissionFromJSON)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function GetRoleToJSON(json) {
|
|
72
|
+
return GetRoleToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function GetRoleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'description': value['description'],
|
|
82
|
+
'base_type': value['baseType'],
|
|
83
|
+
'portal_id': value['portalId'],
|
|
84
|
+
'is_system': value['isSystem'],
|
|
85
|
+
'is_active': value['isActive'],
|
|
86
|
+
'permissions': (value['permissions'].map(GetPermission_1.GetPermissionToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -65,7 +65,7 @@ export interface GetUserQuizAttemptsAllOfAttempts {
|
|
|
65
65
|
attemptNumber: number;
|
|
66
66
|
/**
|
|
67
67
|
* Attempt status
|
|
68
|
-
* @type {
|
|
68
|
+
* @type {GetUserQuizAttemptsAllOfAttemptsStatusEnum}
|
|
69
69
|
* @memberof GetUserQuizAttemptsAllOfAttempts
|
|
70
70
|
*/
|
|
71
71
|
status: GetUserQuizAttemptsAllOfAttemptsStatusEnum;
|
|
@@ -36,7 +36,7 @@ export interface GetUserQuizAttemptsAllOfFilters {
|
|
|
36
36
|
quizId?: string;
|
|
37
37
|
/**
|
|
38
38
|
* Filter by attempt status
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {GetUserQuizAttemptsAllOfFiltersStatusEnum}
|
|
40
40
|
* @memberof GetUserQuizAttemptsAllOfFilters
|
|
41
41
|
*/
|
|
42
42
|
status?: GetUserQuizAttemptsAllOfFiltersStatusEnum;
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
* A role assigned to a user in a portal
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetUserRole
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUserRole {
|
|
18
|
+
/**
|
|
19
|
+
* External UUID of the role
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetUserRole
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Role name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetUserRole
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Base role type
|
|
32
|
+
* @type {GetUserRoleBaseTypeEnum}
|
|
33
|
+
* @memberof GetUserRole
|
|
34
|
+
*/
|
|
35
|
+
baseType: GetUserRoleBaseTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this is a system role
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof GetUserRole
|
|
40
|
+
*/
|
|
41
|
+
isSystem: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const GetUserRoleBaseTypeEnum: {
|
|
47
|
+
readonly Owner: "Owner";
|
|
48
|
+
readonly Admin: "Admin";
|
|
49
|
+
readonly Instructor: "Instructor";
|
|
50
|
+
readonly Learner: "Learner";
|
|
51
|
+
readonly ClientSuperAdmin: "ClientSuperAdmin";
|
|
52
|
+
readonly ClientManager: "ClientManager";
|
|
53
|
+
readonly PortalClientAdministrator: "PortalClientAdministrator";
|
|
54
|
+
};
|
|
55
|
+
export type GetUserRoleBaseTypeEnum = typeof GetUserRoleBaseTypeEnum[keyof typeof GetUserRoleBaseTypeEnum];
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the GetUserRole interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfGetUserRole(value: object): value is GetUserRole;
|
|
60
|
+
export declare function GetUserRoleFromJSON(json: any): GetUserRole;
|
|
61
|
+
export declare function GetUserRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserRole;
|
|
62
|
+
export declare function GetUserRoleToJSON(json: any): GetUserRole;
|
|
63
|
+
export declare function GetUserRoleToJSONTyped(value?: GetUserRole | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetUserRoleBaseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfGetUserRole = instanceOfGetUserRole;
|
|
18
|
+
exports.GetUserRoleFromJSON = GetUserRoleFromJSON;
|
|
19
|
+
exports.GetUserRoleFromJSONTyped = GetUserRoleFromJSONTyped;
|
|
20
|
+
exports.GetUserRoleToJSON = GetUserRoleToJSON;
|
|
21
|
+
exports.GetUserRoleToJSONTyped = GetUserRoleToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetUserRoleBaseTypeEnum = {
|
|
26
|
+
Owner: 'Owner',
|
|
27
|
+
Admin: 'Admin',
|
|
28
|
+
Instructor: 'Instructor',
|
|
29
|
+
Learner: 'Learner',
|
|
30
|
+
ClientSuperAdmin: 'ClientSuperAdmin',
|
|
31
|
+
ClientManager: 'ClientManager',
|
|
32
|
+
PortalClientAdministrator: 'PortalClientAdministrator'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the GetUserRole interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfGetUserRole(value) {
|
|
38
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('baseType' in value) || value['baseType'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('isSystem' in value) || value['isSystem'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function GetUserRoleFromJSON(json) {
|
|
49
|
+
return GetUserRoleFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function GetUserRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': json['id'],
|
|
57
|
+
'name': json['name'],
|
|
58
|
+
'baseType': json['base_type'],
|
|
59
|
+
'isSystem': json['is_system'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function GetUserRoleToJSON(json) {
|
|
63
|
+
return GetUserRoleToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function GetUserRoleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'base_type': value['baseType'],
|
|
73
|
+
'is_system': value['isSystem'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -34,8 +34,8 @@ export interface PostPortalInvite {
|
|
|
34
34
|
*/
|
|
35
35
|
lastName: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {
|
|
37
|
+
* Role name to assign to the invited user
|
|
38
|
+
* @type {PostPortalInviteUserTypeEnum}
|
|
39
39
|
* @memberof PostPortalInvite
|
|
40
40
|
*/
|
|
41
41
|
userType: PostPortalInviteUserTypeEnum;
|
|
@@ -44,9 +44,13 @@ export interface PostPortalInvite {
|
|
|
44
44
|
* @export
|
|
45
45
|
*/
|
|
46
46
|
export declare const PostPortalInviteUserTypeEnum: {
|
|
47
|
+
readonly Owner: "Owner";
|
|
47
48
|
readonly Admin: "Admin";
|
|
48
49
|
readonly Instructor: "Instructor";
|
|
49
50
|
readonly Learner: "Learner";
|
|
51
|
+
readonly ClientSuperAdmin: "ClientSuperAdmin";
|
|
52
|
+
readonly ClientManager: "ClientManager";
|
|
53
|
+
readonly PortalClientAdministrator: "PortalClientAdministrator";
|
|
50
54
|
};
|
|
51
55
|
export type PostPortalInviteUserTypeEnum = typeof PostPortalInviteUserTypeEnum[keyof typeof PostPortalInviteUserTypeEnum];
|
|
52
56
|
/**
|
|
@@ -23,9 +23,13 @@ exports.PostPortalInviteToJSONTyped = PostPortalInviteToJSONTyped;
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.PostPortalInviteUserTypeEnum = {
|
|
26
|
+
Owner: 'Owner',
|
|
26
27
|
Admin: 'Admin',
|
|
27
28
|
Instructor: 'Instructor',
|
|
28
|
-
Learner: 'Learner'
|
|
29
|
+
Learner: 'Learner',
|
|
30
|
+
ClientSuperAdmin: 'ClientSuperAdmin',
|
|
31
|
+
ClientManager: 'ClientManager',
|
|
32
|
+
PortalClientAdministrator: 'PortalClientAdministrator'
|
|
29
33
|
};
|
|
30
34
|
/**
|
|
31
35
|
* Check if a given object implements the PostPortalInvite interface.
|
|
@@ -24,7 +24,7 @@ export interface PostQuestion {
|
|
|
24
24
|
questionText: string;
|
|
25
25
|
/**
|
|
26
26
|
* Type of question: single answer (True/False, multiple choice), multiple answer, or fill in the blank
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {PostQuestionQuestionTypeEnum}
|
|
28
28
|
* @memberof PostQuestion
|
|
29
29
|
*/
|
|
30
30
|
questionType: PostQuestionQuestionTypeEnum;
|
|
@@ -60,7 +60,7 @@ export interface PostQuestion {
|
|
|
60
60
|
course?: string;
|
|
61
61
|
/**
|
|
62
62
|
* Difficulty level of the question
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {PostQuestionDifficultyLevelEnum}
|
|
64
64
|
* @memberof PostQuestion
|
|
65
65
|
*/
|
|
66
66
|
difficultyLevel: PostQuestionDifficultyLevelEnum;
|
|
@@ -24,7 +24,7 @@ export interface PostQuiz {
|
|
|
24
24
|
contentId: string;
|
|
25
25
|
/**
|
|
26
26
|
* How questions are selected for this quiz
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {PostQuizQuestionSelectionMethodEnum}
|
|
28
28
|
* @memberof PostQuiz
|
|
29
29
|
*/
|
|
30
30
|
questionSelectionMethod: PostQuizQuestionSelectionMethodEnum;
|
|
@@ -48,7 +48,7 @@ export interface PostQuizAttemptQuestionsInner {
|
|
|
48
48
|
questionText: string;
|
|
49
49
|
/**
|
|
50
50
|
* Question type
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {PostQuizAttemptQuestionsInnerQuestionTypeEnum}
|
|
52
52
|
* @memberof PostQuizAttemptQuestionsInner
|
|
53
53
|
*/
|
|
54
54
|
questionType: PostQuizAttemptQuestionsInnerQuestionTypeEnum;
|
|
@@ -18,7 +18,7 @@ import type { PostQuizAttemptSubmitFinalAnswersInner } from './PostQuizAttemptSu
|
|
|
18
18
|
export interface PostQuizAttemptSubmit {
|
|
19
19
|
/**
|
|
20
20
|
* How the quiz was submitted
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {PostQuizAttemptSubmitSubmissionTypeEnum}
|
|
22
22
|
* @memberof PostQuizAttemptSubmit
|
|
23
23
|
*/
|
|
24
24
|
submissionType: PostQuizAttemptSubmitSubmissionTypeEnum;
|
|
@@ -23,13 +23,13 @@ export interface PostQuizCriteriaCriteriaInner {
|
|
|
23
23
|
topic?: string;
|
|
24
24
|
/**
|
|
25
25
|
* Filter by difficulty level (null for any difficulty)
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {PostQuizCriteriaCriteriaInnerDifficultyLevelEnum}
|
|
27
27
|
* @memberof PostQuizCriteriaCriteriaInner
|
|
28
28
|
*/
|
|
29
29
|
difficultyLevel?: PostQuizCriteriaCriteriaInnerDifficultyLevelEnum;
|
|
30
30
|
/**
|
|
31
31
|
* Filter by question type (null for any type)
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {PostQuizCriteriaCriteriaInnerQuestionTypeEnum}
|
|
33
33
|
* @memberof PostQuizCriteriaCriteriaInner
|
|
34
34
|
*/
|
|
35
35
|
questionType?: PostQuizCriteriaCriteriaInnerQuestionTypeEnum;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
* Request body for creating a new custom role
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostRole
|
|
16
|
+
*/
|
|
17
|
+
export interface PostRole {
|
|
18
|
+
/**
|
|
19
|
+
* Display name for the role
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostRole
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Optional description
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostRole
|
|
28
|
+
*/
|
|
29
|
+
description?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The base role type to derive from (determines default permissions)
|
|
32
|
+
* @type {PostRoleBaseTypeEnum}
|
|
33
|
+
* @memberof PostRole
|
|
34
|
+
*/
|
|
35
|
+
baseType: PostRoleBaseTypeEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const PostRoleBaseTypeEnum: {
|
|
41
|
+
readonly Owner: "Owner";
|
|
42
|
+
readonly Admin: "Admin";
|
|
43
|
+
readonly Instructor: "Instructor";
|
|
44
|
+
readonly Learner: "Learner";
|
|
45
|
+
readonly ClientSuperAdmin: "ClientSuperAdmin";
|
|
46
|
+
readonly ClientManager: "ClientManager";
|
|
47
|
+
readonly PortalClientAdministrator: "PortalClientAdministrator";
|
|
48
|
+
};
|
|
49
|
+
export type PostRoleBaseTypeEnum = typeof PostRoleBaseTypeEnum[keyof typeof PostRoleBaseTypeEnum];
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PostRole interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfPostRole(value: object): value is PostRole;
|
|
54
|
+
export declare function PostRoleFromJSON(json: any): PostRole;
|
|
55
|
+
export declare function PostRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostRole;
|
|
56
|
+
export declare function PostRoleToJSON(json: any): PostRole;
|
|
57
|
+
export declare function PostRoleToJSONTyped(value?: PostRole | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PostRoleBaseTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfPostRole = instanceOfPostRole;
|
|
18
|
+
exports.PostRoleFromJSON = PostRoleFromJSON;
|
|
19
|
+
exports.PostRoleFromJSONTyped = PostRoleFromJSONTyped;
|
|
20
|
+
exports.PostRoleToJSON = PostRoleToJSON;
|
|
21
|
+
exports.PostRoleToJSONTyped = PostRoleToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PostRoleBaseTypeEnum = {
|
|
26
|
+
Owner: 'Owner',
|
|
27
|
+
Admin: 'Admin',
|
|
28
|
+
Instructor: 'Instructor',
|
|
29
|
+
Learner: 'Learner',
|
|
30
|
+
ClientSuperAdmin: 'ClientSuperAdmin',
|
|
31
|
+
ClientManager: 'ClientManager',
|
|
32
|
+
PortalClientAdministrator: 'PortalClientAdministrator'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the PostRole interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfPostRole(value) {
|
|
38
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('baseType' in value) || value['baseType'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function PostRoleFromJSON(json) {
|
|
45
|
+
return PostRoleFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PostRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
54
|
+
'baseType': json['base_type'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function PostRoleToJSON(json) {
|
|
58
|
+
return PostRoleToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function PostRoleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'name': value['name'],
|
|
66
|
+
'description': value['description'],
|
|
67
|
+
'base_type': value['baseType'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
export interface PutCourseEnrollment {
|
|
18
18
|
/**
|
|
19
19
|
* Current status of the enrollment
|
|
20
|
-
* @type {
|
|
20
|
+
* @type {PutCourseEnrollmentStatusEnum}
|
|
21
21
|
* @memberof PutCourseEnrollment
|
|
22
22
|
*/
|
|
23
23
|
status?: PutCourseEnrollmentStatusEnum;
|
|
24
24
|
/**
|
|
25
25
|
* The role/type of the user in this enrollment
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {PutCourseEnrollmentUserTypeEnum}
|
|
27
27
|
* @memberof PutCourseEnrollment
|
|
28
28
|
*/
|
|
29
29
|
userType?: PutCourseEnrollmentUserTypeEnum;
|