@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
|
@@ -0,0 +1,81 @@
|
|
|
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.GetScormApiLogItemMethodEnum = void 0;
|
|
17
|
+
exports.instanceOfGetScormApiLogItem = instanceOfGetScormApiLogItem;
|
|
18
|
+
exports.GetScormApiLogItemFromJSON = GetScormApiLogItemFromJSON;
|
|
19
|
+
exports.GetScormApiLogItemFromJSONTyped = GetScormApiLogItemFromJSONTyped;
|
|
20
|
+
exports.GetScormApiLogItemToJSON = GetScormApiLogItemToJSON;
|
|
21
|
+
exports.GetScormApiLogItemToJSONTyped = GetScormApiLogItemToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.GetScormApiLogItemMethodEnum = {
|
|
26
|
+
Initialize: 'Initialize',
|
|
27
|
+
SetValue: 'SetValue',
|
|
28
|
+
GetValue: 'GetValue',
|
|
29
|
+
Commit: 'Commit',
|
|
30
|
+
Terminate: 'Terminate'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the GetScormApiLogItem interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfGetScormApiLogItem(value) {
|
|
36
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('method' in value) || value['method'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('element' in value) || value['element'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function GetScormApiLogItemFromJSON(json) {
|
|
51
|
+
return GetScormApiLogItemFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function GetScormApiLogItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'],
|
|
59
|
+
'createdAt': json['created_at'],
|
|
60
|
+
'method': json['method'],
|
|
61
|
+
'element': json['element'],
|
|
62
|
+
'value': json['value'],
|
|
63
|
+
'errorCode': json['error_code'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function GetScormApiLogItemToJSON(json) {
|
|
67
|
+
return GetScormApiLogItemToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function GetScormApiLogItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'created_at': value['createdAt'],
|
|
76
|
+
'method': value['method'],
|
|
77
|
+
'element': value['element'],
|
|
78
|
+
'value': value['value'],
|
|
79
|
+
'error_code': value['errorCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -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,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);
|