@scaleway/sdk-datawarehouse 2.5.1 → 2.5.3

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.
@@ -1,3 +1,4 @@
1
+ //#region \0rolldown/runtime.js
1
2
  var __defProp = Object.defineProperty;
2
3
  var __exportAll = (all, no_symbols) => {
3
4
  let target = {};
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
8
9
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
9
10
  return target;
10
11
  };
12
+ //#endregion
11
13
  export { __exportAll };
@@ -1,13 +1,14 @@
1
1
  import { DEPLOYMENT_TRANSIENT_STATUSES } from "./content.gen.js";
2
2
  import { marshalCreateDatabaseRequest, marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, unmarshalDatabase, unmarshalDeployment, unmarshalEndpoint, unmarshalListDatabasesResponse, unmarshalListDeploymentsResponse, unmarshalListPresetsResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser } from "./marshalling.gen.js";
3
- import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
3
+ import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
+ //#region src/v1beta1/api.gen.ts
4
5
  var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
5
6
  /**
6
7
  * Data Warehouse API.
7
8
 
8
9
  This API allows you to manage your Data Warehouse.
9
10
  */
10
- var API$1 = class extends API {
11
+ var API = class extends API$1 {
11
12
  /**
12
13
  * Locality of this API.
13
14
  * type ∈ {'zone','region','global','unspecified'}
@@ -239,4 +240,5 @@ var API$1 = class extends API {
239
240
  path: `/datawarehouse/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${validatePathParam("deploymentId", request.deploymentId)}/databases/${validatePathParam("name", request.name)}`
240
241
  });
241
242
  };
242
- export { API$1 as API };
243
+ //#endregion
244
+ export { API };
@@ -1,5 +1,6 @@
1
+ //#region src/v1beta1/content.gen.ts
1
2
  /** Lists transient statutes of the enum {@link DeploymentStatus}. */
2
- const DEPLOYMENT_TRANSIENT_STATUSES = [
3
+ var DEPLOYMENT_TRANSIENT_STATUSES = [
3
4
  "creating",
4
5
  "configuring",
5
6
  "deleting",
@@ -9,4 +10,5 @@ const DEPLOYMENT_TRANSIENT_STATUSES = [
9
10
  "stopping",
10
11
  "starting"
11
12
  ];
13
+ //#endregion
12
14
  export { DEPLOYMENT_TRANSIENT_STATUSES };
@@ -3,6 +3,7 @@ import { DEPLOYMENT_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { marshalCreateDatabaseRequest, marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, unmarshalDatabase, unmarshalDeployment, unmarshalEndpoint, unmarshalListDatabasesResponse, unmarshalListDeploymentsResponse, unmarshalListPresetsResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser } from "./marshalling.gen.js";
4
4
  import { API } from "./api.gen.js";
5
5
  import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
+ //#region src/v1beta1/index.gen.ts
6
7
  var index_gen_exports = /* @__PURE__ */ __exportAll({
7
8
  API: () => API,
8
9
  DEPLOYMENT_TRANSIENT_STATUSES: () => DEPLOYMENT_TRANSIENT_STATUSES,
@@ -23,4 +24,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
23
24
  unmarshalListVersionsResponse: () => unmarshalListVersionsResponse,
24
25
  unmarshalUser: () => unmarshalUser
25
26
  });
26
- export { index_gen_exports };
27
+ //#endregion
28
+ export { API, DEPLOYMENT_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateDatabaseRequest, marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, unmarshalDatabase, unmarshalDeployment, unmarshalEndpoint, unmarshalListDatabasesResponse, unmarshalListDeploymentsResponse, unmarshalListPresetsResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser };
@@ -1,4 +1,5 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
+ //#region src/v1beta1/marshalling.gen.ts
2
3
  var unmarshalEndpointPrivateNetworkDetails = (data) => {
3
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EndpointPrivateNetworkDetails' failed as data isn't a dictionary.`);
4
5
  return { privateNetworkId: data.private_network_id };
@@ -14,7 +15,7 @@ var unmarshalEndpointService = (data) => {
14
15
  protocol: data.protocol
15
16
  };
16
17
  };
17
- const unmarshalEndpoint = (data) => {
18
+ var unmarshalEndpoint = (data) => {
18
19
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`);
19
20
  return {
20
21
  dnsRecord: data.dns_record,
@@ -24,14 +25,14 @@ const unmarshalEndpoint = (data) => {
24
25
  services: unmarshalArrayOfObject(data.services, unmarshalEndpointService)
25
26
  };
26
27
  };
27
- const unmarshalDatabase = (data) => {
28
+ var unmarshalDatabase = (data) => {
28
29
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Database' failed as data isn't a dictionary.`);
29
30
  return {
30
31
  name: data.name,
31
32
  size: data.size
32
33
  };
33
34
  };
34
- const unmarshalDeployment = (data) => {
35
+ var unmarshalDeployment = (data) => {
35
36
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Deployment' failed as data isn't a dictionary.`);
36
37
  return {
37
38
  cpuMax: data.cpu_max,
@@ -52,21 +53,21 @@ const unmarshalDeployment = (data) => {
52
53
  version: data.version
53
54
  };
54
55
  };
55
- const unmarshalUser = (data) => {
56
+ var unmarshalUser = (data) => {
56
57
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'User' failed as data isn't a dictionary.`);
57
58
  return {
58
59
  isAdmin: data.is_admin,
59
60
  name: data.name
60
61
  };
61
62
  };
62
- const unmarshalListDatabasesResponse = (data) => {
63
+ var unmarshalListDatabasesResponse = (data) => {
63
64
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDatabasesResponse' failed as data isn't a dictionary.`);
64
65
  return {
65
66
  databases: unmarshalArrayOfObject(data.databases, unmarshalDatabase),
66
67
  totalCount: data.total_count
67
68
  };
68
69
  };
69
- const unmarshalListDeploymentsResponse = (data) => {
70
+ var unmarshalListDeploymentsResponse = (data) => {
70
71
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDeploymentsResponse' failed as data isn't a dictionary.`);
71
72
  return {
72
73
  deployments: unmarshalArrayOfObject(data.deployments, unmarshalDeployment),
@@ -85,14 +86,14 @@ var unmarshalPreset = (data) => {
85
86
  shardCount: data.shard_count
86
87
  };
87
88
  };
88
- const unmarshalListPresetsResponse = (data) => {
89
+ var unmarshalListPresetsResponse = (data) => {
89
90
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPresetsResponse' failed as data isn't a dictionary.`);
90
91
  return {
91
92
  presets: unmarshalArrayOfObject(data.presets, unmarshalPreset),
92
93
  totalCount: data.total_count
93
94
  };
94
95
  };
95
- const unmarshalListUsersResponse = (data) => {
96
+ var unmarshalListUsersResponse = (data) => {
96
97
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListUsersResponse' failed as data isn't a dictionary.`);
97
98
  return {
98
99
  totalCount: data.total_count,
@@ -106,14 +107,14 @@ var unmarshalVersion = (data) => {
106
107
  version: data.version
107
108
  };
108
109
  };
109
- const unmarshalListVersionsResponse = (data) => {
110
+ var unmarshalListVersionsResponse = (data) => {
110
111
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary.`);
111
112
  return {
112
113
  totalCount: data.total_count,
113
114
  versions: unmarshalArrayOfObject(data.versions, unmarshalVersion)
114
115
  };
115
116
  };
116
- const marshalCreateDatabaseRequest = (request, defaults) => ({ name: request.name });
117
+ var marshalCreateDatabaseRequest = (request, defaults) => ({ name: request.name });
117
118
  var marshalEndpointSpecPrivateNetworkDetails = (request, defaults) => ({ private_network_id: request.privateNetworkId });
118
119
  var marshalEndpointSpecPublicDetails = (request, defaults) => ({});
119
120
  var marshalEndpointSpec = (request, defaults) => ({ ...resolveOneOf([{
@@ -123,7 +124,7 @@ var marshalEndpointSpec = (request, defaults) => ({ ...resolveOneOf([{
123
124
  param: "private_network",
124
125
  value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetworkDetails(request.privateNetwork, defaults) : void 0
125
126
  }]) });
126
- const marshalCreateDeploymentRequest = (request, defaults) => ({
127
+ var marshalCreateDeploymentRequest = (request, defaults) => ({
127
128
  cpu_max: request.cpuMax,
128
129
  cpu_min: request.cpuMin,
129
130
  endpoints: request.endpoints !== void 0 ? request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)) : void 0,
@@ -136,24 +137,25 @@ const marshalCreateDeploymentRequest = (request, defaults) => ({
136
137
  tags: request.tags,
137
138
  version: request.version
138
139
  });
139
- const marshalCreateEndpointRequest = (request, defaults) => ({
140
+ var marshalCreateEndpointRequest = (request, defaults) => ({
140
141
  deployment_id: request.deploymentId,
141
142
  endpoint: request.endpoint !== void 0 ? marshalEndpointSpec(request.endpoint, defaults) : void 0
142
143
  });
143
- const marshalCreateUserRequest = (request, defaults) => ({
144
+ var marshalCreateUserRequest = (request, defaults) => ({
144
145
  is_admin: request.isAdmin,
145
146
  name: request.name,
146
147
  password: request.password
147
148
  });
148
- const marshalUpdateDeploymentRequest = (request, defaults) => ({
149
+ var marshalUpdateDeploymentRequest = (request, defaults) => ({
149
150
  cpu_max: request.cpuMax,
150
151
  cpu_min: request.cpuMin,
151
152
  name: request.name,
152
153
  replica_count: request.replicaCount,
153
154
  tags: request.tags
154
155
  });
155
- const marshalUpdateUserRequest = (request, defaults) => ({
156
+ var marshalUpdateUserRequest = (request, defaults) => ({
156
157
  is_admin: request.isAdmin,
157
158
  password: request.password
158
159
  });
160
+ //#endregion
159
161
  export { marshalCreateDatabaseRequest, marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, unmarshalDatabase, unmarshalDeployment, unmarshalEndpoint, unmarshalListDatabasesResponse, unmarshalListDeploymentsResponse, unmarshalListPresetsResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser };
File without changes
@@ -1,4 +1,5 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ //#region src/v1beta1/validation-rules.gen.ts
2
3
  var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
3
4
  CreateDatabaseRequest: () => CreateDatabaseRequest,
4
5
  CreateDeploymentRequest: () => CreateDeploymentRequest,
@@ -14,14 +15,14 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
14
15
  UpdateDeploymentRequest: () => UpdateDeploymentRequest,
15
16
  UpdateUserRequest: () => UpdateUserRequest
16
17
  });
17
- const CreateDatabaseRequest = { name: {
18
+ var CreateDatabaseRequest = { name: {
18
19
  maxLength: 63,
19
20
  minLength: 1,
20
21
  pattern: /^[a-z][a-zA-Z0-9_\-]*$/
21
22
  } };
22
- const CreateDeploymentRequest = {
23
+ var CreateDeploymentRequest = {
23
24
  cpuMax: {
24
- greaterThanOrEqual: 1,
25
+ greaterThanOrEqual: 2,
25
26
  lessThanOrEqual: 15
26
27
  },
27
28
  cpuMin: {
@@ -51,7 +52,7 @@ const CreateDeploymentRequest = {
51
52
  pattern: /^v[0-9]+$/
52
53
  }
53
54
  };
54
- const CreateUserRequest = {
55
+ var CreateUserRequest = {
55
56
  name: {
56
57
  maxLength: 63,
57
58
  minLength: 1,
@@ -62,19 +63,19 @@ const CreateUserRequest = {
62
63
  minLength: 12
63
64
  }
64
65
  };
65
- const DeleteDatabaseRequest = { name: {
66
+ var DeleteDatabaseRequest = { name: {
66
67
  maxLength: 63,
67
68
  minLength: 1,
68
69
  pattern: /^[a-z][a-zA-Z0-9_\-]*$/
69
70
  } };
70
- const DeleteUserRequest = { name: {
71
+ var DeleteUserRequest = { name: {
71
72
  maxLength: 63,
72
73
  minLength: 1,
73
74
  pattern: /^[a-z][a-zA-Z0-9_\-]*$/
74
75
  } };
75
- const Deployment = {
76
+ var Deployment = {
76
77
  cpuMax: {
77
- greaterThanOrEqual: 1,
78
+ greaterThanOrEqual: 2,
78
79
  lessThanOrEqual: 15
79
80
  },
80
81
  cpuMin: { lessThanOrEqual: 15 },
@@ -83,7 +84,7 @@ const Deployment = {
83
84
  minLength: 1
84
85
  }
85
86
  };
86
- const ListDatabasesRequest = {
87
+ var ListDatabasesRequest = {
87
88
  name: {
88
89
  maxLength: 63,
89
90
  minLength: 1,
@@ -95,7 +96,7 @@ const ListDatabasesRequest = {
95
96
  lessThanOrEqual: 100
96
97
  }
97
98
  };
98
- const ListDeploymentsRequest = {
99
+ var ListDeploymentsRequest = {
99
100
  name: {
100
101
  maxLength: 255,
101
102
  minLength: 1,
@@ -107,14 +108,14 @@ const ListDeploymentsRequest = {
107
108
  lessThanOrEqual: 100
108
109
  }
109
110
  };
110
- const ListPresetsRequest = {
111
+ var ListPresetsRequest = {
111
112
  page: { greaterThanOrEqual: 1 },
112
113
  pageSize: {
113
114
  greaterThanOrEqual: 1,
114
115
  lessThanOrEqual: 100
115
116
  }
116
117
  };
117
- const ListUsersRequest = {
118
+ var ListUsersRequest = {
118
119
  name: {
119
120
  maxLength: 63,
120
121
  minLength: 1,
@@ -126,7 +127,7 @@ const ListUsersRequest = {
126
127
  lessThanOrEqual: 100
127
128
  }
128
129
  };
129
- const ListVersionsRequest = {
130
+ var ListVersionsRequest = {
130
131
  page: { greaterThanOrEqual: 1 },
131
132
  pageSize: {
132
133
  greaterThanOrEqual: 1,
@@ -138,9 +139,9 @@ const ListVersionsRequest = {
138
139
  pattern: /^v[0-9]+$/
139
140
  }
140
141
  };
141
- const UpdateDeploymentRequest = {
142
+ var UpdateDeploymentRequest = {
142
143
  cpuMax: {
143
- greaterThanOrEqual: 1,
144
+ greaterThanOrEqual: 2,
144
145
  lessThanOrEqual: 15
145
146
  },
146
147
  cpuMin: {
@@ -157,7 +158,7 @@ const UpdateDeploymentRequest = {
157
158
  lessThanOrEqual: 6
158
159
  }
159
160
  };
160
- const UpdateUserRequest = {
161
+ var UpdateUserRequest = {
161
162
  name: {
162
163
  maxLength: 63,
163
164
  minLength: 1,
@@ -168,4 +169,5 @@ const UpdateUserRequest = {
168
169
  minLength: 12
169
170
  }
170
171
  };
171
- export { validation_rules_gen_exports };
172
+ //#endregion
173
+ export { CreateDatabaseRequest, CreateDeploymentRequest, CreateUserRequest, DeleteDatabaseRequest, DeleteUserRequest, Deployment, ListDatabasesRequest, ListDeploymentsRequest, ListPresetsRequest, ListUsersRequest, ListVersionsRequest, UpdateDeploymentRequest, UpdateUserRequest, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-datawarehouse",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "description": "Scaleway SDK datawarehouse",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -26,14 +26,14 @@
26
26
  "node": ">=20.19.6"
27
27
  },
28
28
  "dependencies": {
29
- "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.2.1"
29
+ "@scaleway/random-name": "5.1.4",
30
+ "@scaleway/sdk-std": "2.2.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.1"
33
+ "@scaleway/sdk-client": "^2.2.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.1"
36
+ "@scaleway/sdk-client": "^2.2.2"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",