@aws-sdk/client-schemas 3.261.0 → 3.262.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.
@@ -821,7 +821,7 @@ const deserializeAws_restJson1CreateSchemaCommand = async (output, context) => {
821
821
  contents.Description = (0, smithy_client_1.expectString)(data.Description);
822
822
  }
823
823
  if (data.LastModified != null) {
824
- contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.LastModified));
824
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.LastModified));
825
825
  }
826
826
  if (data.SchemaArn != null) {
827
827
  contents.SchemaArn = (0, smithy_client_1.expectString)(data.SchemaArn);
@@ -839,7 +839,7 @@ const deserializeAws_restJson1CreateSchemaCommand = async (output, context) => {
839
839
  contents.Type = (0, smithy_client_1.expectString)(data.Type);
840
840
  }
841
841
  if (data.VersionCreatedDate != null) {
842
- contents.VersionCreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.VersionCreatedDate));
842
+ contents.VersionCreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.VersionCreatedDate));
843
843
  }
844
844
  return contents;
845
845
  };
@@ -1112,10 +1112,10 @@ const deserializeAws_restJson1DescribeCodeBindingCommand = async (output, contex
1112
1112
  });
1113
1113
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1114
1114
  if (data.CreationDate != null) {
1115
- contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreationDate));
1115
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CreationDate));
1116
1116
  }
1117
1117
  if (data.LastModified != null) {
1118
- contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.LastModified));
1118
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.LastModified));
1119
1119
  }
1120
1120
  if (data.SchemaVersion != null) {
1121
1121
  contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
@@ -1301,7 +1301,7 @@ const deserializeAws_restJson1DescribeSchemaCommand = async (output, context) =>
1301
1301
  contents.Description = (0, smithy_client_1.expectString)(data.Description);
1302
1302
  }
1303
1303
  if (data.LastModified != null) {
1304
- contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.LastModified));
1304
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.LastModified));
1305
1305
  }
1306
1306
  if (data.SchemaArn != null) {
1307
1307
  contents.SchemaArn = (0, smithy_client_1.expectString)(data.SchemaArn);
@@ -1319,7 +1319,7 @@ const deserializeAws_restJson1DescribeSchemaCommand = async (output, context) =>
1319
1319
  contents.Type = (0, smithy_client_1.expectString)(data.Type);
1320
1320
  }
1321
1321
  if (data.VersionCreatedDate != null) {
1322
- contents.VersionCreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.VersionCreatedDate));
1322
+ contents.VersionCreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.VersionCreatedDate));
1323
1323
  }
1324
1324
  return contents;
1325
1325
  };
@@ -1819,10 +1819,10 @@ const deserializeAws_restJson1PutCodeBindingCommand = async (output, context) =>
1819
1819
  });
1820
1820
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1821
1821
  if (data.CreationDate != null) {
1822
- contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreationDate));
1822
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.CreationDate));
1823
1823
  }
1824
1824
  if (data.LastModified != null) {
1825
- contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.LastModified));
1825
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.LastModified));
1826
1826
  }
1827
1827
  if (data.SchemaVersion != null) {
1828
1828
  contents.SchemaVersion = (0, smithy_client_1.expectString)(data.SchemaVersion);
@@ -2296,7 +2296,7 @@ const deserializeAws_restJson1UpdateSchemaCommand = async (output, context) => {
2296
2296
  contents.Description = (0, smithy_client_1.expectString)(data.Description);
2297
2297
  }
2298
2298
  if (data.LastModified != null) {
2299
- contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.LastModified));
2299
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.LastModified));
2300
2300
  }
2301
2301
  if (data.SchemaArn != null) {
2302
2302
  contents.SchemaArn = (0, smithy_client_1.expectString)(data.SchemaArn);
@@ -2314,7 +2314,7 @@ const deserializeAws_restJson1UpdateSchemaCommand = async (output, context) => {
2314
2314
  contents.Type = (0, smithy_client_1.expectString)(data.Type);
2315
2315
  }
2316
2316
  if (data.VersionCreatedDate != null) {
2317
- contents.VersionCreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.VersionCreatedDate));
2317
+ contents.VersionCreatedDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.VersionCreatedDate));
2318
2318
  }
2319
2319
  return contents;
2320
2320
  };
@@ -2603,7 +2603,7 @@ const deserializeAws_restJson1RegistrySummary = (output, context) => {
2603
2603
  };
2604
2604
  const deserializeAws_restJson1SchemaSummary = (output, context) => {
2605
2605
  return {
2606
- LastModified: output.LastModified != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.LastModified)) : undefined,
2606
+ LastModified: output.LastModified != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.LastModified)) : undefined,
2607
2607
  SchemaArn: (0, smithy_client_1.expectString)(output.SchemaArn),
2608
2608
  SchemaName: (0, smithy_client_1.expectString)(output.SchemaName),
2609
2609
  Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
@@ -2630,7 +2630,7 @@ const deserializeAws_restJson1SearchSchemaSummary = (output, context) => {
2630
2630
  };
2631
2631
  const deserializeAws_restJson1SearchSchemaVersionSummary = (output, context) => {
2632
2632
  return {
2633
- CreatedDate: output.CreatedDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedDate)) : undefined,
2633
+ CreatedDate: output.CreatedDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedDate)) : undefined,
2634
2634
  SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion),
2635
2635
  Type: (0, smithy_client_1.expectString)(output.Type),
2636
2636
  };
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { BadRequestException, ConflictException, ForbiddenException, GoneException, InternalServerErrorException, NotFoundException, PreconditionFailedException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
5
5
  import { SchemasServiceException as __BaseException } from "../models/SchemasServiceException";
@@ -784,7 +784,7 @@ export const deserializeAws_restJson1CreateSchemaCommand = async (output, contex
784
784
  contents.Description = __expectString(data.Description);
785
785
  }
786
786
  if (data.LastModified != null) {
787
- contents.LastModified = __expectNonNull(__parseRfc3339DateTime(data.LastModified));
787
+ contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.LastModified));
788
788
  }
789
789
  if (data.SchemaArn != null) {
790
790
  contents.SchemaArn = __expectString(data.SchemaArn);
@@ -802,7 +802,7 @@ export const deserializeAws_restJson1CreateSchemaCommand = async (output, contex
802
802
  contents.Type = __expectString(data.Type);
803
803
  }
804
804
  if (data.VersionCreatedDate != null) {
805
- contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTime(data.VersionCreatedDate));
805
+ contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.VersionCreatedDate));
806
806
  }
807
807
  return contents;
808
808
  };
@@ -1069,10 +1069,10 @@ export const deserializeAws_restJson1DescribeCodeBindingCommand = async (output,
1069
1069
  });
1070
1070
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1071
1071
  if (data.CreationDate != null) {
1072
- contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(data.CreationDate));
1072
+ contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreationDate));
1073
1073
  }
1074
1074
  if (data.LastModified != null) {
1075
- contents.LastModified = __expectNonNull(__parseRfc3339DateTime(data.LastModified));
1075
+ contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.LastModified));
1076
1076
  }
1077
1077
  if (data.SchemaVersion != null) {
1078
1078
  contents.SchemaVersion = __expectString(data.SchemaVersion);
@@ -1255,7 +1255,7 @@ export const deserializeAws_restJson1DescribeSchemaCommand = async (output, cont
1255
1255
  contents.Description = __expectString(data.Description);
1256
1256
  }
1257
1257
  if (data.LastModified != null) {
1258
- contents.LastModified = __expectNonNull(__parseRfc3339DateTime(data.LastModified));
1258
+ contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.LastModified));
1259
1259
  }
1260
1260
  if (data.SchemaArn != null) {
1261
1261
  contents.SchemaArn = __expectString(data.SchemaArn);
@@ -1273,7 +1273,7 @@ export const deserializeAws_restJson1DescribeSchemaCommand = async (output, cont
1273
1273
  contents.Type = __expectString(data.Type);
1274
1274
  }
1275
1275
  if (data.VersionCreatedDate != null) {
1276
- contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTime(data.VersionCreatedDate));
1276
+ contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.VersionCreatedDate));
1277
1277
  }
1278
1278
  return contents;
1279
1279
  };
@@ -1763,10 +1763,10 @@ export const deserializeAws_restJson1PutCodeBindingCommand = async (output, cont
1763
1763
  });
1764
1764
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1765
1765
  if (data.CreationDate != null) {
1766
- contents.CreationDate = __expectNonNull(__parseRfc3339DateTime(data.CreationDate));
1766
+ contents.CreationDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreationDate));
1767
1767
  }
1768
1768
  if (data.LastModified != null) {
1769
- contents.LastModified = __expectNonNull(__parseRfc3339DateTime(data.LastModified));
1769
+ contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.LastModified));
1770
1770
  }
1771
1771
  if (data.SchemaVersion != null) {
1772
1772
  contents.SchemaVersion = __expectString(data.SchemaVersion);
@@ -2231,7 +2231,7 @@ export const deserializeAws_restJson1UpdateSchemaCommand = async (output, contex
2231
2231
  contents.Description = __expectString(data.Description);
2232
2232
  }
2233
2233
  if (data.LastModified != null) {
2234
- contents.LastModified = __expectNonNull(__parseRfc3339DateTime(data.LastModified));
2234
+ contents.LastModified = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.LastModified));
2235
2235
  }
2236
2236
  if (data.SchemaArn != null) {
2237
2237
  contents.SchemaArn = __expectString(data.SchemaArn);
@@ -2249,7 +2249,7 @@ export const deserializeAws_restJson1UpdateSchemaCommand = async (output, contex
2249
2249
  contents.Type = __expectString(data.Type);
2250
2250
  }
2251
2251
  if (data.VersionCreatedDate != null) {
2252
- contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTime(data.VersionCreatedDate));
2252
+ contents.VersionCreatedDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.VersionCreatedDate));
2253
2253
  }
2254
2254
  return contents;
2255
2255
  };
@@ -2537,7 +2537,7 @@ const deserializeAws_restJson1RegistrySummary = (output, context) => {
2537
2537
  };
2538
2538
  const deserializeAws_restJson1SchemaSummary = (output, context) => {
2539
2539
  return {
2540
- LastModified: output.LastModified != null ? __expectNonNull(__parseRfc3339DateTime(output.LastModified)) : undefined,
2540
+ LastModified: output.LastModified != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.LastModified)) : undefined,
2541
2541
  SchemaArn: __expectString(output.SchemaArn),
2542
2542
  SchemaName: __expectString(output.SchemaName),
2543
2543
  Tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
@@ -2564,7 +2564,7 @@ const deserializeAws_restJson1SearchSchemaSummary = (output, context) => {
2564
2564
  };
2565
2565
  const deserializeAws_restJson1SearchSchemaVersionSummary = (output, context) => {
2566
2566
  return {
2567
- CreatedDate: output.CreatedDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedDate)) : undefined,
2567
+ CreatedDate: output.CreatedDate != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreatedDate)) : undefined,
2568
2568
  SchemaVersion: __expectString(output.SchemaVersion),
2569
2569
  Type: __expectString(output.Type),
2570
2570
  };
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.261.0",
4
+ "version": "3.262.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",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.261.0",
23
+ "@aws-sdk/client-sts": "3.262.0",
24
24
  "@aws-sdk/config-resolver": "3.259.0",
25
25
  "@aws-sdk/credential-provider-node": "3.261.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.257.0",