From b53096a2d4816ed96e22fbf6e9022227c695bdcb Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 21 Jun 2024 09:19:11 +0000 Subject: [PATCH] feat: update generated APIs --- .../src/api/tem/v1alpha1/marshalling.gen.ts | 5 +- .../clients/src/api/tem/v1alpha1/types.gen.ts | 2 +- .../api/tem/v1alpha1/validation-rules.gen.ts | 64 +++++++++++++++++++ 3 files changed, 66 insertions(+), 5 deletions(-) diff --git a/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts index e6c76cb02..5a7bfe369 100644 --- a/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/marshalling.gen.ts @@ -426,10 +426,7 @@ export const marshalCreateEmailRequest = ( request.cc !== undefined ? request.cc.map(elt => marshalCreateEmailRequestAddress(elt, defaults)) : undefined, - from: - request.from !== undefined - ? marshalCreateEmailRequestAddress(request.from, defaults) - : undefined, + from: marshalCreateEmailRequestAddress(request.from, defaults), html: request.html, project_id: request.projectId ?? defaults.defaultProjectId, send_before: request.sendBefore, diff --git a/packages/clients/src/api/tem/v1alpha1/types.gen.ts b/packages/clients/src/api/tem/v1alpha1/types.gen.ts index c64467905..09ba64837 100644 --- a/packages/clients/src/api/tem/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/types.gen.ts @@ -347,7 +347,7 @@ export type CreateEmailRequest = { */ region?: Region /** Sender information. Must be from a checked domain declared in the Project. */ - from?: CreateEmailRequestAddress + from: CreateEmailRequestAddress /** An array of the primary recipient's information. */ to?: CreateEmailRequestAddress[] /** An array of the carbon copy recipient's information. */ diff --git a/packages/clients/src/api/tem/v1alpha1/validation-rules.gen.ts b/packages/clients/src/api/tem/v1alpha1/validation-rules.gen.ts index 7155cecfb..b37dee577 100644 --- a/packages/clients/src/api/tem/v1alpha1/validation-rules.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/validation-rules.gen.ts @@ -1,6 +1,70 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. +export const CreateDomainRequest = { + domainName: { + maxLength: 255, + minLength: 1, + }, +} + +export const CreateEmailRequest = { + subject: { + minLength: 6, + }, +} + +export const CreateEmailRequestAddress = { + email: { + minLength: 1, + }, +} + +export const CreateEmailRequestAttachment = { + name: { + minLength: 1, + }, + type: { + minLength: 1, + }, +} + +export const CreateEmailRequestHeader = { + key: { + minLength: 1, + }, + value: { + minLength: 1, + }, +} + +export const ListDomainsRequest = { + page: { + greaterThan: 0, + }, + pageSize: { + greaterThanOrEqual: 1, + lessThanOrEqual: 1000, + }, +} + +export const ListEmailsRequest = { + page: { + greaterThan: 0, + }, + pageSize: { + greaterThanOrEqual: 1, + lessThanOrEqual: 1000, + }, + search: { + maxLength: 100, + minLength: 3, + }, + subject: { + minLength: 6, + }, +} + export const ListWebhookEventsRequest = { page: { greaterThan: 0,