@easyedu/js-lsm-api 1.109.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 (61) hide show
  1. package/README.md +4 -4
  2. package/dist/apis/ContentLibraryApi.d.ts +5 -4
  3. package/dist/apis/ContentLibraryApi.js +6 -5
  4. package/dist/apis/QuestionApi.d.ts +1 -11
  5. package/dist/apis/QuestionApi.js +3 -14
  6. package/dist/esm/apis/ContentLibraryApi.d.ts +5 -4
  7. package/dist/esm/apis/ContentLibraryApi.js +6 -5
  8. package/dist/esm/apis/QuestionApi.d.ts +1 -11
  9. package/dist/esm/apis/QuestionApi.js +2 -13
  10. package/dist/esm/models/ContentLibraryTag.d.ts +6 -0
  11. package/dist/esm/models/ContentLibraryTag.js +4 -0
  12. package/dist/esm/models/ContentLibraryTagItem.d.ts +1 -0
  13. package/dist/esm/models/ContentLibraryTagItem.js +2 -1
  14. package/dist/esm/models/GetQuestion.d.ts +4 -18
  15. package/dist/esm/models/GetQuestion.js +3 -14
  16. package/dist/esm/models/GetQuestionListFilters.d.ts +3 -18
  17. package/dist/esm/models/GetQuestionListFilters.js +2 -12
  18. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -15
  19. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -12
  20. package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -15
  21. package/dist/esm/models/LibraryQuizCriterion.js +0 -10
  22. package/dist/esm/models/PostQuestion.d.ts +0 -15
  23. package/dist/esm/models/PostQuestion.js +0 -12
  24. package/dist/esm/models/PutQuestion.d.ts +0 -15
  25. package/dist/esm/models/PutQuestion.js +0 -10
  26. package/dist/models/ContentLibraryTag.d.ts +6 -0
  27. package/dist/models/ContentLibraryTag.js +4 -0
  28. package/dist/models/ContentLibraryTagItem.d.ts +1 -0
  29. package/dist/models/ContentLibraryTagItem.js +2 -1
  30. package/dist/models/GetQuestion.d.ts +4 -18
  31. package/dist/models/GetQuestion.js +4 -15
  32. package/dist/models/GetQuestionListFilters.d.ts +3 -18
  33. package/dist/models/GetQuestionListFilters.js +3 -13
  34. package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -15
  35. package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +1 -13
  36. package/dist/models/LibraryQuizCriterion.d.ts +0 -15
  37. package/dist/models/LibraryQuizCriterion.js +1 -11
  38. package/dist/models/PostQuestion.d.ts +0 -15
  39. package/dist/models/PostQuestion.js +1 -13
  40. package/dist/models/PutQuestion.d.ts +0 -15
  41. package/dist/models/PutQuestion.js +1 -11
  42. package/docs/ContentLibraryApi.md +7 -7
  43. package/docs/ContentLibraryTag.md +2 -0
  44. package/docs/GetQuestion.md +1 -3
  45. package/docs/GetQuestionListFilters.md +2 -4
  46. package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -2
  47. package/docs/LibraryQuizCriterion.md +0 -2
  48. package/docs/PostQuestion.md +0 -2
  49. package/docs/PutQuestion.md +0 -2
  50. package/docs/QuestionApi.md +4 -7
  51. package/package.json +1 -1
  52. package/src/apis/ContentLibraryApi.ts +6 -5
  53. package/src/apis/QuestionApi.ts +3 -17
  54. package/src/models/ContentLibraryTag.ts +9 -0
  55. package/src/models/ContentLibraryTagItem.ts +2 -1
  56. package/src/models/GetQuestion.ts +12 -24
  57. package/src/models/GetQuestionListFilters.ts +5 -23
  58. package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -19
  59. package/src/models/LibraryQuizCriterion.ts +0 -18
  60. package/src/models/PostQuestion.ts +0 -19
  61. package/src/models/PutQuestion.ts +0 -18
@@ -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,7 +39,6 @@ export function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
47
39
  }
48
40
  return {
49
41
  'id': json['id'] == null ? undefined : json['id'],
50
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
51
42
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
52
43
  'tags': json['tags'] == null ? undefined : json['tags'],
53
44
  'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
@@ -64,7 +55,6 @@ export function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = fal
64
55
  }
65
56
  return {
66
57
  'id': value['id'],
67
- 'difficulty_level': value['difficultyLevel'],
68
58
  'question_type': value['questionType'],
69
59
  'tags': value['tags'],
70
60
  'min_questions': value['minQuestions'],
@@ -47,12 +47,6 @@ export interface PostQuestion {
47
47
  * @memberof PostQuestion
48
48
  */
49
49
  explanation?: RichTextInput;
50
- /**
51
- * Difficulty level of the question
52
- * @type {PostQuestionDifficultyLevelEnum}
53
- * @memberof PostQuestion
54
- */
55
- difficultyLevel: PostQuestionDifficultyLevelEnum;
56
50
  /**
57
51
  * Keywords/tags for granular filtering
58
52
  * @type {Array<string>}
@@ -78,15 +72,6 @@ export declare const PostQuestionQuestionTypeEnum: {
78
72
  readonly Essay: "essay";
79
73
  };
80
74
  export type PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
81
- /**
82
- * @export
83
- */
84
- export declare const PostQuestionDifficultyLevelEnum: {
85
- readonly Beginner: "beginner";
86
- readonly Intermediate: "intermediate";
87
- readonly Advanced: "advanced";
88
- };
89
- export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevelEnum[keyof typeof PostQuestionDifficultyLevelEnum];
90
75
  /**
91
76
  * Check if a given object implements the PostQuestion interface.
92
77
  */
@@ -24,14 +24,6 @@ export const PostQuestionQuestionTypeEnum = {
24
24
  Matching: 'matching',
25
25
  Essay: 'essay'
26
26
  };
27
- /**
28
- * @export
29
- */
30
- export const PostQuestionDifficultyLevelEnum = {
31
- Beginner: 'beginner',
32
- Intermediate: 'intermediate',
33
- Advanced: 'advanced'
34
- };
35
27
  /**
36
28
  * Check if a given object implements the PostQuestion interface.
37
29
  */
@@ -40,8 +32,6 @@ export function instanceOfPostQuestion(value) {
40
32
  return false;
41
33
  if (!('questionType' in value) || value['questionType'] === undefined)
42
34
  return false;
43
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
44
- return false;
45
35
  return true;
46
36
  }
47
37
  export function PostQuestionFromJSON(json) {
@@ -57,7 +47,6 @@ export function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
57
47
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuestionAnswerChoicesInnerFromJSON)),
58
48
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
59
49
  'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
60
- 'difficultyLevel': json['difficulty_level'],
61
50
  'tags': json['tags'] == null ? undefined : json['tags'],
62
51
  'version': json['version'] == null ? undefined : json['version'],
63
52
  };
@@ -75,7 +64,6 @@ export function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
75
64
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuestionAnswerChoicesInnerToJSON)),
76
65
  'correct_answer': value['correctAnswer'],
77
66
  'explanation': RichTextInputToJSON(value['explanation']),
78
- 'difficulty_level': value['difficultyLevel'],
79
67
  'tags': value['tags'],
80
68
  'version': value['version'],
81
69
  };
@@ -47,12 +47,6 @@ export interface PutQuestion {
47
47
  * @memberof PutQuestion
48
48
  */
49
49
  explanation?: RichTextInput;
50
- /**
51
- * Difficulty level of the question
52
- * @type {PutQuestionDifficultyLevelEnum}
53
- * @memberof PutQuestion
54
- */
55
- difficultyLevel?: PutQuestionDifficultyLevelEnum;
56
50
  /**
57
51
  * Keywords/tags for granular filtering
58
52
  * @type {Array<string>}
@@ -78,15 +72,6 @@ export declare const PutQuestionQuestionTypeEnum: {
78
72
  readonly Essay: "essay";
79
73
  };
80
74
  export type PutQuestionQuestionTypeEnum = typeof PutQuestionQuestionTypeEnum[keyof typeof PutQuestionQuestionTypeEnum];
81
- /**
82
- * @export
83
- */
84
- export declare const PutQuestionDifficultyLevelEnum: {
85
- readonly Beginner: "beginner";
86
- readonly Intermediate: "intermediate";
87
- readonly Advanced: "advanced";
88
- };
89
- export type PutQuestionDifficultyLevelEnum = typeof PutQuestionDifficultyLevelEnum[keyof typeof PutQuestionDifficultyLevelEnum];
90
75
  /**
91
76
  * Check if a given object implements the PutQuestion interface.
92
77
  */
@@ -24,14 +24,6 @@ export const PutQuestionQuestionTypeEnum = {
24
24
  Matching: 'matching',
25
25
  Essay: 'essay'
26
26
  };
27
- /**
28
- * @export
29
- */
30
- export const PutQuestionDifficultyLevelEnum = {
31
- Beginner: 'beginner',
32
- Intermediate: 'intermediate',
33
- Advanced: 'advanced'
34
- };
35
27
  /**
36
28
  * Check if a given object implements the PutQuestion interface.
37
29
  */
@@ -51,7 +43,6 @@ export function PutQuestionFromJSONTyped(json, ignoreDiscriminator) {
51
43
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PutQuestionAnswerChoicesInnerFromJSON)),
52
44
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
53
45
  'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
54
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
55
46
  'tags': json['tags'] == null ? undefined : json['tags'],
56
47
  'version': json['version'] == null ? undefined : json['version'],
57
48
  };
@@ -69,7 +60,6 @@ export function PutQuestionToJSONTyped(value, ignoreDiscriminator = false) {
69
60
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PutQuestionAnswerChoicesInnerToJSON)),
70
61
  'correct_answer': value['correctAnswer'],
71
62
  'explanation': RichTextInputToJSON(value['explanation']),
72
- 'difficulty_level': value['difficultyLevel'],
73
63
  'tags': value['tags'],
74
64
  'version': value['version'],
75
65
  };
@@ -81,6 +81,12 @@ export interface ContentLibraryTag {
81
81
  * @memberof ContentLibraryTag
82
82
  */
83
83
  quizCount: number;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof ContentLibraryTag
88
+ */
89
+ questionCount: number;
84
90
  /**
85
91
  *
86
92
  * @type {number}
@@ -38,6 +38,8 @@ function instanceOfContentLibraryTag(value) {
38
38
  return false;
39
39
  if (!('quizCount' in value) || value['quizCount'] === undefined)
40
40
  return false;
41
+ if (!('questionCount' in value) || value['questionCount'] === undefined)
42
+ return false;
41
43
  if (!('createdAt' in value) || value['createdAt'] === undefined)
42
44
  return false;
43
45
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -63,6 +65,7 @@ function ContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
63
65
  'archivedItemCount': json['archived_item_count'],
64
66
  'resourceCount': json['resource_count'],
65
67
  'quizCount': json['quiz_count'],
68
+ 'questionCount': json['question_count'],
66
69
  'createdAt': json['created_at'],
67
70
  'updatedAt': json['updated_at'],
68
71
  };
@@ -86,6 +89,7 @@ function ContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
86
89
  'archived_item_count': value['archivedItemCount'],
87
90
  'resource_count': value['resourceCount'],
88
91
  'quiz_count': value['quizCount'],
92
+ 'question_count': value['questionCount'],
89
93
  'created_at': value['createdAt'],
90
94
  'updated_at': value['updatedAt'],
91
95
  };
@@ -72,6 +72,7 @@ export interface ContentLibraryTagItem {
72
72
  export declare const ContentLibraryTagItemKindEnum: {
73
73
  readonly Resource: "resource";
74
74
  readonly Quiz: "quiz";
75
+ readonly Question: "question";
75
76
  };
76
77
  export type ContentLibraryTagItemKindEnum = typeof ContentLibraryTagItemKindEnum[keyof typeof ContentLibraryTagItemKindEnum];
77
78
  /**
@@ -26,7 +26,8 @@ const ResourceType_1 = require("./ResourceType");
26
26
  */
27
27
  exports.ContentLibraryTagItemKindEnum = {
28
28
  Resource: 'resource',
29
- Quiz: 'quiz'
29
+ Quiz: 'quiz',
30
+ Question: 'question'
30
31
  };
31
32
  /**
32
33
  * Check if a given object implements the ContentLibraryTagItem interface.
@@ -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,17 +56,11 @@ export interface GetQuestion {
55
56
  */
56
57
  explanation?: RichTextDocument;
57
58
  /**
58
- * Difficulty level of the question
59
- * @type {GetQuestionDifficultyLevelEnum}
59
+ * Shared tags associated with the question
60
+ * @type {Array<ContentLibraryTag>}
60
61
  * @memberof GetQuestion
61
62
  */
62
- difficultyLevel: GetQuestionDifficultyLevelEnum;
63
- /**
64
- * Keywords/tags for granular filtering
65
- * @type {Array<string>}
66
- * @memberof GetQuestion
67
- */
68
- tags?: Array<string>;
63
+ tags?: Array<ContentLibraryTag>;
69
64
  /**
70
65
  * Version identifier for triannual updates
71
66
  * @type {string}
@@ -121,15 +116,6 @@ export declare const GetQuestionQuestionTypeEnum: {
121
116
  readonly Essay: "essay";
122
117
  };
123
118
  export type GetQuestionQuestionTypeEnum = typeof GetQuestionQuestionTypeEnum[keyof typeof GetQuestionQuestionTypeEnum];
124
- /**
125
- * @export
126
- */
127
- export declare const GetQuestionDifficultyLevelEnum: {
128
- readonly Beginner: "beginner";
129
- readonly Intermediate: "intermediate";
130
- readonly Advanced: "advanced";
131
- };
132
- export type GetQuestionDifficultyLevelEnum = typeof GetQuestionDifficultyLevelEnum[keyof typeof GetQuestionDifficultyLevelEnum];
133
119
  /**
134
120
  * Check if a given object implements the GetQuestion interface.
135
121
  */
@@ -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,8 +44,6 @@ function instanceOfGetQuestion(value) {
51
44
  return false;
52
45
  if (!('questionType' in value) || value['questionType'] === undefined)
53
46
  return false;
54
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
55
- return false;
56
47
  if (!('versionNumber' in value) || value['versionNumber'] === undefined)
57
48
  return false;
58
49
  if (!('createdDate' in value) || value['createdDate'] === undefined)
@@ -75,8 +66,7 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
75
66
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuestionAnswerChoicesInner_1.GetQuestionAnswerChoicesInnerFromJSON)),
76
67
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
77
68
  'explanation': json['explanation'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['explanation']),
78
- 'difficultyLevel': json['difficulty_level'],
79
- 'tags': json['tags'] == null ? undefined : json['tags'],
69
+ 'tags': json['tags'] == null ? undefined : (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
80
70
  'version': json['version'] == null ? undefined : json['version'],
81
71
  'versionNumber': json['version_number'],
82
72
  'createdDate': (new Date(json['created_date'])),
@@ -99,8 +89,7 @@ function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
99
89
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuestionAnswerChoicesInner_1.GetQuestionAnswerChoicesInnerToJSON)),
100
90
  'correct_answer': value['correctAnswer'],
101
91
  'explanation': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanation']),
102
- 'difficulty_level': value['difficultyLevel'],
103
- 'tags': value['tags'],
92
+ 'tags': value['tags'] == null ? undefined : (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
104
93
  'version': value['version'],
105
94
  };
106
95
  }
@@ -22,17 +22,11 @@ export interface GetQuestionListFilters {
22
22
  */
23
23
  questionType?: GetQuestionListFiltersQuestionTypeEnum;
24
24
  /**
25
- * Filter by difficulty level
26
- * @type {GetQuestionListFiltersDifficultyLevelEnum}
27
- * @memberof GetQuestionListFilters
28
- */
29
- difficultyLevel?: GetQuestionListFiltersDifficultyLevelEnum;
30
- /**
31
- * Filter by tags/keywords
32
- * @type {Array<string>}
25
+ * Filter by a shared tag
26
+ * @type {string}
33
27
  * @memberof GetQuestionListFilters
34
28
  */
35
- tags?: Array<string>;
29
+ tagId?: string;
36
30
  /**
37
31
  * Search in question text
38
32
  * @type {string}
@@ -64,15 +58,6 @@ export declare const GetQuestionListFiltersQuestionTypeEnum: {
64
58
  readonly Essay: "essay";
65
59
  };
66
60
  export type GetQuestionListFiltersQuestionTypeEnum = typeof GetQuestionListFiltersQuestionTypeEnum[keyof typeof GetQuestionListFiltersQuestionTypeEnum];
67
- /**
68
- * @export
69
- */
70
- export declare const GetQuestionListFiltersDifficultyLevelEnum: {
71
- readonly Beginner: "beginner";
72
- readonly Intermediate: "intermediate";
73
- readonly Advanced: "advanced";
74
- };
75
- export type GetQuestionListFiltersDifficultyLevelEnum = typeof GetQuestionListFiltersDifficultyLevelEnum[keyof typeof GetQuestionListFiltersDifficultyLevelEnum];
76
61
  /**
77
62
  * Check if a given object implements the GetQuestionListFilters interface.
78
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
  */
@@ -53,8 +45,7 @@ function GetQuestionListFiltersFromJSONTyped(json, ignoreDiscriminator) {
53
45
  }
54
46
  return {
55
47
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
56
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
57
- 'tags': json['tags'] == null ? undefined : json['tags'],
48
+ 'tagId': json['tag_id'] == null ? undefined : json['tag_id'],
58
49
  'search': json['search'] == null ? undefined : json['search'],
59
50
  'createdAfter': json['created_after'] == null ? undefined : (new Date(json['created_after'])),
60
51
  'createdBefore': json['created_before'] == null ? undefined : (new Date(json['created_before'])),
@@ -69,8 +60,7 @@ function GetQuestionListFiltersToJSONTyped(value, ignoreDiscriminator = false) {
69
60
  }
70
61
  return {
71
62
  'question_type': value['questionType'],
72
- 'difficulty_level': value['difficultyLevel'],
73
- 'tags': value['tags'],
63
+ 'tag_id': value['tagId'],
74
64
  'search': value['search'],
75
65
  'created_after': value['createdAfter'] == null ? value['createdAfter'] : value['createdAfter'].toISOString().substring(0, 10),
76
66
  'created_before': value['createdBefore'] == null ? value['createdBefore'] : value['createdBefore'].toISOString().substring(0, 10),
@@ -46,12 +46,6 @@ export interface LibraryQuizCriteriaPreviewQuestion {
46
46
  * @memberof LibraryQuizCriteriaPreviewQuestion
47
47
  */
48
48
  version?: string | null;
49
- /**
50
- *
51
- * @type {LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum}
52
- * @memberof LibraryQuizCriteriaPreviewQuestion
53
- */
54
- difficultyLevel: LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum;
55
49
  /**
56
50
  *
57
51
  * @type {Array<string>}
@@ -71,15 +65,6 @@ export declare const LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum: {
71
65
  readonly Essay: "essay";
72
66
  };
73
67
  export type LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = typeof LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum[keyof typeof LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum];
74
- /**
75
- * @export
76
- */
77
- export declare const LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum: {
78
- readonly Beginner: "beginner";
79
- readonly Intermediate: "intermediate";
80
- readonly Advanced: "advanced";
81
- };
82
- export type LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = typeof LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum[keyof typeof LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum];
83
68
  /**
84
69
  * Check if a given object implements the LibraryQuizCriteriaPreviewQuestion interface.
85
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,8 +43,6 @@ function instanceOfLibraryQuizCriteriaPreviewQuestion(value) {
51
43
  return false;
52
44
  if (!('versionNumber' in value) || value['versionNumber'] === undefined)
53
45
  return false;
54
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
55
- return false;
56
46
  if (!('tags' in value) || value['tags'] === undefined)
57
47
  return false;
58
48
  return true;
@@ -70,7 +60,6 @@ function LibraryQuizCriteriaPreviewQuestionFromJSONTyped(json, ignoreDiscriminat
70
60
  'questionType': json['question_type'],
71
61
  'versionNumber': json['version_number'],
72
62
  'version': json['version'] == null ? undefined : json['version'],
73
- 'difficultyLevel': json['difficulty_level'],
74
63
  'tags': json['tags'],
75
64
  };
76
65
  }
@@ -87,7 +76,6 @@ function LibraryQuizCriteriaPreviewQuestionToJSONTyped(value, ignoreDiscriminato
87
76
  'question_type': value['questionType'],
88
77
  'version_number': value['versionNumber'],
89
78
  'version': value['version'],
90
- 'difficulty_level': value['difficultyLevel'],
91
79
  'tags': value['tags'],
92
80
  };
93
81
  }
@@ -21,12 +21,6 @@ export interface LibraryQuizCriterion {
21
21
  * @memberof LibraryQuizCriterion
22
22
  */
23
23
  id?: string | null;
24
- /**
25
- *
26
- * @type {LibraryQuizCriterionDifficultyLevelEnum}
27
- * @memberof LibraryQuizCriterion
28
- */
29
- difficultyLevel?: LibraryQuizCriterionDifficultyLevelEnum | null;
30
24
  /**
31
25
  *
32
26
  * @type {LibraryQuizCriterionQuestionTypeEnum}
@@ -58,15 +52,6 @@ export interface LibraryQuizCriterion {
58
52
  */
59
53
  priority: number;
60
54
  }
61
- /**
62
- * @export
63
- */
64
- export declare const LibraryQuizCriterionDifficultyLevelEnum: {
65
- readonly Beginner: "beginner";
66
- readonly Intermediate: "intermediate";
67
- readonly Advanced: "advanced";
68
- };
69
- export type LibraryQuizCriterionDifficultyLevelEnum = typeof LibraryQuizCriterionDifficultyLevelEnum[keyof typeof LibraryQuizCriterionDifficultyLevelEnum];
70
55
  /**
71
56
  * @export
72
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,7 +47,6 @@ function LibraryQuizCriterionFromJSONTyped(json, ignoreDiscriminator) {
55
47
  }
56
48
  return {
57
49
  'id': json['id'] == null ? undefined : json['id'],
58
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
59
50
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
60
51
  'tags': json['tags'] == null ? undefined : json['tags'],
61
52
  'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
@@ -72,7 +63,6 @@ function LibraryQuizCriterionToJSONTyped(value, ignoreDiscriminator = false) {
72
63
  }
73
64
  return {
74
65
  'id': value['id'],
75
- 'difficulty_level': value['difficultyLevel'],
76
66
  'question_type': value['questionType'],
77
67
  'tags': value['tags'],
78
68
  'min_questions': value['minQuestions'],
@@ -47,12 +47,6 @@ export interface PostQuestion {
47
47
  * @memberof PostQuestion
48
48
  */
49
49
  explanation?: RichTextInput;
50
- /**
51
- * Difficulty level of the question
52
- * @type {PostQuestionDifficultyLevelEnum}
53
- * @memberof PostQuestion
54
- */
55
- difficultyLevel: PostQuestionDifficultyLevelEnum;
56
50
  /**
57
51
  * Keywords/tags for granular filtering
58
52
  * @type {Array<string>}
@@ -78,15 +72,6 @@ export declare const PostQuestionQuestionTypeEnum: {
78
72
  readonly Essay: "essay";
79
73
  };
80
74
  export type PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
81
- /**
82
- * @export
83
- */
84
- export declare const PostQuestionDifficultyLevelEnum: {
85
- readonly Beginner: "beginner";
86
- readonly Intermediate: "intermediate";
87
- readonly Advanced: "advanced";
88
- };
89
- export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevelEnum[keyof typeof PostQuestionDifficultyLevelEnum];
90
75
  /**
91
76
  * Check if a given object implements the PostQuestion interface.
92
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,8 +40,6 @@ function instanceOfPostQuestion(value) {
48
40
  return false;
49
41
  if (!('questionType' in value) || value['questionType'] === undefined)
50
42
  return false;
51
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
52
- return false;
53
43
  return true;
54
44
  }
55
45
  function PostQuestionFromJSON(json) {
@@ -65,7 +55,6 @@ function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
65
55
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuestionAnswerChoicesInner_1.PostQuestionAnswerChoicesInnerFromJSON)),
66
56
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
67
57
  'explanation': json['explanation'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['explanation']),
68
- 'difficultyLevel': json['difficulty_level'],
69
58
  'tags': json['tags'] == null ? undefined : json['tags'],
70
59
  'version': json['version'] == null ? undefined : json['version'],
71
60
  };
@@ -83,7 +72,6 @@ function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
83
72
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuestionAnswerChoicesInner_1.PostQuestionAnswerChoicesInnerToJSON)),
84
73
  'correct_answer': value['correctAnswer'],
85
74
  'explanation': (0, RichTextInput_1.RichTextInputToJSON)(value['explanation']),
86
- 'difficulty_level': value['difficultyLevel'],
87
75
  'tags': value['tags'],
88
76
  'version': value['version'],
89
77
  };
@@ -47,12 +47,6 @@ export interface PutQuestion {
47
47
  * @memberof PutQuestion
48
48
  */
49
49
  explanation?: RichTextInput;
50
- /**
51
- * Difficulty level of the question
52
- * @type {PutQuestionDifficultyLevelEnum}
53
- * @memberof PutQuestion
54
- */
55
- difficultyLevel?: PutQuestionDifficultyLevelEnum;
56
50
  /**
57
51
  * Keywords/tags for granular filtering
58
52
  * @type {Array<string>}
@@ -78,15 +72,6 @@ export declare const PutQuestionQuestionTypeEnum: {
78
72
  readonly Essay: "essay";
79
73
  };
80
74
  export type PutQuestionQuestionTypeEnum = typeof PutQuestionQuestionTypeEnum[keyof typeof PutQuestionQuestionTypeEnum];
81
- /**
82
- * @export
83
- */
84
- export declare const PutQuestionDifficultyLevelEnum: {
85
- readonly Beginner: "beginner";
86
- readonly Intermediate: "intermediate";
87
- readonly Advanced: "advanced";
88
- };
89
- export type PutQuestionDifficultyLevelEnum = typeof PutQuestionDifficultyLevelEnum[keyof typeof PutQuestionDifficultyLevelEnum];
90
75
  /**
91
76
  * Check if a given object implements the PutQuestion interface.
92
77
  */