@easyedu/js-lsm-api 1.118.0 → 1.120.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 +42 -0
- package/README.md +34 -2
- package/dist/apis/CourseApi.d.ts +55 -0
- package/dist/apis/CourseApi.js +148 -0
- package/dist/apis/DispatchApi.d.ts +121 -5
- package/dist/apis/DispatchApi.js +303 -8
- package/dist/apis/PlayerApi.d.ts +26 -6
- package/dist/apis/PlayerApi.js +57 -6
- package/dist/esm/apis/CourseApi.d.ts +55 -0
- package/dist/esm/apis/CourseApi.js +148 -0
- package/dist/esm/apis/DispatchApi.d.ts +121 -5
- package/dist/esm/apis/DispatchApi.js +303 -8
- package/dist/esm/apis/PlayerApi.d.ts +26 -6
- package/dist/esm/apis/PlayerApi.js +57 -6
- package/dist/esm/models/DispatchTokenResponse.d.ts +57 -0
- package/dist/esm/models/DispatchTokenResponse.js +61 -0
- package/dist/esm/models/GetCourseExport.d.ts +62 -0
- package/dist/esm/models/GetCourseExport.js +44 -0
- package/dist/esm/models/GetDispatchCourse.d.ts +82 -0
- package/dist/esm/models/GetDispatchCourse.js +77 -0
- package/dist/esm/models/GetDispatchRollup.d.ts +104 -0
- package/dist/esm/models/GetDispatchRollup.js +95 -0
- package/dist/esm/models/GetHostedScormRegistration.d.ts +80 -0
- package/dist/esm/models/GetHostedScormRegistration.js +71 -0
- package/dist/esm/models/GetHostedScormRegistrationList.d.ts +57 -0
- package/dist/esm/models/GetHostedScormRegistrationList.js +60 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +8 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +2 -0
- package/dist/esm/models/HostedScormAccessPolicy.d.ts +50 -0
- package/dist/esm/models/HostedScormAccessPolicy.js +55 -0
- package/dist/esm/models/HostedScormOutlineEntry.d.ts +108 -0
- package/dist/esm/models/HostedScormOutlineEntry.js +97 -0
- package/dist/esm/models/HostedScormRollupPolicy.d.ts +69 -0
- package/dist/esm/models/HostedScormRollupPolicy.js +72 -0
- package/dist/esm/models/HostedScormScoreItem.d.ts +38 -0
- package/dist/esm/models/HostedScormScoreItem.js +47 -0
- package/dist/esm/models/PostCourseExport.d.ts +28 -0
- package/dist/esm/models/PostCourseExport.js +15 -0
- package/dist/esm/models/PostDispatchItemLaunch.d.ts +32 -0
- package/dist/esm/models/PostDispatchItemLaunch.js +41 -0
- package/dist/esm/models/PostDispatchItemLaunchResponse.d.ts +64 -0
- package/dist/esm/models/PostDispatchItemLaunchResponse.js +66 -0
- package/dist/esm/models/PostDispatchLaunch.d.ts +50 -0
- package/dist/esm/models/PostDispatchLaunch.js +53 -0
- package/dist/esm/models/PostDispatchLaunchResponse.d.ts +70 -0
- package/dist/esm/models/PostDispatchLaunchResponse.js +70 -0
- package/dist/esm/models/PostDispatchTokenExchange.d.ts +32 -0
- package/dist/esm/models/PostDispatchTokenExchange.js +43 -0
- package/dist/esm/models/PutHostedScormStatus.d.ts +32 -0
- package/dist/esm/models/PutHostedScormStatus.js +43 -0
- package/dist/esm/models/ScormGetValueResponse.d.ts +12 -0
- package/dist/esm/models/ScormGetValueResponse.js +8 -0
- package/dist/esm/models/ScormNavigationDelivery.d.ts +64 -0
- package/dist/esm/models/ScormNavigationDelivery.js +66 -0
- package/dist/esm/models/ScormNavigationRequest.d.ts +55 -0
- package/dist/esm/models/ScormNavigationRequest.js +61 -0
- package/dist/esm/models/ScormNavigationResponse.d.ts +70 -0
- package/dist/esm/models/ScormNavigationResponse.js +67 -0
- package/dist/esm/models/ScormNavigationValidity.d.ts +92 -0
- package/dist/esm/models/ScormNavigationValidity.js +83 -0
- package/dist/esm/models/ScormRuntimeResponse.d.ts +44 -0
- package/dist/esm/models/ScormRuntimeResponse.js +51 -0
- package/dist/esm/models/ScormSetValueResponse.d.ts +12 -0
- package/dist/esm/models/ScormSetValueResponse.js +8 -0
- package/dist/esm/models/ScormTerminateResponse.d.ts +63 -0
- package/dist/esm/models/ScormTerminateResponse.js +62 -0
- package/dist/esm/models/index.d.ts +21 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/models/DispatchTokenResponse.d.ts +57 -0
- package/dist/models/DispatchTokenResponse.js +69 -0
- package/dist/models/GetCourseExport.d.ts +62 -0
- package/dist/models/GetCourseExport.js +45 -1
- package/dist/models/GetDispatchCourse.d.ts +82 -0
- package/dist/models/GetDispatchCourse.js +84 -0
- package/dist/models/GetDispatchRollup.d.ts +104 -0
- package/dist/models/GetDispatchRollup.js +103 -0
- package/dist/models/GetHostedScormRegistration.d.ts +80 -0
- package/dist/models/GetHostedScormRegistration.js +78 -0
- package/dist/models/GetHostedScormRegistrationList.d.ts +57 -0
- package/dist/models/GetHostedScormRegistrationList.js +67 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +8 -0
- package/dist/models/GetResourceSessionDiagnostics.js +2 -0
- package/dist/models/HostedScormAccessPolicy.d.ts +50 -0
- package/dist/models/HostedScormAccessPolicy.js +62 -0
- package/dist/models/HostedScormOutlineEntry.d.ts +108 -0
- package/dist/models/HostedScormOutlineEntry.js +105 -0
- package/dist/models/HostedScormRollupPolicy.d.ts +69 -0
- package/dist/models/HostedScormRollupPolicy.js +80 -0
- package/dist/models/HostedScormScoreItem.d.ts +38 -0
- package/dist/models/HostedScormScoreItem.js +54 -0
- package/dist/models/PostCourseExport.d.ts +28 -0
- package/dist/models/PostCourseExport.js +16 -1
- package/dist/models/PostDispatchItemLaunch.d.ts +32 -0
- package/dist/models/PostDispatchItemLaunch.js +48 -0
- package/dist/models/PostDispatchItemLaunchResponse.d.ts +64 -0
- package/dist/models/PostDispatchItemLaunchResponse.js +74 -0
- package/dist/models/PostDispatchLaunch.d.ts +50 -0
- package/dist/models/PostDispatchLaunch.js +60 -0
- package/dist/models/PostDispatchLaunchResponse.d.ts +70 -0
- package/dist/models/PostDispatchLaunchResponse.js +78 -0
- package/dist/models/PostDispatchTokenExchange.d.ts +32 -0
- package/dist/models/PostDispatchTokenExchange.js +50 -0
- package/dist/models/PutHostedScormStatus.d.ts +32 -0
- package/dist/models/PutHostedScormStatus.js +50 -0
- package/dist/models/ScormGetValueResponse.d.ts +12 -0
- package/dist/models/ScormGetValueResponse.js +8 -0
- package/dist/models/ScormNavigationDelivery.d.ts +64 -0
- package/dist/models/ScormNavigationDelivery.js +74 -0
- package/dist/models/ScormNavigationRequest.d.ts +55 -0
- package/dist/models/ScormNavigationRequest.js +69 -0
- package/dist/models/ScormNavigationResponse.d.ts +70 -0
- package/dist/models/ScormNavigationResponse.js +74 -0
- package/dist/models/ScormNavigationValidity.d.ts +92 -0
- package/dist/models/ScormNavigationValidity.js +90 -0
- package/dist/models/ScormRuntimeResponse.d.ts +44 -0
- package/dist/models/ScormRuntimeResponse.js +58 -0
- package/dist/models/ScormSetValueResponse.d.ts +12 -0
- package/dist/models/ScormSetValueResponse.js +8 -0
- package/dist/models/ScormTerminateResponse.d.ts +63 -0
- package/dist/models/ScormTerminateResponse.js +69 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +21 -0
- package/docs/CourseApi.md +225 -0
- package/docs/DispatchApi.md +480 -9
- package/docs/DispatchTokenResponse.md +40 -0
- package/docs/GetCourseExport.md +14 -0
- package/docs/GetDispatchCourse.md +50 -0
- package/docs/GetDispatchRollup.md +52 -0
- package/docs/GetHostedScormRegistration.md +50 -0
- package/docs/GetHostedScormRegistrationList.md +42 -0
- package/docs/GetResourceSessionDiagnostics.md +2 -0
- package/docs/HostedScormAccessPolicy.md +41 -0
- package/docs/HostedScormOutlineEntry.md +54 -0
- package/docs/HostedScormRollupPolicy.md +41 -0
- package/docs/HostedScormScoreItem.md +36 -0
- package/docs/PlayerApi.md +80 -9
- package/docs/PostCourseExport.md +6 -0
- package/docs/PostDispatchItemLaunch.md +34 -0
- package/docs/PostDispatchItemLaunchResponse.md +42 -0
- package/docs/PostDispatchLaunch.md +40 -0
- package/docs/PostDispatchLaunchResponse.md +44 -0
- package/docs/PostDispatchTokenExchange.md +34 -0
- package/docs/PutHostedScormStatus.md +34 -0
- package/docs/ScormGetValueResponse.md +4 -0
- package/docs/ScormNavigationDelivery.md +43 -0
- package/docs/ScormNavigationRequest.md +37 -0
- package/docs/ScormNavigationResponse.md +47 -0
- package/docs/ScormNavigationValidity.md +55 -0
- package/docs/ScormRuntimeResponse.md +39 -0
- package/docs/ScormSetValueResponse.md +4 -0
- package/docs/ScormTerminateResponse.md +44 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +221 -0
- package/src/apis/DispatchApi.ts +426 -10
- package/src/apis/PlayerApi.ts +95 -12
- package/src/models/DispatchTokenResponse.ts +103 -0
- package/src/models/GetCourseExport.ts +97 -0
- package/src/models/GetDispatchCourse.ts +153 -0
- package/src/models/GetDispatchRollup.ts +169 -0
- package/src/models/GetHostedScormRegistration.ts +136 -0
- package/src/models/GetHostedScormRegistrationList.ts +110 -0
- package/src/models/GetResourceSessionDiagnostics.ts +8 -0
- package/src/models/HostedScormAccessPolicy.ts +93 -0
- package/src/models/HostedScormOutlineEntry.ts +176 -0
- package/src/models/HostedScormRollupPolicy.ts +123 -0
- package/src/models/HostedScormScoreItem.ts +75 -0
- package/src/models/PostCourseExport.ts +48 -0
- package/src/models/PostDispatchItemLaunch.ts +65 -0
- package/src/models/PostDispatchItemLaunchResponse.ts +113 -0
- package/src/models/PostDispatchLaunch.ts +92 -0
- package/src/models/PostDispatchLaunchResponse.ts +122 -0
- package/src/models/PostDispatchTokenExchange.ts +66 -0
- package/src/models/PutHostedScormStatus.ts +66 -0
- package/src/models/ScormGetValueResponse.ts +18 -0
- package/src/models/ScormNavigationDelivery.ts +113 -0
- package/src/models/ScormNavigationRequest.ts +94 -0
- package/src/models/ScormNavigationResponse.ts +134 -0
- package/src/models/ScormNavigationValidity.ts +156 -0
- package/src/models/ScormRuntimeResponse.ts +84 -0
- package/src/models/ScormSetValueResponse.ts +18 -0
- package/src/models/ScormTerminateResponse.ts +118 -0
- package/src/models/index.ts +21 -0
|
@@ -10,13 +10,69 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import { type DispatchTokenResponse } from '../models/DispatchTokenResponse';
|
|
14
|
+
import { type GetDispatchCourse } from '../models/GetDispatchCourse';
|
|
15
|
+
import { type GetDispatchRollup } from '../models/GetDispatchRollup';
|
|
16
|
+
import { type GetLibraryQuizResult } from '../models/GetLibraryQuizResult';
|
|
17
|
+
import { type GetLibraryQuizSession } from '../models/GetLibraryQuizSession';
|
|
18
|
+
import { type PostDispatchItemLaunch } from '../models/PostDispatchItemLaunch';
|
|
19
|
+
import { type PostDispatchItemLaunchResponse } from '../models/PostDispatchItemLaunchResponse';
|
|
20
|
+
import { type PostDispatchLaunch } from '../models/PostDispatchLaunch';
|
|
21
|
+
import { type PostDispatchLaunchResponse } from '../models/PostDispatchLaunchResponse';
|
|
22
|
+
import { type PostDispatchTokenExchange } from '../models/PostDispatchTokenExchange';
|
|
23
|
+
import { type PutLibraryQuizSessionAnswer } from '../models/PutLibraryQuizSessionAnswer';
|
|
24
|
+
export interface GetDispatchQuizSessionRequest {
|
|
25
|
+
sessionId: string;
|
|
26
|
+
}
|
|
13
27
|
export interface GetDispatchRollupRequest {
|
|
14
28
|
dispatchPackageId: string;
|
|
15
29
|
}
|
|
30
|
+
export interface PostDispatchItemLaunchRequest {
|
|
31
|
+
itemId: string;
|
|
32
|
+
postDispatchItemLaunch?: PostDispatchItemLaunch;
|
|
33
|
+
}
|
|
34
|
+
export interface PostDispatchLaunchRequest {
|
|
35
|
+
postDispatchLaunch: PostDispatchLaunch;
|
|
36
|
+
}
|
|
37
|
+
export interface PostDispatchQuizSessionSubmitRequest {
|
|
38
|
+
sessionId: string;
|
|
39
|
+
}
|
|
40
|
+
export interface PostDispatchTokenExchangeRequest {
|
|
41
|
+
postDispatchTokenExchange: PostDispatchTokenExchange;
|
|
42
|
+
}
|
|
43
|
+
export interface PutDispatchQuizSessionAnswerRequest {
|
|
44
|
+
sessionId: string;
|
|
45
|
+
sessionQuestionId: string;
|
|
46
|
+
putLibraryQuizSessionAnswer: PutLibraryQuizSessionAnswer;
|
|
47
|
+
}
|
|
16
48
|
/**
|
|
17
49
|
*
|
|
18
50
|
*/
|
|
19
51
|
export declare class DispatchApi extends runtime.BaseAPI {
|
|
52
|
+
/**
|
|
53
|
+
* Creates request options for getDispatchCourse without sending the request
|
|
54
|
+
*/
|
|
55
|
+
getDispatchCourseRequestOpts(): Promise<runtime.RequestOpts>;
|
|
56
|
+
/**
|
|
57
|
+
* Get the registration-scoped hosted course snapshot
|
|
58
|
+
*/
|
|
59
|
+
getDispatchCourseRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDispatchCourse>>;
|
|
60
|
+
/**
|
|
61
|
+
* Get the registration-scoped hosted course snapshot
|
|
62
|
+
*/
|
|
63
|
+
getDispatchCourse(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDispatchCourse>;
|
|
64
|
+
/**
|
|
65
|
+
* Creates request options for getDispatchQuizSession without sending the request
|
|
66
|
+
*/
|
|
67
|
+
getDispatchQuizSessionRequestOpts(requestParameters: GetDispatchQuizSessionRequest): Promise<runtime.RequestOpts>;
|
|
68
|
+
/**
|
|
69
|
+
* Get a registration-owned native quiz session
|
|
70
|
+
*/
|
|
71
|
+
getDispatchQuizSessionRaw(requestParameters: GetDispatchQuizSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetLibraryQuizSession>>;
|
|
72
|
+
/**
|
|
73
|
+
* Get a registration-owned native quiz session
|
|
74
|
+
*/
|
|
75
|
+
getDispatchQuizSession(requestParameters: GetDispatchQuizSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizSession>;
|
|
20
76
|
/**
|
|
21
77
|
* Creates request options for getDispatchRollup without sending the request
|
|
22
78
|
*/
|
|
@@ -24,21 +80,81 @@ export declare class DispatchApi extends runtime.BaseAPI {
|
|
|
24
80
|
/**
|
|
25
81
|
* Get dispatch package rollup data
|
|
26
82
|
*/
|
|
27
|
-
getDispatchRollupRaw(requestParameters: GetDispatchRollupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
83
|
+
getDispatchRollupRaw(requestParameters: GetDispatchRollupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDispatchRollup>>;
|
|
28
84
|
/**
|
|
29
85
|
* Get dispatch package rollup data
|
|
30
86
|
*/
|
|
31
|
-
getDispatchRollup(requestParameters: GetDispatchRollupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
87
|
+
getDispatchRollup(requestParameters: GetDispatchRollupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDispatchRollup>;
|
|
88
|
+
/**
|
|
89
|
+
* Creates request options for postDispatchItemLaunch without sending the request
|
|
90
|
+
*/
|
|
91
|
+
postDispatchItemLaunchRequestOpts(requestParameters: PostDispatchItemLaunchRequest): Promise<runtime.RequestOpts>;
|
|
92
|
+
/**
|
|
93
|
+
* Start or resume a selected hosted course item
|
|
94
|
+
*/
|
|
95
|
+
postDispatchItemLaunchRaw(requestParameters: PostDispatchItemLaunchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostDispatchItemLaunchResponse>>;
|
|
96
|
+
/**
|
|
97
|
+
* Start or resume a selected hosted course item
|
|
98
|
+
*/
|
|
99
|
+
postDispatchItemLaunch(requestParameters: PostDispatchItemLaunchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostDispatchItemLaunchResponse>;
|
|
32
100
|
/**
|
|
33
101
|
* Creates request options for postDispatchLaunch without sending the request
|
|
34
102
|
*/
|
|
35
|
-
postDispatchLaunchRequestOpts(): Promise<runtime.RequestOpts>;
|
|
103
|
+
postDispatchLaunchRequestOpts(requestParameters: PostDispatchLaunchRequest): Promise<runtime.RequestOpts>;
|
|
36
104
|
/**
|
|
37
105
|
* Launch a dispatch package
|
|
38
106
|
*/
|
|
39
|
-
postDispatchLaunchRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
107
|
+
postDispatchLaunchRaw(requestParameters: PostDispatchLaunchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostDispatchLaunchResponse>>;
|
|
40
108
|
/**
|
|
41
109
|
* Launch a dispatch package
|
|
42
110
|
*/
|
|
43
|
-
postDispatchLaunch(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
111
|
+
postDispatchLaunch(requestParameters: PostDispatchLaunchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostDispatchLaunchResponse>;
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for postDispatchQuizSessionSubmit without sending the request
|
|
114
|
+
*/
|
|
115
|
+
postDispatchQuizSessionSubmitRequestOpts(requestParameters: PostDispatchQuizSessionSubmitRequest): Promise<runtime.RequestOpts>;
|
|
116
|
+
/**
|
|
117
|
+
* Submit a registration-owned native quiz session
|
|
118
|
+
*/
|
|
119
|
+
postDispatchQuizSessionSubmitRaw(requestParameters: PostDispatchQuizSessionSubmitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetLibraryQuizResult>>;
|
|
120
|
+
/**
|
|
121
|
+
* Submit a registration-owned native quiz session
|
|
122
|
+
*/
|
|
123
|
+
postDispatchQuizSessionSubmit(requestParameters: PostDispatchQuizSessionSubmitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizResult>;
|
|
124
|
+
/**
|
|
125
|
+
* Creates request options for postDispatchTokenExchange without sending the request
|
|
126
|
+
*/
|
|
127
|
+
postDispatchTokenExchangeRequestOpts(requestParameters: PostDispatchTokenExchangeRequest): Promise<runtime.RequestOpts>;
|
|
128
|
+
/**
|
|
129
|
+
* Exchange a one-time hosted SCORM launch code
|
|
130
|
+
*/
|
|
131
|
+
postDispatchTokenExchangeRaw(requestParameters: PostDispatchTokenExchangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DispatchTokenResponse>>;
|
|
132
|
+
/**
|
|
133
|
+
* Exchange a one-time hosted SCORM launch code
|
|
134
|
+
*/
|
|
135
|
+
postDispatchTokenExchange(requestParameters: PostDispatchTokenExchangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DispatchTokenResponse>;
|
|
136
|
+
/**
|
|
137
|
+
* Creates request options for postDispatchTokenRefresh without sending the request
|
|
138
|
+
*/
|
|
139
|
+
postDispatchTokenRefreshRequestOpts(): Promise<runtime.RequestOpts>;
|
|
140
|
+
/**
|
|
141
|
+
* Rotate a valid hosted SCORM access token
|
|
142
|
+
*/
|
|
143
|
+
postDispatchTokenRefreshRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DispatchTokenResponse>>;
|
|
144
|
+
/**
|
|
145
|
+
* Rotate a valid hosted SCORM access token
|
|
146
|
+
*/
|
|
147
|
+
postDispatchTokenRefresh(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DispatchTokenResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* Creates request options for putDispatchQuizSessionAnswer without sending the request
|
|
150
|
+
*/
|
|
151
|
+
putDispatchQuizSessionAnswerRequestOpts(requestParameters: PutDispatchQuizSessionAnswerRequest): Promise<runtime.RequestOpts>;
|
|
152
|
+
/**
|
|
153
|
+
* Save a registration-owned native quiz answer
|
|
154
|
+
*/
|
|
155
|
+
putDispatchQuizSessionAnswerRaw(requestParameters: PutDispatchQuizSessionAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetLibraryQuizSession>>;
|
|
156
|
+
/**
|
|
157
|
+
* Save a registration-owned native quiz answer
|
|
158
|
+
*/
|
|
159
|
+
putDispatchQuizSessionAnswer(requestParameters: PutDispatchQuizSessionAnswerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetLibraryQuizSession>;
|
|
44
160
|
}
|
package/dist/apis/DispatchApi.js
CHANGED
|
@@ -24,10 +24,95 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.DispatchApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const DispatchTokenResponse_1 = require("../models/DispatchTokenResponse");
|
|
28
|
+
const GetDispatchCourse_1 = require("../models/GetDispatchCourse");
|
|
29
|
+
const GetDispatchRollup_1 = require("../models/GetDispatchRollup");
|
|
30
|
+
const GetLibraryQuizResult_1 = require("../models/GetLibraryQuizResult");
|
|
31
|
+
const GetLibraryQuizSession_1 = require("../models/GetLibraryQuizSession");
|
|
32
|
+
const PostDispatchItemLaunch_1 = require("../models/PostDispatchItemLaunch");
|
|
33
|
+
const PostDispatchItemLaunchResponse_1 = require("../models/PostDispatchItemLaunchResponse");
|
|
34
|
+
const PostDispatchLaunch_1 = require("../models/PostDispatchLaunch");
|
|
35
|
+
const PostDispatchLaunchResponse_1 = require("../models/PostDispatchLaunchResponse");
|
|
36
|
+
const PostDispatchTokenExchange_1 = require("../models/PostDispatchTokenExchange");
|
|
37
|
+
const PutLibraryQuizSessionAnswer_1 = require("../models/PutLibraryQuizSessionAnswer");
|
|
27
38
|
/**
|
|
28
39
|
*
|
|
29
40
|
*/
|
|
30
41
|
class DispatchApi extends runtime.BaseAPI {
|
|
42
|
+
/**
|
|
43
|
+
* Creates request options for getDispatchCourse without sending the request
|
|
44
|
+
*/
|
|
45
|
+
getDispatchCourseRequestOpts() {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
const queryParameters = {};
|
|
48
|
+
const headerParameters = {};
|
|
49
|
+
let urlPath = `/dispatch/runtime/course`;
|
|
50
|
+
return {
|
|
51
|
+
path: urlPath,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get the registration-scoped hosted course snapshot
|
|
60
|
+
*/
|
|
61
|
+
getDispatchCourseRaw(initOverrides) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const requestOptions = yield this.getDispatchCourseRequestOpts();
|
|
64
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
65
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetDispatchCourse_1.GetDispatchCourseFromJSON)(jsonValue));
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Get the registration-scoped hosted course snapshot
|
|
70
|
+
*/
|
|
71
|
+
getDispatchCourse(initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const response = yield this.getDispatchCourseRaw(initOverrides);
|
|
74
|
+
return yield response.value();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Creates request options for getDispatchQuizSession without sending the request
|
|
79
|
+
*/
|
|
80
|
+
getDispatchQuizSessionRequestOpts(requestParameters) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
if (requestParameters['sessionId'] == null) {
|
|
83
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getDispatchQuizSession().');
|
|
84
|
+
}
|
|
85
|
+
const queryParameters = {};
|
|
86
|
+
const headerParameters = {};
|
|
87
|
+
let urlPath = `/dispatch/runtime/quiz-sessions/{sessionId}`;
|
|
88
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
89
|
+
return {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'GET',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Get a registration-owned native quiz session
|
|
99
|
+
*/
|
|
100
|
+
getDispatchQuizSessionRaw(requestParameters, initOverrides) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const requestOptions = yield this.getDispatchQuizSessionRequestOpts(requestParameters);
|
|
103
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
104
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetLibraryQuizSession_1.GetLibraryQuizSessionFromJSON)(jsonValue));
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get a registration-owned native quiz session
|
|
109
|
+
*/
|
|
110
|
+
getDispatchQuizSession(requestParameters, initOverrides) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
const response = yield this.getDispatchQuizSessionRaw(requestParameters, initOverrides);
|
|
113
|
+
return yield response.value();
|
|
114
|
+
});
|
|
115
|
+
}
|
|
31
116
|
/**
|
|
32
117
|
* Creates request options for getDispatchRollup without sending the request
|
|
33
118
|
*/
|
|
@@ -55,7 +140,7 @@ class DispatchApi extends runtime.BaseAPI {
|
|
|
55
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
141
|
const requestOptions = yield this.getDispatchRollupRequestOpts(requestParameters);
|
|
57
142
|
const response = yield this.request(requestOptions, initOverrides);
|
|
58
|
-
return new runtime.
|
|
143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetDispatchRollup_1.GetDispatchRollupFromJSON)(jsonValue));
|
|
59
144
|
});
|
|
60
145
|
}
|
|
61
146
|
/**
|
|
@@ -63,41 +148,251 @@ class DispatchApi extends runtime.BaseAPI {
|
|
|
63
148
|
*/
|
|
64
149
|
getDispatchRollup(requestParameters, initOverrides) {
|
|
65
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
yield this.getDispatchRollupRaw(requestParameters, initOverrides);
|
|
151
|
+
const response = yield this.getDispatchRollupRaw(requestParameters, initOverrides);
|
|
152
|
+
return yield response.value();
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Creates request options for postDispatchItemLaunch without sending the request
|
|
157
|
+
*/
|
|
158
|
+
postDispatchItemLaunchRequestOpts(requestParameters) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
if (requestParameters['itemId'] == null) {
|
|
161
|
+
throw new runtime.RequiredError('itemId', 'Required parameter "itemId" was null or undefined when calling postDispatchItemLaunch().');
|
|
162
|
+
}
|
|
163
|
+
const queryParameters = {};
|
|
164
|
+
const headerParameters = {};
|
|
165
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
166
|
+
let urlPath = `/dispatch/runtime/items/{itemId}/launch`;
|
|
167
|
+
urlPath = urlPath.replace('{itemId}', encodeURIComponent(String(requestParameters['itemId'])));
|
|
168
|
+
return {
|
|
169
|
+
path: urlPath,
|
|
170
|
+
method: 'POST',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
body: (0, PostDispatchItemLaunch_1.PostDispatchItemLaunchToJSON)(requestParameters['postDispatchItemLaunch']),
|
|
174
|
+
};
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Start or resume a selected hosted course item
|
|
179
|
+
*/
|
|
180
|
+
postDispatchItemLaunchRaw(requestParameters, initOverrides) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
const requestOptions = yield this.postDispatchItemLaunchRequestOpts(requestParameters);
|
|
183
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostDispatchItemLaunchResponse_1.PostDispatchItemLaunchResponseFromJSON)(jsonValue));
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Start or resume a selected hosted course item
|
|
189
|
+
*/
|
|
190
|
+
postDispatchItemLaunch(requestParameters, initOverrides) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
const response = yield this.postDispatchItemLaunchRaw(requestParameters, initOverrides);
|
|
193
|
+
return yield response.value();
|
|
67
194
|
});
|
|
68
195
|
}
|
|
69
196
|
/**
|
|
70
197
|
* Creates request options for postDispatchLaunch without sending the request
|
|
71
198
|
*/
|
|
72
|
-
postDispatchLaunchRequestOpts() {
|
|
199
|
+
postDispatchLaunchRequestOpts(requestParameters) {
|
|
73
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
if (requestParameters['postDispatchLaunch'] == null) {
|
|
202
|
+
throw new runtime.RequiredError('postDispatchLaunch', 'Required parameter "postDispatchLaunch" was null or undefined when calling postDispatchLaunch().');
|
|
203
|
+
}
|
|
74
204
|
const queryParameters = {};
|
|
75
205
|
const headerParameters = {};
|
|
206
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
76
207
|
let urlPath = `/dispatch/launch`;
|
|
77
208
|
return {
|
|
78
209
|
path: urlPath,
|
|
79
210
|
method: 'POST',
|
|
80
211
|
headers: headerParameters,
|
|
81
212
|
query: queryParameters,
|
|
213
|
+
body: (0, PostDispatchLaunch_1.PostDispatchLaunchToJSON)(requestParameters['postDispatchLaunch']),
|
|
82
214
|
};
|
|
83
215
|
});
|
|
84
216
|
}
|
|
85
217
|
/**
|
|
86
218
|
* Launch a dispatch package
|
|
87
219
|
*/
|
|
88
|
-
postDispatchLaunchRaw(initOverrides) {
|
|
220
|
+
postDispatchLaunchRaw(requestParameters, initOverrides) {
|
|
89
221
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
const requestOptions = yield this.postDispatchLaunchRequestOpts();
|
|
222
|
+
const requestOptions = yield this.postDispatchLaunchRequestOpts(requestParameters);
|
|
91
223
|
const response = yield this.request(requestOptions, initOverrides);
|
|
92
|
-
return new runtime.
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostDispatchLaunchResponse_1.PostDispatchLaunchResponseFromJSON)(jsonValue));
|
|
93
225
|
});
|
|
94
226
|
}
|
|
95
227
|
/**
|
|
96
228
|
* Launch a dispatch package
|
|
97
229
|
*/
|
|
98
|
-
postDispatchLaunch(initOverrides) {
|
|
230
|
+
postDispatchLaunch(requestParameters, initOverrides) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
const response = yield this.postDispatchLaunchRaw(requestParameters, initOverrides);
|
|
233
|
+
return yield response.value();
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Creates request options for postDispatchQuizSessionSubmit without sending the request
|
|
238
|
+
*/
|
|
239
|
+
postDispatchQuizSessionSubmitRequestOpts(requestParameters) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
if (requestParameters['sessionId'] == null) {
|
|
242
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling postDispatchQuizSessionSubmit().');
|
|
243
|
+
}
|
|
244
|
+
const queryParameters = {};
|
|
245
|
+
const headerParameters = {};
|
|
246
|
+
let urlPath = `/dispatch/runtime/quiz-sessions/{sessionId}/submit`;
|
|
247
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
248
|
+
return {
|
|
249
|
+
path: urlPath,
|
|
250
|
+
method: 'POST',
|
|
251
|
+
headers: headerParameters,
|
|
252
|
+
query: queryParameters,
|
|
253
|
+
};
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Submit a registration-owned native quiz session
|
|
258
|
+
*/
|
|
259
|
+
postDispatchQuizSessionSubmitRaw(requestParameters, initOverrides) {
|
|
260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
const requestOptions = yield this.postDispatchQuizSessionSubmitRequestOpts(requestParameters);
|
|
262
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
263
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetLibraryQuizResult_1.GetLibraryQuizResultFromJSON)(jsonValue));
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Submit a registration-owned native quiz session
|
|
268
|
+
*/
|
|
269
|
+
postDispatchQuizSessionSubmit(requestParameters, initOverrides) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
const response = yield this.postDispatchQuizSessionSubmitRaw(requestParameters, initOverrides);
|
|
272
|
+
return yield response.value();
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Creates request options for postDispatchTokenExchange without sending the request
|
|
277
|
+
*/
|
|
278
|
+
postDispatchTokenExchangeRequestOpts(requestParameters) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
if (requestParameters['postDispatchTokenExchange'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('postDispatchTokenExchange', 'Required parameter "postDispatchTokenExchange" was null or undefined when calling postDispatchTokenExchange().');
|
|
282
|
+
}
|
|
283
|
+
const queryParameters = {};
|
|
284
|
+
const headerParameters = {};
|
|
285
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
286
|
+
let urlPath = `/dispatch/runtime/token`;
|
|
287
|
+
return {
|
|
288
|
+
path: urlPath,
|
|
289
|
+
method: 'POST',
|
|
290
|
+
headers: headerParameters,
|
|
291
|
+
query: queryParameters,
|
|
292
|
+
body: (0, PostDispatchTokenExchange_1.PostDispatchTokenExchangeToJSON)(requestParameters['postDispatchTokenExchange']),
|
|
293
|
+
};
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Exchange a one-time hosted SCORM launch code
|
|
298
|
+
*/
|
|
299
|
+
postDispatchTokenExchangeRaw(requestParameters, initOverrides) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
const requestOptions = yield this.postDispatchTokenExchangeRequestOpts(requestParameters);
|
|
302
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
303
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DispatchTokenResponse_1.DispatchTokenResponseFromJSON)(jsonValue));
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Exchange a one-time hosted SCORM launch code
|
|
308
|
+
*/
|
|
309
|
+
postDispatchTokenExchange(requestParameters, initOverrides) {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
+
const response = yield this.postDispatchTokenExchangeRaw(requestParameters, initOverrides);
|
|
312
|
+
return yield response.value();
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Creates request options for postDispatchTokenRefresh without sending the request
|
|
317
|
+
*/
|
|
318
|
+
postDispatchTokenRefreshRequestOpts() {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
+
const queryParameters = {};
|
|
321
|
+
const headerParameters = {};
|
|
322
|
+
let urlPath = `/dispatch/runtime/token/refresh`;
|
|
323
|
+
return {
|
|
324
|
+
path: urlPath,
|
|
325
|
+
method: 'POST',
|
|
326
|
+
headers: headerParameters,
|
|
327
|
+
query: queryParameters,
|
|
328
|
+
};
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Rotate a valid hosted SCORM access token
|
|
333
|
+
*/
|
|
334
|
+
postDispatchTokenRefreshRaw(initOverrides) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
const requestOptions = yield this.postDispatchTokenRefreshRequestOpts();
|
|
337
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
338
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DispatchTokenResponse_1.DispatchTokenResponseFromJSON)(jsonValue));
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Rotate a valid hosted SCORM access token
|
|
343
|
+
*/
|
|
344
|
+
postDispatchTokenRefresh(initOverrides) {
|
|
345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
346
|
+
const response = yield this.postDispatchTokenRefreshRaw(initOverrides);
|
|
347
|
+
return yield response.value();
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Creates request options for putDispatchQuizSessionAnswer without sending the request
|
|
352
|
+
*/
|
|
353
|
+
putDispatchQuizSessionAnswerRequestOpts(requestParameters) {
|
|
354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
355
|
+
if (requestParameters['sessionId'] == null) {
|
|
356
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling putDispatchQuizSessionAnswer().');
|
|
357
|
+
}
|
|
358
|
+
if (requestParameters['sessionQuestionId'] == null) {
|
|
359
|
+
throw new runtime.RequiredError('sessionQuestionId', 'Required parameter "sessionQuestionId" was null or undefined when calling putDispatchQuizSessionAnswer().');
|
|
360
|
+
}
|
|
361
|
+
if (requestParameters['putLibraryQuizSessionAnswer'] == null) {
|
|
362
|
+
throw new runtime.RequiredError('putLibraryQuizSessionAnswer', 'Required parameter "putLibraryQuizSessionAnswer" was null or undefined when calling putDispatchQuizSessionAnswer().');
|
|
363
|
+
}
|
|
364
|
+
const queryParameters = {};
|
|
365
|
+
const headerParameters = {};
|
|
366
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
367
|
+
let urlPath = `/dispatch/runtime/quiz-sessions/{sessionId}/answers/{sessionQuestionId}`;
|
|
368
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
369
|
+
urlPath = urlPath.replace('{sessionQuestionId}', encodeURIComponent(String(requestParameters['sessionQuestionId'])));
|
|
370
|
+
return {
|
|
371
|
+
path: urlPath,
|
|
372
|
+
method: 'PUT',
|
|
373
|
+
headers: headerParameters,
|
|
374
|
+
query: queryParameters,
|
|
375
|
+
body: (0, PutLibraryQuizSessionAnswer_1.PutLibraryQuizSessionAnswerToJSON)(requestParameters['putLibraryQuizSessionAnswer']),
|
|
376
|
+
};
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Save a registration-owned native quiz answer
|
|
381
|
+
*/
|
|
382
|
+
putDispatchQuizSessionAnswerRaw(requestParameters, initOverrides) {
|
|
383
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
384
|
+
const requestOptions = yield this.putDispatchQuizSessionAnswerRequestOpts(requestParameters);
|
|
385
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
386
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetLibraryQuizSession_1.GetLibraryQuizSessionFromJSON)(jsonValue));
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Save a registration-owned native quiz answer
|
|
391
|
+
*/
|
|
392
|
+
putDispatchQuizSessionAnswer(requestParameters, initOverrides) {
|
|
99
393
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
yield this.
|
|
394
|
+
const response = yield this.putDispatchQuizSessionAnswerRaw(requestParameters, initOverrides);
|
|
395
|
+
return yield response.value();
|
|
101
396
|
});
|
|
102
397
|
}
|
|
103
398
|
}
|
package/dist/apis/PlayerApi.d.ts
CHANGED
|
@@ -23,8 +23,12 @@ import { type PutResourceSessionOverride } from '../models/PutResourceSessionOve
|
|
|
23
23
|
import { type ResourceSessionEnvironment } from '../models/ResourceSessionEnvironment';
|
|
24
24
|
import { type ResourceType } from '../models/ResourceType';
|
|
25
25
|
import { type ScormGetValueResponse } from '../models/ScormGetValueResponse';
|
|
26
|
+
import { type ScormNavigationRequest } from '../models/ScormNavigationRequest';
|
|
27
|
+
import { type ScormNavigationResponse } from '../models/ScormNavigationResponse';
|
|
28
|
+
import { type ScormRuntimeResponse } from '../models/ScormRuntimeResponse';
|
|
26
29
|
import { type ScormSetValueRequest } from '../models/ScormSetValueRequest';
|
|
27
30
|
import { type ScormSetValueResponse } from '../models/ScormSetValueResponse';
|
|
31
|
+
import { type ScormTerminateResponse } from '../models/ScormTerminateResponse';
|
|
28
32
|
export interface CommitResourceScormSessionRequest {
|
|
29
33
|
sessionId: string;
|
|
30
34
|
activityId?: string;
|
|
@@ -100,6 +104,10 @@ export interface InitializeResourceScormSessionRequest {
|
|
|
100
104
|
sessionId: string;
|
|
101
105
|
activityId?: string;
|
|
102
106
|
}
|
|
107
|
+
export interface NavigateResourceScormSessionRequest {
|
|
108
|
+
sessionId: string;
|
|
109
|
+
scormNavigationRequest: ScormNavigationRequest;
|
|
110
|
+
}
|
|
103
111
|
export interface PostResourceSessionActivityEventRequest {
|
|
104
112
|
sessionId: string;
|
|
105
113
|
activityId: string;
|
|
@@ -132,11 +140,11 @@ export declare class PlayerApi extends runtime.BaseAPI {
|
|
|
132
140
|
/**
|
|
133
141
|
* Commit a reusable SCORM resource session
|
|
134
142
|
*/
|
|
135
|
-
commitResourceScormSessionRaw(requestParameters: CommitResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
143
|
+
commitResourceScormSessionRaw(requestParameters: CommitResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScormRuntimeResponse>>;
|
|
136
144
|
/**
|
|
137
145
|
* Commit a reusable SCORM resource session
|
|
138
146
|
*/
|
|
139
|
-
commitResourceScormSession(requestParameters: CommitResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
147
|
+
commitResourceScormSession(requestParameters: CommitResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScormRuntimeResponse>;
|
|
140
148
|
/**
|
|
141
149
|
* Creates request options for getCourseVersionResourceAsset without sending the request
|
|
142
150
|
*/
|
|
@@ -288,11 +296,23 @@ export declare class PlayerApi extends runtime.BaseAPI {
|
|
|
288
296
|
/**
|
|
289
297
|
* Initialize a reusable SCORM resource session
|
|
290
298
|
*/
|
|
291
|
-
initializeResourceScormSessionRaw(requestParameters: InitializeResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
299
|
+
initializeResourceScormSessionRaw(requestParameters: InitializeResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScormRuntimeResponse>>;
|
|
292
300
|
/**
|
|
293
301
|
* Initialize a reusable SCORM resource session
|
|
294
302
|
*/
|
|
295
|
-
initializeResourceScormSession(requestParameters: InitializeResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
303
|
+
initializeResourceScormSession(requestParameters: InitializeResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScormRuntimeResponse>;
|
|
304
|
+
/**
|
|
305
|
+
* Creates request options for navigateResourceScormSession without sending the request
|
|
306
|
+
*/
|
|
307
|
+
navigateResourceScormSessionRequestOpts(requestParameters: NavigateResourceScormSessionRequest): Promise<runtime.RequestOpts>;
|
|
308
|
+
/**
|
|
309
|
+
* Process a SCORM 2004 sequencing and navigation request
|
|
310
|
+
*/
|
|
311
|
+
navigateResourceScormSessionRaw(requestParameters: NavigateResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScormNavigationResponse>>;
|
|
312
|
+
/**
|
|
313
|
+
* Process a SCORM 2004 sequencing and navigation request
|
|
314
|
+
*/
|
|
315
|
+
navigateResourceScormSession(requestParameters: NavigateResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScormNavigationResponse>;
|
|
296
316
|
/**
|
|
297
317
|
* Creates request options for postResourceSessionActivityEvent without sending the request
|
|
298
318
|
*/
|
|
@@ -348,11 +368,11 @@ export declare class PlayerApi extends runtime.BaseAPI {
|
|
|
348
368
|
/**
|
|
349
369
|
* Terminate a reusable SCORM resource session
|
|
350
370
|
*/
|
|
351
|
-
terminateResourceScormSessionRaw(requestParameters: TerminateResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
371
|
+
terminateResourceScormSessionRaw(requestParameters: TerminateResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScormTerminateResponse>>;
|
|
352
372
|
/**
|
|
353
373
|
* Terminate a reusable SCORM resource session
|
|
354
374
|
*/
|
|
355
|
-
terminateResourceScormSession(requestParameters: TerminateResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
375
|
+
terminateResourceScormSession(requestParameters: TerminateResourceScormSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScormTerminateResponse>;
|
|
356
376
|
}
|
|
357
377
|
/**
|
|
358
378
|
* @export
|