@easyedu/js-lsm-api 1.111.0 → 1.113.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 +22 -0
- package/README.md +16 -3
- package/dist/apis/QuestionApi.d.ts +17 -2
- package/dist/apis/QuestionApi.js +41 -2
- package/dist/apis/QuestionImportApi.d.ts +51 -0
- package/dist/apis/QuestionImportApi.js +135 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/QuestionApi.d.ts +17 -2
- package/dist/esm/apis/QuestionApi.js +41 -2
- package/dist/esm/apis/QuestionImportApi.d.ts +51 -0
- package/dist/esm/apis/QuestionImportApi.js +131 -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 +20 -1
- package/dist/esm/models/GetQuestion.js +8 -0
- package/dist/esm/models/PostQuestionImportCommit.d.ts +58 -0
- package/dist/esm/models/PostQuestionImportCommit.js +59 -0
- package/dist/esm/models/PostQuestionImportCommitItem.d.ts +72 -0
- package/dist/esm/models/PostQuestionImportCommitItem.js +66 -0
- package/dist/esm/models/PostQuestionImportCommitResponse.d.ts +51 -0
- package/dist/esm/models/PostQuestionImportCommitResponse.js +56 -0
- package/dist/esm/models/PostQuestionImportParseResponse.d.ts +71 -0
- package/dist/esm/models/PostQuestionImportParseResponse.js +70 -0
- package/dist/esm/models/PutQuestion.d.ts +6 -0
- package/dist/esm/models/PutQuestion.js +2 -0
- package/dist/esm/models/QuestionImportCommitResult.d.ts +53 -0
- package/dist/esm/models/QuestionImportCommitResult.js +57 -0
- package/dist/esm/models/QuestionImportDraft.d.ts +76 -0
- package/dist/esm/models/QuestionImportDraft.js +69 -0
- package/dist/esm/models/QuestionImportDuplicate.d.ts +66 -0
- package/dist/esm/models/QuestionImportDuplicate.js +62 -0
- package/dist/esm/models/QuestionImportPreviewImage.d.ts +84 -0
- package/dist/esm/models/QuestionImportPreviewImage.js +76 -0
- package/dist/esm/models/QuestionImportSource.d.ts +56 -0
- package/dist/esm/models/QuestionImportSource.js +57 -0
- package/dist/esm/models/QuestionImportSourceSummary.d.ts +50 -0
- package/dist/esm/models/QuestionImportSourceSummary.js +53 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/GetQuestion.d.ts +20 -1
- package/dist/models/GetQuestion.js +8 -0
- package/dist/models/PostQuestionImportCommit.d.ts +58 -0
- package/dist/models/PostQuestionImportCommit.js +66 -0
- package/dist/models/PostQuestionImportCommitItem.d.ts +72 -0
- package/dist/models/PostQuestionImportCommitItem.js +74 -0
- package/dist/models/PostQuestionImportCommitResponse.d.ts +51 -0
- package/dist/models/PostQuestionImportCommitResponse.js +63 -0
- package/dist/models/PostQuestionImportParseResponse.d.ts +71 -0
- package/dist/models/PostQuestionImportParseResponse.js +77 -0
- package/dist/models/PutQuestion.d.ts +6 -0
- package/dist/models/PutQuestion.js +2 -0
- package/dist/models/QuestionImportCommitResult.d.ts +53 -0
- package/dist/models/QuestionImportCommitResult.js +65 -0
- package/dist/models/QuestionImportDraft.d.ts +76 -0
- package/dist/models/QuestionImportDraft.js +76 -0
- package/dist/models/QuestionImportDuplicate.d.ts +66 -0
- package/dist/models/QuestionImportDuplicate.js +70 -0
- package/dist/models/QuestionImportPreviewImage.d.ts +84 -0
- package/dist/models/QuestionImportPreviewImage.js +84 -0
- package/dist/models/QuestionImportSource.d.ts +56 -0
- package/dist/models/QuestionImportSource.js +64 -0
- package/dist/models/QuestionImportSourceSummary.d.ts +50 -0
- package/dist/models/QuestionImportSourceSummary.js +60 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/GetQuestion.md +6 -0
- package/docs/PostQuestionImportCommit.md +42 -0
- package/docs/PostQuestionImportCommitItem.md +44 -0
- package/docs/PostQuestionImportCommitResponse.md +40 -0
- package/docs/PostQuestionImportParseResponse.md +46 -0
- package/docs/PutQuestion.md +2 -0
- package/docs/QuestionApi.md +70 -2
- package/docs/QuestionImportApi.md +149 -0
- package/docs/QuestionImportCommitResult.md +38 -0
- package/docs/QuestionImportDraft.md +48 -0
- package/docs/QuestionImportDuplicate.md +42 -0
- package/docs/QuestionImportPreviewImage.md +48 -0
- package/docs/QuestionImportSource.md +42 -0
- package/docs/QuestionImportSourceSummary.md +40 -0
- package/package.json +1 -1
- package/src/apis/QuestionApi.ts +51 -2
- package/src/apis/QuestionImportApi.ts +162 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetQuestion.ts +32 -1
- package/src/models/PostQuestionImportCommit.ts +116 -0
- package/src/models/PostQuestionImportCommitItem.ts +128 -0
- package/src/models/PostQuestionImportCommitResponse.ts +101 -0
- package/src/models/PostQuestionImportParseResponse.ts +142 -0
- package/src/models/PutQuestion.ts +8 -0
- package/src/models/QuestionImportCommitResult.ts +95 -0
- package/src/models/QuestionImportDraft.ts +142 -0
- package/src/models/QuestionImportDuplicate.ts +112 -0
- package/src/models/QuestionImportPreviewImage.ts +140 -0
- package/src/models/QuestionImportSource.ts +101 -0
- package/src/models/QuestionImportSourceSummary.ts +92 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,84 @@
|
|
|
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 QuestionImportPreviewImage
|
|
16
|
+
*/
|
|
17
|
+
export interface QuestionImportPreviewImage {
|
|
18
|
+
/**
|
|
19
|
+
* Import-scoped image identifier used by source: image placeholders
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof QuestionImportPreviewImage
|
|
22
|
+
*/
|
|
23
|
+
sourceId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof QuestionImportPreviewImage
|
|
28
|
+
*/
|
|
29
|
+
filename: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {QuestionImportPreviewImageMimeTypeEnum}
|
|
33
|
+
* @memberof QuestionImportPreviewImage
|
|
34
|
+
*/
|
|
35
|
+
mimeType: QuestionImportPreviewImageMimeTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof QuestionImportPreviewImage
|
|
40
|
+
*/
|
|
41
|
+
byteSize: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof QuestionImportPreviewImage
|
|
46
|
+
*/
|
|
47
|
+
width?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof QuestionImportPreviewImage
|
|
52
|
+
*/
|
|
53
|
+
height?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof QuestionImportPreviewImage
|
|
58
|
+
*/
|
|
59
|
+
sha256: string;
|
|
60
|
+
/**
|
|
61
|
+
* Base64 image bytes for stateless review; reposted unchanged when committing
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof QuestionImportPreviewImage
|
|
64
|
+
*/
|
|
65
|
+
dataBase64: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const QuestionImportPreviewImageMimeTypeEnum: {
|
|
71
|
+
readonly ImagePng: "image/png";
|
|
72
|
+
readonly ImageJpeg: "image/jpeg";
|
|
73
|
+
readonly ImageWebp: "image/webp";
|
|
74
|
+
readonly ImageGif: "image/gif";
|
|
75
|
+
};
|
|
76
|
+
export type QuestionImportPreviewImageMimeTypeEnum = typeof QuestionImportPreviewImageMimeTypeEnum[keyof typeof QuestionImportPreviewImageMimeTypeEnum];
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the QuestionImportPreviewImage interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfQuestionImportPreviewImage(value: object): value is QuestionImportPreviewImage;
|
|
81
|
+
export declare function QuestionImportPreviewImageFromJSON(json: any): QuestionImportPreviewImage;
|
|
82
|
+
export declare function QuestionImportPreviewImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportPreviewImage;
|
|
83
|
+
export declare function QuestionImportPreviewImageToJSON(json: any): QuestionImportPreviewImage;
|
|
84
|
+
export declare function QuestionImportPreviewImageToJSONTyped(value?: QuestionImportPreviewImage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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.QuestionImportPreviewImageMimeTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfQuestionImportPreviewImage = instanceOfQuestionImportPreviewImage;
|
|
18
|
+
exports.QuestionImportPreviewImageFromJSON = QuestionImportPreviewImageFromJSON;
|
|
19
|
+
exports.QuestionImportPreviewImageFromJSONTyped = QuestionImportPreviewImageFromJSONTyped;
|
|
20
|
+
exports.QuestionImportPreviewImageToJSON = QuestionImportPreviewImageToJSON;
|
|
21
|
+
exports.QuestionImportPreviewImageToJSONTyped = QuestionImportPreviewImageToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.QuestionImportPreviewImageMimeTypeEnum = {
|
|
26
|
+
ImagePng: 'image/png',
|
|
27
|
+
ImageJpeg: 'image/jpeg',
|
|
28
|
+
ImageWebp: 'image/webp',
|
|
29
|
+
ImageGif: 'image/gif'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the QuestionImportPreviewImage interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfQuestionImportPreviewImage(value) {
|
|
35
|
+
if (!('sourceId' in value) || value['sourceId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('filename' in value) || value['filename'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('byteSize' in value) || value['byteSize'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('sha256' in value) || value['sha256'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('dataBase64' in value) || value['dataBase64'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function QuestionImportPreviewImageFromJSON(json) {
|
|
50
|
+
return QuestionImportPreviewImageFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function QuestionImportPreviewImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'sourceId': json['source_id'],
|
|
58
|
+
'filename': json['filename'],
|
|
59
|
+
'mimeType': json['mime_type'],
|
|
60
|
+
'byteSize': json['byte_size'],
|
|
61
|
+
'width': json['width'] == null ? undefined : json['width'],
|
|
62
|
+
'height': json['height'] == null ? undefined : json['height'],
|
|
63
|
+
'sha256': json['sha256'],
|
|
64
|
+
'dataBase64': json['data_base64'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function QuestionImportPreviewImageToJSON(json) {
|
|
68
|
+
return QuestionImportPreviewImageToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function QuestionImportPreviewImageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'source_id': value['sourceId'],
|
|
76
|
+
'filename': value['filename'],
|
|
77
|
+
'mime_type': value['mimeType'],
|
|
78
|
+
'byte_size': value['byteSize'],
|
|
79
|
+
'width': value['width'],
|
|
80
|
+
'height': value['height'],
|
|
81
|
+
'sha256': value['sha256'],
|
|
82
|
+
'data_base64': value['dataBase64'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 QuestionImportSource
|
|
16
|
+
*/
|
|
17
|
+
export interface QuestionImportSource {
|
|
18
|
+
/**
|
|
19
|
+
* Editable source label proposed from the detected quiz title or filename
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof QuestionImportSource
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof QuestionImportSource
|
|
28
|
+
*/
|
|
29
|
+
detectedTitle?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof QuestionImportSource
|
|
34
|
+
*/
|
|
35
|
+
originalFilename: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof QuestionImportSource
|
|
40
|
+
*/
|
|
41
|
+
mediaType: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof QuestionImportSource
|
|
46
|
+
*/
|
|
47
|
+
fileSha256: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the QuestionImportSource interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfQuestionImportSource(value: object): value is QuestionImportSource;
|
|
53
|
+
export declare function QuestionImportSourceFromJSON(json: any): QuestionImportSource;
|
|
54
|
+
export declare function QuestionImportSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportSource;
|
|
55
|
+
export declare function QuestionImportSourceToJSON(json: any): QuestionImportSource;
|
|
56
|
+
export declare function QuestionImportSourceToJSONTyped(value?: QuestionImportSource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfQuestionImportSource = instanceOfQuestionImportSource;
|
|
17
|
+
exports.QuestionImportSourceFromJSON = QuestionImportSourceFromJSON;
|
|
18
|
+
exports.QuestionImportSourceFromJSONTyped = QuestionImportSourceFromJSONTyped;
|
|
19
|
+
exports.QuestionImportSourceToJSON = QuestionImportSourceToJSON;
|
|
20
|
+
exports.QuestionImportSourceToJSONTyped = QuestionImportSourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the QuestionImportSource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfQuestionImportSource(value) {
|
|
25
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('originalFilename' in value) || value['originalFilename'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('mediaType' in value) || value['mediaType'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('fileSha256' in value) || value['fileSha256'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function QuestionImportSourceFromJSON(json) {
|
|
36
|
+
return QuestionImportSourceFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function QuestionImportSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'label': json['label'],
|
|
44
|
+
'detectedTitle': json['detected_title'] == null ? undefined : json['detected_title'],
|
|
45
|
+
'originalFilename': json['original_filename'],
|
|
46
|
+
'mediaType': json['media_type'],
|
|
47
|
+
'fileSha256': json['file_sha256'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function QuestionImportSourceToJSON(json) {
|
|
51
|
+
return QuestionImportSourceToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function QuestionImportSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'label': value['label'],
|
|
59
|
+
'detected_title': value['detectedTitle'],
|
|
60
|
+
'original_filename': value['originalFilename'],
|
|
61
|
+
'media_type': value['mediaType'],
|
|
62
|
+
'file_sha256': value['fileSha256'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 QuestionImportSourceSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface QuestionImportSourceSummary {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof QuestionImportSourceSummary
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof QuestionImportSourceSummary
|
|
28
|
+
*/
|
|
29
|
+
originalFilename: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof QuestionImportSourceSummary
|
|
34
|
+
*/
|
|
35
|
+
sourceKey?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof QuestionImportSourceSummary
|
|
40
|
+
*/
|
|
41
|
+
importedAt: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the QuestionImportSourceSummary interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfQuestionImportSourceSummary(value: object): value is QuestionImportSourceSummary;
|
|
47
|
+
export declare function QuestionImportSourceSummaryFromJSON(json: any): QuestionImportSourceSummary;
|
|
48
|
+
export declare function QuestionImportSourceSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportSourceSummary;
|
|
49
|
+
export declare function QuestionImportSourceSummaryToJSON(json: any): QuestionImportSourceSummary;
|
|
50
|
+
export declare function QuestionImportSourceSummaryToJSONTyped(value?: QuestionImportSourceSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfQuestionImportSourceSummary = instanceOfQuestionImportSourceSummary;
|
|
17
|
+
exports.QuestionImportSourceSummaryFromJSON = QuestionImportSourceSummaryFromJSON;
|
|
18
|
+
exports.QuestionImportSourceSummaryFromJSONTyped = QuestionImportSourceSummaryFromJSONTyped;
|
|
19
|
+
exports.QuestionImportSourceSummaryToJSON = QuestionImportSourceSummaryToJSON;
|
|
20
|
+
exports.QuestionImportSourceSummaryToJSONTyped = QuestionImportSourceSummaryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the QuestionImportSourceSummary interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfQuestionImportSourceSummary(value) {
|
|
25
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('originalFilename' in value) || value['originalFilename'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('importedAt' in value) || value['importedAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function QuestionImportSourceSummaryFromJSON(json) {
|
|
34
|
+
return QuestionImportSourceSummaryFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function QuestionImportSourceSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'label': json['label'],
|
|
42
|
+
'originalFilename': json['original_filename'],
|
|
43
|
+
'sourceKey': json['source_key'] == null ? undefined : json['source_key'],
|
|
44
|
+
'importedAt': (new Date(json['imported_at'])),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function QuestionImportSourceSummaryToJSON(json) {
|
|
48
|
+
return QuestionImportSourceSummaryToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function QuestionImportSourceSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'label': value['label'],
|
|
56
|
+
'original_filename': value['originalFilename'],
|
|
57
|
+
'source_key': value['sourceKey'],
|
|
58
|
+
'imported_at': value['importedAt'].toISOString(),
|
|
59
|
+
};
|
|
60
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -229,6 +229,10 @@ export * from './PostPortal';
|
|
|
229
229
|
export * from './PostPortalInvite';
|
|
230
230
|
export * from './PostQuestion';
|
|
231
231
|
export * from './PostQuestionAnswerChoicesInner';
|
|
232
|
+
export * from './PostQuestionImportCommit';
|
|
233
|
+
export * from './PostQuestionImportCommitItem';
|
|
234
|
+
export * from './PostQuestionImportCommitResponse';
|
|
235
|
+
export * from './PostQuestionImportParseResponse';
|
|
232
236
|
export * from './PostResetPassword';
|
|
233
237
|
export * from './PostResource';
|
|
234
238
|
export * from './PostResourceSessionActivityEvent';
|
|
@@ -282,6 +286,12 @@ export * from './PutRole';
|
|
|
282
286
|
export * from './PutRolePermissions';
|
|
283
287
|
export * from './PutSupportTicket';
|
|
284
288
|
export * from './PutUser';
|
|
289
|
+
export * from './QuestionImportCommitResult';
|
|
290
|
+
export * from './QuestionImportDraft';
|
|
291
|
+
export * from './QuestionImportDuplicate';
|
|
292
|
+
export * from './QuestionImportPreviewImage';
|
|
293
|
+
export * from './QuestionImportSource';
|
|
294
|
+
export * from './QuestionImportSourceSummary';
|
|
285
295
|
export * from './QuestionSelectionMethod';
|
|
286
296
|
export * from './ResourceSessionEnvironment';
|
|
287
297
|
export * from './ResourceSessionScormApiLogItem';
|
package/dist/models/index.js
CHANGED
|
@@ -247,6 +247,10 @@ __exportStar(require("./PostPortal"), exports);
|
|
|
247
247
|
__exportStar(require("./PostPortalInvite"), exports);
|
|
248
248
|
__exportStar(require("./PostQuestion"), exports);
|
|
249
249
|
__exportStar(require("./PostQuestionAnswerChoicesInner"), exports);
|
|
250
|
+
__exportStar(require("./PostQuestionImportCommit"), exports);
|
|
251
|
+
__exportStar(require("./PostQuestionImportCommitItem"), exports);
|
|
252
|
+
__exportStar(require("./PostQuestionImportCommitResponse"), exports);
|
|
253
|
+
__exportStar(require("./PostQuestionImportParseResponse"), exports);
|
|
250
254
|
__exportStar(require("./PostResetPassword"), exports);
|
|
251
255
|
__exportStar(require("./PostResource"), exports);
|
|
252
256
|
__exportStar(require("./PostResourceSessionActivityEvent"), exports);
|
|
@@ -300,6 +304,12 @@ __exportStar(require("./PutRole"), exports);
|
|
|
300
304
|
__exportStar(require("./PutRolePermissions"), exports);
|
|
301
305
|
__exportStar(require("./PutSupportTicket"), exports);
|
|
302
306
|
__exportStar(require("./PutUser"), exports);
|
|
307
|
+
__exportStar(require("./QuestionImportCommitResult"), exports);
|
|
308
|
+
__exportStar(require("./QuestionImportDraft"), exports);
|
|
309
|
+
__exportStar(require("./QuestionImportDuplicate"), exports);
|
|
310
|
+
__exportStar(require("./QuestionImportPreviewImage"), exports);
|
|
311
|
+
__exportStar(require("./QuestionImportSource"), exports);
|
|
312
|
+
__exportStar(require("./QuestionImportSourceSummary"), exports);
|
|
303
313
|
__exportStar(require("./QuestionSelectionMethod"), exports);
|
|
304
314
|
__exportStar(require("./ResourceSessionEnvironment"), exports);
|
|
305
315
|
__exportStar(require("./ResourceSessionScormApiLogItem"), exports);
|
package/docs/GetQuestion.md
CHANGED
|
@@ -15,11 +15,14 @@ Name | Type
|
|
|
15
15
|
`tags` | [Array<ContentLibraryTag>](ContentLibraryTag.md)
|
|
16
16
|
`version` | string
|
|
17
17
|
`versionNumber` | number
|
|
18
|
+
`isLatestVersion` | boolean
|
|
19
|
+
`versionCreatedReason` | string
|
|
18
20
|
`createdDate` | Date
|
|
19
21
|
`updatedDate` | Date
|
|
20
22
|
`createdBy` | string
|
|
21
23
|
`quizCount` | number
|
|
22
24
|
`quizzes` | [Array<GetQuestionQuizzesInner>](GetQuestionQuizzesInner.md)
|
|
25
|
+
`importSource` | [QuestionImportSourceSummary](QuestionImportSourceSummary.md)
|
|
23
26
|
|
|
24
27
|
## Example
|
|
25
28
|
|
|
@@ -37,11 +40,14 @@ const example = {
|
|
|
37
40
|
"tags": null,
|
|
38
41
|
"version": null,
|
|
39
42
|
"versionNumber": null,
|
|
43
|
+
"isLatestVersion": null,
|
|
44
|
+
"versionCreatedReason": null,
|
|
40
45
|
"createdDate": null,
|
|
41
46
|
"updatedDate": null,
|
|
42
47
|
"createdBy": null,
|
|
43
48
|
"quizCount": null,
|
|
44
49
|
"quizzes": null,
|
|
50
|
+
"importSource": null,
|
|
45
51
|
} satisfies GetQuestion
|
|
46
52
|
|
|
47
53
|
console.log(example)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# PostQuestionImportCommit
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`importToken` | string
|
|
10
|
+
`sourceLabel` | string
|
|
11
|
+
`tags` | Array<string>
|
|
12
|
+
`questions` | [Array<PostQuestionImportCommitItem>](PostQuestionImportCommitItem.md)
|
|
13
|
+
`images` | [Array<QuestionImportPreviewImage>](QuestionImportPreviewImage.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PostQuestionImportCommit } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"importToken": null,
|
|
23
|
+
"sourceLabel": null,
|
|
24
|
+
"tags": null,
|
|
25
|
+
"questions": null,
|
|
26
|
+
"images": null,
|
|
27
|
+
} satisfies PostQuestionImportCommit
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostQuestionImportCommit
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# PostQuestionImportCommitItem
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`draftId` | string
|
|
10
|
+
`action` | string
|
|
11
|
+
`targetQuestionId` | string
|
|
12
|
+
`sourceKey` | string
|
|
13
|
+
`sourceLocation` | string
|
|
14
|
+
`question` | [PostQuestion](PostQuestion.md)
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { PostQuestionImportCommitItem } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"draftId": null,
|
|
24
|
+
"action": null,
|
|
25
|
+
"targetQuestionId": null,
|
|
26
|
+
"sourceKey": null,
|
|
27
|
+
"sourceLocation": null,
|
|
28
|
+
"question": null,
|
|
29
|
+
} satisfies PostQuestionImportCommitItem
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostQuestionImportCommitItem
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# PostQuestionImportCommitResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`createdCount` | number
|
|
10
|
+
`versionedCount` | number
|
|
11
|
+
`skippedCount` | number
|
|
12
|
+
`items` | [Array<QuestionImportCommitResult>](QuestionImportCommitResult.md)
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { PostQuestionImportCommitResponse } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"createdCount": null,
|
|
22
|
+
"versionedCount": null,
|
|
23
|
+
"skippedCount": null,
|
|
24
|
+
"items": null,
|
|
25
|
+
} satisfies PostQuestionImportCommitResponse
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostQuestionImportCommitResponse
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# PostQuestionImportParseResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`importToken` | string
|
|
10
|
+
`expiresAt` | Date
|
|
11
|
+
`source` | [QuestionImportSource](QuestionImportSource.md)
|
|
12
|
+
`questions` | [Array<QuestionImportDraft>](QuestionImportDraft.md)
|
|
13
|
+
`images` | [Array<QuestionImportPreviewImage>](QuestionImportPreviewImage.md)
|
|
14
|
+
`parser` | string
|
|
15
|
+
`warnings` | Array<string>
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { PostQuestionImportParseResponse } from '@easyedu/js-lsm-api'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"importToken": null,
|
|
25
|
+
"expiresAt": null,
|
|
26
|
+
"source": null,
|
|
27
|
+
"questions": null,
|
|
28
|
+
"images": null,
|
|
29
|
+
"parser": null,
|
|
30
|
+
"warnings": null,
|
|
31
|
+
} satisfies PostQuestionImportParseResponse
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostQuestionImportParseResponse
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
package/docs/PutQuestion.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`explanation` | [RichTextInput](RichTextInput.md)
|
|
14
14
|
`tags` | Array<string>
|
|
15
15
|
`version` | string
|
|
16
|
+
`versionReason` | string
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const example = {
|
|
|
28
29
|
"explanation": null,
|
|
29
30
|
"tags": null,
|
|
30
31
|
"version": null,
|
|
32
|
+
"versionReason": null,
|
|
31
33
|
} satisfies PutQuestion
|
|
32
34
|
|
|
33
35
|
console.log(example)
|