@easyedu/js-lsm-api 1.90.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 +20 -0
- package/README.md +15 -2
- package/dist/apis/PlayerApi.d.ts +115 -1
- package/dist/apis/PlayerApi.js +213 -1
- package/dist/esm/apis/PlayerApi.d.ts +115 -1
- package/dist/esm/apis/PlayerApi.js +212 -0
- package/dist/esm/models/GetResourceSession.d.ts +30 -0
- package/dist/esm/models/GetResourceSession.js +16 -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/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/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/GetResourceSession.d.ts +30 -0
- package/dist/models/GetResourceSession.js +16 -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/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/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/GetResourceSession.md +10 -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/GetResourceSessionScormApiLogs.md +43 -0
- package/docs/GetResourceSessionScormData.md +49 -0
- package/docs/GetResourceSessionScormDataActivity.md +38 -0
- package/docs/PlayerApi.md +254 -3
- package/docs/ResourceSessionScormApiLogItem.md +47 -0
- package/package.json +1 -1
- package/src/apis/PlayerApi.ts +298 -1
- package/src/models/GetResourceSession.ts +43 -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/GetResourceSessionScormApiLogs.ts +110 -0
- package/src/models/GetResourceSessionScormData.ts +134 -0
- package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
- package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,88 @@
|
|
|
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 GetResourceSessionDiagnosticsVersion
|
|
16
|
+
*/
|
|
17
|
+
export interface GetResourceSessionDiagnosticsVersion {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetResourceSessionDiagnosticsVersion
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetResourceSessionDiagnosticsVersion
|
|
28
|
+
*/
|
|
29
|
+
versionNumber: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetResourceSessionDiagnosticsVersion
|
|
34
|
+
*/
|
|
35
|
+
status: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetResourceSessionDiagnosticsVersion
|
|
40
|
+
*/
|
|
41
|
+
changeNotes?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {{ [key: string]: any; }}
|
|
45
|
+
* @memberof GetResourceSessionDiagnosticsVersion
|
|
46
|
+
*/
|
|
47
|
+
metadata: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof GetResourceSessionDiagnosticsVersion
|
|
54
|
+
*/
|
|
55
|
+
filename?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof GetResourceSessionDiagnosticsVersion
|
|
60
|
+
*/
|
|
61
|
+
mimeType?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof GetResourceSessionDiagnosticsVersion
|
|
66
|
+
*/
|
|
67
|
+
fileSizeBytes?: number | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof GetResourceSessionDiagnosticsVersion
|
|
72
|
+
*/
|
|
73
|
+
checksumSha256?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof GetResourceSessionDiagnosticsVersion
|
|
78
|
+
*/
|
|
79
|
+
linkUrl?: string | null;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the GetResourceSessionDiagnosticsVersion interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfGetResourceSessionDiagnosticsVersion(value: object): value is GetResourceSessionDiagnosticsVersion;
|
|
85
|
+
export declare function GetResourceSessionDiagnosticsVersionFromJSON(json: any): GetResourceSessionDiagnosticsVersion;
|
|
86
|
+
export declare function GetResourceSessionDiagnosticsVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsVersion;
|
|
87
|
+
export declare function GetResourceSessionDiagnosticsVersionToJSON(json: any): GetResourceSessionDiagnosticsVersion;
|
|
88
|
+
export declare function GetResourceSessionDiagnosticsVersionToJSONTyped(value?: GetResourceSessionDiagnosticsVersion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfGetResourceSessionDiagnosticsVersion = instanceOfGetResourceSessionDiagnosticsVersion;
|
|
17
|
+
exports.GetResourceSessionDiagnosticsVersionFromJSON = GetResourceSessionDiagnosticsVersionFromJSON;
|
|
18
|
+
exports.GetResourceSessionDiagnosticsVersionFromJSONTyped = GetResourceSessionDiagnosticsVersionFromJSONTyped;
|
|
19
|
+
exports.GetResourceSessionDiagnosticsVersionToJSON = GetResourceSessionDiagnosticsVersionToJSON;
|
|
20
|
+
exports.GetResourceSessionDiagnosticsVersionToJSONTyped = GetResourceSessionDiagnosticsVersionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetResourceSessionDiagnosticsVersion interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetResourceSessionDiagnosticsVersion(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function GetResourceSessionDiagnosticsVersionFromJSON(json) {
|
|
36
|
+
return GetResourceSessionDiagnosticsVersionFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function GetResourceSessionDiagnosticsVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'versionNumber': json['version_number'],
|
|
45
|
+
'status': json['status'],
|
|
46
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
47
|
+
'metadata': json['metadata'],
|
|
48
|
+
'filename': json['filename'] == null ? undefined : json['filename'],
|
|
49
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
50
|
+
'fileSizeBytes': json['file_size_bytes'] == null ? undefined : json['file_size_bytes'],
|
|
51
|
+
'checksumSha256': json['checksum_sha256'] == null ? undefined : json['checksum_sha256'],
|
|
52
|
+
'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function GetResourceSessionDiagnosticsVersionToJSON(json) {
|
|
56
|
+
return GetResourceSessionDiagnosticsVersionToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function GetResourceSessionDiagnosticsVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'version_number': value['versionNumber'],
|
|
65
|
+
'status': value['status'],
|
|
66
|
+
'change_notes': value['changeNotes'],
|
|
67
|
+
'metadata': value['metadata'],
|
|
68
|
+
'filename': value['filename'],
|
|
69
|
+
'mime_type': value['mimeType'],
|
|
70
|
+
'file_size_bytes': value['fileSizeBytes'],
|
|
71
|
+
'checksum_sha256': value['checksumSha256'],
|
|
72
|
+
'link_url': value['linkUrl'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -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,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;
|