@easyedu/js-lsm-api 1.104.0 → 1.106.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 (80) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +8 -3
  3. package/dist/apis/EmailTemplateApi.d.ts +32 -0
  4. package/dist/apis/EmailTemplateApi.js +64 -1
  5. package/dist/apis/PortalApi.d.ts +2 -2
  6. package/dist/apis/PortalApi.js +2 -2
  7. package/dist/esm/apis/EmailTemplateApi.d.ts +32 -0
  8. package/dist/esm/apis/EmailTemplateApi.js +63 -0
  9. package/dist/esm/apis/PortalApi.d.ts +2 -2
  10. package/dist/esm/apis/PortalApi.js +2 -2
  11. package/dist/esm/models/GetEmailDelivery.d.ts +31 -0
  12. package/dist/esm/models/GetEmailDelivery.js +13 -0
  13. package/dist/esm/models/GetPortal.d.ts +11 -2
  14. package/dist/esm/models/GetPortal.js +5 -0
  15. package/dist/esm/models/GetPortalInvitationSummary.d.ts +102 -0
  16. package/dist/esm/models/GetPortalInvitationSummary.js +87 -0
  17. package/dist/esm/models/GetPortalUser.d.ts +7 -0
  18. package/dist/esm/models/GetPortalUser.js +3 -0
  19. package/dist/esm/models/GetPublicPortalBranding.d.ts +11 -2
  20. package/dist/esm/models/GetPublicPortalBranding.js +5 -0
  21. package/dist/esm/models/PortalBrandColorsV1.d.ts +194 -0
  22. package/dist/esm/models/PortalBrandColorsV1.js +151 -0
  23. package/dist/esm/models/PortalBrandThemeV1.d.ts +53 -0
  24. package/dist/esm/models/PortalBrandThemeV1.js +59 -0
  25. package/dist/esm/models/PortalBrandTypographyV1.d.ts +80 -0
  26. package/dist/esm/models/PortalBrandTypographyV1.js +78 -0
  27. package/dist/esm/models/PostPortal.d.ts +9 -0
  28. package/dist/esm/models/PostPortal.js +3 -0
  29. package/dist/esm/models/PutPortalBranding.d.ts +9 -0
  30. package/dist/esm/models/PutPortalBranding.js +3 -0
  31. package/dist/esm/models/index.d.ts +4 -0
  32. package/dist/esm/models/index.js +4 -0
  33. package/dist/models/GetEmailDelivery.d.ts +31 -0
  34. package/dist/models/GetEmailDelivery.js +13 -0
  35. package/dist/models/GetPortal.d.ts +11 -2
  36. package/dist/models/GetPortal.js +5 -0
  37. package/dist/models/GetPortalInvitationSummary.d.ts +102 -0
  38. package/dist/models/GetPortalInvitationSummary.js +95 -0
  39. package/dist/models/GetPortalUser.d.ts +7 -0
  40. package/dist/models/GetPortalUser.js +3 -0
  41. package/dist/models/GetPublicPortalBranding.d.ts +11 -2
  42. package/dist/models/GetPublicPortalBranding.js +5 -0
  43. package/dist/models/PortalBrandColorsV1.d.ts +194 -0
  44. package/dist/models/PortalBrandColorsV1.js +158 -0
  45. package/dist/models/PortalBrandThemeV1.d.ts +53 -0
  46. package/dist/models/PortalBrandThemeV1.js +67 -0
  47. package/dist/models/PortalBrandTypographyV1.d.ts +80 -0
  48. package/dist/models/PortalBrandTypographyV1.js +86 -0
  49. package/dist/models/PostPortal.d.ts +9 -0
  50. package/dist/models/PostPortal.js +3 -0
  51. package/dist/models/PutPortalBranding.d.ts +9 -0
  52. package/dist/models/PutPortalBranding.js +3 -0
  53. package/dist/models/index.d.ts +4 -0
  54. package/dist/models/index.js +4 -0
  55. package/docs/EmailTemplateApi.md +82 -1
  56. package/docs/GetEmailDelivery.md +10 -0
  57. package/docs/GetPortal.md +2 -0
  58. package/docs/GetPortalInvitationSummary.md +51 -0
  59. package/docs/GetPortalUser.md +2 -0
  60. package/docs/GetPublicPortalBranding.md +2 -0
  61. package/docs/PortalApi.md +2 -2
  62. package/docs/PortalBrandColorsV1.md +89 -0
  63. package/docs/PortalBrandThemeV1.md +39 -0
  64. package/docs/PortalBrandTypographyV1.md +47 -0
  65. package/docs/PostPortal.md +2 -0
  66. package/docs/PutPortalBranding.md +2 -0
  67. package/package.json +1 -1
  68. package/src/apis/EmailTemplateApi.ts +83 -0
  69. package/src/apis/PortalApi.ts +2 -2
  70. package/src/models/GetEmailDelivery.ts +49 -0
  71. package/src/models/GetPortal.ts +21 -2
  72. package/src/models/GetPortalInvitationSummary.ts +160 -0
  73. package/src/models/GetPortalUser.ts +16 -0
  74. package/src/models/GetPublicPortalBranding.ts +21 -2
  75. package/src/models/PortalBrandColorsV1.ts +309 -0
  76. package/src/models/PortalBrandThemeV1.ts +109 -0
  77. package/src/models/PortalBrandTypographyV1.ts +135 -0
  78. package/src/models/PostPortal.ts +18 -0
  79. package/src/models/PutPortalBranding.ts +18 -0
  80. package/src/models/index.ts +4 -0
@@ -14,6 +14,7 @@ Name | Type
14
14
  `faviconUrl` | string
15
15
  `headerBackgroundColor` | string
16
16
  `headerTextColor` | string
17
+ `brandingTheme` | [PortalBrandThemeV1](PortalBrandThemeV1.md)
17
18
 
18
19
  ## Example
19
20
 
@@ -29,6 +30,7 @@ const example = {
29
30
  "faviconUrl": null,
30
31
  "headerBackgroundColor": null,
31
32
  "headerTextColor": null,
33
+ "brandingTheme": null,
32
34
  } satisfies GetPublicPortalBranding
33
35
 
34
36
  console.log(example)
package/docs/PortalApi.md CHANGED
@@ -20,7 +20,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
20
20
  | [**postPortal**](PortalApi.md#postportal) | **POST** /portals | Create a new portal as a child of the current selected portal |
21
21
  | [**postPortalFaviconUpload**](PortalApi.md#postportalfaviconupload) | **POST** /portals/{portalId}/branding/favicon | Upload a favicon image for portal branding |
22
22
  | [**postPortalLogoUpload**](PortalApi.md#postportallogoupload) | **POST** /portals/{portalId}/branding/logo | Upload a logo image for portal branding |
23
- | [**putPortalBranding**](PortalApi.md#putportalbranding) | **PUT** /portals/{portalId} | Update portal branding (name, background color, text color) |
23
+ | [**putPortalBranding**](PortalApi.md#putportalbranding) | **PUT** /portals/{portalId} | Update portal branding and complete application theme |
24
24
  | [**putPortalUserFieldConfig**](PortalApi.md#putportaluserfieldconfig) | **PUT** /portals/{portalId}/user-field-config | Replace portal user field configuration |
25
25
  | [**putPortalUserFieldValues**](PortalApi.md#putportaluserfieldvalues) | **PUT** /portals/{portalId}/users/{userId}/user-field-values | Bulk upsert a user\'s portal field values |
26
26
  | [**removePortalUser**](PortalApi.md#removeportaluser) | **DELETE** /portals/{portalId}/users/{userId} | Remove a user from a portal |
@@ -1096,7 +1096,7 @@ No authorization required
1096
1096
 
1097
1097
  > GetPortal putPortalBranding(portalId, putPortalBranding)
1098
1098
 
1099
- Update portal branding (name, background color, text color)
1099
+ Update portal branding and complete application theme
1100
1100
 
1101
1101
  ### Example
1102
1102
 
@@ -0,0 +1,89 @@
1
+
2
+ # PortalBrandColorsV1
3
+
4
+ Semantic colors for a portal-owned light application theme. Every value is an opaque hexadecimal color.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `headerBackground` | string
11
+ `headerForeground` | string
12
+ `navigationBackground` | string
13
+ `navigationForeground` | string
14
+ `primaryAction` | string
15
+ `onPrimaryAction` | string
16
+ `secondaryAction` | string
17
+ `onSecondaryAction` | string
18
+ `pageBackground` | string
19
+ `surfaceBackground` | string
20
+ `textPrimary` | string
21
+ `textSecondary` | string
22
+ `divider` | string
23
+ `link` | string
24
+ `linkHover` | string
25
+ `active` | string
26
+ `onActive` | string
27
+ `focusRing` | string
28
+ `progress` | string
29
+ `progressTrack` | string
30
+ `success` | string
31
+ `onSuccess` | string
32
+ `warning` | string
33
+ `onWarning` | string
34
+ `error` | string
35
+ `onError` | string
36
+ `info` | string
37
+ `onInfo` | string
38
+
39
+ ## Example
40
+
41
+ ```typescript
42
+ import type { PortalBrandColorsV1 } from '@easyedu/js-lsm-api'
43
+
44
+ // TODO: Update the object below with actual values
45
+ const example = {
46
+ "headerBackground": null,
47
+ "headerForeground": null,
48
+ "navigationBackground": null,
49
+ "navigationForeground": null,
50
+ "primaryAction": null,
51
+ "onPrimaryAction": null,
52
+ "secondaryAction": null,
53
+ "onSecondaryAction": null,
54
+ "pageBackground": null,
55
+ "surfaceBackground": null,
56
+ "textPrimary": null,
57
+ "textSecondary": null,
58
+ "divider": null,
59
+ "link": null,
60
+ "linkHover": null,
61
+ "active": null,
62
+ "onActive": null,
63
+ "focusRing": null,
64
+ "progress": null,
65
+ "progressTrack": null,
66
+ "success": null,
67
+ "onSuccess": null,
68
+ "warning": null,
69
+ "onWarning": null,
70
+ "error": null,
71
+ "onError": null,
72
+ "info": null,
73
+ "onInfo": null,
74
+ } satisfies PortalBrandColorsV1
75
+
76
+ console.log(example)
77
+
78
+ // Convert the instance to a JSON string
79
+ const exampleJSON: string = JSON.stringify(example)
80
+ console.log(exampleJSON)
81
+
82
+ // Parse the JSON string back to an object
83
+ const exampleParsed = JSON.parse(exampleJSON) as PortalBrandColorsV1
84
+ console.log(exampleParsed)
85
+ ```
86
+
87
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
88
+
89
+
@@ -0,0 +1,39 @@
1
+
2
+ # PortalBrandThemeV1
3
+
4
+ Complete version 1 portal application theme. Updates replace this object as a whole.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `schemaVersion` | string
11
+ `typography` | [PortalBrandTypographyV1](PortalBrandTypographyV1.md)
12
+ `colors` | [PortalBrandColorsV1](PortalBrandColorsV1.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PortalBrandThemeV1 } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "schemaVersion": null,
22
+ "typography": null,
23
+ "colors": null,
24
+ } satisfies PortalBrandThemeV1
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as PortalBrandThemeV1
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -0,0 +1,47 @@
1
+
2
+ # PortalBrandTypographyV1
3
+
4
+ Typography settings for a portal-owned light application theme.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `fontFamily` | string
11
+ `baseFontSizePx` | number
12
+ `fontWeightRegular` | number
13
+ `fontWeightMedium` | number
14
+ `fontWeightBold` | number
15
+ `lineHeight` | number
16
+ `letterSpacingEm` | number
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { PortalBrandTypographyV1 } from '@easyedu/js-lsm-api'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "fontFamily": null,
26
+ "baseFontSizePx": null,
27
+ "fontWeightRegular": null,
28
+ "fontWeightMedium": null,
29
+ "fontWeightBold": null,
30
+ "lineHeight": null,
31
+ "letterSpacingEm": null,
32
+ } satisfies PortalBrandTypographyV1
33
+
34
+ console.log(example)
35
+
36
+ // Convert the instance to a JSON string
37
+ const exampleJSON: string = JSON.stringify(example)
38
+ console.log(exampleJSON)
39
+
40
+ // Parse the JSON string back to an object
41
+ const exampleParsed = JSON.parse(exampleJSON) as PortalBrandTypographyV1
42
+ console.log(exampleParsed)
43
+ ```
44
+
45
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
46
+
47
+
@@ -9,6 +9,7 @@ Name | Type
9
9
  `name` | string
10
10
  `headerBackgroundColor` | string
11
11
  `headerTextColor` | string
12
+ `brandingTheme` | [PortalBrandThemeV1](PortalBrandThemeV1.md)
12
13
  `slug` | string
13
14
  `clientDomain` | string
14
15
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "name": null,
23
24
  "headerBackgroundColor": null,
24
25
  "headerTextColor": null,
26
+ "brandingTheme": null,
25
27
  "slug": null,
26
28
  "clientDomain": null,
27
29
  } satisfies PostPortal
@@ -9,6 +9,7 @@ Name | Type
9
9
  `name` | string
10
10
  `headerBackgroundColor` | string
11
11
  `headerTextColor` | string
12
+ `brandingTheme` | [PortalBrandThemeV1](PortalBrandThemeV1.md)
12
13
  `slug` | string
13
14
  `clientDomain` | string
14
15
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "name": null,
23
24
  "headerBackgroundColor": null,
24
25
  "headerTextColor": null,
26
+ "brandingTheme": null,
25
27
  "slug": null,
26
28
  "clientDomain": null,
27
29
  } satisfies PutPortalBranding
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.104.0",
3
+ "version": "1.106.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -85,6 +85,10 @@ export interface DeleteSystemEmailTemplateDraftRequest {
85
85
  export interface GetEmailDeliveryListRequest {
86
86
  page?: number;
87
87
  pageSize?: number;
88
+ templateKey?: string;
89
+ status?: GetEmailDeliveryListStatusEnum;
90
+ recipient?: string;
91
+ isTest?: boolean;
88
92
  }
89
93
 
90
94
  export interface GetEmailTemplateRequest {
@@ -204,6 +208,10 @@ export interface PutSystemEmailTemplateDraftRequest {
204
208
  putEmailTemplateDraft: PutEmailTemplateDraft;
205
209
  }
206
210
 
211
+ export interface ResendEmailDeliveryRequest {
212
+ deliveryId: string;
213
+ }
214
+
207
215
  /**
208
216
  *
209
217
  */
@@ -311,6 +319,22 @@ export class EmailTemplateApi extends runtime.BaseAPI {
311
319
  queryParameters['pageSize'] = requestParameters['pageSize'];
312
320
  }
313
321
 
322
+ if (requestParameters['templateKey'] != null) {
323
+ queryParameters['templateKey'] = requestParameters['templateKey'];
324
+ }
325
+
326
+ if (requestParameters['status'] != null) {
327
+ queryParameters['status'] = requestParameters['status'];
328
+ }
329
+
330
+ if (requestParameters['recipient'] != null) {
331
+ queryParameters['recipient'] = requestParameters['recipient'];
332
+ }
333
+
334
+ if (requestParameters['isTest'] != null) {
335
+ queryParameters['isTest'] = requestParameters['isTest'];
336
+ }
337
+
314
338
  const headerParameters: runtime.HTTPHeaders = {};
315
339
 
316
340
 
@@ -1699,4 +1723,63 @@ export class EmailTemplateApi extends runtime.BaseAPI {
1699
1723
  return await response.value();
1700
1724
  }
1701
1725
 
1726
+ /**
1727
+ * Creates request options for resendEmailDelivery without sending the request
1728
+ */
1729
+ async resendEmailDeliveryRequestOpts(requestParameters: ResendEmailDeliveryRequest): Promise<runtime.RequestOpts> {
1730
+ if (requestParameters['deliveryId'] == null) {
1731
+ throw new runtime.RequiredError(
1732
+ 'deliveryId',
1733
+ 'Required parameter "deliveryId" was null or undefined when calling resendEmailDelivery().'
1734
+ );
1735
+ }
1736
+
1737
+ const queryParameters: any = {};
1738
+
1739
+ const headerParameters: runtime.HTTPHeaders = {};
1740
+
1741
+
1742
+ let urlPath = `/email-deliveries/{deliveryId}/resend`;
1743
+ urlPath = urlPath.replace('{deliveryId}', encodeURIComponent(String(requestParameters['deliveryId'])));
1744
+
1745
+ return {
1746
+ path: urlPath,
1747
+ method: 'POST',
1748
+ headers: headerParameters,
1749
+ query: queryParameters,
1750
+ };
1751
+ }
1752
+
1753
+ /**
1754
+ * Regenerate and queue a portal email from its current business source
1755
+ */
1756
+ async resendEmailDeliveryRaw(requestParameters: ResendEmailDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetEmailDelivery>> {
1757
+ const requestOptions = await this.resendEmailDeliveryRequestOpts(requestParameters);
1758
+ const response = await this.request(requestOptions, initOverrides);
1759
+
1760
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetEmailDeliveryFromJSON(jsonValue));
1761
+ }
1762
+
1763
+ /**
1764
+ * Regenerate and queue a portal email from its current business source
1765
+ */
1766
+ async resendEmailDelivery(requestParameters: ResendEmailDeliveryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailDelivery> {
1767
+ const response = await this.resendEmailDeliveryRaw(requestParameters, initOverrides);
1768
+ return await response.value();
1769
+ }
1770
+
1702
1771
  }
1772
+
1773
+ /**
1774
+ * @export
1775
+ */
1776
+ export const GetEmailDeliveryListStatusEnum = {
1777
+ Queued: 'queued',
1778
+ Processing: 'processing',
1779
+ Accepted: 'accepted',
1780
+ Delivered: 'delivered',
1781
+ Deferred: 'deferred',
1782
+ Failed: 'failed',
1783
+ Complained: 'complained'
1784
+ } as const;
1785
+ export type GetEmailDeliveryListStatusEnum = typeof GetEmailDeliveryListStatusEnum[keyof typeof GetEmailDeliveryListStatusEnum];
@@ -991,7 +991,7 @@ export class PortalApi extends runtime.BaseAPI {
991
991
  }
992
992
 
993
993
  /**
994
- * Update portal branding (name, background color, text color)
994
+ * Update portal branding and complete application theme
995
995
  */
996
996
  async putPortalBrandingRaw(requestParameters: PutPortalBrandingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>> {
997
997
  const requestOptions = await this.putPortalBrandingRequestOpts(requestParameters);
@@ -1001,7 +1001,7 @@ export class PortalApi extends runtime.BaseAPI {
1001
1001
  }
1002
1002
 
1003
1003
  /**
1004
- * Update portal branding (name, background color, text color)
1004
+ * Update portal branding and complete application theme
1005
1005
  */
1006
1006
  async putPortalBranding(requestParameters: PutPortalBrandingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal> {
1007
1007
  const response = await this.putPortalBrandingRaw(requestParameters, initOverrides);
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { GetPortalInvitationSummary } from './GetPortalInvitationSummary';
17
+ import {
18
+ GetPortalInvitationSummaryFromJSON,
19
+ GetPortalInvitationSummaryFromJSONTyped,
20
+ GetPortalInvitationSummaryToJSON,
21
+ GetPortalInvitationSummaryToJSONTyped,
22
+ } from './GetPortalInvitationSummary';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -43,6 +51,12 @@ export interface GetEmailDelivery {
43
51
  * @memberof GetEmailDelivery
44
52
  */
45
53
  recipient: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof GetEmailDelivery
58
+ */
59
+ subject?: string | null;
46
60
  /**
47
61
  *
48
62
  * @type {boolean}
@@ -103,6 +117,30 @@ export interface GetEmailDelivery {
103
117
  * @memberof GetEmailDelivery
104
118
  */
105
119
  failedAt?: number | null;
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof GetEmailDelivery
124
+ */
125
+ resendOfDeliveryId?: string | null;
126
+ /**
127
+ *
128
+ * @type {boolean}
129
+ * @memberof GetEmailDelivery
130
+ */
131
+ canResend: boolean;
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof GetEmailDelivery
136
+ */
137
+ resendBlockedReason?: string | null;
138
+ /**
139
+ *
140
+ * @type {GetPortalInvitationSummary}
141
+ * @memberof GetEmailDelivery
142
+ */
143
+ invitation?: GetPortalInvitationSummary | null;
106
144
  }
107
145
 
108
146
 
@@ -132,6 +170,7 @@ export function instanceOfGetEmailDelivery(value: object): value is GetEmailDeli
132
170
  if (!('status' in value) || value['status'] === undefined) return false;
133
171
  if (!('attempts' in value) || value['attempts'] === undefined) return false;
134
172
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
173
+ if (!('canResend' in value) || value['canResend'] === undefined) return false;
135
174
  return true;
136
175
  }
137
176
 
@@ -149,6 +188,7 @@ export function GetEmailDeliveryFromJSONTyped(json: any, ignoreDiscriminator: bo
149
188
  'templateKey': json['template_key'],
150
189
  'templateVersionId': json['template_version_id'] == null ? undefined : json['template_version_id'],
151
190
  'recipient': json['recipient'],
191
+ 'subject': json['subject'] == null ? undefined : json['subject'],
152
192
  'isTest': json['is_test'],
153
193
  'status': json['status'],
154
194
  'attempts': json['attempts'],
@@ -159,6 +199,10 @@ export function GetEmailDeliveryFromJSONTyped(json: any, ignoreDiscriminator: bo
159
199
  'acceptedAt': json['accepted_at'] == null ? undefined : json['accepted_at'],
160
200
  'deliveredAt': json['delivered_at'] == null ? undefined : json['delivered_at'],
161
201
  'failedAt': json['failed_at'] == null ? undefined : json['failed_at'],
202
+ 'resendOfDeliveryId': json['resend_of_delivery_id'] == null ? undefined : json['resend_of_delivery_id'],
203
+ 'canResend': json['can_resend'],
204
+ 'resendBlockedReason': json['resend_blocked_reason'] == null ? undefined : json['resend_blocked_reason'],
205
+ 'invitation': json['invitation'] == null ? undefined : GetPortalInvitationSummaryFromJSON(json['invitation']),
162
206
  };
163
207
  }
164
208
 
@@ -177,6 +221,7 @@ export function GetEmailDeliveryToJSONTyped(value?: GetEmailDelivery | null, ign
177
221
  'template_key': value['templateKey'],
178
222
  'template_version_id': value['templateVersionId'],
179
223
  'recipient': value['recipient'],
224
+ 'subject': value['subject'],
180
225
  'is_test': value['isTest'],
181
226
  'status': value['status'],
182
227
  'attempts': value['attempts'],
@@ -187,6 +232,10 @@ export function GetEmailDeliveryToJSONTyped(value?: GetEmailDelivery | null, ign
187
232
  'accepted_at': value['acceptedAt'],
188
233
  'delivered_at': value['deliveredAt'],
189
234
  'failed_at': value['failedAt'],
235
+ 'resend_of_delivery_id': value['resendOfDeliveryId'],
236
+ 'can_resend': value['canResend'],
237
+ 'resend_blocked_reason': value['resendBlockedReason'],
238
+ 'invitation': GetPortalInvitationSummaryToJSON(value['invitation']),
190
239
  };
191
240
  }
192
241
 
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PortalBrandThemeV1 } from './PortalBrandThemeV1';
17
+ import {
18
+ PortalBrandThemeV1FromJSON,
19
+ PortalBrandThemeV1FromJSONTyped,
20
+ PortalBrandThemeV1ToJSON,
21
+ PortalBrandThemeV1ToJSONTyped,
22
+ } from './PortalBrandThemeV1';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -62,17 +70,25 @@ export interface GetPortal {
62
70
  */
63
71
  faviconUrl?: string | null;
64
72
  /**
65
- *
73
+ * Deprecated compatibility alias for branding_theme.colors.header_background.
66
74
  * @type {string}
67
75
  * @memberof GetPortal
76
+ * @deprecated
68
77
  */
69
78
  headerBackgroundColor: string;
70
79
  /**
71
- *
80
+ * Deprecated compatibility alias for branding_theme.colors.header_foreground.
72
81
  * @type {string}
73
82
  * @memberof GetPortal
83
+ * @deprecated
74
84
  */
75
85
  headerTextColor: string;
86
+ /**
87
+ *
88
+ * @type {PortalBrandThemeV1}
89
+ * @memberof GetPortal
90
+ */
91
+ brandingTheme: PortalBrandThemeV1;
76
92
  /**
77
93
  * The user's highest-privilege role base type for this portal
78
94
  * @type {GetPortalBaseTypeEnum}
@@ -105,6 +121,7 @@ export function instanceOfGetPortal(value: object): value is GetPortal {
105
121
  if (!('name' in value) || value['name'] === undefined) return false;
106
122
  if (!('headerBackgroundColor' in value) || value['headerBackgroundColor'] === undefined) return false;
107
123
  if (!('headerTextColor' in value) || value['headerTextColor'] === undefined) return false;
124
+ if (!('brandingTheme' in value) || value['brandingTheme'] === undefined) return false;
108
125
  return true;
109
126
  }
110
127
 
@@ -127,6 +144,7 @@ export function GetPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean):
127
144
  'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
128
145
  'headerBackgroundColor': json['header_background_color'],
129
146
  'headerTextColor': json['header_text_color'],
147
+ 'brandingTheme': PortalBrandThemeV1FromJSON(json['branding_theme']),
130
148
  'baseType': json['base_type'] == null ? undefined : json['base_type'],
131
149
  };
132
150
  }
@@ -151,6 +169,7 @@ export function GetPortalToJSONTyped(value?: GetPortal | null, ignoreDiscriminat
151
169
  'favicon_url': value['faviconUrl'],
152
170
  'header_background_color': value['headerBackgroundColor'],
153
171
  'header_text_color': value['headerTextColor'],
172
+ 'branding_theme': PortalBrandThemeV1ToJSON(value['brandingTheme']),
154
173
  'base_type': value['baseType'],
155
174
  };
156
175
  }