Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/clients/src/api/tem/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export class API extends ParentAPI {
['project_id', request.projectId],
['since', request.since],
['statuses', request.statuses],
['subject', request.subject],
['until', request.until],
),
},
Expand Down
2 changes: 2 additions & 0 deletions packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const unmarshalEmail = (data: unknown) => {
rcptType: data.rcpt_type,
status: data.status,
statusDetails: data.status_details,
subject: data.subject,
tryCount: data.try_count,
updatedAt: unmarshalDate(data.updated_at),
} as Email
Expand Down Expand Up @@ -177,6 +178,7 @@ export const marshalCreateDomainRequest = (
request: CreateDomainRequest,
defaults: DefaultValues,
): Record<string, unknown> => ({
accept_tos: request.acceptTos,
domain_name: request.domainName,
project_id: request.projectId ?? defaults.defaultProjectId,
})
Expand Down
8 changes: 8 additions & 0 deletions packages/clients/src/api/tem/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export interface Email {
rcptTo: string
/** Type of the recipient. */
rcptType: EmailRcptType
/** Subject of the email. */
subject: string
/** Creation date of the email object. */
createdAt?: Date
/** Last update time of the email object. */
Expand Down Expand Up @@ -240,6 +242,8 @@ export type ListEmailsRequest = {
mailTo?: string
/** Optional, list emails having any of this status. */
statuses?: EmailStatus[]
/** Optional, list emails having this subject. */
subject?: string
}

export type GetStatisticsRequest = {
Expand Down Expand Up @@ -279,8 +283,12 @@ export type CreateDomainRequest = {
* config.
*/
region?: Region
/** ID of the project to which the domain belongs. */
projectId?: string
/** Fully qualified domain dame. */
domainName: string
/** Accept the Scaleway Terms of Service. */
acceptTos: boolean
}

export type GetDomainRequest = {
Expand Down