@aws-sdk/client-finspace-data 3.200.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 +11 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +51 -68
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
|
|
6
17
|
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
18
|
|
|
8
19
|
**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:
|
|
9
|
-
useFipsEndpoint:
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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:
|
|
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 = `${
|
|
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:
|
|
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
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
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 =
|
|
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:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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:
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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.
|
|
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.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
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.
|
|
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.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
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.
|
|
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/
|
|
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": ">=
|
|
75
|
+
"node": ">=14.0.0"
|
|
76
76
|
},
|
|
77
77
|
"typesVersions": {
|
|
78
78
|
"<4.0": {
|