@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
@@ -64,12 +64,6 @@ export interface PostQuestion {
64
64
  * @memberof PostQuestion
65
65
  */
66
66
  explanation?: RichTextInput;
67
- /**
68
- * Difficulty level of the question
69
- * @type {PostQuestionDifficultyLevelEnum}
70
- * @memberof PostQuestion
71
- */
72
- difficultyLevel: PostQuestionDifficultyLevelEnum;
73
67
  /**
74
68
  * Keywords/tags for granular filtering
75
69
  * @type {Array<string>}
@@ -98,16 +92,6 @@ export const PostQuestionQuestionTypeEnum = {
98
92
  } as const;
99
93
  export type PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
100
94
 
101
- /**
102
- * @export
103
- */
104
- export const PostQuestionDifficultyLevelEnum = {
105
- Beginner: 'beginner',
106
- Intermediate: 'intermediate',
107
- Advanced: 'advanced'
108
- } as const;
109
- export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevelEnum[keyof typeof PostQuestionDifficultyLevelEnum];
110
-
111
95
 
112
96
  /**
113
97
  * Check if a given object implements the PostQuestion interface.
@@ -115,7 +99,6 @@ export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevel
115
99
  export function instanceOfPostQuestion(value: object): value is PostQuestion {
116
100
  if (!('questionText' in value) || value['questionText'] === undefined) return false;
117
101
  if (!('questionType' in value) || value['questionType'] === undefined) return false;
118
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined) return false;
119
102
  return true;
120
103
  }
121
104
 
@@ -134,7 +117,6 @@ export function PostQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolea
134
117
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(PostQuestionAnswerChoicesInnerFromJSON)),
135
118
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
136
119
  'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
137
- 'difficultyLevel': json['difficulty_level'],
138
120
  'tags': json['tags'] == null ? undefined : json['tags'],
139
121
  'version': json['version'] == null ? undefined : json['version'],
140
122
  };
@@ -156,7 +138,6 @@ export function PostQuestionToJSONTyped(value?: PostQuestion | null, ignoreDiscr
156
138
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(PostQuestionAnswerChoicesInnerToJSON)),
157
139
  'correct_answer': value['correctAnswer'],
158
140
  'explanation': RichTextInputToJSON(value['explanation']),
159
- 'difficulty_level': value['difficultyLevel'],
160
141
  'tags': value['tags'],
161
142
  'version': value['version'],
162
143
  };
@@ -64,12 +64,6 @@ export interface PutQuestion {
64
64
  * @memberof PutQuestion
65
65
  */
66
66
  explanation?: RichTextInput;
67
- /**
68
- * Difficulty level of the question
69
- * @type {PutQuestionDifficultyLevelEnum}
70
- * @memberof PutQuestion
71
- */
72
- difficultyLevel?: PutQuestionDifficultyLevelEnum;
73
67
  /**
74
68
  * Keywords/tags for granular filtering
75
69
  * @type {Array<string>}
@@ -98,16 +92,6 @@ export const PutQuestionQuestionTypeEnum = {
98
92
  } as const;
99
93
  export type PutQuestionQuestionTypeEnum = typeof PutQuestionQuestionTypeEnum[keyof typeof PutQuestionQuestionTypeEnum];
100
94
 
101
- /**
102
- * @export
103
- */
104
- export const PutQuestionDifficultyLevelEnum = {
105
- Beginner: 'beginner',
106
- Intermediate: 'intermediate',
107
- Advanced: 'advanced'
108
- } as const;
109
- export type PutQuestionDifficultyLevelEnum = typeof PutQuestionDifficultyLevelEnum[keyof typeof PutQuestionDifficultyLevelEnum];
110
-
111
95
 
112
96
  /**
113
97
  * Check if a given object implements the PutQuestion interface.
@@ -131,7 +115,6 @@ export function PutQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean
131
115
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(PutQuestionAnswerChoicesInnerFromJSON)),
132
116
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
133
117
  'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
134
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
135
118
  'tags': json['tags'] == null ? undefined : json['tags'],
136
119
  'version': json['version'] == null ? undefined : json['version'],
137
120
  };
@@ -153,7 +136,6 @@ export function PutQuestionToJSONTyped(value?: PutQuestion | null, ignoreDiscrim
153
136
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(PutQuestionAnswerChoicesInnerToJSON)),
154
137
  'correct_answer': value['correctAnswer'],
155
138
  'explanation': RichTextInputToJSON(value['explanation']),
156
- 'difficulty_level': value['difficultyLevel'],
157
139
  'tags': value['tags'],
158
140
  'version': value['version'],
159
141
  };