@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.
@@ -16,6 +16,7 @@ docs/CourseShareApi.md
16
16
  docs/CriteriaBasedSelection.md
17
17
  docs/CriteriaBasedSelectionCriteria.md
18
18
  docs/CriteriaBasedSelectionDistribution.md
19
+ docs/DispatchApi.md
19
20
  docs/DownloadSupportTicketAttachment200Response.md
20
21
  docs/EffectiveCertificateConfig.md
21
22
  docs/Essay.md
@@ -173,6 +174,7 @@ docs/MultipleAnswer1.md
173
174
  docs/NoAnswer.md
174
175
  docs/OtherApi.md
175
176
  docs/Paginated.md
177
+ docs/PlayerApi.md
176
178
  docs/PortalApi.md
177
179
  docs/PortalSublicense.md
178
180
  docs/PortalSublicenseApi.md
@@ -284,8 +286,10 @@ src/apis/ContentApi.ts
284
286
  src/apis/CourseApi.ts
285
287
  src/apis/CourseCatalogApi.ts
286
288
  src/apis/CourseShareApi.ts
289
+ src/apis/DispatchApi.ts
287
290
  src/apis/ModuleApi.ts
288
291
  src/apis/OtherApi.ts
292
+ src/apis/PlayerApi.ts
289
293
  src/apis/PortalApi.ts
290
294
  src/apis/PortalSublicenseApi.ts
291
295
  src/apis/QuestionApi.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.61.0
1
+ # @easyedu/js-lsm-api@1.63.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -124,6 +124,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
124
124
  *CourseShareApi* | [**putAcceptClone**](docs/CourseShareApi.md#putacceptclone) | **PUT** /course-shares/{shareId}/accept-clone | Accept an offer as a clone (deep copy into your portal)
125
125
  *CourseShareApi* | [**putAcceptMirror**](docs/CourseShareApi.md#putacceptmirror) | **PUT** /course-shares/{shareId}/accept-mirror | Accept an offer as a mirror (no copy, live link to source)
126
126
  *CourseShareApi* | [**putDeclineShare**](docs/CourseShareApi.md#putdeclineshare) | **PUT** /course-shares/{shareId}/decline | Decline an offer
127
+ *DispatchApi* | [**getDispatchRollup**](docs/DispatchApi.md#getdispatchrollup) | **GET** /dispatch/sessions/{dispatchPackageId}/rollup | Get dispatch package rollup data
128
+ *DispatchApi* | [**postDispatchLaunch**](docs/DispatchApi.md#postdispatchlaunch) | **POST** /dispatch/launch | Launch a dispatch package
127
129
  *ModuleApi* | [**getModule**](docs/ModuleApi.md#getmodule) | **GET** /courses/{courseId}/modules/{moduleId} | get a course module
128
130
  *ModuleApi* | [**getModuleList**](docs/ModuleApi.md#getmodulelist) | **GET** /courses/{courseId}/modules | get module list
129
131
  *ModuleApi* | [**postModule**](docs/ModuleApi.md#postmodule) | **POST** /courses/{courseId}/modules | Post a new module
@@ -131,6 +133,17 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
131
133
  *ModuleApi* | [**putModule**](docs/ModuleApi.md#putmodule) | **PUT** /courses/{courseId}/modules/{moduleId} | Update a module by id
132
134
  *ModuleApi* | [**putModuleReorder**](docs/ModuleApi.md#putmodulereorder) | **PUT** /courses/{courseId}/modules/reorder | Reorder modules in a course
133
135
  *OtherApi* | [**getHealth**](docs/OtherApi.md#gethealth) | **GET** /healthcheck | Health check endpoint
136
+ *PlayerApi* | [**getDispatchScormPlayer**](docs/PlayerApi.md#getdispatchscormplayer) | **GET** /scorm/dispatch/session/{sessionId}/player | Dispatch SCORM player HTML page
137
+ *PlayerApi* | [**getFileAsset**](docs/PlayerApi.md#getfileasset) | **GET** /file/{contentId}/asset | File asset
138
+ *PlayerApi* | [**getFilePlayer**](docs/PlayerApi.md#getfileplayer) | **GET** /file/session/{sessionId}/player | File player HTML page
139
+ *PlayerApi* | [**getImagePlayer**](docs/PlayerApi.md#getimageplayer) | **GET** /image/session/{sessionId}/player | Image player HTML page
140
+ *PlayerApi* | [**getPdfAsset**](docs/PlayerApi.md#getpdfasset) | **GET** /pdf/{contentId}/asset | PDF asset
141
+ *PlayerApi* | [**getPdfPlayer**](docs/PlayerApi.md#getpdfplayer) | **GET** /pdf/session/{sessionId}/player | PDF player HTML page
142
+ *PlayerApi* | [**getQuizPlayer**](docs/PlayerApi.md#getquizplayer) | **GET** /quiz/session/{sessionId}/player | Quiz player HTML page
143
+ *PlayerApi* | [**getScormAsset**](docs/PlayerApi.md#getscormasset) | **GET** /scorm/{contentId}/scorm/asset/{assetPath} | SCORM package asset
144
+ *PlayerApi* | [**getScormPlayer**](docs/PlayerApi.md#getscormplayer) | **GET** /scorm/session/{sessionId}/player | SCORM player HTML page
145
+ *PlayerApi* | [**getVideoAsset**](docs/PlayerApi.md#getvideoasset) | **GET** /video/{contentId}/asset | Video asset
146
+ *PlayerApi* | [**getVideoPlayer**](docs/PlayerApi.md#getvideoplayer) | **GET** /video/session/{sessionId}/player | Video player HTML page
134
147
  *PortalApi* | [**deletePortalFavicon**](docs/PortalApi.md#deleteportalfavicon) | **DELETE** /portals/{portalId}/branding/favicon | Remove the portal favicon
135
148
  *PortalApi* | [**deletePortalLogo**](docs/PortalApi.md#deleteportallogo) | **DELETE** /portals/{portalId}/branding/logo | Remove the portal logo
136
149
  *PortalApi* | [**getPortalById**](docs/PortalApi.md#getportalbyid) | **GET** /portals/{portalId} | Get a portal by id (can use \'current\' to get the current users selected portal)
@@ -489,7 +502,7 @@ and is automatically generated by the
489
502
  [OpenAPI Generator](https://openapi-generator.tech) project:
490
503
 
491
504
  - API version: `1.0.0`
492
- - Package version: `1.61.0`
505
+ - Package version: `1.63.0`
493
506
  - Generator version: `7.22.0`
494
507
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
495
508
 
@@ -0,0 +1,44 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ export interface GetDispatchRollupRequest {
14
+ dispatchPackageId: string;
15
+ }
16
+ /**
17
+ *
18
+ */
19
+ export declare class DispatchApi extends runtime.BaseAPI {
20
+ /**
21
+ * Creates request options for getDispatchRollup without sending the request
22
+ */
23
+ getDispatchRollupRequestOpts(requestParameters: GetDispatchRollupRequest): Promise<runtime.RequestOpts>;
24
+ /**
25
+ * Get dispatch package rollup data
26
+ */
27
+ getDispatchRollupRaw(requestParameters: GetDispatchRollupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
28
+ /**
29
+ * Get dispatch package rollup data
30
+ */
31
+ getDispatchRollup(requestParameters: GetDispatchRollupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
32
+ /**
33
+ * Creates request options for postDispatchLaunch without sending the request
34
+ */
35
+ postDispatchLaunchRequestOpts(): Promise<runtime.RequestOpts>;
36
+ /**
37
+ * Launch a dispatch package
38
+ */
39
+ postDispatchLaunchRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
40
+ /**
41
+ * Launch a dispatch package
42
+ */
43
+ postDispatchLaunch(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
44
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.DispatchApi = void 0;
26
+ const runtime = require("../runtime");
27
+ /**
28
+ *
29
+ */
30
+ class DispatchApi extends runtime.BaseAPI {
31
+ /**
32
+ * Creates request options for getDispatchRollup without sending the request
33
+ */
34
+ getDispatchRollupRequestOpts(requestParameters) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ if (requestParameters['dispatchPackageId'] == null) {
37
+ throw new runtime.RequiredError('dispatchPackageId', 'Required parameter "dispatchPackageId" was null or undefined when calling getDispatchRollup().');
38
+ }
39
+ const queryParameters = {};
40
+ const headerParameters = {};
41
+ let urlPath = `/dispatch/sessions/{dispatchPackageId}/rollup`;
42
+ urlPath = urlPath.replace('{dispatchPackageId}', encodeURIComponent(String(requestParameters['dispatchPackageId'])));
43
+ return {
44
+ path: urlPath,
45
+ method: 'GET',
46
+ headers: headerParameters,
47
+ query: queryParameters,
48
+ };
49
+ });
50
+ }
51
+ /**
52
+ * Get dispatch package rollup data
53
+ */
54
+ getDispatchRollupRaw(requestParameters, initOverrides) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const requestOptions = yield this.getDispatchRollupRequestOpts(requestParameters);
57
+ const response = yield this.request(requestOptions, initOverrides);
58
+ return new runtime.VoidApiResponse(response);
59
+ });
60
+ }
61
+ /**
62
+ * Get dispatch package rollup data
63
+ */
64
+ getDispatchRollup(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ yield this.getDispatchRollupRaw(requestParameters, initOverrides);
67
+ });
68
+ }
69
+ /**
70
+ * Creates request options for postDispatchLaunch without sending the request
71
+ */
72
+ postDispatchLaunchRequestOpts() {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const queryParameters = {};
75
+ const headerParameters = {};
76
+ let urlPath = `/dispatch/launch`;
77
+ return {
78
+ path: urlPath,
79
+ method: 'POST',
80
+ headers: headerParameters,
81
+ query: queryParameters,
82
+ };
83
+ });
84
+ }
85
+ /**
86
+ * Launch a dispatch package
87
+ */
88
+ postDispatchLaunchRaw(initOverrides) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const requestOptions = yield this.postDispatchLaunchRequestOpts();
91
+ const response = yield this.request(requestOptions, initOverrides);
92
+ return new runtime.VoidApiResponse(response);
93
+ });
94
+ }
95
+ /**
96
+ * Launch a dispatch package
97
+ */
98
+ postDispatchLaunch(initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ yield this.postDispatchLaunchRaw(initOverrides);
101
+ });
102
+ }
103
+ }
104
+ exports.DispatchApi = DispatchApi;
@@ -0,0 +1,183 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ export interface GetDispatchScormPlayerRequest {
14
+ sessionId: string;
15
+ }
16
+ export interface GetFileAssetRequest {
17
+ contentId: string;
18
+ }
19
+ export interface GetFilePlayerRequest {
20
+ sessionId: string;
21
+ }
22
+ export interface GetImagePlayerRequest {
23
+ sessionId: string;
24
+ }
25
+ export interface GetPdfAssetRequest {
26
+ contentId: string;
27
+ }
28
+ export interface GetPdfPlayerRequest {
29
+ sessionId: string;
30
+ }
31
+ export interface GetQuizPlayerRequest {
32
+ sessionId: string;
33
+ }
34
+ export interface GetScormAssetRequest {
35
+ contentId: string;
36
+ assetPath: string;
37
+ }
38
+ export interface GetScormPlayerRequest {
39
+ sessionId: string;
40
+ }
41
+ export interface GetVideoAssetRequest {
42
+ contentId: string;
43
+ }
44
+ export interface GetVideoPlayerRequest {
45
+ sessionId: string;
46
+ }
47
+ /**
48
+ *
49
+ */
50
+ export declare class PlayerApi extends runtime.BaseAPI {
51
+ /**
52
+ * Creates request options for getDispatchScormPlayer without sending the request
53
+ */
54
+ getDispatchScormPlayerRequestOpts(requestParameters: GetDispatchScormPlayerRequest): Promise<runtime.RequestOpts>;
55
+ /**
56
+ * Dispatch SCORM player HTML page
57
+ */
58
+ getDispatchScormPlayerRaw(requestParameters: GetDispatchScormPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
59
+ /**
60
+ * Dispatch SCORM player HTML page
61
+ */
62
+ getDispatchScormPlayer(requestParameters: GetDispatchScormPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
63
+ /**
64
+ * Creates request options for getFileAsset without sending the request
65
+ */
66
+ getFileAssetRequestOpts(requestParameters: GetFileAssetRequest): Promise<runtime.RequestOpts>;
67
+ /**
68
+ * File asset
69
+ */
70
+ getFileAssetRaw(requestParameters: GetFileAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
71
+ /**
72
+ * File asset
73
+ */
74
+ getFileAsset(requestParameters: GetFileAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
75
+ /**
76
+ * Creates request options for getFilePlayer without sending the request
77
+ */
78
+ getFilePlayerRequestOpts(requestParameters: GetFilePlayerRequest): Promise<runtime.RequestOpts>;
79
+ /**
80
+ * File player HTML page
81
+ */
82
+ getFilePlayerRaw(requestParameters: GetFilePlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
83
+ /**
84
+ * File player HTML page
85
+ */
86
+ getFilePlayer(requestParameters: GetFilePlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
87
+ /**
88
+ * Creates request options for getImagePlayer without sending the request
89
+ */
90
+ getImagePlayerRequestOpts(requestParameters: GetImagePlayerRequest): Promise<runtime.RequestOpts>;
91
+ /**
92
+ * Image player HTML page
93
+ */
94
+ getImagePlayerRaw(requestParameters: GetImagePlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
95
+ /**
96
+ * Image player HTML page
97
+ */
98
+ getImagePlayer(requestParameters: GetImagePlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
99
+ /**
100
+ * Creates request options for getPdfAsset without sending the request
101
+ */
102
+ getPdfAssetRequestOpts(requestParameters: GetPdfAssetRequest): Promise<runtime.RequestOpts>;
103
+ /**
104
+ * PDF asset
105
+ */
106
+ getPdfAssetRaw(requestParameters: GetPdfAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
107
+ /**
108
+ * PDF asset
109
+ */
110
+ getPdfAsset(requestParameters: GetPdfAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
111
+ /**
112
+ * Creates request options for getPdfPlayer without sending the request
113
+ */
114
+ getPdfPlayerRequestOpts(requestParameters: GetPdfPlayerRequest): Promise<runtime.RequestOpts>;
115
+ /**
116
+ * PDF player HTML page
117
+ */
118
+ getPdfPlayerRaw(requestParameters: GetPdfPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
119
+ /**
120
+ * PDF player HTML page
121
+ */
122
+ getPdfPlayer(requestParameters: GetPdfPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
123
+ /**
124
+ * Creates request options for getQuizPlayer without sending the request
125
+ */
126
+ getQuizPlayerRequestOpts(requestParameters: GetQuizPlayerRequest): Promise<runtime.RequestOpts>;
127
+ /**
128
+ * Quiz player HTML page
129
+ */
130
+ getQuizPlayerRaw(requestParameters: GetQuizPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
131
+ /**
132
+ * Quiz player HTML page
133
+ */
134
+ getQuizPlayer(requestParameters: GetQuizPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
135
+ /**
136
+ * Creates request options for getScormAsset without sending the request
137
+ */
138
+ getScormAssetRequestOpts(requestParameters: GetScormAssetRequest): Promise<runtime.RequestOpts>;
139
+ /**
140
+ * SCORM package asset
141
+ */
142
+ getScormAssetRaw(requestParameters: GetScormAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
143
+ /**
144
+ * SCORM package asset
145
+ */
146
+ getScormAsset(requestParameters: GetScormAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
147
+ /**
148
+ * Creates request options for getScormPlayer without sending the request
149
+ */
150
+ getScormPlayerRequestOpts(requestParameters: GetScormPlayerRequest): Promise<runtime.RequestOpts>;
151
+ /**
152
+ * SCORM player HTML page
153
+ */
154
+ getScormPlayerRaw(requestParameters: GetScormPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
155
+ /**
156
+ * SCORM player HTML page
157
+ */
158
+ getScormPlayer(requestParameters: GetScormPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
159
+ /**
160
+ * Creates request options for getVideoAsset without sending the request
161
+ */
162
+ getVideoAssetRequestOpts(requestParameters: GetVideoAssetRequest): Promise<runtime.RequestOpts>;
163
+ /**
164
+ * Video asset
165
+ */
166
+ getVideoAssetRaw(requestParameters: GetVideoAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
167
+ /**
168
+ * Video asset
169
+ */
170
+ getVideoAsset(requestParameters: GetVideoAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
171
+ /**
172
+ * Creates request options for getVideoPlayer without sending the request
173
+ */
174
+ getVideoPlayerRequestOpts(requestParameters: GetVideoPlayerRequest): Promise<runtime.RequestOpts>;
175
+ /**
176
+ * Video player HTML page
177
+ */
178
+ getVideoPlayerRaw(requestParameters: GetVideoPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
179
+ /**
180
+ * Video player HTML page
181
+ */
182
+ getVideoPlayer(requestParameters: GetVideoPlayerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
183
+ }