@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,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,57 @@
|
|
|
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 QuestionImportSource interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfQuestionImportSource(value) {
|
|
18
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('originalFilename' in value) || value['originalFilename'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('mediaType' in value) || value['mediaType'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('fileSha256' in value) || value['fileSha256'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function QuestionImportSourceFromJSON(json) {
|
|
29
|
+
return QuestionImportSourceFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function QuestionImportSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'label': json['label'],
|
|
37
|
+
'detectedTitle': json['detected_title'] == null ? undefined : json['detected_title'],
|
|
38
|
+
'originalFilename': json['original_filename'],
|
|
39
|
+
'mediaType': json['media_type'],
|
|
40
|
+
'fileSha256': json['file_sha256'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function QuestionImportSourceToJSON(json) {
|
|
44
|
+
return QuestionImportSourceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function QuestionImportSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'label': value['label'],
|
|
52
|
+
'detected_title': value['detectedTitle'],
|
|
53
|
+
'original_filename': value['originalFilename'],
|
|
54
|
+
'media_type': value['mediaType'],
|
|
55
|
+
'file_sha256': value['fileSha256'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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,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
|
+
* Check if a given object implements the QuestionImportSourceSummary interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfQuestionImportSourceSummary(value) {
|
|
18
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('originalFilename' in value) || value['originalFilename'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('importedAt' in value) || value['importedAt'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function QuestionImportSourceSummaryFromJSON(json) {
|
|
27
|
+
return QuestionImportSourceSummaryFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function QuestionImportSourceSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'label': json['label'],
|
|
35
|
+
'originalFilename': json['original_filename'],
|
|
36
|
+
'sourceKey': json['source_key'] == null ? undefined : json['source_key'],
|
|
37
|
+
'importedAt': (new Date(json['imported_at'])),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function QuestionImportSourceSummaryToJSON(json) {
|
|
41
|
+
return QuestionImportSourceSummaryToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function QuestionImportSourceSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'label': value['label'],
|
|
49
|
+
'original_filename': value['originalFilename'],
|
|
50
|
+
'source_key': value['sourceKey'],
|
|
51
|
+
'imported_at': value['importedAt'].toISOString(),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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/esm/models/index.js
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';
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { RichTextDocument } from './RichTextDocument';
|
|
13
13
|
import type { ContentLibraryTag } from './ContentLibraryTag';
|
|
14
14
|
import type { GetQuestionAnswerChoicesInner } from './GetQuestionAnswerChoicesInner';
|
|
15
|
+
import type { QuestionImportSourceSummary } from './QuestionImportSourceSummary';
|
|
15
16
|
import type { GetQuestionQuizzesInner } from './GetQuestionQuizzesInner';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
@@ -73,6 +74,18 @@ export interface GetQuestion {
|
|
|
73
74
|
* @memberof GetQuestion
|
|
74
75
|
*/
|
|
75
76
|
readonly versionNumber: number;
|
|
77
|
+
/**
|
|
78
|
+
* Whether this is the current editable version in the question history
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof GetQuestion
|
|
81
|
+
*/
|
|
82
|
+
readonly isLatestVersion: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Optional note describing why this version was created
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof GetQuestion
|
|
87
|
+
*/
|
|
88
|
+
versionCreatedReason?: string;
|
|
76
89
|
/**
|
|
77
90
|
* When the question was created
|
|
78
91
|
* @type {Date}
|
|
@@ -103,6 +116,12 @@ export interface GetQuestion {
|
|
|
103
116
|
* @memberof GetQuestion
|
|
104
117
|
*/
|
|
105
118
|
readonly quizzes?: Array<GetQuestionQuizzesInner>;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {QuestionImportSourceSummary}
|
|
122
|
+
* @memberof GetQuestion
|
|
123
|
+
*/
|
|
124
|
+
importSource?: QuestionImportSourceSummary;
|
|
106
125
|
}
|
|
107
126
|
/**
|
|
108
127
|
* @export
|
|
@@ -123,4 +142,4 @@ export declare function instanceOfGetQuestion(value: object): value is GetQuesti
|
|
|
123
142
|
export declare function GetQuestionFromJSON(json: any): GetQuestion;
|
|
124
143
|
export declare function GetQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetQuestion;
|
|
125
144
|
export declare function GetQuestionToJSON(json: any): GetQuestion;
|
|
126
|
-
export declare function GetQuestionToJSONTyped(value?: Omit<GetQuestion, 'id' | 'version_number' | 'created_date' | 'updated_date' | 'created_by' | 'quiz_count' | 'quizzes'> | null, ignoreDiscriminator?: boolean): any;
|
|
145
|
+
export declare function GetQuestionToJSONTyped(value?: Omit<GetQuestion, 'id' | 'version_number' | 'is_latest_version' | 'created_date' | 'updated_date' | 'created_by' | 'quiz_count' | 'quizzes'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -22,6 +22,7 @@ exports.GetQuestionToJSONTyped = GetQuestionToJSONTyped;
|
|
|
22
22
|
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
23
|
const ContentLibraryTag_1 = require("./ContentLibraryTag");
|
|
24
24
|
const GetQuestionAnswerChoicesInner_1 = require("./GetQuestionAnswerChoicesInner");
|
|
25
|
+
const QuestionImportSourceSummary_1 = require("./QuestionImportSourceSummary");
|
|
25
26
|
const GetQuestionQuizzesInner_1 = require("./GetQuestionQuizzesInner");
|
|
26
27
|
/**
|
|
27
28
|
* @export
|
|
@@ -46,6 +47,8 @@ function instanceOfGetQuestion(value) {
|
|
|
46
47
|
return false;
|
|
47
48
|
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
48
49
|
return false;
|
|
50
|
+
if (!('isLatestVersion' in value) || value['isLatestVersion'] === undefined)
|
|
51
|
+
return false;
|
|
49
52
|
if (!('createdDate' in value) || value['createdDate'] === undefined)
|
|
50
53
|
return false;
|
|
51
54
|
if (!('updatedDate' in value) || value['updatedDate'] === undefined)
|
|
@@ -69,11 +72,14 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
72
|
'tags': json['tags'] == null ? undefined : (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
|
|
70
73
|
'version': json['version'] == null ? undefined : json['version'],
|
|
71
74
|
'versionNumber': json['version_number'],
|
|
75
|
+
'isLatestVersion': json['is_latest_version'],
|
|
76
|
+
'versionCreatedReason': json['version_created_reason'] == null ? undefined : json['version_created_reason'],
|
|
72
77
|
'createdDate': (new Date(json['created_date'])),
|
|
73
78
|
'updatedDate': (new Date(json['updated_date'])),
|
|
74
79
|
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
75
80
|
'quizCount': json['quiz_count'] == null ? undefined : json['quiz_count'],
|
|
76
81
|
'quizzes': json['quizzes'] == null ? undefined : (json['quizzes'].map(GetQuestionQuizzesInner_1.GetQuestionQuizzesInnerFromJSON)),
|
|
82
|
+
'importSource': json['import_source'] == null ? undefined : (0, QuestionImportSourceSummary_1.QuestionImportSourceSummaryFromJSON)(json['import_source']),
|
|
77
83
|
};
|
|
78
84
|
}
|
|
79
85
|
function GetQuestionToJSON(json) {
|
|
@@ -91,5 +97,7 @@ function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
91
97
|
'explanation': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanation']),
|
|
92
98
|
'tags': value['tags'] == null ? undefined : (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
|
|
93
99
|
'version': value['version'],
|
|
100
|
+
'version_created_reason': value['versionCreatedReason'],
|
|
101
|
+
'import_source': (0, QuestionImportSourceSummary_1.QuestionImportSourceSummaryToJSON)(value['importSource']),
|
|
94
102
|
};
|
|
95
103
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { PostQuestionImportCommitItem } from './PostQuestionImportCommitItem';
|
|
13
|
+
import type { QuestionImportPreviewImage } from './QuestionImportPreviewImage';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PostQuestionImportCommit
|
|
18
|
+
*/
|
|
19
|
+
export interface PostQuestionImportCommit {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PostQuestionImportCommit
|
|
24
|
+
*/
|
|
25
|
+
importToken: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PostQuestionImportCommit
|
|
30
|
+
*/
|
|
31
|
+
sourceLabel: string;
|
|
32
|
+
/**
|
|
33
|
+
* Tags applied to every created question in addition to per-question tags
|
|
34
|
+
* @type {Array<string>}
|
|
35
|
+
* @memberof PostQuestionImportCommit
|
|
36
|
+
*/
|
|
37
|
+
tags?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<PostQuestionImportCommitItem>}
|
|
41
|
+
* @memberof PostQuestionImportCommit
|
|
42
|
+
*/
|
|
43
|
+
questions: Array<PostQuestionImportCommitItem>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<QuestionImportPreviewImage>}
|
|
47
|
+
* @memberof PostQuestionImportCommit
|
|
48
|
+
*/
|
|
49
|
+
images: Array<QuestionImportPreviewImage>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PostQuestionImportCommit interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfPostQuestionImportCommit(value: object): value is PostQuestionImportCommit;
|
|
55
|
+
export declare function PostQuestionImportCommitFromJSON(json: any): PostQuestionImportCommit;
|
|
56
|
+
export declare function PostQuestionImportCommitFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuestionImportCommit;
|
|
57
|
+
export declare function PostQuestionImportCommitToJSON(json: any): PostQuestionImportCommit;
|
|
58
|
+
export declare function PostQuestionImportCommitToJSONTyped(value?: PostQuestionImportCommit | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfPostQuestionImportCommit = instanceOfPostQuestionImportCommit;
|
|
17
|
+
exports.PostQuestionImportCommitFromJSON = PostQuestionImportCommitFromJSON;
|
|
18
|
+
exports.PostQuestionImportCommitFromJSONTyped = PostQuestionImportCommitFromJSONTyped;
|
|
19
|
+
exports.PostQuestionImportCommitToJSON = PostQuestionImportCommitToJSON;
|
|
20
|
+
exports.PostQuestionImportCommitToJSONTyped = PostQuestionImportCommitToJSONTyped;
|
|
21
|
+
const PostQuestionImportCommitItem_1 = require("./PostQuestionImportCommitItem");
|
|
22
|
+
const QuestionImportPreviewImage_1 = require("./QuestionImportPreviewImage");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PostQuestionImportCommit interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPostQuestionImportCommit(value) {
|
|
27
|
+
if (!('importToken' in value) || value['importToken'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('sourceLabel' in value) || value['sourceLabel'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('questions' in value) || value['questions'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('images' in value) || value['images'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PostQuestionImportCommitFromJSON(json) {
|
|
38
|
+
return PostQuestionImportCommitFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PostQuestionImportCommitFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'importToken': json['import_token'],
|
|
46
|
+
'sourceLabel': json['source_label'],
|
|
47
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
48
|
+
'questions': (json['questions'].map(PostQuestionImportCommitItem_1.PostQuestionImportCommitItemFromJSON)),
|
|
49
|
+
'images': (json['images'].map(QuestionImportPreviewImage_1.QuestionImportPreviewImageFromJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function PostQuestionImportCommitToJSON(json) {
|
|
53
|
+
return PostQuestionImportCommitToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function PostQuestionImportCommitToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'import_token': value['importToken'],
|
|
61
|
+
'source_label': value['sourceLabel'],
|
|
62
|
+
'tags': value['tags'],
|
|
63
|
+
'questions': (value['questions'].map(PostQuestionImportCommitItem_1.PostQuestionImportCommitItemToJSON)),
|
|
64
|
+
'images': (value['images'].map(QuestionImportPreviewImage_1.QuestionImportPreviewImageToJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { PostQuestion } from './PostQuestion';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostQuestionImportCommitItem
|
|
17
|
+
*/
|
|
18
|
+
export interface PostQuestionImportCommitItem {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PostQuestionImportCommitItem
|
|
23
|
+
*/
|
|
24
|
+
draftId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Create a separate question, create a new version of the matched question, or skip the draft
|
|
27
|
+
* @type {PostQuestionImportCommitItemActionEnum}
|
|
28
|
+
* @memberof PostQuestionImportCommitItem
|
|
29
|
+
*/
|
|
30
|
+
action: PostQuestionImportCommitItemActionEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Matched question to version; required only when action is create_version and must match the signed parse result
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PostQuestionImportCommitItem
|
|
35
|
+
*/
|
|
36
|
+
targetQuestionId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PostQuestionImportCommitItem
|
|
41
|
+
*/
|
|
42
|
+
sourceKey?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PostQuestionImportCommitItem
|
|
47
|
+
*/
|
|
48
|
+
sourceLocation?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {PostQuestion}
|
|
52
|
+
* @memberof PostQuestionImportCommitItem
|
|
53
|
+
*/
|
|
54
|
+
question: PostQuestion;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const PostQuestionImportCommitItemActionEnum: {
|
|
60
|
+
readonly Create: "create";
|
|
61
|
+
readonly CreateVersion: "create_version";
|
|
62
|
+
readonly Skip: "skip";
|
|
63
|
+
};
|
|
64
|
+
export type PostQuestionImportCommitItemActionEnum = typeof PostQuestionImportCommitItemActionEnum[keyof typeof PostQuestionImportCommitItemActionEnum];
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the PostQuestionImportCommitItem interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfPostQuestionImportCommitItem(value: object): value is PostQuestionImportCommitItem;
|
|
69
|
+
export declare function PostQuestionImportCommitItemFromJSON(json: any): PostQuestionImportCommitItem;
|
|
70
|
+
export declare function PostQuestionImportCommitItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuestionImportCommitItem;
|
|
71
|
+
export declare function PostQuestionImportCommitItemToJSON(json: any): PostQuestionImportCommitItem;
|
|
72
|
+
export declare function PostQuestionImportCommitItemToJSONTyped(value?: PostQuestionImportCommitItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.PostQuestionImportCommitItemActionEnum = void 0;
|
|
17
|
+
exports.instanceOfPostQuestionImportCommitItem = instanceOfPostQuestionImportCommitItem;
|
|
18
|
+
exports.PostQuestionImportCommitItemFromJSON = PostQuestionImportCommitItemFromJSON;
|
|
19
|
+
exports.PostQuestionImportCommitItemFromJSONTyped = PostQuestionImportCommitItemFromJSONTyped;
|
|
20
|
+
exports.PostQuestionImportCommitItemToJSON = PostQuestionImportCommitItemToJSON;
|
|
21
|
+
exports.PostQuestionImportCommitItemToJSONTyped = PostQuestionImportCommitItemToJSONTyped;
|
|
22
|
+
const PostQuestion_1 = require("./PostQuestion");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.PostQuestionImportCommitItemActionEnum = {
|
|
27
|
+
Create: 'create',
|
|
28
|
+
CreateVersion: 'create_version',
|
|
29
|
+
Skip: 'skip'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PostQuestionImportCommitItem interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfPostQuestionImportCommitItem(value) {
|
|
35
|
+
if (!('draftId' in value) || value['draftId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('question' in value) || value['question'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function PostQuestionImportCommitItemFromJSON(json) {
|
|
44
|
+
return PostQuestionImportCommitItemFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PostQuestionImportCommitItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'draftId': json['draft_id'],
|
|
52
|
+
'action': json['action'],
|
|
53
|
+
'targetQuestionId': json['target_question_id'] == null ? undefined : json['target_question_id'],
|
|
54
|
+
'sourceKey': json['source_key'] == null ? undefined : json['source_key'],
|
|
55
|
+
'sourceLocation': json['source_location'] == null ? undefined : json['source_location'],
|
|
56
|
+
'question': (0, PostQuestion_1.PostQuestionFromJSON)(json['question']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function PostQuestionImportCommitItemToJSON(json) {
|
|
60
|
+
return PostQuestionImportCommitItemToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function PostQuestionImportCommitItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'draft_id': value['draftId'],
|
|
68
|
+
'action': value['action'],
|
|
69
|
+
'target_question_id': value['targetQuestionId'],
|
|
70
|
+
'source_key': value['sourceKey'],
|
|
71
|
+
'source_location': value['sourceLocation'],
|
|
72
|
+
'question': (0, PostQuestion_1.PostQuestionToJSON)(value['question']),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { QuestionImportCommitResult } from './QuestionImportCommitResult';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostQuestionImportCommitResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PostQuestionImportCommitResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof PostQuestionImportCommitResponse
|
|
23
|
+
*/
|
|
24
|
+
createdCount: number;
|
|
25
|
+
/**
|
|
26
|
+
* Number of created rows that are new versions of existing questions
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PostQuestionImportCommitResponse
|
|
29
|
+
*/
|
|
30
|
+
versionedCount: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PostQuestionImportCommitResponse
|
|
35
|
+
*/
|
|
36
|
+
skippedCount: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<QuestionImportCommitResult>}
|
|
40
|
+
* @memberof PostQuestionImportCommitResponse
|
|
41
|
+
*/
|
|
42
|
+
items: Array<QuestionImportCommitResult>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PostQuestionImportCommitResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPostQuestionImportCommitResponse(value: object): value is PostQuestionImportCommitResponse;
|
|
48
|
+
export declare function PostQuestionImportCommitResponseFromJSON(json: any): PostQuestionImportCommitResponse;
|
|
49
|
+
export declare function PostQuestionImportCommitResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuestionImportCommitResponse;
|
|
50
|
+
export declare function PostQuestionImportCommitResponseToJSON(json: any): PostQuestionImportCommitResponse;
|
|
51
|
+
export declare function PostQuestionImportCommitResponseToJSONTyped(value?: PostQuestionImportCommitResponse | null, ignoreDiscriminator?: boolean): any;
|