@easyedu/js-lsm-api 1.66.0 → 1.68.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 +10 -2
- package/README.md +15 -3
- package/dist/apis/ContentApi.d.ts +74 -0
- package/dist/apis/ContentApi.js +172 -1
- package/dist/apis/CourseApi.d.ts +16 -0
- package/dist/apis/CourseApi.js +43 -0
- package/dist/apis/PortalApi.d.ts +58 -0
- package/dist/apis/PortalApi.js +152 -0
- package/dist/apis/SupportTicketApi.d.ts +2 -3
- package/dist/apis/SupportTicketApi.js +1 -2
- package/dist/esm/apis/ContentApi.d.ts +74 -0
- package/dist/esm/apis/ContentApi.js +171 -0
- package/dist/esm/apis/CourseApi.d.ts +16 -0
- package/dist/esm/apis/CourseApi.js +43 -0
- package/dist/esm/apis/PortalApi.d.ts +58 -0
- package/dist/esm/apis/PortalApi.js +152 -0
- package/dist/esm/apis/SupportTicketApi.d.ts +2 -3
- package/dist/esm/apis/SupportTicketApi.js +1 -2
- package/dist/esm/models/ContentAttemptItem.d.ts +69 -0
- package/dist/esm/models/ContentAttemptItem.js +68 -0
- package/dist/esm/models/ContentAttemptRollupScore.d.ts +38 -0
- package/dist/esm/models/ContentAttemptRollupScore.js +47 -0
- package/dist/esm/models/ContentAttemptScore.d.ts +50 -0
- package/dist/esm/models/ContentAttemptScore.js +47 -0
- package/dist/esm/models/ContentLaunchMode.d.ts +26 -0
- package/dist/esm/models/ContentLaunchMode.js +44 -0
- package/dist/esm/models/GetContent.d.ts +7 -0
- package/dist/esm/models/GetContent.js +5 -0
- package/dist/esm/models/GetContentAttempts.d.ts +90 -0
- package/dist/esm/models/GetContentAttempts.js +84 -0
- package/dist/esm/models/GetContentSession.d.ts +12 -0
- package/dist/esm/models/GetContentSession.js +8 -0
- package/dist/esm/models/GetContentSessionDetail.d.ts +12 -0
- package/dist/esm/models/GetContentSessionDetail.js +8 -0
- package/dist/esm/models/GetContentSessionListItem.d.ts +24 -0
- package/dist/esm/models/GetContentSessionListItem.js +16 -0
- package/dist/esm/models/GetPortal.d.ts +2 -2
- package/dist/esm/models/GetPortalFaviconUpload.d.ts +1 -1
- package/dist/esm/models/GetPortalLogoUpload.d.ts +1 -1
- package/dist/esm/models/GetPublicPortalBranding.d.ts +2 -2
- package/dist/esm/models/PostContentSession.d.ts +19 -0
- package/dist/esm/models/PostContentSession.js +13 -0
- package/dist/esm/models/PutContent.d.ts +7 -0
- package/dist/esm/models/PutContent.js +3 -0
- package/dist/esm/models/index.d.ts +5 -1
- package/dist/esm/models/index.js +5 -1
- package/dist/models/ContentAttemptItem.d.ts +69 -0
- package/dist/models/ContentAttemptItem.js +75 -0
- package/dist/models/ContentAttemptRollupScore.d.ts +38 -0
- package/dist/models/ContentAttemptRollupScore.js +54 -0
- package/dist/models/ContentAttemptScore.d.ts +50 -0
- package/dist/models/ContentAttemptScore.js +54 -0
- package/dist/models/ContentLaunchMode.d.ts +26 -0
- package/dist/models/ContentLaunchMode.js +52 -0
- package/dist/models/GetContent.d.ts +7 -0
- package/dist/models/GetContent.js +5 -0
- package/dist/models/GetContentAttempts.d.ts +90 -0
- package/dist/models/GetContentAttempts.js +92 -0
- package/dist/models/GetContentSession.d.ts +12 -0
- package/dist/models/GetContentSession.js +8 -0
- package/dist/models/GetContentSessionDetail.d.ts +12 -0
- package/dist/models/GetContentSessionDetail.js +8 -0
- package/dist/models/GetContentSessionListItem.d.ts +24 -0
- package/dist/models/GetContentSessionListItem.js +16 -0
- package/dist/models/GetPortal.d.ts +2 -2
- package/dist/models/GetPortalFaviconUpload.d.ts +1 -1
- package/dist/models/GetPortalLogoUpload.d.ts +1 -1
- package/dist/models/GetPublicPortalBranding.d.ts +2 -2
- package/dist/models/PostContentSession.d.ts +19 -0
- package/dist/models/PostContentSession.js +13 -0
- package/dist/models/PutContent.d.ts +7 -0
- package/dist/models/PutContent.js +3 -0
- package/dist/models/index.d.ts +5 -1
- package/dist/models/index.js +5 -1
- package/docs/ContentApi.md +238 -0
- package/docs/ContentAttemptItem.md +47 -0
- package/docs/ContentAttemptRollupScore.md +37 -0
- package/docs/ContentAttemptScore.md +41 -0
- package/docs/{DownloadSupportTicketAttachment200Response.md → ContentLaunchMode.md} +5 -6
- package/docs/CourseApi.md +72 -0
- package/docs/GetContent.md +2 -0
- package/docs/GetContentAttempts.md +51 -0
- package/docs/GetContentSession.md +4 -0
- package/docs/GetContentSessionDetail.md +4 -0
- package/docs/GetContentSessionListItem.md +8 -0
- package/docs/PortalApi.md +258 -0
- package/docs/PostContentSession.md +6 -0
- package/docs/PutContent.md +2 -0
- package/docs/SupportTicketApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +249 -0
- package/src/apis/CourseApi.ts +58 -0
- package/src/apis/PortalApi.ts +176 -0
- package/src/apis/SupportTicketApi.ts +3 -8
- package/src/models/ContentAttemptItem.ts +128 -0
- package/src/models/ContentAttemptRollupScore.ts +75 -0
- package/src/models/ContentAttemptScore.ts +89 -0
- package/src/models/ContentLaunchMode.ts +54 -0
- package/src/models/GetContent.ts +16 -0
- package/src/models/GetContentAttempts.ts +164 -0
- package/src/models/GetContentSession.ts +18 -0
- package/src/models/GetContentSessionDetail.ts +18 -0
- package/src/models/GetContentSessionListItem.ts +36 -0
- package/src/models/GetPortal.ts +2 -2
- package/src/models/GetPortalFaviconUpload.ts +1 -1
- package/src/models/GetPortalLogoUpload.ts +1 -1
- package/src/models/GetPublicPortalBranding.ts +2 -2
- package/src/models/PostContentSession.ts +37 -0
- package/src/models/PutContent.ts +18 -0
- package/src/models/index.ts +5 -1
- package/dist/esm/models/DownloadSupportTicketAttachment200Response.d.ts +0 -32
- package/dist/esm/models/DownloadSupportTicketAttachment200Response.js +0 -43
- package/dist/models/DownloadSupportTicketAttachment200Response.d.ts +0 -32
- package/dist/models/DownloadSupportTicketAttachment200Response.js +0 -50
- package/src/models/DownloadSupportTicketAttachment200Response.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -8,6 +8,10 @@ docs/CertificateConfig.md
|
|
|
8
8
|
docs/CertificatePublic.md
|
|
9
9
|
docs/ChatApi.md
|
|
10
10
|
docs/ContentApi.md
|
|
11
|
+
docs/ContentAttemptItem.md
|
|
12
|
+
docs/ContentAttemptRollupScore.md
|
|
13
|
+
docs/ContentAttemptScore.md
|
|
14
|
+
docs/ContentLaunchMode.md
|
|
11
15
|
docs/CourseApi.md
|
|
12
16
|
docs/CourseCatalog.md
|
|
13
17
|
docs/CourseCatalogApi.md
|
|
@@ -17,7 +21,6 @@ docs/CriteriaBasedSelection.md
|
|
|
17
21
|
docs/CriteriaBasedSelectionCriteria.md
|
|
18
22
|
docs/CriteriaBasedSelectionDistribution.md
|
|
19
23
|
docs/DispatchApi.md
|
|
20
|
-
docs/DownloadSupportTicketAttachment200Response.md
|
|
21
24
|
docs/EffectiveCertificateConfig.md
|
|
22
25
|
docs/Essay.md
|
|
23
26
|
docs/Essay1.md
|
|
@@ -27,6 +30,7 @@ docs/GetCertificateConfigList.md
|
|
|
27
30
|
docs/GetCertificateList.md
|
|
28
31
|
docs/GetChatMessage.md
|
|
29
32
|
docs/GetContent.md
|
|
33
|
+
docs/GetContentAttempts.md
|
|
30
34
|
docs/GetContentContentData.md
|
|
31
35
|
docs/GetContentGradeDetail.md
|
|
32
36
|
docs/GetContentGrades.md
|
|
@@ -305,12 +309,15 @@ src/index.ts
|
|
|
305
309
|
src/models/Certificate.ts
|
|
306
310
|
src/models/CertificateConfig.ts
|
|
307
311
|
src/models/CertificatePublic.ts
|
|
312
|
+
src/models/ContentAttemptItem.ts
|
|
313
|
+
src/models/ContentAttemptRollupScore.ts
|
|
314
|
+
src/models/ContentAttemptScore.ts
|
|
315
|
+
src/models/ContentLaunchMode.ts
|
|
308
316
|
src/models/CourseCatalog.ts
|
|
309
317
|
src/models/CourseShare.ts
|
|
310
318
|
src/models/CriteriaBasedSelection.ts
|
|
311
319
|
src/models/CriteriaBasedSelectionCriteria.ts
|
|
312
320
|
src/models/CriteriaBasedSelectionDistribution.ts
|
|
313
|
-
src/models/DownloadSupportTicketAttachment200Response.ts
|
|
314
321
|
src/models/EffectiveCertificateConfig.ts
|
|
315
322
|
src/models/Essay.ts
|
|
316
323
|
src/models/Essay1.ts
|
|
@@ -320,6 +327,7 @@ src/models/GetCertificateConfigList.ts
|
|
|
320
327
|
src/models/GetCertificateList.ts
|
|
321
328
|
src/models/GetChatMessage.ts
|
|
322
329
|
src/models/GetContent.ts
|
|
330
|
+
src/models/GetContentAttempts.ts
|
|
323
331
|
src/models/GetContentContentData.ts
|
|
324
332
|
src/models/GetContentGradeDetail.ts
|
|
325
333
|
src/models/GetContentGrades.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.68.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -72,6 +72,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
72
72
|
*ContentApi* | [**deleteContent**](docs/ContentApi.md#deletecontent) | **DELETE** /courses/{courseId}/modules/{moduleId}/contents/{contentId} | Delete content by id
|
|
73
73
|
*ContentApi* | [**deleteContentVersion**](docs/ContentApi.md#deletecontentversion) | **DELETE** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId} | Delete an inactive content version
|
|
74
74
|
*ContentApi* | [**getContent**](docs/ContentApi.md#getcontent) | **GET** /courses/{courseId}/modules/{moduleId}/contents/{contentId} | get content
|
|
75
|
+
*ContentApi* | [**getContentAttempts**](docs/ContentApi.md#getcontentattempts) | **GET** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/attempts | Get content attempts
|
|
75
76
|
*ContentApi* | [**getContentList**](docs/ContentApi.md#getcontentlist) | **GET** /courses/{courseId}/modules/{moduleId}/contents | get content list
|
|
76
77
|
*ContentApi* | [**getContentSession**](docs/ContentApi.md#getcontentsession) | **GET** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/session | get content session
|
|
77
78
|
*ContentApi* | [**getContentSessionDetail**](docs/ContentApi.md#getcontentsessiondetail) | **GET** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions/{sessionId} | Get content session details (instructor only)
|
|
@@ -87,9 +88,11 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
87
88
|
*ContentApi* | [**postContentProcess**](docs/ContentApi.md#postcontentprocess) | **POST** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/process | Post a new content process
|
|
88
89
|
*ContentApi* | [**postContentQuiz**](docs/ContentApi.md#postcontentquiz) | **POST** /courses/{courseId}/modules/{moduleId}/contents/quiz | Create a new quiz content
|
|
89
90
|
*ContentApi* | [**postContentSession**](docs/ContentApi.md#postcontentsession) | **POST** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/session | Post a new content session
|
|
91
|
+
*ContentApi* | [**postContentSessionRetake**](docs/ContentApi.md#postcontentsessionretake) | **POST** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/session/retake | Create a new retake content session
|
|
90
92
|
*ContentApi* | [**postContentUpload**](docs/ContentApi.md#postcontentupload) | **POST** /courses/{courseId}/modules/{moduleId}/contents/upload | Post a new content upload
|
|
91
93
|
*ContentApi* | [**putContent**](docs/ContentApi.md#putcontent) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId} | Update content by id
|
|
92
94
|
*ContentApi* | [**putContentReorder**](docs/ContentApi.md#putcontentreorder) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/reorder | Reorder content in a module
|
|
95
|
+
*ContentApi* | [**putContentUploadFile**](docs/ContentApi.md#putcontentuploadfile) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/uploads/{uploadId}/file | Upload content file through the API
|
|
93
96
|
*ContentApi* | [**putContentVersion**](docs/ContentApi.md#putcontentversion) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId} | Update a content version
|
|
94
97
|
*ContentApi* | [**setScormValue**](docs/ContentApi.md#setscormvalue) | **POST** /scorm/sessions/{scormSessionId}/set-value | Set a SCORM CMI data element value
|
|
95
98
|
*ContentApi* | [**terminateScormSession**](docs/ContentApi.md#terminatescormsession) | **POST** /scorm/sessions/{scormSessionId}/terminate | Terminate a SCORM session
|
|
@@ -98,6 +101,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
98
101
|
*CourseApi* | [**deleteCourseEnrollment**](docs/CourseApi.md#deletecourseenrollment) | **DELETE** /courses/{courseId}/enrollments/{enrollmentId} | Remove a course enrollment
|
|
99
102
|
*CourseApi* | [**deleteCourseExport**](docs/CourseApi.md#deletecourseexport) | **DELETE** /courses/{courseId}/exports/{exportId} | Delete a course export
|
|
100
103
|
*CourseApi* | [**deleteCourseImage**](docs/CourseApi.md#deletecourseimage) | **DELETE** /courses/{courseId}/image | Remove the course image
|
|
104
|
+
*CourseApi* | [**downloadCourseExport**](docs/CourseApi.md#downloadcourseexport) | **GET** /courses/{courseId}/exports/{exportId}/download | Download a completed course export
|
|
101
105
|
*CourseApi* | [**getCourse**](docs/CourseApi.md#getcourse) | **GET** /courses/{courseId} | get course
|
|
102
106
|
*CourseApi* | [**getCourseEnrollment**](docs/CourseApi.md#getcourseenrollment) | **GET** /courses/{courseId}/enrollments/{enrollmentId} | Get a specific course enrollment
|
|
103
107
|
*CourseApi* | [**getCourseEnrollments**](docs/CourseApi.md#getcourseenrollments) | **GET** /courses/{courseId}/enrollments | Get course enrollments
|
|
@@ -153,9 +157,13 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
153
157
|
*PortalApi* | [**deletePortalFavicon**](docs/PortalApi.md#deleteportalfavicon) | **DELETE** /portals/{portalId}/branding/favicon | Remove the portal favicon
|
|
154
158
|
*PortalApi* | [**deletePortalLogo**](docs/PortalApi.md#deleteportallogo) | **DELETE** /portals/{portalId}/branding/logo | Remove the portal logo
|
|
155
159
|
*PortalApi* | [**getPortalById**](docs/PortalApi.md#getportalbyid) | **GET** /portals/{portalId} | Get a portal by id (can use \'current\' to get the current users selected portal)
|
|
160
|
+
*PortalApi* | [**getPortalFaviconAsset**](docs/PortalApi.md#getportalfaviconasset) | **GET** /portals/{portalId}/branding/favicon | Stream the configured portal favicon
|
|
156
161
|
*PortalApi* | [**getPortalList**](docs/PortalApi.md#getportallist) | **GET** /portals | Get all portals a user has access to
|
|
162
|
+
*PortalApi* | [**getPortalLogoAsset**](docs/PortalApi.md#getportallogoasset) | **GET** /portals/{portalId}/branding/logo | Stream the configured portal logo
|
|
157
163
|
*PortalApi* | [**getPortalUsers**](docs/PortalApi.md#getportalusers) | **GET** /portals/{portalId}/users | Get all users for a portal with optional role filtering
|
|
158
164
|
*PortalApi* | [**getPublicPortalBranding**](docs/PortalApi.md#getpublicportalbranding) | **GET** /public/portal/branding | Public portal branding resolved from the request host
|
|
165
|
+
*PortalApi* | [**getPublicPortalFaviconAsset**](docs/PortalApi.md#getpublicportalfaviconasset) | **GET** /public/portal/branding/favicon | Public portal favicon resolved from the request host
|
|
166
|
+
*PortalApi* | [**getPublicPortalLogoAsset**](docs/PortalApi.md#getpublicportallogoasset) | **GET** /public/portal/branding/logo | Public portal logo resolved from the request host
|
|
159
167
|
*PortalApi* | [**inviteUserToPortal**](docs/PortalApi.md#inviteusertoportal) | **POST** /portals/{portalId}/invite | Invite a new user to a portal
|
|
160
168
|
*PortalApi* | [**postPortal**](docs/PortalApi.md#postportal) | **POST** /portals | Create a new portal as a child of the current selected portal
|
|
161
169
|
*PortalApi* | [**postPortalFaviconUpload**](docs/PortalApi.md#postportalfaviconupload) | **POST** /portals/{portalId}/branding/favicon | Upload a favicon image for portal branding
|
|
@@ -242,12 +250,15 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
242
250
|
- [Certificate](docs/Certificate.md)
|
|
243
251
|
- [CertificateConfig](docs/CertificateConfig.md)
|
|
244
252
|
- [CertificatePublic](docs/CertificatePublic.md)
|
|
253
|
+
- [ContentAttemptItem](docs/ContentAttemptItem.md)
|
|
254
|
+
- [ContentAttemptRollupScore](docs/ContentAttemptRollupScore.md)
|
|
255
|
+
- [ContentAttemptScore](docs/ContentAttemptScore.md)
|
|
256
|
+
- [ContentLaunchMode](docs/ContentLaunchMode.md)
|
|
245
257
|
- [CourseCatalog](docs/CourseCatalog.md)
|
|
246
258
|
- [CourseShare](docs/CourseShare.md)
|
|
247
259
|
- [CriteriaBasedSelection](docs/CriteriaBasedSelection.md)
|
|
248
260
|
- [CriteriaBasedSelectionCriteria](docs/CriteriaBasedSelectionCriteria.md)
|
|
249
261
|
- [CriteriaBasedSelectionDistribution](docs/CriteriaBasedSelectionDistribution.md)
|
|
250
|
-
- [DownloadSupportTicketAttachment200Response](docs/DownloadSupportTicketAttachment200Response.md)
|
|
251
262
|
- [EffectiveCertificateConfig](docs/EffectiveCertificateConfig.md)
|
|
252
263
|
- [Essay](docs/Essay.md)
|
|
253
264
|
- [Essay1](docs/Essay1.md)
|
|
@@ -257,6 +268,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
257
268
|
- [GetCertificateList](docs/GetCertificateList.md)
|
|
258
269
|
- [GetChatMessage](docs/GetChatMessage.md)
|
|
259
270
|
- [GetContent](docs/GetContent.md)
|
|
271
|
+
- [GetContentAttempts](docs/GetContentAttempts.md)
|
|
260
272
|
- [GetContentContentData](docs/GetContentContentData.md)
|
|
261
273
|
- [GetContentGradeDetail](docs/GetContentGradeDetail.md)
|
|
262
274
|
- [GetContentGrades](docs/GetContentGrades.md)
|
|
@@ -513,7 +525,7 @@ and is automatically generated by the
|
|
|
513
525
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
514
526
|
|
|
515
527
|
- API version: `1.0.0`
|
|
516
|
-
- Package version: `1.
|
|
528
|
+
- Package version: `1.68.0`
|
|
517
529
|
- Generator version: `7.22.0`
|
|
518
530
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
519
531
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type GetContent } from '../models/GetContent';
|
|
14
|
+
import { type GetContentAttempts } from '../models/GetContentAttempts';
|
|
14
15
|
import { type GetContentList } from '../models/GetContentList';
|
|
15
16
|
import { type GetContentSession } from '../models/GetContentSession';
|
|
16
17
|
import { type GetContentSessionDetail } from '../models/GetContentSessionDetail';
|
|
@@ -51,6 +52,13 @@ export interface GetContentRequest {
|
|
|
51
52
|
moduleId: string;
|
|
52
53
|
courseId: string;
|
|
53
54
|
}
|
|
55
|
+
export interface GetContentAttemptsRequest {
|
|
56
|
+
contentId: string;
|
|
57
|
+
moduleId: string;
|
|
58
|
+
courseId: string;
|
|
59
|
+
userId?: number;
|
|
60
|
+
environment?: GetContentAttemptsEnvironmentEnum;
|
|
61
|
+
}
|
|
54
62
|
export interface GetContentListRequest {
|
|
55
63
|
moduleId: string;
|
|
56
64
|
courseId: string;
|
|
@@ -128,6 +136,12 @@ export interface PostContentSessionRequest {
|
|
|
128
136
|
courseId: string;
|
|
129
137
|
environment?: PostContentSessionEnvironmentEnum;
|
|
130
138
|
}
|
|
139
|
+
export interface PostContentSessionRetakeRequest {
|
|
140
|
+
contentId: string;
|
|
141
|
+
moduleId: string;
|
|
142
|
+
courseId: string;
|
|
143
|
+
environment?: PostContentSessionRetakeEnvironmentEnum;
|
|
144
|
+
}
|
|
131
145
|
export interface PostContentUploadRequest {
|
|
132
146
|
moduleId: string;
|
|
133
147
|
courseId: string;
|
|
@@ -144,6 +158,12 @@ export interface PutContentReorderRequest {
|
|
|
144
158
|
courseId: string;
|
|
145
159
|
putContentReorder: PutContentReorder;
|
|
146
160
|
}
|
|
161
|
+
export interface PutContentUploadFileRequest {
|
|
162
|
+
courseId: string;
|
|
163
|
+
moduleId: string;
|
|
164
|
+
uploadId: number;
|
|
165
|
+
body: Blob;
|
|
166
|
+
}
|
|
147
167
|
export interface PutContentVersionRequest {
|
|
148
168
|
contentId: string;
|
|
149
169
|
moduleId: string;
|
|
@@ -217,6 +237,20 @@ export declare class ContentApi extends runtime.BaseAPI {
|
|
|
217
237
|
* get content
|
|
218
238
|
*/
|
|
219
239
|
getContent(requestParameters: GetContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContent>;
|
|
240
|
+
/**
|
|
241
|
+
* Creates request options for getContentAttempts without sending the request
|
|
242
|
+
*/
|
|
243
|
+
getContentAttemptsRequestOpts(requestParameters: GetContentAttemptsRequest): Promise<runtime.RequestOpts>;
|
|
244
|
+
/**
|
|
245
|
+
* Lists content attempts and score rollup for the current learner. Instructors may pass user_id to inspect another learner.
|
|
246
|
+
* Get content attempts
|
|
247
|
+
*/
|
|
248
|
+
getContentAttemptsRaw(requestParameters: GetContentAttemptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentAttempts>>;
|
|
249
|
+
/**
|
|
250
|
+
* Lists content attempts and score rollup for the current learner. Instructors may pass user_id to inspect another learner.
|
|
251
|
+
* Get content attempts
|
|
252
|
+
*/
|
|
253
|
+
getContentAttempts(requestParameters: GetContentAttemptsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContentAttempts>;
|
|
220
254
|
/**
|
|
221
255
|
* Creates request options for getContentList without sending the request
|
|
222
256
|
*/
|
|
@@ -420,6 +454,18 @@ export declare class ContentApi extends runtime.BaseAPI {
|
|
|
420
454
|
* Post a new content session
|
|
421
455
|
*/
|
|
422
456
|
postContentSession(requestParameters: PostContentSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostContentSession>;
|
|
457
|
+
/**
|
|
458
|
+
* Creates request options for postContentSessionRetake without sending the request
|
|
459
|
+
*/
|
|
460
|
+
postContentSessionRetakeRequestOpts(requestParameters: PostContentSessionRetakeRequest): Promise<runtime.RequestOpts>;
|
|
461
|
+
/**
|
|
462
|
+
* Create a new retake content session
|
|
463
|
+
*/
|
|
464
|
+
postContentSessionRetakeRaw(requestParameters: PostContentSessionRetakeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostContentSession>>;
|
|
465
|
+
/**
|
|
466
|
+
* Create a new retake content session
|
|
467
|
+
*/
|
|
468
|
+
postContentSessionRetake(requestParameters: PostContentSessionRetakeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostContentSession>;
|
|
423
469
|
/**
|
|
424
470
|
* Creates request options for postContentUpload without sending the request
|
|
425
471
|
*/
|
|
@@ -456,6 +502,18 @@ export declare class ContentApi extends runtime.BaseAPI {
|
|
|
456
502
|
* Reorder content in a module
|
|
457
503
|
*/
|
|
458
504
|
putContentReorder(requestParameters: PutContentReorderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
505
|
+
/**
|
|
506
|
+
* Creates request options for putContentUploadFile without sending the request
|
|
507
|
+
*/
|
|
508
|
+
putContentUploadFileRequestOpts(requestParameters: PutContentUploadFileRequest): Promise<runtime.RequestOpts>;
|
|
509
|
+
/**
|
|
510
|
+
* Upload content file through the API
|
|
511
|
+
*/
|
|
512
|
+
putContentUploadFileRaw(requestParameters: PutContentUploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
513
|
+
/**
|
|
514
|
+
* Upload content file through the API
|
|
515
|
+
*/
|
|
516
|
+
putContentUploadFile(requestParameters: PutContentUploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
459
517
|
/**
|
|
460
518
|
* Creates request options for putContentVersion without sending the request
|
|
461
519
|
*/
|
|
@@ -513,6 +571,14 @@ export declare class ContentApi extends runtime.BaseAPI {
|
|
|
513
571
|
*/
|
|
514
572
|
verifyScormManifest(requestParameters: VerifyScormManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostVerifyManifest>;
|
|
515
573
|
}
|
|
574
|
+
/**
|
|
575
|
+
* @export
|
|
576
|
+
*/
|
|
577
|
+
export declare const GetContentAttemptsEnvironmentEnum: {
|
|
578
|
+
readonly Sandbox: "sandbox";
|
|
579
|
+
readonly Live: "live";
|
|
580
|
+
};
|
|
581
|
+
export type GetContentAttemptsEnvironmentEnum = typeof GetContentAttemptsEnvironmentEnum[keyof typeof GetContentAttemptsEnvironmentEnum];
|
|
516
582
|
/**
|
|
517
583
|
* @export
|
|
518
584
|
*/
|
|
@@ -529,3 +595,11 @@ export declare const PostContentSessionEnvironmentEnum: {
|
|
|
529
595
|
readonly Live: "live";
|
|
530
596
|
};
|
|
531
597
|
export type PostContentSessionEnvironmentEnum = typeof PostContentSessionEnvironmentEnum[keyof typeof PostContentSessionEnvironmentEnum];
|
|
598
|
+
/**
|
|
599
|
+
* @export
|
|
600
|
+
*/
|
|
601
|
+
export declare const PostContentSessionRetakeEnvironmentEnum: {
|
|
602
|
+
readonly Sandbox: "sandbox";
|
|
603
|
+
readonly Live: "live";
|
|
604
|
+
};
|
|
605
|
+
export type PostContentSessionRetakeEnvironmentEnum = typeof PostContentSessionRetakeEnvironmentEnum[keyof typeof PostContentSessionRetakeEnvironmentEnum];
|
package/dist/apis/ContentApi.js
CHANGED
|
@@ -22,9 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PostContentSessionEnvironmentEnum = exports.ListContentSessionsEnvironmentEnum = exports.ContentApi = void 0;
|
|
25
|
+
exports.PostContentSessionRetakeEnvironmentEnum = exports.PostContentSessionEnvironmentEnum = exports.ListContentSessionsEnvironmentEnum = exports.GetContentAttemptsEnvironmentEnum = exports.ContentApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const GetContent_1 = require("../models/GetContent");
|
|
28
|
+
const GetContentAttempts_1 = require("../models/GetContentAttempts");
|
|
28
29
|
const GetContentList_1 = require("../models/GetContentList");
|
|
29
30
|
const GetContentSession_1 = require("../models/GetContentSession");
|
|
30
31
|
const GetContentSessionDetail_1 = require("../models/GetContentSessionDetail");
|
|
@@ -235,6 +236,61 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
235
236
|
return yield response.value();
|
|
236
237
|
});
|
|
237
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* Creates request options for getContentAttempts without sending the request
|
|
241
|
+
*/
|
|
242
|
+
getContentAttemptsRequestOpts(requestParameters) {
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
if (requestParameters['contentId'] == null) {
|
|
245
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentAttempts().');
|
|
246
|
+
}
|
|
247
|
+
if (requestParameters['moduleId'] == null) {
|
|
248
|
+
throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling getContentAttempts().');
|
|
249
|
+
}
|
|
250
|
+
if (requestParameters['courseId'] == null) {
|
|
251
|
+
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling getContentAttempts().');
|
|
252
|
+
}
|
|
253
|
+
const queryParameters = {};
|
|
254
|
+
if (requestParameters['userId'] != null) {
|
|
255
|
+
queryParameters['user_id'] = requestParameters['userId'];
|
|
256
|
+
}
|
|
257
|
+
if (requestParameters['environment'] != null) {
|
|
258
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
259
|
+
}
|
|
260
|
+
const headerParameters = {};
|
|
261
|
+
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/attempts`;
|
|
262
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
263
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
264
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
265
|
+
return {
|
|
266
|
+
path: urlPath,
|
|
267
|
+
method: 'GET',
|
|
268
|
+
headers: headerParameters,
|
|
269
|
+
query: queryParameters,
|
|
270
|
+
};
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Lists content attempts and score rollup for the current learner. Instructors may pass user_id to inspect another learner.
|
|
275
|
+
* Get content attempts
|
|
276
|
+
*/
|
|
277
|
+
getContentAttemptsRaw(requestParameters, initOverrides) {
|
|
278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
279
|
+
const requestOptions = yield this.getContentAttemptsRequestOpts(requestParameters);
|
|
280
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
281
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentAttempts_1.GetContentAttemptsFromJSON)(jsonValue));
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Lists content attempts and score rollup for the current learner. Instructors may pass user_id to inspect another learner.
|
|
286
|
+
* Get content attempts
|
|
287
|
+
*/
|
|
288
|
+
getContentAttempts(requestParameters, initOverrides) {
|
|
289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
290
|
+
const response = yield this.getContentAttemptsRaw(requestParameters, initOverrides);
|
|
291
|
+
return yield response.value();
|
|
292
|
+
});
|
|
293
|
+
}
|
|
238
294
|
/**
|
|
239
295
|
* Creates request options for getContentList without sending the request
|
|
240
296
|
*/
|
|
@@ -962,6 +1018,56 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
962
1018
|
return yield response.value();
|
|
963
1019
|
});
|
|
964
1020
|
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Creates request options for postContentSessionRetake without sending the request
|
|
1023
|
+
*/
|
|
1024
|
+
postContentSessionRetakeRequestOpts(requestParameters) {
|
|
1025
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1026
|
+
if (requestParameters['contentId'] == null) {
|
|
1027
|
+
throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling postContentSessionRetake().');
|
|
1028
|
+
}
|
|
1029
|
+
if (requestParameters['moduleId'] == null) {
|
|
1030
|
+
throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling postContentSessionRetake().');
|
|
1031
|
+
}
|
|
1032
|
+
if (requestParameters['courseId'] == null) {
|
|
1033
|
+
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling postContentSessionRetake().');
|
|
1034
|
+
}
|
|
1035
|
+
const queryParameters = {};
|
|
1036
|
+
if (requestParameters['environment'] != null) {
|
|
1037
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
1038
|
+
}
|
|
1039
|
+
const headerParameters = {};
|
|
1040
|
+
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/session/retake`;
|
|
1041
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1042
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1043
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1044
|
+
return {
|
|
1045
|
+
path: urlPath,
|
|
1046
|
+
method: 'POST',
|
|
1047
|
+
headers: headerParameters,
|
|
1048
|
+
query: queryParameters,
|
|
1049
|
+
};
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
/**
|
|
1053
|
+
* Create a new retake content session
|
|
1054
|
+
*/
|
|
1055
|
+
postContentSessionRetakeRaw(requestParameters, initOverrides) {
|
|
1056
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1057
|
+
const requestOptions = yield this.postContentSessionRetakeRequestOpts(requestParameters);
|
|
1058
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1059
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostContentSession_1.PostContentSessionFromJSON)(jsonValue));
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* Create a new retake content session
|
|
1064
|
+
*/
|
|
1065
|
+
postContentSessionRetake(requestParameters, initOverrides) {
|
|
1066
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1067
|
+
const response = yield this.postContentSessionRetakeRaw(requestParameters, initOverrides);
|
|
1068
|
+
return yield response.value();
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
965
1071
|
/**
|
|
966
1072
|
* Creates request options for postContentUpload without sending the request
|
|
967
1073
|
*/
|
|
@@ -1109,6 +1215,57 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
1109
1215
|
yield this.putContentReorderRaw(requestParameters, initOverrides);
|
|
1110
1216
|
});
|
|
1111
1217
|
}
|
|
1218
|
+
/**
|
|
1219
|
+
* Creates request options for putContentUploadFile without sending the request
|
|
1220
|
+
*/
|
|
1221
|
+
putContentUploadFileRequestOpts(requestParameters) {
|
|
1222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1223
|
+
if (requestParameters['courseId'] == null) {
|
|
1224
|
+
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling putContentUploadFile().');
|
|
1225
|
+
}
|
|
1226
|
+
if (requestParameters['moduleId'] == null) {
|
|
1227
|
+
throw new runtime.RequiredError('moduleId', 'Required parameter "moduleId" was null or undefined when calling putContentUploadFile().');
|
|
1228
|
+
}
|
|
1229
|
+
if (requestParameters['uploadId'] == null) {
|
|
1230
|
+
throw new runtime.RequiredError('uploadId', 'Required parameter "uploadId" was null or undefined when calling putContentUploadFile().');
|
|
1231
|
+
}
|
|
1232
|
+
if (requestParameters['body'] == null) {
|
|
1233
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling putContentUploadFile().');
|
|
1234
|
+
}
|
|
1235
|
+
const queryParameters = {};
|
|
1236
|
+
const headerParameters = {};
|
|
1237
|
+
headerParameters['Content-Type'] = 'application/octet-stream';
|
|
1238
|
+
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/uploads/{uploadId}/file`;
|
|
1239
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1240
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1241
|
+
urlPath = urlPath.replace('{uploadId}', encodeURIComponent(String(requestParameters['uploadId'])));
|
|
1242
|
+
return {
|
|
1243
|
+
path: urlPath,
|
|
1244
|
+
method: 'PUT',
|
|
1245
|
+
headers: headerParameters,
|
|
1246
|
+
query: queryParameters,
|
|
1247
|
+
body: requestParameters['body'],
|
|
1248
|
+
};
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* Upload content file through the API
|
|
1253
|
+
*/
|
|
1254
|
+
putContentUploadFileRaw(requestParameters, initOverrides) {
|
|
1255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1256
|
+
const requestOptions = yield this.putContentUploadFileRequestOpts(requestParameters);
|
|
1257
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1258
|
+
return new runtime.VoidApiResponse(response);
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* Upload content file through the API
|
|
1263
|
+
*/
|
|
1264
|
+
putContentUploadFile(requestParameters, initOverrides) {
|
|
1265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1266
|
+
yield this.putContentUploadFileRaw(requestParameters, initOverrides);
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1112
1269
|
/**
|
|
1113
1270
|
* Creates request options for putContentVersion without sending the request
|
|
1114
1271
|
*/
|
|
@@ -1297,6 +1454,13 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
1297
1454
|
}
|
|
1298
1455
|
}
|
|
1299
1456
|
exports.ContentApi = ContentApi;
|
|
1457
|
+
/**
|
|
1458
|
+
* @export
|
|
1459
|
+
*/
|
|
1460
|
+
exports.GetContentAttemptsEnvironmentEnum = {
|
|
1461
|
+
Sandbox: 'sandbox',
|
|
1462
|
+
Live: 'live'
|
|
1463
|
+
};
|
|
1300
1464
|
/**
|
|
1301
1465
|
* @export
|
|
1302
1466
|
*/
|
|
@@ -1311,3 +1475,10 @@ exports.PostContentSessionEnvironmentEnum = {
|
|
|
1311
1475
|
Sandbox: 'sandbox',
|
|
1312
1476
|
Live: 'live'
|
|
1313
1477
|
};
|
|
1478
|
+
/**
|
|
1479
|
+
* @export
|
|
1480
|
+
*/
|
|
1481
|
+
exports.PostContentSessionRetakeEnvironmentEnum = {
|
|
1482
|
+
Sandbox: 'sandbox',
|
|
1483
|
+
Live: 'live'
|
|
1484
|
+
};
|
package/dist/apis/CourseApi.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ export interface DeleteCourseExportRequest {
|
|
|
38
38
|
export interface DeleteCourseImageRequest {
|
|
39
39
|
courseId: string;
|
|
40
40
|
}
|
|
41
|
+
export interface DownloadCourseExportRequest {
|
|
42
|
+
courseId: string;
|
|
43
|
+
exportId: string;
|
|
44
|
+
}
|
|
41
45
|
export interface GetCourseRequest {
|
|
42
46
|
courseId: string;
|
|
43
47
|
}
|
|
@@ -152,6 +156,18 @@ export declare class CourseApi extends runtime.BaseAPI {
|
|
|
152
156
|
* Remove the course image
|
|
153
157
|
*/
|
|
154
158
|
deleteCourseImage(requestParameters: DeleteCourseImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* Creates request options for downloadCourseExport without sending the request
|
|
161
|
+
*/
|
|
162
|
+
downloadCourseExportRequestOpts(requestParameters: DownloadCourseExportRequest): Promise<runtime.RequestOpts>;
|
|
163
|
+
/**
|
|
164
|
+
* Download a completed course export
|
|
165
|
+
*/
|
|
166
|
+
downloadCourseExportRaw(requestParameters: DownloadCourseExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
167
|
+
/**
|
|
168
|
+
* Download a completed course export
|
|
169
|
+
*/
|
|
170
|
+
downloadCourseExport(requestParameters: DownloadCourseExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
155
171
|
/**
|
|
156
172
|
* Creates request options for getCourse without sending the request
|
|
157
173
|
*/
|
package/dist/apis/CourseApi.js
CHANGED
|
@@ -204,6 +204,49 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
204
204
|
yield this.deleteCourseImageRaw(requestParameters, initOverrides);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Creates request options for downloadCourseExport without sending the request
|
|
209
|
+
*/
|
|
210
|
+
downloadCourseExportRequestOpts(requestParameters) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
if (requestParameters['courseId'] == null) {
|
|
213
|
+
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling downloadCourseExport().');
|
|
214
|
+
}
|
|
215
|
+
if (requestParameters['exportId'] == null) {
|
|
216
|
+
throw new runtime.RequiredError('exportId', 'Required parameter "exportId" was null or undefined when calling downloadCourseExport().');
|
|
217
|
+
}
|
|
218
|
+
const queryParameters = {};
|
|
219
|
+
const headerParameters = {};
|
|
220
|
+
let urlPath = `/courses/{courseId}/exports/{exportId}/download`;
|
|
221
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
222
|
+
urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
|
|
223
|
+
return {
|
|
224
|
+
path: urlPath,
|
|
225
|
+
method: 'GET',
|
|
226
|
+
headers: headerParameters,
|
|
227
|
+
query: queryParameters,
|
|
228
|
+
};
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Download a completed course export
|
|
233
|
+
*/
|
|
234
|
+
downloadCourseExportRaw(requestParameters, initOverrides) {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
const requestOptions = yield this.downloadCourseExportRequestOpts(requestParameters);
|
|
237
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
238
|
+
return new runtime.BlobApiResponse(response);
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Download a completed course export
|
|
243
|
+
*/
|
|
244
|
+
downloadCourseExport(requestParameters, initOverrides) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
const response = yield this.downloadCourseExportRaw(requestParameters, initOverrides);
|
|
247
|
+
return yield response.value();
|
|
248
|
+
});
|
|
249
|
+
}
|
|
207
250
|
/**
|
|
208
251
|
* Creates request options for getCourse without sending the request
|
|
209
252
|
*/
|
package/dist/apis/PortalApi.d.ts
CHANGED
|
@@ -29,6 +29,12 @@ export interface DeletePortalLogoRequest {
|
|
|
29
29
|
export interface GetPortalByIdRequest {
|
|
30
30
|
portalId: string;
|
|
31
31
|
}
|
|
32
|
+
export interface GetPortalFaviconAssetRequest {
|
|
33
|
+
portalId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface GetPortalLogoAssetRequest {
|
|
36
|
+
portalId: string;
|
|
37
|
+
}
|
|
32
38
|
export interface GetPortalUsersRequest {
|
|
33
39
|
portalId: string;
|
|
34
40
|
type?: GetPortalUsersTypeEnum;
|
|
@@ -103,6 +109,18 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
103
109
|
* Get a portal by id (can use \'current\' to get the current users selected portal)
|
|
104
110
|
*/
|
|
105
111
|
getPortalById(requestParameters: GetPortalByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for getPortalFaviconAsset without sending the request
|
|
114
|
+
*/
|
|
115
|
+
getPortalFaviconAssetRequestOpts(requestParameters: GetPortalFaviconAssetRequest): Promise<runtime.RequestOpts>;
|
|
116
|
+
/**
|
|
117
|
+
* Stream the configured portal favicon
|
|
118
|
+
*/
|
|
119
|
+
getPortalFaviconAssetRaw(requestParameters: GetPortalFaviconAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
120
|
+
/**
|
|
121
|
+
* Stream the configured portal favicon
|
|
122
|
+
*/
|
|
123
|
+
getPortalFaviconAsset(requestParameters: GetPortalFaviconAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
106
124
|
/**
|
|
107
125
|
* Creates request options for getPortalList without sending the request
|
|
108
126
|
*/
|
|
@@ -115,6 +133,18 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
115
133
|
* Get all portals a user has access to
|
|
116
134
|
*/
|
|
117
135
|
getPortalList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalList>;
|
|
136
|
+
/**
|
|
137
|
+
* Creates request options for getPortalLogoAsset without sending the request
|
|
138
|
+
*/
|
|
139
|
+
getPortalLogoAssetRequestOpts(requestParameters: GetPortalLogoAssetRequest): Promise<runtime.RequestOpts>;
|
|
140
|
+
/**
|
|
141
|
+
* Stream the configured portal logo
|
|
142
|
+
*/
|
|
143
|
+
getPortalLogoAssetRaw(requestParameters: GetPortalLogoAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
144
|
+
/**
|
|
145
|
+
* Stream the configured portal logo
|
|
146
|
+
*/
|
|
147
|
+
getPortalLogoAsset(requestParameters: GetPortalLogoAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
118
148
|
/**
|
|
119
149
|
* Creates request options for getPortalUsers without sending the request
|
|
120
150
|
*/
|
|
@@ -141,6 +171,34 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
141
171
|
* Public portal branding resolved from the request host
|
|
142
172
|
*/
|
|
143
173
|
getPublicPortalBranding(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicPortalBranding>;
|
|
174
|
+
/**
|
|
175
|
+
* Creates request options for getPublicPortalFaviconAsset without sending the request
|
|
176
|
+
*/
|
|
177
|
+
getPublicPortalFaviconAssetRequestOpts(): Promise<runtime.RequestOpts>;
|
|
178
|
+
/**
|
|
179
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured favicon.
|
|
180
|
+
* Public portal favicon resolved from the request host
|
|
181
|
+
*/
|
|
182
|
+
getPublicPortalFaviconAssetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
183
|
+
/**
|
|
184
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured favicon.
|
|
185
|
+
* Public portal favicon resolved from the request host
|
|
186
|
+
*/
|
|
187
|
+
getPublicPortalFaviconAsset(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
188
|
+
/**
|
|
189
|
+
* Creates request options for getPublicPortalLogoAsset without sending the request
|
|
190
|
+
*/
|
|
191
|
+
getPublicPortalLogoAssetRequestOpts(): Promise<runtime.RequestOpts>;
|
|
192
|
+
/**
|
|
193
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured logo.
|
|
194
|
+
* Public portal logo resolved from the request host
|
|
195
|
+
*/
|
|
196
|
+
getPublicPortalLogoAssetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
197
|
+
/**
|
|
198
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured logo.
|
|
199
|
+
* Public portal logo resolved from the request host
|
|
200
|
+
*/
|
|
201
|
+
getPublicPortalLogoAsset(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
144
202
|
/**
|
|
145
203
|
* Creates request options for inviteUserToPortal without sending the request
|
|
146
204
|
*/
|