@emilgroup/notification-sdk 0.8.1-beta.39 → 0.8.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -9
- package/README.md +2 -2
- package/api/email-messages-api.ts +24 -36
- package/api/email-tracking-api.ts +32 -263
- package/api/email-verifications-api.ts +8 -16
- package/api/layouts-api.ts +36 -56
- package/api/notification-templates-api.ts +36 -56
- package/api/notifications-api.ts +4 -115
- package/api.ts +0 -2
- package/dist/api/email-messages-api.d.ts +24 -36
- package/dist/api/email-messages-api.js +22 -34
- package/dist/api/email-tracking-api.d.ts +32 -162
- package/dist/api/email-tracking-api.js +28 -227
- package/dist/api/email-verifications-api.d.ts +8 -16
- package/dist/api/email-verifications-api.js +8 -16
- package/dist/api/layouts-api.d.ts +36 -56
- package/dist/api/layouts-api.js +32 -52
- package/dist/api/notification-templates-api.d.ts +36 -56
- package/dist/api/notification-templates-api.js +32 -52
- package/dist/api/notifications-api.d.ts +4 -65
- package/dist/api/notifications-api.js +4 -101
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/models/email-message-class.d.ts +7 -49
- package/dist/models/email-message-class.js +2 -16
- package/dist/models/email-thread-class.d.ts +5 -6
- package/dist/models/index.d.ts +0 -8
- package/dist/models/index.js +0 -8
- package/dist/models/send-notification-request-dto.d.ts +1 -10
- package/dist/models/send-notification-request-dto.js +1 -2
- package/models/email-message-class.ts +8 -53
- package/models/email-thread-class.ts +5 -6
- package/models/index.ts +0 -8
- package/models/send-notification-request-dto.ts +2 -9
- package/package.json +1 -1
- package/api/msgraph-webhooks-api.ts +0 -278
- package/dist/api/msgraph-webhooks-api.d.ts +0 -168
- package/dist/api/msgraph-webhooks-api.js +0 -305
- package/dist/models/assign-email-thread-entity-body-dto.d.ts +0 -43
- package/dist/models/assign-email-thread-entity-body-dto.js +0 -22
- package/dist/models/assign-email-thread-entity-response-class.d.ts +0 -25
- package/dist/models/assign-email-thread-entity-response-class.js +0 -15
- package/dist/models/entity-ref-class.d.ts +0 -37
- package/dist/models/entity-ref-class.js +0 -22
- package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
- package/dist/models/grpc-send-email-request-dto.js +0 -22
- package/dist/models/inline-attachment-dto.d.ts +0 -36
- package/dist/models/inline-attachment-dto.js +0 -15
- package/dist/models/send-email-request-dto.d.ts +0 -131
- package/dist/models/send-email-request-dto.js +0 -22
- package/dist/models/send-email-response-class.d.ts +0 -24
- package/dist/models/send-email-response-class.js +0 -15
- package/dist/models/unassign-email-thread-entity-response-class.d.ts +0 -25
- package/dist/models/unassign-email-thread-entity-response-class.js +0 -15
- package/models/assign-email-thread-entity-body-dto.ts +0 -52
- package/models/assign-email-thread-entity-response-class.ts +0 -31
- package/models/entity-ref-class.ts +0 -46
- package/models/grpc-send-email-request-dto.ts +0 -144
- package/models/inline-attachment-dto.ts +0 -42
- package/models/send-email-request-dto.ts +0 -138
- package/models/send-email-response-class.ts +0 -30
- package/models/unassign-email-thread-entity-response-class.ts +0 -31
|
@@ -12,8 +12,6 @@
|
|
|
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';
|
|
17
15
|
import { SendNotificationRequestDto } from '../models';
|
|
18
16
|
import { SendNotificationResponseClass } from '../models';
|
|
19
17
|
/**
|
|
@@ -22,17 +20,7 @@ import { SendNotificationResponseClass } from '../models';
|
|
|
22
20
|
*/
|
|
23
21
|
export declare const NotificationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
22
|
/**
|
|
25
|
-
*
|
|
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>;
|
|
33
|
-
/**
|
|
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
|
|
35
|
-
* @summary Send a notification
|
|
23
|
+
* undefined **Required Permissions** none
|
|
36
24
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
37
25
|
* @param {string} [authorization] Bearer Token
|
|
38
26
|
* @param {*} [options] Override http request option.
|
|
@@ -46,17 +34,7 @@ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
46
34
|
*/
|
|
47
35
|
export declare const NotificationsApiFp: (configuration?: Configuration) => {
|
|
48
36
|
/**
|
|
49
|
-
*
|
|
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>>;
|
|
57
|
-
/**
|
|
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
|
|
59
|
-
* @summary Send a notification
|
|
37
|
+
* undefined **Required Permissions** none
|
|
60
38
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
61
39
|
* @param {string} [authorization] Bearer Token
|
|
62
40
|
* @param {*} [options] Override http request option.
|
|
@@ -70,17 +48,7 @@ export declare const NotificationsApiFp: (configuration?: Configuration) => {
|
|
|
70
48
|
*/
|
|
71
49
|
export declare const NotificationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
72
50
|
/**
|
|
73
|
-
*
|
|
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>;
|
|
81
|
-
/**
|
|
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
|
|
83
|
-
* @summary Send a notification
|
|
51
|
+
* undefined **Required Permissions** none
|
|
84
52
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
85
53
|
* @param {string} [authorization] Bearer Token
|
|
86
54
|
* @param {*} [options] Override http request option.
|
|
@@ -88,25 +56,6 @@ export declare const NotificationsApiFactory: (configuration?: Configuration, ba
|
|
|
88
56
|
*/
|
|
89
57
|
sendNotification(sendNotificationRequestDto: SendNotificationRequestDto, authorization?: string, options?: any): AxiosPromise<SendNotificationResponseClass>;
|
|
90
58
|
};
|
|
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
|
-
}
|
|
110
59
|
/**
|
|
111
60
|
* Request parameters for sendNotification operation in NotificationsApi.
|
|
112
61
|
* @export
|
|
@@ -134,17 +83,7 @@ export interface NotificationsApiSendNotificationRequest {
|
|
|
134
83
|
*/
|
|
135
84
|
export declare class NotificationsApi extends BaseAPI {
|
|
136
85
|
/**
|
|
137
|
-
*
|
|
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, {}>>;
|
|
145
|
-
/**
|
|
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
|
|
147
|
-
* @summary Send a notification
|
|
86
|
+
* undefined **Required Permissions** none
|
|
148
87
|
* @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
|
|
149
88
|
* @param {*} [options] Override http request option.
|
|
150
89
|
* @throws {RequiredError}
|
|
@@ -93,57 +93,7 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
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
|
-
},
|
|
144
|
-
/**
|
|
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
|
|
146
|
-
* @summary Send a notification
|
|
96
|
+
* undefined **Required Permissions** none
|
|
147
97
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
148
98
|
* @param {string} [authorization] Bearer Token
|
|
149
99
|
* @param {*} [options] Override http request option.
|
|
@@ -201,29 +151,7 @@ var NotificationsApiFp = function (configuration) {
|
|
|
201
151
|
var localVarAxiosParamCreator = (0, exports.NotificationsApiAxiosParamCreator)(configuration);
|
|
202
152
|
return {
|
|
203
153
|
/**
|
|
204
|
-
*
|
|
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
|
-
},
|
|
224
|
-
/**
|
|
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
|
|
226
|
-
* @summary Send a notification
|
|
154
|
+
* undefined **Required Permissions** none
|
|
227
155
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
228
156
|
* @param {string} [authorization] Bearer Token
|
|
229
157
|
* @param {*} [options] Override http request option.
|
|
@@ -253,19 +181,7 @@ var NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
|
253
181
|
var localVarFp = (0, exports.NotificationsApiFp)(configuration);
|
|
254
182
|
return {
|
|
255
183
|
/**
|
|
256
|
-
*
|
|
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
|
-
},
|
|
266
|
-
/**
|
|
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
|
|
268
|
-
* @summary Send a notification
|
|
184
|
+
* undefined **Required Permissions** none
|
|
269
185
|
* @param {SendNotificationRequestDto} sendNotificationRequestDto
|
|
270
186
|
* @param {string} [authorization] Bearer Token
|
|
271
187
|
* @param {*} [options] Override http request option.
|
|
@@ -289,20 +205,7 @@ var NotificationsApi = /** @class */ (function (_super) {
|
|
|
289
205
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
290
206
|
}
|
|
291
207
|
/**
|
|
292
|
-
*
|
|
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
|
-
};
|
|
303
|
-
/**
|
|
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
|
|
305
|
-
* @summary Send a notification
|
|
208
|
+
* undefined **Required Permissions** none
|
|
306
209
|
* @param {NotificationsApiSendNotificationRequest} requestParameters Request parameters.
|
|
307
210
|
* @param {*} [options] Override http request option.
|
|
308
211
|
* @throws {RequiredError}
|
package/dist/api.d.ts
CHANGED
|
@@ -14,6 +14,5 @@ export * from './api/email-tracking-api';
|
|
|
14
14
|
export * from './api/email-verifications-api';
|
|
15
15
|
export * from './api/health-api';
|
|
16
16
|
export * from './api/layouts-api';
|
|
17
|
-
export * from './api/msgraph-webhooks-api';
|
|
18
17
|
export * from './api/notification-templates-api';
|
|
19
18
|
export * from './api/notifications-api';
|
package/dist/api.js
CHANGED
|
@@ -32,6 +32,5 @@ __exportStar(require("./api/email-tracking-api"), exports);
|
|
|
32
32
|
__exportStar(require("./api/email-verifications-api"), exports);
|
|
33
33
|
__exportStar(require("./api/health-api"), exports);
|
|
34
34
|
__exportStar(require("./api/layouts-api"), exports);
|
|
35
|
-
__exportStar(require("./api/msgraph-webhooks-api"), exports);
|
|
36
35
|
__exportStar(require("./api/notification-templates-api"), exports);
|
|
37
36
|
__exportStar(require("./api/notifications-api"), exports);
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { EmailAttachmentClass } from './email-attachment-class';
|
|
13
|
-
import { EntityRefClass } from './entity-ref-class';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -30,35 +29,11 @@ export interface EmailMessageClass {
|
|
|
30
29
|
*/
|
|
31
30
|
'code': string;
|
|
32
31
|
/**
|
|
33
|
-
* Thread code this message belongs to
|
|
32
|
+
* Thread code this message belongs to
|
|
34
33
|
* @type {string}
|
|
35
34
|
* @memberof EmailMessageClass
|
|
36
35
|
*/
|
|
37
36
|
'threadCode': string;
|
|
38
|
-
/**
|
|
39
|
-
* Correlation state of an inbound message: pending, matched (thread and entity known) or unassigned (thread known, no entity yet)
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof EmailMessageClass
|
|
42
|
-
*/
|
|
43
|
-
'matchStatus': EmailMessageClassMatchStatusEnum;
|
|
44
|
-
/**
|
|
45
|
-
* What this row is: a message somebody wrote, or a delivery report (bounce) a mail server sent back about an outbound message
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof EmailMessageClass
|
|
48
|
-
*/
|
|
49
|
-
'kind': EmailMessageClassKindEnum;
|
|
50
|
-
/**
|
|
51
|
-
* Delivery report only: code of the outbound message the report is about
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof EmailMessageClass
|
|
54
|
-
*/
|
|
55
|
-
'reportedMessageCode'?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Provider that received an inbound message
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof EmailMessageClass
|
|
60
|
-
*/
|
|
61
|
-
'provider'?: EmailMessageClassProviderEnum;
|
|
62
37
|
/**
|
|
63
38
|
* Direction of the email
|
|
64
39
|
* @type {string}
|
|
@@ -102,7 +77,7 @@ export interface EmailMessageClass {
|
|
|
102
77
|
*/
|
|
103
78
|
'bodyHtml'?: string;
|
|
104
79
|
/**
|
|
105
|
-
* Delivery status of the email
|
|
80
|
+
* Delivery status of the email
|
|
106
81
|
* @type {string}
|
|
107
82
|
* @memberof EmailMessageClass
|
|
108
83
|
*/
|
|
@@ -156,34 +131,18 @@ export interface EmailMessageClass {
|
|
|
156
131
|
*/
|
|
157
132
|
'attachments': Array<EmailAttachmentClass>;
|
|
158
133
|
/**
|
|
159
|
-
*
|
|
160
|
-
* @type {
|
|
134
|
+
* Entity type this message is associated with
|
|
135
|
+
* @type {string}
|
|
161
136
|
* @memberof EmailMessageClass
|
|
162
137
|
*/
|
|
163
|
-
'
|
|
138
|
+
'entityType': string;
|
|
164
139
|
/**
|
|
165
|
-
*
|
|
140
|
+
* Entity code this message is associated with
|
|
166
141
|
* @type {string}
|
|
167
142
|
* @memberof EmailMessageClass
|
|
168
143
|
*/
|
|
169
|
-
'
|
|
144
|
+
'entityCode': string;
|
|
170
145
|
}
|
|
171
|
-
export declare const EmailMessageClassMatchStatusEnum: {
|
|
172
|
-
readonly Pending: "pending";
|
|
173
|
-
readonly Matched: "matched";
|
|
174
|
-
readonly Unassigned: "unassigned";
|
|
175
|
-
};
|
|
176
|
-
export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
|
|
177
|
-
export declare const EmailMessageClassKindEnum: {
|
|
178
|
-
readonly Message: "message";
|
|
179
|
-
readonly DeliveryReport: "delivery_report";
|
|
180
|
-
};
|
|
181
|
-
export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
|
|
182
|
-
export declare const EmailMessageClassProviderEnum: {
|
|
183
|
-
readonly Ses: "ses";
|
|
184
|
-
readonly Msgraph: "msgraph";
|
|
185
|
-
};
|
|
186
|
-
export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
|
|
187
146
|
export declare const EmailMessageClassDirectionEnum: {
|
|
188
147
|
readonly Outbound: "outbound";
|
|
189
148
|
readonly Inbound: "inbound";
|
|
@@ -195,6 +154,5 @@ export declare const EmailMessageClassDeliveryStatusEnum: {
|
|
|
195
154
|
readonly Delivered: "delivered";
|
|
196
155
|
readonly Bounced: "bounced";
|
|
197
156
|
readonly Failed: "failed";
|
|
198
|
-
readonly Received: "received";
|
|
199
157
|
};
|
|
200
158
|
export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
|
|
@@ -13,20 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.EmailMessageClassDeliveryStatusEnum = exports.EmailMessageClassDirectionEnum =
|
|
17
|
-
exports.EmailMessageClassMatchStatusEnum = {
|
|
18
|
-
Pending: 'pending',
|
|
19
|
-
Matched: 'matched',
|
|
20
|
-
Unassigned: 'unassigned'
|
|
21
|
-
};
|
|
22
|
-
exports.EmailMessageClassKindEnum = {
|
|
23
|
-
Message: 'message',
|
|
24
|
-
DeliveryReport: 'delivery_report'
|
|
25
|
-
};
|
|
26
|
-
exports.EmailMessageClassProviderEnum = {
|
|
27
|
-
Ses: 'ses',
|
|
28
|
-
Msgraph: 'msgraph'
|
|
29
|
-
};
|
|
16
|
+
exports.EmailMessageClassDeliveryStatusEnum = exports.EmailMessageClassDirectionEnum = void 0;
|
|
30
17
|
exports.EmailMessageClassDirectionEnum = {
|
|
31
18
|
Outbound: 'outbound',
|
|
32
19
|
Inbound: 'inbound'
|
|
@@ -36,6 +23,5 @@ exports.EmailMessageClassDeliveryStatusEnum = {
|
|
|
36
23
|
Sent: 'sent',
|
|
37
24
|
Delivered: 'delivered',
|
|
38
25
|
Bounced: 'bounced',
|
|
39
|
-
Failed: 'failed'
|
|
40
|
-
Received: 'received'
|
|
26
|
+
Failed: 'failed'
|
|
41
27
|
};
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { EntityRefClass } from './entity-ref-class';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -29,17 +28,17 @@ export interface EmailThreadClass {
|
|
|
29
28
|
*/
|
|
30
29
|
'code': string;
|
|
31
30
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {
|
|
31
|
+
* Entity type associated with this thread
|
|
32
|
+
* @type {string}
|
|
34
33
|
* @memberof EmailThreadClass
|
|
35
34
|
*/
|
|
36
|
-
'
|
|
35
|
+
'entityType': string;
|
|
37
36
|
/**
|
|
38
|
-
*
|
|
37
|
+
* Entity code associated with this thread
|
|
39
38
|
* @type {string}
|
|
40
39
|
* @memberof EmailThreadClass
|
|
41
40
|
*/
|
|
42
|
-
'
|
|
41
|
+
'entityCode': string;
|
|
43
42
|
/**
|
|
44
43
|
* Email subject of the thread
|
|
45
44
|
* @type {string}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from './assign-email-thread-entity-body-dto';
|
|
2
|
-
export * from './assign-email-thread-entity-response-class';
|
|
3
1
|
export * from './complete-email-verification-dto';
|
|
4
2
|
export * from './complete-email-verification-response-class';
|
|
5
3
|
export * from './create-layout-request-dto';
|
|
@@ -12,18 +10,15 @@ export * from './download-attachment-response-class';
|
|
|
12
10
|
export * from './email-attachment-class';
|
|
13
11
|
export * from './email-message-class';
|
|
14
12
|
export * from './email-thread-class';
|
|
15
|
-
export * from './entity-ref-class';
|
|
16
13
|
export * from './get-email-message-response-class';
|
|
17
14
|
export * from './get-email-thread-response-class';
|
|
18
15
|
export * from './get-layout-request-dto';
|
|
19
16
|
export * from './get-layout-response-class';
|
|
20
17
|
export * from './get-notification-template-request-dto';
|
|
21
18
|
export * from './get-notification-template-response-class';
|
|
22
|
-
export * from './grpc-send-email-request-dto';
|
|
23
19
|
export * from './html-template-class';
|
|
24
20
|
export * from './initiate-email-verification-dto';
|
|
25
21
|
export * from './initiate-email-verification-response-class';
|
|
26
|
-
export * from './inline-attachment-dto';
|
|
27
22
|
export * from './inline-response200';
|
|
28
23
|
export * from './inline-response503';
|
|
29
24
|
export * from './layout-class';
|
|
@@ -34,11 +29,8 @@ export * from './list-layouts-response-class';
|
|
|
34
29
|
export * from './list-notification-templates-response-class';
|
|
35
30
|
export * from './notification-template-class';
|
|
36
31
|
export * from './s3-document-dto';
|
|
37
|
-
export * from './send-email-request-dto';
|
|
38
|
-
export * from './send-email-response-class';
|
|
39
32
|
export * from './send-notification-request-dto';
|
|
40
33
|
export * from './send-notification-response-class';
|
|
41
|
-
export * from './unassign-email-thread-entity-response-class';
|
|
42
34
|
export * from './update-html-template-request-dto';
|
|
43
35
|
export * from './update-layout-request-dto';
|
|
44
36
|
export * from './update-layout-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -14,8 +14,6 @@ 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-thread-entity-body-dto"), exports);
|
|
18
|
-
__exportStar(require("./assign-email-thread-entity-response-class"), exports);
|
|
19
17
|
__exportStar(require("./complete-email-verification-dto"), exports);
|
|
20
18
|
__exportStar(require("./complete-email-verification-response-class"), exports);
|
|
21
19
|
__exportStar(require("./create-layout-request-dto"), exports);
|
|
@@ -28,18 +26,15 @@ __exportStar(require("./download-attachment-response-class"), exports);
|
|
|
28
26
|
__exportStar(require("./email-attachment-class"), exports);
|
|
29
27
|
__exportStar(require("./email-message-class"), exports);
|
|
30
28
|
__exportStar(require("./email-thread-class"), exports);
|
|
31
|
-
__exportStar(require("./entity-ref-class"), exports);
|
|
32
29
|
__exportStar(require("./get-email-message-response-class"), exports);
|
|
33
30
|
__exportStar(require("./get-email-thread-response-class"), exports);
|
|
34
31
|
__exportStar(require("./get-layout-request-dto"), exports);
|
|
35
32
|
__exportStar(require("./get-layout-response-class"), exports);
|
|
36
33
|
__exportStar(require("./get-notification-template-request-dto"), exports);
|
|
37
34
|
__exportStar(require("./get-notification-template-response-class"), exports);
|
|
38
|
-
__exportStar(require("./grpc-send-email-request-dto"), exports);
|
|
39
35
|
__exportStar(require("./html-template-class"), exports);
|
|
40
36
|
__exportStar(require("./initiate-email-verification-dto"), exports);
|
|
41
37
|
__exportStar(require("./initiate-email-verification-response-class"), exports);
|
|
42
|
-
__exportStar(require("./inline-attachment-dto"), exports);
|
|
43
38
|
__exportStar(require("./inline-response200"), exports);
|
|
44
39
|
__exportStar(require("./inline-response503"), exports);
|
|
45
40
|
__exportStar(require("./layout-class"), exports);
|
|
@@ -50,11 +45,8 @@ __exportStar(require("./list-layouts-response-class"), exports);
|
|
|
50
45
|
__exportStar(require("./list-notification-templates-response-class"), exports);
|
|
51
46
|
__exportStar(require("./notification-template-class"), exports);
|
|
52
47
|
__exportStar(require("./s3-document-dto"), exports);
|
|
53
|
-
__exportStar(require("./send-email-request-dto"), exports);
|
|
54
|
-
__exportStar(require("./send-email-response-class"), exports);
|
|
55
48
|
__exportStar(require("./send-notification-request-dto"), exports);
|
|
56
49
|
__exportStar(require("./send-notification-response-class"), exports);
|
|
57
|
-
__exportStar(require("./unassign-email-thread-entity-response-class"), exports);
|
|
58
50
|
__exportStar(require("./update-html-template-request-dto"), exports);
|
|
59
51
|
__exportStar(require("./update-layout-request-dto"), exports);
|
|
60
52
|
__exportStar(require("./update-layout-response-class"), exports);
|
|
@@ -85,7 +85,7 @@ export interface SendNotificationRequestDto {
|
|
|
85
85
|
*/
|
|
86
86
|
'entityCode'?: string;
|
|
87
87
|
/**
|
|
88
|
-
* Reply-To address for email reply tracking. Auto-generated when
|
|
88
|
+
* Reply-To address for email reply tracking. Auto-generated when entityType and entityCode are provided.
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof SendNotificationRequestDto
|
|
91
91
|
*/
|
|
@@ -108,19 +108,10 @@ export interface SendNotificationRequestDto {
|
|
|
108
108
|
* @memberof SendNotificationRequestDto
|
|
109
109
|
*/
|
|
110
110
|
'references': Array<string>;
|
|
111
|
-
/**
|
|
112
|
-
* Custom headers to set on the outgoing email
|
|
113
|
-
* @type {{ [key: string]: string; }}
|
|
114
|
-
* @memberof SendNotificationRequestDto
|
|
115
|
-
*/
|
|
116
|
-
'customHeaders': {
|
|
117
|
-
[key: string]: string;
|
|
118
|
-
};
|
|
119
111
|
}
|
|
120
112
|
export declare const SendNotificationRequestDtoEntityTypeEnum: {
|
|
121
113
|
readonly Claim: "Claim";
|
|
122
114
|
readonly Policy: "Policy";
|
|
123
115
|
readonly Lead: "Lead";
|
|
124
|
-
readonly Partner: "Partner";
|
|
125
116
|
};
|
|
126
117
|
export type SendNotificationRequestDtoEntityTypeEnum = typeof SendNotificationRequestDtoEntityTypeEnum[keyof typeof SendNotificationRequestDtoEntityTypeEnum];
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import { EmailAttachmentClass } from './email-attachment-class';
|
|
17
|
-
import { EntityRefClass } from './entity-ref-class';
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
*
|
|
@@ -35,35 +34,11 @@ export interface EmailMessageClass {
|
|
|
35
34
|
*/
|
|
36
35
|
'code': string;
|
|
37
36
|
/**
|
|
38
|
-
* Thread code this message belongs to
|
|
37
|
+
* Thread code this message belongs to
|
|
39
38
|
* @type {string}
|
|
40
39
|
* @memberof EmailMessageClass
|
|
41
40
|
*/
|
|
42
41
|
'threadCode': string;
|
|
43
|
-
/**
|
|
44
|
-
* Correlation state of an inbound message: pending, matched (thread and entity known) or unassigned (thread known, no entity yet)
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof EmailMessageClass
|
|
47
|
-
*/
|
|
48
|
-
'matchStatus': EmailMessageClassMatchStatusEnum;
|
|
49
|
-
/**
|
|
50
|
-
* What this row is: a message somebody wrote, or a delivery report (bounce) a mail server sent back about an outbound message
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof EmailMessageClass
|
|
53
|
-
*/
|
|
54
|
-
'kind': EmailMessageClassKindEnum;
|
|
55
|
-
/**
|
|
56
|
-
* Delivery report only: code of the outbound message the report is about
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof EmailMessageClass
|
|
59
|
-
*/
|
|
60
|
-
'reportedMessageCode'?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Provider that received an inbound message
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof EmailMessageClass
|
|
65
|
-
*/
|
|
66
|
-
'provider'?: EmailMessageClassProviderEnum;
|
|
67
42
|
/**
|
|
68
43
|
* Direction of the email
|
|
69
44
|
* @type {string}
|
|
@@ -107,7 +82,7 @@ export interface EmailMessageClass {
|
|
|
107
82
|
*/
|
|
108
83
|
'bodyHtml'?: string;
|
|
109
84
|
/**
|
|
110
|
-
* Delivery status of the email
|
|
85
|
+
* Delivery status of the email
|
|
111
86
|
* @type {string}
|
|
112
87
|
* @memberof EmailMessageClass
|
|
113
88
|
*/
|
|
@@ -161,38 +136,19 @@ export interface EmailMessageClass {
|
|
|
161
136
|
*/
|
|
162
137
|
'attachments': Array<EmailAttachmentClass>;
|
|
163
138
|
/**
|
|
164
|
-
*
|
|
165
|
-
* @type {
|
|
139
|
+
* Entity type this message is associated with
|
|
140
|
+
* @type {string}
|
|
166
141
|
* @memberof EmailMessageClass
|
|
167
142
|
*/
|
|
168
|
-
'
|
|
143
|
+
'entityType': string;
|
|
169
144
|
/**
|
|
170
|
-
*
|
|
145
|
+
* Entity code this message is associated with
|
|
171
146
|
* @type {string}
|
|
172
147
|
* @memberof EmailMessageClass
|
|
173
148
|
*/
|
|
174
|
-
'
|
|
149
|
+
'entityCode': string;
|
|
175
150
|
}
|
|
176
151
|
|
|
177
|
-
export const EmailMessageClassMatchStatusEnum = {
|
|
178
|
-
Pending: 'pending',
|
|
179
|
-
Matched: 'matched',
|
|
180
|
-
Unassigned: 'unassigned'
|
|
181
|
-
} as const;
|
|
182
|
-
|
|
183
|
-
export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
|
|
184
|
-
export const EmailMessageClassKindEnum = {
|
|
185
|
-
Message: 'message',
|
|
186
|
-
DeliveryReport: 'delivery_report'
|
|
187
|
-
} as const;
|
|
188
|
-
|
|
189
|
-
export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
|
|
190
|
-
export const EmailMessageClassProviderEnum = {
|
|
191
|
-
Ses: 'ses',
|
|
192
|
-
Msgraph: 'msgraph'
|
|
193
|
-
} as const;
|
|
194
|
-
|
|
195
|
-
export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
|
|
196
152
|
export const EmailMessageClassDirectionEnum = {
|
|
197
153
|
Outbound: 'outbound',
|
|
198
154
|
Inbound: 'inbound'
|
|
@@ -204,8 +160,7 @@ export const EmailMessageClassDeliveryStatusEnum = {
|
|
|
204
160
|
Sent: 'sent',
|
|
205
161
|
Delivered: 'delivered',
|
|
206
162
|
Bounced: 'bounced',
|
|
207
|
-
Failed: 'failed'
|
|
208
|
-
Received: 'received'
|
|
163
|
+
Failed: 'failed'
|
|
209
164
|
} as const;
|
|
210
165
|
|
|
211
166
|
export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
|