@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,54 @@
|
|
|
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.instanceOfGetLearnerExperiencePreview = instanceOfGetLearnerExperiencePreview;
|
|
17
|
+
exports.GetLearnerExperiencePreviewFromJSON = GetLearnerExperiencePreviewFromJSON;
|
|
18
|
+
exports.GetLearnerExperiencePreviewFromJSONTyped = GetLearnerExperiencePreviewFromJSONTyped;
|
|
19
|
+
exports.GetLearnerExperiencePreviewToJSON = GetLearnerExperiencePreviewToJSON;
|
|
20
|
+
exports.GetLearnerExperiencePreviewToJSONTyped = GetLearnerExperiencePreviewToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetLearnerExperiencePreview interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetLearnerExperiencePreview(value) {
|
|
25
|
+
if (!('designDocument' in value) || value['designDocument'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('assetIds' in value) || value['assetIds'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function GetLearnerExperiencePreviewFromJSON(json) {
|
|
32
|
+
return GetLearnerExperiencePreviewFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function GetLearnerExperiencePreviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'designDocument': json['design_document'],
|
|
40
|
+
'assetIds': json['asset_ids'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function GetLearnerExperiencePreviewToJSON(json) {
|
|
44
|
+
return GetLearnerExperiencePreviewToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetLearnerExperiencePreviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'design_document': value['designDocument'],
|
|
52
|
+
'asset_ids': value['assetIds'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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
|
|
@@ -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
|
|
@@ -74,6 +75,7 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
75
|
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
75
76
|
'quizCount': json['quiz_count'] == null ? undefined : json['quiz_count'],
|
|
76
77
|
'quizzes': json['quizzes'] == null ? undefined : (json['quizzes'].map(GetQuestionQuizzesInner_1.GetQuestionQuizzesInnerFromJSON)),
|
|
78
|
+
'importSource': json['import_source'] == null ? undefined : (0, QuestionImportSourceSummary_1.QuestionImportSourceSummaryFromJSON)(json['import_source']),
|
|
77
79
|
};
|
|
78
80
|
}
|
|
79
81
|
function GetQuestionToJSON(json) {
|
|
@@ -91,5 +93,6 @@ function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
91
93
|
'explanation': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanation']),
|
|
92
94
|
'tags': value['tags'] == null ? undefined : (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
|
|
93
95
|
'version': value['version'],
|
|
96
|
+
'import_source': (0, QuestionImportSourceSummary_1.QuestionImportSourceSummaryToJSON)(value['importSource']),
|
|
94
97
|
};
|
|
95
98
|
}
|
|
@@ -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,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.LearnerExperienceVersionStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfLearnerExperienceVersion = instanceOfLearnerExperienceVersion;
|
|
18
|
+
exports.LearnerExperienceVersionFromJSON = LearnerExperienceVersionFromJSON;
|
|
19
|
+
exports.LearnerExperienceVersionFromJSONTyped = LearnerExperienceVersionFromJSONTyped;
|
|
20
|
+
exports.LearnerExperienceVersionToJSON = LearnerExperienceVersionToJSON;
|
|
21
|
+
exports.LearnerExperienceVersionToJSONTyped = LearnerExperienceVersionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.LearnerExperienceVersionStatusEnum = {
|
|
26
|
+
Draft: 'draft',
|
|
27
|
+
Published: 'published',
|
|
28
|
+
Archived: 'archived',
|
|
29
|
+
System: 'system'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LearnerExperienceVersion interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfLearnerExperienceVersion(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('designDocument' in value) || value['designDocument'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function LearnerExperienceVersionFromJSON(json) {
|
|
50
|
+
return LearnerExperienceVersionFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function LearnerExperienceVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'versionNumber': json['version_number'],
|
|
59
|
+
'status': json['status'],
|
|
60
|
+
'designDocument': json['design_document'],
|
|
61
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
62
|
+
'createdAt': json['created_at'],
|
|
63
|
+
'updatedAt': json['updated_at'],
|
|
64
|
+
'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function LearnerExperienceVersionToJSON(json) {
|
|
68
|
+
return LearnerExperienceVersionToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function LearnerExperienceVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value['id'],
|
|
76
|
+
'version_number': value['versionNumber'],
|
|
77
|
+
'status': value['status'],
|
|
78
|
+
'design_document': value['designDocument'],
|
|
79
|
+
'change_notes': value['changeNotes'],
|
|
80
|
+
'created_at': value['createdAt'],
|
|
81
|
+
'updated_at': value['updatedAt'],
|
|
82
|
+
'published_at': value['publishedAt'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -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,52 @@
|
|
|
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.instanceOfPostLearnerExperiencePreview = instanceOfPostLearnerExperiencePreview;
|
|
17
|
+
exports.PostLearnerExperiencePreviewFromJSON = PostLearnerExperiencePreviewFromJSON;
|
|
18
|
+
exports.PostLearnerExperiencePreviewFromJSONTyped = PostLearnerExperiencePreviewFromJSONTyped;
|
|
19
|
+
exports.PostLearnerExperiencePreviewToJSON = PostLearnerExperiencePreviewToJSON;
|
|
20
|
+
exports.PostLearnerExperiencePreviewToJSONTyped = PostLearnerExperiencePreviewToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostLearnerExperiencePreview interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostLearnerExperiencePreview(value) {
|
|
25
|
+
if (!('designDocument' in value) || value['designDocument'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostLearnerExperiencePreviewFromJSON(json) {
|
|
30
|
+
return PostLearnerExperiencePreviewFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostLearnerExperiencePreviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'designDocument': json['design_document'],
|
|
38
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PostLearnerExperiencePreviewToJSON(json) {
|
|
42
|
+
return PostLearnerExperiencePreviewToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PostLearnerExperiencePreviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'design_document': value['designDocument'],
|
|
50
|
+
'change_notes': value['changeNotes'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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
|
+
}
|