@easyedu/js-lsm-api 1.140.0 → 1.141.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 +30 -0
- package/README.md +28 -2
- package/dist/apis/DispatchApi.d.ts +18 -0
- package/dist/apis/DispatchApi.js +43 -0
- package/dist/apis/LRSApi.d.ts +152 -0
- package/dist/apis/LRSApi.js +369 -0
- package/dist/apis/PlayerApi.d.ts +71 -0
- package/dist/apis/PlayerApi.js +177 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DispatchApi.d.ts +18 -0
- package/dist/esm/apis/DispatchApi.js +43 -0
- package/dist/esm/apis/LRSApi.d.ts +152 -0
- package/dist/esm/apis/LRSApi.js +365 -0
- package/dist/esm/apis/PlayerApi.d.ts +71 -0
- package/dist/esm/apis/PlayerApi.js +177 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Cmi5Launch.d.ts +52 -0
- package/dist/esm/models/Cmi5Launch.js +58 -0
- package/dist/esm/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLrsUserRecordsResponse.js +47 -0
- package/dist/esm/models/GetCourseExport.d.ts +2 -1
- package/dist/esm/models/GetCourseExport.js +2 -1
- package/dist/esm/models/GetLrsCredentials.d.ts +46 -0
- package/dist/esm/models/GetLrsCredentials.js +53 -0
- package/dist/esm/models/GetLrsStatementList.d.ts +57 -0
- package/dist/esm/models/GetLrsStatementList.js +60 -0
- package/dist/esm/models/GetResourceSessionActivity.d.ts +2 -1
- package/dist/esm/models/GetResourceSessionActivity.js +2 -1
- package/dist/esm/models/H5pState.d.ts +34 -0
- package/dist/esm/models/H5pState.js +43 -0
- package/dist/esm/models/H5pStatementResult.d.ts +44 -0
- package/dist/esm/models/H5pStatementResult.js +49 -0
- package/dist/esm/models/HostedScormAccessPolicy.d.ts +1 -1
- package/dist/esm/models/LrsCredential.d.ts +74 -0
- package/dist/esm/models/LrsCredential.js +67 -0
- package/dist/esm/models/LrsScope.d.ts +38 -0
- package/dist/esm/models/LrsScope.js +47 -0
- package/dist/esm/models/LrsStatement.d.ts +112 -0
- package/dist/esm/models/LrsStatement.js +81 -0
- package/dist/esm/models/PostCourseExport.d.ts +2 -1
- package/dist/esm/models/PostCourseExport.js +2 -1
- package/dist/esm/models/PostDispatchCmi5Launch.d.ts +64 -0
- package/dist/esm/models/PostDispatchCmi5Launch.js +63 -0
- package/dist/esm/models/PostH5pStatement.d.ts +40 -0
- package/dist/esm/models/PostH5pStatement.js +47 -0
- package/dist/esm/models/PostLrsCredential.d.ts +38 -0
- package/dist/esm/models/PostLrsCredential.js +47 -0
- package/dist/esm/models/PostLrsCredentialResponse.d.ts +45 -0
- package/dist/esm/models/PostLrsCredentialResponse.js +52 -0
- package/dist/esm/models/PutLrsCredential.d.ts +38 -0
- package/dist/esm/models/PutLrsCredential.js +43 -0
- package/dist/esm/models/ResourceType.d.ts +2 -0
- package/dist/esm/models/ResourceType.js +3 -1
- package/dist/esm/models/index.d.ts +14 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/models/Cmi5Launch.d.ts +52 -0
- package/dist/models/Cmi5Launch.js +66 -0
- package/dist/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
- package/dist/models/DeleteLrsUserRecordsResponse.js +54 -0
- package/dist/models/GetCourseExport.d.ts +2 -1
- package/dist/models/GetCourseExport.js +2 -1
- package/dist/models/GetLrsCredentials.d.ts +46 -0
- package/dist/models/GetLrsCredentials.js +60 -0
- package/dist/models/GetLrsStatementList.d.ts +57 -0
- package/dist/models/GetLrsStatementList.js +67 -0
- package/dist/models/GetResourceSessionActivity.d.ts +2 -1
- package/dist/models/GetResourceSessionActivity.js +2 -1
- package/dist/models/H5pState.d.ts +34 -0
- package/dist/models/H5pState.js +50 -0
- package/dist/models/H5pStatementResult.d.ts +44 -0
- package/dist/models/H5pStatementResult.js +56 -0
- package/dist/models/HostedScormAccessPolicy.d.ts +1 -1
- package/dist/models/LrsCredential.d.ts +74 -0
- package/dist/models/LrsCredential.js +74 -0
- package/dist/models/LrsScope.d.ts +38 -0
- package/dist/models/LrsScope.js +54 -0
- package/dist/models/LrsStatement.d.ts +112 -0
- package/dist/models/LrsStatement.js +88 -0
- package/dist/models/PostCourseExport.d.ts +2 -1
- package/dist/models/PostCourseExport.js +2 -1
- package/dist/models/PostDispatchCmi5Launch.d.ts +64 -0
- package/dist/models/PostDispatchCmi5Launch.js +70 -0
- package/dist/models/PostH5pStatement.d.ts +40 -0
- package/dist/models/PostH5pStatement.js +54 -0
- package/dist/models/PostLrsCredential.d.ts +38 -0
- package/dist/models/PostLrsCredential.js +54 -0
- package/dist/models/PostLrsCredentialResponse.d.ts +45 -0
- package/dist/models/PostLrsCredentialResponse.js +59 -0
- package/dist/models/PutLrsCredential.d.ts +38 -0
- package/dist/models/PutLrsCredential.js +50 -0
- package/dist/models/ResourceType.d.ts +2 -0
- package/dist/models/ResourceType.js +3 -1
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/docs/Cmi5Launch.md +39 -0
- package/docs/ContentLibraryApi.md +2 -2
- package/docs/DeleteLrsUserRecordsResponse.md +37 -0
- package/docs/DispatchApi.md +73 -0
- package/docs/GetLrsCredentials.md +38 -0
- package/docs/GetLrsStatementList.md +42 -0
- package/docs/H5pState.md +35 -0
- package/docs/H5pStatementResult.md +39 -0
- package/docs/LRSApi.md +531 -0
- package/docs/LrsCredential.md +49 -0
- package/docs/LrsScope.md +37 -0
- package/docs/LrsStatement.md +61 -0
- package/docs/PlayerApi.md +286 -1
- package/docs/PostDispatchCmi5Launch.md +45 -0
- package/docs/PostH5pStatement.md +37 -0
- package/docs/PostLrsCredential.md +36 -0
- package/docs/PostLrsCredentialResponse.md +39 -0
- package/docs/PutLrsCredential.md +36 -0
- package/package.json +1 -1
- package/src/apis/DispatchApi.ts +58 -0
- package/src/apis/LRSApi.ts +486 -0
- package/src/apis/PlayerApi.ts +250 -0
- package/src/apis/index.ts +1 -0
- package/src/models/Cmi5Launch.ts +95 -0
- package/src/models/DeleteLrsUserRecordsResponse.ts +75 -0
- package/src/models/GetCourseExport.ts +3 -2
- package/src/models/GetLrsCredentials.ts +99 -0
- package/src/models/GetLrsStatementList.ts +110 -0
- package/src/models/GetResourceSessionActivity.ts +3 -2
- package/src/models/H5pState.ts +66 -0
- package/src/models/H5pStatementResult.ts +83 -0
- package/src/models/HostedScormAccessPolicy.ts +1 -1
- package/src/models/LrsCredential.ts +127 -0
- package/src/models/LrsScope.ts +75 -0
- package/src/models/LrsStatement.ts +176 -0
- package/src/models/PostCourseExport.ts +3 -2
- package/src/models/PostDispatchCmi5Launch.ts +111 -0
- package/src/models/PostH5pStatement.ts +75 -0
- package/src/models/PostLrsCredential.ts +75 -0
- package/src/models/PostLrsCredentialResponse.ts +92 -0
- package/src/models/PutLrsCredential.ts +73 -0
- package/src/models/ResourceType.ts +3 -1
- package/src/models/index.ts +14 -0
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfH5pStatementResult = instanceOfH5pStatementResult;
|
|
17
|
+
exports.H5pStatementResultFromJSON = H5pStatementResultFromJSON;
|
|
18
|
+
exports.H5pStatementResultFromJSONTyped = H5pStatementResultFromJSONTyped;
|
|
19
|
+
exports.H5pStatementResultToJSON = H5pStatementResultToJSON;
|
|
20
|
+
exports.H5pStatementResultToJSONTyped = H5pStatementResultToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the H5pStatementResult interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfH5pStatementResult(value) {
|
|
25
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function H5pStatementResultFromJSON(json) {
|
|
32
|
+
return H5pStatementResultFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function H5pStatementResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'completionStatus': json['completion_status'],
|
|
40
|
+
'gradeStatus': json['grade_status'],
|
|
41
|
+
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function H5pStatementResultToJSON(json) {
|
|
45
|
+
return H5pStatementResultToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function H5pStatementResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'completion_status': value['completionStatus'],
|
|
53
|
+
'grade_status': value['gradeStatus'],
|
|
54
|
+
'score_raw': value['scoreRaw'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -34,7 +34,7 @@ export interface HostedScormAccessPolicy {
|
|
|
34
34
|
*/
|
|
35
35
|
validUntil: number | null;
|
|
36
36
|
/**
|
|
37
|
-
* Exact HTTP(S) origins. Empty permits any origin.
|
|
37
|
+
* Exact HTTP(S) origins. Empty permits any origin. For a CMI5 export the entries name the client's LRS and may also be endpoint URLs with a path (stored with a trailing slash), which permit only LRS endpoints under that path.
|
|
38
38
|
* @type {Array<string>}
|
|
39
39
|
* @memberof HostedScormAccessPolicy
|
|
40
40
|
*/
|
|
@@ -0,0 +1,74 @@
|
|
|
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 portal-scoped credential for the xAPI Learning Record Store. External systems use the key and secret as HTTP Basic credentials. The secret is never included here.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LrsCredential
|
|
16
|
+
*/
|
|
17
|
+
export interface LrsCredential {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LrsCredential
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LrsCredential
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* The HTTP Basic user name. Not secret.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LrsCredential
|
|
34
|
+
*/
|
|
35
|
+
apiKey: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof LrsCredential
|
|
40
|
+
*/
|
|
41
|
+
scopes: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Unix epoch timestamp
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof LrsCredential
|
|
46
|
+
*/
|
|
47
|
+
createdAt: number;
|
|
48
|
+
/**
|
|
49
|
+
* Unix epoch timestamp
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof LrsCredential
|
|
52
|
+
*/
|
|
53
|
+
updatedAt: number;
|
|
54
|
+
/**
|
|
55
|
+
* Unix epoch timestamp, refreshed at most every few minutes
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof LrsCredential
|
|
58
|
+
*/
|
|
59
|
+
lastUsedAt?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* Unix epoch timestamp
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof LrsCredential
|
|
64
|
+
*/
|
|
65
|
+
revokedAt?: number | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the LrsCredential interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfLrsCredential(value: object): value is LrsCredential;
|
|
71
|
+
export declare function LrsCredentialFromJSON(json: any): LrsCredential;
|
|
72
|
+
export declare function LrsCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsCredential;
|
|
73
|
+
export declare function LrsCredentialToJSON(json: any): LrsCredential;
|
|
74
|
+
export declare function LrsCredentialToJSONTyped(value?: LrsCredential | 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.instanceOfLrsCredential = instanceOfLrsCredential;
|
|
17
|
+
exports.LrsCredentialFromJSON = LrsCredentialFromJSON;
|
|
18
|
+
exports.LrsCredentialFromJSONTyped = LrsCredentialFromJSONTyped;
|
|
19
|
+
exports.LrsCredentialToJSON = LrsCredentialToJSON;
|
|
20
|
+
exports.LrsCredentialToJSONTyped = LrsCredentialToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LrsCredential interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLrsCredential(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('apiKey' in value) || value['apiKey'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function LrsCredentialFromJSON(json) {
|
|
40
|
+
return LrsCredentialFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function LrsCredentialFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'apiKey': json['api_key'],
|
|
50
|
+
'scopes': json['scopes'],
|
|
51
|
+
'createdAt': json['created_at'],
|
|
52
|
+
'updatedAt': json['updated_at'],
|
|
53
|
+
'lastUsedAt': json['last_used_at'] == null ? undefined : json['last_used_at'],
|
|
54
|
+
'revokedAt': json['revoked_at'] == null ? undefined : json['revoked_at'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function LrsCredentialToJSON(json) {
|
|
58
|
+
return LrsCredentialToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function LrsCredentialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'name': value['name'],
|
|
67
|
+
'api_key': value['apiKey'],
|
|
68
|
+
'scopes': value['scopes'],
|
|
69
|
+
'created_at': value['createdAt'],
|
|
70
|
+
'updated_at': value['updatedAt'],
|
|
71
|
+
'last_used_at': value['lastUsedAt'],
|
|
72
|
+
'revoked_at': value['revokedAt'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -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
|
+
* An xAPI authorization scope that can be granted to an LRS credential.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LrsScope
|
|
16
|
+
*/
|
|
17
|
+
export interface LrsScope {
|
|
18
|
+
/**
|
|
19
|
+
* The scope as defined by the xAPI specification, for example `statements/write`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LrsScope
|
|
22
|
+
*/
|
|
23
|
+
key: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LrsScope
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LrsScope interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLrsScope(value: object): value is LrsScope;
|
|
35
|
+
export declare function LrsScopeFromJSON(json: any): LrsScope;
|
|
36
|
+
export declare function LrsScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsScope;
|
|
37
|
+
export declare function LrsScopeToJSON(json: any): LrsScope;
|
|
38
|
+
export declare function LrsScopeToJSONTyped(value?: LrsScope | 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.instanceOfLrsScope = instanceOfLrsScope;
|
|
17
|
+
exports.LrsScopeFromJSON = LrsScopeFromJSON;
|
|
18
|
+
exports.LrsScopeFromJSONTyped = LrsScopeFromJSONTyped;
|
|
19
|
+
exports.LrsScopeToJSON = LrsScopeToJSON;
|
|
20
|
+
exports.LrsScopeToJSONTyped = LrsScopeToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LrsScope interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLrsScope(value) {
|
|
25
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function LrsScopeFromJSON(json) {
|
|
32
|
+
return LrsScopeFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function LrsScopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'key': json['key'],
|
|
40
|
+
'description': json['description'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function LrsScopeToJSON(json) {
|
|
44
|
+
return LrsScopeToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LrsScopeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'key': value['key'],
|
|
52
|
+
'description': value['description'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
* An xAPI statement stored for the portal, with the fields administrators filter on.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LrsStatement
|
|
16
|
+
*/
|
|
17
|
+
export interface LrsStatement {
|
|
18
|
+
/**
|
|
19
|
+
* The statement id.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LrsStatement
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unix epoch timestamp of when the LRS stored the statement
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof LrsStatement
|
|
28
|
+
*/
|
|
29
|
+
stored: number;
|
|
30
|
+
/**
|
|
31
|
+
* Unix epoch timestamp of when the experience happened
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LrsStatement
|
|
34
|
+
*/
|
|
35
|
+
timestamp: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LrsStatement
|
|
40
|
+
*/
|
|
41
|
+
verbId: string;
|
|
42
|
+
/**
|
|
43
|
+
* A display label for the verb, when the statement supplies one.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof LrsStatement
|
|
46
|
+
*/
|
|
47
|
+
verbDisplay?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof LrsStatement
|
|
52
|
+
*/
|
|
53
|
+
actorName?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Activity, Agent, Group, SubStatement, or StatementRef.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof LrsStatement
|
|
58
|
+
*/
|
|
59
|
+
objectType: string;
|
|
60
|
+
/**
|
|
61
|
+
* The activity id or referenced statement id, when the object has one.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof LrsStatement
|
|
64
|
+
*/
|
|
65
|
+
objectId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof LrsStatement
|
|
70
|
+
*/
|
|
71
|
+
objectName?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* The LMS user the statement's actor identifies, when it is a member of this portal.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof LrsStatement
|
|
76
|
+
*/
|
|
77
|
+
userId?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof LrsStatement
|
|
82
|
+
*/
|
|
83
|
+
registration?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* The LRS credential that stored the statement, when it still exists.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof LrsStatement
|
|
88
|
+
*/
|
|
89
|
+
credentialId?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof LrsStatement
|
|
94
|
+
*/
|
|
95
|
+
voided: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The complete statement exactly as stored.
|
|
98
|
+
* @type {{ [key: string]: any; }}
|
|
99
|
+
* @memberof LrsStatement
|
|
100
|
+
*/
|
|
101
|
+
statement: {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the LrsStatement interface.
|
|
107
|
+
*/
|
|
108
|
+
export declare function instanceOfLrsStatement(value: object): value is LrsStatement;
|
|
109
|
+
export declare function LrsStatementFromJSON(json: any): LrsStatement;
|
|
110
|
+
export declare function LrsStatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsStatement;
|
|
111
|
+
export declare function LrsStatementToJSON(json: any): LrsStatement;
|
|
112
|
+
export declare function LrsStatementToJSONTyped(value?: LrsStatement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
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.instanceOfLrsStatement = instanceOfLrsStatement;
|
|
17
|
+
exports.LrsStatementFromJSON = LrsStatementFromJSON;
|
|
18
|
+
exports.LrsStatementFromJSONTyped = LrsStatementFromJSONTyped;
|
|
19
|
+
exports.LrsStatementToJSON = LrsStatementToJSON;
|
|
20
|
+
exports.LrsStatementToJSONTyped = LrsStatementToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LrsStatement interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLrsStatement(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('stored' in value) || value['stored'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('verbId' in value) || value['verbId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('objectType' in value) || value['objectType'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('voided' in value) || value['voided'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('statement' in value) || value['statement'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function LrsStatementFromJSON(json) {
|
|
42
|
+
return LrsStatementFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function LrsStatementFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'stored': json['stored'],
|
|
51
|
+
'timestamp': json['timestamp'],
|
|
52
|
+
'verbId': json['verb_id'],
|
|
53
|
+
'verbDisplay': json['verb_display'] == null ? undefined : json['verb_display'],
|
|
54
|
+
'actorName': json['actor_name'] == null ? undefined : json['actor_name'],
|
|
55
|
+
'objectType': json['object_type'],
|
|
56
|
+
'objectId': json['object_id'] == null ? undefined : json['object_id'],
|
|
57
|
+
'objectName': json['object_name'] == null ? undefined : json['object_name'],
|
|
58
|
+
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
59
|
+
'registration': json['registration'] == null ? undefined : json['registration'],
|
|
60
|
+
'credentialId': json['credential_id'] == null ? undefined : json['credential_id'],
|
|
61
|
+
'voided': json['voided'],
|
|
62
|
+
'statement': json['statement'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function LrsStatementToJSON(json) {
|
|
66
|
+
return LrsStatementToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function LrsStatementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'stored': value['stored'],
|
|
75
|
+
'timestamp': value['timestamp'],
|
|
76
|
+
'verb_id': value['verbId'],
|
|
77
|
+
'verb_display': value['verbDisplay'],
|
|
78
|
+
'actor_name': value['actorName'],
|
|
79
|
+
'object_type': value['objectType'],
|
|
80
|
+
'object_id': value['objectId'],
|
|
81
|
+
'object_name': value['objectName'],
|
|
82
|
+
'user_id': value['userId'],
|
|
83
|
+
'registration': value['registration'],
|
|
84
|
+
'credential_id': value['credentialId'],
|
|
85
|
+
'voided': value['voided'],
|
|
86
|
+
'statement': value['statement'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -24,7 +24,7 @@ export interface PostCourseExport {
|
|
|
24
24
|
*/
|
|
25
25
|
courseVersionId: string;
|
|
26
26
|
/**
|
|
27
|
-
* The export format type
|
|
27
|
+
* The export format type. CMI5 produces a cmi5 course structure that launches the hosted course and always uses hosted delivery.
|
|
28
28
|
* @type {PostCourseExportExportTypeEnum}
|
|
29
29
|
* @memberof PostCourseExport
|
|
30
30
|
*/
|
|
@@ -61,6 +61,7 @@ export declare const PostCourseExportExportTypeEnum: {
|
|
|
61
61
|
readonly Scorm12: "SCORM_1_2";
|
|
62
62
|
readonly Scorm20043RdEdition: "SCORM_2004_3RD_EDITION";
|
|
63
63
|
readonly Scorm20044ThEdition: "SCORM_2004_4TH_EDITION";
|
|
64
|
+
readonly Cmi5: "CMI5";
|
|
64
65
|
};
|
|
65
66
|
export type PostCourseExportExportTypeEnum = typeof PostCourseExportExportTypeEnum[keyof typeof PostCourseExportExportTypeEnum];
|
|
66
67
|
/**
|
|
@@ -27,7 +27,8 @@ const HostedScormAccessPolicy_1 = require("./HostedScormAccessPolicy");
|
|
|
27
27
|
exports.PostCourseExportExportTypeEnum = {
|
|
28
28
|
Scorm12: 'SCORM_1_2',
|
|
29
29
|
Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
|
|
30
|
-
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
|
|
30
|
+
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION',
|
|
31
|
+
Cmi5: 'CMI5'
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* @export
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
* The cmi5 launch a client's LMS handed to the launcher page of a cmi5 course export, with the LRS credentials the launcher obtained from the client's fetch URL.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostDispatchCmi5Launch
|
|
16
|
+
*/
|
|
17
|
+
export interface PostDispatchCmi5Launch {
|
|
18
|
+
/**
|
|
19
|
+
* The exported package the launch is for.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostDispatchCmi5Launch
|
|
22
|
+
*/
|
|
23
|
+
dispatchId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The client LRS endpoint from the launch URL.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostDispatchCmi5Launch
|
|
28
|
+
*/
|
|
29
|
+
endpoint: string;
|
|
30
|
+
/**
|
|
31
|
+
* The auth-token returned by the client's fetch URL. It is used once, to confirm the launch with the client LRS when the export restricts which LRS may launch it, and is not stored.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostDispatchCmi5Launch
|
|
34
|
+
*/
|
|
35
|
+
authToken: string;
|
|
36
|
+
/**
|
|
37
|
+
* The learner, as the Agent from the launch URL.
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof PostDispatchCmi5Launch
|
|
40
|
+
*/
|
|
41
|
+
actor: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PostDispatchCmi5Launch
|
|
48
|
+
*/
|
|
49
|
+
registration: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PostDispatchCmi5Launch
|
|
54
|
+
*/
|
|
55
|
+
activityId: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the PostDispatchCmi5Launch interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfPostDispatchCmi5Launch(value: object): value is PostDispatchCmi5Launch;
|
|
61
|
+
export declare function PostDispatchCmi5LaunchFromJSON(json: any): PostDispatchCmi5Launch;
|
|
62
|
+
export declare function PostDispatchCmi5LaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchCmi5Launch;
|
|
63
|
+
export declare function PostDispatchCmi5LaunchToJSON(json: any): PostDispatchCmi5Launch;
|
|
64
|
+
export declare function PostDispatchCmi5LaunchToJSONTyped(value?: PostDispatchCmi5Launch | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.instanceOfPostDispatchCmi5Launch = instanceOfPostDispatchCmi5Launch;
|
|
17
|
+
exports.PostDispatchCmi5LaunchFromJSON = PostDispatchCmi5LaunchFromJSON;
|
|
18
|
+
exports.PostDispatchCmi5LaunchFromJSONTyped = PostDispatchCmi5LaunchFromJSONTyped;
|
|
19
|
+
exports.PostDispatchCmi5LaunchToJSON = PostDispatchCmi5LaunchToJSON;
|
|
20
|
+
exports.PostDispatchCmi5LaunchToJSONTyped = PostDispatchCmi5LaunchToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostDispatchCmi5Launch interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostDispatchCmi5Launch(value) {
|
|
25
|
+
if (!('dispatchId' in value) || value['dispatchId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('endpoint' in value) || value['endpoint'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('authToken' in value) || value['authToken'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('registration' in value) || value['registration'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('activityId' in value) || value['activityId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function PostDispatchCmi5LaunchFromJSON(json) {
|
|
40
|
+
return PostDispatchCmi5LaunchFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function PostDispatchCmi5LaunchFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'dispatchId': json['dispatch_id'],
|
|
48
|
+
'endpoint': json['endpoint'],
|
|
49
|
+
'authToken': json['auth_token'],
|
|
50
|
+
'actor': json['actor'],
|
|
51
|
+
'registration': json['registration'],
|
|
52
|
+
'activityId': json['activity_id'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function PostDispatchCmi5LaunchToJSON(json) {
|
|
56
|
+
return PostDispatchCmi5LaunchToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function PostDispatchCmi5LaunchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'dispatch_id': value['dispatchId'],
|
|
64
|
+
'endpoint': value['endpoint'],
|
|
65
|
+
'auth_token': value['authToken'],
|
|
66
|
+
'actor': value['actor'],
|
|
67
|
+
'registration': value['registration'],
|
|
68
|
+
'activity_id': value['activityId'],
|
|
69
|
+
};
|
|
70
|
+
}
|