diff --git a/packages/client/src/scw/locality.ts b/packages/client/src/scw/locality.ts index 4798ab4f2..69ec520ef 100644 --- a/packages/client/src/scw/locality.ts +++ b/packages/client/src/scw/locality.ts @@ -15,15 +15,15 @@ export type Zone = /* eslint-enable @typescript-eslint/ban-types */ export type ApiLocality = - | { type: 'zone'; zones: Zone[] } - | { type: 'region'; regions: Region[] } + | { type: 'zone'; zones: Zone[] } + | { type: 'region'; regions: Region[] } | { type: 'global' } | { type: 'unspecified' } - -export function toApiLocality( - legacy?: { zones?: Zone[]; regions?: Region[] } -): ApiLocality { +export function toApiLocality(legacy?: { + zones?: Zone[] + regions?: Region[] +}): ApiLocality { if (!legacy) { return { type: 'unspecified' } } @@ -34,6 +34,6 @@ export function toApiLocality( if (regions && regions.length > 0) { return { type: 'region', regions } } - + return { type: 'global' } } diff --git a/packages/sdk/src/index.gen.ts b/packages/sdk/src/index.gen.ts index 078ab83f8..9512827b4 100644 --- a/packages/sdk/src/index.gen.ts +++ b/packages/sdk/src/index.gen.ts @@ -29,7 +29,7 @@ import { KeyManagerv1alpha1 } from '@scaleway/sdk-key-manager' import { Lbv1 } from '@scaleway/sdk-lb' import { Marketplacev2 } from '@scaleway/sdk-marketplace' import { Mnqv1beta1 } from '@scaleway/sdk-mnq' -import { Mongodbv1alpha1 } from '@scaleway/sdk-mongodb' +import { Mongodbv1, Mongodbv1alpha1 } from '@scaleway/sdk-mongodb' import { ProductCatalogv2alpha1 } from '@scaleway/sdk-product-catalog' import { Qaasv1alpha1 } from '@scaleway/sdk-qaas' import { Rdbv1 } from '@scaleway/sdk-rdb' @@ -264,8 +264,9 @@ export const Mnq = { /** * @deprecated Direct version exports are deprecated. Use the 'Mongodb' namespace instead (e.g., Mongodb.v1). */ -export { Mongodbv1alpha1 } +export { Mongodbv1, Mongodbv1alpha1 } export const Mongodb = { + v1: Mongodbv1, v1alpha1: Mongodbv1alpha1, }