@easyedu/js-lsm-api 1.32.0 → 1.34.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 +9 -20
  63. package/dist/esm/models/GetPortal.js +8 -14
  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 +9 -20
  136. package/dist/models/GetPortal.js +9 -15
  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 -4
  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 +12 -26
  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
@@ -214,10 +214,9 @@ export interface VerifyScormManifestRequest {
214
214
  export class ContentApi extends runtime.BaseAPI {
215
215
 
216
216
  /**
217
- * Commit/persist SCORM CMI data changes to the database
218
- * Commit SCORM session data
217
+ * Creates request options for commitScormSession without sending the request
219
218
  */
220
- async commitScormSessionRaw(requestParameters: CommitScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
219
+ async commitScormSessionRequestOpts(requestParameters: CommitScormSessionRequest): Promise<runtime.RequestOpts> {
221
220
  if (requestParameters['scormSessionId'] == null) {
222
221
  throw new runtime.RequiredError(
223
222
  'scormSessionId',
@@ -233,12 +232,21 @@ export class ContentApi extends runtime.BaseAPI {
233
232
  let urlPath = `/scorm/sessions/{scormSessionId}/commit`;
234
233
  urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
235
234
 
236
- const response = await this.request({
235
+ return {
237
236
  path: urlPath,
238
237
  method: 'POST',
239
238
  headers: headerParameters,
240
239
  query: queryParameters,
241
- }, initOverrides);
240
+ };
241
+ }
242
+
243
+ /**
244
+ * Commit/persist SCORM CMI data changes to the database
245
+ * Commit SCORM session data
246
+ */
247
+ async commitScormSessionRaw(requestParameters: CommitScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
248
+ const requestOptions = await this.commitScormSessionRequestOpts(requestParameters);
249
+ const response = await this.request(requestOptions, initOverrides);
242
250
 
243
251
  return new runtime.VoidApiResponse(response);
244
252
  }
@@ -252,9 +260,9 @@ export class ContentApi extends runtime.BaseAPI {
252
260
  }
253
261
 
254
262
  /**
255
- * get content
263
+ * Creates request options for getContent without sending the request
256
264
  */
257
- async getContentRaw(requestParameters: GetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContent>> {
265
+ async getContentRequestOpts(requestParameters: GetContentRequest): Promise<runtime.RequestOpts> {
258
266
  if (requestParameters['contentId'] == null) {
259
267
  throw new runtime.RequiredError(
260
268
  'contentId',
@@ -286,12 +294,20 @@ export class ContentApi extends runtime.BaseAPI {
286
294
  urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
287
295
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
288
296
 
289
- const response = await this.request({
297
+ return {
290
298
  path: urlPath,
291
299
  method: 'GET',
292
300
  headers: headerParameters,
293
301
  query: queryParameters,
294
- }, initOverrides);
302
+ };
303
+ }
304
+
305
+ /**
306
+ * get content
307
+ */
308
+ async getContentRaw(requestParameters: GetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContent>> {
309
+ const requestOptions = await this.getContentRequestOpts(requestParameters);
310
+ const response = await this.request(requestOptions, initOverrides);
295
311
 
296
312
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentFromJSON(jsonValue));
297
313
  }
@@ -305,9 +321,9 @@ export class ContentApi extends runtime.BaseAPI {
305
321
  }
306
322
 
307
323
  /**
308
- * get content list
324
+ * Creates request options for getContentList without sending the request
309
325
  */
310
- async getContentListRaw(requestParameters: GetContentListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentList>> {
326
+ async getContentListRequestOpts(requestParameters: GetContentListRequest): Promise<runtime.RequestOpts> {
311
327
  if (requestParameters['moduleId'] == null) {
312
328
  throw new runtime.RequiredError(
313
329
  'moduleId',
@@ -331,12 +347,20 @@ export class ContentApi extends runtime.BaseAPI {
331
347
  urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
332
348
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
333
349
 
334
- const response = await this.request({
350
+ return {
335
351
  path: urlPath,
336
352
  method: 'GET',
337
353
  headers: headerParameters,
338
354
  query: queryParameters,
339
- }, initOverrides);
355
+ };
356
+ }
357
+
358
+ /**
359
+ * get content list
360
+ */
361
+ async getContentListRaw(requestParameters: GetContentListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentList>> {
362
+ const requestOptions = await this.getContentListRequestOpts(requestParameters);
363
+ const response = await this.request(requestOptions, initOverrides);
340
364
 
341
365
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentListFromJSON(jsonValue));
342
366
  }
@@ -350,9 +374,9 @@ export class ContentApi extends runtime.BaseAPI {
350
374
  }
351
375
 
352
376
  /**
353
- * get content session
377
+ * Creates request options for getContentSession without sending the request
354
378
  */
355
- async getContentSessionRaw(requestParameters: GetContentSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentSession>> {
379
+ async getContentSessionRequestOpts(requestParameters: GetContentSessionRequest): Promise<runtime.RequestOpts> {
356
380
  if (requestParameters['contentId'] == null) {
357
381
  throw new runtime.RequiredError(
358
382
  'contentId',
@@ -384,12 +408,20 @@ export class ContentApi extends runtime.BaseAPI {
384
408
  urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
385
409
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
386
410
 
387
- const response = await this.request({
411
+ return {
388
412
  path: urlPath,
389
413
  method: 'GET',
390
414
  headers: headerParameters,
391
415
  query: queryParameters,
392
- }, initOverrides);
416
+ };
417
+ }
418
+
419
+ /**
420
+ * get content session
421
+ */
422
+ async getContentSessionRaw(requestParameters: GetContentSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentSession>> {
423
+ const requestOptions = await this.getContentSessionRequestOpts(requestParameters);
424
+ const response = await this.request(requestOptions, initOverrides);
393
425
 
394
426
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentSessionFromJSON(jsonValue));
395
427
  }
@@ -403,10 +435,9 @@ export class ContentApi extends runtime.BaseAPI {
403
435
  }
404
436
 
405
437
  /**
406
- * Get detailed information about a specific content session
407
- * Get content session details (instructor only)
438
+ * Creates request options for getContentSessionDetail without sending the request
408
439
  */
409
- async getContentSessionDetailRaw(requestParameters: GetContentSessionDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentSessionDetail>> {
440
+ async getContentSessionDetailRequestOpts(requestParameters: GetContentSessionDetailRequest): Promise<runtime.RequestOpts> {
410
441
  if (requestParameters['contentId'] == null) {
411
442
  throw new runtime.RequiredError(
412
443
  'contentId',
@@ -446,12 +477,21 @@ export class ContentApi extends runtime.BaseAPI {
446
477
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
447
478
  urlPath = urlPath.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId'])));
448
479
 
449
- const response = await this.request({
480
+ return {
450
481
  path: urlPath,
451
482
  method: 'GET',
452
483
  headers: headerParameters,
453
484
  query: queryParameters,
454
- }, initOverrides);
485
+ };
486
+ }
487
+
488
+ /**
489
+ * Get detailed information about a specific content session
490
+ * Get content session details (instructor only)
491
+ */
492
+ async getContentSessionDetailRaw(requestParameters: GetContentSessionDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentSessionDetail>> {
493
+ const requestOptions = await this.getContentSessionDetailRequestOpts(requestParameters);
494
+ const response = await this.request(requestOptions, initOverrides);
455
495
 
456
496
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentSessionDetailFromJSON(jsonValue));
457
497
  }
@@ -466,10 +506,9 @@ export class ContentApi extends runtime.BaseAPI {
466
506
  }
467
507
 
468
508
  /**
469
- * Returns detailed information about a specific version of the content, including sandbox launch URL and SCORM-specific data (package info and table of contents) if applicable.
470
- * Get details of a specific content version
509
+ * Creates request options for getContentVersion without sending the request
471
510
  */
472
- async getContentVersionRaw(requestParameters: GetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentVersion>> {
511
+ async getContentVersionRequestOpts(requestParameters: GetContentVersionRequest): Promise<runtime.RequestOpts> {
473
512
  if (requestParameters['contentId'] == null) {
474
513
  throw new runtime.RequiredError(
475
514
  'contentId',
@@ -509,12 +548,21 @@ export class ContentApi extends runtime.BaseAPI {
509
548
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
510
549
  urlPath = urlPath.replace(`{${"versionId"}}`, encodeURIComponent(String(requestParameters['versionId'])));
511
550
 
512
- const response = await this.request({
551
+ return {
513
552
  path: urlPath,
514
553
  method: 'GET',
515
554
  headers: headerParameters,
516
555
  query: queryParameters,
517
- }, initOverrides);
556
+ };
557
+ }
558
+
559
+ /**
560
+ * Returns detailed information about a specific version of the content, including sandbox launch URL and SCORM-specific data (package info and table of contents) if applicable.
561
+ * Get details of a specific content version
562
+ */
563
+ async getContentVersionRaw(requestParameters: GetContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentVersion>> {
564
+ const requestOptions = await this.getContentVersionRequestOpts(requestParameters);
565
+ const response = await this.request(requestOptions, initOverrides);
518
566
 
519
567
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentVersionFromJSON(jsonValue));
520
568
  }
@@ -529,10 +577,9 @@ export class ContentApi extends runtime.BaseAPI {
529
577
  }
530
578
 
531
579
  /**
532
- * Returns a paginated list of all versions for the specified content. Returns an empty array if the content has no versions.
533
- * Get all versions of a content
580
+ * Creates request options for getContentVersionList without sending the request
534
581
  */
535
- async getContentVersionListRaw(requestParameters: GetContentVersionListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentVersionList>> {
582
+ async getContentVersionListRequestOpts(requestParameters: GetContentVersionListRequest): Promise<runtime.RequestOpts> {
536
583
  if (requestParameters['contentId'] == null) {
537
584
  throw new runtime.RequiredError(
538
585
  'contentId',
@@ -572,12 +619,21 @@ export class ContentApi extends runtime.BaseAPI {
572
619
  urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
573
620
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
574
621
 
575
- const response = await this.request({
622
+ return {
576
623
  path: urlPath,
577
624
  method: 'GET',
578
625
  headers: headerParameters,
579
626
  query: queryParameters,
580
- }, initOverrides);
627
+ };
628
+ }
629
+
630
+ /**
631
+ * Returns a paginated list of all versions for the specified content. Returns an empty array if the content has no versions.
632
+ * Get all versions of a content
633
+ */
634
+ async getContentVersionListRaw(requestParameters: GetContentVersionListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentVersionList>> {
635
+ const requestOptions = await this.getContentVersionListRequestOpts(requestParameters);
636
+ const response = await this.request(requestOptions, initOverrides);
581
637
 
582
638
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentVersionListFromJSON(jsonValue));
583
639
  }
@@ -592,10 +648,9 @@ export class ContentApi extends runtime.BaseAPI {
592
648
  }
593
649
 
594
650
  /**
595
- * Get a paginated history of all SCORM API calls made during this session for debugging and troubleshooting
596
- * Get SCORM API call logs (instructor only)
651
+ * Creates request options for getScormApiLogs without sending the request
597
652
  */
598
- async getScormApiLogsRaw(requestParameters: GetScormApiLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetScormApiLogs>> {
653
+ async getScormApiLogsRequestOpts(requestParameters: GetScormApiLogsRequest): Promise<runtime.RequestOpts> {
599
654
  if (requestParameters['sessionId'] == null) {
600
655
  throw new runtime.RequiredError(
601
656
  'sessionId',
@@ -619,12 +674,21 @@ export class ContentApi extends runtime.BaseAPI {
619
674
  let urlPath = `/scorm/sessions/{sessionId}/api-logs`;
620
675
  urlPath = urlPath.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId'])));
621
676
 
622
- const response = await this.request({
677
+ return {
623
678
  path: urlPath,
624
679
  method: 'GET',
625
680
  headers: headerParameters,
626
681
  query: queryParameters,
627
- }, initOverrides);
682
+ };
683
+ }
684
+
685
+ /**
686
+ * Get a paginated history of all SCORM API calls made during this session for debugging and troubleshooting
687
+ * Get SCORM API call logs (instructor only)
688
+ */
689
+ async getScormApiLogsRaw(requestParameters: GetScormApiLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetScormApiLogs>> {
690
+ const requestOptions = await this.getScormApiLogsRequestOpts(requestParameters);
691
+ const response = await this.request(requestOptions, initOverrides);
628
692
 
629
693
  return new runtime.JSONApiResponse(response, (jsonValue) => GetScormApiLogsFromJSON(jsonValue));
630
694
  }
@@ -639,10 +703,9 @@ export class ContentApi extends runtime.BaseAPI {
639
703
  }
640
704
 
641
705
  /**
642
- * Returns package information and table of contents for a SCORM package
643
- * Get details of a SCORM package
706
+ * Creates request options for getScormPackage without sending the request
644
707
  */
645
- async getScormPackageRaw(requestParameters: GetScormPackageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetScormPackage>> {
708
+ async getScormPackageRequestOpts(requestParameters: GetScormPackageRequest): Promise<runtime.RequestOpts> {
646
709
  if (requestParameters['packageId'] == null) {
647
710
  throw new runtime.RequiredError(
648
711
  'packageId',
@@ -658,12 +721,21 @@ export class ContentApi extends runtime.BaseAPI {
658
721
  let urlPath = `/scorm/packages/{packageId}`;
659
722
  urlPath = urlPath.replace(`{${"packageId"}}`, encodeURIComponent(String(requestParameters['packageId'])));
660
723
 
661
- const response = await this.request({
724
+ return {
662
725
  path: urlPath,
663
726
  method: 'GET',
664
727
  headers: headerParameters,
665
728
  query: queryParameters,
666
- }, initOverrides);
729
+ };
730
+ }
731
+
732
+ /**
733
+ * Returns package information and table of contents for a SCORM package
734
+ * Get details of a SCORM package
735
+ */
736
+ async getScormPackageRaw(requestParameters: GetScormPackageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetScormPackage>> {
737
+ const requestOptions = await this.getScormPackageRequestOpts(requestParameters);
738
+ const response = await this.request(requestOptions, initOverrides);
667
739
 
668
740
  return new runtime.JSONApiResponse(response, (jsonValue) => GetScormPackageFromJSON(jsonValue));
669
741
  }
@@ -678,10 +750,9 @@ export class ContentApi extends runtime.BaseAPI {
678
750
  }
679
751
 
680
752
  /**
681
- * Get detailed SCORM session data including CMI data dump for debugging
682
- * Get SCORM session data (instructor only)
753
+ * Creates request options for getScormSessionData without sending the request
683
754
  */
684
- async getScormSessionDataRaw(requestParameters: GetScormSessionDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetScormSessionData>> {
755
+ async getScormSessionDataRequestOpts(requestParameters: GetScormSessionDataRequest): Promise<runtime.RequestOpts> {
685
756
  if (requestParameters['scormSessionId'] == null) {
686
757
  throw new runtime.RequiredError(
687
758
  'scormSessionId',
@@ -697,12 +768,21 @@ export class ContentApi extends runtime.BaseAPI {
697
768
  let urlPath = `/scorm/sessions/{scormSessionId}/session-data`;
698
769
  urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
699
770
 
700
- const response = await this.request({
771
+ return {
701
772
  path: urlPath,
702
773
  method: 'GET',
703
774
  headers: headerParameters,
704
775
  query: queryParameters,
705
- }, initOverrides);
776
+ };
777
+ }
778
+
779
+ /**
780
+ * Get detailed SCORM session data including CMI data dump for debugging
781
+ * Get SCORM session data (instructor only)
782
+ */
783
+ async getScormSessionDataRaw(requestParameters: GetScormSessionDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetScormSessionData>> {
784
+ const requestOptions = await this.getScormSessionDataRequestOpts(requestParameters);
785
+ const response = await this.request(requestOptions, initOverrides);
706
786
 
707
787
  return new runtime.JSONApiResponse(response, (jsonValue) => GetScormSessionDataFromJSON(jsonValue));
708
788
  }
@@ -717,10 +797,9 @@ export class ContentApi extends runtime.BaseAPI {
717
797
  }
718
798
 
719
799
  /**
720
- * Retrieve the value of a specific SCORM CMI data element from the session
721
- * Get a SCORM CMI data element value
800
+ * Creates request options for getScormValue without sending the request
722
801
  */
723
- async getScormValueRaw(requestParameters: GetScormValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScormGetValueResponse>> {
802
+ async getScormValueRequestOpts(requestParameters: GetScormValueRequest): Promise<runtime.RequestOpts> {
724
803
  if (requestParameters['scormSessionId'] == null) {
725
804
  throw new runtime.RequiredError(
726
805
  'scormSessionId',
@@ -747,12 +826,21 @@ export class ContentApi extends runtime.BaseAPI {
747
826
  let urlPath = `/scorm/sessions/{scormSessionId}/get-value`;
748
827
  urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
749
828
 
750
- const response = await this.request({
829
+ return {
751
830
  path: urlPath,
752
831
  method: 'GET',
753
832
  headers: headerParameters,
754
833
  query: queryParameters,
755
- }, initOverrides);
834
+ };
835
+ }
836
+
837
+ /**
838
+ * Retrieve the value of a specific SCORM CMI data element from the session
839
+ * Get a SCORM CMI data element value
840
+ */
841
+ async getScormValueRaw(requestParameters: GetScormValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScormGetValueResponse>> {
842
+ const requestOptions = await this.getScormValueRequestOpts(requestParameters);
843
+ const response = await this.request(requestOptions, initOverrides);
756
844
 
757
845
  return new runtime.JSONApiResponse(response, (jsonValue) => ScormGetValueResponseFromJSON(jsonValue));
758
846
  }
@@ -767,10 +855,9 @@ export class ContentApi extends runtime.BaseAPI {
767
855
  }
768
856
 
769
857
  /**
770
- * Initialize a SCORM session for content playback
771
- * Initialize a SCORM session
858
+ * Creates request options for initializeScormSession without sending the request
772
859
  */
773
- async initializeScormSessionRaw(requestParameters: InitializeScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
860
+ async initializeScormSessionRequestOpts(requestParameters: InitializeScormSessionRequest): Promise<runtime.RequestOpts> {
774
861
  if (requestParameters['scormSessionId'] == null) {
775
862
  throw new runtime.RequiredError(
776
863
  'scormSessionId',
@@ -786,12 +873,21 @@ export class ContentApi extends runtime.BaseAPI {
786
873
  let urlPath = `/scorm/sessions/{scormSessionId}/initialize`;
787
874
  urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
788
875
 
789
- const response = await this.request({
876
+ return {
790
877
  path: urlPath,
791
878
  method: 'POST',
792
879
  headers: headerParameters,
793
880
  query: queryParameters,
794
- }, initOverrides);
881
+ };
882
+ }
883
+
884
+ /**
885
+ * Initialize a SCORM session for content playback
886
+ * Initialize a SCORM session
887
+ */
888
+ async initializeScormSessionRaw(requestParameters: InitializeScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
889
+ const requestOptions = await this.initializeScormSessionRequestOpts(requestParameters);
890
+ const response = await this.request(requestOptions, initOverrides);
795
891
 
796
892
  return new runtime.VoidApiResponse(response);
797
893
  }
@@ -805,10 +901,9 @@ export class ContentApi extends runtime.BaseAPI {
805
901
  }
806
902
 
807
903
  /**
808
- * Get a paginated list of all content sessions for a specific content item
809
- * List content sessions (instructor only)
904
+ * Creates request options for listContentSessions without sending the request
810
905
  */
811
- async listContentSessionsRaw(requestParameters: ListContentSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentSessionList>> {
906
+ async listContentSessionsRequestOpts(requestParameters: ListContentSessionsRequest): Promise<runtime.RequestOpts> {
812
907
  if (requestParameters['contentId'] == null) {
813
908
  throw new runtime.RequiredError(
814
909
  'contentId',
@@ -856,12 +951,21 @@ export class ContentApi extends runtime.BaseAPI {
856
951
  urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
857
952
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
858
953
 
859
- const response = await this.request({
954
+ return {
860
955
  path: urlPath,
861
956
  method: 'GET',
862
957
  headers: headerParameters,
863
958
  query: queryParameters,
864
- }, initOverrides);
959
+ };
960
+ }
961
+
962
+ /**
963
+ * Get a paginated list of all content sessions for a specific content item
964
+ * List content sessions (instructor only)
965
+ */
966
+ async listContentSessionsRaw(requestParameters: ListContentSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentSessionList>> {
967
+ const requestOptions = await this.listContentSessionsRequestOpts(requestParameters);
968
+ const response = await this.request(requestOptions, initOverrides);
865
969
 
866
970
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentSessionListFromJSON(jsonValue));
867
971
  }
@@ -876,9 +980,9 @@ export class ContentApi extends runtime.BaseAPI {
876
980
  }
877
981
 
878
982
  /**
879
- * Post a new content process
983
+ * Creates request options for postContentProcess without sending the request
880
984
  */
881
- async postContentProcessRaw(requestParameters: PostContentProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContent>> {
985
+ async postContentProcessRequestOpts(requestParameters: PostContentProcessRequest): Promise<runtime.RequestOpts> {
882
986
  if (requestParameters['moduleId'] == null) {
883
987
  throw new runtime.RequiredError(
884
988
  'moduleId',
@@ -910,12 +1014,20 @@ export class ContentApi extends runtime.BaseAPI {
910
1014
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
911
1015
  urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
912
1016
 
913
- const response = await this.request({
1017
+ return {
914
1018
  path: urlPath,
915
1019
  method: 'POST',
916
1020
  headers: headerParameters,
917
1021
  query: queryParameters,
918
- }, initOverrides);
1022
+ };
1023
+ }
1024
+
1025
+ /**
1026
+ * Post a new content process
1027
+ */
1028
+ async postContentProcessRaw(requestParameters: PostContentProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContent>> {
1029
+ const requestOptions = await this.postContentProcessRequestOpts(requestParameters);
1030
+ const response = await this.request(requestOptions, initOverrides);
919
1031
 
920
1032
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentFromJSON(jsonValue));
921
1033
  }
@@ -929,10 +1041,10 @@ export class ContentApi extends runtime.BaseAPI {
929
1041
  }
930
1042
 
931
1043
  /**
932
- * Create a new quiz content
1044
+ * Creates request options for postContentQuiz without sending the request
933
1045
  * @deprecated
934
1046
  */
935
- async postContentQuizRaw(requestParameters: PostContentQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContent>> {
1047
+ async postContentQuizRequestOpts(requestParameters: PostContentQuizRequest): Promise<runtime.RequestOpts> {
936
1048
  if (requestParameters['moduleId'] == null) {
937
1049
  throw new runtime.RequiredError(
938
1050
  'moduleId',
@@ -965,13 +1077,22 @@ export class ContentApi extends runtime.BaseAPI {
965
1077
  urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
966
1078
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
967
1079
 
968
- const response = await this.request({
1080
+ return {
969
1081
  path: urlPath,
970
1082
  method: 'POST',
971
1083
  headers: headerParameters,
972
1084
  query: queryParameters,
973
1085
  body: PostContentQuizToJSON(requestParameters['postContentQuiz']),
974
- }, initOverrides);
1086
+ };
1087
+ }
1088
+
1089
+ /**
1090
+ * Create a new quiz content
1091
+ * @deprecated
1092
+ */
1093
+ async postContentQuizRaw(requestParameters: PostContentQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContent>> {
1094
+ const requestOptions = await this.postContentQuizRequestOpts(requestParameters);
1095
+ const response = await this.request(requestOptions, initOverrides);
975
1096
 
976
1097
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentFromJSON(jsonValue));
977
1098
  }
@@ -986,9 +1107,9 @@ export class ContentApi extends runtime.BaseAPI {
986
1107
  }
987
1108
 
988
1109
  /**
989
- * Post a new content session
1110
+ * Creates request options for postContentSession without sending the request
990
1111
  */
991
- async postContentSessionRaw(requestParameters: PostContentSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostContentSession>> {
1112
+ async postContentSessionRequestOpts(requestParameters: PostContentSessionRequest): Promise<runtime.RequestOpts> {
992
1113
  if (requestParameters['contentId'] == null) {
993
1114
  throw new runtime.RequiredError(
994
1115
  'contentId',
@@ -1024,12 +1145,20 @@ export class ContentApi extends runtime.BaseAPI {
1024
1145
  urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
1025
1146
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
1026
1147
 
1027
- const response = await this.request({
1148
+ return {
1028
1149
  path: urlPath,
1029
1150
  method: 'POST',
1030
1151
  headers: headerParameters,
1031
1152
  query: queryParameters,
1032
- }, initOverrides);
1153
+ };
1154
+ }
1155
+
1156
+ /**
1157
+ * Post a new content session
1158
+ */
1159
+ async postContentSessionRaw(requestParameters: PostContentSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostContentSession>> {
1160
+ const requestOptions = await this.postContentSessionRequestOpts(requestParameters);
1161
+ const response = await this.request(requestOptions, initOverrides);
1033
1162
 
1034
1163
  return new runtime.JSONApiResponse(response, (jsonValue) => PostContentSessionFromJSON(jsonValue));
1035
1164
  }
@@ -1043,9 +1172,9 @@ export class ContentApi extends runtime.BaseAPI {
1043
1172
  }
1044
1173
 
1045
1174
  /**
1046
- * Post a new content upload
1175
+ * Creates request options for postContentUpload without sending the request
1047
1176
  */
1048
- async postContentUploadRaw(requestParameters: PostContentUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentUpload>> {
1177
+ async postContentUploadRequestOpts(requestParameters: PostContentUploadRequest): Promise<runtime.RequestOpts> {
1049
1178
  if (requestParameters['moduleId'] == null) {
1050
1179
  throw new runtime.RequiredError(
1051
1180
  'moduleId',
@@ -1078,13 +1207,21 @@ export class ContentApi extends runtime.BaseAPI {
1078
1207
  urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
1079
1208
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
1080
1209
 
1081
- const response = await this.request({
1210
+ return {
1082
1211
  path: urlPath,
1083
1212
  method: 'POST',
1084
1213
  headers: headerParameters,
1085
1214
  query: queryParameters,
1086
1215
  body: PostContentUploadToJSON(requestParameters['postContentUpload']),
1087
- }, initOverrides);
1216
+ };
1217
+ }
1218
+
1219
+ /**
1220
+ * Post a new content upload
1221
+ */
1222
+ async postContentUploadRaw(requestParameters: PostContentUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentUpload>> {
1223
+ const requestOptions = await this.postContentUploadRequestOpts(requestParameters);
1224
+ const response = await this.request(requestOptions, initOverrides);
1088
1225
 
1089
1226
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentUploadFromJSON(jsonValue));
1090
1227
  }
@@ -1098,9 +1235,9 @@ export class ContentApi extends runtime.BaseAPI {
1098
1235
  }
1099
1236
 
1100
1237
  /**
1101
- * Update content by id
1238
+ * Creates request options for putContent without sending the request
1102
1239
  */
1103
- async putContentRaw(requestParameters: PutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContent>> {
1240
+ async putContentRequestOpts(requestParameters: PutContentRequest): Promise<runtime.RequestOpts> {
1104
1241
  if (requestParameters['contentId'] == null) {
1105
1242
  throw new runtime.RequiredError(
1106
1243
  'contentId',
@@ -1141,13 +1278,21 @@ export class ContentApi extends runtime.BaseAPI {
1141
1278
  urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
1142
1279
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
1143
1280
 
1144
- const response = await this.request({
1281
+ return {
1145
1282
  path: urlPath,
1146
1283
  method: 'PUT',
1147
1284
  headers: headerParameters,
1148
1285
  query: queryParameters,
1149
1286
  body: PutContentToJSON(requestParameters['putContent']),
1150
- }, initOverrides);
1287
+ };
1288
+ }
1289
+
1290
+ /**
1291
+ * Update content by id
1292
+ */
1293
+ async putContentRaw(requestParameters: PutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContent>> {
1294
+ const requestOptions = await this.putContentRequestOpts(requestParameters);
1295
+ const response = await this.request(requestOptions, initOverrides);
1151
1296
 
1152
1297
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentFromJSON(jsonValue));
1153
1298
  }
@@ -1161,10 +1306,9 @@ export class ContentApi extends runtime.BaseAPI {
1161
1306
  }
1162
1307
 
1163
1308
  /**
1164
- * Activates this version by setting is_active to true. Automatically deactivates all other versions of the same content. Only setting is_active to true is allowed.
1165
- * Update a content version
1309
+ * Creates request options for putContentVersion without sending the request
1166
1310
  */
1167
- async putContentVersionRaw(requestParameters: PutContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentVersion>> {
1311
+ async putContentVersionRequestOpts(requestParameters: PutContentVersionRequest): Promise<runtime.RequestOpts> {
1168
1312
  if (requestParameters['contentId'] == null) {
1169
1313
  throw new runtime.RequiredError(
1170
1314
  'contentId',
@@ -1213,13 +1357,22 @@ export class ContentApi extends runtime.BaseAPI {
1213
1357
  urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
1214
1358
  urlPath = urlPath.replace(`{${"versionId"}}`, encodeURIComponent(String(requestParameters['versionId'])));
1215
1359
 
1216
- const response = await this.request({
1360
+ return {
1217
1361
  path: urlPath,
1218
1362
  method: 'PUT',
1219
1363
  headers: headerParameters,
1220
1364
  query: queryParameters,
1221
1365
  body: PutContentVersionToJSON(requestParameters['putContentVersion']),
1222
- }, initOverrides);
1366
+ };
1367
+ }
1368
+
1369
+ /**
1370
+ * Activates this version by setting is_active to true. Automatically deactivates all other versions of the same content. Only setting is_active to true is allowed.
1371
+ * Update a content version
1372
+ */
1373
+ async putContentVersionRaw(requestParameters: PutContentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentVersion>> {
1374
+ const requestOptions = await this.putContentVersionRequestOpts(requestParameters);
1375
+ const response = await this.request(requestOptions, initOverrides);
1223
1376
 
1224
1377
  return new runtime.JSONApiResponse(response, (jsonValue) => GetContentVersionFromJSON(jsonValue));
1225
1378
  }
@@ -1234,10 +1387,9 @@ export class ContentApi extends runtime.BaseAPI {
1234
1387
  }
1235
1388
 
1236
1389
  /**
1237
- * Update the value of a specific SCORM CMI data element in the session
1238
- * Set a SCORM CMI data element value
1390
+ * Creates request options for setScormValue without sending the request
1239
1391
  */
1240
- async setScormValueRaw(requestParameters: SetScormValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScormSetValueResponse>> {
1392
+ async setScormValueRequestOpts(requestParameters: SetScormValueRequest): Promise<runtime.RequestOpts> {
1241
1393
  if (requestParameters['scormSessionId'] == null) {
1242
1394
  throw new runtime.RequiredError(
1243
1395
  'scormSessionId',
@@ -1262,13 +1414,22 @@ export class ContentApi extends runtime.BaseAPI {
1262
1414
  let urlPath = `/scorm/sessions/{scormSessionId}/set-value`;
1263
1415
  urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
1264
1416
 
1265
- const response = await this.request({
1417
+ return {
1266
1418
  path: urlPath,
1267
1419
  method: 'POST',
1268
1420
  headers: headerParameters,
1269
1421
  query: queryParameters,
1270
1422
  body: ScormSetValueRequestToJSON(requestParameters['scormSetValueRequest']),
1271
- }, initOverrides);
1423
+ };
1424
+ }
1425
+
1426
+ /**
1427
+ * Update the value of a specific SCORM CMI data element in the session
1428
+ * Set a SCORM CMI data element value
1429
+ */
1430
+ async setScormValueRaw(requestParameters: SetScormValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScormSetValueResponse>> {
1431
+ const requestOptions = await this.setScormValueRequestOpts(requestParameters);
1432
+ const response = await this.request(requestOptions, initOverrides);
1272
1433
 
1273
1434
  return new runtime.JSONApiResponse(response, (jsonValue) => ScormSetValueResponseFromJSON(jsonValue));
1274
1435
  }
@@ -1283,10 +1444,9 @@ export class ContentApi extends runtime.BaseAPI {
1283
1444
  }
1284
1445
 
1285
1446
  /**
1286
- * Terminate the SCORM session and finalize all data
1287
- * Terminate a SCORM session
1447
+ * Creates request options for terminateScormSession without sending the request
1288
1448
  */
1289
- async terminateScormSessionRaw(requestParameters: TerminateScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1449
+ async terminateScormSessionRequestOpts(requestParameters: TerminateScormSessionRequest): Promise<runtime.RequestOpts> {
1290
1450
  if (requestParameters['scormSessionId'] == null) {
1291
1451
  throw new runtime.RequiredError(
1292
1452
  'scormSessionId',
@@ -1302,12 +1462,21 @@ export class ContentApi extends runtime.BaseAPI {
1302
1462
  let urlPath = `/scorm/sessions/{scormSessionId}/terminate`;
1303
1463
  urlPath = urlPath.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId'])));
1304
1464
 
1305
- const response = await this.request({
1465
+ return {
1306
1466
  path: urlPath,
1307
1467
  method: 'POST',
1308
1468
  headers: headerParameters,
1309
1469
  query: queryParameters,
1310
- }, initOverrides);
1470
+ };
1471
+ }
1472
+
1473
+ /**
1474
+ * Terminate the SCORM session and finalize all data
1475
+ * Terminate a SCORM session
1476
+ */
1477
+ async terminateScormSessionRaw(requestParameters: TerminateScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1478
+ const requestOptions = await this.terminateScormSessionRequestOpts(requestParameters);
1479
+ const response = await this.request(requestOptions, initOverrides);
1311
1480
 
1312
1481
  return new runtime.VoidApiResponse(response);
1313
1482
  }
@@ -1321,10 +1490,9 @@ export class ContentApi extends runtime.BaseAPI {
1321
1490
  }
1322
1491
 
1323
1492
  /**
1324
- * Takes raw imsmanifest.xml content and returns the parsed manifest structure with validation warnings
1325
- * Parse and verify a SCORM manifest
1493
+ * Creates request options for verifyScormManifest without sending the request
1326
1494
  */
1327
- async verifyScormManifestRaw(requestParameters: VerifyScormManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostVerifyManifest>> {
1495
+ async verifyScormManifestRequestOpts(requestParameters: VerifyScormManifestRequest): Promise<runtime.RequestOpts> {
1328
1496
  if (requestParameters['body'] == null) {
1329
1497
  throw new runtime.RequiredError(
1330
1498
  'body',
@@ -1341,13 +1509,22 @@ export class ContentApi extends runtime.BaseAPI {
1341
1509
 
1342
1510
  let urlPath = `/scorm/tools/verify-manifest`;
1343
1511
 
1344
- const response = await this.request({
1512
+ return {
1345
1513
  path: urlPath,
1346
1514
  method: 'POST',
1347
1515
  headers: headerParameters,
1348
1516
  query: queryParameters,
1349
1517
  body: requestParameters['body'] as any,
1350
- }, initOverrides);
1518
+ };
1519
+ }
1520
+
1521
+ /**
1522
+ * Takes raw imsmanifest.xml content and returns the parsed manifest structure with validation warnings
1523
+ * Parse and verify a SCORM manifest
1524
+ */
1525
+ async verifyScormManifestRaw(requestParameters: VerifyScormManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostVerifyManifest>> {
1526
+ const requestOptions = await this.verifyScormManifestRequestOpts(requestParameters);
1527
+ const response = await this.request(requestOptions, initOverrides);
1351
1528
 
1352
1529
  return new runtime.JSONApiResponse(response, (jsonValue) => PostVerifyManifestFromJSON(jsonValue));
1353
1530
  }