@aws-sdk/client-connect 3.862.0 → 3.864.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 +8 -0
- package/dist-cjs/index.js +116 -32
- package/dist-es/Connect.js +2 -0
- package/dist-es/commands/GetContactMetricsCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/models/models_1.js +11 -0
- package/dist-es/models/models_2.js +0 -29
- package/dist-es/models/models_3.js +25 -0
- package/dist-es/protocols/Aws_restJson1.js +52 -0
- package/dist-types/Connect.d.ts +7 -0
- package/dist-types/ConnectClient.d.ts +3 -2
- package/dist-types/commands/AssociateQueueQuickConnectsCommand.d.ts +1 -2
- package/dist-types/commands/CreateAgentStatusCommand.d.ts +1 -2
- package/dist-types/commands/CreateHoursOfOperationCommand.d.ts +1 -2
- package/dist-types/commands/CreateHoursOfOperationOverrideCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserCommand.d.ts +3 -3
- package/dist-types/commands/CreateViewCommand.d.ts +4 -1
- package/dist-types/commands/CreateViewVersionCommand.d.ts +4 -1
- package/dist-types/commands/DeleteHoursOfOperationCommand.d.ts +1 -2
- package/dist-types/commands/DeleteHoursOfOperationOverrideCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIntegrationAssociationCommand.d.ts +1 -1
- package/dist-types/commands/DeletePredefinedAttributeCommand.d.ts +5 -2
- package/dist-types/commands/DeleteQueueCommand.d.ts +4 -1
- package/dist-types/commands/DeleteRoutingProfileCommand.d.ts +4 -1
- package/dist-types/commands/DeleteSecurityProfileCommand.d.ts +4 -1
- package/dist-types/commands/DeleteTrafficDistributionGroupCommand.d.ts +4 -1
- package/dist-types/commands/DeleteUserHierarchyGroupCommand.d.ts +4 -1
- package/dist-types/commands/DeleteViewCommand.d.ts +4 -1
- package/dist-types/commands/DeleteViewVersionCommand.d.ts +4 -1
- package/dist-types/commands/DeleteVocabularyCommand.d.ts +4 -1
- package/dist-types/commands/DescribeAgentStatusCommand.d.ts +1 -2
- package/dist-types/commands/DescribeHoursOfOperationCommand.d.ts +1 -2
- package/dist-types/commands/DescribeQueueCommand.d.ts +1 -2
- package/dist-types/commands/DisassociateQueueQuickConnectsCommand.d.ts +1 -2
- package/dist-types/commands/GetContactMetricsCommand.d.ts +117 -0
- package/dist-types/commands/GetCurrentMetricDataCommand.d.ts +37 -0
- package/dist-types/commands/GetMetricDataV2Command.d.ts +37 -0
- package/dist-types/commands/ListAgentStatusesCommand.d.ts +1 -2
- package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/ListLambdaFunctionsCommand.d.ts +1 -1
- package/dist-types/commands/ListLexBotsCommand.d.ts +1 -1
- package/dist-types/commands/ListPhoneNumbersCommand.d.ts +1 -2
- package/dist-types/commands/ListQueueQuickConnectsCommand.d.ts +1 -2
- package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +4 -1
- package/dist-types/commands/SearchAgentStatusesCommand.d.ts +8 -0
- package/dist-types/commands/SearchUserHierarchyGroupsCommand.d.ts +13 -0
- package/dist-types/commands/UpdateAgentStatusCommand.d.ts +1 -2
- package/dist-types/commands/UpdateHoursOfOperationCommand.d.ts +1 -2
- package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +4 -1
- package/dist-types/commands/UpdatePhoneNumberMetadataCommand.d.ts +4 -1
- package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -2
- package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -2
- package/dist-types/commands/UpdateQueueNameCommand.d.ts +1 -2
- package/dist-types/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -2
- package/dist-types/commands/UpdateQueueStatusCommand.d.ts +1 -2
- package/dist-types/commands/UpdateUserHierarchyStructureCommand.d.ts +4 -1
- package/dist-types/commands/UpdateViewContentCommand.d.ts +4 -1
- package/dist-types/commands/UpdateViewMetadataCommand.d.ts +4 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +39 -38
- package/dist-types/models/models_1.d.ts +631 -310
- package/dist-types/models/models_2.d.ts +206 -171
- package/dist-types/models/models_3.d.ts +149 -7
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/Connect.d.ts +17 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DeleteIntegrationAssociationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeletePredefinedAttributeCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetContactMetricsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListIntegrationAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListLambdaFunctionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListLexBotsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPhoneNumbersCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +11 -8
- package/dist-types/ts3.4/models/models_1.d.ts +48 -50
- package/dist-types/ts3.4/models/models_2.d.ts +52 -77
- package/dist-types/ts3.4/models/models_3.d.ts +70 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1201,6 +1201,14 @@ GetContactAttributes
|
|
|
1201
1201
|
|
|
1202
1202
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/GetContactAttributesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/GetContactAttributesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/GetContactAttributesCommandOutput/)
|
|
1203
1203
|
|
|
1204
|
+
</details>
|
|
1205
|
+
<details>
|
|
1206
|
+
<summary>
|
|
1207
|
+
GetContactMetrics
|
|
1208
|
+
</summary>
|
|
1209
|
+
|
|
1210
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/GetContactMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/GetContactMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/GetContactMetricsCommandOutput/)
|
|
1211
|
+
|
|
1204
1212
|
</details>
|
|
1205
1213
|
<details>
|
|
1206
1214
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -72,6 +72,8 @@ __export(index_exports, {
|
|
|
72
72
|
ContactFlowStatus: () => ContactFlowStatus,
|
|
73
73
|
ContactFlowType: () => ContactFlowType,
|
|
74
74
|
ContactInitiationMethod: () => ContactInitiationMethod,
|
|
75
|
+
ContactMetricName: () => ContactMetricName,
|
|
76
|
+
ContactMetricValue: () => ContactMetricValue,
|
|
75
77
|
ContactNotFoundException: () => ContactNotFoundException,
|
|
76
78
|
ContactRecordingType: () => ContactRecordingType,
|
|
77
79
|
ContactState: () => ContactState,
|
|
@@ -216,6 +218,7 @@ __export(index_exports, {
|
|
|
216
218
|
FlowAssociationResourceType: () => FlowAssociationResourceType,
|
|
217
219
|
GetAttachedFileCommand: () => GetAttachedFileCommand,
|
|
218
220
|
GetContactAttributesCommand: () => GetContactAttributesCommand,
|
|
221
|
+
GetContactMetricsCommand: () => GetContactMetricsCommand,
|
|
219
222
|
GetCurrentMetricDataCommand: () => GetCurrentMetricDataCommand,
|
|
220
223
|
GetCurrentUserDataCommand: () => GetCurrentUserDataCommand,
|
|
221
224
|
GetEffectiveHoursOfOperationsCommand: () => GetEffectiveHoursOfOperationsCommand,
|
|
@@ -975,6 +978,10 @@ var StringComparisonType = {
|
|
|
975
978
|
EXACT: "EXACT",
|
|
976
979
|
STARTS_WITH: "STARTS_WITH"
|
|
977
980
|
};
|
|
981
|
+
var HierarchyGroupMatchType = {
|
|
982
|
+
EXACT: "EXACT",
|
|
983
|
+
WITH_CHILD_GROUPS: "WITH_CHILD_GROUPS"
|
|
984
|
+
};
|
|
978
985
|
var MonitorCapability = {
|
|
979
986
|
BARGE: "BARGE",
|
|
980
987
|
SILENT_MONITOR: "SILENT_MONITOR"
|
|
@@ -2086,6 +2093,16 @@ var TrafficDistributionGroupStatus = {
|
|
|
2086
2093
|
PENDING_DELETION: "PENDING_DELETION",
|
|
2087
2094
|
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS"
|
|
2088
2095
|
};
|
|
2096
|
+
var ContactMetricName = {
|
|
2097
|
+
POSITION_IN_QUEUE: "POSITION_IN_QUEUE"
|
|
2098
|
+
};
|
|
2099
|
+
var ContactMetricValue;
|
|
2100
|
+
((ContactMetricValue3) => {
|
|
2101
|
+
ContactMetricValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
2102
|
+
if (value.Number !== void 0) return visitor.Number(value.Number);
|
|
2103
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
2104
|
+
}, "visit");
|
|
2105
|
+
})(ContactMetricValue || (ContactMetricValue = {}));
|
|
2089
2106
|
var CurrentMetricName = {
|
|
2090
2107
|
AGENTS_AFTER_CONTACT_WORK: "AGENTS_AFTER_CONTACT_WORK",
|
|
2091
2108
|
AGENTS_AVAILABLE: "AGENTS_AVAILABLE",
|
|
@@ -2382,10 +2399,6 @@ var MaximumResultReturnedException = class _MaximumResultReturnedException exten
|
|
|
2382
2399
|
this.Message = opts.Message;
|
|
2383
2400
|
}
|
|
2384
2401
|
};
|
|
2385
|
-
var HierarchyGroupMatchType = {
|
|
2386
|
-
EXACT: "EXACT",
|
|
2387
|
-
WITH_CHILD_GROUPS: "WITH_CHILD_GROUPS"
|
|
2388
|
-
};
|
|
2389
2402
|
var NumberComparisonType = {
|
|
2390
2403
|
EQUAL: "EQUAL",
|
|
2391
2404
|
GREATER: "GREATER",
|
|
@@ -2529,29 +2542,6 @@ var TimerEligibleParticipantRoles = {
|
|
|
2529
2542
|
AGENT: "AGENT",
|
|
2530
2543
|
CUSTOMER: "CUSTOMER"
|
|
2531
2544
|
};
|
|
2532
|
-
var ParticipantTimerType = {
|
|
2533
|
-
DISCONNECT_NONCUSTOMER: "DISCONNECT_NONCUSTOMER",
|
|
2534
|
-
IDLE: "IDLE"
|
|
2535
|
-
};
|
|
2536
|
-
var ParticipantTimerAction = {
|
|
2537
|
-
Unset: "Unset"
|
|
2538
|
-
};
|
|
2539
|
-
var ParticipantTimerValue;
|
|
2540
|
-
((ParticipantTimerValue3) => {
|
|
2541
|
-
ParticipantTimerValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
2542
|
-
if (value.ParticipantTimerAction !== void 0) return visitor.ParticipantTimerAction(value.ParticipantTimerAction);
|
|
2543
|
-
if (value.ParticipantTimerDurationInMinutes !== void 0)
|
|
2544
|
-
return visitor.ParticipantTimerDurationInMinutes(value.ParticipantTimerDurationInMinutes);
|
|
2545
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
2546
|
-
}, "visit");
|
|
2547
|
-
})(ParticipantTimerValue || (ParticipantTimerValue = {}));
|
|
2548
|
-
var UpdateParticipantRoleConfigChannelInfo;
|
|
2549
|
-
((UpdateParticipantRoleConfigChannelInfo4) => {
|
|
2550
|
-
UpdateParticipantRoleConfigChannelInfo4.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
2551
|
-
if (value.Chat !== void 0) return visitor.Chat(value.Chat);
|
|
2552
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
2553
|
-
}, "visit");
|
|
2554
|
-
})(UpdateParticipantRoleConfigChannelInfo || (UpdateParticipantRoleConfigChannelInfo = {}));
|
|
2555
2545
|
var ViewSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2556
2546
|
...obj,
|
|
2557
2547
|
...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -2740,6 +2730,29 @@ var UpdateParticipantAuthenticationRequestFilterSensitiveLog = /* @__PURE__ */ _
|
|
|
2740
2730
|
|
|
2741
2731
|
// src/models/models_3.ts
|
|
2742
2732
|
|
|
2733
|
+
var ParticipantTimerType = {
|
|
2734
|
+
DISCONNECT_NONCUSTOMER: "DISCONNECT_NONCUSTOMER",
|
|
2735
|
+
IDLE: "IDLE"
|
|
2736
|
+
};
|
|
2737
|
+
var ParticipantTimerAction = {
|
|
2738
|
+
Unset: "Unset"
|
|
2739
|
+
};
|
|
2740
|
+
var ParticipantTimerValue;
|
|
2741
|
+
((ParticipantTimerValue3) => {
|
|
2742
|
+
ParticipantTimerValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
2743
|
+
if (value.ParticipantTimerAction !== void 0) return visitor.ParticipantTimerAction(value.ParticipantTimerAction);
|
|
2744
|
+
if (value.ParticipantTimerDurationInMinutes !== void 0)
|
|
2745
|
+
return visitor.ParticipantTimerDurationInMinutes(value.ParticipantTimerDurationInMinutes);
|
|
2746
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
2747
|
+
}, "visit");
|
|
2748
|
+
})(ParticipantTimerValue || (ParticipantTimerValue = {}));
|
|
2749
|
+
var UpdateParticipantRoleConfigChannelInfo;
|
|
2750
|
+
((UpdateParticipantRoleConfigChannelInfo3) => {
|
|
2751
|
+
UpdateParticipantRoleConfigChannelInfo3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
2752
|
+
if (value.Chat !== void 0) return visitor.Chat(value.Chat);
|
|
2753
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
2754
|
+
}, "visit");
|
|
2755
|
+
})(UpdateParticipantRoleConfigChannelInfo || (UpdateParticipantRoleConfigChannelInfo = {}));
|
|
2743
2756
|
var EvaluationFormItem;
|
|
2744
2757
|
((EvaluationFormItem2) => {
|
|
2745
2758
|
EvaluationFormItem2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -4585,6 +4598,23 @@ var se_GetContactAttributesCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
4585
4598
|
b.m("GET").h(headers).b(body);
|
|
4586
4599
|
return b.build();
|
|
4587
4600
|
}, "se_GetContactAttributesCommand");
|
|
4601
|
+
var se_GetContactMetricsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
4602
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
4603
|
+
const headers = {
|
|
4604
|
+
"content-type": "application/json"
|
|
4605
|
+
};
|
|
4606
|
+
b.bp("/metrics/contact");
|
|
4607
|
+
let body;
|
|
4608
|
+
body = JSON.stringify(
|
|
4609
|
+
(0, import_smithy_client.take)(input, {
|
|
4610
|
+
ContactId: [],
|
|
4611
|
+
InstanceId: [],
|
|
4612
|
+
Metrics: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Metrics")
|
|
4613
|
+
})
|
|
4614
|
+
);
|
|
4615
|
+
b.m("POST").h(headers).b(body);
|
|
4616
|
+
return b.build();
|
|
4617
|
+
}, "se_GetContactMetricsCommand");
|
|
4588
4618
|
var se_GetCurrentMetricDataCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
4589
4619
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
4590
4620
|
const headers = {
|
|
@@ -8872,6 +8902,22 @@ var de_GetContactAttributesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
8872
8902
|
Object.assign(contents, doc);
|
|
8873
8903
|
return contents;
|
|
8874
8904
|
}, "de_GetContactAttributesCommand");
|
|
8905
|
+
var de_GetContactMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
8906
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8907
|
+
return de_CommandError(output, context);
|
|
8908
|
+
}
|
|
8909
|
+
const contents = (0, import_smithy_client.map)({
|
|
8910
|
+
$metadata: deserializeMetadata(output)
|
|
8911
|
+
});
|
|
8912
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
8913
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
8914
|
+
Arn: import_smithy_client.expectString,
|
|
8915
|
+
Id: import_smithy_client.expectString,
|
|
8916
|
+
MetricResults: /* @__PURE__ */ __name((_) => de_ContactMetricResults(_, context), "MetricResults")
|
|
8917
|
+
});
|
|
8918
|
+
Object.assign(contents, doc);
|
|
8919
|
+
return contents;
|
|
8920
|
+
}, "de_GetContactMetricsCommand");
|
|
8875
8921
|
var de_GetCurrentMetricDataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
8876
8922
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8877
8923
|
return de_CommandError(output, context);
|
|
@@ -11874,6 +11920,7 @@ var se_UserHierarchyGroupSearchConditionList = /* @__PURE__ */ __name((input, co
|
|
|
11874
11920
|
var se_UserHierarchyGroupSearchCriteria = /* @__PURE__ */ __name((input, context) => {
|
|
11875
11921
|
return (0, import_smithy_client.take)(input, {
|
|
11876
11922
|
AndConditions: /* @__PURE__ */ __name((_) => se_UserHierarchyGroupSearchConditionList(_, context), "AndConditions"),
|
|
11923
|
+
HierarchyGroupCondition: import_smithy_client._json,
|
|
11877
11924
|
OrConditions: /* @__PURE__ */ __name((_) => se_UserHierarchyGroupSearchConditionList(_, context), "OrConditions"),
|
|
11878
11925
|
StringCondition: import_smithy_client._json
|
|
11879
11926
|
});
|
|
@@ -12176,6 +12223,24 @@ var de_ContactFlowSearchSummaryList = /* @__PURE__ */ __name((output, context) =
|
|
|
12176
12223
|
});
|
|
12177
12224
|
return retVal;
|
|
12178
12225
|
}, "de_ContactFlowSearchSummaryList");
|
|
12226
|
+
var de_ContactMetricResult = /* @__PURE__ */ __name((output, context) => {
|
|
12227
|
+
return (0, import_smithy_client.take)(output, {
|
|
12228
|
+
Name: import_smithy_client.expectString,
|
|
12229
|
+
Value: /* @__PURE__ */ __name((_) => de_ContactMetricValue((0, import_core2.awsExpectUnion)(_), context), "Value")
|
|
12230
|
+
});
|
|
12231
|
+
}, "de_ContactMetricResult");
|
|
12232
|
+
var de_ContactMetricResults = /* @__PURE__ */ __name((output, context) => {
|
|
12233
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
12234
|
+
return de_ContactMetricResult(entry, context);
|
|
12235
|
+
});
|
|
12236
|
+
return retVal;
|
|
12237
|
+
}, "de_ContactMetricResults");
|
|
12238
|
+
var de_ContactMetricValue = /* @__PURE__ */ __name((output, context) => {
|
|
12239
|
+
if ((0, import_smithy_client.limitedParseDouble)(output.Number) !== void 0) {
|
|
12240
|
+
return { Number: (0, import_smithy_client.limitedParseDouble)(output.Number) };
|
|
12241
|
+
}
|
|
12242
|
+
return { $unknown: Object.entries(output)[0] };
|
|
12243
|
+
}, "de_ContactMetricValue");
|
|
12179
12244
|
var de_Contacts = /* @__PURE__ */ __name((output, context) => {
|
|
12180
12245
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
12181
12246
|
return de_ContactSearchSummary(entry, context);
|
|
@@ -15205,6 +15270,21 @@ var GetContactAttributesCommand = class extends import_smithy_client.Command.cla
|
|
|
15205
15270
|
}
|
|
15206
15271
|
};
|
|
15207
15272
|
|
|
15273
|
+
// src/commands/GetContactMetricsCommand.ts
|
|
15274
|
+
|
|
15275
|
+
|
|
15276
|
+
|
|
15277
|
+
var GetContactMetricsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
15278
|
+
return [
|
|
15279
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
15280
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
15281
|
+
];
|
|
15282
|
+
}).s("AmazonConnectService", "GetContactMetrics", {}).n("ConnectClient", "GetContactMetricsCommand").f(void 0, void 0).ser(se_GetContactMetricsCommand).de(de_GetContactMetricsCommand).build() {
|
|
15283
|
+
static {
|
|
15284
|
+
__name(this, "GetContactMetricsCommand");
|
|
15285
|
+
}
|
|
15286
|
+
};
|
|
15287
|
+
|
|
15208
15288
|
// src/commands/GetCurrentMetricDataCommand.ts
|
|
15209
15289
|
|
|
15210
15290
|
|
|
@@ -17729,6 +17809,7 @@ var commands = {
|
|
|
17729
17809
|
DismissUserContactCommand,
|
|
17730
17810
|
GetAttachedFileCommand,
|
|
17731
17811
|
GetContactAttributesCommand,
|
|
17812
|
+
GetContactMetricsCommand,
|
|
17732
17813
|
GetCurrentMetricDataCommand,
|
|
17733
17814
|
GetCurrentUserDataCommand,
|
|
17734
17815
|
GetEffectiveHoursOfOperationsCommand,
|
|
@@ -18290,6 +18371,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
|
|
|
18290
18371
|
DismissUserContactCommand,
|
|
18291
18372
|
GetAttachedFileCommand,
|
|
18292
18373
|
GetContactAttributesCommand,
|
|
18374
|
+
GetContactMetricsCommand,
|
|
18293
18375
|
GetCurrentMetricDataCommand,
|
|
18294
18376
|
GetCurrentUserDataCommand,
|
|
18295
18377
|
GetEffectiveHoursOfOperationsCommand,
|
|
@@ -18533,6 +18615,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
|
|
|
18533
18615
|
AgentStatusState,
|
|
18534
18616
|
AgentStatusType,
|
|
18535
18617
|
StringComparisonType,
|
|
18618
|
+
HierarchyGroupMatchType,
|
|
18536
18619
|
MonitorCapability,
|
|
18537
18620
|
AttachedFileInvalidRequestExceptionReason,
|
|
18538
18621
|
InvalidRequestExceptionReason,
|
|
@@ -18632,6 +18715,8 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
|
|
|
18632
18715
|
PhoneNumberType,
|
|
18633
18716
|
QueueStatus,
|
|
18634
18717
|
TrafficDistributionGroupStatus,
|
|
18718
|
+
ContactMetricName,
|
|
18719
|
+
ContactMetricValue,
|
|
18635
18720
|
CurrentMetricName,
|
|
18636
18721
|
Unit,
|
|
18637
18722
|
Grouping,
|
|
@@ -18672,7 +18757,6 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
|
|
|
18672
18757
|
DateComparisonType,
|
|
18673
18758
|
SearchableQueueType,
|
|
18674
18759
|
MaximumResultReturnedException,
|
|
18675
|
-
HierarchyGroupMatchType,
|
|
18676
18760
|
NumberComparisonType,
|
|
18677
18761
|
TargetListType,
|
|
18678
18762
|
ChatEventType,
|
|
@@ -18688,10 +18772,6 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
|
|
|
18688
18772
|
ContactNotFoundException,
|
|
18689
18773
|
ConditionalOperationFailedException,
|
|
18690
18774
|
TimerEligibleParticipantRoles,
|
|
18691
|
-
ParticipantTimerType,
|
|
18692
|
-
ParticipantTimerAction,
|
|
18693
|
-
ParticipantTimerValue,
|
|
18694
|
-
UpdateParticipantRoleConfigChannelInfo,
|
|
18695
18775
|
ViewSummaryFilterSensitiveLog,
|
|
18696
18776
|
ListViewsResponseFilterSensitiveLog,
|
|
18697
18777
|
ViewVersionSummaryFilterSensitiveLog,
|
|
@@ -18727,6 +18807,10 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
|
|
|
18727
18807
|
StartWebRTCContactResponseFilterSensitiveLog,
|
|
18728
18808
|
UpdateEmailAddressMetadataRequestFilterSensitiveLog,
|
|
18729
18809
|
UpdateParticipantAuthenticationRequestFilterSensitiveLog,
|
|
18810
|
+
ParticipantTimerType,
|
|
18811
|
+
ParticipantTimerAction,
|
|
18812
|
+
ParticipantTimerValue,
|
|
18813
|
+
UpdateParticipantRoleConfigChannelInfo,
|
|
18730
18814
|
EvaluationFormItem,
|
|
18731
18815
|
UpdateUserIdentityInfoRequestFilterSensitiveLog,
|
|
18732
18816
|
UpdateViewContentRequestFilterSensitiveLog,
|
package/dist-es/Connect.js
CHANGED
|
@@ -121,6 +121,7 @@ import { DisassociateUserProficienciesCommand, } from "./commands/DisassociateUs
|
|
|
121
121
|
import { DismissUserContactCommand, } from "./commands/DismissUserContactCommand";
|
|
122
122
|
import { GetAttachedFileCommand, } from "./commands/GetAttachedFileCommand";
|
|
123
123
|
import { GetContactAttributesCommand, } from "./commands/GetContactAttributesCommand";
|
|
124
|
+
import { GetContactMetricsCommand, } from "./commands/GetContactMetricsCommand";
|
|
124
125
|
import { GetCurrentMetricDataCommand, } from "./commands/GetCurrentMetricDataCommand";
|
|
125
126
|
import { GetCurrentUserDataCommand, } from "./commands/GetCurrentUserDataCommand";
|
|
126
127
|
import { GetEffectiveHoursOfOperationsCommand, } from "./commands/GetEffectiveHoursOfOperationsCommand";
|
|
@@ -405,6 +406,7 @@ const commands = {
|
|
|
405
406
|
DismissUserContactCommand,
|
|
406
407
|
GetAttachedFileCommand,
|
|
407
408
|
GetContactAttributesCommand,
|
|
409
|
+
GetContactMetricsCommand,
|
|
408
410
|
GetCurrentMetricDataCommand,
|
|
409
411
|
GetCurrentUserDataCommand,
|
|
410
412
|
GetEffectiveHoursOfOperationsCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetContactMetricsCommand, se_GetContactMetricsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetContactMetricsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("AmazonConnectService", "GetContactMetrics", {})
|
|
17
|
+
.n("ConnectClient", "GetContactMetricsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_GetContactMetricsCommand)
|
|
20
|
+
.de(de_GetContactMetricsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -120,6 +120,7 @@ export * from "./DisassociateUserProficienciesCommand";
|
|
|
120
120
|
export * from "./DismissUserContactCommand";
|
|
121
121
|
export * from "./GetAttachedFileCommand";
|
|
122
122
|
export * from "./GetContactAttributesCommand";
|
|
123
|
+
export * from "./GetContactMetricsCommand";
|
|
123
124
|
export * from "./GetCurrentMetricDataCommand";
|
|
124
125
|
export * from "./GetCurrentUserDataCommand";
|
|
125
126
|
export * from "./GetEffectiveHoursOfOperationsCommand";
|
|
@@ -156,6 +156,10 @@ export const StringComparisonType = {
|
|
|
156
156
|
EXACT: "EXACT",
|
|
157
157
|
STARTS_WITH: "STARTS_WITH",
|
|
158
158
|
};
|
|
159
|
+
export const HierarchyGroupMatchType = {
|
|
160
|
+
EXACT: "EXACT",
|
|
161
|
+
WITH_CHILD_GROUPS: "WITH_CHILD_GROUPS",
|
|
162
|
+
};
|
|
159
163
|
export const MonitorCapability = {
|
|
160
164
|
BARGE: "BARGE",
|
|
161
165
|
SILENT_MONITOR: "SILENT_MONITOR",
|
|
@@ -381,6 +381,17 @@ export const TrafficDistributionGroupStatus = {
|
|
|
381
381
|
PENDING_DELETION: "PENDING_DELETION",
|
|
382
382
|
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
383
383
|
};
|
|
384
|
+
export const ContactMetricName = {
|
|
385
|
+
POSITION_IN_QUEUE: "POSITION_IN_QUEUE",
|
|
386
|
+
};
|
|
387
|
+
export var ContactMetricValue;
|
|
388
|
+
(function (ContactMetricValue) {
|
|
389
|
+
ContactMetricValue.visit = (value, visitor) => {
|
|
390
|
+
if (value.Number !== undefined)
|
|
391
|
+
return visitor.Number(value.Number);
|
|
392
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
393
|
+
};
|
|
394
|
+
})(ContactMetricValue || (ContactMetricValue = {}));
|
|
384
395
|
export const CurrentMetricName = {
|
|
385
396
|
AGENTS_AFTER_CONTACT_WORK: "AGENTS_AFTER_CONTACT_WORK",
|
|
386
397
|
AGENTS_AVAILABLE: "AGENTS_AVAILABLE",
|
|
@@ -133,10 +133,6 @@ export class MaximumResultReturnedException extends __BaseException {
|
|
|
133
133
|
this.Message = opts.Message;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
export const HierarchyGroupMatchType = {
|
|
137
|
-
EXACT: "EXACT",
|
|
138
|
-
WITH_CHILD_GROUPS: "WITH_CHILD_GROUPS",
|
|
139
|
-
};
|
|
140
136
|
export const NumberComparisonType = {
|
|
141
137
|
EQUAL: "EQUAL",
|
|
142
138
|
GREATER: "GREATER",
|
|
@@ -244,31 +240,6 @@ export const TimerEligibleParticipantRoles = {
|
|
|
244
240
|
AGENT: "AGENT",
|
|
245
241
|
CUSTOMER: "CUSTOMER",
|
|
246
242
|
};
|
|
247
|
-
export const ParticipantTimerType = {
|
|
248
|
-
DISCONNECT_NONCUSTOMER: "DISCONNECT_NONCUSTOMER",
|
|
249
|
-
IDLE: "IDLE",
|
|
250
|
-
};
|
|
251
|
-
export const ParticipantTimerAction = {
|
|
252
|
-
Unset: "Unset",
|
|
253
|
-
};
|
|
254
|
-
export var ParticipantTimerValue;
|
|
255
|
-
(function (ParticipantTimerValue) {
|
|
256
|
-
ParticipantTimerValue.visit = (value, visitor) => {
|
|
257
|
-
if (value.ParticipantTimerAction !== undefined)
|
|
258
|
-
return visitor.ParticipantTimerAction(value.ParticipantTimerAction);
|
|
259
|
-
if (value.ParticipantTimerDurationInMinutes !== undefined)
|
|
260
|
-
return visitor.ParticipantTimerDurationInMinutes(value.ParticipantTimerDurationInMinutes);
|
|
261
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
262
|
-
};
|
|
263
|
-
})(ParticipantTimerValue || (ParticipantTimerValue = {}));
|
|
264
|
-
export var UpdateParticipantRoleConfigChannelInfo;
|
|
265
|
-
(function (UpdateParticipantRoleConfigChannelInfo) {
|
|
266
|
-
UpdateParticipantRoleConfigChannelInfo.visit = (value, visitor) => {
|
|
267
|
-
if (value.Chat !== undefined)
|
|
268
|
-
return visitor.Chat(value.Chat);
|
|
269
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
270
|
-
};
|
|
271
|
-
})(UpdateParticipantRoleConfigChannelInfo || (UpdateParticipantRoleConfigChannelInfo = {}));
|
|
272
243
|
export const ViewSummaryFilterSensitiveLog = (obj) => ({
|
|
273
244
|
...obj,
|
|
274
245
|
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { UserIdentityInfoFilterSensitiveLog, ViewFilterSensitiveLog, ViewInputContentFilterSensitiveLog, } from "./models_0";
|
|
3
3
|
import { EmailAddressInfoFilterSensitiveLog, InboundAdditionalRecipientsFilterSensitiveLog, InboundEmailContentFilterSensitiveLog, } from "./models_2";
|
|
4
|
+
export const ParticipantTimerType = {
|
|
5
|
+
DISCONNECT_NONCUSTOMER: "DISCONNECT_NONCUSTOMER",
|
|
6
|
+
IDLE: "IDLE",
|
|
7
|
+
};
|
|
8
|
+
export const ParticipantTimerAction = {
|
|
9
|
+
Unset: "Unset",
|
|
10
|
+
};
|
|
11
|
+
export var ParticipantTimerValue;
|
|
12
|
+
(function (ParticipantTimerValue) {
|
|
13
|
+
ParticipantTimerValue.visit = (value, visitor) => {
|
|
14
|
+
if (value.ParticipantTimerAction !== undefined)
|
|
15
|
+
return visitor.ParticipantTimerAction(value.ParticipantTimerAction);
|
|
16
|
+
if (value.ParticipantTimerDurationInMinutes !== undefined)
|
|
17
|
+
return visitor.ParticipantTimerDurationInMinutes(value.ParticipantTimerDurationInMinutes);
|
|
18
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
19
|
+
};
|
|
20
|
+
})(ParticipantTimerValue || (ParticipantTimerValue = {}));
|
|
21
|
+
export var UpdateParticipantRoleConfigChannelInfo;
|
|
22
|
+
(function (UpdateParticipantRoleConfigChannelInfo) {
|
|
23
|
+
UpdateParticipantRoleConfigChannelInfo.visit = (value, visitor) => {
|
|
24
|
+
if (value.Chat !== undefined)
|
|
25
|
+
return visitor.Chat(value.Chat);
|
|
26
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
27
|
+
};
|
|
28
|
+
})(UpdateParticipantRoleConfigChannelInfo || (UpdateParticipantRoleConfigChannelInfo = {}));
|
|
4
29
|
export var EvaluationFormItem;
|
|
5
30
|
(function (EvaluationFormItem) {
|
|
6
31
|
EvaluationFormItem.visit = (value, visitor) => {
|
|
@@ -1672,6 +1672,21 @@ export const se_GetContactAttributesCommand = async (input, context) => {
|
|
|
1672
1672
|
b.m("GET").h(headers).b(body);
|
|
1673
1673
|
return b.build();
|
|
1674
1674
|
};
|
|
1675
|
+
export const se_GetContactMetricsCommand = async (input, context) => {
|
|
1676
|
+
const b = rb(input, context);
|
|
1677
|
+
const headers = {
|
|
1678
|
+
"content-type": "application/json",
|
|
1679
|
+
};
|
|
1680
|
+
b.bp("/metrics/contact");
|
|
1681
|
+
let body;
|
|
1682
|
+
body = JSON.stringify(take(input, {
|
|
1683
|
+
ContactId: [],
|
|
1684
|
+
InstanceId: [],
|
|
1685
|
+
Metrics: (_) => _json(_),
|
|
1686
|
+
}));
|
|
1687
|
+
b.m("POST").h(headers).b(body);
|
|
1688
|
+
return b.build();
|
|
1689
|
+
};
|
|
1675
1690
|
export const se_GetCurrentMetricDataCommand = async (input, context) => {
|
|
1676
1691
|
const b = rb(input, context);
|
|
1677
1692
|
const headers = {
|
|
@@ -5749,6 +5764,22 @@ export const de_GetContactAttributesCommand = async (output, context) => {
|
|
|
5749
5764
|
Object.assign(contents, doc);
|
|
5750
5765
|
return contents;
|
|
5751
5766
|
};
|
|
5767
|
+
export const de_GetContactMetricsCommand = async (output, context) => {
|
|
5768
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5769
|
+
return de_CommandError(output, context);
|
|
5770
|
+
}
|
|
5771
|
+
const contents = map({
|
|
5772
|
+
$metadata: deserializeMetadata(output),
|
|
5773
|
+
});
|
|
5774
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5775
|
+
const doc = take(data, {
|
|
5776
|
+
Arn: __expectString,
|
|
5777
|
+
Id: __expectString,
|
|
5778
|
+
MetricResults: (_) => de_ContactMetricResults(_, context),
|
|
5779
|
+
});
|
|
5780
|
+
Object.assign(contents, doc);
|
|
5781
|
+
return contents;
|
|
5782
|
+
};
|
|
5752
5783
|
export const de_GetCurrentMetricDataCommand = async (output, context) => {
|
|
5753
5784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5754
5785
|
return de_CommandError(output, context);
|
|
@@ -8795,6 +8826,7 @@ const se_UserHierarchyGroupSearchConditionList = (input, context) => {
|
|
|
8795
8826
|
const se_UserHierarchyGroupSearchCriteria = (input, context) => {
|
|
8796
8827
|
return take(input, {
|
|
8797
8828
|
AndConditions: (_) => se_UserHierarchyGroupSearchConditionList(_, context),
|
|
8829
|
+
HierarchyGroupCondition: _json,
|
|
8798
8830
|
OrConditions: (_) => se_UserHierarchyGroupSearchConditionList(_, context),
|
|
8799
8831
|
StringCondition: _json,
|
|
8800
8832
|
});
|
|
@@ -9113,6 +9145,26 @@ const de_ContactFlowSearchSummaryList = (output, context) => {
|
|
|
9113
9145
|
});
|
|
9114
9146
|
return retVal;
|
|
9115
9147
|
};
|
|
9148
|
+
const de_ContactMetricResult = (output, context) => {
|
|
9149
|
+
return take(output, {
|
|
9150
|
+
Name: __expectString,
|
|
9151
|
+
Value: (_) => de_ContactMetricValue(__expectUnion(_), context),
|
|
9152
|
+
});
|
|
9153
|
+
};
|
|
9154
|
+
const de_ContactMetricResults = (output, context) => {
|
|
9155
|
+
const retVal = (output || [])
|
|
9156
|
+
.filter((e) => e != null)
|
|
9157
|
+
.map((entry) => {
|
|
9158
|
+
return de_ContactMetricResult(entry, context);
|
|
9159
|
+
});
|
|
9160
|
+
return retVal;
|
|
9161
|
+
};
|
|
9162
|
+
const de_ContactMetricValue = (output, context) => {
|
|
9163
|
+
if (__limitedParseDouble(output.Number) !== undefined) {
|
|
9164
|
+
return { Number: __limitedParseDouble(output.Number) };
|
|
9165
|
+
}
|
|
9166
|
+
return { $unknown: Object.entries(output)[0] };
|
|
9167
|
+
};
|
|
9116
9168
|
const de_Contacts = (output, context) => {
|
|
9117
9169
|
const retVal = (output || [])
|
|
9118
9170
|
.filter((e) => e != null)
|
package/dist-types/Connect.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ import { DisassociateUserProficienciesCommandInput, DisassociateUserProficiencie
|
|
|
121
121
|
import { DismissUserContactCommandInput, DismissUserContactCommandOutput } from "./commands/DismissUserContactCommand";
|
|
122
122
|
import { GetAttachedFileCommandInput, GetAttachedFileCommandOutput } from "./commands/GetAttachedFileCommand";
|
|
123
123
|
import { GetContactAttributesCommandInput, GetContactAttributesCommandOutput } from "./commands/GetContactAttributesCommand";
|
|
124
|
+
import { GetContactMetricsCommandInput, GetContactMetricsCommandOutput } from "./commands/GetContactMetricsCommand";
|
|
124
125
|
import { GetCurrentMetricDataCommandInput, GetCurrentMetricDataCommandOutput } from "./commands/GetCurrentMetricDataCommand";
|
|
125
126
|
import { GetCurrentUserDataCommandInput, GetCurrentUserDataCommandOutput } from "./commands/GetCurrentUserDataCommand";
|
|
126
127
|
import { GetEffectiveHoursOfOperationsCommandInput, GetEffectiveHoursOfOperationsCommandOutput } from "./commands/GetEffectiveHoursOfOperationsCommand";
|
|
@@ -1015,6 +1016,12 @@ export interface Connect {
|
|
|
1015
1016
|
getContactAttributes(args: GetContactAttributesCommandInput, options?: __HttpHandlerOptions): Promise<GetContactAttributesCommandOutput>;
|
|
1016
1017
|
getContactAttributes(args: GetContactAttributesCommandInput, cb: (err: any, data?: GetContactAttributesCommandOutput) => void): void;
|
|
1017
1018
|
getContactAttributes(args: GetContactAttributesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetContactAttributesCommandOutput) => void): void;
|
|
1019
|
+
/**
|
|
1020
|
+
* @see {@link GetContactMetricsCommand}
|
|
1021
|
+
*/
|
|
1022
|
+
getContactMetrics(args: GetContactMetricsCommandInput, options?: __HttpHandlerOptions): Promise<GetContactMetricsCommandOutput>;
|
|
1023
|
+
getContactMetrics(args: GetContactMetricsCommandInput, cb: (err: any, data?: GetContactMetricsCommandOutput) => void): void;
|
|
1024
|
+
getContactMetrics(args: GetContactMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetContactMetricsCommandOutput) => void): void;
|
|
1018
1025
|
/**
|
|
1019
1026
|
* @see {@link GetCurrentMetricDataCommand}
|
|
1020
1027
|
*/
|