@aws-sdk/client-customer-profiles 3.693.0 → 3.696.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 (77) hide show
  1. package/README.md +104 -0
  2. package/dist-cjs/index.js +1265 -46
  3. package/dist-es/CustomerProfiles.js +26 -0
  4. package/dist-es/commands/BatchGetCalculatedAttributeForProfileCommand.js +23 -0
  5. package/dist-es/commands/BatchGetProfileCommand.js +23 -0
  6. package/dist-es/commands/CreateSegmentDefinitionCommand.js +23 -0
  7. package/dist-es/commands/CreateSegmentEstimateCommand.js +23 -0
  8. package/dist-es/commands/CreateSegmentSnapshotCommand.js +22 -0
  9. package/dist-es/commands/DeleteSegmentDefinitionCommand.js +22 -0
  10. package/dist-es/commands/GetSegmentDefinitionCommand.js +23 -0
  11. package/dist-es/commands/GetSegmentEstimateCommand.js +22 -0
  12. package/dist-es/commands/GetSegmentMembershipCommand.js +23 -0
  13. package/dist-es/commands/GetSegmentSnapshotCommand.js +22 -0
  14. package/dist-es/commands/ListObjectTypeAttributesCommand.js +22 -0
  15. package/dist-es/commands/ListProfileAttributeValuesCommand.js +22 -0
  16. package/dist-es/commands/ListSegmentDefinitionsCommand.js +23 -0
  17. package/dist-es/commands/index.js +13 -0
  18. package/dist-es/models/models_0.js +208 -34
  19. package/dist-es/pagination/GetSimilarProfilesPaginator.js +4 -0
  20. package/dist-es/pagination/ListObjectTypeAttributesPaginator.js +4 -0
  21. package/dist-es/pagination/ListRuleBasedMatchesPaginator.js +4 -0
  22. package/dist-es/pagination/ListSegmentDefinitionsPaginator.js +4 -0
  23. package/dist-es/pagination/index.js +4 -0
  24. package/dist-es/protocols/Aws_restJson1.js +739 -2
  25. package/dist-types/CustomerProfiles.d.ts +91 -0
  26. package/dist-types/CustomerProfilesClient.d.ts +15 -2
  27. package/dist-types/commands/BatchGetCalculatedAttributeForProfileCommand.d.ts +119 -0
  28. package/dist-types/commands/BatchGetProfileCommand.d.ts +177 -0
  29. package/dist-types/commands/CreateCalculatedAttributeDefinitionCommand.d.ts +40 -0
  30. package/dist-types/commands/CreateSegmentDefinitionCommand.d.ts +221 -0
  31. package/dist-types/commands/CreateSegmentEstimateCommand.d.ts +210 -0
  32. package/dist-types/commands/CreateSegmentSnapshotCommand.d.ts +91 -0
  33. package/dist-types/commands/DeleteSegmentDefinitionCommand.d.ts +87 -0
  34. package/dist-types/commands/DetectProfileObjectTypeCommand.d.ts +1 -1
  35. package/dist-types/commands/GetCalculatedAttributeDefinitionCommand.d.ts +20 -0
  36. package/dist-types/commands/GetProfileObjectTypeCommand.d.ts +1 -1
  37. package/dist-types/commands/GetProfileObjectTypeTemplateCommand.d.ts +1 -1
  38. package/dist-types/commands/GetSegmentDefinitionCommand.d.ts +216 -0
  39. package/dist-types/commands/GetSegmentEstimateCommand.d.ts +92 -0
  40. package/dist-types/commands/GetSegmentMembershipCommand.d.ts +183 -0
  41. package/dist-types/commands/GetSegmentSnapshotCommand.d.ts +94 -0
  42. package/dist-types/commands/ListObjectTypeAttributesCommand.d.ts +95 -0
  43. package/dist-types/commands/ListProfileAttributeValuesCommand.d.ts +94 -0
  44. package/dist-types/commands/ListSegmentDefinitionsCommand.d.ts +100 -0
  45. package/dist-types/commands/PutProfileObjectTypeCommand.d.ts +2 -2
  46. package/dist-types/commands/index.d.ts +13 -0
  47. package/dist-types/models/models_0.d.ts +2277 -826
  48. package/dist-types/pagination/GetSimilarProfilesPaginator.d.ts +7 -0
  49. package/dist-types/pagination/ListObjectTypeAttributesPaginator.d.ts +7 -0
  50. package/dist-types/pagination/ListRuleBasedMatchesPaginator.d.ts +7 -0
  51. package/dist-types/pagination/ListSegmentDefinitionsPaginator.d.ts +7 -0
  52. package/dist-types/pagination/index.d.ts +4 -0
  53. package/dist-types/protocols/Aws_restJson1.d.ts +117 -0
  54. package/dist-types/ts3.4/CustomerProfiles.d.ts +227 -0
  55. package/dist-types/ts3.4/CustomerProfilesClient.d.ts +78 -0
  56. package/dist-types/ts3.4/commands/BatchGetCalculatedAttributeForProfileCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/BatchGetProfileCommand.d.ts +50 -0
  58. package/dist-types/ts3.4/commands/CreateSegmentDefinitionCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/CreateSegmentEstimateCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/CreateSegmentSnapshotCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/DeleteSegmentDefinitionCommand.d.ts +51 -0
  62. package/dist-types/ts3.4/commands/GetSegmentDefinitionCommand.d.ts +51 -0
  63. package/dist-types/ts3.4/commands/GetSegmentEstimateCommand.d.ts +51 -0
  64. package/dist-types/ts3.4/commands/GetSegmentMembershipCommand.d.ts +51 -0
  65. package/dist-types/ts3.4/commands/GetSegmentSnapshotCommand.d.ts +51 -0
  66. package/dist-types/ts3.4/commands/ListObjectTypeAttributesCommand.d.ts +51 -0
  67. package/dist-types/ts3.4/commands/ListProfileAttributeValuesCommand.d.ts +51 -0
  68. package/dist-types/ts3.4/commands/ListSegmentDefinitionsCommand.d.ts +51 -0
  69. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +503 -44
  71. package/dist-types/ts3.4/pagination/GetSimilarProfilesPaginator.d.ts +11 -0
  72. package/dist-types/ts3.4/pagination/ListObjectTypeAttributesPaginator.d.ts +11 -0
  73. package/dist-types/ts3.4/pagination/ListRuleBasedMatchesPaginator.d.ts +11 -0
  74. package/dist-types/ts3.4/pagination/ListSegmentDefinitionsPaginator.d.ts +11 -0
  75. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  76. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +156 -0
  77. package/package.json +35 -35
@@ -1,8 +1,8 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
1
+ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { CustomerProfilesServiceException as __BaseException } from "../models/CustomerProfilesServiceException";
5
- import { AccessDeniedException, BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
5
+ import { AccessDeniedException, BadRequestException, Dimension, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
6
6
  export const se_AddProfileKeyCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {
@@ -19,6 +19,36 @@ export const se_AddProfileKeyCommand = async (input, context) => {
19
19
  b.m("POST").h(headers).b(body);
20
20
  return b.build();
21
21
  };
22
+ export const se_BatchGetCalculatedAttributeForProfileCommand = async (input, context) => {
23
+ const b = rb(input, context);
24
+ const headers = {
25
+ "content-type": "application/json",
26
+ };
27
+ b.bp("/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}/batch-get-for-profiles");
28
+ b.p("CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
29
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
30
+ let body;
31
+ body = JSON.stringify(take(input, {
32
+ ConditionOverrides: (_) => _json(_),
33
+ ProfileIds: (_) => _json(_),
34
+ }));
35
+ b.m("POST").h(headers).b(body);
36
+ return b.build();
37
+ };
38
+ export const se_BatchGetProfileCommand = async (input, context) => {
39
+ const b = rb(input, context);
40
+ const headers = {
41
+ "content-type": "application/json",
42
+ };
43
+ b.bp("/domains/{DomainName}/batch-get-profiles");
44
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
45
+ let body;
46
+ body = JSON.stringify(take(input, {
47
+ ProfileIds: (_) => _json(_),
48
+ }));
49
+ b.m("POST").h(headers).b(body);
50
+ return b.build();
51
+ };
22
52
  export const se_CreateCalculatedAttributeDefinitionCommand = async (input, context) => {
23
53
  const b = rb(input, context);
24
54
  const headers = {
@@ -33,6 +63,7 @@ export const se_CreateCalculatedAttributeDefinitionCommand = async (input, conte
33
63
  Conditions: (_) => _json(_),
34
64
  Description: [],
35
65
  DisplayName: [],
66
+ Filter: (_) => _json(_),
36
67
  Statistic: [],
37
68
  Tags: (_) => _json(_),
38
69
  }));
@@ -128,6 +159,56 @@ export const se_CreateProfileCommand = async (input, context) => {
128
159
  b.m("POST").h(headers).b(body);
129
160
  return b.build();
130
161
  };
162
+ export const se_CreateSegmentDefinitionCommand = async (input, context) => {
163
+ const b = rb(input, context);
164
+ const headers = {
165
+ "content-type": "application/json",
166
+ };
167
+ b.bp("/domains/{DomainName}/segment-definitions/{SegmentDefinitionName}");
168
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
169
+ b.p("SegmentDefinitionName", () => input.SegmentDefinitionName, "{SegmentDefinitionName}", false);
170
+ let body;
171
+ body = JSON.stringify(take(input, {
172
+ Description: [],
173
+ DisplayName: [],
174
+ SegmentGroups: (_) => se_SegmentGroup(_, context),
175
+ Tags: (_) => _json(_),
176
+ }));
177
+ b.m("POST").h(headers).b(body);
178
+ return b.build();
179
+ };
180
+ export const se_CreateSegmentEstimateCommand = async (input, context) => {
181
+ const b = rb(input, context);
182
+ const headers = {
183
+ "content-type": "application/json",
184
+ };
185
+ b.bp("/domains/{DomainName}/segment-estimates");
186
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
187
+ let body;
188
+ body = JSON.stringify(take(input, {
189
+ SegmentQuery: (_) => se_SegmentGroupStructure(_, context),
190
+ }));
191
+ b.m("POST").h(headers).b(body);
192
+ return b.build();
193
+ };
194
+ export const se_CreateSegmentSnapshotCommand = async (input, context) => {
195
+ const b = rb(input, context);
196
+ const headers = {
197
+ "content-type": "application/json",
198
+ };
199
+ b.bp("/domains/{DomainName}/segments/{SegmentDefinitionName}/snapshots");
200
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
201
+ b.p("SegmentDefinitionName", () => input.SegmentDefinitionName, "{SegmentDefinitionName}", false);
202
+ let body;
203
+ body = JSON.stringify(take(input, {
204
+ DataFormat: [],
205
+ DestinationUri: [],
206
+ EncryptionKey: [],
207
+ RoleArn: [],
208
+ }));
209
+ b.m("POST").h(headers).b(body);
210
+ return b.build();
211
+ };
131
212
  export const se_DeleteCalculatedAttributeDefinitionCommand = async (input, context) => {
132
213
  const b = rb(input, context);
133
214
  const headers = {};
@@ -227,6 +308,16 @@ export const se_DeleteProfileObjectTypeCommand = async (input, context) => {
227
308
  b.m("DELETE").h(headers).b(body);
228
309
  return b.build();
229
310
  };
311
+ export const se_DeleteSegmentDefinitionCommand = async (input, context) => {
312
+ const b = rb(input, context);
313
+ const headers = {};
314
+ b.bp("/domains/{DomainName}/segment-definitions/{SegmentDefinitionName}");
315
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
316
+ b.p("SegmentDefinitionName", () => input.SegmentDefinitionName, "{SegmentDefinitionName}", false);
317
+ let body;
318
+ b.m("DELETE").h(headers).b(body);
319
+ return b.build();
320
+ };
230
321
  export const se_DeleteWorkflowCommand = async (input, context) => {
231
322
  const b = rb(input, context);
232
323
  const headers = {};
@@ -363,6 +454,52 @@ export const se_GetProfileObjectTypeTemplateCommand = async (input, context) =>
363
454
  b.m("GET").h(headers).b(body);
364
455
  return b.build();
365
456
  };
457
+ export const se_GetSegmentDefinitionCommand = async (input, context) => {
458
+ const b = rb(input, context);
459
+ const headers = {};
460
+ b.bp("/domains/{DomainName}/segment-definitions/{SegmentDefinitionName}");
461
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
462
+ b.p("SegmentDefinitionName", () => input.SegmentDefinitionName, "{SegmentDefinitionName}", false);
463
+ let body;
464
+ b.m("GET").h(headers).b(body);
465
+ return b.build();
466
+ };
467
+ export const se_GetSegmentEstimateCommand = async (input, context) => {
468
+ const b = rb(input, context);
469
+ const headers = {};
470
+ b.bp("/domains/{DomainName}/segment-estimates/{EstimateId}");
471
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
472
+ b.p("EstimateId", () => input.EstimateId, "{EstimateId}", false);
473
+ let body;
474
+ b.m("GET").h(headers).b(body);
475
+ return b.build();
476
+ };
477
+ export const se_GetSegmentMembershipCommand = async (input, context) => {
478
+ const b = rb(input, context);
479
+ const headers = {
480
+ "content-type": "application/json",
481
+ };
482
+ b.bp("/domains/{DomainName}/segments/{SegmentDefinitionName}/membership");
483
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
484
+ b.p("SegmentDefinitionName", () => input.SegmentDefinitionName, "{SegmentDefinitionName}", false);
485
+ let body;
486
+ body = JSON.stringify(take(input, {
487
+ ProfileIds: [, (_) => _json(_), `ProfileIds`],
488
+ }));
489
+ b.m("POST").h(headers).b(body);
490
+ return b.build();
491
+ };
492
+ export const se_GetSegmentSnapshotCommand = async (input, context) => {
493
+ const b = rb(input, context);
494
+ const headers = {};
495
+ b.bp("/domains/{DomainName}/segments/{SegmentDefinitionName}/snapshots/{SnapshotId}");
496
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
497
+ b.p("SegmentDefinitionName", () => input.SegmentDefinitionName, "{SegmentDefinitionName}", false);
498
+ b.p("SnapshotId", () => input.SnapshotId, "{SnapshotId}", false);
499
+ let body;
500
+ b.m("GET").h(headers).b(body);
501
+ return b.build();
502
+ };
366
503
  export const se_GetSimilarProfilesCommand = async (input, context) => {
367
504
  const b = rb(input, context);
368
505
  const headers = {
@@ -504,6 +641,30 @@ export const se_ListIntegrationsCommand = async (input, context) => {
504
641
  b.m("GET").h(headers).q(query).b(body);
505
642
  return b.build();
506
643
  };
644
+ export const se_ListObjectTypeAttributesCommand = async (input, context) => {
645
+ const b = rb(input, context);
646
+ const headers = {};
647
+ b.bp("/domains/{DomainName}/object-types/{ObjectTypeName}/attributes");
648
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
649
+ b.p("ObjectTypeName", () => input.ObjectTypeName, "{ObjectTypeName}", false);
650
+ const query = map({
651
+ [_nt]: [, input[_NT]],
652
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
653
+ });
654
+ let body;
655
+ b.m("GET").h(headers).q(query).b(body);
656
+ return b.build();
657
+ };
658
+ export const se_ListProfileAttributeValuesCommand = async (input, context) => {
659
+ const b = rb(input, context);
660
+ const headers = {};
661
+ b.bp("/domains/{DomainName}/profile-attributes/{AttributeName}/values");
662
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
663
+ b.p("AttributeName", () => input.AttributeName, "{AttributeName}", false);
664
+ let body;
665
+ b.m("GET").h(headers).b(body);
666
+ return b.build();
667
+ };
507
668
  export const se_ListProfileObjectsCommand = async (input, context) => {
508
669
  const b = rb(input, context);
509
670
  const headers = {
@@ -562,6 +723,19 @@ export const se_ListRuleBasedMatchesCommand = async (input, context) => {
562
723
  b.m("GET").h(headers).q(query).b(body);
563
724
  return b.build();
564
725
  };
726
+ export const se_ListSegmentDefinitionsCommand = async (input, context) => {
727
+ const b = rb(input, context);
728
+ const headers = {};
729
+ b.bp("/domains/{DomainName}/segment-definitions");
730
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
731
+ const query = map({
732
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
733
+ [_nt]: [, input[_NT]],
734
+ });
735
+ let body;
736
+ b.m("GET").h(headers).q(query).b(body);
737
+ return b.build();
738
+ };
565
739
  export const se_ListTagsForResourceCommand = async (input, context) => {
566
740
  const b = rb(input, context);
567
741
  const headers = {};
@@ -801,6 +975,37 @@ export const de_AddProfileKeyCommand = async (output, context) => {
801
975
  Object.assign(contents, doc);
802
976
  return contents;
803
977
  };
978
+ export const de_BatchGetCalculatedAttributeForProfileCommand = async (output, context) => {
979
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
980
+ return de_CommandError(output, context);
981
+ }
982
+ const contents = map({
983
+ $metadata: deserializeMetadata(output),
984
+ });
985
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
986
+ const doc = take(data, {
987
+ CalculatedAttributeValues: _json,
988
+ ConditionOverrides: _json,
989
+ Errors: _json,
990
+ });
991
+ Object.assign(contents, doc);
992
+ return contents;
993
+ };
994
+ export const de_BatchGetProfileCommand = async (output, context) => {
995
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
996
+ return de_CommandError(output, context);
997
+ }
998
+ const contents = map({
999
+ $metadata: deserializeMetadata(output),
1000
+ });
1001
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1002
+ const doc = take(data, {
1003
+ Errors: _json,
1004
+ Profiles: _json,
1005
+ });
1006
+ Object.assign(contents, doc);
1007
+ return contents;
1008
+ };
804
1009
  export const de_CreateCalculatedAttributeDefinitionCommand = async (output, context) => {
805
1010
  if (output.statusCode !== 200 && output.statusCode >= 300) {
806
1011
  return de_CommandError(output, context);
@@ -816,6 +1021,7 @@ export const de_CreateCalculatedAttributeDefinitionCommand = async (output, cont
816
1021
  CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
817
1022
  Description: __expectString,
818
1023
  DisplayName: __expectString,
1024
+ Filter: _json,
819
1025
  LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
820
1026
  Statistic: __expectString,
821
1027
  Tags: _json,
@@ -889,6 +1095,57 @@ export const de_CreateProfileCommand = async (output, context) => {
889
1095
  Object.assign(contents, doc);
890
1096
  return contents;
891
1097
  };
1098
+ export const de_CreateSegmentDefinitionCommand = async (output, context) => {
1099
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1100
+ return de_CommandError(output, context);
1101
+ }
1102
+ const contents = map({
1103
+ $metadata: deserializeMetadata(output),
1104
+ });
1105
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1106
+ const doc = take(data, {
1107
+ CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `CreatedAt`],
1108
+ Description: [, __expectString, `Description`],
1109
+ DisplayName: [, __expectString, `DisplayName`],
1110
+ SegmentDefinitionArn: [, __expectString, `SegmentDefinitionArn`],
1111
+ SegmentDefinitionName: [, __expectString, `SegmentDefinitionName`],
1112
+ Tags: [, _json, `Tags`],
1113
+ });
1114
+ Object.assign(contents, doc);
1115
+ return contents;
1116
+ };
1117
+ export const de_CreateSegmentEstimateCommand = async (output, context) => {
1118
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1119
+ return de_CommandError(output, context);
1120
+ }
1121
+ const contents = map({
1122
+ $metadata: deserializeMetadata(output),
1123
+ });
1124
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1125
+ const doc = take(data, {
1126
+ DomainName: __expectString,
1127
+ EstimateId: __expectString,
1128
+ });
1129
+ Object.assign(contents, doc);
1130
+ map(contents, {
1131
+ StatusCode: [, output.statusCode],
1132
+ });
1133
+ return contents;
1134
+ };
1135
+ export const de_CreateSegmentSnapshotCommand = async (output, context) => {
1136
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1137
+ return de_CommandError(output, context);
1138
+ }
1139
+ const contents = map({
1140
+ $metadata: deserializeMetadata(output),
1141
+ });
1142
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1143
+ const doc = take(data, {
1144
+ SnapshotId: __expectString,
1145
+ });
1146
+ Object.assign(contents, doc);
1147
+ return contents;
1148
+ };
892
1149
  export const de_DeleteCalculatedAttributeDefinitionCommand = async (output, context) => {
893
1150
  if (output.statusCode !== 200 && output.statusCode >= 300) {
894
1151
  return de_CommandError(output, context);
@@ -993,6 +1250,20 @@ export const de_DeleteProfileObjectTypeCommand = async (output, context) => {
993
1250
  Object.assign(contents, doc);
994
1251
  return contents;
995
1252
  };
1253
+ export const de_DeleteSegmentDefinitionCommand = async (output, context) => {
1254
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1255
+ return de_CommandError(output, context);
1256
+ }
1257
+ const contents = map({
1258
+ $metadata: deserializeMetadata(output),
1259
+ });
1260
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1261
+ const doc = take(data, {
1262
+ Message: [, __expectString, `Message`],
1263
+ });
1264
+ Object.assign(contents, doc);
1265
+ return contents;
1266
+ };
996
1267
  export const de_DeleteWorkflowCommand = async (output, context) => {
997
1268
  if (output.statusCode !== 200 && output.statusCode >= 300) {
998
1269
  return de_CommandError(output, context);
@@ -1049,6 +1320,7 @@ export const de_GetCalculatedAttributeDefinitionCommand = async (output, context
1049
1320
  CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1050
1321
  Description: __expectString,
1051
1322
  DisplayName: __expectString,
1323
+ Filter: _json,
1052
1324
  LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1053
1325
  Statistic: __expectString,
1054
1326
  Tags: _json,
@@ -1227,6 +1499,83 @@ export const de_GetProfileObjectTypeTemplateCommand = async (output, context) =>
1227
1499
  Object.assign(contents, doc);
1228
1500
  return contents;
1229
1501
  };
1502
+ export const de_GetSegmentDefinitionCommand = async (output, context) => {
1503
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1504
+ return de_CommandError(output, context);
1505
+ }
1506
+ const contents = map({
1507
+ $metadata: deserializeMetadata(output),
1508
+ });
1509
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1510
+ const doc = take(data, {
1511
+ CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `CreatedAt`],
1512
+ Description: [, __expectString, `Description`],
1513
+ DisplayName: [, __expectString, `DisplayName`],
1514
+ SegmentDefinitionArn: [, __expectString, `SegmentDefinitionArn`],
1515
+ SegmentDefinitionName: [, __expectString, `SegmentDefinitionName`],
1516
+ SegmentGroups: [, (_) => de_SegmentGroup(_, context), `SegmentGroups`],
1517
+ Tags: [, _json, `Tags`],
1518
+ });
1519
+ Object.assign(contents, doc);
1520
+ return contents;
1521
+ };
1522
+ export const de_GetSegmentEstimateCommand = async (output, context) => {
1523
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1524
+ return de_CommandError(output, context);
1525
+ }
1526
+ const contents = map({
1527
+ $metadata: deserializeMetadata(output),
1528
+ });
1529
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1530
+ const doc = take(data, {
1531
+ DomainName: __expectString,
1532
+ Estimate: __expectString,
1533
+ EstimateId: __expectString,
1534
+ Message: __expectString,
1535
+ Status: __expectString,
1536
+ });
1537
+ Object.assign(contents, doc);
1538
+ map(contents, {
1539
+ StatusCode: [, output.statusCode],
1540
+ });
1541
+ return contents;
1542
+ };
1543
+ export const de_GetSegmentMembershipCommand = async (output, context) => {
1544
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1545
+ return de_CommandError(output, context);
1546
+ }
1547
+ const contents = map({
1548
+ $metadata: deserializeMetadata(output),
1549
+ });
1550
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1551
+ const doc = take(data, {
1552
+ Failures: [, (_) => de_Failures(_, context), `Failures`],
1553
+ Profiles: [, (_) => de_Profiles(_, context), `Profiles`],
1554
+ SegmentDefinitionName: [, __expectString, `SegmentDefinitionName`],
1555
+ });
1556
+ Object.assign(contents, doc);
1557
+ return contents;
1558
+ };
1559
+ export const de_GetSegmentSnapshotCommand = async (output, context) => {
1560
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1561
+ return de_CommandError(output, context);
1562
+ }
1563
+ const contents = map({
1564
+ $metadata: deserializeMetadata(output),
1565
+ });
1566
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1567
+ const doc = take(data, {
1568
+ DataFormat: __expectString,
1569
+ DestinationUri: __expectString,
1570
+ EncryptionKey: __expectString,
1571
+ RoleArn: __expectString,
1572
+ SnapshotId: __expectString,
1573
+ Status: __expectString,
1574
+ StatusMessage: __expectString,
1575
+ });
1576
+ Object.assign(contents, doc);
1577
+ return contents;
1578
+ };
1230
1579
  export const de_GetSimilarProfilesCommand = async (output, context) => {
1231
1580
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1232
1581
  return de_CommandError(output, context);
@@ -1389,6 +1738,40 @@ export const de_ListIntegrationsCommand = async (output, context) => {
1389
1738
  Object.assign(contents, doc);
1390
1739
  return contents;
1391
1740
  };
1741
+ export const de_ListObjectTypeAttributesCommand = async (output, context) => {
1742
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1743
+ return de_CommandError(output, context);
1744
+ }
1745
+ const contents = map({
1746
+ $metadata: deserializeMetadata(output),
1747
+ });
1748
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1749
+ const doc = take(data, {
1750
+ Items: (_) => de_ListObjectTypeAttributesList(_, context),
1751
+ NextToken: __expectString,
1752
+ });
1753
+ Object.assign(contents, doc);
1754
+ return contents;
1755
+ };
1756
+ export const de_ListProfileAttributeValuesCommand = async (output, context) => {
1757
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1758
+ return de_CommandError(output, context);
1759
+ }
1760
+ const contents = map({
1761
+ $metadata: deserializeMetadata(output),
1762
+ });
1763
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1764
+ const doc = take(data, {
1765
+ AttributeName: __expectString,
1766
+ DomainName: __expectString,
1767
+ Items: _json,
1768
+ });
1769
+ Object.assign(contents, doc);
1770
+ map(contents, {
1771
+ StatusCode: [, output.statusCode],
1772
+ });
1773
+ return contents;
1774
+ };
1392
1775
  export const de_ListProfileObjectsCommand = async (output, context) => {
1393
1776
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1394
1777
  return de_CommandError(output, context);
@@ -1449,6 +1832,21 @@ export const de_ListRuleBasedMatchesCommand = async (output, context) => {
1449
1832
  Object.assign(contents, doc);
1450
1833
  return contents;
1451
1834
  };
1835
+ export const de_ListSegmentDefinitionsCommand = async (output, context) => {
1836
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1837
+ return de_CommandError(output, context);
1838
+ }
1839
+ const contents = map({
1840
+ $metadata: deserializeMetadata(output),
1841
+ });
1842
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1843
+ const doc = take(data, {
1844
+ Items: [, (_) => de_SegmentDefinitionsList(_, context), `Items`],
1845
+ NextToken: [, __expectString, `NextToken`],
1846
+ });
1847
+ Object.assign(contents, doc);
1848
+ return contents;
1849
+ };
1452
1850
  export const de_ListTagsForResourceCommand = async (output, context) => {
1453
1851
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1454
1852
  return de_CommandError(output, context);
@@ -1746,12 +2144,28 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1746
2144
  });
1747
2145
  return __decorateServiceException(exception, parsedOutput.body);
1748
2146
  };
2147
+ const se_AddressDimension = (input, context) => {
2148
+ return take(input, {
2149
+ City: [, (_) => se_ProfileDimension(_, context), `City`],
2150
+ Country: [, (_) => se_ProfileDimension(_, context), `Country`],
2151
+ County: [, (_) => se_ProfileDimension(_, context), `County`],
2152
+ PostalCode: [, (_) => se_ProfileDimension(_, context), `PostalCode`],
2153
+ Province: [, (_) => se_ProfileDimension(_, context), `Province`],
2154
+ State: [, (_) => se_ProfileDimension(_, context), `State`],
2155
+ });
2156
+ };
1749
2157
  const se_AppflowIntegration = (input, context) => {
1750
2158
  return take(input, {
1751
2159
  Batches: (_) => se_Batches(_, context),
1752
2160
  FlowDefinition: (_) => se_FlowDefinition(_, context),
1753
2161
  });
1754
2162
  };
2163
+ const se_AttributeDimension = (input, context) => {
2164
+ return take(input, {
2165
+ DimensionType: [, , `DimensionType`],
2166
+ Values: [, _json, `Values`],
2167
+ });
2168
+ };
1755
2169
  const se_AutoMerging = (input, context) => {
1756
2170
  return take(input, {
1757
2171
  ConflictResolution: _json,
@@ -1773,6 +2187,57 @@ const se_Batches = (input, context) => {
1773
2187
  return se_Batch(entry, context);
1774
2188
  });
1775
2189
  };
2190
+ const se_CalculatedAttributeDimension = (input, context) => {
2191
+ return take(input, {
2192
+ ConditionOverrides: [, _json, `ConditionOverrides`],
2193
+ DimensionType: [, , `DimensionType`],
2194
+ Values: [, _json, `Values`],
2195
+ });
2196
+ };
2197
+ const se_CalculatedCustomAttributes = (input, context) => {
2198
+ return Object.entries(input).reduce((acc, [key, value]) => {
2199
+ if (value === null) {
2200
+ return acc;
2201
+ }
2202
+ acc[key] = se_CalculatedAttributeDimension(value, context);
2203
+ return acc;
2204
+ }, {});
2205
+ };
2206
+ const se_CustomAttributes = (input, context) => {
2207
+ return Object.entries(input).reduce((acc, [key, value]) => {
2208
+ if (value === null) {
2209
+ return acc;
2210
+ }
2211
+ acc[key] = se_AttributeDimension(value, context);
2212
+ return acc;
2213
+ }, {});
2214
+ };
2215
+ const se_DateDimension = (input, context) => {
2216
+ return take(input, {
2217
+ DimensionType: [, , `DimensionType`],
2218
+ Values: [, _json, `Values`],
2219
+ });
2220
+ };
2221
+ const se_Dimension = (input, context) => {
2222
+ return Dimension.visit(input, {
2223
+ CalculatedAttributes: (value) => ({ CalculatedAttributes: se_CalculatedCustomAttributes(value, context) }),
2224
+ ProfileAttributes: (value) => ({ ProfileAttributes: se_ProfileAttributes(value, context) }),
2225
+ _: (name, value) => ({ name: value }),
2226
+ });
2227
+ };
2228
+ const se_DimensionList = (input, context) => {
2229
+ return input
2230
+ .filter((e) => e != null)
2231
+ .map((entry) => {
2232
+ return se_Dimension(entry, context);
2233
+ });
2234
+ };
2235
+ const se_ExtraLengthValueProfileDimension = (input, context) => {
2236
+ return take(input, {
2237
+ DimensionType: [, , `DimensionType`],
2238
+ Values: [, _json, `Values`],
2239
+ });
2240
+ };
1776
2241
  const se_FlowDefinition = (input, context) => {
1777
2242
  return take(input, {
1778
2243
  Description: [],
@@ -1783,6 +2248,14 @@ const se_FlowDefinition = (input, context) => {
1783
2248
  TriggerConfig: (_) => se_TriggerConfig(_, context),
1784
2249
  });
1785
2250
  };
2251
+ const se_Group = (input, context) => {
2252
+ return take(input, {
2253
+ Dimensions: [, (_) => se_DimensionList(_, context), `Dimensions`],
2254
+ SourceSegments: [, (_) => se_SourceSegmentList(_, context), `SourceSegments`],
2255
+ SourceType: [, , `SourceType`],
2256
+ Type: [, , `Type`],
2257
+ });
2258
+ };
1786
2259
  const se_IntegrationConfig = (input, context) => {
1787
2260
  return take(input, {
1788
2261
  AppflowIntegration: (_) => se_AppflowIntegration(_, context),
@@ -1796,6 +2269,37 @@ const se_MatchingRequest = (input, context) => {
1796
2269
  JobSchedule: _json,
1797
2270
  });
1798
2271
  };
2272
+ const se_ProfileAttributes = (input, context) => {
2273
+ return take(input, {
2274
+ AccountNumber: [, (_) => se_ProfileDimension(_, context), `AccountNumber`],
2275
+ AdditionalInformation: [, (_) => se_ExtraLengthValueProfileDimension(_, context), `AdditionalInformation`],
2276
+ Address: [, (_) => se_AddressDimension(_, context), `Address`],
2277
+ Attributes: [, (_) => se_CustomAttributes(_, context), `Attributes`],
2278
+ BillingAddress: [, (_) => se_AddressDimension(_, context), `BillingAddress`],
2279
+ BirthDate: [, (_) => se_DateDimension(_, context), `BirthDate`],
2280
+ BusinessEmailAddress: [, (_) => se_ProfileDimension(_, context), `BusinessEmailAddress`],
2281
+ BusinessName: [, (_) => se_ProfileDimension(_, context), `BusinessName`],
2282
+ BusinessPhoneNumber: [, (_) => se_ProfileDimension(_, context), `BusinessPhoneNumber`],
2283
+ EmailAddress: [, (_) => se_ProfileDimension(_, context), `EmailAddress`],
2284
+ FirstName: [, (_) => se_ProfileDimension(_, context), `FirstName`],
2285
+ GenderString: [, (_) => se_ProfileDimension(_, context), `GenderString`],
2286
+ HomePhoneNumber: [, (_) => se_ProfileDimension(_, context), `HomePhoneNumber`],
2287
+ LastName: [, (_) => se_ProfileDimension(_, context), `LastName`],
2288
+ MailingAddress: [, (_) => se_AddressDimension(_, context), `MailingAddress`],
2289
+ MiddleName: [, (_) => se_ProfileDimension(_, context), `MiddleName`],
2290
+ MobilePhoneNumber: [, (_) => se_ProfileDimension(_, context), `MobilePhoneNumber`],
2291
+ PartyTypeString: [, (_) => se_ProfileDimension(_, context), `PartyTypeString`],
2292
+ PersonalEmailAddress: [, (_) => se_ProfileDimension(_, context), `PersonalEmailAddress`],
2293
+ PhoneNumber: [, (_) => se_ProfileDimension(_, context), `PhoneNumber`],
2294
+ ShippingAddress: [, (_) => se_AddressDimension(_, context), `ShippingAddress`],
2295
+ });
2296
+ };
2297
+ const se_ProfileDimension = (input, context) => {
2298
+ return take(input, {
2299
+ DimensionType: [, , `DimensionType`],
2300
+ Values: [, _json, `Values`],
2301
+ });
2302
+ };
1799
2303
  const se_ScheduledTriggerProperties = (input, context) => {
1800
2304
  return take(input, {
1801
2305
  DataPullMode: [],
@@ -1807,6 +2311,37 @@ const se_ScheduledTriggerProperties = (input, context) => {
1807
2311
  Timezone: [],
1808
2312
  });
1809
2313
  };
2314
+ const se_SegmentGroup = (input, context) => {
2315
+ return take(input, {
2316
+ Groups: [, (_) => se_SegmentGroupList(_, context), `Groups`],
2317
+ Include: [, , `Include`],
2318
+ });
2319
+ };
2320
+ const se_SegmentGroupList = (input, context) => {
2321
+ return input
2322
+ .filter((e) => e != null)
2323
+ .map((entry) => {
2324
+ return se_Group(entry, context);
2325
+ });
2326
+ };
2327
+ const se_SegmentGroupStructure = (input, context) => {
2328
+ return take(input, {
2329
+ Groups: (_) => se_SegmentGroupList(_, context),
2330
+ Include: [],
2331
+ });
2332
+ };
2333
+ const se_SourceSegment = (input, context) => {
2334
+ return take(input, {
2335
+ SegmentDefinitionName: [, , `SegmentDefinitionName`],
2336
+ });
2337
+ };
2338
+ const se_SourceSegmentList = (input, context) => {
2339
+ return input
2340
+ .filter((e) => e != null)
2341
+ .map((entry) => {
2342
+ return se_SourceSegment(entry, context);
2343
+ });
2344
+ };
1810
2345
  const se_TriggerConfig = (input, context) => {
1811
2346
  return take(input, {
1812
2347
  TriggerProperties: (_) => se_TriggerProperties(_, context),
@@ -1818,6 +2353,16 @@ const se_TriggerProperties = (input, context) => {
1818
2353
  Scheduled: (_) => se_ScheduledTriggerProperties(_, context),
1819
2354
  });
1820
2355
  };
2356
+ const de_AddressDimension = (output, context) => {
2357
+ return take(output, {
2358
+ City: [, (_) => de_ProfileDimension(_, context), `City`],
2359
+ Country: [, (_) => de_ProfileDimension(_, context), `Country`],
2360
+ County: [, (_) => de_ProfileDimension(_, context), `County`],
2361
+ PostalCode: [, (_) => de_ProfileDimension(_, context), `PostalCode`],
2362
+ Province: [, (_) => de_ProfileDimension(_, context), `Province`],
2363
+ State: [, (_) => de_ProfileDimension(_, context), `State`],
2364
+ });
2365
+ };
1821
2366
  const de_AppflowIntegrationWorkflowStep = (output, context) => {
1822
2367
  return take(output, {
1823
2368
  BatchRecordsEndTime: __expectString,
@@ -1830,6 +2375,12 @@ const de_AppflowIntegrationWorkflowStep = (output, context) => {
1830
2375
  Status: __expectString,
1831
2376
  });
1832
2377
  };
2378
+ const de_AttributeDimension = (output, context) => {
2379
+ return take(output, {
2380
+ DimensionType: [, __expectString, `DimensionType`],
2381
+ Values: [, _json, `Values`],
2382
+ });
2383
+ };
1833
2384
  const de_AutoMerging = (output, context) => {
1834
2385
  return take(output, {
1835
2386
  ConflictResolution: _json,
@@ -1846,6 +2397,37 @@ const de_CalculatedAttributeDefinitionsList = (output, context) => {
1846
2397
  });
1847
2398
  return retVal;
1848
2399
  };
2400
+ const de_CalculatedAttributeDimension = (output, context) => {
2401
+ return take(output, {
2402
+ ConditionOverrides: [, _json, `ConditionOverrides`],
2403
+ DimensionType: [, __expectString, `DimensionType`],
2404
+ Values: [, _json, `Values`],
2405
+ });
2406
+ };
2407
+ const de_CalculatedCustomAttributes = (output, context) => {
2408
+ return Object.entries(output).reduce((acc, [key, value]) => {
2409
+ if (value === null) {
2410
+ return acc;
2411
+ }
2412
+ acc[key] = de_CalculatedAttributeDimension(value, context);
2413
+ return acc;
2414
+ }, {});
2415
+ };
2416
+ const de_CustomAttributes = (output, context) => {
2417
+ return Object.entries(output).reduce((acc, [key, value]) => {
2418
+ if (value === null) {
2419
+ return acc;
2420
+ }
2421
+ acc[key] = de_AttributeDimension(value, context);
2422
+ return acc;
2423
+ }, {});
2424
+ };
2425
+ const de_DateDimension = (output, context) => {
2426
+ return take(output, {
2427
+ DimensionType: [, __expectString, `DimensionType`],
2428
+ Values: [, _json, `Values`],
2429
+ });
2430
+ };
1849
2431
  const de_DestinationSummary = (output, context) => {
1850
2432
  return take(output, {
1851
2433
  Status: __expectString,
@@ -1853,6 +2435,27 @@ const de_DestinationSummary = (output, context) => {
1853
2435
  Uri: __expectString,
1854
2436
  });
1855
2437
  };
2438
+ const de_Dimension = (output, context) => {
2439
+ if (output.CalculatedAttributes != null) {
2440
+ return {
2441
+ CalculatedAttributes: de_CalculatedCustomAttributes(output.CalculatedAttributes, context),
2442
+ };
2443
+ }
2444
+ if (output.ProfileAttributes != null) {
2445
+ return {
2446
+ ProfileAttributes: de_ProfileAttributes(output.ProfileAttributes, context),
2447
+ };
2448
+ }
2449
+ return { $unknown: Object.entries(output)[0] };
2450
+ };
2451
+ const de_DimensionList = (output, context) => {
2452
+ const retVal = (output || [])
2453
+ .filter((e) => e != null)
2454
+ .map((entry) => {
2455
+ return de_Dimension(__expectUnion(entry), context);
2456
+ });
2457
+ return retVal;
2458
+ };
1856
2459
  const de_DomainList = (output, context) => {
1857
2460
  const retVal = (output || [])
1858
2461
  .filter((e) => e != null)
@@ -1888,6 +2491,28 @@ const de_EventStreamSummaryList = (output, context) => {
1888
2491
  });
1889
2492
  return retVal;
1890
2493
  };
2494
+ const de_ExtraLengthValueProfileDimension = (output, context) => {
2495
+ return take(output, {
2496
+ DimensionType: [, __expectString, `DimensionType`],
2497
+ Values: [, _json, `Values`],
2498
+ });
2499
+ };
2500
+ const de_Failures = (output, context) => {
2501
+ const retVal = (output || [])
2502
+ .filter((e) => e != null)
2503
+ .map((entry) => {
2504
+ return de_ProfileQueryFailures(entry, context);
2505
+ });
2506
+ return retVal;
2507
+ };
2508
+ const de_Group = (output, context) => {
2509
+ return take(output, {
2510
+ Dimensions: [, (_) => de_DimensionList(_, context), `Dimensions`],
2511
+ SourceSegments: [, (_) => de_SourceSegmentList(_, context), `SourceSegments`],
2512
+ SourceType: [, __expectString, `SourceType`],
2513
+ Type: [, __expectString, `Type`],
2514
+ });
2515
+ };
1891
2516
  const de_IdentityResolutionJob = (output, context) => {
1892
2517
  return take(output, {
1893
2518
  DomainName: __expectString,
@@ -1948,6 +2573,20 @@ const de_ListIntegrationItem = (output, context) => {
1948
2573
  WorkflowId: __expectString,
1949
2574
  });
1950
2575
  };
2576
+ const de_ListObjectTypeAttributeItem = (output, context) => {
2577
+ return take(output, {
2578
+ AttributeName: __expectString,
2579
+ LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2580
+ });
2581
+ };
2582
+ const de_ListObjectTypeAttributesList = (output, context) => {
2583
+ const retVal = (output || [])
2584
+ .filter((e) => e != null)
2585
+ .map((entry) => {
2586
+ return de_ListObjectTypeAttributeItem(entry, context);
2587
+ });
2588
+ return retVal;
2589
+ };
1951
2590
  const de_ListProfileObjectTypeItem = (output, context) => {
1952
2591
  return take(output, {
1953
2592
  CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -1992,6 +2631,37 @@ const de_MatchItem = (output, context) => {
1992
2631
  ProfileIds: _json,
1993
2632
  });
1994
2633
  };
2634
+ const de_ProfileAttributes = (output, context) => {
2635
+ return take(output, {
2636
+ AccountNumber: [, (_) => de_ProfileDimension(_, context), `AccountNumber`],
2637
+ AdditionalInformation: [, (_) => de_ExtraLengthValueProfileDimension(_, context), `AdditionalInformation`],
2638
+ Address: [, (_) => de_AddressDimension(_, context), `Address`],
2639
+ Attributes: [, (_) => de_CustomAttributes(_, context), `Attributes`],
2640
+ BillingAddress: [, (_) => de_AddressDimension(_, context), `BillingAddress`],
2641
+ BirthDate: [, (_) => de_DateDimension(_, context), `BirthDate`],
2642
+ BusinessEmailAddress: [, (_) => de_ProfileDimension(_, context), `BusinessEmailAddress`],
2643
+ BusinessName: [, (_) => de_ProfileDimension(_, context), `BusinessName`],
2644
+ BusinessPhoneNumber: [, (_) => de_ProfileDimension(_, context), `BusinessPhoneNumber`],
2645
+ EmailAddress: [, (_) => de_ProfileDimension(_, context), `EmailAddress`],
2646
+ FirstName: [, (_) => de_ProfileDimension(_, context), `FirstName`],
2647
+ GenderString: [, (_) => de_ProfileDimension(_, context), `GenderString`],
2648
+ HomePhoneNumber: [, (_) => de_ProfileDimension(_, context), `HomePhoneNumber`],
2649
+ LastName: [, (_) => de_ProfileDimension(_, context), `LastName`],
2650
+ MailingAddress: [, (_) => de_AddressDimension(_, context), `MailingAddress`],
2651
+ MiddleName: [, (_) => de_ProfileDimension(_, context), `MiddleName`],
2652
+ MobilePhoneNumber: [, (_) => de_ProfileDimension(_, context), `MobilePhoneNumber`],
2653
+ PartyTypeString: [, (_) => de_ProfileDimension(_, context), `PartyTypeString`],
2654
+ PersonalEmailAddress: [, (_) => de_ProfileDimension(_, context), `PersonalEmailAddress`],
2655
+ PhoneNumber: [, (_) => de_ProfileDimension(_, context), `PhoneNumber`],
2656
+ ShippingAddress: [, (_) => de_AddressDimension(_, context), `ShippingAddress`],
2657
+ });
2658
+ };
2659
+ const de_ProfileDimension = (output, context) => {
2660
+ return take(output, {
2661
+ DimensionType: [, __expectString, `DimensionType`],
2662
+ Values: [, _json, `Values`],
2663
+ });
2664
+ };
1995
2665
  const de_ProfileObjectTypeList = (output, context) => {
1996
2666
  const retVal = (output || [])
1997
2667
  .filter((e) => e != null)
@@ -2000,6 +2670,73 @@ const de_ProfileObjectTypeList = (output, context) => {
2000
2670
  });
2001
2671
  return retVal;
2002
2672
  };
2673
+ const de_ProfileQueryFailures = (output, context) => {
2674
+ return take(output, {
2675
+ Message: [, __expectString, `Message`],
2676
+ ProfileId: [, __expectString, `ProfileId`],
2677
+ Status: [, __expectInt32, `Status`],
2678
+ });
2679
+ };
2680
+ const de_ProfileQueryResult = (output, context) => {
2681
+ return take(output, {
2682
+ Profile: [, _json, `Profile`],
2683
+ ProfileId: [, __expectString, `ProfileId`],
2684
+ QueryResult: [, __expectString, `QueryResult`],
2685
+ });
2686
+ };
2687
+ const de_Profiles = (output, context) => {
2688
+ const retVal = (output || [])
2689
+ .filter((e) => e != null)
2690
+ .map((entry) => {
2691
+ return de_ProfileQueryResult(entry, context);
2692
+ });
2693
+ return retVal;
2694
+ };
2695
+ const de_SegmentDefinitionItem = (output, context) => {
2696
+ return take(output, {
2697
+ CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `CreatedAt`],
2698
+ Description: [, __expectString, `Description`],
2699
+ DisplayName: [, __expectString, `DisplayName`],
2700
+ SegmentDefinitionArn: [, __expectString, `SegmentDefinitionArn`],
2701
+ SegmentDefinitionName: [, __expectString, `SegmentDefinitionName`],
2702
+ Tags: [, _json, `Tags`],
2703
+ });
2704
+ };
2705
+ const de_SegmentDefinitionsList = (output, context) => {
2706
+ const retVal = (output || [])
2707
+ .filter((e) => e != null)
2708
+ .map((entry) => {
2709
+ return de_SegmentDefinitionItem(entry, context);
2710
+ });
2711
+ return retVal;
2712
+ };
2713
+ const de_SegmentGroup = (output, context) => {
2714
+ return take(output, {
2715
+ Groups: [, (_) => de_SegmentGroupList(_, context), `Groups`],
2716
+ Include: [, __expectString, `Include`],
2717
+ });
2718
+ };
2719
+ const de_SegmentGroupList = (output, context) => {
2720
+ const retVal = (output || [])
2721
+ .filter((e) => e != null)
2722
+ .map((entry) => {
2723
+ return de_Group(entry, context);
2724
+ });
2725
+ return retVal;
2726
+ };
2727
+ const de_SourceSegment = (output, context) => {
2728
+ return take(output, {
2729
+ SegmentDefinitionName: [, __expectString, `SegmentDefinitionName`],
2730
+ });
2731
+ };
2732
+ const de_SourceSegmentList = (output, context) => {
2733
+ const retVal = (output || [])
2734
+ .filter((e) => e != null)
2735
+ .map((entry) => {
2736
+ return de_SourceSegment(entry, context);
2737
+ });
2738
+ return retVal;
2739
+ };
2003
2740
  const de_WorkflowList = (output, context) => {
2004
2741
  const retVal = (output || [])
2005
2742
  .filter((e) => e != null)