Skip to content

Commit 69bec69

Browse files
author
awstools
committed
feat(client-connectcases): Amazon Connect Cases now supports larger, multi-line text fields with up to 4,100 characters. Administrators can use the Admin UI to select the appropriate configuration (single-line or multi-line) on a per-field basis, improving case documentation capabilities.
1 parent 25287d4 commit 69bec69

10 files changed

Lines changed: 213 additions & 20 deletions

File tree

clients/client-connectcases/src/commands/BatchGetFieldCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ export interface BatchGetFieldCommandOutput extends BatchGetFieldResponse, __Met
6161
* // deleted: true || false,
6262
* // createdTime: new Date("TIMESTAMP"),
6363
* // lastModifiedTime: new Date("TIMESTAMP"),
64+
* // attributes: { // FieldAttributes Union: only one key present
65+
* // text: { // TextAttributes
66+
* // isMultiline: true || false, // required
67+
* // },
68+
* // },
6469
* // },
6570
* // ],
6671
* // errors: [ // BatchGetFieldErrorList // required

clients/client-connectcases/src/commands/CreateFieldCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ export interface CreateFieldCommandOutput extends CreateFieldResponse, __Metadat
4141
* name: "STRING_VALUE", // required
4242
* type: "STRING_VALUE", // required
4343
* description: "STRING_VALUE",
44+
* attributes: { // FieldAttributes Union: only one key present
45+
* text: { // TextAttributes
46+
* isMultiline: true || false, // required
47+
* },
48+
* },
4449
* };
4550
* const command = new CreateFieldCommand(input);
4651
* const response = await client.send(command);

clients/client-connectcases/src/commands/ListFieldsCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ export interface ListFieldsCommandOutput extends ListFieldsResponse, __MetadataB
5151
* // name: "STRING_VALUE", // required
5252
* // type: "STRING_VALUE", // required
5353
* // namespace: "STRING_VALUE", // required
54+
* // attributes: { // FieldAttributes Union: only one key present
55+
* // text: { // TextAttributes
56+
* // isMultiline: true || false, // required
57+
* // },
58+
* // },
5459
* // },
5560
* // ],
5661
* // nextToken: "STRING_VALUE",

clients/client-connectcases/src/commands/SearchCasesCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export interface SearchCasesCommandOutput extends SearchCasesResponse, __Metadat
168168
* // },
169169
* // },
170170
* // ],
171+
* // totalCount: Number("long"),
171172
* // };
172173
*
173174
* ```

clients/client-connectcases/src/commands/UpdateFieldCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ export interface UpdateFieldCommandOutput extends UpdateFieldResponse, __Metadat
4141
* fieldId: "STRING_VALUE", // required
4242
* name: "STRING_VALUE",
4343
* description: "STRING_VALUE",
44+
* attributes: { // FieldAttributes Union: only one key present
45+
* text: { // TextAttributes
46+
* isMultiline: true || false, // required
47+
* },
48+
* },
4449
* };
4550
* const command = new UpdateFieldCommand(input);
4651
* const response = await client.send(command);

clients/client-connectcases/src/models/models_0.ts

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,6 +1611,12 @@ export interface SearchCasesResponse {
16111611
* @public
16121612
*/
16131613
cases: SearchCasesResponseItem[] | undefined;
1614+
1615+
/**
1616+
* <p>The total number of cases that matched the search criteria.</p>
1617+
* @public
1618+
*/
1619+
totalCount?: number | undefined;
16141620
}
16151621

16161622
/**
@@ -2711,6 +2717,57 @@ export interface FieldError {
27112717
message?: string | undefined;
27122718
}
27132719

2720+
/**
2721+
* <p>Field attributes for Text field type.</p>
2722+
* @public
2723+
*/
2724+
export interface TextAttributes {
2725+
/**
2726+
* <p>Attribute that defines rendering component and validation.</p>
2727+
* @public
2728+
*/
2729+
isMultiline: boolean | undefined;
2730+
}
2731+
2732+
/**
2733+
* <p>Union of field attributes.</p>
2734+
* @public
2735+
*/
2736+
export type FieldAttributes =
2737+
| FieldAttributes.TextMember
2738+
| FieldAttributes.$UnknownMember;
2739+
2740+
/**
2741+
* @public
2742+
*/
2743+
export namespace FieldAttributes {
2744+
/**
2745+
* <p>Field attributes for Text field type.</p>
2746+
* @public
2747+
*/
2748+
export interface TextMember {
2749+
text: TextAttributes;
2750+
$unknown?: never;
2751+
}
2752+
2753+
/**
2754+
* @public
2755+
*/
2756+
export interface $UnknownMember {
2757+
text?: never;
2758+
$unknown: [string, any];
2759+
}
2760+
2761+
/**
2762+
* @deprecated unused in schema-serde mode.
2763+
*
2764+
*/
2765+
export interface Visitor<T> {
2766+
text: (value: TextAttributes) => T;
2767+
_: (name: string, value: any) => T;
2768+
}
2769+
}
2770+
27142771
/**
27152772
* <p>Object to store detailed field information.</p>
27162773
* @public
@@ -2775,6 +2832,12 @@ export interface GetFieldResponse {
27752832
* @public
27762833
*/
27772834
lastModifiedTime?: Date | undefined;
2835+
2836+
/**
2837+
* <p>Union of field attributes.</p>
2838+
* @public
2839+
*/
2840+
attributes?: FieldAttributes | undefined;
27782841
}
27792842

27802843
/**
@@ -2903,6 +2966,12 @@ export interface CreateFieldRequest {
29032966
* @public
29042967
*/
29052968
description?: string | undefined;
2969+
2970+
/**
2971+
* <p>Union of field attributes.</p>
2972+
* @public
2973+
*/
2974+
attributes?: FieldAttributes | undefined;
29062975
}
29072976

29082977
/**
@@ -3053,6 +3122,12 @@ export interface FieldSummary {
30533122
* @public
30543123
*/
30553124
namespace: FieldNamespace | undefined;
3125+
3126+
/**
3127+
* <p>Union of field attributes.</p>
3128+
* @public
3129+
*/
3130+
attributes?: FieldAttributes | undefined;
30563131
}
30573132

30583133
/**
@@ -3099,6 +3174,12 @@ export interface UpdateFieldRequest {
30993174
* @public
31003175
*/
31013176
description?: string | undefined;
3177+
3178+
/**
3179+
* <p>Union of field attributes.</p>
3180+
* @public
3181+
*/
3182+
attributes?: FieldAttributes | undefined;
31023183
}
31033184

31043185
/**

clients/client-connectcases/src/schemas/schemas_0.ts

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ const _EBC = "EventBridgeConfiguration";
9797
const _EFV = "EmptyFieldValue";
9898
const _EID = "EventIncludedData";
9999
const _EOV = "EmptyOperandValue";
100+
const _FA = "FieldAttributes";
100101
const _FC = "FileContent";
101102
const _FE = "FieldError";
102103
const _FF = "FileFilter";
@@ -214,6 +215,7 @@ const _SRIRIL = "SearchRelatedItemsResponseItemList";
214215
const _SRIRe = "SearchRelatedItemsResponse";
215216
const _Se = "Section";
216217
const _T = "Tags";
218+
const _TA = "TextAttributes";
217219
const _TCRL = "TemplateCaseRuleList";
218220
const _TE = "ThrottlingException";
219221
const _TF = "TagFilter";
@@ -244,10 +246,11 @@ const _UTR = "UpdateTemplateRequest";
244246
const _UTRp = "UpdateTemplateResponse";
245247
const _UU = "UserUnion";
246248
const _VE = "ValidationException";
247-
const _a = "active";
249+
const _a = "attributes";
248250
const _aA = "andAll";
249251
const _aE = "auditEvents";
250252
const _aT = "associationTime";
253+
const _ac = "active";
251254
const _ar = "arn";
252255
const _b = "body";
253256
const _bV = "booleanValue";
@@ -315,6 +318,7 @@ const _ht = "http";
315318
const _i = "id";
316319
const _iC = "includeContent";
317320
const _iD = "includedData";
321+
const _iM = "isMultiline";
318322
const _iPA = "iamPrincipalArn";
319323
const _k = "key";
320324
const _l = "layouts";
@@ -372,6 +376,7 @@ const _so = "sorts";
372376
const _sp = "sparse";
373377
const _t = "type";
374378
const _tA = "templateArn";
379+
const _tC = "totalCount";
375380
const _tFV = "targetFieldValues";
376381
const _tI = "templateId";
377382
const _tK = "tagKeys";
@@ -383,6 +388,7 @@ const _tT = "targetTime";
383388
const _ta = "tags";
384389
const _tag = "tag";
385390
const _te = "templates";
391+
const _tex = "text";
386392
const _u = "user";
387393
const _uA = "userArn";
388394
const _uAV = "userArnValue";
@@ -581,8 +587,8 @@ export var CreateDomainResponse$: StaticStructureSchema = [3, n0, _CDRr,
581587
];
582588
export var CreateFieldRequest$: StaticStructureSchema = [3, n0, _CFR,
583589
0,
584-
[_dI, _n, _t, _d],
585-
[[0, 1], 0, 0, 0], 3
590+
[_dI, _n, _t, _d, _a],
591+
[[0, 1], 0, 0, 0, () => FieldAttributes$], 3
586592
];
587593
export var CreateFieldResponse$: StaticStructureSchema = [3, n0, _CFRr,
588594
0,
@@ -751,7 +757,7 @@ export var FieldItem$: StaticStructureSchema = [3, n0, _FIi,
751757
];
752758
export var FieldOption$: StaticStructureSchema = [3, n0, _FO,
753759
0,
754-
[_n, _v, _a],
760+
[_n, _v, _ac],
755761
[0, 0, 2], 3
756762
];
757763
export var FieldOptionError$: StaticStructureSchema = [3, n0, _FOE,
@@ -766,8 +772,8 @@ export var FieldOptionsCaseRule$: StaticStructureSchema = [3, n0, _FOCR,
766772
];
767773
export var FieldSummary$: StaticStructureSchema = [3, n0, _FS,
768774
0,
769-
[_fI, _fA, _n, _t, _na],
770-
[0, 0, 0, 0, 0], 5
775+
[_fI, _fA, _n, _t, _na, _a],
776+
[0, 0, 0, 0, 0, () => FieldAttributes$], 5
771777
];
772778
export var FieldValue$: StaticStructureSchema = [3, n0, _FV,
773779
0,
@@ -831,8 +837,8 @@ export var GetDomainResponse$: StaticStructureSchema = [3, n0, _GDRe,
831837
];
832838
export var GetFieldResponse$: StaticStructureSchema = [3, n0, _GFR,
833839
0,
834-
[_fI, _n, _fA, _t, _na, _d, _ta, _de, _cTr, _lMT],
835-
[0, 0, 0, 0, 0, 0, [() => Tags, 0], 2, 5, 5], 5
840+
[_fI, _n, _fA, _t, _na, _d, _ta, _de, _cTr, _lMT, _a],
841+
[0, 0, 0, 0, 0, 0, [() => Tags, 0], 2, 5, 5, () => FieldAttributes$], 5
836842
];
837843
export var GetLayoutRequest$: StaticStructureSchema = [3, n0, _GLR,
838844
0,
@@ -1023,8 +1029,8 @@ export var SearchCasesRequest$: StaticStructureSchema = [3, n0, _SCR,
10231029
];
10241030
export var SearchCasesResponse$: StaticStructureSchema = [3, n0, _SCRe,
10251031
0,
1026-
[_ca, _nT],
1027-
[[() => SearchCasesResponseItemList, 0], 0], 1
1032+
[_ca, _nT, _tC],
1033+
[[() => SearchCasesResponseItemList, 0], 0, 1], 1
10281034
];
10291035
export var SearchCasesResponseItem$: StaticStructureSchema = [3, n0, _SCRI,
10301036
0,
@@ -1102,6 +1108,11 @@ export var TemplateSummary$: StaticStructureSchema = [3, n0, _TS,
11021108
[_tI, _tA, _n, _s, _tPC],
11031109
[0, 0, 0, 0, () => TagPropagationConfigurationList], 4
11041110
];
1111+
export var TextAttributes$: StaticStructureSchema = [3, n0, _TA,
1112+
0,
1113+
[_iM],
1114+
[2], 1
1115+
];
11051116
export var ThrottlingException$: StaticErrorSchema = [-3, n0, _TE,
11061117
{ [_e]: _c, [_hE]: 429 },
11071118
[_m],
@@ -1135,8 +1146,8 @@ export var UpdateCaseRuleResponse$: StaticStructureSchema = [3, n0, _UCRRp,
11351146
];
11361147
export var UpdateFieldRequest$: StaticStructureSchema = [3, n0, _UFR,
11371148
0,
1138-
[_dI, _fI, _n, _d],
1139-
[[0, 1], [0, 1], 0, 0], 2
1149+
[_dI, _fI, _n, _d, _a],
1150+
[[0, 1], [0, 1], 0, 0, () => FieldAttributes$], 2
11401151
];
11411152
export var UpdateFieldResponse$: StaticStructureSchema = [3, n0, _UFRp,
11421153
0,
@@ -1316,6 +1327,11 @@ export var CustomFieldsFilter$: StaticUnionSchema = [4, n0, _CFF,
13161327
[_fie, _no, _aA, _oA],
13171328
[() => FieldFilter$, () => CustomFieldsFilter$, () => CustomFieldsFilterList, () => CustomFieldsFilterList]
13181329
];
1330+
export var FieldAttributes$: StaticUnionSchema = [4, n0, _FA,
1331+
0,
1332+
[_tex],
1333+
[() => TextAttributes$]
1334+
];
13191335
export var FieldFilter$: StaticUnionSchema = [4, n0, _FFi,
13201336
0,
13211337
[_eT, _cont, _gT, _gTOET, _lT, _lTOET],

clients/client-connectcases/test/index-objects.spec.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ import {
108108
EmptyOperandValue$,
109109
EventBridgeConfiguration$,
110110
EventIncludedData$,
111+
FieldAttributes$,
111112
FieldError$,
112113
FieldFilter$,
113114
FieldGroup$,
@@ -256,6 +257,7 @@ import {
256257
TemplateRule$,
257258
TemplateStatus,
258259
TemplateSummary$,
260+
TextAttributes$,
259261
ThrottlingException,
260262
ThrottlingException$,
261263
UntagResource$,
@@ -440,6 +442,7 @@ assert(typeof EmptyFieldValue$ === "object");
440442
assert(typeof EmptyOperandValue$ === "object");
441443
assert(typeof EventBridgeConfiguration$ === "object");
442444
assert(typeof EventIncludedData$ === "object");
445+
assert(typeof FieldAttributes$ === "object");
443446
assert(typeof FieldError$ === "object");
444447
assert(typeof FieldFilter$ === "object");
445448
assert(typeof FieldGroup$ === "object");
@@ -522,6 +525,7 @@ assert(typeof TagResourceRequest$ === "object");
522525
assert(typeof TagValue$ === "object");
523526
assert(typeof TemplateRule$ === "object");
524527
assert(typeof TemplateSummary$ === "object");
528+
assert(typeof TextAttributes$ === "object");
525529
assert(typeof UntagResourceRequest$ === "object");
526530
assert(typeof UpdateCaseRequest$ === "object");
527531
assert(typeof UpdateCaseResponse$ === "object");

clients/client-connectcases/test/index-types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export type {
206206
EmptyOperandValue,
207207
EventBridgeConfiguration,
208208
EventIncludedData,
209+
FieldAttributes,
209210
FieldError,
210211
FieldFilter,
211212
FieldGroup,
@@ -288,6 +289,7 @@ export type {
288289
TagValue,
289290
TemplateRule,
290291
TemplateSummary,
292+
TextAttributes,
291293
UntagResourceRequest,
292294
UpdateCaseRequest,
293295
UpdateCaseResponse,

0 commit comments

Comments
 (0)