@aws-sdk/client-connectcases 3.564.0 → 3.565.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 CHANGED
@@ -278,6 +278,30 @@ DeleteDomain
278
278
 
279
279
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/DeleteDomainCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteDomainCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteDomainCommandOutput/)
280
280
 
281
+ </details>
282
+ <details>
283
+ <summary>
284
+ DeleteField
285
+ </summary>
286
+
287
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/DeleteFieldCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteFieldCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteFieldCommandOutput/)
288
+
289
+ </details>
290
+ <details>
291
+ <summary>
292
+ DeleteLayout
293
+ </summary>
294
+
295
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/DeleteLayoutCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteLayoutCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteLayoutCommandOutput/)
296
+
297
+ </details>
298
+ <details>
299
+ <summary>
300
+ DeleteTemplate
301
+ </summary>
302
+
303
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/DeleteTemplateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteTemplateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/DeleteTemplateCommandOutput/)
304
+
281
305
  </details>
282
306
  <details>
283
307
  <summary>
package/dist-cjs/index.js CHANGED
@@ -39,6 +39,9 @@ __export(src_exports, {
39
39
  CreateRelatedItemCommand: () => CreateRelatedItemCommand,
40
40
  CreateTemplateCommand: () => CreateTemplateCommand,
41
41
  DeleteDomainCommand: () => DeleteDomainCommand,
42
+ DeleteFieldCommand: () => DeleteFieldCommand,
43
+ DeleteLayoutCommand: () => DeleteLayoutCommand,
44
+ DeleteTemplateCommand: () => DeleteTemplateCommand,
42
45
  DomainStatus: () => DomainStatus,
43
46
  FieldFilter: () => FieldFilter,
44
47
  FieldNamespace: () => FieldNamespace,
@@ -699,6 +702,36 @@ var se_DeleteDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
699
702
  b.m("DELETE").h(headers).b(body);
700
703
  return b.build();
701
704
  }, "se_DeleteDomainCommand");
705
+ var se_DeleteFieldCommand = /* @__PURE__ */ __name(async (input, context) => {
706
+ const b = (0, import_core.requestBuilder)(input, context);
707
+ const headers = {};
708
+ b.bp("/domains/{domainId}/fields/{fieldId}");
709
+ b.p("domainId", () => input.domainId, "{domainId}", false);
710
+ b.p("fieldId", () => input.fieldId, "{fieldId}", false);
711
+ let body;
712
+ b.m("DELETE").h(headers).b(body);
713
+ return b.build();
714
+ }, "se_DeleteFieldCommand");
715
+ var se_DeleteLayoutCommand = /* @__PURE__ */ __name(async (input, context) => {
716
+ const b = (0, import_core.requestBuilder)(input, context);
717
+ const headers = {};
718
+ b.bp("/domains/{domainId}/layouts/{layoutId}");
719
+ b.p("domainId", () => input.domainId, "{domainId}", false);
720
+ b.p("layoutId", () => input.layoutId, "{layoutId}", false);
721
+ let body;
722
+ b.m("DELETE").h(headers).b(body);
723
+ return b.build();
724
+ }, "se_DeleteLayoutCommand");
725
+ var se_DeleteTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
726
+ const b = (0, import_core.requestBuilder)(input, context);
727
+ const headers = {};
728
+ b.bp("/domains/{domainId}/templates/{templateId}");
729
+ b.p("domainId", () => input.domainId, "{domainId}", false);
730
+ b.p("templateId", () => input.templateId, "{templateId}", false);
731
+ let body;
732
+ b.m("DELETE").h(headers).b(body);
733
+ return b.build();
734
+ }, "se_DeleteTemplateCommand");
702
735
  var se_GetCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
703
736
  const b = (0, import_core.requestBuilder)(input, context);
704
737
  const headers = {
@@ -1159,6 +1192,36 @@ var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1159
1192
  await (0, import_smithy_client.collectBody)(output.body, context);
1160
1193
  return contents;
1161
1194
  }, "de_DeleteDomainCommand");
1195
+ var de_DeleteFieldCommand = /* @__PURE__ */ __name(async (output, context) => {
1196
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1197
+ return de_CommandError(output, context);
1198
+ }
1199
+ const contents = (0, import_smithy_client.map)({
1200
+ $metadata: deserializeMetadata(output)
1201
+ });
1202
+ await (0, import_smithy_client.collectBody)(output.body, context);
1203
+ return contents;
1204
+ }, "de_DeleteFieldCommand");
1205
+ var de_DeleteLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
1206
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1207
+ return de_CommandError(output, context);
1208
+ }
1209
+ const contents = (0, import_smithy_client.map)({
1210
+ $metadata: deserializeMetadata(output)
1211
+ });
1212
+ await (0, import_smithy_client.collectBody)(output.body, context);
1213
+ return contents;
1214
+ }, "de_DeleteLayoutCommand");
1215
+ var de_DeleteTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1216
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1217
+ return de_CommandError(output, context);
1218
+ }
1219
+ const contents = (0, import_smithy_client.map)({
1220
+ $metadata: deserializeMetadata(output)
1221
+ });
1222
+ await (0, import_smithy_client.collectBody)(output.body, context);
1223
+ return contents;
1224
+ }, "de_DeleteTemplateCommand");
1162
1225
  var de_GetCaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1163
1226
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1164
1227
  return de_CommandError(output, context);
@@ -1234,6 +1297,9 @@ var de_GetLayoutCommand = /* @__PURE__ */ __name(async (output, context) => {
1234
1297
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1235
1298
  const doc = (0, import_smithy_client.take)(data, {
1236
1299
  content: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
1300
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1301
+ deleted: import_smithy_client.expectBoolean,
1302
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1237
1303
  layoutArn: import_smithy_client.expectString,
1238
1304
  layoutId: import_smithy_client.expectString,
1239
1305
  name: import_smithy_client.expectString,
@@ -1251,7 +1317,10 @@ var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1251
1317
  });
1252
1318
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1253
1319
  const doc = (0, import_smithy_client.take)(data, {
1320
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1321
+ deleted: import_smithy_client.expectBoolean,
1254
1322
  description: import_smithy_client.expectString,
1323
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1255
1324
  layoutConfiguration: import_smithy_client._json,
1256
1325
  name: import_smithy_client.expectString,
1257
1326
  requiredFields: import_smithy_client._json,
@@ -1758,9 +1827,12 @@ var de_FieldValueUnion = /* @__PURE__ */ __name((output, context) => {
1758
1827
  }, "de_FieldValueUnion");
1759
1828
  var de_GetFieldResponse = /* @__PURE__ */ __name((output, context) => {
1760
1829
  return (0, import_smithy_client.take)(output, {
1830
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1831
+ deleted: import_smithy_client.expectBoolean,
1761
1832
  description: import_smithy_client.expectString,
1762
1833
  fieldArn: import_smithy_client.expectString,
1763
1834
  fieldId: import_smithy_client.expectString,
1835
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1764
1836
  name: import_smithy_client.expectString,
1765
1837
  namespace: import_smithy_client.expectString,
1766
1838
  tags: (_) => de_Tags(_, context),
@@ -1989,6 +2061,57 @@ var _DeleteDomainCommand = class _DeleteDomainCommand extends import_smithy_clie
1989
2061
  __name(_DeleteDomainCommand, "DeleteDomainCommand");
1990
2062
  var DeleteDomainCommand = _DeleteDomainCommand;
1991
2063
 
2064
+ // src/commands/DeleteFieldCommand.ts
2065
+
2066
+
2067
+
2068
+
2069
+ var _DeleteFieldCommand = class _DeleteFieldCommand extends import_smithy_client.Command.classBuilder().ep({
2070
+ ...commonParams
2071
+ }).m(function(Command, cs, config, o) {
2072
+ return [
2073
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2074
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2075
+ ];
2076
+ }).s("AmazonConnectCases", "DeleteField", {}).n("ConnectCasesClient", "DeleteFieldCommand").f(void 0, void 0).ser(se_DeleteFieldCommand).de(de_DeleteFieldCommand).build() {
2077
+ };
2078
+ __name(_DeleteFieldCommand, "DeleteFieldCommand");
2079
+ var DeleteFieldCommand = _DeleteFieldCommand;
2080
+
2081
+ // src/commands/DeleteLayoutCommand.ts
2082
+
2083
+
2084
+
2085
+
2086
+ var _DeleteLayoutCommand = class _DeleteLayoutCommand extends import_smithy_client.Command.classBuilder().ep({
2087
+ ...commonParams
2088
+ }).m(function(Command, cs, config, o) {
2089
+ return [
2090
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2091
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2092
+ ];
2093
+ }).s("AmazonConnectCases", "DeleteLayout", {}).n("ConnectCasesClient", "DeleteLayoutCommand").f(void 0, void 0).ser(se_DeleteLayoutCommand).de(de_DeleteLayoutCommand).build() {
2094
+ };
2095
+ __name(_DeleteLayoutCommand, "DeleteLayoutCommand");
2096
+ var DeleteLayoutCommand = _DeleteLayoutCommand;
2097
+
2098
+ // src/commands/DeleteTemplateCommand.ts
2099
+
2100
+
2101
+
2102
+
2103
+ var _DeleteTemplateCommand = class _DeleteTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2104
+ ...commonParams
2105
+ }).m(function(Command, cs, config, o) {
2106
+ return [
2107
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2108
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2109
+ ];
2110
+ }).s("AmazonConnectCases", "DeleteTemplate", {}).n("ConnectCasesClient", "DeleteTemplateCommand").f(void 0, void 0).ser(se_DeleteTemplateCommand).de(de_DeleteTemplateCommand).build() {
2111
+ };
2112
+ __name(_DeleteTemplateCommand, "DeleteTemplateCommand");
2113
+ var DeleteTemplateCommand = _DeleteTemplateCommand;
2114
+
1992
2115
  // src/commands/GetCaseAuditEventsCommand.ts
1993
2116
 
1994
2117
 
@@ -2374,6 +2497,9 @@ var commands = {
2374
2497
  CreateRelatedItemCommand,
2375
2498
  CreateTemplateCommand,
2376
2499
  DeleteDomainCommand,
2500
+ DeleteFieldCommand,
2501
+ DeleteLayoutCommand,
2502
+ DeleteTemplateCommand,
2377
2503
  GetCaseCommand,
2378
2504
  GetCaseAuditEventsCommand,
2379
2505
  GetCaseEventConfigurationCommand,
@@ -2459,6 +2585,9 @@ var paginateSearchRelatedItems = (0, import_core.createPaginator)(ConnectCasesCl
2459
2585
  CreateRelatedItemCommand,
2460
2586
  CreateTemplateCommand,
2461
2587
  DeleteDomainCommand,
2588
+ DeleteFieldCommand,
2589
+ DeleteLayoutCommand,
2590
+ DeleteTemplateCommand,
2462
2591
  GetCaseAuditEventsCommand,
2463
2592
  GetCaseCommand,
2464
2593
  GetCaseEventConfigurationCommand,
@@ -8,6 +8,9 @@ import { CreateLayoutCommand, } from "./commands/CreateLayoutCommand";
8
8
  import { CreateRelatedItemCommand, } from "./commands/CreateRelatedItemCommand";
9
9
  import { CreateTemplateCommand, } from "./commands/CreateTemplateCommand";
10
10
  import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
11
+ import { DeleteFieldCommand } from "./commands/DeleteFieldCommand";
12
+ import { DeleteLayoutCommand, } from "./commands/DeleteLayoutCommand";
13
+ import { DeleteTemplateCommand, } from "./commands/DeleteTemplateCommand";
11
14
  import { GetCaseAuditEventsCommand, } from "./commands/GetCaseAuditEventsCommand";
12
15
  import { GetCaseCommand } from "./commands/GetCaseCommand";
13
16
  import { GetCaseEventConfigurationCommand, } from "./commands/GetCaseEventConfigurationCommand";
@@ -41,6 +44,9 @@ const commands = {
41
44
  CreateRelatedItemCommand,
42
45
  CreateTemplateCommand,
43
46
  DeleteDomainCommand,
47
+ DeleteFieldCommand,
48
+ DeleteLayoutCommand,
49
+ DeleteTemplateCommand,
44
50
  GetCaseCommand,
45
51
  GetCaseAuditEventsCommand,
46
52
  GetCaseEventConfigurationCommand,
@@ -0,0 +1,24 @@
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_DeleteFieldCommand, se_DeleteFieldCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteFieldCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectCases", "DeleteField", {})
19
+ .n("ConnectCasesClient", "DeleteFieldCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteFieldCommand)
22
+ .de(de_DeleteFieldCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
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_DeleteLayoutCommand, se_DeleteLayoutCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteLayoutCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectCases", "DeleteLayout", {})
19
+ .n("ConnectCasesClient", "DeleteLayoutCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteLayoutCommand)
22
+ .de(de_DeleteLayoutCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
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_DeleteTemplateCommand, se_DeleteTemplateCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteTemplateCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectCases", "DeleteTemplate", {})
19
+ .n("ConnectCasesClient", "DeleteTemplateCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteTemplateCommand)
22
+ .de(de_DeleteTemplateCommand)
23
+ .build() {
24
+ }
@@ -7,6 +7,9 @@ export * from "./CreateLayoutCommand";
7
7
  export * from "./CreateRelatedItemCommand";
8
8
  export * from "./CreateTemplateCommand";
9
9
  export * from "./DeleteDomainCommand";
10
+ export * from "./DeleteFieldCommand";
11
+ export * from "./DeleteLayoutCommand";
12
+ export * from "./DeleteTemplateCommand";
10
13
  export * from "./GetCaseAuditEventsCommand";
11
14
  export * from "./GetCaseCommand";
12
15
  export * from "./GetCaseEventConfigurationCommand";
@@ -138,6 +138,36 @@ export const se_DeleteDomainCommand = async (input, context) => {
138
138
  b.m("DELETE").h(headers).b(body);
139
139
  return b.build();
140
140
  };
141
+ export const se_DeleteFieldCommand = async (input, context) => {
142
+ const b = rb(input, context);
143
+ const headers = {};
144
+ b.bp("/domains/{domainId}/fields/{fieldId}");
145
+ b.p("domainId", () => input.domainId, "{domainId}", false);
146
+ b.p("fieldId", () => input.fieldId, "{fieldId}", false);
147
+ let body;
148
+ b.m("DELETE").h(headers).b(body);
149
+ return b.build();
150
+ };
151
+ export const se_DeleteLayoutCommand = async (input, context) => {
152
+ const b = rb(input, context);
153
+ const headers = {};
154
+ b.bp("/domains/{domainId}/layouts/{layoutId}");
155
+ b.p("domainId", () => input.domainId, "{domainId}", false);
156
+ b.p("layoutId", () => input.layoutId, "{layoutId}", false);
157
+ let body;
158
+ b.m("DELETE").h(headers).b(body);
159
+ return b.build();
160
+ };
161
+ export const se_DeleteTemplateCommand = async (input, context) => {
162
+ const b = rb(input, context);
163
+ const headers = {};
164
+ b.bp("/domains/{domainId}/templates/{templateId}");
165
+ b.p("domainId", () => input.domainId, "{domainId}", false);
166
+ b.p("templateId", () => input.templateId, "{templateId}", false);
167
+ let body;
168
+ b.m("DELETE").h(headers).b(body);
169
+ return b.build();
170
+ };
141
171
  export const se_GetCaseCommand = async (input, context) => {
142
172
  const b = rb(input, context);
143
173
  const headers = {
@@ -576,6 +606,36 @@ export const de_DeleteDomainCommand = async (output, context) => {
576
606
  await collectBody(output.body, context);
577
607
  return contents;
578
608
  };
609
+ export const de_DeleteFieldCommand = async (output, context) => {
610
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
611
+ return de_CommandError(output, context);
612
+ }
613
+ const contents = map({
614
+ $metadata: deserializeMetadata(output),
615
+ });
616
+ await collectBody(output.body, context);
617
+ return contents;
618
+ };
619
+ export const de_DeleteLayoutCommand = async (output, context) => {
620
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
621
+ return de_CommandError(output, context);
622
+ }
623
+ const contents = map({
624
+ $metadata: deserializeMetadata(output),
625
+ });
626
+ await collectBody(output.body, context);
627
+ return contents;
628
+ };
629
+ export const de_DeleteTemplateCommand = async (output, context) => {
630
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
631
+ return de_CommandError(output, context);
632
+ }
633
+ const contents = map({
634
+ $metadata: deserializeMetadata(output),
635
+ });
636
+ await collectBody(output.body, context);
637
+ return contents;
638
+ };
579
639
  export const de_GetCaseCommand = async (output, context) => {
580
640
  if (output.statusCode !== 200 && output.statusCode >= 300) {
581
641
  return de_CommandError(output, context);
@@ -651,6 +711,9 @@ export const de_GetLayoutCommand = async (output, context) => {
651
711
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
652
712
  const doc = take(data, {
653
713
  content: (_) => _json(__expectUnion(_)),
714
+ createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
715
+ deleted: __expectBoolean,
716
+ lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
654
717
  layoutArn: __expectString,
655
718
  layoutId: __expectString,
656
719
  name: __expectString,
@@ -668,7 +731,10 @@ export const de_GetTemplateCommand = async (output, context) => {
668
731
  });
669
732
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
670
733
  const doc = take(data, {
734
+ createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
735
+ deleted: __expectBoolean,
671
736
  description: __expectString,
737
+ lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
672
738
  layoutConfiguration: _json,
673
739
  name: __expectString,
674
740
  requiredFields: _json,
@@ -1183,9 +1249,12 @@ const de_FieldValueUnion = (output, context) => {
1183
1249
  };
1184
1250
  const de_GetFieldResponse = (output, context) => {
1185
1251
  return take(output, {
1252
+ createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1253
+ deleted: __expectBoolean,
1186
1254
  description: __expectString,
1187
1255
  fieldArn: __expectString,
1188
1256
  fieldId: __expectString,
1257
+ lastModifiedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1189
1258
  name: __expectString,
1190
1259
  namespace: __expectString,
1191
1260
  tags: (_) => de_Tags(_, context),
@@ -8,6 +8,9 @@ import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "./commands/
8
8
  import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "./commands/CreateRelatedItemCommand";
9
9
  import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand";
10
10
  import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
11
+ import { DeleteFieldCommandInput, DeleteFieldCommandOutput } from "./commands/DeleteFieldCommand";
12
+ import { DeleteLayoutCommandInput, DeleteLayoutCommandOutput } from "./commands/DeleteLayoutCommand";
13
+ import { DeleteTemplateCommandInput, DeleteTemplateCommandOutput } from "./commands/DeleteTemplateCommand";
11
14
  import { GetCaseAuditEventsCommandInput, GetCaseAuditEventsCommandOutput } from "./commands/GetCaseAuditEventsCommand";
12
15
  import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
13
16
  import { GetCaseEventConfigurationCommandInput, GetCaseEventConfigurationCommandOutput } from "./commands/GetCaseEventConfigurationCommand";
@@ -86,6 +89,24 @@ export interface ConnectCases {
86
89
  deleteDomain(args: DeleteDomainCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDomainCommandOutput>;
87
90
  deleteDomain(args: DeleteDomainCommandInput, cb: (err: any, data?: DeleteDomainCommandOutput) => void): void;
88
91
  deleteDomain(args: DeleteDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDomainCommandOutput) => void): void;
92
+ /**
93
+ * @see {@link DeleteFieldCommand}
94
+ */
95
+ deleteField(args: DeleteFieldCommandInput, options?: __HttpHandlerOptions): Promise<DeleteFieldCommandOutput>;
96
+ deleteField(args: DeleteFieldCommandInput, cb: (err: any, data?: DeleteFieldCommandOutput) => void): void;
97
+ deleteField(args: DeleteFieldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteFieldCommandOutput) => void): void;
98
+ /**
99
+ * @see {@link DeleteLayoutCommand}
100
+ */
101
+ deleteLayout(args: DeleteLayoutCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLayoutCommandOutput>;
102
+ deleteLayout(args: DeleteLayoutCommandInput, cb: (err: any, data?: DeleteLayoutCommandOutput) => void): void;
103
+ deleteLayout(args: DeleteLayoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLayoutCommandOutput) => void): void;
104
+ /**
105
+ * @see {@link DeleteTemplateCommand}
106
+ */
107
+ deleteTemplate(args: DeleteTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTemplateCommandOutput>;
108
+ deleteTemplate(args: DeleteTemplateCommandInput, cb: (err: any, data?: DeleteTemplateCommandOutput) => void): void;
109
+ deleteTemplate(args: DeleteTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTemplateCommandOutput) => void): void;
89
110
  /**
90
111
  * @see {@link GetCaseCommand}
91
112
  */
@@ -16,6 +16,9 @@ import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "./commands/
16
16
  import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "./commands/CreateRelatedItemCommand";
17
17
  import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand";
18
18
  import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
19
+ import { DeleteFieldCommandInput, DeleteFieldCommandOutput } from "./commands/DeleteFieldCommand";
20
+ import { DeleteLayoutCommandInput, DeleteLayoutCommandOutput } from "./commands/DeleteLayoutCommand";
21
+ import { DeleteTemplateCommandInput, DeleteTemplateCommandOutput } from "./commands/DeleteTemplateCommand";
19
22
  import { GetCaseAuditEventsCommandInput, GetCaseAuditEventsCommandOutput } from "./commands/GetCaseAuditEventsCommand";
20
23
  import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
21
24
  import { GetCaseEventConfigurationCommandInput, GetCaseEventConfigurationCommandOutput } from "./commands/GetCaseEventConfigurationCommand";
@@ -44,11 +47,11 @@ export { __Client };
44
47
  /**
45
48
  * @public
46
49
  */
47
- export type ServiceInputTypes = BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | DeleteDomainCommandInput | GetCaseAuditEventsCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
50
+ export type ServiceInputTypes = BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | DeleteDomainCommandInput | DeleteFieldCommandInput | DeleteLayoutCommandInput | DeleteTemplateCommandInput | GetCaseAuditEventsCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
48
51
  /**
49
52
  * @public
50
53
  */
51
- export type ServiceOutputTypes = BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | DeleteDomainCommandOutput | GetCaseAuditEventsCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
54
+ export type ServiceOutputTypes = BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | DeleteDomainCommandOutput | DeleteFieldCommandOutput | DeleteLayoutCommandOutput | DeleteTemplateCommandOutput | GetCaseAuditEventsCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
52
55
  /**
53
56
  * @public
54
57
  */
@@ -55,6 +55,9 @@ declare const BatchGetFieldCommand_base: {
55
55
  * // tags: { // Tags
56
56
  * // "<keys>": "STRING_VALUE",
57
57
  * // },
58
+ * // deleted: true || false,
59
+ * // createdTime: new Date("TIMESTAMP"),
60
+ * // lastModifiedTime: new Date("TIMESTAMP"),
58
61
  * // },
59
62
  * // ],
60
63
  * // errors: [ // BatchGetFieldErrorList // required
@@ -0,0 +1,133 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ConnectCasesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectCasesClient";
4
+ import { DeleteFieldRequest, DeleteFieldResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DeleteFieldCommand}.
13
+ */
14
+ export interface DeleteFieldCommandInput extends DeleteFieldRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DeleteFieldCommand}.
20
+ */
21
+ export interface DeleteFieldCommandOutput extends DeleteFieldResponse, __MetadataBearer {
22
+ }
23
+ declare const DeleteFieldCommand_base: {
24
+ new (input: DeleteFieldCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFieldCommandInput, DeleteFieldCommandOutput, ConnectCasesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeleteFieldCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFieldCommandInput, DeleteFieldCommandOutput, ConnectCasesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Deletes a field from a cases template. You can delete up to 100 fields per domain.</p>
30
+ * <p>After a field is deleted:</p>
31
+ * <ul>
32
+ * <li>
33
+ * <p>You can still retrieve the field by calling <code>BatchGetField</code>.</p>
34
+ * </li>
35
+ * <li>
36
+ * <p>You cannot update a deleted field by calling <code>UpdateField</code>; it throws a
37
+ * <code>ValidationException</code>.</p>
38
+ * </li>
39
+ * <li>
40
+ * <p>Deleted fields are not included in the <code>ListFields</code> response.</p>
41
+ * </li>
42
+ * <li>
43
+ * <p>Calling <code>CreateCase</code> with a deleted field throws a <code>ValidationException</code> denoting
44
+ * which field IDs in the request have been deleted.</p>
45
+ * </li>
46
+ * <li>
47
+ * <p>Calling <code>GetCase</code> with a deleted field ID returns the deleted field's value if one
48
+ * exists.</p>
49
+ * </li>
50
+ * <li>
51
+ * <p>Calling <code>UpdateCase</code> with a deleted field ID throws a <code>ValidationException</code> if the
52
+ * case does not already contain a value for the deleted field. Otherwise it succeeds,
53
+ * allowing you to update or remove (using <code>emptyValue: \{\}</code>) the field's value from the
54
+ * case.</p>
55
+ * </li>
56
+ * <li>
57
+ * <p>
58
+ * <code>GetTemplate</code> does not return field IDs for deleted fields.</p>
59
+ * </li>
60
+ * <li>
61
+ * <p>
62
+ * <code>GetLayout</code> does not return field IDs for deleted fields.</p>
63
+ * </li>
64
+ * <li>
65
+ * <p>Calling <code>SearchCases</code> with the deleted field ID as a filter returns any cases that
66
+ * have a value for the deleted field that matches the filter criteria.</p>
67
+ * </li>
68
+ * <li>
69
+ * <p>Calling <code>SearchCases</code> with a <code>searchTerm</code> value that matches a deleted field's value on a
70
+ * case returns the case in the response.</p>
71
+ * </li>
72
+ * <li>
73
+ * <p>Calling <code>BatchPutFieldOptions</code> with a deleted field ID throw a <code>ValidationException</code>.</p>
74
+ * </li>
75
+ * <li>
76
+ * <p>Calling <code>GetCaseEventConfiguration</code> does not return field IDs for deleted fields.</p>
77
+ * </li>
78
+ * </ul>
79
+ * @example
80
+ * Use a bare-bones client and the command you need to make an API call.
81
+ * ```javascript
82
+ * import { ConnectCasesClient, DeleteFieldCommand } from "@aws-sdk/client-connectcases"; // ES Modules import
83
+ * // const { ConnectCasesClient, DeleteFieldCommand } = require("@aws-sdk/client-connectcases"); // CommonJS import
84
+ * const client = new ConnectCasesClient(config);
85
+ * const input = { // DeleteFieldRequest
86
+ * domainId: "STRING_VALUE", // required
87
+ * fieldId: "STRING_VALUE", // required
88
+ * };
89
+ * const command = new DeleteFieldCommand(input);
90
+ * const response = await client.send(command);
91
+ * // {};
92
+ *
93
+ * ```
94
+ *
95
+ * @param DeleteFieldCommandInput - {@link DeleteFieldCommandInput}
96
+ * @returns {@link DeleteFieldCommandOutput}
97
+ * @see {@link DeleteFieldCommandInput} for command's `input` shape.
98
+ * @see {@link DeleteFieldCommandOutput} for command's `response` shape.
99
+ * @see {@link ConnectCasesClientResolvedConfig | config} for ConnectCasesClient's `config` shape.
100
+ *
101
+ * @throws {@link AccessDeniedException} (client fault)
102
+ * <p>You do not have sufficient access to perform this action.</p>
103
+ *
104
+ * @throws {@link ConflictException} (client fault)
105
+ * <p>The requested operation would cause a conflict with the current state of a service
106
+ * resource associated with the request. Resolve the conflict before retrying this request. See
107
+ * the accompanying error message for details.</p>
108
+ *
109
+ * @throws {@link InternalServerException} (server fault)
110
+ * <p>We couldn't process your request because of an issue with the server. Try again
111
+ * later.</p>
112
+ *
113
+ * @throws {@link ResourceNotFoundException} (client fault)
114
+ * <p>We couldn't find the requested resource. Check that your resources exists and were created
115
+ * in the same Amazon Web Services Region as your request, and try your request again.</p>
116
+ *
117
+ * @throws {@link ServiceQuotaExceededException} (client fault)
118
+ * <p>The service quota has been exceeded. For a list of service quotas, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">Amazon Connect Service Quotas</a> in the <i>Amazon Connect
119
+ * Administrator Guide</i>.</p>
120
+ *
121
+ * @throws {@link ThrottlingException} (client fault)
122
+ * <p>The rate has been exceeded for this API. Please try again after a few minutes.</p>
123
+ *
124
+ * @throws {@link ValidationException} (client fault)
125
+ * <p>The request isn't valid. Check the syntax and try again.</p>
126
+ *
127
+ * @throws {@link ConnectCasesServiceException}
128
+ * <p>Base exception class for all service exceptions from ConnectCases service.</p>
129
+ *
130
+ * @public
131
+ */
132
+ export declare class DeleteFieldCommand extends DeleteFieldCommand_base {
133
+ }