From e73792049698cd81068ce3cd30a77303767829f0 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 14 Mar 2023 15:36:00 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/tem/v1alpha1/api.gen.ts | 1 + packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts | 2 ++ packages/clients/src/api/tem/v1alpha1/types.gen.ts | 8 ++++++++ 3 files changed, 11 insertions(+) diff --git a/packages/clients/src/api/tem/v1alpha1/api.gen.ts b/packages/clients/src/api/tem/v1alpha1/api.gen.ts index 1e6ce9739..c70ce85fa 100644 --- a/packages/clients/src/api/tem/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/api.gen.ts @@ -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], ), }, diff --git a/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts index cce926710..2233caa43 100644 --- a/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts @@ -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 @@ -177,6 +178,7 @@ export const marshalCreateDomainRequest = ( request: CreateDomainRequest, defaults: DefaultValues, ): Record => ({ + accept_tos: request.acceptTos, domain_name: request.domainName, project_id: request.projectId ?? defaults.defaultProjectId, }) diff --git a/packages/clients/src/api/tem/v1alpha1/types.gen.ts b/packages/clients/src/api/tem/v1alpha1/types.gen.ts index 7ef8622f2..47319729f 100644 --- a/packages/clients/src/api/tem/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/types.gen.ts @@ -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. */ @@ -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 = { @@ -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 = {