@easyedu/js-lsm-api 1.80.0 → 1.82.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 (91) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +12 -2
  3. package/dist/apis/RichTextApi.d.ts +83 -0
  4. package/dist/apis/RichTextApi.js +201 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/RichTextApi.d.ts +83 -0
  8. package/dist/esm/apis/RichTextApi.js +197 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/GetQuestion.d.ts +7 -6
  12. package/dist/esm/models/GetQuestion.js +5 -4
  13. package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
  14. package/dist/esm/models/GetQuestionAnswerChoicesInner.js +3 -2
  15. package/dist/esm/models/GetRichTextAssetUpload.d.ts +50 -0
  16. package/dist/esm/models/GetRichTextAssetUpload.js +55 -0
  17. package/dist/esm/models/PostQuestion.d.ts +7 -6
  18. package/dist/esm/models/PostQuestion.js +5 -4
  19. package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
  20. package/dist/esm/models/PostQuestionAnswerChoicesInner.js +3 -2
  21. package/dist/esm/models/PostRichTextAssetComplete.d.ts +44 -0
  22. package/dist/esm/models/PostRichTextAssetComplete.js +47 -0
  23. package/dist/esm/models/PostRichTextAssetUpload.d.ts +69 -0
  24. package/dist/esm/models/PostRichTextAssetUpload.js +65 -0
  25. package/dist/esm/models/PutQuestion.d.ts +7 -6
  26. package/dist/esm/models/PutQuestion.js +5 -4
  27. package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
  28. package/dist/esm/models/PutQuestionAnswerChoicesInner.js +3 -2
  29. package/dist/esm/models/RichTextAsset.d.ts +62 -0
  30. package/dist/esm/models/RichTextAsset.js +59 -0
  31. package/dist/esm/models/RichTextDocument.d.ts +60 -0
  32. package/dist/esm/models/RichTextDocument.js +62 -0
  33. package/dist/esm/models/RichTextInput.d.ts +47 -0
  34. package/dist/esm/models/RichTextInput.js +53 -0
  35. package/dist/esm/models/index.d.ts +6 -0
  36. package/dist/esm/models/index.js +6 -0
  37. package/dist/models/GetQuestion.d.ts +7 -6
  38. package/dist/models/GetQuestion.js +5 -4
  39. package/dist/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
  40. package/dist/models/GetQuestionAnswerChoicesInner.js +3 -2
  41. package/dist/models/GetRichTextAssetUpload.d.ts +50 -0
  42. package/dist/models/GetRichTextAssetUpload.js +62 -0
  43. package/dist/models/PostQuestion.d.ts +7 -6
  44. package/dist/models/PostQuestion.js +5 -4
  45. package/dist/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
  46. package/dist/models/PostQuestionAnswerChoicesInner.js +3 -2
  47. package/dist/models/PostRichTextAssetComplete.d.ts +44 -0
  48. package/dist/models/PostRichTextAssetComplete.js +54 -0
  49. package/dist/models/PostRichTextAssetUpload.d.ts +69 -0
  50. package/dist/models/PostRichTextAssetUpload.js +73 -0
  51. package/dist/models/PutQuestion.d.ts +7 -6
  52. package/dist/models/PutQuestion.js +5 -4
  53. package/dist/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
  54. package/dist/models/PutQuestionAnswerChoicesInner.js +3 -2
  55. package/dist/models/RichTextAsset.d.ts +62 -0
  56. package/dist/models/RichTextAsset.js +66 -0
  57. package/dist/models/RichTextDocument.d.ts +60 -0
  58. package/dist/models/RichTextDocument.js +70 -0
  59. package/dist/models/RichTextInput.d.ts +47 -0
  60. package/dist/models/RichTextInput.js +61 -0
  61. package/dist/models/index.d.ts +6 -0
  62. package/dist/models/index.js +6 -0
  63. package/docs/GetQuestion.md +2 -2
  64. package/docs/GetQuestionAnswerChoicesInner.md +1 -1
  65. package/docs/GetRichTextAssetUpload.md +40 -0
  66. package/docs/PostQuestion.md +2 -2
  67. package/docs/PostQuestionAnswerChoicesInner.md +1 -1
  68. package/docs/PostRichTextAssetComplete.md +38 -0
  69. package/docs/PostRichTextAssetUpload.md +44 -0
  70. package/docs/PutQuestion.md +2 -2
  71. package/docs/PutQuestionAnswerChoicesInner.md +1 -1
  72. package/docs/RichTextApi.md +285 -0
  73. package/docs/RichTextAsset.md +44 -0
  74. package/docs/RichTextDocument.md +40 -0
  75. package/docs/RichTextInput.md +36 -0
  76. package/package.json +1 -1
  77. package/src/apis/RichTextApi.ts +260 -0
  78. package/src/apis/index.ts +1 -0
  79. package/src/models/GetQuestion.ts +17 -10
  80. package/src/models/GetQuestionAnswerChoicesInner.ts +12 -4
  81. package/src/models/GetRichTextAssetUpload.ts +93 -0
  82. package/src/models/PostQuestion.ts +17 -10
  83. package/src/models/PostQuestionAnswerChoicesInner.ts +12 -4
  84. package/src/models/PostRichTextAssetComplete.ts +82 -0
  85. package/src/models/PostRichTextAssetUpload.ts +119 -0
  86. package/src/models/PutQuestion.ts +17 -10
  87. package/src/models/PutQuestionAnswerChoicesInner.ts +12 -4
  88. package/src/models/RichTextAsset.ts +109 -0
  89. package/src/models/RichTextDocument.ts +111 -0
  90. package/src/models/RichTextInput.ts +85 -0
  91. package/src/models/index.ts +6 -0
@@ -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;
@@ -0,0 +1,65 @@
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
+ * @export
16
+ */
17
+ export const PostRichTextAssetUploadUsageContextEnum = {
18
+ LearningContent: 'learning_content'
19
+ };
20
+ /**
21
+ * Check if a given object implements the PostRichTextAssetUpload interface.
22
+ */
23
+ export function instanceOfPostRichTextAssetUpload(value) {
24
+ if (!('filename' in value) || value['filename'] === undefined)
25
+ return false;
26
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
27
+ return false;
28
+ if (!('byteSize' in value) || value['byteSize'] === undefined)
29
+ return false;
30
+ if (!('usageContext' in value) || value['usageContext'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function PostRichTextAssetUploadFromJSON(json) {
35
+ return PostRichTextAssetUploadFromJSONTyped(json, false);
36
+ }
37
+ export function PostRichTextAssetUploadFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'filename': json['filename'],
43
+ 'mimeType': json['mime_type'],
44
+ 'byteSize': json['byte_size'],
45
+ 'width': json['width'] == null ? undefined : json['width'],
46
+ 'height': json['height'] == null ? undefined : json['height'],
47
+ 'usageContext': json['usage_context'],
48
+ };
49
+ }
50
+ export function PostRichTextAssetUploadToJSON(json) {
51
+ return PostRichTextAssetUploadToJSONTyped(json, false);
52
+ }
53
+ export function PostRichTextAssetUploadToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'filename': value['filename'],
59
+ 'mime_type': value['mimeType'],
60
+ 'byte_size': value['byteSize'],
61
+ 'width': value['width'],
62
+ 'height': value['height'],
63
+ 'usage_context': value['usageContext'],
64
+ };
65
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PutQuestionAnswerChoicesInner } from './PutQuestionAnswerChoicesInner';
13
+ import type { RichTextInput } from './RichTextInput';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -17,11 +18,11 @@ import type { PutQuestionAnswerChoicesInner } from './PutQuestionAnswerChoicesIn
17
18
  */
18
19
  export interface PutQuestion {
19
20
  /**
20
- * The main question text or prompt
21
- * @type {string}
21
+ *
22
+ * @type {RichTextInput}
22
23
  * @memberof PutQuestion
23
24
  */
24
- questionText?: string;
25
+ questionText?: RichTextInput;
25
26
  /**
26
27
  * Type of question
27
28
  * @type {PutQuestionQuestionTypeEnum}
@@ -41,11 +42,11 @@ export interface PutQuestion {
41
42
  */
42
43
  correctAnswer?: string;
43
44
  /**
44
- * Explanation of the correct answer
45
- * @type {string}
45
+ *
46
+ * @type {RichTextInput}
46
47
  * @memberof PutQuestion
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}
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { PutQuestionAnswerChoicesInnerFromJSON, PutQuestionAnswerChoicesInnerToJSON, } from './PutQuestionAnswerChoicesInner';
15
+ import { RichTextInputFromJSON, RichTextInputToJSON, } from './RichTextInput';
15
16
  /**
16
17
  * @export
17
18
  */
@@ -45,11 +46,11 @@ export function PutQuestionFromJSONTyped(json, ignoreDiscriminator) {
45
46
  return json;
46
47
  }
47
48
  return {
48
- 'questionText': json['question_text'] == null ? undefined : json['question_text'],
49
+ 'questionText': json['question_text'] == null ? undefined : RichTextInputFromJSON(json['question_text']),
49
50
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
50
51
  'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(PutQuestionAnswerChoicesInnerFromJSON)),
51
52
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
52
- 'explanation': json['explanation'] == null ? undefined : json['explanation'],
53
+ 'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
53
54
  'topic': json['topic'] == null ? undefined : json['topic'],
54
55
  'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
55
56
  'tags': json['tags'] == null ? undefined : json['tags'],
@@ -64,11 +65,11 @@ export function PutQuestionToJSONTyped(value, ignoreDiscriminator = false) {
64
65
  return value;
65
66
  }
66
67
  return {
67
- 'question_text': value['questionText'],
68
+ 'question_text': RichTextInputToJSON(value['questionText']),
68
69
  'question_type': value['questionType'],
69
70
  'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(PutQuestionAnswerChoicesInnerToJSON)),
70
71
  'correct_answer': value['correctAnswer'],
71
- 'explanation': value['explanation'],
72
+ 'explanation': RichTextInputToJSON(value['explanation']),
72
73
  'topic': value['topic'],
73
74
  'difficulty_level': value['difficultyLevel'],
74
75
  '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
@@ -23,10 +24,10 @@ export interface PutQuestionAnswerChoicesInner {
23
24
  id?: string;
24
25
  /**
25
26
  *
26
- * @type {string}
27
+ * @type {RichTextInput}
27
28
  * @memberof PutQuestionAnswerChoicesInner
28
29
  */
29
- text: string;
30
+ text: RichTextInput;
30
31
  /**
31
32
  *
32
33
  * @type {boolean}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { RichTextInputFromJSON, RichTextInputToJSON, } from './RichTextInput';
14
15
  /**
15
16
  * Check if a given object implements the PutQuestionAnswerChoicesInner interface.
16
17
  */
@@ -30,7 +31,7 @@ export function PutQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscrimin
30
31
  }
31
32
  return {
32
33
  'id': json['id'] == null ? undefined : json['id'],
33
- 'text': json['text'],
34
+ 'text': RichTextInputFromJSON(json['text']),
34
35
  'isCorrect': json['is_correct'],
35
36
  };
36
37
  }
@@ -43,7 +44,7 @@ export function PutQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscrimina
43
44
  }
44
45
  return {
45
46
  'id': value['id'],
46
- 'text': value['text'],
47
+ 'text': RichTextInputToJSON(value['text']),
47
48
  'is_correct': value['isCorrect'],
48
49
  };
49
50
  }
@@ -0,0 +1,62 @@
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 RichTextAsset
16
+ */
17
+ export interface RichTextAsset {
18
+ /**
19
+ * Rich text asset external identifier
20
+ * @type {string}
21
+ * @memberof RichTextAsset
22
+ */
23
+ id: string;
24
+ /**
25
+ * Asset MIME type
26
+ * @type {string}
27
+ * @memberof RichTextAsset
28
+ */
29
+ mimeType: string;
30
+ /**
31
+ * Uploaded asset size in bytes
32
+ * @type {number}
33
+ * @memberof RichTextAsset
34
+ */
35
+ byteSize: number;
36
+ /**
37
+ * Image width in pixels
38
+ * @type {number}
39
+ * @memberof RichTextAsset
40
+ */
41
+ width?: number;
42
+ /**
43
+ * Image height in pixels
44
+ * @type {number}
45
+ * @memberof RichTextAsset
46
+ */
47
+ height?: number;
48
+ /**
49
+ * Authenticated API URL that redirects to a signed asset URL
50
+ * @type {string}
51
+ * @memberof RichTextAsset
52
+ */
53
+ renderUrl: string;
54
+ }
55
+ /**
56
+ * Check if a given object implements the RichTextAsset interface.
57
+ */
58
+ export declare function instanceOfRichTextAsset(value: object): value is RichTextAsset;
59
+ export declare function RichTextAssetFromJSON(json: any): RichTextAsset;
60
+ export declare function RichTextAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextAsset;
61
+ export declare function RichTextAssetToJSON(json: any): RichTextAsset;
62
+ export declare function RichTextAssetToJSONTyped(value?: RichTextAsset | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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 RichTextAsset interface.
16
+ */
17
+ export function instanceOfRichTextAsset(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
21
+ return false;
22
+ if (!('byteSize' in value) || value['byteSize'] === undefined)
23
+ return false;
24
+ if (!('renderUrl' in value) || value['renderUrl'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function RichTextAssetFromJSON(json) {
29
+ return RichTextAssetFromJSONTyped(json, false);
30
+ }
31
+ export function RichTextAssetFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'],
37
+ 'mimeType': json['mime_type'],
38
+ 'byteSize': json['byte_size'],
39
+ 'width': json['width'] == null ? undefined : json['width'],
40
+ 'height': json['height'] == null ? undefined : json['height'],
41
+ 'renderUrl': json['render_url'],
42
+ };
43
+ }
44
+ export function RichTextAssetToJSON(json) {
45
+ return RichTextAssetToJSONTyped(json, false);
46
+ }
47
+ export function RichTextAssetToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'id': value['id'],
53
+ 'mime_type': value['mimeType'],
54
+ 'byte_size': value['byteSize'],
55
+ 'width': value['width'],
56
+ 'height': value['height'],
57
+ 'render_url': value['renderUrl'],
58
+ };
59
+ }
@@ -0,0 +1,60 @@
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 { RichTextAsset } from './RichTextAsset';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface RichTextDocument
17
+ */
18
+ export interface RichTextDocument {
19
+ /**
20
+ * Rich text document format
21
+ * @type {RichTextDocumentFormatEnum}
22
+ * @memberof RichTextDocument
23
+ */
24
+ format: RichTextDocumentFormatEnum;
25
+ /**
26
+ * TipTap/ProseMirror JSON document
27
+ * @type {{ [key: string]: any; }}
28
+ * @memberof RichTextDocument
29
+ */
30
+ document: {
31
+ [key: string]: any;
32
+ };
33
+ /**
34
+ * Server-derived plain text for search and previews
35
+ * @type {string}
36
+ * @memberof RichTextDocument
37
+ */
38
+ plainText: string;
39
+ /**
40
+ * Assets referenced by the document
41
+ * @type {Array<RichTextAsset>}
42
+ * @memberof RichTextDocument
43
+ */
44
+ assets: Array<RichTextAsset>;
45
+ }
46
+ /**
47
+ * @export
48
+ */
49
+ export declare const RichTextDocumentFormatEnum: {
50
+ readonly TiptapV2: "tiptap-v2";
51
+ };
52
+ export type RichTextDocumentFormatEnum = typeof RichTextDocumentFormatEnum[keyof typeof RichTextDocumentFormatEnum];
53
+ /**
54
+ * Check if a given object implements the RichTextDocument interface.
55
+ */
56
+ export declare function instanceOfRichTextDocument(value: object): value is RichTextDocument;
57
+ export declare function RichTextDocumentFromJSON(json: any): RichTextDocument;
58
+ export declare function RichTextDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextDocument;
59
+ export declare function RichTextDocumentToJSON(json: any): RichTextDocument;
60
+ export declare function RichTextDocumentToJSONTyped(value?: RichTextDocument | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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 { RichTextAssetFromJSON, RichTextAssetToJSON, } from './RichTextAsset';
15
+ /**
16
+ * @export
17
+ */
18
+ export const RichTextDocumentFormatEnum = {
19
+ TiptapV2: 'tiptap-v2'
20
+ };
21
+ /**
22
+ * Check if a given object implements the RichTextDocument interface.
23
+ */
24
+ export function instanceOfRichTextDocument(value) {
25
+ if (!('format' in value) || value['format'] === undefined)
26
+ return false;
27
+ if (!('document' in value) || value['document'] === undefined)
28
+ return false;
29
+ if (!('plainText' in value) || value['plainText'] === undefined)
30
+ return false;
31
+ if (!('assets' in value) || value['assets'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function RichTextDocumentFromJSON(json) {
36
+ return RichTextDocumentFromJSONTyped(json, false);
37
+ }
38
+ export function RichTextDocumentFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'format': json['format'],
44
+ 'document': json['document'],
45
+ 'plainText': json['plain_text'],
46
+ 'assets': (json['assets'].map(RichTextAssetFromJSON)),
47
+ };
48
+ }
49
+ export function RichTextDocumentToJSON(json) {
50
+ return RichTextDocumentToJSONTyped(json, false);
51
+ }
52
+ export function RichTextDocumentToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'format': value['format'],
58
+ 'document': value['document'],
59
+ 'plain_text': value['plainText'],
60
+ 'assets': (value['assets'].map(RichTextAssetToJSON)),
61
+ };
62
+ }
@@ -0,0 +1,47 @@
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 RichTextInput
16
+ */
17
+ export interface RichTextInput {
18
+ /**
19
+ * Rich text document format
20
+ * @type {RichTextInputFormatEnum}
21
+ * @memberof RichTextInput
22
+ */
23
+ format: RichTextInputFormatEnum;
24
+ /**
25
+ * TipTap/ProseMirror JSON document
26
+ * @type {{ [key: string]: any; }}
27
+ * @memberof RichTextInput
28
+ */
29
+ document: {
30
+ [key: string]: any;
31
+ };
32
+ }
33
+ /**
34
+ * @export
35
+ */
36
+ export declare const RichTextInputFormatEnum: {
37
+ readonly TiptapV2: "tiptap-v2";
38
+ };
39
+ export type RichTextInputFormatEnum = typeof RichTextInputFormatEnum[keyof typeof RichTextInputFormatEnum];
40
+ /**
41
+ * Check if a given object implements the RichTextInput interface.
42
+ */
43
+ export declare function instanceOfRichTextInput(value: object): value is RichTextInput;
44
+ export declare function RichTextInputFromJSON(json: any): RichTextInput;
45
+ export declare function RichTextInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextInput;
46
+ export declare function RichTextInputToJSON(json: any): RichTextInput;
47
+ export declare function RichTextInputToJSONTyped(value?: RichTextInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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
+ * @export
16
+ */
17
+ export const RichTextInputFormatEnum = {
18
+ TiptapV2: 'tiptap-v2'
19
+ };
20
+ /**
21
+ * Check if a given object implements the RichTextInput interface.
22
+ */
23
+ export function instanceOfRichTextInput(value) {
24
+ if (!('format' in value) || value['format'] === undefined)
25
+ return false;
26
+ if (!('document' in value) || value['document'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function RichTextInputFromJSON(json) {
31
+ return RichTextInputFromJSONTyped(json, false);
32
+ }
33
+ export function RichTextInputFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'format': json['format'],
39
+ 'document': json['document'],
40
+ };
41
+ }
42
+ export function RichTextInputToJSON(json) {
43
+ return RichTextInputToJSONTyped(json, false);
44
+ }
45
+ export function RichTextInputToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'format': value['format'],
51
+ 'document': value['document'],
52
+ };
53
+ }
@@ -137,6 +137,7 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
137
137
  export * from './GetQuizResultsScore';
138
138
  export * from './GetQuizResultsTiming';
139
139
  export * from './GetQuizStatistics';
140
+ export * from './GetRichTextAssetUpload';
140
141
  export * from './GetRole';
141
142
  export * from './GetScormApiLogItem';
142
143
  export * from './GetScormApiLogs';
@@ -234,6 +235,8 @@ export * from './PostQuizQuestionsQuestionsInner';
234
235
  export * from './PostQuizSettings';
235
236
  export * from './PostResetPassword';
236
237
  export * from './PostRevokeCertificate';
238
+ export * from './PostRichTextAssetComplete';
239
+ export * from './PostRichTextAssetUpload';
237
240
  export * from './PostRole';
238
241
  export * from './PostSendResetPassword';
239
242
  export * from './PostSignupRequest';
@@ -270,6 +273,9 @@ export * from './PutUser';
270
273
  export * from './QuizContent';
271
274
  export * from './QuizContentAssignment';
272
275
  export * from './QuizContentSettings';
276
+ export * from './RichTextAsset';
277
+ export * from './RichTextDocument';
278
+ export * from './RichTextInput';
273
279
  export * from './SCORMContent';
274
280
  export * from './ScormGetValueResponse';
275
281
  export * from './ScormSessionData';
@@ -139,6 +139,7 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
139
139
  export * from './GetQuizResultsScore';
140
140
  export * from './GetQuizResultsTiming';
141
141
  export * from './GetQuizStatistics';
142
+ export * from './GetRichTextAssetUpload';
142
143
  export * from './GetRole';
143
144
  export * from './GetScormApiLogItem';
144
145
  export * from './GetScormApiLogs';
@@ -236,6 +237,8 @@ export * from './PostQuizQuestionsQuestionsInner';
236
237
  export * from './PostQuizSettings';
237
238
  export * from './PostResetPassword';
238
239
  export * from './PostRevokeCertificate';
240
+ export * from './PostRichTextAssetComplete';
241
+ export * from './PostRichTextAssetUpload';
239
242
  export * from './PostRole';
240
243
  export * from './PostSendResetPassword';
241
244
  export * from './PostSignupRequest';
@@ -272,6 +275,9 @@ export * from './PutUser';
272
275
  export * from './QuizContent';
273
276
  export * from './QuizContentAssignment';
274
277
  export * from './QuizContentSettings';
278
+ export * from './RichTextAsset';
279
+ export * from './RichTextDocument';
280
+ export * from './RichTextInput';
275
281
  export * from './SCORMContent';
276
282
  export * from './ScormGetValueResponse';
277
283
  export * from './ScormSessionData';