@easyedu/js-lsm-api 1.79.0 → 1.81.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 +26 -0
- package/README.md +18 -2
- package/dist/apis/RichTextApi.d.ts +67 -0
- package/dist/apis/RichTextApi.js +158 -0
- package/dist/apis/UserApi.d.ts +42 -0
- package/dist/apis/UserApi.js +79 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/RichTextApi.d.ts +67 -0
- package/dist/esm/apis/RichTextApi.js +154 -0
- package/dist/esm/apis/UserApi.d.ts +42 -0
- package/dist/esm/apis/UserApi.js +78 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetQuestion.d.ts +7 -6
- package/dist/esm/models/GetQuestion.js +5 -4
- package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/GetQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/GetRichTextAssetUpload.d.ts +50 -0
- package/dist/esm/models/GetRichTextAssetUpload.js +55 -0
- package/dist/esm/models/GetUserCourseList.d.ts +57 -0
- package/dist/esm/models/GetUserCourseList.js +60 -0
- package/dist/esm/models/GetUserCourseListItem.d.ts +54 -0
- package/dist/esm/models/GetUserCourseListItem.js +59 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.d.ts +74 -0
- package/dist/esm/models/GetUserCourseListItemCertificate.js +75 -0
- package/dist/esm/models/GetUserCourseListItemCourse.d.ts +89 -0
- package/dist/esm/models/GetUserCourseListItemCourse.js +82 -0
- package/dist/esm/models/GetUserCourseListItemEnrollment.d.ts +111 -0
- package/dist/esm/models/GetUserCourseListItemEnrollment.js +105 -0
- package/dist/esm/models/GetUserCourseListItemProgress.d.ts +44 -0
- package/dist/esm/models/GetUserCourseListItemProgress.js +51 -0
- package/dist/esm/models/PostQuestion.d.ts +7 -6
- package/dist/esm/models/PostQuestion.js +5 -4
- package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/PostQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/PostRichTextAssetComplete.d.ts +44 -0
- package/dist/esm/models/PostRichTextAssetComplete.js +47 -0
- package/dist/esm/models/PostRichTextAssetUpload.d.ts +69 -0
- package/dist/esm/models/PostRichTextAssetUpload.js +65 -0
- package/dist/esm/models/PutQuestion.d.ts +7 -6
- package/dist/esm/models/PutQuestion.js +5 -4
- package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/esm/models/PutQuestionAnswerChoicesInner.js +3 -2
- package/dist/esm/models/RichTextAsset.d.ts +62 -0
- package/dist/esm/models/RichTextAsset.js +59 -0
- package/dist/esm/models/RichTextDocument.d.ts +60 -0
- package/dist/esm/models/RichTextDocument.js +62 -0
- package/dist/esm/models/RichTextInput.d.ts +47 -0
- package/dist/esm/models/RichTextInput.js +53 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/GetQuestion.d.ts +7 -6
- package/dist/models/GetQuestion.js +5 -4
- package/dist/models/GetQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/GetQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/GetRichTextAssetUpload.d.ts +50 -0
- package/dist/models/GetRichTextAssetUpload.js +62 -0
- package/dist/models/GetUserCourseList.d.ts +57 -0
- package/dist/models/GetUserCourseList.js +67 -0
- package/dist/models/GetUserCourseListItem.d.ts +54 -0
- package/dist/models/GetUserCourseListItem.js +66 -0
- package/dist/models/GetUserCourseListItemCertificate.d.ts +74 -0
- package/dist/models/GetUserCourseListItemCertificate.js +83 -0
- package/dist/models/GetUserCourseListItemCourse.d.ts +89 -0
- package/dist/models/GetUserCourseListItemCourse.js +90 -0
- package/dist/models/GetUserCourseListItemEnrollment.d.ts +111 -0
- package/dist/models/GetUserCourseListItemEnrollment.js +113 -0
- package/dist/models/GetUserCourseListItemProgress.d.ts +44 -0
- package/dist/models/GetUserCourseListItemProgress.js +58 -0
- package/dist/models/PostQuestion.d.ts +7 -6
- package/dist/models/PostQuestion.js +5 -4
- package/dist/models/PostQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/PostQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/PostRichTextAssetComplete.d.ts +44 -0
- package/dist/models/PostRichTextAssetComplete.js +54 -0
- package/dist/models/PostRichTextAssetUpload.d.ts +69 -0
- package/dist/models/PostRichTextAssetUpload.js +73 -0
- package/dist/models/PutQuestion.d.ts +7 -6
- package/dist/models/PutQuestion.js +5 -4
- package/dist/models/PutQuestionAnswerChoicesInner.d.ts +3 -2
- package/dist/models/PutQuestionAnswerChoicesInner.js +3 -2
- package/dist/models/RichTextAsset.d.ts +62 -0
- package/dist/models/RichTextAsset.js +66 -0
- package/dist/models/RichTextDocument.d.ts +60 -0
- package/dist/models/RichTextDocument.js +70 -0
- package/dist/models/RichTextInput.d.ts +47 -0
- package/dist/models/RichTextInput.js +61 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/docs/GetQuestion.md +2 -2
- package/docs/GetQuestionAnswerChoicesInner.md +1 -1
- package/docs/GetRichTextAssetUpload.md +40 -0
- package/docs/GetUserCourseList.md +43 -0
- package/docs/GetUserCourseListItem.md +41 -0
- package/docs/GetUserCourseListItemCertificate.md +43 -0
- package/docs/GetUserCourseListItemCourse.md +51 -0
- package/docs/GetUserCourseListItemEnrollment.md +49 -0
- package/docs/GetUserCourseListItemProgress.md +39 -0
- package/docs/PostQuestion.md +2 -2
- package/docs/PostQuestionAnswerChoicesInner.md +1 -1
- package/docs/PostRichTextAssetComplete.md +38 -0
- package/docs/PostRichTextAssetUpload.md +44 -0
- package/docs/PutQuestion.md +2 -2
- package/docs/PutQuestionAnswerChoicesInner.md +1 -1
- package/docs/RichTextApi.md +212 -0
- package/docs/RichTextAsset.md +44 -0
- package/docs/RichTextDocument.md +40 -0
- package/docs/RichTextInput.md +36 -0
- package/docs/UserApi.md +90 -0
- package/package.json +1 -1
- package/src/apis/RichTextApi.ts +201 -0
- package/src/apis/UserApi.ts +108 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetQuestion.ts +17 -10
- package/src/models/GetQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/GetRichTextAssetUpload.ts +93 -0
- package/src/models/GetUserCourseList.ts +110 -0
- package/src/models/GetUserCourseListItem.ts +122 -0
- package/src/models/GetUserCourseListItemCertificate.ts +124 -0
- package/src/models/GetUserCourseListItemCourse.ts +149 -0
- package/src/models/GetUserCourseListItemEnrollment.ts +171 -0
- package/src/models/GetUserCourseListItemProgress.ts +84 -0
- package/src/models/PostQuestion.ts +17 -10
- package/src/models/PostQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/PostRichTextAssetComplete.ts +82 -0
- package/src/models/PostRichTextAssetUpload.ts +119 -0
- package/src/models/PutQuestion.ts +17 -10
- package/src/models/PutQuestionAnswerChoicesInner.ts +12 -4
- package/src/models/RichTextAsset.ts +109 -0
- package/src/models/RichTextDocument.ts +111 -0
- package/src/models/RichTextInput.ts +85 -0
- package/src/models/index.ts +12 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -148,6 +148,7 @@ docs/GetQuizResultsQuestionsInnerStudentAnswer.md
|
|
|
148
148
|
docs/GetQuizResultsScore.md
|
|
149
149
|
docs/GetQuizResultsTiming.md
|
|
150
150
|
docs/GetQuizStatistics.md
|
|
151
|
+
docs/GetRichTextAssetUpload.md
|
|
151
152
|
docs/GetRole.md
|
|
152
153
|
docs/GetScormApiLogItem.md
|
|
153
154
|
docs/GetScormApiLogs.md
|
|
@@ -164,6 +165,12 @@ docs/GetSystemBillingList.md
|
|
|
164
165
|
docs/GetSystemMetrics.md
|
|
165
166
|
docs/GetUser.md
|
|
166
167
|
docs/GetUserAvatarUpload.md
|
|
168
|
+
docs/GetUserCourseList.md
|
|
169
|
+
docs/GetUserCourseListItem.md
|
|
170
|
+
docs/GetUserCourseListItemCertificate.md
|
|
171
|
+
docs/GetUserCourseListItemCourse.md
|
|
172
|
+
docs/GetUserCourseListItemEnrollment.md
|
|
173
|
+
docs/GetUserCourseListItemProgress.md
|
|
167
174
|
docs/GetUserQuizAttempts.md
|
|
168
175
|
docs/GetUserQuizAttemptsAllOfAttempts.md
|
|
169
176
|
docs/GetUserQuizAttemptsAllOfFilters.md
|
|
@@ -244,6 +251,8 @@ docs/PostQuizQuestionsQuestionsInner.md
|
|
|
244
251
|
docs/PostQuizSettings.md
|
|
245
252
|
docs/PostResetPassword.md
|
|
246
253
|
docs/PostRevokeCertificate.md
|
|
254
|
+
docs/PostRichTextAssetComplete.md
|
|
255
|
+
docs/PostRichTextAssetUpload.md
|
|
247
256
|
docs/PostRole.md
|
|
248
257
|
docs/PostSendResetPassword.md
|
|
249
258
|
docs/PostSignupRequest.md
|
|
@@ -283,6 +292,10 @@ docs/QuizContent.md
|
|
|
283
292
|
docs/QuizContentAssignment.md
|
|
284
293
|
docs/QuizContentSettings.md
|
|
285
294
|
docs/ReportingApi.md
|
|
295
|
+
docs/RichTextApi.md
|
|
296
|
+
docs/RichTextAsset.md
|
|
297
|
+
docs/RichTextDocument.md
|
|
298
|
+
docs/RichTextInput.md
|
|
286
299
|
docs/RoleApi.md
|
|
287
300
|
docs/SCORMContent.md
|
|
288
301
|
docs/ScormGetValueResponse.md
|
|
@@ -320,6 +333,7 @@ src/apis/PortalSublicenseApi.ts
|
|
|
320
333
|
src/apis/QuestionApi.ts
|
|
321
334
|
src/apis/QuizApi.ts
|
|
322
335
|
src/apis/ReportingApi.ts
|
|
336
|
+
src/apis/RichTextApi.ts
|
|
323
337
|
src/apis/RoleApi.ts
|
|
324
338
|
src/apis/SupportTicketApi.ts
|
|
325
339
|
src/apis/SystemApi.ts
|
|
@@ -465,6 +479,7 @@ src/models/GetQuizResultsQuestionsInnerStudentAnswer.ts
|
|
|
465
479
|
src/models/GetQuizResultsScore.ts
|
|
466
480
|
src/models/GetQuizResultsTiming.ts
|
|
467
481
|
src/models/GetQuizStatistics.ts
|
|
482
|
+
src/models/GetRichTextAssetUpload.ts
|
|
468
483
|
src/models/GetRole.ts
|
|
469
484
|
src/models/GetScormApiLogItem.ts
|
|
470
485
|
src/models/GetScormApiLogs.ts
|
|
@@ -481,6 +496,12 @@ src/models/GetSystemBillingList.ts
|
|
|
481
496
|
src/models/GetSystemMetrics.ts
|
|
482
497
|
src/models/GetUser.ts
|
|
483
498
|
src/models/GetUserAvatarUpload.ts
|
|
499
|
+
src/models/GetUserCourseList.ts
|
|
500
|
+
src/models/GetUserCourseListItem.ts
|
|
501
|
+
src/models/GetUserCourseListItemCertificate.ts
|
|
502
|
+
src/models/GetUserCourseListItemCourse.ts
|
|
503
|
+
src/models/GetUserCourseListItemEnrollment.ts
|
|
504
|
+
src/models/GetUserCourseListItemProgress.ts
|
|
484
505
|
src/models/GetUserQuizAttempts.ts
|
|
485
506
|
src/models/GetUserQuizAttemptsAllOfAttempts.ts
|
|
486
507
|
src/models/GetUserQuizAttemptsAllOfFilters.ts
|
|
@@ -556,6 +577,8 @@ src/models/PostQuizQuestionsQuestionsInner.ts
|
|
|
556
577
|
src/models/PostQuizSettings.ts
|
|
557
578
|
src/models/PostResetPassword.ts
|
|
558
579
|
src/models/PostRevokeCertificate.ts
|
|
580
|
+
src/models/PostRichTextAssetComplete.ts
|
|
581
|
+
src/models/PostRichTextAssetUpload.ts
|
|
559
582
|
src/models/PostRole.ts
|
|
560
583
|
src/models/PostSendResetPassword.ts
|
|
561
584
|
src/models/PostSignupRequest.ts
|
|
@@ -592,6 +615,9 @@ src/models/PutUser.ts
|
|
|
592
615
|
src/models/QuizContent.ts
|
|
593
616
|
src/models/QuizContentAssignment.ts
|
|
594
617
|
src/models/QuizContentSettings.ts
|
|
618
|
+
src/models/RichTextAsset.ts
|
|
619
|
+
src/models/RichTextDocument.ts
|
|
620
|
+
src/models/RichTextInput.ts
|
|
595
621
|
src/models/SCORMContent.ts
|
|
596
622
|
src/models/ScormGetValueResponse.ts
|
|
597
623
|
src/models/ScormSessionData.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.81.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -217,6 +217,9 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
217
217
|
*ReportingApi* | [**getModuleStudentReporting**](docs/ReportingApi.md#getmodulestudentreporting) | **GET** /courses/{courseId}/modules/{moduleId}/reporting/students/{studentId} | Get student-specific reporting for a module (can use \'current\' for studentId)
|
|
218
218
|
*ReportingApi* | [**getPortalBasicReporting**](docs/ReportingApi.md#getportalbasicreporting) | **GET** /portals/{portalId}/reporting/basic | Get basic reporting for a portal (can use \'current\' for portalId)
|
|
219
219
|
*ReportingApi* | [**getPortalStudentReporting**](docs/ReportingApi.md#getportalstudentreporting) | **GET** /portals/{portalId}/reporting/students/{studentId} | Get student reporting for a portal (can use \'current\' for portalId and studentId)
|
|
220
|
+
*RichTextApi* | [**getRichTextAsset**](docs/RichTextApi.md#getrichtextasset) | **GET** /rich-text/assets/{assetId} | Redirect to a signed rich text asset URL
|
|
221
|
+
*RichTextApi* | [**postRichTextAssetComplete**](docs/RichTextApi.md#postrichtextassetcomplete) | **POST** /rich-text/assets/{assetId}/complete | Complete a pending rich text asset upload
|
|
222
|
+
*RichTextApi* | [**postRichTextAssetUpload**](docs/RichTextApi.md#postrichtextassetupload) | **POST** /rich-text/assets/uploads | Create a pending rich text asset upload
|
|
220
223
|
*RoleApi* | [**assignUserRole**](docs/RoleApi.md#assignuserrole) | **POST** /roles/users/{userId}/portals/{portalId}/roles/{roleId} | Assign a role to a user for a portal
|
|
221
224
|
*RoleApi* | [**createRole**](docs/RoleApi.md#createrole) | **POST** /roles | Create a custom role scoped to the current portal
|
|
222
225
|
*RoleApi* | [**deleteRole**](docs/RoleApi.md#deleterole) | **DELETE** /roles/{roleId} | Deactivate a custom role
|
|
@@ -245,6 +248,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
245
248
|
*UserApi* | [**getAuthCheck**](docs/UserApi.md#getauthcheck) | **GET** /auth/check | Check if a user is logged in
|
|
246
249
|
*UserApi* | [**getCurrentUserPermissions**](docs/UserApi.md#getcurrentuserpermissions) | **GET** /users/current/permissions | Get the current user\'s permissions
|
|
247
250
|
*UserApi* | [**getUser**](docs/UserApi.md#getuser) | **GET** /users/{userId} | Get a user by id
|
|
251
|
+
*UserApi* | [**getUserCourses**](docs/UserApi.md#getusercourses) | **GET** /users/{userId}/courses | Get enrolled courses for a user
|
|
248
252
|
*UserApi* | [**getUserEnrollments**](docs/UserApi.md#getuserenrollments) | **GET** /users/{userId}/enrollments | Get user enrollments
|
|
249
253
|
*UserApi* | [**postLogin**](docs/UserApi.md#postlogin) | **POST** /auth/login | Post a new login
|
|
250
254
|
*UserApi* | [**postLogout**](docs/UserApi.md#postlogout) | **POST** /auth/logout | Logout a user
|
|
@@ -397,6 +401,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
397
401
|
- [GetQuizResultsScore](docs/GetQuizResultsScore.md)
|
|
398
402
|
- [GetQuizResultsTiming](docs/GetQuizResultsTiming.md)
|
|
399
403
|
- [GetQuizStatistics](docs/GetQuizStatistics.md)
|
|
404
|
+
- [GetRichTextAssetUpload](docs/GetRichTextAssetUpload.md)
|
|
400
405
|
- [GetRole](docs/GetRole.md)
|
|
401
406
|
- [GetScormApiLogItem](docs/GetScormApiLogItem.md)
|
|
402
407
|
- [GetScormApiLogs](docs/GetScormApiLogs.md)
|
|
@@ -413,6 +418,12 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
413
418
|
- [GetSystemMetrics](docs/GetSystemMetrics.md)
|
|
414
419
|
- [GetUser](docs/GetUser.md)
|
|
415
420
|
- [GetUserAvatarUpload](docs/GetUserAvatarUpload.md)
|
|
421
|
+
- [GetUserCourseList](docs/GetUserCourseList.md)
|
|
422
|
+
- [GetUserCourseListItem](docs/GetUserCourseListItem.md)
|
|
423
|
+
- [GetUserCourseListItemCertificate](docs/GetUserCourseListItemCertificate.md)
|
|
424
|
+
- [GetUserCourseListItemCourse](docs/GetUserCourseListItemCourse.md)
|
|
425
|
+
- [GetUserCourseListItemEnrollment](docs/GetUserCourseListItemEnrollment.md)
|
|
426
|
+
- [GetUserCourseListItemProgress](docs/GetUserCourseListItemProgress.md)
|
|
416
427
|
- [GetUserQuizAttempts](docs/GetUserQuizAttempts.md)
|
|
417
428
|
- [GetUserQuizAttemptsAllOfAttempts](docs/GetUserQuizAttemptsAllOfAttempts.md)
|
|
418
429
|
- [GetUserQuizAttemptsAllOfFilters](docs/GetUserQuizAttemptsAllOfFilters.md)
|
|
@@ -488,6 +499,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
488
499
|
- [PostQuizSettings](docs/PostQuizSettings.md)
|
|
489
500
|
- [PostResetPassword](docs/PostResetPassword.md)
|
|
490
501
|
- [PostRevokeCertificate](docs/PostRevokeCertificate.md)
|
|
502
|
+
- [PostRichTextAssetComplete](docs/PostRichTextAssetComplete.md)
|
|
503
|
+
- [PostRichTextAssetUpload](docs/PostRichTextAssetUpload.md)
|
|
491
504
|
- [PostRole](docs/PostRole.md)
|
|
492
505
|
- [PostSendResetPassword](docs/PostSendResetPassword.md)
|
|
493
506
|
- [PostSignupRequest](docs/PostSignupRequest.md)
|
|
@@ -524,6 +537,9 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
524
537
|
- [QuizContent](docs/QuizContent.md)
|
|
525
538
|
- [QuizContentAssignment](docs/QuizContentAssignment.md)
|
|
526
539
|
- [QuizContentSettings](docs/QuizContentSettings.md)
|
|
540
|
+
- [RichTextAsset](docs/RichTextAsset.md)
|
|
541
|
+
- [RichTextDocument](docs/RichTextDocument.md)
|
|
542
|
+
- [RichTextInput](docs/RichTextInput.md)
|
|
527
543
|
- [SCORMContent](docs/SCORMContent.md)
|
|
528
544
|
- [ScormGetValueResponse](docs/ScormGetValueResponse.md)
|
|
529
545
|
- [ScormSessionData](docs/ScormSessionData.md)
|
|
@@ -554,7 +570,7 @@ and is automatically generated by the
|
|
|
554
570
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
555
571
|
|
|
556
572
|
- API version: `1.0.0`
|
|
557
|
-
- Package version: `1.
|
|
573
|
+
- Package version: `1.81.0`
|
|
558
574
|
- Generator version: `7.22.0`
|
|
559
575
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
560
576
|
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
import { type GetRichTextAssetUpload } from '../models/GetRichTextAssetUpload';
|
|
14
|
+
import { type PostRichTextAssetComplete } from '../models/PostRichTextAssetComplete';
|
|
15
|
+
import { type PostRichTextAssetUpload } from '../models/PostRichTextAssetUpload';
|
|
16
|
+
import { type RichTextAsset } from '../models/RichTextAsset';
|
|
17
|
+
export interface GetRichTextAssetRequest {
|
|
18
|
+
assetId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface PostRichTextAssetCompleteRequest {
|
|
21
|
+
assetId: string;
|
|
22
|
+
postRichTextAssetComplete: PostRichTextAssetComplete;
|
|
23
|
+
}
|
|
24
|
+
export interface PostRichTextAssetUploadRequest {
|
|
25
|
+
postRichTextAssetUpload: PostRichTextAssetUpload;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class RichTextApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for getRichTextAsset without sending the request
|
|
33
|
+
*/
|
|
34
|
+
getRichTextAssetRequestOpts(requestParameters: GetRichTextAssetRequest): Promise<runtime.RequestOpts>;
|
|
35
|
+
/**
|
|
36
|
+
* Redirect to a signed rich text asset URL
|
|
37
|
+
*/
|
|
38
|
+
getRichTextAssetRaw(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
39
|
+
/**
|
|
40
|
+
* Redirect to a signed rich text asset URL
|
|
41
|
+
*/
|
|
42
|
+
getRichTextAsset(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Creates request options for postRichTextAssetComplete without sending the request
|
|
45
|
+
*/
|
|
46
|
+
postRichTextAssetCompleteRequestOpts(requestParameters: PostRichTextAssetCompleteRequest): Promise<runtime.RequestOpts>;
|
|
47
|
+
/**
|
|
48
|
+
* Complete a pending rich text asset upload
|
|
49
|
+
*/
|
|
50
|
+
postRichTextAssetCompleteRaw(requestParameters: PostRichTextAssetCompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RichTextAsset>>;
|
|
51
|
+
/**
|
|
52
|
+
* Complete a pending rich text asset upload
|
|
53
|
+
*/
|
|
54
|
+
postRichTextAssetComplete(requestParameters: PostRichTextAssetCompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RichTextAsset>;
|
|
55
|
+
/**
|
|
56
|
+
* Creates request options for postRichTextAssetUpload without sending the request
|
|
57
|
+
*/
|
|
58
|
+
postRichTextAssetUploadRequestOpts(requestParameters: PostRichTextAssetUploadRequest): Promise<runtime.RequestOpts>;
|
|
59
|
+
/**
|
|
60
|
+
* Create a pending rich text asset upload
|
|
61
|
+
*/
|
|
62
|
+
postRichTextAssetUploadRaw(requestParameters: PostRichTextAssetUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRichTextAssetUpload>>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a pending rich text asset upload
|
|
65
|
+
*/
|
|
66
|
+
postRichTextAssetUpload(requestParameters: PostRichTextAssetUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRichTextAssetUpload>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
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.RichTextApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const GetRichTextAssetUpload_1 = require("../models/GetRichTextAssetUpload");
|
|
28
|
+
const PostRichTextAssetComplete_1 = require("../models/PostRichTextAssetComplete");
|
|
29
|
+
const PostRichTextAssetUpload_1 = require("../models/PostRichTextAssetUpload");
|
|
30
|
+
const RichTextAsset_1 = require("../models/RichTextAsset");
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
class RichTextApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for getRichTextAsset without sending the request
|
|
37
|
+
*/
|
|
38
|
+
getRichTextAssetRequestOpts(requestParameters) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (requestParameters['assetId'] == null) {
|
|
41
|
+
throw new runtime.RequiredError('assetId', 'Required parameter "assetId" was null or undefined when calling getRichTextAsset().');
|
|
42
|
+
}
|
|
43
|
+
const queryParameters = {};
|
|
44
|
+
const headerParameters = {};
|
|
45
|
+
let urlPath = `/rich-text/assets/{assetId}`;
|
|
46
|
+
urlPath = urlPath.replace('{assetId}', encodeURIComponent(String(requestParameters['assetId'])));
|
|
47
|
+
return {
|
|
48
|
+
path: urlPath,
|
|
49
|
+
method: 'GET',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Redirect to a signed rich text asset URL
|
|
57
|
+
*/
|
|
58
|
+
getRichTextAssetRaw(requestParameters, initOverrides) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const requestOptions = yield this.getRichTextAssetRequestOpts(requestParameters);
|
|
61
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
62
|
+
return new runtime.VoidApiResponse(response);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Redirect to a signed rich text asset URL
|
|
67
|
+
*/
|
|
68
|
+
getRichTextAsset(requestParameters, initOverrides) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
yield this.getRichTextAssetRaw(requestParameters, initOverrides);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates request options for postRichTextAssetComplete without sending the request
|
|
75
|
+
*/
|
|
76
|
+
postRichTextAssetCompleteRequestOpts(requestParameters) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
if (requestParameters['assetId'] == null) {
|
|
79
|
+
throw new runtime.RequiredError('assetId', 'Required parameter "assetId" was null or undefined when calling postRichTextAssetComplete().');
|
|
80
|
+
}
|
|
81
|
+
if (requestParameters['postRichTextAssetComplete'] == null) {
|
|
82
|
+
throw new runtime.RequiredError('postRichTextAssetComplete', 'Required parameter "postRichTextAssetComplete" was null or undefined when calling postRichTextAssetComplete().');
|
|
83
|
+
}
|
|
84
|
+
const queryParameters = {};
|
|
85
|
+
const headerParameters = {};
|
|
86
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
87
|
+
let urlPath = `/rich-text/assets/{assetId}/complete`;
|
|
88
|
+
urlPath = urlPath.replace('{assetId}', encodeURIComponent(String(requestParameters['assetId'])));
|
|
89
|
+
return {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
body: (0, PostRichTextAssetComplete_1.PostRichTextAssetCompleteToJSON)(requestParameters['postRichTextAssetComplete']),
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Complete a pending rich text asset upload
|
|
100
|
+
*/
|
|
101
|
+
postRichTextAssetCompleteRaw(requestParameters, initOverrides) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const requestOptions = yield this.postRichTextAssetCompleteRequestOpts(requestParameters);
|
|
104
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
105
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, RichTextAsset_1.RichTextAssetFromJSON)(jsonValue));
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Complete a pending rich text asset upload
|
|
110
|
+
*/
|
|
111
|
+
postRichTextAssetComplete(requestParameters, initOverrides) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
const response = yield this.postRichTextAssetCompleteRaw(requestParameters, initOverrides);
|
|
114
|
+
return yield response.value();
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Creates request options for postRichTextAssetUpload without sending the request
|
|
119
|
+
*/
|
|
120
|
+
postRichTextAssetUploadRequestOpts(requestParameters) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
if (requestParameters['postRichTextAssetUpload'] == null) {
|
|
123
|
+
throw new runtime.RequiredError('postRichTextAssetUpload', 'Required parameter "postRichTextAssetUpload" was null or undefined when calling postRichTextAssetUpload().');
|
|
124
|
+
}
|
|
125
|
+
const queryParameters = {};
|
|
126
|
+
const headerParameters = {};
|
|
127
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
128
|
+
let urlPath = `/rich-text/assets/uploads`;
|
|
129
|
+
return {
|
|
130
|
+
path: urlPath,
|
|
131
|
+
method: 'POST',
|
|
132
|
+
headers: headerParameters,
|
|
133
|
+
query: queryParameters,
|
|
134
|
+
body: (0, PostRichTextAssetUpload_1.PostRichTextAssetUploadToJSON)(requestParameters['postRichTextAssetUpload']),
|
|
135
|
+
};
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Create a pending rich text asset upload
|
|
140
|
+
*/
|
|
141
|
+
postRichTextAssetUploadRaw(requestParameters, initOverrides) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
const requestOptions = yield this.postRichTextAssetUploadRequestOpts(requestParameters);
|
|
144
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
145
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetRichTextAssetUpload_1.GetRichTextAssetUploadFromJSON)(jsonValue));
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Create a pending rich text asset upload
|
|
150
|
+
*/
|
|
151
|
+
postRichTextAssetUpload(requestParameters, initOverrides) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
const response = yield this.postRichTextAssetUploadRaw(requestParameters, initOverrides);
|
|
154
|
+
return yield response.value();
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.RichTextApi = RichTextApi;
|
package/dist/apis/UserApi.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import { type GetCourseEnrollmentList } from '../models/GetCourseEnrollmentList';
|
|
14
14
|
import { type GetUser } from '../models/GetUser';
|
|
15
15
|
import { type GetUserAvatarUpload } from '../models/GetUserAvatarUpload';
|
|
16
|
+
import { type GetUserCourseList } from '../models/GetUserCourseList';
|
|
16
17
|
import { type LoginRes } from '../models/LoginRes';
|
|
17
18
|
import { type PostLogin } from '../models/PostLogin';
|
|
18
19
|
import { type PostResetPassword } from '../models/PostResetPassword';
|
|
@@ -26,6 +27,16 @@ export interface DeleteUserAvatarRequest {
|
|
|
26
27
|
export interface GetUserRequest {
|
|
27
28
|
userId: string;
|
|
28
29
|
}
|
|
30
|
+
export interface GetUserCoursesRequest {
|
|
31
|
+
userId: string;
|
|
32
|
+
page?: number;
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
search?: string;
|
|
35
|
+
recentActivitySince?: number;
|
|
36
|
+
enrollmentStatus?: string;
|
|
37
|
+
orderBy?: GetUserCoursesOrderByEnum;
|
|
38
|
+
orderDirection?: GetUserCoursesOrderDirectionEnum;
|
|
39
|
+
}
|
|
29
40
|
export interface GetUserEnrollmentsRequest {
|
|
30
41
|
userId: string;
|
|
31
42
|
type?: GetUserEnrollmentsTypeEnum;
|
|
@@ -110,6 +121,18 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
110
121
|
* Get a user by id
|
|
111
122
|
*/
|
|
112
123
|
getUser(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUser>;
|
|
124
|
+
/**
|
|
125
|
+
* Creates request options for getUserCourses without sending the request
|
|
126
|
+
*/
|
|
127
|
+
getUserCoursesRequestOpts(requestParameters: GetUserCoursesRequest): Promise<runtime.RequestOpts>;
|
|
128
|
+
/**
|
|
129
|
+
* Get enrolled courses for a user
|
|
130
|
+
*/
|
|
131
|
+
getUserCoursesRaw(requestParameters: GetUserCoursesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserCourseList>>;
|
|
132
|
+
/**
|
|
133
|
+
* Get enrolled courses for a user
|
|
134
|
+
*/
|
|
135
|
+
getUserCourses(requestParameters: GetUserCoursesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserCourseList>;
|
|
113
136
|
/**
|
|
114
137
|
* Creates request options for getUserEnrollments without sending the request
|
|
115
138
|
*/
|
|
@@ -219,6 +242,25 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
219
242
|
*/
|
|
220
243
|
verifySignupRequest(requestParameters: VerifySignupRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
221
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* @export
|
|
247
|
+
*/
|
|
248
|
+
export declare const GetUserCoursesOrderByEnum: {
|
|
249
|
+
readonly Name: "name";
|
|
250
|
+
readonly CreatedAt: "created_at";
|
|
251
|
+
readonly EnrollmentDateStart: "enrollment_date_start";
|
|
252
|
+
readonly EnrollmentStatus: "enrollment_status";
|
|
253
|
+
readonly CompletionPercentage: "completion_percentage";
|
|
254
|
+
};
|
|
255
|
+
export type GetUserCoursesOrderByEnum = typeof GetUserCoursesOrderByEnum[keyof typeof GetUserCoursesOrderByEnum];
|
|
256
|
+
/**
|
|
257
|
+
* @export
|
|
258
|
+
*/
|
|
259
|
+
export declare const GetUserCoursesOrderDirectionEnum: {
|
|
260
|
+
readonly Asc: "asc";
|
|
261
|
+
readonly Desc: "desc";
|
|
262
|
+
};
|
|
263
|
+
export type GetUserCoursesOrderDirectionEnum = typeof GetUserCoursesOrderDirectionEnum[keyof typeof GetUserCoursesOrderDirectionEnum];
|
|
222
264
|
/**
|
|
223
265
|
* @export
|
|
224
266
|
*/
|
package/dist/apis/UserApi.js
CHANGED
|
@@ -22,11 +22,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.GetUserEnrollmentsTypeEnum = exports.UserApi = void 0;
|
|
25
|
+
exports.GetUserEnrollmentsTypeEnum = exports.GetUserCoursesOrderDirectionEnum = exports.GetUserCoursesOrderByEnum = exports.UserApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const GetCourseEnrollmentList_1 = require("../models/GetCourseEnrollmentList");
|
|
28
28
|
const GetUser_1 = require("../models/GetUser");
|
|
29
29
|
const GetUserAvatarUpload_1 = require("../models/GetUserAvatarUpload");
|
|
30
|
+
const GetUserCourseList_1 = require("../models/GetUserCourseList");
|
|
30
31
|
const LoginRes_1 = require("../models/LoginRes");
|
|
31
32
|
const PostLogin_1 = require("../models/PostLogin");
|
|
32
33
|
const PostResetPassword_1 = require("../models/PostResetPassword");
|
|
@@ -186,6 +187,66 @@ class UserApi extends runtime.BaseAPI {
|
|
|
186
187
|
return yield response.value();
|
|
187
188
|
});
|
|
188
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* Creates request options for getUserCourses without sending the request
|
|
192
|
+
*/
|
|
193
|
+
getUserCoursesRequestOpts(requestParameters) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
if (requestParameters['userId'] == null) {
|
|
196
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUserCourses().');
|
|
197
|
+
}
|
|
198
|
+
const queryParameters = {};
|
|
199
|
+
if (requestParameters['page'] != null) {
|
|
200
|
+
queryParameters['page'] = requestParameters['page'];
|
|
201
|
+
}
|
|
202
|
+
if (requestParameters['pageSize'] != null) {
|
|
203
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
204
|
+
}
|
|
205
|
+
if (requestParameters['search'] != null) {
|
|
206
|
+
queryParameters['search'] = requestParameters['search'];
|
|
207
|
+
}
|
|
208
|
+
if (requestParameters['recentActivitySince'] != null) {
|
|
209
|
+
queryParameters['recentActivitySince'] = requestParameters['recentActivitySince'];
|
|
210
|
+
}
|
|
211
|
+
if (requestParameters['enrollmentStatus'] != null) {
|
|
212
|
+
queryParameters['enrollmentStatus'] = requestParameters['enrollmentStatus'];
|
|
213
|
+
}
|
|
214
|
+
if (requestParameters['orderBy'] != null) {
|
|
215
|
+
queryParameters['orderBy'] = requestParameters['orderBy'];
|
|
216
|
+
}
|
|
217
|
+
if (requestParameters['orderDirection'] != null) {
|
|
218
|
+
queryParameters['orderDirection'] = requestParameters['orderDirection'];
|
|
219
|
+
}
|
|
220
|
+
const headerParameters = {};
|
|
221
|
+
let urlPath = `/users/{userId}/courses`;
|
|
222
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
223
|
+
return {
|
|
224
|
+
path: urlPath,
|
|
225
|
+
method: 'GET',
|
|
226
|
+
headers: headerParameters,
|
|
227
|
+
query: queryParameters,
|
|
228
|
+
};
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Get enrolled courses for a user
|
|
233
|
+
*/
|
|
234
|
+
getUserCoursesRaw(requestParameters, initOverrides) {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
const requestOptions = yield this.getUserCoursesRequestOpts(requestParameters);
|
|
237
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
238
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetUserCourseList_1.GetUserCourseListFromJSON)(jsonValue));
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Get enrolled courses for a user
|
|
243
|
+
*/
|
|
244
|
+
getUserCourses(requestParameters, initOverrides) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
const response = yield this.getUserCoursesRaw(requestParameters, initOverrides);
|
|
247
|
+
return yield response.value();
|
|
248
|
+
});
|
|
249
|
+
}
|
|
189
250
|
/**
|
|
190
251
|
* Creates request options for getUserEnrollments without sending the request
|
|
191
252
|
*/
|
|
@@ -576,6 +637,23 @@ class UserApi extends runtime.BaseAPI {
|
|
|
576
637
|
}
|
|
577
638
|
}
|
|
578
639
|
exports.UserApi = UserApi;
|
|
640
|
+
/**
|
|
641
|
+
* @export
|
|
642
|
+
*/
|
|
643
|
+
exports.GetUserCoursesOrderByEnum = {
|
|
644
|
+
Name: 'name',
|
|
645
|
+
CreatedAt: 'created_at',
|
|
646
|
+
EnrollmentDateStart: 'enrollment_date_start',
|
|
647
|
+
EnrollmentStatus: 'enrollment_status',
|
|
648
|
+
CompletionPercentage: 'completion_percentage'
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
* @export
|
|
652
|
+
*/
|
|
653
|
+
exports.GetUserCoursesOrderDirectionEnum = {
|
|
654
|
+
Asc: 'asc',
|
|
655
|
+
Desc: 'desc'
|
|
656
|
+
};
|
|
579
657
|
/**
|
|
580
658
|
* @export
|
|
581
659
|
*/
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './PortalSublicenseApi';
|
|
|
13
13
|
export * from './QuestionApi';
|
|
14
14
|
export * from './QuizApi';
|
|
15
15
|
export * from './ReportingApi';
|
|
16
|
+
export * from './RichTextApi';
|
|
16
17
|
export * from './RoleApi';
|
|
17
18
|
export * from './SupportTicketApi';
|
|
18
19
|
export * from './SystemApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./PortalSublicenseApi"), exports);
|
|
|
31
31
|
__exportStar(require("./QuestionApi"), exports);
|
|
32
32
|
__exportStar(require("./QuizApi"), exports);
|
|
33
33
|
__exportStar(require("./ReportingApi"), exports);
|
|
34
|
+
__exportStar(require("./RichTextApi"), exports);
|
|
34
35
|
__exportStar(require("./RoleApi"), exports);
|
|
35
36
|
__exportStar(require("./SupportTicketApi"), exports);
|
|
36
37
|
__exportStar(require("./SystemApi"), exports);
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
import { type GetRichTextAssetUpload } from '../models/GetRichTextAssetUpload';
|
|
14
|
+
import { type PostRichTextAssetComplete } from '../models/PostRichTextAssetComplete';
|
|
15
|
+
import { type PostRichTextAssetUpload } from '../models/PostRichTextAssetUpload';
|
|
16
|
+
import { type RichTextAsset } from '../models/RichTextAsset';
|
|
17
|
+
export interface GetRichTextAssetRequest {
|
|
18
|
+
assetId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface PostRichTextAssetCompleteRequest {
|
|
21
|
+
assetId: string;
|
|
22
|
+
postRichTextAssetComplete: PostRichTextAssetComplete;
|
|
23
|
+
}
|
|
24
|
+
export interface PostRichTextAssetUploadRequest {
|
|
25
|
+
postRichTextAssetUpload: PostRichTextAssetUpload;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class RichTextApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for getRichTextAsset without sending the request
|
|
33
|
+
*/
|
|
34
|
+
getRichTextAssetRequestOpts(requestParameters: GetRichTextAssetRequest): Promise<runtime.RequestOpts>;
|
|
35
|
+
/**
|
|
36
|
+
* Redirect to a signed rich text asset URL
|
|
37
|
+
*/
|
|
38
|
+
getRichTextAssetRaw(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
39
|
+
/**
|
|
40
|
+
* Redirect to a signed rich text asset URL
|
|
41
|
+
*/
|
|
42
|
+
getRichTextAsset(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Creates request options for postRichTextAssetComplete without sending the request
|
|
45
|
+
*/
|
|
46
|
+
postRichTextAssetCompleteRequestOpts(requestParameters: PostRichTextAssetCompleteRequest): Promise<runtime.RequestOpts>;
|
|
47
|
+
/**
|
|
48
|
+
* Complete a pending rich text asset upload
|
|
49
|
+
*/
|
|
50
|
+
postRichTextAssetCompleteRaw(requestParameters: PostRichTextAssetCompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RichTextAsset>>;
|
|
51
|
+
/**
|
|
52
|
+
* Complete a pending rich text asset upload
|
|
53
|
+
*/
|
|
54
|
+
postRichTextAssetComplete(requestParameters: PostRichTextAssetCompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RichTextAsset>;
|
|
55
|
+
/**
|
|
56
|
+
* Creates request options for postRichTextAssetUpload without sending the request
|
|
57
|
+
*/
|
|
58
|
+
postRichTextAssetUploadRequestOpts(requestParameters: PostRichTextAssetUploadRequest): Promise<runtime.RequestOpts>;
|
|
59
|
+
/**
|
|
60
|
+
* Create a pending rich text asset upload
|
|
61
|
+
*/
|
|
62
|
+
postRichTextAssetUploadRaw(requestParameters: PostRichTextAssetUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRichTextAssetUpload>>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a pending rich text asset upload
|
|
65
|
+
*/
|
|
66
|
+
postRichTextAssetUpload(requestParameters: PostRichTextAssetUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRichTextAssetUpload>;
|
|
67
|
+
}
|