@easyedu/js-lsm-api 1.81.0 → 1.83.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 (80) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +7 -2
  3. package/dist/apis/QuizApi.d.ts +3 -2
  4. package/dist/apis/QuizApi.js +4 -2
  5. package/dist/apis/RichTextApi.d.ts +16 -0
  6. package/dist/apis/RichTextApi.js +43 -0
  7. package/dist/esm/apis/QuizApi.d.ts +3 -2
  8. package/dist/esm/apis/QuizApi.js +4 -2
  9. package/dist/esm/apis/RichTextApi.d.ts +16 -0
  10. package/dist/esm/apis/RichTextApi.js +43 -0
  11. package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
  12. package/dist/esm/models/GetQuizAttemptQuestionsInner.js +3 -0
  13. package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  14. package/dist/esm/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  15. package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +13 -0
  16. package/dist/esm/models/GetQuizResultsQuestionsInner.js +5 -0
  17. package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  18. package/dist/esm/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
  19. package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
  20. package/dist/esm/models/PostQuizAttemptQuestionsInner.js +3 -0
  21. package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  22. package/dist/esm/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  23. package/dist/esm/models/PutQuizAnswerResponse.d.ts +77 -0
  24. package/dist/esm/models/PutQuizAnswerResponse.js +64 -0
  25. package/dist/esm/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
  26. package/dist/esm/models/PutQuizAnswerResponseNextQuestion.js +88 -0
  27. package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
  28. package/dist/esm/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +54 -0
  29. package/dist/esm/models/PutQuizAnswerResponseProgress.d.ts +50 -0
  30. package/dist/esm/models/PutQuizAnswerResponseProgress.js +55 -0
  31. package/dist/esm/models/index.d.ts +4 -0
  32. package/dist/esm/models/index.js +4 -0
  33. package/dist/models/GetQuizAttemptQuestionsInner.d.ts +7 -0
  34. package/dist/models/GetQuizAttemptQuestionsInner.js +3 -0
  35. package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  36. package/dist/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  37. package/dist/models/GetQuizResultsQuestionsInner.d.ts +13 -0
  38. package/dist/models/GetQuizResultsQuestionsInner.js +5 -0
  39. package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  40. package/dist/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.js +3 -0
  41. package/dist/models/PostQuizAttemptQuestionsInner.d.ts +7 -0
  42. package/dist/models/PostQuizAttemptQuestionsInner.js +3 -0
  43. package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.d.ts +7 -0
  44. package/dist/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.js +3 -0
  45. package/dist/models/PutQuizAnswerResponse.d.ts +77 -0
  46. package/dist/models/PutQuizAnswerResponse.js +71 -0
  47. package/dist/models/PutQuizAnswerResponseNextQuestion.d.ts +102 -0
  48. package/dist/models/PutQuizAnswerResponseNextQuestion.js +96 -0
  49. package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.d.ts +51 -0
  50. package/dist/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.js +61 -0
  51. package/dist/models/PutQuizAnswerResponseProgress.d.ts +50 -0
  52. package/dist/models/PutQuizAnswerResponseProgress.js +62 -0
  53. package/dist/models/index.d.ts +4 -0
  54. package/dist/models/index.js +4 -0
  55. package/docs/GetQuizAttemptQuestionsInner.md +2 -0
  56. package/docs/GetQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
  57. package/docs/GetQuizResultsQuestionsInner.md +4 -0
  58. package/docs/GetQuizResultsQuestionsInnerAnswerChoicesInner.md +2 -0
  59. package/docs/PostQuizAttemptQuestionsInner.md +2 -0
  60. package/docs/PostQuizAttemptQuestionsInnerAnswerChoicesInner.md +2 -0
  61. package/docs/PutQuizAnswerResponse.md +48 -0
  62. package/docs/PutQuizAnswerResponseNextQuestion.md +52 -0
  63. package/docs/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.md +40 -0
  64. package/docs/PutQuizAnswerResponseProgress.md +40 -0
  65. package/docs/QuizApi.md +3 -3
  66. package/docs/RichTextApi.md +73 -0
  67. package/package.json +1 -1
  68. package/src/apis/QuizApi.ts +10 -4
  69. package/src/apis/RichTextApi.ts +59 -0
  70. package/src/models/GetQuizAttemptQuestionsInner.ts +15 -0
  71. package/src/models/GetQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
  72. package/src/models/GetQuizResultsQuestionsInner.ts +23 -0
  73. package/src/models/GetQuizResultsQuestionsInnerAnswerChoicesInner.ts +16 -0
  74. package/src/models/PostQuizAttemptQuestionsInner.ts +15 -0
  75. package/src/models/PostQuizAttemptQuestionsInnerAnswerChoicesInner.ts +16 -0
  76. package/src/models/PutQuizAnswerResponse.ts +146 -0
  77. package/src/models/PutQuizAnswerResponseNextQuestion.ts +175 -0
  78. package/src/models/PutQuizAnswerResponseNextQuestionAnswerChoicesInner.ts +100 -0
  79. package/src/models/PutQuizAnswerResponseProgress.ts +93 -0
  80. package/src/models/index.ts +4 -0
@@ -0,0 +1,100 @@
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 { RichTextDocument } from './RichTextDocument';
17
+ import {
18
+ RichTextDocumentFromJSON,
19
+ RichTextDocumentFromJSONTyped,
20
+ RichTextDocumentToJSON,
21
+ RichTextDocumentToJSONTyped,
22
+ } from './RichTextDocument';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PutQuizAnswerResponseNextQuestionAnswerChoicesInner
28
+ */
29
+ export interface PutQuizAnswerResponseNextQuestionAnswerChoicesInner {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
34
+ */
35
+ id: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
40
+ */
41
+ text: string;
42
+ /**
43
+ *
44
+ * @type {RichTextDocument}
45
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
46
+ */
47
+ textRich?: RichTextDocument;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof PutQuizAnswerResponseNextQuestionAnswerChoicesInner
52
+ */
53
+ displayOrder: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PutQuizAnswerResponseNextQuestionAnswerChoicesInner interface.
58
+ */
59
+ export function instanceOfPutQuizAnswerResponseNextQuestionAnswerChoicesInner(value: object): value is PutQuizAnswerResponseNextQuestionAnswerChoicesInner {
60
+ if (!('id' in value) || value['id'] === undefined) return false;
61
+ if (!('text' in value) || value['text'] === undefined) return false;
62
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSON(json: any): PutQuizAnswerResponseNextQuestionAnswerChoicesInner {
67
+ return PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponseNextQuestionAnswerChoicesInner {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'id': json['id'],
77
+ 'text': json['text'],
78
+ 'textRich': json['text_rich'] == null ? undefined : RichTextDocumentFromJSON(json['text_rich']),
79
+ 'displayOrder': json['display_order'],
80
+ };
81
+ }
82
+
83
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSON(json: any): PutQuizAnswerResponseNextQuestionAnswerChoicesInner {
84
+ return PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSONTyped(json, false);
85
+ }
86
+
87
+ export function PutQuizAnswerResponseNextQuestionAnswerChoicesInnerToJSONTyped(value?: PutQuizAnswerResponseNextQuestionAnswerChoicesInner | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'id': value['id'],
95
+ 'text': value['text'],
96
+ 'text_rich': RichTextDocumentToJSON(value['textRich']),
97
+ 'display_order': value['displayOrder'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,93 @@
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 PutQuizAnswerResponseProgress
20
+ */
21
+ export interface PutQuizAnswerResponseProgress {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof PutQuizAnswerResponseProgress
26
+ */
27
+ totalQuestions: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof PutQuizAnswerResponseProgress
32
+ */
33
+ questionsAnswered: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof PutQuizAnswerResponseProgress
38
+ */
39
+ currentQuestionNumber: number;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof PutQuizAnswerResponseProgress
44
+ */
45
+ canSubmit: boolean;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the PutQuizAnswerResponseProgress interface.
50
+ */
51
+ export function instanceOfPutQuizAnswerResponseProgress(value: object): value is PutQuizAnswerResponseProgress {
52
+ if (!('totalQuestions' in value) || value['totalQuestions'] === undefined) return false;
53
+ if (!('questionsAnswered' in value) || value['questionsAnswered'] === undefined) return false;
54
+ if (!('currentQuestionNumber' in value) || value['currentQuestionNumber'] === undefined) return false;
55
+ if (!('canSubmit' in value) || value['canSubmit'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function PutQuizAnswerResponseProgressFromJSON(json: any): PutQuizAnswerResponseProgress {
60
+ return PutQuizAnswerResponseProgressFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function PutQuizAnswerResponseProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerResponseProgress {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'totalQuestions': json['total_questions'],
70
+ 'questionsAnswered': json['questions_answered'],
71
+ 'currentQuestionNumber': json['current_question_number'],
72
+ 'canSubmit': json['can_submit'],
73
+ };
74
+ }
75
+
76
+ export function PutQuizAnswerResponseProgressToJSON(json: any): PutQuizAnswerResponseProgress {
77
+ return PutQuizAnswerResponseProgressToJSONTyped(json, false);
78
+ }
79
+
80
+ export function PutQuizAnswerResponseProgressToJSONTyped(value?: PutQuizAnswerResponseProgress | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'total_questions': value['totalQuestions'],
88
+ 'questions_answered': value['questionsAnswered'],
89
+ 'current_question_number': value['currentQuestionNumber'],
90
+ 'can_submit': value['canSubmit'],
91
+ };
92
+ }
93
+
@@ -267,6 +267,10 @@ export * from './PutQuiz';
267
267
  export * from './PutQuizAnswer';
268
268
  export * from './PutQuizAnswerAnswer';
269
269
  export * from './PutQuizAnswerGrade';
270
+ export * from './PutQuizAnswerResponse';
271
+ export * from './PutQuizAnswerResponseNextQuestion';
272
+ export * from './PutQuizAnswerResponseNextQuestionAnswerChoicesInner';
273
+ export * from './PutQuizAnswerResponseProgress';
270
274
  export * from './PutQuizSettings';
271
275
  export * from './PutRole';
272
276
  export * from './PutRolePermissions';