@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
package/dist/esm/apis/UserApi.js
CHANGED
|
@@ -27,19 +27,28 @@ import { GetUserFromJSON, LoginResFromJSON, PostLoginToJSON, PostResetPasswordTo
|
|
|
27
27
|
*/
|
|
28
28
|
export class UserApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Creates request options for getAuthCheck without sending the request
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
getAuthCheckRequestOpts() {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
const queryParameters = {};
|
|
35
35
|
const headerParameters = {};
|
|
36
36
|
let urlPath = `/auth/check`;
|
|
37
|
-
|
|
37
|
+
return {
|
|
38
38
|
path: urlPath,
|
|
39
39
|
method: 'GET',
|
|
40
40
|
headers: headerParameters,
|
|
41
41
|
query: queryParameters,
|
|
42
|
-
}
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a user is logged in
|
|
47
|
+
*/
|
|
48
|
+
getAuthCheckRaw(initOverrides) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const requestOptions = yield this.getAuthCheckRequestOpts();
|
|
51
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
43
52
|
return new runtime.VoidApiResponse(response);
|
|
44
53
|
});
|
|
45
54
|
}
|
|
@@ -52,9 +61,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
52
61
|
});
|
|
53
62
|
}
|
|
54
63
|
/**
|
|
55
|
-
*
|
|
64
|
+
* Creates request options for getUser without sending the request
|
|
56
65
|
*/
|
|
57
|
-
|
|
66
|
+
getUserRequestOpts(requestParameters) {
|
|
58
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
68
|
if (requestParameters['userId'] == null) {
|
|
60
69
|
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUser().');
|
|
@@ -63,12 +72,21 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
63
72
|
const headerParameters = {};
|
|
64
73
|
let urlPath = `/users/{userId}`;
|
|
65
74
|
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
66
|
-
|
|
75
|
+
return {
|
|
67
76
|
path: urlPath,
|
|
68
77
|
method: 'GET',
|
|
69
78
|
headers: headerParameters,
|
|
70
79
|
query: queryParameters,
|
|
71
|
-
}
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Get a user by id
|
|
85
|
+
*/
|
|
86
|
+
getUserRaw(requestParameters, initOverrides) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
const requestOptions = yield this.getUserRequestOpts(requestParameters);
|
|
89
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
72
90
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetUserFromJSON(jsonValue));
|
|
73
91
|
});
|
|
74
92
|
}
|
|
@@ -82,9 +100,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
82
100
|
});
|
|
83
101
|
}
|
|
84
102
|
/**
|
|
85
|
-
*
|
|
103
|
+
* Creates request options for postLogin without sending the request
|
|
86
104
|
*/
|
|
87
|
-
|
|
105
|
+
postLoginRequestOpts(requestParameters) {
|
|
88
106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
107
|
if (requestParameters['postLogin'] == null) {
|
|
90
108
|
throw new runtime.RequiredError('postLogin', 'Required parameter "postLogin" was null or undefined when calling postLogin().');
|
|
@@ -93,13 +111,22 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
93
111
|
const headerParameters = {};
|
|
94
112
|
headerParameters['Content-Type'] = 'application/json';
|
|
95
113
|
let urlPath = `/auth/login`;
|
|
96
|
-
|
|
114
|
+
return {
|
|
97
115
|
path: urlPath,
|
|
98
116
|
method: 'POST',
|
|
99
117
|
headers: headerParameters,
|
|
100
118
|
query: queryParameters,
|
|
101
119
|
body: PostLoginToJSON(requestParameters['postLogin']),
|
|
102
|
-
}
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Post a new login
|
|
125
|
+
*/
|
|
126
|
+
postLoginRaw(requestParameters, initOverrides) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
const requestOptions = yield this.postLoginRequestOpts(requestParameters);
|
|
129
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
103
130
|
return new runtime.JSONApiResponse(response, (jsonValue) => LoginResFromJSON(jsonValue));
|
|
104
131
|
});
|
|
105
132
|
}
|
|
@@ -113,19 +140,28 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
113
140
|
});
|
|
114
141
|
}
|
|
115
142
|
/**
|
|
116
|
-
*
|
|
143
|
+
* Creates request options for postLogout without sending the request
|
|
117
144
|
*/
|
|
118
|
-
|
|
145
|
+
postLogoutRequestOpts() {
|
|
119
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
147
|
const queryParameters = {};
|
|
121
148
|
const headerParameters = {};
|
|
122
149
|
let urlPath = `/auth/logout`;
|
|
123
|
-
|
|
150
|
+
return {
|
|
124
151
|
path: urlPath,
|
|
125
152
|
method: 'POST',
|
|
126
153
|
headers: headerParameters,
|
|
127
154
|
query: queryParameters,
|
|
128
|
-
}
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Logout a user
|
|
160
|
+
*/
|
|
161
|
+
postLogoutRaw(initOverrides) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
const requestOptions = yield this.postLogoutRequestOpts();
|
|
164
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
129
165
|
return new runtime.VoidApiResponse(response);
|
|
130
166
|
});
|
|
131
167
|
}
|
|
@@ -138,9 +174,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
138
174
|
});
|
|
139
175
|
}
|
|
140
176
|
/**
|
|
141
|
-
*
|
|
177
|
+
* Creates request options for putUser without sending the request
|
|
142
178
|
*/
|
|
143
|
-
|
|
179
|
+
putUserRequestOpts(requestParameters) {
|
|
144
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
181
|
if (requestParameters['userId'] == null) {
|
|
146
182
|
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling putUser().');
|
|
@@ -153,13 +189,22 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
153
189
|
headerParameters['Content-Type'] = 'application/json';
|
|
154
190
|
let urlPath = `/users/{userId}`;
|
|
155
191
|
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
156
|
-
|
|
192
|
+
return {
|
|
157
193
|
path: urlPath,
|
|
158
194
|
method: 'PUT',
|
|
159
195
|
headers: headerParameters,
|
|
160
196
|
query: queryParameters,
|
|
161
197
|
body: PutUserToJSON(requestParameters['putUser']),
|
|
162
|
-
}
|
|
198
|
+
};
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Update a user by id
|
|
203
|
+
*/
|
|
204
|
+
putUserRaw(requestParameters, initOverrides) {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
const requestOptions = yield this.putUserRequestOpts(requestParameters);
|
|
207
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
163
208
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetUserFromJSON(jsonValue));
|
|
164
209
|
});
|
|
165
210
|
}
|
|
@@ -173,9 +218,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
173
218
|
});
|
|
174
219
|
}
|
|
175
220
|
/**
|
|
176
|
-
*
|
|
221
|
+
* Creates request options for resetPassword without sending the request
|
|
177
222
|
*/
|
|
178
|
-
|
|
223
|
+
resetPasswordRequestOpts(requestParameters) {
|
|
179
224
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
225
|
if (requestParameters['postResetPassword'] == null) {
|
|
181
226
|
throw new runtime.RequiredError('postResetPassword', 'Required parameter "postResetPassword" was null or undefined when calling resetPassword().');
|
|
@@ -184,13 +229,22 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
184
229
|
const headerParameters = {};
|
|
185
230
|
headerParameters['Content-Type'] = 'application/json';
|
|
186
231
|
let urlPath = `/auth/reset-password`;
|
|
187
|
-
|
|
232
|
+
return {
|
|
188
233
|
path: urlPath,
|
|
189
234
|
method: 'POST',
|
|
190
235
|
headers: headerParameters,
|
|
191
236
|
query: queryParameters,
|
|
192
237
|
body: PostResetPasswordToJSON(requestParameters['postResetPassword']),
|
|
193
|
-
}
|
|
238
|
+
};
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Reset a users password
|
|
243
|
+
*/
|
|
244
|
+
resetPasswordRaw(requestParameters, initOverrides) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
const requestOptions = yield this.resetPasswordRequestOpts(requestParameters);
|
|
247
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
194
248
|
return new runtime.VoidApiResponse(response);
|
|
195
249
|
});
|
|
196
250
|
}
|
|
@@ -203,9 +257,9 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
203
257
|
});
|
|
204
258
|
}
|
|
205
259
|
/**
|
|
206
|
-
*
|
|
260
|
+
* Creates request options for sendResetPassword without sending the request
|
|
207
261
|
*/
|
|
208
|
-
|
|
262
|
+
sendResetPasswordRequestOpts(requestParameters) {
|
|
209
263
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
264
|
if (requestParameters['postSendResetPassword'] == null) {
|
|
211
265
|
throw new runtime.RequiredError('postSendResetPassword', 'Required parameter "postSendResetPassword" was null or undefined when calling sendResetPassword().');
|
|
@@ -214,13 +268,22 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
214
268
|
const headerParameters = {};
|
|
215
269
|
headerParameters['Content-Type'] = 'application/json';
|
|
216
270
|
let urlPath = `/auth/send-reset-password`;
|
|
217
|
-
|
|
271
|
+
return {
|
|
218
272
|
path: urlPath,
|
|
219
273
|
method: 'POST',
|
|
220
274
|
headers: headerParameters,
|
|
221
275
|
query: queryParameters,
|
|
222
276
|
body: PostSendResetPasswordToJSON(requestParameters['postSendResetPassword']),
|
|
223
|
-
}
|
|
277
|
+
};
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Send a reset password email
|
|
282
|
+
*/
|
|
283
|
+
sendResetPasswordRaw(requestParameters, initOverrides) {
|
|
284
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
285
|
+
const requestOptions = yield this.sendResetPasswordRequestOpts(requestParameters);
|
|
286
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
224
287
|
return new runtime.VoidApiResponse(response);
|
|
225
288
|
});
|
|
226
289
|
}
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import type { CriteriaBasedSelectionDistribution } from './CriteriaBasedSelectio
|
|
|
19
19
|
export interface CriteriaBasedSelection {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
|
-
* @type {
|
|
22
|
+
* @type {CriteriaBasedSelectionMethodEnum}
|
|
23
23
|
* @memberof CriteriaBasedSelection
|
|
24
24
|
*/
|
|
25
25
|
method: CriteriaBasedSelectionMethodEnum;
|
|
@@ -23,13 +23,13 @@ export interface CriteriaBasedSelectionCriteria {
|
|
|
23
23
|
topics?: Array<string>;
|
|
24
24
|
/**
|
|
25
25
|
* Difficulty levels to include
|
|
26
|
-
* @type {Array<
|
|
26
|
+
* @type {Array<CriteriaBasedSelectionCriteriaDifficultyLevelsEnum>}
|
|
27
27
|
* @memberof CriteriaBasedSelectionCriteria
|
|
28
28
|
*/
|
|
29
29
|
difficultyLevels?: Array<CriteriaBasedSelectionCriteriaDifficultyLevelsEnum>;
|
|
30
30
|
/**
|
|
31
31
|
* Question types to include
|
|
32
|
-
* @type {Array<
|
|
32
|
+
* @type {Array<CriteriaBasedSelectionCriteriaQuestionTypesEnum>}
|
|
33
33
|
* @memberof CriteriaBasedSelectionCriteria
|
|
34
34
|
*/
|
|
35
35
|
questionTypes?: Array<CriteriaBasedSelectionCriteriaQuestionTypesEnum>;
|
|
@@ -31,13 +31,13 @@ export interface GetContentGradeDetail {
|
|
|
31
31
|
user: GetContentGradesItemsInnerUser;
|
|
32
32
|
/**
|
|
33
33
|
* Content completion status
|
|
34
|
-
* @type {
|
|
34
|
+
* @type {GetContentGradeDetailCompletionEnum}
|
|
35
35
|
* @memberof GetContentGradeDetail
|
|
36
36
|
*/
|
|
37
37
|
completion: GetContentGradeDetailCompletionEnum;
|
|
38
38
|
/**
|
|
39
39
|
* Content grade status
|
|
40
|
-
* @type {
|
|
40
|
+
* @type {GetContentGradeDetailGradeStatusEnum}
|
|
41
41
|
* @memberof GetContentGradeDetail
|
|
42
42
|
*/
|
|
43
43
|
gradeStatus: GetContentGradeDetailGradeStatusEnum;
|
|
@@ -55,7 +55,7 @@ export interface GetContentGradeDetail {
|
|
|
55
55
|
updatedAt: number | null;
|
|
56
56
|
/**
|
|
57
57
|
* Type of content
|
|
58
|
-
* @type {
|
|
58
|
+
* @type {GetContentGradeDetailContentTypeEnum}
|
|
59
59
|
* @memberof GetContentGradeDetail
|
|
60
60
|
*/
|
|
61
61
|
contentType: GetContentGradeDetailContentTypeEnum;
|
|
@@ -30,13 +30,13 @@ export interface GetContentGradesItemsInner {
|
|
|
30
30
|
user: GetContentGradesItemsInnerUser;
|
|
31
31
|
/**
|
|
32
32
|
* Content completion status
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {GetContentGradesItemsInnerCompletionEnum}
|
|
34
34
|
* @memberof GetContentGradesItemsInner
|
|
35
35
|
*/
|
|
36
36
|
completion: GetContentGradesItemsInnerCompletionEnum;
|
|
37
37
|
/**
|
|
38
38
|
* Content grade status
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {GetContentGradesItemsInnerGradeStatusEnum}
|
|
40
40
|
* @memberof GetContentGradesItemsInner
|
|
41
41
|
*/
|
|
42
42
|
gradeStatus: GetContentGradesItemsInnerGradeStatusEnum;
|
|
@@ -23,7 +23,7 @@ export interface GetContentInstructorBasicReportingContentInfo {
|
|
|
23
23
|
contentId: string;
|
|
24
24
|
/**
|
|
25
25
|
* Type of content
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {GetContentInstructorBasicReportingContentInfoContentTypeEnum}
|
|
27
27
|
* @memberof GetContentInstructorBasicReportingContentInfo
|
|
28
28
|
*/
|
|
29
29
|
contentType: GetContentInstructorBasicReportingContentInfoContentTypeEnum;
|
|
@@ -43,13 +43,13 @@ export interface GetContentSessionDetail {
|
|
|
43
43
|
contentId: string;
|
|
44
44
|
/**
|
|
45
45
|
* The completion status of the content session
|
|
46
|
-
* @type {
|
|
46
|
+
* @type {GetContentSessionDetailCompletionStatusEnum}
|
|
47
47
|
* @memberof GetContentSessionDetail
|
|
48
48
|
*/
|
|
49
49
|
completionStatus: GetContentSessionDetailCompletionStatusEnum;
|
|
50
50
|
/**
|
|
51
51
|
* The grade status of the content session
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {GetContentSessionDetailGradeStatusEnum}
|
|
53
53
|
* @memberof GetContentSessionDetail
|
|
54
54
|
*/
|
|
55
55
|
gradeStatus: GetContentSessionDetailGradeStatusEnum;
|
|
@@ -53,13 +53,13 @@ export interface GetCourseEnrollment {
|
|
|
53
53
|
notes: string | null;
|
|
54
54
|
/**
|
|
55
55
|
* Current status of the enrollment
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {GetCourseEnrollmentStatusEnum}
|
|
57
57
|
* @memberof GetCourseEnrollment
|
|
58
58
|
*/
|
|
59
59
|
status: GetCourseEnrollmentStatusEnum;
|
|
60
60
|
/**
|
|
61
61
|
* The role/type of the user in this enrollment
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {GetCourseEnrollmentUserTypeEnum}
|
|
63
63
|
* @memberof GetCourseEnrollment
|
|
64
64
|
*/
|
|
65
65
|
userType: GetCourseEnrollmentUserTypeEnum;
|
|
@@ -59,13 +59,13 @@ export interface GetCourseEnrollmentListItem {
|
|
|
59
59
|
enrollmentDateEnd: number;
|
|
60
60
|
/**
|
|
61
61
|
* Current status of the enrollment
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {GetCourseEnrollmentListItemStatusEnum}
|
|
63
63
|
* @memberof GetCourseEnrollmentListItem
|
|
64
64
|
*/
|
|
65
65
|
status: GetCourseEnrollmentListItemStatusEnum;
|
|
66
66
|
/**
|
|
67
67
|
* The role/type of the user in this enrollment
|
|
68
|
-
* @type {
|
|
68
|
+
* @type {GetCourseEnrollmentListItemUserTypeEnum}
|
|
69
69
|
* @memberof GetCourseEnrollmentListItem
|
|
70
70
|
*/
|
|
71
71
|
userType: GetCourseEnrollmentListItemUserTypeEnum;
|
|
@@ -29,13 +29,13 @@ export interface GetCourseExport {
|
|
|
29
29
|
courseId: string;
|
|
30
30
|
/**
|
|
31
31
|
* The SCORM version to export
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {GetCourseExportScormVersionEnum}
|
|
33
33
|
* @memberof GetCourseExport
|
|
34
34
|
*/
|
|
35
35
|
scormVersion: GetCourseExportScormVersionEnum;
|
|
36
36
|
/**
|
|
37
37
|
* Current status of the export generation
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {GetCourseExportStatusEnum}
|
|
39
39
|
* @memberof GetCourseExport
|
|
40
40
|
*/
|
|
41
41
|
status: GetCourseExportStatusEnum;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A permission that can be assigned to roles
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetPermission
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPermission {
|
|
18
|
+
/**
|
|
19
|
+
* External UUID of the permission
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetPermission
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Permission key in domain:action format (e.g. course:create)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetPermission
|
|
28
|
+
*/
|
|
29
|
+
key: string;
|
|
30
|
+
/**
|
|
31
|
+
* Human-readable description
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetPermission
|
|
34
|
+
*/
|
|
35
|
+
description?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Grouping domain (e.g. course, module, content)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetPermission
|
|
40
|
+
*/
|
|
41
|
+
domain: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the GetPermission interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfGetPermission(value: object): value is GetPermission;
|
|
47
|
+
export declare function GetPermissionFromJSON(json: any): GetPermission;
|
|
48
|
+
export declare function GetPermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPermission;
|
|
49
|
+
export declare function GetPermissionToJSON(json: any): GetPermission;
|
|
50
|
+
export declare function GetPermissionToJSONTyped(value?: GetPermission | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 GetPermission interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetPermission(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetPermissionFromJSON(json) {
|
|
27
|
+
return GetPermissionFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetPermissionFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'],
|
|
35
|
+
'key': json['key'],
|
|
36
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
+
'domain': json['domain'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function GetPermissionToJSON(json) {
|
|
41
|
+
return GetPermissionToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function GetPermissionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'key': value['key'],
|
|
50
|
+
'description': value['description'],
|
|
51
|
+
'domain': value['domain'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -52,17 +52,23 @@ export interface GetPortal {
|
|
|
52
52
|
*/
|
|
53
53
|
headerTextColor: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {
|
|
55
|
+
* The user's current active role (mapped from base_type for backwards compatibility)
|
|
56
|
+
* @type {GetPortalSelectedUserRoleEnum}
|
|
57
57
|
* @memberof GetPortal
|
|
58
58
|
*/
|
|
59
59
|
selectedUserRole?: GetPortalSelectedUserRoleEnum;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {
|
|
61
|
+
* The user's base role (mapped from base_type for backwards compatibility)
|
|
62
|
+
* @type {GetPortalBaseUserRoleEnum}
|
|
63
63
|
* @memberof GetPortal
|
|
64
64
|
*/
|
|
65
65
|
baseUserRole?: GetPortalBaseUserRoleEnum;
|
|
66
|
+
/**
|
|
67
|
+
* The user's highest-privilege role base type for this portal
|
|
68
|
+
* @type {GetPortalBaseTypeEnum}
|
|
69
|
+
* @memberof GetPortal
|
|
70
|
+
*/
|
|
71
|
+
baseType?: GetPortalBaseTypeEnum;
|
|
66
72
|
}
|
|
67
73
|
/**
|
|
68
74
|
* @export
|
|
@@ -82,6 +88,19 @@ export declare const GetPortalBaseUserRoleEnum: {
|
|
|
82
88
|
readonly Learner: "Learner";
|
|
83
89
|
};
|
|
84
90
|
export type GetPortalBaseUserRoleEnum = typeof GetPortalBaseUserRoleEnum[keyof typeof GetPortalBaseUserRoleEnum];
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export declare const GetPortalBaseTypeEnum: {
|
|
95
|
+
readonly Owner: "Owner";
|
|
96
|
+
readonly Admin: "Admin";
|
|
97
|
+
readonly Instructor: "Instructor";
|
|
98
|
+
readonly Learner: "Learner";
|
|
99
|
+
readonly ClientSuperAdmin: "ClientSuperAdmin";
|
|
100
|
+
readonly ClientManager: "ClientManager";
|
|
101
|
+
readonly PortalClientAdministrator: "PortalClientAdministrator";
|
|
102
|
+
};
|
|
103
|
+
export type GetPortalBaseTypeEnum = typeof GetPortalBaseTypeEnum[keyof typeof GetPortalBaseTypeEnum];
|
|
85
104
|
/**
|
|
86
105
|
* Check if a given object implements the GetPortal interface.
|
|
87
106
|
*/
|
|
@@ -27,6 +27,18 @@ export const GetPortalBaseUserRoleEnum = {
|
|
|
27
27
|
Instructor: 'Instructor',
|
|
28
28
|
Learner: 'Learner'
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const GetPortalBaseTypeEnum = {
|
|
34
|
+
Owner: 'Owner',
|
|
35
|
+
Admin: 'Admin',
|
|
36
|
+
Instructor: 'Instructor',
|
|
37
|
+
Learner: 'Learner',
|
|
38
|
+
ClientSuperAdmin: 'ClientSuperAdmin',
|
|
39
|
+
ClientManager: 'ClientManager',
|
|
40
|
+
PortalClientAdministrator: 'PortalClientAdministrator'
|
|
41
|
+
};
|
|
30
42
|
/**
|
|
31
43
|
* Check if a given object implements the GetPortal interface.
|
|
32
44
|
*/
|
|
@@ -59,6 +71,7 @@ export function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
71
|
'headerTextColor': json['header_text_color'],
|
|
60
72
|
'selectedUserRole': json['selected_user_role'] == null ? undefined : json['selected_user_role'],
|
|
61
73
|
'baseUserRole': json['base_user_role'] == null ? undefined : json['base_user_role'],
|
|
74
|
+
'baseType': json['base_type'] == null ? undefined : json['base_type'],
|
|
62
75
|
};
|
|
63
76
|
}
|
|
64
77
|
export function GetPortalToJSON(json) {
|
|
@@ -77,5 +90,6 @@ export function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
90
|
'header_text_color': value['headerTextColor'],
|
|
78
91
|
'selected_user_role': value['selectedUserRole'],
|
|
79
92
|
'base_user_role': value['baseUserRole'],
|
|
93
|
+
'base_type': value['baseType'],
|
|
80
94
|
};
|
|
81
95
|
}
|
|
@@ -40,11 +40,11 @@ export interface GetPortalUser {
|
|
|
40
40
|
*/
|
|
41
41
|
lastName: string;
|
|
42
42
|
/**
|
|
43
|
-
* The user's role in the portal
|
|
43
|
+
* The user's role name in the portal (e.g. Admin, Instructor, Learner, or a custom role name)
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof GetPortalUser
|
|
46
46
|
*/
|
|
47
|
-
role:
|
|
47
|
+
role: string;
|
|
48
48
|
/**
|
|
49
49
|
* Whether the user's portal access is active
|
|
50
50
|
* @type {boolean}
|
|
@@ -52,15 +52,6 @@ export interface GetPortalUser {
|
|
|
52
52
|
*/
|
|
53
53
|
isActive: boolean;
|
|
54
54
|
}
|
|
55
|
-
/**
|
|
56
|
-
* @export
|
|
57
|
-
*/
|
|
58
|
-
export declare const GetPortalUserRoleEnum: {
|
|
59
|
-
readonly Admin: "Admin";
|
|
60
|
-
readonly Instructor: "Instructor";
|
|
61
|
-
readonly Learner: "Learner";
|
|
62
|
-
};
|
|
63
|
-
export type GetPortalUserRoleEnum = typeof GetPortalUserRoleEnum[keyof typeof GetPortalUserRoleEnum];
|
|
64
55
|
/**
|
|
65
56
|
* Check if a given object implements the GetPortalUser interface.
|
|
66
57
|
*/
|
|
@@ -11,14 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
/**
|
|
15
|
-
* @export
|
|
16
|
-
*/
|
|
17
|
-
export const GetPortalUserRoleEnum = {
|
|
18
|
-
Admin: 'Admin',
|
|
19
|
-
Instructor: 'Instructor',
|
|
20
|
-
Learner: 'Learner'
|
|
21
|
-
};
|
|
22
14
|
/**
|
|
23
15
|
* Check if a given object implements the GetPortalUser interface.
|
|
24
16
|
*/
|