File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ export type Zone =
15
15
/* eslint-enable @typescript-eslint/ban-types */
16
16
17
17
export type ApiLocality =
18
- | { type : 'zone' ; zones : Zone [ ] }
19
- | { type : 'region' ; regions : Region [ ] }
18
+ | { type : 'zone' ; zones : Zone [ ] }
19
+ | { type : 'region' ; regions : Region [ ] }
20
20
| { type : 'global' }
21
21
| { type : 'unspecified' }
22
22
23
-
24
- export function toApiLocality (
25
- legacy ?: { zones ?: Zone [ ] ; regions ?: Region [ ] }
26
- ) : ApiLocality {
23
+ export function toApiLocality ( legacy ?: {
24
+ zones ?: Zone [ ]
25
+ regions ?: Region [ ]
26
+ } ) : ApiLocality {
27
27
if ( ! legacy ) {
28
28
return { type : 'unspecified' }
29
29
}
@@ -34,6 +34,6 @@ export function toApiLocality(
34
34
if ( regions && regions . length > 0 ) {
35
35
return { type : 'region' , regions }
36
36
}
37
-
37
+
38
38
return { type : 'global' }
39
39
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import { KeyManagerv1alpha1 } from '@scaleway/sdk-key-manager'
29
29
import { Lbv1 } from '@scaleway/sdk-lb'
30
30
import { Marketplacev2 } from '@scaleway/sdk-marketplace'
31
31
import { Mnqv1beta1 } from '@scaleway/sdk-mnq'
32
- import { Mongodbv1alpha1 } from '@scaleway/sdk-mongodb'
32
+ import { Mongodbv1 , Mongodbv1alpha1 } from '@scaleway/sdk-mongodb'
33
33
import { ProductCatalogv2alpha1 } from '@scaleway/sdk-product-catalog'
34
34
import { Qaasv1alpha1 } from '@scaleway/sdk-qaas'
35
35
import { Rdbv1 } from '@scaleway/sdk-rdb'
@@ -264,8 +264,9 @@ export const Mnq = {
264
264
/**
265
265
* @deprecated Direct version exports are deprecated. Use the 'Mongodb' namespace instead (e.g., Mongodb.v1).
266
266
*/
267
- export { Mongodbv1alpha1 }
267
+ export { Mongodbv1 , Mongodbv1alpha1 }
268
268
export const Mongodb = {
269
+ v1 : Mongodbv1 ,
269
270
v1alpha1 : Mongodbv1alpha1 ,
270
271
}
271
272
You can’t perform that action at this time.
0 commit comments