@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
@@ -13,13 +13,14 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetQuestionDifficultyLevelEnum = exports.GetQuestionQuestionTypeEnum = void 0;
16
+ exports.GetQuestionQuestionTypeEnum = void 0;
17
17
  exports.instanceOfGetQuestion = instanceOfGetQuestion;
18
18
  exports.GetQuestionFromJSON = GetQuestionFromJSON;
19
19
  exports.GetQuestionFromJSONTyped = GetQuestionFromJSONTyped;
20
20
  exports.GetQuestionToJSON = GetQuestionToJSON;
21
21
  exports.GetQuestionToJSONTyped = GetQuestionToJSONTyped;
22
22
  const RichTextDocument_1 = require("./RichTextDocument");
23
+ const ContentLibraryTag_1 = require("./ContentLibraryTag");
23
24
  const GetQuestionAnswerChoicesInner_1 = require("./GetQuestionAnswerChoicesInner");
24
25
  const GetQuestionQuizzesInner_1 = require("./GetQuestionQuizzesInner");
25
26
  /**
@@ -33,14 +34,6 @@ exports.GetQuestionQuestionTypeEnum = {
33
34
  Matching: 'matching',
34
35
  Essay: 'essay'
35
36
  };
36
- /**
37
- * @export
38
- */
39
- exports.GetQuestionDifficultyLevelEnum = {
40
- Beginner: 'beginner',
41
- Intermediate: 'intermediate',
42
- Advanced: 'advanced'
43
- };
44
37
  /**
45
38
  * Check if a given object implements the GetQuestion interface.
46
39
  */
@@ -51,10 +44,6 @@ function instanceOfGetQuestion(value) {
51
44
  return false;
52
45
  if (!('questionType' in value) || value['questionType'] === undefined)
53
46
  return false;
54
- if (!('topic' in value) || value['topic'] === undefined)
55
- return false;
56
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
57
- return false;
58
47
  if (!('versionNumber' in value) || value['versionNumber'] === undefined)
59
48
  return false;
60
49
  if (!('createdDate' in value) || value['createdDate'] === undefined)
@@ -77,9 +66,7 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
77
66
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuestionAnswerChoicesInner_1.GetQuestionAnswerChoicesInnerFromJSON)),
78
67
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
79
68
  'explanation': json['explanation'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['explanation']),
80
- 'topic': json['topic'],
81
- 'difficultyLevel': json['difficulty_level'],
82
- 'tags': json['tags'] == null ? undefined : json['tags'],
69
+ 'tags': json['tags'] == null ? undefined : (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
83
70
  'version': json['version'] == null ? undefined : json['version'],
84
71
  'versionNumber': json['version_number'],
85
72
  'createdDate': (new Date(json['created_date'])),
@@ -102,9 +89,7 @@ function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
102
89
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuestionAnswerChoicesInner_1.GetQuestionAnswerChoicesInnerToJSON)),
103
90
  'correct_answer': value['correctAnswer'],
104
91
  'explanation': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanation']),
105
- 'topic': value['topic'],
106
- 'difficulty_level': value['difficultyLevel'],
107
- 'tags': value['tags'],
92
+ 'tags': value['tags'] == null ? undefined : (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
108
93
  'version': value['version'],
109
94
  };
110
95
  }
@@ -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
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetQuestionListFiltersDifficultyLevelEnum = exports.GetQuestionListFiltersQuestionTypeEnum = void 0;
16
+ exports.GetQuestionListFiltersQuestionTypeEnum = void 0;
17
17
  exports.instanceOfGetQuestionListFilters = instanceOfGetQuestionListFilters;
18
18
  exports.GetQuestionListFiltersFromJSON = GetQuestionListFiltersFromJSON;
19
19
  exports.GetQuestionListFiltersFromJSONTyped = GetQuestionListFiltersFromJSONTyped;
@@ -30,14 +30,6 @@ exports.GetQuestionListFiltersQuestionTypeEnum = {
30
30
  Matching: 'matching',
31
31
  Essay: 'essay'
32
32
  };
33
- /**
34
- * @export
35
- */
36
- exports.GetQuestionListFiltersDifficultyLevelEnum = {
37
- Beginner: 'beginner',
38
- Intermediate: 'intermediate',
39
- Advanced: 'advanced'
40
- };
41
33
  /**
42
34
  * Check if a given object implements the GetQuestionListFilters interface.
43
35
  */
@@ -52,10 +44,8 @@ function GetQuestionListFiltersFromJSONTyped(json, ignoreDiscriminator) {
52
44
  return json;
53
45
  }
54
46
  return {
55
- 'topic': json['topic'] == null ? undefined : json['topic'],
56
47
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
57
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
58
- 'tags': json['tags'] == null ? undefined : json['tags'],
48
+ 'tagId': json['tag_id'] == null ? undefined : json['tag_id'],
59
49
  'search': json['search'] == null ? undefined : json['search'],
60
50
  'createdAfter': json['created_after'] == null ? undefined : (new Date(json['created_after'])),
61
51
  'createdBefore': json['created_before'] == null ? undefined : (new Date(json['created_before'])),
@@ -69,10 +59,8 @@ function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = false) {
69
59
  return value;
70
60
  }
71
61
  return {
72
- 'topic': value['topic'],
73
62
  'question_type': value['questionType'],
74
- 'difficulty_level': value['difficultyLevel'],
75
- 'tags': value['tags'],
63
+ 'tag_id': value['tagId'],
76
64
  'search': value['search'],
77
65
  'created_after': value['createdAfter'] == null ? value['createdAfter'] : value['createdAfter'].toISOString().substring(0, 10),
78
66
  '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}
@@ -19,6 +19,7 @@ exports.GetResourceFromJSONTyped = GetResourceFromJSONTyped;
19
19
  exports.GetResourceToJSON = GetResourceToJSON;
20
20
  exports.GetResourceToJSONTyped = GetResourceToJSONTyped;
21
21
  const GetContentLibraryVersion_1 = require("./GetContentLibraryVersion");
22
+ const ContentLibraryTag_1 = require("./ContentLibraryTag");
22
23
  const ResourceType_1 = require("./ResourceType");
23
24
  /**
24
25
  * Check if a given object implements the GetResource interface.
@@ -34,6 +35,8 @@ function instanceOfGetResource(value) {
34
35
  return false;
35
36
  if (!('ownerId' in value) || value['ownerId'] === undefined)
36
37
  return false;
38
+ if (!('tags' in value) || value['tags'] === undefined)
39
+ return false;
37
40
  if (!('versions' in value) || value['versions'] === undefined)
38
41
  return false;
39
42
  if (!('publishedCourseCount' in value) || value['publishedCourseCount'] === undefined)
@@ -63,6 +66,7 @@ function GetResourceFromJSONTyped(json, ignoreDiscriminator) {
63
66
  'description': json['description'],
64
67
  'resourceType': (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
65
68
  'ownerId': json['owner_id'],
69
+ 'tags': (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
66
70
  'latestPublishedVersion': json['latest_published_version'] == null ? undefined : (0, GetContentLibraryVersion_1.GetContentLibraryVersionFromJSON)(json['latest_published_version']),
67
71
  'draftVersion': json['draft_version'] == null ? undefined : (0, GetContentLibraryVersion_1.GetContentLibraryVersionFromJSON)(json['draft_version']),
68
72
  'versions': (json['versions'].map(GetContentLibraryVersion_1.GetContentLibraryVersionFromJSON)),
@@ -88,6 +92,7 @@ function GetResourceToJSONTyped(value, ignoreDiscriminator = false) {
88
92
  'description': value['description'],
89
93
  'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
90
94
  'owner_id': value['ownerId'],
95
+ 'tags': (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
91
96
  'latest_published_version': (0, GetContentLibraryVersion_1.GetContentLibraryVersionToJSON)(value['latestPublishedVersion']),
92
97
  'draft_version': (0, GetContentLibraryVersion_1.GetContentLibraryVersionToJSON)(value['draftVersion']),
93
98
  'versions': (value['versions'].map(GetContentLibraryVersion_1.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
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = exports.LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = void 0;
16
+ exports.LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = void 0;
17
17
  exports.instanceOfLibraryQuizCriteriaPreviewQuestion = instanceOfLibraryQuizCriteriaPreviewQuestion;
18
18
  exports.LibraryQuizCriteriaPreviewQuestionFromJSON = LibraryQuizCriteriaPreviewQuestionFromJSON;
19
19
  exports.LibraryQuizCriteriaPreviewQuestionFromJSONTyped = LibraryQuizCriteriaPreviewQuestionFromJSONTyped;
@@ -31,14 +31,6 @@ exports.LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = {
31
31
  Matching: 'matching',
32
32
  Essay: 'essay'
33
33
  };
34
- /**
35
- * @export
36
- */
37
- exports.LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = {
38
- Beginner: 'beginner',
39
- Intermediate: 'intermediate',
40
- Advanced: 'advanced'
41
- };
42
34
  /**
43
35
  * Check if a given object implements the LibraryQuizCriteriaPreviewQuestion interface.
44
36
  */
@@ -51,10 +43,6 @@ function instanceOfLibraryQuizCriteriaPreviewQuestion(value) {
51
43
  return false;
52
44
  if (!('versionNumber' in value) || value['versionNumber'] === undefined)
53
45
  return false;
54
- if (!('topic' in value) || value['topic'] === undefined)
55
- return false;
56
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
57
- return false;
58
46
  if (!('tags' in value) || value['tags'] === undefined)
59
47
  return false;
60
48
  return true;
@@ -72,8 +60,6 @@ function LibraryQuizCriteriaPreviewQuestionFromJSONTyped(json, ignoreDiscriminat
72
60
  'questionType': json['question_type'],
73
61
  'versionNumber': json['version_number'],
74
62
  'version': json['version'] == null ? undefined : json['version'],
75
- 'topic': json['topic'],
76
- 'difficultyLevel': json['difficulty_level'],
77
63
  'tags': json['tags'],
78
64
  };
79
65
  }
@@ -90,8 +76,6 @@ function LibraryQuizCriteriaPreviewQuestionToJSONTyped(value, ignoreDiscriminato
90
76
  'question_type': value['questionType'],
91
77
  'version_number': value['versionNumber'],
92
78
  'version': value['version'],
93
- 'topic': value['topic'],
94
- 'difficulty_level': value['difficultyLevel'],
95
79
  'tags': value['tags'],
96
80
  };
97
81
  }
@@ -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
  */
@@ -13,20 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.LibraryQuizCriterionQuestionTypeEnum = exports.LibraryQuizCriterionDifficultyLevelEnum = void 0;
16
+ exports.LibraryQuizCriterionQuestionTypeEnum = void 0;
17
17
  exports.instanceOfLibraryQuizCriterion = instanceOfLibraryQuizCriterion;
18
18
  exports.LibraryQuizCriterionFromJSON = LibraryQuizCriterionFromJSON;
19
19
  exports.LibraryQuizCriterionFromJSONTyped = LibraryQuizCriterionFromJSONTyped;
20
20
  exports.LibraryQuizCriterionToJSON = LibraryQuizCriterionToJSON;
21
21
  exports.LibraryQuizCriterionToJSONTyped = LibraryQuizCriterionToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.LibraryQuizCriterionDifficultyLevelEnum = {
26
- Beginner: 'beginner',
27
- Intermediate: 'intermediate',
28
- Advanced: 'advanced'
29
- };
30
22
  /**
31
23
  * @export
32
24
  */
@@ -55,8 +47,6 @@ function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
55
47
  }
56
48
  return {
57
49
  'id': json['id'] == null ? undefined : json['id'],
58
- 'topic': json['topic'] == null ? undefined : json['topic'],
59
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
60
50
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
61
51
  'tags': json['tags'] == null ? undefined : json['tags'],
62
52
  'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
@@ -73,8 +63,6 @@ function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = false) {
73
63
  }
74
64
  return {
75
65
  'id': value['id'],
76
- 'topic': value['topic'],
77
- 'difficulty_level': value['difficultyLevel'],
78
66
  'question_type': value['questionType'],
79
67
  'tags': value['tags'],
80
68
  '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,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPostContentLibraryTag = instanceOfPostContentLibraryTag;
17
+ exports.PostContentLibraryTagFromJSON = PostContentLibraryTagFromJSON;
18
+ exports.PostContentLibraryTagFromJSONTyped = PostContentLibraryTagFromJSONTyped;
19
+ exports.PostContentLibraryTagToJSON = PostContentLibraryTagToJSON;
20
+ exports.PostContentLibraryTagToJSONTyped = PostContentLibraryTagToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostContentLibraryTag interface.
23
+ */
24
+ function instanceOfPostContentLibraryTag(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PostContentLibraryTagFromJSON(json) {
30
+ return PostContentLibraryTagFromJSONTyped(json, false);
31
+ }
32
+ function PostContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ };
39
+ }
40
+ function PostContentLibraryTagToJSON(json) {
41
+ return PostContentLibraryTagToJSONTyped(json, false);
42
+ }
43
+ function PostContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
49
+ };
50
+ }
@@ -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,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPostContentLibraryTagMerge = instanceOfPostContentLibraryTagMerge;
17
+ exports.PostContentLibraryTagMergeFromJSON = PostContentLibraryTagMergeFromJSON;
18
+ exports.PostContentLibraryTagMergeFromJSONTyped = PostContentLibraryTagMergeFromJSONTyped;
19
+ exports.PostContentLibraryTagMergeToJSON = PostContentLibraryTagMergeToJSON;
20
+ exports.PostContentLibraryTagMergeToJSONTyped = PostContentLibraryTagMergeToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostContentLibraryTagMerge interface.
23
+ */
24
+ function instanceOfPostContentLibraryTagMerge(value) {
25
+ if (!('targetTagId' in value) || value['targetTagId'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PostContentLibraryTagMergeFromJSON(json) {
30
+ return PostContentLibraryTagMergeFromJSONTyped(json, false);
31
+ }
32
+ function PostContentLibraryTagMergeFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'targetTagId': json['target_tag_id'],
38
+ };
39
+ }
40
+ function PostContentLibraryTagMergeToJSON(json) {
41
+ return PostContentLibraryTagMergeToJSONTyped(json, false);
42
+ }
43
+ function PostContentLibraryTagMergeToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'target_tag_id': value['targetTagId'],
49
+ };
50
+ }
@@ -96,6 +96,12 @@ export interface PostLibraryQuiz {
96
96
  settings?: {
97
97
  [key: string]: any;
98
98
  };
99
+ /**
100
+ *
101
+ * @type {Set<string>}
102
+ * @memberof PostLibraryQuiz
103
+ */
104
+ tags?: Set<string>;
99
105
  }
100
106
  /**
101
107
  * Check if a given object implements the PostLibraryQuiz interface.
@@ -50,6 +50,7 @@ function PostLibraryQuizFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'allowReview': json['allow_review'] == null ? undefined : json['allow_review'],
51
51
  'requireAllQuestions': json['require_all_questions'] == null ? undefined : json['require_all_questions'],
52
52
  'settings': json['settings'] == null ? undefined : json['settings'],
53
+ 'tags': json['tags'] == null ? undefined : new Set(json['tags']),
53
54
  };
54
55
  }
55
56
  function PostLibraryQuizToJSON(json) {
@@ -73,5 +74,6 @@ function PostLibraryQuizToJSONTyped(value, ignoreDiscriminator = false) {
73
74
  'allow_review': value['allowReview'],
74
75
  'require_all_questions': value['requireAllQuestions'],
75
76
  'settings': value['settings'],
77
+ 'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
76
78
  };
77
79
  }
@@ -47,18 +47,6 @@ export interface PostQuestion {
47
47
  * @memberof PostQuestion
48
48
  */
49
49
  explanation?: RichTextInput;
50
- /**
51
- * Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
52
- * @type {string}
53
- * @memberof PostQuestion
54
- */
55
- topic: string;
56
- /**
57
- * Difficulty level of the question
58
- * @type {PostQuestionDifficultyLevelEnum}
59
- * @memberof PostQuestion
60
- */
61
- difficultyLevel: PostQuestionDifficultyLevelEnum;
62
50
  /**
63
51
  * Keywords/tags for granular filtering
64
52
  * @type {Array<string>}
@@ -84,15 +72,6 @@ export declare const PostQuestionQuestionTypeEnum: {
84
72
  readonly Essay: "essay";
85
73
  };
86
74
  export type PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
87
- /**
88
- * @export
89
- */
90
- export declare const PostQuestionDifficultyLevelEnum: {
91
- readonly Beginner: "beginner";
92
- readonly Intermediate: "intermediate";
93
- readonly Advanced: "advanced";
94
- };
95
- export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevelEnum[keyof typeof PostQuestionDifficultyLevelEnum];
96
75
  /**
97
76
  * Check if a given object implements the PostQuestion interface.
98
77
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PostQuestionDifficultyLevelEnum = exports.PostQuestionQuestionTypeEnum = void 0;
16
+ exports.PostQuestionQuestionTypeEnum = void 0;
17
17
  exports.instanceOfPostQuestion = instanceOfPostQuestion;
18
18
  exports.PostQuestionFromJSON = PostQuestionFromJSON;
19
19
  exports.PostQuestionFromJSONTyped = PostQuestionFromJSONTyped;
@@ -32,14 +32,6 @@ exports.PostQuestionQuestionTypeEnum = {
32
32
  Matching: 'matching',
33
33
  Essay: 'essay'
34
34
  };
35
- /**
36
- * @export
37
- */
38
- exports.PostQuestionDifficultyLevelEnum = {
39
- Beginner: 'beginner',
40
- Intermediate: 'intermediate',
41
- Advanced: 'advanced'
42
- };
43
35
  /**
44
36
  * Check if a given object implements the PostQuestion interface.
45
37
  */
@@ -48,10 +40,6 @@ function instanceOfPostQuestion(value) {
48
40
  return false;
49
41
  if (!('questionType' in value) || value['questionType'] === undefined)
50
42
  return false;
51
- if (!('topic' in value) || value['topic'] === undefined)
52
- return false;
53
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
54
- return false;
55
43
  return true;
56
44
  }
57
45
  function PostQuestionFromJSON(json) {
@@ -67,8 +55,6 @@ function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
67
55
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuestionAnswerChoicesInner_1.PostQuestionAnswerChoicesInnerFromJSON)),
68
56
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
69
57
  'explanation': json['explanation'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['explanation']),
70
- 'topic': json['topic'],
71
- 'difficultyLevel': json['difficulty_level'],
72
58
  'tags': json['tags'] == null ? undefined : json['tags'],
73
59
  'version': json['version'] == null ? undefined : json['version'],
74
60
  };
@@ -86,8 +72,6 @@ function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
86
72
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuestionAnswerChoicesInner_1.PostQuestionAnswerChoicesInnerToJSON)),
87
73
  'correct_answer': value['correctAnswer'],
88
74
  'explanation': (0, RichTextInput_1.RichTextInputToJSON)(value['explanation']),
89
- 'topic': value['topic'],
90
- 'difficulty_level': value['difficultyLevel'],
91
75
  'tags': value['tags'],
92
76
  'version': value['version'],
93
77
  };