@easyedu/js-lsm-api 1.111.0 → 1.112.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 +14 -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/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 +7 -0
- package/dist/esm/models/GetQuestion.js +3 -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/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 +7 -0
- package/dist/models/GetQuestion.js +3 -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/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 +2 -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/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/QuestionImportApi.ts +162 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetQuestion.ts +15 -0
- 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/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,76 @@
|
|
|
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 { QuestionImportDuplicate } from './QuestionImportDuplicate';
|
|
13
|
+
import type { PostQuestion } from './PostQuestion';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface QuestionImportDraft
|
|
18
|
+
*/
|
|
19
|
+
export interface QuestionImportDraft {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof QuestionImportDraft
|
|
24
|
+
*/
|
|
25
|
+
draftId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof QuestionImportDraft
|
|
30
|
+
*/
|
|
31
|
+
sourceKey?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof QuestionImportDraft
|
|
36
|
+
*/
|
|
37
|
+
sourceLocation?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PostQuestion}
|
|
41
|
+
* @memberof QuestionImportDraft
|
|
42
|
+
*/
|
|
43
|
+
question: PostQuestion;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {QuestionImportDuplicate}
|
|
47
|
+
* @memberof QuestionImportDraft
|
|
48
|
+
*/
|
|
49
|
+
duplicate: QuestionImportDuplicate;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof QuestionImportDraft
|
|
54
|
+
*/
|
|
55
|
+
warnings: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof QuestionImportDraft
|
|
60
|
+
*/
|
|
61
|
+
confidence: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof QuestionImportDraft
|
|
66
|
+
*/
|
|
67
|
+
included: boolean;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the QuestionImportDraft interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfQuestionImportDraft(value: object): value is QuestionImportDraft;
|
|
73
|
+
export declare function QuestionImportDraftFromJSON(json: any): QuestionImportDraft;
|
|
74
|
+
export declare function QuestionImportDraftFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportDraft;
|
|
75
|
+
export declare function QuestionImportDraftToJSON(json: any): QuestionImportDraft;
|
|
76
|
+
export declare function QuestionImportDraftToJSONTyped(value?: QuestionImportDraft | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.instanceOfQuestionImportDraft = instanceOfQuestionImportDraft;
|
|
17
|
+
exports.QuestionImportDraftFromJSON = QuestionImportDraftFromJSON;
|
|
18
|
+
exports.QuestionImportDraftFromJSONTyped = QuestionImportDraftFromJSONTyped;
|
|
19
|
+
exports.QuestionImportDraftToJSON = QuestionImportDraftToJSON;
|
|
20
|
+
exports.QuestionImportDraftToJSONTyped = QuestionImportDraftToJSONTyped;
|
|
21
|
+
const QuestionImportDuplicate_1 = require("./QuestionImportDuplicate");
|
|
22
|
+
const PostQuestion_1 = require("./PostQuestion");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the QuestionImportDraft interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfQuestionImportDraft(value) {
|
|
27
|
+
if (!('draftId' in value) || value['draftId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('question' in value) || value['question'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('duplicate' in value) || value['duplicate'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('warnings' in value) || value['warnings'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('included' in value) || value['included'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function QuestionImportDraftFromJSON(json) {
|
|
42
|
+
return QuestionImportDraftFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function QuestionImportDraftFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'draftId': json['draft_id'],
|
|
50
|
+
'sourceKey': json['source_key'] == null ? undefined : json['source_key'],
|
|
51
|
+
'sourceLocation': json['source_location'] == null ? undefined : json['source_location'],
|
|
52
|
+
'question': (0, PostQuestion_1.PostQuestionFromJSON)(json['question']),
|
|
53
|
+
'duplicate': (0, QuestionImportDuplicate_1.QuestionImportDuplicateFromJSON)(json['duplicate']),
|
|
54
|
+
'warnings': json['warnings'],
|
|
55
|
+
'confidence': json['confidence'],
|
|
56
|
+
'included': json['included'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function QuestionImportDraftToJSON(json) {
|
|
60
|
+
return QuestionImportDraftToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function QuestionImportDraftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'draft_id': value['draftId'],
|
|
68
|
+
'source_key': value['sourceKey'],
|
|
69
|
+
'source_location': value['sourceLocation'],
|
|
70
|
+
'question': (0, PostQuestion_1.PostQuestionToJSON)(value['question']),
|
|
71
|
+
'duplicate': (0, QuestionImportDuplicate_1.QuestionImportDuplicateToJSON)(value['duplicate']),
|
|
72
|
+
'warnings': value['warnings'],
|
|
73
|
+
'confidence': value['confidence'],
|
|
74
|
+
'included': value['included'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 QuestionImportDuplicate
|
|
16
|
+
*/
|
|
17
|
+
export interface QuestionImportDuplicate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {QuestionImportDuplicateStatusEnum}
|
|
21
|
+
* @memberof QuestionImportDuplicate
|
|
22
|
+
*/
|
|
23
|
+
status: QuestionImportDuplicateStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof QuestionImportDuplicate
|
|
28
|
+
*/
|
|
29
|
+
matchedQuestionId?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof QuestionImportDuplicate
|
|
34
|
+
*/
|
|
35
|
+
matchedDraftId?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof QuestionImportDuplicate
|
|
40
|
+
*/
|
|
41
|
+
matchedQuestionText?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof QuestionImportDuplicate
|
|
46
|
+
*/
|
|
47
|
+
similarity: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const QuestionImportDuplicateStatusEnum: {
|
|
53
|
+
readonly New: "new";
|
|
54
|
+
readonly Exact: "exact";
|
|
55
|
+
readonly Possible: "possible";
|
|
56
|
+
readonly WithinUpload: "within_upload";
|
|
57
|
+
};
|
|
58
|
+
export type QuestionImportDuplicateStatusEnum = typeof QuestionImportDuplicateStatusEnum[keyof typeof QuestionImportDuplicateStatusEnum];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the QuestionImportDuplicate interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfQuestionImportDuplicate(value: object): value is QuestionImportDuplicate;
|
|
63
|
+
export declare function QuestionImportDuplicateFromJSON(json: any): QuestionImportDuplicate;
|
|
64
|
+
export declare function QuestionImportDuplicateFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportDuplicate;
|
|
65
|
+
export declare function QuestionImportDuplicateToJSON(json: any): QuestionImportDuplicate;
|
|
66
|
+
export declare function QuestionImportDuplicateToJSONTyped(value?: QuestionImportDuplicate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.QuestionImportDuplicateStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfQuestionImportDuplicate = instanceOfQuestionImportDuplicate;
|
|
18
|
+
exports.QuestionImportDuplicateFromJSON = QuestionImportDuplicateFromJSON;
|
|
19
|
+
exports.QuestionImportDuplicateFromJSONTyped = QuestionImportDuplicateFromJSONTyped;
|
|
20
|
+
exports.QuestionImportDuplicateToJSON = QuestionImportDuplicateToJSON;
|
|
21
|
+
exports.QuestionImportDuplicateToJSONTyped = QuestionImportDuplicateToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.QuestionImportDuplicateStatusEnum = {
|
|
26
|
+
New: 'new',
|
|
27
|
+
Exact: 'exact',
|
|
28
|
+
Possible: 'possible',
|
|
29
|
+
WithinUpload: 'within_upload'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the QuestionImportDuplicate interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfQuestionImportDuplicate(value) {
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('similarity' in value) || value['similarity'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function QuestionImportDuplicateFromJSON(json) {
|
|
42
|
+
return QuestionImportDuplicateFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function QuestionImportDuplicateFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'status': json['status'],
|
|
50
|
+
'matchedQuestionId': json['matched_question_id'] == null ? undefined : json['matched_question_id'],
|
|
51
|
+
'matchedDraftId': json['matched_draft_id'] == null ? undefined : json['matched_draft_id'],
|
|
52
|
+
'matchedQuestionText': json['matched_question_text'] == null ? undefined : json['matched_question_text'],
|
|
53
|
+
'similarity': json['similarity'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function QuestionImportDuplicateToJSON(json) {
|
|
57
|
+
return QuestionImportDuplicateToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function QuestionImportDuplicateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'status': value['status'],
|
|
65
|
+
'matched_question_id': value['matchedQuestionId'],
|
|
66
|
+
'matched_draft_id': value['matchedDraftId'],
|
|
67
|
+
'matched_question_text': value['matchedQuestionText'],
|
|
68
|
+
'similarity': value['similarity'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -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
|
+
}
|