@easyedu/js-lsm-api 1.136.0 → 1.138.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 +2 -0
- package/README.md +7 -3
- package/dist/apis/CourseApi.d.ts +21 -0
- package/dist/apis/CourseApi.js +55 -0
- package/dist/apis/DispatchApi.d.ts +21 -2
- package/dist/apis/DispatchApi.js +45 -2
- package/dist/apis/RichTextApi.d.ts +3 -0
- package/dist/apis/RichTextApi.js +5 -0
- package/dist/apis/SystemApi.d.ts +17 -0
- package/dist/apis/SystemApi.js +45 -0
- package/dist/esm/apis/CourseApi.d.ts +21 -0
- package/dist/esm/apis/CourseApi.js +55 -0
- package/dist/esm/apis/DispatchApi.d.ts +21 -2
- package/dist/esm/apis/DispatchApi.js +45 -2
- package/dist/esm/apis/RichTextApi.d.ts +3 -0
- package/dist/esm/apis/RichTextApi.js +5 -0
- package/dist/esm/apis/SystemApi.d.ts +17 -0
- package/dist/esm/apis/SystemApi.js +45 -0
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +6 -0
- package/dist/esm/models/PostCourseExport.d.ts +1 -1
- package/dist/esm/models/PutSystemPortal.d.ts +32 -0
- package/dist/esm/models/PutSystemPortal.js +41 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/GetPortal.d.ts +12 -0
- package/dist/models/GetPortal.js +6 -0
- package/dist/models/PostCourseExport.d.ts +1 -1
- package/dist/models/PutSystemPortal.d.ts +32 -0
- package/dist/models/PutSystemPortal.js +48 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/CourseApi.md +79 -0
- package/docs/DispatchApi.md +77 -3
- package/docs/GetPortal.md +4 -0
- package/docs/PutSystemPortal.md +35 -0
- package/docs/RichTextApi.md +6 -1
- package/docs/SystemApi.md +71 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +85 -0
- package/src/apis/DispatchApi.ts +55 -2
- package/src/apis/RichTextApi.ts +7 -0
- package/src/apis/SystemApi.ts +65 -0
- package/src/models/GetPortal.ts +17 -0
- package/src/models/PostCourseExport.ts +1 -1
- package/src/models/PutSystemPortal.ts +65 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -372,6 +372,7 @@ docs/PutResourceVersion.md
|
|
|
372
372
|
docs/PutRole.md
|
|
373
373
|
docs/PutRolePermissions.md
|
|
374
374
|
docs/PutSupportTicket.md
|
|
375
|
+
docs/PutSystemPortal.md
|
|
375
376
|
docs/PutUser.md
|
|
376
377
|
docs/PutZapierSetup.md
|
|
377
378
|
docs/QuestionApi.md
|
|
@@ -815,6 +816,7 @@ src/models/PutResourceVersion.ts
|
|
|
815
816
|
src/models/PutRole.ts
|
|
816
817
|
src/models/PutRolePermissions.ts
|
|
817
818
|
src/models/PutSupportTicket.ts
|
|
819
|
+
src/models/PutSystemPortal.ts
|
|
818
820
|
src/models/PutUser.ts
|
|
819
821
|
src/models/PutZapierSetup.ts
|
|
820
822
|
src/models/QuestionImportCommitResult.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.138.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -224,6 +224,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
224
224
|
*CourseApi* | [**putCourseVersionOutlineEntryMove**](docs/CourseApi.md#putcourseversionoutlineentrymove) | **PUT** /courses/{courseId}/draft/outline/move | Move a section or item to a new parent and sibling position
|
|
225
225
|
*CourseApi* | [**putCourseVersionSection**](docs/CourseApi.md#putcourseversionsection) | **PUT** /courses/{courseId}/draft/sections/{sectionId} | Update a draft section
|
|
226
226
|
*CourseApi* | [**putHostedScormExportAccess**](docs/CourseApi.md#puthostedscormexportaccess) | **PUT** /courses/{courseId}/exports/{exportId}/access | Update mutable access controls for a hosted SCORM export
|
|
227
|
+
*CourseApi* | [**putHostedScormExportRegistrationStatus**](docs/CourseApi.md#puthostedscormexportregistrationstatus) | **PUT** /courses/{courseId}/exports/{exportId}/registrations/{registrationId}/status | Revoke or restore one learner\'s access to a hosted SCORM export
|
|
227
228
|
*CourseApi* | [**putHostedScormExportStatus**](docs/CourseApi.md#puthostedscormexportstatus) | **PUT** /courses/{courseId}/exports/{exportId}/status | Revoke or reactivate a hosted SCORM export
|
|
228
229
|
*CourseCatalogApi* | [**addCourseToCatalog**](docs/CourseCatalogApi.md#addcoursetocatalog) | **POST** /catalogs/{catalogId}/courses/{courseId} | Add a course to a catalog
|
|
229
230
|
*CourseCatalogApi* | [**deleteCourseCatalog**](docs/CourseCatalogApi.md#deletecoursecatalog) | **DELETE** /catalogs/{catalogId} | Delete a catalog
|
|
@@ -244,12 +245,13 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
244
245
|
*CourseShareApi* | [**putDeclineShare**](docs/CourseShareApi.md#putdeclineshare) | **PUT** /course-shares/{shareId}/decline | Decline an offer
|
|
245
246
|
*DispatchApi* | [**getDispatchCourse**](docs/DispatchApi.md#getdispatchcourse) | **GET** /dispatch/runtime/course | Get the registration-scoped hosted course snapshot
|
|
246
247
|
*DispatchApi* | [**getDispatchQuizSession**](docs/DispatchApi.md#getdispatchquizsession) | **GET** /dispatch/runtime/quiz-sessions/{sessionId} | Get a registration-owned native quiz session
|
|
248
|
+
*DispatchApi* | [**getDispatchQuizSessionResults**](docs/DispatchApi.md#getdispatchquizsessionresults) | **GET** /dispatch/runtime/quiz-sessions/{sessionId}/results | Get the result of a registration-owned native quiz session
|
|
247
249
|
*DispatchApi* | [**getDispatchRollup**](docs/DispatchApi.md#getdispatchrollup) | **GET** /dispatch/sessions/{dispatchPackageId}/rollup | Get dispatch package rollup data
|
|
248
250
|
*DispatchApi* | [**postDispatchItemLaunch**](docs/DispatchApi.md#postdispatchitemlaunch) | **POST** /dispatch/runtime/items/{itemId}/launch | Start or resume a selected hosted course item
|
|
249
251
|
*DispatchApi* | [**postDispatchLaunch**](docs/DispatchApi.md#postdispatchlaunch) | **POST** /dispatch/launch | Launch a dispatch package
|
|
250
252
|
*DispatchApi* | [**postDispatchQuizSessionSubmit**](docs/DispatchApi.md#postdispatchquizsessionsubmit) | **POST** /dispatch/runtime/quiz-sessions/{sessionId}/submit | Submit a registration-owned native quiz session
|
|
251
253
|
*DispatchApi* | [**postDispatchTokenExchange**](docs/DispatchApi.md#postdispatchtokenexchange) | **POST** /dispatch/runtime/token | Exchange a one-time hosted SCORM launch code
|
|
252
|
-
*DispatchApi* | [**postDispatchTokenRefresh**](docs/DispatchApi.md#postdispatchtokenrefresh) | **POST** /dispatch/runtime/token/refresh |
|
|
254
|
+
*DispatchApi* | [**postDispatchTokenRefresh**](docs/DispatchApi.md#postdispatchtokenrefresh) | **POST** /dispatch/runtime/token/refresh | Extend a valid hosted SCORM access token
|
|
253
255
|
*DispatchApi* | [**putDispatchQuizSessionAnswer**](docs/DispatchApi.md#putdispatchquizsessionanswer) | **PUT** /dispatch/runtime/quiz-sessions/{sessionId}/answers/{sessionQuestionId} | Save a registration-owned native quiz answer
|
|
254
256
|
*EmailTemplateApi* | [**deleteEmailTemplateDraft**](docs/EmailTemplateApi.md#deleteemailtemplatedraft) | **DELETE** /email-templates/{templateKey}/draft | Discard the current portal email template draft
|
|
255
257
|
*EmailTemplateApi* | [**deleteSystemEmailTemplateDraft**](docs/EmailTemplateApi.md#deletesystememailtemplatedraft) | **DELETE** /system/email-templates/{templateKey}/draft | Discard the current platform email template draft
|
|
@@ -404,6 +406,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
404
406
|
*SystemApi* | [**getSystemPortalOverview**](docs/SystemApi.md#getsystemportaloverview) | **GET** /system/portals/{portalId}/overview | Get detailed platform portal overview and usage statistics
|
|
405
407
|
*SystemApi* | [**getSystemPortals**](docs/SystemApi.md#getsystemportals) | **GET** /system/portals | List all platform portals
|
|
406
408
|
*SystemApi* | [**getSystemSupportTickets**](docs/SystemApi.md#getsystemsupporttickets) | **GET** /system/support/tickets | List open support tickets across the platform
|
|
409
|
+
*SystemApi* | [**putSystemPortal**](docs/SystemApi.md#putsystemportal) | **PUT** /system/portals/{portalId} | Update platform-managed portal settings
|
|
407
410
|
*UserApi* | [**deleteUserAvatar**](docs/UserApi.md#deleteuseravatar) | **DELETE** /users/{userId}/avatar | Remove the current user\'s profile photo
|
|
408
411
|
*UserApi* | [**getAuthCheck**](docs/UserApi.md#getauthcheck) | **GET** /auth/check | Check if a user is logged in
|
|
409
412
|
*UserApi* | [**getCurrentUserPermissions**](docs/UserApi.md#getcurrentuserpermissions) | **GET** /users/current/permissions | Get the current user\'s permissions
|
|
@@ -775,6 +778,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
775
778
|
- [PutRole](docs/PutRole.md)
|
|
776
779
|
- [PutRolePermissions](docs/PutRolePermissions.md)
|
|
777
780
|
- [PutSupportTicket](docs/PutSupportTicket.md)
|
|
781
|
+
- [PutSystemPortal](docs/PutSystemPortal.md)
|
|
778
782
|
- [PutUser](docs/PutUser.md)
|
|
779
783
|
- [PutZapierSetup](docs/PutZapierSetup.md)
|
|
780
784
|
- [QuestionImportCommitResult](docs/QuestionImportCommitResult.md)
|
|
@@ -840,7 +844,7 @@ and is automatically generated by the
|
|
|
840
844
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
841
845
|
|
|
842
846
|
- API version: `1.0.0`
|
|
843
|
-
- Package version: `1.
|
|
847
|
+
- Package version: `1.138.0`
|
|
844
848
|
- Generator version: `7.22.0`
|
|
845
849
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
846
850
|
|
package/dist/apis/CourseApi.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { type GetCourseVersionItemSession } from '../models/GetCourseVersionItem
|
|
|
25
25
|
import { type GetCourseVersionList } from '../models/GetCourseVersionList';
|
|
26
26
|
import { type GetCourseVersionProgression } from '../models/GetCourseVersionProgression';
|
|
27
27
|
import { type GetCourseVersionSection } from '../models/GetCourseVersionSection';
|
|
28
|
+
import { type GetHostedScormRegistration } from '../models/GetHostedScormRegistration';
|
|
28
29
|
import { type GetHostedScormRegistrationList } from '../models/GetHostedScormRegistrationList';
|
|
29
30
|
import { type HostedScormAccessPolicy } from '../models/HostedScormAccessPolicy';
|
|
30
31
|
import { type PostClearSessions } from '../models/PostClearSessions';
|
|
@@ -250,6 +251,12 @@ export interface PutHostedScormExportAccessRequest {
|
|
|
250
251
|
exportId: string;
|
|
251
252
|
hostedScormAccessPolicy: HostedScormAccessPolicy;
|
|
252
253
|
}
|
|
254
|
+
export interface PutHostedScormExportRegistrationStatusRequest {
|
|
255
|
+
courseId: string;
|
|
256
|
+
exportId: string;
|
|
257
|
+
registrationId: string;
|
|
258
|
+
putHostedScormStatus: PutHostedScormStatus;
|
|
259
|
+
}
|
|
253
260
|
export interface PutHostedScormExportStatusRequest {
|
|
254
261
|
courseId: string;
|
|
255
262
|
exportId: string;
|
|
@@ -783,6 +790,20 @@ export declare class CourseApi extends runtime.BaseAPI {
|
|
|
783
790
|
* Update mutable access controls for a hosted SCORM export
|
|
784
791
|
*/
|
|
785
792
|
putHostedScormExportAccess(requestParameters: PutHostedScormExportAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseExport>;
|
|
793
|
+
/**
|
|
794
|
+
* Creates request options for putHostedScormExportRegistrationStatus without sending the request
|
|
795
|
+
*/
|
|
796
|
+
putHostedScormExportRegistrationStatusRequestOpts(requestParameters: PutHostedScormExportRegistrationStatusRequest): Promise<runtime.RequestOpts>;
|
|
797
|
+
/**
|
|
798
|
+
* Revoking a registration blocks that learner\'s future launches and immediately invalidates their open sessions, without affecting other learners on the same export. Restoring it allows new launches from the client LMS; sessions that were open when access was revoked stay closed.
|
|
799
|
+
* Revoke or restore one learner\'s access to a hosted SCORM export
|
|
800
|
+
*/
|
|
801
|
+
putHostedScormExportRegistrationStatusRaw(requestParameters: PutHostedScormExportRegistrationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetHostedScormRegistration>>;
|
|
802
|
+
/**
|
|
803
|
+
* Revoking a registration blocks that learner\'s future launches and immediately invalidates their open sessions, without affecting other learners on the same export. Restoring it allows new launches from the client LMS; sessions that were open when access was revoked stay closed.
|
|
804
|
+
* Revoke or restore one learner\'s access to a hosted SCORM export
|
|
805
|
+
*/
|
|
806
|
+
putHostedScormExportRegistrationStatus(requestParameters: PutHostedScormExportRegistrationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetHostedScormRegistration>;
|
|
786
807
|
/**
|
|
787
808
|
* Creates request options for putHostedScormExportStatus without sending the request
|
|
788
809
|
*/
|
package/dist/apis/CourseApi.js
CHANGED
|
@@ -39,6 +39,7 @@ const GetCourseVersionItemSession_1 = require("../models/GetCourseVersionItemSes
|
|
|
39
39
|
const GetCourseVersionList_1 = require("../models/GetCourseVersionList");
|
|
40
40
|
const GetCourseVersionProgression_1 = require("../models/GetCourseVersionProgression");
|
|
41
41
|
const GetCourseVersionSection_1 = require("../models/GetCourseVersionSection");
|
|
42
|
+
const GetHostedScormRegistration_1 = require("../models/GetHostedScormRegistration");
|
|
42
43
|
const GetHostedScormRegistrationList_1 = require("../models/GetHostedScormRegistrationList");
|
|
43
44
|
const HostedScormAccessPolicy_1 = require("../models/HostedScormAccessPolicy");
|
|
44
45
|
const PostClearSessions_1 = require("../models/PostClearSessions");
|
|
@@ -2042,6 +2043,60 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
2042
2043
|
return yield response.value();
|
|
2043
2044
|
});
|
|
2044
2045
|
}
|
|
2046
|
+
/**
|
|
2047
|
+
* Creates request options for putHostedScormExportRegistrationStatus without sending the request
|
|
2048
|
+
*/
|
|
2049
|
+
putHostedScormExportRegistrationStatusRequestOpts(requestParameters) {
|
|
2050
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2051
|
+
if (requestParameters['courseId'] == null) {
|
|
2052
|
+
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling putHostedScormExportRegistrationStatus().');
|
|
2053
|
+
}
|
|
2054
|
+
if (requestParameters['exportId'] == null) {
|
|
2055
|
+
throw new runtime.RequiredError('exportId', 'Required parameter "exportId" was null or undefined when calling putHostedScormExportRegistrationStatus().');
|
|
2056
|
+
}
|
|
2057
|
+
if (requestParameters['registrationId'] == null) {
|
|
2058
|
+
throw new runtime.RequiredError('registrationId', 'Required parameter "registrationId" was null or undefined when calling putHostedScormExportRegistrationStatus().');
|
|
2059
|
+
}
|
|
2060
|
+
if (requestParameters['putHostedScormStatus'] == null) {
|
|
2061
|
+
throw new runtime.RequiredError('putHostedScormStatus', 'Required parameter "putHostedScormStatus" was null or undefined when calling putHostedScormExportRegistrationStatus().');
|
|
2062
|
+
}
|
|
2063
|
+
const queryParameters = {};
|
|
2064
|
+
const headerParameters = {};
|
|
2065
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2066
|
+
let urlPath = `/courses/{courseId}/exports/{exportId}/registrations/{registrationId}/status`;
|
|
2067
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
2068
|
+
urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
|
|
2069
|
+
urlPath = urlPath.replace('{registrationId}', encodeURIComponent(String(requestParameters['registrationId'])));
|
|
2070
|
+
return {
|
|
2071
|
+
path: urlPath,
|
|
2072
|
+
method: 'PUT',
|
|
2073
|
+
headers: headerParameters,
|
|
2074
|
+
query: queryParameters,
|
|
2075
|
+
body: (0, PutHostedScormStatus_1.PutHostedScormStatusToJSON)(requestParameters['putHostedScormStatus']),
|
|
2076
|
+
};
|
|
2077
|
+
});
|
|
2078
|
+
}
|
|
2079
|
+
/**
|
|
2080
|
+
* Revoking a registration blocks that learner\'s future launches and immediately invalidates their open sessions, without affecting other learners on the same export. Restoring it allows new launches from the client LMS; sessions that were open when access was revoked stay closed.
|
|
2081
|
+
* Revoke or restore one learner\'s access to a hosted SCORM export
|
|
2082
|
+
*/
|
|
2083
|
+
putHostedScormExportRegistrationStatusRaw(requestParameters, initOverrides) {
|
|
2084
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2085
|
+
const requestOptions = yield this.putHostedScormExportRegistrationStatusRequestOpts(requestParameters);
|
|
2086
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2087
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetHostedScormRegistration_1.GetHostedScormRegistrationFromJSON)(jsonValue));
|
|
2088
|
+
});
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
2091
|
+
* Revoking a registration blocks that learner\'s future launches and immediately invalidates their open sessions, without affecting other learners on the same export. Restoring it allows new launches from the client LMS; sessions that were open when access was revoked stay closed.
|
|
2092
|
+
* Revoke or restore one learner\'s access to a hosted SCORM export
|
|
2093
|
+
*/
|
|
2094
|
+
putHostedScormExportRegistrationStatus(requestParameters, initOverrides) {
|
|
2095
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2096
|
+
const response = yield this.putHostedScormExportRegistrationStatusRaw(requestParameters, initOverrides);
|
|
2097
|
+
return yield response.value();
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2045
2100
|
/**
|
|
2046
2101
|
* Creates request options for putHostedScormExportStatus without sending the request
|
|
2047
2102
|
*/
|
|
@@ -24,6 +24,9 @@ import { type PutLibraryQuizSessionAnswer } from '../models/PutLibraryQuizSessio
|
|
|
24
24
|
export interface GetDispatchQuizSessionRequest {
|
|
25
25
|
sessionId: string;
|
|
26
26
|
}
|
|
27
|
+
export interface GetDispatchQuizSessionResultsRequest {
|
|
28
|
+
sessionId: string;
|
|
29
|
+
}
|
|
27
30
|
export interface GetDispatchRollupRequest {
|
|
28
31
|
dispatchPackageId: string;
|
|
29
32
|
}
|
|
@@ -73,6 +76,20 @@ export declare class DispatchApi extends runtime.BaseAPI {
|
|
|
73
76
|
* Get a registration-owned native quiz session
|
|
74
77
|
*/
|
|
75
78
|
getDispatchQuizSession(requestParameters: GetDispatchQuizSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizSession>;
|
|
79
|
+
/**
|
|
80
|
+
* Creates request options for getDispatchQuizSessionResults without sending the request
|
|
81
|
+
*/
|
|
82
|
+
getDispatchQuizSessionResultsRequestOpts(requestParameters: GetDispatchQuizSessionResultsRequest): Promise<runtime.RequestOpts>;
|
|
83
|
+
/**
|
|
84
|
+
* Returns the learner\'s score and, where the quiz settings allow review, their per-question answers, correctness, and explanations. Results are not available while the attempt is still in progress.
|
|
85
|
+
* Get the result of a registration-owned native quiz session
|
|
86
|
+
*/
|
|
87
|
+
getDispatchQuizSessionResultsRaw(requestParameters: GetDispatchQuizSessionResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetLibraryQuizResult>>;
|
|
88
|
+
/**
|
|
89
|
+
* Returns the learner\'s score and, where the quiz settings allow review, their per-question answers, correctness, and explanations. Results are not available while the attempt is still in progress.
|
|
90
|
+
* Get the result of a registration-owned native quiz session
|
|
91
|
+
*/
|
|
92
|
+
getDispatchQuizSessionResults(requestParameters: GetDispatchQuizSessionResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizResult>;
|
|
76
93
|
/**
|
|
77
94
|
* Creates request options for getDispatchRollup without sending the request
|
|
78
95
|
*/
|
|
@@ -138,11 +155,13 @@ export declare class DispatchApi extends runtime.BaseAPI {
|
|
|
138
155
|
*/
|
|
139
156
|
postDispatchTokenRefreshRequestOpts(): Promise<runtime.RequestOpts>;
|
|
140
157
|
/**
|
|
141
|
-
*
|
|
158
|
+
* Slides the presented token\'s expiry forward and returns the same token with its new `expires_at`. The token is extended in place rather than rotated so that a hosted item the learner already has open keeps working. A single launch can be kept alive for at most 24 hours; after that the learner relaunches the course from their LMS.
|
|
159
|
+
* Extend a valid hosted SCORM access token
|
|
142
160
|
*/
|
|
143
161
|
postDispatchTokenRefreshRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DispatchTokenResponse>>;
|
|
144
162
|
/**
|
|
145
|
-
*
|
|
163
|
+
* Slides the presented token\'s expiry forward and returns the same token with its new `expires_at`. The token is extended in place rather than rotated so that a hosted item the learner already has open keeps working. A single launch can be kept alive for at most 24 hours; after that the learner relaunches the course from their LMS.
|
|
164
|
+
* Extend a valid hosted SCORM access token
|
|
146
165
|
*/
|
|
147
166
|
postDispatchTokenRefresh(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DispatchTokenResponse>;
|
|
148
167
|
/**
|
package/dist/apis/DispatchApi.js
CHANGED
|
@@ -113,6 +113,47 @@ class DispatchApi extends runtime.BaseAPI {
|
|
|
113
113
|
return yield response.value();
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Creates request options for getDispatchQuizSessionResults without sending the request
|
|
118
|
+
*/
|
|
119
|
+
getDispatchQuizSessionResultsRequestOpts(requestParameters) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
if (requestParameters['sessionId'] == null) {
|
|
122
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getDispatchQuizSessionResults().');
|
|
123
|
+
}
|
|
124
|
+
const queryParameters = {};
|
|
125
|
+
const headerParameters = {};
|
|
126
|
+
let urlPath = `/dispatch/runtime/quiz-sessions/{sessionId}/results`;
|
|
127
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
128
|
+
return {
|
|
129
|
+
path: urlPath,
|
|
130
|
+
method: 'GET',
|
|
131
|
+
headers: headerParameters,
|
|
132
|
+
query: queryParameters,
|
|
133
|
+
};
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Returns the learner\'s score and, where the quiz settings allow review, their per-question answers, correctness, and explanations. Results are not available while the attempt is still in progress.
|
|
138
|
+
* Get the result of a registration-owned native quiz session
|
|
139
|
+
*/
|
|
140
|
+
getDispatchQuizSessionResultsRaw(requestParameters, initOverrides) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const requestOptions = yield this.getDispatchQuizSessionResultsRequestOpts(requestParameters);
|
|
143
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
144
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetLibraryQuizResult_1.GetLibraryQuizResultFromJSON)(jsonValue));
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Returns the learner\'s score and, where the quiz settings allow review, their per-question answers, correctness, and explanations. Results are not available while the attempt is still in progress.
|
|
149
|
+
* Get the result of a registration-owned native quiz session
|
|
150
|
+
*/
|
|
151
|
+
getDispatchQuizSessionResults(requestParameters, initOverrides) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
const response = yield this.getDispatchQuizSessionResultsRaw(requestParameters, initOverrides);
|
|
154
|
+
return yield response.value();
|
|
155
|
+
});
|
|
156
|
+
}
|
|
116
157
|
/**
|
|
117
158
|
* Creates request options for getDispatchRollup without sending the request
|
|
118
159
|
*/
|
|
@@ -329,7 +370,8 @@ class DispatchApi extends runtime.BaseAPI {
|
|
|
329
370
|
});
|
|
330
371
|
}
|
|
331
372
|
/**
|
|
332
|
-
*
|
|
373
|
+
* Slides the presented token\'s expiry forward and returns the same token with its new `expires_at`. The token is extended in place rather than rotated so that a hosted item the learner already has open keeps working. A single launch can be kept alive for at most 24 hours; after that the learner relaunches the course from their LMS.
|
|
374
|
+
* Extend a valid hosted SCORM access token
|
|
333
375
|
*/
|
|
334
376
|
postDispatchTokenRefreshRaw(initOverrides) {
|
|
335
377
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -339,7 +381,8 @@ class DispatchApi extends runtime.BaseAPI {
|
|
|
339
381
|
});
|
|
340
382
|
}
|
|
341
383
|
/**
|
|
342
|
-
*
|
|
384
|
+
* Slides the presented token\'s expiry forward and returns the same token with its new `expires_at`. The token is extended in place rather than rotated so that a hosted item the learner already has open keeps working. A single launch can be kept alive for at most 24 hours; after that the learner relaunches the course from their LMS.
|
|
385
|
+
* Extend a valid hosted SCORM access token
|
|
343
386
|
*/
|
|
344
387
|
postDispatchTokenRefresh(initOverrides) {
|
|
345
388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,6 +16,7 @@ import { type PostRichTextAssetUpload } from '../models/PostRichTextAssetUpload'
|
|
|
16
16
|
import { type RichTextAsset } from '../models/RichTextAsset';
|
|
17
17
|
export interface GetRichTextAssetRequest {
|
|
18
18
|
assetId: string;
|
|
19
|
+
token?: string;
|
|
19
20
|
}
|
|
20
21
|
export interface PostRichTextAssetCompleteRequest {
|
|
21
22
|
assetId: string;
|
|
@@ -37,10 +38,12 @@ export declare class RichTextApi extends runtime.BaseAPI {
|
|
|
37
38
|
*/
|
|
38
39
|
getRichTextAssetRequestOpts(requestParameters: GetRichTextAssetRequest): Promise<runtime.RequestOpts>;
|
|
39
40
|
/**
|
|
41
|
+
* Portal users need `content_library:read`. Hosted SCORM learners may instead present a dispatch token (the `X-Dispatch-Token` header or a `token` query parameter); they can load only assets referenced by the content their export contains.
|
|
40
42
|
* Redirect to a signed rich text asset URL
|
|
41
43
|
*/
|
|
42
44
|
getRichTextAssetRaw(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
43
45
|
/**
|
|
46
|
+
* Portal users need `content_library:read`. Hosted SCORM learners may instead present a dispatch token (the `X-Dispatch-Token` header or a `token` query parameter); they can load only assets referenced by the content their export contains.
|
|
44
47
|
* Redirect to a signed rich text asset URL
|
|
45
48
|
*/
|
|
46
49
|
getRichTextAsset(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
package/dist/apis/RichTextApi.js
CHANGED
|
@@ -41,6 +41,9 @@ class RichTextApi extends runtime.BaseAPI {
|
|
|
41
41
|
throw new runtime.RequiredError('assetId', 'Required parameter "assetId" was null or undefined when calling getRichTextAsset().');
|
|
42
42
|
}
|
|
43
43
|
const queryParameters = {};
|
|
44
|
+
if (requestParameters['token'] != null) {
|
|
45
|
+
queryParameters['token'] = requestParameters['token'];
|
|
46
|
+
}
|
|
44
47
|
const headerParameters = {};
|
|
45
48
|
let urlPath = `/rich-text/assets/{assetId}`;
|
|
46
49
|
urlPath = urlPath.replace('{assetId}', encodeURIComponent(String(requestParameters['assetId'])));
|
|
@@ -53,6 +56,7 @@ class RichTextApi extends runtime.BaseAPI {
|
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
58
|
/**
|
|
59
|
+
* Portal users need `content_library:read`. Hosted SCORM learners may instead present a dispatch token (the `X-Dispatch-Token` header or a `token` query parameter); they can load only assets referenced by the content their export contains.
|
|
56
60
|
* Redirect to a signed rich text asset URL
|
|
57
61
|
*/
|
|
58
62
|
getRichTextAssetRaw(requestParameters, initOverrides) {
|
|
@@ -63,6 +67,7 @@ class RichTextApi extends runtime.BaseAPI {
|
|
|
63
67
|
});
|
|
64
68
|
}
|
|
65
69
|
/**
|
|
70
|
+
* Portal users need `content_library:read`. Hosted SCORM learners may instead present a dispatch token (the `X-Dispatch-Token` header or a `token` query parameter); they can load only assets referenced by the content their export contains.
|
|
66
71
|
* Redirect to a signed rich text asset URL
|
|
67
72
|
*/
|
|
68
73
|
getRichTextAsset(requestParameters, initOverrides) {
|
package/dist/apis/SystemApi.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { type GetSupportTicketList } from '../models/GetSupportTicketList';
|
|
|
16
16
|
import { type GetSystemBillingList } from '../models/GetSystemBillingList';
|
|
17
17
|
import { type GetSystemMetrics } from '../models/GetSystemMetrics';
|
|
18
18
|
import { type GetSystemPortalOverview } from '../models/GetSystemPortalOverview';
|
|
19
|
+
import { type PutSystemPortal } from '../models/PutSystemPortal';
|
|
19
20
|
export interface GetSystemBillingRequest {
|
|
20
21
|
page?: number;
|
|
21
22
|
pageSize?: number;
|
|
@@ -34,6 +35,10 @@ export interface GetSystemSupportTicketsRequest {
|
|
|
34
35
|
page?: number;
|
|
35
36
|
pageSize?: number;
|
|
36
37
|
}
|
|
38
|
+
export interface PutSystemPortalRequest {
|
|
39
|
+
portalId: string;
|
|
40
|
+
putSystemPortal: PutSystemPortal;
|
|
41
|
+
}
|
|
37
42
|
/**
|
|
38
43
|
*
|
|
39
44
|
*/
|
|
@@ -110,4 +115,16 @@ export declare class SystemApi extends runtime.BaseAPI {
|
|
|
110
115
|
* List open support tickets across the platform
|
|
111
116
|
*/
|
|
112
117
|
getSystemSupportTickets(requestParameters?: GetSystemSupportTicketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSupportTicketList>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates request options for putSystemPortal without sending the request
|
|
120
|
+
*/
|
|
121
|
+
putSystemPortalRequestOpts(requestParameters: PutSystemPortalRequest): Promise<runtime.RequestOpts>;
|
|
122
|
+
/**
|
|
123
|
+
* Update platform-managed portal settings
|
|
124
|
+
*/
|
|
125
|
+
putSystemPortalRaw(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>>;
|
|
126
|
+
/**
|
|
127
|
+
* Update platform-managed portal settings
|
|
128
|
+
*/
|
|
129
|
+
putSystemPortal(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
|
|
113
130
|
}
|
package/dist/apis/SystemApi.js
CHANGED
|
@@ -30,6 +30,7 @@ const GetSupportTicketList_1 = require("../models/GetSupportTicketList");
|
|
|
30
30
|
const GetSystemBillingList_1 = require("../models/GetSystemBillingList");
|
|
31
31
|
const GetSystemMetrics_1 = require("../models/GetSystemMetrics");
|
|
32
32
|
const GetSystemPortalOverview_1 = require("../models/GetSystemPortalOverview");
|
|
33
|
+
const PutSystemPortal_1 = require("../models/PutSystemPortal");
|
|
33
34
|
/**
|
|
34
35
|
*
|
|
35
36
|
*/
|
|
@@ -270,5 +271,49 @@ class SystemApi extends runtime.BaseAPI {
|
|
|
270
271
|
return yield response.value();
|
|
271
272
|
});
|
|
272
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* Creates request options for putSystemPortal without sending the request
|
|
276
|
+
*/
|
|
277
|
+
putSystemPortalRequestOpts(requestParameters) {
|
|
278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
279
|
+
if (requestParameters['portalId'] == null) {
|
|
280
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling putSystemPortal().');
|
|
281
|
+
}
|
|
282
|
+
if (requestParameters['putSystemPortal'] == null) {
|
|
283
|
+
throw new runtime.RequiredError('putSystemPortal', 'Required parameter "putSystemPortal" was null or undefined when calling putSystemPortal().');
|
|
284
|
+
}
|
|
285
|
+
const queryParameters = {};
|
|
286
|
+
const headerParameters = {};
|
|
287
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
288
|
+
let urlPath = `/system/portals/{portalId}`;
|
|
289
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
290
|
+
return {
|
|
291
|
+
path: urlPath,
|
|
292
|
+
method: 'PUT',
|
|
293
|
+
headers: headerParameters,
|
|
294
|
+
query: queryParameters,
|
|
295
|
+
body: (0, PutSystemPortal_1.PutSystemPortalToJSON)(requestParameters['putSystemPortal']),
|
|
296
|
+
};
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Update platform-managed portal settings
|
|
301
|
+
*/
|
|
302
|
+
putSystemPortalRaw(requestParameters, initOverrides) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
const requestOptions = yield this.putSystemPortalRequestOpts(requestParameters);
|
|
305
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortal_1.GetPortalFromJSON)(jsonValue));
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Update platform-managed portal settings
|
|
311
|
+
*/
|
|
312
|
+
putSystemPortal(requestParameters, initOverrides) {
|
|
313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
const response = yield this.putSystemPortalRaw(requestParameters, initOverrides);
|
|
315
|
+
return yield response.value();
|
|
316
|
+
});
|
|
317
|
+
}
|
|
273
318
|
}
|
|
274
319
|
exports.SystemApi = SystemApi;
|
|
@@ -25,6 +25,7 @@ import { type GetCourseVersionItemSession } from '../models/GetCourseVersionItem
|
|
|
25
25
|
import { type GetCourseVersionList } from '../models/GetCourseVersionList';
|
|
26
26
|
import { type GetCourseVersionProgression } from '../models/GetCourseVersionProgression';
|
|
27
27
|
import { type GetCourseVersionSection } from '../models/GetCourseVersionSection';
|
|
28
|
+
import { type GetHostedScormRegistration } from '../models/GetHostedScormRegistration';
|
|
28
29
|
import { type GetHostedScormRegistrationList } from '../models/GetHostedScormRegistrationList';
|
|
29
30
|
import { type HostedScormAccessPolicy } from '../models/HostedScormAccessPolicy';
|
|
30
31
|
import { type PostClearSessions } from '../models/PostClearSessions';
|
|
@@ -250,6 +251,12 @@ export interface PutHostedScormExportAccessRequest {
|
|
|
250
251
|
exportId: string;
|
|
251
252
|
hostedScormAccessPolicy: HostedScormAccessPolicy;
|
|
252
253
|
}
|
|
254
|
+
export interface PutHostedScormExportRegistrationStatusRequest {
|
|
255
|
+
courseId: string;
|
|
256
|
+
exportId: string;
|
|
257
|
+
registrationId: string;
|
|
258
|
+
putHostedScormStatus: PutHostedScormStatus;
|
|
259
|
+
}
|
|
253
260
|
export interface PutHostedScormExportStatusRequest {
|
|
254
261
|
courseId: string;
|
|
255
262
|
exportId: string;
|
|
@@ -783,6 +790,20 @@ export declare class CourseApi extends runtime.BaseAPI {
|
|
|
783
790
|
* Update mutable access controls for a hosted SCORM export
|
|
784
791
|
*/
|
|
785
792
|
putHostedScormExportAccess(requestParameters: PutHostedScormExportAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseExport>;
|
|
793
|
+
/**
|
|
794
|
+
* Creates request options for putHostedScormExportRegistrationStatus without sending the request
|
|
795
|
+
*/
|
|
796
|
+
putHostedScormExportRegistrationStatusRequestOpts(requestParameters: PutHostedScormExportRegistrationStatusRequest): Promise<runtime.RequestOpts>;
|
|
797
|
+
/**
|
|
798
|
+
* Revoking a registration blocks that learner\'s future launches and immediately invalidates their open sessions, without affecting other learners on the same export. Restoring it allows new launches from the client LMS; sessions that were open when access was revoked stay closed.
|
|
799
|
+
* Revoke or restore one learner\'s access to a hosted SCORM export
|
|
800
|
+
*/
|
|
801
|
+
putHostedScormExportRegistrationStatusRaw(requestParameters: PutHostedScormExportRegistrationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetHostedScormRegistration>>;
|
|
802
|
+
/**
|
|
803
|
+
* Revoking a registration blocks that learner\'s future launches and immediately invalidates their open sessions, without affecting other learners on the same export. Restoring it allows new launches from the client LMS; sessions that were open when access was revoked stay closed.
|
|
804
|
+
* Revoke or restore one learner\'s access to a hosted SCORM export
|
|
805
|
+
*/
|
|
806
|
+
putHostedScormExportRegistrationStatus(requestParameters: PutHostedScormExportRegistrationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetHostedScormRegistration>;
|
|
786
807
|
/**
|
|
787
808
|
* Creates request options for putHostedScormExportStatus without sending the request
|
|
788
809
|
*/
|
|
@@ -36,6 +36,7 @@ import { GetCourseVersionItemSessionFromJSON, } from '../models/GetCourseVersion
|
|
|
36
36
|
import { GetCourseVersionListFromJSON, } from '../models/GetCourseVersionList';
|
|
37
37
|
import { GetCourseVersionProgressionFromJSON, } from '../models/GetCourseVersionProgression';
|
|
38
38
|
import { GetCourseVersionSectionFromJSON, } from '../models/GetCourseVersionSection';
|
|
39
|
+
import { GetHostedScormRegistrationFromJSON, } from '../models/GetHostedScormRegistration';
|
|
39
40
|
import { GetHostedScormRegistrationListFromJSON, } from '../models/GetHostedScormRegistrationList';
|
|
40
41
|
import { HostedScormAccessPolicyToJSON, } from '../models/HostedScormAccessPolicy';
|
|
41
42
|
import { PostClearSessionsToJSON, } from '../models/PostClearSessions';
|
|
@@ -2039,6 +2040,60 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
2039
2040
|
return yield response.value();
|
|
2040
2041
|
});
|
|
2041
2042
|
}
|
|
2043
|
+
/**
|
|
2044
|
+
* Creates request options for putHostedScormExportRegistrationStatus without sending the request
|
|
2045
|
+
*/
|
|
2046
|
+
putHostedScormExportRegistrationStatusRequestOpts(requestParameters) {
|
|
2047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2048
|
+
if (requestParameters['courseId'] == null) {
|
|
2049
|
+
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling putHostedScormExportRegistrationStatus().');
|
|
2050
|
+
}
|
|
2051
|
+
if (requestParameters['exportId'] == null) {
|
|
2052
|
+
throw new runtime.RequiredError('exportId', 'Required parameter "exportId" was null or undefined when calling putHostedScormExportRegistrationStatus().');
|
|
2053
|
+
}
|
|
2054
|
+
if (requestParameters['registrationId'] == null) {
|
|
2055
|
+
throw new runtime.RequiredError('registrationId', 'Required parameter "registrationId" was null or undefined when calling putHostedScormExportRegistrationStatus().');
|
|
2056
|
+
}
|
|
2057
|
+
if (requestParameters['putHostedScormStatus'] == null) {
|
|
2058
|
+
throw new runtime.RequiredError('putHostedScormStatus', 'Required parameter "putHostedScormStatus" was null or undefined when calling putHostedScormExportRegistrationStatus().');
|
|
2059
|
+
}
|
|
2060
|
+
const queryParameters = {};
|
|
2061
|
+
const headerParameters = {};
|
|
2062
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2063
|
+
let urlPath = `/courses/{courseId}/exports/{exportId}/registrations/{registrationId}/status`;
|
|
2064
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
2065
|
+
urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
|
|
2066
|
+
urlPath = urlPath.replace('{registrationId}', encodeURIComponent(String(requestParameters['registrationId'])));
|
|
2067
|
+
return {
|
|
2068
|
+
path: urlPath,
|
|
2069
|
+
method: 'PUT',
|
|
2070
|
+
headers: headerParameters,
|
|
2071
|
+
query: queryParameters,
|
|
2072
|
+
body: PutHostedScormStatusToJSON(requestParameters['putHostedScormStatus']),
|
|
2073
|
+
};
|
|
2074
|
+
});
|
|
2075
|
+
}
|
|
2076
|
+
/**
|
|
2077
|
+
* Revoking a registration blocks that learner\'s future launches and immediately invalidates their open sessions, without affecting other learners on the same export. Restoring it allows new launches from the client LMS; sessions that were open when access was revoked stay closed.
|
|
2078
|
+
* Revoke or restore one learner\'s access to a hosted SCORM export
|
|
2079
|
+
*/
|
|
2080
|
+
putHostedScormExportRegistrationStatusRaw(requestParameters, initOverrides) {
|
|
2081
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2082
|
+
const requestOptions = yield this.putHostedScormExportRegistrationStatusRequestOpts(requestParameters);
|
|
2083
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2084
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetHostedScormRegistrationFromJSON(jsonValue));
|
|
2085
|
+
});
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
* Revoking a registration blocks that learner\'s future launches and immediately invalidates their open sessions, without affecting other learners on the same export. Restoring it allows new launches from the client LMS; sessions that were open when access was revoked stay closed.
|
|
2089
|
+
* Revoke or restore one learner\'s access to a hosted SCORM export
|
|
2090
|
+
*/
|
|
2091
|
+
putHostedScormExportRegistrationStatus(requestParameters, initOverrides) {
|
|
2092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2093
|
+
const response = yield this.putHostedScormExportRegistrationStatusRaw(requestParameters, initOverrides);
|
|
2094
|
+
return yield response.value();
|
|
2095
|
+
});
|
|
2096
|
+
}
|
|
2042
2097
|
/**
|
|
2043
2098
|
* Creates request options for putHostedScormExportStatus without sending the request
|
|
2044
2099
|
*/
|
|
@@ -24,6 +24,9 @@ import { type PutLibraryQuizSessionAnswer } from '../models/PutLibraryQuizSessio
|
|
|
24
24
|
export interface GetDispatchQuizSessionRequest {
|
|
25
25
|
sessionId: string;
|
|
26
26
|
}
|
|
27
|
+
export interface GetDispatchQuizSessionResultsRequest {
|
|
28
|
+
sessionId: string;
|
|
29
|
+
}
|
|
27
30
|
export interface GetDispatchRollupRequest {
|
|
28
31
|
dispatchPackageId: string;
|
|
29
32
|
}
|
|
@@ -73,6 +76,20 @@ export declare class DispatchApi extends runtime.BaseAPI {
|
|
|
73
76
|
* Get a registration-owned native quiz session
|
|
74
77
|
*/
|
|
75
78
|
getDispatchQuizSession(requestParameters: GetDispatchQuizSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizSession>;
|
|
79
|
+
/**
|
|
80
|
+
* Creates request options for getDispatchQuizSessionResults without sending the request
|
|
81
|
+
*/
|
|
82
|
+
getDispatchQuizSessionResultsRequestOpts(requestParameters: GetDispatchQuizSessionResultsRequest): Promise<runtime.RequestOpts>;
|
|
83
|
+
/**
|
|
84
|
+
* Returns the learner\'s score and, where the quiz settings allow review, their per-question answers, correctness, and explanations. Results are not available while the attempt is still in progress.
|
|
85
|
+
* Get the result of a registration-owned native quiz session
|
|
86
|
+
*/
|
|
87
|
+
getDispatchQuizSessionResultsRaw(requestParameters: GetDispatchQuizSessionResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetLibraryQuizResult>>;
|
|
88
|
+
/**
|
|
89
|
+
* Returns the learner\'s score and, where the quiz settings allow review, their per-question answers, correctness, and explanations. Results are not available while the attempt is still in progress.
|
|
90
|
+
* Get the result of a registration-owned native quiz session
|
|
91
|
+
*/
|
|
92
|
+
getDispatchQuizSessionResults(requestParameters: GetDispatchQuizSessionResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizResult>;
|
|
76
93
|
/**
|
|
77
94
|
* Creates request options for getDispatchRollup without sending the request
|
|
78
95
|
*/
|
|
@@ -138,11 +155,13 @@ export declare class DispatchApi extends runtime.BaseAPI {
|
|
|
138
155
|
*/
|
|
139
156
|
postDispatchTokenRefreshRequestOpts(): Promise<runtime.RequestOpts>;
|
|
140
157
|
/**
|
|
141
|
-
*
|
|
158
|
+
* Slides the presented token\'s expiry forward and returns the same token with its new `expires_at`. The token is extended in place rather than rotated so that a hosted item the learner already has open keeps working. A single launch can be kept alive for at most 24 hours; after that the learner relaunches the course from their LMS.
|
|
159
|
+
* Extend a valid hosted SCORM access token
|
|
142
160
|
*/
|
|
143
161
|
postDispatchTokenRefreshRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DispatchTokenResponse>>;
|
|
144
162
|
/**
|
|
145
|
-
*
|
|
163
|
+
* Slides the presented token\'s expiry forward and returns the same token with its new `expires_at`. The token is extended in place rather than rotated so that a hosted item the learner already has open keeps working. A single launch can be kept alive for at most 24 hours; after that the learner relaunches the course from their LMS.
|
|
164
|
+
* Extend a valid hosted SCORM access token
|
|
146
165
|
*/
|
|
147
166
|
postDispatchTokenRefresh(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DispatchTokenResponse>;
|
|
148
167
|
/**
|