@easyedu/js-lsm-api 1.146.0 → 1.147.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 +0 -10
- package/README.md +2 -11
- package/dist/apis/ContentLibraryApi.d.ts +0 -15
- package/dist/apis/ContentLibraryApi.js +0 -38
- package/dist/apis/PlayerApi.d.ts +0 -52
- package/dist/apis/PlayerApi.js +0 -131
- package/dist/esm/apis/ContentLibraryApi.d.ts +0 -15
- package/dist/esm/apis/ContentLibraryApi.js +0 -38
- package/dist/esm/apis/PlayerApi.d.ts +0 -52
- package/dist/esm/apis/PlayerApi.js +0 -131
- package/dist/esm/models/ResourceType.d.ts +0 -1
- package/dist/esm/models/ResourceType.js +1 -2
- package/dist/esm/models/index.d.ts +0 -5
- package/dist/esm/models/index.js +0 -5
- package/dist/models/ResourceType.d.ts +0 -1
- package/dist/models/ResourceType.js +1 -2
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/docs/ContentLibraryApi.md +3 -64
- package/docs/LRSApi.md +4 -4
- package/docs/PlayerApi.md +1 -213
- package/package.json +1 -1
- package/publish.log +2 -2
- package/src/apis/ContentLibraryApi.ts +0 -44
- package/src/apis/PlayerApi.ts +0 -185
- package/src/models/ResourceType.ts +1 -2
- package/src/models/index.ts +0 -5
- package/dist/esm/models/GetResourceTypeList.d.ts +0 -33
- package/dist/esm/models/GetResourceTypeList.js +0 -44
- package/dist/esm/models/H5pState.d.ts +0 -32
- package/dist/esm/models/H5pState.js +0 -43
- package/dist/esm/models/H5pStatementResult.d.ts +0 -44
- package/dist/esm/models/H5pStatementResult.js +0 -49
- package/dist/esm/models/PostH5pStatement.d.ts +0 -40
- package/dist/esm/models/PostH5pStatement.js +0 -47
- package/dist/esm/models/ResourceTypeAvailability.d.ts +0 -39
- package/dist/esm/models/ResourceTypeAvailability.js +0 -48
- package/dist/models/GetResourceTypeList.d.ts +0 -33
- package/dist/models/GetResourceTypeList.js +0 -51
- package/dist/models/H5pState.d.ts +0 -32
- package/dist/models/H5pState.js +0 -50
- package/dist/models/H5pStatementResult.d.ts +0 -44
- package/dist/models/H5pStatementResult.js +0 -56
- package/dist/models/PostH5pStatement.d.ts +0 -40
- package/dist/models/PostH5pStatement.js +0 -54
- package/dist/models/ResourceTypeAvailability.d.ts +0 -39
- package/dist/models/ResourceTypeAvailability.js +0 -55
- package/docs/GetResourceTypeList.md +0 -35
- package/docs/H5pState.md +0 -35
- package/docs/H5pStatementResult.md +0 -39
- package/docs/PostH5pStatement.md +0 -37
- package/docs/ResourceTypeAvailability.md +0 -37
- package/src/models/GetResourceTypeList.ts +0 -74
- package/src/models/H5pState.ts +0 -66
- package/src/models/H5pStatementResult.ts +0 -83
- package/src/models/PostH5pStatement.ts +0 -75
- package/src/models/ResourceTypeAvailability.ts +0 -85
|
@@ -1,32 +0,0 @@
|
|
|
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 saved in-progress state of an H5P activity for the session's learner.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface H5pState
|
|
16
|
-
*/
|
|
17
|
-
export interface H5pState {
|
|
18
|
-
/**
|
|
19
|
-
* The value H5P returned from getCurrentState, or null when nothing is saved. Content types choose its shape: some return an object, others a list or a plain value.
|
|
20
|
-
* @type {object}
|
|
21
|
-
* @memberof H5pState
|
|
22
|
-
*/
|
|
23
|
-
state: object | null;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the H5pState interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfH5pState(value: object): value is H5pState;
|
|
29
|
-
export declare function H5pStateFromJSON(json: any): H5pState;
|
|
30
|
-
export declare function H5pStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): H5pState;
|
|
31
|
-
export declare function H5pStateToJSON(json: any): H5pState;
|
|
32
|
-
export declare function H5pStateToJSONTyped(value?: H5pState | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
* Check if a given object implements the H5pState interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfH5pState(value) {
|
|
18
|
-
if (!('state' in value) || value['state'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
export function H5pStateFromJSON(json) {
|
|
23
|
-
return H5pStateFromJSONTyped(json, false);
|
|
24
|
-
}
|
|
25
|
-
export function H5pStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
-
if (json == null) {
|
|
27
|
-
return json;
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
'state': json['state'],
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export function H5pStateToJSON(json) {
|
|
34
|
-
return H5pStateToJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
export function H5pStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
-
if (value == null) {
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'state': value['state'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
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 learner's progress on the H5P activity after a statement was recorded.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface H5pStatementResult
|
|
16
|
-
*/
|
|
17
|
-
export interface H5pStatementResult {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof H5pStatementResult
|
|
22
|
-
*/
|
|
23
|
-
completionStatus: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof H5pStatementResult
|
|
28
|
-
*/
|
|
29
|
-
gradeStatus: string;
|
|
30
|
-
/**
|
|
31
|
-
* Best score so far, as a percentage from 0 to 100.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof H5pStatementResult
|
|
34
|
-
*/
|
|
35
|
-
scoreRaw?: number | null;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the H5pStatementResult interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfH5pStatementResult(value: object): value is H5pStatementResult;
|
|
41
|
-
export declare function H5pStatementResultFromJSON(json: any): H5pStatementResult;
|
|
42
|
-
export declare function H5pStatementResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): H5pStatementResult;
|
|
43
|
-
export declare function H5pStatementResultToJSON(json: any): H5pStatementResult;
|
|
44
|
-
export declare function H5pStatementResultToJSONTyped(value?: H5pStatementResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
* Check if a given object implements the H5pStatementResult interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfH5pStatementResult(value) {
|
|
18
|
-
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
export function H5pStatementResultFromJSON(json) {
|
|
25
|
-
return H5pStatementResultFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
export function H5pStatementResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
-
if (json == null) {
|
|
29
|
-
return json;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
'completionStatus': json['completion_status'],
|
|
33
|
-
'gradeStatus': json['grade_status'],
|
|
34
|
-
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export function H5pStatementResultToJSON(json) {
|
|
38
|
-
return H5pStatementResultToJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
export function H5pStatementResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'completion_status': value['completionStatus'],
|
|
46
|
-
'grade_status': value['gradeStatus'],
|
|
47
|
-
'score_raw': value['scoreRaw'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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 emitted by H5P content in the learner's browser.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PostH5pStatement
|
|
16
|
-
*/
|
|
17
|
-
export interface PostH5pStatement {
|
|
18
|
-
/**
|
|
19
|
-
* Client-generated id that makes a retried request idempotent. It becomes the statement id.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PostH5pStatement
|
|
22
|
-
*/
|
|
23
|
-
eventId: string;
|
|
24
|
-
/**
|
|
25
|
-
* 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.
|
|
26
|
-
* @type {{ [key: string]: any; }}
|
|
27
|
-
* @memberof PostH5pStatement
|
|
28
|
-
*/
|
|
29
|
-
statement: {
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PostH5pStatement interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPostH5pStatement(value: object): value is PostH5pStatement;
|
|
37
|
-
export declare function PostH5pStatementFromJSON(json: any): PostH5pStatement;
|
|
38
|
-
export declare function PostH5pStatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostH5pStatement;
|
|
39
|
-
export declare function PostH5pStatementToJSON(json: any): PostH5pStatement;
|
|
40
|
-
export declare function PostH5pStatementToJSONTyped(value?: PostH5pStatement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
* Check if a given object implements the PostH5pStatement interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfPostH5pStatement(value) {
|
|
18
|
-
if (!('eventId' in value) || value['eventId'] === undefined)
|
|
19
|
-
return false;
|
|
20
|
-
if (!('statement' in value) || value['statement'] === undefined)
|
|
21
|
-
return false;
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
export function PostH5pStatementFromJSON(json) {
|
|
25
|
-
return PostH5pStatementFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
export function PostH5pStatementFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
-
if (json == null) {
|
|
29
|
-
return json;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
'eventId': json['event_id'],
|
|
33
|
-
'statement': json['statement'],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export function PostH5pStatementToJSON(json) {
|
|
37
|
-
return PostH5pStatementToJSONTyped(json, false);
|
|
38
|
-
}
|
|
39
|
-
export function PostH5pStatementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'event_id': value['eventId'],
|
|
45
|
-
'statement': value['statement'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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 { ResourceType } from './ResourceType';
|
|
13
|
-
/**
|
|
14
|
-
* One kind of resource and whether it can be used on this platform.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ResourceTypeAvailability
|
|
17
|
-
*/
|
|
18
|
-
export interface ResourceTypeAvailability {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {ResourceType}
|
|
22
|
-
* @memberof ResourceTypeAvailability
|
|
23
|
-
*/
|
|
24
|
-
resourceType: ResourceType;
|
|
25
|
-
/**
|
|
26
|
-
* Whether new resources of this type can be created and played on this platform. A type that is not available stays listed and readable where it already exists, but cannot be created, uploaded to, or played.
|
|
27
|
-
* @type {boolean}
|
|
28
|
-
* @memberof ResourceTypeAvailability
|
|
29
|
-
*/
|
|
30
|
-
available: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the ResourceTypeAvailability interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfResourceTypeAvailability(value: object): value is ResourceTypeAvailability;
|
|
36
|
-
export declare function ResourceTypeAvailabilityFromJSON(json: any): ResourceTypeAvailability;
|
|
37
|
-
export declare function ResourceTypeAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceTypeAvailability;
|
|
38
|
-
export declare function ResourceTypeAvailabilityToJSON(json: any): ResourceTypeAvailability;
|
|
39
|
-
export declare function ResourceTypeAvailabilityToJSONTyped(value?: ResourceTypeAvailability | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
|
|
15
|
-
/**
|
|
16
|
-
* Check if a given object implements the ResourceTypeAvailability interface.
|
|
17
|
-
*/
|
|
18
|
-
export function instanceOfResourceTypeAvailability(value) {
|
|
19
|
-
if (!('resourceType' in value) || value['resourceType'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
if (!('available' in value) || value['available'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
export function ResourceTypeAvailabilityFromJSON(json) {
|
|
26
|
-
return ResourceTypeAvailabilityFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
export function ResourceTypeAvailabilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'resourceType': ResourceTypeFromJSON(json['resource_type']),
|
|
34
|
-
'available': json['available'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export function ResourceTypeAvailabilityToJSON(json) {
|
|
38
|
-
return ResourceTypeAvailabilityToJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
export function ResourceTypeAvailabilityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'resource_type': ResourceTypeToJSON(value['resourceType']),
|
|
46
|
-
'available': value['available'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 { ResourceTypeAvailability } from './ResourceTypeAvailability';
|
|
13
|
-
/**
|
|
14
|
-
* Every kind of resource the Content Library knows, in display order.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetResourceTypeList
|
|
17
|
-
*/
|
|
18
|
-
export interface GetResourceTypeList {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<ResourceTypeAvailability>}
|
|
22
|
-
* @memberof GetResourceTypeList
|
|
23
|
-
*/
|
|
24
|
-
items: Array<ResourceTypeAvailability>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the GetResourceTypeList interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfGetResourceTypeList(value: object): value is GetResourceTypeList;
|
|
30
|
-
export declare function GetResourceTypeListFromJSON(json: any): GetResourceTypeList;
|
|
31
|
-
export declare function GetResourceTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceTypeList;
|
|
32
|
-
export declare function GetResourceTypeListToJSON(json: any): GetResourceTypeList;
|
|
33
|
-
export declare function GetResourceTypeListToJSONTyped(value?: GetResourceTypeList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
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.instanceOfGetResourceTypeList = instanceOfGetResourceTypeList;
|
|
17
|
-
exports.GetResourceTypeListFromJSON = GetResourceTypeListFromJSON;
|
|
18
|
-
exports.GetResourceTypeListFromJSONTyped = GetResourceTypeListFromJSONTyped;
|
|
19
|
-
exports.GetResourceTypeListToJSON = GetResourceTypeListToJSON;
|
|
20
|
-
exports.GetResourceTypeListToJSONTyped = GetResourceTypeListToJSONTyped;
|
|
21
|
-
const ResourceTypeAvailability_1 = require("./ResourceTypeAvailability");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the GetResourceTypeList interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfGetResourceTypeList(value) {
|
|
26
|
-
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
function GetResourceTypeListFromJSON(json) {
|
|
31
|
-
return GetResourceTypeListFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
function GetResourceTypeListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'items': (json['items'].map(ResourceTypeAvailability_1.ResourceTypeAvailabilityFromJSON)),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function GetResourceTypeListToJSON(json) {
|
|
42
|
-
return GetResourceTypeListToJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function GetResourceTypeListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'items': (value['items'].map(ResourceTypeAvailability_1.ResourceTypeAvailabilityToJSON)),
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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 saved in-progress state of an H5P activity for the session's learner.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface H5pState
|
|
16
|
-
*/
|
|
17
|
-
export interface H5pState {
|
|
18
|
-
/**
|
|
19
|
-
* The value H5P returned from getCurrentState, or null when nothing is saved. Content types choose its shape: some return an object, others a list or a plain value.
|
|
20
|
-
* @type {object}
|
|
21
|
-
* @memberof H5pState
|
|
22
|
-
*/
|
|
23
|
-
state: object | null;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the H5pState interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfH5pState(value: object): value is H5pState;
|
|
29
|
-
export declare function H5pStateFromJSON(json: any): H5pState;
|
|
30
|
-
export declare function H5pStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): H5pState;
|
|
31
|
-
export declare function H5pStateToJSON(json: any): H5pState;
|
|
32
|
-
export declare function H5pStateToJSONTyped(value?: H5pState | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/H5pState.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
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.instanceOfH5pState = instanceOfH5pState;
|
|
17
|
-
exports.H5pStateFromJSON = H5pStateFromJSON;
|
|
18
|
-
exports.H5pStateFromJSONTyped = H5pStateFromJSONTyped;
|
|
19
|
-
exports.H5pStateToJSON = H5pStateToJSON;
|
|
20
|
-
exports.H5pStateToJSONTyped = H5pStateToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the H5pState interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfH5pState(value) {
|
|
25
|
-
if (!('state' in value) || value['state'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function H5pStateFromJSON(json) {
|
|
30
|
-
return H5pStateFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function H5pStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'state': json['state'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function H5pStateToJSON(json) {
|
|
41
|
-
return H5pStateToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function H5pStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'state': value['state'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
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 learner's progress on the H5P activity after a statement was recorded.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface H5pStatementResult
|
|
16
|
-
*/
|
|
17
|
-
export interface H5pStatementResult {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof H5pStatementResult
|
|
22
|
-
*/
|
|
23
|
-
completionStatus: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof H5pStatementResult
|
|
28
|
-
*/
|
|
29
|
-
gradeStatus: string;
|
|
30
|
-
/**
|
|
31
|
-
* Best score so far, as a percentage from 0 to 100.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof H5pStatementResult
|
|
34
|
-
*/
|
|
35
|
-
scoreRaw?: number | null;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the H5pStatementResult interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfH5pStatementResult(value: object): value is H5pStatementResult;
|
|
41
|
-
export declare function H5pStatementResultFromJSON(json: any): H5pStatementResult;
|
|
42
|
-
export declare function H5pStatementResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): H5pStatementResult;
|
|
43
|
-
export declare function H5pStatementResultToJSON(json: any): H5pStatementResult;
|
|
44
|
-
export declare function H5pStatementResultToJSONTyped(value?: H5pStatementResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,56 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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 emitted by H5P content in the learner's browser.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PostH5pStatement
|
|
16
|
-
*/
|
|
17
|
-
export interface PostH5pStatement {
|
|
18
|
-
/**
|
|
19
|
-
* Client-generated id that makes a retried request idempotent. It becomes the statement id.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PostH5pStatement
|
|
22
|
-
*/
|
|
23
|
-
eventId: string;
|
|
24
|
-
/**
|
|
25
|
-
* 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.
|
|
26
|
-
* @type {{ [key: string]: any; }}
|
|
27
|
-
* @memberof PostH5pStatement
|
|
28
|
-
*/
|
|
29
|
-
statement: {
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PostH5pStatement interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPostH5pStatement(value: object): value is PostH5pStatement;
|
|
37
|
-
export declare function PostH5pStatementFromJSON(json: any): PostH5pStatement;
|
|
38
|
-
export declare function PostH5pStatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostH5pStatement;
|
|
39
|
-
export declare function PostH5pStatementToJSON(json: any): PostH5pStatement;
|
|
40
|
-
export declare function PostH5pStatementToJSONTyped(value?: PostH5pStatement | null, ignoreDiscriminator?: boolean): any;
|