@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
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* How the learner player should present the launched content.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ContentLaunchMode = {
|
|
19
|
+
Embedded: 'embedded',
|
|
20
|
+
Fullscreen: 'fullscreen',
|
|
21
|
+
NewWindow: 'new_window'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfContentLaunchMode(value) {
|
|
24
|
+
for (const key in ContentLaunchMode) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(ContentLaunchMode, key)) {
|
|
26
|
+
if (ContentLaunchMode[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function ContentLaunchModeFromJSON(json) {
|
|
34
|
+
return ContentLaunchModeFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ContentLaunchModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function ContentLaunchModeToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function ContentLaunchModeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -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}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { GetContentContentDataFromJSON, GetContentContentDataToJSON, } from './GetContentContentData';
|
|
15
|
+
import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
|
|
15
16
|
/**
|
|
16
17
|
* @export
|
|
17
18
|
*/
|
|
@@ -36,6 +37,8 @@ export function instanceOfGetContent(value) {
|
|
|
36
37
|
return false;
|
|
37
38
|
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
38
39
|
return false;
|
|
40
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined)
|
|
41
|
+
return false;
|
|
39
42
|
if (!('contentData' in value) || value['contentData'] === undefined)
|
|
40
43
|
return false;
|
|
41
44
|
if (!('published' in value) || value['published'] === undefined)
|
|
@@ -55,6 +58,7 @@ export function GetContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
58
|
'name': json['name'],
|
|
56
59
|
'description': json['description'] == null ? undefined : json['description'],
|
|
57
60
|
'contentType': json['content_type'],
|
|
61
|
+
'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
|
|
58
62
|
'contentData': GetContentContentDataFromJSON(json['content_data']),
|
|
59
63
|
'order': json['order'] == null ? undefined : json['order'],
|
|
60
64
|
'published': json['published'],
|
|
@@ -77,6 +81,7 @@ export function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
81
|
'name': value['name'],
|
|
78
82
|
'description': value['description'],
|
|
79
83
|
'content_type': value['contentType'],
|
|
84
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
80
85
|
'content_data': GetContentContentDataToJSON(value['contentData']),
|
|
81
86
|
'order': value['order'],
|
|
82
87
|
'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,84 @@
|
|
|
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 { ContentAttemptRollupScoreFromJSON, ContentAttemptRollupScoreToJSON, } from './ContentAttemptRollupScore';
|
|
15
|
+
import { ContentAttemptItemFromJSON, ContentAttemptItemToJSON, } from './ContentAttemptItem';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const GetContentAttemptsScoreRollupStrategyEnum = {
|
|
20
|
+
Latest: 'Latest',
|
|
21
|
+
Best: 'Best'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetContentAttempts interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfGetContentAttempts(value) {
|
|
27
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('attemptsUsed' in value) || value['attemptsUsed'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('attemptsRemaining' in value) || value['attemptsRemaining'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('canStartNewAttempt' in value) || value['canStartNewAttempt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('scoreRollupStrategy' in value) || value['scoreRollupStrategy'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('rollupScore' in value) || value['rollupScore'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('attempts' in value) || value['attempts'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
export function GetContentAttemptsFromJSON(json) {
|
|
48
|
+
return GetContentAttemptsFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function GetContentAttemptsFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'contentId': json['content_id'],
|
|
56
|
+
'userId': json['user_id'],
|
|
57
|
+
'maxAttempts': json['max_attempts'],
|
|
58
|
+
'attemptsUsed': json['attempts_used'],
|
|
59
|
+
'attemptsRemaining': json['attempts_remaining'],
|
|
60
|
+
'canStartNewAttempt': json['can_start_new_attempt'],
|
|
61
|
+
'scoreRollupStrategy': json['score_rollup_strategy'],
|
|
62
|
+
'rollupScore': ContentAttemptRollupScoreFromJSON(json['rollup_score']),
|
|
63
|
+
'attempts': (json['attempts'].map(ContentAttemptItemFromJSON)),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export function GetContentAttemptsToJSON(json) {
|
|
67
|
+
return GetContentAttemptsToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
export function GetContentAttemptsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'content_id': value['contentId'],
|
|
75
|
+
'user_id': value['userId'],
|
|
76
|
+
'max_attempts': value['maxAttempts'],
|
|
77
|
+
'attempts_used': value['attemptsUsed'],
|
|
78
|
+
'attempts_remaining': value['attemptsRemaining'],
|
|
79
|
+
'can_start_new_attempt': value['canStartNewAttempt'],
|
|
80
|
+
'score_rollup_strategy': value['scoreRollupStrategy'],
|
|
81
|
+
'rollup_score': ContentAttemptRollupScoreToJSON(value['rollupScore']),
|
|
82
|
+
'attempts': (value['attempts'].map(ContentAttemptItemToJSON)),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -51,6 +51,18 @@ export interface GetContentSession {
|
|
|
51
51
|
* @memberof GetContentSession
|
|
52
52
|
*/
|
|
53
53
|
gradeStatus: string;
|
|
54
|
+
/**
|
|
55
|
+
* The learner attempt number for this content session
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetContentSession
|
|
58
|
+
*/
|
|
59
|
+
attemptNumber: number;
|
|
60
|
+
/**
|
|
61
|
+
* Whether this is the current attempt used for learner progress display
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof GetContentSession
|
|
64
|
+
*/
|
|
65
|
+
isCurrent: boolean;
|
|
54
66
|
}
|
|
55
67
|
/**
|
|
56
68
|
* Check if a given object implements the GetContentSession interface.
|
|
@@ -27,6 +27,10 @@ export function instanceOfGetContentSession(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
33
|
+
return false;
|
|
30
34
|
return true;
|
|
31
35
|
}
|
|
32
36
|
export function GetContentSessionFromJSON(json) {
|
|
@@ -43,6 +47,8 @@ export function GetContentSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
47
|
'updatedAt': json['updated_at'],
|
|
44
48
|
'completionStatus': json['completion_status'],
|
|
45
49
|
'gradeStatus': json['grade_status'],
|
|
50
|
+
'attemptNumber': json['attempt_number'],
|
|
51
|
+
'isCurrent': json['is_current'],
|
|
46
52
|
};
|
|
47
53
|
}
|
|
48
54
|
export function GetContentSessionToJSON(json) {
|
|
@@ -59,5 +65,7 @@ export function GetContentSessionToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
59
65
|
'updated_at': value['updatedAt'],
|
|
60
66
|
'completion_status': value['completionStatus'],
|
|
61
67
|
'grade_status': value['gradeStatus'],
|
|
68
|
+
'attempt_number': value['attemptNumber'],
|
|
69
|
+
'is_current': value['isCurrent'],
|
|
62
70
|
};
|
|
63
71
|
}
|
|
@@ -59,6 +59,18 @@ export interface GetContentSessionDetail {
|
|
|
59
59
|
* @memberof GetContentSessionDetail
|
|
60
60
|
*/
|
|
61
61
|
durationInSeconds: number;
|
|
62
|
+
/**
|
|
63
|
+
* The learner attempt number for this content session
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof GetContentSessionDetail
|
|
66
|
+
*/
|
|
67
|
+
attemptNumber: number;
|
|
68
|
+
/**
|
|
69
|
+
* Whether this is the current attempt used for learner progress display
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof GetContentSessionDetail
|
|
72
|
+
*/
|
|
73
|
+
isCurrent: boolean;
|
|
62
74
|
/**
|
|
63
75
|
*
|
|
64
76
|
* @type {GetContentSessionDetailUserData}
|
|
@@ -50,6 +50,10 @@ export function instanceOfGetContentSessionDetail(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('durationInSeconds' in value) || value['durationInSeconds'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
56
|
+
return false;
|
|
53
57
|
if (!('userData' in value) || value['userData'] === undefined)
|
|
54
58
|
return false;
|
|
55
59
|
if (!('scormSessionData' in value) || value['scormSessionData'] === undefined)
|
|
@@ -71,6 +75,8 @@ export function GetContentSessionDetailFromJSONTyped(json, ignoreDiscriminator)
|
|
|
71
75
|
'completionStatus': json['completion_status'],
|
|
72
76
|
'gradeStatus': json['grade_status'],
|
|
73
77
|
'durationInSeconds': json['duration_in_seconds'],
|
|
78
|
+
'attemptNumber': json['attempt_number'],
|
|
79
|
+
'isCurrent': json['is_current'],
|
|
74
80
|
'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
|
|
75
81
|
'scormSessionData': (json['scorm_session_data'] == null ? null : json['scorm_session_data'].map(GetContentSessionDetailScormSessionDataInnerFromJSON)),
|
|
76
82
|
};
|
|
@@ -90,6 +96,8 @@ export function GetContentSessionDetailToJSONTyped(value, ignoreDiscriminator =
|
|
|
90
96
|
'completion_status': value['completionStatus'],
|
|
91
97
|
'grade_status': value['gradeStatus'],
|
|
92
98
|
'duration_in_seconds': value['durationInSeconds'],
|
|
99
|
+
'attempt_number': value['attemptNumber'],
|
|
100
|
+
'is_current': value['isCurrent'],
|
|
93
101
|
'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
|
|
94
102
|
'scorm_session_data': (value['scormSessionData'] == null ? null : value['scormSessionData'].map(GetContentSessionDetailScormSessionDataInnerToJSON)),
|
|
95
103
|
};
|
|
@@ -41,6 +41,30 @@ export interface GetContentSessionListItem {
|
|
|
41
41
|
* @memberof GetContentSessionListItem
|
|
42
42
|
*/
|
|
43
43
|
contentId: string;
|
|
44
|
+
/**
|
|
45
|
+
* The completion status of the content session
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GetContentSessionListItem
|
|
48
|
+
*/
|
|
49
|
+
completionStatus: string;
|
|
50
|
+
/**
|
|
51
|
+
* The grade status of the content session
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof GetContentSessionListItem
|
|
54
|
+
*/
|
|
55
|
+
gradeStatus: string;
|
|
56
|
+
/**
|
|
57
|
+
* The learner attempt number for this content session
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof GetContentSessionListItem
|
|
60
|
+
*/
|
|
61
|
+
attemptNumber: number;
|
|
62
|
+
/**
|
|
63
|
+
* Whether this is the current attempt used for learner progress display
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof GetContentSessionListItem
|
|
66
|
+
*/
|
|
67
|
+
isCurrent: boolean;
|
|
44
68
|
/**
|
|
45
69
|
*
|
|
46
70
|
* @type {GetContentSessionDetailUserData}
|
|
@@ -25,6 +25,14 @@ export function instanceOfGetContentSessionListItem(value) {
|
|
|
25
25
|
return false;
|
|
26
26
|
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
35
|
+
return false;
|
|
28
36
|
if (!('userData' in value) || value['userData'] === undefined)
|
|
29
37
|
return false;
|
|
30
38
|
if (!('scormSessionData' in value) || value['scormSessionData'] === undefined)
|
|
@@ -43,6 +51,10 @@ export function GetContentSessionListItemFromJSONTyped(json, ignoreDiscriminator
|
|
|
43
51
|
'createdAt': json['created_at'],
|
|
44
52
|
'updatedAt': json['updated_at'],
|
|
45
53
|
'contentId': json['content_id'],
|
|
54
|
+
'completionStatus': json['completion_status'],
|
|
55
|
+
'gradeStatus': json['grade_status'],
|
|
56
|
+
'attemptNumber': json['attempt_number'],
|
|
57
|
+
'isCurrent': json['is_current'],
|
|
46
58
|
'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
|
|
47
59
|
'scormSessionData': GetContentSessionListItemScormSessionDataFromJSON(json['scorm_session_data']),
|
|
48
60
|
};
|
|
@@ -59,6 +71,10 @@ export function GetContentSessionListItemToJSONTyped(value, ignoreDiscriminator
|
|
|
59
71
|
'created_at': value['createdAt'],
|
|
60
72
|
'updated_at': value['updatedAt'],
|
|
61
73
|
'content_id': value['contentId'],
|
|
74
|
+
'completion_status': value['completionStatus'],
|
|
75
|
+
'grade_status': value['gradeStatus'],
|
|
76
|
+
'attempt_number': value['attemptNumber'],
|
|
77
|
+
'is_current': value['isCurrent'],
|
|
62
78
|
'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
|
|
63
79
|
'scorm_session_data': GetContentSessionListItemScormSessionDataToJSON(value['scormSessionData']),
|
|
64
80
|
};
|
|
@@ -46,13 +46,13 @@ export interface GetPortal {
|
|
|
46
46
|
*/
|
|
47
47
|
clientDomain?: string | null;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* API-proxied portal logo URL when a logo is configured.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof GetPortal
|
|
52
52
|
*/
|
|
53
53
|
logoUrl?: string | null;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* API-proxied portal favicon URL when a favicon is configured.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof GetPortal
|
|
58
58
|
*/
|
|
@@ -34,13 +34,13 @@ export interface GetPublicPortalBranding {
|
|
|
34
34
|
*/
|
|
35
35
|
slug: string | null;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* API-proxied portal logo URL when a logo is configured.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof GetPublicPortalBranding
|
|
40
40
|
*/
|
|
41
41
|
logoUrl: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* API-proxied portal favicon URL when a favicon is configured.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof GetPublicPortalBranding
|
|
46
46
|
*/
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
12
13
|
/**
|
|
13
14
|
* A content session
|
|
14
15
|
* @export
|
|
@@ -33,6 +34,12 @@ export interface PostContentSession {
|
|
|
33
34
|
* @memberof PostContentSession
|
|
34
35
|
*/
|
|
35
36
|
launchUrl: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ContentLaunchMode}
|
|
40
|
+
* @memberof PostContentSession
|
|
41
|
+
*/
|
|
42
|
+
launchMode: ContentLaunchMode;
|
|
36
43
|
/**
|
|
37
44
|
* The date and time the content session was created
|
|
38
45
|
* @type {number}
|
|
@@ -45,6 +52,18 @@ export interface PostContentSession {
|
|
|
45
52
|
* @memberof PostContentSession
|
|
46
53
|
*/
|
|
47
54
|
playerSessionId?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The learner attempt number for this content session
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof PostContentSession
|
|
59
|
+
*/
|
|
60
|
+
attemptNumber: number;
|
|
61
|
+
/**
|
|
62
|
+
* Whether this is the current attempt used for learner progress display
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof PostContentSession
|
|
65
|
+
*/
|
|
66
|
+
isCurrent: boolean;
|
|
48
67
|
}
|
|
49
68
|
/**
|
|
50
69
|
* Check if a given object implements the PostContentSession interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the PostContentSession interface.
|
|
16
17
|
*/
|
|
@@ -21,8 +22,14 @@ export function instanceOfPostContentSession(value) {
|
|
|
21
22
|
return false;
|
|
22
23
|
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
23
24
|
return false;
|
|
25
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined)
|
|
26
|
+
return false;
|
|
24
27
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
25
28
|
return false;
|
|
29
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
32
|
+
return false;
|
|
26
33
|
return true;
|
|
27
34
|
}
|
|
28
35
|
export function PostContentSessionFromJSON(json) {
|
|
@@ -36,8 +43,11 @@ export function PostContentSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
43
|
'contentId': json['content_id'],
|
|
37
44
|
'userId': json['user_id'],
|
|
38
45
|
'launchUrl': json['launch_url'],
|
|
46
|
+
'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
|
|
39
47
|
'createdAt': json['created_at'],
|
|
40
48
|
'playerSessionId': json['player_session_id'] == null ? undefined : json['player_session_id'],
|
|
49
|
+
'attemptNumber': json['attempt_number'],
|
|
50
|
+
'isCurrent': json['is_current'],
|
|
41
51
|
};
|
|
42
52
|
}
|
|
43
53
|
export function PostContentSessionToJSON(json) {
|
|
@@ -51,7 +61,10 @@ export function PostContentSessionToJSONTyped(value, ignoreDiscriminator = false
|
|
|
51
61
|
'content_id': value['contentId'],
|
|
52
62
|
'user_id': value['userId'],
|
|
53
63
|
'launch_url': value['launchUrl'],
|
|
64
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
54
65
|
'created_at': value['createdAt'],
|
|
55
66
|
'player_session_id': value['playerSessionId'],
|
|
67
|
+
'attempt_number': value['attemptNumber'],
|
|
68
|
+
'is_current': value['isCurrent'],
|
|
56
69
|
};
|
|
57
70
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface PutContent {
|
|
|
27
28
|
* @memberof PutContent
|
|
28
29
|
*/
|
|
29
30
|
published?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ContentLaunchMode}
|
|
34
|
+
* @memberof PutContent
|
|
35
|
+
*/
|
|
36
|
+
launchMode?: ContentLaunchMode;
|
|
30
37
|
}
|
|
31
38
|
/**
|
|
32
39
|
* Check if a given object implements the PutContent interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the PutContent interface.
|
|
16
17
|
*/
|
|
@@ -27,6 +28,7 @@ export function PutContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
28
|
return {
|
|
28
29
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
30
|
'published': json['published'] == null ? undefined : json['published'],
|
|
31
|
+
'launchMode': json['launch_mode'] == null ? undefined : ContentLaunchModeFromJSON(json['launch_mode']),
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
34
|
export function PutContentToJSON(json) {
|
|
@@ -39,5 +41,6 @@ export function PutContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
39
41
|
return {
|
|
40
42
|
'name': value['name'],
|
|
41
43
|
'published': value['published'],
|
|
44
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
42
45
|
};
|
|
43
46
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export * from './Certificate';
|
|
2
2
|
export * from './CertificateConfig';
|
|
3
3
|
export * from './CertificatePublic';
|
|
4
|
+
export * from './ContentAttemptItem';
|
|
5
|
+
export * from './ContentAttemptRollupScore';
|
|
6
|
+
export * from './ContentAttemptScore';
|
|
7
|
+
export * from './ContentLaunchMode';
|
|
4
8
|
export * from './CourseCatalog';
|
|
5
9
|
export * from './CourseShare';
|
|
6
10
|
export * from './CriteriaBasedSelection';
|
|
7
11
|
export * from './CriteriaBasedSelectionCriteria';
|
|
8
12
|
export * from './CriteriaBasedSelectionDistribution';
|
|
9
|
-
export * from './DownloadSupportTicketAttachment200Response';
|
|
10
13
|
export * from './EffectiveCertificateConfig';
|
|
11
14
|
export * from './Essay';
|
|
12
15
|
export * from './Essay1';
|
|
@@ -16,6 +19,7 @@ export * from './GetCertificateConfigList';
|
|
|
16
19
|
export * from './GetCertificateList';
|
|
17
20
|
export * from './GetChatMessage';
|
|
18
21
|
export * from './GetContent';
|
|
22
|
+
export * from './GetContentAttempts';
|
|
19
23
|
export * from './GetContentContentData';
|
|
20
24
|
export * from './GetContentGradeDetail';
|
|
21
25
|
export * from './GetContentGrades';
|