@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,111 @@
|
|
|
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
|
+
* 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.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostDispatchCmi5Launch
|
|
20
|
+
*/
|
|
21
|
+
export interface PostDispatchCmi5Launch {
|
|
22
|
+
/**
|
|
23
|
+
* The exported package the launch is for.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostDispatchCmi5Launch
|
|
26
|
+
*/
|
|
27
|
+
dispatchId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The client LRS endpoint from the launch URL.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostDispatchCmi5Launch
|
|
32
|
+
*/
|
|
33
|
+
endpoint: string;
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostDispatchCmi5Launch
|
|
38
|
+
*/
|
|
39
|
+
authToken: string;
|
|
40
|
+
/**
|
|
41
|
+
* The learner, as the Agent from the launch URL.
|
|
42
|
+
* @type {{ [key: string]: any; }}
|
|
43
|
+
* @memberof PostDispatchCmi5Launch
|
|
44
|
+
*/
|
|
45
|
+
actor: { [key: string]: any; };
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PostDispatchCmi5Launch
|
|
50
|
+
*/
|
|
51
|
+
registration: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof PostDispatchCmi5Launch
|
|
56
|
+
*/
|
|
57
|
+
activityId: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the PostDispatchCmi5Launch interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfPostDispatchCmi5Launch(value: object): value is PostDispatchCmi5Launch {
|
|
64
|
+
if (!('dispatchId' in value) || value['dispatchId'] === undefined) return false;
|
|
65
|
+
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
66
|
+
if (!('authToken' in value) || value['authToken'] === undefined) return false;
|
|
67
|
+
if (!('actor' in value) || value['actor'] === undefined) return false;
|
|
68
|
+
if (!('registration' in value) || value['registration'] === undefined) return false;
|
|
69
|
+
if (!('activityId' in value) || value['activityId'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PostDispatchCmi5LaunchFromJSON(json: any): PostDispatchCmi5Launch {
|
|
74
|
+
return PostDispatchCmi5LaunchFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PostDispatchCmi5LaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchCmi5Launch {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'dispatchId': json['dispatch_id'],
|
|
84
|
+
'endpoint': json['endpoint'],
|
|
85
|
+
'authToken': json['auth_token'],
|
|
86
|
+
'actor': json['actor'],
|
|
87
|
+
'registration': json['registration'],
|
|
88
|
+
'activityId': json['activity_id'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function PostDispatchCmi5LaunchToJSON(json: any): PostDispatchCmi5Launch {
|
|
93
|
+
return PostDispatchCmi5LaunchToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PostDispatchCmi5LaunchToJSONTyped(value?: PostDispatchCmi5Launch | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'dispatch_id': value['dispatchId'],
|
|
104
|
+
'endpoint': value['endpoint'],
|
|
105
|
+
'auth_token': value['authToken'],
|
|
106
|
+
'actor': value['actor'],
|
|
107
|
+
'registration': value['registration'],
|
|
108
|
+
'activity_id': value['activityId'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
* An xAPI statement emitted by H5P content in the learner's browser.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostH5pStatement
|
|
20
|
+
*/
|
|
21
|
+
export interface PostH5pStatement {
|
|
22
|
+
/**
|
|
23
|
+
* Client-generated id that makes a retried request idempotent. It becomes the statement id.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostH5pStatement
|
|
26
|
+
*/
|
|
27
|
+
eventId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The statement as H5P produced it. The server replaces the actor with the session's learner, the object id with the resource's activity id, and adds the session as the registration.
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof PostH5pStatement
|
|
32
|
+
*/
|
|
33
|
+
statement: { [key: string]: any; };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PostH5pStatement interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPostH5pStatement(value: object): value is PostH5pStatement {
|
|
40
|
+
if (!('eventId' in value) || value['eventId'] === undefined) return false;
|
|
41
|
+
if (!('statement' in value) || value['statement'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PostH5pStatementFromJSON(json: any): PostH5pStatement {
|
|
46
|
+
return PostH5pStatementFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PostH5pStatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostH5pStatement {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'eventId': json['event_id'],
|
|
56
|
+
'statement': json['statement'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PostH5pStatementToJSON(json: any): PostH5pStatement {
|
|
61
|
+
return PostH5pStatementToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PostH5pStatementToJSONTyped(value?: PostH5pStatement | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'event_id': value['eventId'],
|
|
72
|
+
'statement': value['statement'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 PostLrsCredential
|
|
20
|
+
*/
|
|
21
|
+
export interface PostLrsCredential {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostLrsCredential
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Set<string>}
|
|
31
|
+
* @memberof PostLrsCredential
|
|
32
|
+
*/
|
|
33
|
+
scopes: Set<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PostLrsCredential interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPostLrsCredential(value: object): value is PostLrsCredential {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if (!('scopes' in value) || value['scopes'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PostLrsCredentialFromJSON(json: any): PostLrsCredential {
|
|
46
|
+
return PostLrsCredentialFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PostLrsCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLrsCredential {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'scopes': new Set(json['scopes']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PostLrsCredentialToJSON(json: any): PostLrsCredential {
|
|
61
|
+
return PostLrsCredentialToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PostLrsCredentialToJSONTyped(value?: PostLrsCredential | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'scopes': Array.from(value['scopes'] as Set<any>),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { LrsCredential } from './LrsCredential';
|
|
17
|
+
import {
|
|
18
|
+
LrsCredentialFromJSON,
|
|
19
|
+
LrsCredentialFromJSONTyped,
|
|
20
|
+
LrsCredentialToJSON,
|
|
21
|
+
LrsCredentialToJSONTyped,
|
|
22
|
+
} from './LrsCredential';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A newly created LRS credential. The secret is returned only once.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PostLrsCredentialResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PostLrsCredentialResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {LrsCredential}
|
|
33
|
+
* @memberof PostLrsCredentialResponse
|
|
34
|
+
*/
|
|
35
|
+
credential: LrsCredential;
|
|
36
|
+
/**
|
|
37
|
+
* The HTTP Basic password. Shown once and stored only as a hash.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostLrsCredentialResponse
|
|
40
|
+
*/
|
|
41
|
+
secret: string;
|
|
42
|
+
/**
|
|
43
|
+
* The xAPI endpoint external systems should be configured with.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostLrsCredentialResponse
|
|
46
|
+
*/
|
|
47
|
+
endpoint: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PostLrsCredentialResponse interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfPostLrsCredentialResponse(value: object): value is PostLrsCredentialResponse {
|
|
54
|
+
if (!('credential' in value) || value['credential'] === undefined) return false;
|
|
55
|
+
if (!('secret' in value) || value['secret'] === undefined) return false;
|
|
56
|
+
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PostLrsCredentialResponseFromJSON(json: any): PostLrsCredentialResponse {
|
|
61
|
+
return PostLrsCredentialResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PostLrsCredentialResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLrsCredentialResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'credential': LrsCredentialFromJSON(json['credential']),
|
|
71
|
+
'secret': json['secret'],
|
|
72
|
+
'endpoint': json['endpoint'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PostLrsCredentialResponseToJSON(json: any): PostLrsCredentialResponse {
|
|
77
|
+
return PostLrsCredentialResponseToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PostLrsCredentialResponseToJSONTyped(value?: PostLrsCredentialResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'credential': LrsCredentialToJSON(value['credential']),
|
|
88
|
+
'secret': value['secret'],
|
|
89
|
+
'endpoint': value['endpoint'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 PutLrsCredential
|
|
20
|
+
*/
|
|
21
|
+
export interface PutLrsCredential {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PutLrsCredential
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Set<string>}
|
|
31
|
+
* @memberof PutLrsCredential
|
|
32
|
+
*/
|
|
33
|
+
scopes?: Set<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PutLrsCredential interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPutLrsCredential(value: object): value is PutLrsCredential {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PutLrsCredentialFromJSON(json: any): PutLrsCredential {
|
|
44
|
+
return PutLrsCredentialFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PutLrsCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLrsCredential {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
+
'scopes': json['scopes'] == null ? undefined : new Set(json['scopes']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PutLrsCredentialToJSON(json: any): PutLrsCredential {
|
|
59
|
+
return PutLrsCredentialToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PutLrsCredentialToJSONTyped(value?: PutLrsCredential | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'scopes': value['scopes'] == null ? undefined : Array.from(value['scopes'] as Set<any>),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -26,7 +26,9 @@ export const ResourceType = {
|
|
|
26
26
|
Powerpoint: 'powerpoint',
|
|
27
27
|
File: 'file',
|
|
28
28
|
Link: 'link',
|
|
29
|
-
RichText: 'rich_text'
|
|
29
|
+
RichText: 'rich_text',
|
|
30
|
+
Cmi5: 'cmi5',
|
|
31
|
+
H5p: 'h5p'
|
|
30
32
|
} as const;
|
|
31
33
|
export type ResourceType = typeof ResourceType[keyof typeof ResourceType];
|
|
32
34
|
|
package/src/models/index.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from './ChatQuotaExceeded';
|
|
|
34
34
|
export * from './ChatTurnUsage';
|
|
35
35
|
export * from './ChatUsageTotals';
|
|
36
36
|
export * from './ChatUserIdentity';
|
|
37
|
+
export * from './Cmi5Launch';
|
|
37
38
|
export * from './ContentLaunchMode';
|
|
38
39
|
export * from './ContentLibraryTag';
|
|
39
40
|
export * from './ContentLibraryTagItem';
|
|
@@ -43,6 +44,7 @@ export * from './CourseProgressionMode';
|
|
|
43
44
|
export * from './CourseShare';
|
|
44
45
|
export * from './CourseShareAcceptError';
|
|
45
46
|
export * from './CustomWebhookIntegration';
|
|
47
|
+
export * from './DeleteLrsUserRecordsResponse';
|
|
46
48
|
export * from './DispatchTokenResponse';
|
|
47
49
|
export * from './EffectiveCertificateConfig';
|
|
48
50
|
export * from './EmailTemplateDefinition';
|
|
@@ -115,6 +117,8 @@ export * from './GetLibraryQuizSession';
|
|
|
115
117
|
export * from './GetLibraryQuizSessionList';
|
|
116
118
|
export * from './GetLibraryQuizUsage';
|
|
117
119
|
export * from './GetLibraryQuizVersion';
|
|
120
|
+
export * from './GetLrsCredentials';
|
|
121
|
+
export * from './GetLrsStatementList';
|
|
118
122
|
export * from './GetPermission';
|
|
119
123
|
export * from './GetPortal';
|
|
120
124
|
export * from './GetPortalFaviconUpload';
|
|
@@ -185,6 +189,8 @@ export * from './GetZapierMe';
|
|
|
185
189
|
export * from './GetZapierSetup';
|
|
186
190
|
export * from './GetZapierShopifyCourseMappings';
|
|
187
191
|
export * from './GetZapierUsers';
|
|
192
|
+
export * from './H5pState';
|
|
193
|
+
export * from './H5pStatementResult';
|
|
188
194
|
export * from './HostedScormAccessPolicy';
|
|
189
195
|
export * from './HostedScormOutlineEntry';
|
|
190
196
|
export * from './HostedScormRollupPolicy';
|
|
@@ -211,6 +217,9 @@ export * from './LoginRes';
|
|
|
211
217
|
export * from './LoginResAuthData';
|
|
212
218
|
export * from './LoginResUserData';
|
|
213
219
|
export * from './LoginResUserDataSelectedPortal';
|
|
220
|
+
export * from './LrsCredential';
|
|
221
|
+
export * from './LrsScope';
|
|
222
|
+
export * from './LrsStatement';
|
|
214
223
|
export * from './Paginated';
|
|
215
224
|
export * from './PortalBrandColorsV1';
|
|
216
225
|
export * from './PortalBrandThemeV1';
|
|
@@ -253,6 +262,7 @@ export * from './PostCourseVersionSectionDuplicate';
|
|
|
253
262
|
export * from './PostCustomWebhookIntegration';
|
|
254
263
|
export * from './PostDemoRequest';
|
|
255
264
|
export * from './PostDemoRequestResponse';
|
|
265
|
+
export * from './PostDispatchCmi5Launch';
|
|
256
266
|
export * from './PostDispatchItemLaunch';
|
|
257
267
|
export * from './PostDispatchItemLaunchResponse';
|
|
258
268
|
export * from './PostDispatchLaunch';
|
|
@@ -263,11 +273,14 @@ export * from './PostEmailAssetComplete';
|
|
|
263
273
|
export * from './PostEmailAssetUpload';
|
|
264
274
|
export * from './PostEmailTemplatePreview';
|
|
265
275
|
export * from './PostEmailTemplateTestSend';
|
|
276
|
+
export * from './PostH5pStatement';
|
|
266
277
|
export * from './PostLearnerExperiencePreview';
|
|
267
278
|
export * from './PostLibraryQuiz';
|
|
268
279
|
export * from './PostLibraryQuizSession';
|
|
269
280
|
export * from './PostLibraryQuizVersion';
|
|
270
281
|
export * from './PostLogin';
|
|
282
|
+
export * from './PostLrsCredential';
|
|
283
|
+
export * from './PostLrsCredentialResponse';
|
|
271
284
|
export * from './PostMessage';
|
|
272
285
|
export * from './PostMessageResponse';
|
|
273
286
|
export * from './PostOfferCatalog';
|
|
@@ -342,6 +355,7 @@ export * from './PutLibraryQuizSessionGrade';
|
|
|
342
355
|
export * from './PutLibraryQuizSessionOverride';
|
|
343
356
|
export * from './PutLibraryQuizSessionQuestionFlag';
|
|
344
357
|
export * from './PutLibraryQuizVersion';
|
|
358
|
+
export * from './PutLrsCredential';
|
|
345
359
|
export * from './PutPortalBranding';
|
|
346
360
|
export * from './PutPortalCertificateTemplate';
|
|
347
361
|
export * from './PutPortalSublicense';
|