@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
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetRoleBaseTypeEnum = void 0;
17
+ exports.instanceOfGetRole = instanceOfGetRole;
18
+ exports.GetRoleFromJSON = GetRoleFromJSON;
19
+ exports.GetRoleFromJSONTyped = GetRoleFromJSONTyped;
20
+ exports.GetRoleToJSON = GetRoleToJSON;
21
+ exports.GetRoleToJSONTyped = GetRoleToJSONTyped;
22
+ const GetPermission_1 = require("./GetPermission");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.GetRoleBaseTypeEnum = {
27
+ Owner: 'Owner',
28
+ Admin: 'Admin',
29
+ Instructor: 'Instructor',
30
+ Learner: 'Learner',
31
+ ClientSuperAdmin: 'ClientSuperAdmin',
32
+ ClientManager: 'ClientManager',
33
+ PortalClientAdministrator: 'PortalClientAdministrator'
34
+ };
35
+ /**
36
+ * Check if a given object implements the GetRole interface.
37
+ */
38
+ function instanceOfGetRole(value) {
39
+ if (!('id' in value) || value['id'] === undefined)
40
+ return false;
41
+ if (!('name' in value) || value['name'] === undefined)
42
+ return false;
43
+ if (!('baseType' in value) || value['baseType'] === undefined)
44
+ return false;
45
+ if (!('isSystem' in value) || value['isSystem'] === undefined)
46
+ return false;
47
+ if (!('isActive' in value) || value['isActive'] === undefined)
48
+ return false;
49
+ if (!('permissions' in value) || value['permissions'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function GetRoleFromJSON(json) {
54
+ return GetRoleFromJSONTyped(json, false);
55
+ }
56
+ function GetRoleFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'id': json['id'],
62
+ 'name': json['name'],
63
+ 'description': json['description'] == null ? undefined : json['description'],
64
+ 'baseType': json['base_type'],
65
+ 'portalId': json['portal_id'] == null ? undefined : json['portal_id'],
66
+ 'isSystem': json['is_system'],
67
+ 'isActive': json['is_active'],
68
+ 'permissions': (json['permissions'].map(GetPermission_1.GetPermissionFromJSON)),
69
+ };
70
+ }
71
+ function GetRoleToJSON(json) {
72
+ return GetRoleToJSONTyped(json, false);
73
+ }
74
+ function GetRoleToJSONTyped(value, ignoreDiscriminator = false) {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+ 'id': value['id'],
80
+ 'name': value['name'],
81
+ 'description': value['description'],
82
+ 'base_type': value['baseType'],
83
+ 'portal_id': value['portalId'],
84
+ 'is_system': value['isSystem'],
85
+ 'is_active': value['isActive'],
86
+ 'permissions': (value['permissions'].map(GetPermission_1.GetPermissionToJSON)),
87
+ };
88
+ }
@@ -29,7 +29,7 @@ export interface GetScormApiLogItem {
29
29
  createdAt: number;
30
30
  /**
31
31
  * The SCORM API method that was called
32
- * @type {string}
32
+ * @type {GetScormApiLogItemMethodEnum}
33
33
  * @memberof GetScormApiLogItem
34
34
  */
35
35
  method: GetScormApiLogItemMethodEnum;
@@ -65,7 +65,7 @@ export interface GetUserQuizAttemptsAllOfAttempts {
65
65
  attemptNumber: number;
66
66
  /**
67
67
  * Attempt status
68
- * @type {string}
68
+ * @type {GetUserQuizAttemptsAllOfAttemptsStatusEnum}
69
69
  * @memberof GetUserQuizAttemptsAllOfAttempts
70
70
  */
71
71
  status: GetUserQuizAttemptsAllOfAttemptsStatusEnum;
@@ -36,7 +36,7 @@ export interface GetUserQuizAttemptsAllOfFilters {
36
36
  quizId?: string;
37
37
  /**
38
38
  * Filter by attempt status
39
- * @type {string}
39
+ * @type {GetUserQuizAttemptsAllOfFiltersStatusEnum}
40
40
  * @memberof GetUserQuizAttemptsAllOfFilters
41
41
  */
42
42
  status?: GetUserQuizAttemptsAllOfFiltersStatusEnum;
@@ -0,0 +1,63 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * A role assigned to a user in a portal
14
+ * @export
15
+ * @interface GetUserRole
16
+ */
17
+ export interface GetUserRole {
18
+ /**
19
+ * External UUID of the role
20
+ * @type {string}
21
+ * @memberof GetUserRole
22
+ */
23
+ id: string;
24
+ /**
25
+ * Role name
26
+ * @type {string}
27
+ * @memberof GetUserRole
28
+ */
29
+ name: string;
30
+ /**
31
+ * Base role type
32
+ * @type {GetUserRoleBaseTypeEnum}
33
+ * @memberof GetUserRole
34
+ */
35
+ baseType: GetUserRoleBaseTypeEnum;
36
+ /**
37
+ * Whether this is a system role
38
+ * @type {boolean}
39
+ * @memberof GetUserRole
40
+ */
41
+ isSystem: boolean;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const GetUserRoleBaseTypeEnum: {
47
+ readonly Owner: "Owner";
48
+ readonly Admin: "Admin";
49
+ readonly Instructor: "Instructor";
50
+ readonly Learner: "Learner";
51
+ readonly ClientSuperAdmin: "ClientSuperAdmin";
52
+ readonly ClientManager: "ClientManager";
53
+ readonly PortalClientAdministrator: "PortalClientAdministrator";
54
+ };
55
+ export type GetUserRoleBaseTypeEnum = typeof GetUserRoleBaseTypeEnum[keyof typeof GetUserRoleBaseTypeEnum];
56
+ /**
57
+ * Check if a given object implements the GetUserRole interface.
58
+ */
59
+ export declare function instanceOfGetUserRole(value: object): value is GetUserRole;
60
+ export declare function GetUserRoleFromJSON(json: any): GetUserRole;
61
+ export declare function GetUserRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserRole;
62
+ export declare function GetUserRoleToJSON(json: any): GetUserRole;
63
+ export declare function GetUserRoleToJSONTyped(value?: GetUserRole | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetUserRoleBaseTypeEnum = void 0;
17
+ exports.instanceOfGetUserRole = instanceOfGetUserRole;
18
+ exports.GetUserRoleFromJSON = GetUserRoleFromJSON;
19
+ exports.GetUserRoleFromJSONTyped = GetUserRoleFromJSONTyped;
20
+ exports.GetUserRoleToJSON = GetUserRoleToJSON;
21
+ exports.GetUserRoleToJSONTyped = GetUserRoleToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetUserRoleBaseTypeEnum = {
26
+ Owner: 'Owner',
27
+ Admin: 'Admin',
28
+ Instructor: 'Instructor',
29
+ Learner: 'Learner',
30
+ ClientSuperAdmin: 'ClientSuperAdmin',
31
+ ClientManager: 'ClientManager',
32
+ PortalClientAdministrator: 'PortalClientAdministrator'
33
+ };
34
+ /**
35
+ * Check if a given object implements the GetUserRole interface.
36
+ */
37
+ function instanceOfGetUserRole(value) {
38
+ if (!('id' in value) || value['id'] === undefined)
39
+ return false;
40
+ if (!('name' in value) || value['name'] === undefined)
41
+ return false;
42
+ if (!('baseType' in value) || value['baseType'] === undefined)
43
+ return false;
44
+ if (!('isSystem' in value) || value['isSystem'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function GetUserRoleFromJSON(json) {
49
+ return GetUserRoleFromJSONTyped(json, false);
50
+ }
51
+ function GetUserRoleFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'name': json['name'],
58
+ 'baseType': json['base_type'],
59
+ 'isSystem': json['is_system'],
60
+ };
61
+ }
62
+ function GetUserRoleToJSON(json) {
63
+ return GetUserRoleToJSONTyped(json, false);
64
+ }
65
+ function GetUserRoleToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'id': value['id'],
71
+ 'name': value['name'],
72
+ 'base_type': value['baseType'],
73
+ 'is_system': value['isSystem'],
74
+ };
75
+ }
@@ -17,7 +17,7 @@
17
17
  export interface ManualSelection {
18
18
  /**
19
19
  *
20
- * @type {string}
20
+ * @type {ManualSelectionMethodEnum}
21
21
  * @memberof ManualSelection
22
22
  */
23
23
  method: ManualSelectionMethodEnum;
@@ -17,7 +17,7 @@
17
17
  export interface MultipleAnswer {
18
18
  /**
19
19
  *
20
- * @type {string}
20
+ * @type {MultipleAnswerTypeEnum}
21
21
  * @memberof MultipleAnswer
22
22
  */
23
23
  type: MultipleAnswerTypeEnum;
@@ -17,7 +17,7 @@
17
17
  export interface MultipleAnswer1 {
18
18
  /**
19
19
  *
20
- * @type {string}
20
+ * @type {MultipleAnswer1TypeEnum}
21
21
  * @memberof MultipleAnswer1
22
22
  */
23
23
  type: MultipleAnswer1TypeEnum;
@@ -17,7 +17,7 @@
17
17
  export interface NoAnswer {
18
18
  /**
19
19
  *
20
- * @type {string}
20
+ * @type {NoAnswerTypeEnum}
21
21
  * @memberof NoAnswer
22
22
  */
23
23
  type: NoAnswerTypeEnum;
@@ -23,7 +23,7 @@ export interface PostContentUpload {
23
23
  name: string;
24
24
  /**
25
25
  * The type of content being uploaded
26
- * @type {string}
26
+ * @type {PostContentUploadContentTypeEnum}
27
27
  * @memberof PostContentUpload
28
28
  */
29
29
  contentType: PostContentUploadContentTypeEnum;
@@ -17,7 +17,7 @@
17
17
  export interface PostCourseExport {
18
18
  /**
19
19
  * The SCORM version to export
20
- * @type {string}
20
+ * @type {PostCourseExportScormVersionEnum}
21
21
  * @memberof PostCourseExport
22
22
  */
23
23
  scormVersion: PostCourseExportScormVersionEnum;
@@ -34,8 +34,8 @@ export interface PostPortalInvite {
34
34
  */
35
35
  lastName: string;
36
36
  /**
37
- *
38
- * @type {string}
37
+ * Role name to assign to the invited user
38
+ * @type {PostPortalInviteUserTypeEnum}
39
39
  * @memberof PostPortalInvite
40
40
  */
41
41
  userType: PostPortalInviteUserTypeEnum;
@@ -44,9 +44,13 @@ export interface PostPortalInvite {
44
44
  * @export
45
45
  */
46
46
  export declare const PostPortalInviteUserTypeEnum: {
47
+ readonly Owner: "Owner";
47
48
  readonly Admin: "Admin";
48
49
  readonly Instructor: "Instructor";
49
50
  readonly Learner: "Learner";
51
+ readonly ClientSuperAdmin: "ClientSuperAdmin";
52
+ readonly ClientManager: "ClientManager";
53
+ readonly PortalClientAdministrator: "PortalClientAdministrator";
50
54
  };
51
55
  export type PostPortalInviteUserTypeEnum = typeof PostPortalInviteUserTypeEnum[keyof typeof PostPortalInviteUserTypeEnum];
52
56
  /**
@@ -23,9 +23,13 @@ exports.PostPortalInviteToJSONTyped = PostPortalInviteToJSONTyped;
23
23
  * @export
24
24
  */
25
25
  exports.PostPortalInviteUserTypeEnum = {
26
+ Owner: 'Owner',
26
27
  Admin: 'Admin',
27
28
  Instructor: 'Instructor',
28
- Learner: 'Learner'
29
+ Learner: 'Learner',
30
+ ClientSuperAdmin: 'ClientSuperAdmin',
31
+ ClientManager: 'ClientManager',
32
+ PortalClientAdministrator: 'PortalClientAdministrator'
29
33
  };
30
34
  /**
31
35
  * Check if a given object implements the PostPortalInvite interface.
@@ -24,7 +24,7 @@ export interface PostQuestion {
24
24
  questionText: string;
25
25
  /**
26
26
  * Type of question: single answer (True/False, multiple choice), multiple answer, or fill in the blank
27
- * @type {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,69 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PostRoleBaseTypeEnum = void 0;
17
+ exports.instanceOfPostRole = instanceOfPostRole;
18
+ exports.PostRoleFromJSON = PostRoleFromJSON;
19
+ exports.PostRoleFromJSONTyped = PostRoleFromJSONTyped;
20
+ exports.PostRoleToJSON = PostRoleToJSON;
21
+ exports.PostRoleToJSONTyped = PostRoleToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PostRoleBaseTypeEnum = {
26
+ Owner: 'Owner',
27
+ Admin: 'Admin',
28
+ Instructor: 'Instructor',
29
+ Learner: 'Learner',
30
+ ClientSuperAdmin: 'ClientSuperAdmin',
31
+ ClientManager: 'ClientManager',
32
+ PortalClientAdministrator: 'PortalClientAdministrator'
33
+ };
34
+ /**
35
+ * Check if a given object implements the PostRole interface.
36
+ */
37
+ function instanceOfPostRole(value) {
38
+ if (!('name' in value) || value['name'] === undefined)
39
+ return false;
40
+ if (!('baseType' in value) || value['baseType'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ function PostRoleFromJSON(json) {
45
+ return PostRoleFromJSONTyped(json, false);
46
+ }
47
+ function PostRoleFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'name': json['name'],
53
+ 'description': json['description'] == null ? undefined : json['description'],
54
+ 'baseType': json['base_type'],
55
+ };
56
+ }
57
+ function PostRoleToJSON(json) {
58
+ return PostRoleToJSONTyped(json, false);
59
+ }
60
+ function PostRoleToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'name': value['name'],
66
+ 'description': value['description'],
67
+ 'base_type': value['baseType'],
68
+ };
69
+ }
@@ -17,13 +17,13 @@
17
17
  export interface PutCourseEnrollment {
18
18
  /**
19
19
  * Current status of the enrollment
20
- * @type {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;