@aws-sdk/client-connectcampaigns 3.150.0 → 3.159.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +15 -0
- package/dist-es/protocols/Aws_restJson1.js +40 -20
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.159.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.158.0...v3.159.0) (2022-08-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-connectcampaigns
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.154.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.153.0...v3.154.0) (2022-08-19)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-connectcampaigns
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.152.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.151.0...v3.152.0) (2022-08-17)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **client-connectcampaigns:** Updated exceptions for Amazon Connect Outbound Campaign api's. ([e924bbe](https://github.com/aws/aws-sdk-js-v3/commit/e924bbe7c7cb3a7b34a17b282b13bed32b898ea1))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-connectcampaigns
|
|
@@ -713,6 +713,9 @@ const deserializeAws_restJson1GetCampaignStateCommandError = async (output, cont
|
|
|
713
713
|
case "ThrottlingException":
|
|
714
714
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
715
715
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
716
|
+
case "ValidationException":
|
|
717
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
718
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
716
719
|
default:
|
|
717
720
|
const parsedBody = parsedOutput.body;
|
|
718
721
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -980,6 +983,9 @@ const deserializeAws_restJson1PauseCampaignCommandError = async (output, context
|
|
|
980
983
|
case "ThrottlingException":
|
|
981
984
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
982
985
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
986
|
+
case "ValidationException":
|
|
987
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
988
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
983
989
|
default:
|
|
984
990
|
const parsedBody = parsedOutput.body;
|
|
985
991
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1081,6 +1087,9 @@ const deserializeAws_restJson1ResumeCampaignCommandError = async (output, contex
|
|
|
1081
1087
|
case "ThrottlingException":
|
|
1082
1088
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1083
1089
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1090
|
+
case "ValidationException":
|
|
1091
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1092
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1084
1093
|
default:
|
|
1085
1094
|
const parsedBody = parsedOutput.body;
|
|
1086
1095
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1127,6 +1136,9 @@ const deserializeAws_restJson1StartCampaignCommandError = async (output, context
|
|
|
1127
1136
|
case "ThrottlingException":
|
|
1128
1137
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1129
1138
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1139
|
+
case "ValidationException":
|
|
1140
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1141
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1130
1142
|
default:
|
|
1131
1143
|
const parsedBody = parsedOutput.body;
|
|
1132
1144
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1222,6 +1234,9 @@ const deserializeAws_restJson1StopCampaignCommandError = async (output, context)
|
|
|
1222
1234
|
case "ThrottlingException":
|
|
1223
1235
|
case "com.amazonaws.connectcampaigns#ThrottlingException":
|
|
1224
1236
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1237
|
+
case "ValidationException":
|
|
1238
|
+
case "com.amazonaws.connectcampaigns#ValidationException":
|
|
1239
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1225
1240
|
default:
|
|
1226
1241
|
const parsedBody = parsedOutput.body;
|
|
1227
1242
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -932,8 +932,10 @@ var deserializeAws_restJson1GetCampaignStateCommandError = function (output, con
|
|
|
932
932
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": return [3, 6];
|
|
933
933
|
case "ThrottlingException": return [3, 8];
|
|
934
934
|
case "com.amazonaws.connectcampaigns#ThrottlingException": return [3, 8];
|
|
935
|
+
case "ValidationException": return [3, 10];
|
|
936
|
+
case "com.amazonaws.connectcampaigns#ValidationException": return [3, 10];
|
|
935
937
|
}
|
|
936
|
-
return [3,
|
|
938
|
+
return [3, 12];
|
|
937
939
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
938
940
|
case 3: throw _d.sent();
|
|
939
941
|
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
@@ -942,7 +944,9 @@ var deserializeAws_restJson1GetCampaignStateCommandError = function (output, con
|
|
|
942
944
|
case 7: throw _d.sent();
|
|
943
945
|
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
944
946
|
case 9: throw _d.sent();
|
|
945
|
-
case 10:
|
|
947
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
948
|
+
case 11: throw _d.sent();
|
|
949
|
+
case 12:
|
|
946
950
|
parsedBody = parsedOutput.body;
|
|
947
951
|
throwDefaultError({
|
|
948
952
|
output: output,
|
|
@@ -950,8 +954,8 @@ var deserializeAws_restJson1GetCampaignStateCommandError = function (output, con
|
|
|
950
954
|
exceptionCtor: __BaseException,
|
|
951
955
|
errorCode: errorCode,
|
|
952
956
|
});
|
|
953
|
-
_d.label =
|
|
954
|
-
case
|
|
957
|
+
_d.label = 13;
|
|
958
|
+
case 13: return [2];
|
|
955
959
|
}
|
|
956
960
|
});
|
|
957
961
|
}); };
|
|
@@ -1345,8 +1349,10 @@ var deserializeAws_restJson1PauseCampaignCommandError = function (output, contex
|
|
|
1345
1349
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": return [3, 10];
|
|
1346
1350
|
case "ThrottlingException": return [3, 12];
|
|
1347
1351
|
case "com.amazonaws.connectcampaigns#ThrottlingException": return [3, 12];
|
|
1352
|
+
case "ValidationException": return [3, 14];
|
|
1353
|
+
case "com.amazonaws.connectcampaigns#ValidationException": return [3, 14];
|
|
1348
1354
|
}
|
|
1349
|
-
return [3,
|
|
1355
|
+
return [3, 16];
|
|
1350
1356
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1351
1357
|
case 3: throw _d.sent();
|
|
1352
1358
|
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
@@ -1359,7 +1365,9 @@ var deserializeAws_restJson1PauseCampaignCommandError = function (output, contex
|
|
|
1359
1365
|
case 11: throw _d.sent();
|
|
1360
1366
|
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1361
1367
|
case 13: throw _d.sent();
|
|
1362
|
-
case 14:
|
|
1368
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1369
|
+
case 15: throw _d.sent();
|
|
1370
|
+
case 16:
|
|
1363
1371
|
parsedBody = parsedOutput.body;
|
|
1364
1372
|
throwDefaultError({
|
|
1365
1373
|
output: output,
|
|
@@ -1367,8 +1375,8 @@ var deserializeAws_restJson1PauseCampaignCommandError = function (output, contex
|
|
|
1367
1375
|
exceptionCtor: __BaseException,
|
|
1368
1376
|
errorCode: errorCode,
|
|
1369
1377
|
});
|
|
1370
|
-
_d.label =
|
|
1371
|
-
case
|
|
1378
|
+
_d.label = 17;
|
|
1379
|
+
case 17: return [2];
|
|
1372
1380
|
}
|
|
1373
1381
|
});
|
|
1374
1382
|
}); };
|
|
@@ -1499,8 +1507,10 @@ var deserializeAws_restJson1ResumeCampaignCommandError = function (output, conte
|
|
|
1499
1507
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": return [3, 10];
|
|
1500
1508
|
case "ThrottlingException": return [3, 12];
|
|
1501
1509
|
case "com.amazonaws.connectcampaigns#ThrottlingException": return [3, 12];
|
|
1510
|
+
case "ValidationException": return [3, 14];
|
|
1511
|
+
case "com.amazonaws.connectcampaigns#ValidationException": return [3, 14];
|
|
1502
1512
|
}
|
|
1503
|
-
return [3,
|
|
1513
|
+
return [3, 16];
|
|
1504
1514
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1505
1515
|
case 3: throw _d.sent();
|
|
1506
1516
|
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
@@ -1513,7 +1523,9 @@ var deserializeAws_restJson1ResumeCampaignCommandError = function (output, conte
|
|
|
1513
1523
|
case 11: throw _d.sent();
|
|
1514
1524
|
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1515
1525
|
case 13: throw _d.sent();
|
|
1516
|
-
case 14:
|
|
1526
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1527
|
+
case 15: throw _d.sent();
|
|
1528
|
+
case 16:
|
|
1517
1529
|
parsedBody = parsedOutput.body;
|
|
1518
1530
|
throwDefaultError({
|
|
1519
1531
|
output: output,
|
|
@@ -1521,8 +1533,8 @@ var deserializeAws_restJson1ResumeCampaignCommandError = function (output, conte
|
|
|
1521
1533
|
exceptionCtor: __BaseException,
|
|
1522
1534
|
errorCode: errorCode,
|
|
1523
1535
|
});
|
|
1524
|
-
_d.label =
|
|
1525
|
-
case
|
|
1536
|
+
_d.label = 17;
|
|
1537
|
+
case 17: return [2];
|
|
1526
1538
|
}
|
|
1527
1539
|
});
|
|
1528
1540
|
}); };
|
|
@@ -1570,8 +1582,10 @@ var deserializeAws_restJson1StartCampaignCommandError = function (output, contex
|
|
|
1570
1582
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": return [3, 10];
|
|
1571
1583
|
case "ThrottlingException": return [3, 12];
|
|
1572
1584
|
case "com.amazonaws.connectcampaigns#ThrottlingException": return [3, 12];
|
|
1585
|
+
case "ValidationException": return [3, 14];
|
|
1586
|
+
case "com.amazonaws.connectcampaigns#ValidationException": return [3, 14];
|
|
1573
1587
|
}
|
|
1574
|
-
return [3,
|
|
1588
|
+
return [3, 16];
|
|
1575
1589
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1576
1590
|
case 3: throw _d.sent();
|
|
1577
1591
|
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
@@ -1584,7 +1598,9 @@ var deserializeAws_restJson1StartCampaignCommandError = function (output, contex
|
|
|
1584
1598
|
case 11: throw _d.sent();
|
|
1585
1599
|
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1586
1600
|
case 13: throw _d.sent();
|
|
1587
|
-
case 14:
|
|
1601
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1602
|
+
case 15: throw _d.sent();
|
|
1603
|
+
case 16:
|
|
1588
1604
|
parsedBody = parsedOutput.body;
|
|
1589
1605
|
throwDefaultError({
|
|
1590
1606
|
output: output,
|
|
@@ -1592,8 +1608,8 @@ var deserializeAws_restJson1StartCampaignCommandError = function (output, contex
|
|
|
1592
1608
|
exceptionCtor: __BaseException,
|
|
1593
1609
|
errorCode: errorCode,
|
|
1594
1610
|
});
|
|
1595
|
-
_d.label =
|
|
1596
|
-
case
|
|
1611
|
+
_d.label = 17;
|
|
1612
|
+
case 17: return [2];
|
|
1597
1613
|
}
|
|
1598
1614
|
});
|
|
1599
1615
|
}); };
|
|
@@ -1717,8 +1733,10 @@ var deserializeAws_restJson1StopCampaignCommandError = function (output, context
|
|
|
1717
1733
|
case "com.amazonaws.connectcampaigns#ResourceNotFoundException": return [3, 10];
|
|
1718
1734
|
case "ThrottlingException": return [3, 12];
|
|
1719
1735
|
case "com.amazonaws.connectcampaigns#ThrottlingException": return [3, 12];
|
|
1736
|
+
case "ValidationException": return [3, 14];
|
|
1737
|
+
case "com.amazonaws.connectcampaigns#ValidationException": return [3, 14];
|
|
1720
1738
|
}
|
|
1721
|
-
return [3,
|
|
1739
|
+
return [3, 16];
|
|
1722
1740
|
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1723
1741
|
case 3: throw _d.sent();
|
|
1724
1742
|
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
@@ -1731,7 +1749,9 @@ var deserializeAws_restJson1StopCampaignCommandError = function (output, context
|
|
|
1731
1749
|
case 11: throw _d.sent();
|
|
1732
1750
|
case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1733
1751
|
case 13: throw _d.sent();
|
|
1734
|
-
case 14:
|
|
1752
|
+
case 14: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1753
|
+
case 15: throw _d.sent();
|
|
1754
|
+
case 16:
|
|
1735
1755
|
parsedBody = parsedOutput.body;
|
|
1736
1756
|
throwDefaultError({
|
|
1737
1757
|
output: output,
|
|
@@ -1739,8 +1759,8 @@ var deserializeAws_restJson1StopCampaignCommandError = function (output, context
|
|
|
1739
1759
|
exceptionCtor: __BaseException,
|
|
1740
1760
|
errorCode: errorCode,
|
|
1741
1761
|
});
|
|
1742
|
-
_d.label =
|
|
1743
|
-
case
|
|
1762
|
+
_d.label = 17;
|
|
1763
|
+
case 17: return [2];
|
|
1744
1764
|
}
|
|
1745
1765
|
});
|
|
1746
1766
|
}); };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-connectcampaigns",
|
|
3
3
|
"description": "AWS SDK for JavaScript Connectcampaigns Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.159.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.159.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.159.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.159.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.159.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.159.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.159.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.159.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.159.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.159.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.159.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.159.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.159.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.159.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.159.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.159.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.159.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.159.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.159.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.159.0",
|
|
40
|
+
"@aws-sdk/types": "3.159.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.159.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
+
"@aws-sdk/util-body-length-browser": "3.154.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.159.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.159.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.159.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.159.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|