@easyedu/js-lsm-api 1.31.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 +93 -3
- package/dist/apis/ContentApi.js +308 -106
- 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 +93 -3
- package/dist/esm/apis/ContentApi.js +307 -105
- 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/ContentApi.md +6 -3
- 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 +289 -107
- 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,52 @@
|
|
|
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.instanceOfPutRole = instanceOfPutRole;
|
|
17
|
+
exports.PutRoleFromJSON = PutRoleFromJSON;
|
|
18
|
+
exports.PutRoleFromJSONTyped = PutRoleFromJSONTyped;
|
|
19
|
+
exports.PutRoleToJSON = PutRoleToJSON;
|
|
20
|
+
exports.PutRoleToJSONTyped = PutRoleToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutRole interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutRole(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PutRoleFromJSON(json) {
|
|
30
|
+
return PutRoleFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PutRoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PutRoleToJSON(json) {
|
|
42
|
+
return PutRoleToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PutRoleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'description': value['description'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 replacing all permissions on a role
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutRolePermissions
|
|
16
|
+
*/
|
|
17
|
+
export interface PutRolePermissions {
|
|
18
|
+
/**
|
|
19
|
+
* List of permission keys to assign (e.g. ["course:create", "module:update"])
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof PutRolePermissions
|
|
22
|
+
*/
|
|
23
|
+
permissionKeys: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutRolePermissions interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutRolePermissions(value: object): value is PutRolePermissions;
|
|
29
|
+
export declare function PutRolePermissionsFromJSON(json: any): PutRolePermissions;
|
|
30
|
+
export declare function PutRolePermissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutRolePermissions;
|
|
31
|
+
export declare function PutRolePermissionsToJSON(json: any): PutRolePermissions;
|
|
32
|
+
export declare function PutRolePermissionsToJSONTyped(value?: PutRolePermissions | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPutRolePermissions = instanceOfPutRolePermissions;
|
|
17
|
+
exports.PutRolePermissionsFromJSON = PutRolePermissionsFromJSON;
|
|
18
|
+
exports.PutRolePermissionsFromJSONTyped = PutRolePermissionsFromJSONTyped;
|
|
19
|
+
exports.PutRolePermissionsToJSON = PutRolePermissionsToJSON;
|
|
20
|
+
exports.PutRolePermissionsToJSONTyped = PutRolePermissionsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutRolePermissions interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutRolePermissions(value) {
|
|
25
|
+
if (!('permissionKeys' in value) || value['permissionKeys'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PutRolePermissionsFromJSON(json) {
|
|
30
|
+
return PutRolePermissionsFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PutRolePermissionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'permissionKeys': json['permission_keys'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PutRolePermissionsToJSON(json) {
|
|
41
|
+
return PutRolePermissionsToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PutRolePermissionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'permission_keys': value['permissionKeys'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export * from './GetModuleList';
|
|
|
50
50
|
export * from './GetModuleStudentReporting';
|
|
51
51
|
export * from './GetModuleStudentReportingAccess';
|
|
52
52
|
export * from './GetModuleStudentReportingProgress';
|
|
53
|
+
export * from './GetPermission';
|
|
53
54
|
export * from './GetPortal';
|
|
54
55
|
export * from './GetPortalBasicReporting';
|
|
55
56
|
export * from './GetPortalBasicReportingCertificates';
|
|
@@ -109,6 +110,7 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
|
109
110
|
export * from './GetQuizResultsScore';
|
|
110
111
|
export * from './GetQuizResultsTiming';
|
|
111
112
|
export * from './GetQuizStatistics';
|
|
113
|
+
export * from './GetRole';
|
|
112
114
|
export * from './GetScormApiLogItem';
|
|
113
115
|
export * from './GetScormApiLogs';
|
|
114
116
|
export * from './GetScormPackage';
|
|
@@ -120,6 +122,7 @@ export * from './GetUserQuizAttempts';
|
|
|
120
122
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
121
123
|
export * from './GetUserQuizAttemptsAllOfFilters';
|
|
122
124
|
export * from './GetUserQuizAttemptsAllOfSummary';
|
|
125
|
+
export * from './GetUserRole';
|
|
123
126
|
export * from './LoginRes';
|
|
124
127
|
export * from './LoginResAuthData';
|
|
125
128
|
export * from './LoginResUserData';
|
|
@@ -161,6 +164,7 @@ export * from './PostQuizQuestions';
|
|
|
161
164
|
export * from './PostQuizQuestionsQuestionsInner';
|
|
162
165
|
export * from './PostQuizSettings';
|
|
163
166
|
export * from './PostResetPassword';
|
|
167
|
+
export * from './PostRole';
|
|
164
168
|
export * from './PostSendResetPassword';
|
|
165
169
|
export * from './PostVerifyManifest';
|
|
166
170
|
export * from './PostVerifyManifestItemsInner';
|
|
@@ -177,6 +181,8 @@ export * from './PutQuiz';
|
|
|
177
181
|
export * from './PutQuizAnswer';
|
|
178
182
|
export * from './PutQuizAnswerAnswer';
|
|
179
183
|
export * from './PutQuizSettings';
|
|
184
|
+
export * from './PutRole';
|
|
185
|
+
export * from './PutRolePermissions';
|
|
180
186
|
export * from './PutUser';
|
|
181
187
|
export * from './QuizContent';
|
|
182
188
|
export * from './QuizContentAssignment';
|
package/dist/models/index.js
CHANGED
|
@@ -68,6 +68,7 @@ __exportStar(require("./GetModuleList"), exports);
|
|
|
68
68
|
__exportStar(require("./GetModuleStudentReporting"), exports);
|
|
69
69
|
__exportStar(require("./GetModuleStudentReportingAccess"), exports);
|
|
70
70
|
__exportStar(require("./GetModuleStudentReportingProgress"), exports);
|
|
71
|
+
__exportStar(require("./GetPermission"), exports);
|
|
71
72
|
__exportStar(require("./GetPortal"), exports);
|
|
72
73
|
__exportStar(require("./GetPortalBasicReporting"), exports);
|
|
73
74
|
__exportStar(require("./GetPortalBasicReportingCertificates"), exports);
|
|
@@ -127,6 +128,7 @@ __exportStar(require("./GetQuizResultsQuestionsInnerStudentAnswer"), exports);
|
|
|
127
128
|
__exportStar(require("./GetQuizResultsScore"), exports);
|
|
128
129
|
__exportStar(require("./GetQuizResultsTiming"), exports);
|
|
129
130
|
__exportStar(require("./GetQuizStatistics"), exports);
|
|
131
|
+
__exportStar(require("./GetRole"), exports);
|
|
130
132
|
__exportStar(require("./GetScormApiLogItem"), exports);
|
|
131
133
|
__exportStar(require("./GetScormApiLogs"), exports);
|
|
132
134
|
__exportStar(require("./GetScormPackage"), exports);
|
|
@@ -138,6 +140,7 @@ __exportStar(require("./GetUserQuizAttempts"), exports);
|
|
|
138
140
|
__exportStar(require("./GetUserQuizAttemptsAllOfAttempts"), exports);
|
|
139
141
|
__exportStar(require("./GetUserQuizAttemptsAllOfFilters"), exports);
|
|
140
142
|
__exportStar(require("./GetUserQuizAttemptsAllOfSummary"), exports);
|
|
143
|
+
__exportStar(require("./GetUserRole"), exports);
|
|
141
144
|
__exportStar(require("./LoginRes"), exports);
|
|
142
145
|
__exportStar(require("./LoginResAuthData"), exports);
|
|
143
146
|
__exportStar(require("./LoginResUserData"), exports);
|
|
@@ -179,6 +182,7 @@ __exportStar(require("./PostQuizQuestions"), exports);
|
|
|
179
182
|
__exportStar(require("./PostQuizQuestionsQuestionsInner"), exports);
|
|
180
183
|
__exportStar(require("./PostQuizSettings"), exports);
|
|
181
184
|
__exportStar(require("./PostResetPassword"), exports);
|
|
185
|
+
__exportStar(require("./PostRole"), exports);
|
|
182
186
|
__exportStar(require("./PostSendResetPassword"), exports);
|
|
183
187
|
__exportStar(require("./PostVerifyManifest"), exports);
|
|
184
188
|
__exportStar(require("./PostVerifyManifestItemsInner"), exports);
|
|
@@ -195,6 +199,8 @@ __exportStar(require("./PutQuiz"), exports);
|
|
|
195
199
|
__exportStar(require("./PutQuizAnswer"), exports);
|
|
196
200
|
__exportStar(require("./PutQuizAnswerAnswer"), exports);
|
|
197
201
|
__exportStar(require("./PutQuizSettings"), exports);
|
|
202
|
+
__exportStar(require("./PutRole"), exports);
|
|
203
|
+
__exportStar(require("./PutRolePermissions"), exports);
|
|
198
204
|
__exportStar(require("./PutUser"), exports);
|
|
199
205
|
__exportStar(require("./QuizContent"), exports);
|
|
200
206
|
__exportStar(require("./QuizContentAssignment"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -232,6 +232,11 @@ class ResponseError extends Error {
|
|
|
232
232
|
super(msg);
|
|
233
233
|
this.response = response;
|
|
234
234
|
this.name = "ResponseError";
|
|
235
|
+
// restore prototype chain
|
|
236
|
+
const actualProto = new.target.prototype;
|
|
237
|
+
if (Object.setPrototypeOf) {
|
|
238
|
+
Object.setPrototypeOf(this, actualProto);
|
|
239
|
+
}
|
|
235
240
|
}
|
|
236
241
|
}
|
|
237
242
|
exports.ResponseError = ResponseError;
|
|
@@ -240,6 +245,11 @@ class FetchError extends Error {
|
|
|
240
245
|
super(msg);
|
|
241
246
|
this.cause = cause;
|
|
242
247
|
this.name = "FetchError";
|
|
248
|
+
// restore prototype chain
|
|
249
|
+
const actualProto = new.target.prototype;
|
|
250
|
+
if (Object.setPrototypeOf) {
|
|
251
|
+
Object.setPrototypeOf(this, actualProto);
|
|
252
|
+
}
|
|
243
253
|
}
|
|
244
254
|
}
|
|
245
255
|
exports.FetchError = FetchError;
|
|
@@ -248,6 +258,11 @@ class RequiredError extends Error {
|
|
|
248
258
|
super(msg);
|
|
249
259
|
this.field = field;
|
|
250
260
|
this.name = "RequiredError";
|
|
261
|
+
// restore prototype chain
|
|
262
|
+
const actualProto = new.target.prototype;
|
|
263
|
+
if (Object.setPrototypeOf) {
|
|
264
|
+
Object.setPrototypeOf(this, actualProto);
|
|
265
|
+
}
|
|
251
266
|
}
|
|
252
267
|
}
|
|
253
268
|
exports.RequiredError = RequiredError;
|
package/docs/ContentApi.md
CHANGED
|
@@ -904,7 +904,7 @@ No authorization required
|
|
|
904
904
|
|
|
905
905
|
## listContentSessions
|
|
906
906
|
|
|
907
|
-
> GetContentSessionList listContentSessions(contentId, moduleId, courseId,
|
|
907
|
+
> GetContentSessionList listContentSessions(contentId, moduleId, courseId, environment, userId, page, pageSize)
|
|
908
908
|
|
|
909
909
|
List content sessions (instructor only)
|
|
910
910
|
|
|
@@ -931,7 +931,9 @@ async function example() {
|
|
|
931
931
|
// string
|
|
932
932
|
courseId: courseId_example,
|
|
933
933
|
// 'SANDBOX' | 'LIVE' | Filter sessions by environment type (SANDBOX or LIVE) (optional)
|
|
934
|
-
|
|
934
|
+
environment: environment_example,
|
|
935
|
+
// string | Filter sessions by user ID (external ID) (optional)
|
|
936
|
+
userId: userId_example,
|
|
935
937
|
// number | Page number for pagination (optional)
|
|
936
938
|
page: 56,
|
|
937
939
|
// number | Number of items per page (optional)
|
|
@@ -958,7 +960,8 @@ example().catch(console.error);
|
|
|
958
960
|
| **contentId** | `string` | | [Defaults to `undefined`] |
|
|
959
961
|
| **moduleId** | `string` | | [Defaults to `undefined`] |
|
|
960
962
|
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
961
|
-
| **
|
|
963
|
+
| **environment** | `SANDBOX`, `LIVE` | Filter sessions by environment type (SANDBOX or LIVE) | [Optional] [Defaults to `undefined`] [Enum: SANDBOX, LIVE] |
|
|
964
|
+
| **userId** | `string` | Filter sessions by user ID (external ID) | [Optional] [Defaults to `undefined`] |
|
|
962
965
|
| **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
|
|
963
966
|
| **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
|
|
964
967
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# GetPermission
|
|
3
|
+
|
|
4
|
+
A permission that can be assigned to roles
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`key` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`domain` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { GetPermission } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"key": null,
|
|
24
|
+
"description": null,
|
|
25
|
+
"domain": null,
|
|
26
|
+
} satisfies GetPermission
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetPermission
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
package/docs/GetPortal.md
CHANGED
|
@@ -14,6 +14,7 @@ Name | Type
|
|
|
14
14
|
`headerTextColor` | string
|
|
15
15
|
`selectedUserRole` | string
|
|
16
16
|
`baseUserRole` | string
|
|
17
|
+
`baseType` | string
|
|
17
18
|
|
|
18
19
|
## Example
|
|
19
20
|
|
|
@@ -30,6 +31,7 @@ const example = {
|
|
|
30
31
|
"headerTextColor": null,
|
|
31
32
|
"selectedUserRole": null,
|
|
32
33
|
"baseUserRole": null,
|
|
34
|
+
"baseType": null,
|
|
33
35
|
} satisfies GetPortal
|
|
34
36
|
|
|
35
37
|
console.log(example)
|
package/docs/GetRole.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
# GetRole
|
|
3
|
+
|
|
4
|
+
A role with its assigned permissions
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`baseType` | string
|
|
14
|
+
`portalId` | string
|
|
15
|
+
`isSystem` | boolean
|
|
16
|
+
`isActive` | boolean
|
|
17
|
+
`permissions` | [Array<GetPermission>](GetPermission.md)
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { GetRole } from '@easyedu/js-lsm-api'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"name": null,
|
|
28
|
+
"description": null,
|
|
29
|
+
"baseType": null,
|
|
30
|
+
"portalId": null,
|
|
31
|
+
"isSystem": null,
|
|
32
|
+
"isActive": null,
|
|
33
|
+
"permissions": null,
|
|
34
|
+
} satisfies GetRole
|
|
35
|
+
|
|
36
|
+
console.log(example)
|
|
37
|
+
|
|
38
|
+
// Convert the instance to a JSON string
|
|
39
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
40
|
+
console.log(exampleJSON)
|
|
41
|
+
|
|
42
|
+
// Parse the JSON string back to an object
|
|
43
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetRole
|
|
44
|
+
console.log(exampleParsed)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
48
|
+
|
|
49
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# GetUserRole
|
|
3
|
+
|
|
4
|
+
A role assigned to a user in a portal
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`baseType` | string
|
|
13
|
+
`isSystem` | boolean
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { GetUserRole } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"baseType": null,
|
|
25
|
+
"isSystem": null,
|
|
26
|
+
} satisfies GetUserRole
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetUserRole
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
package/docs/PortalApi.md
CHANGED
|
@@ -10,7 +10,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
10
10
|
| [**inviteUserToPortal**](PortalApi.md#inviteusertoportal) | **POST** /portals/{portalId}/invite | Invite a new user to a portal |
|
|
11
11
|
| [**postPortal**](PortalApi.md#postportal) | **POST** /portals | Create a new portal as a child of the current selected portal |
|
|
12
12
|
| [**putPortalBranding**](PortalApi.md#putportalbranding) | **PUT** /portals/{portalId} | Update portal branding (name, background color, text color) |
|
|
13
|
-
| [**updateSelectedPortal**](PortalApi.md#updateselectedportal) | **PUT** /portals/{portalId}/selected | Update the users current selected portal |
|
|
13
|
+
| [**updateSelectedPortal**](PortalApi.md#updateselectedportal) | **PUT** /portals/{portalId}/selected | Update the users current selected portal. Returns new JWT with updated roles. |
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -425,9 +425,9 @@ No authorization required
|
|
|
425
425
|
|
|
426
426
|
## updateSelectedPortal
|
|
427
427
|
|
|
428
|
-
> updateSelectedPortal(portalId
|
|
428
|
+
> updateSelectedPortal(portalId)
|
|
429
429
|
|
|
430
|
-
Update the users current selected portal
|
|
430
|
+
Update the users current selected portal. Returns new JWT with updated roles.
|
|
431
431
|
|
|
432
432
|
### Example
|
|
433
433
|
|
|
@@ -445,8 +445,6 @@ async function example() {
|
|
|
445
445
|
const body = {
|
|
446
446
|
// string
|
|
447
447
|
portalId: portalId_example,
|
|
448
|
-
// string (optional)
|
|
449
|
-
selectedUserRole: selectedUserRole_example,
|
|
450
448
|
} satisfies UpdateSelectedPortalRequest;
|
|
451
449
|
|
|
452
450
|
try {
|
|
@@ -467,7 +465,6 @@ example().catch(console.error);
|
|
|
467
465
|
| Name | Type | Description | Notes |
|
|
468
466
|
|------------- | ------------- | ------------- | -------------|
|
|
469
467
|
| **portalId** | `string` | | [Defaults to `undefined`] |
|
|
470
|
-
| **selectedUserRole** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
471
468
|
|
|
472
469
|
### Return type
|
|
473
470
|
|
package/docs/PostRole.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
# PostRole
|
|
3
|
+
|
|
4
|
+
Request body for creating a new custom role
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`name` | string
|
|
11
|
+
`description` | string
|
|
12
|
+
`baseType` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { PostRole } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"description": null,
|
|
23
|
+
"baseType": null,
|
|
24
|
+
} satisfies PostRole
|
|
25
|
+
|
|
26
|
+
console.log(example)
|
|
27
|
+
|
|
28
|
+
// Convert the instance to a JSON string
|
|
29
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
30
|
+
console.log(exampleJSON)
|
|
31
|
+
|
|
32
|
+
// Parse the JSON string back to an object
|
|
33
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostRole
|
|
34
|
+
console.log(exampleParsed)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
38
|
+
|
|
39
|
+
|
package/docs/PutRole.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
# PutRole
|
|
3
|
+
|
|
4
|
+
Request body for updating a custom role
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`name` | string
|
|
11
|
+
`description` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { PutRole } from '@easyedu/js-lsm-api'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"name": null,
|
|
21
|
+
"description": null,
|
|
22
|
+
} satisfies PutRole
|
|
23
|
+
|
|
24
|
+
console.log(example)
|
|
25
|
+
|
|
26
|
+
// Convert the instance to a JSON string
|
|
27
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
28
|
+
console.log(exampleJSON)
|
|
29
|
+
|
|
30
|
+
// Parse the JSON string back to an object
|
|
31
|
+
const exampleParsed = JSON.parse(exampleJSON) as PutRole
|
|
32
|
+
console.log(exampleParsed)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
36
|
+
|
|
37
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# PutRolePermissions
|
|
3
|
+
|
|
4
|
+
Request body for replacing all permissions on a role
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`permissionKeys` | Array<string>
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PutRolePermissions } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"permissionKeys": null,
|
|
20
|
+
} satisfies PutRolePermissions
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as PutRolePermissions
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|