@easyedu/js-lsm-api 1.28.0 → 1.30.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 -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/GetContentSessionDetailScormSessionDataInner.d.ts +38 -0
- package/dist/esm/models/GetContentSessionDetailScormSessionDataInner.js +47 -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/GetContentSessionListItemScormSessionData.d.ts +32 -0
- package/dist/esm/models/GetContentSessionListItemScormSessionData.js +43 -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 +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/GetContentSessionDetail.d.ts +103 -0
- package/dist/models/GetContentSessionDetail.js +104 -0
- package/dist/models/GetContentSessionDetailScormSessionDataInner.d.ts +38 -0
- package/dist/models/GetContentSessionDetailScormSessionDataInner.js +54 -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/GetContentSessionListItemScormSessionData.d.ts +32 -0
- package/dist/models/GetContentSessionListItemScormSessionData.js +50 -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 +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +242 -0
- package/src/models/GetContentSessionDetail.ts +178 -0
- package/src/models/GetContentSessionDetailScormSessionDataInner.ts +75 -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/GetContentSessionListItemScormSessionData.ts +66 -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 +10 -0
|
@@ -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 GetContentSessionListItemScormSessionData interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetContentSessionListItemScormSessionData(value) {
|
|
18
|
+
if (!('scormSessionId' in value) || value['scormSessionId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function GetContentSessionListItemScormSessionDataFromJSON(json) {
|
|
23
|
+
return GetContentSessionListItemScormSessionDataFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function GetContentSessionListItemScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'scormSessionId': json['scorm_session_id'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function GetContentSessionListItemScormSessionDataToJSON(json) {
|
|
34
|
+
return GetContentSessionListItemScormSessionDataToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GetContentSessionListItemScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'scorm_session_id': value['scormSessionId'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
* A SCORM API call log entry
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetScormApiLogItem
|
|
16
|
+
*/
|
|
17
|
+
export interface GetScormApiLogItem {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the log entry
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetScormApiLogItem
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* The date and time the API call was made (Unix timestamp)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetScormApiLogItem
|
|
28
|
+
*/
|
|
29
|
+
createdAt: number;
|
|
30
|
+
/**
|
|
31
|
+
* The SCORM API method that was called
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetScormApiLogItem
|
|
34
|
+
*/
|
|
35
|
+
method: GetScormApiLogItemMethodEnum;
|
|
36
|
+
/**
|
|
37
|
+
* The CMI element (e.g., 'cmi.score.raw') - nullable for Initialize, Commit, Terminate
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetScormApiLogItem
|
|
40
|
+
*/
|
|
41
|
+
element: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The value set or returned - nullable for some operations
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetScormApiLogItem
|
|
46
|
+
*/
|
|
47
|
+
value: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* The SCORM error code ('0' for success, '301', '401', etc.')
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GetScormApiLogItem
|
|
52
|
+
*/
|
|
53
|
+
errorCode: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const GetScormApiLogItemMethodEnum: {
|
|
59
|
+
readonly Initialize: "Initialize";
|
|
60
|
+
readonly SetValue: "SetValue";
|
|
61
|
+
readonly GetValue: "GetValue";
|
|
62
|
+
readonly Commit: "Commit";
|
|
63
|
+
readonly Terminate: "Terminate";
|
|
64
|
+
};
|
|
65
|
+
export type GetScormApiLogItemMethodEnum = typeof GetScormApiLogItemMethodEnum[keyof typeof GetScormApiLogItemMethodEnum];
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the GetScormApiLogItem interface.
|
|
68
|
+
*/
|
|
69
|
+
export declare function instanceOfGetScormApiLogItem(value: object): value is GetScormApiLogItem;
|
|
70
|
+
export declare function GetScormApiLogItemFromJSON(json: any): GetScormApiLogItem;
|
|
71
|
+
export declare function GetScormApiLogItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormApiLogItem;
|
|
72
|
+
export declare function GetScormApiLogItemToJSON(json: any): GetScormApiLogItem;
|
|
73
|
+
export declare function GetScormApiLogItemToJSONTyped(value?: GetScormApiLogItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const GetScormApiLogItemMethodEnum = {
|
|
18
|
+
Initialize: 'Initialize',
|
|
19
|
+
SetValue: 'SetValue',
|
|
20
|
+
GetValue: 'GetValue',
|
|
21
|
+
Commit: 'Commit',
|
|
22
|
+
Terminate: 'Terminate'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetScormApiLogItem interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfGetScormApiLogItem(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('method' in value) || value['method'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('element' in value) || value['element'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
export function GetScormApiLogItemFromJSON(json) {
|
|
43
|
+
return GetScormApiLogItemFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function GetScormApiLogItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'createdAt': json['created_at'],
|
|
52
|
+
'method': json['method'],
|
|
53
|
+
'element': json['element'],
|
|
54
|
+
'value': json['value'],
|
|
55
|
+
'errorCode': json['error_code'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function GetScormApiLogItemToJSON(json) {
|
|
59
|
+
return GetScormApiLogItemToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function GetScormApiLogItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'created_at': value['createdAt'],
|
|
68
|
+
'method': value['method'],
|
|
69
|
+
'element': value['element'],
|
|
70
|
+
'value': value['value'],
|
|
71
|
+
'error_code': value['errorCode'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -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 { GetScormApiLogItem } from './GetScormApiLogItem';
|
|
13
|
+
/**
|
|
14
|
+
* A list of SCORM API logs with pagination information
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetScormApiLogs
|
|
17
|
+
*/
|
|
18
|
+
export interface GetScormApiLogs {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetScormApiLogs
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetScormApiLogs
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetScormApiLogs
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetScormApiLogs
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetScormApiLogItem>}
|
|
46
|
+
* @memberof GetScormApiLogs
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetScormApiLogItem>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetScormApiLogs interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetScormApiLogs(value: object): value is GetScormApiLogs;
|
|
54
|
+
export declare function GetScormApiLogsFromJSON(json: any): GetScormApiLogs;
|
|
55
|
+
export declare function GetScormApiLogsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormApiLogs;
|
|
56
|
+
export declare function GetScormApiLogsToJSON(json: any): GetScormApiLogs;
|
|
57
|
+
export declare function GetScormApiLogsToJSONTyped(value?: GetScormApiLogs | 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 { GetScormApiLogItemFromJSON, GetScormApiLogItemToJSON, } from './GetScormApiLogItem';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetScormApiLogs interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetScormApiLogs(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 GetScormApiLogsFromJSON(json) {
|
|
32
|
+
return GetScormApiLogsFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetScormApiLogsFromJSONTyped(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(GetScormApiLogItemFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetScormApiLogsToJSON(json) {
|
|
47
|
+
return GetScormApiLogsToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetScormApiLogsToJSONTyped(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(GetScormApiLogItemToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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,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 { GetScormSessionDataActivityFromJSON, GetScormSessionDataActivityToJSON, } from './GetScormSessionDataActivity';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetScormSessionData interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetScormSessionData(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('cmiData' in value) || value['cmiData'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('activity' in value) || value['activity'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function GetScormSessionDataFromJSON(json) {
|
|
32
|
+
return GetScormSessionDataFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetScormSessionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'createdAt': json['created_at'],
|
|
41
|
+
'updatedAt': json['updated_at'],
|
|
42
|
+
'cmiData': json['cmi_data'],
|
|
43
|
+
'activity': GetScormSessionDataActivityFromJSON(json['activity']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetScormSessionDataToJSON(json) {
|
|
47
|
+
return GetScormSessionDataToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetScormSessionDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'created_at': value['createdAt'],
|
|
56
|
+
'updated_at': value['updatedAt'],
|
|
57
|
+
'cmi_data': value['cmiData'],
|
|
58
|
+
'activity': GetScormSessionDataActivityToJSON(value['activity']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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,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 GetScormSessionDataActivity interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetScormSessionDataActivity(value) {
|
|
18
|
+
if (!('activityId' in value) || value['activityId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function GetScormSessionDataActivityFromJSON(json) {
|
|
25
|
+
return GetScormSessionDataActivityFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function GetScormSessionDataActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'activityId': json['activity_id'],
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function GetScormSessionDataActivityToJSON(json) {
|
|
37
|
+
return GetScormSessionDataActivityToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function GetScormSessionDataActivityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'activity_id': value['activityId'],
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -15,6 +15,12 @@ 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 './GetContentSessionDetailScormSessionDataInner';
|
|
20
|
+
export * from './GetContentSessionDetailUserData';
|
|
21
|
+
export * from './GetContentSessionList';
|
|
22
|
+
export * from './GetContentSessionListItem';
|
|
23
|
+
export * from './GetContentSessionListItemScormSessionData';
|
|
18
24
|
export * from './GetContentUpload';
|
|
19
25
|
export * from './GetContentVersion';
|
|
20
26
|
export * from './GetContentVersionList';
|
|
@@ -103,8 +109,12 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
|
103
109
|
export * from './GetQuizResultsScore';
|
|
104
110
|
export * from './GetQuizResultsTiming';
|
|
105
111
|
export * from './GetQuizStatistics';
|
|
112
|
+
export * from './GetScormApiLogItem';
|
|
113
|
+
export * from './GetScormApiLogs';
|
|
106
114
|
export * from './GetScormPackage';
|
|
107
115
|
export * from './GetScormPackagePackageInfo';
|
|
116
|
+
export * from './GetScormSessionData';
|
|
117
|
+
export * from './GetScormSessionDataActivity';
|
|
108
118
|
export * from './GetUser';
|
|
109
119
|
export * from './GetUserQuizAttempts';
|
|
110
120
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -17,6 +17,12 @@ export * from './GetContentInstructorBasicReportingEngagement';
|
|
|
17
17
|
export * from './GetContentInstructorBasicReportingPerformance';
|
|
18
18
|
export * from './GetContentList';
|
|
19
19
|
export * from './GetContentSession';
|
|
20
|
+
export * from './GetContentSessionDetail';
|
|
21
|
+
export * from './GetContentSessionDetailScormSessionDataInner';
|
|
22
|
+
export * from './GetContentSessionDetailUserData';
|
|
23
|
+
export * from './GetContentSessionList';
|
|
24
|
+
export * from './GetContentSessionListItem';
|
|
25
|
+
export * from './GetContentSessionListItemScormSessionData';
|
|
20
26
|
export * from './GetContentUpload';
|
|
21
27
|
export * from './GetContentVersion';
|
|
22
28
|
export * from './GetContentVersionList';
|
|
@@ -105,8 +111,12 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
|
|
|
105
111
|
export * from './GetQuizResultsScore';
|
|
106
112
|
export * from './GetQuizResultsTiming';
|
|
107
113
|
export * from './GetQuizStatistics';
|
|
114
|
+
export * from './GetScormApiLogItem';
|
|
115
|
+
export * from './GetScormApiLogs';
|
|
108
116
|
export * from './GetScormPackage';
|
|
109
117
|
export * from './GetScormPackagePackageInfo';
|
|
118
|
+
export * from './GetScormSessionData';
|
|
119
|
+
export * from './GetScormSessionDataActivity';
|
|
110
120
|
export * from './GetUser';
|
|
111
121
|
export * from './GetUserQuizAttempts';
|
|
112
122
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
@@ -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 { GetContentSessionDetailScormSessionDataInner } from './GetContentSessionDetailScormSessionDataInner';
|
|
13
|
+
import type { GetContentSessionDetailUserData } from './GetContentSessionDetailUserData';
|
|
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
|
+
* SCORM session data if this is a SCORM session, null otherwise
|
|
70
|
+
* @type {Array<GetContentSessionDetailScormSessionDataInner>}
|
|
71
|
+
* @memberof GetContentSessionDetail
|
|
72
|
+
*/
|
|
73
|
+
scormSessionData: Array<GetContentSessionDetailScormSessionDataInner> | 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;
|