Skip to content

Commit 83f7355

Browse files
author
awstools
committed
feat(client-connectcases): This release adds the ability to conditionally require fields on a template. Check public documentation for more information.
1 parent f4a25ae commit 83f7355

24 files changed

+2195
-26
lines changed

clients/client-connectcases/README.md

+54
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@
66

77
AWS SDK for JavaScript ConnectCases Client for Node.js, Browser and React Native.
88

9+
<ul>
10+
<li>
11+
<p>
12+
<a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Cases.html">Cases
13+
actions</a>
14+
</p>
15+
</li>
16+
<li>
17+
<p>
18+
<a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Cases.html">Cases data
19+
types</a>
20+
</p>
21+
</li>
22+
</ul>
923
<p>With Amazon Connect Cases, your agents can track and manage customer issues that require
1024
multiple interactions, follow-up tasks, and teams in your contact center. A case represents a
1125
customer issue. It records the issue, the steps and interactions taken to resolve the issue,
@@ -207,6 +221,14 @@ see LICENSE for more information.
207221

208222
## Client Commands (Operations List)
209223

224+
<details>
225+
<summary>
226+
BatchGetCaseRule
227+
</summary>
228+
229+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/BatchGetCaseRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/BatchGetCaseRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/BatchGetCaseRuleCommandOutput/)
230+
231+
</details>
210232
<details>
211233
<summary>
212234
BatchGetField
@@ -230,6 +252,14 @@ CreateCase
230252

231253
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/CreateCaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/CreateCaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/CreateCaseCommandOutput/)
232254

255+
</details>
256+
<details>
257+
<summary>
258+
CreateCaseRule
259+
</summary>
260+
261+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/CreateCaseRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/CreateCaseRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/CreateCaseRuleCommandOutput/)
262+
233263
</details>
234264
<details>
235265
<summary>
@@ -270,6 +300,14 @@ CreateTemplate
270300

271301
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/CreateTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/CreateTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/CreateTemplateCommandOutput/)
272302

303+
</details>
304+
<details>
305+
<summary>
306+
DeleteCaseRule
307+
</summary>
308+
309+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/DeleteCaseRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteCaseRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteCaseRuleCommandOutput/)
310+
273311
</details>
274312
<details>
275313
<summary>
@@ -350,6 +388,14 @@ GetTemplate
350388

351389
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/GetTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/GetTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/GetTemplateCommandOutput/)
352390

391+
</details>
392+
<details>
393+
<summary>
394+
ListCaseRules
395+
</summary>
396+
397+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/ListCaseRulesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/ListCaseRulesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/ListCaseRulesCommandOutput/)
398+
353399
</details>
354400
<details>
355401
<summary>
@@ -454,6 +500,14 @@ UpdateCase
454500

455501
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/UpdateCaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/UpdateCaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/UpdateCaseCommandOutput/)
456502

503+
</details>
504+
<details>
505+
<summary>
506+
UpdateCaseRule
507+
</summary>
508+
509+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/UpdateCaseRuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/UpdateCaseRuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/UpdateCaseRuleCommandOutput/)
510+
457511
</details>
458512
<details>
459513
<summary>

clients/client-connectcases/src/ConnectCases.ts

+115-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
import { createAggregatedClient } from "@smithy/smithy-client";
33
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
44

5+
import {
6+
BatchGetCaseRuleCommand,
7+
BatchGetCaseRuleCommandInput,
8+
BatchGetCaseRuleCommandOutput,
9+
} from "./commands/BatchGetCaseRuleCommand";
510
import {
611
BatchGetFieldCommand,
712
BatchGetFieldCommandInput,
@@ -13,6 +18,11 @@ import {
1318
BatchPutFieldOptionsCommandOutput,
1419
} from "./commands/BatchPutFieldOptionsCommand";
1520
import { CreateCaseCommand, CreateCaseCommandInput, CreateCaseCommandOutput } from "./commands/CreateCaseCommand";
21+
import {
22+
CreateCaseRuleCommand,
23+
CreateCaseRuleCommandInput,
24+
CreateCaseRuleCommandOutput,
25+
} from "./commands/CreateCaseRuleCommand";
1626
import {
1727
CreateDomainCommand,
1828
CreateDomainCommandInput,
@@ -34,6 +44,11 @@ import {
3444
CreateTemplateCommandInput,
3545
CreateTemplateCommandOutput,
3646
} from "./commands/CreateTemplateCommand";
47+
import {
48+
DeleteCaseRuleCommand,
49+
DeleteCaseRuleCommandInput,
50+
DeleteCaseRuleCommandOutput,
51+
} from "./commands/DeleteCaseRuleCommand";
3752
import {
3853
DeleteDomainCommand,
3954
DeleteDomainCommandInput,
@@ -64,6 +79,11 @@ import {
6479
import { GetDomainCommand, GetDomainCommandInput, GetDomainCommandOutput } from "./commands/GetDomainCommand";
6580
import { GetLayoutCommand, GetLayoutCommandInput, GetLayoutCommandOutput } from "./commands/GetLayoutCommand";
6681
import { GetTemplateCommand, GetTemplateCommandInput, GetTemplateCommandOutput } from "./commands/GetTemplateCommand";
82+
import {
83+
ListCaseRulesCommand,
84+
ListCaseRulesCommandInput,
85+
ListCaseRulesCommandOutput,
86+
} from "./commands/ListCaseRulesCommand";
6787
import {
6888
ListCasesForContactCommand,
6989
ListCasesForContactCommandInput,
@@ -105,6 +125,11 @@ import {
105125
UntagResourceCommandOutput,
106126
} from "./commands/UntagResourceCommand";
107127
import { UpdateCaseCommand, UpdateCaseCommandInput, UpdateCaseCommandOutput } from "./commands/UpdateCaseCommand";
128+
import {
129+
UpdateCaseRuleCommand,
130+
UpdateCaseRuleCommandInput,
131+
UpdateCaseRuleCommandOutput,
132+
} from "./commands/UpdateCaseRuleCommand";
108133
import { UpdateFieldCommand, UpdateFieldCommandInput, UpdateFieldCommandOutput } from "./commands/UpdateFieldCommand";
109134
import {
110135
UpdateLayoutCommand,
@@ -119,14 +144,17 @@ import {
119144
import { ConnectCasesClient, ConnectCasesClientConfig } from "./ConnectCasesClient";
120145

121146
const commands = {
147+
BatchGetCaseRuleCommand,
122148
BatchGetFieldCommand,
123149
BatchPutFieldOptionsCommand,
124150
CreateCaseCommand,
151+
CreateCaseRuleCommand,
125152
CreateDomainCommand,
126153
CreateFieldCommand,
127154
CreateLayoutCommand,
128155
CreateRelatedItemCommand,
129156
CreateTemplateCommand,
157+
DeleteCaseRuleCommand,
130158
DeleteDomainCommand,
131159
DeleteFieldCommand,
132160
DeleteLayoutCommand,
@@ -137,6 +165,7 @@ const commands = {
137165
GetDomainCommand,
138166
GetLayoutCommand,
139167
GetTemplateCommand,
168+
ListCaseRulesCommand,
140169
ListCasesForContactCommand,
141170
ListDomainsCommand,
142171
ListFieldOptionsCommand,
@@ -150,12 +179,30 @@ const commands = {
150179
TagResourceCommand,
151180
UntagResourceCommand,
152181
UpdateCaseCommand,
182+
UpdateCaseRuleCommand,
153183
UpdateFieldCommand,
154184
UpdateLayoutCommand,
155185
UpdateTemplateCommand,
156186
};
157187

158188
export interface ConnectCases {
189+
/**
190+
* @see {@link BatchGetCaseRuleCommand}
191+
*/
192+
batchGetCaseRule(
193+
args: BatchGetCaseRuleCommandInput,
194+
options?: __HttpHandlerOptions
195+
): Promise<BatchGetCaseRuleCommandOutput>;
196+
batchGetCaseRule(
197+
args: BatchGetCaseRuleCommandInput,
198+
cb: (err: any, data?: BatchGetCaseRuleCommandOutput) => void
199+
): void;
200+
batchGetCaseRule(
201+
args: BatchGetCaseRuleCommandInput,
202+
options: __HttpHandlerOptions,
203+
cb: (err: any, data?: BatchGetCaseRuleCommandOutput) => void
204+
): void;
205+
159206
/**
160207
* @see {@link BatchGetFieldCommand}
161208
*/
@@ -195,6 +242,20 @@ export interface ConnectCases {
195242
cb: (err: any, data?: CreateCaseCommandOutput) => void
196243
): void;
197244

245+
/**
246+
* @see {@link CreateCaseRuleCommand}
247+
*/
248+
createCaseRule(
249+
args: CreateCaseRuleCommandInput,
250+
options?: __HttpHandlerOptions
251+
): Promise<CreateCaseRuleCommandOutput>;
252+
createCaseRule(args: CreateCaseRuleCommandInput, cb: (err: any, data?: CreateCaseRuleCommandOutput) => void): void;
253+
createCaseRule(
254+
args: CreateCaseRuleCommandInput,
255+
options: __HttpHandlerOptions,
256+
cb: (err: any, data?: CreateCaseRuleCommandOutput) => void
257+
): void;
258+
198259
/**
199260
* @see {@link CreateDomainCommand}
200261
*/
@@ -259,6 +320,20 @@ export interface ConnectCases {
259320
cb: (err: any, data?: CreateTemplateCommandOutput) => void
260321
): void;
261322

323+
/**
324+
* @see {@link DeleteCaseRuleCommand}
325+
*/
326+
deleteCaseRule(
327+
args: DeleteCaseRuleCommandInput,
328+
options?: __HttpHandlerOptions
329+
): Promise<DeleteCaseRuleCommandOutput>;
330+
deleteCaseRule(args: DeleteCaseRuleCommandInput, cb: (err: any, data?: DeleteCaseRuleCommandOutput) => void): void;
331+
deleteCaseRule(
332+
args: DeleteCaseRuleCommandInput,
333+
options: __HttpHandlerOptions,
334+
cb: (err: any, data?: DeleteCaseRuleCommandOutput) => void
335+
): void;
336+
262337
/**
263338
* @see {@link DeleteDomainCommand}
264339
*/
@@ -384,6 +459,17 @@ export interface ConnectCases {
384459
cb: (err: any, data?: GetTemplateCommandOutput) => void
385460
): void;
386461

462+
/**
463+
* @see {@link ListCaseRulesCommand}
464+
*/
465+
listCaseRules(args: ListCaseRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListCaseRulesCommandOutput>;
466+
listCaseRules(args: ListCaseRulesCommandInput, cb: (err: any, data?: ListCaseRulesCommandOutput) => void): void;
467+
listCaseRules(
468+
args: ListCaseRulesCommandInput,
469+
options: __HttpHandlerOptions,
470+
cb: (err: any, data?: ListCaseRulesCommandOutput) => void
471+
): void;
472+
387473
/**
388474
* @see {@link ListCasesForContactCommand}
389475
*/
@@ -558,6 +644,20 @@ export interface ConnectCases {
558644
cb: (err: any, data?: UpdateCaseCommandOutput) => void
559645
): void;
560646

647+
/**
648+
* @see {@link UpdateCaseRuleCommand}
649+
*/
650+
updateCaseRule(
651+
args: UpdateCaseRuleCommandInput,
652+
options?: __HttpHandlerOptions
653+
): Promise<UpdateCaseRuleCommandOutput>;
654+
updateCaseRule(args: UpdateCaseRuleCommandInput, cb: (err: any, data?: UpdateCaseRuleCommandOutput) => void): void;
655+
updateCaseRule(
656+
args: UpdateCaseRuleCommandInput,
657+
options: __HttpHandlerOptions,
658+
cb: (err: any, data?: UpdateCaseRuleCommandOutput) => void
659+
): void;
660+
561661
/**
562662
* @see {@link UpdateFieldCommand}
563663
*/
@@ -596,7 +696,21 @@ export interface ConnectCases {
596696
}
597697

598698
/**
599-
* <p>With Amazon Connect Cases, your agents can track and manage customer issues that require
699+
* <ul>
700+
* <li>
701+
* <p>
702+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Cases.html">Cases
703+
* actions</a>
704+
* </p>
705+
* </li>
706+
* <li>
707+
* <p>
708+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Cases.html">Cases data
709+
* types</a>
710+
* </p>
711+
* </li>
712+
* </ul>
713+
* <p>With Amazon Connect Cases, your agents can track and manage customer issues that require
600714
* multiple interactions, follow-up tasks, and teams in your contact center. A case represents a
601715
* customer issue. It records the issue, the steps and interactions taken to resolve the issue,
602716
* and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the

0 commit comments

Comments
 (0)