File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
packages/clients/src/api/tem/v1alpha1 Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ export class API extends ParentAPI {
135135 [ 'project_id' , request . projectId ] ,
136136 [ 'since' , request . since ] ,
137137 [ 'statuses' , request . statuses ] ,
138+ [ 'subject' , request . subject ] ,
138139 [ 'until' , request . until ] ,
139140 ) ,
140141 } ,
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ export const unmarshalEmail = (data: unknown) => {
9696 rcptType : data . rcpt_type ,
9797 status : data . status ,
9898 statusDetails : data . status_details ,
99+ subject : data . subject ,
99100 tryCount : data . try_count ,
100101 updatedAt : unmarshalDate ( data . updated_at ) ,
101102 } as Email
@@ -177,6 +178,7 @@ export const marshalCreateDomainRequest = (
177178 request : CreateDomainRequest ,
178179 defaults : DefaultValues ,
179180) : Record < string , unknown > => ( {
181+ accept_tos : request . acceptTos ,
180182 domain_name : request . domainName ,
181183 project_id : request . projectId ?? defaults . defaultProjectId ,
182184} )
Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ export interface Email {
100100 rcptTo : string
101101 /** Type of the recipient. */
102102 rcptType : EmailRcptType
103+ /** Subject of the email. */
104+ subject : string
103105 /** Creation date of the email object. */
104106 createdAt ?: Date
105107 /** Last update time of the email object. */
@@ -240,6 +242,8 @@ export type ListEmailsRequest = {
240242 mailTo ?: string
241243 /** Optional, list emails having any of this status. */
242244 statuses ?: EmailStatus [ ]
245+ /** Optional, list emails having this subject. */
246+ subject ?: string
243247}
244248
245249export type GetStatisticsRequest = {
@@ -279,8 +283,12 @@ export type CreateDomainRequest = {
279283 * config.
280284 */
281285 region ?: Region
286+ /** ID of the project to which the domain belongs. */
282287 projectId ?: string
288+ /** Fully qualified domain dame. */
283289 domainName : string
290+ /** Accept the Scaleway Terms of Service. */
291+ acceptTos : boolean
284292}
285293
286294export type GetDomainRequest = {
You can’t perform that action at this time.
0 commit comments