File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
packages/clients/src/api/tem/v1alpha1 Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ export class API extends ParentAPI {
127
127
) } /emails`,
128
128
urlParams : urlParams (
129
129
[ 'domain_id' , request . domainId ] ,
130
+ [ 'flags' , request . flags ] ,
130
131
[ 'mail_from' , request . mailFrom ] ,
131
132
[ 'mail_rcpt' , request . mailRcpt ] ,
132
133
[ 'mail_to' , request . mailTo ] ,
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export type {
18
18
DomainStatistics ,
19
19
DomainStatus ,
20
20
Email ,
21
+ EmailFlag ,
21
22
EmailRcptType ,
22
23
EmailStatus ,
23
24
EmailTry ,
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ export const unmarshalEmail = (data: unknown) => {
118
118
119
119
return {
120
120
createdAt : unmarshalDate ( data . created_at ) ,
121
+ flags : data . flags ,
121
122
id : data . id ,
122
123
lastTries : unmarshalArrayOfObject ( data . last_tries , unmarshalEmailTry ) ,
123
124
mailFrom : data . mail_from ,
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ export type DomainStatus =
17
17
| 'revoked'
18
18
| 'pending'
19
19
20
+ export type EmailFlag = 'unknown_flag' | 'soft_bounce' | 'hard_bounce'
21
+
20
22
export type EmailRcptType = 'unknown_rcpt_type' | 'to' | 'cc' | 'bcc'
21
23
22
24
export type EmailStatus =
@@ -165,6 +167,11 @@ export interface Email {
165
167
tryCount : number
166
168
/** Information about the last three attempts to send the email. */
167
169
lastTries : EmailTry [ ]
170
+ /**
171
+ * Flags categorize emails. They allow you to obtain more information about
172
+ * recurring errors, for example.
173
+ */
174
+ flags : EmailFlag [ ]
168
175
}
169
176
170
177
/** Email. try. */
@@ -301,6 +308,8 @@ export type ListEmailsRequest = {
301
308
search ?: string
302
309
/** (Optional) List emails corresponding to specific criteria. */
303
310
orderBy ?: ListEmailsRequestOrderBy
311
+ /** (Optional) List emails containing only specific flags. */
312
+ flags ?: EmailFlag [ ]
304
313
}
305
314
306
315
export type GetStatisticsRequest = {
You can’t perform that action at this time.
0 commit comments