@aws-sdk/client-finspace-data 3.199.0 → 3.201.0

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-finspace-data
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.199.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.198.0...v3.199.0) (2022-10-28)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-finspace-data
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
- var _a, _b;
6
5
  return {
7
6
  ...options,
8
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
9
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
10
9
  defaultSigningName: "finspace-api",
11
10
  };
12
11
  };
@@ -8,18 +8,17 @@ const uuid_1 = require("uuid");
8
8
  const FinspaceDataServiceException_1 = require("../models/FinspaceDataServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const serializeAws_restJson1AssociateUserToPermissionGroupCommand = async (input, context) => {
11
- var _a;
12
11
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13
12
  const headers = {
14
13
  "content-type": "application/json",
15
14
  };
16
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
15
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
17
16
  "/permission-group/{permissionGroupId}/users/{userId}";
18
17
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
19
18
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
20
19
  let body;
21
20
  body = JSON.stringify({
22
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
21
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
23
22
  });
24
23
  return new protocol_http_1.HttpRequest({
25
24
  protocol,
@@ -33,17 +32,16 @@ const serializeAws_restJson1AssociateUserToPermissionGroupCommand = async (input
33
32
  };
34
33
  exports.serializeAws_restJson1AssociateUserToPermissionGroupCommand = serializeAws_restJson1AssociateUserToPermissionGroupCommand;
35
34
  const serializeAws_restJson1CreateChangesetCommand = async (input, context) => {
36
- var _a;
37
35
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
38
36
  const headers = {
39
37
  "content-type": "application/json",
40
38
  };
41
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/changesetsv2";
39
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/changesetsv2";
42
40
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
43
41
  let body;
44
42
  body = JSON.stringify({
45
43
  ...(input.changeType != null && { changeType: input.changeType }),
46
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
44
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
47
45
  ...(input.formatParams != null && {
48
46
  formatParams: serializeAws_restJson1FormatParams(input.formatParams, context),
49
47
  }),
@@ -63,16 +61,15 @@ const serializeAws_restJson1CreateChangesetCommand = async (input, context) => {
63
61
  };
64
62
  exports.serializeAws_restJson1CreateChangesetCommand = serializeAws_restJson1CreateChangesetCommand;
65
63
  const serializeAws_restJson1CreateDatasetCommand = async (input, context) => {
66
- var _a;
67
64
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
65
  const headers = {
69
66
  "content-type": "application/json",
70
67
  };
71
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2";
68
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2";
72
69
  let body;
73
70
  body = JSON.stringify({
74
71
  ...(input.alias != null && { alias: input.alias }),
75
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
72
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
76
73
  ...(input.datasetDescription != null && { datasetDescription: input.datasetDescription }),
77
74
  ...(input.datasetTitle != null && { datasetTitle: input.datasetTitle }),
78
75
  ...(input.kind != null && { kind: input.kind }),
@@ -96,18 +93,17 @@ const serializeAws_restJson1CreateDatasetCommand = async (input, context) => {
96
93
  };
97
94
  exports.serializeAws_restJson1CreateDatasetCommand = serializeAws_restJson1CreateDatasetCommand;
98
95
  const serializeAws_restJson1CreateDataViewCommand = async (input, context) => {
99
- var _a;
100
96
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
101
97
  const headers = {
102
98
  "content-type": "application/json",
103
99
  };
104
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/dataviewsv2";
100
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/dataviewsv2";
105
101
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
106
102
  let body;
107
103
  body = JSON.stringify({
108
104
  ...(input.asOfTimestamp != null && { asOfTimestamp: input.asOfTimestamp }),
109
105
  ...(input.autoUpdate != null && { autoUpdate: input.autoUpdate }),
110
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
106
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
111
107
  ...(input.destinationTypeParams != null && {
112
108
  destinationTypeParams: serializeAws_restJson1DataViewDestinationTypeParams(input.destinationTypeParams, context),
113
109
  }),
@@ -128,18 +124,17 @@ const serializeAws_restJson1CreateDataViewCommand = async (input, context) => {
128
124
  };
129
125
  exports.serializeAws_restJson1CreateDataViewCommand = serializeAws_restJson1CreateDataViewCommand;
130
126
  const serializeAws_restJson1CreatePermissionGroupCommand = async (input, context) => {
131
- var _a;
132
127
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
128
  const headers = {
134
129
  "content-type": "application/json",
135
130
  };
136
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
131
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
137
132
  let body;
138
133
  body = JSON.stringify({
139
134
  ...(input.applicationPermissions != null && {
140
135
  applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
141
136
  }),
142
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
137
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
143
138
  ...(input.description != null && { description: input.description }),
144
139
  ...(input.name != null && { name: input.name }),
145
140
  });
@@ -155,17 +150,16 @@ const serializeAws_restJson1CreatePermissionGroupCommand = async (input, context
155
150
  };
156
151
  exports.serializeAws_restJson1CreatePermissionGroupCommand = serializeAws_restJson1CreatePermissionGroupCommand;
157
152
  const serializeAws_restJson1CreateUserCommand = async (input, context) => {
158
- var _a;
159
153
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
160
154
  const headers = {
161
155
  "content-type": "application/json",
162
156
  };
163
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user";
157
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user";
164
158
  let body;
165
159
  body = JSON.stringify({
166
160
  ...(input.ApiAccess != null && { ApiAccess: input.ApiAccess }),
167
161
  ...(input.apiAccessPrincipalArn != null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
168
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
162
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
169
163
  ...(input.emailAddress != null && { emailAddress: input.emailAddress }),
170
164
  ...(input.firstName != null && { firstName: input.firstName }),
171
165
  ...(input.lastName != null && { lastName: input.lastName }),
@@ -185,7 +179,7 @@ exports.serializeAws_restJson1CreateUserCommand = serializeAws_restJson1CreateUs
185
179
  const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
186
180
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
187
181
  const headers = {};
188
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
182
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
189
183
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
190
184
  const query = map({
191
185
  clientToken: [, input.clientToken],
@@ -206,7 +200,7 @@ exports.serializeAws_restJson1DeleteDatasetCommand = serializeAws_restJson1Delet
206
200
  const serializeAws_restJson1DeletePermissionGroupCommand = async (input, context) => {
207
201
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
202
  const headers = {};
209
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
203
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
210
204
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
211
205
  const query = map({
212
206
  clientToken: [, input.clientToken],
@@ -225,16 +219,15 @@ const serializeAws_restJson1DeletePermissionGroupCommand = async (input, context
225
219
  };
226
220
  exports.serializeAws_restJson1DeletePermissionGroupCommand = serializeAws_restJson1DeletePermissionGroupCommand;
227
221
  const serializeAws_restJson1DisableUserCommand = async (input, context) => {
228
- var _a;
229
222
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
230
223
  const headers = {
231
224
  "content-type": "application/json",
232
225
  };
233
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/disable";
226
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/disable";
234
227
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
235
228
  let body;
236
229
  body = JSON.stringify({
237
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
230
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
238
231
  });
239
232
  return new protocol_http_1.HttpRequest({
240
233
  protocol,
@@ -250,7 +243,7 @@ exports.serializeAws_restJson1DisableUserCommand = serializeAws_restJson1Disable
250
243
  const serializeAws_restJson1DisassociateUserFromPermissionGroupCommand = async (input, context) => {
251
244
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
252
245
  const headers = {};
253
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
246
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
254
247
  "/permission-group/{permissionGroupId}/users/{userId}";
255
248
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
256
249
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
@@ -271,16 +264,15 @@ const serializeAws_restJson1DisassociateUserFromPermissionGroupCommand = async (
271
264
  };
272
265
  exports.serializeAws_restJson1DisassociateUserFromPermissionGroupCommand = serializeAws_restJson1DisassociateUserFromPermissionGroupCommand;
273
266
  const serializeAws_restJson1EnableUserCommand = async (input, context) => {
274
- var _a;
275
267
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
276
268
  const headers = {
277
269
  "content-type": "application/json",
278
270
  };
279
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/enable";
271
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/enable";
280
272
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
281
273
  let body;
282
274
  body = JSON.stringify({
283
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
275
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
284
276
  });
285
277
  return new protocol_http_1.HttpRequest({
286
278
  protocol,
@@ -296,7 +288,7 @@ exports.serializeAws_restJson1EnableUserCommand = serializeAws_restJson1EnableUs
296
288
  const serializeAws_restJson1GetChangesetCommand = async (input, context) => {
297
289
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
298
290
  const headers = {};
299
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
291
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
300
292
  "/datasets/{datasetId}/changesetsv2/{changesetId}";
301
293
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
302
294
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "changesetId", () => input.changesetId, "{changesetId}", false);
@@ -315,7 +307,7 @@ exports.serializeAws_restJson1GetChangesetCommand = serializeAws_restJson1GetCha
315
307
  const serializeAws_restJson1GetDatasetCommand = async (input, context) => {
316
308
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
317
309
  const headers = {};
318
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
310
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
319
311
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
320
312
  let body;
321
313
  return new protocol_http_1.HttpRequest({
@@ -332,7 +324,7 @@ exports.serializeAws_restJson1GetDatasetCommand = serializeAws_restJson1GetDatas
332
324
  const serializeAws_restJson1GetDataViewCommand = async (input, context) => {
333
325
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
334
326
  const headers = {};
335
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
327
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
336
328
  "/datasets/{datasetId}/dataviewsv2/{dataViewId}";
337
329
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataViewId", () => input.dataViewId, "{dataViewId}", false);
338
330
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
@@ -351,7 +343,7 @@ exports.serializeAws_restJson1GetDataViewCommand = serializeAws_restJson1GetData
351
343
  const serializeAws_restJson1GetExternalDataViewAccessDetailsCommand = async (input, context) => {
352
344
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
353
345
  const headers = {};
354
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
346
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
355
347
  "/datasets/{datasetId}/dataviewsv2/{dataViewId}/external-access-details";
356
348
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dataViewId", () => input.dataViewId, "{dataViewId}", false);
357
349
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
@@ -370,7 +362,7 @@ exports.serializeAws_restJson1GetExternalDataViewAccessDetailsCommand = serializ
370
362
  const serializeAws_restJson1GetPermissionGroupCommand = async (input, context) => {
371
363
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
372
364
  const headers = {};
373
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
365
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
374
366
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
375
367
  let body;
376
368
  return new protocol_http_1.HttpRequest({
@@ -387,7 +379,7 @@ exports.serializeAws_restJson1GetPermissionGroupCommand = serializeAws_restJson1
387
379
  const serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = async (input, context) => {
388
380
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
389
381
  const headers = {};
390
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/credentials/programmatic";
382
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/credentials/programmatic";
391
383
  const query = map({
392
384
  durationInMinutes: [() => input.durationInMinutes !== void 0, () => input.durationInMinutes.toString()],
393
385
  environmentId: [, input.environmentId],
@@ -408,7 +400,7 @@ exports.serializeAws_restJson1GetProgrammaticAccessCredentialsCommand = serializ
408
400
  const serializeAws_restJson1GetUserCommand = async (input, context) => {
409
401
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
410
402
  const headers = {};
411
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}";
403
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}";
412
404
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
413
405
  let body;
414
406
  return new protocol_http_1.HttpRequest({
@@ -427,7 +419,7 @@ const serializeAws_restJson1GetWorkingLocationCommand = async (input, context) =
427
419
  const headers = {
428
420
  "content-type": "application/json",
429
421
  };
430
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workingLocationV1";
422
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workingLocationV1";
431
423
  let body;
432
424
  body = JSON.stringify({
433
425
  ...(input.locationType != null && { locationType: input.locationType }),
@@ -446,7 +438,7 @@ exports.serializeAws_restJson1GetWorkingLocationCommand = serializeAws_restJson1
446
438
  const serializeAws_restJson1ListChangesetsCommand = async (input, context) => {
447
439
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
448
440
  const headers = {};
449
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/changesetsv2";
441
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/changesetsv2";
450
442
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
451
443
  const query = map({
452
444
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -468,7 +460,7 @@ exports.serializeAws_restJson1ListChangesetsCommand = serializeAws_restJson1List
468
460
  const serializeAws_restJson1ListDatasetsCommand = async (input, context) => {
469
461
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
470
462
  const headers = {};
471
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2";
463
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2";
472
464
  const query = map({
473
465
  nextToken: [, input.nextToken],
474
466
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -489,7 +481,7 @@ exports.serializeAws_restJson1ListDatasetsCommand = serializeAws_restJson1ListDa
489
481
  const serializeAws_restJson1ListDataViewsCommand = async (input, context) => {
490
482
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
491
483
  const headers = {};
492
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/dataviewsv2";
484
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasets/{datasetId}/dataviewsv2";
493
485
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
494
486
  const query = map({
495
487
  nextToken: [, input.nextToken],
@@ -511,7 +503,7 @@ exports.serializeAws_restJson1ListDataViewsCommand = serializeAws_restJson1ListD
511
503
  const serializeAws_restJson1ListPermissionGroupsCommand = async (input, context) => {
512
504
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
513
505
  const headers = {};
514
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
506
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group";
515
507
  const query = map({
516
508
  nextToken: [, input.nextToken],
517
509
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -532,7 +524,7 @@ exports.serializeAws_restJson1ListPermissionGroupsCommand = serializeAws_restJso
532
524
  const serializeAws_restJson1ListPermissionGroupsByUserCommand = async (input, context) => {
533
525
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
534
526
  const headers = {};
535
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/permission-groups";
527
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/permission-groups";
536
528
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
537
529
  const query = map({
538
530
  nextToken: [, input.nextToken],
@@ -554,7 +546,7 @@ exports.serializeAws_restJson1ListPermissionGroupsByUserCommand = serializeAws_r
554
546
  const serializeAws_restJson1ListUsersCommand = async (input, context) => {
555
547
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
556
548
  const headers = {};
557
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user";
549
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user";
558
550
  const query = map({
559
551
  nextToken: [, input.nextToken],
560
552
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -575,7 +567,7 @@ exports.serializeAws_restJson1ListUsersCommand = serializeAws_restJson1ListUsers
575
567
  const serializeAws_restJson1ListUsersByPermissionGroupCommand = async (input, context) => {
576
568
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
577
569
  const headers = {};
578
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
570
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
579
571
  "/permission-group/{permissionGroupId}/users";
580
572
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
581
573
  const query = map({
@@ -596,16 +588,15 @@ const serializeAws_restJson1ListUsersByPermissionGroupCommand = async (input, co
596
588
  };
597
589
  exports.serializeAws_restJson1ListUsersByPermissionGroupCommand = serializeAws_restJson1ListUsersByPermissionGroupCommand;
598
590
  const serializeAws_restJson1ResetUserPasswordCommand = async (input, context) => {
599
- var _a;
600
591
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
601
592
  const headers = {
602
593
  "content-type": "application/json",
603
594
  };
604
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/password";
595
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}/password";
605
596
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
606
597
  let body;
607
598
  body = JSON.stringify({
608
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
599
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
609
600
  });
610
601
  return new protocol_http_1.HttpRequest({
611
602
  protocol,
@@ -619,18 +610,17 @@ const serializeAws_restJson1ResetUserPasswordCommand = async (input, context) =>
619
610
  };
620
611
  exports.serializeAws_restJson1ResetUserPasswordCommand = serializeAws_restJson1ResetUserPasswordCommand;
621
612
  const serializeAws_restJson1UpdateChangesetCommand = async (input, context) => {
622
- var _a;
623
613
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
624
614
  const headers = {
625
615
  "content-type": "application/json",
626
616
  };
627
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
617
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
628
618
  "/datasets/{datasetId}/changesetsv2/{changesetId}";
629
619
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
630
620
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "changesetId", () => input.changesetId, "{changesetId}", false);
631
621
  let body;
632
622
  body = JSON.stringify({
633
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
623
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
634
624
  ...(input.formatParams != null && {
635
625
  formatParams: serializeAws_restJson1FormatParams(input.formatParams, context),
636
626
  }),
@@ -650,17 +640,16 @@ const serializeAws_restJson1UpdateChangesetCommand = async (input, context) => {
650
640
  };
651
641
  exports.serializeAws_restJson1UpdateChangesetCommand = serializeAws_restJson1UpdateChangesetCommand;
652
642
  const serializeAws_restJson1UpdateDatasetCommand = async (input, context) => {
653
- var _a;
654
643
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
655
644
  const headers = {
656
645
  "content-type": "application/json",
657
646
  };
658
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
647
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
659
648
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
660
649
  let body;
661
650
  body = JSON.stringify({
662
651
  ...(input.alias != null && { alias: input.alias }),
663
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
652
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
664
653
  ...(input.datasetDescription != null && { datasetDescription: input.datasetDescription }),
665
654
  ...(input.datasetTitle != null && { datasetTitle: input.datasetTitle }),
666
655
  ...(input.kind != null && { kind: input.kind }),
@@ -680,19 +669,18 @@ const serializeAws_restJson1UpdateDatasetCommand = async (input, context) => {
680
669
  };
681
670
  exports.serializeAws_restJson1UpdateDatasetCommand = serializeAws_restJson1UpdateDatasetCommand;
682
671
  const serializeAws_restJson1UpdatePermissionGroupCommand = async (input, context) => {
683
- var _a;
684
672
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
685
673
  const headers = {
686
674
  "content-type": "application/json",
687
675
  };
688
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
676
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
689
677
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
690
678
  let body;
691
679
  body = JSON.stringify({
692
680
  ...(input.applicationPermissions != null && {
693
681
  applicationPermissions: serializeAws_restJson1ApplicationPermissionList(input.applicationPermissions, context),
694
682
  }),
695
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
683
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
696
684
  ...(input.description != null && { description: input.description }),
697
685
  ...(input.name != null && { name: input.name }),
698
686
  });
@@ -708,18 +696,17 @@ const serializeAws_restJson1UpdatePermissionGroupCommand = async (input, context
708
696
  };
709
697
  exports.serializeAws_restJson1UpdatePermissionGroupCommand = serializeAws_restJson1UpdatePermissionGroupCommand;
710
698
  const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
711
- var _a;
712
699
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
713
700
  const headers = {
714
701
  "content-type": "application/json",
715
702
  };
716
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}";
703
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/{userId}";
717
704
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
718
705
  let body;
719
706
  body = JSON.stringify({
720
707
  ...(input.apiAccess != null && { apiAccess: input.apiAccess }),
721
708
  ...(input.apiAccessPrincipalArn != null && { apiAccessPrincipalArn: input.apiAccessPrincipalArn }),
722
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
709
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
723
710
  ...(input.firstName != null && { firstName: input.firstName }),
724
711
  ...(input.lastName != null && { lastName: input.lastName }),
725
712
  ...(input.type != null && { type: input.type }),
@@ -2956,15 +2943,12 @@ const deserializeAws_restJson1UserList = (output, context) => {
2956
2943
  });
2957
2944
  return retVal;
2958
2945
  };
2959
- const deserializeMetadata = (output) => {
2960
- var _a, _b;
2961
- return ({
2962
- httpStatusCode: output.statusCode,
2963
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2964
- extendedRequestId: output.headers["x-amz-id-2"],
2965
- cfId: output.headers["x-amz-cf-id"],
2966
- });
2967
- };
2946
+ const deserializeMetadata = (output) => ({
2947
+ httpStatusCode: output.statusCode,
2948
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2949
+ extendedRequestId: output.headers["x-amz-id-2"],
2950
+ cfId: output.headers["x-amz-cf-id"],
2951
+ });
2968
2952
  const collectBody = (streamBody = new Uint8Array(), context) => {
2969
2953
  if (streamBody instanceof Uint8Array) {
2970
2954
  return Promise.resolve(streamBody);
@@ -2984,9 +2968,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
2984
2968
  return {};
2985
2969
  });
2986
2970
  const parseErrorBody = async (errorBody, context) => {
2987
- var _a;
2988
2971
  const value = await parseBody(errorBody, context);
2989
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
2972
+ value.message = value.message ?? value.Message;
2990
2973
  return value;
2991
2974
  };
2992
2975
  const loadRestJsonErrorCode = (output, data) => {
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
21
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
25
24
  ...config,
26
25
  runtime: "browser",
27
26
  defaultsMode,
28
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
27
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
43
43
  };
44
44
  };
45
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const smithy_client_2 = require("@aws-sdk/smithy-client");
21
21
  const getRuntimeConfig = (config) => {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
22
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
29
28
  ...config,
30
29
  runtime: "node",
31
30
  defaultsMode,
32
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
31
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ (0, node_config_provider_1.loadConfig)({
42
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
44
+ }),
45
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
49
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
50
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
50
51
  };
51
52
  };
52
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
- const getRuntimeConfig = (config) => {
7
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2020-07-13",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "finspace data",
14
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
- });
16
- };
6
+ const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2020-07-13",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "finspace data",
12
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
13
+ });
17
14
  exports.getRuntimeConfig = getRuntimeConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-finspace-data",
3
3
  "description": "AWS SDK for JavaScript Finspace Data Client for Node.js, Browser and React Native",
4
- "version": "3.199.0",
4
+ "version": "3.201.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,45 +19,45 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.199.0",
23
- "@aws-sdk/config-resolver": "3.198.0",
24
- "@aws-sdk/credential-provider-node": "3.199.0",
25
- "@aws-sdk/fetch-http-handler": "3.199.0",
26
- "@aws-sdk/hash-node": "3.198.0",
27
- "@aws-sdk/invalid-dependency": "3.198.0",
28
- "@aws-sdk/middleware-content-length": "3.199.0",
29
- "@aws-sdk/middleware-endpoint": "3.198.0",
30
- "@aws-sdk/middleware-host-header": "3.198.0",
31
- "@aws-sdk/middleware-logger": "3.198.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.198.0",
33
- "@aws-sdk/middleware-retry": "3.198.0",
34
- "@aws-sdk/middleware-serde": "3.198.0",
35
- "@aws-sdk/middleware-signing": "3.198.0",
36
- "@aws-sdk/middleware-stack": "3.198.0",
37
- "@aws-sdk/middleware-user-agent": "3.198.0",
38
- "@aws-sdk/node-config-provider": "3.198.0",
39
- "@aws-sdk/node-http-handler": "3.199.0",
40
- "@aws-sdk/protocol-http": "3.198.0",
41
- "@aws-sdk/smithy-client": "3.198.0",
42
- "@aws-sdk/types": "3.198.0",
43
- "@aws-sdk/url-parser": "3.198.0",
22
+ "@aws-sdk/client-sts": "3.201.0",
23
+ "@aws-sdk/config-resolver": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.201.0",
25
+ "@aws-sdk/fetch-http-handler": "3.201.0",
26
+ "@aws-sdk/hash-node": "3.201.0",
27
+ "@aws-sdk/invalid-dependency": "3.201.0",
28
+ "@aws-sdk/middleware-content-length": "3.201.0",
29
+ "@aws-sdk/middleware-endpoint": "3.201.0",
30
+ "@aws-sdk/middleware-host-header": "3.201.0",
31
+ "@aws-sdk/middleware-logger": "3.201.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
33
+ "@aws-sdk/middleware-retry": "3.201.0",
34
+ "@aws-sdk/middleware-serde": "3.201.0",
35
+ "@aws-sdk/middleware-signing": "3.201.0",
36
+ "@aws-sdk/middleware-stack": "3.201.0",
37
+ "@aws-sdk/middleware-user-agent": "3.201.0",
38
+ "@aws-sdk/node-config-provider": "3.201.0",
39
+ "@aws-sdk/node-http-handler": "3.201.0",
40
+ "@aws-sdk/protocol-http": "3.201.0",
41
+ "@aws-sdk/smithy-client": "3.201.0",
42
+ "@aws-sdk/types": "3.201.0",
43
+ "@aws-sdk/url-parser": "3.201.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
- "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-base64-node": "3.201.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
- "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.198.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.198.0",
50
- "@aws-sdk/util-endpoints": "3.198.0",
51
- "@aws-sdk/util-user-agent-browser": "3.198.0",
52
- "@aws-sdk/util-user-agent-node": "3.198.0",
47
+ "@aws-sdk/util-body-length-node": "3.201.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.201.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
52
+ "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.199.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
55
  "tslib": "^2.3.1",
56
56
  "uuid": "^8.3.2"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
60
- "@tsconfig/recommended": "1.0.1",
60
+ "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^12.7.5",
62
62
  "@types/uuid": "^8.3.0",
63
63
  "concurrently": "7.0.0",
@@ -72,7 +72,7 @@
72
72
  }
73
73
  },
74
74
  "engines": {
75
- "node": ">=12.0.0"
75
+ "node": ">=14.0.0"
76
76
  },
77
77
  "typesVersions": {
78
78
  "<4.0": {