@emilgroup/notification-sdk 0.8.1-beta.40 → 0.8.1-beta.42
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 +8 -0
- package/README.md +2 -2
- package/api/email-subscriptions-api.ts +559 -0
- package/api/email-tracking-api.ts +16 -16
- package/api.ts +2 -0
- package/base.ts +36 -15
- package/configuration.ts +11 -0
- package/dist/api/email-subscriptions-api.d.ts +319 -0
- package/dist/api/email-subscriptions-api.js +537 -0
- package/dist/api/email-tracking-api.d.ts +16 -16
- package/dist/api/email-tracking-api.js +13 -13
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +1 -0
- package/dist/base.js +36 -16
- package/dist/configuration.d.ts +9 -0
- package/dist/configuration.js +1 -0
- package/dist/models/email-message-class.d.ts +7 -2
- package/dist/models/email-message-class.js +0 -1
- package/dist/models/email-message-summary-class.d.ts +85 -0
- package/dist/models/email-message-summary-class.js +27 -0
- package/dist/models/email-subscription-class.d.ts +104 -0
- package/dist/models/email-subscription-class.js +23 -0
- package/dist/models/email-thread-class.d.ts +25 -0
- package/dist/models/get-email-subscription-response-class.d.ts +25 -0
- package/dist/models/get-email-subscription-response-class.js +15 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/list-email-subscriptions-response-class.d.ts +43 -0
- package/dist/models/list-email-subscriptions-response-class.js +15 -0
- package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +24 -0
- package/dist/models/reconcile-email-subscriptions-request-dto.js +15 -0
- package/dist/models/reconcile-email-subscriptions-response-class.d.ts +48 -0
- package/dist/models/reconcile-email-subscriptions-response-class.js +15 -0
- package/dist/models/renew-email-subscription-response-class.d.ts +25 -0
- package/dist/models/renew-email-subscription-response-class.js +15 -0
- package/models/email-message-class.ts +7 -2
- package/models/email-message-summary-class.ts +95 -0
- package/models/email-subscription-class.ts +113 -0
- package/models/email-thread-class.ts +25 -0
- package/models/get-email-subscription-response-class.ts +31 -0
- package/models/index.ts +7 -0
- package/models/list-email-subscriptions-response-class.ts +49 -0
- package/models/reconcile-email-subscriptions-request-dto.ts +30 -0
- package/models/reconcile-email-subscriptions-response-class.ts +54 -0
- package/models/renew-email-subscription-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
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.EmailSubscriptionClassStatusEnum = void 0;
|
|
17
|
+
exports.EmailSubscriptionClassStatusEnum = {
|
|
18
|
+
Pending: 'pending',
|
|
19
|
+
Active: 'active',
|
|
20
|
+
Failed: 'failed',
|
|
21
|
+
Deleting: 'deleting',
|
|
22
|
+
DeletionFailed: 'deletion-failed'
|
|
23
|
+
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { EmailMessageSummaryClass } from './email-message-summary-class';
|
|
12
13
|
import { EntityRefClass } from './entity-ref-class';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -76,6 +77,30 @@ export interface EmailThreadClass {
|
|
|
76
77
|
* @memberof EmailThreadClass
|
|
77
78
|
*/
|
|
78
79
|
'updatedAt': string;
|
|
80
|
+
/**
|
|
81
|
+
* Number of messages in the thread. Delivery reports (bounces) are not counted.
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof EmailThreadClass
|
|
84
|
+
*/
|
|
85
|
+
'messageCount': number;
|
|
86
|
+
/**
|
|
87
|
+
* When the newest message of the thread was received, or sent for an outbound message
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof EmailThreadClass
|
|
90
|
+
*/
|
|
91
|
+
'lastMessageAt'?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Newest message of the thread, the one a thread row in a list shows. Set when listing threads.
|
|
94
|
+
* @type {EmailMessageSummaryClass}
|
|
95
|
+
* @memberof EmailThreadClass
|
|
96
|
+
*/
|
|
97
|
+
'latestMessage'?: EmailMessageSummaryClass;
|
|
98
|
+
/**
|
|
99
|
+
* Every message of the thread, newest first. Only filled when listing with expand=messages; bodies are fetched per message.
|
|
100
|
+
* @type {Array<EmailMessageSummaryClass>}
|
|
101
|
+
* @memberof EmailThreadClass
|
|
102
|
+
*/
|
|
103
|
+
'messages': Array<EmailMessageSummaryClass>;
|
|
79
104
|
}
|
|
80
105
|
export declare const EmailThreadClassStatusEnum: {
|
|
81
106
|
readonly Open: "open";
|
|
@@ -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 { EmailSubscriptionClass } from './email-subscription-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetEmailSubscriptionResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GetEmailSubscriptionResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The email subscription response.
|
|
21
|
+
* @type {EmailSubscriptionClass}
|
|
22
|
+
* @memberof GetEmailSubscriptionResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'emailSubscription': EmailSubscriptionClass;
|
|
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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -11,9 +11,12 @@ export * from './delete-notification-template-request-dto';
|
|
|
11
11
|
export * from './download-attachment-response-class';
|
|
12
12
|
export * from './email-attachment-class';
|
|
13
13
|
export * from './email-message-class';
|
|
14
|
+
export * from './email-message-summary-class';
|
|
15
|
+
export * from './email-subscription-class';
|
|
14
16
|
export * from './email-thread-class';
|
|
15
17
|
export * from './entity-ref-class';
|
|
16
18
|
export * from './get-email-message-response-class';
|
|
19
|
+
export * from './get-email-subscription-response-class';
|
|
17
20
|
export * from './get-email-thread-response-class';
|
|
18
21
|
export * from './get-layout-request-dto';
|
|
19
22
|
export * from './get-layout-response-class';
|
|
@@ -29,10 +32,14 @@ export * from './inline-response503';
|
|
|
29
32
|
export * from './layout-class';
|
|
30
33
|
export * from './list-email-attachments-response-class';
|
|
31
34
|
export * from './list-email-messages-response-class';
|
|
35
|
+
export * from './list-email-subscriptions-response-class';
|
|
32
36
|
export * from './list-email-threads-response-class';
|
|
33
37
|
export * from './list-layouts-response-class';
|
|
34
38
|
export * from './list-notification-templates-response-class';
|
|
35
39
|
export * from './notification-template-class';
|
|
40
|
+
export * from './reconcile-email-subscriptions-request-dto';
|
|
41
|
+
export * from './reconcile-email-subscriptions-response-class';
|
|
42
|
+
export * from './renew-email-subscription-response-class';
|
|
36
43
|
export * from './s3-document-dto';
|
|
37
44
|
export * from './send-email-request-dto';
|
|
38
45
|
export * from './send-email-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -27,9 +27,12 @@ __exportStar(require("./delete-notification-template-request-dto"), exports);
|
|
|
27
27
|
__exportStar(require("./download-attachment-response-class"), exports);
|
|
28
28
|
__exportStar(require("./email-attachment-class"), exports);
|
|
29
29
|
__exportStar(require("./email-message-class"), exports);
|
|
30
|
+
__exportStar(require("./email-message-summary-class"), exports);
|
|
31
|
+
__exportStar(require("./email-subscription-class"), exports);
|
|
30
32
|
__exportStar(require("./email-thread-class"), exports);
|
|
31
33
|
__exportStar(require("./entity-ref-class"), exports);
|
|
32
34
|
__exportStar(require("./get-email-message-response-class"), exports);
|
|
35
|
+
__exportStar(require("./get-email-subscription-response-class"), exports);
|
|
33
36
|
__exportStar(require("./get-email-thread-response-class"), exports);
|
|
34
37
|
__exportStar(require("./get-layout-request-dto"), exports);
|
|
35
38
|
__exportStar(require("./get-layout-response-class"), exports);
|
|
@@ -45,10 +48,14 @@ __exportStar(require("./inline-response503"), exports);
|
|
|
45
48
|
__exportStar(require("./layout-class"), exports);
|
|
46
49
|
__exportStar(require("./list-email-attachments-response-class"), exports);
|
|
47
50
|
__exportStar(require("./list-email-messages-response-class"), exports);
|
|
51
|
+
__exportStar(require("./list-email-subscriptions-response-class"), exports);
|
|
48
52
|
__exportStar(require("./list-email-threads-response-class"), exports);
|
|
49
53
|
__exportStar(require("./list-layouts-response-class"), exports);
|
|
50
54
|
__exportStar(require("./list-notification-templates-response-class"), exports);
|
|
51
55
|
__exportStar(require("./notification-template-class"), exports);
|
|
56
|
+
__exportStar(require("./reconcile-email-subscriptions-request-dto"), exports);
|
|
57
|
+
__exportStar(require("./reconcile-email-subscriptions-response-class"), exports);
|
|
58
|
+
__exportStar(require("./renew-email-subscription-response-class"), exports);
|
|
52
59
|
__exportStar(require("./s3-document-dto"), exports);
|
|
53
60
|
__exportStar(require("./send-email-request-dto"), exports);
|
|
54
61
|
__exportStar(require("./send-email-response-class"), exports);
|
|
@@ -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
|
+
import { EmailSubscriptionClass } from './email-subscription-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListEmailSubscriptionsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface ListEmailSubscriptionsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* List of email subscriptions
|
|
21
|
+
* @type {Array<EmailSubscriptionClass>}
|
|
22
|
+
* @memberof ListEmailSubscriptionsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'items': Array<EmailSubscriptionClass>;
|
|
25
|
+
/**
|
|
26
|
+
* Token for next page of results
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ListEmailSubscriptionsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'nextPageToken': string;
|
|
31
|
+
/**
|
|
32
|
+
* Total number of items
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ListEmailSubscriptionsResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'totalItems': number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items per page
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ListEmailSubscriptionsResponseClass
|
|
41
|
+
*/
|
|
42
|
+
'itemsPerPage': number;
|
|
43
|
+
}
|
|
@@ -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 });
|
|
@@ -0,0 +1,24 @@
|
|
|
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 ReconcileEmailSubscriptionsRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ReconcileEmailSubscriptionsRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Reconcile the email channel of this product. Omit it to reconcile the tenant-wide email channel.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ReconcileEmailSubscriptionsRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'productSlug'?: string;
|
|
24
|
+
}
|
|
@@ -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 });
|
|
@@ -0,0 +1,48 @@
|
|
|
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 ReconcileEmailSubscriptionsResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface ReconcileEmailSubscriptionsResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Subscriptions created for mailboxes and folders that had none
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ReconcileEmailSubscriptionsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'created': number;
|
|
24
|
+
/**
|
|
25
|
+
* Subscriptions deleted because their mailbox or folder left the email channel
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ReconcileEmailSubscriptionsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'deleted': number;
|
|
30
|
+
/**
|
|
31
|
+
* Subscriptions created again because they expired or failed
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ReconcileEmailSubscriptionsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'resubscribed': number;
|
|
36
|
+
/**
|
|
37
|
+
* Subscriptions that were already in place
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ReconcileEmailSubscriptionsResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'unchanged': number;
|
|
42
|
+
/**
|
|
43
|
+
* Subscriptions whose Graph call failed. The sweep retries them, and the email subscription list shows the error.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ReconcileEmailSubscriptionsResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'failed': number;
|
|
48
|
+
}
|
|
@@ -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 });
|
|
@@ -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 { EmailSubscriptionClass } from './email-subscription-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RenewEmailSubscriptionResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface RenewEmailSubscriptionResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The email subscription response.
|
|
21
|
+
* @type {EmailSubscriptionClass}
|
|
22
|
+
* @memberof RenewEmailSubscriptionResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'emailSubscription': EmailSubscriptionClass;
|
|
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 });
|
|
@@ -107,7 +107,7 @@ export interface EmailMessageClass {
|
|
|
107
107
|
*/
|
|
108
108
|
'bodyHtml'?: string;
|
|
109
109
|
/**
|
|
110
|
-
* Delivery status of the email. Outbound emails move through pending → sent
|
|
110
|
+
* Delivery status of the email. Outbound emails move through pending → sent, then bounced if a bounce arrives; failed marks a system-level send failure; inbound emails are always received.
|
|
111
111
|
* @type {string}
|
|
112
112
|
* @memberof EmailMessageClass
|
|
113
113
|
*/
|
|
@@ -160,6 +160,12 @@ export interface EmailMessageClass {
|
|
|
160
160
|
* @memberof EmailMessageClass
|
|
161
161
|
*/
|
|
162
162
|
'attachments': Array<EmailAttachmentClass>;
|
|
163
|
+
/**
|
|
164
|
+
* Inbound only: how many attachments the email arrived with, images embedded in the body not counted. At most 10 attachments and 35 MB in total are kept, in order, stopping at the first that does not fit; when this is higher than the length of `attachments`, the rest are only in the original email.
|
|
165
|
+
* @type {number}
|
|
166
|
+
* @memberof EmailMessageClass
|
|
167
|
+
*/
|
|
168
|
+
'attachmentCount'?: number;
|
|
163
169
|
/**
|
|
164
170
|
* The entity the message\'s thread is linked to. Not set while the message is unassigned.
|
|
165
171
|
* @type {EntityRefClass}
|
|
@@ -202,7 +208,6 @@ export type EmailMessageClassDirectionEnum = typeof EmailMessageClassDirectionEn
|
|
|
202
208
|
export const EmailMessageClassDeliveryStatusEnum = {
|
|
203
209
|
Pending: 'pending',
|
|
204
210
|
Sent: 'sent',
|
|
205
|
-
Delivered: 'delivered',
|
|
206
211
|
Bounced: 'bounced',
|
|
207
212
|
Failed: 'failed',
|
|
208
213
|
Received: 'received'
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL NotificationService
|
|
5
|
+
* The EMIL NotificationService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface EmailMessageSummaryClass
|
|
21
|
+
*/
|
|
22
|
+
export interface EmailMessageSummaryClass {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier code for the email message. Use it to fetch the full message.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof EmailMessageSummaryClass
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the message was received or sent
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof EmailMessageSummaryClass
|
|
33
|
+
*/
|
|
34
|
+
'direction': EmailMessageSummaryClassDirectionEnum;
|
|
35
|
+
/**
|
|
36
|
+
* Sender email address
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof EmailMessageSummaryClass
|
|
39
|
+
*/
|
|
40
|
+
'fromAddress': string;
|
|
41
|
+
/**
|
|
42
|
+
* Recipient email addresses, comma-separated
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof EmailMessageSummaryClass
|
|
45
|
+
*/
|
|
46
|
+
'toAddresses': string;
|
|
47
|
+
/**
|
|
48
|
+
* Email subject
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof EmailMessageSummaryClass
|
|
51
|
+
*/
|
|
52
|
+
'subject'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Delivery status of the message
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof EmailMessageSummaryClass
|
|
57
|
+
*/
|
|
58
|
+
'deliveryStatus': EmailMessageSummaryClassDeliveryStatusEnum;
|
|
59
|
+
/**
|
|
60
|
+
* Timestamp when the email was sent
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof EmailMessageSummaryClass
|
|
63
|
+
*/
|
|
64
|
+
'sentAt'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Timestamp when the email was received
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof EmailMessageSummaryClass
|
|
69
|
+
*/
|
|
70
|
+
'receivedAt'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Created at timestamp
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof EmailMessageSummaryClass
|
|
75
|
+
*/
|
|
76
|
+
'createdAt': string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const EmailMessageSummaryClassDirectionEnum = {
|
|
80
|
+
Outbound: 'outbound',
|
|
81
|
+
Inbound: 'inbound'
|
|
82
|
+
} as const;
|
|
83
|
+
|
|
84
|
+
export type EmailMessageSummaryClassDirectionEnum = typeof EmailMessageSummaryClassDirectionEnum[keyof typeof EmailMessageSummaryClassDirectionEnum];
|
|
85
|
+
export const EmailMessageSummaryClassDeliveryStatusEnum = {
|
|
86
|
+
Pending: 'pending',
|
|
87
|
+
Sent: 'sent',
|
|
88
|
+
Bounced: 'bounced',
|
|
89
|
+
Failed: 'failed',
|
|
90
|
+
Received: 'received'
|
|
91
|
+
} as const;
|
|
92
|
+
|
|
93
|
+
export type EmailMessageSummaryClassDeliveryStatusEnum = typeof EmailMessageSummaryClassDeliveryStatusEnum[keyof typeof EmailMessageSummaryClassDeliveryStatusEnum];
|
|
94
|
+
|
|
95
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL NotificationService
|
|
5
|
+
* The EMIL NotificationService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface EmailSubscriptionClass
|
|
21
|
+
*/
|
|
22
|
+
export interface EmailSubscriptionClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof EmailSubscriptionClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Tenant the subscription belongs to
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof EmailSubscriptionClass
|
|
33
|
+
*/
|
|
34
|
+
'tenantSlug': string;
|
|
35
|
+
/**
|
|
36
|
+
* Product whose email channel configures the mailbox. Empty for the tenant-wide email channel.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof EmailSubscriptionClass
|
|
39
|
+
*/
|
|
40
|
+
'productSlug'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Mailbox whose incoming mail is delivered to the platform
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof EmailSubscriptionClass
|
|
45
|
+
*/
|
|
46
|
+
'mailbox': string;
|
|
47
|
+
/**
|
|
48
|
+
* Mailbox folder the subscription watches
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof EmailSubscriptionClass
|
|
51
|
+
*/
|
|
52
|
+
'folder': string;
|
|
53
|
+
/**
|
|
54
|
+
* Id of the subscription in Microsoft Graph. Empty while the subscription is not created yet.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof EmailSubscriptionClass
|
|
57
|
+
*/
|
|
58
|
+
'subscriptionId'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Subscription status. active: Graph delivers new mail. pending: the subscription still has to be created. failed: Graph could not renew it in time. deleting / deletion-failed: the mailbox was removed from the email channel and the subscription is being deleted.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof EmailSubscriptionClass
|
|
63
|
+
*/
|
|
64
|
+
'status': EmailSubscriptionClassStatusEnum;
|
|
65
|
+
/**
|
|
66
|
+
* When Microsoft Graph stops delivering mail unless the subscription is renewed. Renewed automatically within the last 24 hours.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof EmailSubscriptionClass
|
|
69
|
+
*/
|
|
70
|
+
'expiresAt'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* When the subscription was last created or renewed
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof EmailSubscriptionClass
|
|
75
|
+
*/
|
|
76
|
+
'lastRenewedAt'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* When Microsoft Graph last notified about new mail
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof EmailSubscriptionClass
|
|
81
|
+
*/
|
|
82
|
+
'lastNotificationAt'?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Error of the last failed Graph call, empty once it succeeds
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof EmailSubscriptionClass
|
|
87
|
+
*/
|
|
88
|
+
'lastError'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Created at timestamp
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof EmailSubscriptionClass
|
|
93
|
+
*/
|
|
94
|
+
'createdAt': string;
|
|
95
|
+
/**
|
|
96
|
+
* Updated at timestamp
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof EmailSubscriptionClass
|
|
99
|
+
*/
|
|
100
|
+
'updatedAt': string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const EmailSubscriptionClassStatusEnum = {
|
|
104
|
+
Pending: 'pending',
|
|
105
|
+
Active: 'active',
|
|
106
|
+
Failed: 'failed',
|
|
107
|
+
Deleting: 'deleting',
|
|
108
|
+
DeletionFailed: 'deletion-failed'
|
|
109
|
+
} as const;
|
|
110
|
+
|
|
111
|
+
export type EmailSubscriptionClassStatusEnum = typeof EmailSubscriptionClassStatusEnum[keyof typeof EmailSubscriptionClassStatusEnum];
|
|
112
|
+
|
|
113
|
+
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { EmailMessageSummaryClass } from './email-message-summary-class';
|
|
16
17
|
import { EntityRefClass } from './entity-ref-class';
|
|
17
18
|
|
|
18
19
|
/**
|
|
@@ -81,6 +82,30 @@ export interface EmailThreadClass {
|
|
|
81
82
|
* @memberof EmailThreadClass
|
|
82
83
|
*/
|
|
83
84
|
'updatedAt': string;
|
|
85
|
+
/**
|
|
86
|
+
* Number of messages in the thread. Delivery reports (bounces) are not counted.
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof EmailThreadClass
|
|
89
|
+
*/
|
|
90
|
+
'messageCount': number;
|
|
91
|
+
/**
|
|
92
|
+
* When the newest message of the thread was received, or sent for an outbound message
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof EmailThreadClass
|
|
95
|
+
*/
|
|
96
|
+
'lastMessageAt'?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Newest message of the thread, the one a thread row in a list shows. Set when listing threads.
|
|
99
|
+
* @type {EmailMessageSummaryClass}
|
|
100
|
+
* @memberof EmailThreadClass
|
|
101
|
+
*/
|
|
102
|
+
'latestMessage'?: EmailMessageSummaryClass;
|
|
103
|
+
/**
|
|
104
|
+
* Every message of the thread, newest first. Only filled when listing with expand=messages; bodies are fetched per message.
|
|
105
|
+
* @type {Array<EmailMessageSummaryClass>}
|
|
106
|
+
* @memberof EmailThreadClass
|
|
107
|
+
*/
|
|
108
|
+
'messages': Array<EmailMessageSummaryClass>;
|
|
84
109
|
}
|
|
85
110
|
|
|
86
111
|
export const EmailThreadClassStatusEnum = {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL NotificationService
|
|
5
|
+
* The EMIL NotificationService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { EmailSubscriptionClass } from './email-subscription-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GetEmailSubscriptionResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetEmailSubscriptionResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The email subscription response.
|
|
26
|
+
* @type {EmailSubscriptionClass}
|
|
27
|
+
* @memberof GetEmailSubscriptionResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'emailSubscription': EmailSubscriptionClass;
|
|
30
|
+
}
|
|
31
|
+
|