@aws-sdk/client-schemas 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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +30 -38
- package/dist-es/protocols/Aws_restJson1.js +19 -27
- package/package.json +27 -27
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-schemas
|
|
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-schemas
|
|
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
|
|
|
@@ -15,10 +15,10 @@ const serializeAws_restJson1CreateDiscovererCommand = async (input, context) =>
|
|
|
15
15
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discoverers";
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
|
-
...(input.CrossAccount
|
|
19
|
-
...(input.Description
|
|
20
|
-
...(input.SourceArn
|
|
21
|
-
...(input.Tags
|
|
18
|
+
...(input.CrossAccount != null && { CrossAccount: input.CrossAccount }),
|
|
19
|
+
...(input.Description != null && { Description: input.Description }),
|
|
20
|
+
...(input.SourceArn != null && { SourceArn: input.SourceArn }),
|
|
21
|
+
...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
22
22
|
});
|
|
23
23
|
return new protocol_http_1.HttpRequest({
|
|
24
24
|
protocol,
|
|
@@ -49,8 +49,8 @@ const serializeAws_restJson1CreateRegistryCommand = async (input, context) => {
|
|
|
49
49
|
}
|
|
50
50
|
let body;
|
|
51
51
|
body = JSON.stringify({
|
|
52
|
-
...(input.Description
|
|
53
|
-
...(input.Tags
|
|
52
|
+
...(input.Description != null && { Description: input.Description }),
|
|
53
|
+
...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
54
54
|
});
|
|
55
55
|
return new protocol_http_1.HttpRequest({
|
|
56
56
|
protocol,
|
|
@@ -92,10 +92,10 @@ const serializeAws_restJson1CreateSchemaCommand = async (input, context) => {
|
|
|
92
92
|
}
|
|
93
93
|
let body;
|
|
94
94
|
body = JSON.stringify({
|
|
95
|
-
...(input.Content
|
|
96
|
-
...(input.Description
|
|
97
|
-
...(input.Tags
|
|
98
|
-
...(input.Type
|
|
95
|
+
...(input.Content != null && { Content: input.Content }),
|
|
96
|
+
...(input.Description != null && { Description: input.Description }),
|
|
97
|
+
...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
98
|
+
...(input.Type != null && { Type: input.Type }),
|
|
99
99
|
});
|
|
100
100
|
return new protocol_http_1.HttpRequest({
|
|
101
101
|
protocol,
|
|
@@ -509,11 +509,10 @@ const serializeAws_restJson1GetDiscoveredSchemaCommand = async (input, context)
|
|
|
509
509
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/discover";
|
|
510
510
|
let body;
|
|
511
511
|
body = JSON.stringify({
|
|
512
|
-
...(input.Events
|
|
513
|
-
input.Events !== null && {
|
|
512
|
+
...(input.Events != null && {
|
|
514
513
|
Events: serializeAws_restJson1__listOfGetDiscoveredSchemaVersionItemInput(input.Events, context),
|
|
515
514
|
}),
|
|
516
|
-
...(input.Type
|
|
515
|
+
...(input.Type != null && { Type: input.Type }),
|
|
517
516
|
});
|
|
518
517
|
return new protocol_http_1.HttpRequest({
|
|
519
518
|
protocol,
|
|
@@ -755,8 +754,8 @@ const serializeAws_restJson1PutResourcePolicyCommand = async (input, context) =>
|
|
|
755
754
|
};
|
|
756
755
|
let body;
|
|
757
756
|
body = JSON.stringify({
|
|
758
|
-
...(input.Policy
|
|
759
|
-
...(input.RevisionId
|
|
757
|
+
...(input.Policy != null && { Policy: smithy_client_1.LazyJsonString.fromObject(input.Policy) }),
|
|
758
|
+
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
760
759
|
});
|
|
761
760
|
return new protocol_http_1.HttpRequest({
|
|
762
761
|
protocol,
|
|
@@ -873,7 +872,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
873
872
|
}
|
|
874
873
|
let body;
|
|
875
874
|
body = JSON.stringify({
|
|
876
|
-
...(input.Tags
|
|
875
|
+
...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
877
876
|
});
|
|
878
877
|
return new protocol_http_1.HttpRequest({
|
|
879
878
|
protocol,
|
|
@@ -934,8 +933,8 @@ const serializeAws_restJson1UpdateDiscovererCommand = async (input, context) =>
|
|
|
934
933
|
}
|
|
935
934
|
let body;
|
|
936
935
|
body = JSON.stringify({
|
|
937
|
-
...(input.CrossAccount
|
|
938
|
-
...(input.Description
|
|
936
|
+
...(input.CrossAccount != null && { CrossAccount: input.CrossAccount }),
|
|
937
|
+
...(input.Description != null && { Description: input.Description }),
|
|
939
938
|
});
|
|
940
939
|
return new protocol_http_1.HttpRequest({
|
|
941
940
|
protocol,
|
|
@@ -966,7 +965,7 @@ const serializeAws_restJson1UpdateRegistryCommand = async (input, context) => {
|
|
|
966
965
|
}
|
|
967
966
|
let body;
|
|
968
967
|
body = JSON.stringify({
|
|
969
|
-
...(input.Description
|
|
968
|
+
...(input.Description != null && { Description: input.Description }),
|
|
970
969
|
});
|
|
971
970
|
return new protocol_http_1.HttpRequest({
|
|
972
971
|
protocol,
|
|
@@ -1010,9 +1009,9 @@ const serializeAws_restJson1UpdateSchemaCommand = async (input, context) => {
|
|
|
1010
1009
|
let body;
|
|
1011
1010
|
body = JSON.stringify({
|
|
1012
1011
|
ClientTokenId: (_a = input.ClientTokenId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1013
|
-
...(input.Content
|
|
1014
|
-
...(input.Description
|
|
1015
|
-
...(input.Type
|
|
1012
|
+
...(input.Content != null && { Content: input.Content }),
|
|
1013
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1014
|
+
...(input.Type != null && { Type: input.Type }),
|
|
1016
1015
|
});
|
|
1017
1016
|
return new protocol_http_1.HttpRequest({
|
|
1018
1017
|
protocol,
|
|
@@ -3121,30 +3120,22 @@ const deserializeAws_restJson1DiscovererSummary = (output, context) => {
|
|
|
3121
3120
|
DiscovererId: (0, smithy_client_1.expectString)(output.DiscovererId),
|
|
3122
3121
|
SourceArn: (0, smithy_client_1.expectString)(output.SourceArn),
|
|
3123
3122
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
3124
|
-
Tags: output.tags
|
|
3125
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3126
|
-
: undefined,
|
|
3123
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3127
3124
|
};
|
|
3128
3125
|
};
|
|
3129
3126
|
const deserializeAws_restJson1RegistrySummary = (output, context) => {
|
|
3130
3127
|
return {
|
|
3131
3128
|
RegistryArn: (0, smithy_client_1.expectString)(output.RegistryArn),
|
|
3132
3129
|
RegistryName: (0, smithy_client_1.expectString)(output.RegistryName),
|
|
3133
|
-
Tags: output.tags
|
|
3134
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3135
|
-
: undefined,
|
|
3130
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3136
3131
|
};
|
|
3137
3132
|
};
|
|
3138
3133
|
const deserializeAws_restJson1SchemaSummary = (output, context) => {
|
|
3139
3134
|
return {
|
|
3140
|
-
LastModified: output.LastModified
|
|
3141
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.LastModified))
|
|
3142
|
-
: undefined,
|
|
3135
|
+
LastModified: output.LastModified != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.LastModified)) : undefined,
|
|
3143
3136
|
SchemaArn: (0, smithy_client_1.expectString)(output.SchemaArn),
|
|
3144
3137
|
SchemaName: (0, smithy_client_1.expectString)(output.SchemaName),
|
|
3145
|
-
Tags: output.tags
|
|
3146
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3147
|
-
: undefined,
|
|
3138
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3148
3139
|
VersionCount: (0, smithy_client_1.expectLong)(output.VersionCount),
|
|
3149
3140
|
};
|
|
3150
3141
|
};
|
|
@@ -3161,16 +3152,14 @@ const deserializeAws_restJson1SearchSchemaSummary = (output, context) => {
|
|
|
3161
3152
|
RegistryName: (0, smithy_client_1.expectString)(output.RegistryName),
|
|
3162
3153
|
SchemaArn: (0, smithy_client_1.expectString)(output.SchemaArn),
|
|
3163
3154
|
SchemaName: (0, smithy_client_1.expectString)(output.SchemaName),
|
|
3164
|
-
SchemaVersions: output.SchemaVersions
|
|
3155
|
+
SchemaVersions: output.SchemaVersions != null
|
|
3165
3156
|
? deserializeAws_restJson1__listOfSearchSchemaVersionSummary(output.SchemaVersions, context)
|
|
3166
3157
|
: undefined,
|
|
3167
3158
|
};
|
|
3168
3159
|
};
|
|
3169
3160
|
const deserializeAws_restJson1SearchSchemaVersionSummary = (output, context) => {
|
|
3170
3161
|
return {
|
|
3171
|
-
CreatedDate: output.CreatedDate
|
|
3172
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedDate))
|
|
3173
|
-
: undefined,
|
|
3162
|
+
CreatedDate: output.CreatedDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedDate)) : undefined,
|
|
3174
3163
|
SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion),
|
|
3175
3164
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3176
3165
|
};
|
|
@@ -3217,6 +3206,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3217
3206
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3218
3207
|
const sanitizeErrorCode = (rawValue) => {
|
|
3219
3208
|
let cleanValue = rawValue;
|
|
3209
|
+
if (typeof cleanValue === "number") {
|
|
3210
|
+
cleanValue = cleanValue.toString();
|
|
3211
|
+
}
|
|
3220
3212
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3221
3213
|
cleanValue = cleanValue.split(":")[0];
|
|
3222
3214
|
}
|
|
@@ -15,7 +15,7 @@ export var serializeAws_restJson1CreateDiscovererCommand = function (input, cont
|
|
|
15
15
|
"content-type": "application/json",
|
|
16
16
|
};
|
|
17
17
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers";
|
|
18
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CrossAccount
|
|
18
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CrossAccount != null && { CrossAccount: input.CrossAccount })), (input.Description != null && { Description: input.Description })), (input.SourceArn != null && { SourceArn: input.SourceArn })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
19
19
|
return [2, new __HttpRequest({
|
|
20
20
|
protocol: protocol,
|
|
21
21
|
hostname: hostname,
|
|
@@ -49,7 +49,7 @@ export var serializeAws_restJson1CreateRegistryCommand = function (input, contex
|
|
|
49
49
|
else {
|
|
50
50
|
throw new Error("No value provided for input HTTP label: RegistryName.");
|
|
51
51
|
}
|
|
52
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
52
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
53
53
|
return [2, new __HttpRequest({
|
|
54
54
|
protocol: protocol,
|
|
55
55
|
hostname: hostname,
|
|
@@ -94,7 +94,7 @@ export var serializeAws_restJson1CreateSchemaCommand = function (input, context)
|
|
|
94
94
|
else {
|
|
95
95
|
throw new Error("No value provided for input HTTP label: SchemaName.");
|
|
96
96
|
}
|
|
97
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Content
|
|
97
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Description != null && { Description: input.Description })), (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.Type != null && { Type: input.Type })));
|
|
98
98
|
return [2, new __HttpRequest({
|
|
99
99
|
protocol: protocol,
|
|
100
100
|
hostname: hostname,
|
|
@@ -555,10 +555,9 @@ export var serializeAws_restJson1GetDiscoveredSchemaCommand = function (input, c
|
|
|
555
555
|
"content-type": "application/json",
|
|
556
556
|
};
|
|
557
557
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discover";
|
|
558
|
-
body = JSON.stringify(__assign(__assign({}, (input.Events
|
|
559
|
-
input.Events !== null && {
|
|
558
|
+
body = JSON.stringify(__assign(__assign({}, (input.Events != null && {
|
|
560
559
|
Events: serializeAws_restJson1__listOfGetDiscoveredSchemaVersionItemInput(input.Events, context),
|
|
561
|
-
})), (input.Type
|
|
560
|
+
})), (input.Type != null && { Type: input.Type })));
|
|
562
561
|
return [2, new __HttpRequest({
|
|
563
562
|
protocol: protocol,
|
|
564
563
|
hostname: hostname,
|
|
@@ -815,7 +814,7 @@ export var serializeAws_restJson1PutResourcePolicyCommand = function (input, con
|
|
|
815
814
|
};
|
|
816
815
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/policy";
|
|
817
816
|
query = __assign({}, (input.RegistryName !== undefined && { registryName: input.RegistryName }));
|
|
818
|
-
body = JSON.stringify(__assign(__assign({}, (input.Policy
|
|
817
|
+
body = JSON.stringify(__assign(__assign({}, (input.Policy != null && { Policy: __LazyJsonString.fromObject(input.Policy) })), (input.RevisionId != null && { RevisionId: input.RevisionId })));
|
|
819
818
|
return [2, new __HttpRequest({
|
|
820
819
|
protocol: protocol,
|
|
821
820
|
hostname: hostname,
|
|
@@ -946,7 +945,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
946
945
|
else {
|
|
947
946
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
948
947
|
}
|
|
949
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
948
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
950
949
|
return [2, new __HttpRequest({
|
|
951
950
|
protocol: protocol,
|
|
952
951
|
hostname: hostname,
|
|
@@ -1013,7 +1012,7 @@ export var serializeAws_restJson1UpdateDiscovererCommand = function (input, cont
|
|
|
1013
1012
|
else {
|
|
1014
1013
|
throw new Error("No value provided for input HTTP label: DiscovererId.");
|
|
1015
1014
|
}
|
|
1016
|
-
body = JSON.stringify(__assign(__assign({}, (input.CrossAccount
|
|
1015
|
+
body = JSON.stringify(__assign(__assign({}, (input.CrossAccount != null && { CrossAccount: input.CrossAccount })), (input.Description != null && { Description: input.Description })));
|
|
1017
1016
|
return [2, new __HttpRequest({
|
|
1018
1017
|
protocol: protocol,
|
|
1019
1018
|
hostname: hostname,
|
|
@@ -1047,7 +1046,7 @@ export var serializeAws_restJson1UpdateRegistryCommand = function (input, contex
|
|
|
1047
1046
|
else {
|
|
1048
1047
|
throw new Error("No value provided for input HTTP label: RegistryName.");
|
|
1049
1048
|
}
|
|
1050
|
-
body = JSON.stringify(__assign({}, (input.Description
|
|
1049
|
+
body = JSON.stringify(__assign({}, (input.Description != null && { Description: input.Description })));
|
|
1051
1050
|
return [2, new __HttpRequest({
|
|
1052
1051
|
protocol: protocol,
|
|
1053
1052
|
hostname: hostname,
|
|
@@ -1093,7 +1092,7 @@ export var serializeAws_restJson1UpdateSchemaCommand = function (input, context)
|
|
|
1093
1092
|
else {
|
|
1094
1093
|
throw new Error("No value provided for input HTTP label: SchemaName.");
|
|
1095
1094
|
}
|
|
1096
|
-
body = JSON.stringify(__assign(__assign(__assign({ ClientTokenId: (_c = input.ClientTokenId) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content
|
|
1095
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientTokenId: (_c = input.ClientTokenId) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.Description != null && { Description: input.Description })), (input.Type != null && { Type: input.Type })));
|
|
1097
1096
|
return [2, new __HttpRequest({
|
|
1098
1097
|
protocol: protocol,
|
|
1099
1098
|
hostname: hostname,
|
|
@@ -3918,30 +3917,22 @@ var deserializeAws_restJson1DiscovererSummary = function (output, context) {
|
|
|
3918
3917
|
DiscovererId: __expectString(output.DiscovererId),
|
|
3919
3918
|
SourceArn: __expectString(output.SourceArn),
|
|
3920
3919
|
State: __expectString(output.State),
|
|
3921
|
-
Tags: output.tags
|
|
3922
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3923
|
-
: undefined,
|
|
3920
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3924
3921
|
};
|
|
3925
3922
|
};
|
|
3926
3923
|
var deserializeAws_restJson1RegistrySummary = function (output, context) {
|
|
3927
3924
|
return {
|
|
3928
3925
|
RegistryArn: __expectString(output.RegistryArn),
|
|
3929
3926
|
RegistryName: __expectString(output.RegistryName),
|
|
3930
|
-
Tags: output.tags
|
|
3931
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3932
|
-
: undefined,
|
|
3927
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3933
3928
|
};
|
|
3934
3929
|
};
|
|
3935
3930
|
var deserializeAws_restJson1SchemaSummary = function (output, context) {
|
|
3936
3931
|
return {
|
|
3937
|
-
LastModified: output.LastModified
|
|
3938
|
-
? __expectNonNull(__parseRfc3339DateTime(output.LastModified))
|
|
3939
|
-
: undefined,
|
|
3932
|
+
LastModified: output.LastModified != null ? __expectNonNull(__parseRfc3339DateTime(output.LastModified)) : undefined,
|
|
3940
3933
|
SchemaArn: __expectString(output.SchemaArn),
|
|
3941
3934
|
SchemaName: __expectString(output.SchemaName),
|
|
3942
|
-
Tags: output.tags
|
|
3943
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
3944
|
-
: undefined,
|
|
3935
|
+
Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
3945
3936
|
VersionCount: __expectLong(output.VersionCount),
|
|
3946
3937
|
};
|
|
3947
3938
|
};
|
|
@@ -3958,16 +3949,14 @@ var deserializeAws_restJson1SearchSchemaSummary = function (output, context) {
|
|
|
3958
3949
|
RegistryName: __expectString(output.RegistryName),
|
|
3959
3950
|
SchemaArn: __expectString(output.SchemaArn),
|
|
3960
3951
|
SchemaName: __expectString(output.SchemaName),
|
|
3961
|
-
SchemaVersions: output.SchemaVersions
|
|
3952
|
+
SchemaVersions: output.SchemaVersions != null
|
|
3962
3953
|
? deserializeAws_restJson1__listOfSearchSchemaVersionSummary(output.SchemaVersions, context)
|
|
3963
3954
|
: undefined,
|
|
3964
3955
|
};
|
|
3965
3956
|
};
|
|
3966
3957
|
var deserializeAws_restJson1SearchSchemaVersionSummary = function (output, context) {
|
|
3967
3958
|
return {
|
|
3968
|
-
CreatedDate: output.CreatedDate
|
|
3969
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedDate))
|
|
3970
|
-
: undefined,
|
|
3959
|
+
CreatedDate: output.CreatedDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedDate)) : undefined,
|
|
3971
3960
|
SchemaVersion: __expectString(output.SchemaVersion),
|
|
3972
3961
|
Type: __expectString(output.Type),
|
|
3973
3962
|
};
|
|
@@ -4020,6 +4009,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4020
4009
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4021
4010
|
var sanitizeErrorCode = function (rawValue) {
|
|
4022
4011
|
var cleanValue = rawValue;
|
|
4012
|
+
if (typeof cleanValue === "number") {
|
|
4013
|
+
cleanValue = cleanValue.toString();
|
|
4014
|
+
}
|
|
4023
4015
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4024
4016
|
cleanValue = cleanValue.split(":")[0];
|
|
4025
4017
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-schemas",
|
|
3
3
|
"description": "AWS SDK for JavaScript Schemas Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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,38 +18,38 @@
|
|
|
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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
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.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
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
|
-
"@aws-sdk/util-waiter": "3.
|
|
52
|
+
"@aws-sdk/util-waiter": "3.127.0",
|
|
53
53
|
"tslib": "^2.3.1",
|
|
54
54
|
"uuid": "^8.3.2"
|
|
55
55
|
},
|