@aws-sdk/client-connect 3.319.0 → 3.320.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 +119 -7
- package/dist-cjs/Connect.js +28 -0
- package/dist-cjs/commands/ActivateEvaluationFormCommand.js +45 -0
- package/dist-cjs/commands/CreateEvaluationFormCommand.js +45 -0
- package/dist-cjs/commands/DeactivateEvaluationFormCommand.js +45 -0
- package/dist-cjs/commands/DeleteContactEvaluationCommand.js +45 -0
- package/dist-cjs/commands/DeleteEvaluationFormCommand.js +45 -0
- package/dist-cjs/commands/DescribeContactEvaluationCommand.js +45 -0
- package/dist-cjs/commands/DescribeEvaluationFormCommand.js +45 -0
- package/dist-cjs/commands/GetFederationTokenCommand.js +2 -2
- package/dist-cjs/commands/ListContactEvaluationsCommand.js +45 -0
- package/dist-cjs/commands/ListEvaluationFormVersionsCommand.js +45 -0
- package/dist-cjs/commands/ListEvaluationFormsCommand.js +45 -0
- package/dist-cjs/commands/StartContactEvaluationCommand.js +45 -0
- package/dist-cjs/commands/SubmitContactEvaluationCommand.js +45 -0
- package/dist-cjs/commands/UpdateContactEvaluationCommand.js +45 -0
- package/dist-cjs/commands/UpdateEvaluationFormCommand.js +45 -0
- package/dist-cjs/commands/index.js +14 -0
- package/dist-cjs/models/models_0.js +142 -125
- package/dist-cjs/models/models_1.js +71 -1
- package/dist-cjs/pagination/ListContactEvaluationsPaginator.js +28 -0
- package/dist-cjs/pagination/ListEvaluationFormVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListEvaluationFormsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1272 -41
- package/dist-es/Connect.js +28 -0
- package/dist-es/commands/ActivateEvaluationFormCommand.js +41 -0
- package/dist-es/commands/CreateEvaluationFormCommand.js +41 -0
- package/dist-es/commands/DeactivateEvaluationFormCommand.js +41 -0
- package/dist-es/commands/DeleteContactEvaluationCommand.js +41 -0
- package/dist-es/commands/DeleteEvaluationFormCommand.js +41 -0
- package/dist-es/commands/DescribeContactEvaluationCommand.js +41 -0
- package/dist-es/commands/DescribeEvaluationFormCommand.js +41 -0
- package/dist-es/commands/GetFederationTokenCommand.js +1 -1
- package/dist-es/commands/ListContactEvaluationsCommand.js +41 -0
- package/dist-es/commands/ListEvaluationFormVersionsCommand.js +41 -0
- package/dist-es/commands/ListEvaluationFormsCommand.js +41 -0
- package/dist-es/commands/StartContactEvaluationCommand.js +41 -0
- package/dist-es/commands/SubmitContactEvaluationCommand.js +41 -0
- package/dist-es/commands/UpdateContactEvaluationCommand.js +41 -0
- package/dist-es/commands/UpdateEvaluationFormCommand.js +41 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/models_0.js +136 -116
- package/dist-es/models/models_1.js +67 -0
- package/dist-es/pagination/ListContactEvaluationsPaginator.js +24 -0
- package/dist-es/pagination/ListEvaluationFormVersionsPaginator.js +25 -0
- package/dist-es/pagination/ListEvaluationFormsPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1235 -33
- package/dist-types/Connect.d.ts +98 -0
- package/dist-types/ConnectClient.d.ts +16 -2
- package/dist-types/commands/ActivateEvaluationFormCommand.d.ts +81 -0
- package/dist-types/commands/CreateEvaluationFormCommand.d.ts +213 -0
- package/dist-types/commands/CreateParticipantCommand.d.ts +1 -1
- package/dist-types/commands/DeactivateEvaluationFormCommand.d.ts +81 -0
- package/dist-types/commands/DeleteContactEvaluationCommand.d.ts +79 -0
- package/dist-types/commands/DeleteEvaluationFormCommand.d.ts +89 -0
- package/dist-types/commands/DescribeContactEvaluationCommand.d.ts +77 -0
- package/dist-types/commands/DescribeEvaluationFormCommand.d.ts +79 -0
- package/dist-types/commands/GetCurrentUserDataCommand.d.ts +1 -1
- package/dist-types/commands/GetFederationTokenCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricDataCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricDataV2Command.d.ts +1 -1
- package/dist-types/commands/GetTaskTemplateCommand.d.ts +1 -1
- package/dist-types/commands/GetTrafficDistributionCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentStatusesCommand.d.ts +1 -2
- package/dist-types/commands/ListContactEvaluationsCommand.d.ts +77 -0
- package/dist-types/commands/ListEvaluationFormVersionsCommand.d.ts +78 -0
- package/dist-types/commands/ListEvaluationFormsCommand.d.ts +77 -0
- package/dist-types/commands/StartContactEvaluationCommand.d.ts +91 -0
- package/dist-types/commands/SubmitContactEvaluationCommand.d.ts +98 -0
- package/dist-types/commands/UpdateContactEvaluationCommand.d.ts +96 -0
- package/dist-types/commands/UpdateEvaluationFormCommand.d.ts +215 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/models_0.d.ts +859 -1281
- package/dist-types/models/models_1.d.ts +1758 -3
- package/dist-types/pagination/ListContactEvaluationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEvaluationFormVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEvaluationFormsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/Connect.d.ts +238 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +84 -0
- package/dist-types/ts3.4/commands/ActivateEvaluationFormCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateEvaluationFormCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeactivateEvaluationFormCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteContactEvaluationCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteEvaluationFormCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DescribeContactEvaluationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeEvaluationFormCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMetricDataCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMetricDataV2Command.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTaskTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTrafficDistributionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAgentStatusesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListContactEvaluationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListEvaluationFormVersionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListEvaluationFormsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartContactEvaluationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/SubmitContactEvaluationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateContactEvaluationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateEvaluationFormCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/models_0.d.ts +328 -262
- package/dist-types/ts3.4/models/models_1.d.ts +425 -1
- package/dist-types/ts3.4/pagination/ListContactEvaluationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEvaluationFormVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEvaluationFormsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_SubmitContactEvaluationCommand, se_SubmitContactEvaluationCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class SubmitContactEvaluationCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, SubmitContactEvaluationCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ConnectClient";
|
|
24
|
+
const commandName = "SubmitContactEvaluationCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_SubmitContactEvaluationCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_SubmitContactEvaluationCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_UpdateContactEvaluationCommand, se_UpdateContactEvaluationCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class UpdateContactEvaluationCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateContactEvaluationCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ConnectClient";
|
|
24
|
+
const commandName = "UpdateContactEvaluationCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_UpdateContactEvaluationCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_UpdateContactEvaluationCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_UpdateEvaluationFormCommand, se_UpdateEvaluationFormCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class UpdateEvaluationFormCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateEvaluationFormCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "ConnectClient";
|
|
24
|
+
const commandName = "UpdateEvaluationFormCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_UpdateEvaluationFormCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_UpdateEvaluationFormCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./ActivateEvaluationFormCommand";
|
|
1
2
|
export * from "./AssociateApprovedOriginCommand";
|
|
2
3
|
export * from "./AssociateBotCommand";
|
|
3
4
|
export * from "./AssociateDefaultVocabularyCommand";
|
|
@@ -12,6 +13,7 @@ export * from "./ClaimPhoneNumberCommand";
|
|
|
12
13
|
export * from "./CreateAgentStatusCommand";
|
|
13
14
|
export * from "./CreateContactFlowCommand";
|
|
14
15
|
export * from "./CreateContactFlowModuleCommand";
|
|
16
|
+
export * from "./CreateEvaluationFormCommand";
|
|
15
17
|
export * from "./CreateHoursOfOperationCommand";
|
|
16
18
|
export * from "./CreateInstanceCommand";
|
|
17
19
|
export * from "./CreateIntegrationAssociationCommand";
|
|
@@ -27,8 +29,11 @@ export * from "./CreateUseCaseCommand";
|
|
|
27
29
|
export * from "./CreateUserCommand";
|
|
28
30
|
export * from "./CreateUserHierarchyGroupCommand";
|
|
29
31
|
export * from "./CreateVocabularyCommand";
|
|
32
|
+
export * from "./DeactivateEvaluationFormCommand";
|
|
33
|
+
export * from "./DeleteContactEvaluationCommand";
|
|
30
34
|
export * from "./DeleteContactFlowCommand";
|
|
31
35
|
export * from "./DeleteContactFlowModuleCommand";
|
|
36
|
+
export * from "./DeleteEvaluationFormCommand";
|
|
32
37
|
export * from "./DeleteHoursOfOperationCommand";
|
|
33
38
|
export * from "./DeleteInstanceCommand";
|
|
34
39
|
export * from "./DeleteIntegrationAssociationCommand";
|
|
@@ -43,8 +48,10 @@ export * from "./DeleteUserHierarchyGroupCommand";
|
|
|
43
48
|
export * from "./DeleteVocabularyCommand";
|
|
44
49
|
export * from "./DescribeAgentStatusCommand";
|
|
45
50
|
export * from "./DescribeContactCommand";
|
|
51
|
+
export * from "./DescribeContactEvaluationCommand";
|
|
46
52
|
export * from "./DescribeContactFlowCommand";
|
|
47
53
|
export * from "./DescribeContactFlowModuleCommand";
|
|
54
|
+
export * from "./DescribeEvaluationFormCommand";
|
|
48
55
|
export * from "./DescribeHoursOfOperationCommand";
|
|
49
56
|
export * from "./DescribeInstanceAttributeCommand";
|
|
50
57
|
export * from "./DescribeInstanceCommand";
|
|
@@ -81,10 +88,13 @@ export * from "./GetTrafficDistributionCommand";
|
|
|
81
88
|
export * from "./ListAgentStatusesCommand";
|
|
82
89
|
export * from "./ListApprovedOriginsCommand";
|
|
83
90
|
export * from "./ListBotsCommand";
|
|
91
|
+
export * from "./ListContactEvaluationsCommand";
|
|
84
92
|
export * from "./ListContactFlowModulesCommand";
|
|
85
93
|
export * from "./ListContactFlowsCommand";
|
|
86
94
|
export * from "./ListContactReferencesCommand";
|
|
87
95
|
export * from "./ListDefaultVocabulariesCommand";
|
|
96
|
+
export * from "./ListEvaluationFormVersionsCommand";
|
|
97
|
+
export * from "./ListEvaluationFormsCommand";
|
|
88
98
|
export * from "./ListHoursOfOperationsCommand";
|
|
89
99
|
export * from "./ListInstanceAttributesCommand";
|
|
90
100
|
export * from "./ListInstanceStorageConfigsCommand";
|
|
@@ -122,6 +132,7 @@ export * from "./SearchSecurityProfilesCommand";
|
|
|
122
132
|
export * from "./SearchUsersCommand";
|
|
123
133
|
export * from "./SearchVocabulariesCommand";
|
|
124
134
|
export * from "./StartChatContactCommand";
|
|
135
|
+
export * from "./StartContactEvaluationCommand";
|
|
125
136
|
export * from "./StartContactRecordingCommand";
|
|
126
137
|
export * from "./StartContactStreamingCommand";
|
|
127
138
|
export * from "./StartOutboundVoiceContactCommand";
|
|
@@ -129,6 +140,7 @@ export * from "./StartTaskContactCommand";
|
|
|
129
140
|
export * from "./StopContactCommand";
|
|
130
141
|
export * from "./StopContactRecordingCommand";
|
|
131
142
|
export * from "./StopContactStreamingCommand";
|
|
143
|
+
export * from "./SubmitContactEvaluationCommand";
|
|
132
144
|
export * from "./SuspendContactRecordingCommand";
|
|
133
145
|
export * from "./TagResourceCommand";
|
|
134
146
|
export * from "./TransferContactCommand";
|
|
@@ -136,12 +148,14 @@ export * from "./UntagResourceCommand";
|
|
|
136
148
|
export * from "./UpdateAgentStatusCommand";
|
|
137
149
|
export * from "./UpdateContactAttributesCommand";
|
|
138
150
|
export * from "./UpdateContactCommand";
|
|
151
|
+
export * from "./UpdateContactEvaluationCommand";
|
|
139
152
|
export * from "./UpdateContactFlowContentCommand";
|
|
140
153
|
export * from "./UpdateContactFlowMetadataCommand";
|
|
141
154
|
export * from "./UpdateContactFlowModuleContentCommand";
|
|
142
155
|
export * from "./UpdateContactFlowModuleMetadataCommand";
|
|
143
156
|
export * from "./UpdateContactFlowNameCommand";
|
|
144
157
|
export * from "./UpdateContactScheduleCommand";
|
|
158
|
+
export * from "./UpdateEvaluationFormCommand";
|
|
145
159
|
export * from "./UpdateHoursOfOperationCommand";
|
|
146
160
|
export * from "./UpdateInstanceAttributeCommand";
|
|
147
161
|
export * from "./UpdateInstanceStorageConfigCommand";
|
|
@@ -19,45 +19,6 @@ export const ActionType = {
|
|
|
19
19
|
GENERATE_EVENTBRIDGE_EVENT: "GENERATE_EVENTBRIDGE_EVENT",
|
|
20
20
|
SEND_NOTIFICATION: "SEND_NOTIFICATION",
|
|
21
21
|
};
|
|
22
|
-
export const ContactState = {
|
|
23
|
-
CONNECTED: "CONNECTED",
|
|
24
|
-
CONNECTED_ONHOLD: "CONNECTED_ONHOLD",
|
|
25
|
-
CONNECTING: "CONNECTING",
|
|
26
|
-
ENDED: "ENDED",
|
|
27
|
-
ERROR: "ERROR",
|
|
28
|
-
INCOMING: "INCOMING",
|
|
29
|
-
MISSED: "MISSED",
|
|
30
|
-
PENDING: "PENDING",
|
|
31
|
-
REJECTED: "REJECTED",
|
|
32
|
-
};
|
|
33
|
-
export const Channel = {
|
|
34
|
-
CHAT: "CHAT",
|
|
35
|
-
TASK: "TASK",
|
|
36
|
-
VOICE: "VOICE",
|
|
37
|
-
};
|
|
38
|
-
export const ContactInitiationMethod = {
|
|
39
|
-
API: "API",
|
|
40
|
-
CALLBACK: "CALLBACK",
|
|
41
|
-
DISCONNECT: "DISCONNECT",
|
|
42
|
-
INBOUND: "INBOUND",
|
|
43
|
-
MONITOR: "MONITOR",
|
|
44
|
-
OUTBOUND: "OUTBOUND",
|
|
45
|
-
QUEUE_TRANSFER: "QUEUE_TRANSFER",
|
|
46
|
-
TRANSFER: "TRANSFER",
|
|
47
|
-
};
|
|
48
|
-
export const AgentStatusState = {
|
|
49
|
-
DISABLED: "DISABLED",
|
|
50
|
-
ENABLED: "ENABLED",
|
|
51
|
-
};
|
|
52
|
-
export const AgentStatusType = {
|
|
53
|
-
CUSTOM: "CUSTOM",
|
|
54
|
-
OFFLINE: "OFFLINE",
|
|
55
|
-
ROUTABLE: "ROUTABLE",
|
|
56
|
-
};
|
|
57
|
-
export const MonitorCapability = {
|
|
58
|
-
BARGE: "BARGE",
|
|
59
|
-
SILENT_MONITOR: "SILENT_MONITOR",
|
|
60
|
-
};
|
|
61
22
|
export class InternalServiceException extends __BaseException {
|
|
62
23
|
constructor(opts) {
|
|
63
24
|
super({
|
|
@@ -84,68 +45,107 @@ export class InvalidParameterException extends __BaseException {
|
|
|
84
45
|
this.Message = opts.Message;
|
|
85
46
|
}
|
|
86
47
|
}
|
|
87
|
-
export class
|
|
48
|
+
export class ResourceConflictException extends __BaseException {
|
|
88
49
|
constructor(opts) {
|
|
89
50
|
super({
|
|
90
|
-
name: "
|
|
51
|
+
name: "ResourceConflictException",
|
|
91
52
|
$fault: "client",
|
|
92
53
|
...opts,
|
|
93
54
|
});
|
|
94
|
-
this.name = "
|
|
55
|
+
this.name = "ResourceConflictException";
|
|
95
56
|
this.$fault = "client";
|
|
96
|
-
Object.setPrototypeOf(this,
|
|
57
|
+
Object.setPrototypeOf(this, ResourceConflictException.prototype);
|
|
97
58
|
this.Message = opts.Message;
|
|
98
59
|
}
|
|
99
60
|
}
|
|
100
|
-
export class
|
|
61
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
101
62
|
constructor(opts) {
|
|
102
63
|
super({
|
|
103
|
-
name: "
|
|
64
|
+
name: "ResourceNotFoundException",
|
|
104
65
|
$fault: "client",
|
|
105
66
|
...opts,
|
|
106
67
|
});
|
|
107
|
-
this.name = "
|
|
68
|
+
this.name = "ResourceNotFoundException";
|
|
108
69
|
this.$fault = "client";
|
|
109
|
-
Object.setPrototypeOf(this,
|
|
70
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
110
71
|
this.Message = opts.Message;
|
|
111
72
|
}
|
|
112
73
|
}
|
|
113
|
-
export class
|
|
74
|
+
export class ThrottlingException extends __BaseException {
|
|
114
75
|
constructor(opts) {
|
|
115
76
|
super({
|
|
116
|
-
name: "
|
|
77
|
+
name: "ThrottlingException",
|
|
117
78
|
$fault: "client",
|
|
118
79
|
...opts,
|
|
119
80
|
});
|
|
120
|
-
this.name = "
|
|
81
|
+
this.name = "ThrottlingException";
|
|
121
82
|
this.$fault = "client";
|
|
122
|
-
Object.setPrototypeOf(this,
|
|
83
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
123
84
|
this.Message = opts.Message;
|
|
124
85
|
}
|
|
125
86
|
}
|
|
126
|
-
export
|
|
87
|
+
export const ContactState = {
|
|
88
|
+
CONNECTED: "CONNECTED",
|
|
89
|
+
CONNECTED_ONHOLD: "CONNECTED_ONHOLD",
|
|
90
|
+
CONNECTING: "CONNECTING",
|
|
91
|
+
ENDED: "ENDED",
|
|
92
|
+
ERROR: "ERROR",
|
|
93
|
+
INCOMING: "INCOMING",
|
|
94
|
+
MISSED: "MISSED",
|
|
95
|
+
PENDING: "PENDING",
|
|
96
|
+
REJECTED: "REJECTED",
|
|
97
|
+
};
|
|
98
|
+
export const Channel = {
|
|
99
|
+
CHAT: "CHAT",
|
|
100
|
+
TASK: "TASK",
|
|
101
|
+
VOICE: "VOICE",
|
|
102
|
+
};
|
|
103
|
+
export const ContactInitiationMethod = {
|
|
104
|
+
API: "API",
|
|
105
|
+
CALLBACK: "CALLBACK",
|
|
106
|
+
DISCONNECT: "DISCONNECT",
|
|
107
|
+
INBOUND: "INBOUND",
|
|
108
|
+
MONITOR: "MONITOR",
|
|
109
|
+
OUTBOUND: "OUTBOUND",
|
|
110
|
+
QUEUE_TRANSFER: "QUEUE_TRANSFER",
|
|
111
|
+
TRANSFER: "TRANSFER",
|
|
112
|
+
};
|
|
113
|
+
export const AgentStatusState = {
|
|
114
|
+
DISABLED: "DISABLED",
|
|
115
|
+
ENABLED: "ENABLED",
|
|
116
|
+
};
|
|
117
|
+
export const AgentStatusType = {
|
|
118
|
+
CUSTOM: "CUSTOM",
|
|
119
|
+
OFFLINE: "OFFLINE",
|
|
120
|
+
ROUTABLE: "ROUTABLE",
|
|
121
|
+
};
|
|
122
|
+
export const MonitorCapability = {
|
|
123
|
+
BARGE: "BARGE",
|
|
124
|
+
SILENT_MONITOR: "SILENT_MONITOR",
|
|
125
|
+
};
|
|
126
|
+
export class InvalidRequestException extends __BaseException {
|
|
127
127
|
constructor(opts) {
|
|
128
128
|
super({
|
|
129
|
-
name: "
|
|
129
|
+
name: "InvalidRequestException",
|
|
130
130
|
$fault: "client",
|
|
131
131
|
...opts,
|
|
132
132
|
});
|
|
133
|
-
this.name = "
|
|
133
|
+
this.name = "InvalidRequestException";
|
|
134
134
|
this.$fault = "client";
|
|
135
|
-
Object.setPrototypeOf(this,
|
|
135
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
136
136
|
this.Message = opts.Message;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
export class
|
|
139
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
140
140
|
constructor(opts) {
|
|
141
141
|
super({
|
|
142
|
-
name: "
|
|
142
|
+
name: "ServiceQuotaExceededException",
|
|
143
143
|
$fault: "client",
|
|
144
144
|
...opts,
|
|
145
145
|
});
|
|
146
|
-
this.name = "
|
|
146
|
+
this.name = "ServiceQuotaExceededException";
|
|
147
147
|
this.$fault = "client";
|
|
148
|
-
Object.setPrototypeOf(this,
|
|
148
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
149
149
|
this.Message = opts.Message;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -270,6 +270,63 @@ export class InvalidContactFlowModuleException extends __BaseException {
|
|
|
270
270
|
this.Problems = opts.Problems;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
+
export const EvaluationFormQuestionType = {
|
|
274
|
+
NUMERIC: "NUMERIC",
|
|
275
|
+
SINGLESELECT: "SINGLESELECT",
|
|
276
|
+
TEXT: "TEXT",
|
|
277
|
+
};
|
|
278
|
+
export const NumericQuestionPropertyAutomationLabel = {
|
|
279
|
+
AGENT_INTERACTION_DURATION: "AGENT_INTERACTION_DURATION",
|
|
280
|
+
CONTACT_DURATION: "CONTACT_DURATION",
|
|
281
|
+
CUSTOMER_HOLD_TIME: "CUSTOMER_HOLD_TIME",
|
|
282
|
+
NON_TALK_TIME: "NON_TALK_TIME",
|
|
283
|
+
NON_TALK_TIME_PERCENTAGE: "NON_TALK_TIME_PERCENTAGE",
|
|
284
|
+
NUMBER_OF_INTERRUPTIONS: "NUMBER_OF_INTERRUPTIONS",
|
|
285
|
+
OVERALL_AGENT_SENTIMENT_SCORE: "OVERALL_AGENT_SENTIMENT_SCORE",
|
|
286
|
+
OVERALL_CUSTOMER_SENTIMENT_SCORE: "OVERALL_CUSTOMER_SENTIMENT_SCORE",
|
|
287
|
+
};
|
|
288
|
+
export var EvaluationFormNumericQuestionAutomation;
|
|
289
|
+
(function (EvaluationFormNumericQuestionAutomation) {
|
|
290
|
+
EvaluationFormNumericQuestionAutomation.visit = (value, visitor) => {
|
|
291
|
+
if (value.PropertyValue !== undefined)
|
|
292
|
+
return visitor.PropertyValue(value.PropertyValue);
|
|
293
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
294
|
+
};
|
|
295
|
+
})(EvaluationFormNumericQuestionAutomation || (EvaluationFormNumericQuestionAutomation = {}));
|
|
296
|
+
export const SingleSelectQuestionRuleCategoryAutomationCondition = {
|
|
297
|
+
NOT_PRESENT: "NOT_PRESENT",
|
|
298
|
+
PRESENT: "PRESENT",
|
|
299
|
+
};
|
|
300
|
+
export var EvaluationFormSingleSelectQuestionAutomationOption;
|
|
301
|
+
(function (EvaluationFormSingleSelectQuestionAutomationOption) {
|
|
302
|
+
EvaluationFormSingleSelectQuestionAutomationOption.visit = (value, visitor) => {
|
|
303
|
+
if (value.RuleCategory !== undefined)
|
|
304
|
+
return visitor.RuleCategory(value.RuleCategory);
|
|
305
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
306
|
+
};
|
|
307
|
+
})(EvaluationFormSingleSelectQuestionAutomationOption || (EvaluationFormSingleSelectQuestionAutomationOption = {}));
|
|
308
|
+
export const EvaluationFormSingleSelectQuestionDisplayMode = {
|
|
309
|
+
DROPDOWN: "DROPDOWN",
|
|
310
|
+
RADIO: "RADIO",
|
|
311
|
+
};
|
|
312
|
+
export var EvaluationFormQuestionTypeProperties;
|
|
313
|
+
(function (EvaluationFormQuestionTypeProperties) {
|
|
314
|
+
EvaluationFormQuestionTypeProperties.visit = (value, visitor) => {
|
|
315
|
+
if (value.Numeric !== undefined)
|
|
316
|
+
return visitor.Numeric(value.Numeric);
|
|
317
|
+
if (value.SingleSelect !== undefined)
|
|
318
|
+
return visitor.SingleSelect(value.SingleSelect);
|
|
319
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
320
|
+
};
|
|
321
|
+
})(EvaluationFormQuestionTypeProperties || (EvaluationFormQuestionTypeProperties = {}));
|
|
322
|
+
export const EvaluationFormScoringMode = {
|
|
323
|
+
QUESTION_ONLY: "QUESTION_ONLY",
|
|
324
|
+
SECTION_ONLY: "SECTION_ONLY",
|
|
325
|
+
};
|
|
326
|
+
export const EvaluationFormScoringStatus = {
|
|
327
|
+
DISABLED: "DISABLED",
|
|
328
|
+
ENABLED: "ENABLED",
|
|
329
|
+
};
|
|
273
330
|
export const HoursOfOperationDays = {
|
|
274
331
|
FRIDAY: "FRIDAY",
|
|
275
332
|
MONDAY: "MONDAY",
|
|
@@ -428,6 +485,22 @@ export class ResourceInUseException extends __BaseException {
|
|
|
428
485
|
this.ResourceId = opts.ResourceId;
|
|
429
486
|
}
|
|
430
487
|
}
|
|
488
|
+
export var EvaluationAnswerData;
|
|
489
|
+
(function (EvaluationAnswerData) {
|
|
490
|
+
EvaluationAnswerData.visit = (value, visitor) => {
|
|
491
|
+
if (value.StringValue !== undefined)
|
|
492
|
+
return visitor.StringValue(value.StringValue);
|
|
493
|
+
if (value.NumericValue !== undefined)
|
|
494
|
+
return visitor.NumericValue(value.NumericValue);
|
|
495
|
+
if (value.NotApplicable !== undefined)
|
|
496
|
+
return visitor.NotApplicable(value.NotApplicable);
|
|
497
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
498
|
+
};
|
|
499
|
+
})(EvaluationAnswerData || (EvaluationAnswerData = {}));
|
|
500
|
+
export const EvaluationStatus = {
|
|
501
|
+
DRAFT: "DRAFT",
|
|
502
|
+
SUBMITTED: "SUBMITTED",
|
|
503
|
+
};
|
|
431
504
|
export class ContactFlowNotPublishedException extends __BaseException {
|
|
432
505
|
constructor(opts) {
|
|
433
506
|
super({
|
|
@@ -453,6 +526,10 @@ export const ContactFlowModuleStatus = {
|
|
|
453
526
|
PUBLISHED: "PUBLISHED",
|
|
454
527
|
SAVED: "SAVED",
|
|
455
528
|
};
|
|
529
|
+
export const EvaluationFormVersionStatus = {
|
|
530
|
+
ACTIVE: "ACTIVE",
|
|
531
|
+
DRAFT: "DRAFT",
|
|
532
|
+
};
|
|
456
533
|
export const InstanceStatus = {
|
|
457
534
|
ACTIVE: "ACTIVE",
|
|
458
535
|
CREATION_FAILED: "CREATION_FAILED",
|
|
@@ -759,54 +836,6 @@ export const SortOrder = {
|
|
|
759
836
|
ASCENDING: "ASCENDING",
|
|
760
837
|
DESCENDING: "DESCENDING",
|
|
761
838
|
};
|
|
762
|
-
export class UserNotFoundException extends __BaseException {
|
|
763
|
-
constructor(opts) {
|
|
764
|
-
super({
|
|
765
|
-
name: "UserNotFoundException",
|
|
766
|
-
$fault: "client",
|
|
767
|
-
...opts,
|
|
768
|
-
});
|
|
769
|
-
this.name = "UserNotFoundException";
|
|
770
|
-
this.$fault = "client";
|
|
771
|
-
Object.setPrototypeOf(this, UserNotFoundException.prototype);
|
|
772
|
-
this.Message = opts.Message;
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
export const HistoricalMetricName = {
|
|
776
|
-
ABANDON_TIME: "ABANDON_TIME",
|
|
777
|
-
AFTER_CONTACT_WORK_TIME: "AFTER_CONTACT_WORK_TIME",
|
|
778
|
-
API_CONTACTS_HANDLED: "API_CONTACTS_HANDLED",
|
|
779
|
-
CALLBACK_CONTACTS_HANDLED: "CALLBACK_CONTACTS_HANDLED",
|
|
780
|
-
CONTACTS_ABANDONED: "CONTACTS_ABANDONED",
|
|
781
|
-
CONTACTS_AGENT_HUNG_UP_FIRST: "CONTACTS_AGENT_HUNG_UP_FIRST",
|
|
782
|
-
CONTACTS_CONSULTED: "CONTACTS_CONSULTED",
|
|
783
|
-
CONTACTS_HANDLED: "CONTACTS_HANDLED",
|
|
784
|
-
CONTACTS_HANDLED_INCOMING: "CONTACTS_HANDLED_INCOMING",
|
|
785
|
-
CONTACTS_HANDLED_OUTBOUND: "CONTACTS_HANDLED_OUTBOUND",
|
|
786
|
-
CONTACTS_HOLD_ABANDONS: "CONTACTS_HOLD_ABANDONS",
|
|
787
|
-
CONTACTS_MISSED: "CONTACTS_MISSED",
|
|
788
|
-
CONTACTS_QUEUED: "CONTACTS_QUEUED",
|
|
789
|
-
CONTACTS_TRANSFERRED_IN: "CONTACTS_TRANSFERRED_IN",
|
|
790
|
-
CONTACTS_TRANSFERRED_IN_FROM_QUEUE: "CONTACTS_TRANSFERRED_IN_FROM_QUEUE",
|
|
791
|
-
CONTACTS_TRANSFERRED_OUT: "CONTACTS_TRANSFERRED_OUT",
|
|
792
|
-
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE: "CONTACTS_TRANSFERRED_OUT_FROM_QUEUE",
|
|
793
|
-
HANDLE_TIME: "HANDLE_TIME",
|
|
794
|
-
HOLD_TIME: "HOLD_TIME",
|
|
795
|
-
INTERACTION_AND_HOLD_TIME: "INTERACTION_AND_HOLD_TIME",
|
|
796
|
-
INTERACTION_TIME: "INTERACTION_TIME",
|
|
797
|
-
OCCUPANCY: "OCCUPANCY",
|
|
798
|
-
QUEUED_TIME: "QUEUED_TIME",
|
|
799
|
-
QUEUE_ANSWER_TIME: "QUEUE_ANSWER_TIME",
|
|
800
|
-
SERVICE_LEVEL: "SERVICE_LEVEL",
|
|
801
|
-
};
|
|
802
|
-
export const Statistic = {
|
|
803
|
-
AVG: "AVG",
|
|
804
|
-
MAX: "MAX",
|
|
805
|
-
SUM: "SUM",
|
|
806
|
-
};
|
|
807
|
-
export const Comparison = {
|
|
808
|
-
LT: "LT",
|
|
809
|
-
};
|
|
810
839
|
export const CreateInstanceRequestFilterSensitiveLog = (obj) => ({
|
|
811
840
|
...obj,
|
|
812
841
|
...(obj.InstanceAlias && { InstanceAlias: SENSITIVE_STRING }),
|
|
@@ -819,12 +848,3 @@ export const DescribeInstanceResponseFilterSensitiveLog = (obj) => ({
|
|
|
819
848
|
...obj,
|
|
820
849
|
...(obj.Instance && { Instance: InstanceFilterSensitiveLog(obj.Instance) }),
|
|
821
850
|
});
|
|
822
|
-
export const CredentialsFilterSensitiveLog = (obj) => ({
|
|
823
|
-
...obj,
|
|
824
|
-
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
825
|
-
...(obj.RefreshToken && { RefreshToken: SENSITIVE_STRING }),
|
|
826
|
-
});
|
|
827
|
-
export const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({
|
|
828
|
-
...obj,
|
|
829
|
-
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
830
|
-
});
|
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { ConnectServiceException as __BaseException } from "./ConnectServiceException";
|
|
3
|
+
export class UserNotFoundException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "UserNotFoundException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "UserNotFoundException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, UserNotFoundException.prototype);
|
|
13
|
+
this.Message = opts.Message;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export const HistoricalMetricName = {
|
|
17
|
+
ABANDON_TIME: "ABANDON_TIME",
|
|
18
|
+
AFTER_CONTACT_WORK_TIME: "AFTER_CONTACT_WORK_TIME",
|
|
19
|
+
API_CONTACTS_HANDLED: "API_CONTACTS_HANDLED",
|
|
20
|
+
CALLBACK_CONTACTS_HANDLED: "CALLBACK_CONTACTS_HANDLED",
|
|
21
|
+
CONTACTS_ABANDONED: "CONTACTS_ABANDONED",
|
|
22
|
+
CONTACTS_AGENT_HUNG_UP_FIRST: "CONTACTS_AGENT_HUNG_UP_FIRST",
|
|
23
|
+
CONTACTS_CONSULTED: "CONTACTS_CONSULTED",
|
|
24
|
+
CONTACTS_HANDLED: "CONTACTS_HANDLED",
|
|
25
|
+
CONTACTS_HANDLED_INCOMING: "CONTACTS_HANDLED_INCOMING",
|
|
26
|
+
CONTACTS_HANDLED_OUTBOUND: "CONTACTS_HANDLED_OUTBOUND",
|
|
27
|
+
CONTACTS_HOLD_ABANDONS: "CONTACTS_HOLD_ABANDONS",
|
|
28
|
+
CONTACTS_MISSED: "CONTACTS_MISSED",
|
|
29
|
+
CONTACTS_QUEUED: "CONTACTS_QUEUED",
|
|
30
|
+
CONTACTS_TRANSFERRED_IN: "CONTACTS_TRANSFERRED_IN",
|
|
31
|
+
CONTACTS_TRANSFERRED_IN_FROM_QUEUE: "CONTACTS_TRANSFERRED_IN_FROM_QUEUE",
|
|
32
|
+
CONTACTS_TRANSFERRED_OUT: "CONTACTS_TRANSFERRED_OUT",
|
|
33
|
+
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE: "CONTACTS_TRANSFERRED_OUT_FROM_QUEUE",
|
|
34
|
+
HANDLE_TIME: "HANDLE_TIME",
|
|
35
|
+
HOLD_TIME: "HOLD_TIME",
|
|
36
|
+
INTERACTION_AND_HOLD_TIME: "INTERACTION_AND_HOLD_TIME",
|
|
37
|
+
INTERACTION_TIME: "INTERACTION_TIME",
|
|
38
|
+
OCCUPANCY: "OCCUPANCY",
|
|
39
|
+
QUEUED_TIME: "QUEUED_TIME",
|
|
40
|
+
QUEUE_ANSWER_TIME: "QUEUE_ANSWER_TIME",
|
|
41
|
+
SERVICE_LEVEL: "SERVICE_LEVEL",
|
|
42
|
+
};
|
|
43
|
+
export const Statistic = {
|
|
44
|
+
AVG: "AVG",
|
|
45
|
+
MAX: "MAX",
|
|
46
|
+
SUM: "SUM",
|
|
47
|
+
};
|
|
48
|
+
export const Comparison = {
|
|
49
|
+
LT: "LT",
|
|
50
|
+
};
|
|
3
51
|
export const LexVersion = {
|
|
4
52
|
V1: "V1",
|
|
5
53
|
V2: "V2",
|
|
@@ -123,6 +171,25 @@ export var UpdateParticipantRoleConfigChannelInfo;
|
|
|
123
171
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
124
172
|
};
|
|
125
173
|
})(UpdateParticipantRoleConfigChannelInfo || (UpdateParticipantRoleConfigChannelInfo = {}));
|
|
174
|
+
export var EvaluationFormItem;
|
|
175
|
+
(function (EvaluationFormItem) {
|
|
176
|
+
EvaluationFormItem.visit = (value, visitor) => {
|
|
177
|
+
if (value.Section !== undefined)
|
|
178
|
+
return visitor.Section(value.Section);
|
|
179
|
+
if (value.Question !== undefined)
|
|
180
|
+
return visitor.Question(value.Question);
|
|
181
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
182
|
+
};
|
|
183
|
+
})(EvaluationFormItem || (EvaluationFormItem = {}));
|
|
184
|
+
export const CredentialsFilterSensitiveLog = (obj) => ({
|
|
185
|
+
...obj,
|
|
186
|
+
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
187
|
+
...(obj.RefreshToken && { RefreshToken: SENSITIVE_STRING }),
|
|
188
|
+
});
|
|
189
|
+
export const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({
|
|
190
|
+
...obj,
|
|
191
|
+
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
192
|
+
});
|
|
126
193
|
export const InstanceSummaryFilterSensitiveLog = (obj) => ({
|
|
127
194
|
...obj,
|
|
128
195
|
...(obj.InstanceAlias && { InstanceAlias: SENSITIVE_STRING }),
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ListContactEvaluationsCommand, } from "../commands/ListContactEvaluationsCommand";
|
|
2
|
+
import { ConnectClient } from "../ConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListContactEvaluationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListContactEvaluations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
if (config.client instanceof ConnectClient) {
|
|
13
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
17
|
+
}
|
|
18
|
+
yield page;
|
|
19
|
+
const prevToken = token;
|
|
20
|
+
token = page.NextToken;
|
|
21
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
+
}
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListEvaluationFormVersionsCommand, } from "../commands/ListEvaluationFormVersionsCommand";
|
|
2
|
+
import { ConnectClient } from "../ConnectClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListEvaluationFormVersionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListEvaluationFormVersions(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ConnectClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected Connect | ConnectClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|