Skip to content

Commit 1a82477

Browse files
quantumsheepVinzius
authored andcommitted
feat: v2
feat: don't export private types chore(release): publish - @scaleway/[email protected] chore(release): publish - @scaleway/[email protected] feat: all optional messages should be optional chore(release): publish - @scaleway/[email protected] feat: update apis feat: add line jumps Signed-off-by: Nathanael DEMACON <[email protected]> chore(release): publish - @scaleway/[email protected] feat: update generation feat: add deprecated fields chore(release): publish - @scaleway/[email protected] feat: don't default to undefined for native types feat: update generation feat: update generation Signed-off-by: Nathanael DEMACON <[email protected]> chore(release): publish - @scaleway/[email protected] feat: update generation feat: update generation chore(release): publish - @scaleway/[email protected] feat: explicit marshallers return type chore(release): publish - @scaleway/[email protected] feat: update generation Signed-off-by: Nathanael DEMACON <[email protected]> feat: update generation Signed-off-by: Nathanael DEMACON <[email protected]> chore(release): publish - @scaleway/[email protected] chore(release): publish - @scaleway/[email protected] feat: add new generation and fix utils
1 parent aa54478 commit 1a82477

File tree

117 files changed

+17771
-17708
lines changed

Some content is hidden

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

117 files changed

+17771
-17708
lines changed

packages/clients/CHANGELOG.md

Lines changed: 47 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,68 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6-
## [1.37.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2023-10-16)
6+
## [2.0.0-alpha.9](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2023-10-19)
7+
8+
**Note:** Version bump only for package @scaleway/sdk
9+
10+
## [2.0.0-alpha.8](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2023-10-19)
11+
12+
### Features
13+
14+
- update generation ([68ba3c0](https://github.com/scaleway/scaleway-sdk-js/commit/68ba3c02d6dad1f42f6940a2d847ae92517c8216))
15+
- update generation ([53f28f0](https://github.com/scaleway/scaleway-sdk-js/commit/53f28f0372131794e5ac5dfeb790f8848febed74))
16+
17+
## [2.0.0-alpha.7](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2023-10-17)
18+
19+
### Features
20+
21+
- explicit marshallers return type ([bff6aad](https://github.com/scaleway/scaleway-sdk-js/commit/bff6aaddbac61df49dcc595f203b9319836acafb))
22+
23+
## [2.0.0-alpha.6](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2023-10-16)
724

825
### Features
926

10-
- **ipfs:** add IPNS API ([#932](https://github.com/scaleway/scaleway-sdk-js/issues/932)) ([c919d46](https://github.com/scaleway/scaleway-sdk-js/commit/c919d46713d8c7e8af499bfc30dcf594cc88a58a))
11-
- **mnq:** allow long credentials name for serverless functions triggers compatibility ([#930](https://github.com/scaleway/scaleway-sdk-js/issues/930)) ([b1e9d0c](https://github.com/scaleway/scaleway-sdk-js/commit/b1e9d0c5e8b039af0e01998315b0c07e3922f1e2))
12-
- **serverless:** add mnq_nats_account_id in trigger responses ([#931](https://github.com/scaleway/scaleway-sdk-js/issues/931)) ([58501e2](https://github.com/scaleway/scaleway-sdk-js/commit/58501e217f253f3375416c2749e17c4235d3913e))
27+
- update generation ([da12495](https://github.com/scaleway/scaleway-sdk-js/commit/da124951e11889382dcf7604b1a87642e61f9335))
28+
- update generation ([431e593](https://github.com/scaleway/scaleway-sdk-js/commit/431e5939cf6e1b4d8354c1e64414c5f0f5c6b66e))
1329

14-
## [1.36.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/sdk@1.35.0...@scaleway/sdk@1.36.0) (2023-10-13)
30+
## [2.0.0-alpha.5](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/sdk@2.0.0-alpha.4...@scaleway/sdk@2.0.0-alpha.5) (2023-10-16)
1531

1632
### Features
1733

18-
- **block:** add snapshot import ([#922](https://github.com/scaleway/scaleway-sdk-js/issues/922)) ([3d74e31](https://github.com/scaleway/scaleway-sdk-js/commit/3d74e31aeaf87f1089413d16297396bcb8962b9e))
19-
- **cockpit:** list and get Grafana dashboards ([#916](https://github.com/scaleway/scaleway-sdk-js/issues/916)) ([3f695fa](https://github.com/scaleway/scaleway-sdk-js/commit/3f695fac15a4c27f7b5774104b8d08068d3303f5))
20-
- **instance:** add tags in Server.public_ips ([#919](https://github.com/scaleway/scaleway-sdk-js/issues/919)) ([fa230c6](https://github.com/scaleway/scaleway-sdk-js/commit/fa230c65fd186496067bb9ef26414e97fbca2377))
21-
- **instance:** modify UpdateServer public_ips and private_nics to match real implem ([#921](https://github.com/scaleway/scaleway-sdk-js/issues/921)) ([0f09608](https://github.com/scaleway/scaleway-sdk-js/commit/0f09608356edcde266a4324fbcc89ab673e399fe))
22-
- **instance:** sync endpoints about the feature OS image in SBS volume ([#920](https://github.com/scaleway/scaleway-sdk-js/issues/920)) ([d9ba798](https://github.com/scaleway/scaleway-sdk-js/commit/d9ba79876e637f0a7637a85f8aac4490db7a8d38))
23-
- **mnq:** add v1beta1 ([#917](https://github.com/scaleway/scaleway-sdk-js/issues/917)) ([9d6c414](https://github.com/scaleway/scaleway-sdk-js/commit/9d6c4145f3a5bc5f36bf9868022922d8ac8fd2ba))
24-
- **rdb:** expose SBS IOPS ([#918](https://github.com/scaleway/scaleway-sdk-js/issues/918)) ([91e1187](https://github.com/scaleway/scaleway-sdk-js/commit/91e1187494b8864d1d3b9e178635e1f7580392e9))
34+
- don't default to undefined for native types ([c3f6f41](https://github.com/scaleway/scaleway-sdk-js/commit/c3f6f41e2e3a8f26f82fc2caeda2719a56cc261c))
35+
- update generation ([a641316](https://github.com/scaleway/scaleway-sdk-js/commit/a641316db81f095b9f4f7294d391ea3115ba249c))
36+
- update generation ([e38e054](https://github.com/scaleway/scaleway-sdk-js/commit/e38e0540982218ffe577e87020f07201d9ae00be))
2537

26-
## [1.35.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/sdk@1.34.0...@scaleway/sdk@1.35.0) (2023-10-09)
38+
## [2.0.0-alpha.4](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/sdk@2.0.0-alpha.3...@scaleway/sdk@2.0.0-alpha.4) (2023-10-13)
2739

2840
### Features
2941

30-
- **cockpit:** add list datasource endpoint ([#906](https://github.com/scaleway/scaleway-sdk-js/issues/906)) ([8677e4a](https://github.com/scaleway/scaleway-sdk-js/commit/8677e4a8828eee2e3a9311c0b6395d0f37b06450))
31-
- **k8s:** expose `public_ip_disabled` field ([#907](https://github.com/scaleway/scaleway-sdk-js/issues/907)) ([58d4945](https://github.com/scaleway/scaleway-sdk-js/commit/58d4945faa568fa063e41d551b281f56ff143189))
32-
- **serverless:** prepare for MNQ API ([#908](https://github.com/scaleway/scaleway-sdk-js/issues/908)) ([ce611bf](https://github.com/scaleway/scaleway-sdk-js/commit/ce611bf8f868f933658b92b8b18c9d97d083398e))
42+
- add deprecated fields ([d3cc5d6](https://github.com/scaleway/scaleway-sdk-js/commit/d3cc5d6ba6ce9a635b38297582fadbf952503155))
43+
- update generation ([a52a693](https://github.com/scaleway/scaleway-sdk-js/commit/a52a693abc3f49db39cc8f2c8b273e4987b08c15))
44+
45+
## [2.0.0-alpha.3](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2023-10-11)
46+
47+
### Features
48+
49+
- add line jumps ([066f846](https://github.com/scaleway/scaleway-sdk-js/commit/066f846fb8af965d743e9717d867ee7bce18e0b5))
50+
- update apis ([0108d89](https://github.com/scaleway/scaleway-sdk-js/commit/0108d89b86a6782e275ee984fe87981935282f49))
51+
52+
## [2.0.0-alpha.2](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2023-10-04)
53+
54+
### Features
55+
56+
- all optional messages should be optional ([29a761f](https://github.com/scaleway/scaleway-sdk-js/commit/29a761f85eee34b67139b6c3d1c0d976dfa81143))
57+
58+
## [2.0.0-alpha.1](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2023-10-04)
59+
60+
**Note:** Version bump only for package @scaleway/sdk
3361

34-
## [1.34.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/sdk@1.34.0) (2023-10-04)
62+
## [2.0.0-alpha.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/sdk@2.0.0-alpha.0) (2023-10-04)
3563

3664
### Features
3765

38-
- **instance:** add servers filter in ListServersRequest ([#903](https://github.com/scaleway/scaleway-sdk-js/issues/903)) ([a96eb9f](https://github.com/scaleway/scaleway-sdk-js/commit/a96eb9f9626dd3dd0f7c70858bc8adf172bcf7e7))
39-
- **lb:** add pl-waw-3 az ([#902](https://github.com/scaleway/scaleway-sdk-js/issues/902)) ([997aa1d](https://github.com/scaleway/scaleway-sdk-js/commit/997aa1da10e777e99c725f21fab37ece13730c27))
66+
- don't export private types ([c3ec87c](https://github.com/scaleway/scaleway-sdk-js/commit/c3ec87c64ba9798ec1e442f425da47e79516c211))
67+
- v2 ([a0dbfed](https://github.com/scaleway/scaleway-sdk-js/commit/a0dbfedc5e429e0c345ecba2d414474f9dc48b94))
4068

4169
## [1.33.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2023-10-02)
4270

packages/clients/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scaleway/sdk",
3-
"version": "1.37.0",
3+
"version": "2.0.0-alpha.9",
44
"license": "Apache-2.0",
55
"description": "Scaleway SDK.",
66
"keywords": [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class API extends ParentAPI {
6363
path: `/account/v2/projects`,
6464
urlParams: urlParams(
6565
['name', request.name],
66-
['order_by', request.orderBy ?? 'created_at_asc'],
66+
['order_by', request.orderBy],
6767
[
6868
'organization_id',
6969
request.organizationId ??

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type {
1414
UpdateProjectRequest,
1515
} from './types.gen'
1616

17-
export const unmarshalProject = (data: unknown) => {
17+
export const unmarshalProject = (data: unknown): Project => {
1818
if (!isJSONObject(data)) {
1919
throw new TypeError(
2020
`Unmarshalling the type 'Project' failed as data isn't a dictionary.`,
@@ -31,7 +31,9 @@ export const unmarshalProject = (data: unknown) => {
3131
} as Project
3232
}
3333

34-
export const unmarshalListProjectsResponse = (data: unknown) => {
34+
export const unmarshalListProjectsResponse = (
35+
data: unknown,
36+
): ListProjectsResponse => {
3537
if (!isJSONObject(data)) {
3638
throw new TypeError(
3739
`Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`,

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

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ export type ListProjectsRequestOrderBy =
77
| 'name_asc'
88
| 'name_desc'
99

10-
/** List projects response. */
11-
export interface ListProjectsResponse {
12-
/** Total number of Projects. */
13-
totalCount: number
14-
/** Paginated returned Projects. */
15-
projects: Project[]
16-
}
17-
18-
/** Project. */
1910
export interface Project {
2011
/** ID of the Project. */
2112
id: string
@@ -40,6 +31,16 @@ export type CreateProjectRequest = {
4031
description?: string
4132
}
4233

34+
export type DeleteProjectRequest = {
35+
/** Project ID of the Project. */
36+
projectId?: string
37+
}
38+
39+
export type GetProjectRequest = {
40+
/** Project ID of the Project. */
41+
projectId?: string
42+
}
43+
4344
export type ListProjectsRequest = {
4445
/** Organization ID of the Project. */
4546
organizationId?: string
@@ -58,14 +59,11 @@ export type ListProjectsRequest = {
5859
projectIds?: string[]
5960
}
6061

61-
export type GetProjectRequest = {
62-
/** Project ID of the Project. */
63-
projectId?: string
64-
}
65-
66-
export type DeleteProjectRequest = {
67-
/** Project ID of the Project. */
68-
projectId?: string
62+
export interface ListProjectsResponse {
63+
/** Total number of Projects. */
64+
totalCount: number
65+
/** Paginated returned Projects. */
66+
projects: Project[]
6967
}
7068

7169
export type UpdateProjectRequest = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class ProjectAPI extends ParentAPI {
6161
path: `/account/v3/projects`,
6262
urlParams: urlParams(
6363
['name', request.name],
64-
['order_by', request.orderBy ?? 'created_at_asc'],
64+
['order_by', request.orderBy],
6565
[
6666
'organization_id',
6767
request.organizationId ??

packages/clients/src/api/account/v3/marshalling.gen.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import type {
1414
ProjectApiUpdateProjectRequest,
1515
} from './types.gen'
1616

17-
export const unmarshalProject = (data: unknown) => {
17+
export const unmarshalProject = (data: unknown): Project => {
1818
if (!isJSONObject(data)) {
1919
throw new TypeError(
2020
`Unmarshalling the type 'Project' failed as data isn't a dictionary.`,
@@ -31,7 +31,9 @@ export const unmarshalProject = (data: unknown) => {
3131
} as Project
3232
}
3333

34-
export const unmarshalListProjectsResponse = (data: unknown) => {
34+
export const unmarshalListProjectsResponse = (
35+
data: unknown,
36+
): ListProjectsResponse => {
3537
if (!isJSONObject(data)) {
3638
throw new TypeError(
3739
`Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`,

packages/clients/src/api/account/v3/types.gen.ts

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ export type ListProjectsRequestOrderBy =
77
| 'name_asc'
88
| 'name_desc'
99

10-
/** List projects response. */
11-
export interface ListProjectsResponse {
12-
/** Total number of Projects. */
13-
totalCount: number
14-
/** Paginated returned Projects. */
15-
projects: Project[]
16-
}
17-
18-
/** Project. */
1910
export interface Project {
2011
/** ID of the Project. */
2112
id: string
@@ -31,6 +22,13 @@ export interface Project {
3122
description: string
3223
}
3324

25+
export interface ListProjectsResponse {
26+
/** Total number of Projects. */
27+
totalCount: number
28+
/** Paginated returned Projects. */
29+
projects: Project[]
30+
}
31+
3432
export type ProjectApiCreateProjectRequest = {
3533
/** Name of the Project. */
3634
name?: string
@@ -40,6 +38,16 @@ export type ProjectApiCreateProjectRequest = {
4038
description: string
4139
}
4240

41+
export type ProjectApiDeleteProjectRequest = {
42+
/** Project ID of the Project. */
43+
projectId?: string
44+
}
45+
46+
export type ProjectApiGetProjectRequest = {
47+
/** Project ID of the Project. */
48+
projectId?: string
49+
}
50+
4351
export type ProjectApiListProjectsRequest = {
4452
/** Organization ID of the Project. */
4553
organizationId?: string
@@ -58,16 +66,6 @@ export type ProjectApiListProjectsRequest = {
5866
projectIds?: string[]
5967
}
6068

61-
export type ProjectApiGetProjectRequest = {
62-
/** Project ID of the Project. */
63-
projectId?: string
64-
}
65-
66-
export type ProjectApiDeleteProjectRequest = {
67-
/** Project ID of the Project. */
68-
projectId?: string
69-
}
70-
7169
export type ProjectApiUpdateProjectRequest = {
7270
/** Project ID of the Project. */
7371
projectId?: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class API extends ParentAPI {
119119
request.zone ?? this.client.settings.defaultZone,
120120
)}/servers`,
121121
urlParams: urlParams(
122-
['order_by', request.orderBy ?? 'created_at_asc'],
122+
['order_by', request.orderBy],
123123
['organization_id', request.organizationId],
124124
['page', request.page],
125125
[

0 commit comments

Comments
 (0)