@easyedu/js-lsm-api 1.18.0 → 1.19.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 (45) hide show
  1. package/.openapi-generator/FILES +3 -3
  2. package/README.md +2 -2
  3. package/dist/apis/QuizApi.d.ts +4 -2
  4. package/dist/apis/QuizApi.js +8 -2
  5. package/dist/esm/apis/QuizApi.d.ts +4 -2
  6. package/dist/esm/apis/QuizApi.js +8 -2
  7. package/dist/esm/models/GetQuizQuestions.d.ts +29 -5
  8. package/dist/esm/models/GetQuizQuestions.js +20 -4
  9. package/dist/esm/models/GetQuizQuestionsItemsInner.d.ts +75 -0
  10. package/dist/esm/models/{GetQuizQuestionsQuestionsInner.js → GetQuizQuestionsItemsInner.js} +11 -11
  11. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +105 -0
  12. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +84 -0
  13. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.d.ts +56 -0
  14. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.js +59 -0
  15. package/dist/esm/models/index.d.ts +3 -3
  16. package/dist/esm/models/index.js +3 -3
  17. package/dist/models/GetQuizQuestions.d.ts +29 -5
  18. package/dist/models/GetQuizQuestions.js +20 -4
  19. package/dist/models/GetQuizQuestionsItemsInner.d.ts +75 -0
  20. package/dist/models/{GetQuizQuestionsQuestionsInner.js → GetQuizQuestionsItemsInner.js} +16 -16
  21. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +105 -0
  22. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +92 -0
  23. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.d.ts +56 -0
  24. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.js +66 -0
  25. package/dist/models/index.d.ts +3 -3
  26. package/dist/models/index.js +3 -3
  27. package/package.json +1 -1
  28. package/src/apis/QuizApi.ts +12 -2
  29. package/src/models/GetQuizQuestions.ts +49 -13
  30. package/src/models/{GetQuizQuestionsQuestionsInner.ts → GetQuizQuestionsItemsInner.ts} +28 -28
  31. package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +171 -0
  32. package/src/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.ts +102 -0
  33. package/src/models/index.ts +3 -3
  34. package/dist/esm/models/GetQuizQuestionsQuestionsInner.d.ts +0 -75
  35. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetails.d.ts +0 -81
  36. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetails.js +0 -76
  37. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts +0 -50
  38. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.js +0 -53
  39. package/dist/models/GetQuizQuestionsQuestionsInner.d.ts +0 -75
  40. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetails.d.ts +0 -81
  41. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetails.js +0 -84
  42. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts +0 -50
  43. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.js +0 -60
  44. package/src/models/GetQuizQuestionsQuestionsInnerQuestionDetails.ts +0 -139
  45. package/src/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.ts +0 -92
@@ -1,60 +0,0 @@
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.instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner = instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner;
17
- exports.GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON = GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON;
18
- exports.GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped = GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped;
19
- exports.GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON = GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON;
20
- exports.GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped = GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped;
21
- /**
22
- * Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner interface.
23
- */
24
- function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner(value) {
25
- if (!('id' in value) || value['id'] === undefined)
26
- return false;
27
- if (!('text' in value) || value['text'] === undefined)
28
- return false;
29
- if (!('isCorrect' in value) || value['isCorrect'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json) {
34
- return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
35
- }
36
- function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'id': json['id'],
42
- 'text': json['text'],
43
- 'isCorrect': json['is_correct'],
44
- 'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
45
- };
46
- }
47
- function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON(json) {
48
- return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
49
- }
50
- function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = false) {
51
- if (value == null) {
52
- return value;
53
- }
54
- return {
55
- 'id': value['id'],
56
- 'text': value['text'],
57
- 'is_correct': value['isCorrect'],
58
- 'display_order': value['displayOrder'],
59
- };
60
- }
@@ -1,139 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * LMS API
5
- * LMS API
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
17
- import {
18
- GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON,
19
- GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped,
20
- GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON,
21
- GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped,
22
- } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
23
-
24
- /**
25
- * Question details
26
- * @export
27
- * @interface GetQuizQuestionsQuestionsInnerQuestionDetails
28
- */
29
- export interface GetQuizQuestionsQuestionsInnerQuestionDetails {
30
- /**
31
- * The question text
32
- * @type {string}
33
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
34
- */
35
- questionText: string;
36
- /**
37
- * Type of question
38
- * @type {string}
39
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
40
- */
41
- questionType: GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum;
42
- /**
43
- * Question topic
44
- * @type {string}
45
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
46
- */
47
- topic: string;
48
- /**
49
- * Question difficulty
50
- * @type {string}
51
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
52
- */
53
- difficultyLevel: GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum;
54
- /**
55
- * Explanation of correct answer
56
- * @type {string}
57
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
58
- */
59
- explanation?: string;
60
- /**
61
- * Available answer choices
62
- * @type {Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>}
63
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
64
- */
65
- answerChoices?: Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>;
66
- }
67
-
68
-
69
- /**
70
- * @export
71
- */
72
- export const GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = {
73
- SingleAnswer: 'single_answer',
74
- MultipleAnswer: 'multiple_answer',
75
- FillInBlank: 'fill_in_blank'
76
- } as const;
77
- export type GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum];
78
-
79
- /**
80
- * @export
81
- */
82
- export const GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = {
83
- Beginner: 'beginner',
84
- Intermediate: 'intermediate',
85
- Advanced: 'advanced'
86
- } as const;
87
- export type GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum];
88
-
89
-
90
- /**
91
- * Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
92
- */
93
- export function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetails {
94
- if (!('questionText' in value) || value['questionText'] === undefined) return false;
95
- if (!('questionType' in value) || value['questionType'] === undefined) return false;
96
- if (!('topic' in value) || value['topic'] === undefined) return false;
97
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined) return false;
98
- return true;
99
- }
100
-
101
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails {
102
- return GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json, false);
103
- }
104
-
105
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetails {
106
- if (json == null) {
107
- return json;
108
- }
109
- return {
110
-
111
- 'questionText': json['question_text'],
112
- 'questionType': json['question_type'],
113
- 'topic': json['topic'],
114
- 'difficultyLevel': json['difficulty_level'],
115
- 'explanation': json['explanation'] == null ? undefined : json['explanation'],
116
- 'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON)),
117
- };
118
- }
119
-
120
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails {
121
- return GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(json, false);
122
- }
123
-
124
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetails | null, ignoreDiscriminator: boolean = false): any {
125
- if (value == null) {
126
- return value;
127
- }
128
-
129
- return {
130
-
131
- 'question_text': value['questionText'],
132
- 'question_type': value['questionType'],
133
- 'topic': value['topic'],
134
- 'difficulty_level': value['difficultyLevel'],
135
- 'explanation': value['explanation'],
136
- 'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON)),
137
- };
138
- }
139
-
@@ -1,92 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * LMS API
5
- * LMS API
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
20
- */
21
- export interface GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
22
- /**
23
- * Answer choice ID
24
- * @type {string}
25
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
26
- */
27
- id: string;
28
- /**
29
- * Answer choice text
30
- * @type {string}
31
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
32
- */
33
- text: string;
34
- /**
35
- * Whether this choice is correct
36
- * @type {boolean}
37
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
38
- */
39
- isCorrect: boolean;
40
- /**
41
- * Display order of choice
42
- * @type {number}
43
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
44
- */
45
- displayOrder?: number;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner interface.
50
- */
51
- export function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
52
- if (!('id' in value) || value['id'] === undefined) return false;
53
- if (!('text' in value) || value['text'] === undefined) return false;
54
- if (!('isCorrect' in value) || value['isCorrect'] === undefined) return false;
55
- return true;
56
- }
57
-
58
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
59
- return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
60
- }
61
-
62
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
63
- if (json == null) {
64
- return json;
65
- }
66
- return {
67
-
68
- 'id': json['id'],
69
- 'text': json['text'],
70
- 'isCorrect': json['is_correct'],
71
- 'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
72
- };
73
- }
74
-
75
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
76
- return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
77
- }
78
-
79
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner | null, ignoreDiscriminator: boolean = false): any {
80
- if (value == null) {
81
- return value;
82
- }
83
-
84
- return {
85
-
86
- 'id': value['id'],
87
- 'text': value['text'],
88
- 'is_correct': value['isCorrect'],
89
- 'display_order': value['displayOrder'],
90
- };
91
- }
92
-