@easyedu/js-lsm-api 1.89.0 → 1.91.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 +28 -0
- package/README.md +24 -2
- package/dist/apis/ContentLibraryApi.d.ts +19 -0
- package/dist/apis/ContentLibraryApi.js +47 -0
- package/dist/apis/PlayerApi.d.ts +187 -0
- package/dist/apis/PlayerApi.js +401 -1
- package/dist/esm/apis/ContentLibraryApi.d.ts +19 -0
- package/dist/esm/apis/ContentLibraryApi.js +47 -0
- package/dist/esm/apis/PlayerApi.d.ts +187 -0
- package/dist/esm/apis/PlayerApi.js +400 -0
- package/dist/esm/models/GetCourseVersionItemSession.d.ts +7 -0
- package/dist/esm/models/GetCourseVersionItemSession.js +5 -0
- package/dist/esm/models/GetResourceSession.d.ts +191 -0
- package/dist/esm/models/GetResourceSession.js +128 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +69 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.js +76 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.js +56 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.js +59 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.js +47 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.js +67 -0
- package/dist/esm/models/GetResourceSessionList.d.ts +57 -0
- package/dist/esm/models/GetResourceSessionList.js +60 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.js +60 -0
- package/dist/esm/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/esm/models/GetResourceSessionScormData.js +66 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.js +45 -0
- package/dist/esm/models/PostResourceVersionSession.d.ts +32 -0
- package/dist/esm/models/PostResourceVersionSession.js +41 -0
- package/dist/esm/models/ResourceSessionEnvironment.d.ts +25 -0
- package/dist/esm/models/ResourceSessionEnvironment.js +43 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/GetCourseVersionItemSession.d.ts +7 -0
- package/dist/models/GetCourseVersionItemSession.js +5 -0
- package/dist/models/GetResourceSession.d.ts +191 -0
- package/dist/models/GetResourceSession.js +135 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/models/GetResourceSessionDiagnostics.js +76 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.js +83 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.js +63 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.js +66 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.js +54 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.js +74 -0
- package/dist/models/GetResourceSessionList.d.ts +57 -0
- package/dist/models/GetResourceSessionList.js +67 -0
- package/dist/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/models/GetResourceSessionScormApiLogs.js +67 -0
- package/dist/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/models/GetResourceSessionScormData.js +73 -0
- package/dist/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/models/GetResourceSessionScormDataActivity.js +52 -0
- package/dist/models/PostResourceVersionSession.d.ts +32 -0
- package/dist/models/PostResourceVersionSession.js +48 -0
- package/dist/models/ResourceSessionEnvironment.d.ts +25 -0
- package/dist/models/ResourceSessionEnvironment.js +51 -0
- package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/ContentLibraryApi.md +73 -0
- package/docs/GetCourseVersionItemSession.md +2 -0
- package/docs/GetResourceSession.md +87 -0
- package/docs/GetResourceSessionDiagnostics.md +47 -0
- package/docs/GetResourceSessionDiagnosticsCourseContext.md +50 -0
- package/docs/GetResourceSessionDiagnosticsResource.md +40 -0
- package/docs/GetResourceSessionDiagnosticsScormSummary.md +48 -0
- package/docs/GetResourceSessionDiagnosticsUser.md +36 -0
- package/docs/GetResourceSessionDiagnosticsVersion.md +52 -0
- package/docs/GetResourceSessionList.md +43 -0
- package/docs/GetResourceSessionScormApiLogs.md +43 -0
- package/docs/GetResourceSessionScormData.md +49 -0
- package/docs/GetResourceSessionScormDataActivity.md +38 -0
- package/docs/PlayerApi.md +547 -0
- package/docs/PostResourceVersionSession.md +35 -0
- package/docs/ResourceSessionEnvironment.md +33 -0
- package/docs/ResourceSessionScormApiLogItem.md +47 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryApi.ts +72 -0
- package/src/apis/PlayerApi.ts +558 -0
- package/src/models/GetCourseVersionItemSession.ts +16 -0
- package/src/models/GetResourceSession.ts +313 -0
- package/src/models/GetResourceSessionDiagnostics.ts +161 -0
- package/src/models/GetResourceSessionDiagnosticsCourseContext.ts +148 -0
- package/src/models/GetResourceSessionDiagnosticsResource.ts +103 -0
- package/src/models/GetResourceSessionDiagnosticsScormSummary.ts +123 -0
- package/src/models/GetResourceSessionDiagnosticsUser.ts +75 -0
- package/src/models/GetResourceSessionDiagnosticsVersion.ts +141 -0
- package/src/models/GetResourceSessionList.ts +110 -0
- package/src/models/GetResourceSessionScormApiLogs.ts +110 -0
- package/src/models/GetResourceSessionScormData.ts +134 -0
- package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
- package/src/models/PostResourceVersionSession.ts +65 -0
- package/src/models/ResourceSessionEnvironment.ts +53 -0
- package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
- package/src/models/index.ts +14 -0
|
@@ -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 { ResourceSessionScormApiLogItem } from './ResourceSessionScormApiLogItem';
|
|
13
|
+
/**
|
|
14
|
+
* A filtered page of SCORM runtime calls for a resource session.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetResourceSessionScormApiLogs
|
|
17
|
+
*/
|
|
18
|
+
export interface GetResourceSessionScormApiLogs {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetResourceSessionScormApiLogs
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetResourceSessionScormApiLogs
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetResourceSessionScormApiLogs
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetResourceSessionScormApiLogs
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ResourceSessionScormApiLogItem>}
|
|
46
|
+
* @memberof GetResourceSessionScormApiLogs
|
|
47
|
+
*/
|
|
48
|
+
items: Array<ResourceSessionScormApiLogItem>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetResourceSessionScormApiLogs interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetResourceSessionScormApiLogs(value: object): value is GetResourceSessionScormApiLogs;
|
|
54
|
+
export declare function GetResourceSessionScormApiLogsFromJSON(json: any): GetResourceSessionScormApiLogs;
|
|
55
|
+
export declare function GetResourceSessionScormApiLogsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormApiLogs;
|
|
56
|
+
export declare function GetResourceSessionScormApiLogsToJSON(json: any): GetResourceSessionScormApiLogs;
|
|
57
|
+
export declare function GetResourceSessionScormApiLogsToJSONTyped(value?: GetResourceSessionScormApiLogs | 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.instanceOfGetResourceSessionScormApiLogs = instanceOfGetResourceSessionScormApiLogs;
|
|
17
|
+
exports.GetResourceSessionScormApiLogsFromJSON = GetResourceSessionScormApiLogsFromJSON;
|
|
18
|
+
exports.GetResourceSessionScormApiLogsFromJSONTyped = GetResourceSessionScormApiLogsFromJSONTyped;
|
|
19
|
+
exports.GetResourceSessionScormApiLogsToJSON = GetResourceSessionScormApiLogsToJSON;
|
|
20
|
+
exports.GetResourceSessionScormApiLogsToJSONTyped = GetResourceSessionScormApiLogsToJSONTyped;
|
|
21
|
+
const ResourceSessionScormApiLogItem_1 = require("./ResourceSessionScormApiLogItem");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetResourceSessionScormApiLogs interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetResourceSessionScormApiLogs(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 GetResourceSessionScormApiLogsFromJSON(json) {
|
|
39
|
+
return GetResourceSessionScormApiLogsFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetResourceSessionScormApiLogsFromJSONTyped(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(ResourceSessionScormApiLogItem_1.ResourceSessionScormApiLogItemFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetResourceSessionScormApiLogsToJSON(json) {
|
|
54
|
+
return GetResourceSessionScormApiLogsToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetResourceSessionScormApiLogsToJSONTyped(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(ResourceSessionScormApiLogItem_1.ResourceSessionScormApiLogItemToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { GetResourceSessionScormDataActivity } from './GetResourceSessionScormDataActivity';
|
|
13
|
+
/**
|
|
14
|
+
* Current SCORM CMI state for a reusable resource session.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetResourceSessionScormData
|
|
17
|
+
*/
|
|
18
|
+
export interface GetResourceSessionScormData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetResourceSessionScormData
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GetResourceSessionScormData
|
|
29
|
+
*/
|
|
30
|
+
scormVersion: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetResourceSessionScormData
|
|
35
|
+
*/
|
|
36
|
+
createdAt: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetResourceSessionScormData
|
|
41
|
+
*/
|
|
42
|
+
updatedAt: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetResourceSessionScormData
|
|
47
|
+
*/
|
|
48
|
+
initializedAt?: number | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof GetResourceSessionScormData
|
|
53
|
+
*/
|
|
54
|
+
terminatedAt?: number | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {GetResourceSessionScormDataActivity}
|
|
58
|
+
* @memberof GetResourceSessionScormData
|
|
59
|
+
*/
|
|
60
|
+
activity?: GetResourceSessionScormDataActivity | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {{ [key: string]: string; }}
|
|
64
|
+
* @memberof GetResourceSessionScormData
|
|
65
|
+
*/
|
|
66
|
+
cmiData: {
|
|
67
|
+
[key: string]: string;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the GetResourceSessionScormData interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfGetResourceSessionScormData(value: object): value is GetResourceSessionScormData;
|
|
74
|
+
export declare function GetResourceSessionScormDataFromJSON(json: any): GetResourceSessionScormData;
|
|
75
|
+
export declare function GetResourceSessionScormDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormData;
|
|
76
|
+
export declare function GetResourceSessionScormDataToJSON(json: any): GetResourceSessionScormData;
|
|
77
|
+
export declare function GetResourceSessionScormDataToJSONTyped(value?: GetResourceSessionScormData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.instanceOfGetResourceSessionScormData = instanceOfGetResourceSessionScormData;
|
|
17
|
+
exports.GetResourceSessionScormDataFromJSON = GetResourceSessionScormDataFromJSON;
|
|
18
|
+
exports.GetResourceSessionScormDataFromJSONTyped = GetResourceSessionScormDataFromJSONTyped;
|
|
19
|
+
exports.GetResourceSessionScormDataToJSON = GetResourceSessionScormDataToJSON;
|
|
20
|
+
exports.GetResourceSessionScormDataToJSONTyped = GetResourceSessionScormDataToJSONTyped;
|
|
21
|
+
const GetResourceSessionScormDataActivity_1 = require("./GetResourceSessionScormDataActivity");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetResourceSessionScormData interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetResourceSessionScormData(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('scormVersion' in value) || value['scormVersion'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('cmiData' in value) || value['cmiData'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetResourceSessionScormDataFromJSON(json) {
|
|
39
|
+
return GetResourceSessionScormDataFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetResourceSessionScormDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'scormVersion': json['scorm_version'],
|
|
48
|
+
'createdAt': json['created_at'],
|
|
49
|
+
'updatedAt': json['updated_at'],
|
|
50
|
+
'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
|
|
51
|
+
'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
|
|
52
|
+
'activity': json['activity'] == null ? undefined : (0, GetResourceSessionScormDataActivity_1.GetResourceSessionScormDataActivityFromJSON)(json['activity']),
|
|
53
|
+
'cmiData': json['cmi_data'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function GetResourceSessionScormDataToJSON(json) {
|
|
57
|
+
return GetResourceSessionScormDataToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function GetResourceSessionScormDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'scorm_version': value['scormVersion'],
|
|
66
|
+
'created_at': value['createdAt'],
|
|
67
|
+
'updated_at': value['updatedAt'],
|
|
68
|
+
'initialized_at': value['initializedAt'],
|
|
69
|
+
'terminated_at': value['terminatedAt'],
|
|
70
|
+
'activity': (0, GetResourceSessionScormDataActivity_1.GetResourceSessionScormDataActivityToJSON)(value['activity']),
|
|
71
|
+
'cmi_data': value['cmiData'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 GetResourceSessionScormDataActivity
|
|
16
|
+
*/
|
|
17
|
+
export interface GetResourceSessionScormDataActivity {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetResourceSessionScormDataActivity
|
|
22
|
+
*/
|
|
23
|
+
identifier?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetResourceSessionScormDataActivity
|
|
28
|
+
*/
|
|
29
|
+
name?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetResourceSessionScormDataActivity
|
|
34
|
+
*/
|
|
35
|
+
launchPath?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetResourceSessionScormDataActivity interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetResourceSessionScormDataActivity(value: object): value is GetResourceSessionScormDataActivity;
|
|
41
|
+
export declare function GetResourceSessionScormDataActivityFromJSON(json: any): GetResourceSessionScormDataActivity;
|
|
42
|
+
export declare function GetResourceSessionScormDataActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormDataActivity;
|
|
43
|
+
export declare function GetResourceSessionScormDataActivityToJSON(json: any): GetResourceSessionScormDataActivity;
|
|
44
|
+
export declare function GetResourceSessionScormDataActivityToJSONTyped(value?: GetResourceSessionScormDataActivity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfGetResourceSessionScormDataActivity = instanceOfGetResourceSessionScormDataActivity;
|
|
17
|
+
exports.GetResourceSessionScormDataActivityFromJSON = GetResourceSessionScormDataActivityFromJSON;
|
|
18
|
+
exports.GetResourceSessionScormDataActivityFromJSONTyped = GetResourceSessionScormDataActivityFromJSONTyped;
|
|
19
|
+
exports.GetResourceSessionScormDataActivityToJSON = GetResourceSessionScormDataActivityToJSON;
|
|
20
|
+
exports.GetResourceSessionScormDataActivityToJSONTyped = GetResourceSessionScormDataActivityToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetResourceSessionScormDataActivity interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetResourceSessionScormDataActivity(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function GetResourceSessionScormDataActivityFromJSON(json) {
|
|
28
|
+
return GetResourceSessionScormDataActivityFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function GetResourceSessionScormDataActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'launchPath': json['launch_path'] == null ? undefined : json['launch_path'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetResourceSessionScormDataActivityToJSON(json) {
|
|
41
|
+
return GetResourceSessionScormDataActivityToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetResourceSessionScormDataActivityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'identifier': value['identifier'],
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'launch_path': value['launchPath'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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
|
+
* Start or resume an isolated demo session for an exact resource version.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostResourceVersionSession
|
|
16
|
+
*/
|
|
17
|
+
export interface PostResourceVersionSession {
|
|
18
|
+
/**
|
|
19
|
+
* Create a clean demo attempt instead of resuming the current demo session.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PostResourceVersionSession
|
|
22
|
+
*/
|
|
23
|
+
restart?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostResourceVersionSession interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostResourceVersionSession(value: object): value is PostResourceVersionSession;
|
|
29
|
+
export declare function PostResourceVersionSessionFromJSON(json: any): PostResourceVersionSession;
|
|
30
|
+
export declare function PostResourceVersionSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionSession;
|
|
31
|
+
export declare function PostResourceVersionSessionToJSON(json: any): PostResourceVersionSession;
|
|
32
|
+
export declare function PostResourceVersionSessionToJSONTyped(value?: PostResourceVersionSession | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfPostResourceVersionSession = instanceOfPostResourceVersionSession;
|
|
17
|
+
exports.PostResourceVersionSessionFromJSON = PostResourceVersionSessionFromJSON;
|
|
18
|
+
exports.PostResourceVersionSessionFromJSONTyped = PostResourceVersionSessionFromJSONTyped;
|
|
19
|
+
exports.PostResourceVersionSessionToJSON = PostResourceVersionSessionToJSON;
|
|
20
|
+
exports.PostResourceVersionSessionToJSONTyped = PostResourceVersionSessionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostResourceVersionSession interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostResourceVersionSession(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PostResourceVersionSessionFromJSON(json) {
|
|
28
|
+
return PostResourceVersionSessionFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PostResourceVersionSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'restart': json['restart'] == null ? undefined : json['restart'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function PostResourceVersionSessionToJSON(json) {
|
|
39
|
+
return PostResourceVersionSessionToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function PostResourceVersionSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'restart': value['restart'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Whether the session contributes to learner activity or is isolated administrator testing.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ResourceSessionEnvironment: {
|
|
17
|
+
readonly Live: "live";
|
|
18
|
+
readonly Demo: "demo";
|
|
19
|
+
};
|
|
20
|
+
export type ResourceSessionEnvironment = typeof ResourceSessionEnvironment[keyof typeof ResourceSessionEnvironment];
|
|
21
|
+
export declare function instanceOfResourceSessionEnvironment(value: any): boolean;
|
|
22
|
+
export declare function ResourceSessionEnvironmentFromJSON(json: any): ResourceSessionEnvironment;
|
|
23
|
+
export declare function ResourceSessionEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment;
|
|
24
|
+
export declare function ResourceSessionEnvironmentToJSON(value?: ResourceSessionEnvironment | null): any;
|
|
25
|
+
export declare function ResourceSessionEnvironmentToJSONTyped(value: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.ResourceSessionEnvironment = void 0;
|
|
17
|
+
exports.instanceOfResourceSessionEnvironment = instanceOfResourceSessionEnvironment;
|
|
18
|
+
exports.ResourceSessionEnvironmentFromJSON = ResourceSessionEnvironmentFromJSON;
|
|
19
|
+
exports.ResourceSessionEnvironmentFromJSONTyped = ResourceSessionEnvironmentFromJSONTyped;
|
|
20
|
+
exports.ResourceSessionEnvironmentToJSON = ResourceSessionEnvironmentToJSON;
|
|
21
|
+
exports.ResourceSessionEnvironmentToJSONTyped = ResourceSessionEnvironmentToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the session contributes to learner activity or is isolated administrator testing.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ResourceSessionEnvironment = {
|
|
27
|
+
Live: 'live',
|
|
28
|
+
Demo: 'demo'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfResourceSessionEnvironment(value) {
|
|
31
|
+
for (const key in exports.ResourceSessionEnvironment) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.ResourceSessionEnvironment, key)) {
|
|
33
|
+
if (exports.ResourceSessionEnvironment[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function ResourceSessionEnvironmentFromJSON(json) {
|
|
41
|
+
return ResourceSessionEnvironmentFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ResourceSessionEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function ResourceSessionEnvironmentToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function ResourceSessionEnvironmentToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 recorded SCORM runtime call for a resource session.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ResourceSessionScormApiLogItem
|
|
16
|
+
*/
|
|
17
|
+
export interface ResourceSessionScormApiLogItem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
28
|
+
*/
|
|
29
|
+
createdAt: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ResourceSessionScormApiLogItemMethodEnum}
|
|
33
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
34
|
+
*/
|
|
35
|
+
method: ResourceSessionScormApiLogItemMethodEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
40
|
+
*/
|
|
41
|
+
element?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
46
|
+
*/
|
|
47
|
+
value?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
52
|
+
*/
|
|
53
|
+
valueTruncated: boolean;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
58
|
+
*/
|
|
59
|
+
errorCode: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const ResourceSessionScormApiLogItemMethodEnum: {
|
|
65
|
+
readonly Initialize: "Initialize";
|
|
66
|
+
readonly GetValue: "GetValue";
|
|
67
|
+
readonly SetValue: "SetValue";
|
|
68
|
+
readonly Commit: "Commit";
|
|
69
|
+
readonly Terminate: "Terminate";
|
|
70
|
+
};
|
|
71
|
+
export type ResourceSessionScormApiLogItemMethodEnum = typeof ResourceSessionScormApiLogItemMethodEnum[keyof typeof ResourceSessionScormApiLogItemMethodEnum];
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the ResourceSessionScormApiLogItem interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfResourceSessionScormApiLogItem(value: object): value is ResourceSessionScormApiLogItem;
|
|
76
|
+
export declare function ResourceSessionScormApiLogItemFromJSON(json: any): ResourceSessionScormApiLogItem;
|
|
77
|
+
export declare function ResourceSessionScormApiLogItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSessionScormApiLogItem;
|
|
78
|
+
export declare function ResourceSessionScormApiLogItemToJSON(json: any): ResourceSessionScormApiLogItem;
|
|
79
|
+
export declare function ResourceSessionScormApiLogItemToJSONTyped(value?: ResourceSessionScormApiLogItem | null, ignoreDiscriminator?: boolean): any;
|