From 95161a0ea56bede7d724bb942dd752bb2b246353 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 27 Feb 2025 15:58:43 +0000 Subject: [PATCH] feat: update generated APIs --- .../src/api/mongodb/v1alpha1/index.gen.ts | 3 +++ .../clients/src/api/webhosting/v1/content.gen.ts | 8 -------- .../clients/src/api/webhosting/v1/index.gen.ts | 1 - .../src/api/webhosting/v1/marshalling.gen.ts | 3 +-- .../clients/src/api/webhosting/v1/types.gen.ts | 16 +++------------- 5 files changed, 7 insertions(+), 24 deletions(-) diff --git a/packages/clients/src/api/mongodb/v1alpha1/index.gen.ts b/packages/clients/src/api/mongodb/v1alpha1/index.gen.ts index af9f7d30a..c28d2ff6b 100644 --- a/packages/clients/src/api/mongodb/v1alpha1/index.gen.ts +++ b/packages/clients/src/api/mongodb/v1alpha1/index.gen.ts @@ -42,6 +42,7 @@ export type { NodeTypeVolumeType, RestoreSnapshotRequest, RestoreSnapshotRequestVolumeDetails, + SetUserRoleRequest, Setting, SettingPropertyType, Snapshot, @@ -52,6 +53,8 @@ export type { UpdateUserRequest, UpgradeInstanceRequest, User, + UserRole, + UserRoleRole, Version, Volume, VolumeType, diff --git a/packages/clients/src/api/webhosting/v1/content.gen.ts b/packages/clients/src/api/webhosting/v1/content.gen.ts index 2ec23fbde..405473bbe 100644 --- a/packages/clients/src/api/webhosting/v1/content.gen.ts +++ b/packages/clients/src/api/webhosting/v1/content.gen.ts @@ -4,7 +4,6 @@ import type { DomainAvailabilityStatus, DomainStatus, HostingStatus, - HostingSummaryStatus, } from './types.gen' /** Lists transient statutes of the enum {@link DomainAvailabilityStatus}. */ @@ -20,10 +19,3 @@ export const HOSTING_TRANSIENT_STATUSES: HostingStatus[] = [ 'deleting', 'migrating', ] - -/** Lists transient statutes of the enum {@link HostingSummaryStatus}. */ -export const HOSTING_SUMMARY_TRANSIENT_STATUSES: HostingSummaryStatus[] = [ - 'delivering', - 'deleting', - 'migrating', -] diff --git a/packages/clients/src/api/webhosting/v1/index.gen.ts b/packages/clients/src/api/webhosting/v1/index.gen.ts index bf28767b8..057bac9cc 100644 --- a/packages/clients/src/api/webhosting/v1/index.gen.ts +++ b/packages/clients/src/api/webhosting/v1/index.gen.ts @@ -64,7 +64,6 @@ export type { HostingApiUpdateHostingRequest, HostingStatus, HostingSummary, - HostingSummaryStatus, HostingUser, ListControlPanelsResponse, ListDatabaseUsersRequestOrderBy, diff --git a/packages/clients/src/api/webhosting/v1/marshalling.gen.ts b/packages/clients/src/api/webhosting/v1/marshalling.gen.ts index 39c41b2b8..c5fd22a45 100644 --- a/packages/clients/src/api/webhosting/v1/marshalling.gen.ts +++ b/packages/clients/src/api/webhosting/v1/marshalling.gen.ts @@ -406,13 +406,12 @@ const unmarshalHostingSummary = (data: unknown): HostingSummary => { dnsStatus: data.dns_status ? data.dns_status : undefined, domain: data.domain, domainStatus: data.domain_status, - hostingStatus: data.hosting_status, id: data.id, offerName: data.offer_name, projectId: data.project_id, protected: data.protected, region: data.region, - status: data.status ? data.status : undefined, + status: data.status, updatedAt: unmarshalDate(data.updated_at), } as HostingSummary } diff --git a/packages/clients/src/api/webhosting/v1/types.gen.ts b/packages/clients/src/api/webhosting/v1/types.gen.ts index faf422d7c..dc5e4a1f3 100644 --- a/packages/clients/src/api/webhosting/v1/types.gen.ts +++ b/packages/clients/src/api/webhosting/v1/types.gen.ts @@ -42,6 +42,7 @@ export type DomainDnsAction = | 'auto_config_web_records' | 'auto_config_mail_records' | 'auto_config_nameservers' + | 'auto_config_none' export type DomainStatus = | 'unknown_status' @@ -66,15 +67,6 @@ export type HostingStatus = | 'locked' | 'migrating' -export type HostingSummaryStatus = - | 'unknown_status' - | 'delivering' - | 'ready' - | 'deleting' - | 'error' - | 'locked' - | 'migrating' - export type ListDatabaseUsersRequestOrderBy = 'username_asc' | 'username_desc' export type ListDatabasesRequestOrderBy = @@ -301,8 +293,8 @@ export interface HostingSummary { createdAt?: Date /** Date on which the Web Hosting plan was last updated. */ updatedAt?: Date - /** @deprecated Status of the Web Hosting plan. */ - status?: HostingSummaryStatus + /** Status of the Web Hosting plan. */ + status: HostingStatus /** Main domain associated with the Web Hosting plan. */ domain: string /** Whether the hosting is protected or not. */ @@ -311,8 +303,6 @@ export interface HostingSummary { dnsStatus?: DnsRecordsStatus /** Name of the active offer for the Web Hosting plan. */ offerName: string - /** Status of the Web Hosting plan. */ - hostingStatus: HostingStatus /** Main domain status of the Web Hosting plan. */ domainStatus: DomainStatus /** Region where the Web Hosting plan is hosted. */