@easyedu/js-lsm-api 1.18.0 → 1.20.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 (50) hide show
  1. package/.openapi-generator/FILES +3 -3
  2. package/README.md +2 -2
  3. package/dist/apis/ContentApi.d.ts +2 -0
  4. package/dist/apis/ContentApi.js +2 -0
  5. package/dist/apis/QuizApi.d.ts +4 -2
  6. package/dist/apis/QuizApi.js +8 -2
  7. package/dist/esm/apis/ContentApi.d.ts +2 -0
  8. package/dist/esm/apis/ContentApi.js +2 -0
  9. package/dist/esm/apis/QuizApi.d.ts +4 -2
  10. package/dist/esm/apis/QuizApi.js +8 -2
  11. package/dist/esm/models/GetQuizQuestions.d.ts +29 -5
  12. package/dist/esm/models/GetQuizQuestions.js +20 -4
  13. package/dist/esm/models/GetQuizQuestionsItemsInner.d.ts +75 -0
  14. package/dist/esm/models/{GetQuizQuestionsQuestionsInner.js → GetQuizQuestionsItemsInner.js} +11 -11
  15. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +105 -0
  16. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +84 -0
  17. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.d.ts +56 -0
  18. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.js +59 -0
  19. package/dist/esm/models/index.d.ts +3 -3
  20. package/dist/esm/models/index.js +3 -3
  21. package/dist/models/GetQuizQuestions.d.ts +29 -5
  22. package/dist/models/GetQuizQuestions.js +20 -4
  23. package/dist/models/GetQuizQuestionsItemsInner.d.ts +75 -0
  24. package/dist/models/{GetQuizQuestionsQuestionsInner.js → GetQuizQuestionsItemsInner.js} +16 -16
  25. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +105 -0
  26. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +92 -0
  27. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.d.ts +56 -0
  28. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.js +66 -0
  29. package/dist/models/index.d.ts +3 -3
  30. package/dist/models/index.js +3 -3
  31. package/package.json +1 -1
  32. package/src/apis/ContentApi.ts +2 -0
  33. package/src/apis/QuizApi.ts +12 -2
  34. package/src/models/GetQuizQuestions.ts +49 -13
  35. package/src/models/{GetQuizQuestionsQuestionsInner.ts → GetQuizQuestionsItemsInner.ts} +28 -28
  36. package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +171 -0
  37. package/src/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.ts +102 -0
  38. package/src/models/index.ts +3 -3
  39. package/dist/esm/models/GetQuizQuestionsQuestionsInner.d.ts +0 -75
  40. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetails.d.ts +0 -81
  41. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetails.js +0 -76
  42. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts +0 -50
  43. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.js +0 -53
  44. package/dist/models/GetQuizQuestionsQuestionsInner.d.ts +0 -75
  45. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetails.d.ts +0 -81
  46. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetails.js +0 -84
  47. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts +0 -50
  48. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.js +0 -60
  49. package/src/models/GetQuizQuestionsQuestionsInnerQuestionDetails.ts +0 -139
  50. package/src/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.ts +0 -92
@@ -0,0 +1,102 @@
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 GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
20
+ */
21
+ export interface GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
22
+ /**
23
+ * Answer choice ID
24
+ * @type {string}
25
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
26
+ */
27
+ id: string;
28
+ /**
29
+ * External ID of answer choice
30
+ * @type {string}
31
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
32
+ */
33
+ externalId: string;
34
+ /**
35
+ * Answer choice text
36
+ * @type {string}
37
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
38
+ */
39
+ text: string;
40
+ /**
41
+ * Whether this choice is correct
42
+ * @type {boolean}
43
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
44
+ */
45
+ isCorrect: boolean;
46
+ /**
47
+ * Display order of choice
48
+ * @type {number}
49
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner
50
+ */
51
+ displayOrder: number;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner interface.
56
+ */
57
+ export function instanceOfGetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner(value: object): value is GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
58
+ if (!('id' in value) || value['id'] === undefined) return false;
59
+ if (!('externalId' in value) || value['externalId'] === undefined) return false;
60
+ if (!('text' in value) || value['text'] === undefined) return false;
61
+ if (!('isCorrect' in value) || value['isCorrect'] === undefined) return false;
62
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
67
+ return GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'id': json['id'],
77
+ 'externalId': json['external_id'],
78
+ 'text': json['text'],
79
+ 'isCorrect': json['is_correct'],
80
+ 'displayOrder': json['display_order'],
81
+ };
82
+ }
83
+
84
+ export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner {
85
+ return GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
86
+ }
87
+
88
+ export function GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value?: GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'id': value['id'],
96
+ 'external_id': value['externalId'],
97
+ 'text': value['text'],
98
+ 'is_correct': value['isCorrect'],
99
+ 'display_order': value['displayOrder'],
100
+ };
101
+ }
102
+
@@ -81,9 +81,9 @@ export * from './GetQuizListAllOfFilters';
81
81
  export * from './GetQuizListAllOfQuizzes';
82
82
  export * from './GetQuizListAllOfStatistics';
83
83
  export * from './GetQuizQuestions';
84
- export * from './GetQuizQuestionsQuestionsInner';
85
- export * from './GetQuizQuestionsQuestionsInnerQuestionDetails';
86
- export * from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
84
+ export * from './GetQuizQuestionsItemsInner';
85
+ export * from './GetQuizQuestionsItemsInnerQuestionDetails';
86
+ export * from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
87
87
  export * from './GetQuizResults';
88
88
  export * from './GetQuizResultsFeedback';
89
89
  export * from './GetQuizResultsFeedbackDifficultyPerformanceInner';
@@ -1,75 +0,0 @@
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
- import type { GetQuizQuestionsQuestionsInnerQuestionDetails } from './GetQuizQuestionsQuestionsInnerQuestionDetails';
13
- /**
14
- *
15
- * @export
16
- * @interface GetQuizQuestionsQuestionsInner
17
- */
18
- export interface GetQuizQuestionsQuestionsInner {
19
- /**
20
- * Quiz-question relationship ID
21
- * @type {string}
22
- * @memberof GetQuizQuestionsQuestionsInner
23
- */
24
- id: string;
25
- /**
26
- * ID of the question
27
- * @type {string}
28
- * @memberof GetQuizQuestionsQuestionsInner
29
- */
30
- questionId: string;
31
- /**
32
- * External ID of the question
33
- * @type {string}
34
- * @memberof GetQuizQuestionsQuestionsInner
35
- */
36
- questionExternalId: string;
37
- /**
38
- * Order of question in quiz
39
- * @type {number}
40
- * @memberof GetQuizQuestionsQuestionsInner
41
- */
42
- questionOrder: number;
43
- /**
44
- * Points assigned to this question
45
- * @type {number}
46
- * @memberof GetQuizQuestionsQuestionsInner
47
- */
48
- points: number;
49
- /**
50
- * Whether question is locked to specific version
51
- * @type {boolean}
52
- * @memberof GetQuizQuestionsQuestionsInner
53
- */
54
- versionLocked: boolean;
55
- /**
56
- *
57
- * @type {GetQuizQuestionsQuestionsInnerQuestionDetails}
58
- * @memberof GetQuizQuestionsQuestionsInner
59
- */
60
- questionDetails: GetQuizQuestionsQuestionsInnerQuestionDetails;
61
- /**
62
- * When question was added to quiz
63
- * @type {Date}
64
- * @memberof GetQuizQuestionsQuestionsInner
65
- */
66
- createdAt: Date;
67
- }
68
- /**
69
- * Check if a given object implements the GetQuizQuestionsQuestionsInner interface.
70
- */
71
- export declare function instanceOfGetQuizQuestionsQuestionsInner(value: object): value is GetQuizQuestionsQuestionsInner;
72
- export declare function GetQuizQuestionsQuestionsInnerFromJSON(json: any): GetQuizQuestionsQuestionsInner;
73
- export declare function GetQuizQuestionsQuestionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInner;
74
- export declare function GetQuizQuestionsQuestionsInnerToJSON(json: any): GetQuizQuestionsQuestionsInner;
75
- export declare function GetQuizQuestionsQuestionsInnerToJSONTyped(value?: GetQuizQuestionsQuestionsInner | null, ignoreDiscriminator?: boolean): any;
@@ -1,81 +0,0 @@
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
- import type { GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
13
- /**
14
- * Question details
15
- * @export
16
- * @interface GetQuizQuestionsQuestionsInnerQuestionDetails
17
- */
18
- export interface GetQuizQuestionsQuestionsInnerQuestionDetails {
19
- /**
20
- * The question text
21
- * @type {string}
22
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
23
- */
24
- questionText: string;
25
- /**
26
- * Type of question
27
- * @type {string}
28
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
29
- */
30
- questionType: GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum;
31
- /**
32
- * Question topic
33
- * @type {string}
34
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
35
- */
36
- topic: string;
37
- /**
38
- * Question difficulty
39
- * @type {string}
40
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
41
- */
42
- difficultyLevel: GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum;
43
- /**
44
- * Explanation of correct answer
45
- * @type {string}
46
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
47
- */
48
- explanation?: string;
49
- /**
50
- * Available answer choices
51
- * @type {Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>}
52
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
53
- */
54
- answerChoices?: Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>;
55
- }
56
- /**
57
- * @export
58
- */
59
- export declare const GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum: {
60
- readonly SingleAnswer: "single_answer";
61
- readonly MultipleAnswer: "multiple_answer";
62
- readonly FillInBlank: "fill_in_blank";
63
- };
64
- export type GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum];
65
- /**
66
- * @export
67
- */
68
- export declare const GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum: {
69
- readonly Beginner: "beginner";
70
- readonly Intermediate: "intermediate";
71
- readonly Advanced: "advanced";
72
- };
73
- export type GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum];
74
- /**
75
- * Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
76
- */
77
- export declare function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetails;
78
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails;
79
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetails;
80
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails;
81
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetails | null, ignoreDiscriminator?: boolean): any;
@@ -1,76 +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
- import { GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON, GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON, } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
15
- /**
16
- * @export
17
- */
18
- export const GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = {
19
- SingleAnswer: 'single_answer',
20
- MultipleAnswer: 'multiple_answer',
21
- FillInBlank: 'fill_in_blank'
22
- };
23
- /**
24
- * @export
25
- */
26
- export const GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = {
27
- Beginner: 'beginner',
28
- Intermediate: 'intermediate',
29
- Advanced: 'advanced'
30
- };
31
- /**
32
- * Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
33
- */
34
- export function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(value) {
35
- if (!('questionText' in value) || value['questionText'] === undefined)
36
- return false;
37
- if (!('questionType' in value) || value['questionType'] === undefined)
38
- return false;
39
- if (!('topic' in value) || value['topic'] === undefined)
40
- return false;
41
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
42
- return false;
43
- return true;
44
- }
45
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json) {
46
- return GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json, false);
47
- }
48
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json, ignoreDiscriminator) {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
- 'questionText': json['question_text'],
54
- 'questionType': json['question_type'],
55
- 'topic': json['topic'],
56
- 'difficultyLevel': json['difficulty_level'],
57
- 'explanation': json['explanation'] == null ? undefined : json['explanation'],
58
- 'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON)),
59
- };
60
- }
61
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json) {
62
- return GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(json, false);
63
- }
64
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value, ignoreDiscriminator = false) {
65
- if (value == null) {
66
- return value;
67
- }
68
- return {
69
- 'question_text': value['questionText'],
70
- 'question_type': value['questionType'],
71
- 'topic': value['topic'],
72
- 'difficulty_level': value['difficultyLevel'],
73
- 'explanation': value['explanation'],
74
- 'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON)),
75
- };
76
- }
@@ -1,50 +0,0 @@
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 GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
16
- */
17
- export interface GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner {
18
- /**
19
- * Answer choice ID
20
- * @type {string}
21
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
22
- */
23
- id: string;
24
- /**
25
- * Answer choice text
26
- * @type {string}
27
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
28
- */
29
- text: string;
30
- /**
31
- * Whether this choice is correct
32
- * @type {boolean}
33
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
34
- */
35
- isCorrect: boolean;
36
- /**
37
- * Display order of choice
38
- * @type {number}
39
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner
40
- */
41
- displayOrder?: number;
42
- }
43
- /**
44
- * Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner interface.
45
- */
46
- export declare function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner;
47
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner;
48
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner;
49
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner;
50
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner | null, ignoreDiscriminator?: boolean): any;
@@ -1,53 +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
- * Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner interface.
16
- */
17
- export function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner(value) {
18
- if (!('id' in value) || value['id'] === undefined)
19
- return false;
20
- if (!('text' in value) || value['text'] === undefined)
21
- return false;
22
- if (!('isCorrect' in value) || value['isCorrect'] === undefined)
23
- return false;
24
- return true;
25
- }
26
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSON(json) {
27
- return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, false);
28
- }
29
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
30
- if (json == null) {
31
- return json;
32
- }
33
- return {
34
- 'id': json['id'],
35
- 'text': json['text'],
36
- 'isCorrect': json['is_correct'],
37
- 'displayOrder': json['display_order'] == null ? undefined : json['display_order'],
38
- };
39
- }
40
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSON(json) {
41
- return GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(json, false);
42
- }
43
- export function GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'id': value['id'],
49
- 'text': value['text'],
50
- 'is_correct': value['isCorrect'],
51
- 'display_order': value['displayOrder'],
52
- };
53
- }
@@ -1,75 +0,0 @@
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
- import type { GetQuizQuestionsQuestionsInnerQuestionDetails } from './GetQuizQuestionsQuestionsInnerQuestionDetails';
13
- /**
14
- *
15
- * @export
16
- * @interface GetQuizQuestionsQuestionsInner
17
- */
18
- export interface GetQuizQuestionsQuestionsInner {
19
- /**
20
- * Quiz-question relationship ID
21
- * @type {string}
22
- * @memberof GetQuizQuestionsQuestionsInner
23
- */
24
- id: string;
25
- /**
26
- * ID of the question
27
- * @type {string}
28
- * @memberof GetQuizQuestionsQuestionsInner
29
- */
30
- questionId: string;
31
- /**
32
- * External ID of the question
33
- * @type {string}
34
- * @memberof GetQuizQuestionsQuestionsInner
35
- */
36
- questionExternalId: string;
37
- /**
38
- * Order of question in quiz
39
- * @type {number}
40
- * @memberof GetQuizQuestionsQuestionsInner
41
- */
42
- questionOrder: number;
43
- /**
44
- * Points assigned to this question
45
- * @type {number}
46
- * @memberof GetQuizQuestionsQuestionsInner
47
- */
48
- points: number;
49
- /**
50
- * Whether question is locked to specific version
51
- * @type {boolean}
52
- * @memberof GetQuizQuestionsQuestionsInner
53
- */
54
- versionLocked: boolean;
55
- /**
56
- *
57
- * @type {GetQuizQuestionsQuestionsInnerQuestionDetails}
58
- * @memberof GetQuizQuestionsQuestionsInner
59
- */
60
- questionDetails: GetQuizQuestionsQuestionsInnerQuestionDetails;
61
- /**
62
- * When question was added to quiz
63
- * @type {Date}
64
- * @memberof GetQuizQuestionsQuestionsInner
65
- */
66
- createdAt: Date;
67
- }
68
- /**
69
- * Check if a given object implements the GetQuizQuestionsQuestionsInner interface.
70
- */
71
- export declare function instanceOfGetQuizQuestionsQuestionsInner(value: object): value is GetQuizQuestionsQuestionsInner;
72
- export declare function GetQuizQuestionsQuestionsInnerFromJSON(json: any): GetQuizQuestionsQuestionsInner;
73
- export declare function GetQuizQuestionsQuestionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInner;
74
- export declare function GetQuizQuestionsQuestionsInnerToJSON(json: any): GetQuizQuestionsQuestionsInner;
75
- export declare function GetQuizQuestionsQuestionsInnerToJSONTyped(value?: GetQuizQuestionsQuestionsInner | null, ignoreDiscriminator?: boolean): any;
@@ -1,81 +0,0 @@
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
- import type { GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner';
13
- /**
14
- * Question details
15
- * @export
16
- * @interface GetQuizQuestionsQuestionsInnerQuestionDetails
17
- */
18
- export interface GetQuizQuestionsQuestionsInnerQuestionDetails {
19
- /**
20
- * The question text
21
- * @type {string}
22
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
23
- */
24
- questionText: string;
25
- /**
26
- * Type of question
27
- * @type {string}
28
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
29
- */
30
- questionType: GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum;
31
- /**
32
- * Question topic
33
- * @type {string}
34
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
35
- */
36
- topic: string;
37
- /**
38
- * Question difficulty
39
- * @type {string}
40
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
41
- */
42
- difficultyLevel: GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum;
43
- /**
44
- * Explanation of correct answer
45
- * @type {string}
46
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
47
- */
48
- explanation?: string;
49
- /**
50
- * Available answer choices
51
- * @type {Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>}
52
- * @memberof GetQuizQuestionsQuestionsInnerQuestionDetails
53
- */
54
- answerChoices?: Array<GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner>;
55
- }
56
- /**
57
- * @export
58
- */
59
- export declare const GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum: {
60
- readonly SingleAnswer: "single_answer";
61
- readonly MultipleAnswer: "multiple_answer";
62
- readonly FillInBlank: "fill_in_blank";
63
- };
64
- export type GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsQuestionTypeEnum];
65
- /**
66
- * @export
67
- */
68
- export declare const GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum: {
69
- readonly Beginner: "beginner";
70
- readonly Intermediate: "intermediate";
71
- readonly Advanced: "advanced";
72
- };
73
- export type GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsQuestionsInnerQuestionDetailsDifficultyLevelEnum];
74
- /**
75
- * Check if a given object implements the GetQuizQuestionsQuestionsInnerQuestionDetails interface.
76
- */
77
- export declare function instanceOfGetQuizQuestionsQuestionsInnerQuestionDetails(value: object): value is GetQuizQuestionsQuestionsInnerQuestionDetails;
78
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails;
79
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsQuestionsInnerQuestionDetails;
80
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsQuestionsInnerQuestionDetails;
81
- export declare function GetQuizQuestionsQuestionsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsQuestionsInnerQuestionDetails | null, ignoreDiscriminator?: boolean): any;