@aws-sdk/client-finspace-data 3.229.0 → 3.230.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.
@@ -182,7 +182,7 @@ const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
182
182
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
183
183
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
184
184
  const query = map({
185
- clientToken: [, input.clientToken],
185
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
186
186
  });
187
187
  let body;
188
188
  return new protocol_http_1.HttpRequest({
@@ -203,7 +203,7 @@ const serializeAws_restJson1DeletePermissionGroupCommand = async (input, context
203
203
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
204
204
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
205
205
  const query = map({
206
- clientToken: [, input.clientToken],
206
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
207
207
  });
208
208
  let body;
209
209
  return new protocol_http_1.HttpRequest({
@@ -248,7 +248,7 @@ const serializeAws_restJson1DisassociateUserFromPermissionGroupCommand = async (
248
248
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
249
249
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
250
250
  const query = map({
251
- clientToken: [, input.clientToken],
251
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
252
252
  });
253
253
  let body;
254
254
  return new protocol_http_1.HttpRequest({
@@ -172,7 +172,7 @@ export const serializeAws_restJson1DeleteDatasetCommand = async (input, context)
172
172
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/datasetsv2/{datasetId}";
173
173
  resolvedPath = __resolvedPath(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
174
174
  const query = map({
175
- clientToken: [, input.clientToken],
175
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
176
176
  });
177
177
  let body;
178
178
  return new __HttpRequest({
@@ -192,7 +192,7 @@ export const serializeAws_restJson1DeletePermissionGroupCommand = async (input,
192
192
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/permission-group/{permissionGroupId}";
193
193
  resolvedPath = __resolvedPath(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
194
194
  const query = map({
195
- clientToken: [, input.clientToken],
195
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
196
196
  });
197
197
  let body;
198
198
  return new __HttpRequest({
@@ -235,7 +235,7 @@ export const serializeAws_restJson1DisassociateUserFromPermissionGroupCommand =
235
235
  resolvedPath = __resolvedPath(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
236
236
  resolvedPath = __resolvedPath(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
237
237
  const query = map({
238
- clientToken: [, input.clientToken],
238
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
239
239
  });
240
240
  let body;
241
241
  return new __HttpRequest({
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.229.0",
4
+ "version": "3.230.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",