@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,134 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetResourceSessionScormDataActivity } from './GetResourceSessionScormDataActivity';
|
|
17
|
+
import {
|
|
18
|
+
GetResourceSessionScormDataActivityFromJSON,
|
|
19
|
+
GetResourceSessionScormDataActivityFromJSONTyped,
|
|
20
|
+
GetResourceSessionScormDataActivityToJSON,
|
|
21
|
+
GetResourceSessionScormDataActivityToJSONTyped,
|
|
22
|
+
} from './GetResourceSessionScormDataActivity';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Current SCORM CMI state for a reusable resource session.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetResourceSessionScormData
|
|
28
|
+
*/
|
|
29
|
+
export interface GetResourceSessionScormData {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetResourceSessionScormData
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetResourceSessionScormData
|
|
40
|
+
*/
|
|
41
|
+
scormVersion: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetResourceSessionScormData
|
|
46
|
+
*/
|
|
47
|
+
createdAt: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetResourceSessionScormData
|
|
52
|
+
*/
|
|
53
|
+
updatedAt: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetResourceSessionScormData
|
|
58
|
+
*/
|
|
59
|
+
initializedAt?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GetResourceSessionScormData
|
|
64
|
+
*/
|
|
65
|
+
terminatedAt?: number | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {GetResourceSessionScormDataActivity}
|
|
69
|
+
* @memberof GetResourceSessionScormData
|
|
70
|
+
*/
|
|
71
|
+
activity?: GetResourceSessionScormDataActivity | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {{ [key: string]: string; }}
|
|
75
|
+
* @memberof GetResourceSessionScormData
|
|
76
|
+
*/
|
|
77
|
+
cmiData: { [key: string]: string; };
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the GetResourceSessionScormData interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfGetResourceSessionScormData(value: object): value is GetResourceSessionScormData {
|
|
84
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
85
|
+
if (!('scormVersion' in value) || value['scormVersion'] === undefined) return false;
|
|
86
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
87
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
88
|
+
if (!('cmiData' in value) || value['cmiData'] === undefined) return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetResourceSessionScormDataFromJSON(json: any): GetResourceSessionScormData {
|
|
93
|
+
return GetResourceSessionScormDataFromJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetResourceSessionScormDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormData {
|
|
97
|
+
if (json == null) {
|
|
98
|
+
return json;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': json['id'],
|
|
103
|
+
'scormVersion': json['scorm_version'],
|
|
104
|
+
'createdAt': json['created_at'],
|
|
105
|
+
'updatedAt': json['updated_at'],
|
|
106
|
+
'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
|
|
107
|
+
'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
|
|
108
|
+
'activity': json['activity'] == null ? undefined : GetResourceSessionScormDataActivityFromJSON(json['activity']),
|
|
109
|
+
'cmiData': json['cmi_data'],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function GetResourceSessionScormDataToJSON(json: any): GetResourceSessionScormData {
|
|
114
|
+
return GetResourceSessionScormDataToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function GetResourceSessionScormDataToJSONTyped(value?: GetResourceSessionScormData | null, ignoreDiscriminator: boolean = false): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': value['id'],
|
|
125
|
+
'scorm_version': value['scormVersion'],
|
|
126
|
+
'created_at': value['createdAt'],
|
|
127
|
+
'updated_at': value['updatedAt'],
|
|
128
|
+
'initialized_at': value['initializedAt'],
|
|
129
|
+
'terminated_at': value['terminatedAt'],
|
|
130
|
+
'activity': GetResourceSessionScormDataActivityToJSON(value['activity']),
|
|
131
|
+
'cmi_data': value['cmiData'],
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetResourceSessionScormDataActivity
|
|
20
|
+
*/
|
|
21
|
+
export interface GetResourceSessionScormDataActivity {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetResourceSessionScormDataActivity
|
|
26
|
+
*/
|
|
27
|
+
identifier?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetResourceSessionScormDataActivity
|
|
32
|
+
*/
|
|
33
|
+
name?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetResourceSessionScormDataActivity
|
|
38
|
+
*/
|
|
39
|
+
launchPath?: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GetResourceSessionScormDataActivity interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGetResourceSessionScormDataActivity(value: object): value is GetResourceSessionScormDataActivity {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function GetResourceSessionScormDataActivityFromJSON(json: any): GetResourceSessionScormDataActivity {
|
|
50
|
+
return GetResourceSessionScormDataActivityFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function GetResourceSessionScormDataActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionScormDataActivity {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'identifier': json['identifier'] == null ? undefined : json['identifier'],
|
|
60
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
61
|
+
'launchPath': json['launch_path'] == null ? undefined : json['launch_path'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function GetResourceSessionScormDataActivityToJSON(json: any): GetResourceSessionScormDataActivity {
|
|
66
|
+
return GetResourceSessionScormDataActivityToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function GetResourceSessionScormDataActivityToJSONTyped(value?: GetResourceSessionScormDataActivity | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'identifier': value['identifier'],
|
|
77
|
+
'name': value['name'],
|
|
78
|
+
'launch_path': value['launchPath'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Start or resume an isolated demo session for an exact resource version.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostResourceVersionSession
|
|
20
|
+
*/
|
|
21
|
+
export interface PostResourceVersionSession {
|
|
22
|
+
/**
|
|
23
|
+
* Create a clean demo attempt instead of resuming the current demo session.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof PostResourceVersionSession
|
|
26
|
+
*/
|
|
27
|
+
restart?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostResourceVersionSession interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostResourceVersionSession(value: object): value is PostResourceVersionSession {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function PostResourceVersionSessionFromJSON(json: any): PostResourceVersionSession {
|
|
38
|
+
return PostResourceVersionSessionFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PostResourceVersionSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionSession {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'restart': json['restart'] == null ? undefined : json['restart'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PostResourceVersionSessionToJSON(json: any): PostResourceVersionSession {
|
|
52
|
+
return PostResourceVersionSessionToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PostResourceVersionSessionToJSONTyped(value?: PostResourceVersionSession | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'restart': value['restart'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Whether the session contributes to learner activity or is isolated administrator testing.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ResourceSessionEnvironment = {
|
|
21
|
+
Live: 'live',
|
|
22
|
+
Demo: 'demo'
|
|
23
|
+
} as const;
|
|
24
|
+
export type ResourceSessionEnvironment = typeof ResourceSessionEnvironment[keyof typeof ResourceSessionEnvironment];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfResourceSessionEnvironment(value: any): boolean {
|
|
28
|
+
for (const key in ResourceSessionEnvironment) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(ResourceSessionEnvironment, key)) {
|
|
30
|
+
if (ResourceSessionEnvironment[key as keyof typeof ResourceSessionEnvironment] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ResourceSessionEnvironmentFromJSON(json: any): ResourceSessionEnvironment {
|
|
39
|
+
return ResourceSessionEnvironmentFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ResourceSessionEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment {
|
|
43
|
+
return json as ResourceSessionEnvironment;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ResourceSessionEnvironmentToJSON(value?: ResourceSessionEnvironment | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ResourceSessionEnvironmentToJSONTyped(value: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment {
|
|
51
|
+
return value as ResourceSessionEnvironment;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* A recorded SCORM runtime call for a resource session.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ResourceSessionScormApiLogItem
|
|
20
|
+
*/
|
|
21
|
+
export interface ResourceSessionScormApiLogItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
32
|
+
*/
|
|
33
|
+
createdAt: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ResourceSessionScormApiLogItemMethodEnum}
|
|
37
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
38
|
+
*/
|
|
39
|
+
method: ResourceSessionScormApiLogItemMethodEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
44
|
+
*/
|
|
45
|
+
element?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
50
|
+
*/
|
|
51
|
+
value?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
56
|
+
*/
|
|
57
|
+
valueTruncated: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
62
|
+
*/
|
|
63
|
+
errorCode: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const ResourceSessionScormApiLogItemMethodEnum = {
|
|
71
|
+
Initialize: 'Initialize',
|
|
72
|
+
GetValue: 'GetValue',
|
|
73
|
+
SetValue: 'SetValue',
|
|
74
|
+
Commit: 'Commit',
|
|
75
|
+
Terminate: 'Terminate'
|
|
76
|
+
} as const;
|
|
77
|
+
export type ResourceSessionScormApiLogItemMethodEnum = typeof ResourceSessionScormApiLogItemMethodEnum[keyof typeof ResourceSessionScormApiLogItemMethodEnum];
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the ResourceSessionScormApiLogItem interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfResourceSessionScormApiLogItem(value: object): value is ResourceSessionScormApiLogItem {
|
|
84
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
85
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
86
|
+
if (!('method' in value) || value['method'] === undefined) return false;
|
|
87
|
+
if (!('valueTruncated' in value) || value['valueTruncated'] === undefined) return false;
|
|
88
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined) return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ResourceSessionScormApiLogItemFromJSON(json: any): ResourceSessionScormApiLogItem {
|
|
93
|
+
return ResourceSessionScormApiLogItemFromJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ResourceSessionScormApiLogItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSessionScormApiLogItem {
|
|
97
|
+
if (json == null) {
|
|
98
|
+
return json;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': json['id'],
|
|
103
|
+
'createdAt': json['created_at'],
|
|
104
|
+
'method': json['method'],
|
|
105
|
+
'element': json['element'] == null ? undefined : json['element'],
|
|
106
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
107
|
+
'valueTruncated': json['value_truncated'],
|
|
108
|
+
'errorCode': json['error_code'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function ResourceSessionScormApiLogItemToJSON(json: any): ResourceSessionScormApiLogItem {
|
|
113
|
+
return ResourceSessionScormApiLogItemToJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ResourceSessionScormApiLogItemToJSONTyped(value?: ResourceSessionScormApiLogItem | null, ignoreDiscriminator: boolean = false): any {
|
|
117
|
+
if (value == null) {
|
|
118
|
+
return value;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'id': value['id'],
|
|
124
|
+
'created_at': value['createdAt'],
|
|
125
|
+
'method': value['method'],
|
|
126
|
+
'element': value['element'],
|
|
127
|
+
'value': value['value'],
|
|
128
|
+
'value_truncated': value['valueTruncated'],
|
|
129
|
+
'error_code': value['errorCode'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -182,6 +182,17 @@ export * from './GetQuizResultsTiming';
|
|
|
182
182
|
export * from './GetQuizStatistics';
|
|
183
183
|
export * from './GetResource';
|
|
184
184
|
export * from './GetResourceList';
|
|
185
|
+
export * from './GetResourceSession';
|
|
186
|
+
export * from './GetResourceSessionDiagnostics';
|
|
187
|
+
export * from './GetResourceSessionDiagnosticsCourseContext';
|
|
188
|
+
export * from './GetResourceSessionDiagnosticsResource';
|
|
189
|
+
export * from './GetResourceSessionDiagnosticsScormSummary';
|
|
190
|
+
export * from './GetResourceSessionDiagnosticsUser';
|
|
191
|
+
export * from './GetResourceSessionDiagnosticsVersion';
|
|
192
|
+
export * from './GetResourceSessionList';
|
|
193
|
+
export * from './GetResourceSessionScormApiLogs';
|
|
194
|
+
export * from './GetResourceSessionScormData';
|
|
195
|
+
export * from './GetResourceSessionScormDataActivity';
|
|
185
196
|
export * from './GetResourceUsage';
|
|
186
197
|
export * from './GetResourceUsageCoursesInner';
|
|
187
198
|
export * from './GetResourceVersionUpload';
|
|
@@ -299,6 +310,7 @@ export * from './PostResetPassword';
|
|
|
299
310
|
export * from './PostResource';
|
|
300
311
|
export * from './PostResourceVersion';
|
|
301
312
|
export * from './PostResourceVersionComplete';
|
|
313
|
+
export * from './PostResourceVersionSession';
|
|
302
314
|
export * from './PostResourceVersionUpload';
|
|
303
315
|
export * from './PostRevokeCertificate';
|
|
304
316
|
export * from './PostRichTextAssetComplete';
|
|
@@ -350,6 +362,8 @@ export * from './PutUser';
|
|
|
350
362
|
export * from './QuizContent';
|
|
351
363
|
export * from './QuizContentAssignment';
|
|
352
364
|
export * from './QuizContentSettings';
|
|
365
|
+
export * from './ResourceSessionEnvironment';
|
|
366
|
+
export * from './ResourceSessionScormApiLogItem';
|
|
353
367
|
export * from './ResourceType';
|
|
354
368
|
export * from './RichTextAsset';
|
|
355
369
|
export * from './RichTextDocument';
|