@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.
Files changed (154) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +19 -2
  3. package/dist/apis/ContentLibraryApi.d.ts +179 -0
  4. package/dist/apis/ContentLibraryApi.js +424 -1
  5. package/dist/apis/ContentLibraryQuizApi.d.ts +1 -0
  6. package/dist/apis/ContentLibraryQuizApi.js +3 -0
  7. package/dist/apis/CourseApi.d.ts +2 -2
  8. package/dist/apis/CourseApi.js +2 -2
  9. package/dist/apis/QuestionApi.d.ts +0 -1
  10. package/dist/apis/QuestionApi.js +0 -3
  11. package/dist/esm/apis/ContentLibraryApi.d.ts +179 -0
  12. package/dist/esm/apis/ContentLibraryApi.js +423 -0
  13. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +1 -0
  14. package/dist/esm/apis/ContentLibraryQuizApi.js +3 -0
  15. package/dist/esm/apis/CourseApi.d.ts +2 -2
  16. package/dist/esm/apis/CourseApi.js +2 -2
  17. package/dist/esm/apis/QuestionApi.d.ts +0 -1
  18. package/dist/esm/apis/QuestionApi.js +0 -3
  19. package/dist/esm/models/ContentLibraryTag.d.ts +104 -0
  20. package/dist/esm/models/ContentLibraryTag.js +85 -0
  21. package/dist/esm/models/ContentLibraryTagItem.d.ts +84 -0
  22. package/dist/esm/models/ContentLibraryTagItem.js +76 -0
  23. package/dist/esm/models/CourseShareAcceptError.d.ts +54 -0
  24. package/dist/esm/models/CourseShareAcceptError.js +62 -0
  25. package/dist/esm/models/GetContentLibraryTagItemList.d.ts +57 -0
  26. package/dist/esm/models/GetContentLibraryTagItemList.js +60 -0
  27. package/dist/esm/models/GetContentLibraryTagList.d.ts +57 -0
  28. package/dist/esm/models/GetContentLibraryTagList.js +60 -0
  29. package/dist/esm/models/GetLibraryQuiz.d.ts +7 -0
  30. package/dist/esm/models/GetLibraryQuiz.js +5 -0
  31. package/dist/esm/models/GetQuestion.d.ts +0 -6
  32. package/dist/esm/models/GetQuestion.js +0 -4
  33. package/dist/esm/models/GetQuestionListFilters.d.ts +0 -6
  34. package/dist/esm/models/GetQuestionListFilters.js +0 -2
  35. package/dist/esm/models/GetResource.d.ts +7 -0
  36. package/dist/esm/models/GetResource.js +5 -0
  37. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
  38. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
  39. package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -6
  40. package/dist/esm/models/LibraryQuizCriterion.js +0 -2
  41. package/dist/esm/models/PostContentLibraryTag.d.ts +32 -0
  42. package/dist/esm/models/PostContentLibraryTag.js +43 -0
  43. package/dist/esm/models/PostContentLibraryTagMerge.d.ts +32 -0
  44. package/dist/esm/models/PostContentLibraryTagMerge.js +43 -0
  45. package/dist/esm/models/PostLibraryQuiz.d.ts +6 -0
  46. package/dist/esm/models/PostLibraryQuiz.js +2 -0
  47. package/dist/esm/models/PostQuestion.d.ts +0 -6
  48. package/dist/esm/models/PostQuestion.js +0 -4
  49. package/dist/esm/models/PostResource.d.ts +6 -0
  50. package/dist/esm/models/PostResource.js +2 -0
  51. package/dist/esm/models/PutContentLibraryTag.d.ts +32 -0
  52. package/dist/esm/models/PutContentLibraryTag.js +43 -0
  53. package/dist/esm/models/PutLibraryQuiz.d.ts +6 -0
  54. package/dist/esm/models/PutLibraryQuiz.js +2 -0
  55. package/dist/esm/models/PutQuestion.d.ts +0 -6
  56. package/dist/esm/models/PutQuestion.js +0 -2
  57. package/dist/esm/models/PutResource.d.ts +6 -0
  58. package/dist/esm/models/PutResource.js +2 -0
  59. package/dist/esm/models/index.d.ts +8 -0
  60. package/dist/esm/models/index.js +8 -0
  61. package/dist/models/ContentLibraryTag.d.ts +104 -0
  62. package/dist/models/ContentLibraryTag.js +92 -0
  63. package/dist/models/ContentLibraryTagItem.d.ts +84 -0
  64. package/dist/models/ContentLibraryTagItem.js +84 -0
  65. package/dist/models/CourseShareAcceptError.d.ts +54 -0
  66. package/dist/models/CourseShareAcceptError.js +70 -0
  67. package/dist/models/GetContentLibraryTagItemList.d.ts +57 -0
  68. package/dist/models/GetContentLibraryTagItemList.js +67 -0
  69. package/dist/models/GetContentLibraryTagList.d.ts +57 -0
  70. package/dist/models/GetContentLibraryTagList.js +67 -0
  71. package/dist/models/GetLibraryQuiz.d.ts +7 -0
  72. package/dist/models/GetLibraryQuiz.js +5 -0
  73. package/dist/models/GetQuestion.d.ts +0 -6
  74. package/dist/models/GetQuestion.js +0 -4
  75. package/dist/models/GetQuestionListFilters.d.ts +0 -6
  76. package/dist/models/GetQuestionListFilters.js +0 -2
  77. package/dist/models/GetResource.d.ts +7 -0
  78. package/dist/models/GetResource.js +5 -0
  79. package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
  80. package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
  81. package/dist/models/LibraryQuizCriterion.d.ts +0 -6
  82. package/dist/models/LibraryQuizCriterion.js +0 -2
  83. package/dist/models/PostContentLibraryTag.d.ts +32 -0
  84. package/dist/models/PostContentLibraryTag.js +50 -0
  85. package/dist/models/PostContentLibraryTagMerge.d.ts +32 -0
  86. package/dist/models/PostContentLibraryTagMerge.js +50 -0
  87. package/dist/models/PostLibraryQuiz.d.ts +6 -0
  88. package/dist/models/PostLibraryQuiz.js +2 -0
  89. package/dist/models/PostQuestion.d.ts +0 -6
  90. package/dist/models/PostQuestion.js +0 -4
  91. package/dist/models/PostResource.d.ts +6 -0
  92. package/dist/models/PostResource.js +2 -0
  93. package/dist/models/PutContentLibraryTag.d.ts +32 -0
  94. package/dist/models/PutContentLibraryTag.js +50 -0
  95. package/dist/models/PutLibraryQuiz.d.ts +6 -0
  96. package/dist/models/PutLibraryQuiz.js +2 -0
  97. package/dist/models/PutQuestion.d.ts +0 -6
  98. package/dist/models/PutQuestion.js +0 -2
  99. package/dist/models/PutResource.d.ts +6 -0
  100. package/dist/models/PutResource.js +2 -0
  101. package/dist/models/index.d.ts +8 -0
  102. package/dist/models/index.js +8 -0
  103. package/docs/ContentLibraryApi.md +732 -90
  104. package/docs/ContentLibraryQuizApi.md +4 -1
  105. package/docs/ContentLibraryTag.md +58 -0
  106. package/docs/ContentLibraryTagItem.md +48 -0
  107. package/docs/CourseApi.md +1 -1
  108. package/docs/CourseShareAcceptError.md +37 -0
  109. package/docs/CourseShareApi.md +9 -2
  110. package/docs/GetContentLibraryTagItemList.md +42 -0
  111. package/docs/GetContentLibraryTagList.md +42 -0
  112. package/docs/GetLibraryQuiz.md +2 -0
  113. package/docs/GetQuestion.md +0 -2
  114. package/docs/GetQuestionListFilters.md +0 -2
  115. package/docs/GetResource.md +2 -0
  116. package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -2
  117. package/docs/LibraryQuizCriterion.md +0 -2
  118. package/docs/PostContentLibraryTag.md +34 -0
  119. package/docs/PostContentLibraryTagMerge.md +34 -0
  120. package/docs/PostLibraryQuiz.md +2 -0
  121. package/docs/PostQuestion.md +0 -2
  122. package/docs/PostResource.md +2 -0
  123. package/docs/PutContentLibraryTag.md +34 -0
  124. package/docs/PutLibraryQuiz.md +2 -0
  125. package/docs/PutQuestion.md +0 -2
  126. package/docs/PutResource.md +2 -0
  127. package/docs/QuestionApi.md +1 -4
  128. package/package.json +1 -1
  129. package/src/apis/ContentLibraryApi.ts +575 -0
  130. package/src/apis/ContentLibraryQuizApi.ts +5 -0
  131. package/src/apis/CourseApi.ts +2 -2
  132. package/src/apis/CourseShareApi.ts +5 -0
  133. package/src/apis/QuestionApi.ts +0 -5
  134. package/src/models/ContentLibraryTag.ts +171 -0
  135. package/src/models/ContentLibraryTagItem.ts +153 -0
  136. package/src/models/CourseShareAcceptError.ts +94 -0
  137. package/src/models/GetContentLibraryTagItemList.ts +110 -0
  138. package/src/models/GetContentLibraryTagList.ts +110 -0
  139. package/src/models/GetLibraryQuiz.ts +16 -0
  140. package/src/models/GetQuestion.ts +0 -9
  141. package/src/models/GetQuestionListFilters.ts +0 -8
  142. package/src/models/GetResource.ts +16 -0
  143. package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -9
  144. package/src/models/LibraryQuizCriterion.ts +0 -8
  145. package/src/models/PostContentLibraryTag.ts +66 -0
  146. package/src/models/PostContentLibraryTagMerge.ts +66 -0
  147. package/src/models/PostLibraryQuiz.ts +8 -0
  148. package/src/models/PostQuestion.ts +0 -9
  149. package/src/models/PostResource.ts +8 -0
  150. package/src/models/PutContentLibraryTag.ts +66 -0
  151. package/src/models/PutLibraryQuiz.ts +8 -0
  152. package/src/models/PutQuestion.ts +0 -8
  153. package/src/models/PutResource.ts +8 -0
  154. package/src/models/index.ts +8 -0
@@ -0,0 +1,85 @@
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
+ * Check if a given object implements the ContentLibraryTag interface.
16
+ */
17
+ export function instanceOfContentLibraryTag(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('value' in value) || value['value'] === undefined)
23
+ return false;
24
+ if (!('totalItemCount' in value) || value['totalItemCount'] === undefined)
25
+ return false;
26
+ if (!('activeItemCount' in value) || value['activeItemCount'] === undefined)
27
+ return false;
28
+ if (!('archivedItemCount' in value) || value['archivedItemCount'] === undefined)
29
+ return false;
30
+ if (!('resourceCount' in value) || value['resourceCount'] === undefined)
31
+ return false;
32
+ if (!('quizCount' in value) || value['quizCount'] === undefined)
33
+ return false;
34
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ return false;
36
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function ContentLibraryTagFromJSON(json) {
41
+ return ContentLibraryTagFromJSONTyped(json, false);
42
+ }
43
+ export function ContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'name': json['name'],
50
+ 'key': json['key'] == null ? undefined : json['key'],
51
+ 'value': json['value'],
52
+ 'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
53
+ 'mergedIntoTagId': json['merged_into_tag_id'] == null ? undefined : json['merged_into_tag_id'],
54
+ 'totalItemCount': json['total_item_count'],
55
+ 'activeItemCount': json['active_item_count'],
56
+ 'archivedItemCount': json['archived_item_count'],
57
+ 'resourceCount': json['resource_count'],
58
+ 'quizCount': json['quiz_count'],
59
+ 'createdAt': json['created_at'],
60
+ 'updatedAt': json['updated_at'],
61
+ };
62
+ }
63
+ export function ContentLibraryTagToJSON(json) {
64
+ return ContentLibraryTagToJSONTyped(json, false);
65
+ }
66
+ export function ContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ 'key': value['key'],
74
+ 'value': value['value'],
75
+ 'archived_at': value['archivedAt'],
76
+ 'merged_into_tag_id': value['mergedIntoTagId'],
77
+ 'total_item_count': value['totalItemCount'],
78
+ 'active_item_count': value['activeItemCount'],
79
+ 'archived_item_count': value['archivedItemCount'],
80
+ 'resource_count': value['resourceCount'],
81
+ 'quiz_count': value['quizCount'],
82
+ 'created_at': value['createdAt'],
83
+ 'updated_at': value['updatedAt'],
84
+ };
85
+ }
@@ -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,76 @@
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
+ import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
15
+ import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
16
+ /**
17
+ * @export
18
+ */
19
+ export const ContentLibraryTagItemKindEnum = {
20
+ Resource: 'resource',
21
+ Quiz: 'quiz'
22
+ };
23
+ /**
24
+ * Check if a given object implements the ContentLibraryTagItem interface.
25
+ */
26
+ export function instanceOfContentLibraryTagItem(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('kind' in value) || value['kind'] === undefined)
30
+ return false;
31
+ if (!('name' in value) || value['name'] === undefined)
32
+ return false;
33
+ if (!('description' in value) || value['description'] === undefined)
34
+ return false;
35
+ if (!('tags' in value) || value['tags'] === undefined)
36
+ return false;
37
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function ContentLibraryTagItemFromJSON(json) {
42
+ return ContentLibraryTagItemFromJSONTyped(json, false);
43
+ }
44
+ export function ContentLibraryTagItemFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'kind': json['kind'],
51
+ 'name': json['name'],
52
+ 'description': json['description'],
53
+ 'resourceType': json['resource_type'] == null ? undefined : ResourceTypeFromJSON(json['resource_type']),
54
+ 'tags': (json['tags'].map(ContentLibraryTagFromJSON)),
55
+ 'updatedAt': json['updated_at'],
56
+ 'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
57
+ };
58
+ }
59
+ export function ContentLibraryTagItemToJSON(json) {
60
+ return ContentLibraryTagItemToJSONTyped(json, false);
61
+ }
62
+ export function ContentLibraryTagItemToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'id': value['id'],
68
+ 'kind': value['kind'],
69
+ 'name': value['name'],
70
+ 'description': value['description'],
71
+ 'resource_type': ResourceTypeToJSON(value['resourceType']),
72
+ 'tags': (value['tags'].map(ContentLibraryTagToJSON)),
73
+ 'updated_at': value['updatedAt'],
74
+ 'archived_at': value['archivedAt'],
75
+ };
76
+ }
@@ -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,62 @@
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
+ * @export
16
+ */
17
+ export const CourseShareAcceptErrorCodeEnum = {
18
+ PortalNotFound: 'portal_not_found',
19
+ ShareNotFound: 'share_not_found',
20
+ ShareNotAddressedToPortal: 'share_not_addressed_to_portal',
21
+ ModeNotAllowed: 'mode_not_allowed',
22
+ ShareNotOffered: 'share_not_offered',
23
+ SourceCourseUnavailable: 'source_course_unavailable',
24
+ SourceVersionUnpublished: 'source_version_unpublished',
25
+ SourceContentInvalid: 'source_content_invalid',
26
+ StorageCopyFailed: 'storage_copy_failed',
27
+ AcceptanceFailed: 'acceptance_failed'
28
+ };
29
+ /**
30
+ * Check if a given object implements the CourseShareAcceptError interface.
31
+ */
32
+ export function instanceOfCourseShareAcceptError(value) {
33
+ if (!('code' in value) || value['code'] === undefined)
34
+ return false;
35
+ if (!('message' in value) || value['message'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function CourseShareAcceptErrorFromJSON(json) {
40
+ return CourseShareAcceptErrorFromJSONTyped(json, false);
41
+ }
42
+ export function CourseShareAcceptErrorFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'code': json['code'],
48
+ 'message': json['message'],
49
+ };
50
+ }
51
+ export function CourseShareAcceptErrorToJSON(json) {
52
+ return CourseShareAcceptErrorToJSONTyped(json, false);
53
+ }
54
+ export function CourseShareAcceptErrorToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'code': value['code'],
60
+ 'message': value['message'],
61
+ };
62
+ }
@@ -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,60 @@
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
+ import { ContentLibraryTagItemFromJSON, ContentLibraryTagItemToJSON, } from './ContentLibraryTagItem';
15
+ /**
16
+ * Check if a given object implements the GetContentLibraryTagItemList interface.
17
+ */
18
+ export function instanceOfGetContentLibraryTagItemList(value) {
19
+ if (!('page' in value) || value['page'] === undefined)
20
+ return false;
21
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
22
+ return false;
23
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
24
+ return false;
25
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
26
+ return false;
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetContentLibraryTagItemListFromJSON(json) {
32
+ return GetContentLibraryTagItemListFromJSONTyped(json, false);
33
+ }
34
+ export function GetContentLibraryTagItemListFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'page': json['page'],
40
+ 'pageSize': json['pageSize'],
41
+ 'totalPages': json['totalPages'],
42
+ 'totalItems': json['totalItems'],
43
+ 'items': (json['items'].map(ContentLibraryTagItemFromJSON)),
44
+ };
45
+ }
46
+ export function GetContentLibraryTagItemListToJSON(json) {
47
+ return GetContentLibraryTagItemListToJSONTyped(json, false);
48
+ }
49
+ export function GetContentLibraryTagItemListToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'page': value['page'],
55
+ 'pageSize': value['pageSize'],
56
+ 'totalPages': value['totalPages'],
57
+ 'totalItems': value['totalItems'],
58
+ 'items': (value['items'].map(ContentLibraryTagItemToJSON)),
59
+ };
60
+ }
@@ -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 { ContentLibraryTag } from './ContentLibraryTag';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetContentLibraryTagList
17
+ */
18
+ export interface GetContentLibraryTagList {
19
+ /**
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetContentLibraryTagList
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetContentLibraryTagList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetContentLibraryTagList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of items
39
+ * @type {number}
40
+ * @memberof GetContentLibraryTagList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<ContentLibraryTag>}
46
+ * @memberof GetContentLibraryTagList
47
+ */
48
+ items: Array<ContentLibraryTag>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetContentLibraryTagList interface.
52
+ */
53
+ export declare function instanceOfGetContentLibraryTagList(value: object): value is GetContentLibraryTagList;
54
+ export declare function GetContentLibraryTagListFromJSON(json: any): GetContentLibraryTagList;
55
+ export declare function GetContentLibraryTagListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentLibraryTagList;
56
+ export declare function GetContentLibraryTagListToJSON(json: any): GetContentLibraryTagList;
57
+ export declare function GetContentLibraryTagListToJSONTyped(value?: GetContentLibraryTagList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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
+ import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
15
+ /**
16
+ * Check if a given object implements the GetContentLibraryTagList interface.
17
+ */
18
+ export function instanceOfGetContentLibraryTagList(value) {
19
+ if (!('page' in value) || value['page'] === undefined)
20
+ return false;
21
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
22
+ return false;
23
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
24
+ return false;
25
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
26
+ return false;
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetContentLibraryTagListFromJSON(json) {
32
+ return GetContentLibraryTagListFromJSONTyped(json, false);
33
+ }
34
+ export function GetContentLibraryTagListFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'page': json['page'],
40
+ 'pageSize': json['pageSize'],
41
+ 'totalPages': json['totalPages'],
42
+ 'totalItems': json['totalItems'],
43
+ 'items': (json['items'].map(ContentLibraryTagFromJSON)),
44
+ };
45
+ }
46
+ export function GetContentLibraryTagListToJSON(json) {
47
+ return GetContentLibraryTagListToJSONTyped(json, false);
48
+ }
49
+ export function GetContentLibraryTagListToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'page': value['page'],
55
+ 'pageSize': value['pageSize'],
56
+ 'totalPages': value['totalPages'],
57
+ 'totalItems': value['totalItems'],
58
+ 'items': (value['items'].map(ContentLibraryTagToJSON)),
59
+ };
60
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ContentLibraryTag } from './ContentLibraryTag';
12
13
  import type { GetLibraryQuizVersion } from './GetLibraryQuizVersion';
13
14
  /**
14
15
  *
@@ -46,6 +47,12 @@ export interface GetLibraryQuiz {
46
47
  * @memberof GetLibraryQuiz
47
48
  */
48
49
  ownerId: string;
50
+ /**
51
+ *
52
+ * @type {Array<ContentLibraryTag>}
53
+ * @memberof GetLibraryQuiz
54
+ */
55
+ tags: Array<ContentLibraryTag>;
49
56
  /**
50
57
  *
51
58
  * @type {GetLibraryQuizVersion}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
14
15
  import { GetLibraryQuizVersionFromJSON, GetLibraryQuizVersionToJSON, } from './GetLibraryQuizVersion';
15
16
  /**
16
17
  * @export
@@ -32,6 +33,8 @@ export function instanceOfGetLibraryQuiz(value) {
32
33
  return false;
33
34
  if (!('ownerId' in value) || value['ownerId'] === undefined)
34
35
  return false;
36
+ if (!('tags' in value) || value['tags'] === undefined)
37
+ return false;
35
38
  if (!('versions' in value) || value['versions'] === undefined)
36
39
  return false;
37
40
  if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined)
@@ -61,6 +64,7 @@ export function GetLibraryQuizFromJSONTyped(json, ignoreDiscriminator) {
61
64
  'name': json['name'],
62
65
  'description': json['description'],
63
66
  'ownerId': json['owner_id'],
67
+ 'tags': (json['tags'].map(ContentLibraryTagFromJSON)),
64
68
  'latestPublishedVersion': json['latest_published_version'] == null ? undefined : GetLibraryQuizVersionFromJSON(json['latest_published_version']),
65
69
  'draftVersion': json['draft_version'] == null ? undefined : GetLibraryQuizVersionFromJSON(json['draft_version']),
66
70
  'versions': (json['versions'].map(GetLibraryQuizVersionFromJSON)),
@@ -86,6 +90,7 @@ export function GetLibraryQuizToJSONTyped(value, ignoreDiscriminator = false) {
86
90
  'name': value['name'],
87
91
  'description': value['description'],
88
92
  'owner_id': value['ownerId'],
93
+ 'tags': (value['tags'].map(ContentLibraryTagToJSON)),
89
94
  'latest_published_version': GetLibraryQuizVersionToJSON(value['latestPublishedVersion']),
90
95
  'draft_version': GetLibraryQuizVersionToJSON(value['draftVersion']),
91
96
  'versions': (value['versions'].map(GetLibraryQuizVersionToJSON)),
@@ -54,12 +54,6 @@ export interface GetQuestion {
54
54
  * @memberof GetQuestion
55
55
  */
56
56
  explanation?: RichTextDocument;
57
- /**
58
- * Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
59
- * @type {string}
60
- * @memberof GetQuestion
61
- */
62
- topic: string;
63
57
  /**
64
58
  * Difficulty level of the question
65
59
  * @type {GetQuestionDifficultyLevelEnum}