@easyedu/js-lsm-api 1.66.0 → 1.68.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 +10 -2
- package/README.md +15 -3
- package/dist/apis/ContentApi.d.ts +74 -0
- package/dist/apis/ContentApi.js +172 -1
- package/dist/apis/CourseApi.d.ts +16 -0
- package/dist/apis/CourseApi.js +43 -0
- package/dist/apis/PortalApi.d.ts +58 -0
- package/dist/apis/PortalApi.js +152 -0
- package/dist/apis/SupportTicketApi.d.ts +2 -3
- package/dist/apis/SupportTicketApi.js +1 -2
- package/dist/esm/apis/ContentApi.d.ts +74 -0
- package/dist/esm/apis/ContentApi.js +171 -0
- package/dist/esm/apis/CourseApi.d.ts +16 -0
- package/dist/esm/apis/CourseApi.js +43 -0
- package/dist/esm/apis/PortalApi.d.ts +58 -0
- package/dist/esm/apis/PortalApi.js +152 -0
- package/dist/esm/apis/SupportTicketApi.d.ts +2 -3
- package/dist/esm/apis/SupportTicketApi.js +1 -2
- package/dist/esm/models/ContentAttemptItem.d.ts +69 -0
- package/dist/esm/models/ContentAttemptItem.js +68 -0
- package/dist/esm/models/ContentAttemptRollupScore.d.ts +38 -0
- package/dist/esm/models/ContentAttemptRollupScore.js +47 -0
- package/dist/esm/models/ContentAttemptScore.d.ts +50 -0
- package/dist/esm/models/ContentAttemptScore.js +47 -0
- package/dist/esm/models/ContentLaunchMode.d.ts +26 -0
- package/dist/esm/models/ContentLaunchMode.js +44 -0
- package/dist/esm/models/GetContent.d.ts +7 -0
- package/dist/esm/models/GetContent.js +5 -0
- package/dist/esm/models/GetContentAttempts.d.ts +90 -0
- package/dist/esm/models/GetContentAttempts.js +84 -0
- package/dist/esm/models/GetContentSession.d.ts +12 -0
- package/dist/esm/models/GetContentSession.js +8 -0
- package/dist/esm/models/GetContentSessionDetail.d.ts +12 -0
- package/dist/esm/models/GetContentSessionDetail.js +8 -0
- package/dist/esm/models/GetContentSessionListItem.d.ts +24 -0
- package/dist/esm/models/GetContentSessionListItem.js +16 -0
- package/dist/esm/models/GetPortal.d.ts +2 -2
- package/dist/esm/models/GetPortalFaviconUpload.d.ts +1 -1
- package/dist/esm/models/GetPortalLogoUpload.d.ts +1 -1
- package/dist/esm/models/GetPublicPortalBranding.d.ts +2 -2
- package/dist/esm/models/PostContentSession.d.ts +19 -0
- package/dist/esm/models/PostContentSession.js +13 -0
- package/dist/esm/models/PutContent.d.ts +7 -0
- package/dist/esm/models/PutContent.js +3 -0
- package/dist/esm/models/index.d.ts +5 -1
- package/dist/esm/models/index.js +5 -1
- package/dist/models/ContentAttemptItem.d.ts +69 -0
- package/dist/models/ContentAttemptItem.js +75 -0
- package/dist/models/ContentAttemptRollupScore.d.ts +38 -0
- package/dist/models/ContentAttemptRollupScore.js +54 -0
- package/dist/models/ContentAttemptScore.d.ts +50 -0
- package/dist/models/ContentAttemptScore.js +54 -0
- package/dist/models/ContentLaunchMode.d.ts +26 -0
- package/dist/models/ContentLaunchMode.js +52 -0
- package/dist/models/GetContent.d.ts +7 -0
- package/dist/models/GetContent.js +5 -0
- package/dist/models/GetContentAttempts.d.ts +90 -0
- package/dist/models/GetContentAttempts.js +92 -0
- package/dist/models/GetContentSession.d.ts +12 -0
- package/dist/models/GetContentSession.js +8 -0
- package/dist/models/GetContentSessionDetail.d.ts +12 -0
- package/dist/models/GetContentSessionDetail.js +8 -0
- package/dist/models/GetContentSessionListItem.d.ts +24 -0
- package/dist/models/GetContentSessionListItem.js +16 -0
- package/dist/models/GetPortal.d.ts +2 -2
- package/dist/models/GetPortalFaviconUpload.d.ts +1 -1
- package/dist/models/GetPortalLogoUpload.d.ts +1 -1
- package/dist/models/GetPublicPortalBranding.d.ts +2 -2
- package/dist/models/PostContentSession.d.ts +19 -0
- package/dist/models/PostContentSession.js +13 -0
- package/dist/models/PutContent.d.ts +7 -0
- package/dist/models/PutContent.js +3 -0
- package/dist/models/index.d.ts +5 -1
- package/dist/models/index.js +5 -1
- package/docs/ContentApi.md +238 -0
- package/docs/ContentAttemptItem.md +47 -0
- package/docs/ContentAttemptRollupScore.md +37 -0
- package/docs/ContentAttemptScore.md +41 -0
- package/docs/{DownloadSupportTicketAttachment200Response.md → ContentLaunchMode.md} +5 -6
- package/docs/CourseApi.md +72 -0
- package/docs/GetContent.md +2 -0
- package/docs/GetContentAttempts.md +51 -0
- package/docs/GetContentSession.md +4 -0
- package/docs/GetContentSessionDetail.md +4 -0
- package/docs/GetContentSessionListItem.md +8 -0
- package/docs/PortalApi.md +258 -0
- package/docs/PostContentSession.md +6 -0
- package/docs/PutContent.md +2 -0
- package/docs/SupportTicketApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +249 -0
- package/src/apis/CourseApi.ts +58 -0
- package/src/apis/PortalApi.ts +176 -0
- package/src/apis/SupportTicketApi.ts +3 -8
- package/src/models/ContentAttemptItem.ts +128 -0
- package/src/models/ContentAttemptRollupScore.ts +75 -0
- package/src/models/ContentAttemptScore.ts +89 -0
- package/src/models/ContentLaunchMode.ts +54 -0
- package/src/models/GetContent.ts +16 -0
- package/src/models/GetContentAttempts.ts +164 -0
- package/src/models/GetContentSession.ts +18 -0
- package/src/models/GetContentSessionDetail.ts +18 -0
- package/src/models/GetContentSessionListItem.ts +36 -0
- package/src/models/GetPortal.ts +2 -2
- package/src/models/GetPortalFaviconUpload.ts +1 -1
- package/src/models/GetPortalLogoUpload.ts +1 -1
- package/src/models/GetPublicPortalBranding.ts +2 -2
- package/src/models/PostContentSession.ts +37 -0
- package/src/models/PutContent.ts +18 -0
- package/src/models/index.ts +5 -1
- package/dist/esm/models/DownloadSupportTicketAttachment200Response.d.ts +0 -32
- package/dist/esm/models/DownloadSupportTicketAttachment200Response.js +0 -43
- package/dist/models/DownloadSupportTicketAttachment200Response.d.ts +0 -32
- package/dist/models/DownloadSupportTicketAttachment200Response.js +0 -50
- package/src/models/DownloadSupportTicketAttachment200Response.ts +0 -66
package/dist/esm/models/index.js
CHANGED
|
@@ -3,12 +3,15 @@
|
|
|
3
3
|
export * from './Certificate';
|
|
4
4
|
export * from './CertificateConfig';
|
|
5
5
|
export * from './CertificatePublic';
|
|
6
|
+
export * from './ContentAttemptItem';
|
|
7
|
+
export * from './ContentAttemptRollupScore';
|
|
8
|
+
export * from './ContentAttemptScore';
|
|
9
|
+
export * from './ContentLaunchMode';
|
|
6
10
|
export * from './CourseCatalog';
|
|
7
11
|
export * from './CourseShare';
|
|
8
12
|
export * from './CriteriaBasedSelection';
|
|
9
13
|
export * from './CriteriaBasedSelectionCriteria';
|
|
10
14
|
export * from './CriteriaBasedSelectionDistribution';
|
|
11
|
-
export * from './DownloadSupportTicketAttachment200Response';
|
|
12
15
|
export * from './EffectiveCertificateConfig';
|
|
13
16
|
export * from './Essay';
|
|
14
17
|
export * from './Essay1';
|
|
@@ -18,6 +21,7 @@ export * from './GetCertificateConfigList';
|
|
|
18
21
|
export * from './GetCertificateList';
|
|
19
22
|
export * from './GetChatMessage';
|
|
20
23
|
export * from './GetContent';
|
|
24
|
+
export * from './GetContentAttempts';
|
|
21
25
|
export * from './GetContentContentData';
|
|
22
26
|
export * from './GetContentGradeDetail';
|
|
23
27
|
export * from './GetContentGrades';
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { ContentAttemptScore } from './ContentAttemptScore';
|
|
13
|
+
/**
|
|
14
|
+
* A single learner attempt for a content item
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ContentAttemptItem
|
|
17
|
+
*/
|
|
18
|
+
export interface ContentAttemptItem {
|
|
19
|
+
/**
|
|
20
|
+
* Content session UUID for this attempt
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ContentAttemptItem
|
|
23
|
+
*/
|
|
24
|
+
sessionId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Learner attempt number for this content item
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ContentAttemptItem
|
|
29
|
+
*/
|
|
30
|
+
attemptNumber: number;
|
|
31
|
+
/**
|
|
32
|
+
* Completion status for this attempt
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ContentAttemptItem
|
|
35
|
+
*/
|
|
36
|
+
completionStatus: string;
|
|
37
|
+
/**
|
|
38
|
+
* Grade status for this attempt
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ContentAttemptItem
|
|
41
|
+
*/
|
|
42
|
+
gradeStatus: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ContentAttemptScore}
|
|
46
|
+
* @memberof ContentAttemptItem
|
|
47
|
+
*/
|
|
48
|
+
score: ContentAttemptScore | null;
|
|
49
|
+
/**
|
|
50
|
+
* Attempt creation time as a Unix timestamp in seconds
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ContentAttemptItem
|
|
53
|
+
*/
|
|
54
|
+
createdAt: number;
|
|
55
|
+
/**
|
|
56
|
+
* Attempt update time as a Unix timestamp in seconds
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof ContentAttemptItem
|
|
59
|
+
*/
|
|
60
|
+
updatedAt: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ContentAttemptItem interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfContentAttemptItem(value: object): value is ContentAttemptItem;
|
|
66
|
+
export declare function ContentAttemptItemFromJSON(json: any): ContentAttemptItem;
|
|
67
|
+
export declare function ContentAttemptItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentAttemptItem;
|
|
68
|
+
export declare function ContentAttemptItemToJSON(json: any): ContentAttemptItem;
|
|
69
|
+
export declare function ContentAttemptItemToJSONTyped(value?: ContentAttemptItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.instanceOfContentAttemptItem = instanceOfContentAttemptItem;
|
|
17
|
+
exports.ContentAttemptItemFromJSON = ContentAttemptItemFromJSON;
|
|
18
|
+
exports.ContentAttemptItemFromJSONTyped = ContentAttemptItemFromJSONTyped;
|
|
19
|
+
exports.ContentAttemptItemToJSON = ContentAttemptItemToJSON;
|
|
20
|
+
exports.ContentAttemptItemToJSONTyped = ContentAttemptItemToJSONTyped;
|
|
21
|
+
const ContentAttemptScore_1 = require("./ContentAttemptScore");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ContentAttemptItem interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfContentAttemptItem(value) {
|
|
26
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ContentAttemptItemFromJSON(json) {
|
|
43
|
+
return ContentAttemptItemFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ContentAttemptItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'sessionId': json['session_id'],
|
|
51
|
+
'attemptNumber': json['attempt_number'],
|
|
52
|
+
'completionStatus': json['completion_status'],
|
|
53
|
+
'gradeStatus': json['grade_status'],
|
|
54
|
+
'score': (0, ContentAttemptScore_1.ContentAttemptScoreFromJSON)(json['score']),
|
|
55
|
+
'createdAt': json['created_at'],
|
|
56
|
+
'updatedAt': json['updated_at'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function ContentAttemptItemToJSON(json) {
|
|
60
|
+
return ContentAttemptItemToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function ContentAttemptItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'session_id': value['sessionId'],
|
|
68
|
+
'attempt_number': value['attemptNumber'],
|
|
69
|
+
'completion_status': value['completionStatus'],
|
|
70
|
+
'grade_status': value['gradeStatus'],
|
|
71
|
+
'score': (0, ContentAttemptScore_1.ContentAttemptScoreToJSON)(value['score']),
|
|
72
|
+
'created_at': value['createdAt'],
|
|
73
|
+
'updated_at': value['updatedAt'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* Rolled-up score for a content item
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContentAttemptRollupScore
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentAttemptRollupScore {
|
|
18
|
+
/**
|
|
19
|
+
* Rolled-up score normalized to a 0-100 percentage
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ContentAttemptRollupScore
|
|
22
|
+
*/
|
|
23
|
+
percentage: number;
|
|
24
|
+
/**
|
|
25
|
+
* Attempt number that supplied the rolled-up score
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ContentAttemptRollupScore
|
|
28
|
+
*/
|
|
29
|
+
sourceAttemptNumber: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ContentAttemptRollupScore interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfContentAttemptRollupScore(value: object): value is ContentAttemptRollupScore;
|
|
35
|
+
export declare function ContentAttemptRollupScoreFromJSON(json: any): ContentAttemptRollupScore;
|
|
36
|
+
export declare function ContentAttemptRollupScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentAttemptRollupScore;
|
|
37
|
+
export declare function ContentAttemptRollupScoreToJSON(json: any): ContentAttemptRollupScore;
|
|
38
|
+
export declare function ContentAttemptRollupScoreToJSONTyped(value?: ContentAttemptRollupScore | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfContentAttemptRollupScore = instanceOfContentAttemptRollupScore;
|
|
17
|
+
exports.ContentAttemptRollupScoreFromJSON = ContentAttemptRollupScoreFromJSON;
|
|
18
|
+
exports.ContentAttemptRollupScoreFromJSONTyped = ContentAttemptRollupScoreFromJSONTyped;
|
|
19
|
+
exports.ContentAttemptRollupScoreToJSON = ContentAttemptRollupScoreToJSON;
|
|
20
|
+
exports.ContentAttemptRollupScoreToJSONTyped = ContentAttemptRollupScoreToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ContentAttemptRollupScore interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfContentAttemptRollupScore(value) {
|
|
25
|
+
if (!('percentage' in value) || value['percentage'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('sourceAttemptNumber' in value) || value['sourceAttemptNumber'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ContentAttemptRollupScoreFromJSON(json) {
|
|
32
|
+
return ContentAttemptRollupScoreFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ContentAttemptRollupScoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'percentage': json['percentage'],
|
|
40
|
+
'sourceAttemptNumber': json['source_attempt_number'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ContentAttemptRollupScoreToJSON(json) {
|
|
44
|
+
return ContentAttemptRollupScoreToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ContentAttemptRollupScoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'percentage': value['percentage'],
|
|
52
|
+
'source_attempt_number': value['sourceAttemptNumber'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Normalized score data for a content attempt
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContentAttemptScore
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentAttemptScore {
|
|
18
|
+
/**
|
|
19
|
+
* Raw score reported by the content, if available
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ContentAttemptScore
|
|
22
|
+
*/
|
|
23
|
+
raw?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Minimum possible score, if available
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ContentAttemptScore
|
|
28
|
+
*/
|
|
29
|
+
min?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum possible score, if available
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ContentAttemptScore
|
|
34
|
+
*/
|
|
35
|
+
max?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* Score normalized to a 0-100 percentage, if available
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ContentAttemptScore
|
|
40
|
+
*/
|
|
41
|
+
percentage?: number | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ContentAttemptScore interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfContentAttemptScore(value: object): value is ContentAttemptScore;
|
|
47
|
+
export declare function ContentAttemptScoreFromJSON(json: any): ContentAttemptScore;
|
|
48
|
+
export declare function ContentAttemptScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentAttemptScore;
|
|
49
|
+
export declare function ContentAttemptScoreToJSON(json: any): ContentAttemptScore;
|
|
50
|
+
export declare function ContentAttemptScoreToJSONTyped(value?: ContentAttemptScore | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfContentAttemptScore = instanceOfContentAttemptScore;
|
|
17
|
+
exports.ContentAttemptScoreFromJSON = ContentAttemptScoreFromJSON;
|
|
18
|
+
exports.ContentAttemptScoreFromJSONTyped = ContentAttemptScoreFromJSONTyped;
|
|
19
|
+
exports.ContentAttemptScoreToJSON = ContentAttemptScoreToJSON;
|
|
20
|
+
exports.ContentAttemptScoreToJSONTyped = ContentAttemptScoreToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ContentAttemptScore interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfContentAttemptScore(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ContentAttemptScoreFromJSON(json) {
|
|
28
|
+
return ContentAttemptScoreFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ContentAttemptScoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'raw': json['raw'] == null ? undefined : json['raw'],
|
|
36
|
+
'min': json['min'] == null ? undefined : json['min'],
|
|
37
|
+
'max': json['max'] == null ? undefined : json['max'],
|
|
38
|
+
'percentage': json['percentage'] == null ? undefined : json['percentage'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ContentAttemptScoreToJSON(json) {
|
|
42
|
+
return ContentAttemptScoreToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ContentAttemptScoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'raw': value['raw'],
|
|
50
|
+
'min': value['min'],
|
|
51
|
+
'max': value['max'],
|
|
52
|
+
'percentage': value['percentage'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* How the learner player should present the launched content.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ContentLaunchMode: {
|
|
17
|
+
readonly Embedded: "embedded";
|
|
18
|
+
readonly Fullscreen: "fullscreen";
|
|
19
|
+
readonly NewWindow: "new_window";
|
|
20
|
+
};
|
|
21
|
+
export type ContentLaunchMode = typeof ContentLaunchMode[keyof typeof ContentLaunchMode];
|
|
22
|
+
export declare function instanceOfContentLaunchMode(value: any): boolean;
|
|
23
|
+
export declare function ContentLaunchModeFromJSON(json: any): ContentLaunchMode;
|
|
24
|
+
export declare function ContentLaunchModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLaunchMode;
|
|
25
|
+
export declare function ContentLaunchModeToJSON(value?: ContentLaunchMode | null): any;
|
|
26
|
+
export declare function ContentLaunchModeToJSONTyped(value: any, ignoreDiscriminator: boolean): ContentLaunchMode;
|
|
@@ -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.ContentLaunchMode = void 0;
|
|
17
|
+
exports.instanceOfContentLaunchMode = instanceOfContentLaunchMode;
|
|
18
|
+
exports.ContentLaunchModeFromJSON = ContentLaunchModeFromJSON;
|
|
19
|
+
exports.ContentLaunchModeFromJSONTyped = ContentLaunchModeFromJSONTyped;
|
|
20
|
+
exports.ContentLaunchModeToJSON = ContentLaunchModeToJSON;
|
|
21
|
+
exports.ContentLaunchModeToJSONTyped = ContentLaunchModeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* How the learner player should present the launched content.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ContentLaunchMode = {
|
|
27
|
+
Embedded: 'embedded',
|
|
28
|
+
Fullscreen: 'fullscreen',
|
|
29
|
+
NewWindow: 'new_window'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfContentLaunchMode(value) {
|
|
32
|
+
for (const key in exports.ContentLaunchMode) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.ContentLaunchMode, key)) {
|
|
34
|
+
if (exports.ContentLaunchMode[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function ContentLaunchModeFromJSON(json) {
|
|
42
|
+
return ContentLaunchModeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ContentLaunchModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function ContentLaunchModeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function ContentLaunchModeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GetContentContentData } from './GetContentContentData';
|
|
13
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -46,6 +47,12 @@ export interface GetContent {
|
|
|
46
47
|
* @memberof GetContent
|
|
47
48
|
*/
|
|
48
49
|
contentType: GetContentContentTypeEnum;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {ContentLaunchMode}
|
|
53
|
+
* @memberof GetContent
|
|
54
|
+
*/
|
|
55
|
+
launchMode: ContentLaunchMode;
|
|
49
56
|
/**
|
|
50
57
|
*
|
|
51
58
|
* @type {GetContentContentData}
|
|
@@ -20,6 +20,7 @@ exports.GetContentFromJSONTyped = GetContentFromJSONTyped;
|
|
|
20
20
|
exports.GetContentToJSON = GetContentToJSON;
|
|
21
21
|
exports.GetContentToJSONTyped = GetContentToJSONTyped;
|
|
22
22
|
const GetContentContentData_1 = require("./GetContentContentData");
|
|
23
|
+
const ContentLaunchMode_1 = require("./ContentLaunchMode");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -44,6 +45,8 @@ function instanceOfGetContent(value) {
|
|
|
44
45
|
return false;
|
|
45
46
|
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
46
47
|
return false;
|
|
48
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined)
|
|
49
|
+
return false;
|
|
47
50
|
if (!('contentData' in value) || value['contentData'] === undefined)
|
|
48
51
|
return false;
|
|
49
52
|
if (!('published' in value) || value['published'] === undefined)
|
|
@@ -63,6 +66,7 @@ function GetContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
66
|
'name': json['name'],
|
|
64
67
|
'description': json['description'] == null ? undefined : json['description'],
|
|
65
68
|
'contentType': json['content_type'],
|
|
69
|
+
'launchMode': (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
|
|
66
70
|
'contentData': (0, GetContentContentData_1.GetContentContentDataFromJSON)(json['content_data']),
|
|
67
71
|
'order': json['order'] == null ? undefined : json['order'],
|
|
68
72
|
'published': json['published'],
|
|
@@ -85,6 +89,7 @@ function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
89
|
'name': value['name'],
|
|
86
90
|
'description': value['description'],
|
|
87
91
|
'content_type': value['contentType'],
|
|
92
|
+
'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
|
|
88
93
|
'content_data': (0, GetContentContentData_1.GetContentContentDataToJSON)(value['contentData']),
|
|
89
94
|
'order': value['order'],
|
|
90
95
|
'published': value['published'],
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { ContentAttemptRollupScore } from './ContentAttemptRollupScore';
|
|
13
|
+
import type { ContentAttemptItem } from './ContentAttemptItem';
|
|
14
|
+
/**
|
|
15
|
+
* Learner attempt history and rollup for a content item
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetContentAttempts
|
|
18
|
+
*/
|
|
19
|
+
export interface GetContentAttempts {
|
|
20
|
+
/**
|
|
21
|
+
* Content external ID
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetContentAttempts
|
|
24
|
+
*/
|
|
25
|
+
contentId: string;
|
|
26
|
+
/**
|
|
27
|
+
* User ID these attempts belong to
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof GetContentAttempts
|
|
30
|
+
*/
|
|
31
|
+
userId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Maximum content sessions allowed for this learner/content pair
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof GetContentAttempts
|
|
36
|
+
*/
|
|
37
|
+
maxAttempts: number;
|
|
38
|
+
/**
|
|
39
|
+
* Number of attempts already created
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof GetContentAttempts
|
|
42
|
+
*/
|
|
43
|
+
attemptsUsed: number;
|
|
44
|
+
/**
|
|
45
|
+
* Number of additional attempts that can be created
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof GetContentAttempts
|
|
48
|
+
*/
|
|
49
|
+
attemptsRemaining: number;
|
|
50
|
+
/**
|
|
51
|
+
* Whether another attempt may be started under the current policy
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof GetContentAttempts
|
|
54
|
+
*/
|
|
55
|
+
canStartNewAttempt: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Strategy used to compute rollup_score from attempts
|
|
58
|
+
* @type {GetContentAttemptsScoreRollupStrategyEnum}
|
|
59
|
+
* @memberof GetContentAttempts
|
|
60
|
+
*/
|
|
61
|
+
scoreRollupStrategy: GetContentAttemptsScoreRollupStrategyEnum;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {ContentAttemptRollupScore}
|
|
65
|
+
* @memberof GetContentAttempts
|
|
66
|
+
*/
|
|
67
|
+
rollupScore: ContentAttemptRollupScore | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<ContentAttemptItem>}
|
|
71
|
+
* @memberof GetContentAttempts
|
|
72
|
+
*/
|
|
73
|
+
attempts: Array<ContentAttemptItem>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const GetContentAttemptsScoreRollupStrategyEnum: {
|
|
79
|
+
readonly Latest: "Latest";
|
|
80
|
+
readonly Best: "Best";
|
|
81
|
+
};
|
|
82
|
+
export type GetContentAttemptsScoreRollupStrategyEnum = typeof GetContentAttemptsScoreRollupStrategyEnum[keyof typeof GetContentAttemptsScoreRollupStrategyEnum];
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the GetContentAttempts interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfGetContentAttempts(value: object): value is GetContentAttempts;
|
|
87
|
+
export declare function GetContentAttemptsFromJSON(json: any): GetContentAttempts;
|
|
88
|
+
export declare function GetContentAttemptsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentAttempts;
|
|
89
|
+
export declare function GetContentAttemptsToJSON(json: any): GetContentAttempts;
|
|
90
|
+
export declare function GetContentAttemptsToJSONTyped(value?: GetContentAttempts | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
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.GetContentAttemptsScoreRollupStrategyEnum = void 0;
|
|
17
|
+
exports.instanceOfGetContentAttempts = instanceOfGetContentAttempts;
|
|
18
|
+
exports.GetContentAttemptsFromJSON = GetContentAttemptsFromJSON;
|
|
19
|
+
exports.GetContentAttemptsFromJSONTyped = GetContentAttemptsFromJSONTyped;
|
|
20
|
+
exports.GetContentAttemptsToJSON = GetContentAttemptsToJSON;
|
|
21
|
+
exports.GetContentAttemptsToJSONTyped = GetContentAttemptsToJSONTyped;
|
|
22
|
+
const ContentAttemptRollupScore_1 = require("./ContentAttemptRollupScore");
|
|
23
|
+
const ContentAttemptItem_1 = require("./ContentAttemptItem");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.GetContentAttemptsScoreRollupStrategyEnum = {
|
|
28
|
+
Latest: 'Latest',
|
|
29
|
+
Best: 'Best'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetContentAttempts interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfGetContentAttempts(value) {
|
|
35
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('attemptsUsed' in value) || value['attemptsUsed'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('attemptsRemaining' in value) || value['attemptsRemaining'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('canStartNewAttempt' in value) || value['canStartNewAttempt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('rollupScore' in value) || value['rollupScore'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('attempts' in value) || value['attempts'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function GetContentAttemptsFromJSON(json) {
|
|
56
|
+
return GetContentAttemptsFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function GetContentAttemptsFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'contentId': json['content_id'],
|
|
64
|
+
'userId': json['user_id'],
|
|
65
|
+
'maxAttempts': json['max_attempts'],
|
|
66
|
+
'attemptsUsed': json['attempts_used'],
|
|
67
|
+
'attemptsRemaining': json['attempts_remaining'],
|
|
68
|
+
'canStartNewAttempt': json['can_start_new_attempt'],
|
|
69
|
+
'scoreRollupStrategy': json['score_rollup_strategy'],
|
|
70
|
+
'rollupScore': (0, ContentAttemptRollupScore_1.ContentAttemptRollupScoreFromJSON)(json['rollup_score']),
|
|
71
|
+
'attempts': (json['attempts'].map(ContentAttemptItem_1.ContentAttemptItemFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function GetContentAttemptsToJSON(json) {
|
|
75
|
+
return GetContentAttemptsToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
function GetContentAttemptsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
'content_id': value['contentId'],
|
|
83
|
+
'user_id': value['userId'],
|
|
84
|
+
'max_attempts': value['maxAttempts'],
|
|
85
|
+
'attempts_used': value['attemptsUsed'],
|
|
86
|
+
'attempts_remaining': value['attemptsRemaining'],
|
|
87
|
+
'can_start_new_attempt': value['canStartNewAttempt'],
|
|
88
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
89
|
+
'rollup_score': (0, ContentAttemptRollupScore_1.ContentAttemptRollupScoreToJSON)(value['rollupScore']),
|
|
90
|
+
'attempts': (value['attempts'].map(ContentAttemptItem_1.ContentAttemptItemToJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|