@aws-sdk/client-customer-profiles 3.42.0 → 3.47.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 (48) hide show
  1. package/CHANGELOG.md +50 -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/endpoints.js +1 -0
  8. package/dist-cjs/models/models_0.js +123 -31
  9. package/dist-cjs/protocols/Aws_restJson1.js +658 -2
  10. package/dist-cjs/runtimeConfig.browser.js +7 -2
  11. package/dist-cjs/runtimeConfig.js +9 -3
  12. package/dist-es/CustomerProfiles.js +45 -0
  13. package/dist-es/commands/GetAutoMergingPreviewCommand.js +39 -0
  14. package/dist-es/commands/GetIdentityResolutionJobCommand.js +39 -0
  15. package/dist-es/commands/ListIdentityResolutionJobsCommand.js +39 -0
  16. package/dist-es/commands/index.js +3 -0
  17. package/dist-es/endpoints.js +1 -0
  18. package/dist-es/models/models_0.js +90 -20
  19. package/dist-es/protocols/Aws_restJson1.js +689 -6
  20. package/dist-es/runtimeConfig.browser.js +12 -3
  21. package/dist-es/runtimeConfig.js +13 -6
  22. package/dist-types/CustomerProfiles.d.ts +50 -6
  23. package/dist-types/CustomerProfilesClient.d.ts +10 -3
  24. package/dist-types/commands/CreateDomainCommand.d.ts +2 -0
  25. package/dist-types/commands/GetAutoMergingPreviewCommand.d.ts +48 -0
  26. package/dist-types/commands/GetIdentityResolutionJobCommand.d.ts +37 -0
  27. package/dist-types/commands/GetMatchesCommand.d.ts +8 -4
  28. package/dist-types/commands/ListIdentityResolutionJobsCommand.d.ts +36 -0
  29. package/dist-types/commands/MergeProfilesCommand.d.ts +1 -2
  30. package/dist-types/commands/UpdateDomainCommand.d.ts +2 -0
  31. package/dist-types/commands/index.d.ts +3 -0
  32. package/dist-types/models/models_0.d.ts +616 -65
  33. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  35. package/dist-types/runtimeConfig.d.ts +4 -3
  36. package/dist-types/runtimeConfig.native.d.ts +1 -0
  37. package/dist-types/ts3.4/CustomerProfiles.d.ts +15 -0
  38. package/dist-types/ts3.4/CustomerProfilesClient.d.ts +8 -3
  39. package/dist-types/ts3.4/commands/GetAutoMergingPreviewCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/GetIdentityResolutionJobCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/ListIdentityResolutionJobsCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +271 -24
  44. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
  45. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  46. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  47. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  48. package/package.json +38 -45
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1AddProfileKeyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
6
6
  return __generator(this, function (_c) {
@@ -339,6 +339,47 @@ export var serializeAws_restJson1DeleteProfileObjectTypeCommand = function (inpu
339
339
  }
340
340
  });
341
341
  }); };
342
+ export var serializeAws_restJson1GetAutoMergingPreviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
343
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
344
+ return __generator(this, function (_c) {
345
+ switch (_c.label) {
346
+ case 0: return [4, context.endpoint()];
347
+ case 1:
348
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
349
+ headers = {
350
+ "content-type": "application/json",
351
+ };
352
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
353
+ "/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview";
354
+ if (input.DomainName !== undefined) {
355
+ labelValue = input.DomainName;
356
+ if (labelValue.length <= 0) {
357
+ throw new Error("Empty value provided for input HTTP label: DomainName.");
358
+ }
359
+ resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
360
+ }
361
+ else {
362
+ throw new Error("No value provided for input HTTP label: DomainName.");
363
+ }
364
+ body = JSON.stringify(__assign(__assign({}, (input.ConflictResolution !== undefined &&
365
+ input.ConflictResolution !== null && {
366
+ ConflictResolution: serializeAws_restJson1ConflictResolution(input.ConflictResolution, context),
367
+ })), (input.Consolidation !== undefined &&
368
+ input.Consolidation !== null && {
369
+ Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
370
+ })));
371
+ return [2, new __HttpRequest({
372
+ protocol: protocol,
373
+ hostname: hostname,
374
+ port: port,
375
+ method: "POST",
376
+ headers: headers,
377
+ path: resolvedPath,
378
+ body: body,
379
+ })];
380
+ }
381
+ });
382
+ }); };
342
383
  export var serializeAws_restJson1GetDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
343
384
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
344
385
  return __generator(this, function (_c) {
@@ -370,6 +411,48 @@ export var serializeAws_restJson1GetDomainCommand = function (input, context) {
370
411
  }
371
412
  });
372
413
  }); };
414
+ export var serializeAws_restJson1GetIdentityResolutionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
415
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
416
+ return __generator(this, function (_c) {
417
+ switch (_c.label) {
418
+ case 0: return [4, context.endpoint()];
419
+ case 1:
420
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
421
+ headers = {};
422
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
423
+ "/domains/{DomainName}/identity-resolution-jobs/{JobId}";
424
+ if (input.DomainName !== undefined) {
425
+ labelValue = input.DomainName;
426
+ if (labelValue.length <= 0) {
427
+ throw new Error("Empty value provided for input HTTP label: DomainName.");
428
+ }
429
+ resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
430
+ }
431
+ else {
432
+ throw new Error("No value provided for input HTTP label: DomainName.");
433
+ }
434
+ if (input.JobId !== undefined) {
435
+ labelValue = input.JobId;
436
+ if (labelValue.length <= 0) {
437
+ throw new Error("Empty value provided for input HTTP label: JobId.");
438
+ }
439
+ resolvedPath = resolvedPath.replace("{JobId}", __extendedEncodeURIComponent(labelValue));
440
+ }
441
+ else {
442
+ throw new Error("No value provided for input HTTP label: JobId.");
443
+ }
444
+ return [2, new __HttpRequest({
445
+ protocol: protocol,
446
+ hostname: hostname,
447
+ port: port,
448
+ method: "GET",
449
+ headers: headers,
450
+ path: resolvedPath,
451
+ body: body,
452
+ })];
453
+ }
454
+ });
455
+ }); };
373
456
  export var serializeAws_restJson1GetIntegrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
374
457
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
375
458
  return __generator(this, function (_c) {
@@ -559,6 +642,40 @@ export var serializeAws_restJson1ListDomainsCommand = function (input, context)
559
642
  }
560
643
  });
561
644
  }); };
645
+ export var serializeAws_restJson1ListIdentityResolutionJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
646
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
647
+ return __generator(this, function (_c) {
648
+ switch (_c.label) {
649
+ case 0: return [4, context.endpoint()];
650
+ case 1:
651
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
652
+ headers = {};
653
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
654
+ "/domains/{DomainName}/identity-resolution-jobs";
655
+ if (input.DomainName !== undefined) {
656
+ labelValue = input.DomainName;
657
+ if (labelValue.length <= 0) {
658
+ throw new Error("Empty value provided for input HTTP label: DomainName.");
659
+ }
660
+ resolvedPath = resolvedPath.replace("{DomainName}", __extendedEncodeURIComponent(labelValue));
661
+ }
662
+ else {
663
+ throw new Error("No value provided for input HTTP label: DomainName.");
664
+ }
665
+ query = __assign(__assign({}, (input.NextToken !== undefined && { "next-token": input.NextToken })), (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() }));
666
+ return [2, new __HttpRequest({
667
+ protocol: protocol,
668
+ hostname: hostname,
669
+ port: port,
670
+ method: "GET",
671
+ headers: headers,
672
+ path: resolvedPath,
673
+ query: query,
674
+ body: body,
675
+ })];
676
+ }
677
+ });
678
+ }); };
562
679
  export var serializeAws_restJson1ListIntegrationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
563
680
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
564
681
  return __generator(this, function (_c) {
@@ -779,11 +896,14 @@ export var serializeAws_restJson1PutIntegrationCommand = function (input, contex
779
896
  else {
780
897
  throw new Error("No value provided for input HTTP label: DomainName.");
781
898
  }
782
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FlowDefinition !== undefined &&
899
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FlowDefinition !== undefined &&
783
900
  input.FlowDefinition !== null && {
784
901
  FlowDefinition: serializeAws_restJson1FlowDefinition(input.FlowDefinition, context),
785
902
  })), (input.ObjectTypeName !== undefined &&
786
- input.ObjectTypeName !== null && { ObjectTypeName: input.ObjectTypeName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri })));
903
+ input.ObjectTypeName !== null && { ObjectTypeName: input.ObjectTypeName })), (input.ObjectTypeNames !== undefined &&
904
+ input.ObjectTypeNames !== null && {
905
+ ObjectTypeNames: serializeAws_restJson1ObjectTypeNames(input.ObjectTypeNames, context),
906
+ })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri })));
787
907
  return [2, new __HttpRequest({
788
908
  protocol: protocol,
789
909
  hostname: hostname,
@@ -863,10 +983,13 @@ export var serializeAws_restJson1PutProfileObjectTypeCommand = function (input,
863
983
  else {
864
984
  throw new Error("No value provided for input HTTP label: ObjectTypeName.");
865
985
  }
866
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowProfileCreation !== undefined &&
986
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowProfileCreation !== undefined &&
867
987
  input.AllowProfileCreation !== null && { AllowProfileCreation: input.AllowProfileCreation })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.EncryptionKey !== undefined && input.EncryptionKey !== null && { EncryptionKey: input.EncryptionKey })), (input.ExpirationDays !== undefined &&
868
988
  input.ExpirationDays !== null && { ExpirationDays: input.ExpirationDays })), (input.Fields !== undefined &&
869
- input.Fields !== null && { Fields: serializeAws_restJson1FieldMap(input.Fields, context) })), (input.Keys !== undefined && input.Keys !== null && { Keys: serializeAws_restJson1KeyMap(input.Keys, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.TemplateId !== undefined && input.TemplateId !== null && { TemplateId: input.TemplateId })));
989
+ input.Fields !== null && { Fields: serializeAws_restJson1FieldMap(input.Fields, context) })), (input.Keys !== undefined && input.Keys !== null && { Keys: serializeAws_restJson1KeyMap(input.Keys, context) })), (input.SourceLastUpdatedTimestampFormat !== undefined &&
990
+ input.SourceLastUpdatedTimestampFormat !== null && {
991
+ SourceLastUpdatedTimestampFormat: input.SourceLastUpdatedTimestampFormat,
992
+ })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.TemplateId !== undefined && input.TemplateId !== null && { TemplateId: input.TemplateId })));
870
993
  return [2, new __HttpRequest({
871
994
  protocol: protocol,
872
995
  hostname: hostname,
@@ -1950,6 +2073,112 @@ var deserializeAws_restJson1DeleteProfileObjectTypeCommandError = function (outp
1950
2073
  }
1951
2074
  });
1952
2075
  }); };
2076
+ export var deserializeAws_restJson1GetAutoMergingPreviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2077
+ var contents, data, _a, _b;
2078
+ return __generator(this, function (_c) {
2079
+ switch (_c.label) {
2080
+ case 0:
2081
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2082
+ return [2, deserializeAws_restJson1GetAutoMergingPreviewCommandError(output, context)];
2083
+ }
2084
+ contents = {
2085
+ $metadata: deserializeMetadata(output),
2086
+ DomainName: undefined,
2087
+ NumberOfMatchesInSample: undefined,
2088
+ NumberOfProfilesInSample: undefined,
2089
+ NumberOfProfilesWillBeMerged: undefined,
2090
+ };
2091
+ _a = __expectNonNull;
2092
+ _b = __expectObject;
2093
+ return [4, parseBody(output.body, context)];
2094
+ case 1:
2095
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2096
+ if (data.DomainName !== undefined && data.DomainName !== null) {
2097
+ contents.DomainName = __expectString(data.DomainName);
2098
+ }
2099
+ if (data.NumberOfMatchesInSample !== undefined && data.NumberOfMatchesInSample !== null) {
2100
+ contents.NumberOfMatchesInSample = __expectLong(data.NumberOfMatchesInSample);
2101
+ }
2102
+ if (data.NumberOfProfilesInSample !== undefined && data.NumberOfProfilesInSample !== null) {
2103
+ contents.NumberOfProfilesInSample = __expectLong(data.NumberOfProfilesInSample);
2104
+ }
2105
+ if (data.NumberOfProfilesWillBeMerged !== undefined && data.NumberOfProfilesWillBeMerged !== null) {
2106
+ contents.NumberOfProfilesWillBeMerged = __expectLong(data.NumberOfProfilesWillBeMerged);
2107
+ }
2108
+ return [2, Promise.resolve(contents)];
2109
+ }
2110
+ });
2111
+ }); };
2112
+ var deserializeAws_restJson1GetAutoMergingPreviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2113
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
2114
+ var _h;
2115
+ return __generator(this, function (_j) {
2116
+ switch (_j.label) {
2117
+ case 0:
2118
+ _a = [__assign({}, output)];
2119
+ _h = {};
2120
+ return [4, parseBody(output.body, context)];
2121
+ case 1:
2122
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2123
+ errorCode = "UnknownError";
2124
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2125
+ _b = errorCode;
2126
+ switch (_b) {
2127
+ case "AccessDeniedException": return [3, 2];
2128
+ case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
2129
+ case "BadRequestException": return [3, 4];
2130
+ case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
2131
+ case "InternalServerException": return [3, 6];
2132
+ case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
2133
+ case "ResourceNotFoundException": return [3, 8];
2134
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
2135
+ case "ThrottlingException": return [3, 10];
2136
+ case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
2137
+ }
2138
+ return [3, 12];
2139
+ case 2:
2140
+ _c = [{}];
2141
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2142
+ case 3:
2143
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2144
+ return [3, 13];
2145
+ case 4:
2146
+ _d = [{}];
2147
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2148
+ case 5:
2149
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2150
+ return [3, 13];
2151
+ case 6:
2152
+ _e = [{}];
2153
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2154
+ case 7:
2155
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2156
+ return [3, 13];
2157
+ case 8:
2158
+ _f = [{}];
2159
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2160
+ case 9:
2161
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2162
+ return [3, 13];
2163
+ case 10:
2164
+ _g = [{}];
2165
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2166
+ case 11:
2167
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2168
+ return [3, 13];
2169
+ case 12:
2170
+ parsedBody = parsedOutput.body;
2171
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2172
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2173
+ _j.label = 13;
2174
+ case 13:
2175
+ message = response.message || response.Message || errorCode;
2176
+ response.message = message;
2177
+ delete response.Message;
2178
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2179
+ }
2180
+ });
2181
+ }); };
1953
2182
  export var deserializeAws_restJson1GetDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1954
2183
  var contents, data, _a, _b;
1955
2184
  return __generator(this, function (_c) {
@@ -2076,6 +2305,140 @@ var deserializeAws_restJson1GetDomainCommandError = function (output, context) {
2076
2305
  }
2077
2306
  });
2078
2307
  }); };
2308
+ export var deserializeAws_restJson1GetIdentityResolutionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2309
+ var contents, data, _a, _b;
2310
+ return __generator(this, function (_c) {
2311
+ switch (_c.label) {
2312
+ case 0:
2313
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2314
+ return [2, deserializeAws_restJson1GetIdentityResolutionJobCommandError(output, context)];
2315
+ }
2316
+ contents = {
2317
+ $metadata: deserializeMetadata(output),
2318
+ AutoMerging: undefined,
2319
+ DomainName: undefined,
2320
+ ExportingLocation: undefined,
2321
+ JobEndTime: undefined,
2322
+ JobExpirationTime: undefined,
2323
+ JobId: undefined,
2324
+ JobStartTime: undefined,
2325
+ JobStats: undefined,
2326
+ LastUpdatedAt: undefined,
2327
+ Message: undefined,
2328
+ Status: undefined,
2329
+ };
2330
+ _a = __expectNonNull;
2331
+ _b = __expectObject;
2332
+ return [4, parseBody(output.body, context)];
2333
+ case 1:
2334
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2335
+ if (data.AutoMerging !== undefined && data.AutoMerging !== null) {
2336
+ contents.AutoMerging = deserializeAws_restJson1AutoMerging(data.AutoMerging, context);
2337
+ }
2338
+ if (data.DomainName !== undefined && data.DomainName !== null) {
2339
+ contents.DomainName = __expectString(data.DomainName);
2340
+ }
2341
+ if (data.ExportingLocation !== undefined && data.ExportingLocation !== null) {
2342
+ contents.ExportingLocation = deserializeAws_restJson1ExportingLocation(data.ExportingLocation, context);
2343
+ }
2344
+ if (data.JobEndTime !== undefined && data.JobEndTime !== null) {
2345
+ contents.JobEndTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.JobEndTime)));
2346
+ }
2347
+ if (data.JobExpirationTime !== undefined && data.JobExpirationTime !== null) {
2348
+ contents.JobExpirationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.JobExpirationTime)));
2349
+ }
2350
+ if (data.JobId !== undefined && data.JobId !== null) {
2351
+ contents.JobId = __expectString(data.JobId);
2352
+ }
2353
+ if (data.JobStartTime !== undefined && data.JobStartTime !== null) {
2354
+ contents.JobStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.JobStartTime)));
2355
+ }
2356
+ if (data.JobStats !== undefined && data.JobStats !== null) {
2357
+ contents.JobStats = deserializeAws_restJson1JobStats(data.JobStats, context);
2358
+ }
2359
+ if (data.LastUpdatedAt !== undefined && data.LastUpdatedAt !== null) {
2360
+ contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
2361
+ }
2362
+ if (data.Message !== undefined && data.Message !== null) {
2363
+ contents.Message = __expectString(data.Message);
2364
+ }
2365
+ if (data.Status !== undefined && data.Status !== null) {
2366
+ contents.Status = __expectString(data.Status);
2367
+ }
2368
+ return [2, Promise.resolve(contents)];
2369
+ }
2370
+ });
2371
+ }); };
2372
+ var deserializeAws_restJson1GetIdentityResolutionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2373
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
2374
+ var _h;
2375
+ return __generator(this, function (_j) {
2376
+ switch (_j.label) {
2377
+ case 0:
2378
+ _a = [__assign({}, output)];
2379
+ _h = {};
2380
+ return [4, parseBody(output.body, context)];
2381
+ case 1:
2382
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2383
+ errorCode = "UnknownError";
2384
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2385
+ _b = errorCode;
2386
+ switch (_b) {
2387
+ case "AccessDeniedException": return [3, 2];
2388
+ case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
2389
+ case "BadRequestException": return [3, 4];
2390
+ case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
2391
+ case "InternalServerException": return [3, 6];
2392
+ case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
2393
+ case "ResourceNotFoundException": return [3, 8];
2394
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
2395
+ case "ThrottlingException": return [3, 10];
2396
+ case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
2397
+ }
2398
+ return [3, 12];
2399
+ case 2:
2400
+ _c = [{}];
2401
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2402
+ case 3:
2403
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2404
+ return [3, 13];
2405
+ case 4:
2406
+ _d = [{}];
2407
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2408
+ case 5:
2409
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2410
+ return [3, 13];
2411
+ case 6:
2412
+ _e = [{}];
2413
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2414
+ case 7:
2415
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2416
+ return [3, 13];
2417
+ case 8:
2418
+ _f = [{}];
2419
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2420
+ case 9:
2421
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2422
+ return [3, 13];
2423
+ case 10:
2424
+ _g = [{}];
2425
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2426
+ case 11:
2427
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2428
+ return [3, 13];
2429
+ case 12:
2430
+ parsedBody = parsedOutput.body;
2431
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2432
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2433
+ _j.label = 13;
2434
+ case 13:
2435
+ message = response.message || response.Message || errorCode;
2436
+ response.message = message;
2437
+ delete response.Message;
2438
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2439
+ }
2440
+ });
2441
+ }); };
2079
2442
  export var deserializeAws_restJson1GetIntegrationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2080
2443
  var contents, data, _a, _b;
2081
2444
  return __generator(this, function (_c) {
@@ -2090,6 +2453,7 @@ export var deserializeAws_restJson1GetIntegrationCommand = function (output, con
2090
2453
  DomainName: undefined,
2091
2454
  LastUpdatedAt: undefined,
2092
2455
  ObjectTypeName: undefined,
2456
+ ObjectTypeNames: undefined,
2093
2457
  Tags: undefined,
2094
2458
  Uri: undefined,
2095
2459
  };
@@ -2110,6 +2474,9 @@ export var deserializeAws_restJson1GetIntegrationCommand = function (output, con
2110
2474
  if (data.ObjectTypeName !== undefined && data.ObjectTypeName !== null) {
2111
2475
  contents.ObjectTypeName = __expectString(data.ObjectTypeName);
2112
2476
  }
2477
+ if (data.ObjectTypeNames !== undefined && data.ObjectTypeNames !== null) {
2478
+ contents.ObjectTypeNames = deserializeAws_restJson1ObjectTypeNames(data.ObjectTypeNames, context);
2479
+ }
2113
2480
  if (data.Tags !== undefined && data.Tags !== null) {
2114
2481
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
2115
2482
  }
@@ -2315,6 +2682,7 @@ export var deserializeAws_restJson1GetProfileObjectTypeCommand = function (outpu
2315
2682
  Keys: undefined,
2316
2683
  LastUpdatedAt: undefined,
2317
2684
  ObjectTypeName: undefined,
2685
+ SourceLastUpdatedTimestampFormat: undefined,
2318
2686
  Tags: undefined,
2319
2687
  TemplateId: undefined,
2320
2688
  };
@@ -2350,6 +2718,9 @@ export var deserializeAws_restJson1GetProfileObjectTypeCommand = function (outpu
2350
2718
  if (data.ObjectTypeName !== undefined && data.ObjectTypeName !== null) {
2351
2719
  contents.ObjectTypeName = __expectString(data.ObjectTypeName);
2352
2720
  }
2721
+ if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
2722
+ contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
2723
+ }
2353
2724
  if (data.Tags !== undefined && data.Tags !== null) {
2354
2725
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
2355
2726
  }
@@ -2443,6 +2814,7 @@ export var deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = functio
2443
2814
  AllowProfileCreation: undefined,
2444
2815
  Fields: undefined,
2445
2816
  Keys: undefined,
2817
+ SourceLastUpdatedTimestampFormat: undefined,
2446
2818
  SourceName: undefined,
2447
2819
  SourceObject: undefined,
2448
2820
  TemplateId: undefined,
@@ -2461,6 +2833,9 @@ export var deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = functio
2461
2833
  if (data.Keys !== undefined && data.Keys !== null) {
2462
2834
  contents.Keys = deserializeAws_restJson1KeyMap(data.Keys, context);
2463
2835
  }
2836
+ if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
2837
+ contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
2838
+ }
2464
2839
  if (data.SourceName !== undefined && data.SourceName !== null) {
2465
2840
  contents.SourceName = __expectString(data.SourceName);
2466
2841
  }
@@ -2740,6 +3115,104 @@ var deserializeAws_restJson1ListDomainsCommandError = function (output, context)
2740
3115
  }
2741
3116
  });
2742
3117
  }); };
3118
+ export var deserializeAws_restJson1ListIdentityResolutionJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3119
+ var contents, data, _a, _b;
3120
+ return __generator(this, function (_c) {
3121
+ switch (_c.label) {
3122
+ case 0:
3123
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3124
+ return [2, deserializeAws_restJson1ListIdentityResolutionJobsCommandError(output, context)];
3125
+ }
3126
+ contents = {
3127
+ $metadata: deserializeMetadata(output),
3128
+ IdentityResolutionJobsList: undefined,
3129
+ NextToken: undefined,
3130
+ };
3131
+ _a = __expectNonNull;
3132
+ _b = __expectObject;
3133
+ return [4, parseBody(output.body, context)];
3134
+ case 1:
3135
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3136
+ if (data.IdentityResolutionJobsList !== undefined && data.IdentityResolutionJobsList !== null) {
3137
+ contents.IdentityResolutionJobsList = deserializeAws_restJson1IdentityResolutionJobsList(data.IdentityResolutionJobsList, context);
3138
+ }
3139
+ if (data.NextToken !== undefined && data.NextToken !== null) {
3140
+ contents.NextToken = __expectString(data.NextToken);
3141
+ }
3142
+ return [2, Promise.resolve(contents)];
3143
+ }
3144
+ });
3145
+ }); };
3146
+ var deserializeAws_restJson1ListIdentityResolutionJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3147
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
3148
+ var _h;
3149
+ return __generator(this, function (_j) {
3150
+ switch (_j.label) {
3151
+ case 0:
3152
+ _a = [__assign({}, output)];
3153
+ _h = {};
3154
+ return [4, parseBody(output.body, context)];
3155
+ case 1:
3156
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
3157
+ errorCode = "UnknownError";
3158
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3159
+ _b = errorCode;
3160
+ switch (_b) {
3161
+ case "AccessDeniedException": return [3, 2];
3162
+ case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
3163
+ case "BadRequestException": return [3, 4];
3164
+ case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
3165
+ case "InternalServerException": return [3, 6];
3166
+ case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
3167
+ case "ResourceNotFoundException": return [3, 8];
3168
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
3169
+ case "ThrottlingException": return [3, 10];
3170
+ case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
3171
+ }
3172
+ return [3, 12];
3173
+ case 2:
3174
+ _c = [{}];
3175
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
3176
+ case 3:
3177
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3178
+ return [3, 13];
3179
+ case 4:
3180
+ _d = [{}];
3181
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3182
+ case 5:
3183
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3184
+ return [3, 13];
3185
+ case 6:
3186
+ _e = [{}];
3187
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3188
+ case 7:
3189
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3190
+ return [3, 13];
3191
+ case 8:
3192
+ _f = [{}];
3193
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3194
+ case 9:
3195
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3196
+ return [3, 13];
3197
+ case 10:
3198
+ _g = [{}];
3199
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
3200
+ case 11:
3201
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3202
+ return [3, 13];
3203
+ case 12:
3204
+ parsedBody = parsedOutput.body;
3205
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3206
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3207
+ _j.label = 13;
3208
+ case 13:
3209
+ message = response.message || response.Message || errorCode;
3210
+ response.message = message;
3211
+ delete response.Message;
3212
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3213
+ }
3214
+ });
3215
+ }); };
2743
3216
  export var deserializeAws_restJson1ListIntegrationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2744
3217
  var contents, data, _a, _b;
2745
3218
  return __generator(this, function (_c) {
@@ -3310,6 +3783,7 @@ export var deserializeAws_restJson1PutIntegrationCommand = function (output, con
3310
3783
  DomainName: undefined,
3311
3784
  LastUpdatedAt: undefined,
3312
3785
  ObjectTypeName: undefined,
3786
+ ObjectTypeNames: undefined,
3313
3787
  Tags: undefined,
3314
3788
  Uri: undefined,
3315
3789
  };
@@ -3330,6 +3804,9 @@ export var deserializeAws_restJson1PutIntegrationCommand = function (output, con
3330
3804
  if (data.ObjectTypeName !== undefined && data.ObjectTypeName !== null) {
3331
3805
  contents.ObjectTypeName = __expectString(data.ObjectTypeName);
3332
3806
  }
3807
+ if (data.ObjectTypeNames !== undefined && data.ObjectTypeNames !== null) {
3808
+ contents.ObjectTypeNames = deserializeAws_restJson1ObjectTypeNames(data.ObjectTypeNames, context);
3809
+ }
3333
3810
  if (data.Tags !== undefined && data.Tags !== null) {
3334
3811
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3335
3812
  }
@@ -3523,6 +4000,7 @@ export var deserializeAws_restJson1PutProfileObjectTypeCommand = function (outpu
3523
4000
  Keys: undefined,
3524
4001
  LastUpdatedAt: undefined,
3525
4002
  ObjectTypeName: undefined,
4003
+ SourceLastUpdatedTimestampFormat: undefined,
3526
4004
  Tags: undefined,
3527
4005
  TemplateId: undefined,
3528
4006
  };
@@ -3558,6 +4036,9 @@ export var deserializeAws_restJson1PutProfileObjectTypeCommand = function (outpu
3558
4036
  if (data.ObjectTypeName !== undefined && data.ObjectTypeName !== null) {
3559
4037
  contents.ObjectTypeName = __expectString(data.ObjectTypeName);
3560
4038
  }
4039
+ if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
4040
+ contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
4041
+ }
3561
4042
  if (data.Tags !== undefined && data.Tags !== null) {
3562
4043
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3563
4044
  }
@@ -4199,9 +4680,34 @@ var serializeAws_restJson1AttributeSourceIdMap = function (input, context) {
4199
4680
  return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
4200
4681
  }, {});
4201
4682
  };
4683
+ var serializeAws_restJson1AutoMerging = function (input, context) {
4684
+ return __assign(__assign(__assign({}, (input.ConflictResolution !== undefined &&
4685
+ input.ConflictResolution !== null && {
4686
+ ConflictResolution: serializeAws_restJson1ConflictResolution(input.ConflictResolution, context),
4687
+ })), (input.Consolidation !== undefined &&
4688
+ input.Consolidation !== null && {
4689
+ Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
4690
+ })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
4691
+ };
4692
+ var serializeAws_restJson1ConflictResolution = function (input, context) {
4693
+ return __assign(__assign({}, (input.ConflictResolvingModel !== undefined &&
4694
+ input.ConflictResolvingModel !== null && { ConflictResolvingModel: input.ConflictResolvingModel })), (input.SourceName !== undefined && input.SourceName !== null && { SourceName: input.SourceName }));
4695
+ };
4202
4696
  var serializeAws_restJson1ConnectorOperator = function (input, context) {
4203
4697
  return __assign(__assign(__assign(__assign(__assign({}, (input.Marketo !== undefined && input.Marketo !== null && { Marketo: input.Marketo })), (input.S3 !== undefined && input.S3 !== null && { S3: input.S3 })), (input.Salesforce !== undefined && input.Salesforce !== null && { Salesforce: input.Salesforce })), (input.ServiceNow !== undefined && input.ServiceNow !== null && { ServiceNow: input.ServiceNow })), (input.Zendesk !== undefined && input.Zendesk !== null && { Zendesk: input.Zendesk }));
4204
4698
  };
4699
+ var serializeAws_restJson1Consolidation = function (input, context) {
4700
+ return __assign({}, (input.MatchingAttributesList !== undefined &&
4701
+ input.MatchingAttributesList !== null && {
4702
+ MatchingAttributesList: serializeAws_restJson1MatchingAttributesList(input.MatchingAttributesList, context),
4703
+ }));
4704
+ };
4705
+ var serializeAws_restJson1ExportingConfig = function (input, context) {
4706
+ return __assign({}, (input.S3Exporting !== undefined &&
4707
+ input.S3Exporting !== null && {
4708
+ S3Exporting: serializeAws_restJson1S3ExportingConfig(input.S3Exporting, context),
4709
+ }));
4710
+ };
4205
4711
  var serializeAws_restJson1FieldMap = function (input, context) {
4206
4712
  return Object.entries(input).reduce(function (acc, _a) {
4207
4713
  var _b;
@@ -4251,6 +4757,9 @@ var serializeAws_restJson1IncrementalPullConfig = function (input, context) {
4251
4757
  return __assign({}, (input.DatetimeTypeFieldName !== undefined &&
4252
4758
  input.DatetimeTypeFieldName !== null && { DatetimeTypeFieldName: input.DatetimeTypeFieldName }));
4253
4759
  };
4760
+ var serializeAws_restJson1JobSchedule = function (input, context) {
4761
+ return __assign(__assign({}, (input.DayOfTheWeek !== undefined && input.DayOfTheWeek !== null && { DayOfTheWeek: input.DayOfTheWeek })), (input.Time !== undefined && input.Time !== null && { Time: input.Time }));
4762
+ };
4254
4763
  var serializeAws_restJson1KeyMap = function (input, context) {
4255
4764
  return Object.entries(input).reduce(function (acc, _a) {
4256
4765
  var _b;
@@ -4264,8 +4773,33 @@ var serializeAws_restJson1KeyMap = function (input, context) {
4264
4773
  var serializeAws_restJson1MarketoSourceProperties = function (input, context) {
4265
4774
  return __assign({}, (input.Object !== undefined && input.Object !== null && { Object: input.Object }));
4266
4775
  };
4776
+ var serializeAws_restJson1MatchingAttributes = function (input, context) {
4777
+ return input
4778
+ .filter(function (e) { return e != null; })
4779
+ .map(function (entry) {
4780
+ if (entry === null) {
4781
+ return null;
4782
+ }
4783
+ return entry;
4784
+ });
4785
+ };
4786
+ var serializeAws_restJson1MatchingAttributesList = function (input, context) {
4787
+ return input
4788
+ .filter(function (e) { return e != null; })
4789
+ .map(function (entry) {
4790
+ if (entry === null) {
4791
+ return null;
4792
+ }
4793
+ return serializeAws_restJson1MatchingAttributes(entry, context);
4794
+ });
4795
+ };
4267
4796
  var serializeAws_restJson1MatchingRequest = function (input, context) {
4268
- return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
4797
+ return __assign(__assign(__assign(__assign({}, (input.AutoMerging !== undefined &&
4798
+ input.AutoMerging !== null && { AutoMerging: serializeAws_restJson1AutoMerging(input.AutoMerging, context) })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.ExportingConfig !== undefined &&
4799
+ input.ExportingConfig !== null && {
4800
+ ExportingConfig: serializeAws_restJson1ExportingConfig(input.ExportingConfig, context),
4801
+ })), (input.JobSchedule !== undefined &&
4802
+ input.JobSchedule !== null && { JobSchedule: serializeAws_restJson1JobSchedule(input.JobSchedule, context) }));
4269
4803
  };
4270
4804
  var serializeAws_restJson1ObjectFilter = function (input, context) {
4271
4805
  return __assign(__assign({}, (input.KeyName !== undefined && input.KeyName !== null && { KeyName: input.KeyName })), (input.Values !== undefined &&
@@ -4291,6 +4825,16 @@ var serializeAws_restJson1ObjectTypeKeyList = function (input, context) {
4291
4825
  return serializeAws_restJson1ObjectTypeKey(entry, context);
4292
4826
  });
4293
4827
  };
4828
+ var serializeAws_restJson1ObjectTypeNames = function (input, context) {
4829
+ return Object.entries(input).reduce(function (acc, _a) {
4830
+ var _b;
4831
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
4832
+ if (value === null) {
4833
+ return acc;
4834
+ }
4835
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
4836
+ }, {});
4837
+ };
4294
4838
  var serializeAws_restJson1ProfileIdToBeMergedList = function (input, context) {
4295
4839
  return input
4296
4840
  .filter(function (e) { return e != null; })
@@ -4311,6 +4855,9 @@ var serializeAws_restJson1requestValueList = function (input, context) {
4311
4855
  return entry;
4312
4856
  });
4313
4857
  };
4858
+ var serializeAws_restJson1S3ExportingConfig = function (input, context) {
4859
+ return __assign(__assign({}, (input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName })), (input.S3KeyName !== undefined && input.S3KeyName !== null && { S3KeyName: input.S3KeyName }));
4860
+ };
4314
4861
  var serializeAws_restJson1S3SourceProperties = function (input, context) {
4315
4862
  return __assign(__assign({}, (input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName })), (input.BucketPrefix !== undefined && input.BucketPrefix !== null && { BucketPrefix: input.BucketPrefix }));
4316
4863
  };
@@ -4467,6 +5014,30 @@ var deserializeAws_restJson1Attributes = function (output, context) {
4467
5014
  return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
4468
5015
  }, {});
4469
5016
  };
5017
+ var deserializeAws_restJson1AutoMerging = function (output, context) {
5018
+ return {
5019
+ ConflictResolution: output.ConflictResolution !== undefined && output.ConflictResolution !== null
5020
+ ? deserializeAws_restJson1ConflictResolution(output.ConflictResolution, context)
5021
+ : undefined,
5022
+ Consolidation: output.Consolidation !== undefined && output.Consolidation !== null
5023
+ ? deserializeAws_restJson1Consolidation(output.Consolidation, context)
5024
+ : undefined,
5025
+ Enabled: __expectBoolean(output.Enabled),
5026
+ };
5027
+ };
5028
+ var deserializeAws_restJson1ConflictResolution = function (output, context) {
5029
+ return {
5030
+ ConflictResolvingModel: __expectString(output.ConflictResolvingModel),
5031
+ SourceName: __expectString(output.SourceName),
5032
+ };
5033
+ };
5034
+ var deserializeAws_restJson1Consolidation = function (output, context) {
5035
+ return {
5036
+ MatchingAttributesList: output.MatchingAttributesList !== undefined && output.MatchingAttributesList !== null
5037
+ ? deserializeAws_restJson1MatchingAttributesList(output.MatchingAttributesList, context)
5038
+ : undefined,
5039
+ };
5040
+ };
4470
5041
  var deserializeAws_restJson1DomainList = function (output, context) {
4471
5042
  return (output || [])
4472
5043
  .filter(function (e) { return e != null; })
@@ -4485,6 +5056,20 @@ var deserializeAws_restJson1DomainStats = function (output, context) {
4485
5056
  TotalSize: __expectLong(output.TotalSize),
4486
5057
  };
4487
5058
  };
5059
+ var deserializeAws_restJson1ExportingConfig = function (output, context) {
5060
+ return {
5061
+ S3Exporting: output.S3Exporting !== undefined && output.S3Exporting !== null
5062
+ ? deserializeAws_restJson1S3ExportingConfig(output.S3Exporting, context)
5063
+ : undefined,
5064
+ };
5065
+ };
5066
+ var deserializeAws_restJson1ExportingLocation = function (output, context) {
5067
+ return {
5068
+ S3Exporting: output.S3Exporting !== undefined && output.S3Exporting !== null
5069
+ ? deserializeAws_restJson1S3ExportingLocation(output.S3Exporting, context)
5070
+ : undefined,
5071
+ };
5072
+ };
4488
5073
  var deserializeAws_restJson1FieldMap = function (output, context) {
4489
5074
  return Object.entries(output).reduce(function (acc, _a) {
4490
5075
  var _b;
@@ -4505,6 +5090,36 @@ var deserializeAws_restJson1FieldNameList = function (output, context) {
4505
5090
  return __expectString(entry);
4506
5091
  });
4507
5092
  };
5093
+ var deserializeAws_restJson1IdentityResolutionJob = function (output, context) {
5094
+ return {
5095
+ DomainName: __expectString(output.DomainName),
5096
+ ExportingLocation: output.ExportingLocation !== undefined && output.ExportingLocation !== null
5097
+ ? deserializeAws_restJson1ExportingLocation(output.ExportingLocation, context)
5098
+ : undefined,
5099
+ JobEndTime: output.JobEndTime !== undefined && output.JobEndTime !== null
5100
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.JobEndTime)))
5101
+ : undefined,
5102
+ JobId: __expectString(output.JobId),
5103
+ JobStartTime: output.JobStartTime !== undefined && output.JobStartTime !== null
5104
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.JobStartTime)))
5105
+ : undefined,
5106
+ JobStats: output.JobStats !== undefined && output.JobStats !== null
5107
+ ? deserializeAws_restJson1JobStats(output.JobStats, context)
5108
+ : undefined,
5109
+ Message: __expectString(output.Message),
5110
+ Status: __expectString(output.Status),
5111
+ };
5112
+ };
5113
+ var deserializeAws_restJson1IdentityResolutionJobsList = function (output, context) {
5114
+ return (output || [])
5115
+ .filter(function (e) { return e != null; })
5116
+ .map(function (entry) {
5117
+ if (entry === null) {
5118
+ return null;
5119
+ }
5120
+ return deserializeAws_restJson1IdentityResolutionJob(entry, context);
5121
+ });
5122
+ };
4508
5123
  var deserializeAws_restJson1IntegrationList = function (output, context) {
4509
5124
  return (output || [])
4510
5125
  .filter(function (e) { return e != null; })
@@ -4515,6 +5130,19 @@ var deserializeAws_restJson1IntegrationList = function (output, context) {
4515
5130
  return deserializeAws_restJson1ListIntegrationItem(entry, context);
4516
5131
  });
4517
5132
  };
5133
+ var deserializeAws_restJson1JobSchedule = function (output, context) {
5134
+ return {
5135
+ DayOfTheWeek: __expectString(output.DayOfTheWeek),
5136
+ Time: __expectString(output.Time),
5137
+ };
5138
+ };
5139
+ var deserializeAws_restJson1JobStats = function (output, context) {
5140
+ return {
5141
+ NumberOfMatchesFound: __expectLong(output.NumberOfMatchesFound),
5142
+ NumberOfMergesDone: __expectLong(output.NumberOfMergesDone),
5143
+ NumberOfProfilesReviewed: __expectLong(output.NumberOfProfilesReviewed),
5144
+ };
5145
+ };
4518
5146
  var deserializeAws_restJson1KeyMap = function (output, context) {
4519
5147
  return Object.entries(output).reduce(function (acc, _a) {
4520
5148
  var _b;
@@ -4549,6 +5177,9 @@ var deserializeAws_restJson1ListIntegrationItem = function (output, context) {
4549
5177
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
4550
5178
  : undefined,
4551
5179
  ObjectTypeName: __expectString(output.ObjectTypeName),
5180
+ ObjectTypeNames: output.ObjectTypeNames !== undefined && output.ObjectTypeNames !== null
5181
+ ? deserializeAws_restJson1ObjectTypeNames(output.ObjectTypeNames, context)
5182
+ : undefined,
4552
5183
  Tags: output.Tags !== undefined && output.Tags !== null
4553
5184
  ? deserializeAws_restJson1TagMap(output.Tags, context)
4554
5185
  : undefined,
@@ -4594,13 +5225,43 @@ var deserializeAws_restJson1MatchesList = function (output, context) {
4594
5225
  return deserializeAws_restJson1MatchItem(entry, context);
4595
5226
  });
4596
5227
  };
5228
+ var deserializeAws_restJson1MatchingAttributes = function (output, context) {
5229
+ return (output || [])
5230
+ .filter(function (e) { return e != null; })
5231
+ .map(function (entry) {
5232
+ if (entry === null) {
5233
+ return null;
5234
+ }
5235
+ return __expectString(entry);
5236
+ });
5237
+ };
5238
+ var deserializeAws_restJson1MatchingAttributesList = function (output, context) {
5239
+ return (output || [])
5240
+ .filter(function (e) { return e != null; })
5241
+ .map(function (entry) {
5242
+ if (entry === null) {
5243
+ return null;
5244
+ }
5245
+ return deserializeAws_restJson1MatchingAttributes(entry, context);
5246
+ });
5247
+ };
4597
5248
  var deserializeAws_restJson1MatchingResponse = function (output, context) {
4598
5249
  return {
5250
+ AutoMerging: output.AutoMerging !== undefined && output.AutoMerging !== null
5251
+ ? deserializeAws_restJson1AutoMerging(output.AutoMerging, context)
5252
+ : undefined,
4599
5253
  Enabled: __expectBoolean(output.Enabled),
5254
+ ExportingConfig: output.ExportingConfig !== undefined && output.ExportingConfig !== null
5255
+ ? deserializeAws_restJson1ExportingConfig(output.ExportingConfig, context)
5256
+ : undefined,
5257
+ JobSchedule: output.JobSchedule !== undefined && output.JobSchedule !== null
5258
+ ? deserializeAws_restJson1JobSchedule(output.JobSchedule, context)
5259
+ : undefined,
4600
5260
  };
4601
5261
  };
4602
5262
  var deserializeAws_restJson1MatchItem = function (output, context) {
4603
5263
  return {
5264
+ ConfidenceScore: __limitedParseDouble(output.ConfidenceScore),
4604
5265
  MatchId: __expectString(output.MatchId),
4605
5266
  ProfileIds: output.ProfileIds !== undefined && output.ProfileIds !== null
4606
5267
  ? deserializeAws_restJson1ProfileIdList(output.ProfileIds, context)
@@ -4634,6 +5295,16 @@ var deserializeAws_restJson1ObjectTypeKeyList = function (output, context) {
4634
5295
  return deserializeAws_restJson1ObjectTypeKey(entry, context);
4635
5296
  });
4636
5297
  };
5298
+ var deserializeAws_restJson1ObjectTypeNames = function (output, context) {
5299
+ return Object.entries(output).reduce(function (acc, _a) {
5300
+ var _b;
5301
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
5302
+ if (value === null) {
5303
+ return acc;
5304
+ }
5305
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
5306
+ }, {});
5307
+ };
4637
5308
  var deserializeAws_restJson1Profile = function (output, context) {
4638
5309
  return {
4639
5310
  AccountNumber: __expectString(output.AccountNumber),
@@ -4730,6 +5401,18 @@ var deserializeAws_restJson1requestValueList = function (output, context) {
4730
5401
  return __expectString(entry);
4731
5402
  });
4732
5403
  };
5404
+ var deserializeAws_restJson1S3ExportingConfig = function (output, context) {
5405
+ return {
5406
+ S3BucketName: __expectString(output.S3BucketName),
5407
+ S3KeyName: __expectString(output.S3KeyName),
5408
+ };
5409
+ };
5410
+ var deserializeAws_restJson1S3ExportingLocation = function (output, context) {
5411
+ return {
5412
+ S3BucketName: __expectString(output.S3BucketName),
5413
+ S3KeyName: __expectString(output.S3KeyName),
5414
+ };
5415
+ };
4733
5416
  var deserializeAws_restJson1StandardIdentifierList = function (output, context) {
4734
5417
  return (output || [])
4735
5418
  .filter(function (e) { return e != null; })