@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,131 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { PostQuestionImportCommitToJSON, } from '../models/PostQuestionImportCommit';
|
|
25
|
+
import { PostQuestionImportCommitResponseFromJSON, } from '../models/PostQuestionImportCommitResponse';
|
|
26
|
+
import { PostQuestionImportParseResponseFromJSON, } from '../models/PostQuestionImportParseResponse';
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export class QuestionImportApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for postQuestionImportCommit without sending the request
|
|
33
|
+
*/
|
|
34
|
+
postQuestionImportCommitRequestOpts(requestParameters) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (requestParameters['postQuestionImportCommit'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('postQuestionImportCommit', 'Required parameter "postQuestionImportCommit" was null or undefined when calling postQuestionImportCommit().');
|
|
38
|
+
}
|
|
39
|
+
const queryParameters = {};
|
|
40
|
+
const headerParameters = {};
|
|
41
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
42
|
+
let urlPath = `/question-imports/commit`;
|
|
43
|
+
return {
|
|
44
|
+
path: urlPath,
|
|
45
|
+
method: 'POST',
|
|
46
|
+
headers: headerParameters,
|
|
47
|
+
query: queryParameters,
|
|
48
|
+
body: PostQuestionImportCommitToJSON(requestParameters['postQuestionImportCommit']),
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Validate and atomically create, version, or skip approved question drafts
|
|
54
|
+
*/
|
|
55
|
+
postQuestionImportCommitRaw(requestParameters, initOverrides) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const requestOptions = yield this.postQuestionImportCommitRequestOpts(requestParameters);
|
|
58
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
59
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PostQuestionImportCommitResponseFromJSON(jsonValue));
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Validate and atomically create, version, or skip approved question drafts
|
|
64
|
+
*/
|
|
65
|
+
postQuestionImportCommit(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const response = yield this.postQuestionImportCommitRaw(requestParameters, initOverrides);
|
|
68
|
+
return yield response.value();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for postQuestionImportParse without sending the request
|
|
73
|
+
*/
|
|
74
|
+
postQuestionImportParseRequestOpts(requestParameters) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (requestParameters['file'] == null) {
|
|
77
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling postQuestionImportParse().');
|
|
78
|
+
}
|
|
79
|
+
const queryParameters = {};
|
|
80
|
+
const headerParameters = {};
|
|
81
|
+
const consumes = [
|
|
82
|
+
{ contentType: 'multipart/form-data' },
|
|
83
|
+
];
|
|
84
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
85
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
86
|
+
let formParams;
|
|
87
|
+
let useForm = false;
|
|
88
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
89
|
+
useForm = canConsumeForm;
|
|
90
|
+
if (useForm) {
|
|
91
|
+
formParams = new FormData();
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
formParams = new URLSearchParams();
|
|
95
|
+
}
|
|
96
|
+
if (requestParameters['file'] != null) {
|
|
97
|
+
formParams.append('file', requestParameters['file']);
|
|
98
|
+
}
|
|
99
|
+
if (requestParameters['sourceLabel'] != null) {
|
|
100
|
+
formParams.append('source_label', requestParameters['sourceLabel']);
|
|
101
|
+
}
|
|
102
|
+
let urlPath = `/question-imports/parse`;
|
|
103
|
+
return {
|
|
104
|
+
path: urlPath,
|
|
105
|
+
method: 'POST',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
body: formParams,
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Parse a question document into stateless review drafts
|
|
114
|
+
*/
|
|
115
|
+
postQuestionImportParseRaw(requestParameters, initOverrides) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
const requestOptions = yield this.postQuestionImportParseRequestOpts(requestParameters);
|
|
118
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
119
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PostQuestionImportParseResponseFromJSON(jsonValue));
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Parse a question document into stateless review drafts
|
|
124
|
+
*/
|
|
125
|
+
postQuestionImportParse(requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const response = yield this.postQuestionImportParseRaw(requestParameters, initOverrides);
|
|
128
|
+
return yield response.value();
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -9,11 +9,13 @@ export * from './CourseCatalogApi';
|
|
|
9
9
|
export * from './CourseShareApi';
|
|
10
10
|
export * from './DispatchApi';
|
|
11
11
|
export * from './EmailTemplateApi';
|
|
12
|
+
export * from './LearnerExperienceApi';
|
|
12
13
|
export * from './OtherApi';
|
|
13
14
|
export * from './PlayerApi';
|
|
14
15
|
export * from './PortalApi';
|
|
15
16
|
export * from './PortalSublicenseApi';
|
|
16
17
|
export * from './QuestionApi';
|
|
18
|
+
export * from './QuestionImportApi';
|
|
17
19
|
export * from './ReportingApi';
|
|
18
20
|
export * from './RichTextApi';
|
|
19
21
|
export * from './RoleApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -11,11 +11,13 @@ export * from './CourseCatalogApi';
|
|
|
11
11
|
export * from './CourseShareApi';
|
|
12
12
|
export * from './DispatchApi';
|
|
13
13
|
export * from './EmailTemplateApi';
|
|
14
|
+
export * from './LearnerExperienceApi';
|
|
14
15
|
export * from './OtherApi';
|
|
15
16
|
export * from './PlayerApi';
|
|
16
17
|
export * from './PortalApi';
|
|
17
18
|
export * from './PortalSublicenseApi';
|
|
18
19
|
export * from './QuestionApi';
|
|
20
|
+
export * from './QuestionImportApi';
|
|
19
21
|
export * from './ReportingApi';
|
|
20
22
|
export * from './RichTextApi';
|
|
21
23
|
export * from './RoleApi';
|
|
@@ -0,0 +1,62 @@
|
|
|
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 GetEffectiveLearnerExperience
|
|
16
|
+
*/
|
|
17
|
+
export interface GetEffectiveLearnerExperience {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {GetEffectiveLearnerExperienceEffectiveSourceEnum}
|
|
21
|
+
* @memberof GetEffectiveLearnerExperience
|
|
22
|
+
*/
|
|
23
|
+
effectiveSource: GetEffectiveLearnerExperienceEffectiveSourceEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetEffectiveLearnerExperience
|
|
28
|
+
*/
|
|
29
|
+
effectiveSourcePortalId?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetEffectiveLearnerExperience
|
|
34
|
+
*/
|
|
35
|
+
versionId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof GetEffectiveLearnerExperience
|
|
40
|
+
*/
|
|
41
|
+
designDocument: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const GetEffectiveLearnerExperienceEffectiveSourceEnum: {
|
|
49
|
+
readonly Portal: "portal";
|
|
50
|
+
readonly Ancestor: "ancestor";
|
|
51
|
+
readonly Platform: "platform";
|
|
52
|
+
readonly System: "system";
|
|
53
|
+
};
|
|
54
|
+
export type GetEffectiveLearnerExperienceEffectiveSourceEnum = typeof GetEffectiveLearnerExperienceEffectiveSourceEnum[keyof typeof GetEffectiveLearnerExperienceEffectiveSourceEnum];
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the GetEffectiveLearnerExperience interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfGetEffectiveLearnerExperience(value: object): value is GetEffectiveLearnerExperience;
|
|
59
|
+
export declare function GetEffectiveLearnerExperienceFromJSON(json: any): GetEffectiveLearnerExperience;
|
|
60
|
+
export declare function GetEffectiveLearnerExperienceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEffectiveLearnerExperience;
|
|
61
|
+
export declare function GetEffectiveLearnerExperienceToJSON(json: any): GetEffectiveLearnerExperience;
|
|
62
|
+
export declare function GetEffectiveLearnerExperienceToJSONTyped(value?: GetEffectiveLearnerExperience | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 GetEffectiveLearnerExperienceEffectiveSourceEnum = {
|
|
18
|
+
Portal: 'portal',
|
|
19
|
+
Ancestor: 'ancestor',
|
|
20
|
+
Platform: 'platform',
|
|
21
|
+
System: 'system'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetEffectiveLearnerExperience interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfGetEffectiveLearnerExperience(value) {
|
|
27
|
+
if (!('effectiveSource' in value) || value['effectiveSource'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('versionId' in value) || value['versionId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('designDocument' in value) || value['designDocument'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function GetEffectiveLearnerExperienceFromJSON(json) {
|
|
36
|
+
return GetEffectiveLearnerExperienceFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function GetEffectiveLearnerExperienceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'effectiveSource': json['effective_source'],
|
|
44
|
+
'effectiveSourcePortalId': json['effective_source_portal_id'] == null ? undefined : json['effective_source_portal_id'],
|
|
45
|
+
'versionId': json['version_id'],
|
|
46
|
+
'designDocument': json['design_document'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function GetEffectiveLearnerExperienceToJSON(json) {
|
|
50
|
+
return GetEffectiveLearnerExperienceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function GetEffectiveLearnerExperienceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'effective_source': value['effectiveSource'],
|
|
58
|
+
'effective_source_portal_id': value['effectiveSourcePortalId'],
|
|
59
|
+
'version_id': value['versionId'],
|
|
60
|
+
'design_document': value['designDocument'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { GetLearnerDashboardCourseList } from './GetLearnerDashboardCourseList';
|
|
13
|
+
import type { GetEffectiveLearnerExperience } from './GetEffectiveLearnerExperience';
|
|
14
|
+
import type { GetLearnerDashboardSummary } from './GetLearnerDashboardSummary';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetLearnerDashboard
|
|
19
|
+
*/
|
|
20
|
+
export interface GetLearnerDashboard {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {GetEffectiveLearnerExperience}
|
|
24
|
+
* @memberof GetLearnerDashboard
|
|
25
|
+
*/
|
|
26
|
+
experience: GetEffectiveLearnerExperience;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {GetLearnerDashboardSummary}
|
|
30
|
+
* @memberof GetLearnerDashboard
|
|
31
|
+
*/
|
|
32
|
+
summary: GetLearnerDashboardSummary;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<GetLearnerDashboardCourseList>}
|
|
36
|
+
* @memberof GetLearnerDashboard
|
|
37
|
+
*/
|
|
38
|
+
courseLists: Array<GetLearnerDashboardCourseList>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the GetLearnerDashboard interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfGetLearnerDashboard(value: object): value is GetLearnerDashboard;
|
|
44
|
+
export declare function GetLearnerDashboardFromJSON(json: any): GetLearnerDashboard;
|
|
45
|
+
export declare function GetLearnerDashboardFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLearnerDashboard;
|
|
46
|
+
export declare function GetLearnerDashboardToJSON(json: any): GetLearnerDashboard;
|
|
47
|
+
export declare function GetLearnerDashboardToJSONTyped(value?: GetLearnerDashboard | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { GetLearnerDashboardCourseListFromJSON, GetLearnerDashboardCourseListToJSON, } from './GetLearnerDashboardCourseList';
|
|
15
|
+
import { GetEffectiveLearnerExperienceFromJSON, GetEffectiveLearnerExperienceToJSON, } from './GetEffectiveLearnerExperience';
|
|
16
|
+
import { GetLearnerDashboardSummaryFromJSON, GetLearnerDashboardSummaryToJSON, } from './GetLearnerDashboardSummary';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the GetLearnerDashboard interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfGetLearnerDashboard(value) {
|
|
21
|
+
if (!('experience' in value) || value['experience'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('courseLists' in value) || value['courseLists'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function GetLearnerDashboardFromJSON(json) {
|
|
30
|
+
return GetLearnerDashboardFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function GetLearnerDashboardFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'experience': GetEffectiveLearnerExperienceFromJSON(json['experience']),
|
|
38
|
+
'summary': GetLearnerDashboardSummaryFromJSON(json['summary']),
|
|
39
|
+
'courseLists': (json['course_lists'].map(GetLearnerDashboardCourseListFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function GetLearnerDashboardToJSON(json) {
|
|
43
|
+
return GetLearnerDashboardToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function GetLearnerDashboardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'experience': GetEffectiveLearnerExperienceToJSON(value['experience']),
|
|
51
|
+
'summary': GetLearnerDashboardSummaryToJSON(value['summary']),
|
|
52
|
+
'course_lists': (value['courseLists'].map(GetLearnerDashboardCourseListToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { GetUserCourseListItem } from './GetUserCourseListItem';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetLearnerDashboardCourseList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetLearnerDashboardCourseList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetLearnerDashboardCourseList
|
|
23
|
+
*/
|
|
24
|
+
blockId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<GetUserCourseListItem>}
|
|
28
|
+
* @memberof GetLearnerDashboardCourseList
|
|
29
|
+
*/
|
|
30
|
+
items: Array<GetUserCourseListItem>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the GetLearnerDashboardCourseList interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfGetLearnerDashboardCourseList(value: object): value is GetLearnerDashboardCourseList;
|
|
36
|
+
export declare function GetLearnerDashboardCourseListFromJSON(json: any): GetLearnerDashboardCourseList;
|
|
37
|
+
export declare function GetLearnerDashboardCourseListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLearnerDashboardCourseList;
|
|
38
|
+
export declare function GetLearnerDashboardCourseListToJSON(json: any): GetLearnerDashboardCourseList;
|
|
39
|
+
export declare function GetLearnerDashboardCourseListToJSONTyped(value?: GetLearnerDashboardCourseList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { GetUserCourseListItemFromJSON, GetUserCourseListItemToJSON, } from './GetUserCourseListItem';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetLearnerDashboardCourseList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetLearnerDashboardCourseList(value) {
|
|
19
|
+
if (!('blockId' in value) || value['blockId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function GetLearnerDashboardCourseListFromJSON(json) {
|
|
26
|
+
return GetLearnerDashboardCourseListFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function GetLearnerDashboardCourseListFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'blockId': json['block_id'],
|
|
34
|
+
'items': (json['items'].map(GetUserCourseListItemFromJSON)),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function GetLearnerDashboardCourseListToJSON(json) {
|
|
38
|
+
return GetLearnerDashboardCourseListToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function GetLearnerDashboardCourseListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'block_id': value['blockId'],
|
|
46
|
+
'items': (value['items'].map(GetUserCourseListItemToJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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 GetLearnerDashboardSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface GetLearnerDashboardSummary {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetLearnerDashboardSummary
|
|
22
|
+
*/
|
|
23
|
+
enrolledCourses: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetLearnerDashboardSummary
|
|
28
|
+
*/
|
|
29
|
+
notStartedCourses: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetLearnerDashboardSummary
|
|
34
|
+
*/
|
|
35
|
+
inProgressCourses: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetLearnerDashboardSummary
|
|
40
|
+
*/
|
|
41
|
+
completedCourses: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetLearnerDashboardSummary
|
|
46
|
+
*/
|
|
47
|
+
certificatesEarned: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the GetLearnerDashboardSummary interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfGetLearnerDashboardSummary(value: object): value is GetLearnerDashboardSummary;
|
|
53
|
+
export declare function GetLearnerDashboardSummaryFromJSON(json: any): GetLearnerDashboardSummary;
|
|
54
|
+
export declare function GetLearnerDashboardSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLearnerDashboardSummary;
|
|
55
|
+
export declare function GetLearnerDashboardSummaryToJSON(json: any): GetLearnerDashboardSummary;
|
|
56
|
+
export declare function GetLearnerDashboardSummaryToJSONTyped(value?: GetLearnerDashboardSummary | 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
|
+
/**
|
|
15
|
+
* Check if a given object implements the GetLearnerDashboardSummary interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetLearnerDashboardSummary(value) {
|
|
18
|
+
if (!('enrolledCourses' in value) || value['enrolledCourses'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('notStartedCourses' in value) || value['notStartedCourses'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('inProgressCourses' in value) || value['inProgressCourses'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('completedCourses' in value) || value['completedCourses'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('certificatesEarned' in value) || value['certificatesEarned'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function GetLearnerDashboardSummaryFromJSON(json) {
|
|
31
|
+
return GetLearnerDashboardSummaryFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function GetLearnerDashboardSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'enrolledCourses': json['enrolled_courses'],
|
|
39
|
+
'notStartedCourses': json['not_started_courses'],
|
|
40
|
+
'inProgressCourses': json['in_progress_courses'],
|
|
41
|
+
'completedCourses': json['completed_courses'],
|
|
42
|
+
'certificatesEarned': json['certificates_earned'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function GetLearnerDashboardSummaryToJSON(json) {
|
|
46
|
+
return GetLearnerDashboardSummaryToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function GetLearnerDashboardSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'enrolled_courses': value['enrolledCourses'],
|
|
54
|
+
'not_started_courses': value['notStartedCourses'],
|
|
55
|
+
'in_progress_courses': value['inProgressCourses'],
|
|
56
|
+
'completed_courses': value['completedCourses'],
|
|
57
|
+
'certificates_earned': value['certificatesEarned'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 { LearnerExperienceVersion } from './LearnerExperienceVersion';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetLearnerExperience
|
|
17
|
+
*/
|
|
18
|
+
export interface GetLearnerExperience {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {GetLearnerExperienceEffectiveSourceEnum}
|
|
22
|
+
* @memberof GetLearnerExperience
|
|
23
|
+
*/
|
|
24
|
+
effectiveSource: GetLearnerExperienceEffectiveSourceEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetLearnerExperience
|
|
29
|
+
*/
|
|
30
|
+
effectiveSourcePortalId?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {LearnerExperienceVersion}
|
|
34
|
+
* @memberof GetLearnerExperience
|
|
35
|
+
*/
|
|
36
|
+
effectiveVersion: LearnerExperienceVersion;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {LearnerExperienceVersion}
|
|
40
|
+
* @memberof GetLearnerExperience
|
|
41
|
+
*/
|
|
42
|
+
draftVersion?: LearnerExperienceVersion | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<LearnerExperienceVersion>}
|
|
46
|
+
* @memberof GetLearnerExperience
|
|
47
|
+
*/
|
|
48
|
+
versions: Array<LearnerExperienceVersion>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const GetLearnerExperienceEffectiveSourceEnum: {
|
|
54
|
+
readonly Portal: "portal";
|
|
55
|
+
readonly Ancestor: "ancestor";
|
|
56
|
+
readonly Platform: "platform";
|
|
57
|
+
readonly System: "system";
|
|
58
|
+
};
|
|
59
|
+
export type GetLearnerExperienceEffectiveSourceEnum = typeof GetLearnerExperienceEffectiveSourceEnum[keyof typeof GetLearnerExperienceEffectiveSourceEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GetLearnerExperience interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfGetLearnerExperience(value: object): value is GetLearnerExperience;
|
|
64
|
+
export declare function GetLearnerExperienceFromJSON(json: any): GetLearnerExperience;
|
|
65
|
+
export declare function GetLearnerExperienceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetLearnerExperience;
|
|
66
|
+
export declare function GetLearnerExperienceToJSON(json: any): GetLearnerExperience;
|
|
67
|
+
export declare function GetLearnerExperienceToJSONTyped(value?: GetLearnerExperience | null, ignoreDiscriminator?: boolean): any;
|