@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.
Files changed (278) 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 +93 -3
  5. package/dist/apis/ContentApi.js +308 -106
  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 +93 -3
  27. package/dist/esm/apis/ContentApi.js +307 -105
  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/ContentApi.md +6 -3
  195. package/docs/GetPermission.md +41 -0
  196. package/docs/GetPortal.md +2 -0
  197. package/docs/GetRole.md +49 -0
  198. package/docs/GetUserRole.md +41 -0
  199. package/docs/PortalApi.md +3 -6
  200. package/docs/PostRole.md +39 -0
  201. package/docs/PutRole.md +37 -0
  202. package/docs/PutRolePermissions.md +35 -0
  203. package/docs/RoleApi.md +685 -0
  204. package/package.json +1 -1
  205. package/src/apis/ContentApi.ts +289 -107
  206. package/src/apis/CourseApi.ts +145 -49
  207. package/src/apis/ModuleApi.ts +48 -16
  208. package/src/apis/OtherApi.ts +12 -4
  209. package/src/apis/PortalApi.ts +85 -34
  210. package/src/apis/QuestionApi.ts +60 -20
  211. package/src/apis/QuizApi.ts +300 -100
  212. package/src/apis/ReportingApi.ts +108 -36
  213. package/src/apis/RoleApi.ts +576 -0
  214. package/src/apis/UserApi.ts +84 -28
  215. package/src/apis/index.ts +1 -0
  216. package/src/models/CriteriaBasedSelection.ts +1 -1
  217. package/src/models/CriteriaBasedSelectionCriteria.ts +2 -2
  218. package/src/models/FillInBlank.ts +1 -1
  219. package/src/models/FillInBlank1.ts +1 -1
  220. package/src/models/GetContent.ts +1 -1
  221. package/src/models/GetContentGradeDetail.ts +3 -3
  222. package/src/models/GetContentGradesItemsInner.ts +2 -2
  223. package/src/models/GetContentInstructorBasicReportingContentInfo.ts +1 -1
  224. package/src/models/GetContentSessionDetail.ts +2 -2
  225. package/src/models/GetCourseEnrollment.ts +2 -2
  226. package/src/models/GetCourseEnrollmentListItem.ts +2 -2
  227. package/src/models/GetCourseExport.ts +2 -2
  228. package/src/models/GetPermission.ts +92 -0
  229. package/src/models/GetPortal.ts +26 -4
  230. package/src/models/GetPortalUser.ts +2 -14
  231. package/src/models/GetQuestion.ts +2 -2
  232. package/src/models/GetQuestionListFilters.ts +2 -2
  233. package/src/models/GetQuiz.ts +1 -1
  234. package/src/models/GetQuizAttemptAnalyticsBasicInfo.ts +1 -1
  235. package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByDifficultyInner.ts +1 -1
  236. package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.ts +1 -1
  237. package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +2 -2
  238. package/src/models/GetQuizAttemptAttempt.ts +1 -1
  239. package/src/models/GetQuizAttemptListAllOfAttempts.ts +1 -1
  240. package/src/models/GetQuizAttemptListAllOfFilters.ts +1 -1
  241. package/src/models/GetQuizAttemptQuestionsInner.ts +1 -1
  242. package/src/models/GetQuizCriteriaItem.ts +2 -2
  243. package/src/models/GetQuizCriteriaListItemsInner.ts +2 -2
  244. package/src/models/GetQuizListAllOfFilters.ts +1 -1
  245. package/src/models/GetQuizListAllOfQuizzes.ts +1 -1
  246. package/src/models/GetQuizQuestions.ts +1 -1
  247. package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +2 -2
  248. package/src/models/GetQuizResults.ts +1 -1
  249. package/src/models/GetQuizResultsFeedbackDifficultyPerformanceInner.ts +1 -1
  250. package/src/models/GetQuizResultsQuestionsInner.ts +1 -1
  251. package/src/models/GetRole.ts +151 -0
  252. package/src/models/GetScormApiLogItem.ts +1 -1
  253. package/src/models/GetUserQuizAttemptsAllOfAttempts.ts +1 -1
  254. package/src/models/GetUserQuizAttemptsAllOfFilters.ts +1 -1
  255. package/src/models/GetUserRole.ts +109 -0
  256. package/src/models/ManualSelection.ts +1 -1
  257. package/src/models/MultipleAnswer.ts +1 -1
  258. package/src/models/MultipleAnswer1.ts +1 -1
  259. package/src/models/NoAnswer.ts +1 -1
  260. package/src/models/PostContentUpload.ts +1 -1
  261. package/src/models/PostCourseExport.ts +1 -1
  262. package/src/models/PostPortalInvite.ts +7 -3
  263. package/src/models/PostQuestion.ts +2 -2
  264. package/src/models/PostQuiz.ts +1 -1
  265. package/src/models/PostQuizAttemptAttempt.ts +1 -1
  266. package/src/models/PostQuizAttemptQuestionsInner.ts +1 -1
  267. package/src/models/PostQuizAttemptSubmit.ts +1 -1
  268. package/src/models/PostQuizCriteriaCriteriaInner.ts +2 -2
  269. package/src/models/PostRole.ts +99 -0
  270. package/src/models/PutCourseEnrollment.ts +2 -2
  271. package/src/models/PutQuestion.ts +2 -2
  272. package/src/models/PutQuiz.ts +1 -1
  273. package/src/models/PutRole.ts +74 -0
  274. package/src/models/PutRolePermissions.ts +66 -0
  275. package/src/models/QuizContent.ts +1 -1
  276. package/src/models/SingleAnswer.ts +1 -1
  277. package/src/models/index.ts +6 -0
  278. package/src/runtime.ts +18 -0
@@ -15,9 +15,13 @@
15
15
  * @export
16
16
  */
17
17
  export const PostPortalInviteUserTypeEnum = {
18
+ Owner: 'Owner',
18
19
  Admin: 'Admin',
19
20
  Instructor: 'Instructor',
20
- Learner: 'Learner'
21
+ Learner: 'Learner',
22
+ ClientSuperAdmin: 'ClientSuperAdmin',
23
+ ClientManager: 'ClientManager',
24
+ PortalClientAdministrator: 'PortalClientAdministrator'
21
25
  };
22
26
  /**
23
27
  * Check if a given object implements the PostPortalInvite interface.
@@ -24,7 +24,7 @@ export interface PostQuestion {
24
24
  questionText: string;
25
25
  /**
26
26
  * Type of question: single answer (True/False, multiple choice), multiple answer, or fill in the blank
27
- * @type {string}
27
+ * @type {PostQuestionQuestionTypeEnum}
28
28
  * @memberof PostQuestion
29
29
  */
30
30
  questionType: PostQuestionQuestionTypeEnum;
@@ -60,7 +60,7 @@ export interface PostQuestion {
60
60
  course?: string;
61
61
  /**
62
62
  * Difficulty level of the question
63
- * @type {string}
63
+ * @type {PostQuestionDifficultyLevelEnum}
64
64
  * @memberof PostQuestion
65
65
  */
66
66
  difficultyLevel: PostQuestionDifficultyLevelEnum;
@@ -24,7 +24,7 @@ export interface PostQuiz {
24
24
  contentId: string;
25
25
  /**
26
26
  * How questions are selected for this quiz
27
- * @type {string}
27
+ * @type {PostQuizQuestionSelectionMethodEnum}
28
28
  * @memberof PostQuiz
29
29
  */
30
30
  questionSelectionMethod: PostQuizQuestionSelectionMethodEnum;
@@ -53,7 +53,7 @@ export interface PostQuizAttemptAttempt {
53
53
  attemptNumber: number;
54
54
  /**
55
55
  * Current attempt status
56
- * @type {string}
56
+ * @type {PostQuizAttemptAttemptStatusEnum}
57
57
  * @memberof PostQuizAttemptAttempt
58
58
  */
59
59
  status: PostQuizAttemptAttemptStatusEnum;
@@ -48,7 +48,7 @@ export interface PostQuizAttemptQuestionsInner {
48
48
  questionText: string;
49
49
  /**
50
50
  * Question type
51
- * @type {string}
51
+ * @type {PostQuizAttemptQuestionsInnerQuestionTypeEnum}
52
52
  * @memberof PostQuizAttemptQuestionsInner
53
53
  */
54
54
  questionType: PostQuizAttemptQuestionsInnerQuestionTypeEnum;
@@ -18,7 +18,7 @@ import type { PostQuizAttemptSubmitFinalAnswersInner } from './PostQuizAttemptSu
18
18
  export interface PostQuizAttemptSubmit {
19
19
  /**
20
20
  * How the quiz was submitted
21
- * @type {string}
21
+ * @type {PostQuizAttemptSubmitSubmissionTypeEnum}
22
22
  * @memberof PostQuizAttemptSubmit
23
23
  */
24
24
  submissionType: PostQuizAttemptSubmitSubmissionTypeEnum;
@@ -23,13 +23,13 @@ export interface PostQuizCriteriaCriteriaInner {
23
23
  topic?: string;
24
24
  /**
25
25
  * Filter by difficulty level (null for any difficulty)
26
- * @type {string}
26
+ * @type {PostQuizCriteriaCriteriaInnerDifficultyLevelEnum}
27
27
  * @memberof PostQuizCriteriaCriteriaInner
28
28
  */
29
29
  difficultyLevel?: PostQuizCriteriaCriteriaInnerDifficultyLevelEnum;
30
30
  /**
31
31
  * Filter by question type (null for any type)
32
- * @type {string}
32
+ * @type {PostQuizCriteriaCriteriaInnerQuestionTypeEnum}
33
33
  * @memberof PostQuizCriteriaCriteriaInner
34
34
  */
35
35
  questionType?: PostQuizCriteriaCriteriaInnerQuestionTypeEnum;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Request body for creating a new custom role
14
+ * @export
15
+ * @interface PostRole
16
+ */
17
+ export interface PostRole {
18
+ /**
19
+ * Display name for the role
20
+ * @type {string}
21
+ * @memberof PostRole
22
+ */
23
+ name: string;
24
+ /**
25
+ * Optional description
26
+ * @type {string}
27
+ * @memberof PostRole
28
+ */
29
+ description?: string | null;
30
+ /**
31
+ * The base role type to derive from (determines default permissions)
32
+ * @type {PostRoleBaseTypeEnum}
33
+ * @memberof PostRole
34
+ */
35
+ baseType: PostRoleBaseTypeEnum;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const PostRoleBaseTypeEnum: {
41
+ readonly Owner: "Owner";
42
+ readonly Admin: "Admin";
43
+ readonly Instructor: "Instructor";
44
+ readonly Learner: "Learner";
45
+ readonly ClientSuperAdmin: "ClientSuperAdmin";
46
+ readonly ClientManager: "ClientManager";
47
+ readonly PortalClientAdministrator: "PortalClientAdministrator";
48
+ };
49
+ export type PostRoleBaseTypeEnum = typeof PostRoleBaseTypeEnum[keyof typeof PostRoleBaseTypeEnum];
50
+ /**
51
+ * Check if a given object implements the PostRole interface.
52
+ */
53
+ export declare function instanceOfPostRole(value: object): value is PostRole;
54
+ export declare function PostRoleFromJSON(json: any): PostRole;
55
+ export declare function PostRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostRole;
56
+ export declare function PostRoleToJSON(json: any): PostRole;
57
+ export declare function PostRoleToJSONTyped(value?: PostRole | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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
+ * @export
16
+ */
17
+ export const PostRoleBaseTypeEnum = {
18
+ Owner: 'Owner',
19
+ Admin: 'Admin',
20
+ Instructor: 'Instructor',
21
+ Learner: 'Learner',
22
+ ClientSuperAdmin: 'ClientSuperAdmin',
23
+ ClientManager: 'ClientManager',
24
+ PortalClientAdministrator: 'PortalClientAdministrator'
25
+ };
26
+ /**
27
+ * Check if a given object implements the PostRole interface.
28
+ */
29
+ export function instanceOfPostRole(value) {
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('baseType' in value) || value['baseType'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function PostRoleFromJSON(json) {
37
+ return PostRoleFromJSONTyped(json, false);
38
+ }
39
+ export function PostRoleFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'],
45
+ 'description': json['description'] == null ? undefined : json['description'],
46
+ 'baseType': json['base_type'],
47
+ };
48
+ }
49
+ export function PostRoleToJSON(json) {
50
+ return PostRoleToJSONTyped(json, false);
51
+ }
52
+ export function PostRoleToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'name': value['name'],
58
+ 'description': value['description'],
59
+ 'base_type': value['baseType'],
60
+ };
61
+ }
@@ -17,13 +17,13 @@
17
17
  export interface PutCourseEnrollment {
18
18
  /**
19
19
  * Current status of the enrollment
20
- * @type {string}
20
+ * @type {PutCourseEnrollmentStatusEnum}
21
21
  * @memberof PutCourseEnrollment
22
22
  */
23
23
  status?: PutCourseEnrollmentStatusEnum;
24
24
  /**
25
25
  * The role/type of the user in this enrollment
26
- * @type {string}
26
+ * @type {PutCourseEnrollmentUserTypeEnum}
27
27
  * @memberof PutCourseEnrollment
28
28
  */
29
29
  userType?: PutCourseEnrollmentUserTypeEnum;
@@ -24,7 +24,7 @@ export interface PutQuestion {
24
24
  questionText?: string;
25
25
  /**
26
26
  * Type of question: single answer (True/False, multiple choice), multiple answer, or fill in the blank
27
- * @type {string}
27
+ * @type {PutQuestionQuestionTypeEnum}
28
28
  * @memberof PutQuestion
29
29
  */
30
30
  questionType?: PutQuestionQuestionTypeEnum;
@@ -60,7 +60,7 @@ export interface PutQuestion {
60
60
  course?: string;
61
61
  /**
62
62
  * Difficulty level of the question
63
- * @type {string}
63
+ * @type {PutQuestionDifficultyLevelEnum}
64
64
  * @memberof PutQuestion
65
65
  */
66
66
  difficultyLevel?: PutQuestionDifficultyLevelEnum;
@@ -18,7 +18,7 @@ import type { PutQuizSettings } from './PutQuizSettings';
18
18
  export interface PutQuiz {
19
19
  /**
20
20
  * How questions are selected for this quiz
21
- * @type {string}
21
+ * @type {PutQuizQuestionSelectionMethodEnum}
22
22
  * @memberof PutQuiz
23
23
  */
24
24
  questionSelectionMethod?: PutQuizQuestionSelectionMethodEnum;
@@ -0,0 +1,38 @@
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 updating a custom role
14
+ * @export
15
+ * @interface PutRole
16
+ */
17
+ export interface PutRole {
18
+ /**
19
+ * Updated display name
20
+ * @type {string}
21
+ * @memberof PutRole
22
+ */
23
+ name: string;
24
+ /**
25
+ * Updated description
26
+ * @type {string}
27
+ * @memberof PutRole
28
+ */
29
+ description?: string | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PutRole interface.
33
+ */
34
+ export declare function instanceOfPutRole(value: object): value is PutRole;
35
+ export declare function PutRoleFromJSON(json: any): PutRole;
36
+ export declare function PutRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutRole;
37
+ export declare function PutRoleToJSON(json: any): PutRole;
38
+ export declare function PutRoleToJSONTyped(value?: PutRole | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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 PutRole interface.
16
+ */
17
+ export function instanceOfPutRole(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PutRoleFromJSON(json) {
23
+ return PutRoleFromJSONTyped(json, false);
24
+ }
25
+ export function PutRoleFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': json['name'],
31
+ 'description': json['description'] == null ? undefined : json['description'],
32
+ };
33
+ }
34
+ export function PutRoleToJSON(json) {
35
+ return PutRoleToJSONTyped(json, false);
36
+ }
37
+ export function PutRoleToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'name': value['name'],
43
+ 'description': value['description'],
44
+ };
45
+ }
@@ -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,43 @@
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 PutRolePermissions interface.
16
+ */
17
+ export function instanceOfPutRolePermissions(value) {
18
+ if (!('permissionKeys' in value) || value['permissionKeys'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PutRolePermissionsFromJSON(json) {
23
+ return PutRolePermissionsFromJSONTyped(json, false);
24
+ }
25
+ export function PutRolePermissionsFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'permissionKeys': json['permission_keys'],
31
+ };
32
+ }
33
+ export function PutRolePermissionsToJSON(json) {
34
+ return PutRolePermissionsToJSONTyped(json, false);
35
+ }
36
+ export function PutRolePermissionsToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'permission_keys': value['permissionKeys'],
42
+ };
43
+ }
@@ -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';
@@ -52,6 +52,7 @@ export * from './GetModuleList';
52
52
  export * from './GetModuleStudentReporting';
53
53
  export * from './GetModuleStudentReportingAccess';
54
54
  export * from './GetModuleStudentReportingProgress';
55
+ export * from './GetPermission';
55
56
  export * from './GetPortal';
56
57
  export * from './GetPortalBasicReporting';
57
58
  export * from './GetPortalBasicReportingCertificates';
@@ -111,6 +112,7 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
111
112
  export * from './GetQuizResultsScore';
112
113
  export * from './GetQuizResultsTiming';
113
114
  export * from './GetQuizStatistics';
115
+ export * from './GetRole';
114
116
  export * from './GetScormApiLogItem';
115
117
  export * from './GetScormApiLogs';
116
118
  export * from './GetScormPackage';
@@ -122,6 +124,7 @@ export * from './GetUserQuizAttempts';
122
124
  export * from './GetUserQuizAttemptsAllOfAttempts';
123
125
  export * from './GetUserQuizAttemptsAllOfFilters';
124
126
  export * from './GetUserQuizAttemptsAllOfSummary';
127
+ export * from './GetUserRole';
125
128
  export * from './LoginRes';
126
129
  export * from './LoginResAuthData';
127
130
  export * from './LoginResUserData';
@@ -163,6 +166,7 @@ export * from './PostQuizQuestions';
163
166
  export * from './PostQuizQuestionsQuestionsInner';
164
167
  export * from './PostQuizSettings';
165
168
  export * from './PostResetPassword';
169
+ export * from './PostRole';
166
170
  export * from './PostSendResetPassword';
167
171
  export * from './PostVerifyManifest';
168
172
  export * from './PostVerifyManifestItemsInner';
@@ -179,6 +183,8 @@ export * from './PutQuiz';
179
183
  export * from './PutQuizAnswer';
180
184
  export * from './PutQuizAnswerAnswer';
181
185
  export * from './PutQuizSettings';
186
+ export * from './PutRole';
187
+ export * from './PutRolePermissions';
182
188
  export * from './PutUser';
183
189
  export * from './QuizContent';
184
190
  export * from './QuizContentAssignment';
@@ -223,6 +223,11 @@ export class ResponseError extends Error {
223
223
  super(msg);
224
224
  this.response = response;
225
225
  this.name = "ResponseError";
226
+ // restore prototype chain
227
+ const actualProto = new.target.prototype;
228
+ if (Object.setPrototypeOf) {
229
+ Object.setPrototypeOf(this, actualProto);
230
+ }
226
231
  }
227
232
  }
228
233
  export class FetchError extends Error {
@@ -230,6 +235,11 @@ export class FetchError extends Error {
230
235
  super(msg);
231
236
  this.cause = cause;
232
237
  this.name = "FetchError";
238
+ // restore prototype chain
239
+ const actualProto = new.target.prototype;
240
+ if (Object.setPrototypeOf) {
241
+ Object.setPrototypeOf(this, actualProto);
242
+ }
233
243
  }
234
244
  }
235
245
  export class RequiredError extends Error {
@@ -237,6 +247,11 @@ export class RequiredError extends Error {
237
247
  super(msg);
238
248
  this.field = field;
239
249
  this.name = "RequiredError";
250
+ // restore prototype chain
251
+ const actualProto = new.target.prototype;
252
+ if (Object.setPrototypeOf) {
253
+ Object.setPrototypeOf(this, actualProto);
254
+ }
240
255
  }
241
256
  }
242
257
  export const COLLECTION_FORMATS = {
@@ -19,7 +19,7 @@ import type { CriteriaBasedSelectionDistribution } from './CriteriaBasedSelectio
19
19
  export interface CriteriaBasedSelection {
20
20
  /**
21
21
  *
22
- * @type {string}
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<string>}
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<string>}
32
+ * @type {Array<CriteriaBasedSelectionCriteriaQuestionTypesEnum>}
33
33
  * @memberof CriteriaBasedSelectionCriteria
34
34
  */
35
35
  questionTypes?: Array<CriteriaBasedSelectionCriteriaQuestionTypesEnum>;
@@ -17,7 +17,7 @@
17
17
  export interface FillInBlank {
18
18
  /**
19
19
  *
20
- * @type {string}
20
+ * @type {FillInBlankTypeEnum}
21
21
  * @memberof FillInBlank
22
22
  */
23
23
  type: FillInBlankTypeEnum;
@@ -17,7 +17,7 @@
17
17
  export interface FillInBlank1 {
18
18
  /**
19
19
  *
20
- * @type {string}
20
+ * @type {FillInBlank1TypeEnum}
21
21
  * @memberof FillInBlank1
22
22
  */
23
23
  type: FillInBlank1TypeEnum;
@@ -42,7 +42,7 @@ export interface GetContent {
42
42
  description?: string;
43
43
  /**
44
44
  *
45
- * @type {string}
45
+ * @type {GetContentContentTypeEnum}
46
46
  * @memberof GetContent
47
47
  */
48
48
  contentType: GetContentContentTypeEnum;
@@ -31,13 +31,13 @@ export interface GetContentGradeDetail {
31
31
  user: GetContentGradesItemsInnerUser;
32
32
  /**
33
33
  * Content completion status
34
- * @type {string}
34
+ * @type {GetContentGradeDetailCompletionEnum}
35
35
  * @memberof GetContentGradeDetail
36
36
  */
37
37
  completion: GetContentGradeDetailCompletionEnum;
38
38
  /**
39
39
  * Content grade status
40
- * @type {string}
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 {string}
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 {string}
33
+ * @type {GetContentGradesItemsInnerCompletionEnum}
34
34
  * @memberof GetContentGradesItemsInner
35
35
  */
36
36
  completion: GetContentGradesItemsInnerCompletionEnum;
37
37
  /**
38
38
  * Content grade status
39
- * @type {string}
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 {string}
26
+ * @type {GetContentInstructorBasicReportingContentInfoContentTypeEnum}
27
27
  * @memberof GetContentInstructorBasicReportingContentInfo
28
28
  */
29
29
  contentType: GetContentInstructorBasicReportingContentInfoContentTypeEnum;