@easyedu/js-lsm-api 1.108.0 → 1.110.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 +16 -0
- package/README.md +19 -2
- package/dist/apis/ContentLibraryApi.d.ts +180 -0
- package/dist/apis/ContentLibraryApi.js +425 -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/QuestionApi.d.ts +1 -12
- package/dist/apis/QuestionApi.js +3 -17
- package/dist/esm/apis/ContentLibraryApi.d.ts +180 -0
- package/dist/esm/apis/ContentLibraryApi.js +424 -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/QuestionApi.d.ts +1 -12
- package/dist/esm/apis/QuestionApi.js +2 -16
- package/dist/esm/models/ContentLibraryTag.d.ts +110 -0
- package/dist/esm/models/ContentLibraryTag.js +89 -0
- package/dist/esm/models/ContentLibraryTagItem.d.ts +85 -0
- package/dist/esm/models/ContentLibraryTagItem.js +77 -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/GetLibraryQuiz.d.ts +7 -0
- package/dist/esm/models/GetLibraryQuiz.js +5 -0
- package/dist/esm/models/GetQuestion.d.ts +4 -24
- package/dist/esm/models/GetQuestion.js +3 -18
- package/dist/esm/models/GetQuestionListFilters.d.ts +3 -24
- package/dist/esm/models/GetQuestionListFilters.js +2 -14
- 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 -21
- package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -16
- package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -21
- package/dist/esm/models/LibraryQuizCriterion.js +0 -12
- 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 -21
- package/dist/esm/models/PostQuestion.js +0 -16
- 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 -21
- package/dist/esm/models/PutQuestion.js +0 -12
- package/dist/esm/models/PutResource.d.ts +6 -0
- package/dist/esm/models/PutResource.js +2 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/ContentLibraryTag.d.ts +110 -0
- package/dist/models/ContentLibraryTag.js +96 -0
- package/dist/models/ContentLibraryTagItem.d.ts +85 -0
- package/dist/models/ContentLibraryTagItem.js +85 -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/GetLibraryQuiz.d.ts +7 -0
- package/dist/models/GetLibraryQuiz.js +5 -0
- package/dist/models/GetQuestion.d.ts +4 -24
- package/dist/models/GetQuestion.js +4 -19
- package/dist/models/GetQuestionListFilters.d.ts +3 -24
- package/dist/models/GetQuestionListFilters.js +3 -15
- package/dist/models/GetResource.d.ts +7 -0
- package/dist/models/GetResource.js +5 -0
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -21
- package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +1 -17
- package/dist/models/LibraryQuizCriterion.d.ts +0 -21
- package/dist/models/LibraryQuizCriterion.js +1 -13
- 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 -21
- package/dist/models/PostQuestion.js +1 -17
- 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 -21
- package/dist/models/PutQuestion.js +1 -13
- package/dist/models/PutResource.d.ts +6 -0
- package/dist/models/PutResource.js +2 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/ContentLibraryApi.md +732 -90
- package/docs/ContentLibraryQuizApi.md +4 -1
- package/docs/ContentLibraryTag.md +60 -0
- package/docs/ContentLibraryTagItem.md +48 -0
- package/docs/CourseApi.md +1 -1
- package/docs/CourseShareAcceptError.md +37 -0
- package/docs/CourseShareApi.md +9 -2
- package/docs/GetContentLibraryTagItemList.md +42 -0
- package/docs/GetContentLibraryTagList.md +42 -0
- package/docs/GetLibraryQuiz.md +2 -0
- package/docs/GetQuestion.md +1 -5
- package/docs/GetQuestionListFilters.md +2 -6
- package/docs/GetResource.md +2 -0
- package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -4
- package/docs/LibraryQuizCriterion.md +0 -4
- package/docs/PostContentLibraryTag.md +34 -0
- package/docs/PostContentLibraryTagMerge.md +34 -0
- package/docs/PostLibraryQuiz.md +2 -0
- package/docs/PostQuestion.md +0 -4
- package/docs/PostResource.md +2 -0
- package/docs/PutContentLibraryTag.md +34 -0
- package/docs/PutLibraryQuiz.md +2 -0
- package/docs/PutQuestion.md +0 -4
- package/docs/PutResource.md +2 -0
- package/docs/QuestionApi.md +4 -10
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +576 -0
- package/src/apis/ContentLibraryQuizApi.ts +5 -0
- package/src/apis/CourseApi.ts +2 -2
- package/src/apis/CourseShareApi.ts +5 -0
- package/src/apis/QuestionApi.ts +3 -22
- package/src/models/ContentLibraryTag.ts +180 -0
- package/src/models/ContentLibraryTagItem.ts +154 -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/GetLibraryQuiz.ts +16 -0
- package/src/models/GetQuestion.ts +12 -33
- package/src/models/GetQuestionListFilters.ts +5 -31
- package/src/models/GetResource.ts +16 -0
- package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -28
- package/src/models/LibraryQuizCriterion.ts +0 -26
- 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 -28
- 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 -26
- package/src/models/PutResource.ts +8 -0
- package/src/models/index.ts +8 -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> {
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type CourseShareAcceptError,
|
|
18
|
+
CourseShareAcceptErrorFromJSON,
|
|
19
|
+
CourseShareAcceptErrorToJSON,
|
|
20
|
+
} from '../models/CourseShareAcceptError';
|
|
16
21
|
import {
|
|
17
22
|
type GetCourseShareList,
|
|
18
23
|
GetCourseShareListFromJSON,
|
package/src/apis/QuestionApi.ts
CHANGED
|
@@ -45,10 +45,8 @@ export interface GetQuestionRequest {
|
|
|
45
45
|
export interface GetQuestionListRequest {
|
|
46
46
|
page?: number;
|
|
47
47
|
pageSize?: number;
|
|
48
|
-
topic?: string;
|
|
49
48
|
questionType?: GetQuestionListQuestionTypeEnum;
|
|
50
|
-
|
|
51
|
-
tags?: Array<string>;
|
|
49
|
+
tagId?: string;
|
|
52
50
|
search?: string;
|
|
53
51
|
}
|
|
54
52
|
|
|
@@ -169,20 +167,12 @@ export class QuestionApi extends runtime.BaseAPI {
|
|
|
169
167
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
170
168
|
}
|
|
171
169
|
|
|
172
|
-
if (requestParameters['topic'] != null) {
|
|
173
|
-
queryParameters['topic'] = requestParameters['topic'];
|
|
174
|
-
}
|
|
175
|
-
|
|
176
170
|
if (requestParameters['questionType'] != null) {
|
|
177
171
|
queryParameters['question_type'] = requestParameters['questionType'];
|
|
178
172
|
}
|
|
179
173
|
|
|
180
|
-
if (requestParameters['
|
|
181
|
-
queryParameters['
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
if (requestParameters['tags'] != null) {
|
|
185
|
-
queryParameters['tags'] = requestParameters['tags'];
|
|
174
|
+
if (requestParameters['tagId'] != null) {
|
|
175
|
+
queryParameters['tag_id'] = requestParameters['tagId'];
|
|
186
176
|
}
|
|
187
177
|
|
|
188
178
|
if (requestParameters['search'] != null) {
|
|
@@ -333,12 +323,3 @@ export const GetQuestionListQuestionTypeEnum = {
|
|
|
333
323
|
FillInBlank: 'fill_in_blank'
|
|
334
324
|
} as const;
|
|
335
325
|
export type GetQuestionListQuestionTypeEnum = typeof GetQuestionListQuestionTypeEnum[keyof typeof GetQuestionListQuestionTypeEnum];
|
|
336
|
-
/**
|
|
337
|
-
* @export
|
|
338
|
-
*/
|
|
339
|
-
export const GetQuestionListDifficultyLevelEnum = {
|
|
340
|
-
Beginner: 'beginner',
|
|
341
|
-
Intermediate: 'intermediate',
|
|
342
|
-
Advanced: 'advanced'
|
|
343
|
-
} as const;
|
|
344
|
-
export type GetQuestionListDifficultyLevelEnum = typeof GetQuestionListDifficultyLevelEnum[keyof typeof GetQuestionListDifficultyLevelEnum];
|
|
@@ -0,0 +1,180 @@
|
|
|
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
|
+
questionCount: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof ContentLibraryTag
|
|
98
|
+
*/
|
|
99
|
+
createdAt: number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof ContentLibraryTag
|
|
104
|
+
*/
|
|
105
|
+
updatedAt: number;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Check if a given object implements the ContentLibraryTag interface.
|
|
110
|
+
*/
|
|
111
|
+
export function instanceOfContentLibraryTag(value: object): value is ContentLibraryTag {
|
|
112
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
113
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
114
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
115
|
+
if (!('totalItemCount' in value) || value['totalItemCount'] === undefined) return false;
|
|
116
|
+
if (!('activeItemCount' in value) || value['activeItemCount'] === undefined) return false;
|
|
117
|
+
if (!('archivedItemCount' in value) || value['archivedItemCount'] === undefined) return false;
|
|
118
|
+
if (!('resourceCount' in value) || value['resourceCount'] === undefined) return false;
|
|
119
|
+
if (!('quizCount' in value) || value['quizCount'] === undefined) return false;
|
|
120
|
+
if (!('questionCount' in value) || value['questionCount'] === undefined) return false;
|
|
121
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
122
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function ContentLibraryTagFromJSON(json: any): ContentLibraryTag {
|
|
127
|
+
return ContentLibraryTagFromJSONTyped(json, false);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function ContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryTag {
|
|
131
|
+
if (json == null) {
|
|
132
|
+
return json;
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
|
|
136
|
+
'id': json['id'],
|
|
137
|
+
'name': json['name'],
|
|
138
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
139
|
+
'value': json['value'],
|
|
140
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
141
|
+
'mergedIntoTagId': json['merged_into_tag_id'] == null ? undefined : json['merged_into_tag_id'],
|
|
142
|
+
'totalItemCount': json['total_item_count'],
|
|
143
|
+
'activeItemCount': json['active_item_count'],
|
|
144
|
+
'archivedItemCount': json['archived_item_count'],
|
|
145
|
+
'resourceCount': json['resource_count'],
|
|
146
|
+
'quizCount': json['quiz_count'],
|
|
147
|
+
'questionCount': json['question_count'],
|
|
148
|
+
'createdAt': json['created_at'],
|
|
149
|
+
'updatedAt': json['updated_at'],
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function ContentLibraryTagToJSON(json: any): ContentLibraryTag {
|
|
154
|
+
return ContentLibraryTagToJSONTyped(json, false);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function ContentLibraryTagToJSONTyped(value?: ContentLibraryTag | null, ignoreDiscriminator: boolean = false): any {
|
|
158
|
+
if (value == null) {
|
|
159
|
+
return value;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return {
|
|
163
|
+
|
|
164
|
+
'id': value['id'],
|
|
165
|
+
'name': value['name'],
|
|
166
|
+
'key': value['key'],
|
|
167
|
+
'value': value['value'],
|
|
168
|
+
'archived_at': value['archivedAt'],
|
|
169
|
+
'merged_into_tag_id': value['mergedIntoTagId'],
|
|
170
|
+
'total_item_count': value['totalItemCount'],
|
|
171
|
+
'active_item_count': value['activeItemCount'],
|
|
172
|
+
'archived_item_count': value['archivedItemCount'],
|
|
173
|
+
'resource_count': value['resourceCount'],
|
|
174
|
+
'quiz_count': value['quizCount'],
|
|
175
|
+
'question_count': value['questionCount'],
|
|
176
|
+
'created_at': value['createdAt'],
|
|
177
|
+
'updated_at': value['updatedAt'],
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
Question: 'question'
|
|
95
|
+
} as const;
|
|
96
|
+
export type ContentLibraryTagItemKindEnum = typeof ContentLibraryTagItemKindEnum[keyof typeof ContentLibraryTagItemKindEnum];
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the ContentLibraryTagItem interface.
|
|
101
|
+
*/
|
|
102
|
+
export function instanceOfContentLibraryTagItem(value: object): value is ContentLibraryTagItem {
|
|
103
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
104
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
105
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
106
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
107
|
+
if (!('tags' in value) || value['tags'] === undefined) return false;
|
|
108
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function ContentLibraryTagItemFromJSON(json: any): ContentLibraryTagItem {
|
|
113
|
+
return ContentLibraryTagItemFromJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ContentLibraryTagItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryTagItem {
|
|
117
|
+
if (json == null) {
|
|
118
|
+
return json;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'id': json['id'],
|
|
123
|
+
'kind': json['kind'],
|
|
124
|
+
'name': json['name'],
|
|
125
|
+
'description': json['description'],
|
|
126
|
+
'resourceType': json['resource_type'] == null ? undefined : ResourceTypeFromJSON(json['resource_type']),
|
|
127
|
+
'tags': ((json['tags'] as Array<any>).map(ContentLibraryTagFromJSON)),
|
|
128
|
+
'updatedAt': json['updated_at'],
|
|
129
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function ContentLibraryTagItemToJSON(json: any): ContentLibraryTagItem {
|
|
134
|
+
return ContentLibraryTagItemToJSONTyped(json, false);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function ContentLibraryTagItemToJSONTyped(value?: ContentLibraryTagItem | null, ignoreDiscriminator: boolean = false): any {
|
|
138
|
+
if (value == null) {
|
|
139
|
+
return value;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'id': value['id'],
|
|
145
|
+
'kind': value['kind'],
|
|
146
|
+
'name': value['name'],
|
|
147
|
+
'description': value['description'],
|
|
148
|
+
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
149
|
+
'tags': ((value['tags'] as Array<any>).map(ContentLibraryTagToJSON)),
|
|
150
|
+
'updated_at': value['updatedAt'],
|
|
151
|
+
'archived_at': value['archivedAt'],
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { ContentLibraryTagItem } from './ContentLibraryTagItem';
|
|
17
|
+
import {
|
|
18
|
+
ContentLibraryTagItemFromJSON,
|
|
19
|
+
ContentLibraryTagItemFromJSONTyped,
|
|
20
|
+
ContentLibraryTagItemToJSON,
|
|
21
|
+
ContentLibraryTagItemToJSONTyped,
|
|
22
|
+
} from './ContentLibraryTagItem';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetContentLibraryTagItemList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetContentLibraryTagItemList {
|
|
30
|
+
/**
|
|
31
|
+
* The current page number
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetContentLibraryTagItemList
|
|
34
|
+
*/
|
|
35
|
+
page: number;
|
|
36
|
+
/**
|
|
37
|
+
* The number of items per page
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetContentLibraryTagItemList
|
|
40
|
+
*/
|
|
41
|
+
pageSize: number;
|
|
42
|
+
/**
|
|
43
|
+
* The total number of pages
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetContentLibraryTagItemList
|
|
46
|
+
*/
|
|
47
|
+
totalPages: number;
|
|
48
|
+
/**
|
|
49
|
+
* The total number of items
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetContentLibraryTagItemList
|
|
52
|
+
*/
|
|
53
|
+
totalItems: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<ContentLibraryTagItem>}
|
|
57
|
+
* @memberof GetContentLibraryTagItemList
|
|
58
|
+
*/
|
|
59
|
+
items: Array<ContentLibraryTagItem>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the GetContentLibraryTagItemList interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfGetContentLibraryTagItemList(value: object): value is GetContentLibraryTagItemList {
|
|
66
|
+
if (!('page' in value) || value['page'] === undefined) return false;
|
|
67
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
|
|
68
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
69
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
70
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetContentLibraryTagItemListFromJSON(json: any): GetContentLibraryTagItemList {
|
|
75
|
+
return GetContentLibraryTagItemListFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetContentLibraryTagItemListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentLibraryTagItemList {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'page': json['page'],
|
|
85
|
+
'pageSize': json['pageSize'],
|
|
86
|
+
'totalPages': json['totalPages'],
|
|
87
|
+
'totalItems': json['totalItems'],
|
|
88
|
+
'items': ((json['items'] as Array<any>).map(ContentLibraryTagItemFromJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetContentLibraryTagItemListToJSON(json: any): GetContentLibraryTagItemList {
|
|
93
|
+
return GetContentLibraryTagItemListToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetContentLibraryTagItemListToJSONTyped(value?: GetContentLibraryTagItemList | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'page': value['page'],
|
|
104
|
+
'pageSize': value['pageSize'],
|
|
105
|
+
'totalPages': value['totalPages'],
|
|
106
|
+
'totalItems': value['totalItems'],
|
|
107
|
+
'items': ((value['items'] as Array<any>).map(ContentLibraryTagItemToJSON)),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|