Skip to content

Commit 1cbc8f9

Browse files
author
awstools
committed
feat(client-connect): This release adds 5 new APIs for managing attachments: StartAttachedFileUpload, CompleteAttachedFileUpload, GetAttachedFile, BatchGetAttachedFileMetadata, DeleteAttachedFile. These APIs can be used to programmatically upload and download attachments to Connect resources, like cases.
1 parent bfa8626 commit 1cbc8f9

23 files changed

+3329
-753
lines changed

clients/client-connect/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,14 @@ BatchDisassociateAnalyticsDataSet
348348

349349
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/BatchDisassociateAnalyticsDataSetCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/BatchDisassociateAnalyticsDataSetCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/BatchDisassociateAnalyticsDataSetCommandOutput/)
350350

351+
</details>
352+
<details>
353+
<summary>
354+
BatchGetAttachedFileMetadata
355+
</summary>
356+
357+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/BatchGetAttachedFileMetadataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/BatchGetAttachedFileMetadataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/BatchGetAttachedFileMetadataCommandOutput/)
358+
351359
</details>
352360
<details>
353361
<summary>
@@ -372,6 +380,14 @@ ClaimPhoneNumber
372380

373381
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/ClaimPhoneNumberCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ClaimPhoneNumberCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ClaimPhoneNumberCommandOutput/)
374382

383+
</details>
384+
<details>
385+
<summary>
386+
CompleteAttachedFileUpload
387+
</summary>
388+
389+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/CompleteAttachedFileUploadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/CompleteAttachedFileUploadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/CompleteAttachedFileUploadCommandOutput/)
390+
375391
</details>
376392
<details>
377393
<summary>
@@ -572,6 +588,14 @@ DeactivateEvaluationForm
572588

573589
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/DeactivateEvaluationFormCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/DeactivateEvaluationFormCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/DeactivateEvaluationFormCommandOutput/)
574590

591+
</details>
592+
<details>
593+
<summary>
594+
DeleteAttachedFile
595+
</summary>
596+
597+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/DeleteAttachedFileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/DeleteAttachedFileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/DeleteAttachedFileCommandOutput/)
598+
575599
</details>
576600
<details>
577601
<summary>
@@ -1052,6 +1076,14 @@ DismissUserContact
10521076

10531077
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/DismissUserContactCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/DismissUserContactCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/DismissUserContactCommandOutput/)
10541078

1079+
</details>
1080+
<details>
1081+
<summary>
1082+
GetAttachedFile
1083+
</summary>
1084+
1085+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/GetAttachedFileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/GetAttachedFileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/GetAttachedFileCommandOutput/)
1086+
10551087
</details>
10561088
<details>
10571089
<summary>
@@ -1652,6 +1684,14 @@ SendChatIntegrationEvent
16521684

16531685
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SendChatIntegrationEventCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SendChatIntegrationEventCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SendChatIntegrationEventCommandOutput/)
16541686

1687+
</details>
1688+
<details>
1689+
<summary>
1690+
StartAttachedFileUpload
1691+
</summary>
1692+
1693+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/StartAttachedFileUploadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/StartAttachedFileUploadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/StartAttachedFileUploadCommandOutput/)
1694+
16551695
</details>
16561696
<details>
16571697
<summary>

clients/client-connect/src/Connect.ts

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ import {
8787
BatchDisassociateAnalyticsDataSetCommandInput,
8888
BatchDisassociateAnalyticsDataSetCommandOutput,
8989
} from "./commands/BatchDisassociateAnalyticsDataSetCommand";
90+
import {
91+
BatchGetAttachedFileMetadataCommand,
92+
BatchGetAttachedFileMetadataCommandInput,
93+
BatchGetAttachedFileMetadataCommandOutput,
94+
} from "./commands/BatchGetAttachedFileMetadataCommand";
9095
import {
9196
BatchGetFlowAssociationCommand,
9297
BatchGetFlowAssociationCommandInput,
@@ -102,6 +107,11 @@ import {
102107
ClaimPhoneNumberCommandInput,
103108
ClaimPhoneNumberCommandOutput,
104109
} from "./commands/ClaimPhoneNumberCommand";
110+
import {
111+
CompleteAttachedFileUploadCommand,
112+
CompleteAttachedFileUploadCommandInput,
113+
CompleteAttachedFileUploadCommandOutput,
114+
} from "./commands/CompleteAttachedFileUploadCommand";
105115
import {
106116
CreateAgentStatusCommand,
107117
CreateAgentStatusCommandInput,
@@ -211,6 +221,11 @@ import {
211221
DeactivateEvaluationFormCommandInput,
212222
DeactivateEvaluationFormCommandOutput,
213223
} from "./commands/DeactivateEvaluationFormCommand";
224+
import {
225+
DeleteAttachedFileCommand,
226+
DeleteAttachedFileCommandInput,
227+
DeleteAttachedFileCommandOutput,
228+
} from "./commands/DeleteAttachedFileCommand";
214229
import {
215230
DeleteContactEvaluationCommand,
216231
DeleteContactEvaluationCommandInput,
@@ -495,6 +510,11 @@ import {
495510
DismissUserContactCommandInput,
496511
DismissUserContactCommandOutput,
497512
} from "./commands/DismissUserContactCommand";
513+
import {
514+
GetAttachedFileCommand,
515+
GetAttachedFileCommandInput,
516+
GetAttachedFileCommandOutput,
517+
} from "./commands/GetAttachedFileCommand";
498518
import {
499519
GetContactAttributesCommand,
500520
GetContactAttributesCommandInput,
@@ -838,6 +858,11 @@ import {
838858
SendChatIntegrationEventCommandInput,
839859
SendChatIntegrationEventCommandOutput,
840860
} from "./commands/SendChatIntegrationEventCommand";
861+
import {
862+
StartAttachedFileUploadCommand,
863+
StartAttachedFileUploadCommandInput,
864+
StartAttachedFileUploadCommandOutput,
865+
} from "./commands/StartAttachedFileUploadCommand";
841866
import {
842867
StartChatContactCommand,
843868
StartChatContactCommandInput,
@@ -1157,9 +1182,11 @@ const commands = {
11571182
AssociateUserProficienciesCommand,
11581183
BatchAssociateAnalyticsDataSetCommand,
11591184
BatchDisassociateAnalyticsDataSetCommand,
1185+
BatchGetAttachedFileMetadataCommand,
11601186
BatchGetFlowAssociationCommand,
11611187
BatchPutContactCommand,
11621188
ClaimPhoneNumberCommand,
1189+
CompleteAttachedFileUploadCommand,
11631190
CreateAgentStatusCommand,
11641191
CreateContactFlowCommand,
11651192
CreateContactFlowModuleCommand,
@@ -1185,6 +1212,7 @@ const commands = {
11851212
CreateViewVersionCommand,
11861213
CreateVocabularyCommand,
11871214
DeactivateEvaluationFormCommand,
1215+
DeleteAttachedFileCommand,
11881216
DeleteContactEvaluationCommand,
11891217
DeleteContactFlowCommand,
11901218
DeleteContactFlowModuleCommand,
@@ -1245,6 +1273,7 @@ const commands = {
12451273
DisassociateTrafficDistributionGroupUserCommand,
12461274
DisassociateUserProficienciesCommand,
12471275
DismissUserContactCommand,
1276+
GetAttachedFileCommand,
12481277
GetContactAttributesCommand,
12491278
GetCurrentMetricDataCommand,
12501279
GetCurrentUserDataCommand,
@@ -1320,6 +1349,7 @@ const commands = {
13201349
SearchUsersCommand,
13211350
SearchVocabulariesCommand,
13221351
SendChatIntegrationEventCommand,
1352+
StartAttachedFileUploadCommand,
13231353
StartChatContactCommand,
13241354
StartContactEvaluationCommand,
13251355
StartContactRecordingCommand,
@@ -1660,6 +1690,23 @@ export interface Connect {
16601690
cb: (err: any, data?: BatchDisassociateAnalyticsDataSetCommandOutput) => void
16611691
): void;
16621692

1693+
/**
1694+
* @see {@link BatchGetAttachedFileMetadataCommand}
1695+
*/
1696+
batchGetAttachedFileMetadata(
1697+
args: BatchGetAttachedFileMetadataCommandInput,
1698+
options?: __HttpHandlerOptions
1699+
): Promise<BatchGetAttachedFileMetadataCommandOutput>;
1700+
batchGetAttachedFileMetadata(
1701+
args: BatchGetAttachedFileMetadataCommandInput,
1702+
cb: (err: any, data?: BatchGetAttachedFileMetadataCommandOutput) => void
1703+
): void;
1704+
batchGetAttachedFileMetadata(
1705+
args: BatchGetAttachedFileMetadataCommandInput,
1706+
options: __HttpHandlerOptions,
1707+
cb: (err: any, data?: BatchGetAttachedFileMetadataCommandOutput) => void
1708+
): void;
1709+
16631710
/**
16641711
* @see {@link BatchGetFlowAssociationCommand}
16651712
*/
@@ -1708,6 +1755,23 @@ export interface Connect {
17081755
cb: (err: any, data?: ClaimPhoneNumberCommandOutput) => void
17091756
): void;
17101757

1758+
/**
1759+
* @see {@link CompleteAttachedFileUploadCommand}
1760+
*/
1761+
completeAttachedFileUpload(
1762+
args: CompleteAttachedFileUploadCommandInput,
1763+
options?: __HttpHandlerOptions
1764+
): Promise<CompleteAttachedFileUploadCommandOutput>;
1765+
completeAttachedFileUpload(
1766+
args: CompleteAttachedFileUploadCommandInput,
1767+
cb: (err: any, data?: CompleteAttachedFileUploadCommandOutput) => void
1768+
): void;
1769+
completeAttachedFileUpload(
1770+
args: CompleteAttachedFileUploadCommandInput,
1771+
options: __HttpHandlerOptions,
1772+
cb: (err: any, data?: CompleteAttachedFileUploadCommandOutput) => void
1773+
): void;
1774+
17111775
/**
17121776
* @see {@link CreateAgentStatusCommand}
17131777
*/
@@ -2094,6 +2158,23 @@ export interface Connect {
20942158
cb: (err: any, data?: DeactivateEvaluationFormCommandOutput) => void
20952159
): void;
20962160

2161+
/**
2162+
* @see {@link DeleteAttachedFileCommand}
2163+
*/
2164+
deleteAttachedFile(
2165+
args: DeleteAttachedFileCommandInput,
2166+
options?: __HttpHandlerOptions
2167+
): Promise<DeleteAttachedFileCommandOutput>;
2168+
deleteAttachedFile(
2169+
args: DeleteAttachedFileCommandInput,
2170+
cb: (err: any, data?: DeleteAttachedFileCommandOutput) => void
2171+
): void;
2172+
deleteAttachedFile(
2173+
args: DeleteAttachedFileCommandInput,
2174+
options: __HttpHandlerOptions,
2175+
cb: (err: any, data?: DeleteAttachedFileCommandOutput) => void
2176+
): void;
2177+
20972178
/**
20982179
* @see {@link DeleteContactEvaluationCommand}
20992180
*/
@@ -3042,6 +3123,20 @@ export interface Connect {
30423123
cb: (err: any, data?: DismissUserContactCommandOutput) => void
30433124
): void;
30443125

3126+
/**
3127+
* @see {@link GetAttachedFileCommand}
3128+
*/
3129+
getAttachedFile(
3130+
args: GetAttachedFileCommandInput,
3131+
options?: __HttpHandlerOptions
3132+
): Promise<GetAttachedFileCommandOutput>;
3133+
getAttachedFile(args: GetAttachedFileCommandInput, cb: (err: any, data?: GetAttachedFileCommandOutput) => void): void;
3134+
getAttachedFile(
3135+
args: GetAttachedFileCommandInput,
3136+
options: __HttpHandlerOptions,
3137+
cb: (err: any, data?: GetAttachedFileCommandOutput) => void
3138+
): void;
3139+
30453140
/**
30463141
* @see {@link GetContactAttributesCommand}
30473142
*/
@@ -4206,6 +4301,23 @@ export interface Connect {
42064301
cb: (err: any, data?: SendChatIntegrationEventCommandOutput) => void
42074302
): void;
42084303

4304+
/**
4305+
* @see {@link StartAttachedFileUploadCommand}
4306+
*/
4307+
startAttachedFileUpload(
4308+
args: StartAttachedFileUploadCommandInput,
4309+
options?: __HttpHandlerOptions
4310+
): Promise<StartAttachedFileUploadCommandOutput>;
4311+
startAttachedFileUpload(
4312+
args: StartAttachedFileUploadCommandInput,
4313+
cb: (err: any, data?: StartAttachedFileUploadCommandOutput) => void
4314+
): void;
4315+
startAttachedFileUpload(
4316+
args: StartAttachedFileUploadCommandInput,
4317+
options: __HttpHandlerOptions,
4318+
cb: (err: any, data?: StartAttachedFileUploadCommandOutput) => void
4319+
): void;
4320+
42094321
/**
42104322
* @see {@link StartChatContactCommand}
42114323
*/

0 commit comments

Comments
 (0)