@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,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) {
@@ -863,10 +980,13 @@ export var serializeAws_restJson1PutProfileObjectTypeCommand = function (input,
863
980
  else {
864
981
  throw new Error("No value provided for input HTTP label: ObjectTypeName.");
865
982
  }
866
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowProfileCreation !== undefined &&
983
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowProfileCreation !== undefined &&
867
984
  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
985
  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 })));
986
+ input.Fields !== null && { Fields: serializeAws_restJson1FieldMap(input.Fields, context) })), (input.Keys !== undefined && input.Keys !== null && { Keys: serializeAws_restJson1KeyMap(input.Keys, context) })), (input.SourceLastUpdatedTimestampFormat !== undefined &&
987
+ input.SourceLastUpdatedTimestampFormat !== null && {
988
+ SourceLastUpdatedTimestampFormat: input.SourceLastUpdatedTimestampFormat,
989
+ })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.TemplateId !== undefined && input.TemplateId !== null && { TemplateId: input.TemplateId })));
870
990
  return [2, new __HttpRequest({
871
991
  protocol: protocol,
872
992
  hostname: hostname,
@@ -1950,6 +2070,112 @@ var deserializeAws_restJson1DeleteProfileObjectTypeCommandError = function (outp
1950
2070
  }
1951
2071
  });
1952
2072
  }); };
2073
+ export var deserializeAws_restJson1GetAutoMergingPreviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2074
+ var contents, data, _a, _b;
2075
+ return __generator(this, function (_c) {
2076
+ switch (_c.label) {
2077
+ case 0:
2078
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2079
+ return [2, deserializeAws_restJson1GetAutoMergingPreviewCommandError(output, context)];
2080
+ }
2081
+ contents = {
2082
+ $metadata: deserializeMetadata(output),
2083
+ DomainName: undefined,
2084
+ NumberOfMatchesInSample: undefined,
2085
+ NumberOfProfilesInSample: undefined,
2086
+ NumberOfProfilesWillBeMerged: undefined,
2087
+ };
2088
+ _a = __expectNonNull;
2089
+ _b = __expectObject;
2090
+ return [4, parseBody(output.body, context)];
2091
+ case 1:
2092
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2093
+ if (data.DomainName !== undefined && data.DomainName !== null) {
2094
+ contents.DomainName = __expectString(data.DomainName);
2095
+ }
2096
+ if (data.NumberOfMatchesInSample !== undefined && data.NumberOfMatchesInSample !== null) {
2097
+ contents.NumberOfMatchesInSample = __expectLong(data.NumberOfMatchesInSample);
2098
+ }
2099
+ if (data.NumberOfProfilesInSample !== undefined && data.NumberOfProfilesInSample !== null) {
2100
+ contents.NumberOfProfilesInSample = __expectLong(data.NumberOfProfilesInSample);
2101
+ }
2102
+ if (data.NumberOfProfilesWillBeMerged !== undefined && data.NumberOfProfilesWillBeMerged !== null) {
2103
+ contents.NumberOfProfilesWillBeMerged = __expectLong(data.NumberOfProfilesWillBeMerged);
2104
+ }
2105
+ return [2, Promise.resolve(contents)];
2106
+ }
2107
+ });
2108
+ }); };
2109
+ var deserializeAws_restJson1GetAutoMergingPreviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2110
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
2111
+ var _h;
2112
+ return __generator(this, function (_j) {
2113
+ switch (_j.label) {
2114
+ case 0:
2115
+ _a = [__assign({}, output)];
2116
+ _h = {};
2117
+ return [4, parseBody(output.body, context)];
2118
+ case 1:
2119
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2120
+ errorCode = "UnknownError";
2121
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2122
+ _b = errorCode;
2123
+ switch (_b) {
2124
+ case "AccessDeniedException": return [3, 2];
2125
+ case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
2126
+ case "BadRequestException": return [3, 4];
2127
+ case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
2128
+ case "InternalServerException": return [3, 6];
2129
+ case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
2130
+ case "ResourceNotFoundException": return [3, 8];
2131
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
2132
+ case "ThrottlingException": return [3, 10];
2133
+ case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
2134
+ }
2135
+ return [3, 12];
2136
+ case 2:
2137
+ _c = [{}];
2138
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2139
+ case 3:
2140
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2141
+ return [3, 13];
2142
+ case 4:
2143
+ _d = [{}];
2144
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2145
+ case 5:
2146
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2147
+ return [3, 13];
2148
+ case 6:
2149
+ _e = [{}];
2150
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2151
+ case 7:
2152
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2153
+ return [3, 13];
2154
+ case 8:
2155
+ _f = [{}];
2156
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2157
+ case 9:
2158
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2159
+ return [3, 13];
2160
+ case 10:
2161
+ _g = [{}];
2162
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2163
+ case 11:
2164
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2165
+ return [3, 13];
2166
+ case 12:
2167
+ parsedBody = parsedOutput.body;
2168
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2169
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2170
+ _j.label = 13;
2171
+ case 13:
2172
+ message = response.message || response.Message || errorCode;
2173
+ response.message = message;
2174
+ delete response.Message;
2175
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2176
+ }
2177
+ });
2178
+ }); };
1953
2179
  export var deserializeAws_restJson1GetDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1954
2180
  var contents, data, _a, _b;
1955
2181
  return __generator(this, function (_c) {
@@ -2076,6 +2302,140 @@ var deserializeAws_restJson1GetDomainCommandError = function (output, context) {
2076
2302
  }
2077
2303
  });
2078
2304
  }); };
2305
+ export var deserializeAws_restJson1GetIdentityResolutionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2306
+ var contents, data, _a, _b;
2307
+ return __generator(this, function (_c) {
2308
+ switch (_c.label) {
2309
+ case 0:
2310
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2311
+ return [2, deserializeAws_restJson1GetIdentityResolutionJobCommandError(output, context)];
2312
+ }
2313
+ contents = {
2314
+ $metadata: deserializeMetadata(output),
2315
+ AutoMerging: undefined,
2316
+ DomainName: undefined,
2317
+ ExportingLocation: undefined,
2318
+ JobEndTime: undefined,
2319
+ JobExpirationTime: undefined,
2320
+ JobId: undefined,
2321
+ JobStartTime: undefined,
2322
+ JobStats: undefined,
2323
+ LastUpdatedAt: undefined,
2324
+ Message: undefined,
2325
+ Status: undefined,
2326
+ };
2327
+ _a = __expectNonNull;
2328
+ _b = __expectObject;
2329
+ return [4, parseBody(output.body, context)];
2330
+ case 1:
2331
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2332
+ if (data.AutoMerging !== undefined && data.AutoMerging !== null) {
2333
+ contents.AutoMerging = deserializeAws_restJson1AutoMerging(data.AutoMerging, context);
2334
+ }
2335
+ if (data.DomainName !== undefined && data.DomainName !== null) {
2336
+ contents.DomainName = __expectString(data.DomainName);
2337
+ }
2338
+ if (data.ExportingLocation !== undefined && data.ExportingLocation !== null) {
2339
+ contents.ExportingLocation = deserializeAws_restJson1ExportingLocation(data.ExportingLocation, context);
2340
+ }
2341
+ if (data.JobEndTime !== undefined && data.JobEndTime !== null) {
2342
+ contents.JobEndTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.JobEndTime)));
2343
+ }
2344
+ if (data.JobExpirationTime !== undefined && data.JobExpirationTime !== null) {
2345
+ contents.JobExpirationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.JobExpirationTime)));
2346
+ }
2347
+ if (data.JobId !== undefined && data.JobId !== null) {
2348
+ contents.JobId = __expectString(data.JobId);
2349
+ }
2350
+ if (data.JobStartTime !== undefined && data.JobStartTime !== null) {
2351
+ contents.JobStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.JobStartTime)));
2352
+ }
2353
+ if (data.JobStats !== undefined && data.JobStats !== null) {
2354
+ contents.JobStats = deserializeAws_restJson1JobStats(data.JobStats, context);
2355
+ }
2356
+ if (data.LastUpdatedAt !== undefined && data.LastUpdatedAt !== null) {
2357
+ contents.LastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedAt)));
2358
+ }
2359
+ if (data.Message !== undefined && data.Message !== null) {
2360
+ contents.Message = __expectString(data.Message);
2361
+ }
2362
+ if (data.Status !== undefined && data.Status !== null) {
2363
+ contents.Status = __expectString(data.Status);
2364
+ }
2365
+ return [2, Promise.resolve(contents)];
2366
+ }
2367
+ });
2368
+ }); };
2369
+ var deserializeAws_restJson1GetIdentityResolutionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2370
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
2371
+ var _h;
2372
+ return __generator(this, function (_j) {
2373
+ switch (_j.label) {
2374
+ case 0:
2375
+ _a = [__assign({}, output)];
2376
+ _h = {};
2377
+ return [4, parseBody(output.body, context)];
2378
+ case 1:
2379
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2380
+ errorCode = "UnknownError";
2381
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2382
+ _b = errorCode;
2383
+ switch (_b) {
2384
+ case "AccessDeniedException": return [3, 2];
2385
+ case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
2386
+ case "BadRequestException": return [3, 4];
2387
+ case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
2388
+ case "InternalServerException": return [3, 6];
2389
+ case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
2390
+ case "ResourceNotFoundException": return [3, 8];
2391
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
2392
+ case "ThrottlingException": return [3, 10];
2393
+ case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
2394
+ }
2395
+ return [3, 12];
2396
+ case 2:
2397
+ _c = [{}];
2398
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2399
+ case 3:
2400
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2401
+ return [3, 13];
2402
+ case 4:
2403
+ _d = [{}];
2404
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2405
+ case 5:
2406
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2407
+ return [3, 13];
2408
+ case 6:
2409
+ _e = [{}];
2410
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2411
+ case 7:
2412
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2413
+ return [3, 13];
2414
+ case 8:
2415
+ _f = [{}];
2416
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2417
+ case 9:
2418
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2419
+ return [3, 13];
2420
+ case 10:
2421
+ _g = [{}];
2422
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2423
+ case 11:
2424
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2425
+ return [3, 13];
2426
+ case 12:
2427
+ parsedBody = parsedOutput.body;
2428
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2429
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
2430
+ _j.label = 13;
2431
+ case 13:
2432
+ message = response.message || response.Message || errorCode;
2433
+ response.message = message;
2434
+ delete response.Message;
2435
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2436
+ }
2437
+ });
2438
+ }); };
2079
2439
  export var deserializeAws_restJson1GetIntegrationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2080
2440
  var contents, data, _a, _b;
2081
2441
  return __generator(this, function (_c) {
@@ -2315,6 +2675,7 @@ export var deserializeAws_restJson1GetProfileObjectTypeCommand = function (outpu
2315
2675
  Keys: undefined,
2316
2676
  LastUpdatedAt: undefined,
2317
2677
  ObjectTypeName: undefined,
2678
+ SourceLastUpdatedTimestampFormat: undefined,
2318
2679
  Tags: undefined,
2319
2680
  TemplateId: undefined,
2320
2681
  };
@@ -2350,6 +2711,9 @@ export var deserializeAws_restJson1GetProfileObjectTypeCommand = function (outpu
2350
2711
  if (data.ObjectTypeName !== undefined && data.ObjectTypeName !== null) {
2351
2712
  contents.ObjectTypeName = __expectString(data.ObjectTypeName);
2352
2713
  }
2714
+ if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
2715
+ contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
2716
+ }
2353
2717
  if (data.Tags !== undefined && data.Tags !== null) {
2354
2718
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
2355
2719
  }
@@ -2443,6 +2807,7 @@ export var deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = functio
2443
2807
  AllowProfileCreation: undefined,
2444
2808
  Fields: undefined,
2445
2809
  Keys: undefined,
2810
+ SourceLastUpdatedTimestampFormat: undefined,
2446
2811
  SourceName: undefined,
2447
2812
  SourceObject: undefined,
2448
2813
  TemplateId: undefined,
@@ -2461,6 +2826,9 @@ export var deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = functio
2461
2826
  if (data.Keys !== undefined && data.Keys !== null) {
2462
2827
  contents.Keys = deserializeAws_restJson1KeyMap(data.Keys, context);
2463
2828
  }
2829
+ if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
2830
+ contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
2831
+ }
2464
2832
  if (data.SourceName !== undefined && data.SourceName !== null) {
2465
2833
  contents.SourceName = __expectString(data.SourceName);
2466
2834
  }
@@ -2740,6 +3108,104 @@ var deserializeAws_restJson1ListDomainsCommandError = function (output, context)
2740
3108
  }
2741
3109
  });
2742
3110
  }); };
3111
+ export var deserializeAws_restJson1ListIdentityResolutionJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3112
+ var contents, data, _a, _b;
3113
+ return __generator(this, function (_c) {
3114
+ switch (_c.label) {
3115
+ case 0:
3116
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3117
+ return [2, deserializeAws_restJson1ListIdentityResolutionJobsCommandError(output, context)];
3118
+ }
3119
+ contents = {
3120
+ $metadata: deserializeMetadata(output),
3121
+ IdentityResolutionJobsList: undefined,
3122
+ NextToken: undefined,
3123
+ };
3124
+ _a = __expectNonNull;
3125
+ _b = __expectObject;
3126
+ return [4, parseBody(output.body, context)];
3127
+ case 1:
3128
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3129
+ if (data.IdentityResolutionJobsList !== undefined && data.IdentityResolutionJobsList !== null) {
3130
+ contents.IdentityResolutionJobsList = deserializeAws_restJson1IdentityResolutionJobsList(data.IdentityResolutionJobsList, context);
3131
+ }
3132
+ if (data.NextToken !== undefined && data.NextToken !== null) {
3133
+ contents.NextToken = __expectString(data.NextToken);
3134
+ }
3135
+ return [2, Promise.resolve(contents)];
3136
+ }
3137
+ });
3138
+ }); };
3139
+ var deserializeAws_restJson1ListIdentityResolutionJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3140
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
3141
+ var _h;
3142
+ return __generator(this, function (_j) {
3143
+ switch (_j.label) {
3144
+ case 0:
3145
+ _a = [__assign({}, output)];
3146
+ _h = {};
3147
+ return [4, parseBody(output.body, context)];
3148
+ case 1:
3149
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
3150
+ errorCode = "UnknownError";
3151
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3152
+ _b = errorCode;
3153
+ switch (_b) {
3154
+ case "AccessDeniedException": return [3, 2];
3155
+ case "com.amazonaws.customerprofiles#AccessDeniedException": return [3, 2];
3156
+ case "BadRequestException": return [3, 4];
3157
+ case "com.amazonaws.customerprofiles#BadRequestException": return [3, 4];
3158
+ case "InternalServerException": return [3, 6];
3159
+ case "com.amazonaws.customerprofiles#InternalServerException": return [3, 6];
3160
+ case "ResourceNotFoundException": return [3, 8];
3161
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException": return [3, 8];
3162
+ case "ThrottlingException": return [3, 10];
3163
+ case "com.amazonaws.customerprofiles#ThrottlingException": return [3, 10];
3164
+ }
3165
+ return [3, 12];
3166
+ case 2:
3167
+ _c = [{}];
3168
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
3169
+ case 3:
3170
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3171
+ return [3, 13];
3172
+ case 4:
3173
+ _d = [{}];
3174
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3175
+ case 5:
3176
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3177
+ return [3, 13];
3178
+ case 6:
3179
+ _e = [{}];
3180
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3181
+ case 7:
3182
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3183
+ return [3, 13];
3184
+ case 8:
3185
+ _f = [{}];
3186
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3187
+ case 9:
3188
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3189
+ return [3, 13];
3190
+ case 10:
3191
+ _g = [{}];
3192
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
3193
+ case 11:
3194
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3195
+ return [3, 13];
3196
+ case 12:
3197
+ parsedBody = parsedOutput.body;
3198
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
3199
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3200
+ _j.label = 13;
3201
+ case 13:
3202
+ message = response.message || response.Message || errorCode;
3203
+ response.message = message;
3204
+ delete response.Message;
3205
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3206
+ }
3207
+ });
3208
+ }); };
2743
3209
  export var deserializeAws_restJson1ListIntegrationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2744
3210
  var contents, data, _a, _b;
2745
3211
  return __generator(this, function (_c) {
@@ -3523,6 +3989,7 @@ export var deserializeAws_restJson1PutProfileObjectTypeCommand = function (outpu
3523
3989
  Keys: undefined,
3524
3990
  LastUpdatedAt: undefined,
3525
3991
  ObjectTypeName: undefined,
3992
+ SourceLastUpdatedTimestampFormat: undefined,
3526
3993
  Tags: undefined,
3527
3994
  TemplateId: undefined,
3528
3995
  };
@@ -3558,6 +4025,9 @@ export var deserializeAws_restJson1PutProfileObjectTypeCommand = function (outpu
3558
4025
  if (data.ObjectTypeName !== undefined && data.ObjectTypeName !== null) {
3559
4026
  contents.ObjectTypeName = __expectString(data.ObjectTypeName);
3560
4027
  }
4028
+ if (data.SourceLastUpdatedTimestampFormat !== undefined && data.SourceLastUpdatedTimestampFormat !== null) {
4029
+ contents.SourceLastUpdatedTimestampFormat = __expectString(data.SourceLastUpdatedTimestampFormat);
4030
+ }
3561
4031
  if (data.Tags !== undefined && data.Tags !== null) {
3562
4032
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3563
4033
  }
@@ -4199,9 +4669,34 @@ var serializeAws_restJson1AttributeSourceIdMap = function (input, context) {
4199
4669
  return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
4200
4670
  }, {});
4201
4671
  };
4672
+ var serializeAws_restJson1AutoMerging = function (input, context) {
4673
+ return __assign(__assign(__assign({}, (input.ConflictResolution !== undefined &&
4674
+ input.ConflictResolution !== null && {
4675
+ ConflictResolution: serializeAws_restJson1ConflictResolution(input.ConflictResolution, context),
4676
+ })), (input.Consolidation !== undefined &&
4677
+ input.Consolidation !== null && {
4678
+ Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
4679
+ })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
4680
+ };
4681
+ var serializeAws_restJson1ConflictResolution = function (input, context) {
4682
+ return __assign(__assign({}, (input.ConflictResolvingModel !== undefined &&
4683
+ input.ConflictResolvingModel !== null && { ConflictResolvingModel: input.ConflictResolvingModel })), (input.SourceName !== undefined && input.SourceName !== null && { SourceName: input.SourceName }));
4684
+ };
4202
4685
  var serializeAws_restJson1ConnectorOperator = function (input, context) {
4203
4686
  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
4687
  };
4688
+ var serializeAws_restJson1Consolidation = function (input, context) {
4689
+ return __assign({}, (input.MatchingAttributesList !== undefined &&
4690
+ input.MatchingAttributesList !== null && {
4691
+ MatchingAttributesList: serializeAws_restJson1MatchingAttributesList(input.MatchingAttributesList, context),
4692
+ }));
4693
+ };
4694
+ var serializeAws_restJson1ExportingConfig = function (input, context) {
4695
+ return __assign({}, (input.S3Exporting !== undefined &&
4696
+ input.S3Exporting !== null && {
4697
+ S3Exporting: serializeAws_restJson1S3ExportingConfig(input.S3Exporting, context),
4698
+ }));
4699
+ };
4205
4700
  var serializeAws_restJson1FieldMap = function (input, context) {
4206
4701
  return Object.entries(input).reduce(function (acc, _a) {
4207
4702
  var _b;
@@ -4251,6 +4746,9 @@ var serializeAws_restJson1IncrementalPullConfig = function (input, context) {
4251
4746
  return __assign({}, (input.DatetimeTypeFieldName !== undefined &&
4252
4747
  input.DatetimeTypeFieldName !== null && { DatetimeTypeFieldName: input.DatetimeTypeFieldName }));
4253
4748
  };
4749
+ var serializeAws_restJson1JobSchedule = function (input, context) {
4750
+ return __assign(__assign({}, (input.DayOfTheWeek !== undefined && input.DayOfTheWeek !== null && { DayOfTheWeek: input.DayOfTheWeek })), (input.Time !== undefined && input.Time !== null && { Time: input.Time }));
4751
+ };
4254
4752
  var serializeAws_restJson1KeyMap = function (input, context) {
4255
4753
  return Object.entries(input).reduce(function (acc, _a) {
4256
4754
  var _b;
@@ -4264,8 +4762,33 @@ var serializeAws_restJson1KeyMap = function (input, context) {
4264
4762
  var serializeAws_restJson1MarketoSourceProperties = function (input, context) {
4265
4763
  return __assign({}, (input.Object !== undefined && input.Object !== null && { Object: input.Object }));
4266
4764
  };
4765
+ var serializeAws_restJson1MatchingAttributes = function (input, context) {
4766
+ return input
4767
+ .filter(function (e) { return e != null; })
4768
+ .map(function (entry) {
4769
+ if (entry === null) {
4770
+ return null;
4771
+ }
4772
+ return entry;
4773
+ });
4774
+ };
4775
+ var serializeAws_restJson1MatchingAttributesList = function (input, context) {
4776
+ return input
4777
+ .filter(function (e) { return e != null; })
4778
+ .map(function (entry) {
4779
+ if (entry === null) {
4780
+ return null;
4781
+ }
4782
+ return serializeAws_restJson1MatchingAttributes(entry, context);
4783
+ });
4784
+ };
4267
4785
  var serializeAws_restJson1MatchingRequest = function (input, context) {
4268
- return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
4786
+ return __assign(__assign(__assign(__assign({}, (input.AutoMerging !== undefined &&
4787
+ input.AutoMerging !== null && { AutoMerging: serializeAws_restJson1AutoMerging(input.AutoMerging, context) })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.ExportingConfig !== undefined &&
4788
+ input.ExportingConfig !== null && {
4789
+ ExportingConfig: serializeAws_restJson1ExportingConfig(input.ExportingConfig, context),
4790
+ })), (input.JobSchedule !== undefined &&
4791
+ input.JobSchedule !== null && { JobSchedule: serializeAws_restJson1JobSchedule(input.JobSchedule, context) }));
4269
4792
  };
4270
4793
  var serializeAws_restJson1ObjectFilter = function (input, context) {
4271
4794
  return __assign(__assign({}, (input.KeyName !== undefined && input.KeyName !== null && { KeyName: input.KeyName })), (input.Values !== undefined &&
@@ -4311,6 +4834,9 @@ var serializeAws_restJson1requestValueList = function (input, context) {
4311
4834
  return entry;
4312
4835
  });
4313
4836
  };
4837
+ var serializeAws_restJson1S3ExportingConfig = function (input, context) {
4838
+ return __assign(__assign({}, (input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName })), (input.S3KeyName !== undefined && input.S3KeyName !== null && { S3KeyName: input.S3KeyName }));
4839
+ };
4314
4840
  var serializeAws_restJson1S3SourceProperties = function (input, context) {
4315
4841
  return __assign(__assign({}, (input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName })), (input.BucketPrefix !== undefined && input.BucketPrefix !== null && { BucketPrefix: input.BucketPrefix }));
4316
4842
  };
@@ -4467,6 +4993,30 @@ var deserializeAws_restJson1Attributes = function (output, context) {
4467
4993
  return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
4468
4994
  }, {});
4469
4995
  };
4996
+ var deserializeAws_restJson1AutoMerging = function (output, context) {
4997
+ return {
4998
+ ConflictResolution: output.ConflictResolution !== undefined && output.ConflictResolution !== null
4999
+ ? deserializeAws_restJson1ConflictResolution(output.ConflictResolution, context)
5000
+ : undefined,
5001
+ Consolidation: output.Consolidation !== undefined && output.Consolidation !== null
5002
+ ? deserializeAws_restJson1Consolidation(output.Consolidation, context)
5003
+ : undefined,
5004
+ Enabled: __expectBoolean(output.Enabled),
5005
+ };
5006
+ };
5007
+ var deserializeAws_restJson1ConflictResolution = function (output, context) {
5008
+ return {
5009
+ ConflictResolvingModel: __expectString(output.ConflictResolvingModel),
5010
+ SourceName: __expectString(output.SourceName),
5011
+ };
5012
+ };
5013
+ var deserializeAws_restJson1Consolidation = function (output, context) {
5014
+ return {
5015
+ MatchingAttributesList: output.MatchingAttributesList !== undefined && output.MatchingAttributesList !== null
5016
+ ? deserializeAws_restJson1MatchingAttributesList(output.MatchingAttributesList, context)
5017
+ : undefined,
5018
+ };
5019
+ };
4470
5020
  var deserializeAws_restJson1DomainList = function (output, context) {
4471
5021
  return (output || [])
4472
5022
  .filter(function (e) { return e != null; })
@@ -4485,6 +5035,20 @@ var deserializeAws_restJson1DomainStats = function (output, context) {
4485
5035
  TotalSize: __expectLong(output.TotalSize),
4486
5036
  };
4487
5037
  };
5038
+ var deserializeAws_restJson1ExportingConfig = function (output, context) {
5039
+ return {
5040
+ S3Exporting: output.S3Exporting !== undefined && output.S3Exporting !== null
5041
+ ? deserializeAws_restJson1S3ExportingConfig(output.S3Exporting, context)
5042
+ : undefined,
5043
+ };
5044
+ };
5045
+ var deserializeAws_restJson1ExportingLocation = function (output, context) {
5046
+ return {
5047
+ S3Exporting: output.S3Exporting !== undefined && output.S3Exporting !== null
5048
+ ? deserializeAws_restJson1S3ExportingLocation(output.S3Exporting, context)
5049
+ : undefined,
5050
+ };
5051
+ };
4488
5052
  var deserializeAws_restJson1FieldMap = function (output, context) {
4489
5053
  return Object.entries(output).reduce(function (acc, _a) {
4490
5054
  var _b;
@@ -4505,6 +5069,36 @@ var deserializeAws_restJson1FieldNameList = function (output, context) {
4505
5069
  return __expectString(entry);
4506
5070
  });
4507
5071
  };
5072
+ var deserializeAws_restJson1IdentityResolutionJob = function (output, context) {
5073
+ return {
5074
+ DomainName: __expectString(output.DomainName),
5075
+ ExportingLocation: output.ExportingLocation !== undefined && output.ExportingLocation !== null
5076
+ ? deserializeAws_restJson1ExportingLocation(output.ExportingLocation, context)
5077
+ : undefined,
5078
+ JobEndTime: output.JobEndTime !== undefined && output.JobEndTime !== null
5079
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.JobEndTime)))
5080
+ : undefined,
5081
+ JobId: __expectString(output.JobId),
5082
+ JobStartTime: output.JobStartTime !== undefined && output.JobStartTime !== null
5083
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.JobStartTime)))
5084
+ : undefined,
5085
+ JobStats: output.JobStats !== undefined && output.JobStats !== null
5086
+ ? deserializeAws_restJson1JobStats(output.JobStats, context)
5087
+ : undefined,
5088
+ Message: __expectString(output.Message),
5089
+ Status: __expectString(output.Status),
5090
+ };
5091
+ };
5092
+ var deserializeAws_restJson1IdentityResolutionJobsList = function (output, context) {
5093
+ return (output || [])
5094
+ .filter(function (e) { return e != null; })
5095
+ .map(function (entry) {
5096
+ if (entry === null) {
5097
+ return null;
5098
+ }
5099
+ return deserializeAws_restJson1IdentityResolutionJob(entry, context);
5100
+ });
5101
+ };
4508
5102
  var deserializeAws_restJson1IntegrationList = function (output, context) {
4509
5103
  return (output || [])
4510
5104
  .filter(function (e) { return e != null; })
@@ -4515,6 +5109,19 @@ var deserializeAws_restJson1IntegrationList = function (output, context) {
4515
5109
  return deserializeAws_restJson1ListIntegrationItem(entry, context);
4516
5110
  });
4517
5111
  };
5112
+ var deserializeAws_restJson1JobSchedule = function (output, context) {
5113
+ return {
5114
+ DayOfTheWeek: __expectString(output.DayOfTheWeek),
5115
+ Time: __expectString(output.Time),
5116
+ };
5117
+ };
5118
+ var deserializeAws_restJson1JobStats = function (output, context) {
5119
+ return {
5120
+ NumberOfMatchesFound: __expectLong(output.NumberOfMatchesFound),
5121
+ NumberOfMergesDone: __expectLong(output.NumberOfMergesDone),
5122
+ NumberOfProfilesReviewed: __expectLong(output.NumberOfProfilesReviewed),
5123
+ };
5124
+ };
4518
5125
  var deserializeAws_restJson1KeyMap = function (output, context) {
4519
5126
  return Object.entries(output).reduce(function (acc, _a) {
4520
5127
  var _b;
@@ -4594,13 +5201,43 @@ var deserializeAws_restJson1MatchesList = function (output, context) {
4594
5201
  return deserializeAws_restJson1MatchItem(entry, context);
4595
5202
  });
4596
5203
  };
5204
+ var deserializeAws_restJson1MatchingAttributes = function (output, context) {
5205
+ return (output || [])
5206
+ .filter(function (e) { return e != null; })
5207
+ .map(function (entry) {
5208
+ if (entry === null) {
5209
+ return null;
5210
+ }
5211
+ return __expectString(entry);
5212
+ });
5213
+ };
5214
+ var deserializeAws_restJson1MatchingAttributesList = function (output, context) {
5215
+ return (output || [])
5216
+ .filter(function (e) { return e != null; })
5217
+ .map(function (entry) {
5218
+ if (entry === null) {
5219
+ return null;
5220
+ }
5221
+ return deserializeAws_restJson1MatchingAttributes(entry, context);
5222
+ });
5223
+ };
4597
5224
  var deserializeAws_restJson1MatchingResponse = function (output, context) {
4598
5225
  return {
5226
+ AutoMerging: output.AutoMerging !== undefined && output.AutoMerging !== null
5227
+ ? deserializeAws_restJson1AutoMerging(output.AutoMerging, context)
5228
+ : undefined,
4599
5229
  Enabled: __expectBoolean(output.Enabled),
5230
+ ExportingConfig: output.ExportingConfig !== undefined && output.ExportingConfig !== null
5231
+ ? deserializeAws_restJson1ExportingConfig(output.ExportingConfig, context)
5232
+ : undefined,
5233
+ JobSchedule: output.JobSchedule !== undefined && output.JobSchedule !== null
5234
+ ? deserializeAws_restJson1JobSchedule(output.JobSchedule, context)
5235
+ : undefined,
4600
5236
  };
4601
5237
  };
4602
5238
  var deserializeAws_restJson1MatchItem = function (output, context) {
4603
5239
  return {
5240
+ ConfidenceScore: __limitedParseDouble(output.ConfidenceScore),
4604
5241
  MatchId: __expectString(output.MatchId),
4605
5242
  ProfileIds: output.ProfileIds !== undefined && output.ProfileIds !== null
4606
5243
  ? deserializeAws_restJson1ProfileIdList(output.ProfileIds, context)
@@ -4730,6 +5367,18 @@ var deserializeAws_restJson1requestValueList = function (output, context) {
4730
5367
  return __expectString(entry);
4731
5368
  });
4732
5369
  };
5370
+ var deserializeAws_restJson1S3ExportingConfig = function (output, context) {
5371
+ return {
5372
+ S3BucketName: __expectString(output.S3BucketName),
5373
+ S3KeyName: __expectString(output.S3KeyName),
5374
+ };
5375
+ };
5376
+ var deserializeAws_restJson1S3ExportingLocation = function (output, context) {
5377
+ return {
5378
+ S3BucketName: __expectString(output.S3BucketName),
5379
+ S3KeyName: __expectString(output.S3KeyName),
5380
+ };
5381
+ };
4733
5382
  var deserializeAws_restJson1StandardIdentifierList = function (output, context) {
4734
5383
  return (output || [])
4735
5384
  .filter(function (e) { return e != null; })