@scaleway/sdk-serverless-sqldb 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,9 @@ class API extends API$1 {
10
10
  * type ∈ {'zone','region','global','unspecified'}
11
11
  */
12
12
  static LOCALITY = toApiLocality({
13
- regions: ["fr-par"]
13
+ regions: [
14
+ "fr-par"
15
+ ]
14
16
  });
15
17
  /**
16
18
  * Create a new Serverless SQL Database. You must provide the following parameters: `organization_id`, `project_id`, `name`, `cpu_min`, `cpu_max`. You can also provide `from_backup_id` to create a database from a backup.
@@ -50,9 +52,7 @@ class API extends API$1 {
50
52
  * @returns A Promise of Database
51
53
  */
52
54
  waitForDatabase = (request, options) => waitForResource(
53
- options?.stop ?? ((res) => Promise.resolve(
54
- !DATABASE_TRANSIENT_STATUSES.includes(res.status)
55
- )),
55
+ options?.stop ?? ((res) => Promise.resolve(!DATABASE_TRANSIENT_STATUSES.includes(res.status))),
56
56
  this.getDatabase,
57
57
  request,
58
58
  options
@@ -80,10 +80,7 @@ class API extends API$1 {
80
80
  ["organization_id", request.organizationId],
81
81
  ["page", request.page],
82
82
  ["page_size", request.pageSize],
83
- [
84
- "project_id",
85
- request.projectId ?? this.client.settings.defaultProjectId
86
- ]
83
+ ["project_id", request.projectId ?? this.client.settings.defaultProjectId]
87
84
  )
88
85
  },
89
86
  unmarshalListDatabasesResponse
@@ -121,10 +118,7 @@ class API extends API$1 {
121
118
  restoreDatabaseFromBackup = (request) => this.client.fetch(
122
119
  {
123
120
  body: JSON.stringify(
124
- marshalRestoreDatabaseFromBackupRequest(
125
- request,
126
- this.client.settings
127
- )
121
+ marshalRestoreDatabaseFromBackupRequest(request, this.client.settings)
128
122
  ),
129
123
  headers: jsonContentHeaders,
130
124
  method: "POST",
@@ -1,4 +1,4 @@
1
- export { API } from './api.gen.js';
1
+ export { API, } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
3
  export * from './marshalling.gen.js';
4
4
  export type { CreateDatabaseRequest, Database, DatabaseBackup, DatabaseBackupStatus, DatabaseStatus, DeleteDatabaseRequest, ExportDatabaseBackupRequest, GetDatabaseBackupRequest, GetDatabaseRequest, ListDatabaseBackupsRequest, ListDatabaseBackupsRequestOrderBy, ListDatabaseBackupsResponse, ListDatabasesRequest, ListDatabasesRequestOrderBy, ListDatabasesResponse, RestoreDatabaseFromBackupRequest, UpdateDatabaseRequest, } from './types.gen.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-serverless-sqldb",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Scaleway SDK serverless-sqldb",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.1.0"
30
+ "@scaleway/sdk-std": "2.1.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@scaleway/sdk-client": "^2.1.0"