@easyedu/js-lsm-api 1.27.0 → 1.29.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 +9 -0
- package/README.md +2 -2
- package/dist/apis/ContentApi.d.ts +71 -1
- package/dist/apis/ContentApi.js +158 -1
- package/dist/esm/apis/ContentApi.d.ts +71 -1
- package/dist/esm/apis/ContentApi.js +158 -1
- package/dist/esm/models/GetContent.d.ts +19 -1
- package/dist/esm/models/GetContent.js +3 -0
- package/dist/esm/models/GetContentSessionDetail.d.ts +103 -0
- package/dist/esm/models/GetContentSessionDetail.js +96 -0
- package/dist/esm/models/GetContentSessionDetailScormSessionData.d.ts +32 -0
- package/dist/esm/models/GetContentSessionDetailScormSessionData.js +43 -0
- package/dist/esm/models/GetContentSessionDetailUserData.d.ts +38 -0
- package/dist/esm/models/GetContentSessionDetailUserData.js +47 -0
- package/dist/esm/models/GetContentSessionList.d.ts +57 -0
- package/dist/esm/models/GetContentSessionList.js +60 -0
- package/dist/esm/models/GetContentSessionListItem.d.ts +64 -0
- package/dist/esm/models/GetContentSessionListItem.js +65 -0
- package/dist/esm/models/GetScormApiLogItem.d.ts +73 -0
- package/dist/esm/models/GetScormApiLogItem.js +73 -0
- package/dist/esm/models/GetScormApiLogs.d.ts +57 -0
- package/dist/esm/models/GetScormApiLogs.js +60 -0
- package/dist/esm/models/GetScormSessionData.d.ts +59 -0
- package/dist/esm/models/GetScormSessionData.js +60 -0
- package/dist/esm/models/GetScormSessionDataActivity.d.ts +38 -0
- package/dist/esm/models/GetScormSessionDataActivity.js +47 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/GetContent.d.ts +19 -1
- package/dist/models/GetContent.js +3 -0
- package/dist/models/GetContentSessionDetail.d.ts +103 -0
- package/dist/models/GetContentSessionDetail.js +104 -0
- package/dist/models/GetContentSessionDetailScormSessionData.d.ts +32 -0
- package/dist/models/GetContentSessionDetailScormSessionData.js +50 -0
- package/dist/models/GetContentSessionDetailUserData.d.ts +38 -0
- package/dist/models/GetContentSessionDetailUserData.js +54 -0
- package/dist/models/GetContentSessionList.d.ts +57 -0
- package/dist/models/GetContentSessionList.js +67 -0
- package/dist/models/GetContentSessionListItem.d.ts +64 -0
- package/dist/models/GetContentSessionListItem.js +72 -0
- package/dist/models/GetScormApiLogItem.d.ts +73 -0
- package/dist/models/GetScormApiLogItem.js +81 -0
- package/dist/models/GetScormApiLogs.d.ts +57 -0
- package/dist/models/GetScormApiLogs.js +67 -0
- package/dist/models/GetScormSessionData.d.ts +59 -0
- package/dist/models/GetScormSessionData.js +67 -0
- package/dist/models/GetScormSessionDataActivity.d.ts +38 -0
- package/dist/models/GetScormSessionDataActivity.js +54 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +242 -0
- package/src/models/GetContent.ts +22 -1
- package/src/models/GetContentSessionDetail.ts +178 -0
- package/src/models/GetContentSessionDetailScormSessionData.ts +66 -0
- package/src/models/GetContentSessionDetailUserData.ts +75 -0
- package/src/models/GetContentSessionList.ts +110 -0
- package/src/models/GetContentSessionListItem.ts +126 -0
- package/src/models/GetScormApiLogItem.ts +125 -0
- package/src/models/GetScormApiLogs.ts +110 -0
- package/src/models/GetScormSessionData.ts +110 -0
- package/src/models/GetScormSessionDataActivity.ts +75 -0
- package/src/models/index.ts +9 -0
|
@@ -76,6 +76,24 @@ export interface GetContent {
|
|
|
76
76
|
* @memberof GetContent
|
|
77
77
|
*/
|
|
78
78
|
readonly updatedDate?: Date;
|
|
79
|
+
/**
|
|
80
|
+
* Active version number for versioned content types (SCORM, Video, PDF, File)
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof GetContent
|
|
83
|
+
*/
|
|
84
|
+
readonly activeVersionNumber?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Active version ID for versioned content types
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof GetContent
|
|
89
|
+
*/
|
|
90
|
+
readonly activeVersionId?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Whether this content has multiple versions
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof GetContent
|
|
95
|
+
*/
|
|
96
|
+
readonly hasMultipleVersions?: boolean;
|
|
79
97
|
}
|
|
80
98
|
/**
|
|
81
99
|
* @export
|
|
@@ -97,4 +115,4 @@ export declare function instanceOfGetContent(value: object): value is GetContent
|
|
|
97
115
|
export declare function GetContentFromJSON(json: any): GetContent;
|
|
98
116
|
export declare function GetContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContent;
|
|
99
117
|
export declare function GetContentToJSON(json: any): GetContent;
|
|
100
|
-
export declare function GetContentToJSONTyped(value?: Omit<GetContent, 'id' | 'created_date' | 'updated_date'> | null, ignoreDiscriminator?: boolean): any;
|
|
118
|
+
export declare function GetContentToJSONTyped(value?: Omit<GetContent, 'id' | 'created_date' | 'updated_date' | 'active_version_number' | 'active_version_id' | 'has_multiple_versions'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -60,6 +60,9 @@ export function GetContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
60
|
'published': json['published'],
|
|
61
61
|
'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
|
|
62
62
|
'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
|
|
63
|
+
'activeVersionNumber': json['active_version_number'] == null ? undefined : json['active_version_number'],
|
|
64
|
+
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
65
|
+
'hasMultipleVersions': json['has_multiple_versions'] == null ? undefined : json['has_multiple_versions'],
|
|
63
66
|
};
|
|
64
67
|
}
|
|
65
68
|
export function GetContentToJSON(json) {
|
|
@@ -0,0 +1,103 @@
|
|
|
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 { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
|
|
13
|
+
import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
|
|
14
|
+
/**
|
|
15
|
+
* Detailed content session information
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetContentSessionDetail
|
|
18
|
+
*/
|
|
19
|
+
export interface GetContentSessionDetail {
|
|
20
|
+
/**
|
|
21
|
+
* The external ID of the content session
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetContentSessionDetail
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The date and time the content session was created (Unix timestamp)
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof GetContentSessionDetail
|
|
30
|
+
*/
|
|
31
|
+
createdAt: number;
|
|
32
|
+
/**
|
|
33
|
+
* The date and time the content session was updated (Unix timestamp)
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof GetContentSessionDetail
|
|
36
|
+
*/
|
|
37
|
+
updatedAt: number;
|
|
38
|
+
/**
|
|
39
|
+
* The external ID of the content
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GetContentSessionDetail
|
|
42
|
+
*/
|
|
43
|
+
contentId: string;
|
|
44
|
+
/**
|
|
45
|
+
* The completion status of the content session
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof GetContentSessionDetail
|
|
48
|
+
*/
|
|
49
|
+
completionStatus: GetContentSessionDetailCompletionStatusEnum;
|
|
50
|
+
/**
|
|
51
|
+
* The grade status of the content session
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof GetContentSessionDetail
|
|
54
|
+
*/
|
|
55
|
+
gradeStatus: GetContentSessionDetailGradeStatusEnum;
|
|
56
|
+
/**
|
|
57
|
+
* The total duration of the session in seconds
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof GetContentSessionDetail
|
|
60
|
+
*/
|
|
61
|
+
durationInSeconds: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {GetContentSessionDetailUserData}
|
|
65
|
+
* @memberof GetContentSessionDetail
|
|
66
|
+
*/
|
|
67
|
+
userData: GetContentSessionDetailUserData;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {GetContentSessionDetailScormSessionData}
|
|
71
|
+
* @memberof GetContentSessionDetail
|
|
72
|
+
*/
|
|
73
|
+
scormSessionData: GetContentSessionDetailScormSessionData | null;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const GetContentSessionDetailCompletionStatusEnum: {
|
|
79
|
+
readonly NotAttempted: "NotAttempted";
|
|
80
|
+
readonly InProgress: "InProgress";
|
|
81
|
+
readonly Completed: "Completed";
|
|
82
|
+
};
|
|
83
|
+
export type GetContentSessionDetailCompletionStatusEnum = typeof GetContentSessionDetailCompletionStatusEnum[keyof typeof GetContentSessionDetailCompletionStatusEnum];
|
|
84
|
+
/**
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export declare const GetContentSessionDetailGradeStatusEnum: {
|
|
88
|
+
readonly Ungraded: "Ungraded";
|
|
89
|
+
readonly Passed: "Passed";
|
|
90
|
+
readonly Failed: "Failed";
|
|
91
|
+
readonly PointsEarned: "PointsEarned";
|
|
92
|
+
readonly PercentageEarned: "PercentageEarned";
|
|
93
|
+
readonly NotApplicable: "NotApplicable";
|
|
94
|
+
};
|
|
95
|
+
export type GetContentSessionDetailGradeStatusEnum = typeof GetContentSessionDetailGradeStatusEnum[keyof typeof GetContentSessionDetailGradeStatusEnum];
|
|
96
|
+
/**
|
|
97
|
+
* Check if a given object implements the GetContentSessionDetail interface.
|
|
98
|
+
*/
|
|
99
|
+
export declare function instanceOfGetContentSessionDetail(value: object): value is GetContentSessionDetail;
|
|
100
|
+
export declare function GetContentSessionDetailFromJSON(json: any): GetContentSessionDetail;
|
|
101
|
+
export declare function GetContentSessionDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetail;
|
|
102
|
+
export declare function GetContentSessionDetailToJSON(json: any): GetContentSessionDetail;
|
|
103
|
+
export declare function GetContentSessionDetailToJSONTyped(value?: GetContentSessionDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { GetContentSessionDetailUserDataFromJSON, GetContentSessionDetailUserDataToJSON, } from './GetContentSessionDetailUserData';
|
|
15
|
+
import { GetContentSessionDetailScormSessionDataFromJSON, GetContentSessionDetailScormSessionDataToJSON, } from './GetContentSessionDetailScormSessionData';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const GetContentSessionDetailCompletionStatusEnum = {
|
|
20
|
+
NotAttempted: 'NotAttempted',
|
|
21
|
+
InProgress: 'InProgress',
|
|
22
|
+
Completed: 'Completed'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const GetContentSessionDetailGradeStatusEnum = {
|
|
28
|
+
Ungraded: 'Ungraded',
|
|
29
|
+
Passed: 'Passed',
|
|
30
|
+
Failed: 'Failed',
|
|
31
|
+
PointsEarned: 'PointsEarned',
|
|
32
|
+
PercentageEarned: 'PercentageEarned',
|
|
33
|
+
NotApplicable: 'NotApplicable'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the GetContentSessionDetail interface.
|
|
37
|
+
*/
|
|
38
|
+
export function instanceOfGetContentSessionDetail(value) {
|
|
39
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('durationInSeconds' in value) || value['durationInSeconds'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('userData' in value) || value['userData'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('scormSessionData' in value) || value['scormSessionData'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
export function GetContentSessionDetailFromJSON(json) {
|
|
60
|
+
return GetContentSessionDetailFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
export function GetContentSessionDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': json['id'],
|
|
68
|
+
'createdAt': json['created_at'],
|
|
69
|
+
'updatedAt': json['updated_at'],
|
|
70
|
+
'contentId': json['content_id'],
|
|
71
|
+
'completionStatus': json['completion_status'],
|
|
72
|
+
'gradeStatus': json['grade_status'],
|
|
73
|
+
'durationInSeconds': json['duration_in_seconds'],
|
|
74
|
+
'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
|
|
75
|
+
'scormSessionData': GetContentSessionDetailScormSessionDataFromJSON(json['scorm_session_data']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export function GetContentSessionDetailToJSON(json) {
|
|
79
|
+
return GetContentSessionDetailToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
export function GetContentSessionDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'created_at': value['createdAt'],
|
|
88
|
+
'updated_at': value['updatedAt'],
|
|
89
|
+
'content_id': value['contentId'],
|
|
90
|
+
'completion_status': value['completionStatus'],
|
|
91
|
+
'grade_status': value['gradeStatus'],
|
|
92
|
+
'duration_in_seconds': value['durationInSeconds'],
|
|
93
|
+
'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
|
|
94
|
+
'scorm_session_data': GetContentSessionDetailScormSessionDataToJSON(value['scormSessionData']),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* SCORM session data if this is a SCORM session, null otherwise
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetContentSessionDetailScormSessionData
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentSessionDetailScormSessionData {
|
|
18
|
+
/**
|
|
19
|
+
* The external ID of the SCORM session
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentSessionDetailScormSessionData
|
|
22
|
+
*/
|
|
23
|
+
scormSessionId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetContentSessionDetailScormSessionData interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetContentSessionDetailScormSessionData(value: object): value is GetContentSessionDetailScormSessionData;
|
|
29
|
+
export declare function GetContentSessionDetailScormSessionDataFromJSON(json: any): GetContentSessionDetailScormSessionData;
|
|
30
|
+
export declare function GetContentSessionDetailScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailScormSessionData;
|
|
31
|
+
export declare function GetContentSessionDetailScormSessionDataToJSON(json: any): GetContentSessionDetailScormSessionData;
|
|
32
|
+
export declare function GetContentSessionDetailScormSessionDataToJSONTyped(value?: GetContentSessionDetailScormSessionData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 GetContentSessionDetailScormSessionData interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetContentSessionDetailScormSessionData(value) {
|
|
18
|
+
if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function GetContentSessionDetailScormSessionDataFromJSON(json) {
|
|
23
|
+
return GetContentSessionDetailScormSessionDataFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function GetContentSessionDetailScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'scormSessionId': json['scorm_session_id'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function GetContentSessionDetailScormSessionDataToJSON(json) {
|
|
34
|
+
return GetContentSessionDetailScormSessionDataToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GetContentSessionDetailScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'scorm_session_id': value['scormSessionId'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetContentSessionDetailUserData
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentSessionDetailUserData {
|
|
18
|
+
/**
|
|
19
|
+
* The external ID of the user
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentSessionDetailUserData
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the user
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetContentSessionDetailUserData
|
|
28
|
+
*/
|
|
29
|
+
userName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetContentSessionDetailUserData interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfGetContentSessionDetailUserData(value: object): value is GetContentSessionDetailUserData;
|
|
35
|
+
export declare function GetContentSessionDetailUserDataFromJSON(json: any): GetContentSessionDetailUserData;
|
|
36
|
+
export declare function GetContentSessionDetailUserDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionDetailUserData;
|
|
37
|
+
export declare function GetContentSessionDetailUserDataToJSON(json: any): GetContentSessionDetailUserData;
|
|
38
|
+
export declare function GetContentSessionDetailUserDataToJSONTyped(value?: GetContentSessionDetailUserData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the GetContentSessionDetailUserData interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetContentSessionDetailUserData(value) {
|
|
18
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('userName' in value) || value['userName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function GetContentSessionDetailUserDataFromJSON(json) {
|
|
25
|
+
return GetContentSessionDetailUserDataFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function GetContentSessionDetailUserDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'userId': json['user_id'],
|
|
33
|
+
'userName': json['user_name'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function GetContentSessionDetailUserDataToJSON(json) {
|
|
37
|
+
return GetContentSessionDetailUserDataToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function GetContentSessionDetailUserDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'user_id': value['userId'],
|
|
45
|
+
'user_name': value['userName'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { GetContentSessionListItem } from './GetContentSessionListItem';
|
|
13
|
+
/**
|
|
14
|
+
* A list of content sessions with pagination information
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetContentSessionList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetContentSessionList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetContentSessionList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetContentSessionList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetContentSessionList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetContentSessionList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetContentSessionListItem>}
|
|
46
|
+
* @memberof GetContentSessionList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetContentSessionListItem>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetContentSessionList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetContentSessionList(value: object): value is GetContentSessionList;
|
|
54
|
+
export declare function GetContentSessionListFromJSON(json: any): GetContentSessionList;
|
|
55
|
+
export declare function GetContentSessionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionList;
|
|
56
|
+
export declare function GetContentSessionListToJSON(json: any): GetContentSessionList;
|
|
57
|
+
export declare function GetContentSessionListToJSONTyped(value?: GetContentSessionList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { GetContentSessionListItemFromJSON, GetContentSessionListItemToJSON, } from './GetContentSessionListItem';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetContentSessionList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetContentSessionList(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function GetContentSessionListFromJSON(json) {
|
|
32
|
+
return GetContentSessionListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetContentSessionListFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'page': json['page'],
|
|
40
|
+
'pageSize': json['pageSize'],
|
|
41
|
+
'totalPages': json['totalPages'],
|
|
42
|
+
'totalItems': json['totalItems'],
|
|
43
|
+
'items': (json['items'].map(GetContentSessionListItemFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetContentSessionListToJSON(json) {
|
|
47
|
+
return GetContentSessionListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetContentSessionListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'page': value['page'],
|
|
55
|
+
'pageSize': value['pageSize'],
|
|
56
|
+
'totalPages': value['totalPages'],
|
|
57
|
+
'totalItems': value['totalItems'],
|
|
58
|
+
'items': (value['items'].map(GetContentSessionListItemToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
|
|
13
|
+
import type { GetContentSessionDetailScormSessionData } from './GetContentSessionDetailScormSessionData';
|
|
14
|
+
/**
|
|
15
|
+
* A content session list item
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetContentSessionListItem
|
|
18
|
+
*/
|
|
19
|
+
export interface GetContentSessionListItem {
|
|
20
|
+
/**
|
|
21
|
+
* The external ID of the content session
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetContentSessionListItem
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* The date and time the content session was created (Unix timestamp)
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof GetContentSessionListItem
|
|
30
|
+
*/
|
|
31
|
+
createdAt: number;
|
|
32
|
+
/**
|
|
33
|
+
* The date and time the content session was updated (Unix timestamp)
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof GetContentSessionListItem
|
|
36
|
+
*/
|
|
37
|
+
updatedAt: number;
|
|
38
|
+
/**
|
|
39
|
+
* The external ID of the content
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof GetContentSessionListItem
|
|
42
|
+
*/
|
|
43
|
+
contentId: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {GetContentSessionDetailUserData}
|
|
47
|
+
* @memberof GetContentSessionListItem
|
|
48
|
+
*/
|
|
49
|
+
userData: GetContentSessionDetailUserData;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {GetContentSessionDetailScormSessionData}
|
|
53
|
+
* @memberof GetContentSessionListItem
|
|
54
|
+
*/
|
|
55
|
+
scormSessionData: GetContentSessionDetailScormSessionData | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the GetContentSessionListItem interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfGetContentSessionListItem(value: object): value is GetContentSessionListItem;
|
|
61
|
+
export declare function GetContentSessionListItemFromJSON(json: any): GetContentSessionListItem;
|
|
62
|
+
export declare function GetContentSessionListItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSessionListItem;
|
|
63
|
+
export declare function GetContentSessionListItemToJSON(json: any): GetContentSessionListItem;
|
|
64
|
+
export declare function GetContentSessionListItemToJSONTyped(value?: GetContentSessionListItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { GetContentSessionDetailUserDataFromJSON, GetContentSessionDetailUserDataToJSON, } from './GetContentSessionDetailUserData';
|
|
15
|
+
import { GetContentSessionDetailScormSessionDataFromJSON, GetContentSessionDetailScormSessionDataToJSON, } from './GetContentSessionDetailScormSessionData';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GetContentSessionListItem interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGetContentSessionListItem(value) {
|
|
20
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('userData' in value) || value['userData'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('scormSessionData' in value) || value['scormSessionData'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function GetContentSessionListItemFromJSON(json) {
|
|
35
|
+
return GetContentSessionListItemFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GetContentSessionListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'createdAt': json['created_at'],
|
|
44
|
+
'updatedAt': json['updated_at'],
|
|
45
|
+
'contentId': json['content_id'],
|
|
46
|
+
'userData': GetContentSessionDetailUserDataFromJSON(json['user_data']),
|
|
47
|
+
'scormSessionData': GetContentSessionDetailScormSessionDataFromJSON(json['scorm_session_data']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function GetContentSessionListItemToJSON(json) {
|
|
51
|
+
return GetContentSessionListItemToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function GetContentSessionListItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'created_at': value['createdAt'],
|
|
60
|
+
'updated_at': value['updatedAt'],
|
|
61
|
+
'content_id': value['contentId'],
|
|
62
|
+
'user_data': GetContentSessionDetailUserDataToJSON(value['userData']),
|
|
63
|
+
'scorm_session_data': GetContentSessionDetailScormSessionDataToJSON(value['scormSessionData']),
|
|
64
|
+
};
|
|
65
|
+
}
|