@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.
- package/.openapi-generator/FILES +14 -0
- package/README.md +12 -2
- package/dist/apis/RichTextApi.d.ts +83 -0
- package/dist/apis/RichTextApi.js +201 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/RichTextApi.d.ts +83 -0
- package/dist/esm/apis/RichTextApi.js +197 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetQuestion.d.ts +7 -6
- package/dist/esm/models/GetQuestion.js +5 -4
- package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/GetQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/GetRichTextAssetUpload.d.ts +50 -0
- package/dist/esm/models/GetRichTextAssetUpload.js +55 -0
- package/dist/esm/models/PostQuestion.d.ts +7 -6
- package/dist/esm/models/PostQuestion.js +5 -4
- package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/PostQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/PostRichTextAssetComplete.d.ts +44 -0
- package/dist/esm/models/PostRichTextAssetComplete.js +47 -0
- package/dist/esm/models/PostRichTextAssetUpload.d.ts +69 -0
- package/dist/esm/models/PostRichTextAssetUpload.js +65 -0
- package/dist/esm/models/PutQuestion.d.ts +7 -6
- package/dist/esm/models/PutQuestion.js +5 -4
- package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/PutQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/RichTextAsset.d.ts +62 -0
- package/dist/esm/models/RichTextAsset.js +59 -0
- package/dist/esm/models/RichTextDocument.d.ts +60 -0
- package/dist/esm/models/RichTextDocument.js +62 -0
- package/dist/esm/models/RichTextInput.d.ts +47 -0
- package/dist/esm/models/RichTextInput.js +53 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/GetQuestion.d.ts +7 -6
- package/dist/models/GetQuestion.js +5 -4
- package/dist/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/GetQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/GetRichTextAssetUpload.d.ts +50 -0
- package/dist/models/GetRichTextAssetUpload.js +62 -0
- package/dist/models/PostQuestion.d.ts +7 -6
- package/dist/models/PostQuestion.js +5 -4
- package/dist/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/PostQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/PostRichTextAssetComplete.d.ts +44 -0
- package/dist/models/PostRichTextAssetComplete.js +54 -0
- package/dist/models/PostRichTextAssetUpload.d.ts +69 -0
- package/dist/models/PostRichTextAssetUpload.js +73 -0
- package/dist/models/PutQuestion.d.ts +7 -6
- package/dist/models/PutQuestion.js +5 -4
- package/dist/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/PutQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/RichTextAsset.d.ts +62 -0
- package/dist/models/RichTextAsset.js +66 -0
- package/dist/models/RichTextDocument.d.ts +60 -0
- package/dist/models/RichTextDocument.js +70 -0
- package/dist/models/RichTextInput.d.ts +47 -0
- package/dist/models/RichTextInput.js +61 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/GetQuestion.md +2 -2
- package/docs/GetQuestionAnswerChoicesInner.md +1 -1
- package/docs/GetRichTextAssetUpload.md +40 -0
- package/docs/PostQuestion.md +2 -2
- package/docs/PostQuestionAnswerChoicesInner.md +1 -1
- package/docs/PostRichTextAssetComplete.md +38 -0
- package/docs/PostRichTextAssetUpload.md +44 -0
- package/docs/PutQuestion.md +2 -2
- package/docs/PutQuestionAnswerChoicesInner.md +1 -1
- package/docs/RichTextApi.md +285 -0
- package/docs/RichTextAsset.md +44 -0
- package/docs/RichTextDocument.md +40 -0
- package/docs/RichTextInput.md +36 -0
- package/package.json +1 -1
- package/src/apis/RichTextApi.ts +260 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetQuestion.ts +17 -10
- package/src/models/GetQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/GetRichTextAssetUpload.ts +93 -0
- package/src/models/PostQuestion.ts +17 -10
- package/src/models/PostQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/PostRichTextAssetComplete.ts +82 -0
- package/src/models/PostRichTextAssetUpload.ts +119 -0
- package/src/models/PutQuestion.ts +17 -10
- package/src/models/PutQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/RichTextAsset.ts +109 -0
- package/src/models/RichTextDocument.ts +111 -0
- package/src/models/RichTextInput.ts +85 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,109 @@
|
|
|
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 RichTextAsset
|
|
20
|
+
*/
|
|
21
|
+
export interface RichTextAsset {
|
|
22
|
+
/**
|
|
23
|
+
* Rich text asset external identifier
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RichTextAsset
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Asset MIME type
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RichTextAsset
|
|
32
|
+
*/
|
|
33
|
+
mimeType: string;
|
|
34
|
+
/**
|
|
35
|
+
* Uploaded asset size in bytes
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof RichTextAsset
|
|
38
|
+
*/
|
|
39
|
+
byteSize: number;
|
|
40
|
+
/**
|
|
41
|
+
* Image width in pixels
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof RichTextAsset
|
|
44
|
+
*/
|
|
45
|
+
width?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Image height in pixels
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof RichTextAsset
|
|
50
|
+
*/
|
|
51
|
+
height?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Authenticated API URL that redirects to a signed asset URL
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof RichTextAsset
|
|
56
|
+
*/
|
|
57
|
+
renderUrl: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the RichTextAsset interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfRichTextAsset(value: object): value is RichTextAsset {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
66
|
+
if (!('byteSize' in value) || value['byteSize'] === undefined) return false;
|
|
67
|
+
if (!('renderUrl' in value) || value['renderUrl'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function RichTextAssetFromJSON(json: any): RichTextAsset {
|
|
72
|
+
return RichTextAssetFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function RichTextAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextAsset {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'id': json['id'],
|
|
82
|
+
'mimeType': json['mime_type'],
|
|
83
|
+
'byteSize': json['byte_size'],
|
|
84
|
+
'width': json['width'] == null ? undefined : json['width'],
|
|
85
|
+
'height': json['height'] == null ? undefined : json['height'],
|
|
86
|
+
'renderUrl': json['render_url'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function RichTextAssetToJSON(json: any): RichTextAsset {
|
|
91
|
+
return RichTextAssetToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function RichTextAssetToJSONTyped(value?: RichTextAsset | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'id': value['id'],
|
|
102
|
+
'mime_type': value['mimeType'],
|
|
103
|
+
'byte_size': value['byteSize'],
|
|
104
|
+
'width': value['width'],
|
|
105
|
+
'height': value['height'],
|
|
106
|
+
'render_url': value['renderUrl'],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
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 { RichTextAsset } from './RichTextAsset';
|
|
17
|
+
import {
|
|
18
|
+
RichTextAssetFromJSON,
|
|
19
|
+
RichTextAssetFromJSONTyped,
|
|
20
|
+
RichTextAssetToJSON,
|
|
21
|
+
RichTextAssetToJSONTyped,
|
|
22
|
+
} from './RichTextAsset';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RichTextDocument
|
|
28
|
+
*/
|
|
29
|
+
export interface RichTextDocument {
|
|
30
|
+
/**
|
|
31
|
+
* Rich text document format
|
|
32
|
+
* @type {RichTextDocumentFormatEnum}
|
|
33
|
+
* @memberof RichTextDocument
|
|
34
|
+
*/
|
|
35
|
+
format: RichTextDocumentFormatEnum;
|
|
36
|
+
/**
|
|
37
|
+
* TipTap/ProseMirror JSON document
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof RichTextDocument
|
|
40
|
+
*/
|
|
41
|
+
document: { [key: string]: any; };
|
|
42
|
+
/**
|
|
43
|
+
* Server-derived plain text for search and previews
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof RichTextDocument
|
|
46
|
+
*/
|
|
47
|
+
plainText: string;
|
|
48
|
+
/**
|
|
49
|
+
* Assets referenced by the document
|
|
50
|
+
* @type {Array<RichTextAsset>}
|
|
51
|
+
* @memberof RichTextDocument
|
|
52
|
+
*/
|
|
53
|
+
assets: Array<RichTextAsset>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export const RichTextDocumentFormatEnum = {
|
|
61
|
+
TiptapV2: 'tiptap-v2'
|
|
62
|
+
} as const;
|
|
63
|
+
export type RichTextDocumentFormatEnum = typeof RichTextDocumentFormatEnum[keyof typeof RichTextDocumentFormatEnum];
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the RichTextDocument interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfRichTextDocument(value: object): value is RichTextDocument {
|
|
70
|
+
if (!('format' in value) || value['format'] === undefined) return false;
|
|
71
|
+
if (!('document' in value) || value['document'] === undefined) return false;
|
|
72
|
+
if (!('plainText' in value) || value['plainText'] === undefined) return false;
|
|
73
|
+
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function RichTextDocumentFromJSON(json: any): RichTextDocument {
|
|
78
|
+
return RichTextDocumentFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function RichTextDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextDocument {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'format': json['format'],
|
|
88
|
+
'document': json['document'],
|
|
89
|
+
'plainText': json['plain_text'],
|
|
90
|
+
'assets': ((json['assets'] as Array<any>).map(RichTextAssetFromJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function RichTextDocumentToJSON(json: any): RichTextDocument {
|
|
95
|
+
return RichTextDocumentToJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function RichTextDocumentToJSONTyped(value?: RichTextDocument | null, ignoreDiscriminator: boolean = false): any {
|
|
99
|
+
if (value == null) {
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'format': value['format'],
|
|
106
|
+
'document': value['document'],
|
|
107
|
+
'plain_text': value['plainText'],
|
|
108
|
+
'assets': ((value['assets'] as Array<any>).map(RichTextAssetToJSON)),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
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 RichTextInput
|
|
20
|
+
*/
|
|
21
|
+
export interface RichTextInput {
|
|
22
|
+
/**
|
|
23
|
+
* Rich text document format
|
|
24
|
+
* @type {RichTextInputFormatEnum}
|
|
25
|
+
* @memberof RichTextInput
|
|
26
|
+
*/
|
|
27
|
+
format: RichTextInputFormatEnum;
|
|
28
|
+
/**
|
|
29
|
+
* TipTap/ProseMirror JSON document
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof RichTextInput
|
|
32
|
+
*/
|
|
33
|
+
document: { [key: string]: any; };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const RichTextInputFormatEnum = {
|
|
41
|
+
TiptapV2: 'tiptap-v2'
|
|
42
|
+
} as const;
|
|
43
|
+
export type RichTextInputFormatEnum = typeof RichTextInputFormatEnum[keyof typeof RichTextInputFormatEnum];
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the RichTextInput interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfRichTextInput(value: object): value is RichTextInput {
|
|
50
|
+
if (!('format' in value) || value['format'] === undefined) return false;
|
|
51
|
+
if (!('document' in value) || value['document'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function RichTextInputFromJSON(json: any): RichTextInput {
|
|
56
|
+
return RichTextInputFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function RichTextInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RichTextInput {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'format': json['format'],
|
|
66
|
+
'document': json['document'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function RichTextInputToJSON(json: any): RichTextInput {
|
|
71
|
+
return RichTextInputToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function RichTextInputToJSONTyped(value?: RichTextInput | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'format': value['format'],
|
|
82
|
+
'document': value['document'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|