@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.
Files changed (277) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +20 -4
  4. package/dist/apis/ContentApi.d.ts +89 -0
  5. package/dist/apis/ContentApi.js +301 -102
  6. package/dist/apis/CourseApi.d.ts +48 -0
  7. package/dist/apis/CourseApi.js +157 -49
  8. package/dist/apis/ModuleApi.d.ts +16 -0
  9. package/dist/apis/ModuleApi.js +52 -16
  10. package/dist/apis/OtherApi.d.ts +4 -0
  11. package/dist/apis/OtherApi.js +13 -4
  12. package/dist/apis/PortalApi.d.ts +30 -3
  13. package/dist/apis/PortalApi.js +92 -32
  14. package/dist/apis/QuestionApi.d.ts +20 -0
  15. package/dist/apis/QuestionApi.js +65 -20
  16. package/dist/apis/QuizApi.d.ts +100 -0
  17. package/dist/apis/QuizApi.js +325 -100
  18. package/dist/apis/ReportingApi.d.ts +36 -0
  19. package/dist/apis/ReportingApi.js +117 -36
  20. package/dist/apis/RoleApi.d.ts +169 -0
  21. package/dist/apis/RoleApi.js +442 -0
  22. package/dist/apis/UserApi.d.ts +28 -0
  23. package/dist/apis/UserApi.js +91 -28
  24. package/dist/apis/index.d.ts +1 -0
  25. package/dist/apis/index.js +1 -0
  26. package/dist/esm/apis/ContentApi.d.ts +89 -0
  27. package/dist/esm/apis/ContentApi.js +301 -102
  28. package/dist/esm/apis/CourseApi.d.ts +48 -0
  29. package/dist/esm/apis/CourseApi.js +157 -49
  30. package/dist/esm/apis/ModuleApi.d.ts +16 -0
  31. package/dist/esm/apis/ModuleApi.js +52 -16
  32. package/dist/esm/apis/OtherApi.d.ts +4 -0
  33. package/dist/esm/apis/OtherApi.js +13 -4
  34. package/dist/esm/apis/PortalApi.d.ts +30 -3
  35. package/dist/esm/apis/PortalApi.js +92 -32
  36. package/dist/esm/apis/QuestionApi.d.ts +20 -0
  37. package/dist/esm/apis/QuestionApi.js +65 -20
  38. package/dist/esm/apis/QuizApi.d.ts +100 -0
  39. package/dist/esm/apis/QuizApi.js +325 -100
  40. package/dist/esm/apis/ReportingApi.d.ts +36 -0
  41. package/dist/esm/apis/ReportingApi.js +117 -36
  42. package/dist/esm/apis/RoleApi.d.ts +169 -0
  43. package/dist/esm/apis/RoleApi.js +438 -0
  44. package/dist/esm/apis/UserApi.d.ts +28 -0
  45. package/dist/esm/apis/UserApi.js +91 -28
  46. package/dist/esm/apis/index.d.ts +1 -0
  47. package/dist/esm/apis/index.js +1 -0
  48. package/dist/esm/models/CriteriaBasedSelection.d.ts +1 -1
  49. package/dist/esm/models/CriteriaBasedSelectionCriteria.d.ts +2 -2
  50. package/dist/esm/models/FillInBlank.d.ts +1 -1
  51. package/dist/esm/models/FillInBlank1.d.ts +1 -1
  52. package/dist/esm/models/GetContent.d.ts +1 -1
  53. package/dist/esm/models/GetContentGradeDetail.d.ts +3 -3
  54. package/dist/esm/models/GetContentGradesItemsInner.d.ts +2 -2
  55. package/dist/esm/models/GetContentInstructorBasicReportingContentInfo.d.ts +1 -1
  56. package/dist/esm/models/GetContentSessionDetail.d.ts +2 -2
  57. package/dist/esm/models/GetCourseEnrollment.d.ts +2 -2
  58. package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +2 -2
  59. package/dist/esm/models/GetCourseExport.d.ts +2 -2
  60. package/dist/esm/models/GetPermission.d.ts +50 -0
  61. package/dist/esm/models/GetPermission.js +53 -0
  62. package/dist/esm/models/GetPortal.d.ts +23 -4
  63. package/dist/esm/models/GetPortal.js +14 -0
  64. package/dist/esm/models/GetPortalUser.d.ts +2 -11
  65. package/dist/esm/models/GetPortalUser.js +0 -8
  66. package/dist/esm/models/GetQuestion.d.ts +2 -2
  67. package/dist/esm/models/GetQuestionListFilters.d.ts +2 -2
  68. package/dist/esm/models/GetQuiz.d.ts +1 -1
  69. package/dist/esm/models/GetQuizAttemptAnalyticsBasicInfo.d.ts +1 -1
  70. package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.d.ts +1 -1
  71. package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +1 -1
  72. package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +2 -2
  73. package/dist/esm/models/GetQuizAttemptAttempt.d.ts +1 -1
  74. package/dist/esm/models/GetQuizAttemptListAllOfAttempts.d.ts +1 -1
  75. package/dist/esm/models/GetQuizAttemptListAllOfFilters.d.ts +1 -1
  76. package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +1 -1
  77. package/dist/esm/models/GetQuizCriteriaItem.d.ts +2 -2
  78. package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +2 -2
  79. package/dist/esm/models/GetQuizListAllOfFilters.d.ts +1 -1
  80. package/dist/esm/models/GetQuizListAllOfQuizzes.d.ts +1 -1
  81. package/dist/esm/models/GetQuizQuestions.d.ts +1 -1
  82. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +2 -2
  83. package/dist/esm/models/GetQuizResults.d.ts +1 -1
  84. package/dist/esm/models/GetQuizResultsFeedbackDifficultyPerformanceInner.d.ts +1 -1
  85. package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +1 -1
  86. package/dist/esm/models/GetRole.d.ts +88 -0
  87. package/dist/esm/models/GetRole.js +80 -0
  88. package/dist/esm/models/GetScormApiLogItem.d.ts +1 -1
  89. package/dist/esm/models/GetUserQuizAttemptsAllOfAttempts.d.ts +1 -1
  90. package/dist/esm/models/GetUserQuizAttemptsAllOfFilters.d.ts +1 -1
  91. package/dist/esm/models/GetUserRole.d.ts +63 -0
  92. package/dist/esm/models/GetUserRole.js +67 -0
  93. package/dist/esm/models/ManualSelection.d.ts +1 -1
  94. package/dist/esm/models/MultipleAnswer.d.ts +1 -1
  95. package/dist/esm/models/MultipleAnswer1.d.ts +1 -1
  96. package/dist/esm/models/NoAnswer.d.ts +1 -1
  97. package/dist/esm/models/PostContentUpload.d.ts +1 -1
  98. package/dist/esm/models/PostCourseExport.d.ts +1 -1
  99. package/dist/esm/models/PostPortalInvite.d.ts +6 -2
  100. package/dist/esm/models/PostPortalInvite.js +5 -1
  101. package/dist/esm/models/PostQuestion.d.ts +2 -2
  102. package/dist/esm/models/PostQuiz.d.ts +1 -1
  103. package/dist/esm/models/PostQuizAttemptAttempt.d.ts +1 -1
  104. package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +1 -1
  105. package/dist/esm/models/PostQuizAttemptSubmit.d.ts +1 -1
  106. package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +2 -2
  107. package/dist/esm/models/PostRole.d.ts +57 -0
  108. package/dist/esm/models/PostRole.js +61 -0
  109. package/dist/esm/models/PutCourseEnrollment.d.ts +2 -2
  110. package/dist/esm/models/PutQuestion.d.ts +2 -2
  111. package/dist/esm/models/PutQuiz.d.ts +1 -1
  112. package/dist/esm/models/PutRole.d.ts +38 -0
  113. package/dist/esm/models/PutRole.js +45 -0
  114. package/dist/esm/models/PutRolePermissions.d.ts +32 -0
  115. package/dist/esm/models/PutRolePermissions.js +43 -0
  116. package/dist/esm/models/QuizContent.d.ts +1 -1
  117. package/dist/esm/models/SingleAnswer.d.ts +1 -1
  118. package/dist/esm/models/index.d.ts +6 -0
  119. package/dist/esm/models/index.js +6 -0
  120. package/dist/esm/runtime.js +15 -0
  121. package/dist/models/CriteriaBasedSelection.d.ts +1 -1
  122. package/dist/models/CriteriaBasedSelectionCriteria.d.ts +2 -2
  123. package/dist/models/FillInBlank.d.ts +1 -1
  124. package/dist/models/FillInBlank1.d.ts +1 -1
  125. package/dist/models/GetContent.d.ts +1 -1
  126. package/dist/models/GetContentGradeDetail.d.ts +3 -3
  127. package/dist/models/GetContentGradesItemsInner.d.ts +2 -2
  128. package/dist/models/GetContentInstructorBasicReportingContentInfo.d.ts +1 -1
  129. package/dist/models/GetContentSessionDetail.d.ts +2 -2
  130. package/dist/models/GetCourseEnrollment.d.ts +2 -2
  131. package/dist/models/GetCourseEnrollmentListItem.d.ts +2 -2
  132. package/dist/models/GetCourseExport.d.ts +2 -2
  133. package/dist/models/GetPermission.d.ts +50 -0
  134. package/dist/models/GetPermission.js +60 -0
  135. package/dist/models/GetPortal.d.ts +23 -4
  136. package/dist/models/GetPortal.js +15 -1
  137. package/dist/models/GetPortalUser.d.ts +2 -11
  138. package/dist/models/GetPortalUser.js +0 -9
  139. package/dist/models/GetQuestion.d.ts +2 -2
  140. package/dist/models/GetQuestionListFilters.d.ts +2 -2
  141. package/dist/models/GetQuiz.d.ts +1 -1
  142. package/dist/models/GetQuizAttemptAnalyticsBasicInfo.d.ts +1 -1
  143. package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.d.ts +1 -1
  144. package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +1 -1
  145. package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +2 -2
  146. package/dist/models/GetQuizAttemptAttempt.d.ts +1 -1
  147. package/dist/models/GetQuizAttemptListAllOfAttempts.d.ts +1 -1
  148. package/dist/models/GetQuizAttemptListAllOfFilters.d.ts +1 -1
  149. package/dist/models/GetQuizAttemptQuestionsInner.d.ts +1 -1
  150. package/dist/models/GetQuizCriteriaItem.d.ts +2 -2
  151. package/dist/models/GetQuizCriteriaListItemsInner.d.ts +2 -2
  152. package/dist/models/GetQuizListAllOfFilters.d.ts +1 -1
  153. package/dist/models/GetQuizListAllOfQuizzes.d.ts +1 -1
  154. package/dist/models/GetQuizQuestions.d.ts +1 -1
  155. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +2 -2
  156. package/dist/models/GetQuizResults.d.ts +1 -1
  157. package/dist/models/GetQuizResultsFeedbackDifficultyPerformanceInner.d.ts +1 -1
  158. package/dist/models/GetQuizResultsQuestionsInner.d.ts +1 -1
  159. package/dist/models/GetRole.d.ts +88 -0
  160. package/dist/models/GetRole.js +88 -0
  161. package/dist/models/GetScormApiLogItem.d.ts +1 -1
  162. package/dist/models/GetUserQuizAttemptsAllOfAttempts.d.ts +1 -1
  163. package/dist/models/GetUserQuizAttemptsAllOfFilters.d.ts +1 -1
  164. package/dist/models/GetUserRole.d.ts +63 -0
  165. package/dist/models/GetUserRole.js +75 -0
  166. package/dist/models/ManualSelection.d.ts +1 -1
  167. package/dist/models/MultipleAnswer.d.ts +1 -1
  168. package/dist/models/MultipleAnswer1.d.ts +1 -1
  169. package/dist/models/NoAnswer.d.ts +1 -1
  170. package/dist/models/PostContentUpload.d.ts +1 -1
  171. package/dist/models/PostCourseExport.d.ts +1 -1
  172. package/dist/models/PostPortalInvite.d.ts +6 -2
  173. package/dist/models/PostPortalInvite.js +5 -1
  174. package/dist/models/PostQuestion.d.ts +2 -2
  175. package/dist/models/PostQuiz.d.ts +1 -1
  176. package/dist/models/PostQuizAttemptAttempt.d.ts +1 -1
  177. package/dist/models/PostQuizAttemptQuestionsInner.d.ts +1 -1
  178. package/dist/models/PostQuizAttemptSubmit.d.ts +1 -1
  179. package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +2 -2
  180. package/dist/models/PostRole.d.ts +57 -0
  181. package/dist/models/PostRole.js +69 -0
  182. package/dist/models/PutCourseEnrollment.d.ts +2 -2
  183. package/dist/models/PutQuestion.d.ts +2 -2
  184. package/dist/models/PutQuiz.d.ts +1 -1
  185. package/dist/models/PutRole.d.ts +38 -0
  186. package/dist/models/PutRole.js +52 -0
  187. package/dist/models/PutRolePermissions.d.ts +32 -0
  188. package/dist/models/PutRolePermissions.js +50 -0
  189. package/dist/models/QuizContent.d.ts +1 -1
  190. package/dist/models/SingleAnswer.d.ts +1 -1
  191. package/dist/models/index.d.ts +6 -0
  192. package/dist/models/index.js +6 -0
  193. package/dist/runtime.js +15 -0
  194. package/docs/GetPermission.md +41 -0
  195. package/docs/GetPortal.md +2 -0
  196. package/docs/GetRole.md +49 -0
  197. package/docs/GetUserRole.md +41 -0
  198. package/docs/PortalApi.md +3 -6
  199. package/docs/PostRole.md +39 -0
  200. package/docs/PutRole.md +37 -0
  201. package/docs/PutRolePermissions.md +35 -0
  202. package/docs/RoleApi.md +685 -0
  203. package/package.json +1 -1
  204. package/src/apis/ContentApi.ts +279 -102
  205. package/src/apis/CourseApi.ts +145 -49
  206. package/src/apis/ModuleApi.ts +48 -16
  207. package/src/apis/OtherApi.ts +12 -4
  208. package/src/apis/PortalApi.ts +85 -34
  209. package/src/apis/QuestionApi.ts +60 -20
  210. package/src/apis/QuizApi.ts +300 -100
  211. package/src/apis/ReportingApi.ts +108 -36
  212. package/src/apis/RoleApi.ts +576 -0
  213. package/src/apis/UserApi.ts +84 -28
  214. package/src/apis/index.ts +1 -0
  215. package/src/models/CriteriaBasedSelection.ts +1 -1
  216. package/src/models/CriteriaBasedSelectionCriteria.ts +2 -2
  217. package/src/models/FillInBlank.ts +1 -1
  218. package/src/models/FillInBlank1.ts +1 -1
  219. package/src/models/GetContent.ts +1 -1
  220. package/src/models/GetContentGradeDetail.ts +3 -3
  221. package/src/models/GetContentGradesItemsInner.ts +2 -2
  222. package/src/models/GetContentInstructorBasicReportingContentInfo.ts +1 -1
  223. package/src/models/GetContentSessionDetail.ts +2 -2
  224. package/src/models/GetCourseEnrollment.ts +2 -2
  225. package/src/models/GetCourseEnrollmentListItem.ts +2 -2
  226. package/src/models/GetCourseExport.ts +2 -2
  227. package/src/models/GetPermission.ts +92 -0
  228. package/src/models/GetPortal.ts +26 -4
  229. package/src/models/GetPortalUser.ts +2 -14
  230. package/src/models/GetQuestion.ts +2 -2
  231. package/src/models/GetQuestionListFilters.ts +2 -2
  232. package/src/models/GetQuiz.ts +1 -1
  233. package/src/models/GetQuizAttemptAnalyticsBasicInfo.ts +1 -1
  234. package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.ts +1 -1
  235. package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.ts +1 -1
  236. package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +2 -2
  237. package/src/models/GetQuizAttemptAttempt.ts +1 -1
  238. package/src/models/GetQuizAttemptListAllOfAttempts.ts +1 -1
  239. package/src/models/GetQuizAttemptListAllOfFilters.ts +1 -1
  240. package/src/models/GetQuizAttemptQuestionsInner.ts +1 -1
  241. package/src/models/GetQuizCriteriaItem.ts +2 -2
  242. package/src/models/GetQuizCriteriaListItemsInner.ts +2 -2
  243. package/src/models/GetQuizListAllOfFilters.ts +1 -1
  244. package/src/models/GetQuizListAllOfQuizzes.ts +1 -1
  245. package/src/models/GetQuizQuestions.ts +1 -1
  246. package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +2 -2
  247. package/src/models/GetQuizResults.ts +1 -1
  248. package/src/models/GetQuizResultsFeedbackDifficultyPerformanceInner.ts +1 -1
  249. package/src/models/GetQuizResultsQuestionsInner.ts +1 -1
  250. package/src/models/GetRole.ts +151 -0
  251. package/src/models/GetScormApiLogItem.ts +1 -1
  252. package/src/models/GetUserQuizAttemptsAllOfAttempts.ts +1 -1
  253. package/src/models/GetUserQuizAttemptsAllOfFilters.ts +1 -1
  254. package/src/models/GetUserRole.ts +109 -0
  255. package/src/models/ManualSelection.ts +1 -1
  256. package/src/models/MultipleAnswer.ts +1 -1
  257. package/src/models/MultipleAnswer1.ts +1 -1
  258. package/src/models/NoAnswer.ts +1 -1
  259. package/src/models/PostContentUpload.ts +1 -1
  260. package/src/models/PostCourseExport.ts +1 -1
  261. package/src/models/PostPortalInvite.ts +7 -3
  262. package/src/models/PostQuestion.ts +2 -2
  263. package/src/models/PostQuiz.ts +1 -1
  264. package/src/models/PostQuizAttemptAttempt.ts +1 -1
  265. package/src/models/PostQuizAttemptQuestionsInner.ts +1 -1
  266. package/src/models/PostQuizAttemptSubmit.ts +1 -1
  267. package/src/models/PostQuizCriteriaCriteriaInner.ts +2 -2
  268. package/src/models/PostRole.ts +99 -0
  269. package/src/models/PutCourseEnrollment.ts +2 -2
  270. package/src/models/PutQuestion.ts +2 -2
  271. package/src/models/PutQuiz.ts +1 -1
  272. package/src/models/PutRole.ts +74 -0
  273. package/src/models/PutRolePermissions.ts +66 -0
  274. package/src/models/QuizContent.ts +1 -1
  275. package/src/models/SingleAnswer.ts +1 -1
  276. package/src/models/index.ts +6 -0
  277. 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
+ }
@@ -19,7 +19,7 @@ import type { QuizContentSettings } from './QuizContentSettings';
19
19
  export interface QuizContent {
20
20
  /**
21
21
  * Type of quiz
22
- * @type {string}
22
+ * @type {QuizContentQuizTypeEnum}
23
23
  * @memberof QuizContent
24
24
  */
25
25
  quizType: QuizContentQuizTypeEnum;
@@ -17,7 +17,7 @@
17
17
  export interface SingleAnswer {
18
18
  /**
19
19
  *
20
- * @type {string}
20
+ * @type {SingleAnswerTypeEnum}
21
21
  * @memberof SingleAnswer
22
22
  */
23
23
  type: SingleAnswerTypeEnum;
@@ -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';
@@ -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;
@@ -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)
@@ -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&lt;GetPermission&gt;](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, selectedUserRole)
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
 
@@ -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
+
@@ -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&lt;string&gt;
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
+