@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,54 +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.instanceOfPostH5pStatement = instanceOfPostH5pStatement;
|
|
17
|
-
exports.PostH5pStatementFromJSON = PostH5pStatementFromJSON;
|
|
18
|
-
exports.PostH5pStatementFromJSONTyped = PostH5pStatementFromJSONTyped;
|
|
19
|
-
exports.PostH5pStatementToJSON = PostH5pStatementToJSON;
|
|
20
|
-
exports.PostH5pStatementToJSONTyped = PostH5pStatementToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the PostH5pStatement interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfPostH5pStatement(value) {
|
|
25
|
-
if (!('eventId' in value) || value['eventId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('statement' in value) || value['statement'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function PostH5pStatementFromJSON(json) {
|
|
32
|
-
return PostH5pStatementFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function PostH5pStatementFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'eventId': json['event_id'],
|
|
40
|
-
'statement': json['statement'],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function PostH5pStatementToJSON(json) {
|
|
44
|
-
return PostH5pStatementToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function PostH5pStatementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'event_id': value['eventId'],
|
|
52
|
-
'statement': value['statement'],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -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,55 +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.instanceOfResourceTypeAvailability = instanceOfResourceTypeAvailability;
|
|
17
|
-
exports.ResourceTypeAvailabilityFromJSON = ResourceTypeAvailabilityFromJSON;
|
|
18
|
-
exports.ResourceTypeAvailabilityFromJSONTyped = ResourceTypeAvailabilityFromJSONTyped;
|
|
19
|
-
exports.ResourceTypeAvailabilityToJSON = ResourceTypeAvailabilityToJSON;
|
|
20
|
-
exports.ResourceTypeAvailabilityToJSONTyped = ResourceTypeAvailabilityToJSONTyped;
|
|
21
|
-
const ResourceType_1 = require("./ResourceType");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ResourceTypeAvailability interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfResourceTypeAvailability(value) {
|
|
26
|
-
if (!('resourceType' in value) || value['resourceType'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('available' in value) || value['available'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
function ResourceTypeAvailabilityFromJSON(json) {
|
|
33
|
-
return ResourceTypeAvailabilityFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
function ResourceTypeAvailabilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (json == null) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'resourceType': (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
|
|
41
|
-
'available': json['available'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function ResourceTypeAvailabilityToJSON(json) {
|
|
45
|
-
return ResourceTypeAvailabilityToJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function ResourceTypeAvailabilityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
|
|
53
|
-
'available': value['available'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GetResourceTypeList
|
|
3
|
-
|
|
4
|
-
Every kind of resource the Content Library knows, in display order.
|
|
5
|
-
|
|
6
|
-
## Properties
|
|
7
|
-
|
|
8
|
-
Name | Type
|
|
9
|
-
------------ | -------------
|
|
10
|
-
`items` | [Array<ResourceTypeAvailability>](ResourceTypeAvailability.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { GetResourceTypeList } from '@easyedu/js-lsm-api'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"items": null,
|
|
20
|
-
} satisfies GetResourceTypeList
|
|
21
|
-
|
|
22
|
-
console.log(example)
|
|
23
|
-
|
|
24
|
-
// Convert the instance to a JSON string
|
|
25
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
-
console.log(exampleJSON)
|
|
27
|
-
|
|
28
|
-
// Parse the JSON string back to an object
|
|
29
|
-
const exampleParsed = JSON.parse(exampleJSON) as GetResourceTypeList
|
|
30
|
-
console.log(exampleParsed)
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
-
|
|
35
|
-
|
package/docs/H5pState.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# H5pState
|
|
3
|
-
|
|
4
|
-
The saved in-progress state of an H5P activity for the session\'s learner.
|
|
5
|
-
|
|
6
|
-
## Properties
|
|
7
|
-
|
|
8
|
-
Name | Type
|
|
9
|
-
------------ | -------------
|
|
10
|
-
`state` | object
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { H5pState } from '@easyedu/js-lsm-api'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"state": null,
|
|
20
|
-
} satisfies H5pState
|
|
21
|
-
|
|
22
|
-
console.log(example)
|
|
23
|
-
|
|
24
|
-
// Convert the instance to a JSON string
|
|
25
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
-
console.log(exampleJSON)
|
|
27
|
-
|
|
28
|
-
// Parse the JSON string back to an object
|
|
29
|
-
const exampleParsed = JSON.parse(exampleJSON) as H5pState
|
|
30
|
-
console.log(exampleParsed)
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
-
|
|
35
|
-
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# H5pStatementResult
|
|
3
|
-
|
|
4
|
-
The learner\'s progress on the H5P activity after a statement was recorded.
|
|
5
|
-
|
|
6
|
-
## Properties
|
|
7
|
-
|
|
8
|
-
Name | Type
|
|
9
|
-
------------ | -------------
|
|
10
|
-
`completionStatus` | string
|
|
11
|
-
`gradeStatus` | string
|
|
12
|
-
`scoreRaw` | number
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import type { H5pStatementResult } from '@easyedu/js-lsm-api'
|
|
18
|
-
|
|
19
|
-
// TODO: Update the object below with actual values
|
|
20
|
-
const example = {
|
|
21
|
-
"completionStatus": null,
|
|
22
|
-
"gradeStatus": null,
|
|
23
|
-
"scoreRaw": null,
|
|
24
|
-
} satisfies H5pStatementResult
|
|
25
|
-
|
|
26
|
-
console.log(example)
|
|
27
|
-
|
|
28
|
-
// Convert the instance to a JSON string
|
|
29
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
30
|
-
console.log(exampleJSON)
|
|
31
|
-
|
|
32
|
-
// Parse the JSON string back to an object
|
|
33
|
-
const exampleParsed = JSON.parse(exampleJSON) as H5pStatementResult
|
|
34
|
-
console.log(exampleParsed)
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
38
|
-
|
|
39
|
-
|
package/docs/PostH5pStatement.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PostH5pStatement
|
|
3
|
-
|
|
4
|
-
An xAPI statement emitted by H5P content in the learner\'s browser.
|
|
5
|
-
|
|
6
|
-
## Properties
|
|
7
|
-
|
|
8
|
-
Name | Type
|
|
9
|
-
------------ | -------------
|
|
10
|
-
`eventId` | string
|
|
11
|
-
`statement` | { [key: string]: any; }
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { PostH5pStatement } from '@easyedu/js-lsm-api'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"eventId": null,
|
|
21
|
-
"statement": null,
|
|
22
|
-
} satisfies PostH5pStatement
|
|
23
|
-
|
|
24
|
-
console.log(example)
|
|
25
|
-
|
|
26
|
-
// Convert the instance to a JSON string
|
|
27
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
28
|
-
console.log(exampleJSON)
|
|
29
|
-
|
|
30
|
-
// Parse the JSON string back to an object
|
|
31
|
-
const exampleParsed = JSON.parse(exampleJSON) as PostH5pStatement
|
|
32
|
-
console.log(exampleParsed)
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
36
|
-
|
|
37
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ResourceTypeAvailability
|
|
3
|
-
|
|
4
|
-
One kind of resource and whether it can be used on this platform.
|
|
5
|
-
|
|
6
|
-
## Properties
|
|
7
|
-
|
|
8
|
-
Name | Type
|
|
9
|
-
------------ | -------------
|
|
10
|
-
`resourceType` | [ResourceType](ResourceType.md)
|
|
11
|
-
`available` | boolean
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { ResourceTypeAvailability } from '@easyedu/js-lsm-api'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"resourceType": null,
|
|
21
|
-
"available": null,
|
|
22
|
-
} satisfies ResourceTypeAvailability
|
|
23
|
-
|
|
24
|
-
console.log(example)
|
|
25
|
-
|
|
26
|
-
// Convert the instance to a JSON string
|
|
27
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
28
|
-
console.log(exampleJSON)
|
|
29
|
-
|
|
30
|
-
// Parse the JSON string back to an object
|
|
31
|
-
const exampleParsed = JSON.parse(exampleJSON) as ResourceTypeAvailability
|
|
32
|
-
console.log(exampleParsed)
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
36
|
-
|
|
37
|
-
|
|
@@ -1,74 +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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { ResourceTypeAvailability } from './ResourceTypeAvailability';
|
|
17
|
-
import {
|
|
18
|
-
ResourceTypeAvailabilityFromJSON,
|
|
19
|
-
ResourceTypeAvailabilityFromJSONTyped,
|
|
20
|
-
ResourceTypeAvailabilityToJSON,
|
|
21
|
-
ResourceTypeAvailabilityToJSONTyped,
|
|
22
|
-
} from './ResourceTypeAvailability';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Every kind of resource the Content Library knows, in display order.
|
|
26
|
-
* @export
|
|
27
|
-
* @interface GetResourceTypeList
|
|
28
|
-
*/
|
|
29
|
-
export interface GetResourceTypeList {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<ResourceTypeAvailability>}
|
|
33
|
-
* @memberof GetResourceTypeList
|
|
34
|
-
*/
|
|
35
|
-
items: Array<ResourceTypeAvailability>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the GetResourceTypeList interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfGetResourceTypeList(value: object): value is GetResourceTypeList {
|
|
42
|
-
if (!('items' in value) || value['items'] === undefined) return false;
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function GetResourceTypeListFromJSON(json: any): GetResourceTypeList {
|
|
47
|
-
return GetResourceTypeListFromJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function GetResourceTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceTypeList {
|
|
51
|
-
if (json == null) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
|
|
56
|
-
'items': ((json['items'] as Array<any>).map(ResourceTypeAvailabilityFromJSON)),
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function GetResourceTypeListToJSON(json: any): GetResourceTypeList {
|
|
61
|
-
return GetResourceTypeListToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function GetResourceTypeListToJSONTyped(value?: GetResourceTypeList | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'items': ((value['items'] as Array<any>).map(ResourceTypeAvailabilityToJSON)),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
package/src/models/H5pState.ts
DELETED
|
@@ -1,66 +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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* The saved in-progress state of an H5P activity for the session's learner.
|
|
18
|
-
* @export
|
|
19
|
-
* @interface H5pState
|
|
20
|
-
*/
|
|
21
|
-
export interface H5pState {
|
|
22
|
-
/**
|
|
23
|
-
* 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.
|
|
24
|
-
* @type {object}
|
|
25
|
-
* @memberof H5pState
|
|
26
|
-
*/
|
|
27
|
-
state: object | null;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the H5pState interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfH5pState(value: object): value is H5pState {
|
|
34
|
-
if (!('state' in value) || value['state'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function H5pStateFromJSON(json: any): H5pState {
|
|
39
|
-
return H5pStateFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function H5pStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): H5pState {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'state': json['state'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function H5pStateToJSON(json: any): H5pState {
|
|
53
|
-
return H5pStateToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function H5pStateToJSONTyped(value?: H5pState | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'state': value['state'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,83 +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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* The learner's progress on the H5P activity after a statement was recorded.
|
|
18
|
-
* @export
|
|
19
|
-
* @interface H5pStatementResult
|
|
20
|
-
*/
|
|
21
|
-
export interface H5pStatementResult {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof H5pStatementResult
|
|
26
|
-
*/
|
|
27
|
-
completionStatus: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof H5pStatementResult
|
|
32
|
-
*/
|
|
33
|
-
gradeStatus: string;
|
|
34
|
-
/**
|
|
35
|
-
* Best score so far, as a percentage from 0 to 100.
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof H5pStatementResult
|
|
38
|
-
*/
|
|
39
|
-
scoreRaw?: number | null;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the H5pStatementResult interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfH5pStatementResult(value: object): value is H5pStatementResult {
|
|
46
|
-
if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
|
|
47
|
-
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function H5pStatementResultFromJSON(json: any): H5pStatementResult {
|
|
52
|
-
return H5pStatementResultFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function H5pStatementResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): H5pStatementResult {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'completionStatus': json['completion_status'],
|
|
62
|
-
'gradeStatus': json['grade_status'],
|
|
63
|
-
'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function H5pStatementResultToJSON(json: any): H5pStatementResult {
|
|
68
|
-
return H5pStatementResultToJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function H5pStatementResultToJSONTyped(value?: H5pStatementResult | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
-
if (value == null) {
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return {
|
|
77
|
-
|
|
78
|
-
'completion_status': value['completionStatus'],
|
|
79
|
-
'grade_status': value['gradeStatus'],
|
|
80
|
-
'score_raw': value['scoreRaw'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
@@ -1,75 +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
|
-
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
|
-
|