From 3d117359f7cf1c35738b6ddd39c4e798440aa280 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 24 Dec 2024 14:12:29 +0000 Subject: [PATCH] feat: update generated APIs --- .../src/api/webhosting/v1/marshalling.gen.ts | 2 ++ .../clients/src/api/webhosting/v1/types.gen.ts | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/clients/src/api/webhosting/v1/marshalling.gen.ts b/packages/clients/src/api/webhosting/v1/marshalling.gen.ts index 0b93660f4..f79cfabcd 100644 --- a/packages/clients/src/api/webhosting/v1/marshalling.gen.ts +++ b/packages/clients/src/api/webhosting/v1/marshalling.gen.ts @@ -243,8 +243,10 @@ const unmarshalOffer = (data: unknown): Offer => { controlPanelName: data.control_panel_name, endOfLife: data.end_of_life, id: data.id, + name: data.name, options: unmarshalArrayOfObject(data.options, unmarshalOfferOption), price: data.price ? unmarshalMoney(data.price) : undefined, + quotaWarning: data.quota_warning, } as Offer } diff --git a/packages/clients/src/api/webhosting/v1/types.gen.ts b/packages/clients/src/api/webhosting/v1/types.gen.ts index 5ad3bf999..d84ff203d 100644 --- a/packages/clients/src/api/webhosting/v1/types.gen.ts +++ b/packages/clients/src/api/webhosting/v1/types.gen.ts @@ -65,8 +65,13 @@ export type OfferOptionName = | 'ram_gb' | 'backup' | 'dedicated_ip' + | 'email_storage_gb' + | 'database_count' -export type OfferOptionWarning = 'unknown_warning' | 'quota_exceeded_warning' +export type OfferOptionWarning = + | 'unknown_warning' + | 'quota_exceeded_warning' + | 'usage_low_warning' export type PlatformPlatformGroup = 'unknown_group' | 'default' | 'premium' @@ -169,6 +174,8 @@ export interface HostingUser { export interface Offer { /** Offer ID. */ id: string + /** Offer name. */ + name: string /** Unique identifier used for billing. */ billingOperationPath: string /** Options available for the offer. */ @@ -184,6 +191,11 @@ export interface Offer { controlPanelName: string /** Indicates if the offer has reached its end of life. */ endOfLife: boolean + /** + * Defines a warning if the maximum value for an option in the offer is + * exceeded. + */ + quotaWarning: OfferOptionWarning } export interface Platform {