@aws-sdk/client-customer-profiles 3.342.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.
- package/README.md +56 -0
- package/dist-cjs/CustomerProfiles.js +14 -0
- package/dist-cjs/commands/CreateCalculatedAttributeDefinitionCommand.js +46 -0
- package/dist-cjs/commands/DeleteCalculatedAttributeDefinitionCommand.js +46 -0
- package/dist-cjs/commands/GetCalculatedAttributeDefinitionCommand.js +46 -0
- package/dist-cjs/commands/GetCalculatedAttributeForProfileCommand.js +46 -0
- package/dist-cjs/commands/ListCalculatedAttributeDefinitionsCommand.js +46 -0
- package/dist-cjs/commands/ListCalculatedAttributesForProfileCommand.js +46 -0
- package/dist-cjs/commands/UpdateCalculatedAttributeDefinitionCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +20 -1
- package/dist-cjs/protocols/Aws_restJson1.js +527 -2
- package/dist-es/CustomerProfiles.js +14 -0
- package/dist-es/commands/CreateCalculatedAttributeDefinitionCommand.js +42 -0
- package/dist-es/commands/DeleteCalculatedAttributeDefinitionCommand.js +42 -0
- package/dist-es/commands/GetCalculatedAttributeDefinitionCommand.js +42 -0
- package/dist-es/commands/GetCalculatedAttributeForProfileCommand.js +42 -0
- package/dist-es/commands/ListCalculatedAttributeDefinitionsCommand.js +42 -0
- package/dist-es/commands/ListCalculatedAttributesForProfileCommand.js +42 -0
- package/dist-es/commands/UpdateCalculatedAttributeDefinitionCommand.js +42 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +19 -0
- package/dist-es/protocols/Aws_restJson1.js +511 -0
- package/dist-types/CustomerProfiles.d.ts +49 -0
- package/dist-types/CustomerProfilesClient.d.ts +9 -2
- package/dist-types/commands/CreateCalculatedAttributeDefinitionCommand.d.ts +146 -0
- package/dist-types/commands/DeleteCalculatedAttributeDefinitionCommand.d.ts +89 -0
- package/dist-types/commands/GetCalculatedAttributeDefinitionCommand.d.ts +116 -0
- package/dist-types/commands/GetCalculatedAttributeForProfileCommand.d.ts +93 -0
- package/dist-types/commands/ListCalculatedAttributeDefinitionsCommand.d.ts +102 -0
- package/dist-types/commands/ListCalculatedAttributesForProfileCommand.d.ts +99 -0
- package/dist-types/commands/UpdateCalculatedAttributeDefinitionCommand.d.ts +131 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +491 -8
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/CustomerProfiles.d.ts +149 -0
- package/dist-types/ts3.4/CustomerProfilesClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateCalculatedAttributeDefinitionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCalculatedAttributeDefinitionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetCalculatedAttributeDefinitionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetCalculatedAttributeForProfileCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCalculatedAttributeDefinitionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCalculatedAttributesForProfileCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateCalculatedAttributeDefinitionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +145 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +6 -6
|
@@ -25,6 +25,34 @@ export const se_AddProfileKeyCommand = async (input, context) => {
|
|
|
25
25
|
body,
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
+
export const se_CreateCalculatedAttributeDefinitionCommand = async (input, context) => {
|
|
29
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
30
|
+
const headers = {
|
|
31
|
+
"content-type": "application/json",
|
|
32
|
+
};
|
|
33
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
34
|
+
"/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
|
|
35
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
36
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify(take(input, {
|
|
39
|
+
AttributeDetails: (_) => _json(_),
|
|
40
|
+
Conditions: (_) => _json(_),
|
|
41
|
+
Description: [],
|
|
42
|
+
DisplayName: [],
|
|
43
|
+
Statistic: [],
|
|
44
|
+
Tags: (_) => _json(_),
|
|
45
|
+
}));
|
|
46
|
+
return new __HttpRequest({
|
|
47
|
+
protocol,
|
|
48
|
+
hostname,
|
|
49
|
+
port,
|
|
50
|
+
method: "POST",
|
|
51
|
+
headers,
|
|
52
|
+
path: resolvedPath,
|
|
53
|
+
body,
|
|
54
|
+
});
|
|
55
|
+
};
|
|
28
56
|
export const se_CreateDomainCommand = async (input, context) => {
|
|
29
57
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
30
58
|
const headers = {
|
|
@@ -119,6 +147,24 @@ export const se_CreateProfileCommand = async (input, context) => {
|
|
|
119
147
|
body,
|
|
120
148
|
});
|
|
121
149
|
};
|
|
150
|
+
export const se_DeleteCalculatedAttributeDefinitionCommand = async (input, context) => {
|
|
151
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
152
|
+
const headers = {};
|
|
153
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
154
|
+
"/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
|
|
155
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
156
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
|
|
157
|
+
let body;
|
|
158
|
+
return new __HttpRequest({
|
|
159
|
+
protocol,
|
|
160
|
+
hostname,
|
|
161
|
+
port,
|
|
162
|
+
method: "DELETE",
|
|
163
|
+
headers,
|
|
164
|
+
path: resolvedPath,
|
|
165
|
+
body,
|
|
166
|
+
});
|
|
167
|
+
};
|
|
122
168
|
export const se_DeleteDomainCommand = async (input, context) => {
|
|
123
169
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
170
|
const headers = {};
|
|
@@ -285,6 +331,43 @@ export const se_GetAutoMergingPreviewCommand = async (input, context) => {
|
|
|
285
331
|
body,
|
|
286
332
|
});
|
|
287
333
|
};
|
|
334
|
+
export const se_GetCalculatedAttributeDefinitionCommand = async (input, context) => {
|
|
335
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
336
|
+
const headers = {};
|
|
337
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
338
|
+
"/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
|
|
339
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
340
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
|
|
341
|
+
let body;
|
|
342
|
+
return new __HttpRequest({
|
|
343
|
+
protocol,
|
|
344
|
+
hostname,
|
|
345
|
+
port,
|
|
346
|
+
method: "GET",
|
|
347
|
+
headers,
|
|
348
|
+
path: resolvedPath,
|
|
349
|
+
body,
|
|
350
|
+
});
|
|
351
|
+
};
|
|
352
|
+
export const se_GetCalculatedAttributeForProfileCommand = 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}/profile/{ProfileId}/calculated-attributes/{CalculatedAttributeName}";
|
|
357
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
358
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ProfileId", () => input.ProfileId, "{ProfileId}", false);
|
|
359
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
|
|
360
|
+
let body;
|
|
361
|
+
return new __HttpRequest({
|
|
362
|
+
protocol,
|
|
363
|
+
hostname,
|
|
364
|
+
port,
|
|
365
|
+
method: "GET",
|
|
366
|
+
headers,
|
|
367
|
+
path: resolvedPath,
|
|
368
|
+
body,
|
|
369
|
+
});
|
|
370
|
+
};
|
|
288
371
|
export const se_GetDomainCommand = async (input, context) => {
|
|
289
372
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
290
373
|
const headers = {};
|
|
@@ -462,6 +545,51 @@ export const se_ListAccountIntegrationsCommand = async (input, context) => {
|
|
|
462
545
|
body,
|
|
463
546
|
});
|
|
464
547
|
};
|
|
548
|
+
export const se_ListCalculatedAttributeDefinitionsCommand = async (input, context) => {
|
|
549
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
550
|
+
const headers = {};
|
|
551
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
552
|
+
"/domains/{DomainName}/calculated-attributes";
|
|
553
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
554
|
+
const query = map({
|
|
555
|
+
"next-token": [, input.NextToken],
|
|
556
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
557
|
+
});
|
|
558
|
+
let body;
|
|
559
|
+
return new __HttpRequest({
|
|
560
|
+
protocol,
|
|
561
|
+
hostname,
|
|
562
|
+
port,
|
|
563
|
+
method: "GET",
|
|
564
|
+
headers,
|
|
565
|
+
path: resolvedPath,
|
|
566
|
+
query,
|
|
567
|
+
body,
|
|
568
|
+
});
|
|
569
|
+
};
|
|
570
|
+
export const se_ListCalculatedAttributesForProfileCommand = async (input, context) => {
|
|
571
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
572
|
+
const headers = {};
|
|
573
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
574
|
+
"/domains/{DomainName}/profile/{ProfileId}/calculated-attributes";
|
|
575
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
576
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ProfileId", () => input.ProfileId, "{ProfileId}", false);
|
|
577
|
+
const query = map({
|
|
578
|
+
"next-token": [, input.NextToken],
|
|
579
|
+
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
580
|
+
});
|
|
581
|
+
let body;
|
|
582
|
+
return new __HttpRequest({
|
|
583
|
+
protocol,
|
|
584
|
+
hostname,
|
|
585
|
+
port,
|
|
586
|
+
method: "GET",
|
|
587
|
+
headers,
|
|
588
|
+
path: resolvedPath,
|
|
589
|
+
query,
|
|
590
|
+
body,
|
|
591
|
+
});
|
|
592
|
+
};
|
|
465
593
|
export const se_ListDomainsCommand = async (input, context) => {
|
|
466
594
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
467
595
|
const headers = {};
|
|
@@ -815,6 +943,31 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
815
943
|
body,
|
|
816
944
|
});
|
|
817
945
|
};
|
|
946
|
+
export const se_UpdateCalculatedAttributeDefinitionCommand = async (input, context) => {
|
|
947
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
948
|
+
const headers = {
|
|
949
|
+
"content-type": "application/json",
|
|
950
|
+
};
|
|
951
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
952
|
+
"/domains/{DomainName}/calculated-attributes/{CalculatedAttributeName}";
|
|
953
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
954
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatedAttributeName", () => input.CalculatedAttributeName, "{CalculatedAttributeName}", false);
|
|
955
|
+
let body;
|
|
956
|
+
body = JSON.stringify(take(input, {
|
|
957
|
+
Conditions: (_) => _json(_),
|
|
958
|
+
Description: [],
|
|
959
|
+
DisplayName: [],
|
|
960
|
+
}));
|
|
961
|
+
return new __HttpRequest({
|
|
962
|
+
protocol,
|
|
963
|
+
hostname,
|
|
964
|
+
port,
|
|
965
|
+
method: "PUT",
|
|
966
|
+
headers,
|
|
967
|
+
path: resolvedPath,
|
|
968
|
+
body,
|
|
969
|
+
});
|
|
970
|
+
};
|
|
818
971
|
export const se_UpdateDomainCommand = async (input, context) => {
|
|
819
972
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
820
973
|
const headers = {
|
|
@@ -930,6 +1083,59 @@ const de_AddProfileKeyCommandError = async (output, context) => {
|
|
|
930
1083
|
});
|
|
931
1084
|
}
|
|
932
1085
|
};
|
|
1086
|
+
export const de_CreateCalculatedAttributeDefinitionCommand = async (output, context) => {
|
|
1087
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1088
|
+
return de_CreateCalculatedAttributeDefinitionCommandError(output, context);
|
|
1089
|
+
}
|
|
1090
|
+
const contents = map({
|
|
1091
|
+
$metadata: deserializeMetadata(output),
|
|
1092
|
+
});
|
|
1093
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1094
|
+
const doc = take(data, {
|
|
1095
|
+
AttributeDetails: _json,
|
|
1096
|
+
CalculatedAttributeName: __expectString,
|
|
1097
|
+
Conditions: _json,
|
|
1098
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1099
|
+
Description: __expectString,
|
|
1100
|
+
DisplayName: __expectString,
|
|
1101
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1102
|
+
Statistic: __expectString,
|
|
1103
|
+
Tags: _json,
|
|
1104
|
+
});
|
|
1105
|
+
Object.assign(contents, doc);
|
|
1106
|
+
return contents;
|
|
1107
|
+
};
|
|
1108
|
+
const de_CreateCalculatedAttributeDefinitionCommandError = async (output, context) => {
|
|
1109
|
+
const parsedOutput = {
|
|
1110
|
+
...output,
|
|
1111
|
+
body: await parseErrorBody(output.body, context),
|
|
1112
|
+
};
|
|
1113
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
|
+
switch (errorCode) {
|
|
1115
|
+
case "AccessDeniedException":
|
|
1116
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1117
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1118
|
+
case "BadRequestException":
|
|
1119
|
+
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1120
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1121
|
+
case "InternalServerException":
|
|
1122
|
+
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1123
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1124
|
+
case "ResourceNotFoundException":
|
|
1125
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1126
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1127
|
+
case "ThrottlingException":
|
|
1128
|
+
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1129
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1130
|
+
default:
|
|
1131
|
+
const parsedBody = parsedOutput.body;
|
|
1132
|
+
return throwDefaultError({
|
|
1133
|
+
output,
|
|
1134
|
+
parsedBody,
|
|
1135
|
+
errorCode,
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
933
1139
|
export const de_CreateDomainCommand = async (output, context) => {
|
|
934
1140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
935
1141
|
return de_CreateDomainCommandError(output, context);
|
|
@@ -1073,6 +1279,47 @@ const de_CreateProfileCommandError = async (output, context) => {
|
|
|
1073
1279
|
});
|
|
1074
1280
|
}
|
|
1075
1281
|
};
|
|
1282
|
+
export const de_DeleteCalculatedAttributeDefinitionCommand = async (output, context) => {
|
|
1283
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1284
|
+
return de_DeleteCalculatedAttributeDefinitionCommandError(output, context);
|
|
1285
|
+
}
|
|
1286
|
+
const contents = map({
|
|
1287
|
+
$metadata: deserializeMetadata(output),
|
|
1288
|
+
});
|
|
1289
|
+
await collectBody(output.body, context);
|
|
1290
|
+
return contents;
|
|
1291
|
+
};
|
|
1292
|
+
const de_DeleteCalculatedAttributeDefinitionCommandError = async (output, context) => {
|
|
1293
|
+
const parsedOutput = {
|
|
1294
|
+
...output,
|
|
1295
|
+
body: await parseErrorBody(output.body, context),
|
|
1296
|
+
};
|
|
1297
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
|
+
switch (errorCode) {
|
|
1299
|
+
case "AccessDeniedException":
|
|
1300
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1301
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1302
|
+
case "BadRequestException":
|
|
1303
|
+
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1304
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1305
|
+
case "InternalServerException":
|
|
1306
|
+
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1307
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1308
|
+
case "ResourceNotFoundException":
|
|
1309
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1310
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1311
|
+
case "ThrottlingException":
|
|
1312
|
+
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1313
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1314
|
+
default:
|
|
1315
|
+
const parsedBody = parsedOutput.body;
|
|
1316
|
+
return throwDefaultError({
|
|
1317
|
+
output,
|
|
1318
|
+
parsedBody,
|
|
1319
|
+
errorCode,
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
};
|
|
1076
1323
|
export const de_DeleteDomainCommand = async (output, context) => {
|
|
1077
1324
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1078
1325
|
return de_DeleteDomainCommandError(output, context);
|
|
@@ -1432,6 +1679,107 @@ const de_GetAutoMergingPreviewCommandError = async (output, context) => {
|
|
|
1432
1679
|
});
|
|
1433
1680
|
}
|
|
1434
1681
|
};
|
|
1682
|
+
export const de_GetCalculatedAttributeDefinitionCommand = async (output, context) => {
|
|
1683
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1684
|
+
return de_GetCalculatedAttributeDefinitionCommandError(output, context);
|
|
1685
|
+
}
|
|
1686
|
+
const contents = map({
|
|
1687
|
+
$metadata: deserializeMetadata(output),
|
|
1688
|
+
});
|
|
1689
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1690
|
+
const doc = take(data, {
|
|
1691
|
+
AttributeDetails: _json,
|
|
1692
|
+
CalculatedAttributeName: __expectString,
|
|
1693
|
+
Conditions: _json,
|
|
1694
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1695
|
+
Description: __expectString,
|
|
1696
|
+
DisplayName: __expectString,
|
|
1697
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1698
|
+
Statistic: __expectString,
|
|
1699
|
+
Tags: _json,
|
|
1700
|
+
});
|
|
1701
|
+
Object.assign(contents, doc);
|
|
1702
|
+
return contents;
|
|
1703
|
+
};
|
|
1704
|
+
const de_GetCalculatedAttributeDefinitionCommandError = async (output, context) => {
|
|
1705
|
+
const parsedOutput = {
|
|
1706
|
+
...output,
|
|
1707
|
+
body: await parseErrorBody(output.body, context),
|
|
1708
|
+
};
|
|
1709
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
+
switch (errorCode) {
|
|
1711
|
+
case "AccessDeniedException":
|
|
1712
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1713
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1714
|
+
case "BadRequestException":
|
|
1715
|
+
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1716
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1717
|
+
case "InternalServerException":
|
|
1718
|
+
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1719
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1720
|
+
case "ResourceNotFoundException":
|
|
1721
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1722
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1723
|
+
case "ThrottlingException":
|
|
1724
|
+
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1725
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1726
|
+
default:
|
|
1727
|
+
const parsedBody = parsedOutput.body;
|
|
1728
|
+
return throwDefaultError({
|
|
1729
|
+
output,
|
|
1730
|
+
parsedBody,
|
|
1731
|
+
errorCode,
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1734
|
+
};
|
|
1735
|
+
export const de_GetCalculatedAttributeForProfileCommand = async (output, context) => {
|
|
1736
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1737
|
+
return de_GetCalculatedAttributeForProfileCommandError(output, context);
|
|
1738
|
+
}
|
|
1739
|
+
const contents = map({
|
|
1740
|
+
$metadata: deserializeMetadata(output),
|
|
1741
|
+
});
|
|
1742
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1743
|
+
const doc = take(data, {
|
|
1744
|
+
CalculatedAttributeName: __expectString,
|
|
1745
|
+
DisplayName: __expectString,
|
|
1746
|
+
IsDataPartial: __expectString,
|
|
1747
|
+
Value: __expectString,
|
|
1748
|
+
});
|
|
1749
|
+
Object.assign(contents, doc);
|
|
1750
|
+
return contents;
|
|
1751
|
+
};
|
|
1752
|
+
const de_GetCalculatedAttributeForProfileCommandError = async (output, context) => {
|
|
1753
|
+
const parsedOutput = {
|
|
1754
|
+
...output,
|
|
1755
|
+
body: await parseErrorBody(output.body, context),
|
|
1756
|
+
};
|
|
1757
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1758
|
+
switch (errorCode) {
|
|
1759
|
+
case "AccessDeniedException":
|
|
1760
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1761
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1762
|
+
case "BadRequestException":
|
|
1763
|
+
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1764
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1765
|
+
case "InternalServerException":
|
|
1766
|
+
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1767
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1768
|
+
case "ResourceNotFoundException":
|
|
1769
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1770
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1771
|
+
case "ThrottlingException":
|
|
1772
|
+
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1773
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1774
|
+
default:
|
|
1775
|
+
const parsedBody = parsedOutput.body;
|
|
1776
|
+
return throwDefaultError({
|
|
1777
|
+
output,
|
|
1778
|
+
parsedBody,
|
|
1779
|
+
errorCode,
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
};
|
|
1435
1783
|
export const de_GetDomainCommand = async (output, context) => {
|
|
1436
1784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1437
1785
|
return de_GetDomainCommandError(output, context);
|
|
@@ -1894,6 +2242,98 @@ const de_ListAccountIntegrationsCommandError = async (output, context) => {
|
|
|
1894
2242
|
});
|
|
1895
2243
|
}
|
|
1896
2244
|
};
|
|
2245
|
+
export const de_ListCalculatedAttributeDefinitionsCommand = async (output, context) => {
|
|
2246
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2247
|
+
return de_ListCalculatedAttributeDefinitionsCommandError(output, context);
|
|
2248
|
+
}
|
|
2249
|
+
const contents = map({
|
|
2250
|
+
$metadata: deserializeMetadata(output),
|
|
2251
|
+
});
|
|
2252
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2253
|
+
const doc = take(data, {
|
|
2254
|
+
Items: (_) => de_CalculatedAttributeDefinitionsList(_, context),
|
|
2255
|
+
NextToken: __expectString,
|
|
2256
|
+
});
|
|
2257
|
+
Object.assign(contents, doc);
|
|
2258
|
+
return contents;
|
|
2259
|
+
};
|
|
2260
|
+
const de_ListCalculatedAttributeDefinitionsCommandError = async (output, context) => {
|
|
2261
|
+
const parsedOutput = {
|
|
2262
|
+
...output,
|
|
2263
|
+
body: await parseErrorBody(output.body, context),
|
|
2264
|
+
};
|
|
2265
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2266
|
+
switch (errorCode) {
|
|
2267
|
+
case "AccessDeniedException":
|
|
2268
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2269
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2270
|
+
case "BadRequestException":
|
|
2271
|
+
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2272
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2273
|
+
case "InternalServerException":
|
|
2274
|
+
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2275
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2276
|
+
case "ResourceNotFoundException":
|
|
2277
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2278
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2279
|
+
case "ThrottlingException":
|
|
2280
|
+
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2281
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2282
|
+
default:
|
|
2283
|
+
const parsedBody = parsedOutput.body;
|
|
2284
|
+
return throwDefaultError({
|
|
2285
|
+
output,
|
|
2286
|
+
parsedBody,
|
|
2287
|
+
errorCode,
|
|
2288
|
+
});
|
|
2289
|
+
}
|
|
2290
|
+
};
|
|
2291
|
+
export const de_ListCalculatedAttributesForProfileCommand = async (output, context) => {
|
|
2292
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2293
|
+
return de_ListCalculatedAttributesForProfileCommandError(output, context);
|
|
2294
|
+
}
|
|
2295
|
+
const contents = map({
|
|
2296
|
+
$metadata: deserializeMetadata(output),
|
|
2297
|
+
});
|
|
2298
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2299
|
+
const doc = take(data, {
|
|
2300
|
+
Items: _json,
|
|
2301
|
+
NextToken: __expectString,
|
|
2302
|
+
});
|
|
2303
|
+
Object.assign(contents, doc);
|
|
2304
|
+
return contents;
|
|
2305
|
+
};
|
|
2306
|
+
const de_ListCalculatedAttributesForProfileCommandError = async (output, context) => {
|
|
2307
|
+
const parsedOutput = {
|
|
2308
|
+
...output,
|
|
2309
|
+
body: await parseErrorBody(output.body, context),
|
|
2310
|
+
};
|
|
2311
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2312
|
+
switch (errorCode) {
|
|
2313
|
+
case "AccessDeniedException":
|
|
2314
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2315
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2316
|
+
case "BadRequestException":
|
|
2317
|
+
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2318
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2319
|
+
case "InternalServerException":
|
|
2320
|
+
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2321
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2322
|
+
case "ResourceNotFoundException":
|
|
2323
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2324
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2325
|
+
case "ThrottlingException":
|
|
2326
|
+
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2327
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2328
|
+
default:
|
|
2329
|
+
const parsedBody = parsedOutput.body;
|
|
2330
|
+
return throwDefaultError({
|
|
2331
|
+
output,
|
|
2332
|
+
parsedBody,
|
|
2333
|
+
errorCode,
|
|
2334
|
+
});
|
|
2335
|
+
}
|
|
2336
|
+
};
|
|
1897
2337
|
export const de_ListDomainsCommand = async (output, context) => {
|
|
1898
2338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1899
2339
|
return de_ListDomainsCommandError(output, context);
|
|
@@ -2567,6 +3007,59 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2567
3007
|
});
|
|
2568
3008
|
}
|
|
2569
3009
|
};
|
|
3010
|
+
export const de_UpdateCalculatedAttributeDefinitionCommand = async (output, context) => {
|
|
3011
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3012
|
+
return de_UpdateCalculatedAttributeDefinitionCommandError(output, context);
|
|
3013
|
+
}
|
|
3014
|
+
const contents = map({
|
|
3015
|
+
$metadata: deserializeMetadata(output),
|
|
3016
|
+
});
|
|
3017
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3018
|
+
const doc = take(data, {
|
|
3019
|
+
AttributeDetails: _json,
|
|
3020
|
+
CalculatedAttributeName: __expectString,
|
|
3021
|
+
Conditions: _json,
|
|
3022
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3023
|
+
Description: __expectString,
|
|
3024
|
+
DisplayName: __expectString,
|
|
3025
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3026
|
+
Statistic: __expectString,
|
|
3027
|
+
Tags: _json,
|
|
3028
|
+
});
|
|
3029
|
+
Object.assign(contents, doc);
|
|
3030
|
+
return contents;
|
|
3031
|
+
};
|
|
3032
|
+
const de_UpdateCalculatedAttributeDefinitionCommandError = async (output, context) => {
|
|
3033
|
+
const parsedOutput = {
|
|
3034
|
+
...output,
|
|
3035
|
+
body: await parseErrorBody(output.body, context),
|
|
3036
|
+
};
|
|
3037
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3038
|
+
switch (errorCode) {
|
|
3039
|
+
case "AccessDeniedException":
|
|
3040
|
+
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
3041
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3042
|
+
case "BadRequestException":
|
|
3043
|
+
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
3044
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3045
|
+
case "InternalServerException":
|
|
3046
|
+
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
3047
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3048
|
+
case "ResourceNotFoundException":
|
|
3049
|
+
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
3050
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3051
|
+
case "ThrottlingException":
|
|
3052
|
+
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
3053
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3054
|
+
default:
|
|
3055
|
+
const parsedBody = parsedOutput.body;
|
|
3056
|
+
return throwDefaultError({
|
|
3057
|
+
output,
|
|
3058
|
+
parsedBody,
|
|
3059
|
+
errorCode,
|
|
3060
|
+
});
|
|
3061
|
+
}
|
|
3062
|
+
};
|
|
2570
3063
|
export const de_UpdateDomainCommand = async (output, context) => {
|
|
2571
3064
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2572
3065
|
return de_UpdateDomainCommandError(output, context);
|
|
@@ -2822,6 +3315,14 @@ const de_AutoMerging = (output, context) => {
|
|
|
2822
3315
|
MinAllowedConfidenceScoreForMerging: __limitedParseDouble,
|
|
2823
3316
|
});
|
|
2824
3317
|
};
|
|
3318
|
+
const de_CalculatedAttributeDefinitionsList = (output, context) => {
|
|
3319
|
+
const retVal = (output || [])
|
|
3320
|
+
.filter((e) => e != null)
|
|
3321
|
+
.map((entry) => {
|
|
3322
|
+
return de_ListCalculatedAttributeDefinitionItem(entry, context);
|
|
3323
|
+
});
|
|
3324
|
+
return retVal;
|
|
3325
|
+
};
|
|
2825
3326
|
const de_DomainList = (output, context) => {
|
|
2826
3327
|
const retVal = (output || [])
|
|
2827
3328
|
.filter((e) => e != null)
|
|
@@ -2858,6 +3359,16 @@ const de_IntegrationList = (output, context) => {
|
|
|
2858
3359
|
});
|
|
2859
3360
|
return retVal;
|
|
2860
3361
|
};
|
|
3362
|
+
const de_ListCalculatedAttributeDefinitionItem = (output, context) => {
|
|
3363
|
+
return take(output, {
|
|
3364
|
+
CalculatedAttributeName: __expectString,
|
|
3365
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3366
|
+
Description: __expectString,
|
|
3367
|
+
DisplayName: __expectString,
|
|
3368
|
+
LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3369
|
+
Tags: _json,
|
|
3370
|
+
});
|
|
3371
|
+
};
|
|
2861
3372
|
const de_ListDomainItem = (output, context) => {
|
|
2862
3373
|
return take(output, {
|
|
2863
3374
|
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|