@easyedu/js-lsm-api 1.107.0 → 1.109.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.
- package/.openapi-generator/FILES +20 -0
- package/README.md +21 -2
- package/dist/apis/ContentLibraryApi.d.ts +179 -0
- package/dist/apis/ContentLibraryApi.js +424 -1
- package/dist/apis/ContentLibraryQuizApi.d.ts +1 -0
- package/dist/apis/ContentLibraryQuizApi.js +3 -0
- package/dist/apis/CourseApi.d.ts +2 -2
- package/dist/apis/CourseApi.js +2 -2
- package/dist/apis/CourseCatalogApi.d.ts +8 -3
- package/dist/apis/CourseCatalogApi.js +14 -7
- package/dist/apis/CourseShareApi.d.ts +12 -7
- package/dist/apis/CourseShareApi.js +20 -5
- package/dist/apis/QuestionApi.d.ts +0 -1
- package/dist/apis/QuestionApi.js +0 -3
- package/dist/esm/apis/ContentLibraryApi.d.ts +179 -0
- package/dist/esm/apis/ContentLibraryApi.js +423 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +3 -0
- package/dist/esm/apis/CourseApi.d.ts +2 -2
- package/dist/esm/apis/CourseApi.js +2 -2
- package/dist/esm/apis/CourseCatalogApi.d.ts +8 -3
- package/dist/esm/apis/CourseCatalogApi.js +14 -7
- package/dist/esm/apis/CourseShareApi.d.ts +12 -7
- package/dist/esm/apis/CourseShareApi.js +20 -5
- package/dist/esm/apis/QuestionApi.d.ts +0 -1
- package/dist/esm/apis/QuestionApi.js +0 -3
- package/dist/esm/models/ContentLibraryTag.d.ts +104 -0
- package/dist/esm/models/ContentLibraryTag.js +85 -0
- package/dist/esm/models/ContentLibraryTagItem.d.ts +84 -0
- package/dist/esm/models/ContentLibraryTagItem.js +76 -0
- package/dist/esm/models/CourseShareAcceptError.d.ts +54 -0
- package/dist/esm/models/CourseShareAcceptError.js +62 -0
- package/dist/esm/models/GetContentLibraryTagItemList.d.ts +57 -0
- package/dist/esm/models/GetContentLibraryTagItemList.js +60 -0
- package/dist/esm/models/GetContentLibraryTagList.d.ts +57 -0
- package/dist/esm/models/GetContentLibraryTagList.js +60 -0
- package/dist/esm/models/GetCourseCatalogList.d.ts +57 -0
- package/dist/esm/models/GetCourseCatalogList.js +60 -0
- package/dist/esm/models/GetCourseShareList.d.ts +57 -0
- package/dist/esm/models/GetCourseShareList.js +60 -0
- package/dist/esm/models/GetLibraryQuiz.d.ts +7 -0
- package/dist/esm/models/GetLibraryQuiz.js +5 -0
- package/dist/esm/models/GetQuestion.d.ts +0 -6
- package/dist/esm/models/GetQuestion.js +0 -4
- package/dist/esm/models/GetQuestionListFilters.d.ts +0 -6
- package/dist/esm/models/GetQuestionListFilters.js +0 -2
- package/dist/esm/models/GetResource.d.ts +7 -0
- package/dist/esm/models/GetResource.js +5 -0
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
- package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -6
- package/dist/esm/models/LibraryQuizCriterion.js +0 -2
- package/dist/esm/models/PostContentLibraryTag.d.ts +32 -0
- package/dist/esm/models/PostContentLibraryTag.js +43 -0
- package/dist/esm/models/PostContentLibraryTagMerge.d.ts +32 -0
- package/dist/esm/models/PostContentLibraryTagMerge.js +43 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +6 -0
- package/dist/esm/models/PostLibraryQuiz.js +2 -0
- package/dist/esm/models/PostQuestion.d.ts +0 -6
- package/dist/esm/models/PostQuestion.js +0 -4
- package/dist/esm/models/PostResource.d.ts +6 -0
- package/dist/esm/models/PostResource.js +2 -0
- package/dist/esm/models/PutContentLibraryTag.d.ts +32 -0
- package/dist/esm/models/PutContentLibraryTag.js +43 -0
- package/dist/esm/models/PutLibraryQuiz.d.ts +6 -0
- package/dist/esm/models/PutLibraryQuiz.js +2 -0
- package/dist/esm/models/PutQuestion.d.ts +0 -6
- package/dist/esm/models/PutQuestion.js +0 -2
- package/dist/esm/models/PutResource.d.ts +6 -0
- package/dist/esm/models/PutResource.js +2 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/ContentLibraryTag.d.ts +104 -0
- package/dist/models/ContentLibraryTag.js +92 -0
- package/dist/models/ContentLibraryTagItem.d.ts +84 -0
- package/dist/models/ContentLibraryTagItem.js +84 -0
- package/dist/models/CourseShareAcceptError.d.ts +54 -0
- package/dist/models/CourseShareAcceptError.js +70 -0
- package/dist/models/GetContentLibraryTagItemList.d.ts +57 -0
- package/dist/models/GetContentLibraryTagItemList.js +67 -0
- package/dist/models/GetContentLibraryTagList.d.ts +57 -0
- package/dist/models/GetContentLibraryTagList.js +67 -0
- package/dist/models/GetCourseCatalogList.d.ts +57 -0
- package/dist/models/GetCourseCatalogList.js +67 -0
- package/dist/models/GetCourseShareList.d.ts +57 -0
- package/dist/models/GetCourseShareList.js +67 -0
- package/dist/models/GetLibraryQuiz.d.ts +7 -0
- package/dist/models/GetLibraryQuiz.js +5 -0
- package/dist/models/GetQuestion.d.ts +0 -6
- package/dist/models/GetQuestion.js +0 -4
- package/dist/models/GetQuestionListFilters.d.ts +0 -6
- package/dist/models/GetQuestionListFilters.js +0 -2
- package/dist/models/GetResource.d.ts +7 -0
- package/dist/models/GetResource.js +5 -0
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
- package/dist/models/LibraryQuizCriterion.d.ts +0 -6
- package/dist/models/LibraryQuizCriterion.js +0 -2
- package/dist/models/PostContentLibraryTag.d.ts +32 -0
- package/dist/models/PostContentLibraryTag.js +50 -0
- package/dist/models/PostContentLibraryTagMerge.d.ts +32 -0
- package/dist/models/PostContentLibraryTagMerge.js +50 -0
- package/dist/models/PostLibraryQuiz.d.ts +6 -0
- package/dist/models/PostLibraryQuiz.js +2 -0
- package/dist/models/PostQuestion.d.ts +0 -6
- package/dist/models/PostQuestion.js +0 -4
- package/dist/models/PostResource.d.ts +6 -0
- package/dist/models/PostResource.js +2 -0
- package/dist/models/PutContentLibraryTag.d.ts +32 -0
- package/dist/models/PutContentLibraryTag.js +50 -0
- package/dist/models/PutLibraryQuiz.d.ts +6 -0
- package/dist/models/PutLibraryQuiz.js +2 -0
- package/dist/models/PutQuestion.d.ts +0 -6
- package/dist/models/PutQuestion.js +0 -2
- package/dist/models/PutResource.d.ts +6 -0
- package/dist/models/PutResource.js +2 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/ContentLibraryApi.md +732 -90
- package/docs/ContentLibraryQuizApi.md +4 -1
- package/docs/ContentLibraryTag.md +58 -0
- package/docs/ContentLibraryTagItem.md +48 -0
- package/docs/CourseApi.md +1 -1
- package/docs/CourseCatalogApi.md +15 -4
- package/docs/CourseShareAcceptError.md +37 -0
- package/docs/CourseShareApi.md +29 -7
- package/docs/GetContentLibraryTagItemList.md +42 -0
- package/docs/GetContentLibraryTagList.md +42 -0
- package/docs/GetCourseCatalogList.md +42 -0
- package/docs/GetCourseShareList.md +42 -0
- package/docs/GetLibraryQuiz.md +2 -0
- package/docs/GetQuestion.md +0 -2
- package/docs/GetQuestionListFilters.md +0 -2
- package/docs/GetResource.md +2 -0
- package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -2
- package/docs/LibraryQuizCriterion.md +0 -2
- package/docs/PostContentLibraryTag.md +34 -0
- package/docs/PostContentLibraryTagMerge.md +34 -0
- package/docs/PostLibraryQuiz.md +2 -0
- package/docs/PostQuestion.md +0 -2
- package/docs/PostResource.md +2 -0
- package/docs/PutContentLibraryTag.md +34 -0
- package/docs/PutLibraryQuiz.md +2 -0
- package/docs/PutQuestion.md +0 -2
- package/docs/PutResource.md +2 -0
- package/docs/QuestionApi.md +1 -4
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +575 -0
- package/src/apis/ContentLibraryQuizApi.ts +5 -0
- package/src/apis/CourseApi.ts +2 -2
- package/src/apis/CourseCatalogApi.ts +24 -6
- package/src/apis/CourseShareApi.ts +42 -12
- package/src/apis/QuestionApi.ts +0 -5
- package/src/models/ContentLibraryTag.ts +171 -0
- package/src/models/ContentLibraryTagItem.ts +153 -0
- package/src/models/CourseShareAcceptError.ts +94 -0
- package/src/models/GetContentLibraryTagItemList.ts +110 -0
- package/src/models/GetContentLibraryTagList.ts +110 -0
- package/src/models/GetCourseCatalogList.ts +110 -0
- package/src/models/GetCourseShareList.ts +110 -0
- package/src/models/GetLibraryQuiz.ts +16 -0
- package/src/models/GetQuestion.ts +0 -9
- package/src/models/GetQuestionListFilters.ts +0 -8
- package/src/models/GetResource.ts +16 -0
- package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -9
- package/src/models/LibraryQuizCriterion.ts +0 -8
- package/src/models/PostContentLibraryTag.ts +66 -0
- package/src/models/PostContentLibraryTagMerge.ts +66 -0
- package/src/models/PostLibraryQuiz.ts +8 -0
- package/src/models/PostQuestion.ts +0 -9
- package/src/models/PostResource.ts +8 -0
- package/src/models/PutContentLibraryTag.ts +66 -0
- package/src/models/PutLibraryQuiz.ts +8 -0
- package/src/models/PutQuestion.ts +0 -8
- package/src/models/PutResource.ts +8 -0
- package/src/models/index.ts +10 -0
package/src/apis/CourseApi.ts
CHANGED
|
@@ -1788,7 +1788,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
1790
|
/**
|
|
1791
|
-
* Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
|
|
1791
|
+
* Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Visible resource placements in the selected sections are exported - Reusable quiz placements are skipped and do not block the export - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
|
|
1792
1792
|
* Create a new SCORM export for a course
|
|
1793
1793
|
*/
|
|
1794
1794
|
async postCourseExportRaw(requestParameters: PostCourseExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseExport>> {
|
|
@@ -1799,7 +1799,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
1801
|
/**
|
|
1802
|
-
* Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
|
|
1802
|
+
* Enqueues a job to generate a SCORM export package for the course. Returns immediately with PENDING status. **NOTES:** - This endpoint enqueues a background job to generate the SCORM package - Visible resource placements in the selected sections are exported - Reusable quiz placements are skipped and do not block the export - Poll GET /courses/{courseId}/exports/{exportId} to check status - Download URL will be available when status becomes COMPLETED
|
|
1803
1803
|
* Create a new SCORM export for a course
|
|
1804
1804
|
*/
|
|
1805
1805
|
async postCourseExport(requestParameters: PostCourseExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseExport> {
|
|
@@ -23,6 +23,11 @@ import {
|
|
|
23
23
|
GetCourseFromJSON,
|
|
24
24
|
GetCourseToJSON,
|
|
25
25
|
} from '../models/GetCourse';
|
|
26
|
+
import {
|
|
27
|
+
type GetCourseCatalogList,
|
|
28
|
+
GetCourseCatalogListFromJSON,
|
|
29
|
+
GetCourseCatalogListToJSON,
|
|
30
|
+
} from '../models/GetCourseCatalogList';
|
|
26
31
|
import {
|
|
27
32
|
type PostCourseCatalog,
|
|
28
33
|
PostCourseCatalogFromJSON,
|
|
@@ -51,6 +56,11 @@ export interface GetCourseCatalogRequest {
|
|
|
51
56
|
catalogId: string;
|
|
52
57
|
}
|
|
53
58
|
|
|
59
|
+
export interface GetCourseCatalogsRequest {
|
|
60
|
+
page?: number;
|
|
61
|
+
pageSize?: number;
|
|
62
|
+
}
|
|
63
|
+
|
|
54
64
|
export interface PostCourseCatalogRequest {
|
|
55
65
|
postCourseCatalog: PostCourseCatalog;
|
|
56
66
|
}
|
|
@@ -259,9 +269,17 @@ export class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
259
269
|
/**
|
|
260
270
|
* Creates request options for getCourseCatalogs without sending the request
|
|
261
271
|
*/
|
|
262
|
-
async getCourseCatalogsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
272
|
+
async getCourseCatalogsRequestOpts(requestParameters: GetCourseCatalogsRequest): Promise<runtime.RequestOpts> {
|
|
263
273
|
const queryParameters: any = {};
|
|
264
274
|
|
|
275
|
+
if (requestParameters['page'] != null) {
|
|
276
|
+
queryParameters['page'] = requestParameters['page'];
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (requestParameters['pageSize'] != null) {
|
|
280
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
281
|
+
}
|
|
282
|
+
|
|
265
283
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
266
284
|
|
|
267
285
|
|
|
@@ -278,18 +296,18 @@ export class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
278
296
|
/**
|
|
279
297
|
* List catalogs in the current portal
|
|
280
298
|
*/
|
|
281
|
-
async getCourseCatalogsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
282
|
-
const requestOptions = await this.getCourseCatalogsRequestOpts();
|
|
299
|
+
async getCourseCatalogsRaw(requestParameters: GetCourseCatalogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseCatalogList>> {
|
|
300
|
+
const requestOptions = await this.getCourseCatalogsRequestOpts(requestParameters);
|
|
283
301
|
const response = await this.request(requestOptions, initOverrides);
|
|
284
302
|
|
|
285
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
303
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseCatalogListFromJSON(jsonValue));
|
|
286
304
|
}
|
|
287
305
|
|
|
288
306
|
/**
|
|
289
307
|
* List catalogs in the current portal
|
|
290
308
|
*/
|
|
291
|
-
async getCourseCatalogs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
292
|
-
const response = await this.getCourseCatalogsRaw(initOverrides);
|
|
309
|
+
async getCourseCatalogs(requestParameters: GetCourseCatalogsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseCatalogList> {
|
|
310
|
+
const response = await this.getCourseCatalogsRaw(requestParameters, initOverrides);
|
|
293
311
|
return await response.value();
|
|
294
312
|
}
|
|
295
313
|
|
|
@@ -14,10 +14,15 @@
|
|
|
14
14
|
|
|
15
15
|
import * as runtime from '../runtime';
|
|
16
16
|
import {
|
|
17
|
-
type
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from '../models/
|
|
17
|
+
type CourseShareAcceptError,
|
|
18
|
+
CourseShareAcceptErrorFromJSON,
|
|
19
|
+
CourseShareAcceptErrorToJSON,
|
|
20
|
+
} from '../models/CourseShareAcceptError';
|
|
21
|
+
import {
|
|
22
|
+
type GetCourseShareList,
|
|
23
|
+
GetCourseShareListFromJSON,
|
|
24
|
+
GetCourseShareListToJSON,
|
|
25
|
+
} from '../models/GetCourseShareList';
|
|
21
26
|
import {
|
|
22
27
|
type PostOfferCatalog,
|
|
23
28
|
PostOfferCatalogFromJSON,
|
|
@@ -44,10 +49,15 @@ export interface DeleteCourseShareRequest {
|
|
|
44
49
|
}
|
|
45
50
|
|
|
46
51
|
export interface GetCourseSharesOfferedByMeRequest {
|
|
52
|
+
page?: number;
|
|
53
|
+
pageSize?: number;
|
|
54
|
+
courseId?: string;
|
|
47
55
|
state?: GetCourseSharesOfferedByMeStateEnum;
|
|
48
56
|
}
|
|
49
57
|
|
|
50
58
|
export interface GetCourseSharesOfferedToMeRequest {
|
|
59
|
+
page?: number;
|
|
60
|
+
pageSize?: number;
|
|
51
61
|
state?: GetCourseSharesOfferedToMeStateEnum;
|
|
52
62
|
}
|
|
53
63
|
|
|
@@ -134,6 +144,18 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
134
144
|
async getCourseSharesOfferedByMeRequestOpts(requestParameters: GetCourseSharesOfferedByMeRequest): Promise<runtime.RequestOpts> {
|
|
135
145
|
const queryParameters: any = {};
|
|
136
146
|
|
|
147
|
+
if (requestParameters['page'] != null) {
|
|
148
|
+
queryParameters['page'] = requestParameters['page'];
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (requestParameters['pageSize'] != null) {
|
|
152
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (requestParameters['courseId'] != null) {
|
|
156
|
+
queryParameters['course_id'] = requestParameters['courseId'];
|
|
157
|
+
}
|
|
158
|
+
|
|
137
159
|
if (requestParameters['state'] != null) {
|
|
138
160
|
queryParameters['state'] = requestParameters['state'];
|
|
139
161
|
}
|
|
@@ -154,17 +176,17 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
154
176
|
/**
|
|
155
177
|
* List shares the current portal has offered out
|
|
156
178
|
*/
|
|
157
|
-
async getCourseSharesOfferedByMeRaw(requestParameters: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
179
|
+
async getCourseSharesOfferedByMeRaw(requestParameters: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseShareList>> {
|
|
158
180
|
const requestOptions = await this.getCourseSharesOfferedByMeRequestOpts(requestParameters);
|
|
159
181
|
const response = await this.request(requestOptions, initOverrides);
|
|
160
182
|
|
|
161
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
183
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseShareListFromJSON(jsonValue));
|
|
162
184
|
}
|
|
163
185
|
|
|
164
186
|
/**
|
|
165
187
|
* List shares the current portal has offered out
|
|
166
188
|
*/
|
|
167
|
-
async getCourseSharesOfferedByMe(requestParameters: GetCourseSharesOfferedByMeRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
189
|
+
async getCourseSharesOfferedByMe(requestParameters: GetCourseSharesOfferedByMeRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseShareList> {
|
|
168
190
|
const response = await this.getCourseSharesOfferedByMeRaw(requestParameters, initOverrides);
|
|
169
191
|
return await response.value();
|
|
170
192
|
}
|
|
@@ -175,6 +197,14 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
175
197
|
async getCourseSharesOfferedToMeRequestOpts(requestParameters: GetCourseSharesOfferedToMeRequest): Promise<runtime.RequestOpts> {
|
|
176
198
|
const queryParameters: any = {};
|
|
177
199
|
|
|
200
|
+
if (requestParameters['page'] != null) {
|
|
201
|
+
queryParameters['page'] = requestParameters['page'];
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
if (requestParameters['pageSize'] != null) {
|
|
205
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
206
|
+
}
|
|
207
|
+
|
|
178
208
|
if (requestParameters['state'] != null) {
|
|
179
209
|
queryParameters['state'] = requestParameters['state'];
|
|
180
210
|
}
|
|
@@ -193,21 +223,21 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
193
223
|
}
|
|
194
224
|
|
|
195
225
|
/**
|
|
196
|
-
* Returns
|
|
226
|
+
* Returns `course_share` rows where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
|
|
197
227
|
* List shares offered to the current portal
|
|
198
228
|
*/
|
|
199
|
-
async getCourseSharesOfferedToMeRaw(requestParameters: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
229
|
+
async getCourseSharesOfferedToMeRaw(requestParameters: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseShareList>> {
|
|
200
230
|
const requestOptions = await this.getCourseSharesOfferedToMeRequestOpts(requestParameters);
|
|
201
231
|
const response = await this.request(requestOptions, initOverrides);
|
|
202
232
|
|
|
203
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
233
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseShareListFromJSON(jsonValue));
|
|
204
234
|
}
|
|
205
235
|
|
|
206
236
|
/**
|
|
207
|
-
* Returns
|
|
237
|
+
* Returns `course_share` rows where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
|
|
208
238
|
* List shares offered to the current portal
|
|
209
239
|
*/
|
|
210
|
-
async getCourseSharesOfferedToMe(requestParameters: GetCourseSharesOfferedToMeRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
240
|
+
async getCourseSharesOfferedToMe(requestParameters: GetCourseSharesOfferedToMeRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseShareList> {
|
|
211
241
|
const response = await this.getCourseSharesOfferedToMeRaw(requestParameters, initOverrides);
|
|
212
242
|
return await response.value();
|
|
213
243
|
}
|
package/src/apis/QuestionApi.ts
CHANGED
|
@@ -45,7 +45,6 @@ export interface GetQuestionRequest {
|
|
|
45
45
|
export interface GetQuestionListRequest {
|
|
46
46
|
page?: number;
|
|
47
47
|
pageSize?: number;
|
|
48
|
-
topic?: string;
|
|
49
48
|
questionType?: GetQuestionListQuestionTypeEnum;
|
|
50
49
|
difficultyLevel?: GetQuestionListDifficultyLevelEnum;
|
|
51
50
|
tags?: Array<string>;
|
|
@@ -169,10 +168,6 @@ export class QuestionApi extends runtime.BaseAPI {
|
|
|
169
168
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
170
169
|
}
|
|
171
170
|
|
|
172
|
-
if (requestParameters['topic'] != null) {
|
|
173
|
-
queryParameters['topic'] = requestParameters['topic'];
|
|
174
|
-
}
|
|
175
|
-
|
|
176
171
|
if (requestParameters['questionType'] != null) {
|
|
177
172
|
queryParameters['question_type'] = requestParameters['questionType'];
|
|
178
173
|
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ContentLibraryTag
|
|
20
|
+
*/
|
|
21
|
+
export interface ContentLibraryTag {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ContentLibraryTag
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ContentLibraryTag
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ContentLibraryTag
|
|
38
|
+
*/
|
|
39
|
+
key?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ContentLibraryTag
|
|
44
|
+
*/
|
|
45
|
+
value: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ContentLibraryTag
|
|
50
|
+
*/
|
|
51
|
+
archivedAt?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ContentLibraryTag
|
|
56
|
+
*/
|
|
57
|
+
mergedIntoTagId?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof ContentLibraryTag
|
|
62
|
+
*/
|
|
63
|
+
totalItemCount: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof ContentLibraryTag
|
|
68
|
+
*/
|
|
69
|
+
activeItemCount: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof ContentLibraryTag
|
|
74
|
+
*/
|
|
75
|
+
archivedItemCount: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof ContentLibraryTag
|
|
80
|
+
*/
|
|
81
|
+
resourceCount: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof ContentLibraryTag
|
|
86
|
+
*/
|
|
87
|
+
quizCount: number;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof ContentLibraryTag
|
|
92
|
+
*/
|
|
93
|
+
createdAt: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof ContentLibraryTag
|
|
98
|
+
*/
|
|
99
|
+
updatedAt: number;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the ContentLibraryTag interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfContentLibraryTag(value: object): value is ContentLibraryTag {
|
|
106
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
107
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
109
|
+
if (!('totalItemCount' in value) || value['totalItemCount'] === undefined) return false;
|
|
110
|
+
if (!('activeItemCount' in value) || value['activeItemCount'] === undefined) return false;
|
|
111
|
+
if (!('archivedItemCount' in value) || value['archivedItemCount'] === undefined) return false;
|
|
112
|
+
if (!('resourceCount' in value) || value['resourceCount'] === undefined) return false;
|
|
113
|
+
if (!('quizCount' in value) || value['quizCount'] === undefined) return false;
|
|
114
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
115
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function ContentLibraryTagFromJSON(json: any): ContentLibraryTag {
|
|
120
|
+
return ContentLibraryTagFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function ContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryTag {
|
|
124
|
+
if (json == null) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'id': json['id'],
|
|
130
|
+
'name': json['name'],
|
|
131
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
132
|
+
'value': json['value'],
|
|
133
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
134
|
+
'mergedIntoTagId': json['merged_into_tag_id'] == null ? undefined : json['merged_into_tag_id'],
|
|
135
|
+
'totalItemCount': json['total_item_count'],
|
|
136
|
+
'activeItemCount': json['active_item_count'],
|
|
137
|
+
'archivedItemCount': json['archived_item_count'],
|
|
138
|
+
'resourceCount': json['resource_count'],
|
|
139
|
+
'quizCount': json['quiz_count'],
|
|
140
|
+
'createdAt': json['created_at'],
|
|
141
|
+
'updatedAt': json['updated_at'],
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function ContentLibraryTagToJSON(json: any): ContentLibraryTag {
|
|
146
|
+
return ContentLibraryTagToJSONTyped(json, false);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function ContentLibraryTagToJSONTyped(value?: ContentLibraryTag | null, ignoreDiscriminator: boolean = false): any {
|
|
150
|
+
if (value == null) {
|
|
151
|
+
return value;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
|
|
156
|
+
'id': value['id'],
|
|
157
|
+
'name': value['name'],
|
|
158
|
+
'key': value['key'],
|
|
159
|
+
'value': value['value'],
|
|
160
|
+
'archived_at': value['archivedAt'],
|
|
161
|
+
'merged_into_tag_id': value['mergedIntoTagId'],
|
|
162
|
+
'total_item_count': value['totalItemCount'],
|
|
163
|
+
'active_item_count': value['activeItemCount'],
|
|
164
|
+
'archived_item_count': value['archivedItemCount'],
|
|
165
|
+
'resource_count': value['resourceCount'],
|
|
166
|
+
'quiz_count': value['quizCount'],
|
|
167
|
+
'created_at': value['createdAt'],
|
|
168
|
+
'updated_at': value['updatedAt'],
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContentLibraryTag } from './ContentLibraryTag';
|
|
17
|
+
import {
|
|
18
|
+
ContentLibraryTagFromJSON,
|
|
19
|
+
ContentLibraryTagFromJSONTyped,
|
|
20
|
+
ContentLibraryTagToJSON,
|
|
21
|
+
ContentLibraryTagToJSONTyped,
|
|
22
|
+
} from './ContentLibraryTag';
|
|
23
|
+
import type { ResourceType } from './ResourceType';
|
|
24
|
+
import {
|
|
25
|
+
ResourceTypeFromJSON,
|
|
26
|
+
ResourceTypeFromJSONTyped,
|
|
27
|
+
ResourceTypeToJSON,
|
|
28
|
+
ResourceTypeToJSONTyped,
|
|
29
|
+
} from './ResourceType';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ContentLibraryTagItem
|
|
35
|
+
*/
|
|
36
|
+
export interface ContentLibraryTagItem {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ContentLibraryTagItem
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ContentLibraryTagItemKindEnum}
|
|
46
|
+
* @memberof ContentLibraryTagItem
|
|
47
|
+
*/
|
|
48
|
+
kind: ContentLibraryTagItemKindEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ContentLibraryTagItem
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ContentLibraryTagItem
|
|
59
|
+
*/
|
|
60
|
+
description: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {ResourceType}
|
|
64
|
+
* @memberof ContentLibraryTagItem
|
|
65
|
+
*/
|
|
66
|
+
resourceType?: ResourceType | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<ContentLibraryTag>}
|
|
70
|
+
* @memberof ContentLibraryTagItem
|
|
71
|
+
*/
|
|
72
|
+
tags: Array<ContentLibraryTag>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof ContentLibraryTagItem
|
|
77
|
+
*/
|
|
78
|
+
updatedAt: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof ContentLibraryTagItem
|
|
83
|
+
*/
|
|
84
|
+
archivedAt?: number | null;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const ContentLibraryTagItemKindEnum = {
|
|
92
|
+
Resource: 'resource',
|
|
93
|
+
Quiz: 'quiz'
|
|
94
|
+
} as const;
|
|
95
|
+
export type ContentLibraryTagItemKindEnum = typeof ContentLibraryTagItemKindEnum[keyof typeof ContentLibraryTagItemKindEnum];
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the ContentLibraryTagItem interface.
|
|
100
|
+
*/
|
|
101
|
+
export function instanceOfContentLibraryTagItem(value: object): value is ContentLibraryTagItem {
|
|
102
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
104
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
105
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
106
|
+
if (!('tags' in value) || value['tags'] === undefined) return false;
|
|
107
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function ContentLibraryTagItemFromJSON(json: any): ContentLibraryTagItem {
|
|
112
|
+
return ContentLibraryTagItemFromJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ContentLibraryTagItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryTagItem {
|
|
116
|
+
if (json == null) {
|
|
117
|
+
return json;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'id': json['id'],
|
|
122
|
+
'kind': json['kind'],
|
|
123
|
+
'name': json['name'],
|
|
124
|
+
'description': json['description'],
|
|
125
|
+
'resourceType': json['resource_type'] == null ? undefined : ResourceTypeFromJSON(json['resource_type']),
|
|
126
|
+
'tags': ((json['tags'] as Array<any>).map(ContentLibraryTagFromJSON)),
|
|
127
|
+
'updatedAt': json['updated_at'],
|
|
128
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function ContentLibraryTagItemToJSON(json: any): ContentLibraryTagItem {
|
|
133
|
+
return ContentLibraryTagItemToJSONTyped(json, false);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function ContentLibraryTagItemToJSONTyped(value?: ContentLibraryTagItem | null, ignoreDiscriminator: boolean = false): any {
|
|
137
|
+
if (value == null) {
|
|
138
|
+
return value;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
|
|
143
|
+
'id': value['id'],
|
|
144
|
+
'kind': value['kind'],
|
|
145
|
+
'name': value['name'],
|
|
146
|
+
'description': value['description'],
|
|
147
|
+
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
148
|
+
'tags': ((value['tags'] as Array<any>).map(ContentLibraryTagToJSON)),
|
|
149
|
+
'updated_at': value['updatedAt'],
|
|
150
|
+
'archived_at': value['archivedAt'],
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* A safe, actionable error returned when a course-share offer cannot be accepted.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CourseShareAcceptError
|
|
20
|
+
*/
|
|
21
|
+
export interface CourseShareAcceptError {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {CourseShareAcceptErrorCodeEnum}
|
|
25
|
+
* @memberof CourseShareAcceptError
|
|
26
|
+
*/
|
|
27
|
+
code: CourseShareAcceptErrorCodeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CourseShareAcceptError
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const CourseShareAcceptErrorCodeEnum = {
|
|
41
|
+
PortalNotFound: 'portal_not_found',
|
|
42
|
+
ShareNotFound: 'share_not_found',
|
|
43
|
+
ShareNotAddressedToPortal: 'share_not_addressed_to_portal',
|
|
44
|
+
ModeNotAllowed: 'mode_not_allowed',
|
|
45
|
+
ShareNotOffered: 'share_not_offered',
|
|
46
|
+
SourceCourseUnavailable: 'source_course_unavailable',
|
|
47
|
+
SourceVersionUnpublished: 'source_version_unpublished',
|
|
48
|
+
SourceContentInvalid: 'source_content_invalid',
|
|
49
|
+
StorageCopyFailed: 'storage_copy_failed',
|
|
50
|
+
AcceptanceFailed: 'acceptance_failed'
|
|
51
|
+
} as const;
|
|
52
|
+
export type CourseShareAcceptErrorCodeEnum = typeof CourseShareAcceptErrorCodeEnum[keyof typeof CourseShareAcceptErrorCodeEnum];
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the CourseShareAcceptError interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfCourseShareAcceptError(value: object): value is CourseShareAcceptError {
|
|
59
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
60
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CourseShareAcceptErrorFromJSON(json: any): CourseShareAcceptError {
|
|
65
|
+
return CourseShareAcceptErrorFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CourseShareAcceptErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourseShareAcceptError {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'code': json['code'],
|
|
75
|
+
'message': json['message'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CourseShareAcceptErrorToJSON(json: any): CourseShareAcceptError {
|
|
80
|
+
return CourseShareAcceptErrorToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CourseShareAcceptErrorToJSONTyped(value?: CourseShareAcceptError | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'code': value['code'],
|
|
91
|
+
'message': value['message'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|