@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
@@ -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)),
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { RichTextDocument } from './RichTextDocument';
13
+ import type { ContentLibraryTag } from './ContentLibraryTag';
13
14
  import type { GetQuestionAnswerChoicesInner } from './GetQuestionAnswerChoicesInner';
14
15
  import type { GetQuestionQuizzesInner } from './GetQuestionQuizzesInner';
15
16
  /**
@@ -55,23 +56,11 @@ export interface GetQuestion {
55
56
  */
56
57
  explanation?: RichTextDocument;
57
58
  /**
58
- * Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
59
- * @type {string}
60
- * @memberof GetQuestion
61
- */
62
- topic: string;
63
- /**
64
- * Difficulty level of the question
65
- * @type {GetQuestionDifficultyLevelEnum}
59
+ * Shared tags associated with the question
60
+ * @type {Array<ContentLibraryTag>}
66
61
  * @memberof GetQuestion
67
62
  */
68
- difficultyLevel: GetQuestionDifficultyLevelEnum;
69
- /**
70
- * Keywords/tags for granular filtering
71
- * @type {Array<string>}
72
- * @memberof GetQuestion
73
- */
74
- tags?: Array<string>;
63
+ tags?: Array<ContentLibraryTag>;
75
64
  /**
76
65
  * Version identifier for triannual updates
77
66
  * @type {string}
@@ -127,15 +116,6 @@ export declare const GetQuestionQuestionTypeEnum: {
127
116
  readonly Essay: "essay";
128
117
  };
129
118
  export type GetQuestionQuestionTypeEnum = typeof GetQuestionQuestionTypeEnum[keyof typeof GetQuestionQuestionTypeEnum];
130
- /**
131
- * @export
132
- */
133
- export declare const GetQuestionDifficultyLevelEnum: {
134
- readonly Beginner: "beginner";
135
- readonly Intermediate: "intermediate";
136
- readonly Advanced: "advanced";
137
- };
138
- export type GetQuestionDifficultyLevelEnum = typeof GetQuestionDifficultyLevelEnum[keyof typeof GetQuestionDifficultyLevelEnum];
139
119
  /**
140
120
  * Check if a given object implements the GetQuestion interface.
141
121
  */
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
15
+ import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
15
16
  import { GetQuestionAnswerChoicesInnerFromJSON, GetQuestionAnswerChoicesInnerToJSON, } from './GetQuestionAnswerChoicesInner';
16
17
  import { GetQuestionQuizzesInnerFromJSON, } from './GetQuestionQuizzesInner';
17
18
  /**
@@ -25,14 +26,6 @@ export const GetQuestionQuestionTypeEnum = {
25
26
  Matching: 'matching',
26
27
  Essay: 'essay'
27
28
  };
28
- /**
29
- * @export
30
- */
31
- export const GetQuestionDifficultyLevelEnum = {
32
- Beginner: 'beginner',
33
- Intermediate: 'intermediate',
34
- Advanced: 'advanced'
35
- };
36
29
  /**
37
30
  * Check if a given object implements the GetQuestion interface.
38
31
  */
@@ -43,10 +36,6 @@ export function instanceOfGetQuestion(value) {
43
36
  return false;
44
37
  if (!('questionType' in value) || value['questionType'] === undefined)
45
38
  return false;
46
- if (!('topic' in value) || value['topic'] === undefined)
47
- return false;
48
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
49
- return false;
50
39
  if (!('versionNumber' in value) || value['versionNumber'] === undefined)
51
40
  return false;
52
41
  if (!('createdDate' in value) || value['createdDate'] === undefined)
@@ -69,9 +58,7 @@ export function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
69
58
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuestionAnswerChoicesInnerFromJSON)),
70
59
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
71
60
  'explanation': json['explanation'] == null ? undefined : RichTextDocumentFromJSON(json['explanation']),
72
- 'topic': json['topic'],
73
- 'difficultyLevel': json['difficulty_level'],
74
- 'tags': json['tags'] == null ? undefined : json['tags'],
61
+ 'tags': json['tags'] == null ? undefined : (json['tags'].map(ContentLibraryTagFromJSON)),
75
62
  'version': json['version'] == null ? undefined : json['version'],
76
63
  'versionNumber': json['version_number'],
77
64
  'createdDate': (new Date(json['created_date'])),
@@ -94,9 +81,7 @@ export function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
94
81
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuestionAnswerChoicesInnerToJSON)),
95
82
  'correct_answer': value['correctAnswer'],
96
83
  'explanation': RichTextDocumentToJSON(value['explanation']),
97
- 'topic': value['topic'],
98
- 'difficulty_level': value['difficultyLevel'],
99
- 'tags': value['tags'],
84
+ 'tags': value['tags'] == null ? undefined : (value['tags'].map(ContentLibraryTagToJSON)),
100
85
  'version': value['version'],
101
86
  };
102
87
  }
@@ -15,12 +15,6 @@
15
15
  * @interface GetQuestionListFilters
16
16
  */
17
17
  export interface GetQuestionListFilters {
18
- /**
19
- * Filter by topic
20
- * @type {string}
21
- * @memberof GetQuestionListFilters
22
- */
23
- topic?: string;
24
18
  /**
25
19
  * Filter by question type
26
20
  * @type {GetQuestionListFiltersQuestionTypeEnum}
@@ -28,17 +22,11 @@ export interface GetQuestionListFilters {
28
22
  */
29
23
  questionType?: GetQuestionListFiltersQuestionTypeEnum;
30
24
  /**
31
- * Filter by difficulty level
32
- * @type {GetQuestionListFiltersDifficultyLevelEnum}
33
- * @memberof GetQuestionListFilters
34
- */
35
- difficultyLevel?: GetQuestionListFiltersDifficultyLevelEnum;
36
- /**
37
- * Filter by tags/keywords
38
- * @type {Array<string>}
25
+ * Filter by a shared tag
26
+ * @type {string}
39
27
  * @memberof GetQuestionListFilters
40
28
  */
41
- tags?: Array<string>;
29
+ tagId?: string;
42
30
  /**
43
31
  * Search in question text
44
32
  * @type {string}
@@ -70,15 +58,6 @@ export declare const GetQuestionListFiltersQuestionTypeEnum: {
70
58
  readonly Essay: "essay";
71
59
  };
72
60
  export type GetQuestionListFiltersQuestionTypeEnum = typeof GetQuestionListFiltersQuestionTypeEnum[keyof typeof GetQuestionListFiltersQuestionTypeEnum];
73
- /**
74
- * @export
75
- */
76
- export declare const GetQuestionListFiltersDifficultyLevelEnum: {
77
- readonly Beginner: "beginner";
78
- readonly Intermediate: "intermediate";
79
- readonly Advanced: "advanced";
80
- };
81
- export type GetQuestionListFiltersDifficultyLevelEnum = typeof GetQuestionListFiltersDifficultyLevelEnum[keyof typeof GetQuestionListFiltersDifficultyLevelEnum];
82
61
  /**
83
62
  * Check if a given object implements the GetQuestionListFilters interface.
84
63
  */
@@ -22,14 +22,6 @@ export const GetQuestionListFiltersQuestionTypeEnum = {
22
22
  Matching: 'matching',
23
23
  Essay: 'essay'
24
24
  };
25
- /**
26
- * @export
27
- */
28
- export const GetQuestionListFiltersDifficultyLevelEnum = {
29
- Beginner: 'beginner',
30
- Intermediate: 'intermediate',
31
- Advanced: 'advanced'
32
- };
33
25
  /**
34
26
  * Check if a given object implements the GetQuestionListFilters interface.
35
27
  */
@@ -44,10 +36,8 @@ export function GetQuestionListFiltersFromJSONTyped(json, ignoreDiscriminator) {
44
36
  return json;
45
37
  }
46
38
  return {
47
- 'topic': json['topic'] == null ? undefined : json['topic'],
48
39
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
49
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
50
- 'tags': json['tags'] == null ? undefined : json['tags'],
40
+ 'tagId': json['tag_id'] == null ? undefined : json['tag_id'],
51
41
  'search': json['search'] == null ? undefined : json['search'],
52
42
  'createdAfter': json['created_after'] == null ? undefined : (new Date(json['created_after'])),
53
43
  'createdBefore': json['created_before'] == null ? undefined : (new Date(json['created_before'])),
@@ -61,10 +51,8 @@ export function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = f
61
51
  return value;
62
52
  }
63
53
  return {
64
- 'topic': value['topic'],
65
54
  'question_type': value['questionType'],
66
- 'difficulty_level': value['difficultyLevel'],
67
- 'tags': value['tags'],
55
+ 'tag_id': value['tagId'],
68
56
  'search': value['search'],
69
57
  'created_after': value['createdAfter'] == null ? value['createdAfter'] : value['createdAfter'].toISOString().substring(0, 10),
70
58
  'created_before': value['createdBefore'] == null ? value['createdBefore'] : value['createdBefore'].toISOString().substring(0, 10),
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { GetContentLibraryVersion } from './GetContentLibraryVersion';
13
+ import type { ContentLibraryTag } from './ContentLibraryTag';
13
14
  import type { ResourceType } from './ResourceType';
14
15
  /**
15
16
  *
@@ -47,6 +48,12 @@ export interface GetResource {
47
48
  * @memberof GetResource
48
49
  */
49
50
  ownerId: string;
51
+ /**
52
+ *
53
+ * @type {Array<ContentLibraryTag>}
54
+ * @memberof GetResource
55
+ */
56
+ tags: Array<ContentLibraryTag>;
50
57
  /**
51
58
  *
52
59
  * @type {GetContentLibraryVersion}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { GetContentLibraryVersionFromJSON, GetContentLibraryVersionToJSON, } from './GetContentLibraryVersion';
15
+ import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
15
16
  import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
16
17
  /**
17
18
  * Check if a given object implements the GetResource interface.
@@ -27,6 +28,8 @@ export function instanceOfGetResource(value) {
27
28
  return false;
28
29
  if (!('ownerId' in value) || value['ownerId'] === undefined)
29
30
  return false;
31
+ if (!('tags' in value) || value['tags'] === undefined)
32
+ return false;
30
33
  if (!('versions' in value) || value['versions'] === undefined)
31
34
  return false;
32
35
  if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined)
@@ -56,6 +59,7 @@ export function GetResourceFromJSONTyped(json, ignoreDiscriminator) {
56
59
  'description': json['description'],
57
60
  'resourceType': ResourceTypeFromJSON(json['resource_type']),
58
61
  'ownerId': json['owner_id'],
62
+ 'tags': (json['tags'].map(ContentLibraryTagFromJSON)),
59
63
  'latestPublishedVersion': json['latest_published_version'] == null ? undefined : GetContentLibraryVersionFromJSON(json['latest_published_version']),
60
64
  'draftVersion': json['draft_version'] == null ? undefined : GetContentLibraryVersionFromJSON(json['draft_version']),
61
65
  'versions': (json['versions'].map(GetContentLibraryVersionFromJSON)),
@@ -81,6 +85,7 @@ export function GetResourceToJSONTyped(value, ignoreDiscriminator = false) {
81
85
  'description': value['description'],
82
86
  'resource_type': ResourceTypeToJSON(value['resourceType']),
83
87
  'owner_id': value['ownerId'],
88
+ 'tags': (value['tags'].map(ContentLibraryTagToJSON)),
84
89
  'latest_published_version': GetContentLibraryVersionToJSON(value['latestPublishedVersion']),
85
90
  'draft_version': GetContentLibraryVersionToJSON(value['draftVersion']),
86
91
  'versions': (value['versions'].map(GetContentLibraryVersionToJSON)),
@@ -46,18 +46,6 @@ export interface LibraryQuizCriteriaPreviewQuestion {
46
46
  * @memberof LibraryQuizCriteriaPreviewQuestion
47
47
  */
48
48
  version?: string | null;
49
- /**
50
- *
51
- * @type {string}
52
- * @memberof LibraryQuizCriteriaPreviewQuestion
53
- */
54
- topic: string;
55
- /**
56
- *
57
- * @type {LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum}
58
- * @memberof LibraryQuizCriteriaPreviewQuestion
59
- */
60
- difficultyLevel: LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum;
61
49
  /**
62
50
  *
63
51
  * @type {Array<string>}
@@ -77,15 +65,6 @@ export declare const LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum: {
77
65
  readonly Essay: "essay";
78
66
  };
79
67
  export type LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = typeof LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum[keyof typeof LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum];
80
- /**
81
- * @export
82
- */
83
- export declare const LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum: {
84
- readonly Beginner: "beginner";
85
- readonly Intermediate: "intermediate";
86
- readonly Advanced: "advanced";
87
- };
88
- export type LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = typeof LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum[keyof typeof LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum];
89
68
  /**
90
69
  * Check if a given object implements the LibraryQuizCriteriaPreviewQuestion interface.
91
70
  */
@@ -23,14 +23,6 @@ export const LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = {
23
23
  Matching: 'matching',
24
24
  Essay: 'essay'
25
25
  };
26
- /**
27
- * @export
28
- */
29
- export const LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = {
30
- Beginner: 'beginner',
31
- Intermediate: 'intermediate',
32
- Advanced: 'advanced'
33
- };
34
26
  /**
35
27
  * Check if a given object implements the LibraryQuizCriteriaPreviewQuestion interface.
36
28
  */
@@ -43,10 +35,6 @@ export function instanceOfLibraryQuizCriteriaPreviewQuestion(value) {
43
35
  return false;
44
36
  if (!('versionNumber' in value) || value['versionNumber'] === undefined)
45
37
  return false;
46
- if (!('topic' in value) || value['topic'] === undefined)
47
- return false;
48
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
49
- return false;
50
38
  if (!('tags' in value) || value['tags'] === undefined)
51
39
  return false;
52
40
  return true;
@@ -64,8 +52,6 @@ export function LibraryQuizCriteriaPreviewQuestionFromJSONTyped(json, ignoreDisc
64
52
  'questionType': json['question_type'],
65
53
  'versionNumber': json['version_number'],
66
54
  'version': json['version'] == null ? undefined : json['version'],
67
- 'topic': json['topic'],
68
- 'difficultyLevel': json['difficulty_level'],
69
55
  'tags': json['tags'],
70
56
  };
71
57
  }
@@ -82,8 +68,6 @@ export function LibraryQuizCriteriaPreviewQuestionToJSONTyped(value, ignoreDiscr
82
68
  'question_type': value['questionType'],
83
69
  'version_number': value['versionNumber'],
84
70
  'version': value['version'],
85
- 'topic': value['topic'],
86
- 'difficulty_level': value['difficultyLevel'],
87
71
  'tags': value['tags'],
88
72
  };
89
73
  }
@@ -21,18 +21,6 @@ export interface LibraryQuizCriterion {
21
21
  * @memberof LibraryQuizCriterion
22
22
  */
23
23
  id?: string | null;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof LibraryQuizCriterion
28
- */
29
- topic?: string | null;
30
- /**
31
- *
32
- * @type {LibraryQuizCriterionDifficultyLevelEnum}
33
- * @memberof LibraryQuizCriterion
34
- */
35
- difficultyLevel?: LibraryQuizCriterionDifficultyLevelEnum | null;
36
24
  /**
37
25
  *
38
26
  * @type {LibraryQuizCriterionQuestionTypeEnum}
@@ -64,15 +52,6 @@ export interface LibraryQuizCriterion {
64
52
  */
65
53
  priority: number;
66
54
  }
67
- /**
68
- * @export
69
- */
70
- export declare const LibraryQuizCriterionDifficultyLevelEnum: {
71
- readonly Beginner: "beginner";
72
- readonly Intermediate: "intermediate";
73
- readonly Advanced: "advanced";
74
- };
75
- export type LibraryQuizCriterionDifficultyLevelEnum = typeof LibraryQuizCriterionDifficultyLevelEnum[keyof typeof LibraryQuizCriterionDifficultyLevelEnum];
76
55
  /**
77
56
  * @export
78
57
  */
@@ -11,14 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- /**
15
- * @export
16
- */
17
- export const LibraryQuizCriterionDifficultyLevelEnum = {
18
- Beginner: 'beginner',
19
- Intermediate: 'intermediate',
20
- Advanced: 'advanced'
21
- };
22
14
  /**
23
15
  * @export
24
16
  */
@@ -47,8 +39,6 @@ export function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
47
39
  }
48
40
  return {
49
41
  'id': json['id'] == null ? undefined : json['id'],
50
- 'topic': json['topic'] == null ? undefined : json['topic'],
51
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
52
42
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
53
43
  'tags': json['tags'] == null ? undefined : json['tags'],
54
44
  'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
@@ -65,8 +55,6 @@ export function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = fal
65
55
  }
66
56
  return {
67
57
  'id': value['id'],
68
- 'topic': value['topic'],
69
- 'difficulty_level': value['difficultyLevel'],
70
58
  'question_type': value['questionType'],
71
59
  'tags': value['tags'],
72
60
  'min_questions': value['minQuestions'],
@@ -0,0 +1,32 @@
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 PostContentLibraryTag
16
+ */
17
+ export interface PostContentLibraryTag {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostContentLibraryTag
22
+ */
23
+ name: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostContentLibraryTag interface.
27
+ */
28
+ export declare function instanceOfPostContentLibraryTag(value: object): value is PostContentLibraryTag;
29
+ export declare function PostContentLibraryTagFromJSON(json: any): PostContentLibraryTag;
30
+ export declare function PostContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostContentLibraryTag;
31
+ export declare function PostContentLibraryTagToJSON(json: any): PostContentLibraryTag;
32
+ export declare function PostContentLibraryTagToJSONTyped(value?: PostContentLibraryTag | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 PostContentLibraryTag interface.
16
+ */
17
+ export function instanceOfPostContentLibraryTag(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostContentLibraryTagFromJSON(json) {
23
+ return PostContentLibraryTagFromJSONTyped(json, false);
24
+ }
25
+ export function PostContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': json['name'],
31
+ };
32
+ }
33
+ export function PostContentLibraryTagToJSON(json) {
34
+ return PostContentLibraryTagToJSONTyped(json, false);
35
+ }
36
+ export function PostContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'name': value['name'],
42
+ };
43
+ }
@@ -0,0 +1,32 @@
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 PostContentLibraryTagMerge
16
+ */
17
+ export interface PostContentLibraryTagMerge {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostContentLibraryTagMerge
22
+ */
23
+ targetTagId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostContentLibraryTagMerge interface.
27
+ */
28
+ export declare function instanceOfPostContentLibraryTagMerge(value: object): value is PostContentLibraryTagMerge;
29
+ export declare function PostContentLibraryTagMergeFromJSON(json: any): PostContentLibraryTagMerge;
30
+ export declare function PostContentLibraryTagMergeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostContentLibraryTagMerge;
31
+ export declare function PostContentLibraryTagMergeToJSON(json: any): PostContentLibraryTagMerge;
32
+ export declare function PostContentLibraryTagMergeToJSONTyped(value?: PostContentLibraryTagMerge | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 PostContentLibraryTagMerge interface.
16
+ */
17
+ export function instanceOfPostContentLibraryTagMerge(value) {
18
+ if (!('targetTagId' in value) || value['targetTagId'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostContentLibraryTagMergeFromJSON(json) {
23
+ return PostContentLibraryTagMergeFromJSONTyped(json, false);
24
+ }
25
+ export function PostContentLibraryTagMergeFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'targetTagId': json['target_tag_id'],
31
+ };
32
+ }
33
+ export function PostContentLibraryTagMergeToJSON(json) {
34
+ return PostContentLibraryTagMergeToJSONTyped(json, false);
35
+ }
36
+ export function PostContentLibraryTagMergeToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'target_tag_id': value['targetTagId'],
42
+ };
43
+ }