@aws-sdk/client-finspace 3.121.0 → 3.130.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,33 @@
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-finspace
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-finspace
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -13,22 +13,18 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
13
13
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.dataBundles !== undefined &&
17
- input.dataBundles !== null && { dataBundles: serializeAws_restJson1DataBundleArns(input.dataBundles, context) }),
18
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
19
- ...(input.federationMode !== undefined &&
20
- input.federationMode !== null && { federationMode: input.federationMode }),
21
- ...(input.federationParameters !== undefined &&
22
- input.federationParameters !== null && {
16
+ ...(input.dataBundles != null && { dataBundles: serializeAws_restJson1DataBundleArns(input.dataBundles, context) }),
17
+ ...(input.description != null && { description: input.description }),
18
+ ...(input.federationMode != null && { federationMode: input.federationMode }),
19
+ ...(input.federationParameters != null && {
23
20
  federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
24
21
  }),
25
- ...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
26
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
27
- ...(input.superuserParameters !== undefined &&
28
- input.superuserParameters !== null && {
22
+ ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
23
+ ...(input.name != null && { name: input.name }),
24
+ ...(input.superuserParameters != null && {
29
25
  superuserParameters: serializeAws_restJson1SuperuserParameters(input.superuserParameters, context),
30
26
  }),
31
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
27
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
32
28
  });
33
29
  return new protocol_http_1.HttpRequest({
34
30
  protocol,
@@ -158,7 +154,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
158
154
  }
159
155
  let body;
160
156
  body = JSON.stringify({
161
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
157
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
162
158
  });
163
159
  return new protocol_http_1.HttpRequest({
164
160
  protocol,
@@ -219,14 +215,12 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
219
215
  }
220
216
  let body;
221
217
  body = JSON.stringify({
222
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
223
- ...(input.federationMode !== undefined &&
224
- input.federationMode !== null && { federationMode: input.federationMode }),
225
- ...(input.federationParameters !== undefined &&
226
- input.federationParameters !== null && {
218
+ ...(input.description != null && { description: input.description }),
219
+ ...(input.federationMode != null && { federationMode: input.federationMode }),
220
+ ...(input.federationParameters != null && {
227
221
  federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
228
222
  }),
229
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
223
+ ...(input.name != null && { name: input.name }),
230
224
  });
231
225
  return new protocol_http_1.HttpRequest({
232
226
  protocol,
@@ -725,24 +719,21 @@ const serializeAws_restJson1DataBundleArns = (input, context) => {
725
719
  };
726
720
  const serializeAws_restJson1FederationParameters = (input, context) => {
727
721
  return {
728
- ...(input.applicationCallBackURL !== undefined &&
729
- input.applicationCallBackURL !== null && { applicationCallBackURL: input.applicationCallBackURL }),
730
- ...(input.attributeMap !== undefined &&
731
- input.attributeMap !== null && { attributeMap: serializeAws_restJson1AttributeMap(input.attributeMap, context) }),
732
- ...(input.federationProviderName !== undefined &&
733
- input.federationProviderName !== null && { federationProviderName: input.federationProviderName }),
734
- ...(input.federationURN !== undefined && input.federationURN !== null && { federationURN: input.federationURN }),
735
- ...(input.samlMetadataDocument !== undefined &&
736
- input.samlMetadataDocument !== null && { samlMetadataDocument: input.samlMetadataDocument }),
737
- ...(input.samlMetadataURL !== undefined &&
738
- input.samlMetadataURL !== null && { samlMetadataURL: input.samlMetadataURL }),
722
+ ...(input.applicationCallBackURL != null && { applicationCallBackURL: input.applicationCallBackURL }),
723
+ ...(input.attributeMap != null && {
724
+ attributeMap: serializeAws_restJson1AttributeMap(input.attributeMap, context),
725
+ }),
726
+ ...(input.federationProviderName != null && { federationProviderName: input.federationProviderName }),
727
+ ...(input.federationURN != null && { federationURN: input.federationURN }),
728
+ ...(input.samlMetadataDocument != null && { samlMetadataDocument: input.samlMetadataDocument }),
729
+ ...(input.samlMetadataURL != null && { samlMetadataURL: input.samlMetadataURL }),
739
730
  };
740
731
  };
741
732
  const serializeAws_restJson1SuperuserParameters = (input, context) => {
742
733
  return {
743
- ...(input.emailAddress !== undefined && input.emailAddress !== null && { emailAddress: input.emailAddress }),
744
- ...(input.firstName !== undefined && input.firstName !== null && { firstName: input.firstName }),
745
- ...(input.lastName !== undefined && input.lastName !== null && { lastName: input.lastName }),
734
+ ...(input.emailAddress != null && { emailAddress: input.emailAddress }),
735
+ ...(input.firstName != null && { firstName: input.firstName }),
736
+ ...(input.lastName != null && { lastName: input.lastName }),
746
737
  };
747
738
  };
748
739
  const serializeAws_restJson1TagMap = (input, context) => {
@@ -776,7 +767,7 @@ const deserializeAws_restJson1Environment = (output, context) => {
776
767
  environmentId: (0, smithy_client_1.expectString)(output.environmentId),
777
768
  environmentUrl: (0, smithy_client_1.expectString)(output.environmentUrl),
778
769
  federationMode: (0, smithy_client_1.expectString)(output.federationMode),
779
- federationParameters: output.federationParameters !== undefined && output.federationParameters !== null
770
+ federationParameters: output.federationParameters != null
780
771
  ? deserializeAws_restJson1FederationParameters(output.federationParameters, context)
781
772
  : undefined,
782
773
  kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
@@ -799,9 +790,7 @@ const deserializeAws_restJson1EnvironmentList = (output, context) => {
799
790
  const deserializeAws_restJson1FederationParameters = (output, context) => {
800
791
  return {
801
792
  applicationCallBackURL: (0, smithy_client_1.expectString)(output.applicationCallBackURL),
802
- attributeMap: output.attributeMap !== undefined && output.attributeMap !== null
803
- ? deserializeAws_restJson1AttributeMap(output.attributeMap, context)
804
- : undefined,
793
+ attributeMap: output.attributeMap != null ? deserializeAws_restJson1AttributeMap(output.attributeMap, context) : undefined,
805
794
  federationProviderName: (0, smithy_client_1.expectString)(output.federationProviderName),
806
795
  federationURN: (0, smithy_client_1.expectString)(output.federationURN),
807
796
  samlMetadataDocument: (0, smithy_client_1.expectString)(output.samlMetadataDocument),
@@ -850,6 +839,9 @@ const loadRestJsonErrorCode = (output, data) => {
850
839
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
851
840
  const sanitizeErrorCode = (rawValue) => {
852
841
  let cleanValue = rawValue;
842
+ if (typeof cleanValue === "number") {
843
+ cleanValue = cleanValue.toString();
844
+ }
853
845
  if (cleanValue.indexOf(":") >= 0) {
854
846
  cleanValue = cleanValue.split(":")[0];
855
847
  }
@@ -14,15 +14,11 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environment";
17
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataBundles !== undefined &&
18
- input.dataBundles !== null && { dataBundles: serializeAws_restJson1DataBundleArns(input.dataBundles, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.federationMode !== undefined &&
19
- input.federationMode !== null && { federationMode: input.federationMode })), (input.federationParameters !== undefined &&
20
- input.federationParameters !== null && {
17
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataBundles != null && { dataBundles: serializeAws_restJson1DataBundleArns(input.dataBundles, context) })), (input.description != null && { description: input.description })), (input.federationMode != null && { federationMode: input.federationMode })), (input.federationParameters != null && {
21
18
  federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
22
- })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.superuserParameters !== undefined &&
23
- input.superuserParameters !== null && {
19
+ })), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.name != null && { name: input.name })), (input.superuserParameters != null && {
24
20
  superuserParameters: serializeAws_restJson1SuperuserParameters(input.superuserParameters, context),
25
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
21
+ })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
26
22
  return [2, new __HttpRequest({
27
23
  protocol: protocol,
28
24
  hostname: hostname,
@@ -172,7 +168,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
172
168
  else {
173
169
  throw new Error("No value provided for input HTTP label: resourceArn.");
174
170
  }
175
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
171
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
176
172
  return [2, new __HttpRequest({
177
173
  protocol: protocol,
178
174
  hostname: hostname,
@@ -239,11 +235,9 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
239
235
  else {
240
236
  throw new Error("No value provided for input HTTP label: environmentId.");
241
237
  }
242
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.federationMode !== undefined &&
243
- input.federationMode !== null && { federationMode: input.federationMode })), (input.federationParameters !== undefined &&
244
- input.federationParameters !== null && {
238
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.federationMode != null && { federationMode: input.federationMode })), (input.federationParameters != null && {
245
239
  federationParameters: serializeAws_restJson1FederationParameters(input.federationParameters, context),
246
- })), (input.name !== undefined && input.name !== null && { name: input.name })));
240
+ })), (input.name != null && { name: input.name })));
247
241
  return [2, new __HttpRequest({
248
242
  protocol: protocol,
249
243
  hostname: hostname,
@@ -909,15 +903,12 @@ var serializeAws_restJson1DataBundleArns = function (input, context) {
909
903
  });
910
904
  };
911
905
  var serializeAws_restJson1FederationParameters = function (input, context) {
912
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.applicationCallBackURL !== undefined &&
913
- input.applicationCallBackURL !== null && { applicationCallBackURL: input.applicationCallBackURL })), (input.attributeMap !== undefined &&
914
- input.attributeMap !== null && { attributeMap: serializeAws_restJson1AttributeMap(input.attributeMap, context) })), (input.federationProviderName !== undefined &&
915
- input.federationProviderName !== null && { federationProviderName: input.federationProviderName })), (input.federationURN !== undefined && input.federationURN !== null && { federationURN: input.federationURN })), (input.samlMetadataDocument !== undefined &&
916
- input.samlMetadataDocument !== null && { samlMetadataDocument: input.samlMetadataDocument })), (input.samlMetadataURL !== undefined &&
917
- input.samlMetadataURL !== null && { samlMetadataURL: input.samlMetadataURL }));
906
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.applicationCallBackURL != null && { applicationCallBackURL: input.applicationCallBackURL })), (input.attributeMap != null && {
907
+ attributeMap: serializeAws_restJson1AttributeMap(input.attributeMap, context),
908
+ })), (input.federationProviderName != null && { federationProviderName: input.federationProviderName })), (input.federationURN != null && { federationURN: input.federationURN })), (input.samlMetadataDocument != null && { samlMetadataDocument: input.samlMetadataDocument })), (input.samlMetadataURL != null && { samlMetadataURL: input.samlMetadataURL }));
918
909
  };
919
910
  var serializeAws_restJson1SuperuserParameters = function (input, context) {
920
- return __assign(__assign(__assign({}, (input.emailAddress !== undefined && input.emailAddress !== null && { emailAddress: input.emailAddress })), (input.firstName !== undefined && input.firstName !== null && { firstName: input.firstName })), (input.lastName !== undefined && input.lastName !== null && { lastName: input.lastName }));
911
+ return __assign(__assign(__assign({}, (input.emailAddress != null && { emailAddress: input.emailAddress })), (input.firstName != null && { firstName: input.firstName })), (input.lastName != null && { lastName: input.lastName }));
921
912
  };
922
913
  var serializeAws_restJson1TagMap = function (input, context) {
923
914
  return Object.entries(input).reduce(function (acc, _a) {
@@ -948,7 +939,7 @@ var deserializeAws_restJson1Environment = function (output, context) {
948
939
  environmentId: __expectString(output.environmentId),
949
940
  environmentUrl: __expectString(output.environmentUrl),
950
941
  federationMode: __expectString(output.federationMode),
951
- federationParameters: output.federationParameters !== undefined && output.federationParameters !== null
942
+ federationParameters: output.federationParameters != null
952
943
  ? deserializeAws_restJson1FederationParameters(output.federationParameters, context)
953
944
  : undefined,
954
945
  kmsKeyId: __expectString(output.kmsKeyId),
@@ -971,9 +962,7 @@ var deserializeAws_restJson1EnvironmentList = function (output, context) {
971
962
  var deserializeAws_restJson1FederationParameters = function (output, context) {
972
963
  return {
973
964
  applicationCallBackURL: __expectString(output.applicationCallBackURL),
974
- attributeMap: output.attributeMap !== undefined && output.attributeMap !== null
975
- ? deserializeAws_restJson1AttributeMap(output.attributeMap, context)
976
- : undefined,
965
+ attributeMap: output.attributeMap != null ? deserializeAws_restJson1AttributeMap(output.attributeMap, context) : undefined,
977
966
  federationProviderName: __expectString(output.federationProviderName),
978
967
  federationURN: __expectString(output.federationURN),
979
968
  samlMetadataDocument: __expectString(output.samlMetadataDocument),
@@ -1028,6 +1017,9 @@ var loadRestJsonErrorCode = function (output, data) {
1028
1017
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
1029
1018
  var sanitizeErrorCode = function (rawValue) {
1030
1019
  var cleanValue = rawValue;
1020
+ if (typeof cleanValue === "number") {
1021
+ cleanValue = cleanValue.toString();
1022
+ }
1031
1023
  if (cleanValue.indexOf(":") >= 0) {
1032
1024
  cleanValue = cleanValue.split(":")[0];
1033
1025
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-finspace",
3
3
  "description": "AWS SDK for JavaScript Finspace Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.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",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.130.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.130.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"