@easyedu/js-lsm-api 1.79.0 → 1.81.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 (133) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +18 -2
  3. package/dist/apis/RichTextApi.d.ts +67 -0
  4. package/dist/apis/RichTextApi.js +158 -0
  5. package/dist/apis/UserApi.d.ts +42 -0
  6. package/dist/apis/UserApi.js +79 -1
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/RichTextApi.d.ts +67 -0
  10. package/dist/esm/apis/RichTextApi.js +154 -0
  11. package/dist/esm/apis/UserApi.d.ts +42 -0
  12. package/dist/esm/apis/UserApi.js +78 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/GetQuestion.d.ts +7 -6
  16. package/dist/esm/models/GetQuestion.js +5 -4
  17. package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
  18. package/dist/esm/models/GetQuestionAnswerChoicesInner.js +3 -2
  19. package/dist/esm/models/GetRichTextAssetUpload.d.ts +50 -0
  20. package/dist/esm/models/GetRichTextAssetUpload.js +55 -0
  21. package/dist/esm/models/GetUserCourseList.d.ts +57 -0
  22. package/dist/esm/models/GetUserCourseList.js +60 -0
  23. package/dist/esm/models/GetUserCourseListItem.d.ts +54 -0
  24. package/dist/esm/models/GetUserCourseListItem.js +59 -0
  25. package/dist/esm/models/GetUserCourseListItemCertificate.d.ts +74 -0
  26. package/dist/esm/models/GetUserCourseListItemCertificate.js +75 -0
  27. package/dist/esm/models/GetUserCourseListItemCourse.d.ts +89 -0
  28. package/dist/esm/models/GetUserCourseListItemCourse.js +82 -0
  29. package/dist/esm/models/GetUserCourseListItemEnrollment.d.ts +111 -0
  30. package/dist/esm/models/GetUserCourseListItemEnrollment.js +105 -0
  31. package/dist/esm/models/GetUserCourseListItemProgress.d.ts +44 -0
  32. package/dist/esm/models/GetUserCourseListItemProgress.js +51 -0
  33. package/dist/esm/models/PostQuestion.d.ts +7 -6
  34. package/dist/esm/models/PostQuestion.js +5 -4
  35. package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
  36. package/dist/esm/models/PostQuestionAnswerChoicesInner.js +3 -2
  37. package/dist/esm/models/PostRichTextAssetComplete.d.ts +44 -0
  38. package/dist/esm/models/PostRichTextAssetComplete.js +47 -0
  39. package/dist/esm/models/PostRichTextAssetUpload.d.ts +69 -0
  40. package/dist/esm/models/PostRichTextAssetUpload.js +65 -0
  41. package/dist/esm/models/PutQuestion.d.ts +7 -6
  42. package/dist/esm/models/PutQuestion.js +5 -4
  43. package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
  44. package/dist/esm/models/PutQuestionAnswerChoicesInner.js +3 -2
  45. package/dist/esm/models/RichTextAsset.d.ts +62 -0
  46. package/dist/esm/models/RichTextAsset.js +59 -0
  47. package/dist/esm/models/RichTextDocument.d.ts +60 -0
  48. package/dist/esm/models/RichTextDocument.js +62 -0
  49. package/dist/esm/models/RichTextInput.d.ts +47 -0
  50. package/dist/esm/models/RichTextInput.js +53 -0
  51. package/dist/esm/models/index.d.ts +12 -0
  52. package/dist/esm/models/index.js +12 -0
  53. package/dist/models/GetQuestion.d.ts +7 -6
  54. package/dist/models/GetQuestion.js +5 -4
  55. package/dist/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
  56. package/dist/models/GetQuestionAnswerChoicesInner.js +3 -2
  57. package/dist/models/GetRichTextAssetUpload.d.ts +50 -0
  58. package/dist/models/GetRichTextAssetUpload.js +62 -0
  59. package/dist/models/GetUserCourseList.d.ts +57 -0
  60. package/dist/models/GetUserCourseList.js +67 -0
  61. package/dist/models/GetUserCourseListItem.d.ts +54 -0
  62. package/dist/models/GetUserCourseListItem.js +66 -0
  63. package/dist/models/GetUserCourseListItemCertificate.d.ts +74 -0
  64. package/dist/models/GetUserCourseListItemCertificate.js +83 -0
  65. package/dist/models/GetUserCourseListItemCourse.d.ts +89 -0
  66. package/dist/models/GetUserCourseListItemCourse.js +90 -0
  67. package/dist/models/GetUserCourseListItemEnrollment.d.ts +111 -0
  68. package/dist/models/GetUserCourseListItemEnrollment.js +113 -0
  69. package/dist/models/GetUserCourseListItemProgress.d.ts +44 -0
  70. package/dist/models/GetUserCourseListItemProgress.js +58 -0
  71. package/dist/models/PostQuestion.d.ts +7 -6
  72. package/dist/models/PostQuestion.js +5 -4
  73. package/dist/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
  74. package/dist/models/PostQuestionAnswerChoicesInner.js +3 -2
  75. package/dist/models/PostRichTextAssetComplete.d.ts +44 -0
  76. package/dist/models/PostRichTextAssetComplete.js +54 -0
  77. package/dist/models/PostRichTextAssetUpload.d.ts +69 -0
  78. package/dist/models/PostRichTextAssetUpload.js +73 -0
  79. package/dist/models/PutQuestion.d.ts +7 -6
  80. package/dist/models/PutQuestion.js +5 -4
  81. package/dist/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
  82. package/dist/models/PutQuestionAnswerChoicesInner.js +3 -2
  83. package/dist/models/RichTextAsset.d.ts +62 -0
  84. package/dist/models/RichTextAsset.js +66 -0
  85. package/dist/models/RichTextDocument.d.ts +60 -0
  86. package/dist/models/RichTextDocument.js +70 -0
  87. package/dist/models/RichTextInput.d.ts +47 -0
  88. package/dist/models/RichTextInput.js +61 -0
  89. package/dist/models/index.d.ts +12 -0
  90. package/dist/models/index.js +12 -0
  91. package/docs/GetQuestion.md +2 -2
  92. package/docs/GetQuestionAnswerChoicesInner.md +1 -1
  93. package/docs/GetRichTextAssetUpload.md +40 -0
  94. package/docs/GetUserCourseList.md +43 -0
  95. package/docs/GetUserCourseListItem.md +41 -0
  96. package/docs/GetUserCourseListItemCertificate.md +43 -0
  97. package/docs/GetUserCourseListItemCourse.md +51 -0
  98. package/docs/GetUserCourseListItemEnrollment.md +49 -0
  99. package/docs/GetUserCourseListItemProgress.md +39 -0
  100. package/docs/PostQuestion.md +2 -2
  101. package/docs/PostQuestionAnswerChoicesInner.md +1 -1
  102. package/docs/PostRichTextAssetComplete.md +38 -0
  103. package/docs/PostRichTextAssetUpload.md +44 -0
  104. package/docs/PutQuestion.md +2 -2
  105. package/docs/PutQuestionAnswerChoicesInner.md +1 -1
  106. package/docs/RichTextApi.md +212 -0
  107. package/docs/RichTextAsset.md +44 -0
  108. package/docs/RichTextDocument.md +40 -0
  109. package/docs/RichTextInput.md +36 -0
  110. package/docs/UserApi.md +90 -0
  111. package/package.json +1 -1
  112. package/src/apis/RichTextApi.ts +201 -0
  113. package/src/apis/UserApi.ts +108 -0
  114. package/src/apis/index.ts +1 -0
  115. package/src/models/GetQuestion.ts +17 -10
  116. package/src/models/GetQuestionAnswerChoicesInner.ts +12 -4
  117. package/src/models/GetRichTextAssetUpload.ts +93 -0
  118. package/src/models/GetUserCourseList.ts +110 -0
  119. package/src/models/GetUserCourseListItem.ts +122 -0
  120. package/src/models/GetUserCourseListItemCertificate.ts +124 -0
  121. package/src/models/GetUserCourseListItemCourse.ts +149 -0
  122. package/src/models/GetUserCourseListItemEnrollment.ts +171 -0
  123. package/src/models/GetUserCourseListItemProgress.ts +84 -0
  124. package/src/models/PostQuestion.ts +17 -10
  125. package/src/models/PostQuestionAnswerChoicesInner.ts +12 -4
  126. package/src/models/PostRichTextAssetComplete.ts +82 -0
  127. package/src/models/PostRichTextAssetUpload.ts +119 -0
  128. package/src/models/PutQuestion.ts +17 -10
  129. package/src/models/PutQuestionAnswerChoicesInner.ts +12 -4
  130. package/src/models/RichTextAsset.ts +109 -0
  131. package/src/models/RichTextDocument.ts +111 -0
  132. package/src/models/RichTextInput.ts +85 -0
  133. package/src/models/index.ts +12 -0
@@ -0,0 +1,111 @@
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
+ * Selected enrollment fields for an enrolled user's course list item.
14
+ * @export
15
+ * @interface GetUserCourseListItemEnrollment
16
+ */
17
+ export interface GetUserCourseListItemEnrollment {
18
+ /**
19
+ * The external ID of the selected enrollment.
20
+ * @type {string}
21
+ * @memberof GetUserCourseListItemEnrollment
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {GetUserCourseListItemEnrollmentStatusEnum}
27
+ * @memberof GetUserCourseListItemEnrollment
28
+ */
29
+ status: GetUserCourseListItemEnrollmentStatusEnum;
30
+ /**
31
+ *
32
+ * @type {GetUserCourseListItemEnrollmentAccessStateEnum}
33
+ * @memberof GetUserCourseListItemEnrollment
34
+ */
35
+ accessState: GetUserCourseListItemEnrollmentAccessStateEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GetUserCourseListItemEnrollment
40
+ */
41
+ daysUntilExpiry: number | null;
42
+ /**
43
+ *
44
+ * @type {GetUserCourseListItemEnrollmentUserTypeEnum}
45
+ * @memberof GetUserCourseListItemEnrollment
46
+ */
47
+ userType: GetUserCourseListItemEnrollmentUserTypeEnum;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof GetUserCourseListItemEnrollment
52
+ */
53
+ enrollmentDateStart: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof GetUserCourseListItemEnrollment
58
+ */
59
+ enrollmentDateEnd: number | null;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof GetUserCourseListItemEnrollment
64
+ */
65
+ completionDate: number | null;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const GetUserCourseListItemEnrollmentStatusEnum: {
71
+ readonly Enrolled: "Enrolled";
72
+ readonly InProgress: "InProgress";
73
+ readonly Completed: "Completed";
74
+ readonly Failed: "Failed";
75
+ readonly Expired: "Expired";
76
+ readonly Withdrawn: "Withdrawn";
77
+ readonly Removed: "Removed";
78
+ readonly Archived: "Archived";
79
+ readonly Suspended: "Suspended";
80
+ };
81
+ export type GetUserCourseListItemEnrollmentStatusEnum = typeof GetUserCourseListItemEnrollmentStatusEnum[keyof typeof GetUserCourseListItemEnrollmentStatusEnum];
82
+ /**
83
+ * @export
84
+ */
85
+ export declare const GetUserCourseListItemEnrollmentAccessStateEnum: {
86
+ readonly Active: "active";
87
+ readonly CompletedReview: "completed_review";
88
+ readonly Expired: "expired";
89
+ readonly Suspended: "suspended";
90
+ readonly Failed: "failed";
91
+ readonly Withdrawn: "withdrawn";
92
+ readonly Removed: "removed";
93
+ readonly Archived: "archived";
94
+ };
95
+ export type GetUserCourseListItemEnrollmentAccessStateEnum = typeof GetUserCourseListItemEnrollmentAccessStateEnum[keyof typeof GetUserCourseListItemEnrollmentAccessStateEnum];
96
+ /**
97
+ * @export
98
+ */
99
+ export declare const GetUserCourseListItemEnrollmentUserTypeEnum: {
100
+ readonly Student: "Student";
101
+ readonly Instructor: "Instructor";
102
+ };
103
+ export type GetUserCourseListItemEnrollmentUserTypeEnum = typeof GetUserCourseListItemEnrollmentUserTypeEnum[keyof typeof GetUserCourseListItemEnrollmentUserTypeEnum];
104
+ /**
105
+ * Check if a given object implements the GetUserCourseListItemEnrollment interface.
106
+ */
107
+ export declare function instanceOfGetUserCourseListItemEnrollment(value: object): value is GetUserCourseListItemEnrollment;
108
+ export declare function GetUserCourseListItemEnrollmentFromJSON(json: any): GetUserCourseListItemEnrollment;
109
+ export declare function GetUserCourseListItemEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserCourseListItemEnrollment;
110
+ export declare function GetUserCourseListItemEnrollmentToJSON(json: any): GetUserCourseListItemEnrollment;
111
+ export declare function GetUserCourseListItemEnrollmentToJSONTyped(value?: GetUserCourseListItemEnrollment | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,113 @@
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.GetUserCourseListItemEnrollmentUserTypeEnum = exports.GetUserCourseListItemEnrollmentAccessStateEnum = exports.GetUserCourseListItemEnrollmentStatusEnum = void 0;
17
+ exports.instanceOfGetUserCourseListItemEnrollment = instanceOfGetUserCourseListItemEnrollment;
18
+ exports.GetUserCourseListItemEnrollmentFromJSON = GetUserCourseListItemEnrollmentFromJSON;
19
+ exports.GetUserCourseListItemEnrollmentFromJSONTyped = GetUserCourseListItemEnrollmentFromJSONTyped;
20
+ exports.GetUserCourseListItemEnrollmentToJSON = GetUserCourseListItemEnrollmentToJSON;
21
+ exports.GetUserCourseListItemEnrollmentToJSONTyped = GetUserCourseListItemEnrollmentToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.GetUserCourseListItemEnrollmentStatusEnum = {
26
+ Enrolled: 'Enrolled',
27
+ InProgress: 'InProgress',
28
+ Completed: 'Completed',
29
+ Failed: 'Failed',
30
+ Expired: 'Expired',
31
+ Withdrawn: 'Withdrawn',
32
+ Removed: 'Removed',
33
+ Archived: 'Archived',
34
+ Suspended: 'Suspended'
35
+ };
36
+ /**
37
+ * @export
38
+ */
39
+ exports.GetUserCourseListItemEnrollmentAccessStateEnum = {
40
+ Active: 'active',
41
+ CompletedReview: 'completed_review',
42
+ Expired: 'expired',
43
+ Suspended: 'suspended',
44
+ Failed: 'failed',
45
+ Withdrawn: 'withdrawn',
46
+ Removed: 'removed',
47
+ Archived: 'archived'
48
+ };
49
+ /**
50
+ * @export
51
+ */
52
+ exports.GetUserCourseListItemEnrollmentUserTypeEnum = {
53
+ Student: 'Student',
54
+ Instructor: 'Instructor'
55
+ };
56
+ /**
57
+ * Check if a given object implements the GetUserCourseListItemEnrollment interface.
58
+ */
59
+ function instanceOfGetUserCourseListItemEnrollment(value) {
60
+ if (!('id' in value) || value['id'] === undefined)
61
+ return false;
62
+ if (!('status' in value) || value['status'] === undefined)
63
+ return false;
64
+ if (!('accessState' in value) || value['accessState'] === undefined)
65
+ return false;
66
+ if (!('daysUntilExpiry' in value) || value['daysUntilExpiry'] === undefined)
67
+ return false;
68
+ if (!('userType' in value) || value['userType'] === undefined)
69
+ return false;
70
+ if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
71
+ return false;
72
+ if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined)
73
+ return false;
74
+ if (!('completionDate' in value) || value['completionDate'] === undefined)
75
+ return false;
76
+ return true;
77
+ }
78
+ function GetUserCourseListItemEnrollmentFromJSON(json) {
79
+ return GetUserCourseListItemEnrollmentFromJSONTyped(json, false);
80
+ }
81
+ function GetUserCourseListItemEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
82
+ if (json == null) {
83
+ return json;
84
+ }
85
+ return {
86
+ 'id': json['id'],
87
+ 'status': json['status'],
88
+ 'accessState': json['access_state'],
89
+ 'daysUntilExpiry': json['days_until_expiry'],
90
+ 'userType': json['user_type'],
91
+ 'enrollmentDateStart': json['enrollment_date_start'],
92
+ 'enrollmentDateEnd': json['enrollment_date_end'],
93
+ 'completionDate': json['completion_date'],
94
+ };
95
+ }
96
+ function GetUserCourseListItemEnrollmentToJSON(json) {
97
+ return GetUserCourseListItemEnrollmentToJSONTyped(json, false);
98
+ }
99
+ function GetUserCourseListItemEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
100
+ if (value == null) {
101
+ return value;
102
+ }
103
+ return {
104
+ 'id': value['id'],
105
+ 'status': value['status'],
106
+ 'access_state': value['accessState'],
107
+ 'days_until_expiry': value['daysUntilExpiry'],
108
+ 'user_type': value['userType'],
109
+ 'enrollment_date_start': value['enrollmentDateStart'],
110
+ 'enrollment_date_end': value['enrollmentDateEnd'],
111
+ 'completion_date': value['completionDate'],
112
+ };
113
+ }
@@ -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
+ * Learner progress for an enrolled user's course list item.
14
+ * @export
15
+ * @interface GetUserCourseListItemProgress
16
+ */
17
+ export interface GetUserCourseListItemProgress {
18
+ /**
19
+ * Completed visible content divided by total visible content. Null when total content count is zero.
20
+ * @type {number}
21
+ * @memberof GetUserCourseListItemProgress
22
+ */
23
+ completionPercentage: number | null;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof GetUserCourseListItemProgress
28
+ */
29
+ completedContentCount: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GetUserCourseListItemProgress
34
+ */
35
+ totalContentCount: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the GetUserCourseListItemProgress interface.
39
+ */
40
+ export declare function instanceOfGetUserCourseListItemProgress(value: object): value is GetUserCourseListItemProgress;
41
+ export declare function GetUserCourseListItemProgressFromJSON(json: any): GetUserCourseListItemProgress;
42
+ export declare function GetUserCourseListItemProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserCourseListItemProgress;
43
+ export declare function GetUserCourseListItemProgressToJSON(json: any): GetUserCourseListItemProgress;
44
+ export declare function GetUserCourseListItemProgressToJSONTyped(value?: GetUserCourseListItemProgress | 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.instanceOfGetUserCourseListItemProgress = instanceOfGetUserCourseListItemProgress;
17
+ exports.GetUserCourseListItemProgressFromJSON = GetUserCourseListItemProgressFromJSON;
18
+ exports.GetUserCourseListItemProgressFromJSONTyped = GetUserCourseListItemProgressFromJSONTyped;
19
+ exports.GetUserCourseListItemProgressToJSON = GetUserCourseListItemProgressToJSON;
20
+ exports.GetUserCourseListItemProgressToJSONTyped = GetUserCourseListItemProgressToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetUserCourseListItemProgress interface.
23
+ */
24
+ function instanceOfGetUserCourseListItemProgress(value) {
25
+ if (!('completionPercentage' in value) || value['completionPercentage'] === undefined)
26
+ return false;
27
+ if (!('completedContentCount' in value) || value['completedContentCount'] === undefined)
28
+ return false;
29
+ if (!('totalContentCount' in value) || value['totalContentCount'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function GetUserCourseListItemProgressFromJSON(json) {
34
+ return GetUserCourseListItemProgressFromJSONTyped(json, false);
35
+ }
36
+ function GetUserCourseListItemProgressFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'completionPercentage': json['completion_percentage'],
42
+ 'completedContentCount': json['completed_content_count'],
43
+ 'totalContentCount': json['total_content_count'],
44
+ };
45
+ }
46
+ function GetUserCourseListItemProgressToJSON(json) {
47
+ return GetUserCourseListItemProgressToJSONTyped(json, false);
48
+ }
49
+ function GetUserCourseListItemProgressToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'completion_percentage': value['completionPercentage'],
55
+ 'completed_content_count': value['completedContentCount'],
56
+ 'total_content_count': value['totalContentCount'],
57
+ };
58
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PostQuestionAnswerChoicesInner } from './PostQuestionAnswerChoicesInner';
13
+ import type { RichTextInput } from './RichTextInput';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -17,11 +18,11 @@ import type { PostQuestionAnswerChoicesInner } from './PostQuestionAnswerChoices
17
18
  */
18
19
  export interface PostQuestion {
19
20
  /**
20
- * The main question text or prompt
21
- * @type {string}
21
+ *
22
+ * @type {RichTextInput}
22
23
  * @memberof PostQuestion
23
24
  */
24
- questionText: string;
25
+ questionText: RichTextInput;
25
26
  /**
26
27
  * Type of question
27
28
  * @type {PostQuestionQuestionTypeEnum}
@@ -41,11 +42,11 @@ export interface PostQuestion {
41
42
  */
42
43
  correctAnswer?: string;
43
44
  /**
44
- * Explanation of the correct answer
45
- * @type {string}
45
+ *
46
+ * @type {RichTextInput}
46
47
  * @memberof PostQuestion
47
48
  */
48
- explanation?: string;
49
+ explanation?: RichTextInput;
49
50
  /**
50
51
  * Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
51
52
  * @type {string}
@@ -20,6 +20,7 @@ exports.PostQuestionFromJSONTyped = PostQuestionFromJSONTyped;
20
20
  exports.PostQuestionToJSON = PostQuestionToJSON;
21
21
  exports.PostQuestionToJSONTyped = PostQuestionToJSONTyped;
22
22
  const PostQuestionAnswerChoicesInner_1 = require("./PostQuestionAnswerChoicesInner");
23
+ const RichTextInput_1 = require("./RichTextInput");
23
24
  /**
24
25
  * @export
25
26
  */
@@ -61,11 +62,11 @@ function PostQuestionFromJSONTyped(json, ignoreDiscriminator) {
61
62
  return json;
62
63
  }
63
64
  return {
64
- 'questionText': json['question_text'],
65
+ 'questionText': (0, RichTextInput_1.RichTextInputFromJSON)(json['question_text']),
65
66
  'questionType': json['question_type'],
66
67
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PostQuestionAnswerChoicesInner_1.PostQuestionAnswerChoicesInnerFromJSON)),
67
68
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
68
- 'explanation': json['explanation'] == null ? undefined : json['explanation'],
69
+ 'explanation': json['explanation'] == null ? undefined : (0, RichTextInput_1.RichTextInputFromJSON)(json['explanation']),
69
70
  'topic': json['topic'],
70
71
  'difficultyLevel': json['difficulty_level'],
71
72
  'tags': json['tags'] == null ? undefined : json['tags'],
@@ -80,11 +81,11 @@ function PostQuestionToJSONTyped(value, ignoreDiscriminator = false) {
80
81
  return value;
81
82
  }
82
83
  return {
83
- 'question_text': value['questionText'],
84
+ 'question_text': (0, RichTextInput_1.RichTextInputToJSON)(value['questionText']),
84
85
  'question_type': value['questionType'],
85
86
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PostQuestionAnswerChoicesInner_1.PostQuestionAnswerChoicesInnerToJSON)),
86
87
  'correct_answer': value['correctAnswer'],
87
- 'explanation': value['explanation'],
88
+ 'explanation': (0, RichTextInput_1.RichTextInputToJSON)(value['explanation']),
88
89
  'topic': value['topic'],
89
90
  'difficulty_level': value['difficultyLevel'],
90
91
  'tags': value['tags'],
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { RichTextInput } from './RichTextInput';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface PostQuestionAnswerChoicesInner {
18
19
  /**
19
20
  *
20
- * @type {string}
21
+ * @type {RichTextInput}
21
22
  * @memberof PostQuestionAnswerChoicesInner
22
23
  */
23
- text: string;
24
+ text: RichTextInput;
24
25
  /**
25
26
  *
26
27
  * @type {boolean}
@@ -18,6 +18,7 @@ exports.PostQuestionAnswerChoicesInnerFromJSON = PostQuestionAnswerChoicesInnerF
18
18
  exports.PostQuestionAnswerChoicesInnerFromJSONTyped = PostQuestionAnswerChoicesInnerFromJSONTyped;
19
19
  exports.PostQuestionAnswerChoicesInnerToJSON = PostQuestionAnswerChoicesInnerToJSON;
20
20
  exports.PostQuestionAnswerChoicesInnerToJSONTyped = PostQuestionAnswerChoicesInnerToJSONTyped;
21
+ const RichTextInput_1 = require("./RichTextInput");
21
22
  /**
22
23
  * Check if a given object implements the PostQuestionAnswerChoicesInner interface.
23
24
  */
@@ -36,7 +37,7 @@ function PostQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator)
36
37
  return json;
37
38
  }
38
39
  return {
39
- 'text': json['text'],
40
+ 'text': (0, RichTextInput_1.RichTextInputFromJSON)(json['text']),
40
41
  'isCorrect': json['is_correct'],
41
42
  };
42
43
  }
@@ -48,7 +49,7 @@ function PostQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator =
48
49
  return value;
49
50
  }
50
51
  return {
51
- 'text': value['text'],
52
+ 'text': (0, RichTextInput_1.RichTextInputToJSON)(value['text']),
52
53
  'is_correct': value['isCorrect'],
53
54
  };
54
55
  }
@@ -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 PostRichTextAssetComplete
16
+ */
17
+ export interface PostRichTextAssetComplete {
18
+ /**
19
+ * Uploaded size confirmed by the client
20
+ * @type {number}
21
+ * @memberof PostRichTextAssetComplete
22
+ */
23
+ byteSize: number;
24
+ /**
25
+ * Image width in pixels
26
+ * @type {number}
27
+ * @memberof PostRichTextAssetComplete
28
+ */
29
+ width?: number;
30
+ /**
31
+ * Image height in pixels
32
+ * @type {number}
33
+ * @memberof PostRichTextAssetComplete
34
+ */
35
+ height?: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PostRichTextAssetComplete interface.
39
+ */
40
+ export declare function instanceOfPostRichTextAssetComplete(value: object): value is PostRichTextAssetComplete;
41
+ export declare function PostRichTextAssetCompleteFromJSON(json: any): PostRichTextAssetComplete;
42
+ export declare function PostRichTextAssetCompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostRichTextAssetComplete;
43
+ export declare function PostRichTextAssetCompleteToJSON(json: any): PostRichTextAssetComplete;
44
+ export declare function PostRichTextAssetCompleteToJSONTyped(value?: PostRichTextAssetComplete | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfPostRichTextAssetComplete = instanceOfPostRichTextAssetComplete;
17
+ exports.PostRichTextAssetCompleteFromJSON = PostRichTextAssetCompleteFromJSON;
18
+ exports.PostRichTextAssetCompleteFromJSONTyped = PostRichTextAssetCompleteFromJSONTyped;
19
+ exports.PostRichTextAssetCompleteToJSON = PostRichTextAssetCompleteToJSON;
20
+ exports.PostRichTextAssetCompleteToJSONTyped = PostRichTextAssetCompleteToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostRichTextAssetComplete interface.
23
+ */
24
+ function instanceOfPostRichTextAssetComplete(value) {
25
+ if (!('byteSize' in value) || value['byteSize'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PostRichTextAssetCompleteFromJSON(json) {
30
+ return PostRichTextAssetCompleteFromJSONTyped(json, false);
31
+ }
32
+ function PostRichTextAssetCompleteFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'byteSize': json['byte_size'],
38
+ 'width': json['width'] == null ? undefined : json['width'],
39
+ 'height': json['height'] == null ? undefined : json['height'],
40
+ };
41
+ }
42
+ function PostRichTextAssetCompleteToJSON(json) {
43
+ return PostRichTextAssetCompleteToJSONTyped(json, false);
44
+ }
45
+ function PostRichTextAssetCompleteToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'byte_size': value['byteSize'],
51
+ 'width': value['width'],
52
+ 'height': value['height'],
53
+ };
54
+ }
@@ -0,0 +1,69 @@
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 PostRichTextAssetUpload
16
+ */
17
+ export interface PostRichTextAssetUpload {
18
+ /**
19
+ * Original file name
20
+ * @type {string}
21
+ * @memberof PostRichTextAssetUpload
22
+ */
23
+ filename: string;
24
+ /**
25
+ * Expected MIME type
26
+ * @type {string}
27
+ * @memberof PostRichTextAssetUpload
28
+ */
29
+ mimeType: string;
30
+ /**
31
+ * Expected upload size in bytes
32
+ * @type {number}
33
+ * @memberof PostRichTextAssetUpload
34
+ */
35
+ byteSize: number;
36
+ /**
37
+ * Image width in pixels
38
+ * @type {number}
39
+ * @memberof PostRichTextAssetUpload
40
+ */
41
+ width?: number;
42
+ /**
43
+ * Image height in pixels
44
+ * @type {number}
45
+ * @memberof PostRichTextAssetUpload
46
+ */
47
+ height?: number;
48
+ /**
49
+ * Asset access policy context
50
+ * @type {PostRichTextAssetUploadUsageContextEnum}
51
+ * @memberof PostRichTextAssetUpload
52
+ */
53
+ usageContext: PostRichTextAssetUploadUsageContextEnum;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const PostRichTextAssetUploadUsageContextEnum: {
59
+ readonly LearningContent: "learning_content";
60
+ };
61
+ export type PostRichTextAssetUploadUsageContextEnum = typeof PostRichTextAssetUploadUsageContextEnum[keyof typeof PostRichTextAssetUploadUsageContextEnum];
62
+ /**
63
+ * Check if a given object implements the PostRichTextAssetUpload interface.
64
+ */
65
+ export declare function instanceOfPostRichTextAssetUpload(value: object): value is PostRichTextAssetUpload;
66
+ export declare function PostRichTextAssetUploadFromJSON(json: any): PostRichTextAssetUpload;
67
+ export declare function PostRichTextAssetUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostRichTextAssetUpload;
68
+ export declare function PostRichTextAssetUploadToJSON(json: any): PostRichTextAssetUpload;
69
+ export declare function PostRichTextAssetUploadToJSONTyped(value?: PostRichTextAssetUpload | null, ignoreDiscriminator?: boolean): any;