@emilgroup/notification-sdk 0.8.1-beta.22 → 0.8.1-beta.24
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/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/notification-sdk@0.8.1-beta.
|
|
20
|
+
npm install @emilgroup/notification-sdk@0.8.1-beta.24 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/notification-sdk@0.8.1-beta.
|
|
24
|
+
yarn add @emilgroup/notification-sdk@0.8.1-beta.24
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -29,11 +29,23 @@ export interface EmailMessageClass {
|
|
|
29
29
|
*/
|
|
30
30
|
'code': string;
|
|
31
31
|
/**
|
|
32
|
-
* Thread code this message belongs to
|
|
32
|
+
* Thread code this message belongs to. Empty only while an inbound message is still being correlated.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof EmailMessageClass
|
|
35
35
|
*/
|
|
36
36
|
'threadCode': string;
|
|
37
|
+
/**
|
|
38
|
+
* Correlation state of an inbound message: pending, matched (thread and entity known) or unassigned (thread known, no entity yet)
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof EmailMessageClass
|
|
41
|
+
*/
|
|
42
|
+
'matchStatus': EmailMessageClassMatchStatusEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Provider that received an inbound message
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof EmailMessageClass
|
|
47
|
+
*/
|
|
48
|
+
'provider'?: EmailMessageClassProviderEnum;
|
|
37
49
|
/**
|
|
38
50
|
* Direction of the email
|
|
39
51
|
* @type {string}
|
|
@@ -149,6 +161,17 @@ export interface EmailMessageClass {
|
|
|
149
161
|
*/
|
|
150
162
|
'entityNumber'?: string;
|
|
151
163
|
}
|
|
164
|
+
export declare const EmailMessageClassMatchStatusEnum: {
|
|
165
|
+
readonly Pending: "pending";
|
|
166
|
+
readonly Matched: "matched";
|
|
167
|
+
readonly Unassigned: "unassigned";
|
|
168
|
+
};
|
|
169
|
+
export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
|
|
170
|
+
export declare const EmailMessageClassProviderEnum: {
|
|
171
|
+
readonly Ses: "ses";
|
|
172
|
+
readonly Msgraph: "msgraph";
|
|
173
|
+
};
|
|
174
|
+
export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
|
|
152
175
|
export declare const EmailMessageClassDirectionEnum: {
|
|
153
176
|
readonly Outbound: "outbound";
|
|
154
177
|
readonly Inbound: "inbound";
|
|
@@ -13,7 +13,16 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.EmailMessageClassDeliveryStatusEnum = exports.EmailMessageClassDirectionEnum = void 0;
|
|
16
|
+
exports.EmailMessageClassDeliveryStatusEnum = exports.EmailMessageClassDirectionEnum = exports.EmailMessageClassProviderEnum = exports.EmailMessageClassMatchStatusEnum = void 0;
|
|
17
|
+
exports.EmailMessageClassMatchStatusEnum = {
|
|
18
|
+
Pending: 'pending',
|
|
19
|
+
Matched: 'matched',
|
|
20
|
+
Unassigned: 'unassigned'
|
|
21
|
+
};
|
|
22
|
+
exports.EmailMessageClassProviderEnum = {
|
|
23
|
+
Ses: 'ses',
|
|
24
|
+
Msgraph: 'msgraph'
|
|
25
|
+
};
|
|
17
26
|
exports.EmailMessageClassDirectionEnum = {
|
|
18
27
|
Outbound: 'outbound',
|
|
19
28
|
Inbound: 'inbound'
|
|
@@ -34,11 +34,23 @@ export interface EmailMessageClass {
|
|
|
34
34
|
*/
|
|
35
35
|
'code': string;
|
|
36
36
|
/**
|
|
37
|
-
* Thread code this message belongs to
|
|
37
|
+
* Thread code this message belongs to. Empty only while an inbound message is still being correlated.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof EmailMessageClass
|
|
40
40
|
*/
|
|
41
41
|
'threadCode': string;
|
|
42
|
+
/**
|
|
43
|
+
* Correlation state of an inbound message: pending, matched (thread and entity known) or unassigned (thread known, no entity yet)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EmailMessageClass
|
|
46
|
+
*/
|
|
47
|
+
'matchStatus': EmailMessageClassMatchStatusEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Provider that received an inbound message
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof EmailMessageClass
|
|
52
|
+
*/
|
|
53
|
+
'provider'?: EmailMessageClassProviderEnum;
|
|
42
54
|
/**
|
|
43
55
|
* Direction of the email
|
|
44
56
|
* @type {string}
|
|
@@ -155,6 +167,19 @@ export interface EmailMessageClass {
|
|
|
155
167
|
'entityNumber'?: string;
|
|
156
168
|
}
|
|
157
169
|
|
|
170
|
+
export const EmailMessageClassMatchStatusEnum = {
|
|
171
|
+
Pending: 'pending',
|
|
172
|
+
Matched: 'matched',
|
|
173
|
+
Unassigned: 'unassigned'
|
|
174
|
+
} as const;
|
|
175
|
+
|
|
176
|
+
export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
|
|
177
|
+
export const EmailMessageClassProviderEnum = {
|
|
178
|
+
Ses: 'ses',
|
|
179
|
+
Msgraph: 'msgraph'
|
|
180
|
+
} as const;
|
|
181
|
+
|
|
182
|
+
export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
|
|
158
183
|
export const EmailMessageClassDirectionEnum = {
|
|
159
184
|
Outbound: 'outbound',
|
|
160
185
|
Inbound: 'inbound'
|