@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.
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 +180 -0
  4. package/dist/apis/ContentLibraryApi.js +425 -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 +1 -12
  10. package/dist/apis/QuestionApi.js +3 -17
  11. package/dist/esm/apis/ContentLibraryApi.d.ts +180 -0
  12. package/dist/esm/apis/ContentLibraryApi.js +424 -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 +1 -12
  18. package/dist/esm/apis/QuestionApi.js +2 -16
  19. package/dist/esm/models/ContentLibraryTag.d.ts +110 -0
  20. package/dist/esm/models/ContentLibraryTag.js +89 -0
  21. package/dist/esm/models/ContentLibraryTagItem.d.ts +85 -0
  22. package/dist/esm/models/ContentLibraryTagItem.js +77 -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 +4 -24
  32. package/dist/esm/models/GetQuestion.js +3 -18
  33. package/dist/esm/models/GetQuestionListFilters.d.ts +3 -24
  34. package/dist/esm/models/GetQuestionListFilters.js +2 -14
  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 -21
  38. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -16
  39. package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -21
  40. package/dist/esm/models/LibraryQuizCriterion.js +0 -12
  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 -21
  48. package/dist/esm/models/PostQuestion.js +0 -16
  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 -21
  56. package/dist/esm/models/PutQuestion.js +0 -12
  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 +110 -0
  62. package/dist/models/ContentLibraryTag.js +96 -0
  63. package/dist/models/ContentLibraryTagItem.d.ts +85 -0
  64. package/dist/models/ContentLibraryTagItem.js +85 -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 +4 -24
  74. package/dist/models/GetQuestion.js +4 -19
  75. package/dist/models/GetQuestionListFilters.d.ts +3 -24
  76. package/dist/models/GetQuestionListFilters.js +3 -15
  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 -21
  80. package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +1 -17
  81. package/dist/models/LibraryQuizCriterion.d.ts +0 -21
  82. package/dist/models/LibraryQuizCriterion.js +1 -13
  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 -21
  90. package/dist/models/PostQuestion.js +1 -17
  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 -21
  98. package/dist/models/PutQuestion.js +1 -13
  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 +60 -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 +1 -5
  114. package/docs/GetQuestionListFilters.md +2 -6
  115. package/docs/GetResource.md +2 -0
  116. package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -4
  117. package/docs/LibraryQuizCriterion.md +0 -4
  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 -4
  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 -4
  126. package/docs/PutResource.md +2 -0
  127. package/docs/QuestionApi.md +4 -10
  128. package/package.json +1 -1
  129. package/src/apis/ContentLibraryApi.ts +576 -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 +3 -22
  134. package/src/models/ContentLibraryTag.ts +180 -0
  135. package/src/models/ContentLibraryTagItem.ts +154 -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 +12 -33
  141. package/src/models/GetQuestionListFilters.ts +5 -31
  142. package/src/models/GetResource.ts +16 -0
  143. package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -28
  144. package/src/models/LibraryQuizCriterion.ts +0 -26
  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 -28
  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 -26
  153. package/src/models/PutResource.ts +8 -0
  154. package/src/models/index.ts +8 -0
@@ -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,
@@ -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
- difficultyLevel?: GetQuestionListDifficultyLevelEnum;
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['difficultyLevel'] != null) {
181
- queryParameters['difficulty_level'] = requestParameters['difficultyLevel'];
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
+