@easyedu/js-lsm-api 1.46.0 → 1.48.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 (121) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/ContentApi.d.ts +18 -1
  4. package/dist/apis/ContentApi.js +47 -0
  5. package/dist/apis/ModuleApi.d.ts +17 -1
  6. package/dist/apis/ModuleApi.js +43 -0
  7. package/dist/apis/QuestionApi.d.ts +0 -1
  8. package/dist/apis/QuestionApi.js +0 -3
  9. package/dist/esm/apis/ContentApi.d.ts +18 -1
  10. package/dist/esm/apis/ContentApi.js +48 -1
  11. package/dist/esm/apis/ModuleApi.d.ts +17 -1
  12. package/dist/esm/apis/ModuleApi.js +44 -1
  13. package/dist/esm/apis/QuestionApi.d.ts +0 -1
  14. package/dist/esm/apis/QuestionApi.js +0 -3
  15. package/dist/esm/models/CriteriaBasedSelectionCriteria.d.ts +0 -6
  16. package/dist/esm/models/CriteriaBasedSelectionCriteria.js +0 -2
  17. package/dist/esm/models/GetQuestion.d.ts +0 -6
  18. package/dist/esm/models/GetQuestion.js +0 -2
  19. package/dist/esm/models/GetQuestionListFilters.d.ts +0 -6
  20. package/dist/esm/models/GetQuestionListFilters.js +0 -2
  21. package/dist/esm/models/GetQuizCriteriaItem.d.ts +0 -6
  22. package/dist/esm/models/GetQuizCriteriaItem.js +0 -2
  23. package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +0 -6
  24. package/dist/esm/models/GetQuizCriteriaListItemsInner.js +0 -2
  25. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +0 -6
  26. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +0 -2
  27. package/dist/esm/models/PostContentQuiz.d.ts +6 -0
  28. package/dist/esm/models/PostContentQuiz.js +2 -0
  29. package/dist/esm/models/PostContentUpload.d.ts +6 -0
  30. package/dist/esm/models/PostContentUpload.js +2 -0
  31. package/dist/esm/models/PostModule.d.ts +1 -1
  32. package/dist/esm/models/PostModule.js +1 -3
  33. package/dist/esm/models/PostQuestion.d.ts +0 -6
  34. package/dist/esm/models/PostQuestion.js +0 -2
  35. package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +0 -6
  36. package/dist/esm/models/PostQuizCriteriaCriteriaInner.js +0 -2
  37. package/dist/esm/models/PutContentReorder.d.ts +32 -0
  38. package/dist/esm/models/PutContentReorder.js +43 -0
  39. package/dist/esm/models/PutCourse.d.ts +0 -6
  40. package/dist/esm/models/PutCourse.js +0 -2
  41. package/dist/esm/models/PutModule.d.ts +0 -6
  42. package/dist/esm/models/PutModule.js +0 -2
  43. package/dist/esm/models/PutModuleReorder.d.ts +32 -0
  44. package/dist/esm/models/PutModuleReorder.js +43 -0
  45. package/dist/esm/models/PutQuestion.d.ts +0 -6
  46. package/dist/esm/models/PutQuestion.js +0 -2
  47. package/dist/esm/models/index.d.ts +2 -0
  48. package/dist/esm/models/index.js +2 -0
  49. package/dist/models/CriteriaBasedSelectionCriteria.d.ts +0 -6
  50. package/dist/models/CriteriaBasedSelectionCriteria.js +0 -2
  51. package/dist/models/GetQuestion.d.ts +0 -6
  52. package/dist/models/GetQuestion.js +0 -2
  53. package/dist/models/GetQuestionListFilters.d.ts +0 -6
  54. package/dist/models/GetQuestionListFilters.js +0 -2
  55. package/dist/models/GetQuizCriteriaItem.d.ts +0 -6
  56. package/dist/models/GetQuizCriteriaItem.js +0 -2
  57. package/dist/models/GetQuizCriteriaListItemsInner.d.ts +0 -6
  58. package/dist/models/GetQuizCriteriaListItemsInner.js +0 -2
  59. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +0 -6
  60. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +0 -2
  61. package/dist/models/PostContentQuiz.d.ts +6 -0
  62. package/dist/models/PostContentQuiz.js +2 -0
  63. package/dist/models/PostContentUpload.d.ts +6 -0
  64. package/dist/models/PostContentUpload.js +2 -0
  65. package/dist/models/PostModule.d.ts +1 -1
  66. package/dist/models/PostModule.js +1 -3
  67. package/dist/models/PostQuestion.d.ts +0 -6
  68. package/dist/models/PostQuestion.js +0 -2
  69. package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +0 -6
  70. package/dist/models/PostQuizCriteriaCriteriaInner.js +0 -2
  71. package/dist/models/PutContentReorder.d.ts +32 -0
  72. package/dist/models/PutContentReorder.js +50 -0
  73. package/dist/models/PutCourse.d.ts +0 -6
  74. package/dist/models/PutCourse.js +0 -2
  75. package/dist/models/PutModule.d.ts +0 -6
  76. package/dist/models/PutModule.js +0 -2
  77. package/dist/models/PutModuleReorder.d.ts +32 -0
  78. package/dist/models/PutModuleReorder.js +50 -0
  79. package/dist/models/PutQuestion.d.ts +0 -6
  80. package/dist/models/PutQuestion.js +0 -2
  81. package/dist/models/index.d.ts +2 -0
  82. package/dist/models/index.js +2 -0
  83. package/docs/ContentApi.md +72 -0
  84. package/docs/CriteriaBasedSelectionCriteria.md +0 -2
  85. package/docs/GetQuestion.md +0 -2
  86. package/docs/GetQuestionListFilters.md +0 -2
  87. package/docs/GetQuizCriteriaItem.md +0 -2
  88. package/docs/GetQuizCriteriaListItemsInner.md +0 -2
  89. package/docs/GetQuizQuestionsItemsInnerQuestionDetails.md +0 -2
  90. package/docs/ModuleApi.md +69 -0
  91. package/docs/PostContentQuiz.md +2 -0
  92. package/docs/PostContentUpload.md +2 -0
  93. package/docs/PostQuestion.md +0 -2
  94. package/docs/PostQuizCriteriaCriteriaInner.md +0 -2
  95. package/docs/PutContentReorder.md +34 -0
  96. package/docs/PutCourse.md +0 -2
  97. package/docs/PutModule.md +0 -2
  98. package/docs/PutModuleReorder.md +34 -0
  99. package/docs/PutQuestion.md +0 -2
  100. package/docs/QuestionApi.md +1 -4
  101. package/package.json +1 -1
  102. package/src/apis/ContentApi.ts +71 -0
  103. package/src/apis/ModuleApi.ts +62 -0
  104. package/src/apis/QuestionApi.ts +0 -5
  105. package/src/models/CriteriaBasedSelectionCriteria.ts +0 -8
  106. package/src/models/GetQuestion.ts +0 -8
  107. package/src/models/GetQuestionListFilters.ts +0 -8
  108. package/src/models/GetQuizCriteriaItem.ts +0 -8
  109. package/src/models/GetQuizCriteriaListItemsInner.ts +0 -8
  110. package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +0 -8
  111. package/src/models/PostContentQuiz.ts +8 -0
  112. package/src/models/PostContentUpload.ts +8 -0
  113. package/src/models/PostModule.ts +2 -3
  114. package/src/models/PostQuestion.ts +0 -8
  115. package/src/models/PostQuizCriteriaCriteriaInner.ts +0 -8
  116. package/src/models/PutContentReorder.ts +66 -0
  117. package/src/models/PutCourse.ts +0 -8
  118. package/src/models/PutModule.ts +0 -8
  119. package/src/models/PutModuleReorder.ts +66 -0
  120. package/src/models/PutQuestion.ts +0 -8
  121. package/src/models/index.ts +2 -0
@@ -203,10 +203,12 @@ docs/PostVerifyManifest.md
203
203
  docs/PostVerifyManifestItemsInner.md
204
204
  docs/PostVerifyManifestResourcesInner.md
205
205
  docs/PutContent.md
206
+ docs/PutContentReorder.md
206
207
  docs/PutContentVersion.md
207
208
  docs/PutCourse.md
208
209
  docs/PutCourseEnrollment.md
209
210
  docs/PutModule.md
211
+ docs/PutModuleReorder.md
210
212
  docs/PutPortalBranding.md
211
213
  docs/PutQuestion.md
212
214
  docs/PutQuestionAnswerChoicesInner.md
@@ -452,10 +454,12 @@ src/models/PostVerifyManifest.ts
452
454
  src/models/PostVerifyManifestItemsInner.ts
453
455
  src/models/PostVerifyManifestResourcesInner.ts
454
456
  src/models/PutContent.ts
457
+ src/models/PutContentReorder.ts
455
458
  src/models/PutContentVersion.ts
456
459
  src/models/PutCourse.ts
457
460
  src/models/PutCourseEnrollment.ts
458
461
  src/models/PutModule.ts
462
+ src/models/PutModuleReorder.ts
459
463
  src/models/PutPortalBranding.ts
460
464
  src/models/PutQuestion.ts
461
465
  src/models/PutQuestionAnswerChoicesInner.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.46.0
1
+ # @easyedu/js-lsm-api@1.48.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -73,6 +73,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
73
73
  *ContentApi* | [**postContentSession**](docs/ContentApi.md#postcontentsession) | **POST** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/session | Post a new content session
74
74
  *ContentApi* | [**postContentUpload**](docs/ContentApi.md#postcontentupload) | **POST** /courses/{courseId}/modules/{moduleId}/contents/upload | Post a new content upload
75
75
  *ContentApi* | [**putContent**](docs/ContentApi.md#putcontent) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId} | Update content by id
76
+ *ContentApi* | [**putContentReorder**](docs/ContentApi.md#putcontentreorder) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/reorder | Reorder content in a module
76
77
  *ContentApi* | [**putContentVersion**](docs/ContentApi.md#putcontentversion) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId} | Update a content version
77
78
  *ContentApi* | [**setScormValue**](docs/ContentApi.md#setscormvalue) | **POST** /scorm/sessions/{scormSessionId}/set-value | Set a SCORM CMI data element value
78
79
  *ContentApi* | [**terminateScormSession**](docs/ContentApi.md#terminatescormsession) | **POST** /scorm/sessions/{scormSessionId}/terminate | Terminate a SCORM session
@@ -95,6 +96,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
95
96
  *ModuleApi* | [**getModuleList**](docs/ModuleApi.md#getmodulelist) | **GET** /courses/{courseId}/modules | get module list
96
97
  *ModuleApi* | [**postModule**](docs/ModuleApi.md#postmodule) | **POST** /courses/{courseId}/modules | Post a new module
97
98
  *ModuleApi* | [**putModule**](docs/ModuleApi.md#putmodule) | **PUT** /courses/{courseId}/modules/{moduleId} | Update a module by id
99
+ *ModuleApi* | [**putModuleReorder**](docs/ModuleApi.md#putmodulereorder) | **PUT** /courses/{courseId}/modules/reorder | Reorder modules in a course
98
100
  *OtherApi* | [**getHealth**](docs/OtherApi.md#gethealth) | **GET** /healthcheck | Health check endpoint
99
101
  *PortalApi* | [**deletePortalLogo**](docs/PortalApi.md#deleteportallogo) | **DELETE** /portals/{portalId}/branding/logo | Remove the portal logo
100
102
  *PortalApi* | [**getPortalById**](docs/PortalApi.md#getportalbyid) | **GET** /portals/{portalId} | Get a portal by id (can use \'current\' to get the current users selected portal)
@@ -371,10 +373,12 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
371
373
  - [PostVerifyManifestItemsInner](docs/PostVerifyManifestItemsInner.md)
372
374
  - [PostVerifyManifestResourcesInner](docs/PostVerifyManifestResourcesInner.md)
373
375
  - [PutContent](docs/PutContent.md)
376
+ - [PutContentReorder](docs/PutContentReorder.md)
374
377
  - [PutContentVersion](docs/PutContentVersion.md)
375
378
  - [PutCourse](docs/PutCourse.md)
376
379
  - [PutCourseEnrollment](docs/PutCourseEnrollment.md)
377
380
  - [PutModule](docs/PutModule.md)
381
+ - [PutModuleReorder](docs/PutModuleReorder.md)
378
382
  - [PutPortalBranding](docs/PutPortalBranding.md)
379
383
  - [PutQuestion](docs/PutQuestion.md)
380
384
  - [PutQuestionAnswerChoicesInner](docs/PutQuestionAnswerChoicesInner.md)
@@ -417,7 +421,7 @@ and is automatically generated by the
417
421
  [OpenAPI Generator](https://openapi-generator.tech) project:
418
422
 
419
423
  - API version: `1.0.0`
420
- - Package version: `1.46.0`
424
+ - Package version: `1.48.0`
421
425
  - Generator version: `7.21.0`
422
426
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
423
427
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetContent, GetContentList, GetContentSession, GetContentSessionDetail, GetContentSessionList, GetContentUpload, GetContentVersion, GetContentVersionList, GetScormApiLogs, GetScormPackage, GetScormSessionData, PostContentQuiz, PostContentSession, PostContentUpload, PostVerifyManifest, PutContent, PutContentVersion, ScormGetValueResponse, ScormSetValueRequest, ScormSetValueResponse } from '../models/index';
13
+ import type { GetContent, GetContentList, GetContentSession, GetContentSessionDetail, GetContentSessionList, GetContentUpload, GetContentVersion, GetContentVersionList, GetScormApiLogs, GetScormPackage, GetScormSessionData, PostContentQuiz, PostContentSession, PostContentUpload, PostVerifyManifest, PutContent, PutContentReorder, PutContentVersion, ScormGetValueResponse, ScormSetValueRequest, ScormSetValueResponse } from '../models/index';
14
14
  export interface CommitScormSessionRequest {
15
15
  scormSessionId: string;
16
16
  }
@@ -101,6 +101,11 @@ export interface PutContentRequest {
101
101
  courseId: string;
102
102
  putContent: PutContent;
103
103
  }
104
+ export interface PutContentReorderRequest {
105
+ moduleId: string;
106
+ courseId: string;
107
+ putContentReorder: PutContentReorder;
108
+ }
104
109
  export interface PutContentVersionRequest {
105
110
  contentId: string;
106
111
  moduleId: string;
@@ -361,6 +366,18 @@ export declare class ContentApi extends runtime.BaseAPI {
361
366
  * Update content by id
362
367
  */
363
368
  putContent(requestParameters: PutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContent>;
369
+ /**
370
+ * Creates request options for putContentReorder without sending the request
371
+ */
372
+ putContentReorderRequestOpts(requestParameters: PutContentReorderRequest): Promise<runtime.RequestOpts>;
373
+ /**
374
+ * Reorder content in a module
375
+ */
376
+ putContentReorderRaw(requestParameters: PutContentReorderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
377
+ /**
378
+ * Reorder content in a module
379
+ */
380
+ putContentReorder(requestParameters: PutContentReorderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
364
381
  /**
365
382
  * Creates request options for putContentVersion without sending the request
366
383
  */
@@ -892,6 +892,53 @@ class ContentApi extends runtime.BaseAPI {
892
892
  return yield response.value();
893
893
  });
894
894
  }
895
+ /**
896
+ * Creates request options for putContentReorder without sending the request
897
+ */
898
+ putContentReorderRequestOpts(requestParameters) {
899
+ return __awaiter(this, void 0, void 0, function* () {
900
+ if (requestParameters['moduleId'] == null) {
901
+ throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling putContentReorder().');
902
+ }
903
+ if (requestParameters['courseId'] == null) {
904
+ throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling putContentReorder().');
905
+ }
906
+ if (requestParameters['putContentReorder'] == null) {
907
+ throw new runtime.RequiredError('putContentReorder', 'Required parameter "putContentReorder" was null or undefined when calling putContentReorder().');
908
+ }
909
+ const queryParameters = {};
910
+ const headerParameters = {};
911
+ headerParameters['Content-Type'] = 'application/json';
912
+ let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/reorder`;
913
+ urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
914
+ urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
915
+ return {
916
+ path: urlPath,
917
+ method: 'PUT',
918
+ headers: headerParameters,
919
+ query: queryParameters,
920
+ body: (0, index_1.PutContentReorderToJSON)(requestParameters['putContentReorder']),
921
+ };
922
+ });
923
+ }
924
+ /**
925
+ * Reorder content in a module
926
+ */
927
+ putContentReorderRaw(requestParameters, initOverrides) {
928
+ return __awaiter(this, void 0, void 0, function* () {
929
+ const requestOptions = yield this.putContentReorderRequestOpts(requestParameters);
930
+ const response = yield this.request(requestOptions, initOverrides);
931
+ return new runtime.VoidApiResponse(response);
932
+ });
933
+ }
934
+ /**
935
+ * Reorder content in a module
936
+ */
937
+ putContentReorder(requestParameters, initOverrides) {
938
+ return __awaiter(this, void 0, void 0, function* () {
939
+ yield this.putContentReorderRaw(requestParameters, initOverrides);
940
+ });
941
+ }
895
942
  /**
896
943
  * Creates request options for putContentVersion without sending the request
897
944
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetModule, GetModuleList, PostModule, PutModule } from '../models/index';
13
+ import type { GetModule, GetModuleList, PostModule, PutModule, PutModuleReorder } from '../models/index';
14
14
  export interface GetModuleRequest {
15
15
  moduleId: string;
16
16
  courseId: string;
@@ -27,6 +27,10 @@ export interface PutModuleRequest {
27
27
  courseId: string;
28
28
  putModule: PutModule;
29
29
  }
30
+ export interface PutModuleReorderRequest {
31
+ courseId: string;
32
+ putModuleReorder: PutModuleReorder;
33
+ }
30
34
  /**
31
35
  *
32
36
  */
@@ -79,4 +83,16 @@ export declare class ModuleApi extends runtime.BaseAPI {
79
83
  * Update a module by id
80
84
  */
81
85
  putModule(requestParameters: PutModuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModule>;
86
+ /**
87
+ * Creates request options for putModuleReorder without sending the request
88
+ */
89
+ putModuleReorderRequestOpts(requestParameters: PutModuleReorderRequest): Promise<runtime.RequestOpts>;
90
+ /**
91
+ * Reorder modules in a course
92
+ */
93
+ putModuleReorderRaw(requestParameters: PutModuleReorderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
94
+ /**
95
+ * Reorder modules in a course
96
+ */
97
+ putModuleReorder(requestParameters: PutModuleReorderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
82
98
  }
@@ -203,5 +203,48 @@ class ModuleApi extends runtime.BaseAPI {
203
203
  return yield response.value();
204
204
  });
205
205
  }
206
+ /**
207
+ * Creates request options for putModuleReorder without sending the request
208
+ */
209
+ putModuleReorderRequestOpts(requestParameters) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ if (requestParameters['courseId'] == null) {
212
+ throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling putModuleReorder().');
213
+ }
214
+ if (requestParameters['putModuleReorder'] == null) {
215
+ throw new runtime.RequiredError('putModuleReorder', 'Required parameter "putModuleReorder" was null or undefined when calling putModuleReorder().');
216
+ }
217
+ const queryParameters = {};
218
+ const headerParameters = {};
219
+ headerParameters['Content-Type'] = 'application/json';
220
+ let urlPath = `/courses/{courseId}/modules/reorder`;
221
+ urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
222
+ return {
223
+ path: urlPath,
224
+ method: 'PUT',
225
+ headers: headerParameters,
226
+ query: queryParameters,
227
+ body: (0, index_1.PutModuleReorderToJSON)(requestParameters['putModuleReorder']),
228
+ };
229
+ });
230
+ }
231
+ /**
232
+ * Reorder modules in a course
233
+ */
234
+ putModuleReorderRaw(requestParameters, initOverrides) {
235
+ return __awaiter(this, void 0, void 0, function* () {
236
+ const requestOptions = yield this.putModuleReorderRequestOpts(requestParameters);
237
+ const response = yield this.request(requestOptions, initOverrides);
238
+ return new runtime.VoidApiResponse(response);
239
+ });
240
+ }
241
+ /**
242
+ * Reorder modules in a course
243
+ */
244
+ putModuleReorder(requestParameters, initOverrides) {
245
+ return __awaiter(this, void 0, void 0, function* () {
246
+ yield this.putModuleReorderRaw(requestParameters, initOverrides);
247
+ });
248
+ }
206
249
  }
207
250
  exports.ModuleApi = ModuleApi;
@@ -21,7 +21,6 @@ export interface GetQuestionListRequest {
21
21
  page?: number;
22
22
  pageSize?: number;
23
23
  topic?: string;
24
- course?: string;
25
24
  questionType?: GetQuestionListQuestionTypeEnum;
26
25
  difficultyLevel?: GetQuestionListDifficultyLevelEnum;
27
26
  tags?: Array<string>;
@@ -121,9 +121,6 @@ class QuestionApi extends runtime.BaseAPI {
121
121
  if (requestParameters['topic'] != null) {
122
122
  queryParameters['topic'] = requestParameters['topic'];
123
123
  }
124
- if (requestParameters['course'] != null) {
125
- queryParameters['course'] = requestParameters['course'];
126
- }
127
124
  if (requestParameters['questionType'] != null) {
128
125
  queryParameters['question_type'] = requestParameters['questionType'];
129
126
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetContent, GetContentList, GetContentSession, GetContentSessionDetail, GetContentSessionList, GetContentUpload, GetContentVersion, GetContentVersionList, GetScormApiLogs, GetScormPackage, GetScormSessionData, PostContentQuiz, PostContentSession, PostContentUpload, PostVerifyManifest, PutContent, PutContentVersion, ScormGetValueResponse, ScormSetValueRequest, ScormSetValueResponse } from '../models/index';
13
+ import type { GetContent, GetContentList, GetContentSession, GetContentSessionDetail, GetContentSessionList, GetContentUpload, GetContentVersion, GetContentVersionList, GetScormApiLogs, GetScormPackage, GetScormSessionData, PostContentQuiz, PostContentSession, PostContentUpload, PostVerifyManifest, PutContent, PutContentReorder, PutContentVersion, ScormGetValueResponse, ScormSetValueRequest, ScormSetValueResponse } from '../models/index';
14
14
  export interface CommitScormSessionRequest {
15
15
  scormSessionId: string;
16
16
  }
@@ -101,6 +101,11 @@ export interface PutContentRequest {
101
101
  courseId: string;
102
102
  putContent: PutContent;
103
103
  }
104
+ export interface PutContentReorderRequest {
105
+ moduleId: string;
106
+ courseId: string;
107
+ putContentReorder: PutContentReorder;
108
+ }
104
109
  export interface PutContentVersionRequest {
105
110
  contentId: string;
106
111
  moduleId: string;
@@ -361,6 +366,18 @@ export declare class ContentApi extends runtime.BaseAPI {
361
366
  * Update content by id
362
367
  */
363
368
  putContent(requestParameters: PutContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContent>;
369
+ /**
370
+ * Creates request options for putContentReorder without sending the request
371
+ */
372
+ putContentReorderRequestOpts(requestParameters: PutContentReorderRequest): Promise<runtime.RequestOpts>;
373
+ /**
374
+ * Reorder content in a module
375
+ */
376
+ putContentReorderRaw(requestParameters: PutContentReorderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
377
+ /**
378
+ * Reorder content in a module
379
+ */
380
+ putContentReorder(requestParameters: PutContentReorderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
364
381
  /**
365
382
  * Creates request options for putContentVersion without sending the request
366
383
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { GetContentFromJSON, GetContentListFromJSON, GetContentSessionFromJSON, GetContentSessionDetailFromJSON, GetContentSessionListFromJSON, GetContentUploadFromJSON, GetContentVersionFromJSON, GetContentVersionListFromJSON, GetScormApiLogsFromJSON, GetScormPackageFromJSON, GetScormSessionDataFromJSON, PostContentQuizToJSON, PostContentSessionFromJSON, PostContentUploadToJSON, PostVerifyManifestFromJSON, PutContentToJSON, PutContentVersionToJSON, ScormGetValueResponseFromJSON, ScormSetValueRequestToJSON, ScormSetValueResponseFromJSON, } from '../models/index';
24
+ import { GetContentFromJSON, GetContentListFromJSON, GetContentSessionFromJSON, GetContentSessionDetailFromJSON, GetContentSessionListFromJSON, GetContentUploadFromJSON, GetContentVersionFromJSON, GetContentVersionListFromJSON, GetScormApiLogsFromJSON, GetScormPackageFromJSON, GetScormSessionDataFromJSON, PostContentQuizToJSON, PostContentSessionFromJSON, PostContentUploadToJSON, PostVerifyManifestFromJSON, PutContentToJSON, PutContentReorderToJSON, PutContentVersionToJSON, ScormGetValueResponseFromJSON, ScormSetValueRequestToJSON, ScormSetValueResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -889,6 +889,53 @@ export class ContentApi extends runtime.BaseAPI {
889
889
  return yield response.value();
890
890
  });
891
891
  }
892
+ /**
893
+ * Creates request options for putContentReorder without sending the request
894
+ */
895
+ putContentReorderRequestOpts(requestParameters) {
896
+ return __awaiter(this, void 0, void 0, function* () {
897
+ if (requestParameters['moduleId'] == null) {
898
+ throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling putContentReorder().');
899
+ }
900
+ if (requestParameters['courseId'] == null) {
901
+ throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling putContentReorder().');
902
+ }
903
+ if (requestParameters['putContentReorder'] == null) {
904
+ throw new runtime.RequiredError('putContentReorder', 'Required parameter "putContentReorder" was null or undefined when calling putContentReorder().');
905
+ }
906
+ const queryParameters = {};
907
+ const headerParameters = {};
908
+ headerParameters['Content-Type'] = 'application/json';
909
+ let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/reorder`;
910
+ urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
911
+ urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
912
+ return {
913
+ path: urlPath,
914
+ method: 'PUT',
915
+ headers: headerParameters,
916
+ query: queryParameters,
917
+ body: PutContentReorderToJSON(requestParameters['putContentReorder']),
918
+ };
919
+ });
920
+ }
921
+ /**
922
+ * Reorder content in a module
923
+ */
924
+ putContentReorderRaw(requestParameters, initOverrides) {
925
+ return __awaiter(this, void 0, void 0, function* () {
926
+ const requestOptions = yield this.putContentReorderRequestOpts(requestParameters);
927
+ const response = yield this.request(requestOptions, initOverrides);
928
+ return new runtime.VoidApiResponse(response);
929
+ });
930
+ }
931
+ /**
932
+ * Reorder content in a module
933
+ */
934
+ putContentReorder(requestParameters, initOverrides) {
935
+ return __awaiter(this, void 0, void 0, function* () {
936
+ yield this.putContentReorderRaw(requestParameters, initOverrides);
937
+ });
938
+ }
892
939
  /**
893
940
  * Creates request options for putContentVersion without sending the request
894
941
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetModule, GetModuleList, PostModule, PutModule } from '../models/index';
13
+ import type { GetModule, GetModuleList, PostModule, PutModule, PutModuleReorder } from '../models/index';
14
14
  export interface GetModuleRequest {
15
15
  moduleId: string;
16
16
  courseId: string;
@@ -27,6 +27,10 @@ export interface PutModuleRequest {
27
27
  courseId: string;
28
28
  putModule: PutModule;
29
29
  }
30
+ export interface PutModuleReorderRequest {
31
+ courseId: string;
32
+ putModuleReorder: PutModuleReorder;
33
+ }
30
34
  /**
31
35
  *
32
36
  */
@@ -79,4 +83,16 @@ export declare class ModuleApi extends runtime.BaseAPI {
79
83
  * Update a module by id
80
84
  */
81
85
  putModule(requestParameters: PutModuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetModule>;
86
+ /**
87
+ * Creates request options for putModuleReorder without sending the request
88
+ */
89
+ putModuleReorderRequestOpts(requestParameters: PutModuleReorderRequest): Promise<runtime.RequestOpts>;
90
+ /**
91
+ * Reorder modules in a course
92
+ */
93
+ putModuleReorderRaw(requestParameters: PutModuleReorderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
94
+ /**
95
+ * Reorder modules in a course
96
+ */
97
+ putModuleReorder(requestParameters: PutModuleReorderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
82
98
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { GetModuleFromJSON, GetModuleListFromJSON, PostModuleToJSON, PutModuleToJSON, } from '../models/index';
24
+ import { GetModuleFromJSON, GetModuleListFromJSON, PostModuleToJSON, PutModuleToJSON, PutModuleReorderToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -200,4 +200,47 @@ export class ModuleApi extends runtime.BaseAPI {
200
200
  return yield response.value();
201
201
  });
202
202
  }
203
+ /**
204
+ * Creates request options for putModuleReorder without sending the request
205
+ */
206
+ putModuleReorderRequestOpts(requestParameters) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ if (requestParameters['courseId'] == null) {
209
+ throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling putModuleReorder().');
210
+ }
211
+ if (requestParameters['putModuleReorder'] == null) {
212
+ throw new runtime.RequiredError('putModuleReorder', 'Required parameter "putModuleReorder" was null or undefined when calling putModuleReorder().');
213
+ }
214
+ const queryParameters = {};
215
+ const headerParameters = {};
216
+ headerParameters['Content-Type'] = 'application/json';
217
+ let urlPath = `/courses/{courseId}/modules/reorder`;
218
+ urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
219
+ return {
220
+ path: urlPath,
221
+ method: 'PUT',
222
+ headers: headerParameters,
223
+ query: queryParameters,
224
+ body: PutModuleReorderToJSON(requestParameters['putModuleReorder']),
225
+ };
226
+ });
227
+ }
228
+ /**
229
+ * Reorder modules in a course
230
+ */
231
+ putModuleReorderRaw(requestParameters, initOverrides) {
232
+ return __awaiter(this, void 0, void 0, function* () {
233
+ const requestOptions = yield this.putModuleReorderRequestOpts(requestParameters);
234
+ const response = yield this.request(requestOptions, initOverrides);
235
+ return new runtime.VoidApiResponse(response);
236
+ });
237
+ }
238
+ /**
239
+ * Reorder modules in a course
240
+ */
241
+ putModuleReorder(requestParameters, initOverrides) {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ yield this.putModuleReorderRaw(requestParameters, initOverrides);
244
+ });
245
+ }
203
246
  }
@@ -21,7 +21,6 @@ export interface GetQuestionListRequest {
21
21
  page?: number;
22
22
  pageSize?: number;
23
23
  topic?: string;
24
- course?: string;
25
24
  questionType?: GetQuestionListQuestionTypeEnum;
26
25
  difficultyLevel?: GetQuestionListDifficultyLevelEnum;
27
26
  tags?: Array<string>;
@@ -118,9 +118,6 @@ export class QuestionApi extends runtime.BaseAPI {
118
118
  if (requestParameters['topic'] != null) {
119
119
  queryParameters['topic'] = requestParameters['topic'];
120
120
  }
121
- if (requestParameters['course'] != null) {
122
- queryParameters['course'] = requestParameters['course'];
123
- }
124
121
  if (requestParameters['questionType'] != null) {
125
122
  queryParameters['question_type'] = requestParameters['questionType'];
126
123
  }
@@ -39,12 +39,6 @@ export interface CriteriaBasedSelectionCriteria {
39
39
  * @memberof CriteriaBasedSelectionCriteria
40
40
  */
41
41
  tags?: Array<string>;
42
- /**
43
- * Course to filter by
44
- * @type {string}
45
- * @memberof CriteriaBasedSelectionCriteria
46
- */
47
- course?: string;
48
42
  }
49
43
  /**
50
44
  * @export
@@ -48,7 +48,6 @@ export function CriteriaBasedSelectionCriteriaFromJSONTyped(json, ignoreDiscrimi
48
48
  'difficultyLevels': json['difficulty_levels'] == null ? undefined : json['difficulty_levels'],
49
49
  'questionTypes': json['question_types'] == null ? undefined : json['question_types'],
50
50
  'tags': json['tags'] == null ? undefined : json['tags'],
51
- 'course': json['course'] == null ? undefined : json['course'],
52
51
  };
53
52
  }
54
53
  export function CriteriaBasedSelectionCriteriaToJSON(json) {
@@ -63,6 +62,5 @@ export function CriteriaBasedSelectionCriteriaToJSONTyped(value, ignoreDiscrimin
63
62
  'difficulty_levels': value['difficultyLevels'],
64
63
  'question_types': value['questionTypes'],
65
64
  'tags': value['tags'],
66
- 'course': value['course'],
67
65
  };
68
66
  }
@@ -59,12 +59,6 @@ export interface GetQuestion {
59
59
  * @memberof GetQuestion
60
60
  */
61
61
  topic: string;
62
- /**
63
- * Associated course identifier (e.g., FA 102 2022)
64
- * @type {string}
65
- * @memberof GetQuestion
66
- */
67
- course?: string;
68
62
  /**
69
63
  * Difficulty level of the question
70
64
  * @type {GetQuestionDifficultyLevelEnum}
@@ -67,7 +67,6 @@ export function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
68
68
  'explanation': json['explanation'] == null ? undefined : json['explanation'],
69
69
  'topic': json['topic'],
70
- 'course': json['course'] == null ? undefined : json['course'],
71
70
  'difficultyLevel': json['difficulty_level'],
72
71
  'tags': json['tags'] == null ? undefined : json['tags'],
73
72
  'version': json['version'] == null ? undefined : json['version'],
@@ -92,7 +91,6 @@ export function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
92
91
  'correct_answer': value['correctAnswer'],
93
92
  'explanation': value['explanation'],
94
93
  'topic': value['topic'],
95
- 'course': value['course'],
96
94
  'difficulty_level': value['difficultyLevel'],
97
95
  'tags': value['tags'],
98
96
  'version': value['version'],
@@ -21,12 +21,6 @@ export interface GetQuestionListFilters {
21
21
  * @memberof GetQuestionListFilters
22
22
  */
23
23
  topic?: string;
24
- /**
25
- * Filter by course
26
- * @type {string}
27
- * @memberof GetQuestionListFilters
28
- */
29
- course?: string;
30
24
  /**
31
25
  * Filter by question type
32
26
  * @type {GetQuestionListFiltersQuestionTypeEnum}
@@ -45,7 +45,6 @@ export function GetQuestionListFiltersFromJSONTyped(json, ignoreDiscriminator) {
45
45
  }
46
46
  return {
47
47
  'topic': json['topic'] == null ? undefined : json['topic'],
48
- 'course': json['course'] == null ? undefined : json['course'],
49
48
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
50
49
  'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
51
50
  'tags': json['tags'] == null ? undefined : json['tags'],
@@ -63,7 +62,6 @@ export function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = f
63
62
  }
64
63
  return {
65
64
  'topic': value['topic'],
66
- 'course': value['course'],
67
65
  'question_type': value['questionType'],
68
66
  'difficulty_level': value['difficultyLevel'],
69
67
  'tags': value['tags'],
@@ -51,12 +51,6 @@ export interface GetQuizCriteriaItem {
51
51
  * @memberof GetQuizCriteriaItem
52
52
  */
53
53
  tags?: Array<string>;
54
- /**
55
- * Course filter (null for any course)
56
- * @type {string}
57
- * @memberof GetQuizCriteriaItem
58
- */
59
- course?: string;
60
54
  /**
61
55
  * Minimum questions from this criteria
62
56
  * @type {number}
@@ -62,7 +62,6 @@ export function GetQuizCriteriaItemFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
63
63
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
64
64
  'tags': json['tags'] == null ? undefined : json['tags'],
65
- 'course': json['course'] == null ? undefined : json['course'],
66
65
  'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
67
66
  'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
68
67
  'priority': json['priority'],
@@ -85,7 +84,6 @@ export function GetQuizCriteriaItemToJSONTyped(value, ignoreDiscriminator = fals
85
84
  'difficulty_level': value['difficultyLevel'],
86
85
  'question_type': value['questionType'],
87
86
  'tags': value['tags'],
88
- 'course': value['course'],
89
87
  'min_questions': value['minQuestions'],
90
88
  'max_questions': value['maxQuestions'],
91
89
  'priority': value['priority'],
@@ -51,12 +51,6 @@ export interface GetQuizCriteriaListItemsInner {
51
51
  * @memberof GetQuizCriteriaListItemsInner
52
52
  */
53
53
  tags?: Array<string>;
54
- /**
55
- * Course filter (null for any course)
56
- * @type {string}
57
- * @memberof GetQuizCriteriaListItemsInner
58
- */
59
- course?: string;
60
54
  /**
61
55
  * Minimum questions from this criteria
62
56
  * @type {number}
@@ -62,7 +62,6 @@ export function GetQuizCriteriaListItemsInnerFromJSONTyped(json, ignoreDiscrimin
62
62
  'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
63
63
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
64
64
  'tags': json['tags'] == null ? undefined : json['tags'],
65
- 'course': json['course'] == null ? undefined : json['course'],
66
65
  'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
67
66
  'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
68
67
  'priority': json['priority'],
@@ -85,7 +84,6 @@ export function GetQuizCriteriaListItemsInnerToJSONTyped(value, ignoreDiscrimina
85
84
  'difficulty_level': value['difficultyLevel'],
86
85
  'question_type': value['questionType'],
87
86
  'tags': value['tags'],
88
- 'course': value['course'],
89
87
  'min_questions': value['minQuestions'],
90
88
  'max_questions': value['maxQuestions'],
91
89
  'priority': value['priority'],