From 57b8a02179949e6ed751470c97c472c5855409f5 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 27 Sep 2024 14:30:05 +0000 Subject: [PATCH] feat: update generated APIs --- .../edge_services/v1alpha1/marshalling.gen.ts | 36 +++++----- .../api/edge_services/v1alpha1/types.gen.ts | 72 +++++++++---------- 2 files changed, 54 insertions(+), 54 deletions(-) diff --git a/packages/clients/src/api/edge_services/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/edge_services/v1alpha1/marshalling.gen.ts index 5a731abc9..363cb6608 100644 --- a/packages/clients/src/api/edge_services/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/edge_services/v1alpha1/marshalling.gen.ts @@ -193,24 +193,6 @@ export const unmarshalPipeline = (data: unknown): Pipeline => { } as Pipeline } -export const unmarshalPurgeRequest = (data: unknown): PurgeRequest => { - if (!isJSONObject(data)) { - throw new TypeError( - `Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`, - ) - } - - return { - all: data.all, - assets: data.assets, - createdAt: unmarshalDate(data.created_at), - id: data.id, - pipelineId: data.pipeline_id, - status: data.status, - updatedAt: unmarshalDate(data.updated_at), - } as PurgeRequest -} - const unmarshalTLSSecret = (data: unknown): TLSSecret => { if (!isJSONObject(data)) { throw new TypeError( @@ -245,6 +227,24 @@ export const unmarshalTLSStage = (data: unknown): TLSStage => { } as TLSStage } +export const unmarshalPurgeRequest = (data: unknown): PurgeRequest => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`, + ) + } + + return { + all: data.all, + assets: data.assets, + createdAt: unmarshalDate(data.created_at), + id: data.id, + pipelineId: data.pipeline_id, + status: data.status, + updatedAt: unmarshalDate(data.updated_at), + } as PurgeRequest +} + export const unmarshalCheckDomainResponse = ( data: unknown, ): CheckDomainResponse => { diff --git a/packages/clients/src/api/edge_services/v1alpha1/types.gen.ts b/packages/clients/src/api/edge_services/v1alpha1/types.gen.ts index c1bfafaec..8be9232b0 100644 --- a/packages/clients/src/api/edge_services/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/edge_services/v1alpha1/types.gen.ts @@ -126,11 +126,6 @@ export interface TLSSecret { region: Region } -export interface CheckPEMChainRequestSecretChain { - secretId: string - secretRegion: string -} - export interface BackendStage { /** ID of the backend stage. */ id: string @@ -242,37 +237,6 @@ export interface Pipeline { dnsStageId?: string } -export interface PlanDetails { - planName: PlanName - packageGb: number - pipelineLimit: number -} - -export interface PurgeRequest { - /** ID of the purge request. */ - id: string - /** Pipeline ID the purge request belongs to. */ - pipelineId: string - /** Status of the purge request. */ - status: PurgeRequestStatus - /** - * List of asserts to purge. - * - * One-of ('target'): at most one of 'assets', 'all' could be set. - */ - assets?: string[] - /** - * Defines whether to purge all content. - * - * One-of ('target'): at most one of 'assets', 'all' could be set. - */ - all?: boolean - /** Date the purge request was created. */ - createdAt?: Date - /** Date the purge request was last updated. */ - updatedAt?: Date -} - export interface TLSStage { /** ID of the TLS stage. */ id: string @@ -309,6 +273,42 @@ export interface TLSStage { backendStageId?: string } +export interface CheckPEMChainRequestSecretChain { + secretId: string + secretRegion: string +} + +export interface PlanDetails { + planName: PlanName + packageGb: number + pipelineLimit: number +} + +export interface PurgeRequest { + /** ID of the purge request. */ + id: string + /** Pipeline ID the purge request belongs to. */ + pipelineId: string + /** Status of the purge request. */ + status: PurgeRequestStatus + /** + * List of asserts to purge. + * + * One-of ('target'): at most one of 'assets', 'all' could be set. + */ + assets?: string[] + /** + * Defines whether to purge all content. + * + * One-of ('target'): at most one of 'assets', 'all' could be set. + */ + all?: boolean + /** Date the purge request was created. */ + createdAt?: Date + /** Date the purge request was last updated. */ + updatedAt?: Date +} + export interface TLSSecretsConfig { /** Secret information (from Secret Manager). */ tlsSecrets: TLSSecret[]