@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.
- package/.openapi-generator/FILES +26 -0
- package/README.md +18 -2
- package/dist/apis/RichTextApi.d.ts +67 -0
- package/dist/apis/RichTextApi.js +158 -0
- package/dist/apis/UserApi.d.ts +42 -0
- package/dist/apis/UserApi.js +79 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/RichTextApi.d.ts +67 -0
- package/dist/esm/apis/RichTextApi.js +154 -0
- package/dist/esm/apis/UserApi.d.ts +42 -0
- package/dist/esm/apis/UserApi.js +78 -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/GetUserCourseList.d.ts +57 -0
- package/dist/esm/models/GetUserCourseList.js +60 -0
- package/dist/esm/models/GetUserCourseListItem.d.ts +54 -0
- package/dist/esm/models/GetUserCourseListItem.js +59 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.d.ts +74 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.js +75 -0
- package/dist/esm/models/GetUserCourseListItemCourse.d.ts +89 -0
- package/dist/esm/models/GetUserCourseListItemCourse.js +82 -0
- package/dist/esm/models/GetUserCourseListItemEnrollment.d.ts +111 -0
- package/dist/esm/models/GetUserCourseListItemEnrollment.js +105 -0
- package/dist/esm/models/GetUserCourseListItemProgress.d.ts +44 -0
- package/dist/esm/models/GetUserCourseListItemProgress.js +51 -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 +12 -0
- package/dist/esm/models/index.js +12 -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/GetUserCourseList.d.ts +57 -0
- package/dist/models/GetUserCourseList.js +67 -0
- package/dist/models/GetUserCourseListItem.d.ts +54 -0
- package/dist/models/GetUserCourseListItem.js +66 -0
- package/dist/models/GetUserCourseListItemCertificate.d.ts +74 -0
- package/dist/models/GetUserCourseListItemCertificate.js +83 -0
- package/dist/models/GetUserCourseListItemCourse.d.ts +89 -0
- package/dist/models/GetUserCourseListItemCourse.js +90 -0
- package/dist/models/GetUserCourseListItemEnrollment.d.ts +111 -0
- package/dist/models/GetUserCourseListItemEnrollment.js +113 -0
- package/dist/models/GetUserCourseListItemProgress.d.ts +44 -0
- package/dist/models/GetUserCourseListItemProgress.js +58 -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 +12 -0
- package/dist/models/index.js +12 -0
- package/docs/GetQuestion.md +2 -2
- package/docs/GetQuestionAnswerChoicesInner.md +1 -1
- package/docs/GetRichTextAssetUpload.md +40 -0
- package/docs/GetUserCourseList.md +43 -0
- package/docs/GetUserCourseListItem.md +41 -0
- package/docs/GetUserCourseListItemCertificate.md +43 -0
- package/docs/GetUserCourseListItemCourse.md +51 -0
- package/docs/GetUserCourseListItemEnrollment.md +49 -0
- package/docs/GetUserCourseListItemProgress.md +39 -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 +212 -0
- package/docs/RichTextAsset.md +44 -0
- package/docs/RichTextDocument.md +40 -0
- package/docs/RichTextInput.md +36 -0
- package/docs/UserApi.md +90 -0
- package/package.json +1 -1
- package/src/apis/RichTextApi.ts +201 -0
- package/src/apis/UserApi.ts +108 -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/GetUserCourseList.ts +110 -0
- package/src/models/GetUserCourseListItem.ts +122 -0
- package/src/models/GetUserCourseListItemCertificate.ts +124 -0
- package/src/models/GetUserCourseListItemCourse.ts +149 -0
- package/src/models/GetUserCourseListItemEnrollment.ts +171 -0
- package/src/models/GetUserCourseListItemProgress.ts +84 -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 +12 -0
|
@@ -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';
|
|
@@ -153,6 +154,12 @@ export * from './GetSystemBillingList';
|
|
|
153
154
|
export * from './GetSystemMetrics';
|
|
154
155
|
export * from './GetUser';
|
|
155
156
|
export * from './GetUserAvatarUpload';
|
|
157
|
+
export * from './GetUserCourseList';
|
|
158
|
+
export * from './GetUserCourseListItem';
|
|
159
|
+
export * from './GetUserCourseListItemCertificate';
|
|
160
|
+
export * from './GetUserCourseListItemCourse';
|
|
161
|
+
export * from './GetUserCourseListItemEnrollment';
|
|
162
|
+
export * from './GetUserCourseListItemProgress';
|
|
156
163
|
export * from './GetUserQuizAttempts';
|
|
157
164
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
158
165
|
export * from './GetUserQuizAttemptsAllOfFilters';
|
|
@@ -228,6 +235,8 @@ export * from './PostQuizQuestionsQuestionsInner';
|
|
|
228
235
|
export * from './PostQuizSettings';
|
|
229
236
|
export * from './PostResetPassword';
|
|
230
237
|
export * from './PostRevokeCertificate';
|
|
238
|
+
export * from './PostRichTextAssetComplete';
|
|
239
|
+
export * from './PostRichTextAssetUpload';
|
|
231
240
|
export * from './PostRole';
|
|
232
241
|
export * from './PostSendResetPassword';
|
|
233
242
|
export * from './PostSignupRequest';
|
|
@@ -264,6 +273,9 @@ export * from './PutUser';
|
|
|
264
273
|
export * from './QuizContent';
|
|
265
274
|
export * from './QuizContentAssignment';
|
|
266
275
|
export * from './QuizContentSettings';
|
|
276
|
+
export * from './RichTextAsset';
|
|
277
|
+
export * from './RichTextDocument';
|
|
278
|
+
export * from './RichTextInput';
|
|
267
279
|
export * from './SCORMContent';
|
|
268
280
|
export * from './ScormGetValueResponse';
|
|
269
281
|
export * from './ScormSessionData';
|
package/dist/esm/models/index.js
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';
|
|
@@ -155,6 +156,12 @@ export * from './GetSystemBillingList';
|
|
|
155
156
|
export * from './GetSystemMetrics';
|
|
156
157
|
export * from './GetUser';
|
|
157
158
|
export * from './GetUserAvatarUpload';
|
|
159
|
+
export * from './GetUserCourseList';
|
|
160
|
+
export * from './GetUserCourseListItem';
|
|
161
|
+
export * from './GetUserCourseListItemCertificate';
|
|
162
|
+
export * from './GetUserCourseListItemCourse';
|
|
163
|
+
export * from './GetUserCourseListItemEnrollment';
|
|
164
|
+
export * from './GetUserCourseListItemProgress';
|
|
158
165
|
export * from './GetUserQuizAttempts';
|
|
159
166
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
160
167
|
export * from './GetUserQuizAttemptsAllOfFilters';
|
|
@@ -230,6 +237,8 @@ export * from './PostQuizQuestionsQuestionsInner';
|
|
|
230
237
|
export * from './PostQuizSettings';
|
|
231
238
|
export * from './PostResetPassword';
|
|
232
239
|
export * from './PostRevokeCertificate';
|
|
240
|
+
export * from './PostRichTextAssetComplete';
|
|
241
|
+
export * from './PostRichTextAssetUpload';
|
|
233
242
|
export * from './PostRole';
|
|
234
243
|
export * from './PostSendResetPassword';
|
|
235
244
|
export * from './PostSignupRequest';
|
|
@@ -266,6 +275,9 @@ export * from './PutUser';
|
|
|
266
275
|
export * from './QuizContent';
|
|
267
276
|
export * from './QuizContentAssignment';
|
|
268
277
|
export * from './QuizContentSettings';
|
|
278
|
+
export * from './RichTextAsset';
|
|
279
|
+
export * from './RichTextDocument';
|
|
280
|
+
export * from './RichTextInput';
|
|
269
281
|
export * from './SCORMContent';
|
|
270
282
|
export * from './ScormGetValueResponse';
|
|
271
283
|
export * from './ScormSessionData';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RichTextDocument } from './RichTextDocument';
|
|
12
13
|
import type { GetQuestionAnswerChoicesInner } from './GetQuestionAnswerChoicesInner';
|
|
13
14
|
import type { GetQuestionQuizzesInner } from './GetQuestionQuizzesInner';
|
|
14
15
|
/**
|
|
@@ -24,11 +25,11 @@ export interface GetQuestion {
|
|
|
24
25
|
*/
|
|
25
26
|
readonly id: string;
|
|
26
27
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {
|
|
28
|
+
*
|
|
29
|
+
* @type {RichTextDocument}
|
|
29
30
|
* @memberof GetQuestion
|
|
30
31
|
*/
|
|
31
|
-
questionText:
|
|
32
|
+
questionText: RichTextDocument;
|
|
32
33
|
/**
|
|
33
34
|
* Type of question
|
|
34
35
|
* @type {GetQuestionQuestionTypeEnum}
|
|
@@ -48,11 +49,11 @@ export interface GetQuestion {
|
|
|
48
49
|
*/
|
|
49
50
|
correctAnswer?: string;
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {
|
|
52
|
+
*
|
|
53
|
+
* @type {RichTextDocument}
|
|
53
54
|
* @memberof GetQuestion
|
|
54
55
|
*/
|
|
55
|
-
explanation?:
|
|
56
|
+
explanation?: RichTextDocument;
|
|
56
57
|
/**
|
|
57
58
|
* Topic category (Fire Alarm, Fire Pump, Fire Sprinkler, etc.)
|
|
58
59
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.GetQuestionFromJSON = GetQuestionFromJSON;
|
|
|
19
19
|
exports.GetQuestionFromJSONTyped = GetQuestionFromJSONTyped;
|
|
20
20
|
exports.GetQuestionToJSON = GetQuestionToJSON;
|
|
21
21
|
exports.GetQuestionToJSONTyped = GetQuestionToJSONTyped;
|
|
22
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
22
23
|
const GetQuestionAnswerChoicesInner_1 = require("./GetQuestionAnswerChoicesInner");
|
|
23
24
|
const GetQuestionQuizzesInner_1 = require("./GetQuestionQuizzesInner");
|
|
24
25
|
/**
|
|
@@ -69,11 +70,11 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
70
|
}
|
|
70
71
|
return {
|
|
71
72
|
'id': json['id'],
|
|
72
|
-
'questionText': json['question_text'],
|
|
73
|
+
'questionText': (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['question_text']),
|
|
73
74
|
'questionType': json['question_type'],
|
|
74
75
|
'answerChoices': json['answer_choices'] == null ? undefined : (json['answer_choices'].map(GetQuestionAnswerChoicesInner_1.GetQuestionAnswerChoicesInnerFromJSON)),
|
|
75
76
|
'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
|
|
76
|
-
'explanation': json['explanation'] == null ? undefined : json['explanation'],
|
|
77
|
+
'explanation': json['explanation'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['explanation']),
|
|
77
78
|
'topic': json['topic'],
|
|
78
79
|
'difficultyLevel': json['difficulty_level'],
|
|
79
80
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
@@ -93,11 +94,11 @@ function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
93
94
|
return value;
|
|
94
95
|
}
|
|
95
96
|
return {
|
|
96
|
-
'question_text': value['questionText'],
|
|
97
|
+
'question_text': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['questionText']),
|
|
97
98
|
'question_type': value['questionType'],
|
|
98
99
|
'answer_choices': value['answerChoices'] == null ? undefined : (value['answerChoices'].map(GetQuestionAnswerChoicesInner_1.GetQuestionAnswerChoicesInnerToJSON)),
|
|
99
100
|
'correct_answer': value['correctAnswer'],
|
|
100
|
-
'explanation': value['explanation'],
|
|
101
|
+
'explanation': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanation']),
|
|
101
102
|
'topic': value['topic'],
|
|
102
103
|
'difficulty_level': value['difficultyLevel'],
|
|
103
104
|
'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 { RichTextDocument } from './RichTextDocument';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -23,10 +24,10 @@ export interface GetQuestionAnswerChoicesInner {
|
|
|
23
24
|
id: string;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
|
-
* @type {
|
|
27
|
+
* @type {RichTextDocument}
|
|
27
28
|
* @memberof GetQuestionAnswerChoicesInner
|
|
28
29
|
*/
|
|
29
|
-
text:
|
|
30
|
+
text: RichTextDocument;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
33
|
* @type {boolean}
|
|
@@ -18,6 +18,7 @@ exports.GetQuestionAnswerChoicesInnerFromJSON = GetQuestionAnswerChoicesInnerFro
|
|
|
18
18
|
exports.GetQuestionAnswerChoicesInnerFromJSONTyped = GetQuestionAnswerChoicesInnerFromJSONTyped;
|
|
19
19
|
exports.GetQuestionAnswerChoicesInnerToJSON = GetQuestionAnswerChoicesInnerToJSON;
|
|
20
20
|
exports.GetQuestionAnswerChoicesInnerToJSONTyped = GetQuestionAnswerChoicesInnerToJSONTyped;
|
|
21
|
+
const RichTextDocument_1 = require("./RichTextDocument");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the GetQuestionAnswerChoicesInner interface.
|
|
23
24
|
*/
|
|
@@ -39,7 +40,7 @@ function GetQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
42
|
'id': json['id'],
|
|
42
|
-
'text': json['text'],
|
|
43
|
+
'text': (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['text']),
|
|
43
44
|
'isCorrect': json['is_correct'],
|
|
44
45
|
};
|
|
45
46
|
}
|
|
@@ -52,7 +53,7 @@ function GetQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscriminator = f
|
|
|
52
53
|
}
|
|
53
54
|
return {
|
|
54
55
|
'id': value['id'],
|
|
55
|
-
'text': value['text'],
|
|
56
|
+
'text': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['text']),
|
|
56
57
|
'is_correct': value['isCorrect'],
|
|
57
58
|
};
|
|
58
59
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 GetRichTextAssetUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface GetRichTextAssetUpload {
|
|
18
|
+
/**
|
|
19
|
+
* Created pending asset ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetRichTextAssetUpload
|
|
22
|
+
*/
|
|
23
|
+
assetId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Presigned URL for direct upload
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetRichTextAssetUpload
|
|
28
|
+
*/
|
|
29
|
+
uploadUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
* Authenticated API URL that redirects to a signed asset URL once completed
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetRichTextAssetUpload
|
|
34
|
+
*/
|
|
35
|
+
renderUrl: string;
|
|
36
|
+
/**
|
|
37
|
+
* Upload URL lifetime
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetRichTextAssetUpload
|
|
40
|
+
*/
|
|
41
|
+
expiresInSeconds: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the GetRichTextAssetUpload interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfGetRichTextAssetUpload(value: object): value is GetRichTextAssetUpload;
|
|
47
|
+
export declare function GetRichTextAssetUploadFromJSON(json: any): GetRichTextAssetUpload;
|
|
48
|
+
export declare function GetRichTextAssetUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRichTextAssetUpload;
|
|
49
|
+
export declare function GetRichTextAssetUploadToJSON(json: any): GetRichTextAssetUpload;
|
|
50
|
+
export declare function GetRichTextAssetUploadToJSONTyped(value?: GetRichTextAssetUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfGetRichTextAssetUpload = instanceOfGetRichTextAssetUpload;
|
|
17
|
+
exports.GetRichTextAssetUploadFromJSON = GetRichTextAssetUploadFromJSON;
|
|
18
|
+
exports.GetRichTextAssetUploadFromJSONTyped = GetRichTextAssetUploadFromJSONTyped;
|
|
19
|
+
exports.GetRichTextAssetUploadToJSON = GetRichTextAssetUploadToJSON;
|
|
20
|
+
exports.GetRichTextAssetUploadToJSONTyped = GetRichTextAssetUploadToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetRichTextAssetUpload interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetRichTextAssetUpload(value) {
|
|
25
|
+
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('uploadUrl' in value) || value['uploadUrl'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('renderUrl' in value) || value['renderUrl'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('expiresInSeconds' in value) || value['expiresInSeconds'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function GetRichTextAssetUploadFromJSON(json) {
|
|
36
|
+
return GetRichTextAssetUploadFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function GetRichTextAssetUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'assetId': json['asset_id'],
|
|
44
|
+
'uploadUrl': json['upload_url'],
|
|
45
|
+
'renderUrl': json['render_url'],
|
|
46
|
+
'expiresInSeconds': json['expires_in_seconds'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function GetRichTextAssetUploadToJSON(json) {
|
|
50
|
+
return GetRichTextAssetUploadToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function GetRichTextAssetUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'asset_id': value['assetId'],
|
|
58
|
+
'upload_url': value['uploadUrl'],
|
|
59
|
+
'render_url': value['renderUrl'],
|
|
60
|
+
'expires_in_seconds': value['expiresInSeconds'],
|
|
61
|
+
};
|
|
62
|
+
}
|