Skip to content

Commit 1905974

Browse files
authored
feat(tem): list emails by searching to all fields (#686)
1 parent 213764a commit 1905974

File tree

2 files changed

+8
-23
lines changed

2 files changed

+8
-23
lines changed

packages/clients/src/api/tem/v1alpha1/api.gen.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export class API extends ParentAPI {
135135
request.pageSize ?? this.client.settings.defaultPageSize,
136136
],
137137
['project_id', request.projectId],
138+
['search', request.search],
138139
['since', request.since],
139140
['statuses', request.statuses],
140141
['subject', request.subject],
@@ -146,15 +147,7 @@ export class API extends ParentAPI {
146147

147148
/**
148149
* List emails. Retrieve the list of emails sent from a specific domain or for
149-
* a specific Project or Organization. You must specify the `region`. You can
150-
* filter your emails in ascending or descending order using:
151-
*
152-
* - Created_at
153-
* - Updated_at
154-
* - Status
155-
* - Mail_from
156-
* - Mail_rcpt
157-
* - Subject
150+
* a specific Project or Organization. You must specify the `region`.
158151
*
159152
* @param request - The request {@link ListEmailsRequest}
160153
* @returns A Promise of ListEmailsResponse

packages/clients/src/api/tem/v1alpha1/types.gen.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ export type CreateEmailRequest = {
201201
region?: Region
202202
/** Sender information. Must be from a checked domain declared in the Project. */
203203
from?: CreateEmailRequestAddress
204-
/** Array of recipient information (limited to 1 recipient). */
204+
/** An array of the primary recipient's information. */
205205
to?: CreateEmailRequestAddress[]
206-
/** Array of recipient information (unimplemented). */
206+
/** An array of the carbon copy recipient's information. */
207207
cc?: CreateEmailRequestAddress[]
208-
/** Array of recipient information (unimplemented). */
208+
/** An array of the blind carbon copy recipient's information. */
209209
bcc?: CreateEmailRequestAddress[]
210210
/** Subject of the email. */
211211
subject: string
@@ -262,17 +262,9 @@ export type ListEmailsRequest = {
262262
statuses?: EmailStatus[]
263263
/** (Optional) List emails with this subject. */
264264
subject?: string
265-
/**
266-
* (Optional) List emails corresponding to specific criteria. You can filter
267-
* your emails in ascending or descending order using:
268-
*
269-
* - Created_at
270-
* - Updated_at
271-
* - Status
272-
* - Mail_from
273-
* - Mail_rcpt
274-
* - Subject.
275-
*/
265+
/** (Optional) List emails by searching to all fields. */
266+
search?: string
267+
/** (Optional) List emails corresponding to specific criteria. */
276268
orderBy?: ListEmailsRequestOrderBy
277269
}
278270

0 commit comments

Comments
 (0)