@easyedu/js-lsm-api 1.28.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/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/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/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
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfGetScormApiLogs = instanceOfGetScormApiLogs;
|
|
17
|
+
exports.GetScormApiLogsFromJSON = GetScormApiLogsFromJSON;
|
|
18
|
+
exports.GetScormApiLogsFromJSONTyped = GetScormApiLogsFromJSONTyped;
|
|
19
|
+
exports.GetScormApiLogsToJSON = GetScormApiLogsToJSON;
|
|
20
|
+
exports.GetScormApiLogsToJSONTyped = GetScormApiLogsToJSONTyped;
|
|
21
|
+
const GetScormApiLogItem_1 = require("./GetScormApiLogItem");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetScormApiLogs interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetScormApiLogs(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetScormApiLogsFromJSON(json) {
|
|
39
|
+
return GetScormApiLogsFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetScormApiLogsFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(GetScormApiLogItem_1.GetScormApiLogItemFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetScormApiLogsToJSON(json) {
|
|
54
|
+
return GetScormApiLogsToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetScormApiLogsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(GetScormApiLogItem_1.GetScormApiLogItemToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { GetScormSessionDataActivity } from './GetScormSessionDataActivity';
|
|
13
|
+
/**
|
|
14
|
+
* SCORM session data with CMI information
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetScormSessionData
|
|
17
|
+
*/
|
|
18
|
+
export interface GetScormSessionData {
|
|
19
|
+
/**
|
|
20
|
+
* The external ID of the SCORM session
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetScormSessionData
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* The date and time the SCORM session was created (Unix timestamp)
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetScormSessionData
|
|
29
|
+
*/
|
|
30
|
+
createdAt: number;
|
|
31
|
+
/**
|
|
32
|
+
* The date and time the SCORM session was updated (Unix timestamp)
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetScormSessionData
|
|
35
|
+
*/
|
|
36
|
+
updatedAt: number;
|
|
37
|
+
/**
|
|
38
|
+
* The SCORM CMI data (complete dump of scorm_data)
|
|
39
|
+
* @type {{ [key: string]: any; }}
|
|
40
|
+
* @memberof GetScormSessionData
|
|
41
|
+
*/
|
|
42
|
+
cmiData: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {GetScormSessionDataActivity}
|
|
48
|
+
* @memberof GetScormSessionData
|
|
49
|
+
*/
|
|
50
|
+
activity: GetScormSessionDataActivity;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the GetScormSessionData interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfGetScormSessionData(value: object): value is GetScormSessionData;
|
|
56
|
+
export declare function GetScormSessionDataFromJSON(json: any): GetScormSessionData;
|
|
57
|
+
export declare function GetScormSessionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormSessionData;
|
|
58
|
+
export declare function GetScormSessionDataToJSON(json: any): GetScormSessionData;
|
|
59
|
+
export declare function GetScormSessionDataToJSONTyped(value?: GetScormSessionData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfGetScormSessionData = instanceOfGetScormSessionData;
|
|
17
|
+
exports.GetScormSessionDataFromJSON = GetScormSessionDataFromJSON;
|
|
18
|
+
exports.GetScormSessionDataFromJSONTyped = GetScormSessionDataFromJSONTyped;
|
|
19
|
+
exports.GetScormSessionDataToJSON = GetScormSessionDataToJSON;
|
|
20
|
+
exports.GetScormSessionDataToJSONTyped = GetScormSessionDataToJSONTyped;
|
|
21
|
+
const GetScormSessionDataActivity_1 = require("./GetScormSessionDataActivity");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetScormSessionData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetScormSessionData(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('cmiData' in value) || value['cmiData'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('activity' in value) || value['activity'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetScormSessionDataFromJSON(json) {
|
|
39
|
+
return GetScormSessionDataFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'createdAt': json['created_at'],
|
|
48
|
+
'updatedAt': json['updated_at'],
|
|
49
|
+
'cmiData': json['cmi_data'],
|
|
50
|
+
'activity': (0, GetScormSessionDataActivity_1.GetScormSessionDataActivityFromJSON)(json['activity']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetScormSessionDataToJSON(json) {
|
|
54
|
+
return GetScormSessionDataToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'created_at': value['createdAt'],
|
|
63
|
+
'updated_at': value['updatedAt'],
|
|
64
|
+
'cmi_data': value['cmiData'],
|
|
65
|
+
'activity': (0, GetScormSessionDataActivity_1.GetScormSessionDataActivityToJSON)(value['activity']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -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 GetScormSessionDataActivity
|
|
16
|
+
*/
|
|
17
|
+
export interface GetScormSessionDataActivity {
|
|
18
|
+
/**
|
|
19
|
+
* The external ID of the SCORM activity
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetScormSessionDataActivity
|
|
22
|
+
*/
|
|
23
|
+
activityId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name/title of the SCORM activity
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetScormSessionDataActivity
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GetScormSessionDataActivity interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfGetScormSessionDataActivity(value: object): value is GetScormSessionDataActivity;
|
|
35
|
+
export declare function GetScormSessionDataActivityFromJSON(json: any): GetScormSessionDataActivity;
|
|
36
|
+
export declare function GetScormSessionDataActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormSessionDataActivity;
|
|
37
|
+
export declare function GetScormSessionDataActivityToJSON(json: any): GetScormSessionDataActivity;
|
|
38
|
+
export declare function GetScormSessionDataActivityToJSONTyped(value?: GetScormSessionDataActivity | 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.instanceOfGetScormSessionDataActivity = instanceOfGetScormSessionDataActivity;
|
|
17
|
+
exports.GetScormSessionDataActivityFromJSON = GetScormSessionDataActivityFromJSON;
|
|
18
|
+
exports.GetScormSessionDataActivityFromJSONTyped = GetScormSessionDataActivityFromJSONTyped;
|
|
19
|
+
exports.GetScormSessionDataActivityToJSON = GetScormSessionDataActivityToJSON;
|
|
20
|
+
exports.GetScormSessionDataActivityToJSONTyped = GetScormSessionDataActivityToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetScormSessionDataActivity interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetScormSessionDataActivity(value) {
|
|
25
|
+
if (!('activityId' in value) || value['activityId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function GetScormSessionDataActivityFromJSON(json) {
|
|
32
|
+
return GetScormSessionDataActivityFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function GetScormSessionDataActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'activityId': json['activity_id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function GetScormSessionDataActivityToJSON(json) {
|
|
44
|
+
return GetScormSessionDataActivityToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function GetScormSessionDataActivityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'activity_id': value['activityId'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -15,6 +15,11 @@ export * from './GetContentInstructorBasicReportingEngagement';
|
|
|
15
15
|
export * from './GetContentInstructorBasicReportingPerformance';
|
|
16
16
|
export * from './GetContentList';
|
|
17
17
|
export * from './GetContentSession';
|
|
18
|
+
export * from './GetContentSessionDetail';
|
|
19
|
+
export * from './GetContentSessionDetailScormSessionData';
|
|
20
|
+
export * from './GetContentSessionDetailUserData';
|
|
21
|
+
export * from './GetContentSessionList';
|
|
22
|
+
export * from './GetContentSessionListItem';
|
|
18
23
|
export * from './GetContentUpload';
|
|
19
24
|
export * from './GetContentVersion';
|
|
20
25
|
export * from './GetContentVersionList';
|
|
@@ -103,8 +108,12 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
|
103
108
|
export * from './GetQuizResultsScore';
|
|
104
109
|
export * from './GetQuizResultsTiming';
|
|
105
110
|
export * from './GetQuizStatistics';
|
|
111
|
+
export * from './GetScormApiLogItem';
|
|
112
|
+
export * from './GetScormApiLogs';
|
|
106
113
|
export * from './GetScormPackage';
|
|
107
114
|
export * from './GetScormPackagePackageInfo';
|
|
115
|
+
export * from './GetScormSessionData';
|
|
116
|
+
export * from './GetScormSessionDataActivity';
|
|
108
117
|
export * from './GetUser';
|
|
109
118
|
export * from './GetUserQuizAttempts';
|
|
110
119
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,11 @@ __exportStar(require("./GetContentInstructorBasicReportingEngagement"), exports)
|
|
|
33
33
|
__exportStar(require("./GetContentInstructorBasicReportingPerformance"), exports);
|
|
34
34
|
__exportStar(require("./GetContentList"), exports);
|
|
35
35
|
__exportStar(require("./GetContentSession"), exports);
|
|
36
|
+
__exportStar(require("./GetContentSessionDetail"), exports);
|
|
37
|
+
__exportStar(require("./GetContentSessionDetailScormSessionData"), exports);
|
|
38
|
+
__exportStar(require("./GetContentSessionDetailUserData"), exports);
|
|
39
|
+
__exportStar(require("./GetContentSessionList"), exports);
|
|
40
|
+
__exportStar(require("./GetContentSessionListItem"), exports);
|
|
36
41
|
__exportStar(require("./GetContentUpload"), exports);
|
|
37
42
|
__exportStar(require("./GetContentVersion"), exports);
|
|
38
43
|
__exportStar(require("./GetContentVersionList"), exports);
|
|
@@ -121,8 +126,12 @@ __exportStar(require("./GetQuizResultsQuestionsInnerStudentAnswer"), exports);
|
|
|
121
126
|
__exportStar(require("./GetQuizResultsScore"), exports);
|
|
122
127
|
__exportStar(require("./GetQuizResultsTiming"), exports);
|
|
123
128
|
__exportStar(require("./GetQuizStatistics"), exports);
|
|
129
|
+
__exportStar(require("./GetScormApiLogItem"), exports);
|
|
130
|
+
__exportStar(require("./GetScormApiLogs"), exports);
|
|
124
131
|
__exportStar(require("./GetScormPackage"), exports);
|
|
125
132
|
__exportStar(require("./GetScormPackagePackageInfo"), exports);
|
|
133
|
+
__exportStar(require("./GetScormSessionData"), exports);
|
|
134
|
+
__exportStar(require("./GetScormSessionDataActivity"), exports);
|
|
126
135
|
__exportStar(require("./GetUser"), exports);
|
|
127
136
|
__exportStar(require("./GetUserQuizAttempts"), exports);
|
|
128
137
|
__exportStar(require("./GetUserQuizAttemptsAllOfAttempts"), exports);
|
package/package.json
CHANGED
package/src/apis/ContentApi.ts
CHANGED
|
@@ -18,10 +18,14 @@ import type {
|
|
|
18
18
|
GetContent,
|
|
19
19
|
GetContentList,
|
|
20
20
|
GetContentSession,
|
|
21
|
+
GetContentSessionDetail,
|
|
22
|
+
GetContentSessionList,
|
|
21
23
|
GetContentUpload,
|
|
22
24
|
GetContentVersion,
|
|
23
25
|
GetContentVersionList,
|
|
26
|
+
GetScormApiLogs,
|
|
24
27
|
GetScormPackage,
|
|
28
|
+
GetScormSessionData,
|
|
25
29
|
PostContentQuiz,
|
|
26
30
|
PostContentSession,
|
|
27
31
|
PostContentUpload,
|
|
@@ -35,14 +39,22 @@ import {
|
|
|
35
39
|
GetContentListToJSON,
|
|
36
40
|
GetContentSessionFromJSON,
|
|
37
41
|
GetContentSessionToJSON,
|
|
42
|
+
GetContentSessionDetailFromJSON,
|
|
43
|
+
GetContentSessionDetailToJSON,
|
|
44
|
+
GetContentSessionListFromJSON,
|
|
45
|
+
GetContentSessionListToJSON,
|
|
38
46
|
GetContentUploadFromJSON,
|
|
39
47
|
GetContentUploadToJSON,
|
|
40
48
|
GetContentVersionFromJSON,
|
|
41
49
|
GetContentVersionToJSON,
|
|
42
50
|
GetContentVersionListFromJSON,
|
|
43
51
|
GetContentVersionListToJSON,
|
|
52
|
+
GetScormApiLogsFromJSON,
|
|
53
|
+
GetScormApiLogsToJSON,
|
|
44
54
|
GetScormPackageFromJSON,
|
|
45
55
|
GetScormPackageToJSON,
|
|
56
|
+
GetScormSessionDataFromJSON,
|
|
57
|
+
GetScormSessionDataToJSON,
|
|
46
58
|
PostContentQuizFromJSON,
|
|
47
59
|
PostContentQuizToJSON,
|
|
48
60
|
PostContentSessionFromJSON,
|
|
@@ -72,6 +84,13 @@ export interface GetContentSessionRequest {
|
|
|
72
84
|
courseId: string;
|
|
73
85
|
}
|
|
74
86
|
|
|
87
|
+
export interface GetContentSessionDetailRequest {
|
|
88
|
+
contentId: string;
|
|
89
|
+
moduleId: string;
|
|
90
|
+
courseId: string;
|
|
91
|
+
sessionId: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
75
94
|
export interface GetContentVersionRequest {
|
|
76
95
|
contentId: string;
|
|
77
96
|
moduleId: string;
|
|
@@ -87,10 +106,29 @@ export interface GetContentVersionListRequest {
|
|
|
87
106
|
pageSize?: number;
|
|
88
107
|
}
|
|
89
108
|
|
|
109
|
+
export interface GetScormApiLogsRequest {
|
|
110
|
+
sessionId: string;
|
|
111
|
+
page?: number;
|
|
112
|
+
pageSize?: number;
|
|
113
|
+
}
|
|
114
|
+
|
|
90
115
|
export interface GetScormPackageRequest {
|
|
91
116
|
packageId: string;
|
|
92
117
|
}
|
|
93
118
|
|
|
119
|
+
export interface GetScormSessionDataRequest {
|
|
120
|
+
scormSessionId: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface ListContentSessionsRequest {
|
|
124
|
+
contentId: string;
|
|
125
|
+
moduleId: string;
|
|
126
|
+
courseId: string;
|
|
127
|
+
sessionType?: ListContentSessionsSessionTypeEnum;
|
|
128
|
+
page?: number;
|
|
129
|
+
pageSize?: number;
|
|
130
|
+
}
|
|
131
|
+
|
|
94
132
|
export interface PostContentProcessRequest {
|
|
95
133
|
moduleId: string;
|
|
96
134
|
courseId: string;
|
|
@@ -269,6 +307,62 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
269
307
|
return await response.value();
|
|
270
308
|
}
|
|
271
309
|
|
|
310
|
+
/**
|
|
311
|
+
* Get detailed information about a specific content session
|
|
312
|
+
* Get content session details (instructor only)
|
|
313
|
+
*/
|
|
314
|
+
async getContentSessionDetailRaw(requestParameters: GetContentSessionDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentSessionDetail>> {
|
|
315
|
+
if (requestParameters['contentId'] == null) {
|
|
316
|
+
throw new runtime.RequiredError(
|
|
317
|
+
'contentId',
|
|
318
|
+
'Required parameter "contentId" was null or undefined when calling getContentSessionDetail().'
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (requestParameters['moduleId'] == null) {
|
|
323
|
+
throw new runtime.RequiredError(
|
|
324
|
+
'moduleId',
|
|
325
|
+
'Required parameter "moduleId" was null or undefined when calling getContentSessionDetail().'
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
if (requestParameters['courseId'] == null) {
|
|
330
|
+
throw new runtime.RequiredError(
|
|
331
|
+
'courseId',
|
|
332
|
+
'Required parameter "courseId" was null or undefined when calling getContentSessionDetail().'
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (requestParameters['sessionId'] == null) {
|
|
337
|
+
throw new runtime.RequiredError(
|
|
338
|
+
'sessionId',
|
|
339
|
+
'Required parameter "sessionId" was null or undefined when calling getContentSessionDetail().'
|
|
340
|
+
);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
const queryParameters: any = {};
|
|
344
|
+
|
|
345
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
346
|
+
|
|
347
|
+
const response = await this.request({
|
|
348
|
+
path: `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions/{sessionId}`.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId']))).replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId']))).replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId']))).replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
349
|
+
method: 'GET',
|
|
350
|
+
headers: headerParameters,
|
|
351
|
+
query: queryParameters,
|
|
352
|
+
}, initOverrides);
|
|
353
|
+
|
|
354
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetContentSessionDetailFromJSON(jsonValue));
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Get detailed information about a specific content session
|
|
359
|
+
* Get content session details (instructor only)
|
|
360
|
+
*/
|
|
361
|
+
async getContentSessionDetail(requestParameters: GetContentSessionDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContentSessionDetail> {
|
|
362
|
+
const response = await this.getContentSessionDetailRaw(requestParameters, initOverrides);
|
|
363
|
+
return await response.value();
|
|
364
|
+
}
|
|
365
|
+
|
|
272
366
|
/**
|
|
273
367
|
* Returns detailed information about a specific version of the content, including sandbox launch URL and SCORM-specific data (package info and table of contents) if applicable.
|
|
274
368
|
* Get details of a specific content version
|
|
@@ -382,6 +476,49 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
382
476
|
return await response.value();
|
|
383
477
|
}
|
|
384
478
|
|
|
479
|
+
/**
|
|
480
|
+
* Get a paginated history of all SCORM API calls made during this session for debugging and troubleshooting
|
|
481
|
+
* Get SCORM API call logs (instructor only)
|
|
482
|
+
*/
|
|
483
|
+
async getScormApiLogsRaw(requestParameters: GetScormApiLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetScormApiLogs>> {
|
|
484
|
+
if (requestParameters['sessionId'] == null) {
|
|
485
|
+
throw new runtime.RequiredError(
|
|
486
|
+
'sessionId',
|
|
487
|
+
'Required parameter "sessionId" was null or undefined when calling getScormApiLogs().'
|
|
488
|
+
);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
const queryParameters: any = {};
|
|
492
|
+
|
|
493
|
+
if (requestParameters['page'] != null) {
|
|
494
|
+
queryParameters['page'] = requestParameters['page'];
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
if (requestParameters['pageSize'] != null) {
|
|
498
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
502
|
+
|
|
503
|
+
const response = await this.request({
|
|
504
|
+
path: `/scorm/sessions/{sessionId}/api-logs`.replace(`{${"sessionId"}}`, encodeURIComponent(String(requestParameters['sessionId']))),
|
|
505
|
+
method: 'GET',
|
|
506
|
+
headers: headerParameters,
|
|
507
|
+
query: queryParameters,
|
|
508
|
+
}, initOverrides);
|
|
509
|
+
|
|
510
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetScormApiLogsFromJSON(jsonValue));
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Get a paginated history of all SCORM API calls made during this session for debugging and troubleshooting
|
|
515
|
+
* Get SCORM API call logs (instructor only)
|
|
516
|
+
*/
|
|
517
|
+
async getScormApiLogs(requestParameters: GetScormApiLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetScormApiLogs> {
|
|
518
|
+
const response = await this.getScormApiLogsRaw(requestParameters, initOverrides);
|
|
519
|
+
return await response.value();
|
|
520
|
+
}
|
|
521
|
+
|
|
385
522
|
/**
|
|
386
523
|
* Returns package information and table of contents for a SCORM package
|
|
387
524
|
* Get details of a SCORM package
|
|
@@ -417,6 +554,102 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
417
554
|
return await response.value();
|
|
418
555
|
}
|
|
419
556
|
|
|
557
|
+
/**
|
|
558
|
+
* Get detailed SCORM session data including CMI data dump for debugging
|
|
559
|
+
* Get SCORM session data (instructor only)
|
|
560
|
+
*/
|
|
561
|
+
async getScormSessionDataRaw(requestParameters: GetScormSessionDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetScormSessionData>> {
|
|
562
|
+
if (requestParameters['scormSessionId'] == null) {
|
|
563
|
+
throw new runtime.RequiredError(
|
|
564
|
+
'scormSessionId',
|
|
565
|
+
'Required parameter "scormSessionId" was null or undefined when calling getScormSessionData().'
|
|
566
|
+
);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
const queryParameters: any = {};
|
|
570
|
+
|
|
571
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
572
|
+
|
|
573
|
+
const response = await this.request({
|
|
574
|
+
path: `/scorm/sessions/{scormSessionId}/session-data`.replace(`{${"scormSessionId"}}`, encodeURIComponent(String(requestParameters['scormSessionId']))),
|
|
575
|
+
method: 'GET',
|
|
576
|
+
headers: headerParameters,
|
|
577
|
+
query: queryParameters,
|
|
578
|
+
}, initOverrides);
|
|
579
|
+
|
|
580
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetScormSessionDataFromJSON(jsonValue));
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Get detailed SCORM session data including CMI data dump for debugging
|
|
585
|
+
* Get SCORM session data (instructor only)
|
|
586
|
+
*/
|
|
587
|
+
async getScormSessionData(requestParameters: GetScormSessionDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetScormSessionData> {
|
|
588
|
+
const response = await this.getScormSessionDataRaw(requestParameters, initOverrides);
|
|
589
|
+
return await response.value();
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Get a paginated list of all content sessions for a specific content item
|
|
594
|
+
* List content sessions (instructor only)
|
|
595
|
+
*/
|
|
596
|
+
async listContentSessionsRaw(requestParameters: ListContentSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentSessionList>> {
|
|
597
|
+
if (requestParameters['contentId'] == null) {
|
|
598
|
+
throw new runtime.RequiredError(
|
|
599
|
+
'contentId',
|
|
600
|
+
'Required parameter "contentId" was null or undefined when calling listContentSessions().'
|
|
601
|
+
);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
if (requestParameters['moduleId'] == null) {
|
|
605
|
+
throw new runtime.RequiredError(
|
|
606
|
+
'moduleId',
|
|
607
|
+
'Required parameter "moduleId" was null or undefined when calling listContentSessions().'
|
|
608
|
+
);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
if (requestParameters['courseId'] == null) {
|
|
612
|
+
throw new runtime.RequiredError(
|
|
613
|
+
'courseId',
|
|
614
|
+
'Required parameter "courseId" was null or undefined when calling listContentSessions().'
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
const queryParameters: any = {};
|
|
619
|
+
|
|
620
|
+
if (requestParameters['sessionType'] != null) {
|
|
621
|
+
queryParameters['sessionType'] = requestParameters['sessionType'];
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if (requestParameters['page'] != null) {
|
|
625
|
+
queryParameters['page'] = requestParameters['page'];
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if (requestParameters['pageSize'] != null) {
|
|
629
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
633
|
+
|
|
634
|
+
const response = await this.request({
|
|
635
|
+
path: `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions`.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId']))).replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId']))).replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId']))),
|
|
636
|
+
method: 'GET',
|
|
637
|
+
headers: headerParameters,
|
|
638
|
+
query: queryParameters,
|
|
639
|
+
}, initOverrides);
|
|
640
|
+
|
|
641
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetContentSessionListFromJSON(jsonValue));
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Get a paginated list of all content sessions for a specific content item
|
|
646
|
+
* List content sessions (instructor only)
|
|
647
|
+
*/
|
|
648
|
+
async listContentSessions(requestParameters: ListContentSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContentSessionList> {
|
|
649
|
+
const response = await this.listContentSessionsRaw(requestParameters, initOverrides);
|
|
650
|
+
return await response.value();
|
|
651
|
+
}
|
|
652
|
+
|
|
420
653
|
/**
|
|
421
654
|
* Post a new content process
|
|
422
655
|
*/
|
|
@@ -737,3 +970,12 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
737
970
|
}
|
|
738
971
|
|
|
739
972
|
}
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* @export
|
|
976
|
+
*/
|
|
977
|
+
export const ListContentSessionsSessionTypeEnum = {
|
|
978
|
+
Sandbox: 'SANDBOX',
|
|
979
|
+
Live: 'LIVE'
|
|
980
|
+
} as const;
|
|
981
|
+
export type ListContentSessionsSessionTypeEnum = typeof ListContentSessionsSessionTypeEnum[keyof typeof ListContentSessionsSessionTypeEnum];
|