@easyedu/js-lsm-api 1.134.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.
Files changed (32) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/EmailTemplateApi.d.ts +25 -0
  4. package/dist/apis/EmailTemplateApi.js +71 -0
  5. package/dist/esm/apis/EmailTemplateApi.d.ts +25 -0
  6. package/dist/esm/apis/EmailTemplateApi.js +71 -0
  7. package/dist/esm/models/CertificateEvent.d.ts +6 -0
  8. package/dist/esm/models/CertificateEvent.js +2 -0
  9. package/dist/esm/models/GetEmailTemplateTestRecipientList.d.ts +33 -0
  10. package/dist/esm/models/GetEmailTemplateTestRecipientList.js +44 -0
  11. package/dist/esm/models/GetEmailTemplateTestRecipientListItemsInner.d.ts +38 -0
  12. package/dist/esm/models/GetEmailTemplateTestRecipientListItemsInner.js +47 -0
  13. package/dist/esm/models/index.d.ts +2 -0
  14. package/dist/esm/models/index.js +2 -0
  15. package/dist/models/CertificateEvent.d.ts +6 -0
  16. package/dist/models/CertificateEvent.js +2 -0
  17. package/dist/models/GetEmailTemplateTestRecipientList.d.ts +33 -0
  18. package/dist/models/GetEmailTemplateTestRecipientList.js +51 -0
  19. package/dist/models/GetEmailTemplateTestRecipientListItemsInner.d.ts +38 -0
  20. package/dist/models/GetEmailTemplateTestRecipientListItemsInner.js +54 -0
  21. package/dist/models/index.d.ts +2 -0
  22. package/dist/models/index.js +2 -0
  23. package/docs/CertificateEvent.md +2 -0
  24. package/docs/EmailTemplateApi.md +118 -0
  25. package/docs/GetEmailTemplateTestRecipientList.md +35 -0
  26. package/docs/GetEmailTemplateTestRecipientListItemsInner.md +36 -0
  27. package/package.json +1 -1
  28. package/src/apis/EmailTemplateApi.ts +79 -0
  29. package/src/models/CertificateEvent.ts +8 -0
  30. package/src/models/GetEmailTemplateTestRecipientList.ts +74 -0
  31. package/src/models/GetEmailTemplateTestRecipientListItemsInner.ts +75 -0
  32. package/src/models/index.ts +2 -0
@@ -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,6 +9,7 @@ Name | Type
9
9
  `id` | string
10
10
  `eventType` | string
11
11
  `actorUserId` | string
12
+ `actorName` | string
12
13
  `oldValues` | { [key: string]: any; }
13
14
  `newValues` | { [key: string]: any; }
14
15
  `context` | { [key: string]: any; }
@@ -24,6 +25,7 @@ const example = {
24
25
  "id": null,
25
26
  "eventType": null,
26
27
  "actorUserId": null,
28
+ "actorName": null,
27
29
  "oldValues": null,
28
30
  "newValues": null,
29
31
  "context": null,
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.134.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
  */
@@ -37,6 +37,12 @@ export interface CertificateEvent {
37
37
  * @memberof CertificateEvent
38
38
  */
39
39
  actorUserId?: string | null;
40
+ /**
41
+ * Display name of the user who performed the action, falling back to their email. Null for system events or when the user no longer exists.
42
+ * @type {string}
43
+ * @memberof CertificateEvent
44
+ */
45
+ actorName?: string | null;
40
46
  /**
41
47
  *
42
48
  * @type {{ [key: string]: any; }}
@@ -87,6 +93,7 @@ export function CertificateEventFromJSONTyped(json: any, ignoreDiscriminator: bo
87
93
  'id': json['id'],
88
94
  'eventType': json['event_type'],
89
95
  'actorUserId': json['actor_user_id'] == null ? undefined : json['actor_user_id'],
96
+ 'actorName': json['actor_name'] == null ? undefined : json['actor_name'],
90
97
  'oldValues': json['old_values'] == null ? undefined : json['old_values'],
91
98
  'newValues': json['new_values'] == null ? undefined : json['new_values'],
92
99
  'context': json['context'],
@@ -108,6 +115,7 @@ export function CertificateEventToJSONTyped(value?: CertificateEvent | null, ign
108
115
  'id': value['id'],
109
116
  'event_type': value['eventType'],
110
117
  'actor_user_id': value['actorUserId'],
118
+ 'actor_name': value['actorName'],
111
119
  'old_values': value['oldValues'],
112
120
  'new_values': value['newValues'],
113
121
  'context': value['context'],
@@ -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
+