@easyedu/js-lsm-api 1.110.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 +42 -0
- package/README.md +33 -2
- package/dist/apis/LearnerExperienceApi.d.ts +153 -0
- package/dist/apis/LearnerExperienceApi.js +401 -0
- package/dist/apis/QuestionImportApi.d.ts +51 -0
- package/dist/apis/QuestionImportApi.js +135 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/LearnerExperienceApi.d.ts +153 -0
- package/dist/esm/apis/LearnerExperienceApi.js +397 -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 +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/GetEffectiveLearnerExperience.d.ts +62 -0
- package/dist/esm/models/GetEffectiveLearnerExperience.js +62 -0
- package/dist/esm/models/GetLearnerDashboard.d.ts +47 -0
- package/dist/esm/models/GetLearnerDashboard.js +54 -0
- package/dist/esm/models/GetLearnerDashboardCourseList.d.ts +39 -0
- package/dist/esm/models/GetLearnerDashboardCourseList.js +48 -0
- package/dist/esm/models/GetLearnerDashboardSummary.d.ts +56 -0
- package/dist/esm/models/GetLearnerDashboardSummary.js +59 -0
- package/dist/esm/models/GetLearnerExperience.d.ts +67 -0
- package/dist/esm/models/GetLearnerExperience.js +65 -0
- package/dist/esm/models/GetLearnerExperiencePreview.d.ts +40 -0
- package/dist/esm/models/GetLearnerExperiencePreview.js +47 -0
- package/dist/esm/models/GetQuestion.d.ts +7 -0
- package/dist/esm/models/GetQuestion.js +3 -0
- package/dist/esm/models/LearnerExperienceVersion.d.ts +86 -0
- package/dist/esm/models/LearnerExperienceVersion.js +76 -0
- package/dist/esm/models/PostLearnerExperiencePreview.d.ts +40 -0
- package/dist/esm/models/PostLearnerExperiencePreview.js +45 -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/PutLearnerExperienceDraft.d.ts +40 -0
- package/dist/esm/models/PutLearnerExperienceDraft.js +45 -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 +19 -0
- package/dist/esm/models/index.js +19 -0
- package/dist/models/GetEffectiveLearnerExperience.d.ts +62 -0
- package/dist/models/GetEffectiveLearnerExperience.js +70 -0
- package/dist/models/GetLearnerDashboard.d.ts +47 -0
- package/dist/models/GetLearnerDashboard.js +61 -0
- package/dist/models/GetLearnerDashboardCourseList.d.ts +39 -0
- package/dist/models/GetLearnerDashboardCourseList.js +55 -0
- package/dist/models/GetLearnerDashboardSummary.d.ts +56 -0
- package/dist/models/GetLearnerDashboardSummary.js +66 -0
- package/dist/models/GetLearnerExperience.d.ts +67 -0
- package/dist/models/GetLearnerExperience.js +73 -0
- package/dist/models/GetLearnerExperiencePreview.d.ts +40 -0
- package/dist/models/GetLearnerExperiencePreview.js +54 -0
- package/dist/models/GetQuestion.d.ts +7 -0
- package/dist/models/GetQuestion.js +3 -0
- package/dist/models/LearnerExperienceVersion.d.ts +86 -0
- package/dist/models/LearnerExperienceVersion.js +84 -0
- package/dist/models/PostLearnerExperiencePreview.d.ts +40 -0
- package/dist/models/PostLearnerExperiencePreview.js +52 -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/PutLearnerExperienceDraft.d.ts +40 -0
- package/dist/models/PutLearnerExperienceDraft.js +52 -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 +19 -0
- package/dist/models/index.js +19 -0
- package/docs/GetEffectiveLearnerExperience.md +40 -0
- package/docs/GetLearnerDashboard.md +38 -0
- package/docs/GetLearnerDashboardCourseList.md +36 -0
- package/docs/GetLearnerDashboardSummary.md +42 -0
- package/docs/GetLearnerExperience.md +42 -0
- package/docs/GetLearnerExperiencePreview.md +36 -0
- package/docs/GetQuestion.md +2 -0
- package/docs/LearnerExperienceApi.md +622 -0
- package/docs/LearnerExperienceVersion.md +48 -0
- package/docs/PostLearnerExperiencePreview.md +36 -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/PutLearnerExperienceDraft.md +36 -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/LearnerExperienceApi.ts +465 -0
- package/src/apis/QuestionImportApi.ts +162 -0
- package/src/apis/index.ts +2 -0
- package/src/models/GetEffectiveLearnerExperience.ts +105 -0
- package/src/models/GetLearnerDashboard.ts +106 -0
- package/src/models/GetLearnerDashboardCourseList.ts +83 -0
- package/src/models/GetLearnerDashboardSummary.ts +102 -0
- package/src/models/GetLearnerExperience.ts +121 -0
- package/src/models/GetLearnerExperiencePreview.ts +75 -0
- package/src/models/GetQuestion.ts +15 -0
- package/src/models/LearnerExperienceVersion.ts +140 -0
- package/src/models/PostLearnerExperiencePreview.ts +74 -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/PutLearnerExperienceDraft.ts +74 -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 +19 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { LearnerExperienceVersionFromJSON, LearnerExperienceVersionToJSON, } from './LearnerExperienceVersion';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const GetLearnerExperienceEffectiveSourceEnum = {
|
|
19
|
+
Portal: 'portal',
|
|
20
|
+
Ancestor: 'ancestor',
|
|
21
|
+
Platform: 'platform',
|
|
22
|
+
System: 'system'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetLearnerExperience interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfGetLearnerExperience(value) {
|
|
28
|
+
if (!('effectiveSource' in value) || value['effectiveSource'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('effectiveVersion' in value) || value['effectiveVersion'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('versions' in value) || value['versions'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function GetLearnerExperienceFromJSON(json) {
|
|
37
|
+
return GetLearnerExperienceFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function GetLearnerExperienceFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'effectiveSource': json['effective_source'],
|
|
45
|
+
'effectiveSourcePortalId': json['effective_source_portal_id'] == null ? undefined : json['effective_source_portal_id'],
|
|
46
|
+
'effectiveVersion': LearnerExperienceVersionFromJSON(json['effective_version']),
|
|
47
|
+
'draftVersion': json['draft_version'] == null ? undefined : LearnerExperienceVersionFromJSON(json['draft_version']),
|
|
48
|
+
'versions': (json['versions'].map(LearnerExperienceVersionFromJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function GetLearnerExperienceToJSON(json) {
|
|
52
|
+
return GetLearnerExperienceToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function GetLearnerExperienceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'effective_source': value['effectiveSource'],
|
|
60
|
+
'effective_source_portal_id': value['effectiveSourcePortalId'],
|
|
61
|
+
'effective_version': LearnerExperienceVersionToJSON(value['effectiveVersion']),
|
|
62
|
+
'draft_version': LearnerExperienceVersionToJSON(value['draftVersion']),
|
|
63
|
+
'versions': (value['versions'].map(LearnerExperienceVersionToJSON)),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 GetLearnerExperiencePreview
|
|
16
|
+
*/
|
|
17
|
+
export interface GetLearnerExperiencePreview {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {{ [key: string]: any; }}
|
|
21
|
+
* @memberof GetLearnerExperiencePreview
|
|
22
|
+
*/
|
|
23
|
+
designDocument: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<string>}
|
|
29
|
+
* @memberof GetLearnerExperiencePreview
|
|
30
|
+
*/
|
|
31
|
+
assetIds: Array<string>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GetLearnerExperiencePreview interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfGetLearnerExperiencePreview(value: object): value is GetLearnerExperiencePreview;
|
|
37
|
+
export declare function GetLearnerExperiencePreviewFromJSON(json: any): GetLearnerExperiencePreview;
|
|
38
|
+
export declare function GetLearnerExperiencePreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLearnerExperiencePreview;
|
|
39
|
+
export declare function GetLearnerExperiencePreviewToJSON(json: any): GetLearnerExperiencePreview;
|
|
40
|
+
export declare function GetLearnerExperiencePreviewToJSONTyped(value?: GetLearnerExperiencePreview | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 GetLearnerExperiencePreview interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetLearnerExperiencePreview(value) {
|
|
18
|
+
if (!('designDocument' in value) || value['designDocument'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('assetIds' in value) || value['assetIds'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function GetLearnerExperiencePreviewFromJSON(json) {
|
|
25
|
+
return GetLearnerExperiencePreviewFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function GetLearnerExperiencePreviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'designDocument': json['design_document'],
|
|
33
|
+
'assetIds': json['asset_ids'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function GetLearnerExperiencePreviewToJSON(json) {
|
|
37
|
+
return GetLearnerExperiencePreviewToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function GetLearnerExperiencePreviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'design_document': value['designDocument'],
|
|
45
|
+
'asset_ids': value['assetIds'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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
|
*
|
|
@@ -103,6 +104,12 @@ export interface GetQuestion {
|
|
|
103
104
|
* @memberof GetQuestion
|
|
104
105
|
*/
|
|
105
106
|
readonly quizzes?: Array<GetQuestionQuizzesInner>;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {QuestionImportSourceSummary}
|
|
110
|
+
* @memberof GetQuestion
|
|
111
|
+
*/
|
|
112
|
+
importSource?: QuestionImportSourceSummary;
|
|
106
113
|
}
|
|
107
114
|
/**
|
|
108
115
|
* @export
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { RichTextDocumentFromJSON, RichTextDocumentToJSON, } from './RichTextDocument';
|
|
15
15
|
import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
|
|
16
16
|
import { GetQuestionAnswerChoicesInnerFromJSON, GetQuestionAnswerChoicesInnerToJSON, } from './GetQuestionAnswerChoicesInner';
|
|
17
|
+
import { QuestionImportSourceSummaryFromJSON, QuestionImportSourceSummaryToJSON, } from './QuestionImportSourceSummary';
|
|
17
18
|
import { GetQuestionQuizzesInnerFromJSON, } from './GetQuestionQuizzesInner';
|
|
18
19
|
/**
|
|
19
20
|
* @export
|
|
@@ -66,6 +67,7 @@ export function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
67
|
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
67
68
|
'quizCount': json['quiz_count'] == null ? undefined : json['quiz_count'],
|
|
68
69
|
'quizzes': json['quizzes'] == null ? undefined : (json['quizzes'].map(GetQuestionQuizzesInnerFromJSON)),
|
|
70
|
+
'importSource': json['import_source'] == null ? undefined : QuestionImportSourceSummaryFromJSON(json['import_source']),
|
|
69
71
|
};
|
|
70
72
|
}
|
|
71
73
|
export function GetQuestionToJSON(json) {
|
|
@@ -83,5 +85,6 @@ export function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
85
|
'explanation': RichTextDocumentToJSON(value['explanation']),
|
|
84
86
|
'tags': value['tags'] == null ? undefined : (value['tags'].map(ContentLibraryTagToJSON)),
|
|
85
87
|
'version': value['version'],
|
|
88
|
+
'import_source': QuestionImportSourceSummaryToJSON(value['importSource']),
|
|
86
89
|
};
|
|
87
90
|
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 LearnerExperienceVersion
|
|
16
|
+
*/
|
|
17
|
+
export interface LearnerExperienceVersion {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LearnerExperienceVersion
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof LearnerExperienceVersion
|
|
28
|
+
*/
|
|
29
|
+
versionNumber: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {LearnerExperienceVersionStatusEnum}
|
|
33
|
+
* @memberof LearnerExperienceVersion
|
|
34
|
+
*/
|
|
35
|
+
status: LearnerExperienceVersionStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Validated learner-experience-v1 shell and dashboard document.
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof LearnerExperienceVersion
|
|
40
|
+
*/
|
|
41
|
+
designDocument: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof LearnerExperienceVersion
|
|
48
|
+
*/
|
|
49
|
+
changeNotes?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof LearnerExperienceVersion
|
|
54
|
+
*/
|
|
55
|
+
createdAt: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof LearnerExperienceVersion
|
|
60
|
+
*/
|
|
61
|
+
updatedAt: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof LearnerExperienceVersion
|
|
66
|
+
*/
|
|
67
|
+
publishedAt?: number | null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const LearnerExperienceVersionStatusEnum: {
|
|
73
|
+
readonly Draft: "draft";
|
|
74
|
+
readonly Published: "published";
|
|
75
|
+
readonly Archived: "archived";
|
|
76
|
+
readonly System: "system";
|
|
77
|
+
};
|
|
78
|
+
export type LearnerExperienceVersionStatusEnum = typeof LearnerExperienceVersionStatusEnum[keyof typeof LearnerExperienceVersionStatusEnum];
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the LearnerExperienceVersion interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfLearnerExperienceVersion(value: object): value is LearnerExperienceVersion;
|
|
83
|
+
export declare function LearnerExperienceVersionFromJSON(json: any): LearnerExperienceVersion;
|
|
84
|
+
export declare function LearnerExperienceVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LearnerExperienceVersion;
|
|
85
|
+
export declare function LearnerExperienceVersionToJSON(json: any): LearnerExperienceVersion;
|
|
86
|
+
export declare function LearnerExperienceVersionToJSONTyped(value?: LearnerExperienceVersion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const LearnerExperienceVersionStatusEnum = {
|
|
18
|
+
Draft: 'draft',
|
|
19
|
+
Published: 'published',
|
|
20
|
+
Archived: 'archived',
|
|
21
|
+
System: 'system'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the LearnerExperienceVersion interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfLearnerExperienceVersion(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('designDocument' in value) || value['designDocument'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
export function LearnerExperienceVersionFromJSON(json) {
|
|
42
|
+
return LearnerExperienceVersionFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function LearnerExperienceVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'versionNumber': json['version_number'],
|
|
51
|
+
'status': json['status'],
|
|
52
|
+
'designDocument': json['design_document'],
|
|
53
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
54
|
+
'createdAt': json['created_at'],
|
|
55
|
+
'updatedAt': json['updated_at'],
|
|
56
|
+
'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function LearnerExperienceVersionToJSON(json) {
|
|
60
|
+
return LearnerExperienceVersionToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
export function LearnerExperienceVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'version_number': value['versionNumber'],
|
|
69
|
+
'status': value['status'],
|
|
70
|
+
'design_document': value['designDocument'],
|
|
71
|
+
'change_notes': value['changeNotes'],
|
|
72
|
+
'created_at': value['createdAt'],
|
|
73
|
+
'updated_at': value['updatedAt'],
|
|
74
|
+
'published_at': value['publishedAt'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 PostLearnerExperiencePreview
|
|
16
|
+
*/
|
|
17
|
+
export interface PostLearnerExperiencePreview {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {{ [key: string]: any; }}
|
|
21
|
+
* @memberof PostLearnerExperiencePreview
|
|
22
|
+
*/
|
|
23
|
+
designDocument: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PostLearnerExperiencePreview
|
|
30
|
+
*/
|
|
31
|
+
changeNotes?: string | null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PostLearnerExperiencePreview interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPostLearnerExperiencePreview(value: object): value is PostLearnerExperiencePreview;
|
|
37
|
+
export declare function PostLearnerExperiencePreviewFromJSON(json: any): PostLearnerExperiencePreview;
|
|
38
|
+
export declare function PostLearnerExperiencePreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLearnerExperiencePreview;
|
|
39
|
+
export declare function PostLearnerExperiencePreviewToJSON(json: any): PostLearnerExperiencePreview;
|
|
40
|
+
export declare function PostLearnerExperiencePreviewToJSONTyped(value?: PostLearnerExperiencePreview | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 PostLearnerExperiencePreview interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostLearnerExperiencePreview(value) {
|
|
18
|
+
if (!('designDocument' in value) || value['designDocument'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostLearnerExperiencePreviewFromJSON(json) {
|
|
23
|
+
return PostLearnerExperiencePreviewFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostLearnerExperiencePreviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'designDocument': json['design_document'],
|
|
31
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function PostLearnerExperiencePreviewToJSON(json) {
|
|
35
|
+
return PostLearnerExperiencePreviewToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PostLearnerExperiencePreviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'design_document': value['designDocument'],
|
|
43
|
+
'change_notes': value['changeNotes'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -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,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { PostQuestionImportCommitItemFromJSON, PostQuestionImportCommitItemToJSON, } from './PostQuestionImportCommitItem';
|
|
15
|
+
import { QuestionImportPreviewImageFromJSON, QuestionImportPreviewImageToJSON, } from './QuestionImportPreviewImage';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PostQuestionImportCommit interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPostQuestionImportCommit(value) {
|
|
20
|
+
if (!('importToken' in value) || value['importToken'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('sourceLabel' in value) || value['sourceLabel'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('questions' in value) || value['questions'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('images' in value) || value['images'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function PostQuestionImportCommitFromJSON(json) {
|
|
31
|
+
return PostQuestionImportCommitFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function PostQuestionImportCommitFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'importToken': json['import_token'],
|
|
39
|
+
'sourceLabel': json['source_label'],
|
|
40
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
41
|
+
'questions': (json['questions'].map(PostQuestionImportCommitItemFromJSON)),
|
|
42
|
+
'images': (json['images'].map(QuestionImportPreviewImageFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function PostQuestionImportCommitToJSON(json) {
|
|
46
|
+
return PostQuestionImportCommitToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function PostQuestionImportCommitToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'import_token': value['importToken'],
|
|
54
|
+
'source_label': value['sourceLabel'],
|
|
55
|
+
'tags': value['tags'],
|
|
56
|
+
'questions': (value['questions'].map(PostQuestionImportCommitItemToJSON)),
|
|
57
|
+
'images': (value['images'].map(QuestionImportPreviewImageToJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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;
|