@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/docs/EmailTemplateApi.md
CHANGED
|
@@ -9,11 +9,13 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
9
9
|
| [**getEmailDeliveryList**](EmailTemplateApi.md#getemaildeliverylist) | **GET** /email-deliveries | List selected-portal email delivery activity |
|
|
10
10
|
| [**getEmailTemplate**](EmailTemplateApi.md#getemailtemplate) | **GET** /email-templates/{templateKey} | Get an effective portal email template |
|
|
11
11
|
| [**getEmailTemplateList**](EmailTemplateApi.md#getemailtemplatelist) | **GET** /email-templates | List effective email templates for the selected portal |
|
|
12
|
+
| [**getEmailTemplateTestRecipientList**](EmailTemplateApi.md#getemailtemplatetestrecipientlist) | **GET** /email-templates/test-recipients | List addresses allowed to receive portal template test emails |
|
|
12
13
|
| [**getPublicEmailAsset**](EmailTemplateApi.md#getpublicemailasset) | **GET** /public/email-assets/{assetId} | Redirect to a stable public email image |
|
|
13
14
|
| [**getPublicEmailPortalLogo**](EmailTemplateApi.md#getpublicemailportallogo) | **GET** /public/email-branding/portals/{portalId}/logo | Redirect to a portal logo for email rendering |
|
|
14
15
|
| [**getSystemEmailDeliveryList**](EmailTemplateApi.md#getsystememaildeliverylist) | **GET** /system/email-deliveries | List platform email delivery activity |
|
|
15
16
|
| [**getSystemEmailTemplate**](EmailTemplateApi.md#getsystememailtemplate) | **GET** /system/email-templates/{templateKey} | Get a platform email template |
|
|
16
17
|
| [**getSystemEmailTemplateList**](EmailTemplateApi.md#getsystememailtemplatelist) | **GET** /system/email-templates | List platform email templates |
|
|
18
|
+
| [**getSystemEmailTemplateTestRecipientList**](EmailTemplateApi.md#getsystememailtemplatetestrecipientlist) | **GET** /system/email-templates/test-recipients | List addresses allowed to receive platform template test emails |
|
|
17
19
|
| [**postEmailAssetComplete**](EmailTemplateApi.md#postemailassetcomplete) | **POST** /email-assets/{assetId}/complete | Complete a selected-portal email image upload |
|
|
18
20
|
| [**postEmailAssetUpload**](EmailTemplateApi.md#postemailassetupload) | **POST** /email-assets/uploads | Create a pending selected-portal email image upload |
|
|
19
21
|
| [**postEmailTemplateDraft**](EmailTemplateApi.md#postemailtemplatedraft) | **POST** /email-templates/{templateKey}/draft | Create a portal draft from the effective template |
|
|
@@ -374,6 +376,63 @@ No authorization required
|
|
|
374
376
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
375
377
|
|
|
376
378
|
|
|
379
|
+
## getEmailTemplateTestRecipientList
|
|
380
|
+
|
|
381
|
+
> GetEmailTemplateTestRecipientList getEmailTemplateTestRecipientList()
|
|
382
|
+
|
|
383
|
+
List addresses allowed to receive portal template test emails
|
|
384
|
+
|
|
385
|
+
### Example
|
|
386
|
+
|
|
387
|
+
```ts
|
|
388
|
+
import {
|
|
389
|
+
Configuration,
|
|
390
|
+
EmailTemplateApi,
|
|
391
|
+
} from '@easyedu/js-lsm-api';
|
|
392
|
+
import type { GetEmailTemplateTestRecipientListRequest } from '@easyedu/js-lsm-api';
|
|
393
|
+
|
|
394
|
+
async function example() {
|
|
395
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
396
|
+
const api = new EmailTemplateApi();
|
|
397
|
+
|
|
398
|
+
try {
|
|
399
|
+
const data = await api.getEmailTemplateTestRecipientList();
|
|
400
|
+
console.log(data);
|
|
401
|
+
} catch (error) {
|
|
402
|
+
console.error(error);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
// Run the test
|
|
407
|
+
example().catch(console.error);
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
### Parameters
|
|
411
|
+
|
|
412
|
+
This endpoint does not need any parameter.
|
|
413
|
+
|
|
414
|
+
### Return type
|
|
415
|
+
|
|
416
|
+
[**GetEmailTemplateTestRecipientList**](GetEmailTemplateTestRecipientList.md)
|
|
417
|
+
|
|
418
|
+
### Authorization
|
|
419
|
+
|
|
420
|
+
No authorization required
|
|
421
|
+
|
|
422
|
+
### HTTP request headers
|
|
423
|
+
|
|
424
|
+
- **Content-Type**: Not defined
|
|
425
|
+
- **Accept**: `application/json`
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
### HTTP response details
|
|
429
|
+
| Status code | Description | Response headers |
|
|
430
|
+
|-------------|-------------|------------------|
|
|
431
|
+
| **200** | Allowed test email recipients | - |
|
|
432
|
+
|
|
433
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
434
|
+
|
|
435
|
+
|
|
377
436
|
## getPublicEmailAsset
|
|
378
437
|
|
|
379
438
|
> getPublicEmailAsset(assetId)
|
|
@@ -696,6 +755,63 @@ No authorization required
|
|
|
696
755
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
697
756
|
|
|
698
757
|
|
|
758
|
+
## getSystemEmailTemplateTestRecipientList
|
|
759
|
+
|
|
760
|
+
> GetEmailTemplateTestRecipientList getSystemEmailTemplateTestRecipientList()
|
|
761
|
+
|
|
762
|
+
List addresses allowed to receive platform template test emails
|
|
763
|
+
|
|
764
|
+
### Example
|
|
765
|
+
|
|
766
|
+
```ts
|
|
767
|
+
import {
|
|
768
|
+
Configuration,
|
|
769
|
+
EmailTemplateApi,
|
|
770
|
+
} from '@easyedu/js-lsm-api';
|
|
771
|
+
import type { GetSystemEmailTemplateTestRecipientListRequest } from '@easyedu/js-lsm-api';
|
|
772
|
+
|
|
773
|
+
async function example() {
|
|
774
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
775
|
+
const api = new EmailTemplateApi();
|
|
776
|
+
|
|
777
|
+
try {
|
|
778
|
+
const data = await api.getSystemEmailTemplateTestRecipientList();
|
|
779
|
+
console.log(data);
|
|
780
|
+
} catch (error) {
|
|
781
|
+
console.error(error);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
// Run the test
|
|
786
|
+
example().catch(console.error);
|
|
787
|
+
```
|
|
788
|
+
|
|
789
|
+
### Parameters
|
|
790
|
+
|
|
791
|
+
This endpoint does not need any parameter.
|
|
792
|
+
|
|
793
|
+
### Return type
|
|
794
|
+
|
|
795
|
+
[**GetEmailTemplateTestRecipientList**](GetEmailTemplateTestRecipientList.md)
|
|
796
|
+
|
|
797
|
+
### Authorization
|
|
798
|
+
|
|
799
|
+
No authorization required
|
|
800
|
+
|
|
801
|
+
### HTTP request headers
|
|
802
|
+
|
|
803
|
+
- **Content-Type**: Not defined
|
|
804
|
+
- **Accept**: `application/json`
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
### HTTP response details
|
|
808
|
+
| Status code | Description | Response headers |
|
|
809
|
+
|-------------|-------------|------------------|
|
|
810
|
+
| **200** | Allowed test email recipients | - |
|
|
811
|
+
|
|
812
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
813
|
+
|
|
814
|
+
|
|
699
815
|
## postEmailAssetComplete
|
|
700
816
|
|
|
701
817
|
> postEmailAssetComplete(assetId, postEmailAssetComplete)
|
|
@@ -1161,6 +1277,7 @@ No authorization required
|
|
|
1161
1277
|
| Status code | Description | Response headers |
|
|
1162
1278
|
|-------------|-------------|------------------|
|
|
1163
1279
|
| **202** | Test queued | - |
|
|
1280
|
+
| **400** | Recipient is not an allowed test email recipient | - |
|
|
1164
1281
|
| **429** | Test-send rate limit exceeded | - |
|
|
1165
1282
|
|
|
1166
1283
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -1761,6 +1878,7 @@ No authorization required
|
|
|
1761
1878
|
| Status code | Description | Response headers |
|
|
1762
1879
|
|-------------|-------------|------------------|
|
|
1763
1880
|
| **202** | Test queued | - |
|
|
1881
|
+
| **400** | Recipient is not an allowed test email recipient | - |
|
|
1764
1882
|
|
|
1765
1883
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1766
1884
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# GetEmailTemplateTestRecipientList
|
|
3
|
+
|
|
4
|
+
Addresses allowed to receive template test emails: enabled admins and instructors of the caller\'s selected portal who accepted their portal invitation.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`items` | [Array<GetEmailTemplateTestRecipientListItemsInner>](GetEmailTemplateTestRecipientListItemsInner.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetEmailTemplateTestRecipientList } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"items": null,
|
|
20
|
+
} satisfies GetEmailTemplateTestRecipientList
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetEmailTemplateTestRecipientList
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# GetEmailTemplateTestRecipientListItemsInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`email` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GetEmailTemplateTestRecipientListItemsInner } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"email": null,
|
|
20
|
+
"name": null,
|
|
21
|
+
} satisfies GetEmailTemplateTestRecipientListItemsInner
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetEmailTemplateTestRecipientListItemsInner
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/GetPortal.md
CHANGED
|
@@ -16,6 +16,8 @@ Name | Type
|
|
|
16
16
|
`headerBackgroundColor` | string
|
|
17
17
|
`headerTextColor` | string
|
|
18
18
|
`brandingTheme` | [PortalBrandThemeV1](PortalBrandThemeV1.md)
|
|
19
|
+
`verified` | boolean
|
|
20
|
+
`verifiedAt` | number
|
|
19
21
|
`baseType` | string
|
|
20
22
|
|
|
21
23
|
## Example
|
|
@@ -35,6 +37,8 @@ const example = {
|
|
|
35
37
|
"headerBackgroundColor": null,
|
|
36
38
|
"headerTextColor": null,
|
|
37
39
|
"brandingTheme": null,
|
|
40
|
+
"verified": null,
|
|
41
|
+
"verifiedAt": null,
|
|
38
42
|
"baseType": null,
|
|
39
43
|
} satisfies GetPortal
|
|
40
44
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# PutSystemPortal
|
|
3
|
+
|
|
4
|
+
Platform-managed portal settings. Omitted fields are left unchanged.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`verified` | boolean
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PutSystemPortal } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"verified": null,
|
|
20
|
+
} satisfies PutSystemPortal
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as PutSystemPortal
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
package/docs/SystemApi.md
CHANGED
|
@@ -10,6 +10,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
10
10
|
| [**getSystemPortalOverview**](SystemApi.md#getsystemportaloverview) | **GET** /system/portals/{portalId}/overview | Get detailed platform portal overview and usage statistics |
|
|
11
11
|
| [**getSystemPortals**](SystemApi.md#getsystemportals) | **GET** /system/portals | List all platform portals |
|
|
12
12
|
| [**getSystemSupportTickets**](SystemApi.md#getsystemsupporttickets) | **GET** /system/support/tickets | List open support tickets across the platform |
|
|
13
|
+
| [**putSystemPortal**](SystemApi.md#putsystemportal) | **PUT** /system/portals/{portalId} | Update platform-managed portal settings |
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
|
|
@@ -411,3 +412,73 @@ No authorization required
|
|
|
411
412
|
|
|
412
413
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
413
414
|
|
|
415
|
+
|
|
416
|
+
## putSystemPortal
|
|
417
|
+
|
|
418
|
+
> GetPortal putSystemPortal(portalId, putSystemPortal)
|
|
419
|
+
|
|
420
|
+
Update platform-managed portal settings
|
|
421
|
+
|
|
422
|
+
### Example
|
|
423
|
+
|
|
424
|
+
```ts
|
|
425
|
+
import {
|
|
426
|
+
Configuration,
|
|
427
|
+
SystemApi,
|
|
428
|
+
} from '@easyedu/js-lsm-api';
|
|
429
|
+
import type { PutSystemPortalRequest } from '@easyedu/js-lsm-api';
|
|
430
|
+
|
|
431
|
+
async function example() {
|
|
432
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
433
|
+
const api = new SystemApi();
|
|
434
|
+
|
|
435
|
+
const body = {
|
|
436
|
+
// string
|
|
437
|
+
portalId: portalId_example,
|
|
438
|
+
// PutSystemPortal
|
|
439
|
+
putSystemPortal: ...,
|
|
440
|
+
} satisfies PutSystemPortalRequest;
|
|
441
|
+
|
|
442
|
+
try {
|
|
443
|
+
const data = await api.putSystemPortal(body);
|
|
444
|
+
console.log(data);
|
|
445
|
+
} catch (error) {
|
|
446
|
+
console.error(error);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
// Run the test
|
|
451
|
+
example().catch(console.error);
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
### Parameters
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
| Name | Type | Description | Notes |
|
|
458
|
+
|------------- | ------------- | ------------- | -------------|
|
|
459
|
+
| **portalId** | `string` | | [Defaults to `undefined`] |
|
|
460
|
+
| **putSystemPortal** | [PutSystemPortal](PutSystemPortal.md) | | |
|
|
461
|
+
|
|
462
|
+
### Return type
|
|
463
|
+
|
|
464
|
+
[**GetPortal**](GetPortal.md)
|
|
465
|
+
|
|
466
|
+
### Authorization
|
|
467
|
+
|
|
468
|
+
No authorization required
|
|
469
|
+
|
|
470
|
+
### HTTP request headers
|
|
471
|
+
|
|
472
|
+
- **Content-Type**: `application/json`
|
|
473
|
+
- **Accept**: `application/json`
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
### HTTP response details
|
|
477
|
+
| Status code | Description | Response headers |
|
|
478
|
+
|-------------|-------------|------------------|
|
|
479
|
+
| **200** | Updated portal | - |
|
|
480
|
+
| **403** | Forbidden | - |
|
|
481
|
+
| **404** | Portal not found | - |
|
|
482
|
+
|
|
483
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
484
|
+
|
package/package.json
CHANGED
|
@@ -48,6 +48,11 @@ import {
|
|
|
48
48
|
GetEmailTemplatePreviewFromJSON,
|
|
49
49
|
GetEmailTemplatePreviewToJSON,
|
|
50
50
|
} from '../models/GetEmailTemplatePreview';
|
|
51
|
+
import {
|
|
52
|
+
type GetEmailTemplateTestRecipientList,
|
|
53
|
+
GetEmailTemplateTestRecipientListFromJSON,
|
|
54
|
+
GetEmailTemplateTestRecipientListToJSON,
|
|
55
|
+
} from '../models/GetEmailTemplateTestRecipientList';
|
|
51
56
|
import {
|
|
52
57
|
type PostEmailAssetComplete,
|
|
53
58
|
PostEmailAssetCompleteFromJSON,
|
|
@@ -448,6 +453,43 @@ export class EmailTemplateApi extends runtime.BaseAPI {
|
|
|
448
453
|
return await response.value();
|
|
449
454
|
}
|
|
450
455
|
|
|
456
|
+
/**
|
|
457
|
+
* Creates request options for getEmailTemplateTestRecipientList without sending the request
|
|
458
|
+
*/
|
|
459
|
+
async getEmailTemplateTestRecipientListRequestOpts(): Promise<runtime.RequestOpts> {
|
|
460
|
+
const queryParameters: any = {};
|
|
461
|
+
|
|
462
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
let urlPath = `/email-templates/test-recipients`;
|
|
466
|
+
|
|
467
|
+
return {
|
|
468
|
+
path: urlPath,
|
|
469
|
+
method: 'GET',
|
|
470
|
+
headers: headerParameters,
|
|
471
|
+
query: queryParameters,
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* List addresses allowed to receive portal template test emails
|
|
477
|
+
*/
|
|
478
|
+
async getEmailTemplateTestRecipientListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetEmailTemplateTestRecipientList>> {
|
|
479
|
+
const requestOptions = await this.getEmailTemplateTestRecipientListRequestOpts();
|
|
480
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
481
|
+
|
|
482
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetEmailTemplateTestRecipientListFromJSON(jsonValue));
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* List addresses allowed to receive portal template test emails
|
|
487
|
+
*/
|
|
488
|
+
async getEmailTemplateTestRecipientList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailTemplateTestRecipientList> {
|
|
489
|
+
const response = await this.getEmailTemplateTestRecipientListRaw(initOverrides);
|
|
490
|
+
return await response.value();
|
|
491
|
+
}
|
|
492
|
+
|
|
451
493
|
/**
|
|
452
494
|
* Creates request options for getPublicEmailAsset without sending the request
|
|
453
495
|
*/
|
|
@@ -663,6 +705,43 @@ export class EmailTemplateApi extends runtime.BaseAPI {
|
|
|
663
705
|
return await response.value();
|
|
664
706
|
}
|
|
665
707
|
|
|
708
|
+
/**
|
|
709
|
+
* Creates request options for getSystemEmailTemplateTestRecipientList without sending the request
|
|
710
|
+
*/
|
|
711
|
+
async getSystemEmailTemplateTestRecipientListRequestOpts(): Promise<runtime.RequestOpts> {
|
|
712
|
+
const queryParameters: any = {};
|
|
713
|
+
|
|
714
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
let urlPath = `/system/email-templates/test-recipients`;
|
|
718
|
+
|
|
719
|
+
return {
|
|
720
|
+
path: urlPath,
|
|
721
|
+
method: 'GET',
|
|
722
|
+
headers: headerParameters,
|
|
723
|
+
query: queryParameters,
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* List addresses allowed to receive platform template test emails
|
|
729
|
+
*/
|
|
730
|
+
async getSystemEmailTemplateTestRecipientListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetEmailTemplateTestRecipientList>> {
|
|
731
|
+
const requestOptions = await this.getSystemEmailTemplateTestRecipientListRequestOpts();
|
|
732
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
733
|
+
|
|
734
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetEmailTemplateTestRecipientListFromJSON(jsonValue));
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* List addresses allowed to receive platform template test emails
|
|
739
|
+
*/
|
|
740
|
+
async getSystemEmailTemplateTestRecipientList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailTemplateTestRecipientList> {
|
|
741
|
+
const response = await this.getSystemEmailTemplateTestRecipientListRaw(initOverrides);
|
|
742
|
+
return await response.value();
|
|
743
|
+
}
|
|
744
|
+
|
|
666
745
|
/**
|
|
667
746
|
* Creates request options for postEmailAssetComplete without sending the request
|
|
668
747
|
*/
|
package/src/apis/SystemApi.ts
CHANGED
|
@@ -43,6 +43,11 @@ import {
|
|
|
43
43
|
GetSystemPortalOverviewFromJSON,
|
|
44
44
|
GetSystemPortalOverviewToJSON,
|
|
45
45
|
} from '../models/GetSystemPortalOverview';
|
|
46
|
+
import {
|
|
47
|
+
type PutSystemPortal,
|
|
48
|
+
PutSystemPortalFromJSON,
|
|
49
|
+
PutSystemPortalToJSON,
|
|
50
|
+
} from '../models/PutSystemPortal';
|
|
46
51
|
|
|
47
52
|
export interface GetSystemBillingRequest {
|
|
48
53
|
page?: number;
|
|
@@ -67,6 +72,11 @@ export interface GetSystemSupportTicketsRequest {
|
|
|
67
72
|
pageSize?: number;
|
|
68
73
|
}
|
|
69
74
|
|
|
75
|
+
export interface PutSystemPortalRequest {
|
|
76
|
+
portalId: string;
|
|
77
|
+
putSystemPortal: PutSystemPortal;
|
|
78
|
+
}
|
|
79
|
+
|
|
70
80
|
/**
|
|
71
81
|
*
|
|
72
82
|
*/
|
|
@@ -334,4 +344,59 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
334
344
|
return await response.value();
|
|
335
345
|
}
|
|
336
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Creates request options for putSystemPortal without sending the request
|
|
349
|
+
*/
|
|
350
|
+
async putSystemPortalRequestOpts(requestParameters: PutSystemPortalRequest): Promise<runtime.RequestOpts> {
|
|
351
|
+
if (requestParameters['portalId'] == null) {
|
|
352
|
+
throw new runtime.RequiredError(
|
|
353
|
+
'portalId',
|
|
354
|
+
'Required parameter "portalId" was null or undefined when calling putSystemPortal().'
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
if (requestParameters['putSystemPortal'] == null) {
|
|
359
|
+
throw new runtime.RequiredError(
|
|
360
|
+
'putSystemPortal',
|
|
361
|
+
'Required parameter "putSystemPortal" was null or undefined when calling putSystemPortal().'
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const queryParameters: any = {};
|
|
366
|
+
|
|
367
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
368
|
+
|
|
369
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
let urlPath = `/system/portals/{portalId}`;
|
|
373
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
374
|
+
|
|
375
|
+
return {
|
|
376
|
+
path: urlPath,
|
|
377
|
+
method: 'PUT',
|
|
378
|
+
headers: headerParameters,
|
|
379
|
+
query: queryParameters,
|
|
380
|
+
body: PutSystemPortalToJSON(requestParameters['putSystemPortal']),
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Update platform-managed portal settings
|
|
386
|
+
*/
|
|
387
|
+
async putSystemPortalRaw(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>> {
|
|
388
|
+
const requestOptions = await this.putSystemPortalRequestOpts(requestParameters);
|
|
389
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
390
|
+
|
|
391
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalFromJSON(jsonValue));
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Update platform-managed portal settings
|
|
396
|
+
*/
|
|
397
|
+
async putSystemPortal(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal> {
|
|
398
|
+
const response = await this.putSystemPortalRaw(requestParameters, initOverrides);
|
|
399
|
+
return await response.value();
|
|
400
|
+
}
|
|
401
|
+
|
|
337
402
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetEmailTemplateTestRecipientListItemsInner } from './GetEmailTemplateTestRecipientListItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
GetEmailTemplateTestRecipientListItemsInnerFromJSON,
|
|
19
|
+
GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped,
|
|
20
|
+
GetEmailTemplateTestRecipientListItemsInnerToJSON,
|
|
21
|
+
GetEmailTemplateTestRecipientListItemsInnerToJSONTyped,
|
|
22
|
+
} from './GetEmailTemplateTestRecipientListItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Addresses allowed to receive template test emails: enabled admins and instructors of the caller's selected portal who accepted their portal invitation.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetEmailTemplateTestRecipientList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetEmailTemplateTestRecipientList {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<GetEmailTemplateTestRecipientListItemsInner>}
|
|
33
|
+
* @memberof GetEmailTemplateTestRecipientList
|
|
34
|
+
*/
|
|
35
|
+
items: Array<GetEmailTemplateTestRecipientListItemsInner>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GetEmailTemplateTestRecipientList interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGetEmailTemplateTestRecipientList(value: object): value is GetEmailTemplateTestRecipientList {
|
|
42
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetEmailTemplateTestRecipientListFromJSON(json: any): GetEmailTemplateTestRecipientList {
|
|
47
|
+
return GetEmailTemplateTestRecipientListFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GetEmailTemplateTestRecipientListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEmailTemplateTestRecipientList {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'items': ((json['items'] as Array<any>).map(GetEmailTemplateTestRecipientListItemsInnerFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetEmailTemplateTestRecipientListToJSON(json: any): GetEmailTemplateTestRecipientList {
|
|
61
|
+
return GetEmailTemplateTestRecipientListToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetEmailTemplateTestRecipientListToJSONTyped(value?: GetEmailTemplateTestRecipientList | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'items': ((value['items'] as Array<any>).map(GetEmailTemplateTestRecipientListItemsInnerToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|