Skip to content

Commit 13537b9

Browse files
refactor: generate index files (#355)
Co-authored-by: Vincent Germain <[email protected]>
1 parent e8bfe3e commit 13537b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+1544
-129
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * as v2alpha1 from './v2alpha1'
2-
export * as v2 from './v2'
2+
export * as v2 from './v2/index.gen'

packages/clients/src/api/account/v2/api.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
import {
4-
API,
4+
API as ParentAPI,
55
enrichForPagination,
66
urlParams,
77
validatePathParam,
@@ -31,7 +31,7 @@ const jsonContentHeaders = {
3131
*
3232
* This API allows you to manage projects.
3333
*/
34-
export class AccountV2GenAPI extends API {
34+
export class API extends ParentAPI {
3535
/**
3636
* Create project
3737
*
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This file was automatically generated. DO NOT EDIT.
2+
// If you have any remark or suggestion do not hesitate to open an issue.
3+
export { API } from './api.gen'
4+
export type {
5+
CreateProjectRequest,
6+
DeleteProjectRequest,
7+
GetProjectRequest,
8+
ListProjectsRequest,
9+
ListProjectsRequestOrderBy,
10+
ListProjectsResponse,
11+
Project,
12+
UpdateProjectRequest,
13+
} from './types.gen'

packages/clients/src/api/account/v2/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * as v1alpha1 from './v1alpha1'
1+
export * as v1alpha1 from './v1alpha1/index.gen'

packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
import {
4-
API,
4+
API as ParentAPI,
55
enrichForPagination,
66
urlParams,
77
validatePathParam,
@@ -64,7 +64,7 @@ const jsonContentHeaders = {
6464
* Cisco in the U.S. and other countries and is used by Apple under license.
6565
* Scaleway is not affiliated with Apple Inc.
6666
*/
67-
export class ApplesiliconV1Alpha1GenAPI extends API {
67+
export class API extends ParentAPI {
6868
/** Lists the available zones of the API. */
6969
public static readonly LOCALITIES: Zone[] = ['fr-par-3']
7070

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// This file was automatically generated. DO NOT EDIT.
2+
// If you have any remark or suggestion do not hesitate to open an issue.
3+
export { API } from './api.gen'
4+
export * from './content.gen'
5+
export type {
6+
CreateServerRequest,
7+
DeleteServerRequest,
8+
GetOSRequest,
9+
GetServerRequest,
10+
GetServerTypeRequest,
11+
ListOSRequest,
12+
ListOSResponse,
13+
ListServerTypesRequest,
14+
ListServerTypesResponse,
15+
ListServersRequest,
16+
ListServersRequestOrderBy,
17+
ListServersResponse,
18+
OS,
19+
RebootServerRequest,
20+
ReinstallServerRequest,
21+
Server,
22+
ServerStatus,
23+
ServerType,
24+
ServerTypeCPU,
25+
ServerTypeDisk,
26+
ServerTypeMemory,
27+
ServerTypeStock,
28+
UpdateServerRequest,
29+
} from './types.gen'

packages/clients/src/api/applesilicon/v1alpha1/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/clients/src/api/baremetal/v1/api.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33
import {
4-
API,
4+
API as ParentAPI,
55
enrichForPagination,
66
urlParams,
77
validatePathParam,
@@ -97,7 +97,7 @@ const jsonContentHeaders = {
9797
*
9898
* This API allows to manage your Bare metal server.
9999
*/
100-
export class BaremetalV1GenAPI extends API {
100+
export class API extends ParentAPI {
101101
/** Lists the available zones of the API. */
102102
public static readonly LOCALITIES: Zone[] = [
103103
'fr-par-1',
@@ -732,7 +732,7 @@ export class BaremetalV1GenAPI extends API {
732732
}
733733

734734
/** Elastic Metal Private Network API. */
735-
export class BaremetalPrivateNetworkV1GenAPI extends API {
735+
export class PrivateNetworkAPI extends ParentAPI {
736736
/** Lists the available zones of the API. */
737737
public static readonly LOCALITIES: Zone[] = ['fr-par-2']
738738

packages/clients/src/api/baremetal/v1/api.utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import {
33
tryAtIntervals,
44
} from '../../../internal/async/interval-retrier'
55
import type { WaitForOptions } from '../../../internal/async/interval-retrier'
6-
import { BaremetalV1GenAPI } from './api.gen'
6+
import { API } from './api.gen'
77
import { SERVER_INSTALL_TRANSIENT_STATUSES } from './content.gen'
88
import type { GetServerRequest, ServerInstall } from './types.gen'
99

10-
export class BaremetalV1UtilsAPI extends BaremetalV1GenAPI {
10+
export class BaremetalV1UtilsAPI extends API {
1111
/**
1212
* Waits for {@link ServerInstall} to be in a final state.
1313
*

0 commit comments

Comments
 (0)