@easyedu/js-lsm-api 1.145.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.
Files changed (68) hide show
  1. package/.openapi-generator/FILES +2 -10
  2. package/README.md +5 -11
  3. package/dist/apis/ContentLibraryApi.d.ts +0 -15
  4. package/dist/apis/ContentLibraryApi.js +0 -38
  5. package/dist/apis/LRSApi.d.ts +28 -0
  6. package/dist/apis/LRSApi.js +76 -0
  7. package/dist/apis/PlayerApi.d.ts +0 -52
  8. package/dist/apis/PlayerApi.js +0 -131
  9. package/dist/esm/apis/ContentLibraryApi.d.ts +0 -15
  10. package/dist/esm/apis/ContentLibraryApi.js +0 -38
  11. package/dist/esm/apis/LRSApi.d.ts +28 -0
  12. package/dist/esm/apis/LRSApi.js +76 -0
  13. package/dist/esm/apis/PlayerApi.d.ts +0 -52
  14. package/dist/esm/apis/PlayerApi.js +0 -131
  15. package/dist/esm/models/LrsRecordingSettings.d.ts +50 -0
  16. package/dist/esm/models/LrsRecordingSettings.js +55 -0
  17. package/dist/esm/models/ResourceType.d.ts +0 -1
  18. package/dist/esm/models/ResourceType.js +1 -2
  19. package/dist/esm/models/index.d.ts +1 -5
  20. package/dist/esm/models/index.js +1 -5
  21. package/dist/models/LrsRecordingSettings.d.ts +50 -0
  22. package/dist/models/LrsRecordingSettings.js +62 -0
  23. package/dist/models/ResourceType.d.ts +0 -1
  24. package/dist/models/ResourceType.js +1 -2
  25. package/dist/models/index.d.ts +1 -5
  26. package/dist/models/index.js +1 -5
  27. package/docs/ContentLibraryApi.md +3 -64
  28. package/docs/LRSApi.md +130 -4
  29. package/docs/LrsRecordingSettings.md +41 -0
  30. package/docs/PlayerApi.md +1 -213
  31. package/package.json +1 -1
  32. package/publish.log +2 -2
  33. package/src/apis/ContentLibraryApi.ts +0 -44
  34. package/src/apis/LRSApi.ts +93 -0
  35. package/src/apis/PlayerApi.ts +0 -185
  36. package/src/models/LrsRecordingSettings.ts +93 -0
  37. package/src/models/ResourceType.ts +1 -2
  38. package/src/models/index.ts +1 -5
  39. package/dist/esm/models/GetResourceTypeList.d.ts +0 -33
  40. package/dist/esm/models/GetResourceTypeList.js +0 -44
  41. package/dist/esm/models/H5pState.d.ts +0 -32
  42. package/dist/esm/models/H5pState.js +0 -43
  43. package/dist/esm/models/H5pStatementResult.d.ts +0 -44
  44. package/dist/esm/models/H5pStatementResult.js +0 -49
  45. package/dist/esm/models/PostH5pStatement.d.ts +0 -40
  46. package/dist/esm/models/PostH5pStatement.js +0 -47
  47. package/dist/esm/models/ResourceTypeAvailability.d.ts +0 -39
  48. package/dist/esm/models/ResourceTypeAvailability.js +0 -48
  49. package/dist/models/GetResourceTypeList.d.ts +0 -33
  50. package/dist/models/GetResourceTypeList.js +0 -51
  51. package/dist/models/H5pState.d.ts +0 -32
  52. package/dist/models/H5pState.js +0 -50
  53. package/dist/models/H5pStatementResult.d.ts +0 -44
  54. package/dist/models/H5pStatementResult.js +0 -56
  55. package/dist/models/PostH5pStatement.d.ts +0 -40
  56. package/dist/models/PostH5pStatement.js +0 -54
  57. package/dist/models/ResourceTypeAvailability.d.ts +0 -39
  58. package/dist/models/ResourceTypeAvailability.js +0 -55
  59. package/docs/GetResourceTypeList.md +0 -35
  60. package/docs/H5pState.md +0 -35
  61. package/docs/H5pStatementResult.md +0 -39
  62. package/docs/PostH5pStatement.md +0 -37
  63. package/docs/ResourceTypeAvailability.md +0 -37
  64. package/src/models/GetResourceTypeList.ts +0 -74
  65. package/src/models/H5pState.ts +0 -66
  66. package/src/models/H5pStatementResult.ts +0 -83
  67. package/src/models/PostH5pStatement.ts +0 -75
  68. package/src/models/ResourceTypeAvailability.ts +0 -85
@@ -17,7 +17,6 @@ import { type GetContentLibraryVersion } from '../models/GetContentLibraryVersio
17
17
  import { type GetResource } from '../models/GetResource';
18
18
  import { type GetResourceList } from '../models/GetResourceList';
19
19
  import { type GetResourceSession } from '../models/GetResourceSession';
20
- import { type GetResourceTypeList } from '../models/GetResourceTypeList';
21
20
  import { type GetResourceUsage } from '../models/GetResourceUsage';
22
21
  import { type GetResourceVersionUpload } from '../models/GetResourceVersionUpload';
23
22
  import { type PostContentLibraryTag } from '../models/PostContentLibraryTag';
@@ -246,20 +245,6 @@ export declare class ContentLibraryApi extends runtime.BaseAPI {
246
245
  * List reusable resources
247
246
  */
248
247
  getResourceList(requestParameters?: GetResourceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceList>;
249
- /**
250
- * Creates request options for getResourceTypeList without sending the request
251
- */
252
- getResourceTypeListRequestOpts(): Promise<runtime.RequestOpts>;
253
- /**
254
- * Clients use this to decide which types to offer when creating or filtering resources. A type can be switched off for the whole platform (H5P is, until it is enabled), in which case creating or uploading it is refused with 403.
255
- * List the resource types and whether each is available on this platform
256
- */
257
- getResourceTypeListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetResourceTypeList>>;
258
- /**
259
- * Clients use this to decide which types to offer when creating or filtering resources. A type can be switched off for the whole platform (H5P is, until it is enabled), in which case creating or uploading it is refused with 403.
260
- * List the resource types and whether each is available on this platform
261
- */
262
- getResourceTypeList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceTypeList>;
263
248
  /**
264
249
  * Creates request options for getResourceUsage without sending the request
265
250
  */
@@ -28,7 +28,6 @@ import { GetContentLibraryVersionFromJSON, } from '../models/GetContentLibraryVe
28
28
  import { GetResourceFromJSON, } from '../models/GetResource';
29
29
  import { GetResourceListFromJSON, } from '../models/GetResourceList';
30
30
  import { GetResourceSessionFromJSON, } from '../models/GetResourceSession';
31
- import { GetResourceTypeListFromJSON, } from '../models/GetResourceTypeList';
32
31
  import { GetResourceUsageFromJSON, } from '../models/GetResourceUsage';
33
32
  import { GetResourceVersionUploadFromJSON, } from '../models/GetResourceVersionUpload';
34
33
  import { PostContentLibraryTagToJSON, } from '../models/PostContentLibraryTag';
@@ -413,43 +412,6 @@ export class ContentLibraryApi extends runtime.BaseAPI {
413
412
  return yield response.value();
414
413
  });
415
414
  }
416
- /**
417
- * Creates request options for getResourceTypeList without sending the request
418
- */
419
- getResourceTypeListRequestOpts() {
420
- return __awaiter(this, void 0, void 0, function* () {
421
- const queryParameters = {};
422
- const headerParameters = {};
423
- let urlPath = `/content-library/resource-types`;
424
- return {
425
- path: urlPath,
426
- method: 'GET',
427
- headers: headerParameters,
428
- query: queryParameters,
429
- };
430
- });
431
- }
432
- /**
433
- * Clients use this to decide which types to offer when creating or filtering resources. A type can be switched off for the whole platform (H5P is, until it is enabled), in which case creating or uploading it is refused with 403.
434
- * List the resource types and whether each is available on this platform
435
- */
436
- getResourceTypeListRaw(initOverrides) {
437
- return __awaiter(this, void 0, void 0, function* () {
438
- const requestOptions = yield this.getResourceTypeListRequestOpts();
439
- const response = yield this.request(requestOptions, initOverrides);
440
- return new runtime.JSONApiResponse(response, (jsonValue) => GetResourceTypeListFromJSON(jsonValue));
441
- });
442
- }
443
- /**
444
- * Clients use this to decide which types to offer when creating or filtering resources. A type can be switched off for the whole platform (H5P is, until it is enabled), in which case creating or uploading it is refused with 403.
445
- * List the resource types and whether each is available on this platform
446
- */
447
- getResourceTypeList(initOverrides) {
448
- return __awaiter(this, void 0, void 0, function* () {
449
- const response = yield this.getResourceTypeListRaw(initOverrides);
450
- return yield response.value();
451
- });
452
- }
453
415
  /**
454
416
  * Creates request options for getResourceUsage without sending the request
455
417
  */
@@ -14,6 +14,7 @@ import { type DeleteLrsUserRecordsResponse } from '../models/DeleteLrsUserRecord
14
14
  import { type GetLrsCredentials } from '../models/GetLrsCredentials';
15
15
  import { type GetLrsStatementList } from '../models/GetLrsStatementList';
16
16
  import { type LrsCredential } from '../models/LrsCredential';
17
+ import { type LrsRecordingSettings } from '../models/LrsRecordingSettings';
17
18
  import { type PostLrsCredential } from '../models/PostLrsCredential';
18
19
  import { type PostLrsCredentialResponse } from '../models/PostLrsCredentialResponse';
19
20
  import { type PutLrsCredential } from '../models/PutLrsCredential';
@@ -53,6 +54,9 @@ export interface PutLrsCredentialRequest {
53
54
  credentialId: string;
54
55
  putLrsCredential: PutLrsCredential;
55
56
  }
57
+ export interface PutLrsRecordingSettingsRequest {
58
+ lrsRecordingSettings: LrsRecordingSettings;
59
+ }
56
60
  /**
57
61
  *
58
62
  */
@@ -93,6 +97,18 @@ export declare class LRSApi extends runtime.BaseAPI {
93
97
  * List the selected portal\'s LRS credentials, the scopes they can be granted, and the xAPI endpoint
94
98
  */
95
99
  getLrsCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLrsCredentials>;
100
+ /**
101
+ * Creates request options for getLrsRecordingSettings without sending the request
102
+ */
103
+ getLrsRecordingSettingsRequestOpts(): Promise<runtime.RequestOpts>;
104
+ /**
105
+ * Read recording preferences for future Edaxu outcomes in the selected portal
106
+ */
107
+ getLrsRecordingSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LrsRecordingSettings>>;
108
+ /**
109
+ * Read recording preferences for future Edaxu outcomes in the selected portal
110
+ */
111
+ getLrsRecordingSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LrsRecordingSettings>;
96
112
  /**
97
113
  * Creates request options for getLrsStatements without sending the request
98
114
  */
@@ -141,6 +157,18 @@ export declare class LRSApi extends runtime.BaseAPI {
141
157
  * Rename an LRS credential or replace its scopes
142
158
  */
143
159
  putLrsCredential(requestParameters: PutLrsCredentialRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LrsCredential>;
160
+ /**
161
+ * Creates request options for putLrsRecordingSettings without sending the request
162
+ */
163
+ putLrsRecordingSettingsRequestOpts(requestParameters: PutLrsRecordingSettingsRequest): Promise<runtime.RequestOpts>;
164
+ /**
165
+ * Replace recording preferences for future Edaxu outcomes in the selected portal
166
+ */
167
+ putLrsRecordingSettingsRaw(requestParameters: PutLrsRecordingSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LrsRecordingSettings>>;
168
+ /**
169
+ * Replace recording preferences for future Edaxu outcomes in the selected portal
170
+ */
171
+ putLrsRecordingSettings(requestParameters: PutLrsRecordingSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LrsRecordingSettings>;
144
172
  }
145
173
  /**
146
174
  * @export
@@ -25,6 +25,7 @@ import { DeleteLrsUserRecordsResponseFromJSON, } from '../models/DeleteLrsUserRe
25
25
  import { GetLrsCredentialsFromJSON, } from '../models/GetLrsCredentials';
26
26
  import { GetLrsStatementListFromJSON, } from '../models/GetLrsStatementList';
27
27
  import { LrsCredentialFromJSON, } from '../models/LrsCredential';
28
+ import { LrsRecordingSettingsFromJSON, LrsRecordingSettingsToJSON, } from '../models/LrsRecordingSettings';
28
29
  import { PostLrsCredentialToJSON, } from '../models/PostLrsCredential';
29
30
  import { PostLrsCredentialResponseFromJSON, } from '../models/PostLrsCredentialResponse';
30
31
  import { PutLrsCredentialToJSON, } from '../models/PutLrsCredential';
@@ -144,6 +145,41 @@ export class LRSApi extends runtime.BaseAPI {
144
145
  return yield response.value();
145
146
  });
146
147
  }
148
+ /**
149
+ * Creates request options for getLrsRecordingSettings without sending the request
150
+ */
151
+ getLrsRecordingSettingsRequestOpts() {
152
+ return __awaiter(this, void 0, void 0, function* () {
153
+ const queryParameters = {};
154
+ const headerParameters = {};
155
+ let urlPath = `/lrs/recording-settings`;
156
+ return {
157
+ path: urlPath,
158
+ method: 'GET',
159
+ headers: headerParameters,
160
+ query: queryParameters,
161
+ };
162
+ });
163
+ }
164
+ /**
165
+ * Read recording preferences for future Edaxu outcomes in the selected portal
166
+ */
167
+ getLrsRecordingSettingsRaw(initOverrides) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ const requestOptions = yield this.getLrsRecordingSettingsRequestOpts();
170
+ const response = yield this.request(requestOptions, initOverrides);
171
+ return new runtime.JSONApiResponse(response, (jsonValue) => LrsRecordingSettingsFromJSON(jsonValue));
172
+ });
173
+ }
174
+ /**
175
+ * Read recording preferences for future Edaxu outcomes in the selected portal
176
+ */
177
+ getLrsRecordingSettings(initOverrides) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ const response = yield this.getLrsRecordingSettingsRaw(initOverrides);
180
+ return yield response.value();
181
+ });
182
+ }
147
183
  /**
148
184
  * Creates request options for getLrsStatements without sending the request
149
185
  */
@@ -355,6 +391,46 @@ export class LRSApi extends runtime.BaseAPI {
355
391
  return yield response.value();
356
392
  });
357
393
  }
394
+ /**
395
+ * Creates request options for putLrsRecordingSettings without sending the request
396
+ */
397
+ putLrsRecordingSettingsRequestOpts(requestParameters) {
398
+ return __awaiter(this, void 0, void 0, function* () {
399
+ if (requestParameters['lrsRecordingSettings'] == null) {
400
+ throw new runtime.RequiredError('lrsRecordingSettings', 'Required parameter "lrsRecordingSettings" was null or undefined when calling putLrsRecordingSettings().');
401
+ }
402
+ const queryParameters = {};
403
+ const headerParameters = {};
404
+ headerParameters['Content-Type'] = 'application/json';
405
+ let urlPath = `/lrs/recording-settings`;
406
+ return {
407
+ path: urlPath,
408
+ method: 'PUT',
409
+ headers: headerParameters,
410
+ query: queryParameters,
411
+ body: LrsRecordingSettingsToJSON(requestParameters['lrsRecordingSettings']),
412
+ };
413
+ });
414
+ }
415
+ /**
416
+ * Replace recording preferences for future Edaxu outcomes in the selected portal
417
+ */
418
+ putLrsRecordingSettingsRaw(requestParameters, initOverrides) {
419
+ return __awaiter(this, void 0, void 0, function* () {
420
+ const requestOptions = yield this.putLrsRecordingSettingsRequestOpts(requestParameters);
421
+ const response = yield this.request(requestOptions, initOverrides);
422
+ return new runtime.JSONApiResponse(response, (jsonValue) => LrsRecordingSettingsFromJSON(jsonValue));
423
+ });
424
+ }
425
+ /**
426
+ * Replace recording preferences for future Edaxu outcomes in the selected portal
427
+ */
428
+ putLrsRecordingSettings(requestParameters, initOverrides) {
429
+ return __awaiter(this, void 0, void 0, function* () {
430
+ const response = yield this.putLrsRecordingSettingsRaw(requestParameters, initOverrides);
431
+ return yield response.value();
432
+ });
433
+ }
358
434
  }
359
435
  /**
360
436
  * @export
@@ -19,9 +19,6 @@ import { type GetResourceSessionDiagnostics } from '../models/GetResourceSession
19
19
  import { type GetResourceSessionList } from '../models/GetResourceSessionList';
20
20
  import { type GetResourceSessionScormApiLogs } from '../models/GetResourceSessionScormApiLogs';
21
21
  import { type GetResourceSessionScormData } from '../models/GetResourceSessionScormData';
22
- import { type H5pState } from '../models/H5pState';
23
- import { type H5pStatementResult } from '../models/H5pStatementResult';
24
- import { type PostH5pStatement } from '../models/PostH5pStatement';
25
22
  import { type PostResourceSessionActivityEvent } from '../models/PostResourceSessionActivityEvent';
26
23
  import { type PutResourceSessionOverride } from '../models/PutResourceSessionOverride';
27
24
  import { type ResourceSessionEnvironment } from '../models/ResourceSessionEnvironment';
@@ -66,9 +63,6 @@ export interface GetResourceSessionAssetRequest {
66
63
  export interface GetResourceSessionDiagnosticsRequest {
67
64
  sessionId: string;
68
65
  }
69
- export interface GetResourceSessionH5pStateRequest {
70
- sessionId: string;
71
- }
72
66
  export interface GetResourceSessionListRequest {
73
67
  userId?: string;
74
68
  resourceId?: string;
@@ -128,14 +122,6 @@ export interface PostResourceSessionCmi5LaunchRequest {
128
122
  export interface PostResourceSessionCompleteRequest {
129
123
  sessionId: string;
130
124
  }
131
- export interface PostResourceSessionH5pStatementRequest {
132
- sessionId: string;
133
- postH5pStatement: PostH5pStatement;
134
- }
135
- export interface PutResourceSessionH5pStateRequest {
136
- sessionId: string;
137
- h5pState: H5pState;
138
- }
139
125
  export interface PutResourceSessionOverrideRequest {
140
126
  sessionId: string;
141
127
  putResourceSessionOverride: PutResourceSessionOverride;
@@ -261,18 +247,6 @@ export declare class PlayerApi extends runtime.BaseAPI {
261
247
  * Get administrator diagnostics for a resource session
262
248
  */
263
249
  getResourceSessionDiagnostics(requestParameters: GetResourceSessionDiagnosticsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceSessionDiagnostics>;
264
- /**
265
- * Creates request options for getResourceSessionH5pState without sending the request
266
- */
267
- getResourceSessionH5pStateRequestOpts(requestParameters: GetResourceSessionH5pStateRequest): Promise<runtime.RequestOpts>;
268
- /**
269
- * Read the learner\'s saved H5P state for the session
270
- */
271
- getResourceSessionH5pStateRaw(requestParameters: GetResourceSessionH5pStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<H5pState>>;
272
- /**
273
- * Read the learner\'s saved H5P state for the session
274
- */
275
- getResourceSessionH5pState(requestParameters: GetResourceSessionH5pStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<H5pState>;
276
250
  /**
277
251
  * Creates request options for getResourceSessionList without sending the request
278
252
  */
@@ -383,32 +357,6 @@ export declare class PlayerApi extends runtime.BaseAPI {
383
357
  * Complete a non-SCORM resource session
384
358
  */
385
359
  postResourceSessionComplete(requestParameters: PostResourceSessionCompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetResourceSession>;
386
- /**
387
- * Creates request options for postResourceSessionH5pStatement without sending the request
388
- */
389
- postResourceSessionH5pStatementRequestOpts(requestParameters: PostResourceSessionH5pStatementRequest): Promise<runtime.RequestOpts>;
390
- /**
391
- * Stores the statement in the portal\'s Learning Record Store on behalf of the session\'s learner and updates the session\'s completion, grade, and score from it.
392
- * Record an xAPI statement emitted by the session\'s H5P content
393
- */
394
- postResourceSessionH5pStatementRaw(requestParameters: PostResourceSessionH5pStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<H5pStatementResult>>;
395
- /**
396
- * Stores the statement in the portal\'s Learning Record Store on behalf of the session\'s learner and updates the session\'s completion, grade, and score from it.
397
- * Record an xAPI statement emitted by the session\'s H5P content
398
- */
399
- postResourceSessionH5pStatement(requestParameters: PostResourceSessionH5pStatementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<H5pStatementResult>;
400
- /**
401
- * Creates request options for putResourceSessionH5pState without sending the request
402
- */
403
- putResourceSessionH5pStateRequestOpts(requestParameters: PutResourceSessionH5pStateRequest): Promise<runtime.RequestOpts>;
404
- /**
405
- * Save the learner\'s in-progress H5P state for the session
406
- */
407
- putResourceSessionH5pStateRaw(requestParameters: PutResourceSessionH5pStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
408
- /**
409
- * Save the learner\'s in-progress H5P state for the session
410
- */
411
- putResourceSessionH5pState(requestParameters: PutResourceSessionH5pStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
412
360
  /**
413
361
  * Creates request options for putResourceSessionOverride without sending the request
414
362
  */
@@ -30,9 +30,6 @@ import { GetResourceSessionDiagnosticsFromJSON, } from '../models/GetResourceSes
30
30
  import { GetResourceSessionListFromJSON, } from '../models/GetResourceSessionList';
31
31
  import { GetResourceSessionScormApiLogsFromJSON, } from '../models/GetResourceSessionScormApiLogs';
32
32
  import { GetResourceSessionScormDataFromJSON, } from '../models/GetResourceSessionScormData';
33
- import { H5pStateFromJSON, H5pStateToJSON, } from '../models/H5pState';
34
- import { H5pStatementResultFromJSON, } from '../models/H5pStatementResult';
35
- import { PostH5pStatementToJSON, } from '../models/PostH5pStatement';
36
33
  import { PostResourceSessionActivityEventToJSON, } from '../models/PostResourceSessionActivityEvent';
37
34
  import { PutResourceSessionOverrideToJSON, } from '../models/PutResourceSessionOverride';
38
35
  import { ScormGetValueResponseFromJSON, } from '../models/ScormGetValueResponse';
@@ -426,45 +423,6 @@ export class PlayerApi extends runtime.BaseAPI {
426
423
  return yield response.value();
427
424
  });
428
425
  }
429
- /**
430
- * Creates request options for getResourceSessionH5pState without sending the request
431
- */
432
- getResourceSessionH5pStateRequestOpts(requestParameters) {
433
- return __awaiter(this, void 0, void 0, function* () {
434
- if (requestParameters['sessionId'] == null) {
435
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getResourceSessionH5pState().');
436
- }
437
- const queryParameters = {};
438
- const headerParameters = {};
439
- let urlPath = `/resource/sessions/{sessionId}/h5p/state`;
440
- urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
441
- return {
442
- path: urlPath,
443
- method: 'GET',
444
- headers: headerParameters,
445
- query: queryParameters,
446
- };
447
- });
448
- }
449
- /**
450
- * Read the learner\'s saved H5P state for the session
451
- */
452
- getResourceSessionH5pStateRaw(requestParameters, initOverrides) {
453
- return __awaiter(this, void 0, void 0, function* () {
454
- const requestOptions = yield this.getResourceSessionH5pStateRequestOpts(requestParameters);
455
- const response = yield this.request(requestOptions, initOverrides);
456
- return new runtime.JSONApiResponse(response, (jsonValue) => H5pStateFromJSON(jsonValue));
457
- });
458
- }
459
- /**
460
- * Read the learner\'s saved H5P state for the session
461
- */
462
- getResourceSessionH5pState(requestParameters, initOverrides) {
463
- return __awaiter(this, void 0, void 0, function* () {
464
- const response = yield this.getResourceSessionH5pStateRaw(requestParameters, initOverrides);
465
- return yield response.value();
466
- });
467
- }
468
426
  /**
469
427
  * Creates request options for getResourceSessionList without sending the request
470
428
  */
@@ -924,95 +882,6 @@ export class PlayerApi extends runtime.BaseAPI {
924
882
  return yield response.value();
925
883
  });
926
884
  }
927
- /**
928
- * Creates request options for postResourceSessionH5pStatement without sending the request
929
- */
930
- postResourceSessionH5pStatementRequestOpts(requestParameters) {
931
- return __awaiter(this, void 0, void 0, function* () {
932
- if (requestParameters['sessionId'] == null) {
933
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling postResourceSessionH5pStatement().');
934
- }
935
- if (requestParameters['postH5pStatement'] == null) {
936
- throw new runtime.RequiredError('postH5pStatement', 'Required parameter "postH5pStatement" was null or undefined when calling postResourceSessionH5pStatement().');
937
- }
938
- const queryParameters = {};
939
- const headerParameters = {};
940
- headerParameters['Content-Type'] = 'application/json';
941
- let urlPath = `/resource/sessions/{sessionId}/h5p/statements`;
942
- urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
943
- return {
944
- path: urlPath,
945
- method: 'POST',
946
- headers: headerParameters,
947
- query: queryParameters,
948
- body: PostH5pStatementToJSON(requestParameters['postH5pStatement']),
949
- };
950
- });
951
- }
952
- /**
953
- * Stores the statement in the portal\'s Learning Record Store on behalf of the session\'s learner and updates the session\'s completion, grade, and score from it.
954
- * Record an xAPI statement emitted by the session\'s H5P content
955
- */
956
- postResourceSessionH5pStatementRaw(requestParameters, initOverrides) {
957
- return __awaiter(this, void 0, void 0, function* () {
958
- const requestOptions = yield this.postResourceSessionH5pStatementRequestOpts(requestParameters);
959
- const response = yield this.request(requestOptions, initOverrides);
960
- return new runtime.JSONApiResponse(response, (jsonValue) => H5pStatementResultFromJSON(jsonValue));
961
- });
962
- }
963
- /**
964
- * Stores the statement in the portal\'s Learning Record Store on behalf of the session\'s learner and updates the session\'s completion, grade, and score from it.
965
- * Record an xAPI statement emitted by the session\'s H5P content
966
- */
967
- postResourceSessionH5pStatement(requestParameters, initOverrides) {
968
- return __awaiter(this, void 0, void 0, function* () {
969
- const response = yield this.postResourceSessionH5pStatementRaw(requestParameters, initOverrides);
970
- return yield response.value();
971
- });
972
- }
973
- /**
974
- * Creates request options for putResourceSessionH5pState without sending the request
975
- */
976
- putResourceSessionH5pStateRequestOpts(requestParameters) {
977
- return __awaiter(this, void 0, void 0, function* () {
978
- if (requestParameters['sessionId'] == null) {
979
- throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling putResourceSessionH5pState().');
980
- }
981
- if (requestParameters['h5pState'] == null) {
982
- throw new runtime.RequiredError('h5pState', 'Required parameter "h5pState" was null or undefined when calling putResourceSessionH5pState().');
983
- }
984
- const queryParameters = {};
985
- const headerParameters = {};
986
- headerParameters['Content-Type'] = 'application/json';
987
- let urlPath = `/resource/sessions/{sessionId}/h5p/state`;
988
- urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
989
- return {
990
- path: urlPath,
991
- method: 'PUT',
992
- headers: headerParameters,
993
- query: queryParameters,
994
- body: H5pStateToJSON(requestParameters['h5pState']),
995
- };
996
- });
997
- }
998
- /**
999
- * Save the learner\'s in-progress H5P state for the session
1000
- */
1001
- putResourceSessionH5pStateRaw(requestParameters, initOverrides) {
1002
- return __awaiter(this, void 0, void 0, function* () {
1003
- const requestOptions = yield this.putResourceSessionH5pStateRequestOpts(requestParameters);
1004
- const response = yield this.request(requestOptions, initOverrides);
1005
- return new runtime.VoidApiResponse(response);
1006
- });
1007
- }
1008
- /**
1009
- * Save the learner\'s in-progress H5P state for the session
1010
- */
1011
- putResourceSessionH5pState(requestParameters, initOverrides) {
1012
- return __awaiter(this, void 0, void 0, function* () {
1013
- yield this.putResourceSessionH5pStateRaw(requestParameters, initOverrides);
1014
- });
1015
- }
1016
885
  /**
1017
886
  * Creates request options for putResourceSessionOverride without sending the request
1018
887
  */
@@ -0,0 +1,50 @@
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
+ * Additional Edaxu events recorded from the time each category is enabled. All categories default to off.
14
+ * @export
15
+ * @interface LrsRecordingSettings
16
+ */
17
+ export interface LrsRecordingSettings {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof LrsRecordingSettings
22
+ */
23
+ assessmentResults: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof LrsRecordingSettings
28
+ */
29
+ contentActivity: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof LrsRecordingSettings
34
+ */
35
+ courseCompletions: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof LrsRecordingSettings
40
+ */
41
+ certificateIssuance: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the LrsRecordingSettings interface.
45
+ */
46
+ export declare function instanceOfLrsRecordingSettings(value: object): value is LrsRecordingSettings;
47
+ export declare function LrsRecordingSettingsFromJSON(json: any): LrsRecordingSettings;
48
+ export declare function LrsRecordingSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsRecordingSettings;
49
+ export declare function LrsRecordingSettingsToJSON(json: any): LrsRecordingSettings;
50
+ export declare function LrsRecordingSettingsToJSONTyped(value?: LrsRecordingSettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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 LrsRecordingSettings interface.
16
+ */
17
+ export function instanceOfLrsRecordingSettings(value) {
18
+ if (!('assessmentResults' in value) || value['assessmentResults'] === undefined)
19
+ return false;
20
+ if (!('contentActivity' in value) || value['contentActivity'] === undefined)
21
+ return false;
22
+ if (!('courseCompletions' in value) || value['courseCompletions'] === undefined)
23
+ return false;
24
+ if (!('certificateIssuance' in value) || value['certificateIssuance'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function LrsRecordingSettingsFromJSON(json) {
29
+ return LrsRecordingSettingsFromJSONTyped(json, false);
30
+ }
31
+ export function LrsRecordingSettingsFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'assessmentResults': json['assessment_results'],
37
+ 'contentActivity': json['content_activity'],
38
+ 'courseCompletions': json['course_completions'],
39
+ 'certificateIssuance': json['certificate_issuance'],
40
+ };
41
+ }
42
+ export function LrsRecordingSettingsToJSON(json) {
43
+ return LrsRecordingSettingsToJSONTyped(json, false);
44
+ }
45
+ export function LrsRecordingSettingsToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'assessment_results': value['assessmentResults'],
51
+ 'content_activity': value['contentActivity'],
52
+ 'course_completions': value['courseCompletions'],
53
+ 'certificate_issuance': value['certificateIssuance'],
54
+ };
55
+ }
@@ -24,7 +24,6 @@ export declare const ResourceType: {
24
24
  readonly Link: "link";
25
25
  readonly RichText: "rich_text";
26
26
  readonly Cmi5: "cmi5";
27
- readonly H5p: "h5p";
28
27
  };
29
28
  export type ResourceType = typeof ResourceType[keyof typeof ResourceType];
30
29
  export declare function instanceOfResourceType(value: any): boolean;
@@ -25,8 +25,7 @@ export const ResourceType = {
25
25
  File: 'file',
26
26
  Link: 'link',
27
27
  RichText: 'rich_text',
28
- Cmi5: 'cmi5',
29
- H5p: 'h5p'
28
+ Cmi5: 'cmi5'
30
29
  };
31
30
  export function instanceOfResourceType(value) {
32
31
  for (const key in ResourceType) {
@@ -159,7 +159,6 @@ export * from './GetResourceSessionList';
159
159
  export * from './GetResourceSessionScormApiLogs';
160
160
  export * from './GetResourceSessionScormData';
161
161
  export * from './GetResourceSessionScormDataActivity';
162
- export * from './GetResourceTypeList';
163
162
  export * from './GetResourceUsage';
164
163
  export * from './GetResourceUsageCoursesInner';
165
164
  export * from './GetResourceVersionUpload';
@@ -188,8 +187,6 @@ export * from './GetZapierMe';
188
187
  export * from './GetZapierSetup';
189
188
  export * from './GetZapierShopifyCourseMappings';
190
189
  export * from './GetZapierUsers';
191
- export * from './H5pState';
192
- export * from './H5pStatementResult';
193
190
  export * from './HostedScormAccessPolicy';
194
191
  export * from './HostedScormOutlineEntry';
195
192
  export * from './HostedScormRollupPolicy';
@@ -217,6 +214,7 @@ export * from './LoginResAuthData';
217
214
  export * from './LoginResUserData';
218
215
  export * from './LoginResUserDataSelectedPortal';
219
216
  export * from './LrsCredential';
217
+ export * from './LrsRecordingSettings';
220
218
  export * from './LrsScope';
221
219
  export * from './LrsStatement';
222
220
  export * from './Paginated';
@@ -272,7 +270,6 @@ export * from './PostEmailAssetComplete';
272
270
  export * from './PostEmailAssetUpload';
273
271
  export * from './PostEmailTemplatePreview';
274
272
  export * from './PostEmailTemplateTestSend';
275
- export * from './PostH5pStatement';
276
273
  export * from './PostLearnerExperiencePreview';
277
274
  export * from './PostLibraryQuiz';
278
275
  export * from './PostLibraryQuizSession';
@@ -390,7 +387,6 @@ export * from './ReportSort';
390
387
  export * from './ResourceSessionEnvironment';
391
388
  export * from './ResourceSessionScormApiLogItem';
392
389
  export * from './ResourceType';
393
- export * from './ResourceTypeAvailability';
394
390
  export * from './RichTextAsset';
395
391
  export * from './RichTextDocument';
396
392
  export * from './RichTextInput';