@emilgroup/notification-sdk 0.8.1-beta.28 → 0.8.1-beta.29

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 (33) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/email-messages-api.ts +120 -0
  4. package/api/notifications-api.ts +107 -0
  5. package/dist/api/email-messages-api.d.ts +66 -0
  6. package/dist/api/email-messages-api.js +99 -0
  7. package/dist/api/notifications-api.d.ts +57 -0
  8. package/dist/api/notifications-api.js +93 -0
  9. package/dist/models/assign-email-message-entity-body-dto.d.ts +43 -0
  10. package/dist/models/assign-email-message-entity-body-dto.js +22 -0
  11. package/dist/models/assign-email-message-entity-response-class.d.ts +25 -0
  12. package/dist/models/assign-email-message-entity-response-class.js +15 -0
  13. package/dist/models/email-message-class.d.ts +2 -1
  14. package/dist/models/email-message-class.js +2 -1
  15. package/dist/models/grpc-send-email-request-dto.d.ts +137 -0
  16. package/dist/models/grpc-send-email-request-dto.js +22 -0
  17. package/dist/models/index.d.ts +6 -0
  18. package/dist/models/index.js +6 -0
  19. package/dist/models/inline-attachment-dto.d.ts +36 -0
  20. package/dist/models/inline-attachment-dto.js +15 -0
  21. package/dist/models/send-email-request-dto.d.ts +131 -0
  22. package/dist/models/send-email-request-dto.js +22 -0
  23. package/dist/models/send-email-response-class.d.ts +24 -0
  24. package/dist/models/send-email-response-class.js +15 -0
  25. package/models/assign-email-message-entity-body-dto.ts +52 -0
  26. package/models/assign-email-message-entity-response-class.ts +31 -0
  27. package/models/email-message-class.ts +3 -2
  28. package/models/grpc-send-email-request-dto.ts +144 -0
  29. package/models/index.ts +6 -0
  30. package/models/inline-attachment-dto.ts +42 -0
  31. package/models/send-email-request-dto.ts +138 -0
  32. package/models/send-email-response-class.ts +30 -0
  33. package/package.json +1 -1
@@ -12,6 +12,8 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { SendEmailRequestDto } from '../models';
16
+ import { SendEmailResponseClass } from '../models';
15
17
  import { SendNotificationRequestDto } from '../models';
16
18
  import { SendNotificationResponseClass } from '../models';
17
19
  /**
@@ -19,6 +21,15 @@ import { SendNotificationResponseClass } from '../models';
19
21
  * @export
20
22
  */
21
23
  export declare const NotificationsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
26
+ * @summary Send an email without a template
27
+ * @param {SendEmailRequestDto} sendEmailRequestDto
28
+ * @param {string} [authorization] Bearer Token
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ sendEmail: (sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
22
33
  /**
23
34
  * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
24
35
  * @summary Send a notification
@@ -34,6 +45,15 @@ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configu
34
45
  * @export
35
46
  */
36
47
  export declare const NotificationsApiFp: (configuration?: Configuration) => {
48
+ /**
49
+ * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
50
+ * @summary Send an email without a template
51
+ * @param {SendEmailRequestDto} sendEmailRequestDto
52
+ * @param {string} [authorization] Bearer Token
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendEmailResponseClass>>;
37
57
  /**
38
58
  * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
39
59
  * @summary Send a notification
@@ -49,6 +69,15 @@ export declare const NotificationsApiFp: (configuration?: Configuration) => {
49
69
  * @export
50
70
  */
51
71
  export declare const NotificationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
72
+ /**
73
+ * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
74
+ * @summary Send an email without a template
75
+ * @param {SendEmailRequestDto} sendEmailRequestDto
76
+ * @param {string} [authorization] Bearer Token
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ sendEmail(sendEmailRequestDto: SendEmailRequestDto, authorization?: string, options?: any): AxiosPromise<SendEmailResponseClass>;
52
81
  /**
53
82
  * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
54
83
  * @summary Send a notification
@@ -59,6 +88,25 @@ export declare const NotificationsApiFactory: (configuration?: Configuration, ba
59
88
  */
60
89
  sendNotification(sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: any): AxiosPromise<SendNotificationResponseClass>;
61
90
  };
91
+ /**
92
+ * Request parameters for sendEmail operation in NotificationsApi.
93
+ * @export
94
+ * @interface NotificationsApiSendEmailRequest
95
+ */
96
+ export interface NotificationsApiSendEmailRequest {
97
+ /**
98
+ *
99
+ * @type {SendEmailRequestDto}
100
+ * @memberof NotificationsApiSendEmail
101
+ */
102
+ readonly sendEmailRequestDto: SendEmailRequestDto;
103
+ /**
104
+ * Bearer Token
105
+ * @type {string}
106
+ * @memberof NotificationsApiSendEmail
107
+ */
108
+ readonly authorization?: string;
109
+ }
62
110
  /**
63
111
  * Request parameters for sendNotification operation in NotificationsApi.
64
112
  * @export
@@ -85,6 +133,15 @@ export interface NotificationsApiSendNotificationRequest {
85
133
  * @extends {BaseAPI}
86
134
  */
87
135
  export declare class NotificationsApi extends BaseAPI {
136
+ /**
137
+ * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
138
+ * @summary Send an email without a template
139
+ * @param {NotificationsApiSendEmailRequest} requestParameters Request parameters.
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ * @memberof NotificationsApi
143
+ */
144
+ sendEmail(requestParameters: NotificationsApiSendEmailRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SendEmailResponseClass, any, {}>>;
88
145
  /**
89
146
  * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
90
147
  * @summary Send a notification
@@ -92,6 +92,55 @@ var base_1 = require("../base");
92
92
  var NotificationsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
+ /**
96
+ * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
97
+ * @summary Send an email without a template
98
+ * @param {SendEmailRequestDto} sendEmailRequestDto
99
+ * @param {string} [authorization] Bearer Token
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ sendEmail: function (sendEmailRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'sendEmailRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('sendEmail', 'sendEmailRequestDto', sendEmailRequestDto);
112
+ localVarPath = "/notificationservice/v1/notifications/emails";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sendEmailRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
95
144
  /**
96
145
  * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
97
146
  * @summary Send a notification
@@ -151,6 +200,27 @@ exports.NotificationsApiAxiosParamCreator = NotificationsApiAxiosParamCreator;
151
200
  var NotificationsApiFp = function (configuration) {
152
201
  var localVarAxiosParamCreator = (0, exports.NotificationsApiAxiosParamCreator)(configuration);
153
202
  return {
203
+ /**
204
+ * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
205
+ * @summary Send an email without a template
206
+ * @param {SendEmailRequestDto} sendEmailRequestDto
207
+ * @param {string} [authorization] Bearer Token
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ sendEmail: function (sendEmailRequestDto, authorization, options) {
212
+ return __awaiter(this, void 0, void 0, function () {
213
+ var localVarAxiosArgs;
214
+ return __generator(this, function (_a) {
215
+ switch (_a.label) {
216
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendEmail(sendEmailRequestDto, authorization, options)];
217
+ case 1:
218
+ localVarAxiosArgs = _a.sent();
219
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
220
+ }
221
+ });
222
+ });
223
+ },
154
224
  /**
155
225
  * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
156
226
  * @summary Send a notification
@@ -182,6 +252,17 @@ exports.NotificationsApiFp = NotificationsApiFp;
182
252
  var NotificationsApiFactory = function (configuration, basePath, axios) {
183
253
  var localVarFp = (0, exports.NotificationsApiFp)(configuration);
184
254
  return {
255
+ /**
256
+ * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
257
+ * @summary Send an email without a template
258
+ * @param {SendEmailRequestDto} sendEmailRequestDto
259
+ * @param {string} [authorization] Bearer Token
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ sendEmail: function (sendEmailRequestDto, authorization, options) {
264
+ return localVarFp.sendEmail(sendEmailRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
265
+ },
185
266
  /**
186
267
  * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
187
268
  * @summary Send a notification
@@ -207,6 +288,18 @@ var NotificationsApi = /** @class */ (function (_super) {
207
288
  function NotificationsApi() {
208
289
  return _super !== null && _super.apply(this, arguments) || this;
209
290
  }
291
+ /**
292
+ * Sends an email with a caller-supplied HTML and/or text body, delivered as given. Attachments can reference documents already in S3 or be sent inline as base64. **Required Permissions** none
293
+ * @summary Send an email without a template
294
+ * @param {NotificationsApiSendEmailRequest} requestParameters Request parameters.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ * @memberof NotificationsApi
298
+ */
299
+ NotificationsApi.prototype.sendEmail = function (requestParameters, options) {
300
+ var _this = this;
301
+ return (0, exports.NotificationsApiFp)(this.configuration).sendEmail(requestParameters.sendEmailRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
302
+ };
210
303
  /**
211
304
  * Sends an email using the notification template identified by `templateSlug`. Provide `entityType` and `entityCode` to track replies in an email thread. **Required Permissions** none
212
305
  * @summary Send a notification
@@ -0,0 +1,43 @@
1
+ /**
2
+ * EMIL NotificationService
3
+ * The EMIL NotificationService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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 AssignEmailMessageEntityBodyDto
16
+ */
17
+ export interface AssignEmailMessageEntityBodyDto {
18
+ /**
19
+ * Type of the entity the email message belongs to
20
+ * @type {string}
21
+ * @memberof AssignEmailMessageEntityBodyDto
22
+ */
23
+ 'entityType': AssignEmailMessageEntityBodyDtoEntityTypeEnum;
24
+ /**
25
+ * Code of the entity. Required unless entityNumber is set; takes precedence over entityNumber.
26
+ * @type {string}
27
+ * @memberof AssignEmailMessageEntityBodyDto
28
+ */
29
+ 'entityCode'?: string;
30
+ /**
31
+ * Number of the entity, e.g. the policy number. Used only when entityCode is not set.
32
+ * @type {string}
33
+ * @memberof AssignEmailMessageEntityBodyDto
34
+ */
35
+ 'entityNumber'?: string;
36
+ }
37
+ export declare const AssignEmailMessageEntityBodyDtoEntityTypeEnum: {
38
+ readonly Claim: "Claim";
39
+ readonly Policy: "Policy";
40
+ readonly Lead: "Lead";
41
+ readonly Partner: "Partner";
42
+ };
43
+ export type AssignEmailMessageEntityBodyDtoEntityTypeEnum = typeof AssignEmailMessageEntityBodyDtoEntityTypeEnum[keyof typeof AssignEmailMessageEntityBodyDtoEntityTypeEnum];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL NotificationService
6
+ * The EMIL NotificationService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
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.AssignEmailMessageEntityBodyDtoEntityTypeEnum = void 0;
17
+ exports.AssignEmailMessageEntityBodyDtoEntityTypeEnum = {
18
+ Claim: 'Claim',
19
+ Policy: 'Policy',
20
+ Lead: 'Lead',
21
+ Partner: 'Partner'
22
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL NotificationService
3
+ * The EMIL NotificationService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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 { EmailMessageClass } from './email-message-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AssignEmailMessageEntityResponseClass
17
+ */
18
+ export interface AssignEmailMessageEntityResponseClass {
19
+ /**
20
+ * The email message response.
21
+ * @type {EmailMessageClass}
22
+ * @memberof AssignEmailMessageEntityResponseClass
23
+ */
24
+ 'message': EmailMessageClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL NotificationService
6
+ * The EMIL NotificationService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
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 });
@@ -101,7 +101,7 @@ export interface EmailMessageClass {
101
101
  */
102
102
  'bodyHtml'?: string;
103
103
  /**
104
- * Delivery status of the email
104
+ * Delivery status of the email. Outbound emails move through pending → sent → delivered (or bounced/failed); inbound emails are always received.
105
105
  * @type {string}
106
106
  * @memberof EmailMessageClass
107
107
  */
@@ -200,5 +200,6 @@ export declare const EmailMessageClassDeliveryStatusEnum: {
200
200
  readonly Delivered: "delivered";
201
201
  readonly Bounced: "bounced";
202
202
  readonly Failed: "failed";
203
+ readonly Received: "received";
203
204
  };
204
205
  export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
@@ -36,5 +36,6 @@ exports.EmailMessageClassDeliveryStatusEnum = {
36
36
  Sent: 'sent',
37
37
  Delivered: 'delivered',
38
38
  Bounced: 'bounced',
39
- Failed: 'failed'
39
+ Failed: 'failed',
40
+ Received: 'received'
40
41
  };
@@ -0,0 +1,137 @@
1
+ /**
2
+ * EMIL NotificationService
3
+ * The EMIL NotificationService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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 { InlineAttachmentDto } from './inline-attachment-dto';
13
+ import { S3DocumentDto } from './s3-document-dto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GrpcSendEmailRequestDto
18
+ */
19
+ export interface GrpcSendEmailRequestDto {
20
+ /**
21
+ * Subject of the email
22
+ * @type {string}
23
+ * @memberof GrpcSendEmailRequestDto
24
+ */
25
+ 'emailSubject': string;
26
+ /**
27
+ * HTML body of the email, sent as given. Required unless textBody is set.
28
+ * @type {string}
29
+ * @memberof GrpcSendEmailRequestDto
30
+ */
31
+ 'htmlBody'?: string;
32
+ /**
33
+ * Plain-text body of the email. Sent as the text alternative when htmlBody is also set. Required unless htmlBody is set.
34
+ * @type {string}
35
+ * @memberof GrpcSendEmailRequestDto
36
+ */
37
+ 'textBody'?: string;
38
+ /**
39
+ * Email address of the sender. Defaults to the sender configured in the tenant settings.
40
+ * @type {string}
41
+ * @memberof GrpcSendEmailRequestDto
42
+ */
43
+ 'emailSender'?: string;
44
+ /**
45
+ * Email addresses of the receivers
46
+ * @type {Array<string>}
47
+ * @memberof GrpcSendEmailRequestDto
48
+ */
49
+ 'emailTo': Array<string>;
50
+ /**
51
+ * Email addresses that receive a copy of the email
52
+ * @type {Array<string>}
53
+ * @memberof GrpcSendEmailRequestDto
54
+ */
55
+ 'emailCc'?: Array<string>;
56
+ /**
57
+ * Email addresses that receive a copy of the email without the other recipients knowing
58
+ * @type {Array<string>}
59
+ * @memberof GrpcSendEmailRequestDto
60
+ */
61
+ 'emailBcc'?: Array<string>;
62
+ /**
63
+ * Attachments that have already been uploaded to S3
64
+ * @type {Array<S3DocumentDto>}
65
+ * @memberof GrpcSendEmailRequestDto
66
+ */
67
+ 'attachments'?: Array<S3DocumentDto>;
68
+ /**
69
+ * Attachments sent with the request as base64 content. They are stored in S3 before the email is sent. Their decoded size may not exceed 10 MB in total.
70
+ * @type {Array<InlineAttachmentDto>}
71
+ * @memberof GrpcSendEmailRequestDto
72
+ */
73
+ 'inlineAttachments'?: Array<InlineAttachmentDto>;
74
+ /**
75
+ * Product slug used to look up a product-specific sender in the tenant settings, stored under productSlug_sender-email
76
+ * @type {string}
77
+ * @memberof GrpcSendEmailRequestDto
78
+ */
79
+ 'productSlug'?: string;
80
+ /**
81
+ * Entity type for email reply tracking
82
+ * @type {string}
83
+ * @memberof GrpcSendEmailRequestDto
84
+ */
85
+ 'entityType'?: GrpcSendEmailRequestDtoEntityTypeEnum;
86
+ /**
87
+ * Entity code for email reply tracking
88
+ * @type {string}
89
+ * @memberof GrpcSendEmailRequestDto
90
+ */
91
+ 'entityCode'?: string;
92
+ /**
93
+ * Reply-To address. Auto-generated when entityType and entityCode are provided and reply tracking is enabled.
94
+ * @type {string}
95
+ * @memberof GrpcSendEmailRequestDto
96
+ */
97
+ 'replyTo'?: string;
98
+ /**
99
+ * Custom Message-ID header. Auto-generated if not provided.
100
+ * @type {string}
101
+ * @memberof GrpcSendEmailRequestDto
102
+ */
103
+ 'customMessageId'?: string;
104
+ /**
105
+ * Message-ID of the email this is replying to (for threading)
106
+ * @type {string}
107
+ * @memberof GrpcSendEmailRequestDto
108
+ */
109
+ 'inReplyTo'?: string;
110
+ /**
111
+ * Message-IDs for email thread chain
112
+ * @type {Array<string>}
113
+ * @memberof GrpcSendEmailRequestDto
114
+ */
115
+ 'references'?: Array<string>;
116
+ /**
117
+ * Custom headers to set on the outgoing email
118
+ * @type {{ [key: string]: string; }}
119
+ * @memberof GrpcSendEmailRequestDto
120
+ */
121
+ 'customHeaders'?: {
122
+ [key: string]: string;
123
+ };
124
+ /**
125
+ *
126
+ * @type {object}
127
+ * @memberof GrpcSendEmailRequestDto
128
+ */
129
+ 'entityRef'?: object;
130
+ }
131
+ export declare const GrpcSendEmailRequestDtoEntityTypeEnum: {
132
+ readonly Claim: "Claim";
133
+ readonly Policy: "Policy";
134
+ readonly Lead: "Lead";
135
+ readonly Partner: "Partner";
136
+ };
137
+ export type GrpcSendEmailRequestDtoEntityTypeEnum = typeof GrpcSendEmailRequestDtoEntityTypeEnum[keyof typeof GrpcSendEmailRequestDtoEntityTypeEnum];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL NotificationService
6
+ * The EMIL NotificationService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
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.GrpcSendEmailRequestDtoEntityTypeEnum = void 0;
17
+ exports.GrpcSendEmailRequestDtoEntityTypeEnum = {
18
+ Claim: 'Claim',
19
+ Policy: 'Policy',
20
+ Lead: 'Lead',
21
+ Partner: 'Partner'
22
+ };
@@ -1,3 +1,5 @@
1
+ export * from './assign-email-message-entity-body-dto';
2
+ export * from './assign-email-message-entity-response-class';
1
3
  export * from './complete-email-verification-dto';
2
4
  export * from './complete-email-verification-response-class';
3
5
  export * from './create-layout-request-dto';
@@ -16,9 +18,11 @@ export * from './get-layout-request-dto';
16
18
  export * from './get-layout-response-class';
17
19
  export * from './get-notification-template-request-dto';
18
20
  export * from './get-notification-template-response-class';
21
+ export * from './grpc-send-email-request-dto';
19
22
  export * from './html-template-class';
20
23
  export * from './initiate-email-verification-dto';
21
24
  export * from './initiate-email-verification-response-class';
25
+ export * from './inline-attachment-dto';
22
26
  export * from './inline-response200';
23
27
  export * from './inline-response503';
24
28
  export * from './layout-class';
@@ -29,6 +33,8 @@ export * from './list-layouts-response-class';
29
33
  export * from './list-notification-templates-response-class';
30
34
  export * from './notification-template-class';
31
35
  export * from './s3-document-dto';
36
+ export * from './send-email-request-dto';
37
+ export * from './send-email-response-class';
32
38
  export * from './send-notification-request-dto';
33
39
  export * from './send-notification-response-class';
34
40
  export * from './update-html-template-request-dto';
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./assign-email-message-entity-body-dto"), exports);
18
+ __exportStar(require("./assign-email-message-entity-response-class"), exports);
17
19
  __exportStar(require("./complete-email-verification-dto"), exports);
18
20
  __exportStar(require("./complete-email-verification-response-class"), exports);
19
21
  __exportStar(require("./create-layout-request-dto"), exports);
@@ -32,9 +34,11 @@ __exportStar(require("./get-layout-request-dto"), exports);
32
34
  __exportStar(require("./get-layout-response-class"), exports);
33
35
  __exportStar(require("./get-notification-template-request-dto"), exports);
34
36
  __exportStar(require("./get-notification-template-response-class"), exports);
37
+ __exportStar(require("./grpc-send-email-request-dto"), exports);
35
38
  __exportStar(require("./html-template-class"), exports);
36
39
  __exportStar(require("./initiate-email-verification-dto"), exports);
37
40
  __exportStar(require("./initiate-email-verification-response-class"), exports);
41
+ __exportStar(require("./inline-attachment-dto"), exports);
38
42
  __exportStar(require("./inline-response200"), exports);
39
43
  __exportStar(require("./inline-response503"), exports);
40
44
  __exportStar(require("./layout-class"), exports);
@@ -45,6 +49,8 @@ __exportStar(require("./list-layouts-response-class"), exports);
45
49
  __exportStar(require("./list-notification-templates-response-class"), exports);
46
50
  __exportStar(require("./notification-template-class"), exports);
47
51
  __exportStar(require("./s3-document-dto"), exports);
52
+ __exportStar(require("./send-email-request-dto"), exports);
53
+ __exportStar(require("./send-email-response-class"), exports);
48
54
  __exportStar(require("./send-notification-request-dto"), exports);
49
55
  __exportStar(require("./send-notification-response-class"), exports);
50
56
  __exportStar(require("./update-html-template-request-dto"), exports);
@@ -0,0 +1,36 @@
1
+ /**
2
+ * EMIL NotificationService
3
+ * The EMIL NotificationService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
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 InlineAttachmentDto
16
+ */
17
+ export interface InlineAttachmentDto {
18
+ /**
19
+ * File name shown to the recipient
20
+ * @type {string}
21
+ * @memberof InlineAttachmentDto
22
+ */
23
+ 'filename': string;
24
+ /**
25
+ * Base64-encoded file content
26
+ * @type {string}
27
+ * @memberof InlineAttachmentDto
28
+ */
29
+ 'contentBase64': string;
30
+ /**
31
+ * MIME type of the file
32
+ * @type {string}
33
+ * @memberof InlineAttachmentDto
34
+ */
35
+ 'contentType'?: string;
36
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL NotificationService
6
+ * The EMIL NotificationService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
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 });