@easyedu/js-lsm-api 1.135.0 → 1.136.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.
@@ -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
@@ -558,6 +560,8 @@ src/models/GetEmailDeliveryList.ts
558
560
  src/models/GetEmailTemplate.ts
559
561
  src/models/GetEmailTemplateList.ts
560
562
  src/models/GetEmailTemplatePreview.ts
563
+ src/models/GetEmailTemplateTestRecipientList.ts
564
+ src/models/GetEmailTemplateTestRecipientListItemsInner.ts
561
565
  src/models/GetHostedScormRegistration.ts
562
566
  src/models/GetHostedScormRegistrationList.ts
563
567
  src/models/GetLearnerDashboard.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.135.0
1
+ # @easyedu/js-lsm-api@1.136.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
@@ -518,6 +520,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
518
520
  - [GetEmailTemplate](docs/GetEmailTemplate.md)
519
521
  - [GetEmailTemplateList](docs/GetEmailTemplateList.md)
520
522
  - [GetEmailTemplatePreview](docs/GetEmailTemplatePreview.md)
523
+ - [GetEmailTemplateTestRecipientList](docs/GetEmailTemplateTestRecipientList.md)
524
+ - [GetEmailTemplateTestRecipientListItemsInner](docs/GetEmailTemplateTestRecipientListItemsInner.md)
521
525
  - [GetHostedScormRegistration](docs/GetHostedScormRegistration.md)
522
526
  - [GetHostedScormRegistrationList](docs/GetHostedScormRegistrationList.md)
523
527
  - [GetLearnerDashboard](docs/GetLearnerDashboard.md)
@@ -836,7 +840,7 @@ and is automatically generated by the
836
840
  [OpenAPI Generator](https://openapi-generator.tech) project:
837
841
 
838
842
  - API version: `1.0.0`
839
- - Package version: `1.135.0`
843
+ - Package version: `1.136.0`
840
844
  - Generator version: `7.22.0`
841
845
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
842
846
 
@@ -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
  */
@@ -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
  */
@@ -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
+ }
@@ -0,0 +1,38 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetEmailTemplateTestRecipientListItemsInner
16
+ */
17
+ export interface GetEmailTemplateTestRecipientListItemsInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetEmailTemplateTestRecipientListItemsInner
22
+ */
23
+ email: string;
24
+ /**
25
+ * Display name for the recipient.
26
+ * @type {string}
27
+ * @memberof GetEmailTemplateTestRecipientListItemsInner
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GetEmailTemplateTestRecipientListItemsInner interface.
33
+ */
34
+ export declare function instanceOfGetEmailTemplateTestRecipientListItemsInner(value: object): value is GetEmailTemplateTestRecipientListItemsInner;
35
+ export declare function GetEmailTemplateTestRecipientListItemsInnerFromJSON(json: any): GetEmailTemplateTestRecipientListItemsInner;
36
+ export declare function GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEmailTemplateTestRecipientListItemsInner;
37
+ export declare function GetEmailTemplateTestRecipientListItemsInnerToJSON(json: any): GetEmailTemplateTestRecipientListItemsInner;
38
+ export declare function GetEmailTemplateTestRecipientListItemsInnerToJSONTyped(value?: GetEmailTemplateTestRecipientListItemsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the GetEmailTemplateTestRecipientListItemsInner interface.
16
+ */
17
+ export function instanceOfGetEmailTemplateTestRecipientListItemsInner(value) {
18
+ if (!('email' in value) || value['email'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function GetEmailTemplateTestRecipientListItemsInnerFromJSON(json) {
25
+ return GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped(json, false);
26
+ }
27
+ export function GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'email': json['email'],
33
+ 'name': json['name'],
34
+ };
35
+ }
36
+ export function GetEmailTemplateTestRecipientListItemsInnerToJSON(json) {
37
+ return GetEmailTemplateTestRecipientListItemsInnerToJSONTyped(json, false);
38
+ }
39
+ export function GetEmailTemplateTestRecipientListItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'email': value['email'],
45
+ 'name': value['name'],
46
+ };
47
+ }
@@ -95,6 +95,8 @@ export * from './GetEmailDeliveryList';
95
95
  export * from './GetEmailTemplate';
96
96
  export * from './GetEmailTemplateList';
97
97
  export * from './GetEmailTemplatePreview';
98
+ export * from './GetEmailTemplateTestRecipientList';
99
+ export * from './GetEmailTemplateTestRecipientListItemsInner';
98
100
  export * from './GetHostedScormRegistration';
99
101
  export * from './GetHostedScormRegistrationList';
100
102
  export * from './GetLearnerDashboard';
@@ -97,6 +97,8 @@ export * from './GetEmailDeliveryList';
97
97
  export * from './GetEmailTemplate';
98
98
  export * from './GetEmailTemplateList';
99
99
  export * from './GetEmailTemplatePreview';
100
+ export * from './GetEmailTemplateTestRecipientList';
101
+ export * from './GetEmailTemplateTestRecipientListItemsInner';
100
102
  export * from './GetHostedScormRegistration';
101
103
  export * from './GetHostedScormRegistrationList';
102
104
  export * from './GetLearnerDashboard';
@@ -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,51 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetEmailTemplateTestRecipientList = instanceOfGetEmailTemplateTestRecipientList;
17
+ exports.GetEmailTemplateTestRecipientListFromJSON = GetEmailTemplateTestRecipientListFromJSON;
18
+ exports.GetEmailTemplateTestRecipientListFromJSONTyped = GetEmailTemplateTestRecipientListFromJSONTyped;
19
+ exports.GetEmailTemplateTestRecipientListToJSON = GetEmailTemplateTestRecipientListToJSON;
20
+ exports.GetEmailTemplateTestRecipientListToJSONTyped = GetEmailTemplateTestRecipientListToJSONTyped;
21
+ const GetEmailTemplateTestRecipientListItemsInner_1 = require("./GetEmailTemplateTestRecipientListItemsInner");
22
+ /**
23
+ * Check if a given object implements the GetEmailTemplateTestRecipientList interface.
24
+ */
25
+ function instanceOfGetEmailTemplateTestRecipientList(value) {
26
+ if (!('items' in value) || value['items'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function GetEmailTemplateTestRecipientListFromJSON(json) {
31
+ return GetEmailTemplateTestRecipientListFromJSONTyped(json, false);
32
+ }
33
+ function GetEmailTemplateTestRecipientListFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'items': (json['items'].map(GetEmailTemplateTestRecipientListItemsInner_1.GetEmailTemplateTestRecipientListItemsInnerFromJSON)),
39
+ };
40
+ }
41
+ function GetEmailTemplateTestRecipientListToJSON(json) {
42
+ return GetEmailTemplateTestRecipientListToJSONTyped(json, false);
43
+ }
44
+ function GetEmailTemplateTestRecipientListToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'items': (value['items'].map(GetEmailTemplateTestRecipientListItemsInner_1.GetEmailTemplateTestRecipientListItemsInnerToJSON)),
50
+ };
51
+ }
@@ -0,0 +1,38 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetEmailTemplateTestRecipientListItemsInner
16
+ */
17
+ export interface GetEmailTemplateTestRecipientListItemsInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetEmailTemplateTestRecipientListItemsInner
22
+ */
23
+ email: string;
24
+ /**
25
+ * Display name for the recipient.
26
+ * @type {string}
27
+ * @memberof GetEmailTemplateTestRecipientListItemsInner
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GetEmailTemplateTestRecipientListItemsInner interface.
33
+ */
34
+ export declare function instanceOfGetEmailTemplateTestRecipientListItemsInner(value: object): value is GetEmailTemplateTestRecipientListItemsInner;
35
+ export declare function GetEmailTemplateTestRecipientListItemsInnerFromJSON(json: any): GetEmailTemplateTestRecipientListItemsInner;
36
+ export declare function GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEmailTemplateTestRecipientListItemsInner;
37
+ export declare function GetEmailTemplateTestRecipientListItemsInnerToJSON(json: any): GetEmailTemplateTestRecipientListItemsInner;
38
+ export declare function GetEmailTemplateTestRecipientListItemsInnerToJSONTyped(value?: GetEmailTemplateTestRecipientListItemsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetEmailTemplateTestRecipientListItemsInner = instanceOfGetEmailTemplateTestRecipientListItemsInner;
17
+ exports.GetEmailTemplateTestRecipientListItemsInnerFromJSON = GetEmailTemplateTestRecipientListItemsInnerFromJSON;
18
+ exports.GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped = GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped;
19
+ exports.GetEmailTemplateTestRecipientListItemsInnerToJSON = GetEmailTemplateTestRecipientListItemsInnerToJSON;
20
+ exports.GetEmailTemplateTestRecipientListItemsInnerToJSONTyped = GetEmailTemplateTestRecipientListItemsInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetEmailTemplateTestRecipientListItemsInner interface.
23
+ */
24
+ function instanceOfGetEmailTemplateTestRecipientListItemsInner(value) {
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GetEmailTemplateTestRecipientListItemsInnerFromJSON(json) {
32
+ return GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped(json, false);
33
+ }
34
+ function GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'email': json['email'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function GetEmailTemplateTestRecipientListItemsInnerToJSON(json) {
44
+ return GetEmailTemplateTestRecipientListItemsInnerToJSONTyped(json, false);
45
+ }
46
+ function GetEmailTemplateTestRecipientListItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'email': value['email'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -95,6 +95,8 @@ export * from './GetEmailDeliveryList';
95
95
  export * from './GetEmailTemplate';
96
96
  export * from './GetEmailTemplateList';
97
97
  export * from './GetEmailTemplatePreview';
98
+ export * from './GetEmailTemplateTestRecipientList';
99
+ export * from './GetEmailTemplateTestRecipientListItemsInner';
98
100
  export * from './GetHostedScormRegistration';
99
101
  export * from './GetHostedScormRegistrationList';
100
102
  export * from './GetLearnerDashboard';
@@ -113,6 +113,8 @@ __exportStar(require("./GetEmailDeliveryList"), exports);
113
113
  __exportStar(require("./GetEmailTemplate"), exports);
114
114
  __exportStar(require("./GetEmailTemplateList"), exports);
115
115
  __exportStar(require("./GetEmailTemplatePreview"), exports);
116
+ __exportStar(require("./GetEmailTemplateTestRecipientList"), exports);
117
+ __exportStar(require("./GetEmailTemplateTestRecipientListItemsInner"), exports);
116
118
  __exportStar(require("./GetHostedScormRegistration"), exports);
117
119
  __exportStar(require("./GetHostedScormRegistrationList"), exports);
118
120
  __exportStar(require("./GetLearnerDashboard"), exports);
@@ -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&lt;GetEmailTemplateTestRecipientListItemsInner&gt;](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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.135.0",
3
+ "version": "1.136.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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
  */
@@ -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
+
@@ -0,0 +1,75 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface GetEmailTemplateTestRecipientListItemsInner
20
+ */
21
+ export interface GetEmailTemplateTestRecipientListItemsInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetEmailTemplateTestRecipientListItemsInner
26
+ */
27
+ email: string;
28
+ /**
29
+ * Display name for the recipient.
30
+ * @type {string}
31
+ * @memberof GetEmailTemplateTestRecipientListItemsInner
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the GetEmailTemplateTestRecipientListItemsInner interface.
38
+ */
39
+ export function instanceOfGetEmailTemplateTestRecipientListItemsInner(value: object): value is GetEmailTemplateTestRecipientListItemsInner {
40
+ if (!('email' in value) || value['email'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function GetEmailTemplateTestRecipientListItemsInnerFromJSON(json: any): GetEmailTemplateTestRecipientListItemsInner {
46
+ return GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function GetEmailTemplateTestRecipientListItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEmailTemplateTestRecipientListItemsInner {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'email': json['email'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function GetEmailTemplateTestRecipientListItemsInnerToJSON(json: any): GetEmailTemplateTestRecipientListItemsInner {
61
+ return GetEmailTemplateTestRecipientListItemsInnerToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetEmailTemplateTestRecipientListItemsInnerToJSONTyped(value?: GetEmailTemplateTestRecipientListItemsInner | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'email': value['email'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -97,6 +97,8 @@ export * from './GetEmailDeliveryList';
97
97
  export * from './GetEmailTemplate';
98
98
  export * from './GetEmailTemplateList';
99
99
  export * from './GetEmailTemplatePreview';
100
+ export * from './GetEmailTemplateTestRecipientList';
101
+ export * from './GetEmailTemplateTestRecipientListItemsInner';
100
102
  export * from './GetHostedScormRegistration';
101
103
  export * from './GetHostedScormRegistrationList';
102
104
  export * from './GetLearnerDashboard';