@easyedu/js-lsm-api 1.80.0 → 1.82.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 +14 -0
- package/README.md +12 -2
- package/dist/apis/RichTextApi.d.ts +83 -0
- package/dist/apis/RichTextApi.js +201 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/RichTextApi.d.ts +83 -0
- package/dist/esm/apis/RichTextApi.js +197 -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/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 +6 -0
- package/dist/esm/models/index.js +6 -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/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 +6 -0
- package/dist/models/index.js +6 -0
- package/docs/GetQuestion.md +2 -2
- package/docs/GetQuestionAnswerChoicesInner.md +1 -1
- package/docs/GetRichTextAssetUpload.md +40 -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 +285 -0
- package/docs/RichTextAsset.md +44 -0
- package/docs/RichTextDocument.md +40 -0
- package/docs/RichTextInput.md +36 -0
- package/package.json +1 -1
- package/src/apis/RichTextApi.ts +260 -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/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 +6 -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
|
|
@@ -250,6 +251,8 @@ docs/PostQuizQuestionsQuestionsInner.md
|
|
|
250
251
|
docs/PostQuizSettings.md
|
|
251
252
|
docs/PostResetPassword.md
|
|
252
253
|
docs/PostRevokeCertificate.md
|
|
254
|
+
docs/PostRichTextAssetComplete.md
|
|
255
|
+
docs/PostRichTextAssetUpload.md
|
|
253
256
|
docs/PostRole.md
|
|
254
257
|
docs/PostSendResetPassword.md
|
|
255
258
|
docs/PostSignupRequest.md
|
|
@@ -289,6 +292,10 @@ docs/QuizContent.md
|
|
|
289
292
|
docs/QuizContentAssignment.md
|
|
290
293
|
docs/QuizContentSettings.md
|
|
291
294
|
docs/ReportingApi.md
|
|
295
|
+
docs/RichTextApi.md
|
|
296
|
+
docs/RichTextAsset.md
|
|
297
|
+
docs/RichTextDocument.md
|
|
298
|
+
docs/RichTextInput.md
|
|
292
299
|
docs/RoleApi.md
|
|
293
300
|
docs/SCORMContent.md
|
|
294
301
|
docs/ScormGetValueResponse.md
|
|
@@ -326,6 +333,7 @@ src/apis/PortalSublicenseApi.ts
|
|
|
326
333
|
src/apis/QuestionApi.ts
|
|
327
334
|
src/apis/QuizApi.ts
|
|
328
335
|
src/apis/ReportingApi.ts
|
|
336
|
+
src/apis/RichTextApi.ts
|
|
329
337
|
src/apis/RoleApi.ts
|
|
330
338
|
src/apis/SupportTicketApi.ts
|
|
331
339
|
src/apis/SystemApi.ts
|
|
@@ -471,6 +479,7 @@ src/models/GetQuizResultsQuestionsInnerStudentAnswer.ts
|
|
|
471
479
|
src/models/GetQuizResultsScore.ts
|
|
472
480
|
src/models/GetQuizResultsTiming.ts
|
|
473
481
|
src/models/GetQuizStatistics.ts
|
|
482
|
+
src/models/GetRichTextAssetUpload.ts
|
|
474
483
|
src/models/GetRole.ts
|
|
475
484
|
src/models/GetScormApiLogItem.ts
|
|
476
485
|
src/models/GetScormApiLogs.ts
|
|
@@ -568,6 +577,8 @@ src/models/PostQuizQuestionsQuestionsInner.ts
|
|
|
568
577
|
src/models/PostQuizSettings.ts
|
|
569
578
|
src/models/PostResetPassword.ts
|
|
570
579
|
src/models/PostRevokeCertificate.ts
|
|
580
|
+
src/models/PostRichTextAssetComplete.ts
|
|
581
|
+
src/models/PostRichTextAssetUpload.ts
|
|
571
582
|
src/models/PostRole.ts
|
|
572
583
|
src/models/PostSendResetPassword.ts
|
|
573
584
|
src/models/PostSignupRequest.ts
|
|
@@ -604,6 +615,9 @@ src/models/PutUser.ts
|
|
|
604
615
|
src/models/QuizContent.ts
|
|
605
616
|
src/models/QuizContentAssignment.ts
|
|
606
617
|
src/models/QuizContentSettings.ts
|
|
618
|
+
src/models/RichTextAsset.ts
|
|
619
|
+
src/models/RichTextDocument.ts
|
|
620
|
+
src/models/RichTextInput.ts
|
|
607
621
|
src/models/SCORMContent.ts
|
|
608
622
|
src/models/ScormGetValueResponse.ts
|
|
609
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.82.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,10 @@ 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
|
|
223
|
+
*RichTextApi* | [**putRichTextAssetFile**](docs/RichTextApi.md#putrichtextassetfile) | **PUT** /rich-text/assets/{assetId}/file | Upload a pending rich text asset file through the API
|
|
220
224
|
*RoleApi* | [**assignUserRole**](docs/RoleApi.md#assignuserrole) | **POST** /roles/users/{userId}/portals/{portalId}/roles/{roleId} | Assign a role to a user for a portal
|
|
221
225
|
*RoleApi* | [**createRole**](docs/RoleApi.md#createrole) | **POST** /roles | Create a custom role scoped to the current portal
|
|
222
226
|
*RoleApi* | [**deleteRole**](docs/RoleApi.md#deleterole) | **DELETE** /roles/{roleId} | Deactivate a custom role
|
|
@@ -398,6 +402,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
398
402
|
- [GetQuizResultsScore](docs/GetQuizResultsScore.md)
|
|
399
403
|
- [GetQuizResultsTiming](docs/GetQuizResultsTiming.md)
|
|
400
404
|
- [GetQuizStatistics](docs/GetQuizStatistics.md)
|
|
405
|
+
- [GetRichTextAssetUpload](docs/GetRichTextAssetUpload.md)
|
|
401
406
|
- [GetRole](docs/GetRole.md)
|
|
402
407
|
- [GetScormApiLogItem](docs/GetScormApiLogItem.md)
|
|
403
408
|
- [GetScormApiLogs](docs/GetScormApiLogs.md)
|
|
@@ -495,6 +500,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
495
500
|
- [PostQuizSettings](docs/PostQuizSettings.md)
|
|
496
501
|
- [PostResetPassword](docs/PostResetPassword.md)
|
|
497
502
|
- [PostRevokeCertificate](docs/PostRevokeCertificate.md)
|
|
503
|
+
- [PostRichTextAssetComplete](docs/PostRichTextAssetComplete.md)
|
|
504
|
+
- [PostRichTextAssetUpload](docs/PostRichTextAssetUpload.md)
|
|
498
505
|
- [PostRole](docs/PostRole.md)
|
|
499
506
|
- [PostSendResetPassword](docs/PostSendResetPassword.md)
|
|
500
507
|
- [PostSignupRequest](docs/PostSignupRequest.md)
|
|
@@ -531,6 +538,9 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
531
538
|
- [QuizContent](docs/QuizContent.md)
|
|
532
539
|
- [QuizContentAssignment](docs/QuizContentAssignment.md)
|
|
533
540
|
- [QuizContentSettings](docs/QuizContentSettings.md)
|
|
541
|
+
- [RichTextAsset](docs/RichTextAsset.md)
|
|
542
|
+
- [RichTextDocument](docs/RichTextDocument.md)
|
|
543
|
+
- [RichTextInput](docs/RichTextInput.md)
|
|
534
544
|
- [SCORMContent](docs/SCORMContent.md)
|
|
535
545
|
- [ScormGetValueResponse](docs/ScormGetValueResponse.md)
|
|
536
546
|
- [ScormSessionData](docs/ScormSessionData.md)
|
|
@@ -561,7 +571,7 @@ and is automatically generated by the
|
|
|
561
571
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
562
572
|
|
|
563
573
|
- API version: `1.0.0`
|
|
564
|
-
- Package version: `1.
|
|
574
|
+
- Package version: `1.82.0`
|
|
565
575
|
- Generator version: `7.22.0`
|
|
566
576
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
567
577
|
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
export interface PutRichTextAssetFileRequest {
|
|
28
|
+
assetId: string;
|
|
29
|
+
body: Blob;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare class RichTextApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for getRichTextAsset without sending the request
|
|
37
|
+
*/
|
|
38
|
+
getRichTextAssetRequestOpts(requestParameters: GetRichTextAssetRequest): Promise<runtime.RequestOpts>;
|
|
39
|
+
/**
|
|
40
|
+
* Redirect to a signed rich text asset URL
|
|
41
|
+
*/
|
|
42
|
+
getRichTextAssetRaw(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
43
|
+
/**
|
|
44
|
+
* Redirect to a signed rich text asset URL
|
|
45
|
+
*/
|
|
46
|
+
getRichTextAsset(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates request options for postRichTextAssetComplete without sending the request
|
|
49
|
+
*/
|
|
50
|
+
postRichTextAssetCompleteRequestOpts(requestParameters: PostRichTextAssetCompleteRequest): Promise<runtime.RequestOpts>;
|
|
51
|
+
/**
|
|
52
|
+
* Complete a pending rich text asset upload
|
|
53
|
+
*/
|
|
54
|
+
postRichTextAssetCompleteRaw(requestParameters: PostRichTextAssetCompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RichTextAsset>>;
|
|
55
|
+
/**
|
|
56
|
+
* Complete a pending rich text asset upload
|
|
57
|
+
*/
|
|
58
|
+
postRichTextAssetComplete(requestParameters: PostRichTextAssetCompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RichTextAsset>;
|
|
59
|
+
/**
|
|
60
|
+
* Creates request options for postRichTextAssetUpload without sending the request
|
|
61
|
+
*/
|
|
62
|
+
postRichTextAssetUploadRequestOpts(requestParameters: PostRichTextAssetUploadRequest): Promise<runtime.RequestOpts>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a pending rich text asset upload
|
|
65
|
+
*/
|
|
66
|
+
postRichTextAssetUploadRaw(requestParameters: PostRichTextAssetUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRichTextAssetUpload>>;
|
|
67
|
+
/**
|
|
68
|
+
* Create a pending rich text asset upload
|
|
69
|
+
*/
|
|
70
|
+
postRichTextAssetUpload(requestParameters: PostRichTextAssetUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRichTextAssetUpload>;
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for putRichTextAssetFile without sending the request
|
|
73
|
+
*/
|
|
74
|
+
putRichTextAssetFileRequestOpts(requestParameters: PutRichTextAssetFileRequest): Promise<runtime.RequestOpts>;
|
|
75
|
+
/**
|
|
76
|
+
* Upload a pending rich text asset file through the API
|
|
77
|
+
*/
|
|
78
|
+
putRichTextAssetFileRaw(requestParameters: PutRichTextAssetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
79
|
+
/**
|
|
80
|
+
* Upload a pending rich text asset file through the API
|
|
81
|
+
*/
|
|
82
|
+
putRichTextAssetFile(requestParameters: PutRichTextAssetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
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
|
+
* Creates request options for putRichTextAssetFile without sending the request
|
|
159
|
+
*/
|
|
160
|
+
putRichTextAssetFileRequestOpts(requestParameters) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
if (requestParameters['assetId'] == null) {
|
|
163
|
+
throw new runtime.RequiredError('assetId', 'Required parameter "assetId" was null or undefined when calling putRichTextAssetFile().');
|
|
164
|
+
}
|
|
165
|
+
if (requestParameters['body'] == null) {
|
|
166
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling putRichTextAssetFile().');
|
|
167
|
+
}
|
|
168
|
+
const queryParameters = {};
|
|
169
|
+
const headerParameters = {};
|
|
170
|
+
headerParameters['Content-Type'] = 'image/png';
|
|
171
|
+
let urlPath = `/rich-text/assets/{assetId}/file`;
|
|
172
|
+
urlPath = urlPath.replace('{assetId}', encodeURIComponent(String(requestParameters['assetId'])));
|
|
173
|
+
return {
|
|
174
|
+
path: urlPath,
|
|
175
|
+
method: 'PUT',
|
|
176
|
+
headers: headerParameters,
|
|
177
|
+
query: queryParameters,
|
|
178
|
+
body: requestParameters['body'],
|
|
179
|
+
};
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Upload a pending rich text asset file through the API
|
|
184
|
+
*/
|
|
185
|
+
putRichTextAssetFileRaw(requestParameters, initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const requestOptions = yield this.putRichTextAssetFileRequestOpts(requestParameters);
|
|
188
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
189
|
+
return new runtime.VoidApiResponse(response);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Upload a pending rich text asset file through the API
|
|
194
|
+
*/
|
|
195
|
+
putRichTextAssetFile(requestParameters, initOverrides) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
yield this.putRichTextAssetFileRaw(requestParameters, initOverrides);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
exports.RichTextApi = RichTextApi;
|
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,83 @@
|
|
|
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
|
+
export interface PutRichTextAssetFileRequest {
|
|
28
|
+
assetId: string;
|
|
29
|
+
body: Blob;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare class RichTextApi extends runtime.BaseAPI {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for getRichTextAsset without sending the request
|
|
37
|
+
*/
|
|
38
|
+
getRichTextAssetRequestOpts(requestParameters: GetRichTextAssetRequest): Promise<runtime.RequestOpts>;
|
|
39
|
+
/**
|
|
40
|
+
* Redirect to a signed rich text asset URL
|
|
41
|
+
*/
|
|
42
|
+
getRichTextAssetRaw(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
43
|
+
/**
|
|
44
|
+
* Redirect to a signed rich text asset URL
|
|
45
|
+
*/
|
|
46
|
+
getRichTextAsset(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates request options for postRichTextAssetComplete without sending the request
|
|
49
|
+
*/
|
|
50
|
+
postRichTextAssetCompleteRequestOpts(requestParameters: PostRichTextAssetCompleteRequest): Promise<runtime.RequestOpts>;
|
|
51
|
+
/**
|
|
52
|
+
* Complete a pending rich text asset upload
|
|
53
|
+
*/
|
|
54
|
+
postRichTextAssetCompleteRaw(requestParameters: PostRichTextAssetCompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RichTextAsset>>;
|
|
55
|
+
/**
|
|
56
|
+
* Complete a pending rich text asset upload
|
|
57
|
+
*/
|
|
58
|
+
postRichTextAssetComplete(requestParameters: PostRichTextAssetCompleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RichTextAsset>;
|
|
59
|
+
/**
|
|
60
|
+
* Creates request options for postRichTextAssetUpload without sending the request
|
|
61
|
+
*/
|
|
62
|
+
postRichTextAssetUploadRequestOpts(requestParameters: PostRichTextAssetUploadRequest): Promise<runtime.RequestOpts>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a pending rich text asset upload
|
|
65
|
+
*/
|
|
66
|
+
postRichTextAssetUploadRaw(requestParameters: PostRichTextAssetUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRichTextAssetUpload>>;
|
|
67
|
+
/**
|
|
68
|
+
* Create a pending rich text asset upload
|
|
69
|
+
*/
|
|
70
|
+
postRichTextAssetUpload(requestParameters: PostRichTextAssetUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRichTextAssetUpload>;
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for putRichTextAssetFile without sending the request
|
|
73
|
+
*/
|
|
74
|
+
putRichTextAssetFileRequestOpts(requestParameters: PutRichTextAssetFileRequest): Promise<runtime.RequestOpts>;
|
|
75
|
+
/**
|
|
76
|
+
* Upload a pending rich text asset file through the API
|
|
77
|
+
*/
|
|
78
|
+
putRichTextAssetFileRaw(requestParameters: PutRichTextAssetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
79
|
+
/**
|
|
80
|
+
* Upload a pending rich text asset file through the API
|
|
81
|
+
*/
|
|
82
|
+
putRichTextAssetFile(requestParameters: PutRichTextAssetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
83
|
+
}
|