@easyedu/js-lsm-api 1.61.0 → 1.63.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 +4 -0
- package/README.md +15 -2
- package/dist/apis/DispatchApi.d.ts +44 -0
- package/dist/apis/DispatchApi.js +104 -0
- package/dist/apis/PlayerApi.d.ts +183 -0
- package/dist/apis/PlayerApi.js +454 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/DispatchApi.d.ts +44 -0
- package/dist/esm/apis/DispatchApi.js +100 -0
- package/dist/esm/apis/PlayerApi.d.ts +183 -0
- package/dist/esm/apis/PlayerApi.js +450 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/PostLogin.d.ts +6 -0
- package/dist/esm/models/PostLogin.js +2 -0
- package/dist/models/PostLogin.d.ts +6 -0
- package/dist/models/PostLogin.js +2 -0
- package/docs/DispatchApi.md +134 -0
- package/docs/PlayerApi.md +760 -0
- package/docs/PostLogin.md +2 -0
- package/package.json +1 -1
- package/src/apis/DispatchApi.ts +106 -0
- package/src/apis/PlayerApi.ts +559 -0
- package/src/apis/index.ts +2 -0
- package/src/models/PostLogin.ts +8 -0
package/docs/PostLogin.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`email` | string
|
|
10
10
|
`password` | string
|
|
11
|
+
`rememberMe` | boolean
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ import type { PostLogin } from '@easyedu/js-lsm-api'
|
|
|
18
19
|
const example = {
|
|
19
20
|
"email": null,
|
|
20
21
|
"password": null,
|
|
22
|
+
"rememberMe": null,
|
|
21
23
|
} satisfies PostLogin
|
|
22
24
|
|
|
23
25
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
|
|
17
|
+
export interface GetDispatchRollupRequest {
|
|
18
|
+
dispatchPackageId: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export class DispatchApi extends runtime.BaseAPI {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Creates request options for getDispatchRollup without sending the request
|
|
28
|
+
*/
|
|
29
|
+
async getDispatchRollupRequestOpts(requestParameters: GetDispatchRollupRequest): Promise<runtime.RequestOpts> {
|
|
30
|
+
if (requestParameters['dispatchPackageId'] == null) {
|
|
31
|
+
throw new runtime.RequiredError(
|
|
32
|
+
'dispatchPackageId',
|
|
33
|
+
'Required parameter "dispatchPackageId" was null or undefined when calling getDispatchRollup().'
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const queryParameters: any = {};
|
|
38
|
+
|
|
39
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
let urlPath = `/dispatch/sessions/{dispatchPackageId}/rollup`;
|
|
43
|
+
urlPath = urlPath.replace('{dispatchPackageId}', encodeURIComponent(String(requestParameters['dispatchPackageId'])));
|
|
44
|
+
|
|
45
|
+
return {
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'GET',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get dispatch package rollup data
|
|
55
|
+
*/
|
|
56
|
+
async getDispatchRollupRaw(requestParameters: GetDispatchRollupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
57
|
+
const requestOptions = await this.getDispatchRollupRequestOpts(requestParameters);
|
|
58
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
59
|
+
|
|
60
|
+
return new runtime.VoidApiResponse(response);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Get dispatch package rollup data
|
|
65
|
+
*/
|
|
66
|
+
async getDispatchRollup(requestParameters: GetDispatchRollupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
67
|
+
await this.getDispatchRollupRaw(requestParameters, initOverrides);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for postDispatchLaunch without sending the request
|
|
72
|
+
*/
|
|
73
|
+
async postDispatchLaunchRequestOpts(): Promise<runtime.RequestOpts> {
|
|
74
|
+
const queryParameters: any = {};
|
|
75
|
+
|
|
76
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
let urlPath = `/dispatch/launch`;
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
path: urlPath,
|
|
83
|
+
method: 'POST',
|
|
84
|
+
headers: headerParameters,
|
|
85
|
+
query: queryParameters,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Launch a dispatch package
|
|
91
|
+
*/
|
|
92
|
+
async postDispatchLaunchRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
93
|
+
const requestOptions = await this.postDispatchLaunchRequestOpts();
|
|
94
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
95
|
+
|
|
96
|
+
return new runtime.VoidApiResponse(response);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Launch a dispatch package
|
|
101
|
+
*/
|
|
102
|
+
async postDispatchLaunch(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
103
|
+
await this.postDispatchLaunchRaw(initOverrides);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
}
|
|
@@ -0,0 +1,559 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
|
|
17
|
+
export interface GetDispatchScormPlayerRequest {
|
|
18
|
+
sessionId: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface GetFileAssetRequest {
|
|
22
|
+
contentId: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface GetFilePlayerRequest {
|
|
26
|
+
sessionId: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface GetImagePlayerRequest {
|
|
30
|
+
sessionId: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface GetPdfAssetRequest {
|
|
34
|
+
contentId: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface GetPdfPlayerRequest {
|
|
38
|
+
sessionId: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface GetQuizPlayerRequest {
|
|
42
|
+
sessionId: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface GetScormAssetRequest {
|
|
46
|
+
contentId: string;
|
|
47
|
+
assetPath: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface GetScormPlayerRequest {
|
|
51
|
+
sessionId: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface GetVideoAssetRequest {
|
|
55
|
+
contentId: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface GetVideoPlayerRequest {
|
|
59
|
+
sessionId: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
export class PlayerApi extends runtime.BaseAPI {
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Creates request options for getDispatchScormPlayer without sending the request
|
|
69
|
+
*/
|
|
70
|
+
async getDispatchScormPlayerRequestOpts(requestParameters: GetDispatchScormPlayerRequest): Promise<runtime.RequestOpts> {
|
|
71
|
+
if (requestParameters['sessionId'] == null) {
|
|
72
|
+
throw new runtime.RequiredError(
|
|
73
|
+
'sessionId',
|
|
74
|
+
'Required parameter "sessionId" was null or undefined when calling getDispatchScormPlayer().'
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const queryParameters: any = {};
|
|
79
|
+
|
|
80
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
let urlPath = `/scorm/dispatch/session/{sessionId}/player`;
|
|
84
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
path: urlPath,
|
|
88
|
+
method: 'GET',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Dispatch SCORM player HTML page
|
|
96
|
+
*/
|
|
97
|
+
async getDispatchScormPlayerRaw(requestParameters: GetDispatchScormPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
98
|
+
const requestOptions = await this.getDispatchScormPlayerRequestOpts(requestParameters);
|
|
99
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
100
|
+
|
|
101
|
+
return new runtime.VoidApiResponse(response);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Dispatch SCORM player HTML page
|
|
106
|
+
*/
|
|
107
|
+
async getDispatchScormPlayer(requestParameters: GetDispatchScormPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
108
|
+
await this.getDispatchScormPlayerRaw(requestParameters, initOverrides);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Creates request options for getFileAsset without sending the request
|
|
113
|
+
*/
|
|
114
|
+
async getFileAssetRequestOpts(requestParameters: GetFileAssetRequest): Promise<runtime.RequestOpts> {
|
|
115
|
+
if (requestParameters['contentId'] == null) {
|
|
116
|
+
throw new runtime.RequiredError(
|
|
117
|
+
'contentId',
|
|
118
|
+
'Required parameter "contentId" was null or undefined when calling getFileAsset().'
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const queryParameters: any = {};
|
|
123
|
+
|
|
124
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
let urlPath = `/file/{contentId}/asset`;
|
|
128
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
path: urlPath,
|
|
132
|
+
method: 'GET',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* File asset
|
|
140
|
+
*/
|
|
141
|
+
async getFileAssetRaw(requestParameters: GetFileAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
142
|
+
const requestOptions = await this.getFileAssetRequestOpts(requestParameters);
|
|
143
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
144
|
+
|
|
145
|
+
return new runtime.VoidApiResponse(response);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* File asset
|
|
150
|
+
*/
|
|
151
|
+
async getFileAsset(requestParameters: GetFileAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
152
|
+
await this.getFileAssetRaw(requestParameters, initOverrides);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Creates request options for getFilePlayer without sending the request
|
|
157
|
+
*/
|
|
158
|
+
async getFilePlayerRequestOpts(requestParameters: GetFilePlayerRequest): Promise<runtime.RequestOpts> {
|
|
159
|
+
if (requestParameters['sessionId'] == null) {
|
|
160
|
+
throw new runtime.RequiredError(
|
|
161
|
+
'sessionId',
|
|
162
|
+
'Required parameter "sessionId" was null or undefined when calling getFilePlayer().'
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const queryParameters: any = {};
|
|
167
|
+
|
|
168
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
let urlPath = `/file/session/{sessionId}/player`;
|
|
172
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
173
|
+
|
|
174
|
+
return {
|
|
175
|
+
path: urlPath,
|
|
176
|
+
method: 'GET',
|
|
177
|
+
headers: headerParameters,
|
|
178
|
+
query: queryParameters,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* File player HTML page
|
|
184
|
+
*/
|
|
185
|
+
async getFilePlayerRaw(requestParameters: GetFilePlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
186
|
+
const requestOptions = await this.getFilePlayerRequestOpts(requestParameters);
|
|
187
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
188
|
+
|
|
189
|
+
return new runtime.VoidApiResponse(response);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* File player HTML page
|
|
194
|
+
*/
|
|
195
|
+
async getFilePlayer(requestParameters: GetFilePlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
196
|
+
await this.getFilePlayerRaw(requestParameters, initOverrides);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Creates request options for getImagePlayer without sending the request
|
|
201
|
+
*/
|
|
202
|
+
async getImagePlayerRequestOpts(requestParameters: GetImagePlayerRequest): Promise<runtime.RequestOpts> {
|
|
203
|
+
if (requestParameters['sessionId'] == null) {
|
|
204
|
+
throw new runtime.RequiredError(
|
|
205
|
+
'sessionId',
|
|
206
|
+
'Required parameter "sessionId" was null or undefined when calling getImagePlayer().'
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const queryParameters: any = {};
|
|
211
|
+
|
|
212
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
let urlPath = `/image/session/{sessionId}/player`;
|
|
216
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
217
|
+
|
|
218
|
+
return {
|
|
219
|
+
path: urlPath,
|
|
220
|
+
method: 'GET',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Image player HTML page
|
|
228
|
+
*/
|
|
229
|
+
async getImagePlayerRaw(requestParameters: GetImagePlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
230
|
+
const requestOptions = await this.getImagePlayerRequestOpts(requestParameters);
|
|
231
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
232
|
+
|
|
233
|
+
return new runtime.VoidApiResponse(response);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Image player HTML page
|
|
238
|
+
*/
|
|
239
|
+
async getImagePlayer(requestParameters: GetImagePlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
240
|
+
await this.getImagePlayerRaw(requestParameters, initOverrides);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Creates request options for getPdfAsset without sending the request
|
|
245
|
+
*/
|
|
246
|
+
async getPdfAssetRequestOpts(requestParameters: GetPdfAssetRequest): Promise<runtime.RequestOpts> {
|
|
247
|
+
if (requestParameters['contentId'] == null) {
|
|
248
|
+
throw new runtime.RequiredError(
|
|
249
|
+
'contentId',
|
|
250
|
+
'Required parameter "contentId" was null or undefined when calling getPdfAsset().'
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
const queryParameters: any = {};
|
|
255
|
+
|
|
256
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
let urlPath = `/pdf/{contentId}/asset`;
|
|
260
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
261
|
+
|
|
262
|
+
return {
|
|
263
|
+
path: urlPath,
|
|
264
|
+
method: 'GET',
|
|
265
|
+
headers: headerParameters,
|
|
266
|
+
query: queryParameters,
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* PDF asset
|
|
272
|
+
*/
|
|
273
|
+
async getPdfAssetRaw(requestParameters: GetPdfAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
274
|
+
const requestOptions = await this.getPdfAssetRequestOpts(requestParameters);
|
|
275
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
276
|
+
|
|
277
|
+
return new runtime.VoidApiResponse(response);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* PDF asset
|
|
282
|
+
*/
|
|
283
|
+
async getPdfAsset(requestParameters: GetPdfAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
284
|
+
await this.getPdfAssetRaw(requestParameters, initOverrides);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Creates request options for getPdfPlayer without sending the request
|
|
289
|
+
*/
|
|
290
|
+
async getPdfPlayerRequestOpts(requestParameters: GetPdfPlayerRequest): Promise<runtime.RequestOpts> {
|
|
291
|
+
if (requestParameters['sessionId'] == null) {
|
|
292
|
+
throw new runtime.RequiredError(
|
|
293
|
+
'sessionId',
|
|
294
|
+
'Required parameter "sessionId" was null or undefined when calling getPdfPlayer().'
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
const queryParameters: any = {};
|
|
299
|
+
|
|
300
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
let urlPath = `/pdf/session/{sessionId}/player`;
|
|
304
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
305
|
+
|
|
306
|
+
return {
|
|
307
|
+
path: urlPath,
|
|
308
|
+
method: 'GET',
|
|
309
|
+
headers: headerParameters,
|
|
310
|
+
query: queryParameters,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* PDF player HTML page
|
|
316
|
+
*/
|
|
317
|
+
async getPdfPlayerRaw(requestParameters: GetPdfPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
318
|
+
const requestOptions = await this.getPdfPlayerRequestOpts(requestParameters);
|
|
319
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
320
|
+
|
|
321
|
+
return new runtime.VoidApiResponse(response);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* PDF player HTML page
|
|
326
|
+
*/
|
|
327
|
+
async getPdfPlayer(requestParameters: GetPdfPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
328
|
+
await this.getPdfPlayerRaw(requestParameters, initOverrides);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Creates request options for getQuizPlayer without sending the request
|
|
333
|
+
*/
|
|
334
|
+
async getQuizPlayerRequestOpts(requestParameters: GetQuizPlayerRequest): Promise<runtime.RequestOpts> {
|
|
335
|
+
if (requestParameters['sessionId'] == null) {
|
|
336
|
+
throw new runtime.RequiredError(
|
|
337
|
+
'sessionId',
|
|
338
|
+
'Required parameter "sessionId" was null or undefined when calling getQuizPlayer().'
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
const queryParameters: any = {};
|
|
343
|
+
|
|
344
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
let urlPath = `/quiz/session/{sessionId}/player`;
|
|
348
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
349
|
+
|
|
350
|
+
return {
|
|
351
|
+
path: urlPath,
|
|
352
|
+
method: 'GET',
|
|
353
|
+
headers: headerParameters,
|
|
354
|
+
query: queryParameters,
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Quiz player HTML page
|
|
360
|
+
*/
|
|
361
|
+
async getQuizPlayerRaw(requestParameters: GetQuizPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
362
|
+
const requestOptions = await this.getQuizPlayerRequestOpts(requestParameters);
|
|
363
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
364
|
+
|
|
365
|
+
return new runtime.VoidApiResponse(response);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Quiz player HTML page
|
|
370
|
+
*/
|
|
371
|
+
async getQuizPlayer(requestParameters: GetQuizPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
372
|
+
await this.getQuizPlayerRaw(requestParameters, initOverrides);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Creates request options for getScormAsset without sending the request
|
|
377
|
+
*/
|
|
378
|
+
async getScormAssetRequestOpts(requestParameters: GetScormAssetRequest): Promise<runtime.RequestOpts> {
|
|
379
|
+
if (requestParameters['contentId'] == null) {
|
|
380
|
+
throw new runtime.RequiredError(
|
|
381
|
+
'contentId',
|
|
382
|
+
'Required parameter "contentId" was null or undefined when calling getScormAsset().'
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
if (requestParameters['assetPath'] == null) {
|
|
387
|
+
throw new runtime.RequiredError(
|
|
388
|
+
'assetPath',
|
|
389
|
+
'Required parameter "assetPath" was null or undefined when calling getScormAsset().'
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
const queryParameters: any = {};
|
|
394
|
+
|
|
395
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
let urlPath = `/scorm/{contentId}/scorm/asset/{assetPath}`;
|
|
399
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
400
|
+
urlPath = urlPath.replace('{assetPath}', encodeURIComponent(String(requestParameters['assetPath'])));
|
|
401
|
+
|
|
402
|
+
return {
|
|
403
|
+
path: urlPath,
|
|
404
|
+
method: 'GET',
|
|
405
|
+
headers: headerParameters,
|
|
406
|
+
query: queryParameters,
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* SCORM package asset
|
|
412
|
+
*/
|
|
413
|
+
async getScormAssetRaw(requestParameters: GetScormAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
414
|
+
const requestOptions = await this.getScormAssetRequestOpts(requestParameters);
|
|
415
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
416
|
+
|
|
417
|
+
return new runtime.VoidApiResponse(response);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* SCORM package asset
|
|
422
|
+
*/
|
|
423
|
+
async getScormAsset(requestParameters: GetScormAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
424
|
+
await this.getScormAssetRaw(requestParameters, initOverrides);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Creates request options for getScormPlayer without sending the request
|
|
429
|
+
*/
|
|
430
|
+
async getScormPlayerRequestOpts(requestParameters: GetScormPlayerRequest): Promise<runtime.RequestOpts> {
|
|
431
|
+
if (requestParameters['sessionId'] == null) {
|
|
432
|
+
throw new runtime.RequiredError(
|
|
433
|
+
'sessionId',
|
|
434
|
+
'Required parameter "sessionId" was null or undefined when calling getScormPlayer().'
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
const queryParameters: any = {};
|
|
439
|
+
|
|
440
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
let urlPath = `/scorm/session/{sessionId}/player`;
|
|
444
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
445
|
+
|
|
446
|
+
return {
|
|
447
|
+
path: urlPath,
|
|
448
|
+
method: 'GET',
|
|
449
|
+
headers: headerParameters,
|
|
450
|
+
query: queryParameters,
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* SCORM player HTML page
|
|
456
|
+
*/
|
|
457
|
+
async getScormPlayerRaw(requestParameters: GetScormPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
458
|
+
const requestOptions = await this.getScormPlayerRequestOpts(requestParameters);
|
|
459
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
460
|
+
|
|
461
|
+
return new runtime.VoidApiResponse(response);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* SCORM player HTML page
|
|
466
|
+
*/
|
|
467
|
+
async getScormPlayer(requestParameters: GetScormPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
468
|
+
await this.getScormPlayerRaw(requestParameters, initOverrides);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Creates request options for getVideoAsset without sending the request
|
|
473
|
+
*/
|
|
474
|
+
async getVideoAssetRequestOpts(requestParameters: GetVideoAssetRequest): Promise<runtime.RequestOpts> {
|
|
475
|
+
if (requestParameters['contentId'] == null) {
|
|
476
|
+
throw new runtime.RequiredError(
|
|
477
|
+
'contentId',
|
|
478
|
+
'Required parameter "contentId" was null or undefined when calling getVideoAsset().'
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
const queryParameters: any = {};
|
|
483
|
+
|
|
484
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
let urlPath = `/video/{contentId}/asset`;
|
|
488
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
489
|
+
|
|
490
|
+
return {
|
|
491
|
+
path: urlPath,
|
|
492
|
+
method: 'GET',
|
|
493
|
+
headers: headerParameters,
|
|
494
|
+
query: queryParameters,
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Video asset
|
|
500
|
+
*/
|
|
501
|
+
async getVideoAssetRaw(requestParameters: GetVideoAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
502
|
+
const requestOptions = await this.getVideoAssetRequestOpts(requestParameters);
|
|
503
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
504
|
+
|
|
505
|
+
return new runtime.VoidApiResponse(response);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Video asset
|
|
510
|
+
*/
|
|
511
|
+
async getVideoAsset(requestParameters: GetVideoAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
512
|
+
await this.getVideoAssetRaw(requestParameters, initOverrides);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Creates request options for getVideoPlayer without sending the request
|
|
517
|
+
*/
|
|
518
|
+
async getVideoPlayerRequestOpts(requestParameters: GetVideoPlayerRequest): Promise<runtime.RequestOpts> {
|
|
519
|
+
if (requestParameters['sessionId'] == null) {
|
|
520
|
+
throw new runtime.RequiredError(
|
|
521
|
+
'sessionId',
|
|
522
|
+
'Required parameter "sessionId" was null or undefined when calling getVideoPlayer().'
|
|
523
|
+
);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
const queryParameters: any = {};
|
|
527
|
+
|
|
528
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
let urlPath = `/video/session/{sessionId}/player`;
|
|
532
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
533
|
+
|
|
534
|
+
return {
|
|
535
|
+
path: urlPath,
|
|
536
|
+
method: 'GET',
|
|
537
|
+
headers: headerParameters,
|
|
538
|
+
query: queryParameters,
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Video player HTML page
|
|
544
|
+
*/
|
|
545
|
+
async getVideoPlayerRaw(requestParameters: GetVideoPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
546
|
+
const requestOptions = await this.getVideoPlayerRequestOpts(requestParameters);
|
|
547
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
548
|
+
|
|
549
|
+
return new runtime.VoidApiResponse(response);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Video player HTML page
|
|
554
|
+
*/
|
|
555
|
+
async getVideoPlayer(requestParameters: GetVideoPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
556
|
+
await this.getVideoPlayerRaw(requestParameters, initOverrides);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -6,8 +6,10 @@ export * from './ContentApi';
|
|
|
6
6
|
export * from './CourseApi';
|
|
7
7
|
export * from './CourseCatalogApi';
|
|
8
8
|
export * from './CourseShareApi';
|
|
9
|
+
export * from './DispatchApi';
|
|
9
10
|
export * from './ModuleApi';
|
|
10
11
|
export * from './OtherApi';
|
|
12
|
+
export * from './PlayerApi';
|
|
11
13
|
export * from './PortalApi';
|
|
12
14
|
export * from './PortalSublicenseApi';
|
|
13
15
|
export * from './QuestionApi';
|