@aws-sdk/client-connect 3.104.0 → 3.110.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 +28 -0
- package/dist-cjs/Connect.js +15 -0
- package/dist-cjs/ConnectClient.js +2 -0
- package/dist-cjs/commands/GetCurrentUserDataCommand.js +36 -0
- package/dist-cjs/commands/ListQueuesCommand.js +3 -3
- package/dist-cjs/commands/ListQuickConnectsCommand.js +3 -3
- package/dist-cjs/commands/ListRoutingProfileQueuesCommand.js +3 -3
- package/dist-cjs/commands/ListRoutingProfilesCommand.js +3 -3
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +105 -98
- package/dist-cjs/models/models_1.js +74 -3
- package/dist-cjs/pagination/GetCurrentUserDataPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +244 -5
- package/dist-es/Connect.js +15 -0
- package/dist-es/ConnectClient.js +2 -0
- package/dist-es/commands/GetCurrentUserDataCommand.js +39 -0
- package/dist-es/commands/ListQueuesCommand.js +1 -1
- package/dist-es/commands/ListQuickConnectsCommand.js +1 -1
- package/dist-es/commands/ListRoutingProfileQueuesCommand.js +1 -1
- package/dist-es/commands/ListRoutingProfilesCommand.js +1 -1
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +75 -68
- package/dist-es/models/models_1.js +49 -0
- package/dist-es/pagination/GetCurrentUserDataPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +256 -0
- package/dist-types/Connect.d.ts +7 -0
- package/dist-types/ConnectClient.d.ts +3 -2
- package/dist-types/commands/GetCurrentUserDataCommand.d.ts +35 -0
- package/dist-types/commands/ListQueuesCommand.d.ts +1 -1
- package/dist-types/commands/ListQuickConnectsCommand.d.ts +1 -1
- package/dist-types/commands/ListRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/commands/ListRoutingProfilesCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +344 -370
- package/dist-types/models/models_1.d.ts +266 -30
- package/dist-types/pagination/GetCurrentUserDataPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Connect.d.ts +5 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListQuickConnectsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRoutingProfileQueuesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRoutingProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +212 -253
- package/dist-types/ts3.4/models/models_1.d.ts +155 -28
- package/dist-types/ts3.4/pagination/GetCurrentUserDataPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +29 -28
|
@@ -14,6 +14,41 @@ var AccessDeniedException = (function (_super) {
|
|
|
14
14
|
return AccessDeniedException;
|
|
15
15
|
}(__BaseException));
|
|
16
16
|
export { AccessDeniedException };
|
|
17
|
+
export var ContactState;
|
|
18
|
+
(function (ContactState) {
|
|
19
|
+
ContactState["CONNECTED"] = "CONNECTED";
|
|
20
|
+
ContactState["CONNECTED_ONHOLD"] = "CONNECTED_ONHOLD";
|
|
21
|
+
ContactState["CONNECTING"] = "CONNECTING";
|
|
22
|
+
ContactState["ENDED"] = "ENDED";
|
|
23
|
+
ContactState["ERROR"] = "ERROR";
|
|
24
|
+
ContactState["INCOMING"] = "INCOMING";
|
|
25
|
+
ContactState["MISSED"] = "MISSED";
|
|
26
|
+
ContactState["PENDING"] = "PENDING";
|
|
27
|
+
ContactState["REJECTED"] = "REJECTED";
|
|
28
|
+
})(ContactState || (ContactState = {}));
|
|
29
|
+
export var Channel;
|
|
30
|
+
(function (Channel) {
|
|
31
|
+
Channel["CHAT"] = "CHAT";
|
|
32
|
+
Channel["TASK"] = "TASK";
|
|
33
|
+
Channel["VOICE"] = "VOICE";
|
|
34
|
+
})(Channel || (Channel = {}));
|
|
35
|
+
export var ContactInitiationMethod;
|
|
36
|
+
(function (ContactInitiationMethod) {
|
|
37
|
+
ContactInitiationMethod["API"] = "API";
|
|
38
|
+
ContactInitiationMethod["CALLBACK"] = "CALLBACK";
|
|
39
|
+
ContactInitiationMethod["INBOUND"] = "INBOUND";
|
|
40
|
+
ContactInitiationMethod["OUTBOUND"] = "OUTBOUND";
|
|
41
|
+
ContactInitiationMethod["QUEUE_TRANSFER"] = "QUEUE_TRANSFER";
|
|
42
|
+
ContactInitiationMethod["TRANSFER"] = "TRANSFER";
|
|
43
|
+
})(ContactInitiationMethod || (ContactInitiationMethod = {}));
|
|
44
|
+
export var QueueReference;
|
|
45
|
+
(function (QueueReference) {
|
|
46
|
+
QueueReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
47
|
+
})(QueueReference || (QueueReference = {}));
|
|
48
|
+
export var AgentContactReference;
|
|
49
|
+
(function (AgentContactReference) {
|
|
50
|
+
AgentContactReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
51
|
+
})(AgentContactReference || (AgentContactReference = {}));
|
|
17
52
|
export var AgentInfo;
|
|
18
53
|
(function (AgentInfo) {
|
|
19
54
|
AgentInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -33,6 +68,10 @@ export var AgentStatus;
|
|
|
33
68
|
(function (AgentStatus) {
|
|
34
69
|
AgentStatus.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
35
70
|
})(AgentStatus || (AgentStatus = {}));
|
|
71
|
+
export var AgentStatusReference;
|
|
72
|
+
(function (AgentStatusReference) {
|
|
73
|
+
AgentStatusReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
74
|
+
})(AgentStatusReference || (AgentStatusReference = {}));
|
|
36
75
|
export var AgentStatusSummary;
|
|
37
76
|
(function (AgentStatusSummary) {
|
|
38
77
|
AgentStatusSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -258,12 +297,6 @@ export var AssociateQueueQuickConnectsRequest;
|
|
|
258
297
|
(function (AssociateQueueQuickConnectsRequest) {
|
|
259
298
|
AssociateQueueQuickConnectsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
260
299
|
})(AssociateQueueQuickConnectsRequest || (AssociateQueueQuickConnectsRequest = {}));
|
|
261
|
-
export var Channel;
|
|
262
|
-
(function (Channel) {
|
|
263
|
-
Channel["CHAT"] = "CHAT";
|
|
264
|
-
Channel["TASK"] = "TASK";
|
|
265
|
-
Channel["VOICE"] = "VOICE";
|
|
266
|
-
})(Channel || (Channel = {}));
|
|
267
300
|
export var RoutingProfileQueueReference;
|
|
268
301
|
(function (RoutingProfileQueueReference) {
|
|
269
302
|
RoutingProfileQueueReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -748,15 +781,6 @@ export var DescribeContactRequest;
|
|
|
748
781
|
(function (DescribeContactRequest) {
|
|
749
782
|
DescribeContactRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
750
783
|
})(DescribeContactRequest || (DescribeContactRequest = {}));
|
|
751
|
-
export var ContactInitiationMethod;
|
|
752
|
-
(function (ContactInitiationMethod) {
|
|
753
|
-
ContactInitiationMethod["API"] = "API";
|
|
754
|
-
ContactInitiationMethod["CALLBACK"] = "CALLBACK";
|
|
755
|
-
ContactInitiationMethod["INBOUND"] = "INBOUND";
|
|
756
|
-
ContactInitiationMethod["OUTBOUND"] = "OUTBOUND";
|
|
757
|
-
ContactInitiationMethod["QUEUE_TRANSFER"] = "QUEUE_TRANSFER";
|
|
758
|
-
ContactInitiationMethod["TRANSFER"] = "TRANSFER";
|
|
759
|
-
})(ContactInitiationMethod || (ContactInitiationMethod = {}));
|
|
760
784
|
export var QueueInfo;
|
|
761
785
|
(function (QueueInfo) {
|
|
762
786
|
QueueInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1353,10 +1377,6 @@ export var CurrentMetricData;
|
|
|
1353
1377
|
(function (CurrentMetricData) {
|
|
1354
1378
|
CurrentMetricData.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1355
1379
|
})(CurrentMetricData || (CurrentMetricData = {}));
|
|
1356
|
-
export var QueueReference;
|
|
1357
|
-
(function (QueueReference) {
|
|
1358
|
-
QueueReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1359
|
-
})(QueueReference || (QueueReference = {}));
|
|
1360
1380
|
export var Dimensions;
|
|
1361
1381
|
(function (Dimensions) {
|
|
1362
1382
|
Dimensions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1369,6 +1389,42 @@ export var GetCurrentMetricDataResponse;
|
|
|
1369
1389
|
(function (GetCurrentMetricDataResponse) {
|
|
1370
1390
|
GetCurrentMetricDataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1371
1391
|
})(GetCurrentMetricDataResponse || (GetCurrentMetricDataResponse = {}));
|
|
1392
|
+
export var ContactFilter;
|
|
1393
|
+
(function (ContactFilter) {
|
|
1394
|
+
ContactFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1395
|
+
})(ContactFilter || (ContactFilter = {}));
|
|
1396
|
+
export var UserDataFilters;
|
|
1397
|
+
(function (UserDataFilters) {
|
|
1398
|
+
UserDataFilters.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1399
|
+
})(UserDataFilters || (UserDataFilters = {}));
|
|
1400
|
+
export var GetCurrentUserDataRequest;
|
|
1401
|
+
(function (GetCurrentUserDataRequest) {
|
|
1402
|
+
GetCurrentUserDataRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1403
|
+
})(GetCurrentUserDataRequest || (GetCurrentUserDataRequest = {}));
|
|
1404
|
+
export var HierarchyGroupSummaryReference;
|
|
1405
|
+
(function (HierarchyGroupSummaryReference) {
|
|
1406
|
+
HierarchyGroupSummaryReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1407
|
+
})(HierarchyGroupSummaryReference || (HierarchyGroupSummaryReference = {}));
|
|
1408
|
+
export var HierarchyPathReference;
|
|
1409
|
+
(function (HierarchyPathReference) {
|
|
1410
|
+
HierarchyPathReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1411
|
+
})(HierarchyPathReference || (HierarchyPathReference = {}));
|
|
1412
|
+
export var RoutingProfileReference;
|
|
1413
|
+
(function (RoutingProfileReference) {
|
|
1414
|
+
RoutingProfileReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1415
|
+
})(RoutingProfileReference || (RoutingProfileReference = {}));
|
|
1416
|
+
export var UserReference;
|
|
1417
|
+
(function (UserReference) {
|
|
1418
|
+
UserReference.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1419
|
+
})(UserReference || (UserReference = {}));
|
|
1420
|
+
export var UserData;
|
|
1421
|
+
(function (UserData) {
|
|
1422
|
+
UserData.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1423
|
+
})(UserData || (UserData = {}));
|
|
1424
|
+
export var GetCurrentUserDataResponse;
|
|
1425
|
+
(function (GetCurrentUserDataResponse) {
|
|
1426
|
+
GetCurrentUserDataResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1427
|
+
})(GetCurrentUserDataResponse || (GetCurrentUserDataResponse = {}));
|
|
1372
1428
|
export var GetFederationTokenRequest;
|
|
1373
1429
|
(function (GetFederationTokenRequest) {
|
|
1374
1430
|
GetFederationTokenRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1734,52 +1790,3 @@ export var ListQueueQuickConnectsResponse;
|
|
|
1734
1790
|
(function (ListQueueQuickConnectsResponse) {
|
|
1735
1791
|
ListQueueQuickConnectsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1736
1792
|
})(ListQueueQuickConnectsResponse || (ListQueueQuickConnectsResponse = {}));
|
|
1737
|
-
export var QueueType;
|
|
1738
|
-
(function (QueueType) {
|
|
1739
|
-
QueueType["AGENT"] = "AGENT";
|
|
1740
|
-
QueueType["STANDARD"] = "STANDARD";
|
|
1741
|
-
})(QueueType || (QueueType = {}));
|
|
1742
|
-
export var ListQueuesRequest;
|
|
1743
|
-
(function (ListQueuesRequest) {
|
|
1744
|
-
ListQueuesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1745
|
-
})(ListQueuesRequest || (ListQueuesRequest = {}));
|
|
1746
|
-
export var QueueSummary;
|
|
1747
|
-
(function (QueueSummary) {
|
|
1748
|
-
QueueSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1749
|
-
})(QueueSummary || (QueueSummary = {}));
|
|
1750
|
-
export var ListQueuesResponse;
|
|
1751
|
-
(function (ListQueuesResponse) {
|
|
1752
|
-
ListQueuesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1753
|
-
})(ListQueuesResponse || (ListQueuesResponse = {}));
|
|
1754
|
-
export var ListQuickConnectsRequest;
|
|
1755
|
-
(function (ListQuickConnectsRequest) {
|
|
1756
|
-
ListQuickConnectsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1757
|
-
})(ListQuickConnectsRequest || (ListQuickConnectsRequest = {}));
|
|
1758
|
-
export var ListQuickConnectsResponse;
|
|
1759
|
-
(function (ListQuickConnectsResponse) {
|
|
1760
|
-
ListQuickConnectsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1761
|
-
})(ListQuickConnectsResponse || (ListQuickConnectsResponse = {}));
|
|
1762
|
-
export var ListRoutingProfileQueuesRequest;
|
|
1763
|
-
(function (ListRoutingProfileQueuesRequest) {
|
|
1764
|
-
ListRoutingProfileQueuesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1765
|
-
})(ListRoutingProfileQueuesRequest || (ListRoutingProfileQueuesRequest = {}));
|
|
1766
|
-
export var RoutingProfileQueueConfigSummary;
|
|
1767
|
-
(function (RoutingProfileQueueConfigSummary) {
|
|
1768
|
-
RoutingProfileQueueConfigSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1769
|
-
})(RoutingProfileQueueConfigSummary || (RoutingProfileQueueConfigSummary = {}));
|
|
1770
|
-
export var ListRoutingProfileQueuesResponse;
|
|
1771
|
-
(function (ListRoutingProfileQueuesResponse) {
|
|
1772
|
-
ListRoutingProfileQueuesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1773
|
-
})(ListRoutingProfileQueuesResponse || (ListRoutingProfileQueuesResponse = {}));
|
|
1774
|
-
export var ListRoutingProfilesRequest;
|
|
1775
|
-
(function (ListRoutingProfilesRequest) {
|
|
1776
|
-
ListRoutingProfilesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1777
|
-
})(ListRoutingProfilesRequest || (ListRoutingProfilesRequest = {}));
|
|
1778
|
-
export var RoutingProfileSummary;
|
|
1779
|
-
(function (RoutingProfileSummary) {
|
|
1780
|
-
RoutingProfileSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1781
|
-
})(RoutingProfileSummary || (RoutingProfileSummary = {}));
|
|
1782
|
-
export var ListRoutingProfilesResponse;
|
|
1783
|
-
(function (ListRoutingProfilesResponse) {
|
|
1784
|
-
ListRoutingProfilesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1785
|
-
})(ListRoutingProfilesResponse || (ListRoutingProfilesResponse = {}));
|
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { ConnectServiceException as __BaseException } from "./ConnectServiceException";
|
|
3
|
+
export var QueueType;
|
|
4
|
+
(function (QueueType) {
|
|
5
|
+
QueueType["AGENT"] = "AGENT";
|
|
6
|
+
QueueType["STANDARD"] = "STANDARD";
|
|
7
|
+
})(QueueType || (QueueType = {}));
|
|
8
|
+
export var ListQueuesRequest;
|
|
9
|
+
(function (ListQueuesRequest) {
|
|
10
|
+
ListQueuesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
11
|
+
})(ListQueuesRequest || (ListQueuesRequest = {}));
|
|
12
|
+
export var QueueSummary;
|
|
13
|
+
(function (QueueSummary) {
|
|
14
|
+
QueueSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
15
|
+
})(QueueSummary || (QueueSummary = {}));
|
|
16
|
+
export var ListQueuesResponse;
|
|
17
|
+
(function (ListQueuesResponse) {
|
|
18
|
+
ListQueuesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
19
|
+
})(ListQueuesResponse || (ListQueuesResponse = {}));
|
|
20
|
+
export var ListQuickConnectsRequest;
|
|
21
|
+
(function (ListQuickConnectsRequest) {
|
|
22
|
+
ListQuickConnectsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
23
|
+
})(ListQuickConnectsRequest || (ListQuickConnectsRequest = {}));
|
|
24
|
+
export var ListQuickConnectsResponse;
|
|
25
|
+
(function (ListQuickConnectsResponse) {
|
|
26
|
+
ListQuickConnectsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
27
|
+
})(ListQuickConnectsResponse || (ListQuickConnectsResponse = {}));
|
|
28
|
+
export var ListRoutingProfileQueuesRequest;
|
|
29
|
+
(function (ListRoutingProfileQueuesRequest) {
|
|
30
|
+
ListRoutingProfileQueuesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
31
|
+
})(ListRoutingProfileQueuesRequest || (ListRoutingProfileQueuesRequest = {}));
|
|
32
|
+
export var RoutingProfileQueueConfigSummary;
|
|
33
|
+
(function (RoutingProfileQueueConfigSummary) {
|
|
34
|
+
RoutingProfileQueueConfigSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
35
|
+
})(RoutingProfileQueueConfigSummary || (RoutingProfileQueueConfigSummary = {}));
|
|
36
|
+
export var ListRoutingProfileQueuesResponse;
|
|
37
|
+
(function (ListRoutingProfileQueuesResponse) {
|
|
38
|
+
ListRoutingProfileQueuesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
39
|
+
})(ListRoutingProfileQueuesResponse || (ListRoutingProfileQueuesResponse = {}));
|
|
40
|
+
export var ListRoutingProfilesRequest;
|
|
41
|
+
(function (ListRoutingProfilesRequest) {
|
|
42
|
+
ListRoutingProfilesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
43
|
+
})(ListRoutingProfilesRequest || (ListRoutingProfilesRequest = {}));
|
|
44
|
+
export var RoutingProfileSummary;
|
|
45
|
+
(function (RoutingProfileSummary) {
|
|
46
|
+
RoutingProfileSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
47
|
+
})(RoutingProfileSummary || (RoutingProfileSummary = {}));
|
|
48
|
+
export var ListRoutingProfilesResponse;
|
|
49
|
+
(function (ListRoutingProfilesResponse) {
|
|
50
|
+
ListRoutingProfilesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
51
|
+
})(ListRoutingProfilesResponse || (ListRoutingProfilesResponse = {}));
|
|
3
52
|
export var ListSecurityKeysRequest;
|
|
4
53
|
(function (ListSecurityKeysRequest) {
|
|
5
54
|
ListSecurityKeysRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { GetCurrentUserDataCommand, } from "../commands/GetCurrentUserDataCommand";
|
|
3
|
+
import { Connect } from "../Connect";
|
|
4
|
+
import { ConnectClient } from "../ConnectClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetCurrentUserDataCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.getCurrentUserData.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateGetCurrentUserData(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateGetCurrentUserData_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Connect)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ConnectClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -2588,6 +2588,41 @@ export var serializeAws_restJson1GetCurrentMetricDataCommand = function (input,
|
|
|
2588
2588
|
}
|
|
2589
2589
|
});
|
|
2590
2590
|
}); };
|
|
2591
|
+
export var serializeAws_restJson1GetCurrentUserDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2592
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
2593
|
+
return __generator(this, function (_c) {
|
|
2594
|
+
switch (_c.label) {
|
|
2595
|
+
case 0: return [4, context.endpoint()];
|
|
2596
|
+
case 1:
|
|
2597
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2598
|
+
headers = {
|
|
2599
|
+
"content-type": "application/json",
|
|
2600
|
+
};
|
|
2601
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/metrics/userdata/{InstanceId}";
|
|
2602
|
+
if (input.InstanceId !== undefined) {
|
|
2603
|
+
labelValue = input.InstanceId;
|
|
2604
|
+
if (labelValue.length <= 0) {
|
|
2605
|
+
throw new Error("Empty value provided for input HTTP label: InstanceId.");
|
|
2606
|
+
}
|
|
2607
|
+
resolvedPath = resolvedPath.replace("{InstanceId}", __extendedEncodeURIComponent(labelValue));
|
|
2608
|
+
}
|
|
2609
|
+
else {
|
|
2610
|
+
throw new Error("No value provided for input HTTP label: InstanceId.");
|
|
2611
|
+
}
|
|
2612
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters !== undefined &&
|
|
2613
|
+
input.Filters !== null && { Filters: serializeAws_restJson1UserDataFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
2614
|
+
return [2, new __HttpRequest({
|
|
2615
|
+
protocol: protocol,
|
|
2616
|
+
hostname: hostname,
|
|
2617
|
+
port: port,
|
|
2618
|
+
method: "POST",
|
|
2619
|
+
headers: headers,
|
|
2620
|
+
path: resolvedPath,
|
|
2621
|
+
body: body,
|
|
2622
|
+
})];
|
|
2623
|
+
}
|
|
2624
|
+
});
|
|
2625
|
+
}); };
|
|
2591
2626
|
export var serializeAws_restJson1GetFederationTokenCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2592
2627
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
2593
2628
|
return __generator(this, function (_c) {
|
|
@@ -10574,6 +10609,82 @@ var deserializeAws_restJson1GetCurrentMetricDataCommandError = function (output,
|
|
|
10574
10609
|
}
|
|
10575
10610
|
});
|
|
10576
10611
|
}); };
|
|
10612
|
+
export var deserializeAws_restJson1GetCurrentUserDataCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10613
|
+
var contents, data, _a, _b;
|
|
10614
|
+
return __generator(this, function (_c) {
|
|
10615
|
+
switch (_c.label) {
|
|
10616
|
+
case 0:
|
|
10617
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10618
|
+
return [2, deserializeAws_restJson1GetCurrentUserDataCommandError(output, context)];
|
|
10619
|
+
}
|
|
10620
|
+
contents = {
|
|
10621
|
+
$metadata: deserializeMetadata(output),
|
|
10622
|
+
NextToken: undefined,
|
|
10623
|
+
UserDataList: undefined,
|
|
10624
|
+
};
|
|
10625
|
+
_a = __expectNonNull;
|
|
10626
|
+
_b = __expectObject;
|
|
10627
|
+
return [4, parseBody(output.body, context)];
|
|
10628
|
+
case 1:
|
|
10629
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
10630
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
10631
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
10632
|
+
}
|
|
10633
|
+
if (data.UserDataList !== undefined && data.UserDataList !== null) {
|
|
10634
|
+
contents.UserDataList = deserializeAws_restJson1UserDataList(data.UserDataList, context);
|
|
10635
|
+
}
|
|
10636
|
+
return [2, Promise.resolve(contents)];
|
|
10637
|
+
}
|
|
10638
|
+
});
|
|
10639
|
+
}); };
|
|
10640
|
+
var deserializeAws_restJson1GetCurrentUserDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10641
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
10642
|
+
var _c;
|
|
10643
|
+
return __generator(this, function (_d) {
|
|
10644
|
+
switch (_d.label) {
|
|
10645
|
+
case 0:
|
|
10646
|
+
_a = [__assign({}, output)];
|
|
10647
|
+
_c = {};
|
|
10648
|
+
return [4, parseBody(output.body, context)];
|
|
10649
|
+
case 1:
|
|
10650
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
10651
|
+
errorCode = "UnknownError";
|
|
10652
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10653
|
+
_b = errorCode;
|
|
10654
|
+
switch (_b) {
|
|
10655
|
+
case "InternalServiceException": return [3, 2];
|
|
10656
|
+
case "com.amazonaws.connect#InternalServiceException": return [3, 2];
|
|
10657
|
+
case "InvalidParameterException": return [3, 4];
|
|
10658
|
+
case "com.amazonaws.connect#InvalidParameterException": return [3, 4];
|
|
10659
|
+
case "InvalidRequestException": return [3, 6];
|
|
10660
|
+
case "com.amazonaws.connect#InvalidRequestException": return [3, 6];
|
|
10661
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
10662
|
+
case "com.amazonaws.connect#ResourceNotFoundException": return [3, 8];
|
|
10663
|
+
case "ThrottlingException": return [3, 10];
|
|
10664
|
+
case "com.amazonaws.connect#ThrottlingException": return [3, 10];
|
|
10665
|
+
}
|
|
10666
|
+
return [3, 12];
|
|
10667
|
+
case 2: return [4, deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)];
|
|
10668
|
+
case 3: throw _d.sent();
|
|
10669
|
+
case 4: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
10670
|
+
case 5: throw _d.sent();
|
|
10671
|
+
case 6: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
10672
|
+
case 7: throw _d.sent();
|
|
10673
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
10674
|
+
case 9: throw _d.sent();
|
|
10675
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
10676
|
+
case 11: throw _d.sent();
|
|
10677
|
+
case 12:
|
|
10678
|
+
parsedBody = parsedOutput.body;
|
|
10679
|
+
response = new __BaseException({
|
|
10680
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10681
|
+
$fault: "client",
|
|
10682
|
+
$metadata: deserializeMetadata(output),
|
|
10683
|
+
});
|
|
10684
|
+
throw __decorateServiceException(response, parsedBody);
|
|
10685
|
+
}
|
|
10686
|
+
});
|
|
10687
|
+
}); };
|
|
10577
10688
|
export var deserializeAws_restJson1GetFederationTokenCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10578
10689
|
var contents, data, _a, _b;
|
|
10579
10690
|
return __generator(this, function (_c) {
|
|
@@ -16939,6 +17050,12 @@ var serializeAws_restJson1ChatStreamingConfiguration = function (input, context)
|
|
|
16939
17050
|
return __assign({}, (input.StreamingEndpointArn !== undefined &&
|
|
16940
17051
|
input.StreamingEndpointArn !== null && { StreamingEndpointArn: input.StreamingEndpointArn }));
|
|
16941
17052
|
};
|
|
17053
|
+
var serializeAws_restJson1ContactFilter = function (input, context) {
|
|
17054
|
+
return __assign({}, (input.ContactStates !== undefined &&
|
|
17055
|
+
input.ContactStates !== null && {
|
|
17056
|
+
ContactStates: serializeAws_restJson1ContactStates(input.ContactStates, context),
|
|
17057
|
+
}));
|
|
17058
|
+
};
|
|
16942
17059
|
var serializeAws_restJson1ContactReferences = function (input, context) {
|
|
16943
17060
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
16944
17061
|
var _b;
|
|
@@ -16949,6 +17066,16 @@ var serializeAws_restJson1ContactReferences = function (input, context) {
|
|
|
16949
17066
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1Reference(value, context), _b));
|
|
16950
17067
|
}, {});
|
|
16951
17068
|
};
|
|
17069
|
+
var serializeAws_restJson1ContactStates = function (input, context) {
|
|
17070
|
+
return input
|
|
17071
|
+
.filter(function (e) { return e != null; })
|
|
17072
|
+
.map(function (entry) {
|
|
17073
|
+
if (entry === null) {
|
|
17074
|
+
return null;
|
|
17075
|
+
}
|
|
17076
|
+
return entry;
|
|
17077
|
+
});
|
|
17078
|
+
};
|
|
16952
17079
|
var serializeAws_restJson1ControlPlaneTagFilter = function (input, context) {
|
|
16953
17080
|
return __assign(__assign(__assign({}, (input.AndConditions !== undefined &&
|
|
16954
17081
|
input.AndConditions !== null && {
|
|
@@ -17368,6 +17495,13 @@ var serializeAws_restJson1Threshold = function (input, context) {
|
|
|
17368
17495
|
return __assign(__assign({}, (input.Comparison !== undefined && input.Comparison !== null && { Comparison: input.Comparison })), (input.ThresholdValue !== undefined &&
|
|
17369
17496
|
input.ThresholdValue !== null && { ThresholdValue: __serializeFloat(input.ThresholdValue) }));
|
|
17370
17497
|
};
|
|
17498
|
+
var serializeAws_restJson1UserDataFilters = function (input, context) {
|
|
17499
|
+
return __assign(__assign({}, (input.ContactFilter !== undefined &&
|
|
17500
|
+
input.ContactFilter !== null && {
|
|
17501
|
+
ContactFilter: serializeAws_restJson1ContactFilter(input.ContactFilter, context),
|
|
17502
|
+
})), (input.Queues !== undefined &&
|
|
17503
|
+
input.Queues !== null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }));
|
|
17504
|
+
};
|
|
17371
17505
|
var serializeAws_restJson1UserIdentityInfo = function (input, context) {
|
|
17372
17506
|
return __assign(__assign(__assign({}, (input.Email !== undefined && input.Email !== null && { Email: input.Email })), (input.FirstName !== undefined && input.FirstName !== null && { FirstName: input.FirstName })), (input.LastName !== undefined && input.LastName !== null && { LastName: input.LastName }));
|
|
17373
17507
|
};
|
|
@@ -17412,6 +17546,34 @@ var serializeAws_restJson1VoiceRecordingConfiguration = function (input, context
|
|
|
17412
17546
|
return __assign({}, (input.VoiceRecordingTrack !== undefined &&
|
|
17413
17547
|
input.VoiceRecordingTrack !== null && { VoiceRecordingTrack: input.VoiceRecordingTrack }));
|
|
17414
17548
|
};
|
|
17549
|
+
var deserializeAws_restJson1AgentContactReference = function (output, context) {
|
|
17550
|
+
return {
|
|
17551
|
+
AgentContactState: __expectString(output.AgentContactState),
|
|
17552
|
+
Channel: __expectString(output.Channel),
|
|
17553
|
+
ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp !== undefined && output.ConnectedToAgentTimestamp !== null
|
|
17554
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ConnectedToAgentTimestamp)))
|
|
17555
|
+
: undefined,
|
|
17556
|
+
ContactId: __expectString(output.ContactId),
|
|
17557
|
+
InitiationMethod: __expectString(output.InitiationMethod),
|
|
17558
|
+
Queue: output.Queue !== undefined && output.Queue !== null
|
|
17559
|
+
? deserializeAws_restJson1QueueReference(output.Queue, context)
|
|
17560
|
+
: undefined,
|
|
17561
|
+
StateStartTimestamp: output.StateStartTimestamp !== undefined && output.StateStartTimestamp !== null
|
|
17562
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StateStartTimestamp)))
|
|
17563
|
+
: undefined,
|
|
17564
|
+
};
|
|
17565
|
+
};
|
|
17566
|
+
var deserializeAws_restJson1AgentContactReferenceList = function (output, context) {
|
|
17567
|
+
var retVal = (output || [])
|
|
17568
|
+
.filter(function (e) { return e != null; })
|
|
17569
|
+
.map(function (entry) {
|
|
17570
|
+
if (entry === null) {
|
|
17571
|
+
return null;
|
|
17572
|
+
}
|
|
17573
|
+
return deserializeAws_restJson1AgentContactReference(entry, context);
|
|
17574
|
+
});
|
|
17575
|
+
return retVal;
|
|
17576
|
+
};
|
|
17415
17577
|
var deserializeAws_restJson1AgentInfo = function (output, context) {
|
|
17416
17578
|
return {
|
|
17417
17579
|
ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp !== undefined && output.ConnectedToAgentTimestamp !== null
|
|
@@ -17434,6 +17596,14 @@ var deserializeAws_restJson1AgentStatus = function (output, context) {
|
|
|
17434
17596
|
Type: __expectString(output.Type),
|
|
17435
17597
|
};
|
|
17436
17598
|
};
|
|
17599
|
+
var deserializeAws_restJson1AgentStatusReference = function (output, context) {
|
|
17600
|
+
return {
|
|
17601
|
+
StatusArn: __expectString(output.StatusArn),
|
|
17602
|
+
StatusStartTimestamp: output.StatusStartTimestamp !== undefined && output.StatusStartTimestamp !== null
|
|
17603
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StatusStartTimestamp)))
|
|
17604
|
+
: undefined,
|
|
17605
|
+
};
|
|
17606
|
+
};
|
|
17437
17607
|
var deserializeAws_restJson1AgentStatusSummary = function (output, context) {
|
|
17438
17608
|
return {
|
|
17439
17609
|
Arn: __expectString(output.Arn),
|
|
@@ -17505,6 +17675,16 @@ var deserializeAws_restJson1AvailableNumberSummary = function (output, context)
|
|
|
17505
17675
|
PhoneNumberType: __expectString(output.PhoneNumberType),
|
|
17506
17676
|
};
|
|
17507
17677
|
};
|
|
17678
|
+
var deserializeAws_restJson1ChannelToCountMap = function (output, context) {
|
|
17679
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
17680
|
+
var _b;
|
|
17681
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
17682
|
+
if (value === null) {
|
|
17683
|
+
return acc;
|
|
17684
|
+
}
|
|
17685
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectInt32(value), _b));
|
|
17686
|
+
}, {});
|
|
17687
|
+
};
|
|
17508
17688
|
var deserializeAws_restJson1ClaimedPhoneNumberSummary = function (output, context) {
|
|
17509
17689
|
return {
|
|
17510
17690
|
PhoneNumber: __expectString(output.PhoneNumber),
|
|
@@ -17765,6 +17945,12 @@ var deserializeAws_restJson1HierarchyGroupSummaryList = function (output, contex
|
|
|
17765
17945
|
});
|
|
17766
17946
|
return retVal;
|
|
17767
17947
|
};
|
|
17948
|
+
var deserializeAws_restJson1HierarchyGroupSummaryReference = function (output, context) {
|
|
17949
|
+
return {
|
|
17950
|
+
Arn: __expectString(output.Arn),
|
|
17951
|
+
Id: __expectString(output.Id),
|
|
17952
|
+
};
|
|
17953
|
+
};
|
|
17768
17954
|
var deserializeAws_restJson1HierarchyLevel = function (output, context) {
|
|
17769
17955
|
return {
|
|
17770
17956
|
Arn: __expectString(output.Arn),
|
|
@@ -17791,6 +17977,25 @@ var deserializeAws_restJson1HierarchyPath = function (output, context) {
|
|
|
17791
17977
|
: undefined,
|
|
17792
17978
|
};
|
|
17793
17979
|
};
|
|
17980
|
+
var deserializeAws_restJson1HierarchyPathReference = function (output, context) {
|
|
17981
|
+
return {
|
|
17982
|
+
LevelFive: output.LevelFive !== undefined && output.LevelFive !== null
|
|
17983
|
+
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelFive, context)
|
|
17984
|
+
: undefined,
|
|
17985
|
+
LevelFour: output.LevelFour !== undefined && output.LevelFour !== null
|
|
17986
|
+
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelFour, context)
|
|
17987
|
+
: undefined,
|
|
17988
|
+
LevelOne: output.LevelOne !== undefined && output.LevelOne !== null
|
|
17989
|
+
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelOne, context)
|
|
17990
|
+
: undefined,
|
|
17991
|
+
LevelThree: output.LevelThree !== undefined && output.LevelThree !== null
|
|
17992
|
+
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelThree, context)
|
|
17993
|
+
: undefined,
|
|
17994
|
+
LevelTwo: output.LevelTwo !== undefined && output.LevelTwo !== null
|
|
17995
|
+
? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelTwo, context)
|
|
17996
|
+
: undefined,
|
|
17997
|
+
};
|
|
17998
|
+
};
|
|
17794
17999
|
var deserializeAws_restJson1HierarchyStructure = function (output, context) {
|
|
17795
18000
|
return {
|
|
17796
18001
|
LevelFive: output.LevelFive !== undefined && output.LevelFive !== null
|
|
@@ -18478,6 +18683,12 @@ var deserializeAws_restJson1RoutingProfileQueueConfigSummaryList = function (out
|
|
|
18478
18683
|
});
|
|
18479
18684
|
return retVal;
|
|
18480
18685
|
};
|
|
18686
|
+
var deserializeAws_restJson1RoutingProfileReference = function (output, context) {
|
|
18687
|
+
return {
|
|
18688
|
+
Arn: __expectString(output.Arn),
|
|
18689
|
+
Id: __expectString(output.Id),
|
|
18690
|
+
};
|
|
18691
|
+
};
|
|
18481
18692
|
var deserializeAws_restJson1RoutingProfileSummary = function (output, context) {
|
|
18482
18693
|
return {
|
|
18483
18694
|
Arn: __expectString(output.Arn),
|
|
@@ -18738,6 +18949,45 @@ var deserializeAws_restJson1User = function (output, context) {
|
|
|
18738
18949
|
Username: __expectString(output.Username),
|
|
18739
18950
|
};
|
|
18740
18951
|
};
|
|
18952
|
+
var deserializeAws_restJson1UserData = function (output, context) {
|
|
18953
|
+
return {
|
|
18954
|
+
ActiveSlotsByChannel: output.ActiveSlotsByChannel !== undefined && output.ActiveSlotsByChannel !== null
|
|
18955
|
+
? deserializeAws_restJson1ChannelToCountMap(output.ActiveSlotsByChannel, context)
|
|
18956
|
+
: undefined,
|
|
18957
|
+
AvailableSlotsByChannel: output.AvailableSlotsByChannel !== undefined && output.AvailableSlotsByChannel !== null
|
|
18958
|
+
? deserializeAws_restJson1ChannelToCountMap(output.AvailableSlotsByChannel, context)
|
|
18959
|
+
: undefined,
|
|
18960
|
+
Contacts: output.Contacts !== undefined && output.Contacts !== null
|
|
18961
|
+
? deserializeAws_restJson1AgentContactReferenceList(output.Contacts, context)
|
|
18962
|
+
: undefined,
|
|
18963
|
+
HierarchyPath: output.HierarchyPath !== undefined && output.HierarchyPath !== null
|
|
18964
|
+
? deserializeAws_restJson1HierarchyPathReference(output.HierarchyPath, context)
|
|
18965
|
+
: undefined,
|
|
18966
|
+
MaxSlotsByChannel: output.MaxSlotsByChannel !== undefined && output.MaxSlotsByChannel !== null
|
|
18967
|
+
? deserializeAws_restJson1ChannelToCountMap(output.MaxSlotsByChannel, context)
|
|
18968
|
+
: undefined,
|
|
18969
|
+
RoutingProfile: output.RoutingProfile !== undefined && output.RoutingProfile !== null
|
|
18970
|
+
? deserializeAws_restJson1RoutingProfileReference(output.RoutingProfile, context)
|
|
18971
|
+
: undefined,
|
|
18972
|
+
Status: output.Status !== undefined && output.Status !== null
|
|
18973
|
+
? deserializeAws_restJson1AgentStatusReference(output.Status, context)
|
|
18974
|
+
: undefined,
|
|
18975
|
+
User: output.User !== undefined && output.User !== null
|
|
18976
|
+
? deserializeAws_restJson1UserReference(output.User, context)
|
|
18977
|
+
: undefined,
|
|
18978
|
+
};
|
|
18979
|
+
};
|
|
18980
|
+
var deserializeAws_restJson1UserDataList = function (output, context) {
|
|
18981
|
+
var retVal = (output || [])
|
|
18982
|
+
.filter(function (e) { return e != null; })
|
|
18983
|
+
.map(function (entry) {
|
|
18984
|
+
if (entry === null) {
|
|
18985
|
+
return null;
|
|
18986
|
+
}
|
|
18987
|
+
return deserializeAws_restJson1UserData(entry, context);
|
|
18988
|
+
});
|
|
18989
|
+
return retVal;
|
|
18990
|
+
};
|
|
18741
18991
|
var deserializeAws_restJson1UserIdentityInfo = function (output, context) {
|
|
18742
18992
|
return {
|
|
18743
18993
|
Email: __expectString(output.Email),
|
|
@@ -18765,6 +19015,12 @@ var deserializeAws_restJson1UserQuickConnectConfig = function (output, context)
|
|
|
18765
19015
|
UserId: __expectString(output.UserId),
|
|
18766
19016
|
};
|
|
18767
19017
|
};
|
|
19018
|
+
var deserializeAws_restJson1UserReference = function (output, context) {
|
|
19019
|
+
return {
|
|
19020
|
+
Arn: __expectString(output.Arn),
|
|
19021
|
+
Id: __expectString(output.Id),
|
|
19022
|
+
};
|
|
19023
|
+
};
|
|
18768
19024
|
var deserializeAws_restJson1UserSearchSummary = function (output, context) {
|
|
18769
19025
|
return {
|
|
18770
19026
|
Arn: __expectString(output.Arn),
|