@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,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface QuestionImportSource
|
|
20
|
+
*/
|
|
21
|
+
export interface QuestionImportSource {
|
|
22
|
+
/**
|
|
23
|
+
* Editable source label proposed from the detected quiz title or filename
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof QuestionImportSource
|
|
26
|
+
*/
|
|
27
|
+
label: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof QuestionImportSource
|
|
32
|
+
*/
|
|
33
|
+
detectedTitle?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof QuestionImportSource
|
|
38
|
+
*/
|
|
39
|
+
originalFilename: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof QuestionImportSource
|
|
44
|
+
*/
|
|
45
|
+
mediaType: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof QuestionImportSource
|
|
50
|
+
*/
|
|
51
|
+
fileSha256: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the QuestionImportSource interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfQuestionImportSource(value: object): value is QuestionImportSource {
|
|
58
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
59
|
+
if (!('originalFilename' in value) || value['originalFilename'] === undefined) return false;
|
|
60
|
+
if (!('mediaType' in value) || value['mediaType'] === undefined) return false;
|
|
61
|
+
if (!('fileSha256' in value) || value['fileSha256'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function QuestionImportSourceFromJSON(json: any): QuestionImportSource {
|
|
66
|
+
return QuestionImportSourceFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function QuestionImportSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportSource {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'label': json['label'],
|
|
76
|
+
'detectedTitle': json['detected_title'] == null ? undefined : json['detected_title'],
|
|
77
|
+
'originalFilename': json['original_filename'],
|
|
78
|
+
'mediaType': json['media_type'],
|
|
79
|
+
'fileSha256': json['file_sha256'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function QuestionImportSourceToJSON(json: any): QuestionImportSource {
|
|
84
|
+
return QuestionImportSourceToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function QuestionImportSourceToJSONTyped(value?: QuestionImportSource | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'label': value['label'],
|
|
95
|
+
'detected_title': value['detectedTitle'],
|
|
96
|
+
'original_filename': value['originalFilename'],
|
|
97
|
+
'media_type': value['mediaType'],
|
|
98
|
+
'file_sha256': value['fileSha256'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface QuestionImportSourceSummary
|
|
20
|
+
*/
|
|
21
|
+
export interface QuestionImportSourceSummary {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof QuestionImportSourceSummary
|
|
26
|
+
*/
|
|
27
|
+
label: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof QuestionImportSourceSummary
|
|
32
|
+
*/
|
|
33
|
+
originalFilename: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof QuestionImportSourceSummary
|
|
38
|
+
*/
|
|
39
|
+
sourceKey?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof QuestionImportSourceSummary
|
|
44
|
+
*/
|
|
45
|
+
importedAt: Date;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the QuestionImportSourceSummary interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfQuestionImportSourceSummary(value: object): value is QuestionImportSourceSummary {
|
|
52
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
53
|
+
if (!('originalFilename' in value) || value['originalFilename'] === undefined) return false;
|
|
54
|
+
if (!('importedAt' in value) || value['importedAt'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function QuestionImportSourceSummaryFromJSON(json: any): QuestionImportSourceSummary {
|
|
59
|
+
return QuestionImportSourceSummaryFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function QuestionImportSourceSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportSourceSummary {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'label': json['label'],
|
|
69
|
+
'originalFilename': json['original_filename'],
|
|
70
|
+
'sourceKey': json['source_key'] == null ? undefined : json['source_key'],
|
|
71
|
+
'importedAt': (new Date(json['imported_at'])),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function QuestionImportSourceSummaryToJSON(json: any): QuestionImportSourceSummary {
|
|
76
|
+
return QuestionImportSourceSummaryToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function QuestionImportSourceSummaryToJSONTyped(value?: QuestionImportSourceSummary | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'label': value['label'],
|
|
87
|
+
'original_filename': value['originalFilename'],
|
|
88
|
+
'source_key': value['sourceKey'],
|
|
89
|
+
'imported_at': value['importedAt'].toISOString(),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -231,6 +231,10 @@ export * from './PostPortal';
|
|
|
231
231
|
export * from './PostPortalInvite';
|
|
232
232
|
export * from './PostQuestion';
|
|
233
233
|
export * from './PostQuestionAnswerChoicesInner';
|
|
234
|
+
export * from './PostQuestionImportCommit';
|
|
235
|
+
export * from './PostQuestionImportCommitItem';
|
|
236
|
+
export * from './PostQuestionImportCommitResponse';
|
|
237
|
+
export * from './PostQuestionImportParseResponse';
|
|
234
238
|
export * from './PostResetPassword';
|
|
235
239
|
export * from './PostResource';
|
|
236
240
|
export * from './PostResourceSessionActivityEvent';
|
|
@@ -284,6 +288,12 @@ export * from './PutRole';
|
|
|
284
288
|
export * from './PutRolePermissions';
|
|
285
289
|
export * from './PutSupportTicket';
|
|
286
290
|
export * from './PutUser';
|
|
291
|
+
export * from './QuestionImportCommitResult';
|
|
292
|
+
export * from './QuestionImportDraft';
|
|
293
|
+
export * from './QuestionImportDuplicate';
|
|
294
|
+
export * from './QuestionImportPreviewImage';
|
|
295
|
+
export * from './QuestionImportSource';
|
|
296
|
+
export * from './QuestionImportSourceSummary';
|
|
287
297
|
export * from './QuestionSelectionMethod';
|
|
288
298
|
export * from './ResourceSessionEnvironment';
|
|
289
299
|
export * from './ResourceSessionScormApiLogItem';
|