@easyedu/js-lsm-api 1.108.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 +16 -0
- package/README.md +19 -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/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/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/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 +8 -0
- package/dist/esm/models/index.js +8 -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/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 +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 +58 -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 +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/CourseShareApi.ts +5 -0
- 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/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 +8 -0
package/dist/esm/models/index.js
CHANGED
|
@@ -34,10 +34,13 @@ export * from './ChatTurnUsage';
|
|
|
34
34
|
export * from './ChatUsageTotals';
|
|
35
35
|
export * from './ChatUserIdentity';
|
|
36
36
|
export * from './ContentLaunchMode';
|
|
37
|
+
export * from './ContentLibraryTag';
|
|
38
|
+
export * from './ContentLibraryTagItem';
|
|
37
39
|
export * from './ContentLibraryVersionStatus';
|
|
38
40
|
export * from './CourseCatalog';
|
|
39
41
|
export * from './CourseProgressionMode';
|
|
40
42
|
export * from './CourseShare';
|
|
43
|
+
export * from './CourseShareAcceptError';
|
|
41
44
|
export * from './EffectiveCertificateConfig';
|
|
42
45
|
export * from './EmailTemplateDefinition';
|
|
43
46
|
export * from './EmailTemplateScope';
|
|
@@ -54,6 +57,8 @@ export * from './GetChangelogList';
|
|
|
54
57
|
export * from './GetChatMessage';
|
|
55
58
|
export * from './GetChatSettings';
|
|
56
59
|
export * from './GetChatUsage';
|
|
60
|
+
export * from './GetContentLibraryTagItemList';
|
|
61
|
+
export * from './GetContentLibraryTagList';
|
|
57
62
|
export * from './GetContentLibraryVersion';
|
|
58
63
|
export * from './GetConversation';
|
|
59
64
|
export * from './GetConversationList';
|
|
@@ -183,6 +188,8 @@ export * from './PostCertificateTemplateClone';
|
|
|
183
188
|
export * from './PostCertificateTemplatePreview';
|
|
184
189
|
export * from './PostClearSessions';
|
|
185
190
|
export * from './PostClearSessionsResponse';
|
|
191
|
+
export * from './PostContentLibraryTag';
|
|
192
|
+
export * from './PostContentLibraryTagMerge';
|
|
186
193
|
export * from './PostConversation';
|
|
187
194
|
export * from './PostConversationResponse';
|
|
188
195
|
export * from './PostCourse';
|
|
@@ -240,6 +247,7 @@ export * from './PutCertificateConfig';
|
|
|
240
247
|
export * from './PutCertificateTemplate';
|
|
241
248
|
export * from './PutCertificateTemplateDraft';
|
|
242
249
|
export * from './PutChatSettings';
|
|
250
|
+
export * from './PutContentLibraryTag';
|
|
243
251
|
export * from './PutCourse';
|
|
244
252
|
export * from './PutCourseCatalog';
|
|
245
253
|
export * from './PutCourseEnrollment';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContentLibraryTag
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentLibraryTag {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ContentLibraryTag
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ContentLibraryTag
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ContentLibraryTag
|
|
34
|
+
*/
|
|
35
|
+
key?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ContentLibraryTag
|
|
40
|
+
*/
|
|
41
|
+
value: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ContentLibraryTag
|
|
46
|
+
*/
|
|
47
|
+
archivedAt?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ContentLibraryTag
|
|
52
|
+
*/
|
|
53
|
+
mergedIntoTagId?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ContentLibraryTag
|
|
58
|
+
*/
|
|
59
|
+
totalItemCount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ContentLibraryTag
|
|
64
|
+
*/
|
|
65
|
+
activeItemCount: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof ContentLibraryTag
|
|
70
|
+
*/
|
|
71
|
+
archivedItemCount: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof ContentLibraryTag
|
|
76
|
+
*/
|
|
77
|
+
resourceCount: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof ContentLibraryTag
|
|
82
|
+
*/
|
|
83
|
+
quizCount: number;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof ContentLibraryTag
|
|
88
|
+
*/
|
|
89
|
+
createdAt: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof ContentLibraryTag
|
|
94
|
+
*/
|
|
95
|
+
updatedAt: number;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the ContentLibraryTag interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfContentLibraryTag(value: object): value is ContentLibraryTag;
|
|
101
|
+
export declare function ContentLibraryTagFromJSON(json: any): ContentLibraryTag;
|
|
102
|
+
export declare function ContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryTag;
|
|
103
|
+
export declare function ContentLibraryTagToJSON(json: any): ContentLibraryTag;
|
|
104
|
+
export declare function ContentLibraryTagToJSONTyped(value?: ContentLibraryTag | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfContentLibraryTag = instanceOfContentLibraryTag;
|
|
17
|
+
exports.ContentLibraryTagFromJSON = ContentLibraryTagFromJSON;
|
|
18
|
+
exports.ContentLibraryTagFromJSONTyped = ContentLibraryTagFromJSONTyped;
|
|
19
|
+
exports.ContentLibraryTagToJSON = ContentLibraryTagToJSON;
|
|
20
|
+
exports.ContentLibraryTagToJSONTyped = ContentLibraryTagToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ContentLibraryTag interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfContentLibraryTag(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('totalItemCount' in value) || value['totalItemCount'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('activeItemCount' in value) || value['activeItemCount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('archivedItemCount' in value) || value['archivedItemCount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('resourceCount' in value) || value['resourceCount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('quizCount' in value) || value['quizCount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function ContentLibraryTagFromJSON(json) {
|
|
48
|
+
return ContentLibraryTagFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function ContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
58
|
+
'value': json['value'],
|
|
59
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
60
|
+
'mergedIntoTagId': json['merged_into_tag_id'] == null ? undefined : json['merged_into_tag_id'],
|
|
61
|
+
'totalItemCount': json['total_item_count'],
|
|
62
|
+
'activeItemCount': json['active_item_count'],
|
|
63
|
+
'archivedItemCount': json['archived_item_count'],
|
|
64
|
+
'resourceCount': json['resource_count'],
|
|
65
|
+
'quizCount': json['quiz_count'],
|
|
66
|
+
'createdAt': json['created_at'],
|
|
67
|
+
'updatedAt': json['updated_at'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function ContentLibraryTagToJSON(json) {
|
|
71
|
+
return ContentLibraryTagToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function ContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'id': value['id'],
|
|
79
|
+
'name': value['name'],
|
|
80
|
+
'key': value['key'],
|
|
81
|
+
'value': value['value'],
|
|
82
|
+
'archived_at': value['archivedAt'],
|
|
83
|
+
'merged_into_tag_id': value['mergedIntoTagId'],
|
|
84
|
+
'total_item_count': value['totalItemCount'],
|
|
85
|
+
'active_item_count': value['activeItemCount'],
|
|
86
|
+
'archived_item_count': value['archivedItemCount'],
|
|
87
|
+
'resource_count': value['resourceCount'],
|
|
88
|
+
'quiz_count': value['quizCount'],
|
|
89
|
+
'created_at': value['createdAt'],
|
|
90
|
+
'updated_at': value['updatedAt'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ContentLibraryTag } from './ContentLibraryTag';
|
|
13
|
+
import type { ResourceType } from './ResourceType';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ContentLibraryTagItem
|
|
18
|
+
*/
|
|
19
|
+
export interface ContentLibraryTagItem {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ContentLibraryTagItem
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ContentLibraryTagItemKindEnum}
|
|
29
|
+
* @memberof ContentLibraryTagItem
|
|
30
|
+
*/
|
|
31
|
+
kind: ContentLibraryTagItemKindEnum;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ContentLibraryTagItem
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ContentLibraryTagItem
|
|
42
|
+
*/
|
|
43
|
+
description: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ResourceType}
|
|
47
|
+
* @memberof ContentLibraryTagItem
|
|
48
|
+
*/
|
|
49
|
+
resourceType?: ResourceType | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<ContentLibraryTag>}
|
|
53
|
+
* @memberof ContentLibraryTagItem
|
|
54
|
+
*/
|
|
55
|
+
tags: Array<ContentLibraryTag>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof ContentLibraryTagItem
|
|
60
|
+
*/
|
|
61
|
+
updatedAt: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof ContentLibraryTagItem
|
|
66
|
+
*/
|
|
67
|
+
archivedAt?: number | null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const ContentLibraryTagItemKindEnum: {
|
|
73
|
+
readonly Resource: "resource";
|
|
74
|
+
readonly Quiz: "quiz";
|
|
75
|
+
};
|
|
76
|
+
export type ContentLibraryTagItemKindEnum = typeof ContentLibraryTagItemKindEnum[keyof typeof ContentLibraryTagItemKindEnum];
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the ContentLibraryTagItem interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfContentLibraryTagItem(value: object): value is ContentLibraryTagItem;
|
|
81
|
+
export declare function ContentLibraryTagItemFromJSON(json: any): ContentLibraryTagItem;
|
|
82
|
+
export declare function ContentLibraryTagItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryTagItem;
|
|
83
|
+
export declare function ContentLibraryTagItemToJSON(json: any): ContentLibraryTagItem;
|
|
84
|
+
export declare function ContentLibraryTagItemToJSONTyped(value?: ContentLibraryTagItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ContentLibraryTagItemKindEnum = void 0;
|
|
17
|
+
exports.instanceOfContentLibraryTagItem = instanceOfContentLibraryTagItem;
|
|
18
|
+
exports.ContentLibraryTagItemFromJSON = ContentLibraryTagItemFromJSON;
|
|
19
|
+
exports.ContentLibraryTagItemFromJSONTyped = ContentLibraryTagItemFromJSONTyped;
|
|
20
|
+
exports.ContentLibraryTagItemToJSON = ContentLibraryTagItemToJSON;
|
|
21
|
+
exports.ContentLibraryTagItemToJSONTyped = ContentLibraryTagItemToJSONTyped;
|
|
22
|
+
const ContentLibraryTag_1 = require("./ContentLibraryTag");
|
|
23
|
+
const ResourceType_1 = require("./ResourceType");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.ContentLibraryTagItemKindEnum = {
|
|
28
|
+
Resource: 'resource',
|
|
29
|
+
Quiz: 'quiz'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ContentLibraryTagItem interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfContentLibraryTagItem(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function ContentLibraryTagItemFromJSON(json) {
|
|
50
|
+
return ContentLibraryTagItemFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ContentLibraryTagItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'kind': json['kind'],
|
|
59
|
+
'name': json['name'],
|
|
60
|
+
'description': json['description'],
|
|
61
|
+
'resourceType': json['resource_type'] == null ? undefined : (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
|
|
62
|
+
'tags': (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
|
|
63
|
+
'updatedAt': json['updated_at'],
|
|
64
|
+
'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function ContentLibraryTagItemToJSON(json) {
|
|
68
|
+
return ContentLibraryTagItemToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function ContentLibraryTagItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value['id'],
|
|
76
|
+
'kind': value['kind'],
|
|
77
|
+
'name': value['name'],
|
|
78
|
+
'description': value['description'],
|
|
79
|
+
'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
|
|
80
|
+
'tags': (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
|
|
81
|
+
'updated_at': value['updatedAt'],
|
|
82
|
+
'archived_at': value['archivedAt'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A safe, actionable error returned when a course-share offer cannot be accepted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CourseShareAcceptError
|
|
16
|
+
*/
|
|
17
|
+
export interface CourseShareAcceptError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {CourseShareAcceptErrorCodeEnum}
|
|
21
|
+
* @memberof CourseShareAcceptError
|
|
22
|
+
*/
|
|
23
|
+
code: CourseShareAcceptErrorCodeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CourseShareAcceptError
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const CourseShareAcceptErrorCodeEnum: {
|
|
35
|
+
readonly PortalNotFound: "portal_not_found";
|
|
36
|
+
readonly ShareNotFound: "share_not_found";
|
|
37
|
+
readonly ShareNotAddressedToPortal: "share_not_addressed_to_portal";
|
|
38
|
+
readonly ModeNotAllowed: "mode_not_allowed";
|
|
39
|
+
readonly ShareNotOffered: "share_not_offered";
|
|
40
|
+
readonly SourceCourseUnavailable: "source_course_unavailable";
|
|
41
|
+
readonly SourceVersionUnpublished: "source_version_unpublished";
|
|
42
|
+
readonly SourceContentInvalid: "source_content_invalid";
|
|
43
|
+
readonly StorageCopyFailed: "storage_copy_failed";
|
|
44
|
+
readonly AcceptanceFailed: "acceptance_failed";
|
|
45
|
+
};
|
|
46
|
+
export type CourseShareAcceptErrorCodeEnum = typeof CourseShareAcceptErrorCodeEnum[keyof typeof CourseShareAcceptErrorCodeEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the CourseShareAcceptError interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfCourseShareAcceptError(value: object): value is CourseShareAcceptError;
|
|
51
|
+
export declare function CourseShareAcceptErrorFromJSON(json: any): CourseShareAcceptError;
|
|
52
|
+
export declare function CourseShareAcceptErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourseShareAcceptError;
|
|
53
|
+
export declare function CourseShareAcceptErrorToJSON(json: any): CourseShareAcceptError;
|
|
54
|
+
export declare function CourseShareAcceptErrorToJSONTyped(value?: CourseShareAcceptError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CourseShareAcceptErrorCodeEnum = void 0;
|
|
17
|
+
exports.instanceOfCourseShareAcceptError = instanceOfCourseShareAcceptError;
|
|
18
|
+
exports.CourseShareAcceptErrorFromJSON = CourseShareAcceptErrorFromJSON;
|
|
19
|
+
exports.CourseShareAcceptErrorFromJSONTyped = CourseShareAcceptErrorFromJSONTyped;
|
|
20
|
+
exports.CourseShareAcceptErrorToJSON = CourseShareAcceptErrorToJSON;
|
|
21
|
+
exports.CourseShareAcceptErrorToJSONTyped = CourseShareAcceptErrorToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CourseShareAcceptErrorCodeEnum = {
|
|
26
|
+
PortalNotFound: 'portal_not_found',
|
|
27
|
+
ShareNotFound: 'share_not_found',
|
|
28
|
+
ShareNotAddressedToPortal: 'share_not_addressed_to_portal',
|
|
29
|
+
ModeNotAllowed: 'mode_not_allowed',
|
|
30
|
+
ShareNotOffered: 'share_not_offered',
|
|
31
|
+
SourceCourseUnavailable: 'source_course_unavailable',
|
|
32
|
+
SourceVersionUnpublished: 'source_version_unpublished',
|
|
33
|
+
SourceContentInvalid: 'source_content_invalid',
|
|
34
|
+
StorageCopyFailed: 'storage_copy_failed',
|
|
35
|
+
AcceptanceFailed: 'acceptance_failed'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CourseShareAcceptError interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfCourseShareAcceptError(value) {
|
|
41
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function CourseShareAcceptErrorFromJSON(json) {
|
|
48
|
+
return CourseShareAcceptErrorFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function CourseShareAcceptErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'code': json['code'],
|
|
56
|
+
'message': json['message'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function CourseShareAcceptErrorToJSON(json) {
|
|
60
|
+
return CourseShareAcceptErrorToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function CourseShareAcceptErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'code': value['code'],
|
|
68
|
+
'message': value['message'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ContentLibraryTagItem } from './ContentLibraryTagItem';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetContentLibraryTagItemList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetContentLibraryTagItemList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetContentLibraryTagItemList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetContentLibraryTagItemList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetContentLibraryTagItemList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetContentLibraryTagItemList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ContentLibraryTagItem>}
|
|
46
|
+
* @memberof GetContentLibraryTagItemList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<ContentLibraryTagItem>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetContentLibraryTagItemList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetContentLibraryTagItemList(value: object): value is GetContentLibraryTagItemList;
|
|
54
|
+
export declare function GetContentLibraryTagItemListFromJSON(json: any): GetContentLibraryTagItemList;
|
|
55
|
+
export declare function GetContentLibraryTagItemListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentLibraryTagItemList;
|
|
56
|
+
export declare function GetContentLibraryTagItemListToJSON(json: any): GetContentLibraryTagItemList;
|
|
57
|
+
export declare function GetContentLibraryTagItemListToJSONTyped(value?: GetContentLibraryTagItemList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetContentLibraryTagItemList = instanceOfGetContentLibraryTagItemList;
|
|
17
|
+
exports.GetContentLibraryTagItemListFromJSON = GetContentLibraryTagItemListFromJSON;
|
|
18
|
+
exports.GetContentLibraryTagItemListFromJSONTyped = GetContentLibraryTagItemListFromJSONTyped;
|
|
19
|
+
exports.GetContentLibraryTagItemListToJSON = GetContentLibraryTagItemListToJSON;
|
|
20
|
+
exports.GetContentLibraryTagItemListToJSONTyped = GetContentLibraryTagItemListToJSONTyped;
|
|
21
|
+
const ContentLibraryTagItem_1 = require("./ContentLibraryTagItem");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetContentLibraryTagItemList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetContentLibraryTagItemList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetContentLibraryTagItemListFromJSON(json) {
|
|
39
|
+
return GetContentLibraryTagItemListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetContentLibraryTagItemListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(ContentLibraryTagItem_1.ContentLibraryTagItemFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetContentLibraryTagItemListToJSON(json) {
|
|
54
|
+
return GetContentLibraryTagItemListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetContentLibraryTagItemListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(ContentLibraryTagItem_1.ContentLibraryTagItemToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|