@aws-sdk/client-customer-profiles 3.42.0 → 3.43.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/CustomerProfiles.js +45 -0
  3. package/dist-cjs/commands/GetAutoMergingPreviewCommand.js +36 -0
  4. package/dist-cjs/commands/GetIdentityResolutionJobCommand.js +36 -0
  5. package/dist-cjs/commands/ListIdentityResolutionJobsCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +124 -3
  8. package/dist-cjs/protocols/Aws_restJson1.js +621 -2
  9. package/dist-es/CustomerProfiles.js +45 -0
  10. package/dist-es/commands/GetAutoMergingPreviewCommand.js +39 -0
  11. package/dist-es/commands/GetIdentityResolutionJobCommand.js +39 -0
  12. package/dist-es/commands/ListIdentityResolutionJobsCommand.js +39 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/models/models_0.js +89 -0
  15. package/dist-es/protocols/Aws_restJson1.js +653 -4
  16. package/dist-types/CustomerProfiles.d.ts +48 -2
  17. package/dist-types/CustomerProfilesClient.d.ts +5 -2
  18. package/dist-types/commands/CreateDomainCommand.d.ts +2 -0
  19. package/dist-types/commands/GetAutoMergingPreviewCommand.d.ts +48 -0
  20. package/dist-types/commands/GetIdentityResolutionJobCommand.d.ts +37 -0
  21. package/dist-types/commands/GetMatchesCommand.d.ts +7 -2
  22. package/dist-types/commands/ListIdentityResolutionJobsCommand.d.ts +36 -0
  23. package/dist-types/commands/UpdateDomainCommand.d.ts +2 -0
  24. package/dist-types/commands/index.d.ts +3 -0
  25. package/dist-types/models/models_0.d.ts +573 -28
  26. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  27. package/dist-types/ts3.4/CustomerProfiles.d.ts +15 -0
  28. package/dist-types/ts3.4/CustomerProfilesClient.d.ts +5 -2
  29. package/dist-types/ts3.4/commands/GetAutoMergingPreviewCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/GetIdentityResolutionJobCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/ListIdentityResolutionJobsCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +250 -0
  34. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
  35. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListProfileObjectTypeTemplatesCommand = exports.deserializeAws_restJson1ListProfileObjectTypesCommand = exports.deserializeAws_restJson1ListProfileObjectsCommand = exports.deserializeAws_restJson1ListIntegrationsCommand = exports.deserializeAws_restJson1ListDomainsCommand = exports.deserializeAws_restJson1ListAccountIntegrationsCommand = exports.deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = exports.deserializeAws_restJson1GetProfileObjectTypeCommand = exports.deserializeAws_restJson1GetMatchesCommand = exports.deserializeAws_restJson1GetIntegrationCommand = exports.deserializeAws_restJson1GetDomainCommand = exports.deserializeAws_restJson1DeleteProfileObjectTypeCommand = exports.deserializeAws_restJson1DeleteProfileObjectCommand = exports.deserializeAws_restJson1DeleteProfileKeyCommand = exports.deserializeAws_restJson1DeleteProfileCommand = exports.deserializeAws_restJson1DeleteIntegrationCommand = exports.deserializeAws_restJson1DeleteDomainCommand = exports.deserializeAws_restJson1CreateProfileCommand = exports.deserializeAws_restJson1CreateDomainCommand = exports.deserializeAws_restJson1AddProfileKeyCommand = exports.serializeAws_restJson1UpdateProfileCommand = exports.serializeAws_restJson1UpdateDomainCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchProfilesCommand = exports.serializeAws_restJson1PutProfileObjectTypeCommand = exports.serializeAws_restJson1PutProfileObjectCommand = exports.serializeAws_restJson1PutIntegrationCommand = exports.serializeAws_restJson1MergeProfilesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListProfileObjectTypeTemplatesCommand = exports.serializeAws_restJson1ListProfileObjectTypesCommand = exports.serializeAws_restJson1ListProfileObjectsCommand = exports.serializeAws_restJson1ListIntegrationsCommand = exports.serializeAws_restJson1ListDomainsCommand = exports.serializeAws_restJson1ListAccountIntegrationsCommand = exports.serializeAws_restJson1GetProfileObjectTypeTemplateCommand = exports.serializeAws_restJson1GetProfileObjectTypeCommand = exports.serializeAws_restJson1GetMatchesCommand = exports.serializeAws_restJson1GetIntegrationCommand = exports.serializeAws_restJson1GetDomainCommand = exports.serializeAws_restJson1DeleteProfileObjectTypeCommand = exports.serializeAws_restJson1DeleteProfileObjectCommand = exports.serializeAws_restJson1DeleteProfileKeyCommand = exports.serializeAws_restJson1DeleteProfileCommand = exports.serializeAws_restJson1DeleteIntegrationCommand = exports.serializeAws_restJson1DeleteDomainCommand = exports.serializeAws_restJson1CreateProfileCommand = exports.serializeAws_restJson1CreateDomainCommand = exports.serializeAws_restJson1AddProfileKeyCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateProfileCommand = exports.deserializeAws_restJson1UpdateDomainCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchProfilesCommand = exports.deserializeAws_restJson1PutProfileObjectTypeCommand = exports.deserializeAws_restJson1PutProfileObjectCommand = exports.deserializeAws_restJson1PutIntegrationCommand = exports.deserializeAws_restJson1MergeProfilesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = void 0;
3
+ exports.deserializeAws_restJson1ListAccountIntegrationsCommand = exports.deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = exports.deserializeAws_restJson1GetProfileObjectTypeCommand = exports.deserializeAws_restJson1GetMatchesCommand = exports.deserializeAws_restJson1GetIntegrationCommand = exports.deserializeAws_restJson1GetIdentityResolutionJobCommand = exports.deserializeAws_restJson1GetDomainCommand = exports.deserializeAws_restJson1GetAutoMergingPreviewCommand = exports.deserializeAws_restJson1DeleteProfileObjectTypeCommand = exports.deserializeAws_restJson1DeleteProfileObjectCommand = exports.deserializeAws_restJson1DeleteProfileKeyCommand = exports.deserializeAws_restJson1DeleteProfileCommand = exports.deserializeAws_restJson1DeleteIntegrationCommand = exports.deserializeAws_restJson1DeleteDomainCommand = exports.deserializeAws_restJson1CreateProfileCommand = exports.deserializeAws_restJson1CreateDomainCommand = exports.deserializeAws_restJson1AddProfileKeyCommand = exports.serializeAws_restJson1UpdateProfileCommand = exports.serializeAws_restJson1UpdateDomainCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchProfilesCommand = exports.serializeAws_restJson1PutProfileObjectTypeCommand = exports.serializeAws_restJson1PutProfileObjectCommand = exports.serializeAws_restJson1PutIntegrationCommand = exports.serializeAws_restJson1MergeProfilesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListProfileObjectTypeTemplatesCommand = exports.serializeAws_restJson1ListProfileObjectTypesCommand = exports.serializeAws_restJson1ListProfileObjectsCommand = exports.serializeAws_restJson1ListIntegrationsCommand = exports.serializeAws_restJson1ListIdentityResolutionJobsCommand = exports.serializeAws_restJson1ListDomainsCommand = exports.serializeAws_restJson1ListAccountIntegrationsCommand = exports.serializeAws_restJson1GetProfileObjectTypeTemplateCommand = exports.serializeAws_restJson1GetProfileObjectTypeCommand = exports.serializeAws_restJson1GetMatchesCommand = exports.serializeAws_restJson1GetIntegrationCommand = exports.serializeAws_restJson1GetIdentityResolutionJobCommand = exports.serializeAws_restJson1GetDomainCommand = exports.serializeAws_restJson1GetAutoMergingPreviewCommand = exports.serializeAws_restJson1DeleteProfileObjectTypeCommand = exports.serializeAws_restJson1DeleteProfileObjectCommand = exports.serializeAws_restJson1DeleteProfileKeyCommand = exports.serializeAws_restJson1DeleteProfileCommand = exports.serializeAws_restJson1DeleteIntegrationCommand = exports.serializeAws_restJson1DeleteDomainCommand = exports.serializeAws_restJson1CreateProfileCommand = exports.serializeAws_restJson1CreateDomainCommand = exports.serializeAws_restJson1AddProfileKeyCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateProfileCommand = exports.deserializeAws_restJson1UpdateDomainCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchProfilesCommand = exports.deserializeAws_restJson1PutProfileObjectTypeCommand = exports.deserializeAws_restJson1PutProfileObjectCommand = exports.deserializeAws_restJson1PutIntegrationCommand = exports.deserializeAws_restJson1MergeProfilesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProfileObjectTypeTemplatesCommand = exports.deserializeAws_restJson1ListProfileObjectTypesCommand = exports.deserializeAws_restJson1ListProfileObjectsCommand = exports.deserializeAws_restJson1ListIntegrationsCommand = exports.deserializeAws_restJson1ListIdentityResolutionJobsCommand = exports.deserializeAws_restJson1ListDomainsCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const serializeAws_restJson1AddProfileKeyCommand = async (input, context) => {
@@ -341,6 +341,45 @@ const serializeAws_restJson1DeleteProfileObjectTypeCommand = async (input, conte
341
341
  });
342
342
  };
343
343
  exports.serializeAws_restJson1DeleteProfileObjectTypeCommand = serializeAws_restJson1DeleteProfileObjectTypeCommand;
344
+ const serializeAws_restJson1GetAutoMergingPreviewCommand = async (input, context) => {
345
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
346
+ const headers = {
347
+ "content-type": "application/json",
348
+ };
349
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
350
+ "/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview";
351
+ if (input.DomainName !== undefined) {
352
+ const labelValue = input.DomainName;
353
+ if (labelValue.length <= 0) {
354
+ throw new Error("Empty value provided for input HTTP label: DomainName.");
355
+ }
356
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
357
+ }
358
+ else {
359
+ throw new Error("No value provided for input HTTP label: DomainName.");
360
+ }
361
+ let body;
362
+ body = JSON.stringify({
363
+ ...(input.ConflictResolution !== undefined &&
364
+ input.ConflictResolution !== null && {
365
+ ConflictResolution: serializeAws_restJson1ConflictResolution(input.ConflictResolution, context),
366
+ }),
367
+ ...(input.Consolidation !== undefined &&
368
+ input.Consolidation !== null && {
369
+ Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
370
+ }),
371
+ });
372
+ return new protocol_http_1.HttpRequest({
373
+ protocol,
374
+ hostname,
375
+ port,
376
+ method: "POST",
377
+ headers,
378
+ path: resolvedPath,
379
+ body,
380
+ });
381
+ };
382
+ exports.serializeAws_restJson1GetAutoMergingPreviewCommand = serializeAws_restJson1GetAutoMergingPreviewCommand;
344
383
  const serializeAws_restJson1GetDomainCommand = async (input, context) => {
345
384
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
346
385
  const headers = {};
@@ -367,6 +406,43 @@ const serializeAws_restJson1GetDomainCommand = async (input, context) => {
367
406
  });
368
407
  };
369
408
  exports.serializeAws_restJson1GetDomainCommand = serializeAws_restJson1GetDomainCommand;
409
+ const serializeAws_restJson1GetIdentityResolutionJobCommand = async (input, context) => {
410
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
411
+ const headers = {};
412
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
413
+ "/domains/{DomainName}/identity-resolution-jobs/{JobId}";
414
+ if (input.DomainName !== undefined) {
415
+ const labelValue = input.DomainName;
416
+ if (labelValue.length <= 0) {
417
+ throw new Error("Empty value provided for input HTTP label: DomainName.");
418
+ }
419
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
420
+ }
421
+ else {
422
+ throw new Error("No value provided for input HTTP label: DomainName.");
423
+ }
424
+ if (input.JobId !== undefined) {
425
+ const labelValue = input.JobId;
426
+ if (labelValue.length <= 0) {
427
+ throw new Error("Empty value provided for input HTTP label: JobId.");
428
+ }
429
+ resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
430
+ }
431
+ else {
432
+ throw new Error("No value provided for input HTTP label: JobId.");
433
+ }
434
+ let body;
435
+ return new protocol_http_1.HttpRequest({
436
+ protocol,
437
+ hostname,
438
+ port,
439
+ method: "GET",
440
+ headers,
441
+ path: resolvedPath,
442
+ body,
443
+ });
444
+ };
445
+ exports.serializeAws_restJson1GetIdentityResolutionJobCommand = serializeAws_restJson1GetIdentityResolutionJobCommand;
370
446
  const serializeAws_restJson1GetIntegrationCommand = async (input, context) => {
371
447
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
372
448
  const headers = {
@@ -539,6 +615,38 @@ const serializeAws_restJson1ListDomainsCommand = async (input, context) => {
539
615
  });
540
616
  };
541
617
  exports.serializeAws_restJson1ListDomainsCommand = serializeAws_restJson1ListDomainsCommand;
618
+ const serializeAws_restJson1ListIdentityResolutionJobsCommand = async (input, context) => {
619
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
620
+ const headers = {};
621
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
622
+ "/domains/{DomainName}/identity-resolution-jobs";
623
+ if (input.DomainName !== undefined) {
624
+ const labelValue = input.DomainName;
625
+ if (labelValue.length <= 0) {
626
+ throw new Error("Empty value provided for input HTTP label: DomainName.");
627
+ }
628
+ resolvedPath = resolvedPath.replace("{DomainName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
629
+ }
630
+ else {
631
+ throw new Error("No value provided for input HTTP label: DomainName.");
632
+ }
633
+ const query = {
634
+ ...(input.NextToken !== undefined && { "next-token": input.NextToken }),
635
+ ...(input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() }),
636
+ };
637
+ let body;
638
+ return new protocol_http_1.HttpRequest({
639
+ protocol,
640
+ hostname,
641
+ port,
642
+ method: "GET",
643
+ headers,
644
+ path: resolvedPath,
645
+ query,
646
+ body,
647
+ });
648
+ };
649
+ exports.serializeAws_restJson1ListIdentityResolutionJobsCommand = serializeAws_restJson1ListIdentityResolutionJobsCommand;
542
650
  const serializeAws_restJson1ListIntegrationsCommand = async (input, context) => {
543
651
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
544
652
  const headers = {};
@@ -837,6 +945,10 @@ const serializeAws_restJson1PutProfileObjectTypeCommand = async (input, context)
837
945
  ...(input.Fields !== undefined &&
838
946
  input.Fields !== null && { Fields: serializeAws_restJson1FieldMap(input.Fields, context) }),
839
947
  ...(input.Keys !== undefined && input.Keys !== null && { Keys: serializeAws_restJson1KeyMap(input.Keys, context) }),
948
+ ...(input.SourceLastUpdatedTimestampFormat !== undefined &&
949
+ input.SourceLastUpdatedTimestampFormat !== null && {
950
+ SourceLastUpdatedTimestampFormat: input.SourceLastUpdatedTimestampFormat,
951
+ }),
840
952
  ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
841
953
  ...(input.TemplateId !== undefined && input.TemplateId !== null && { TemplateId: input.TemplateId }),
842
954
  });
@@ -1810,6 +1922,98 @@ const deserializeAws_restJson1DeleteProfileObjectTypeCommandError = async (outpu
1810
1922
  delete response.Message;
1811
1923
  return Promise.reject(Object.assign(new Error(message), response));
1812
1924
  };
1925
+ const deserializeAws_restJson1GetAutoMergingPreviewCommand = async (output, context) => {
1926
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1927
+ return deserializeAws_restJson1GetAutoMergingPreviewCommandError(output, context);
1928
+ }
1929
+ const contents = {
1930
+ $metadata: deserializeMetadata(output),
1931
+ DomainName: undefined,
1932
+ NumberOfMatchesInSample: undefined,
1933
+ NumberOfProfilesInSample: undefined,
1934
+ NumberOfProfilesWillBeMerged: undefined,
1935
+ };
1936
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1937
+ if (data.DomainName !== undefined && data.DomainName !== null) {
1938
+ contents.DomainName = smithy_client_1.expectString(data.DomainName);
1939
+ }
1940
+ if (data.NumberOfMatchesInSample !== undefined && data.NumberOfMatchesInSample !== null) {
1941
+ contents.NumberOfMatchesInSample = smithy_client_1.expectLong(data.NumberOfMatchesInSample);
1942
+ }
1943
+ if (data.NumberOfProfilesInSample !== undefined && data.NumberOfProfilesInSample !== null) {
1944
+ contents.NumberOfProfilesInSample = smithy_client_1.expectLong(data.NumberOfProfilesInSample);
1945
+ }
1946
+ if (data.NumberOfProfilesWillBeMerged !== undefined && data.NumberOfProfilesWillBeMerged !== null) {
1947
+ contents.NumberOfProfilesWillBeMerged = smithy_client_1.expectLong(data.NumberOfProfilesWillBeMerged);
1948
+ }
1949
+ return Promise.resolve(contents);
1950
+ };
1951
+ exports.deserializeAws_restJson1GetAutoMergingPreviewCommand = deserializeAws_restJson1GetAutoMergingPreviewCommand;
1952
+ const deserializeAws_restJson1GetAutoMergingPreviewCommandError = async (output, context) => {
1953
+ const parsedOutput = {
1954
+ ...output,
1955
+ body: await parseBody(output.body, context),
1956
+ };
1957
+ let response;
1958
+ let errorCode = "UnknownError";
1959
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1960
+ switch (errorCode) {
1961
+ case "AccessDeniedException":
1962
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
1963
+ response = {
1964
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
1965
+ name: errorCode,
1966
+ $metadata: deserializeMetadata(output),
1967
+ };
1968
+ break;
1969
+ case "BadRequestException":
1970
+ case "com.amazonaws.customerprofiles#BadRequestException":
1971
+ response = {
1972
+ ...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
1973
+ name: errorCode,
1974
+ $metadata: deserializeMetadata(output),
1975
+ };
1976
+ break;
1977
+ case "InternalServerException":
1978
+ case "com.amazonaws.customerprofiles#InternalServerException":
1979
+ response = {
1980
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
1981
+ name: errorCode,
1982
+ $metadata: deserializeMetadata(output),
1983
+ };
1984
+ break;
1985
+ case "ResourceNotFoundException":
1986
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1987
+ response = {
1988
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1989
+ name: errorCode,
1990
+ $metadata: deserializeMetadata(output),
1991
+ };
1992
+ break;
1993
+ case "ThrottlingException":
1994
+ case "com.amazonaws.customerprofiles#ThrottlingException":
1995
+ response = {
1996
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
1997
+ name: errorCode,
1998
+ $metadata: deserializeMetadata(output),
1999
+ };
2000
+ break;
2001
+ default:
2002
+ const parsedBody = parsedOutput.body;
2003
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2004
+ response = {
2005
+ ...parsedBody,
2006
+ name: `${errorCode}`,
2007
+ message: parsedBody.message || parsedBody.Message || errorCode,
2008
+ $fault: "client",
2009
+ $metadata: deserializeMetadata(output),
2010
+ };
2011
+ }
2012
+ const message = response.message || response.Message || errorCode;
2013
+ response.message = message;
2014
+ delete response.Message;
2015
+ return Promise.reject(Object.assign(new Error(message), response));
2016
+ };
1813
2017
  const deserializeAws_restJson1GetDomainCommand = async (output, context) => {
1814
2018
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1815
2019
  return deserializeAws_restJson1GetDomainCommandError(output, context);
@@ -1922,6 +2126,126 @@ const deserializeAws_restJson1GetDomainCommandError = async (output, context) =>
1922
2126
  delete response.Message;
1923
2127
  return Promise.reject(Object.assign(new Error(message), response));
1924
2128
  };
2129
+ const deserializeAws_restJson1GetIdentityResolutionJobCommand = async (output, context) => {
2130
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2131
+ return deserializeAws_restJson1GetIdentityResolutionJobCommandError(output, context);
2132
+ }
2133
+ const contents = {
2134
+ $metadata: deserializeMetadata(output),
2135
+ AutoMerging: undefined,
2136
+ DomainName: undefined,
2137
+ ExportingLocation: undefined,
2138
+ JobEndTime: undefined,
2139
+ JobExpirationTime: undefined,
2140
+ JobId: undefined,
2141
+ JobStartTime: undefined,
2142
+ JobStats: undefined,
2143
+ LastUpdatedAt: undefined,
2144
+ Message: undefined,
2145
+ Status: undefined,
2146
+ };
2147
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2148
+ if (data.AutoMerging !== undefined && data.AutoMerging !== null) {
2149
+ contents.AutoMerging = deserializeAws_restJson1AutoMerging(data.AutoMerging, context);
2150
+ }
2151
+ if (data.DomainName !== undefined && data.DomainName !== null) {
2152
+ contents.DomainName = smithy_client_1.expectString(data.DomainName);
2153
+ }
2154
+ if (data.ExportingLocation !== undefined && data.ExportingLocation !== null) {
2155
+ contents.ExportingLocation = deserializeAws_restJson1ExportingLocation(data.ExportingLocation, context);
2156
+ }
2157
+ if (data.JobEndTime !== undefined && data.JobEndTime !== null) {
2158
+ contents.JobEndTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.JobEndTime)));
2159
+ }
2160
+ if (data.JobExpirationTime !== undefined && data.JobExpirationTime !== null) {
2161
+ contents.JobExpirationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.JobExpirationTime)));
2162
+ }
2163
+ if (data.JobId !== undefined && data.JobId !== null) {
2164
+ contents.JobId = smithy_client_1.expectString(data.JobId);
2165
+ }
2166
+ if (data.JobStartTime !== undefined && data.JobStartTime !== null) {
2167
+ contents.JobStartTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.JobStartTime)));
2168
+ }
2169
+ if (data.JobStats !== undefined && data.JobStats !== null) {
2170
+ contents.JobStats = deserializeAws_restJson1JobStats(data.JobStats, context);
2171
+ }
2172
+ if (data.LastUpdatedAt !== undefined && data.LastUpdatedAt !== null) {
2173
+ contents.LastUpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastUpdatedAt)));
2174
+ }
2175
+ if (data.Message !== undefined && data.Message !== null) {
2176
+ contents.Message = smithy_client_1.expectString(data.Message);
2177
+ }
2178
+ if (data.Status !== undefined && data.Status !== null) {
2179
+ contents.Status = smithy_client_1.expectString(data.Status);
2180
+ }
2181
+ return Promise.resolve(contents);
2182
+ };
2183
+ exports.deserializeAws_restJson1GetIdentityResolutionJobCommand = deserializeAws_restJson1GetIdentityResolutionJobCommand;
2184
+ const deserializeAws_restJson1GetIdentityResolutionJobCommandError = async (output, context) => {
2185
+ const parsedOutput = {
2186
+ ...output,
2187
+ body: await parseBody(output.body, context),
2188
+ };
2189
+ let response;
2190
+ let errorCode = "UnknownError";
2191
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2192
+ switch (errorCode) {
2193
+ case "AccessDeniedException":
2194
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
2195
+ response = {
2196
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
2197
+ name: errorCode,
2198
+ $metadata: deserializeMetadata(output),
2199
+ };
2200
+ break;
2201
+ case "BadRequestException":
2202
+ case "com.amazonaws.customerprofiles#BadRequestException":
2203
+ response = {
2204
+ ...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
2205
+ name: errorCode,
2206
+ $metadata: deserializeMetadata(output),
2207
+ };
2208
+ break;
2209
+ case "InternalServerException":
2210
+ case "com.amazonaws.customerprofiles#InternalServerException":
2211
+ response = {
2212
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
2213
+ name: errorCode,
2214
+ $metadata: deserializeMetadata(output),
2215
+ };
2216
+ break;
2217
+ case "ResourceNotFoundException":
2218
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2219
+ response = {
2220
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2221
+ name: errorCode,
2222
+ $metadata: deserializeMetadata(output),
2223
+ };
2224
+ break;
2225
+ case "ThrottlingException":
2226
+ case "com.amazonaws.customerprofiles#ThrottlingException":
2227
+ response = {
2228
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
2229
+ name: errorCode,
2230
+ $metadata: deserializeMetadata(output),
2231
+ };
2232
+ break;
2233
+ default:
2234
+ const parsedBody = parsedOutput.body;
2235
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2236
+ response = {
2237
+ ...parsedBody,
2238
+ name: `${errorCode}`,
2239
+ message: parsedBody.message || parsedBody.Message || errorCode,
2240
+ $fault: "client",
2241
+ $metadata: deserializeMetadata(output),
2242
+ };
2243
+ }
2244
+ const message = response.message || response.Message || errorCode;
2245
+ response.message = message;
2246
+ delete response.Message;
2247
+ return Promise.reject(Object.assign(new Error(message), response));
2248
+ };
1925
2249
  const deserializeAws_restJson1GetIntegrationCommand = async (output, context) => {
1926
2250
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1927
2251
  return deserializeAws_restJson1GetIntegrationCommandError(output, context);
@@ -2129,6 +2453,7 @@ const deserializeAws_restJson1GetProfileObjectTypeCommand = async (output, conte
2129
2453
  Keys: undefined,
2130
2454
  LastUpdatedAt: undefined,
2131
2455
  ObjectTypeName: undefined,
2456
+ SourceLastUpdatedTimestampFormat: undefined,
2132
2457
  Tags: undefined,
2133
2458
  TemplateId: undefined,
2134
2459
  };
@@ -2160,6 +2485,9 @@ const deserializeAws_restJson1GetProfileObjectTypeCommand = async (output, conte
2160
2485
  if (data.ObjectTypeName !== undefined && data.ObjectTypeName !== null) {
2161
2486
  contents.ObjectTypeName = smithy_client_1.expectString(data.ObjectTypeName);
2162
2487
  }
2488
+ if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
2489
+ contents.SourceLastUpdatedTimestampFormat = smithy_client_1.expectString(data.SourceLastUpdatedTimestampFormat);
2490
+ }
2163
2491
  if (data.Tags !== undefined && data.Tags !== null) {
2164
2492
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
2165
2493
  }
@@ -2243,6 +2571,7 @@ const deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = async (outpu
2243
2571
  AllowProfileCreation: undefined,
2244
2572
  Fields: undefined,
2245
2573
  Keys: undefined,
2574
+ SourceLastUpdatedTimestampFormat: undefined,
2246
2575
  SourceName: undefined,
2247
2576
  SourceObject: undefined,
2248
2577
  TemplateId: undefined,
@@ -2257,6 +2586,9 @@ const deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = async (outpu
2257
2586
  if (data.Keys !== undefined && data.Keys !== null) {
2258
2587
  contents.Keys = deserializeAws_restJson1KeyMap(data.Keys, context);
2259
2588
  }
2589
+ if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
2590
+ contents.SourceLastUpdatedTimestampFormat = smithy_client_1.expectString(data.SourceLastUpdatedTimestampFormat);
2591
+ }
2260
2592
  if (data.SourceName !== undefined && data.SourceName !== null) {
2261
2593
  contents.SourceName = smithy_client_1.expectString(data.SourceName);
2262
2594
  }
@@ -2502,6 +2834,90 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
2502
2834
  delete response.Message;
2503
2835
  return Promise.reject(Object.assign(new Error(message), response));
2504
2836
  };
2837
+ const deserializeAws_restJson1ListIdentityResolutionJobsCommand = async (output, context) => {
2838
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2839
+ return deserializeAws_restJson1ListIdentityResolutionJobsCommandError(output, context);
2840
+ }
2841
+ const contents = {
2842
+ $metadata: deserializeMetadata(output),
2843
+ IdentityResolutionJobsList: undefined,
2844
+ NextToken: undefined,
2845
+ };
2846
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2847
+ if (data.IdentityResolutionJobsList !== undefined && data.IdentityResolutionJobsList !== null) {
2848
+ contents.IdentityResolutionJobsList = deserializeAws_restJson1IdentityResolutionJobsList(data.IdentityResolutionJobsList, context);
2849
+ }
2850
+ if (data.NextToken !== undefined && data.NextToken !== null) {
2851
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
2852
+ }
2853
+ return Promise.resolve(contents);
2854
+ };
2855
+ exports.deserializeAws_restJson1ListIdentityResolutionJobsCommand = deserializeAws_restJson1ListIdentityResolutionJobsCommand;
2856
+ const deserializeAws_restJson1ListIdentityResolutionJobsCommandError = async (output, context) => {
2857
+ const parsedOutput = {
2858
+ ...output,
2859
+ body: await parseBody(output.body, context),
2860
+ };
2861
+ let response;
2862
+ let errorCode = "UnknownError";
2863
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2864
+ switch (errorCode) {
2865
+ case "AccessDeniedException":
2866
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
2867
+ response = {
2868
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
2869
+ name: errorCode,
2870
+ $metadata: deserializeMetadata(output),
2871
+ };
2872
+ break;
2873
+ case "BadRequestException":
2874
+ case "com.amazonaws.customerprofiles#BadRequestException":
2875
+ response = {
2876
+ ...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
2877
+ name: errorCode,
2878
+ $metadata: deserializeMetadata(output),
2879
+ };
2880
+ break;
2881
+ case "InternalServerException":
2882
+ case "com.amazonaws.customerprofiles#InternalServerException":
2883
+ response = {
2884
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
2885
+ name: errorCode,
2886
+ $metadata: deserializeMetadata(output),
2887
+ };
2888
+ break;
2889
+ case "ResourceNotFoundException":
2890
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2891
+ response = {
2892
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2893
+ name: errorCode,
2894
+ $metadata: deserializeMetadata(output),
2895
+ };
2896
+ break;
2897
+ case "ThrottlingException":
2898
+ case "com.amazonaws.customerprofiles#ThrottlingException":
2899
+ response = {
2900
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
2901
+ name: errorCode,
2902
+ $metadata: deserializeMetadata(output),
2903
+ };
2904
+ break;
2905
+ default:
2906
+ const parsedBody = parsedOutput.body;
2907
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2908
+ response = {
2909
+ ...parsedBody,
2910
+ name: `${errorCode}`,
2911
+ message: parsedBody.message || parsedBody.Message || errorCode,
2912
+ $fault: "client",
2913
+ $metadata: deserializeMetadata(output),
2914
+ };
2915
+ }
2916
+ const message = response.message || response.Message || errorCode;
2917
+ response.message = message;
2918
+ delete response.Message;
2919
+ return Promise.reject(Object.assign(new Error(message), response));
2920
+ };
2505
2921
  const deserializeAws_restJson1ListIntegrationsCommand = async (output, context) => {
2506
2922
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2507
2923
  return deserializeAws_restJson1ListIntegrationsCommandError(output, context);
@@ -3169,6 +3585,7 @@ const deserializeAws_restJson1PutProfileObjectTypeCommand = async (output, conte
3169
3585
  Keys: undefined,
3170
3586
  LastUpdatedAt: undefined,
3171
3587
  ObjectTypeName: undefined,
3588
+ SourceLastUpdatedTimestampFormat: undefined,
3172
3589
  Tags: undefined,
3173
3590
  TemplateId: undefined,
3174
3591
  };
@@ -3200,6 +3617,9 @@ const deserializeAws_restJson1PutProfileObjectTypeCommand = async (output, conte
3200
3617
  if (data.ObjectTypeName !== undefined && data.ObjectTypeName !== null) {
3201
3618
  contents.ObjectTypeName = smithy_client_1.expectString(data.ObjectTypeName);
3202
3619
  }
3620
+ if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
3621
+ contents.SourceLastUpdatedTimestampFormat = smithy_client_1.expectString(data.SourceLastUpdatedTimestampFormat);
3622
+ }
3203
3623
  if (data.Tags !== undefined && data.Tags !== null) {
3204
3624
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3205
3625
  }
@@ -3767,6 +4187,26 @@ const serializeAws_restJson1AttributeSourceIdMap = (input, context) => {
3767
4187
  };
3768
4188
  }, {});
3769
4189
  };
4190
+ const serializeAws_restJson1AutoMerging = (input, context) => {
4191
+ return {
4192
+ ...(input.ConflictResolution !== undefined &&
4193
+ input.ConflictResolution !== null && {
4194
+ ConflictResolution: serializeAws_restJson1ConflictResolution(input.ConflictResolution, context),
4195
+ }),
4196
+ ...(input.Consolidation !== undefined &&
4197
+ input.Consolidation !== null && {
4198
+ Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
4199
+ }),
4200
+ ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
4201
+ };
4202
+ };
4203
+ const serializeAws_restJson1ConflictResolution = (input, context) => {
4204
+ return {
4205
+ ...(input.ConflictResolvingModel !== undefined &&
4206
+ input.ConflictResolvingModel !== null && { ConflictResolvingModel: input.ConflictResolvingModel }),
4207
+ ...(input.SourceName !== undefined && input.SourceName !== null && { SourceName: input.SourceName }),
4208
+ };
4209
+ };
3770
4210
  const serializeAws_restJson1ConnectorOperator = (input, context) => {
3771
4211
  return {
3772
4212
  ...(input.Marketo !== undefined && input.Marketo !== null && { Marketo: input.Marketo }),
@@ -3776,6 +4216,22 @@ const serializeAws_restJson1ConnectorOperator = (input, context) => {
3776
4216
  ...(input.Zendesk !== undefined && input.Zendesk !== null && { Zendesk: input.Zendesk }),
3777
4217
  };
3778
4218
  };
4219
+ const serializeAws_restJson1Consolidation = (input, context) => {
4220
+ return {
4221
+ ...(input.MatchingAttributesList !== undefined &&
4222
+ input.MatchingAttributesList !== null && {
4223
+ MatchingAttributesList: serializeAws_restJson1MatchingAttributesList(input.MatchingAttributesList, context),
4224
+ }),
4225
+ };
4226
+ };
4227
+ const serializeAws_restJson1ExportingConfig = (input, context) => {
4228
+ return {
4229
+ ...(input.S3Exporting !== undefined &&
4230
+ input.S3Exporting !== null && {
4231
+ S3Exporting: serializeAws_restJson1S3ExportingConfig(input.S3Exporting, context),
4232
+ }),
4233
+ };
4234
+ };
3779
4235
  const serializeAws_restJson1FieldMap = (input, context) => {
3780
4236
  return Object.entries(input).reduce((acc, [key, value]) => {
3781
4237
  if (value === null) {
@@ -3857,6 +4313,12 @@ const serializeAws_restJson1IncrementalPullConfig = (input, context) => {
3857
4313
  input.DatetimeTypeFieldName !== null && { DatetimeTypeFieldName: input.DatetimeTypeFieldName }),
3858
4314
  };
3859
4315
  };
4316
+ const serializeAws_restJson1JobSchedule = (input, context) => {
4317
+ return {
4318
+ ...(input.DayOfTheWeek !== undefined && input.DayOfTheWeek !== null && { DayOfTheWeek: input.DayOfTheWeek }),
4319
+ ...(input.Time !== undefined && input.Time !== null && { Time: input.Time }),
4320
+ };
4321
+ };
3860
4322
  const serializeAws_restJson1KeyMap = (input, context) => {
3861
4323
  return Object.entries(input).reduce((acc, [key, value]) => {
3862
4324
  if (value === null) {
@@ -3873,9 +4335,37 @@ const serializeAws_restJson1MarketoSourceProperties = (input, context) => {
3873
4335
  ...(input.Object !== undefined && input.Object !== null && { Object: input.Object }),
3874
4336
  };
3875
4337
  };
4338
+ const serializeAws_restJson1MatchingAttributes = (input, context) => {
4339
+ return input
4340
+ .filter((e) => e != null)
4341
+ .map((entry) => {
4342
+ if (entry === null) {
4343
+ return null;
4344
+ }
4345
+ return entry;
4346
+ });
4347
+ };
4348
+ const serializeAws_restJson1MatchingAttributesList = (input, context) => {
4349
+ return input
4350
+ .filter((e) => e != null)
4351
+ .map((entry) => {
4352
+ if (entry === null) {
4353
+ return null;
4354
+ }
4355
+ return serializeAws_restJson1MatchingAttributes(entry, context);
4356
+ });
4357
+ };
3876
4358
  const serializeAws_restJson1MatchingRequest = (input, context) => {
3877
4359
  return {
4360
+ ...(input.AutoMerging !== undefined &&
4361
+ input.AutoMerging !== null && { AutoMerging: serializeAws_restJson1AutoMerging(input.AutoMerging, context) }),
3878
4362
  ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
4363
+ ...(input.ExportingConfig !== undefined &&
4364
+ input.ExportingConfig !== null && {
4365
+ ExportingConfig: serializeAws_restJson1ExportingConfig(input.ExportingConfig, context),
4366
+ }),
4367
+ ...(input.JobSchedule !== undefined &&
4368
+ input.JobSchedule !== null && { JobSchedule: serializeAws_restJson1JobSchedule(input.JobSchedule, context) }),
3879
4369
  };
3880
4370
  };
3881
4371
  const serializeAws_restJson1ObjectFilter = (input, context) => {
@@ -3932,6 +4422,12 @@ const serializeAws_restJson1requestValueList = (input, context) => {
3932
4422
  return entry;
3933
4423
  });
3934
4424
  };
4425
+ const serializeAws_restJson1S3ExportingConfig = (input, context) => {
4426
+ return {
4427
+ ...(input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName }),
4428
+ ...(input.S3KeyName !== undefined && input.S3KeyName !== null && { S3KeyName: input.S3KeyName }),
4429
+ };
4430
+ };
3935
4431
  const serializeAws_restJson1S3SourceProperties = (input, context) => {
3936
4432
  return {
3937
4433
  ...(input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName }),
@@ -4144,6 +4640,30 @@ const deserializeAws_restJson1Attributes = (output, context) => {
4144
4640
  };
4145
4641
  }, {});
4146
4642
  };
4643
+ const deserializeAws_restJson1AutoMerging = (output, context) => {
4644
+ return {
4645
+ ConflictResolution: output.ConflictResolution !== undefined && output.ConflictResolution !== null
4646
+ ? deserializeAws_restJson1ConflictResolution(output.ConflictResolution, context)
4647
+ : undefined,
4648
+ Consolidation: output.Consolidation !== undefined && output.Consolidation !== null
4649
+ ? deserializeAws_restJson1Consolidation(output.Consolidation, context)
4650
+ : undefined,
4651
+ Enabled: smithy_client_1.expectBoolean(output.Enabled),
4652
+ };
4653
+ };
4654
+ const deserializeAws_restJson1ConflictResolution = (output, context) => {
4655
+ return {
4656
+ ConflictResolvingModel: smithy_client_1.expectString(output.ConflictResolvingModel),
4657
+ SourceName: smithy_client_1.expectString(output.SourceName),
4658
+ };
4659
+ };
4660
+ const deserializeAws_restJson1Consolidation = (output, context) => {
4661
+ return {
4662
+ MatchingAttributesList: output.MatchingAttributesList !== undefined && output.MatchingAttributesList !== null
4663
+ ? deserializeAws_restJson1MatchingAttributesList(output.MatchingAttributesList, context)
4664
+ : undefined,
4665
+ };
4666
+ };
4147
4667
  const deserializeAws_restJson1DomainList = (output, context) => {
4148
4668
  return (output || [])
4149
4669
  .filter((e) => e != null)
@@ -4162,6 +4682,20 @@ const deserializeAws_restJson1DomainStats = (output, context) => {
4162
4682
  TotalSize: smithy_client_1.expectLong(output.TotalSize),
4163
4683
  };
4164
4684
  };
4685
+ const deserializeAws_restJson1ExportingConfig = (output, context) => {
4686
+ return {
4687
+ S3Exporting: output.S3Exporting !== undefined && output.S3Exporting !== null
4688
+ ? deserializeAws_restJson1S3ExportingConfig(output.S3Exporting, context)
4689
+ : undefined,
4690
+ };
4691
+ };
4692
+ const deserializeAws_restJson1ExportingLocation = (output, context) => {
4693
+ return {
4694
+ S3Exporting: output.S3Exporting !== undefined && output.S3Exporting !== null
4695
+ ? deserializeAws_restJson1S3ExportingLocation(output.S3Exporting, context)
4696
+ : undefined,
4697
+ };
4698
+ };
4165
4699
  const deserializeAws_restJson1FieldMap = (output, context) => {
4166
4700
  return Object.entries(output).reduce((acc, [key, value]) => {
4167
4701
  if (value === null) {
@@ -4183,6 +4717,36 @@ const deserializeAws_restJson1FieldNameList = (output, context) => {
4183
4717
  return smithy_client_1.expectString(entry);
4184
4718
  });
4185
4719
  };
4720
+ const deserializeAws_restJson1IdentityResolutionJob = (output, context) => {
4721
+ return {
4722
+ DomainName: smithy_client_1.expectString(output.DomainName),
4723
+ ExportingLocation: output.ExportingLocation !== undefined && output.ExportingLocation !== null
4724
+ ? deserializeAws_restJson1ExportingLocation(output.ExportingLocation, context)
4725
+ : undefined,
4726
+ JobEndTime: output.JobEndTime !== undefined && output.JobEndTime !== null
4727
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.JobEndTime)))
4728
+ : undefined,
4729
+ JobId: smithy_client_1.expectString(output.JobId),
4730
+ JobStartTime: output.JobStartTime !== undefined && output.JobStartTime !== null
4731
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.JobStartTime)))
4732
+ : undefined,
4733
+ JobStats: output.JobStats !== undefined && output.JobStats !== null
4734
+ ? deserializeAws_restJson1JobStats(output.JobStats, context)
4735
+ : undefined,
4736
+ Message: smithy_client_1.expectString(output.Message),
4737
+ Status: smithy_client_1.expectString(output.Status),
4738
+ };
4739
+ };
4740
+ const deserializeAws_restJson1IdentityResolutionJobsList = (output, context) => {
4741
+ return (output || [])
4742
+ .filter((e) => e != null)
4743
+ .map((entry) => {
4744
+ if (entry === null) {
4745
+ return null;
4746
+ }
4747
+ return deserializeAws_restJson1IdentityResolutionJob(entry, context);
4748
+ });
4749
+ };
4186
4750
  const deserializeAws_restJson1IntegrationList = (output, context) => {
4187
4751
  return (output || [])
4188
4752
  .filter((e) => e != null)
@@ -4193,6 +4757,19 @@ const deserializeAws_restJson1IntegrationList = (output, context) => {
4193
4757
  return deserializeAws_restJson1ListIntegrationItem(entry, context);
4194
4758
  });
4195
4759
  };
4760
+ const deserializeAws_restJson1JobSchedule = (output, context) => {
4761
+ return {
4762
+ DayOfTheWeek: smithy_client_1.expectString(output.DayOfTheWeek),
4763
+ Time: smithy_client_1.expectString(output.Time),
4764
+ };
4765
+ };
4766
+ const deserializeAws_restJson1JobStats = (output, context) => {
4767
+ return {
4768
+ NumberOfMatchesFound: smithy_client_1.expectLong(output.NumberOfMatchesFound),
4769
+ NumberOfMergesDone: smithy_client_1.expectLong(output.NumberOfMergesDone),
4770
+ NumberOfProfilesReviewed: smithy_client_1.expectLong(output.NumberOfProfilesReviewed),
4771
+ };
4772
+ };
4196
4773
  const deserializeAws_restJson1KeyMap = (output, context) => {
4197
4774
  return Object.entries(output).reduce((acc, [key, value]) => {
4198
4775
  if (value === null) {
@@ -4273,13 +4850,43 @@ const deserializeAws_restJson1MatchesList = (output, context) => {
4273
4850
  return deserializeAws_restJson1MatchItem(entry, context);
4274
4851
  });
4275
4852
  };
4853
+ const deserializeAws_restJson1MatchingAttributes = (output, context) => {
4854
+ return (output || [])
4855
+ .filter((e) => e != null)
4856
+ .map((entry) => {
4857
+ if (entry === null) {
4858
+ return null;
4859
+ }
4860
+ return smithy_client_1.expectString(entry);
4861
+ });
4862
+ };
4863
+ const deserializeAws_restJson1MatchingAttributesList = (output, context) => {
4864
+ return (output || [])
4865
+ .filter((e) => e != null)
4866
+ .map((entry) => {
4867
+ if (entry === null) {
4868
+ return null;
4869
+ }
4870
+ return deserializeAws_restJson1MatchingAttributes(entry, context);
4871
+ });
4872
+ };
4276
4873
  const deserializeAws_restJson1MatchingResponse = (output, context) => {
4277
4874
  return {
4875
+ AutoMerging: output.AutoMerging !== undefined && output.AutoMerging !== null
4876
+ ? deserializeAws_restJson1AutoMerging(output.AutoMerging, context)
4877
+ : undefined,
4278
4878
  Enabled: smithy_client_1.expectBoolean(output.Enabled),
4879
+ ExportingConfig: output.ExportingConfig !== undefined && output.ExportingConfig !== null
4880
+ ? deserializeAws_restJson1ExportingConfig(output.ExportingConfig, context)
4881
+ : undefined,
4882
+ JobSchedule: output.JobSchedule !== undefined && output.JobSchedule !== null
4883
+ ? deserializeAws_restJson1JobSchedule(output.JobSchedule, context)
4884
+ : undefined,
4279
4885
  };
4280
4886
  };
4281
4887
  const deserializeAws_restJson1MatchItem = (output, context) => {
4282
4888
  return {
4889
+ ConfidenceScore: smithy_client_1.limitedParseDouble(output.ConfidenceScore),
4283
4890
  MatchId: smithy_client_1.expectString(output.MatchId),
4284
4891
  ProfileIds: output.ProfileIds !== undefined && output.ProfileIds !== null
4285
4892
  ? deserializeAws_restJson1ProfileIdList(output.ProfileIds, context)
@@ -4409,6 +5016,18 @@ const deserializeAws_restJson1requestValueList = (output, context) => {
4409
5016
  return smithy_client_1.expectString(entry);
4410
5017
  });
4411
5018
  };
5019
+ const deserializeAws_restJson1S3ExportingConfig = (output, context) => {
5020
+ return {
5021
+ S3BucketName: smithy_client_1.expectString(output.S3BucketName),
5022
+ S3KeyName: smithy_client_1.expectString(output.S3KeyName),
5023
+ };
5024
+ };
5025
+ const deserializeAws_restJson1S3ExportingLocation = (output, context) => {
5026
+ return {
5027
+ S3BucketName: smithy_client_1.expectString(output.S3BucketName),
5028
+ S3KeyName: smithy_client_1.expectString(output.S3KeyName),
5029
+ };
5030
+ };
4412
5031
  const deserializeAws_restJson1StandardIdentifierList = (output, context) => {
4413
5032
  return (output || [])
4414
5033
  .filter((e) => e != null)