@emilgroup/notification-sdk 0.8.1-beta.56 → 0.8.1-beta.6
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 -23
- package/README.md +2 -2
- package/api/email-messages-api.ts +28 -40
- package/api/email-tracking-api.ts +40 -271
- 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 -6
- package/dist/api/email-messages-api.d.ts +28 -40
- package/dist/api/email-messages-api.js +25 -37
- package/dist/api/email-tracking-api.d.ts +40 -170
- package/dist/api/email-tracking-api.js +34 -233
- 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 -3
- package/dist/api.js +0 -3
- package/dist/models/email-message-class.d.ts +7 -73
- package/dist/models/email-message-class.js +3 -22
- package/dist/models/email-thread-class.d.ts +5 -37
- package/dist/models/index.d.ts +0 -20
- package/dist/models/index.js +0 -20
- 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 -78
- package/models/email-thread-class.ts +5 -37
- package/models/index.ts +0 -20
- package/models/send-notification-request-dto.ts +2 -9
- package/package.json +1 -1
- package/api/email-mailboxes-api.ts +0 -148
- package/api/email-subscriptions-api.ts +0 -769
- package/api/msgraph-webhooks-api.ts +0 -278
- package/dist/api/email-mailboxes-api.d.ts +0 -87
- package/dist/api/email-mailboxes-api.js +0 -218
- package/dist/api/email-subscriptions-api.d.ts +0 -432
- package/dist/api/email-subscriptions-api.js +0 -722
- 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/catch-up-email-subscription-response-class.d.ts +0 -24
- package/dist/models/catch-up-email-subscription-response-class.js +0 -15
- package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +0 -24
- package/dist/models/catch-up-email-subscriptions-request-dto.js +0 -15
- package/dist/models/catch-up-email-subscriptions-response-class.d.ts +0 -30
- package/dist/models/catch-up-email-subscriptions-response-class.js +0 -15
- package/dist/models/email-mailbox-class.d.ts +0 -47
- package/dist/models/email-mailbox-class.js +0 -20
- package/dist/models/email-message-summary-class.d.ts +0 -98
- package/dist/models/email-message-summary-class.js +0 -33
- package/dist/models/email-subscription-class.d.ts +0 -110
- package/dist/models/email-subscription-class.js +0 -23
- package/dist/models/entity-ref-class.d.ts +0 -37
- package/dist/models/entity-ref-class.js +0 -22
- package/dist/models/get-email-subscription-response-class.d.ts +0 -25
- package/dist/models/get-email-subscription-response-class.js +0 -15
- 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/list-email-mailboxes-response-class.d.ts +0 -43
- package/dist/models/list-email-mailboxes-response-class.js +0 -15
- package/dist/models/list-email-subscriptions-response-class.d.ts +0 -43
- package/dist/models/list-email-subscriptions-response-class.js +0 -15
- package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +0 -24
- package/dist/models/reconcile-email-subscriptions-request-dto.js +0 -15
- package/dist/models/reconcile-email-subscriptions-response-class.d.ts +0 -48
- package/dist/models/reconcile-email-subscriptions-response-class.js +0 -15
- package/dist/models/renew-email-subscription-response-class.d.ts +0 -25
- package/dist/models/renew-email-subscription-response-class.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/catch-up-email-subscription-response-class.ts +0 -30
- package/models/catch-up-email-subscriptions-request-dto.ts +0 -30
- package/models/catch-up-email-subscriptions-response-class.ts +0 -36
- package/models/email-mailbox-class.ts +0 -56
- package/models/email-message-summary-class.ts +0 -109
- package/models/email-subscription-class.ts +0 -119
- package/models/entity-ref-class.ts +0 -46
- package/models/get-email-subscription-response-class.ts +0 -31
- package/models/grpc-send-email-request-dto.ts +0 -144
- package/models/inline-attachment-dto.ts +0 -42
- package/models/list-email-mailboxes-response-class.ts +0 -49
- package/models/list-email-subscriptions-response-class.ts +0 -49
- package/models/reconcile-email-subscriptions-request-dto.ts +0 -30
- package/models/reconcile-email-subscriptions-response-class.ts +0 -54
- package/models/renew-email-subscription-response-class.ts +0 -31
- 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
|
@@ -9,13 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
export * from './api/email-mailboxes-api';
|
|
13
12
|
export * from './api/email-messages-api';
|
|
14
|
-
export * from './api/email-subscriptions-api';
|
|
15
13
|
export * from './api/email-tracking-api';
|
|
16
14
|
export * from './api/email-verifications-api';
|
|
17
15
|
export * from './api/health-api';
|
|
18
16
|
export * from './api/layouts-api';
|
|
19
|
-
export * from './api/msgraph-webhooks-api';
|
|
20
17
|
export * from './api/notification-templates-api';
|
|
21
18
|
export * from './api/notifications-api';
|
package/dist/api.js
CHANGED
|
@@ -27,13 +27,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
__exportStar(require("./api/email-mailboxes-api"), exports);
|
|
31
30
|
__exportStar(require("./api/email-messages-api"), exports);
|
|
32
|
-
__exportStar(require("./api/email-subscriptions-api"), exports);
|
|
33
31
|
__exportStar(require("./api/email-tracking-api"), exports);
|
|
34
32
|
__exportStar(require("./api/email-verifications-api"), exports);
|
|
35
33
|
__exportStar(require("./api/health-api"), exports);
|
|
36
34
|
__exportStar(require("./api/layouts-api"), exports);
|
|
37
|
-
__exportStar(require("./api/msgraph-webhooks-api"), exports);
|
|
38
35
|
__exportStar(require("./api/notification-templates-api"), exports);
|
|
39
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,41 +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 the message was sent or received through
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof EmailMessageClass
|
|
60
|
-
*/
|
|
61
|
-
'provider'?: EmailMessageClassProviderEnum;
|
|
62
|
-
/**
|
|
63
|
-
* Mailbox the message belongs to: the Microsoft 365 mailbox it was sent from or arrived in, or the sender address for SES. Empty for an inbound email that matched nothing yet.
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof EmailMessageClass
|
|
66
|
-
*/
|
|
67
|
-
'mailbox'?: string;
|
|
68
37
|
/**
|
|
69
38
|
* Direction of the email
|
|
70
39
|
* @type {string}
|
|
@@ -108,7 +77,7 @@ export interface EmailMessageClass {
|
|
|
108
77
|
*/
|
|
109
78
|
'bodyHtml'?: string;
|
|
110
79
|
/**
|
|
111
|
-
* Delivery status of the email
|
|
80
|
+
* Delivery status of the email
|
|
112
81
|
* @type {string}
|
|
113
82
|
* @memberof EmailMessageClass
|
|
114
83
|
*/
|
|
@@ -162,46 +131,18 @@ export interface EmailMessageClass {
|
|
|
162
131
|
*/
|
|
163
132
|
'attachments': Array<EmailAttachmentClass>;
|
|
164
133
|
/**
|
|
165
|
-
*
|
|
166
|
-
* @type {number}
|
|
167
|
-
* @memberof EmailMessageClass
|
|
168
|
-
*/
|
|
169
|
-
'attachmentCount'?: number;
|
|
170
|
-
/**
|
|
171
|
-
* The entity the message\'s thread is linked to. Not set while the message is unassigned.
|
|
172
|
-
* @type {EntityRefClass}
|
|
173
|
-
* @memberof EmailMessageClass
|
|
174
|
-
*/
|
|
175
|
-
'entityRef'?: EntityRefClass;
|
|
176
|
-
/**
|
|
177
|
-
* Business number of the linked entity (policy, lead, claim or partner number)
|
|
134
|
+
* Entity type this message is associated with
|
|
178
135
|
* @type {string}
|
|
179
136
|
* @memberof EmailMessageClass
|
|
180
137
|
*/
|
|
181
|
-
'
|
|
138
|
+
'entityType': string;
|
|
182
139
|
/**
|
|
183
|
-
*
|
|
140
|
+
* Entity code this message is associated with
|
|
184
141
|
* @type {string}
|
|
185
142
|
* @memberof EmailMessageClass
|
|
186
143
|
*/
|
|
187
|
-
'
|
|
144
|
+
'entityCode': string;
|
|
188
145
|
}
|
|
189
|
-
export declare const EmailMessageClassMatchStatusEnum: {
|
|
190
|
-
readonly Pending: "pending";
|
|
191
|
-
readonly Matched: "matched";
|
|
192
|
-
readonly Unassigned: "unassigned";
|
|
193
|
-
};
|
|
194
|
-
export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
|
|
195
|
-
export declare const EmailMessageClassKindEnum: {
|
|
196
|
-
readonly Message: "message";
|
|
197
|
-
readonly DeliveryReport: "delivery_report";
|
|
198
|
-
};
|
|
199
|
-
export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
|
|
200
|
-
export declare const EmailMessageClassProviderEnum: {
|
|
201
|
-
readonly Ses: "ses";
|
|
202
|
-
readonly Msgraph: "msgraph";
|
|
203
|
-
};
|
|
204
|
-
export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
|
|
205
146
|
export declare const EmailMessageClassDirectionEnum: {
|
|
206
147
|
readonly Outbound: "outbound";
|
|
207
148
|
readonly Inbound: "inbound";
|
|
@@ -210,15 +151,8 @@ export type EmailMessageClassDirectionEnum = typeof EmailMessageClassDirectionEn
|
|
|
210
151
|
export declare const EmailMessageClassDeliveryStatusEnum: {
|
|
211
152
|
readonly Pending: "pending";
|
|
212
153
|
readonly Sent: "sent";
|
|
154
|
+
readonly Delivered: "delivered";
|
|
213
155
|
readonly Bounced: "bounced";
|
|
214
156
|
readonly Failed: "failed";
|
|
215
|
-
readonly Received: "received";
|
|
216
157
|
};
|
|
217
158
|
export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
|
|
218
|
-
export declare const EmailMessageClassWorkflowStatusEnum: {
|
|
219
|
-
readonly InProgress: "in_progress";
|
|
220
|
-
readonly Done: "done";
|
|
221
|
-
readonly Failed: "failed";
|
|
222
|
-
readonly Cancelled: "cancelled";
|
|
223
|
-
};
|
|
224
|
-
export type EmailMessageClassWorkflowStatusEnum = typeof EmailMessageClassWorkflowStatusEnum[keyof typeof EmailMessageClassWorkflowStatusEnum];
|
|
@@ -13,20 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
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'
|
|
@@ -34,13 +21,7 @@ exports.EmailMessageClassDirectionEnum = {
|
|
|
34
21
|
exports.EmailMessageClassDeliveryStatusEnum = {
|
|
35
22
|
Pending: 'pending',
|
|
36
23
|
Sent: 'sent',
|
|
24
|
+
Delivered: 'delivered',
|
|
37
25
|
Bounced: 'bounced',
|
|
38
|
-
Failed: 'failed'
|
|
39
|
-
Received: 'received'
|
|
40
|
-
};
|
|
41
|
-
exports.EmailMessageClassWorkflowStatusEnum = {
|
|
42
|
-
InProgress: 'in_progress',
|
|
43
|
-
Done: 'done',
|
|
44
|
-
Failed: 'failed',
|
|
45
|
-
Cancelled: 'cancelled'
|
|
26
|
+
Failed: 'failed'
|
|
46
27
|
};
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { EmailMessageSummaryClass } from './email-message-summary-class';
|
|
13
|
-
import { EntityRefClass } from './entity-ref-class';
|
|
14
12
|
/**
|
|
15
13
|
*
|
|
16
14
|
* @export
|
|
@@ -30,17 +28,17 @@ export interface EmailThreadClass {
|
|
|
30
28
|
*/
|
|
31
29
|
'code': string;
|
|
32
30
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {
|
|
31
|
+
* Entity type associated with this thread
|
|
32
|
+
* @type {string}
|
|
35
33
|
* @memberof EmailThreadClass
|
|
36
34
|
*/
|
|
37
|
-
'
|
|
35
|
+
'entityType': string;
|
|
38
36
|
/**
|
|
39
|
-
*
|
|
37
|
+
* Entity code associated with this thread
|
|
40
38
|
* @type {string}
|
|
41
39
|
* @memberof EmailThreadClass
|
|
42
40
|
*/
|
|
43
|
-
'
|
|
41
|
+
'entityCode': string;
|
|
44
42
|
/**
|
|
45
43
|
* Email subject of the thread
|
|
46
44
|
* @type {string}
|
|
@@ -53,12 +51,6 @@ export interface EmailThreadClass {
|
|
|
53
51
|
* @memberof EmailThreadClass
|
|
54
52
|
*/
|
|
55
53
|
'status': EmailThreadClassStatusEnum;
|
|
56
|
-
/**
|
|
57
|
-
* Mailbox the thread belongs to: the Microsoft 365 mailbox the conversation lives in, or the sender address for SES. Empty for a thread opened by an inbound email that matched nothing.
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof EmailThreadClass
|
|
60
|
-
*/
|
|
61
|
-
'mailbox'?: string;
|
|
62
54
|
/**
|
|
63
55
|
* User who created this thread
|
|
64
56
|
* @type {string}
|
|
@@ -83,30 +75,6 @@ export interface EmailThreadClass {
|
|
|
83
75
|
* @memberof EmailThreadClass
|
|
84
76
|
*/
|
|
85
77
|
'updatedAt': string;
|
|
86
|
-
/**
|
|
87
|
-
* Number of messages in the thread. Delivery reports (bounces) are not counted.
|
|
88
|
-
* @type {number}
|
|
89
|
-
* @memberof EmailThreadClass
|
|
90
|
-
*/
|
|
91
|
-
'messageCount': number;
|
|
92
|
-
/**
|
|
93
|
-
* When the newest message of the thread was received, or sent for an outbound message
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @memberof EmailThreadClass
|
|
96
|
-
*/
|
|
97
|
-
'lastMessageAt'?: string;
|
|
98
|
-
/**
|
|
99
|
-
* Newest message of the thread, the one a thread row in a list shows. Set when listing threads.
|
|
100
|
-
* @type {EmailMessageSummaryClass}
|
|
101
|
-
* @memberof EmailThreadClass
|
|
102
|
-
*/
|
|
103
|
-
'latestMessage'?: EmailMessageSummaryClass;
|
|
104
|
-
/**
|
|
105
|
-
* Every message of the thread, newest first. Only filled when listing with expand=messages; bodies are fetched per message.
|
|
106
|
-
* @type {Array<EmailMessageSummaryClass>}
|
|
107
|
-
* @memberof EmailThreadClass
|
|
108
|
-
*/
|
|
109
|
-
'messages': Array<EmailMessageSummaryClass>;
|
|
110
78
|
}
|
|
111
79
|
export declare const EmailThreadClassStatusEnum: {
|
|
112
80
|
readonly Open: "open";
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export * from './assign-email-thread-entity-body-dto';
|
|
2
|
-
export * from './assign-email-thread-entity-response-class';
|
|
3
|
-
export * from './catch-up-email-subscription-response-class';
|
|
4
|
-
export * from './catch-up-email-subscriptions-request-dto';
|
|
5
|
-
export * from './catch-up-email-subscriptions-response-class';
|
|
6
1
|
export * from './complete-email-verification-dto';
|
|
7
2
|
export * from './complete-email-verification-response-class';
|
|
8
3
|
export * from './create-layout-request-dto';
|
|
@@ -13,44 +8,29 @@ export * from './delete-layout-request-dto';
|
|
|
13
8
|
export * from './delete-notification-template-request-dto';
|
|
14
9
|
export * from './download-attachment-response-class';
|
|
15
10
|
export * from './email-attachment-class';
|
|
16
|
-
export * from './email-mailbox-class';
|
|
17
11
|
export * from './email-message-class';
|
|
18
|
-
export * from './email-message-summary-class';
|
|
19
|
-
export * from './email-subscription-class';
|
|
20
12
|
export * from './email-thread-class';
|
|
21
|
-
export * from './entity-ref-class';
|
|
22
13
|
export * from './get-email-message-response-class';
|
|
23
|
-
export * from './get-email-subscription-response-class';
|
|
24
14
|
export * from './get-email-thread-response-class';
|
|
25
15
|
export * from './get-layout-request-dto';
|
|
26
16
|
export * from './get-layout-response-class';
|
|
27
17
|
export * from './get-notification-template-request-dto';
|
|
28
18
|
export * from './get-notification-template-response-class';
|
|
29
|
-
export * from './grpc-send-email-request-dto';
|
|
30
19
|
export * from './html-template-class';
|
|
31
20
|
export * from './initiate-email-verification-dto';
|
|
32
21
|
export * from './initiate-email-verification-response-class';
|
|
33
|
-
export * from './inline-attachment-dto';
|
|
34
22
|
export * from './inline-response200';
|
|
35
23
|
export * from './inline-response503';
|
|
36
24
|
export * from './layout-class';
|
|
37
25
|
export * from './list-email-attachments-response-class';
|
|
38
|
-
export * from './list-email-mailboxes-response-class';
|
|
39
26
|
export * from './list-email-messages-response-class';
|
|
40
|
-
export * from './list-email-subscriptions-response-class';
|
|
41
27
|
export * from './list-email-threads-response-class';
|
|
42
28
|
export * from './list-layouts-response-class';
|
|
43
29
|
export * from './list-notification-templates-response-class';
|
|
44
30
|
export * from './notification-template-class';
|
|
45
|
-
export * from './reconcile-email-subscriptions-request-dto';
|
|
46
|
-
export * from './reconcile-email-subscriptions-response-class';
|
|
47
|
-
export * from './renew-email-subscription-response-class';
|
|
48
31
|
export * from './s3-document-dto';
|
|
49
|
-
export * from './send-email-request-dto';
|
|
50
|
-
export * from './send-email-response-class';
|
|
51
32
|
export * from './send-notification-request-dto';
|
|
52
33
|
export * from './send-notification-response-class';
|
|
53
|
-
export * from './unassign-email-thread-entity-response-class';
|
|
54
34
|
export * from './update-html-template-request-dto';
|
|
55
35
|
export * from './update-layout-request-dto';
|
|
56
36
|
export * from './update-layout-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -14,11 +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
|
-
__exportStar(require("./catch-up-email-subscription-response-class"), exports);
|
|
20
|
-
__exportStar(require("./catch-up-email-subscriptions-request-dto"), exports);
|
|
21
|
-
__exportStar(require("./catch-up-email-subscriptions-response-class"), exports);
|
|
22
17
|
__exportStar(require("./complete-email-verification-dto"), exports);
|
|
23
18
|
__exportStar(require("./complete-email-verification-response-class"), exports);
|
|
24
19
|
__exportStar(require("./create-layout-request-dto"), exports);
|
|
@@ -29,44 +24,29 @@ __exportStar(require("./delete-layout-request-dto"), exports);
|
|
|
29
24
|
__exportStar(require("./delete-notification-template-request-dto"), exports);
|
|
30
25
|
__exportStar(require("./download-attachment-response-class"), exports);
|
|
31
26
|
__exportStar(require("./email-attachment-class"), exports);
|
|
32
|
-
__exportStar(require("./email-mailbox-class"), exports);
|
|
33
27
|
__exportStar(require("./email-message-class"), exports);
|
|
34
|
-
__exportStar(require("./email-message-summary-class"), exports);
|
|
35
|
-
__exportStar(require("./email-subscription-class"), exports);
|
|
36
28
|
__exportStar(require("./email-thread-class"), exports);
|
|
37
|
-
__exportStar(require("./entity-ref-class"), exports);
|
|
38
29
|
__exportStar(require("./get-email-message-response-class"), exports);
|
|
39
|
-
__exportStar(require("./get-email-subscription-response-class"), exports);
|
|
40
30
|
__exportStar(require("./get-email-thread-response-class"), exports);
|
|
41
31
|
__exportStar(require("./get-layout-request-dto"), exports);
|
|
42
32
|
__exportStar(require("./get-layout-response-class"), exports);
|
|
43
33
|
__exportStar(require("./get-notification-template-request-dto"), exports);
|
|
44
34
|
__exportStar(require("./get-notification-template-response-class"), exports);
|
|
45
|
-
__exportStar(require("./grpc-send-email-request-dto"), exports);
|
|
46
35
|
__exportStar(require("./html-template-class"), exports);
|
|
47
36
|
__exportStar(require("./initiate-email-verification-dto"), exports);
|
|
48
37
|
__exportStar(require("./initiate-email-verification-response-class"), exports);
|
|
49
|
-
__exportStar(require("./inline-attachment-dto"), exports);
|
|
50
38
|
__exportStar(require("./inline-response200"), exports);
|
|
51
39
|
__exportStar(require("./inline-response503"), exports);
|
|
52
40
|
__exportStar(require("./layout-class"), exports);
|
|
53
41
|
__exportStar(require("./list-email-attachments-response-class"), exports);
|
|
54
|
-
__exportStar(require("./list-email-mailboxes-response-class"), exports);
|
|
55
42
|
__exportStar(require("./list-email-messages-response-class"), exports);
|
|
56
|
-
__exportStar(require("./list-email-subscriptions-response-class"), exports);
|
|
57
43
|
__exportStar(require("./list-email-threads-response-class"), exports);
|
|
58
44
|
__exportStar(require("./list-layouts-response-class"), exports);
|
|
59
45
|
__exportStar(require("./list-notification-templates-response-class"), exports);
|
|
60
46
|
__exportStar(require("./notification-template-class"), exports);
|
|
61
|
-
__exportStar(require("./reconcile-email-subscriptions-request-dto"), exports);
|
|
62
|
-
__exportStar(require("./reconcile-email-subscriptions-response-class"), exports);
|
|
63
|
-
__exportStar(require("./renew-email-subscription-response-class"), exports);
|
|
64
47
|
__exportStar(require("./s3-document-dto"), exports);
|
|
65
|
-
__exportStar(require("./send-email-request-dto"), exports);
|
|
66
|
-
__exportStar(require("./send-email-response-class"), exports);
|
|
67
48
|
__exportStar(require("./send-notification-request-dto"), exports);
|
|
68
49
|
__exportStar(require("./send-notification-response-class"), exports);
|
|
69
|
-
__exportStar(require("./unassign-email-thread-entity-response-class"), exports);
|
|
70
50
|
__exportStar(require("./update-html-template-request-dto"), exports);
|
|
71
51
|
__exportStar(require("./update-layout-request-dto"), exports);
|
|
72
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];
|