@aws-sdk/client-customer-profiles 3.341.0 → 3.344.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 (52) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/CustomerProfiles.js +14 -0
  3. package/dist-cjs/commands/CreateCalculatedAttributeDefinitionCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteCalculatedAttributeDefinitionCommand.js +46 -0
  5. package/dist-cjs/commands/GetCalculatedAttributeDefinitionCommand.js +46 -0
  6. package/dist-cjs/commands/GetCalculatedAttributeForProfileCommand.js +46 -0
  7. package/dist-cjs/commands/ListCalculatedAttributeDefinitionsCommand.js +46 -0
  8. package/dist-cjs/commands/ListCalculatedAttributesForProfileCommand.js +46 -0
  9. package/dist-cjs/commands/UpdateCalculatedAttributeDefinitionCommand.js +46 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/endpoint/ruleset.js +3 -3
  12. package/dist-cjs/models/models_0.js +20 -1
  13. package/dist-cjs/protocols/Aws_restJson1.js +527 -2
  14. package/dist-es/CustomerProfiles.js +14 -0
  15. package/dist-es/commands/CreateCalculatedAttributeDefinitionCommand.js +42 -0
  16. package/dist-es/commands/DeleteCalculatedAttributeDefinitionCommand.js +42 -0
  17. package/dist-es/commands/GetCalculatedAttributeDefinitionCommand.js +42 -0
  18. package/dist-es/commands/GetCalculatedAttributeForProfileCommand.js +42 -0
  19. package/dist-es/commands/ListCalculatedAttributeDefinitionsCommand.js +42 -0
  20. package/dist-es/commands/ListCalculatedAttributesForProfileCommand.js +42 -0
  21. package/dist-es/commands/UpdateCalculatedAttributeDefinitionCommand.js +42 -0
  22. package/dist-es/commands/index.js +7 -0
  23. package/dist-es/endpoint/ruleset.js +3 -3
  24. package/dist-es/models/models_0.js +19 -0
  25. package/dist-es/protocols/Aws_restJson1.js +511 -0
  26. package/dist-types/CustomerProfiles.d.ts +49 -0
  27. package/dist-types/CustomerProfilesClient.d.ts +9 -2
  28. package/dist-types/commands/CreateCalculatedAttributeDefinitionCommand.d.ts +146 -0
  29. package/dist-types/commands/DeleteCalculatedAttributeDefinitionCommand.d.ts +89 -0
  30. package/dist-types/commands/GetCalculatedAttributeDefinitionCommand.d.ts +116 -0
  31. package/dist-types/commands/GetCalculatedAttributeForProfileCommand.d.ts +93 -0
  32. package/dist-types/commands/ListCalculatedAttributeDefinitionsCommand.d.ts +102 -0
  33. package/dist-types/commands/ListCalculatedAttributesForProfileCommand.d.ts +99 -0
  34. package/dist-types/commands/UpdateCalculatedAttributeDefinitionCommand.d.ts +131 -0
  35. package/dist-types/commands/index.d.ts +7 -0
  36. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  37. package/dist-types/models/models_0.d.ts +491 -8
  38. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  39. package/dist-types/ts3.4/CustomerProfiles.d.ts +149 -0
  40. package/dist-types/ts3.4/CustomerProfilesClient.d.ts +42 -0
  41. package/dist-types/ts3.4/commands/CreateCalculatedAttributeDefinitionCommand.d.ts +42 -0
  42. package/dist-types/ts3.4/commands/DeleteCalculatedAttributeDefinitionCommand.d.ts +42 -0
  43. package/dist-types/ts3.4/commands/GetCalculatedAttributeDefinitionCommand.d.ts +42 -0
  44. package/dist-types/ts3.4/commands/GetCalculatedAttributeForProfileCommand.d.ts +42 -0
  45. package/dist-types/ts3.4/commands/ListCalculatedAttributeDefinitionsCommand.d.ts +42 -0
  46. package/dist-types/ts3.4/commands/ListCalculatedAttributesForProfileCommand.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/UpdateCalculatedAttributeDefinitionCommand.d.ts +42 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  49. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  50. package/dist-types/ts3.4/models/models_0.d.ts +145 -0
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  52. package/package.json +28 -28
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetAutoMergingPreviewCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteProfileObjectTypeCommand = exports.de_DeleteProfileObjectCommand = exports.de_DeleteProfileKeyCommand = exports.de_DeleteProfileCommand = exports.de_DeleteIntegrationCommand = exports.de_DeleteDomainCommand = exports.de_CreateProfileCommand = exports.de_CreateIntegrationWorkflowCommand = exports.de_CreateDomainCommand = exports.de_AddProfileKeyCommand = exports.se_UpdateProfileCommand = exports.se_UpdateDomainCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchProfilesCommand = exports.se_PutProfileObjectTypeCommand = exports.se_PutProfileObjectCommand = exports.se_PutIntegrationCommand = exports.se_MergeProfilesCommand = exports.se_ListWorkflowsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProfileObjectTypeTemplatesCommand = exports.se_ListProfileObjectTypesCommand = exports.se_ListProfileObjectsCommand = exports.se_ListIntegrationsCommand = exports.se_ListIdentityResolutionJobsCommand = exports.se_ListDomainsCommand = exports.se_ListAccountIntegrationsCommand = exports.se_GetWorkflowStepsCommand = exports.se_GetWorkflowCommand = exports.se_GetProfileObjectTypeTemplateCommand = exports.se_GetProfileObjectTypeCommand = exports.se_GetMatchesCommand = exports.se_GetIntegrationCommand = exports.se_GetIdentityResolutionJobCommand = exports.se_GetDomainCommand = exports.se_GetAutoMergingPreviewCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteProfileObjectTypeCommand = exports.se_DeleteProfileObjectCommand = exports.se_DeleteProfileKeyCommand = exports.se_DeleteProfileCommand = exports.se_DeleteIntegrationCommand = exports.se_DeleteDomainCommand = exports.se_CreateProfileCommand = exports.se_CreateIntegrationWorkflowCommand = exports.se_CreateDomainCommand = exports.se_AddProfileKeyCommand = void 0;
4
- exports.de_UpdateProfileCommand = exports.de_UpdateDomainCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchProfilesCommand = exports.de_PutProfileObjectTypeCommand = exports.de_PutProfileObjectCommand = exports.de_PutIntegrationCommand = exports.de_MergeProfilesCommand = exports.de_ListWorkflowsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProfileObjectTypeTemplatesCommand = exports.de_ListProfileObjectTypesCommand = exports.de_ListProfileObjectsCommand = exports.de_ListIntegrationsCommand = exports.de_ListIdentityResolutionJobsCommand = exports.de_ListDomainsCommand = exports.de_ListAccountIntegrationsCommand = exports.de_GetWorkflowStepsCommand = exports.de_GetWorkflowCommand = exports.de_GetProfileObjectTypeTemplateCommand = exports.de_GetProfileObjectTypeCommand = exports.de_GetMatchesCommand = exports.de_GetIntegrationCommand = exports.de_GetIdentityResolutionJobCommand = exports.de_GetDomainCommand = void 0;
3
+ exports.de_CreateProfileCommand = exports.de_CreateIntegrationWorkflowCommand = exports.de_CreateDomainCommand = exports.de_CreateCalculatedAttributeDefinitionCommand = exports.de_AddProfileKeyCommand = exports.se_UpdateProfileCommand = exports.se_UpdateDomainCommand = exports.se_UpdateCalculatedAttributeDefinitionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchProfilesCommand = exports.se_PutProfileObjectTypeCommand = exports.se_PutProfileObjectCommand = exports.se_PutIntegrationCommand = exports.se_MergeProfilesCommand = exports.se_ListWorkflowsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProfileObjectTypeTemplatesCommand = exports.se_ListProfileObjectTypesCommand = exports.se_ListProfileObjectsCommand = exports.se_ListIntegrationsCommand = exports.se_ListIdentityResolutionJobsCommand = exports.se_ListDomainsCommand = exports.se_ListCalculatedAttributesForProfileCommand = exports.se_ListCalculatedAttributeDefinitionsCommand = exports.se_ListAccountIntegrationsCommand = exports.se_GetWorkflowStepsCommand = exports.se_GetWorkflowCommand = exports.se_GetProfileObjectTypeTemplateCommand = exports.se_GetProfileObjectTypeCommand = exports.se_GetMatchesCommand = exports.se_GetIntegrationCommand = exports.se_GetIdentityResolutionJobCommand = exports.se_GetDomainCommand = exports.se_GetCalculatedAttributeForProfileCommand = exports.se_GetCalculatedAttributeDefinitionCommand = exports.se_GetAutoMergingPreviewCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteProfileObjectTypeCommand = exports.se_DeleteProfileObjectCommand = exports.se_DeleteProfileKeyCommand = exports.se_DeleteProfileCommand = exports.se_DeleteIntegrationCommand = exports.se_DeleteDomainCommand = exports.se_DeleteCalculatedAttributeDefinitionCommand = exports.se_CreateProfileCommand = exports.se_CreateIntegrationWorkflowCommand = exports.se_CreateDomainCommand = exports.se_CreateCalculatedAttributeDefinitionCommand = exports.se_AddProfileKeyCommand = void 0;
4
+ exports.de_UpdateProfileCommand = exports.de_UpdateDomainCommand = exports.de_UpdateCalculatedAttributeDefinitionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchProfilesCommand = exports.de_PutProfileObjectTypeCommand = exports.de_PutProfileObjectCommand = exports.de_PutIntegrationCommand = exports.de_MergeProfilesCommand = exports.de_ListWorkflowsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProfileObjectTypeTemplatesCommand = exports.de_ListProfileObjectTypesCommand = exports.de_ListProfileObjectsCommand = exports.de_ListIntegrationsCommand = exports.de_ListIdentityResolutionJobsCommand = exports.de_ListDomainsCommand = exports.de_ListCalculatedAttributesForProfileCommand = exports.de_ListCalculatedAttributeDefinitionsCommand = exports.de_ListAccountIntegrationsCommand = exports.de_GetWorkflowStepsCommand = exports.de_GetWorkflowCommand = exports.de_GetProfileObjectTypeTemplateCommand = exports.de_GetProfileObjectTypeCommand = exports.de_GetMatchesCommand = exports.de_GetIntegrationCommand = exports.de_GetIdentityResolutionJobCommand = exports.de_GetDomainCommand = exports.de_GetCalculatedAttributeForProfileCommand = exports.de_GetCalculatedAttributeDefinitionCommand = exports.de_GetAutoMergingPreviewCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteProfileObjectTypeCommand = exports.de_DeleteProfileObjectCommand = exports.de_DeleteProfileKeyCommand = exports.de_DeleteProfileCommand = exports.de_DeleteIntegrationCommand = exports.de_DeleteDomainCommand = exports.de_DeleteCalculatedAttributeDefinitionCommand = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const CustomerProfilesServiceException_1 = require("../models/CustomerProfilesServiceException");
@@ -30,6 +30,35 @@ const se_AddProfileKeyCommand = async (input, context) => {
30
30
  });
31
31
  };
32
32
  exports.se_AddProfileKeyCommand = se_AddProfileKeyCommand;
33
+ const se_CreateCalculatedAttributeDefinitionCommand = async (input, context) => {
34
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const headers = {
36
+ "content-type": "application/json",
37
+ };
38
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
39
+ "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
40
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
41
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
42
+ let body;
43
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
44
+ AttributeDetails: (_) => (0, smithy_client_1._json)(_),
45
+ Conditions: (_) => (0, smithy_client_1._json)(_),
46
+ Description: [],
47
+ DisplayName: [],
48
+ Statistic: [],
49
+ Tags: (_) => (0, smithy_client_1._json)(_),
50
+ }));
51
+ return new protocol_http_1.HttpRequest({
52
+ protocol,
53
+ hostname,
54
+ port,
55
+ method: "POST",
56
+ headers,
57
+ path: resolvedPath,
58
+ body,
59
+ });
60
+ };
61
+ exports.se_CreateCalculatedAttributeDefinitionCommand = se_CreateCalculatedAttributeDefinitionCommand;
33
62
  const se_CreateDomainCommand = async (input, context) => {
34
63
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
64
  const headers = {
@@ -127,6 +156,25 @@ const se_CreateProfileCommand = async (input, context) => {
127
156
  });
128
157
  };
129
158
  exports.se_CreateProfileCommand = se_CreateProfileCommand;
159
+ const se_DeleteCalculatedAttributeDefinitionCommand = async (input, context) => {
160
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
161
+ const headers = {};
162
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
163
+ "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
164
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
165
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
166
+ let body;
167
+ return new protocol_http_1.HttpRequest({
168
+ protocol,
169
+ hostname,
170
+ port,
171
+ method: "DELETE",
172
+ headers,
173
+ path: resolvedPath,
174
+ body,
175
+ });
176
+ };
177
+ exports.se_DeleteCalculatedAttributeDefinitionCommand = se_DeleteCalculatedAttributeDefinitionCommand;
130
178
  const se_DeleteDomainCommand = async (input, context) => {
131
179
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
180
  const headers = {};
@@ -301,6 +349,45 @@ const se_GetAutoMergingPreviewCommand = async (input, context) => {
301
349
  });
302
350
  };
303
351
  exports.se_GetAutoMergingPreviewCommand = se_GetAutoMergingPreviewCommand;
352
+ const se_GetCalculatedAttributeDefinitionCommand = async (input, context) => {
353
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
354
+ const headers = {};
355
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
356
+ "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
357
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
358
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
359
+ let body;
360
+ return new protocol_http_1.HttpRequest({
361
+ protocol,
362
+ hostname,
363
+ port,
364
+ method: "GET",
365
+ headers,
366
+ path: resolvedPath,
367
+ body,
368
+ });
369
+ };
370
+ exports.se_GetCalculatedAttributeDefinitionCommand = se_GetCalculatedAttributeDefinitionCommand;
371
+ const se_GetCalculatedAttributeForProfileCommand = async (input, context) => {
372
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
373
+ const headers = {};
374
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
375
+ "/domains/{DomainName}/profile/{ProfileId}/calculated-attributes/{CalculatedAttributeName}";
376
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
377
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileId", () => input.ProfileId, "{ProfileId}", false);
378
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
379
+ let body;
380
+ return new protocol_http_1.HttpRequest({
381
+ protocol,
382
+ hostname,
383
+ port,
384
+ method: "GET",
385
+ headers,
386
+ path: resolvedPath,
387
+ body,
388
+ });
389
+ };
390
+ exports.se_GetCalculatedAttributeForProfileCommand = se_GetCalculatedAttributeForProfileCommand;
304
391
  const se_GetDomainCommand = async (input, context) => {
305
392
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
393
  const headers = {};
@@ -487,6 +574,53 @@ const se_ListAccountIntegrationsCommand = async (input, context) => {
487
574
  });
488
575
  };
489
576
  exports.se_ListAccountIntegrationsCommand = se_ListAccountIntegrationsCommand;
577
+ const se_ListCalculatedAttributeDefinitionsCommand = async (input, context) => {
578
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
579
+ const headers = {};
580
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
581
+ "/domains/{DomainName}/calculated-attributes";
582
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
583
+ const query = (0, smithy_client_1.map)({
584
+ "next-token": [, input.NextToken],
585
+ "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
586
+ });
587
+ let body;
588
+ return new protocol_http_1.HttpRequest({
589
+ protocol,
590
+ hostname,
591
+ port,
592
+ method: "GET",
593
+ headers,
594
+ path: resolvedPath,
595
+ query,
596
+ body,
597
+ });
598
+ };
599
+ exports.se_ListCalculatedAttributeDefinitionsCommand = se_ListCalculatedAttributeDefinitionsCommand;
600
+ const se_ListCalculatedAttributesForProfileCommand = async (input, context) => {
601
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
602
+ const headers = {};
603
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
604
+ "/domains/{DomainName}/profile/{ProfileId}/calculated-attributes";
605
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
606
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProfileId", () => input.ProfileId, "{ProfileId}", false);
607
+ const query = (0, smithy_client_1.map)({
608
+ "next-token": [, input.NextToken],
609
+ "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
610
+ });
611
+ let body;
612
+ return new protocol_http_1.HttpRequest({
613
+ protocol,
614
+ hostname,
615
+ port,
616
+ method: "GET",
617
+ headers,
618
+ path: resolvedPath,
619
+ query,
620
+ body,
621
+ });
622
+ };
623
+ exports.se_ListCalculatedAttributesForProfileCommand = se_ListCalculatedAttributesForProfileCommand;
490
624
  const se_ListDomainsCommand = async (input, context) => {
491
625
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
492
626
  const headers = {};
@@ -855,6 +989,32 @@ const se_UntagResourceCommand = async (input, context) => {
855
989
  });
856
990
  };
857
991
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
992
+ const se_UpdateCalculatedAttributeDefinitionCommand = async (input, context) => {
993
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
994
+ const headers = {
995
+ "content-type": "application/json",
996
+ };
997
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
998
+ "/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
999
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
1000
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
1001
+ let body;
1002
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1003
+ Conditions: (_) => (0, smithy_client_1._json)(_),
1004
+ Description: [],
1005
+ DisplayName: [],
1006
+ }));
1007
+ return new protocol_http_1.HttpRequest({
1008
+ protocol,
1009
+ hostname,
1010
+ port,
1011
+ method: "PUT",
1012
+ headers,
1013
+ path: resolvedPath,
1014
+ body,
1015
+ });
1016
+ };
1017
+ exports.se_UpdateCalculatedAttributeDefinitionCommand = se_UpdateCalculatedAttributeDefinitionCommand;
858
1018
  const se_UpdateDomainCommand = async (input, context) => {
859
1019
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
860
1020
  const headers = {
@@ -973,6 +1133,60 @@ const de_AddProfileKeyCommandError = async (output, context) => {
973
1133
  });
974
1134
  }
975
1135
  };
1136
+ const de_CreateCalculatedAttributeDefinitionCommand = async (output, context) => {
1137
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1138
+ return de_CreateCalculatedAttributeDefinitionCommandError(output, context);
1139
+ }
1140
+ const contents = (0, smithy_client_1.map)({
1141
+ $metadata: deserializeMetadata(output),
1142
+ });
1143
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1144
+ const doc = (0, smithy_client_1.take)(data, {
1145
+ AttributeDetails: smithy_client_1._json,
1146
+ CalculatedAttributeName: smithy_client_1.expectString,
1147
+ Conditions: smithy_client_1._json,
1148
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1149
+ Description: smithy_client_1.expectString,
1150
+ DisplayName: smithy_client_1.expectString,
1151
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1152
+ Statistic: smithy_client_1.expectString,
1153
+ Tags: smithy_client_1._json,
1154
+ });
1155
+ Object.assign(contents, doc);
1156
+ return contents;
1157
+ };
1158
+ exports.de_CreateCalculatedAttributeDefinitionCommand = de_CreateCalculatedAttributeDefinitionCommand;
1159
+ const de_CreateCalculatedAttributeDefinitionCommandError = async (output, context) => {
1160
+ const parsedOutput = {
1161
+ ...output,
1162
+ body: await parseErrorBody(output.body, context),
1163
+ };
1164
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1165
+ switch (errorCode) {
1166
+ case "AccessDeniedException":
1167
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
1168
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1169
+ case "BadRequestException":
1170
+ case "com.amazonaws.customerprofiles#BadRequestException":
1171
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1172
+ case "InternalServerException":
1173
+ case "com.amazonaws.customerprofiles#InternalServerException":
1174
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1175
+ case "ResourceNotFoundException":
1176
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1177
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1178
+ case "ThrottlingException":
1179
+ case "com.amazonaws.customerprofiles#ThrottlingException":
1180
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1181
+ default:
1182
+ const parsedBody = parsedOutput.body;
1183
+ return throwDefaultError({
1184
+ output,
1185
+ parsedBody,
1186
+ errorCode,
1187
+ });
1188
+ }
1189
+ };
976
1190
  const de_CreateDomainCommand = async (output, context) => {
977
1191
  if (output.statusCode !== 200 && output.statusCode >= 300) {
978
1192
  return de_CreateDomainCommandError(output, context);
@@ -1119,6 +1333,48 @@ const de_CreateProfileCommandError = async (output, context) => {
1119
1333
  });
1120
1334
  }
1121
1335
  };
1336
+ const de_DeleteCalculatedAttributeDefinitionCommand = async (output, context) => {
1337
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1338
+ return de_DeleteCalculatedAttributeDefinitionCommandError(output, context);
1339
+ }
1340
+ const contents = (0, smithy_client_1.map)({
1341
+ $metadata: deserializeMetadata(output),
1342
+ });
1343
+ await collectBody(output.body, context);
1344
+ return contents;
1345
+ };
1346
+ exports.de_DeleteCalculatedAttributeDefinitionCommand = de_DeleteCalculatedAttributeDefinitionCommand;
1347
+ const de_DeleteCalculatedAttributeDefinitionCommandError = async (output, context) => {
1348
+ const parsedOutput = {
1349
+ ...output,
1350
+ body: await parseErrorBody(output.body, context),
1351
+ };
1352
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1353
+ switch (errorCode) {
1354
+ case "AccessDeniedException":
1355
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
1356
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1357
+ case "BadRequestException":
1358
+ case "com.amazonaws.customerprofiles#BadRequestException":
1359
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1360
+ case "InternalServerException":
1361
+ case "com.amazonaws.customerprofiles#InternalServerException":
1362
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1363
+ case "ResourceNotFoundException":
1364
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1365
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1366
+ case "ThrottlingException":
1367
+ case "com.amazonaws.customerprofiles#ThrottlingException":
1368
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1369
+ default:
1370
+ const parsedBody = parsedOutput.body;
1371
+ return throwDefaultError({
1372
+ output,
1373
+ parsedBody,
1374
+ errorCode,
1375
+ });
1376
+ }
1377
+ };
1122
1378
  const de_DeleteDomainCommand = async (output, context) => {
1123
1379
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
1380
  return de_DeleteDomainCommandError(output, context);
@@ -1486,6 +1742,109 @@ const de_GetAutoMergingPreviewCommandError = async (output, context) => {
1486
1742
  });
1487
1743
  }
1488
1744
  };
1745
+ const de_GetCalculatedAttributeDefinitionCommand = async (output, context) => {
1746
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1747
+ return de_GetCalculatedAttributeDefinitionCommandError(output, context);
1748
+ }
1749
+ const contents = (0, smithy_client_1.map)({
1750
+ $metadata: deserializeMetadata(output),
1751
+ });
1752
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1753
+ const doc = (0, smithy_client_1.take)(data, {
1754
+ AttributeDetails: smithy_client_1._json,
1755
+ CalculatedAttributeName: smithy_client_1.expectString,
1756
+ Conditions: smithy_client_1._json,
1757
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1758
+ Description: smithy_client_1.expectString,
1759
+ DisplayName: smithy_client_1.expectString,
1760
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1761
+ Statistic: smithy_client_1.expectString,
1762
+ Tags: smithy_client_1._json,
1763
+ });
1764
+ Object.assign(contents, doc);
1765
+ return contents;
1766
+ };
1767
+ exports.de_GetCalculatedAttributeDefinitionCommand = de_GetCalculatedAttributeDefinitionCommand;
1768
+ const de_GetCalculatedAttributeDefinitionCommandError = async (output, context) => {
1769
+ const parsedOutput = {
1770
+ ...output,
1771
+ body: await parseErrorBody(output.body, context),
1772
+ };
1773
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1774
+ switch (errorCode) {
1775
+ case "AccessDeniedException":
1776
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
1777
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1778
+ case "BadRequestException":
1779
+ case "com.amazonaws.customerprofiles#BadRequestException":
1780
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1781
+ case "InternalServerException":
1782
+ case "com.amazonaws.customerprofiles#InternalServerException":
1783
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1784
+ case "ResourceNotFoundException":
1785
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1786
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1787
+ case "ThrottlingException":
1788
+ case "com.amazonaws.customerprofiles#ThrottlingException":
1789
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1790
+ default:
1791
+ const parsedBody = parsedOutput.body;
1792
+ return throwDefaultError({
1793
+ output,
1794
+ parsedBody,
1795
+ errorCode,
1796
+ });
1797
+ }
1798
+ };
1799
+ const de_GetCalculatedAttributeForProfileCommand = async (output, context) => {
1800
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1801
+ return de_GetCalculatedAttributeForProfileCommandError(output, context);
1802
+ }
1803
+ const contents = (0, smithy_client_1.map)({
1804
+ $metadata: deserializeMetadata(output),
1805
+ });
1806
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1807
+ const doc = (0, smithy_client_1.take)(data, {
1808
+ CalculatedAttributeName: smithy_client_1.expectString,
1809
+ DisplayName: smithy_client_1.expectString,
1810
+ IsDataPartial: smithy_client_1.expectString,
1811
+ Value: smithy_client_1.expectString,
1812
+ });
1813
+ Object.assign(contents, doc);
1814
+ return contents;
1815
+ };
1816
+ exports.de_GetCalculatedAttributeForProfileCommand = de_GetCalculatedAttributeForProfileCommand;
1817
+ const de_GetCalculatedAttributeForProfileCommandError = async (output, context) => {
1818
+ const parsedOutput = {
1819
+ ...output,
1820
+ body: await parseErrorBody(output.body, context),
1821
+ };
1822
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1823
+ switch (errorCode) {
1824
+ case "AccessDeniedException":
1825
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
1826
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1827
+ case "BadRequestException":
1828
+ case "com.amazonaws.customerprofiles#BadRequestException":
1829
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1830
+ case "InternalServerException":
1831
+ case "com.amazonaws.customerprofiles#InternalServerException":
1832
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1833
+ case "ResourceNotFoundException":
1834
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1835
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1836
+ case "ThrottlingException":
1837
+ case "com.amazonaws.customerprofiles#ThrottlingException":
1838
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1839
+ default:
1840
+ const parsedBody = parsedOutput.body;
1841
+ return throwDefaultError({
1842
+ output,
1843
+ parsedBody,
1844
+ errorCode,
1845
+ });
1846
+ }
1847
+ };
1489
1848
  const de_GetDomainCommand = async (output, context) => {
1490
1849
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1491
1850
  return de_GetDomainCommandError(output, context);
@@ -1957,6 +2316,100 @@ const de_ListAccountIntegrationsCommandError = async (output, context) => {
1957
2316
  });
1958
2317
  }
1959
2318
  };
2319
+ const de_ListCalculatedAttributeDefinitionsCommand = async (output, context) => {
2320
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2321
+ return de_ListCalculatedAttributeDefinitionsCommandError(output, context);
2322
+ }
2323
+ const contents = (0, smithy_client_1.map)({
2324
+ $metadata: deserializeMetadata(output),
2325
+ });
2326
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2327
+ const doc = (0, smithy_client_1.take)(data, {
2328
+ Items: (_) => de_CalculatedAttributeDefinitionsList(_, context),
2329
+ NextToken: smithy_client_1.expectString,
2330
+ });
2331
+ Object.assign(contents, doc);
2332
+ return contents;
2333
+ };
2334
+ exports.de_ListCalculatedAttributeDefinitionsCommand = de_ListCalculatedAttributeDefinitionsCommand;
2335
+ const de_ListCalculatedAttributeDefinitionsCommandError = async (output, context) => {
2336
+ const parsedOutput = {
2337
+ ...output,
2338
+ body: await parseErrorBody(output.body, context),
2339
+ };
2340
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2341
+ switch (errorCode) {
2342
+ case "AccessDeniedException":
2343
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
2344
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2345
+ case "BadRequestException":
2346
+ case "com.amazonaws.customerprofiles#BadRequestException":
2347
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2348
+ case "InternalServerException":
2349
+ case "com.amazonaws.customerprofiles#InternalServerException":
2350
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2351
+ case "ResourceNotFoundException":
2352
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2353
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2354
+ case "ThrottlingException":
2355
+ case "com.amazonaws.customerprofiles#ThrottlingException":
2356
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2357
+ default:
2358
+ const parsedBody = parsedOutput.body;
2359
+ return throwDefaultError({
2360
+ output,
2361
+ parsedBody,
2362
+ errorCode,
2363
+ });
2364
+ }
2365
+ };
2366
+ const de_ListCalculatedAttributesForProfileCommand = async (output, context) => {
2367
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2368
+ return de_ListCalculatedAttributesForProfileCommandError(output, context);
2369
+ }
2370
+ const contents = (0, smithy_client_1.map)({
2371
+ $metadata: deserializeMetadata(output),
2372
+ });
2373
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2374
+ const doc = (0, smithy_client_1.take)(data, {
2375
+ Items: smithy_client_1._json,
2376
+ NextToken: smithy_client_1.expectString,
2377
+ });
2378
+ Object.assign(contents, doc);
2379
+ return contents;
2380
+ };
2381
+ exports.de_ListCalculatedAttributesForProfileCommand = de_ListCalculatedAttributesForProfileCommand;
2382
+ const de_ListCalculatedAttributesForProfileCommandError = async (output, context) => {
2383
+ const parsedOutput = {
2384
+ ...output,
2385
+ body: await parseErrorBody(output.body, context),
2386
+ };
2387
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2388
+ switch (errorCode) {
2389
+ case "AccessDeniedException":
2390
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
2391
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2392
+ case "BadRequestException":
2393
+ case "com.amazonaws.customerprofiles#BadRequestException":
2394
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2395
+ case "InternalServerException":
2396
+ case "com.amazonaws.customerprofiles#InternalServerException":
2397
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2398
+ case "ResourceNotFoundException":
2399
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2400
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2401
+ case "ThrottlingException":
2402
+ case "com.amazonaws.customerprofiles#ThrottlingException":
2403
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2404
+ default:
2405
+ const parsedBody = parsedOutput.body;
2406
+ return throwDefaultError({
2407
+ output,
2408
+ parsedBody,
2409
+ errorCode,
2410
+ });
2411
+ }
2412
+ };
1960
2413
  const de_ListDomainsCommand = async (output, context) => {
1961
2414
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1962
2415
  return de_ListDomainsCommandError(output, context);
@@ -2645,6 +3098,60 @@ const de_UntagResourceCommandError = async (output, context) => {
2645
3098
  });
2646
3099
  }
2647
3100
  };
3101
+ const de_UpdateCalculatedAttributeDefinitionCommand = async (output, context) => {
3102
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3103
+ return de_UpdateCalculatedAttributeDefinitionCommandError(output, context);
3104
+ }
3105
+ const contents = (0, smithy_client_1.map)({
3106
+ $metadata: deserializeMetadata(output),
3107
+ });
3108
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3109
+ const doc = (0, smithy_client_1.take)(data, {
3110
+ AttributeDetails: smithy_client_1._json,
3111
+ CalculatedAttributeName: smithy_client_1.expectString,
3112
+ Conditions: smithy_client_1._json,
3113
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3114
+ Description: smithy_client_1.expectString,
3115
+ DisplayName: smithy_client_1.expectString,
3116
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3117
+ Statistic: smithy_client_1.expectString,
3118
+ Tags: smithy_client_1._json,
3119
+ });
3120
+ Object.assign(contents, doc);
3121
+ return contents;
3122
+ };
3123
+ exports.de_UpdateCalculatedAttributeDefinitionCommand = de_UpdateCalculatedAttributeDefinitionCommand;
3124
+ const de_UpdateCalculatedAttributeDefinitionCommandError = async (output, context) => {
3125
+ const parsedOutput = {
3126
+ ...output,
3127
+ body: await parseErrorBody(output.body, context),
3128
+ };
3129
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3130
+ switch (errorCode) {
3131
+ case "AccessDeniedException":
3132
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
3133
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3134
+ case "BadRequestException":
3135
+ case "com.amazonaws.customerprofiles#BadRequestException":
3136
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3137
+ case "InternalServerException":
3138
+ case "com.amazonaws.customerprofiles#InternalServerException":
3139
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3140
+ case "ResourceNotFoundException":
3141
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3142
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3143
+ case "ThrottlingException":
3144
+ case "com.amazonaws.customerprofiles#ThrottlingException":
3145
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3146
+ default:
3147
+ const parsedBody = parsedOutput.body;
3148
+ return throwDefaultError({
3149
+ output,
3150
+ parsedBody,
3151
+ errorCode,
3152
+ });
3153
+ }
3154
+ };
2648
3155
  const de_UpdateDomainCommand = async (output, context) => {
2649
3156
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2650
3157
  return de_UpdateDomainCommandError(output, context);
@@ -2902,6 +3409,14 @@ const de_AutoMerging = (output, context) => {
2902
3409
  MinAllowedConfidenceScoreForMerging: smithy_client_1.limitedParseDouble,
2903
3410
  });
2904
3411
  };
3412
+ const de_CalculatedAttributeDefinitionsList = (output, context) => {
3413
+ const retVal = (output || [])
3414
+ .filter((e) => e != null)
3415
+ .map((entry) => {
3416
+ return de_ListCalculatedAttributeDefinitionItem(entry, context);
3417
+ });
3418
+ return retVal;
3419
+ };
2905
3420
  const de_DomainList = (output, context) => {
2906
3421
  const retVal = (output || [])
2907
3422
  .filter((e) => e != null)
@@ -2938,6 +3453,16 @@ const de_IntegrationList = (output, context) => {
2938
3453
  });
2939
3454
  return retVal;
2940
3455
  };
3456
+ const de_ListCalculatedAttributeDefinitionItem = (output, context) => {
3457
+ return (0, smithy_client_1.take)(output, {
3458
+ CalculatedAttributeName: smithy_client_1.expectString,
3459
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3460
+ Description: smithy_client_1.expectString,
3461
+ DisplayName: smithy_client_1.expectString,
3462
+ LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3463
+ Tags: smithy_client_1._json,
3464
+ });
3465
+ };
2941
3466
  const de_ListDomainItem = (output, context) => {
2942
3467
  return (0, smithy_client_1.take)(output, {
2943
3468
  CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),