Skip to content

Commit 327ce79

Browse files
This release adds the following fields to DescribeContact: DisconnectReason, AgentInitiatedHoldDuration, AfterContactWorkStartTimestamp, AfterContactWorkEndTimestamp, AfterContactWorkDuration, StateTransitions, Recordings, ContactDetails, ContactEvaluations, Attributes
1 parent b2e9ed9 commit 327ce79

31 files changed

+3015
-1457
lines changed

generator/ServiceModels/connect/connect-2017-08-08.api.json

Lines changed: 183 additions & 94 deletions
Large diffs are not rendered by default.

generator/ServiceModels/connect/connect-2017-08-08.docs.json

Lines changed: 682 additions & 1056 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"version": "1.0",
3-
"examples": {
4-
}
3+
"examples": {}
54
}

generator/ServiceModels/connect/connect-2017-08-08.normal.json

Lines changed: 292 additions & 103 deletions
Large diffs are not rendered by default.

sdk/code-analysis/ServiceAnalysis/Connect/Generated/PropertyValueRules.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3940,6 +3940,14 @@
39403940
<min>1</min>
39413941
<max>256</max>
39423942
</property-value-rule>
3943+
<property-value-rule>
3944+
<property>Amazon.Connect.Model.AgentInfo.AfterContactWorkDuration</property>
3945+
<min>0</min>
3946+
</property-value-rule>
3947+
<property-value-rule>
3948+
<property>Amazon.Connect.Model.AgentInfo.AgentInitiatedHoldDuration</property>
3949+
<min>0</min>
3950+
</property-value-rule>
39433951
<property-value-rule>
39443952
<property>Amazon.Connect.Model.AgentInfo.AgentPauseDurationInSeconds</property>
39453953
<min>0</min>
@@ -4249,6 +4257,16 @@
42494257
<property>Amazon.Connect.Model.ContactDataRequest.RequestIdentifier</property>
42504258
<max>80</max>
42514259
</property-value-rule>
4260+
<property-value-rule>
4261+
<property>Amazon.Connect.Model.ContactDetails.Description</property>
4262+
<min>0</min>
4263+
<max>1024</max>
4264+
</property-value-rule>
4265+
<property-value-rule>
4266+
<property>Amazon.Connect.Model.ContactDetails.Name</property>
4267+
<min>0</min>
4268+
<max>1024</max>
4269+
</property-value-rule>
42524270
<property-value-rule>
42534271
<property>Amazon.Connect.Model.ContactFlow.FlowContentSha256</property>
42544272
<min>1</min>
@@ -5222,6 +5240,21 @@
52225240
<min>1</min>
52235241
<max>256</max>
52245242
</property-value-rule>
5243+
<property-value-rule>
5244+
<property>Amazon.Connect.Model.RecordingInfo.FragmentStartNumber</property>
5245+
<min>0</min>
5246+
<max>128</max>
5247+
</property-value-rule>
5248+
<property-value-rule>
5249+
<property>Amazon.Connect.Model.RecordingInfo.FragmentStopNumber</property>
5250+
<min>0</min>
5251+
<max>128</max>
5252+
</property-value-rule>
5253+
<property-value-rule>
5254+
<property>Amazon.Connect.Model.RecordingInfo.Location</property>
5255+
<min>0</min>
5256+
<max>1024</max>
5257+
</property-value-rule>
52255258
<property-value-rule>
52265259
<property>Amazon.Connect.Model.Reference.Arn</property>
52275260
<min>20</min>

sdk/src/Services/Connect/Generated/Model/AgentInfo.cs

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,96 @@ namespace Amazon.Connect.Model
3434
/// </summary>
3535
public partial class AgentInfo
3636
{
37+
private int? _afterContactWorkDuration;
38+
private DateTime? _afterContactWorkEndTimestamp;
39+
private DateTime? _afterContactWorkStartTimestamp;
40+
private int? _agentInitiatedHoldDuration;
3741
private int? _agentPauseDurationInSeconds;
3842
private ParticipantCapabilities _capabilities;
3943
private DateTime? _connectedToAgentTimestamp;
4044
private DeviceInfo _deviceInfo;
4145
private HierarchyGroups _hierarchyGroups;
4246
private string _id;
47+
private List<StateTransition> _stateTransitions = AWSConfigs.InitializeCollections ? new List<StateTransition>() : null;
48+
49+
/// <summary>
50+
/// Gets and sets the property AfterContactWorkDuration.
51+
/// <para>
52+
/// The difference in time, in whole seconds, between <c>AfterContactWorkStartTimestamp</c>
53+
/// and <c>AfterContactWorkEndTimestamp</c>.
54+
/// </para>
55+
/// </summary>
56+
[AWSProperty(Min=0)]
57+
public int AfterContactWorkDuration
58+
{
59+
get { return this._afterContactWorkDuration.GetValueOrDefault(); }
60+
set { this._afterContactWorkDuration = value; }
61+
}
62+
63+
// Check to see if AfterContactWorkDuration property is set
64+
internal bool IsSetAfterContactWorkDuration()
65+
{
66+
return this._afterContactWorkDuration.HasValue;
67+
}
68+
69+
/// <summary>
70+
/// Gets and sets the property AfterContactWorkEndTimestamp.
71+
/// <para>
72+
/// The date and time when the agent ended After Contact Work for the contact, in UTC
73+
/// time. In cases when agent finishes doing <c>AfterContactWork</c> for chat contacts
74+
/// and switches their activity status to offline or equivalent without clearing the contact
75+
/// in CCP, discrepancies may be noticed for <c>AfterContactWorkEndTimestamp</c>.
76+
/// </para>
77+
/// </summary>
78+
public DateTime AfterContactWorkEndTimestamp
79+
{
80+
get { return this._afterContactWorkEndTimestamp.GetValueOrDefault(); }
81+
set { this._afterContactWorkEndTimestamp = value; }
82+
}
83+
84+
// Check to see if AfterContactWorkEndTimestamp property is set
85+
internal bool IsSetAfterContactWorkEndTimestamp()
86+
{
87+
return this._afterContactWorkEndTimestamp.HasValue;
88+
}
89+
90+
/// <summary>
91+
/// Gets and sets the property AfterContactWorkStartTimestamp.
92+
/// <para>
93+
/// The date and time when the agent started doing After Contact Work for the contact,
94+
/// in UTC time.
95+
/// </para>
96+
/// </summary>
97+
public DateTime AfterContactWorkStartTimestamp
98+
{
99+
get { return this._afterContactWorkStartTimestamp.GetValueOrDefault(); }
100+
set { this._afterContactWorkStartTimestamp = value; }
101+
}
102+
103+
// Check to see if AfterContactWorkStartTimestamp property is set
104+
internal bool IsSetAfterContactWorkStartTimestamp()
105+
{
106+
return this._afterContactWorkStartTimestamp.HasValue;
107+
}
108+
109+
/// <summary>
110+
/// Gets and sets the property AgentInitiatedHoldDuration.
111+
/// <para>
112+
/// The total hold duration in seconds initiated by the agent.
113+
/// </para>
114+
/// </summary>
115+
[AWSProperty(Min=0)]
116+
public int AgentInitiatedHoldDuration
117+
{
118+
get { return this._agentInitiatedHoldDuration.GetValueOrDefault(); }
119+
set { this._agentInitiatedHoldDuration = value; }
120+
}
121+
122+
// Check to see if AgentInitiatedHoldDuration property is set
123+
internal bool IsSetAgentInitiatedHoldDuration()
124+
{
125+
return this._agentInitiatedHoldDuration.HasValue;
126+
}
43127

44128
/// <summary>
45129
/// Gets and sets the property AgentPauseDurationInSeconds.
@@ -148,5 +232,23 @@ internal bool IsSetId()
148232
return this._id != null;
149233
}
150234

235+
/// <summary>
236+
/// Gets and sets the property StateTransitions.
237+
/// <para>
238+
/// List of <c>StateTransition</c> for a supervisor.
239+
/// </para>
240+
/// </summary>
241+
public List<StateTransition> StateTransitions
242+
{
243+
get { return this._stateTransitions; }
244+
set { this._stateTransitions = value; }
245+
}
246+
247+
// Check to see if StateTransitions property is set
248+
internal bool IsSetStateTransitions()
249+
{
250+
return this._stateTransitions != null && (this._stateTransitions.Count > 0 || !AWSConfigs.InitializeCollections);
251+
}
252+
151253
}
152254
}

sdk/src/Services/Connect/Generated/Model/Contact.cs

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,20 @@ public partial class Contact
3838
private AgentInfo _agentInfo;
3939
private AnsweringMachineDetectionStatus _answeringMachineDetectionStatus;
4040
private string _arn;
41+
private Dictionary<string, string> _attributes = AWSConfigs.InitializeCollections ? new Dictionary<string, string>() : null;
4142
private Campaign _campaign;
4243
private Channel _channel;
4344
private DateTime? _connectedToSystemTimestamp;
4445
private string _contactAssociationId;
46+
private ContactDetails _contactDetails;
47+
private Dictionary<string, ContactEvaluation> _contactEvaluations = AWSConfigs.InitializeCollections ? new Dictionary<string, ContactEvaluation>() : null;
4548
private Customer _customer;
4649
private EndpointInfo _customerEndpoint;
4750
private string _customerId;
4851
private CustomerVoiceActivity _customerVoiceActivity;
4952
private string _description;
5053
private DisconnectDetails _disconnectDetails;
54+
private string _disconnectReason;
5155
private DateTime? _disconnectTimestamp;
5256
private string _id;
5357
private string _initialContactId;
@@ -62,6 +66,7 @@ public partial class Contact
6266
private QueueInfo _queueInfo;
6367
private long? _queuePriority;
6468
private int? _queueTimeAdjustmentSeconds;
69+
private List<RecordingInfo> _recordings = AWSConfigs.InitializeCollections ? new List<RecordingInfo>() : null;
6570
private string _relatedContactId;
6671
private RoutingCriteria _routingCriteria;
6772
private DateTime? _scheduledTimestamp;
@@ -145,6 +150,24 @@ internal bool IsSetArn()
145150
return this._arn != null;
146151
}
147152

153+
/// <summary>
154+
/// Gets and sets the property Attributes.
155+
/// <para>
156+
/// The attributes of the contact.
157+
/// </para>
158+
/// </summary>
159+
public Dictionary<string, string> Attributes
160+
{
161+
get { return this._attributes; }
162+
set { this._attributes = value; }
163+
}
164+
165+
// Check to see if Attributes property is set
166+
internal bool IsSetAttributes()
167+
{
168+
return this._attributes != null && (this._attributes.Count > 0 || !AWSConfigs.InitializeCollections);
169+
}
170+
148171
/// <summary>
149172
/// Gets and sets the property Campaign.
150173
/// </summary>
@@ -216,6 +239,44 @@ internal bool IsSetContactAssociationId()
216239
return this._contactAssociationId != null;
217240
}
218241

242+
/// <summary>
243+
/// Gets and sets the property ContactDetails.
244+
/// <para>
245+
/// A map of string key/value pairs that contain user-defined attributes which are lightly
246+
/// typed within the contact. This object is used only for task contacts.
247+
/// </para>
248+
/// </summary>
249+
public ContactDetails ContactDetails
250+
{
251+
get { return this._contactDetails; }
252+
set { this._contactDetails = value; }
253+
}
254+
255+
// Check to see if ContactDetails property is set
256+
internal bool IsSetContactDetails()
257+
{
258+
return this._contactDetails != null;
259+
}
260+
261+
/// <summary>
262+
/// Gets and sets the property ContactEvaluations.
263+
/// <para>
264+
/// Information about the contact evaluations where the key is the FormId, which is a
265+
/// unique identifier for the form.
266+
/// </para>
267+
/// </summary>
268+
public Dictionary<string, ContactEvaluation> ContactEvaluations
269+
{
270+
get { return this._contactEvaluations; }
271+
set { this._contactEvaluations = value; }
272+
}
273+
274+
// Check to see if ContactEvaluations property is set
275+
internal bool IsSetContactEvaluations()
276+
{
277+
return this._contactEvaluations != null && (this._contactEvaluations.Count > 0 || !AWSConfigs.InitializeCollections);
278+
}
279+
219280
/// <summary>
220281
/// Gets and sets the property Customer.
221282
/// <para>
@@ -330,6 +391,24 @@ internal bool IsSetDisconnectDetails()
330391
return this._disconnectDetails != null;
331392
}
332393

394+
/// <summary>
395+
/// Gets and sets the property DisconnectReason.
396+
/// <para>
397+
/// The disconnect reason for the contact.
398+
/// </para>
399+
/// </summary>
400+
public string DisconnectReason
401+
{
402+
get { return this._disconnectReason; }
403+
set { this._disconnectReason = value; }
404+
}
405+
406+
// Check to see if DisconnectReason property is set
407+
internal bool IsSetDisconnectReason()
408+
{
409+
return this._disconnectReason != null;
410+
}
411+
333412
/// <summary>
334413
/// Gets and sets the property DisconnectTimestamp.
335414
/// <para>
@@ -601,6 +680,24 @@ internal bool IsSetQueueTimeAdjustmentSeconds()
601680
return this._queueTimeAdjustmentSeconds.HasValue;
602681
}
603682

683+
/// <summary>
684+
/// Gets and sets the property Recordings.
685+
/// <para>
686+
/// If recording was enabled, this is information about the recordings.
687+
/// </para>
688+
/// </summary>
689+
public List<RecordingInfo> Recordings
690+
{
691+
get { return this._recordings; }
692+
set { this._recordings = value; }
693+
}
694+
695+
// Check to see if Recordings property is set
696+
internal bool IsSetRecordings()
697+
{
698+
return this._recordings != null && (this._recordings.Count > 0 || !AWSConfigs.InitializeCollections);
699+
}
700+
604701
/// <summary>
605702
/// Gets and sets the property RelatedContactId.
606703
/// <para>

0 commit comments

Comments
 (0)