@easyedu/js-lsm-api 1.135.0 → 1.137.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 +6 -0
- package/README.md +8 -2
- package/dist/apis/EmailTemplateApi.d.ts +25 -0
- package/dist/apis/EmailTemplateApi.js +71 -0
- package/dist/apis/SystemApi.d.ts +17 -0
- package/dist/apis/SystemApi.js +45 -0
- package/dist/esm/apis/EmailTemplateApi.d.ts +25 -0
- package/dist/esm/apis/EmailTemplateApi.js +71 -0
- package/dist/esm/apis/SystemApi.d.ts +17 -0
- package/dist/esm/apis/SystemApi.js +45 -0
- package/dist/esm/models/GetEmailTemplateTestRecipientList.d.ts +33 -0
- package/dist/esm/models/GetEmailTemplateTestRecipientList.js +44 -0
- package/dist/esm/models/GetEmailTemplateTestRecipientListItemsInner.d.ts +38 -0
- package/dist/esm/models/GetEmailTemplateTestRecipientListItemsInner.js +47 -0
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +6 -0
- package/dist/esm/models/PutSystemPortal.d.ts +32 -0
- package/dist/esm/models/PutSystemPortal.js +41 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/GetEmailTemplateTestRecipientList.d.ts +33 -0
- package/dist/models/GetEmailTemplateTestRecipientList.js +51 -0
- package/dist/models/GetEmailTemplateTestRecipientListItemsInner.d.ts +38 -0
- package/dist/models/GetEmailTemplateTestRecipientListItemsInner.js +54 -0
- package/dist/models/GetPortal.d.ts +12 -0
- package/dist/models/GetPortal.js +6 -0
- package/dist/models/PutSystemPortal.d.ts +32 -0
- package/dist/models/PutSystemPortal.js +48 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/EmailTemplateApi.md +118 -0
- package/docs/GetEmailTemplateTestRecipientList.md +35 -0
- package/docs/GetEmailTemplateTestRecipientListItemsInner.md +36 -0
- package/docs/GetPortal.md +4 -0
- package/docs/PutSystemPortal.md +35 -0
- package/docs/SystemApi.md +71 -0
- package/package.json +1 -1
- package/src/apis/EmailTemplateApi.ts +79 -0
- package/src/apis/SystemApi.ts +65 -0
- package/src/models/GetEmailTemplateTestRecipientList.ts +74 -0
- package/src/models/GetEmailTemplateTestRecipientListItemsInner.ts +75 -0
- package/src/models/GetPortal.ts +17 -0
- package/src/models/PutSystemPortal.ts +65 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -110,6 +110,8 @@ docs/GetEmailDeliveryList.md
|
|
|
110
110
|
docs/GetEmailTemplate.md
|
|
111
111
|
docs/GetEmailTemplateList.md
|
|
112
112
|
docs/GetEmailTemplatePreview.md
|
|
113
|
+
docs/GetEmailTemplateTestRecipientList.md
|
|
114
|
+
docs/GetEmailTemplateTestRecipientListItemsInner.md
|
|
113
115
|
docs/GetHostedScormRegistration.md
|
|
114
116
|
docs/GetHostedScormRegistrationList.md
|
|
115
117
|
docs/GetLearnerDashboard.md
|
|
@@ -370,6 +372,7 @@ docs/PutResourceVersion.md
|
|
|
370
372
|
docs/PutRole.md
|
|
371
373
|
docs/PutRolePermissions.md
|
|
372
374
|
docs/PutSupportTicket.md
|
|
375
|
+
docs/PutSystemPortal.md
|
|
373
376
|
docs/PutUser.md
|
|
374
377
|
docs/PutZapierSetup.md
|
|
375
378
|
docs/QuestionApi.md
|
|
@@ -558,6 +561,8 @@ src/models/GetEmailDeliveryList.ts
|
|
|
558
561
|
src/models/GetEmailTemplate.ts
|
|
559
562
|
src/models/GetEmailTemplateList.ts
|
|
560
563
|
src/models/GetEmailTemplatePreview.ts
|
|
564
|
+
src/models/GetEmailTemplateTestRecipientList.ts
|
|
565
|
+
src/models/GetEmailTemplateTestRecipientListItemsInner.ts
|
|
561
566
|
src/models/GetHostedScormRegistration.ts
|
|
562
567
|
src/models/GetHostedScormRegistrationList.ts
|
|
563
568
|
src/models/GetLearnerDashboard.ts
|
|
@@ -811,6 +816,7 @@ src/models/PutResourceVersion.ts
|
|
|
811
816
|
src/models/PutRole.ts
|
|
812
817
|
src/models/PutRolePermissions.ts
|
|
813
818
|
src/models/PutSupportTicket.ts
|
|
819
|
+
src/models/PutSystemPortal.ts
|
|
814
820
|
src/models/PutUser.ts
|
|
815
821
|
src/models/PutZapierSetup.ts
|
|
816
822
|
src/models/QuestionImportCommitResult.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.137.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -256,11 +256,13 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
256
256
|
*EmailTemplateApi* | [**getEmailDeliveryList**](docs/EmailTemplateApi.md#getemaildeliverylist) | **GET** /email-deliveries | List selected-portal email delivery activity
|
|
257
257
|
*EmailTemplateApi* | [**getEmailTemplate**](docs/EmailTemplateApi.md#getemailtemplate) | **GET** /email-templates/{templateKey} | Get an effective portal email template
|
|
258
258
|
*EmailTemplateApi* | [**getEmailTemplateList**](docs/EmailTemplateApi.md#getemailtemplatelist) | **GET** /email-templates | List effective email templates for the selected portal
|
|
259
|
+
*EmailTemplateApi* | [**getEmailTemplateTestRecipientList**](docs/EmailTemplateApi.md#getemailtemplatetestrecipientlist) | **GET** /email-templates/test-recipients | List addresses allowed to receive portal template test emails
|
|
259
260
|
*EmailTemplateApi* | [**getPublicEmailAsset**](docs/EmailTemplateApi.md#getpublicemailasset) | **GET** /public/email-assets/{assetId} | Redirect to a stable public email image
|
|
260
261
|
*EmailTemplateApi* | [**getPublicEmailPortalLogo**](docs/EmailTemplateApi.md#getpublicemailportallogo) | **GET** /public/email-branding/portals/{portalId}/logo | Redirect to a portal logo for email rendering
|
|
261
262
|
*EmailTemplateApi* | [**getSystemEmailDeliveryList**](docs/EmailTemplateApi.md#getsystememaildeliverylist) | **GET** /system/email-deliveries | List platform email delivery activity
|
|
262
263
|
*EmailTemplateApi* | [**getSystemEmailTemplate**](docs/EmailTemplateApi.md#getsystememailtemplate) | **GET** /system/email-templates/{templateKey} | Get a platform email template
|
|
263
264
|
*EmailTemplateApi* | [**getSystemEmailTemplateList**](docs/EmailTemplateApi.md#getsystememailtemplatelist) | **GET** /system/email-templates | List platform email templates
|
|
265
|
+
*EmailTemplateApi* | [**getSystemEmailTemplateTestRecipientList**](docs/EmailTemplateApi.md#getsystememailtemplatetestrecipientlist) | **GET** /system/email-templates/test-recipients | List addresses allowed to receive platform template test emails
|
|
264
266
|
*EmailTemplateApi* | [**postEmailAssetComplete**](docs/EmailTemplateApi.md#postemailassetcomplete) | **POST** /email-assets/{assetId}/complete | Complete a selected-portal email image upload
|
|
265
267
|
*EmailTemplateApi* | [**postEmailAssetUpload**](docs/EmailTemplateApi.md#postemailassetupload) | **POST** /email-assets/uploads | Create a pending selected-portal email image upload
|
|
266
268
|
*EmailTemplateApi* | [**postEmailTemplateDraft**](docs/EmailTemplateApi.md#postemailtemplatedraft) | **POST** /email-templates/{templateKey}/draft | Create a portal draft from the effective template
|
|
@@ -402,6 +404,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
402
404
|
*SystemApi* | [**getSystemPortalOverview**](docs/SystemApi.md#getsystemportaloverview) | **GET** /system/portals/{portalId}/overview | Get detailed platform portal overview and usage statistics
|
|
403
405
|
*SystemApi* | [**getSystemPortals**](docs/SystemApi.md#getsystemportals) | **GET** /system/portals | List all platform portals
|
|
404
406
|
*SystemApi* | [**getSystemSupportTickets**](docs/SystemApi.md#getsystemsupporttickets) | **GET** /system/support/tickets | List open support tickets across the platform
|
|
407
|
+
*SystemApi* | [**putSystemPortal**](docs/SystemApi.md#putsystemportal) | **PUT** /system/portals/{portalId} | Update platform-managed portal settings
|
|
405
408
|
*UserApi* | [**deleteUserAvatar**](docs/UserApi.md#deleteuseravatar) | **DELETE** /users/{userId}/avatar | Remove the current user\'s profile photo
|
|
406
409
|
*UserApi* | [**getAuthCheck**](docs/UserApi.md#getauthcheck) | **GET** /auth/check | Check if a user is logged in
|
|
407
410
|
*UserApi* | [**getCurrentUserPermissions**](docs/UserApi.md#getcurrentuserpermissions) | **GET** /users/current/permissions | Get the current user\'s permissions
|
|
@@ -518,6 +521,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
518
521
|
- [GetEmailTemplate](docs/GetEmailTemplate.md)
|
|
519
522
|
- [GetEmailTemplateList](docs/GetEmailTemplateList.md)
|
|
520
523
|
- [GetEmailTemplatePreview](docs/GetEmailTemplatePreview.md)
|
|
524
|
+
- [GetEmailTemplateTestRecipientList](docs/GetEmailTemplateTestRecipientList.md)
|
|
525
|
+
- [GetEmailTemplateTestRecipientListItemsInner](docs/GetEmailTemplateTestRecipientListItemsInner.md)
|
|
521
526
|
- [GetHostedScormRegistration](docs/GetHostedScormRegistration.md)
|
|
522
527
|
- [GetHostedScormRegistrationList](docs/GetHostedScormRegistrationList.md)
|
|
523
528
|
- [GetLearnerDashboard](docs/GetLearnerDashboard.md)
|
|
@@ -771,6 +776,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
771
776
|
- [PutRole](docs/PutRole.md)
|
|
772
777
|
- [PutRolePermissions](docs/PutRolePermissions.md)
|
|
773
778
|
- [PutSupportTicket](docs/PutSupportTicket.md)
|
|
779
|
+
- [PutSystemPortal](docs/PutSystemPortal.md)
|
|
774
780
|
- [PutUser](docs/PutUser.md)
|
|
775
781
|
- [PutZapierSetup](docs/PutZapierSetup.md)
|
|
776
782
|
- [QuestionImportCommitResult](docs/QuestionImportCommitResult.md)
|
|
@@ -836,7 +842,7 @@ and is automatically generated by the
|
|
|
836
842
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
837
843
|
|
|
838
844
|
- API version: `1.0.0`
|
|
839
|
-
- Package version: `1.
|
|
845
|
+
- Package version: `1.137.0`
|
|
840
846
|
- Generator version: `7.22.0`
|
|
841
847
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
842
848
|
|
|
@@ -17,6 +17,7 @@ import { type GetEmailDeliveryList } from '../models/GetEmailDeliveryList';
|
|
|
17
17
|
import { type GetEmailTemplate } from '../models/GetEmailTemplate';
|
|
18
18
|
import { type GetEmailTemplateList } from '../models/GetEmailTemplateList';
|
|
19
19
|
import { type GetEmailTemplatePreview } from '../models/GetEmailTemplatePreview';
|
|
20
|
+
import { type GetEmailTemplateTestRecipientList } from '../models/GetEmailTemplateTestRecipientList';
|
|
20
21
|
import { type PostEmailAssetComplete } from '../models/PostEmailAssetComplete';
|
|
21
22
|
import { type PostEmailAssetUpload } from '../models/PostEmailAssetUpload';
|
|
22
23
|
import { type PostEmailTemplatePreview } from '../models/PostEmailTemplatePreview';
|
|
@@ -196,6 +197,18 @@ export declare class EmailTemplateApi extends runtime.BaseAPI {
|
|
|
196
197
|
* List effective email templates for the selected portal
|
|
197
198
|
*/
|
|
198
199
|
getEmailTemplateList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailTemplateList>;
|
|
200
|
+
/**
|
|
201
|
+
* Creates request options for getEmailTemplateTestRecipientList without sending the request
|
|
202
|
+
*/
|
|
203
|
+
getEmailTemplateTestRecipientListRequestOpts(): Promise<runtime.RequestOpts>;
|
|
204
|
+
/**
|
|
205
|
+
* List addresses allowed to receive portal template test emails
|
|
206
|
+
*/
|
|
207
|
+
getEmailTemplateTestRecipientListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetEmailTemplateTestRecipientList>>;
|
|
208
|
+
/**
|
|
209
|
+
* List addresses allowed to receive portal template test emails
|
|
210
|
+
*/
|
|
211
|
+
getEmailTemplateTestRecipientList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailTemplateTestRecipientList>;
|
|
199
212
|
/**
|
|
200
213
|
* Creates request options for getPublicEmailAsset without sending the request
|
|
201
214
|
*/
|
|
@@ -256,6 +269,18 @@ export declare class EmailTemplateApi extends runtime.BaseAPI {
|
|
|
256
269
|
* List platform email templates
|
|
257
270
|
*/
|
|
258
271
|
getSystemEmailTemplateList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailTemplateList>;
|
|
272
|
+
/**
|
|
273
|
+
* Creates request options for getSystemEmailTemplateTestRecipientList without sending the request
|
|
274
|
+
*/
|
|
275
|
+
getSystemEmailTemplateTestRecipientListRequestOpts(): Promise<runtime.RequestOpts>;
|
|
276
|
+
/**
|
|
277
|
+
* List addresses allowed to receive platform template test emails
|
|
278
|
+
*/
|
|
279
|
+
getSystemEmailTemplateTestRecipientListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetEmailTemplateTestRecipientList>>;
|
|
280
|
+
/**
|
|
281
|
+
* List addresses allowed to receive platform template test emails
|
|
282
|
+
*/
|
|
283
|
+
getSystemEmailTemplateTestRecipientList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailTemplateTestRecipientList>;
|
|
259
284
|
/**
|
|
260
285
|
* Creates request options for postEmailAssetComplete without sending the request
|
|
261
286
|
*/
|
|
@@ -31,6 +31,7 @@ const GetEmailDeliveryList_1 = require("../models/GetEmailDeliveryList");
|
|
|
31
31
|
const GetEmailTemplate_1 = require("../models/GetEmailTemplate");
|
|
32
32
|
const GetEmailTemplateList_1 = require("../models/GetEmailTemplateList");
|
|
33
33
|
const GetEmailTemplatePreview_1 = require("../models/GetEmailTemplatePreview");
|
|
34
|
+
const GetEmailTemplateTestRecipientList_1 = require("../models/GetEmailTemplateTestRecipientList");
|
|
34
35
|
const PostEmailAssetComplete_1 = require("../models/PostEmailAssetComplete");
|
|
35
36
|
const PostEmailAssetUpload_1 = require("../models/PostEmailAssetUpload");
|
|
36
37
|
const PostEmailTemplatePreview_1 = require("../models/PostEmailTemplatePreview");
|
|
@@ -243,6 +244,41 @@ class EmailTemplateApi extends runtime.BaseAPI {
|
|
|
243
244
|
return yield response.value();
|
|
244
245
|
});
|
|
245
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* Creates request options for getEmailTemplateTestRecipientList without sending the request
|
|
249
|
+
*/
|
|
250
|
+
getEmailTemplateTestRecipientListRequestOpts() {
|
|
251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
252
|
+
const queryParameters = {};
|
|
253
|
+
const headerParameters = {};
|
|
254
|
+
let urlPath = `/email-templates/test-recipients`;
|
|
255
|
+
return {
|
|
256
|
+
path: urlPath,
|
|
257
|
+
method: 'GET',
|
|
258
|
+
headers: headerParameters,
|
|
259
|
+
query: queryParameters,
|
|
260
|
+
};
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* List addresses allowed to receive portal template test emails
|
|
265
|
+
*/
|
|
266
|
+
getEmailTemplateTestRecipientListRaw(initOverrides) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
const requestOptions = yield this.getEmailTemplateTestRecipientListRequestOpts();
|
|
269
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
270
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetEmailTemplateTestRecipientList_1.GetEmailTemplateTestRecipientListFromJSON)(jsonValue));
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* List addresses allowed to receive portal template test emails
|
|
275
|
+
*/
|
|
276
|
+
getEmailTemplateTestRecipientList(initOverrides) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
const response = yield this.getEmailTemplateTestRecipientListRaw(initOverrides);
|
|
279
|
+
return yield response.value();
|
|
280
|
+
});
|
|
281
|
+
}
|
|
246
282
|
/**
|
|
247
283
|
* Creates request options for getPublicEmailAsset without sending the request
|
|
248
284
|
*/
|
|
@@ -434,6 +470,41 @@ class EmailTemplateApi extends runtime.BaseAPI {
|
|
|
434
470
|
return yield response.value();
|
|
435
471
|
});
|
|
436
472
|
}
|
|
473
|
+
/**
|
|
474
|
+
* Creates request options for getSystemEmailTemplateTestRecipientList without sending the request
|
|
475
|
+
*/
|
|
476
|
+
getSystemEmailTemplateTestRecipientListRequestOpts() {
|
|
477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
478
|
+
const queryParameters = {};
|
|
479
|
+
const headerParameters = {};
|
|
480
|
+
let urlPath = `/system/email-templates/test-recipients`;
|
|
481
|
+
return {
|
|
482
|
+
path: urlPath,
|
|
483
|
+
method: 'GET',
|
|
484
|
+
headers: headerParameters,
|
|
485
|
+
query: queryParameters,
|
|
486
|
+
};
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* List addresses allowed to receive platform template test emails
|
|
491
|
+
*/
|
|
492
|
+
getSystemEmailTemplateTestRecipientListRaw(initOverrides) {
|
|
493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
494
|
+
const requestOptions = yield this.getSystemEmailTemplateTestRecipientListRequestOpts();
|
|
495
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
496
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetEmailTemplateTestRecipientList_1.GetEmailTemplateTestRecipientListFromJSON)(jsonValue));
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* List addresses allowed to receive platform template test emails
|
|
501
|
+
*/
|
|
502
|
+
getSystemEmailTemplateTestRecipientList(initOverrides) {
|
|
503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
504
|
+
const response = yield this.getSystemEmailTemplateTestRecipientListRaw(initOverrides);
|
|
505
|
+
return yield response.value();
|
|
506
|
+
});
|
|
507
|
+
}
|
|
437
508
|
/**
|
|
438
509
|
* Creates request options for postEmailAssetComplete without sending the request
|
|
439
510
|
*/
|
package/dist/apis/SystemApi.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { type GetSupportTicketList } from '../models/GetSupportTicketList';
|
|
|
16
16
|
import { type GetSystemBillingList } from '../models/GetSystemBillingList';
|
|
17
17
|
import { type GetSystemMetrics } from '../models/GetSystemMetrics';
|
|
18
18
|
import { type GetSystemPortalOverview } from '../models/GetSystemPortalOverview';
|
|
19
|
+
import { type PutSystemPortal } from '../models/PutSystemPortal';
|
|
19
20
|
export interface GetSystemBillingRequest {
|
|
20
21
|
page?: number;
|
|
21
22
|
pageSize?: number;
|
|
@@ -34,6 +35,10 @@ export interface GetSystemSupportTicketsRequest {
|
|
|
34
35
|
page?: number;
|
|
35
36
|
pageSize?: number;
|
|
36
37
|
}
|
|
38
|
+
export interface PutSystemPortalRequest {
|
|
39
|
+
portalId: string;
|
|
40
|
+
putSystemPortal: PutSystemPortal;
|
|
41
|
+
}
|
|
37
42
|
/**
|
|
38
43
|
*
|
|
39
44
|
*/
|
|
@@ -110,4 +115,16 @@ export declare class SystemApi extends runtime.BaseAPI {
|
|
|
110
115
|
* List open support tickets across the platform
|
|
111
116
|
*/
|
|
112
117
|
getSystemSupportTickets(requestParameters?: GetSystemSupportTicketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSupportTicketList>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates request options for putSystemPortal without sending the request
|
|
120
|
+
*/
|
|
121
|
+
putSystemPortalRequestOpts(requestParameters: PutSystemPortalRequest): Promise<runtime.RequestOpts>;
|
|
122
|
+
/**
|
|
123
|
+
* Update platform-managed portal settings
|
|
124
|
+
*/
|
|
125
|
+
putSystemPortalRaw(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>>;
|
|
126
|
+
/**
|
|
127
|
+
* Update platform-managed portal settings
|
|
128
|
+
*/
|
|
129
|
+
putSystemPortal(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
|
|
113
130
|
}
|
package/dist/apis/SystemApi.js
CHANGED
|
@@ -30,6 +30,7 @@ const GetSupportTicketList_1 = require("../models/GetSupportTicketList");
|
|
|
30
30
|
const GetSystemBillingList_1 = require("../models/GetSystemBillingList");
|
|
31
31
|
const GetSystemMetrics_1 = require("../models/GetSystemMetrics");
|
|
32
32
|
const GetSystemPortalOverview_1 = require("../models/GetSystemPortalOverview");
|
|
33
|
+
const PutSystemPortal_1 = require("../models/PutSystemPortal");
|
|
33
34
|
/**
|
|
34
35
|
*
|
|
35
36
|
*/
|
|
@@ -270,5 +271,49 @@ class SystemApi extends runtime.BaseAPI {
|
|
|
270
271
|
return yield response.value();
|
|
271
272
|
});
|
|
272
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* Creates request options for putSystemPortal without sending the request
|
|
276
|
+
*/
|
|
277
|
+
putSystemPortalRequestOpts(requestParameters) {
|
|
278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
279
|
+
if (requestParameters['portalId'] == null) {
|
|
280
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling putSystemPortal().');
|
|
281
|
+
}
|
|
282
|
+
if (requestParameters['putSystemPortal'] == null) {
|
|
283
|
+
throw new runtime.RequiredError('putSystemPortal', 'Required parameter "putSystemPortal" was null or undefined when calling putSystemPortal().');
|
|
284
|
+
}
|
|
285
|
+
const queryParameters = {};
|
|
286
|
+
const headerParameters = {};
|
|
287
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
288
|
+
let urlPath = `/system/portals/{portalId}`;
|
|
289
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
290
|
+
return {
|
|
291
|
+
path: urlPath,
|
|
292
|
+
method: 'PUT',
|
|
293
|
+
headers: headerParameters,
|
|
294
|
+
query: queryParameters,
|
|
295
|
+
body: (0, PutSystemPortal_1.PutSystemPortalToJSON)(requestParameters['putSystemPortal']),
|
|
296
|
+
};
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Update platform-managed portal settings
|
|
301
|
+
*/
|
|
302
|
+
putSystemPortalRaw(requestParameters, initOverrides) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
const requestOptions = yield this.putSystemPortalRequestOpts(requestParameters);
|
|
305
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortal_1.GetPortalFromJSON)(jsonValue));
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Update platform-managed portal settings
|
|
311
|
+
*/
|
|
312
|
+
putSystemPortal(requestParameters, initOverrides) {
|
|
313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
const response = yield this.putSystemPortalRaw(requestParameters, initOverrides);
|
|
315
|
+
return yield response.value();
|
|
316
|
+
});
|
|
317
|
+
}
|
|
273
318
|
}
|
|
274
319
|
exports.SystemApi = SystemApi;
|
|
@@ -17,6 +17,7 @@ import { type GetEmailDeliveryList } from '../models/GetEmailDeliveryList';
|
|
|
17
17
|
import { type GetEmailTemplate } from '../models/GetEmailTemplate';
|
|
18
18
|
import { type GetEmailTemplateList } from '../models/GetEmailTemplateList';
|
|
19
19
|
import { type GetEmailTemplatePreview } from '../models/GetEmailTemplatePreview';
|
|
20
|
+
import { type GetEmailTemplateTestRecipientList } from '../models/GetEmailTemplateTestRecipientList';
|
|
20
21
|
import { type PostEmailAssetComplete } from '../models/PostEmailAssetComplete';
|
|
21
22
|
import { type PostEmailAssetUpload } from '../models/PostEmailAssetUpload';
|
|
22
23
|
import { type PostEmailTemplatePreview } from '../models/PostEmailTemplatePreview';
|
|
@@ -196,6 +197,18 @@ export declare class EmailTemplateApi extends runtime.BaseAPI {
|
|
|
196
197
|
* List effective email templates for the selected portal
|
|
197
198
|
*/
|
|
198
199
|
getEmailTemplateList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailTemplateList>;
|
|
200
|
+
/**
|
|
201
|
+
* Creates request options for getEmailTemplateTestRecipientList without sending the request
|
|
202
|
+
*/
|
|
203
|
+
getEmailTemplateTestRecipientListRequestOpts(): Promise<runtime.RequestOpts>;
|
|
204
|
+
/**
|
|
205
|
+
* List addresses allowed to receive portal template test emails
|
|
206
|
+
*/
|
|
207
|
+
getEmailTemplateTestRecipientListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetEmailTemplateTestRecipientList>>;
|
|
208
|
+
/**
|
|
209
|
+
* List addresses allowed to receive portal template test emails
|
|
210
|
+
*/
|
|
211
|
+
getEmailTemplateTestRecipientList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailTemplateTestRecipientList>;
|
|
199
212
|
/**
|
|
200
213
|
* Creates request options for getPublicEmailAsset without sending the request
|
|
201
214
|
*/
|
|
@@ -256,6 +269,18 @@ export declare class EmailTemplateApi extends runtime.BaseAPI {
|
|
|
256
269
|
* List platform email templates
|
|
257
270
|
*/
|
|
258
271
|
getSystemEmailTemplateList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailTemplateList>;
|
|
272
|
+
/**
|
|
273
|
+
* Creates request options for getSystemEmailTemplateTestRecipientList without sending the request
|
|
274
|
+
*/
|
|
275
|
+
getSystemEmailTemplateTestRecipientListRequestOpts(): Promise<runtime.RequestOpts>;
|
|
276
|
+
/**
|
|
277
|
+
* List addresses allowed to receive platform template test emails
|
|
278
|
+
*/
|
|
279
|
+
getSystemEmailTemplateTestRecipientListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetEmailTemplateTestRecipientList>>;
|
|
280
|
+
/**
|
|
281
|
+
* List addresses allowed to receive platform template test emails
|
|
282
|
+
*/
|
|
283
|
+
getSystemEmailTemplateTestRecipientList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailTemplateTestRecipientList>;
|
|
259
284
|
/**
|
|
260
285
|
* Creates request options for postEmailAssetComplete without sending the request
|
|
261
286
|
*/
|
|
@@ -28,6 +28,7 @@ import { GetEmailDeliveryListFromJSON, } from '../models/GetEmailDeliveryList';
|
|
|
28
28
|
import { GetEmailTemplateFromJSON, } from '../models/GetEmailTemplate';
|
|
29
29
|
import { GetEmailTemplateListFromJSON, } from '../models/GetEmailTemplateList';
|
|
30
30
|
import { GetEmailTemplatePreviewFromJSON, } from '../models/GetEmailTemplatePreview';
|
|
31
|
+
import { GetEmailTemplateTestRecipientListFromJSON, } from '../models/GetEmailTemplateTestRecipientList';
|
|
31
32
|
import { PostEmailAssetCompleteToJSON, } from '../models/PostEmailAssetComplete';
|
|
32
33
|
import { PostEmailAssetUploadToJSON, } from '../models/PostEmailAssetUpload';
|
|
33
34
|
import { PostEmailTemplatePreviewToJSON, } from '../models/PostEmailTemplatePreview';
|
|
@@ -240,6 +241,41 @@ export class EmailTemplateApi extends runtime.BaseAPI {
|
|
|
240
241
|
return yield response.value();
|
|
241
242
|
});
|
|
242
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* Creates request options for getEmailTemplateTestRecipientList without sending the request
|
|
246
|
+
*/
|
|
247
|
+
getEmailTemplateTestRecipientListRequestOpts() {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
249
|
+
const queryParameters = {};
|
|
250
|
+
const headerParameters = {};
|
|
251
|
+
let urlPath = `/email-templates/test-recipients`;
|
|
252
|
+
return {
|
|
253
|
+
path: urlPath,
|
|
254
|
+
method: 'GET',
|
|
255
|
+
headers: headerParameters,
|
|
256
|
+
query: queryParameters,
|
|
257
|
+
};
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* List addresses allowed to receive portal template test emails
|
|
262
|
+
*/
|
|
263
|
+
getEmailTemplateTestRecipientListRaw(initOverrides) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
const requestOptions = yield this.getEmailTemplateTestRecipientListRequestOpts();
|
|
266
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
267
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetEmailTemplateTestRecipientListFromJSON(jsonValue));
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* List addresses allowed to receive portal template test emails
|
|
272
|
+
*/
|
|
273
|
+
getEmailTemplateTestRecipientList(initOverrides) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
const response = yield this.getEmailTemplateTestRecipientListRaw(initOverrides);
|
|
276
|
+
return yield response.value();
|
|
277
|
+
});
|
|
278
|
+
}
|
|
243
279
|
/**
|
|
244
280
|
* Creates request options for getPublicEmailAsset without sending the request
|
|
245
281
|
*/
|
|
@@ -431,6 +467,41 @@ export class EmailTemplateApi extends runtime.BaseAPI {
|
|
|
431
467
|
return yield response.value();
|
|
432
468
|
});
|
|
433
469
|
}
|
|
470
|
+
/**
|
|
471
|
+
* Creates request options for getSystemEmailTemplateTestRecipientList without sending the request
|
|
472
|
+
*/
|
|
473
|
+
getSystemEmailTemplateTestRecipientListRequestOpts() {
|
|
474
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
475
|
+
const queryParameters = {};
|
|
476
|
+
const headerParameters = {};
|
|
477
|
+
let urlPath = `/system/email-templates/test-recipients`;
|
|
478
|
+
return {
|
|
479
|
+
path: urlPath,
|
|
480
|
+
method: 'GET',
|
|
481
|
+
headers: headerParameters,
|
|
482
|
+
query: queryParameters,
|
|
483
|
+
};
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* List addresses allowed to receive platform template test emails
|
|
488
|
+
*/
|
|
489
|
+
getSystemEmailTemplateTestRecipientListRaw(initOverrides) {
|
|
490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
491
|
+
const requestOptions = yield this.getSystemEmailTemplateTestRecipientListRequestOpts();
|
|
492
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
493
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetEmailTemplateTestRecipientListFromJSON(jsonValue));
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* List addresses allowed to receive platform template test emails
|
|
498
|
+
*/
|
|
499
|
+
getSystemEmailTemplateTestRecipientList(initOverrides) {
|
|
500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
501
|
+
const response = yield this.getSystemEmailTemplateTestRecipientListRaw(initOverrides);
|
|
502
|
+
return yield response.value();
|
|
503
|
+
});
|
|
504
|
+
}
|
|
434
505
|
/**
|
|
435
506
|
* Creates request options for postEmailAssetComplete without sending the request
|
|
436
507
|
*/
|
|
@@ -16,6 +16,7 @@ import { type GetSupportTicketList } from '../models/GetSupportTicketList';
|
|
|
16
16
|
import { type GetSystemBillingList } from '../models/GetSystemBillingList';
|
|
17
17
|
import { type GetSystemMetrics } from '../models/GetSystemMetrics';
|
|
18
18
|
import { type GetSystemPortalOverview } from '../models/GetSystemPortalOverview';
|
|
19
|
+
import { type PutSystemPortal } from '../models/PutSystemPortal';
|
|
19
20
|
export interface GetSystemBillingRequest {
|
|
20
21
|
page?: number;
|
|
21
22
|
pageSize?: number;
|
|
@@ -34,6 +35,10 @@ export interface GetSystemSupportTicketsRequest {
|
|
|
34
35
|
page?: number;
|
|
35
36
|
pageSize?: number;
|
|
36
37
|
}
|
|
38
|
+
export interface PutSystemPortalRequest {
|
|
39
|
+
portalId: string;
|
|
40
|
+
putSystemPortal: PutSystemPortal;
|
|
41
|
+
}
|
|
37
42
|
/**
|
|
38
43
|
*
|
|
39
44
|
*/
|
|
@@ -110,4 +115,16 @@ export declare class SystemApi extends runtime.BaseAPI {
|
|
|
110
115
|
* List open support tickets across the platform
|
|
111
116
|
*/
|
|
112
117
|
getSystemSupportTickets(requestParameters?: GetSystemSupportTicketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSupportTicketList>;
|
|
118
|
+
/**
|
|
119
|
+
* Creates request options for putSystemPortal without sending the request
|
|
120
|
+
*/
|
|
121
|
+
putSystemPortalRequestOpts(requestParameters: PutSystemPortalRequest): Promise<runtime.RequestOpts>;
|
|
122
|
+
/**
|
|
123
|
+
* Update platform-managed portal settings
|
|
124
|
+
*/
|
|
125
|
+
putSystemPortalRaw(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>>;
|
|
126
|
+
/**
|
|
127
|
+
* Update platform-managed portal settings
|
|
128
|
+
*/
|
|
129
|
+
putSystemPortal(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
|
|
113
130
|
}
|
|
@@ -27,6 +27,7 @@ import { GetSupportTicketListFromJSON, } from '../models/GetSupportTicketList';
|
|
|
27
27
|
import { GetSystemBillingListFromJSON, } from '../models/GetSystemBillingList';
|
|
28
28
|
import { GetSystemMetricsFromJSON, } from '../models/GetSystemMetrics';
|
|
29
29
|
import { GetSystemPortalOverviewFromJSON, } from '../models/GetSystemPortalOverview';
|
|
30
|
+
import { PutSystemPortalToJSON, } from '../models/PutSystemPortal';
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
33
|
*/
|
|
@@ -267,4 +268,48 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
267
268
|
return yield response.value();
|
|
268
269
|
});
|
|
269
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* Creates request options for putSystemPortal without sending the request
|
|
273
|
+
*/
|
|
274
|
+
putSystemPortalRequestOpts(requestParameters) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
+
if (requestParameters['portalId'] == null) {
|
|
277
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling putSystemPortal().');
|
|
278
|
+
}
|
|
279
|
+
if (requestParameters['putSystemPortal'] == null) {
|
|
280
|
+
throw new runtime.RequiredError('putSystemPortal', 'Required parameter "putSystemPortal" was null or undefined when calling putSystemPortal().');
|
|
281
|
+
}
|
|
282
|
+
const queryParameters = {};
|
|
283
|
+
const headerParameters = {};
|
|
284
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
285
|
+
let urlPath = `/system/portals/{portalId}`;
|
|
286
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
287
|
+
return {
|
|
288
|
+
path: urlPath,
|
|
289
|
+
method: 'PUT',
|
|
290
|
+
headers: headerParameters,
|
|
291
|
+
query: queryParameters,
|
|
292
|
+
body: PutSystemPortalToJSON(requestParameters['putSystemPortal']),
|
|
293
|
+
};
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Update platform-managed portal settings
|
|
298
|
+
*/
|
|
299
|
+
putSystemPortalRaw(requestParameters, initOverrides) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
const requestOptions = yield this.putSystemPortalRequestOpts(requestParameters);
|
|
302
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
303
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalFromJSON(jsonValue));
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Update platform-managed portal settings
|
|
308
|
+
*/
|
|
309
|
+
putSystemPortal(requestParameters, initOverrides) {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
+
const response = yield this.putSystemPortalRaw(requestParameters, initOverrides);
|
|
312
|
+
return yield response.value();
|
|
313
|
+
});
|
|
314
|
+
}
|
|
270
315
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 type { GetEmailTemplateTestRecipientListItemsInner } from './GetEmailTemplateTestRecipientListItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
* Addresses allowed to receive template test emails: enabled admins and instructors of the caller's selected portal who accepted their portal invitation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetEmailTemplateTestRecipientList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetEmailTemplateTestRecipientList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GetEmailTemplateTestRecipientListItemsInner>}
|
|
22
|
+
* @memberof GetEmailTemplateTestRecipientList
|
|
23
|
+
*/
|
|
24
|
+
items: Array<GetEmailTemplateTestRecipientListItemsInner>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GetEmailTemplateTestRecipientList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGetEmailTemplateTestRecipientList(value: object): value is GetEmailTemplateTestRecipientList;
|
|
30
|
+
export declare function GetEmailTemplateTestRecipientListFromJSON(json: any): GetEmailTemplateTestRecipientList;
|
|
31
|
+
export declare function GetEmailTemplateTestRecipientListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEmailTemplateTestRecipientList;
|
|
32
|
+
export declare function GetEmailTemplateTestRecipientListToJSON(json: any): GetEmailTemplateTestRecipientList;
|
|
33
|
+
export declare function GetEmailTemplateTestRecipientListToJSONTyped(value?: GetEmailTemplateTestRecipientList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { GetEmailTemplateTestRecipientListItemsInnerFromJSON, GetEmailTemplateTestRecipientListItemsInnerToJSON, } from './GetEmailTemplateTestRecipientListItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetEmailTemplateTestRecipientList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetEmailTemplateTestRecipientList(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function GetEmailTemplateTestRecipientListFromJSON(json) {
|
|
24
|
+
return GetEmailTemplateTestRecipientListFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function GetEmailTemplateTestRecipientListFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'items': (json['items'].map(GetEmailTemplateTestRecipientListItemsInnerFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function GetEmailTemplateTestRecipientListToJSON(json) {
|
|
35
|
+
return GetEmailTemplateTestRecipientListToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GetEmailTemplateTestRecipientListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'items': (value['items'].map(GetEmailTemplateTestRecipientListItemsInnerToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|