@easyedu/js-lsm-api 1.17.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 (65) hide show
  1. package/.openapi-generator/FILES +6 -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/apis/ReportingApi.d.ts +13 -1
  6. package/dist/apis/ReportingApi.js +31 -0
  7. package/dist/esm/apis/QuizApi.d.ts +4 -2
  8. package/dist/esm/apis/QuizApi.js +8 -2
  9. package/dist/esm/apis/ReportingApi.d.ts +13 -1
  10. package/dist/esm/apis/ReportingApi.js +32 -1
  11. package/dist/esm/models/GetPortalStudentReporting.d.ts +40 -0
  12. package/dist/esm/models/GetPortalStudentReporting.js +49 -0
  13. package/dist/esm/models/GetPortalStudentReportingCertificates.d.ts +32 -0
  14. package/dist/esm/models/GetPortalStudentReportingCertificates.js +43 -0
  15. package/dist/esm/models/GetPortalStudentReportingPortalInfo.d.ts +44 -0
  16. package/dist/esm/models/GetPortalStudentReportingPortalInfo.js +51 -0
  17. package/dist/esm/models/GetQuizQuestions.d.ts +29 -5
  18. package/dist/esm/models/GetQuizQuestions.js +20 -4
  19. package/dist/esm/models/GetQuizQuestionsItemsInner.d.ts +75 -0
  20. package/dist/esm/models/{GetQuizQuestionsQuestionsInner.js → GetQuizQuestionsItemsInner.js} +11 -11
  21. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +105 -0
  22. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +84 -0
  23. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.d.ts +56 -0
  24. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.js +59 -0
  25. package/dist/esm/models/index.d.ts +6 -3
  26. package/dist/esm/models/index.js +6 -3
  27. package/dist/models/GetPortalStudentReporting.d.ts +40 -0
  28. package/dist/models/GetPortalStudentReporting.js +56 -0
  29. package/dist/models/GetPortalStudentReportingCertificates.d.ts +32 -0
  30. package/dist/models/GetPortalStudentReportingCertificates.js +50 -0
  31. package/dist/models/GetPortalStudentReportingPortalInfo.d.ts +44 -0
  32. package/dist/models/GetPortalStudentReportingPortalInfo.js +58 -0
  33. package/dist/models/GetQuizQuestions.d.ts +29 -5
  34. package/dist/models/GetQuizQuestions.js +20 -4
  35. package/dist/models/GetQuizQuestionsItemsInner.d.ts +75 -0
  36. package/dist/models/{GetQuizQuestionsQuestionsInner.js → GetQuizQuestionsItemsInner.js} +16 -16
  37. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +105 -0
  38. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +92 -0
  39. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.d.ts +56 -0
  40. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.js +66 -0
  41. package/dist/models/index.d.ts +6 -3
  42. package/dist/models/index.js +6 -3
  43. package/package.json +1 -1
  44. package/src/apis/QuizApi.ts +12 -2
  45. package/src/apis/ReportingApi.ts +48 -0
  46. package/src/models/GetPortalStudentReporting.ts +90 -0
  47. package/src/models/GetPortalStudentReportingCertificates.ts +66 -0
  48. package/src/models/GetPortalStudentReportingPortalInfo.ts +84 -0
  49. package/src/models/GetQuizQuestions.ts +49 -13
  50. package/src/models/{GetQuizQuestionsQuestionsInner.ts → GetQuizQuestionsItemsInner.ts} +28 -28
  51. package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +171 -0
  52. package/src/models/GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner.ts +102 -0
  53. package/src/models/index.ts +6 -3
  54. package/dist/esm/models/GetQuizQuestionsQuestionsInner.d.ts +0 -75
  55. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetails.d.ts +0 -81
  56. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetails.js +0 -76
  57. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts +0 -50
  58. package/dist/esm/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.js +0 -53
  59. package/dist/models/GetQuizQuestionsQuestionsInner.d.ts +0 -75
  60. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetails.d.ts +0 -81
  61. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetails.js +0 -84
  62. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.d.ts +0 -50
  63. package/dist/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.js +0 -60
  64. package/src/models/GetQuizQuestionsQuestionsInnerQuestionDetails.ts +0 -139
  65. package/src/models/GetQuizQuestionsQuestionsInnerQuestionDetailsAnswerChoicesInner.ts +0 -92
@@ -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 GetPortalStudentReportingCertificates
16
+ */
17
+ export interface GetPortalStudentReportingCertificates {
18
+ /**
19
+ * Total number of certificates earned by the student
20
+ * @type {number}
21
+ * @memberof GetPortalStudentReportingCertificates
22
+ */
23
+ certificatesEarnedCount: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetPortalStudentReportingCertificates interface.
27
+ */
28
+ export declare function instanceOfGetPortalStudentReportingCertificates(value: object): value is GetPortalStudentReportingCertificates;
29
+ export declare function GetPortalStudentReportingCertificatesFromJSON(json: any): GetPortalStudentReportingCertificates;
30
+ export declare function GetPortalStudentReportingCertificatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReportingCertificates;
31
+ export declare function GetPortalStudentReportingCertificatesToJSON(json: any): GetPortalStudentReportingCertificates;
32
+ export declare function GetPortalStudentReportingCertificatesToJSONTyped(value?: GetPortalStudentReportingCertificates | 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.instanceOfGetPortalStudentReportingCertificates = instanceOfGetPortalStudentReportingCertificates;
17
+ exports.GetPortalStudentReportingCertificatesFromJSON = GetPortalStudentReportingCertificatesFromJSON;
18
+ exports.GetPortalStudentReportingCertificatesFromJSONTyped = GetPortalStudentReportingCertificatesFromJSONTyped;
19
+ exports.GetPortalStudentReportingCertificatesToJSON = GetPortalStudentReportingCertificatesToJSON;
20
+ exports.GetPortalStudentReportingCertificatesToJSONTyped = GetPortalStudentReportingCertificatesToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetPortalStudentReportingCertificates interface.
23
+ */
24
+ function instanceOfGetPortalStudentReportingCertificates(value) {
25
+ if (!('certificatesEarnedCount' in value) || value['certificatesEarnedCount'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function GetPortalStudentReportingCertificatesFromJSON(json) {
30
+ return GetPortalStudentReportingCertificatesFromJSONTyped(json, false);
31
+ }
32
+ function GetPortalStudentReportingCertificatesFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'certificatesEarnedCount': json['certificates_earned_count'],
38
+ };
39
+ }
40
+ function GetPortalStudentReportingCertificatesToJSON(json) {
41
+ return GetPortalStudentReportingCertificatesToJSONTyped(json, false);
42
+ }
43
+ function GetPortalStudentReportingCertificatesToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'certificates_earned_count': value['certificatesEarnedCount'],
49
+ };
50
+ }
@@ -0,0 +1,44 @@
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 GetPortalStudentReportingPortalInfo
16
+ */
17
+ export interface GetPortalStudentReportingPortalInfo {
18
+ /**
19
+ * Total number of courses the student is enrolled in
20
+ * @type {number}
21
+ * @memberof GetPortalStudentReportingPortalInfo
22
+ */
23
+ enrolledCoursesCount: number;
24
+ /**
25
+ * Number of courses the student has completed
26
+ * @type {number}
27
+ * @memberof GetPortalStudentReportingPortalInfo
28
+ */
29
+ completedCoursesCount: number;
30
+ /**
31
+ * Number of courses currently in progress
32
+ * @type {number}
33
+ * @memberof GetPortalStudentReportingPortalInfo
34
+ */
35
+ inProgressCoursesCount: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the GetPortalStudentReportingPortalInfo interface.
39
+ */
40
+ export declare function instanceOfGetPortalStudentReportingPortalInfo(value: object): value is GetPortalStudentReportingPortalInfo;
41
+ export declare function GetPortalStudentReportingPortalInfoFromJSON(json: any): GetPortalStudentReportingPortalInfo;
42
+ export declare function GetPortalStudentReportingPortalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReportingPortalInfo;
43
+ export declare function GetPortalStudentReportingPortalInfoToJSON(json: any): GetPortalStudentReportingPortalInfo;
44
+ export declare function GetPortalStudentReportingPortalInfoToJSONTyped(value?: GetPortalStudentReportingPortalInfo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfGetPortalStudentReportingPortalInfo = instanceOfGetPortalStudentReportingPortalInfo;
17
+ exports.GetPortalStudentReportingPortalInfoFromJSON = GetPortalStudentReportingPortalInfoFromJSON;
18
+ exports.GetPortalStudentReportingPortalInfoFromJSONTyped = GetPortalStudentReportingPortalInfoFromJSONTyped;
19
+ exports.GetPortalStudentReportingPortalInfoToJSON = GetPortalStudentReportingPortalInfoToJSON;
20
+ exports.GetPortalStudentReportingPortalInfoToJSONTyped = GetPortalStudentReportingPortalInfoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetPortalStudentReportingPortalInfo interface.
23
+ */
24
+ function instanceOfGetPortalStudentReportingPortalInfo(value) {
25
+ if (!('enrolledCoursesCount' in value) || value['enrolledCoursesCount'] === undefined)
26
+ return false;
27
+ if (!('completedCoursesCount' in value) || value['completedCoursesCount'] === undefined)
28
+ return false;
29
+ if (!('inProgressCoursesCount' in value) || value['inProgressCoursesCount'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function GetPortalStudentReportingPortalInfoFromJSON(json) {
34
+ return GetPortalStudentReportingPortalInfoFromJSONTyped(json, false);
35
+ }
36
+ function GetPortalStudentReportingPortalInfoFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'enrolledCoursesCount': json['enrolled_courses_count'],
42
+ 'completedCoursesCount': json['completed_courses_count'],
43
+ 'inProgressCoursesCount': json['in_progress_courses_count'],
44
+ };
45
+ }
46
+ function GetPortalStudentReportingPortalInfoToJSON(json) {
47
+ return GetPortalStudentReportingPortalInfoToJSONTyped(json, false);
48
+ }
49
+ function GetPortalStudentReportingPortalInfoToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'enrolled_courses_count': value['enrolledCoursesCount'],
55
+ 'completed_courses_count': value['completedCoursesCount'],
56
+ 'in_progress_courses_count': value['inProgressCoursesCount'],
57
+ };
58
+ }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { GetQuizQuestionsQuestionsInner } from './GetQuizQuestionsQuestionsInner';
12
+ import type { GetQuizQuestionsItemsInner } from './GetQuizQuestionsItemsInner';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -17,13 +17,31 @@ import type { GetQuizQuestionsQuestionsInner } from './GetQuizQuestionsQuestions
17
17
  */
18
18
  export interface GetQuizQuestions {
19
19
  /**
20
- * Questions in the quiz
21
- * @type {Array<GetQuizQuestionsQuestionsInner>}
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetQuizQuestions
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetQuizQuestions
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetQuizQuestions
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of questions in the quiz
39
+ * @type {number}
22
40
  * @memberof GetQuizQuestions
23
41
  */
24
- questions: Array<GetQuizQuestionsQuestionsInner>;
42
+ totalItems: number;
25
43
  /**
26
- * Total number of questions in quiz
44
+ * Total number of questions in quiz (same as totalItems)
27
45
  * @type {number}
28
46
  * @memberof GetQuizQuestions
29
47
  */
@@ -40,6 +58,12 @@ export interface GetQuizQuestions {
40
58
  * @memberof GetQuizQuestions
41
59
  */
42
60
  selectionMethod: GetQuizQuestionsSelectionMethodEnum;
61
+ /**
62
+ * Questions in the quiz (paginated)
63
+ * @type {Array<GetQuizQuestionsItemsInner>}
64
+ * @memberof GetQuizQuestions
65
+ */
66
+ items: Array<GetQuizQuestionsItemsInner>;
43
67
  }
44
68
  /**
45
69
  * @export
@@ -19,7 +19,7 @@ exports.GetQuizQuestionsFromJSON = GetQuizQuestionsFromJSON;
19
19
  exports.GetQuizQuestionsFromJSONTyped = GetQuizQuestionsFromJSONTyped;
20
20
  exports.GetQuizQuestionsToJSON = GetQuizQuestionsToJSON;
21
21
  exports.GetQuizQuestionsToJSONTyped = GetQuizQuestionsToJSONTyped;
22
- const GetQuizQuestionsQuestionsInner_1 = require("./GetQuizQuestionsQuestionsInner");
22
+ const GetQuizQuestionsItemsInner_1 = require("./GetQuizQuestionsItemsInner");
23
23
  /**
24
24
  * @export
25
25
  */
@@ -31,7 +31,13 @@ exports.GetQuizQuestionsSelectionMethodEnum = {
31
31
  * Check if a given object implements the GetQuizQuestions interface.
32
32
  */
33
33
  function instanceOfGetQuizQuestions(value) {
34
- if (!('questions' in value) || value['questions'] === undefined)
34
+ if (!('page' in value) || value['page'] === undefined)
35
+ return false;
36
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
37
+ return false;
38
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
39
+ return false;
40
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
35
41
  return false;
36
42
  if (!('totalQuestions' in value) || value['totalQuestions'] === undefined)
37
43
  return false;
@@ -39,6 +45,8 @@ function instanceOfGetQuizQuestions(value) {
39
45
  return false;
40
46
  if (!('selectionMethod' in value) || value['selectionMethod'] === undefined)
41
47
  return false;
48
+ if (!('items' in value) || value['items'] === undefined)
49
+ return false;
42
50
  return true;
43
51
  }
44
52
  function GetQuizQuestionsFromJSON(json) {
@@ -49,10 +57,14 @@ function GetQuizQuestionsFromJSONTyped(json, ignoreDiscriminator) {
49
57
  return json;
50
58
  }
51
59
  return {
52
- 'questions': (json['questions'].map(GetQuizQuestionsQuestionsInner_1.GetQuizQuestionsQuestionsInnerFromJSON)),
60
+ 'page': json['page'],
61
+ 'pageSize': json['pageSize'],
62
+ 'totalPages': json['totalPages'],
63
+ 'totalItems': json['totalItems'],
53
64
  'totalQuestions': json['total_questions'],
54
65
  'totalPoints': json['total_points'],
55
66
  'selectionMethod': json['selection_method'],
67
+ 'items': (json['items'].map(GetQuizQuestionsItemsInner_1.GetQuizQuestionsItemsInnerFromJSON)),
56
68
  };
57
69
  }
58
70
  function GetQuizQuestionsToJSON(json) {
@@ -63,9 +75,13 @@ function GetQuizQuestionsToJSONTyped(value, ignoreDiscriminator = false) {
63
75
  return value;
64
76
  }
65
77
  return {
66
- 'questions': (value['questions'].map(GetQuizQuestionsQuestionsInner_1.GetQuizQuestionsQuestionsInnerToJSON)),
78
+ 'page': value['page'],
79
+ 'pageSize': value['pageSize'],
80
+ 'totalPages': value['totalPages'],
81
+ 'totalItems': value['totalItems'],
67
82
  'total_questions': value['totalQuestions'],
68
83
  'total_points': value['totalPoints'],
69
84
  'selection_method': value['selectionMethod'],
85
+ 'items': (value['items'].map(GetQuizQuestionsItemsInner_1.GetQuizQuestionsItemsInnerToJSON)),
70
86
  };
71
87
  }
@@ -0,0 +1,75 @@
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 { GetQuizQuestionsItemsInnerQuestionDetails } from './GetQuizQuestionsItemsInnerQuestionDetails';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetQuizQuestionsItemsInner
17
+ */
18
+ export interface GetQuizQuestionsItemsInner {
19
+ /**
20
+ * Quiz-question relationship ID
21
+ * @type {string}
22
+ * @memberof GetQuizQuestionsItemsInner
23
+ */
24
+ id: string;
25
+ /**
26
+ * ID of the question
27
+ * @type {string}
28
+ * @memberof GetQuizQuestionsItemsInner
29
+ */
30
+ questionId: string;
31
+ /**
32
+ * External ID of the question
33
+ * @type {string}
34
+ * @memberof GetQuizQuestionsItemsInner
35
+ */
36
+ questionExternalId: string;
37
+ /**
38
+ * Order of question in quiz
39
+ * @type {number}
40
+ * @memberof GetQuizQuestionsItemsInner
41
+ */
42
+ questionOrder: number;
43
+ /**
44
+ * Points assigned to this question
45
+ * @type {number}
46
+ * @memberof GetQuizQuestionsItemsInner
47
+ */
48
+ points: number;
49
+ /**
50
+ * Whether question is locked to specific version
51
+ * @type {boolean}
52
+ * @memberof GetQuizQuestionsItemsInner
53
+ */
54
+ versionLocked: boolean;
55
+ /**
56
+ *
57
+ * @type {GetQuizQuestionsItemsInnerQuestionDetails}
58
+ * @memberof GetQuizQuestionsItemsInner
59
+ */
60
+ questionDetails: GetQuizQuestionsItemsInnerQuestionDetails;
61
+ /**
62
+ * When question was added to quiz
63
+ * @type {Date}
64
+ * @memberof GetQuizQuestionsItemsInner
65
+ */
66
+ createdAt: Date;
67
+ }
68
+ /**
69
+ * Check if a given object implements the GetQuizQuestionsItemsInner interface.
70
+ */
71
+ export declare function instanceOfGetQuizQuestionsItemsInner(value: object): value is GetQuizQuestionsItemsInner;
72
+ export declare function GetQuizQuestionsItemsInnerFromJSON(json: any): GetQuizQuestionsItemsInner;
73
+ export declare function GetQuizQuestionsItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInner;
74
+ export declare function GetQuizQuestionsItemsInnerToJSON(json: any): GetQuizQuestionsItemsInner;
75
+ export declare function GetQuizQuestionsItemsInnerToJSONTyped(value?: GetQuizQuestionsItemsInner | null, ignoreDiscriminator?: boolean): any;
@@ -13,16 +13,16 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfGetQuizQuestionsQuestionsInner = instanceOfGetQuizQuestionsQuestionsInner;
17
- exports.GetQuizQuestionsQuestionsInnerFromJSON = GetQuizQuestionsQuestionsInnerFromJSON;
18
- exports.GetQuizQuestionsQuestionsInnerFromJSONTyped = GetQuizQuestionsQuestionsInnerFromJSONTyped;
19
- exports.GetQuizQuestionsQuestionsInnerToJSON = GetQuizQuestionsQuestionsInnerToJSON;
20
- exports.GetQuizQuestionsQuestionsInnerToJSONTyped = GetQuizQuestionsQuestionsInnerToJSONTyped;
21
- const GetQuizQuestionsQuestionsInnerQuestionDetails_1 = require("./GetQuizQuestionsQuestionsInnerQuestionDetails");
16
+ exports.instanceOfGetQuizQuestionsItemsInner = instanceOfGetQuizQuestionsItemsInner;
17
+ exports.GetQuizQuestionsItemsInnerFromJSON = GetQuizQuestionsItemsInnerFromJSON;
18
+ exports.GetQuizQuestionsItemsInnerFromJSONTyped = GetQuizQuestionsItemsInnerFromJSONTyped;
19
+ exports.GetQuizQuestionsItemsInnerToJSON = GetQuizQuestionsItemsInnerToJSON;
20
+ exports.GetQuizQuestionsItemsInnerToJSONTyped = GetQuizQuestionsItemsInnerToJSONTyped;
21
+ const GetQuizQuestionsItemsInnerQuestionDetails_1 = require("./GetQuizQuestionsItemsInnerQuestionDetails");
22
22
  /**
23
- * Check if a given object implements the GetQuizQuestionsQuestionsInner interface.
23
+ * Check if a given object implements the GetQuizQuestionsItemsInner interface.
24
24
  */
25
- function instanceOfGetQuizQuestionsQuestionsInner(value) {
25
+ function instanceOfGetQuizQuestionsItemsInner(value) {
26
26
  if (!('id' in value) || value['id'] === undefined)
27
27
  return false;
28
28
  if (!('questionId' in value) || value['questionId'] === undefined)
@@ -41,10 +41,10 @@ function instanceOfGetQuizQuestionsQuestionsInner(value) {
41
41
  return false;
42
42
  return true;
43
43
  }
44
- function GetQuizQuestionsQuestionsInnerFromJSON(json) {
45
- return GetQuizQuestionsQuestionsInnerFromJSONTyped(json, false);
44
+ function GetQuizQuestionsItemsInnerFromJSON(json) {
45
+ return GetQuizQuestionsItemsInnerFromJSONTyped(json, false);
46
46
  }
47
- function GetQuizQuestionsQuestionsInnerFromJSONTyped(json, ignoreDiscriminator) {
47
+ function GetQuizQuestionsItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
48
48
  if (json == null) {
49
49
  return json;
50
50
  }
@@ -55,14 +55,14 @@ function GetQuizQuestionsQuestionsInnerFromJSONTyped(json, ignoreDiscriminator)
55
55
  'questionOrder': json['question_order'],
56
56
  'points': json['points'],
57
57
  'versionLocked': json['version_locked'],
58
- 'questionDetails': (0, GetQuizQuestionsQuestionsInnerQuestionDetails_1.GetQuizQuestionsQuestionsInnerQuestionDetailsFromJSON)(json['question_details']),
58
+ 'questionDetails': (0, GetQuizQuestionsItemsInnerQuestionDetails_1.GetQuizQuestionsItemsInnerQuestionDetailsFromJSON)(json['question_details']),
59
59
  'createdAt': (new Date(json['created_at'])),
60
60
  };
61
61
  }
62
- function GetQuizQuestionsQuestionsInnerToJSON(json) {
63
- return GetQuizQuestionsQuestionsInnerToJSONTyped(json, false);
62
+ function GetQuizQuestionsItemsInnerToJSON(json) {
63
+ return GetQuizQuestionsItemsInnerToJSONTyped(json, false);
64
64
  }
65
- function GetQuizQuestionsQuestionsInnerToJSONTyped(value, ignoreDiscriminator = false) {
65
+ function GetQuizQuestionsItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
66
66
  if (value == null) {
67
67
  return value;
68
68
  }
@@ -73,7 +73,7 @@ function GetQuizQuestionsQuestionsInnerToJSONTyped(value, ignoreDiscriminator =
73
73
  'question_order': value['questionOrder'],
74
74
  'points': value['points'],
75
75
  'version_locked': value['versionLocked'],
76
- 'question_details': (0, GetQuizQuestionsQuestionsInnerQuestionDetails_1.GetQuizQuestionsQuestionsInnerQuestionDetailsToJSON)(value['questionDetails']),
76
+ 'question_details': (0, GetQuizQuestionsItemsInnerQuestionDetails_1.GetQuizQuestionsItemsInnerQuestionDetailsToJSON)(value['questionDetails']),
77
77
  'created_at': ((value['createdAt']).toISOString()),
78
78
  };
79
79
  }
@@ -0,0 +1,105 @@
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 { GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner } from './GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner';
13
+ /**
14
+ * Question details including all metadata
15
+ * @export
16
+ * @interface GetQuizQuestionsItemsInnerQuestionDetails
17
+ */
18
+ export interface GetQuizQuestionsItemsInnerQuestionDetails {
19
+ /**
20
+ * The question text
21
+ * @type {string}
22
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetails
23
+ */
24
+ questionText: string;
25
+ /**
26
+ * Type of question
27
+ * @type {string}
28
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetails
29
+ */
30
+ questionType: GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum;
31
+ /**
32
+ * Question topic
33
+ * @type {string}
34
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetails
35
+ */
36
+ topic: string;
37
+ /**
38
+ * Question difficulty
39
+ * @type {string}
40
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetails
41
+ */
42
+ difficultyLevel: GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum;
43
+ /**
44
+ * Course associated with question
45
+ * @type {string}
46
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetails
47
+ */
48
+ course?: string;
49
+ /**
50
+ * Explanation of correct answer
51
+ * @type {string}
52
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetails
53
+ */
54
+ explanation?: string;
55
+ /**
56
+ * Tags associated with question
57
+ * @type {Array<string>}
58
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetails
59
+ */
60
+ tags?: Array<string>;
61
+ /**
62
+ * Version number of this question
63
+ * @type {number}
64
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetails
65
+ */
66
+ versionNumber?: number;
67
+ /**
68
+ * Whether this is the latest version
69
+ * @type {boolean}
70
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetails
71
+ */
72
+ isLatestVersion?: boolean;
73
+ /**
74
+ * Available answer choices
75
+ * @type {Array<GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner>}
76
+ * @memberof GetQuizQuestionsItemsInnerQuestionDetails
77
+ */
78
+ answerChoices?: Array<GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner>;
79
+ }
80
+ /**
81
+ * @export
82
+ */
83
+ export declare const GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum: {
84
+ readonly SingleAnswer: "single_answer";
85
+ readonly MultipleAnswer: "multiple_answer";
86
+ readonly FillInBlank: "fill_in_blank";
87
+ };
88
+ export type GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum];
89
+ /**
90
+ * @export
91
+ */
92
+ export declare const GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum: {
93
+ readonly Beginner: "beginner";
94
+ readonly Intermediate: "intermediate";
95
+ readonly Advanced: "advanced";
96
+ };
97
+ export type GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum = typeof GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum[keyof typeof GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum];
98
+ /**
99
+ * Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetails interface.
100
+ */
101
+ export declare function instanceOfGetQuizQuestionsItemsInnerQuestionDetails(value: object): value is GetQuizQuestionsItemsInnerQuestionDetails;
102
+ export declare function GetQuizQuestionsItemsInnerQuestionDetailsFromJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetails;
103
+ export declare function GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuizQuestionsItemsInnerQuestionDetails;
104
+ export declare function GetQuizQuestionsItemsInnerQuestionDetailsToJSON(json: any): GetQuizQuestionsItemsInnerQuestionDetails;
105
+ export declare function GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(value?: GetQuizQuestionsItemsInnerQuestionDetails | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,92 @@
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.GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum = exports.GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = void 0;
17
+ exports.instanceOfGetQuizQuestionsItemsInnerQuestionDetails = instanceOfGetQuizQuestionsItemsInnerQuestionDetails;
18
+ exports.GetQuizQuestionsItemsInnerQuestionDetailsFromJSON = GetQuizQuestionsItemsInnerQuestionDetailsFromJSON;
19
+ exports.GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped = GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped;
20
+ exports.GetQuizQuestionsItemsInnerQuestionDetailsToJSON = GetQuizQuestionsItemsInnerQuestionDetailsToJSON;
21
+ exports.GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped = GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped;
22
+ const GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner_1 = require("./GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = {
27
+ SingleAnswer: 'single_answer',
28
+ MultipleAnswer: 'multiple_answer',
29
+ FillInBlank: 'fill_in_blank'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.GetQuizQuestionsItemsInnerQuestionDetailsDifficultyLevelEnum = {
35
+ Beginner: 'beginner',
36
+ Intermediate: 'intermediate',
37
+ Advanced: 'advanced'
38
+ };
39
+ /**
40
+ * Check if a given object implements the GetQuizQuestionsItemsInnerQuestionDetails interface.
41
+ */
42
+ function instanceOfGetQuizQuestionsItemsInnerQuestionDetails(value) {
43
+ if (!('questionText' in value) || value['questionText'] === undefined)
44
+ return false;
45
+ if (!('questionType' in value) || value['questionType'] === undefined)
46
+ return false;
47
+ if (!('topic' in value) || value['topic'] === undefined)
48
+ return false;
49
+ if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function GetQuizQuestionsItemsInnerQuestionDetailsFromJSON(json) {
54
+ return GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json, false);
55
+ }
56
+ function GetQuizQuestionsItemsInnerQuestionDetailsFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'questionText': json['question_text'],
62
+ 'questionType': json['question_type'],
63
+ 'topic': json['topic'],
64
+ 'difficultyLevel': json['difficulty_level'],
65
+ 'course': json['course'] == null ? undefined : json['course'],
66
+ 'explanation': json['explanation'] == null ? undefined : json['explanation'],
67
+ 'tags': json['tags'] == null ? undefined : json['tags'],
68
+ 'versionNumber': json['version_number'] == null ? undefined : json['version_number'],
69
+ 'isLatestVersion': json['is_latest_version'] == null ? undefined : json['is_latest_version'],
70
+ 'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner_1.GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON)),
71
+ };
72
+ }
73
+ function GetQuizQuestionsItemsInnerQuestionDetailsToJSON(json) {
74
+ return GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(json, false);
75
+ }
76
+ function GetQuizQuestionsItemsInnerQuestionDetailsToJSONTyped(value, ignoreDiscriminator = false) {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+ 'question_text': value['questionText'],
82
+ 'question_type': value['questionType'],
83
+ 'topic': value['topic'],
84
+ 'difficulty_level': value['difficultyLevel'],
85
+ 'course': value['course'],
86
+ 'explanation': value['explanation'],
87
+ 'tags': value['tags'],
88
+ 'version_number': value['versionNumber'],
89
+ 'is_latest_version': value['isLatestVersion'],
90
+ 'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInner_1.GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerToJSON)),
91
+ };
92
+ }