@aws-sdk/client-connectcases 3.787.0 → 3.790.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/dist-cjs/index.js CHANGED
@@ -41,6 +41,7 @@ __export(index_exports, {
41
41
  CreateFieldCommand: () => CreateFieldCommand,
42
42
  CreateLayoutCommand: () => CreateLayoutCommand,
43
43
  CreateRelatedItemCommand: () => CreateRelatedItemCommand,
44
+ CreateRelatedItemRequestFilterSensitiveLog: () => CreateRelatedItemRequestFilterSensitiveLog,
44
45
  CreateTemplateCommand: () => CreateTemplateCommand,
45
46
  DeleteCaseRuleCommand: () => DeleteCaseRuleCommand,
46
47
  DeleteDomainCommand: () => DeleteDomainCommand,
@@ -73,15 +74,29 @@ __export(index_exports, {
73
74
  Order: () => Order,
74
75
  PutCaseEventConfigurationCommand: () => PutCaseEventConfigurationCommand,
75
76
  RelatedItemContent: () => RelatedItemContent,
77
+ RelatedItemContentFilterSensitiveLog: () => RelatedItemContentFilterSensitiveLog,
76
78
  RelatedItemInputContent: () => RelatedItemInputContent,
79
+ RelatedItemInputContentFilterSensitiveLog: () => RelatedItemInputContentFilterSensitiveLog,
77
80
  RelatedItemType: () => RelatedItemType,
78
81
  RelatedItemTypeFilter: () => RelatedItemTypeFilter,
82
+ RelatedItemTypeFilterFilterSensitiveLog: () => RelatedItemTypeFilterFilterSensitiveLog,
79
83
  ResourceNotFoundException: () => ResourceNotFoundException,
80
84
  RuleType: () => RuleType,
81
85
  SearchCasesCommand: () => SearchCasesCommand,
82
86
  SearchRelatedItemsCommand: () => SearchRelatedItemsCommand,
87
+ SearchRelatedItemsRequestFilterSensitiveLog: () => SearchRelatedItemsRequestFilterSensitiveLog,
88
+ SearchRelatedItemsResponseFilterSensitiveLog: () => SearchRelatedItemsResponseFilterSensitiveLog,
89
+ SearchRelatedItemsResponseItemFilterSensitiveLog: () => SearchRelatedItemsResponseItemFilterSensitiveLog,
83
90
  Section: () => Section,
84
91
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
92
+ SlaConfigurationFilterSensitiveLog: () => SlaConfigurationFilterSensitiveLog,
93
+ SlaContentFilterSensitiveLog: () => SlaContentFilterSensitiveLog,
94
+ SlaFilterFilterSensitiveLog: () => SlaFilterFilterSensitiveLog,
95
+ SlaInputConfigurationFilterSensitiveLog: () => SlaInputConfigurationFilterSensitiveLog,
96
+ SlaInputContent: () => SlaInputContent,
97
+ SlaInputContentFilterSensitiveLog: () => SlaInputContentFilterSensitiveLog,
98
+ SlaStatus: () => SlaStatus,
99
+ SlaType: () => SlaType,
85
100
  TagResourceCommand: () => TagResourceCommand,
86
101
  TemplateStatus: () => TemplateStatus,
87
102
  ThrottlingException: () => ThrottlingException,
@@ -279,6 +294,7 @@ var ConnectCasesServiceException = class _ConnectCasesServiceException extends i
279
294
  };
280
295
 
281
296
  // src/models/models_0.ts
297
+
282
298
  var AccessDeniedException = class _AccessDeniedException extends ConnectCasesServiceException {
283
299
  static {
284
300
  __name(this, "AccessDeniedException");
@@ -439,7 +455,8 @@ var AuditEventFieldValueUnion;
439
455
  var RelatedItemType = {
440
456
  COMMENT: "Comment",
441
457
  CONTACT: "Contact",
442
- FILE: "File"
458
+ FILE: "File",
459
+ SLA: "Sla"
443
460
  };
444
461
  var AuditEventType = {
445
462
  CASE_CREATED: "Case.Created",
@@ -449,12 +466,23 @@ var AuditEventType = {
449
466
  var CommentBodyTextType = {
450
467
  PLAINTEXT: "Text/Plain"
451
468
  };
469
+ var SlaType = {
470
+ CASE_FIELD: "CaseField"
471
+ };
472
+ var SlaInputContent;
473
+ ((SlaInputContent2) => {
474
+ SlaInputContent2.visit = /* @__PURE__ */ __name((value, visitor) => {
475
+ if (value.slaInputConfiguration !== void 0) return visitor.slaInputConfiguration(value.slaInputConfiguration);
476
+ return visitor._(value.$unknown[0], value.$unknown[1]);
477
+ }, "visit");
478
+ })(SlaInputContent || (SlaInputContent = {}));
452
479
  var RelatedItemInputContent;
453
- ((RelatedItemInputContent3) => {
454
- RelatedItemInputContent3.visit = /* @__PURE__ */ __name((value, visitor) => {
480
+ ((RelatedItemInputContent2) => {
481
+ RelatedItemInputContent2.visit = /* @__PURE__ */ __name((value, visitor) => {
455
482
  if (value.contact !== void 0) return visitor.contact(value.contact);
456
483
  if (value.comment !== void 0) return visitor.comment(value.comment);
457
484
  if (value.file !== void 0) return visitor.file(value.file);
485
+ if (value.sla !== void 0) return visitor.sla(value.sla);
458
486
  return visitor._(value.$unknown[0], value.$unknown[1]);
459
487
  }, "visit");
460
488
  })(RelatedItemInputContent || (RelatedItemInputContent = {}));
@@ -476,12 +504,19 @@ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends
476
504
  Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
477
505
  }
478
506
  };
507
+ var SlaStatus = {
508
+ ACTIVE: "Active",
509
+ MET: "Met",
510
+ NOT_MET: "NotMet",
511
+ OVERDUE: "Overdue"
512
+ };
479
513
  var RelatedItemTypeFilter;
480
514
  ((RelatedItemTypeFilter3) => {
481
515
  RelatedItemTypeFilter3.visit = /* @__PURE__ */ __name((value, visitor) => {
482
516
  if (value.contact !== void 0) return visitor.contact(value.contact);
483
517
  if (value.comment !== void 0) return visitor.comment(value.comment);
484
518
  if (value.file !== void 0) return visitor.file(value.file);
519
+ if (value.sla !== void 0) return visitor.sla(value.sla);
485
520
  return visitor._(value.$unknown[0], value.$unknown[1]);
486
521
  }, "visit");
487
522
  })(RelatedItemTypeFilter || (RelatedItemTypeFilter = {}));
@@ -491,6 +526,7 @@ var RelatedItemContent;
491
526
  if (value.contact !== void 0) return visitor.contact(value.contact);
492
527
  if (value.comment !== void 0) return visitor.comment(value.comment);
493
528
  if (value.file !== void 0) return visitor.file(value.file);
529
+ if (value.sla !== void 0) return visitor.sla(value.sla);
494
530
  return visitor._(value.$unknown[0], value.$unknown[1]);
495
531
  }, "visit");
496
532
  })(RelatedItemContent || (RelatedItemContent = {}));
@@ -591,6 +627,70 @@ var CaseFilter;
591
627
  return visitor._(value.$unknown[0], value.$unknown[1]);
592
628
  }, "visit");
593
629
  })(CaseFilter || (CaseFilter = {}));
630
+ var SlaInputConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
631
+ ...obj,
632
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
633
+ ...obj.targetFieldValues && { targetFieldValues: obj.targetFieldValues.map((item) => item) }
634
+ }), "SlaInputConfigurationFilterSensitiveLog");
635
+ var SlaInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
636
+ if (obj.slaInputConfiguration !== void 0)
637
+ return { slaInputConfiguration: SlaInputConfigurationFilterSensitiveLog(obj.slaInputConfiguration) };
638
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
639
+ }, "SlaInputContentFilterSensitiveLog");
640
+ var RelatedItemInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
641
+ if (obj.contact !== void 0) return { contact: obj.contact };
642
+ if (obj.comment !== void 0) return { comment: obj.comment };
643
+ if (obj.file !== void 0) return { file: obj.file };
644
+ if (obj.sla !== void 0) return { sla: SlaInputContentFilterSensitiveLog(obj.sla) };
645
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
646
+ }, "RelatedItemInputContentFilterSensitiveLog");
647
+ var CreateRelatedItemRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
648
+ ...obj,
649
+ ...obj.content && { content: RelatedItemInputContentFilterSensitiveLog(obj.content) },
650
+ ...obj.performedBy && { performedBy: obj.performedBy }
651
+ }), "CreateRelatedItemRequestFilterSensitiveLog");
652
+ var SlaFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
653
+ ...obj,
654
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }
655
+ }), "SlaFilterFilterSensitiveLog");
656
+ var RelatedItemTypeFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
657
+ if (obj.contact !== void 0) return { contact: obj.contact };
658
+ if (obj.comment !== void 0) return { comment: obj.comment };
659
+ if (obj.file !== void 0) return { file: obj.file };
660
+ if (obj.sla !== void 0) return { sla: SlaFilterFilterSensitiveLog(obj.sla) };
661
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
662
+ }, "RelatedItemTypeFilterFilterSensitiveLog");
663
+ var SearchRelatedItemsRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
664
+ ...obj,
665
+ ...obj.filters && { filters: obj.filters.map((item) => RelatedItemTypeFilterFilterSensitiveLog(item)) }
666
+ }), "SearchRelatedItemsRequestFilterSensitiveLog");
667
+ var SlaConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
668
+ ...obj,
669
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
670
+ ...obj.targetFieldValues && { targetFieldValues: obj.targetFieldValues.map((item) => item) }
671
+ }), "SlaConfigurationFilterSensitiveLog");
672
+ var SlaContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
673
+ ...obj,
674
+ ...obj.slaConfiguration && { slaConfiguration: SlaConfigurationFilterSensitiveLog(obj.slaConfiguration) }
675
+ }), "SlaContentFilterSensitiveLog");
676
+ var RelatedItemContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
677
+ if (obj.contact !== void 0) return { contact: obj.contact };
678
+ if (obj.comment !== void 0) return { comment: obj.comment };
679
+ if (obj.file !== void 0) return { file: obj.file };
680
+ if (obj.sla !== void 0) return { sla: SlaContentFilterSensitiveLog(obj.sla) };
681
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
682
+ }, "RelatedItemContentFilterSensitiveLog");
683
+ var SearchRelatedItemsResponseItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
684
+ ...obj,
685
+ ...obj.content && { content: RelatedItemContentFilterSensitiveLog(obj.content) },
686
+ ...obj.performedBy && { performedBy: obj.performedBy }
687
+ }), "SearchRelatedItemsResponseItemFilterSensitiveLog");
688
+ var SearchRelatedItemsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
689
+ ...obj,
690
+ ...obj.relatedItems && {
691
+ relatedItems: obj.relatedItems.map((item) => SearchRelatedItemsResponseItemFilterSensitiveLog(item))
692
+ }
693
+ }), "SearchRelatedItemsResponseFilterSensitiveLog");
594
694
 
595
695
  // src/protocols/Aws_restJson1.ts
596
696
  var se_BatchGetCaseRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -740,7 +840,7 @@ var se_CreateRelatedItemCommand = /* @__PURE__ */ __name(async (input, context)
740
840
  let body;
741
841
  body = JSON.stringify(
742
842
  (0, import_smithy_client.take)(input, {
743
- content: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "content"),
843
+ content: /* @__PURE__ */ __name((_) => se_RelatedItemInputContent(_, context), "content"),
744
844
  performedBy: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "performedBy"),
745
845
  type: []
746
846
  })
@@ -1931,12 +2031,41 @@ var se_OperandTwo = /* @__PURE__ */ __name((input, context) => {
1931
2031
  _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
1932
2032
  });
1933
2033
  }, "se_OperandTwo");
2034
+ var se_RelatedItemInputContent = /* @__PURE__ */ __name((input, context) => {
2035
+ return RelatedItemInputContent.visit(input, {
2036
+ comment: /* @__PURE__ */ __name((value) => ({ comment: (0, import_smithy_client._json)(value) }), "comment"),
2037
+ contact: /* @__PURE__ */ __name((value) => ({ contact: (0, import_smithy_client._json)(value) }), "contact"),
2038
+ file: /* @__PURE__ */ __name((value) => ({ file: (0, import_smithy_client._json)(value) }), "file"),
2039
+ sla: /* @__PURE__ */ __name((value) => ({ sla: se_SlaInputContent(value, context) }), "sla"),
2040
+ _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
2041
+ });
2042
+ }, "se_RelatedItemInputContent");
1934
2043
  var se_RequiredCaseRule = /* @__PURE__ */ __name((input, context) => {
1935
2044
  return (0, import_smithy_client.take)(input, {
1936
2045
  conditions: /* @__PURE__ */ __name((_) => se_BooleanConditionList(_, context), "conditions"),
1937
2046
  defaultValue: []
1938
2047
  });
1939
2048
  }, "se_RequiredCaseRule");
2049
+ var se_SlaFieldValueUnionList = /* @__PURE__ */ __name((input, context) => {
2050
+ return input.filter((e) => e != null).map((entry) => {
2051
+ return se_FieldValueUnion(entry, context);
2052
+ });
2053
+ }, "se_SlaFieldValueUnionList");
2054
+ var se_SlaInputConfiguration = /* @__PURE__ */ __name((input, context) => {
2055
+ return (0, import_smithy_client.take)(input, {
2056
+ fieldId: [],
2057
+ name: [],
2058
+ targetFieldValues: /* @__PURE__ */ __name((_) => se_SlaFieldValueUnionList(_, context), "targetFieldValues"),
2059
+ targetSlaMinutes: [],
2060
+ type: []
2061
+ });
2062
+ }, "se_SlaInputConfiguration");
2063
+ var se_SlaInputContent = /* @__PURE__ */ __name((input, context) => {
2064
+ return SlaInputContent.visit(input, {
2065
+ slaInputConfiguration: /* @__PURE__ */ __name((value) => ({ slaInputConfiguration: se_SlaInputConfiguration(value, context) }), "slaInputConfiguration"),
2066
+ _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
2067
+ });
2068
+ }, "se_SlaInputContent");
1940
2069
  var se_Tags = /* @__PURE__ */ __name((input, context) => {
1941
2070
  return Object.entries(input).reduce((acc, [key, value]) => {
1942
2071
  if (value === null) {
@@ -2147,6 +2276,11 @@ var de_RelatedItemContent = /* @__PURE__ */ __name((output, context) => {
2147
2276
  file: (0, import_smithy_client._json)(output.file)
2148
2277
  };
2149
2278
  }
2279
+ if (output.sla != null) {
2280
+ return {
2281
+ sla: de_SlaContent(output.sla, context)
2282
+ };
2283
+ }
2150
2284
  return { $unknown: Object.entries(output)[0] };
2151
2285
  }, "de_RelatedItemContent");
2152
2286
  var de_RequiredCaseRule = /* @__PURE__ */ __name((output, context) => {
@@ -2191,6 +2325,28 @@ var de_SearchRelatedItemsResponseItemList = /* @__PURE__ */ __name((output, cont
2191
2325
  });
2192
2326
  return retVal;
2193
2327
  }, "de_SearchRelatedItemsResponseItemList");
2328
+ var de_SlaConfiguration = /* @__PURE__ */ __name((output, context) => {
2329
+ return (0, import_smithy_client.take)(output, {
2330
+ completionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "completionTime"),
2331
+ fieldId: import_smithy_client.expectString,
2332
+ name: import_smithy_client.expectString,
2333
+ status: import_smithy_client.expectString,
2334
+ targetFieldValues: /* @__PURE__ */ __name((_) => de_SlaFieldValueUnionList(_, context), "targetFieldValues"),
2335
+ targetTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "targetTime"),
2336
+ type: import_smithy_client.expectString
2337
+ });
2338
+ }, "de_SlaConfiguration");
2339
+ var de_SlaContent = /* @__PURE__ */ __name((output, context) => {
2340
+ return (0, import_smithy_client.take)(output, {
2341
+ slaConfiguration: /* @__PURE__ */ __name((_) => de_SlaConfiguration(_, context), "slaConfiguration")
2342
+ });
2343
+ }, "de_SlaContent");
2344
+ var de_SlaFieldValueUnionList = /* @__PURE__ */ __name((output, context) => {
2345
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2346
+ return de_FieldValueUnion((0, import_core2.awsExpectUnion)(entry), context);
2347
+ });
2348
+ return retVal;
2349
+ }, "de_SlaFieldValueUnionList");
2194
2350
  var de_Tags = /* @__PURE__ */ __name((output, context) => {
2195
2351
  return Object.entries(output).reduce((acc, [key, value]) => {
2196
2352
  if (value === null) {
@@ -2341,7 +2497,7 @@ var CreateRelatedItemCommand = class extends import_smithy_client.Command.classB
2341
2497
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2342
2498
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2343
2499
  ];
2344
- }).s("AmazonConnectCases", "CreateRelatedItem", {}).n("ConnectCasesClient", "CreateRelatedItemCommand").f(void 0, void 0).ser(se_CreateRelatedItemCommand).de(de_CreateRelatedItemCommand).build() {
2500
+ }).s("AmazonConnectCases", "CreateRelatedItem", {}).n("ConnectCasesClient", "CreateRelatedItemCommand").f(CreateRelatedItemRequestFilterSensitiveLog, void 0).ser(se_CreateRelatedItemCommand).de(de_CreateRelatedItemCommand).build() {
2345
2501
  static {
2346
2502
  __name(this, "CreateRelatedItemCommand");
2347
2503
  }
@@ -2686,7 +2842,7 @@ var SearchRelatedItemsCommand = class extends import_smithy_client.Command.class
2686
2842
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2687
2843
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2688
2844
  ];
2689
- }).s("AmazonConnectCases", "SearchRelatedItems", {}).n("ConnectCasesClient", "SearchRelatedItemsCommand").f(void 0, void 0).ser(se_SearchRelatedItemsCommand).de(de_SearchRelatedItemsCommand).build() {
2845
+ }).s("AmazonConnectCases", "SearchRelatedItems", {}).n("ConnectCasesClient", "SearchRelatedItemsCommand").f(SearchRelatedItemsRequestFilterSensitiveLog, SearchRelatedItemsResponseFilterSensitiveLog).ser(se_SearchRelatedItemsCommand).de(de_SearchRelatedItemsCommand).build() {
2690
2846
  static {
2691
2847
  __name(this, "SearchRelatedItemsCommand");
2692
2848
  }
@@ -2959,8 +3115,11 @@ var paginateSearchRelatedItems = (0, import_core.createPaginator)(ConnectCasesCl
2959
3115
  RelatedItemType,
2960
3116
  AuditEventType,
2961
3117
  CommentBodyTextType,
3118
+ SlaType,
3119
+ SlaInputContent,
2962
3120
  RelatedItemInputContent,
2963
3121
  ServiceQuotaExceededException,
3122
+ SlaStatus,
2964
3123
  RelatedItemTypeFilter,
2965
3124
  RelatedItemContent,
2966
3125
  FieldFilter,
@@ -2976,6 +3135,18 @@ var paginateSearchRelatedItems = (0, import_core.createPaginator)(ConnectCasesCl
2976
3135
  Section,
2977
3136
  LayoutContent,
2978
3137
  TemplateStatus,
2979
- CaseFilter
3138
+ CaseFilter,
3139
+ SlaInputConfigurationFilterSensitiveLog,
3140
+ SlaInputContentFilterSensitiveLog,
3141
+ RelatedItemInputContentFilterSensitiveLog,
3142
+ CreateRelatedItemRequestFilterSensitiveLog,
3143
+ SlaFilterFilterSensitiveLog,
3144
+ RelatedItemTypeFilterFilterSensitiveLog,
3145
+ SearchRelatedItemsRequestFilterSensitiveLog,
3146
+ SlaConfigurationFilterSensitiveLog,
3147
+ SlaContentFilterSensitiveLog,
3148
+ RelatedItemContentFilterSensitiveLog,
3149
+ SearchRelatedItemsResponseItemFilterSensitiveLog,
3150
+ SearchRelatedItemsResponseFilterSensitiveLog
2980
3151
  });
2981
3152
 
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { CreateRelatedItemRequestFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_CreateRelatedItemCommand, se_CreateRelatedItemCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class CreateRelatedItemCommand extends $Command
@@ -15,7 +16,7 @@ export class CreateRelatedItemCommand extends $Command
15
16
  })
16
17
  .s("AmazonConnectCases", "CreateRelatedItem", {})
17
18
  .n("ConnectCasesClient", "CreateRelatedItemCommand")
18
- .f(void 0, void 0)
19
+ .f(CreateRelatedItemRequestFilterSensitiveLog, void 0)
19
20
  .ser(se_CreateRelatedItemCommand)
20
21
  .de(de_CreateRelatedItemCommand)
21
22
  .build() {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { SearchRelatedItemsRequestFilterSensitiveLog, SearchRelatedItemsResponseFilterSensitiveLog, } from "../models/models_0";
5
6
  import { de_SearchRelatedItemsCommand, se_SearchRelatedItemsCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class SearchRelatedItemsCommand extends $Command
@@ -15,7 +16,7 @@ export class SearchRelatedItemsCommand extends $Command
15
16
  })
16
17
  .s("AmazonConnectCases", "SearchRelatedItems", {})
17
18
  .n("ConnectCasesClient", "SearchRelatedItemsCommand")
18
- .f(void 0, void 0)
19
+ .f(SearchRelatedItemsRequestFilterSensitiveLog, SearchRelatedItemsResponseFilterSensitiveLog)
19
20
  .ser(se_SearchRelatedItemsCommand)
20
21
  .de(de_SearchRelatedItemsCommand)
21
22
  .build() {
@@ -1,3 +1,4 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
1
2
  import { ConnectCasesServiceException as __BaseException } from "./ConnectCasesServiceException";
2
3
  export class AccessDeniedException extends __BaseException {
3
4
  name = "AccessDeniedException";
@@ -123,6 +124,7 @@ export const RelatedItemType = {
123
124
  COMMENT: "Comment",
124
125
  CONTACT: "Contact",
125
126
  FILE: "File",
127
+ SLA: "Sla",
126
128
  };
127
129
  export const AuditEventType = {
128
130
  CASE_CREATED: "Case.Created",
@@ -132,6 +134,17 @@ export const AuditEventType = {
132
134
  export const CommentBodyTextType = {
133
135
  PLAINTEXT: "Text/Plain",
134
136
  };
137
+ export const SlaType = {
138
+ CASE_FIELD: "CaseField",
139
+ };
140
+ export var SlaInputContent;
141
+ (function (SlaInputContent) {
142
+ SlaInputContent.visit = (value, visitor) => {
143
+ if (value.slaInputConfiguration !== undefined)
144
+ return visitor.slaInputConfiguration(value.slaInputConfiguration);
145
+ return visitor._(value.$unknown[0], value.$unknown[1]);
146
+ };
147
+ })(SlaInputContent || (SlaInputContent = {}));
135
148
  export var RelatedItemInputContent;
136
149
  (function (RelatedItemInputContent) {
137
150
  RelatedItemInputContent.visit = (value, visitor) => {
@@ -141,6 +154,8 @@ export var RelatedItemInputContent;
141
154
  return visitor.comment(value.comment);
142
155
  if (value.file !== undefined)
143
156
  return visitor.file(value.file);
157
+ if (value.sla !== undefined)
158
+ return visitor.sla(value.sla);
144
159
  return visitor._(value.$unknown[0], value.$unknown[1]);
145
160
  };
146
161
  })(RelatedItemInputContent || (RelatedItemInputContent = {}));
@@ -156,6 +171,12 @@ export class ServiceQuotaExceededException extends __BaseException {
156
171
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
157
172
  }
158
173
  }
174
+ export const SlaStatus = {
175
+ ACTIVE: "Active",
176
+ MET: "Met",
177
+ NOT_MET: "NotMet",
178
+ OVERDUE: "Overdue",
179
+ };
159
180
  export var RelatedItemTypeFilter;
160
181
  (function (RelatedItemTypeFilter) {
161
182
  RelatedItemTypeFilter.visit = (value, visitor) => {
@@ -165,6 +186,8 @@ export var RelatedItemTypeFilter;
165
186
  return visitor.comment(value.comment);
166
187
  if (value.file !== undefined)
167
188
  return visitor.file(value.file);
189
+ if (value.sla !== undefined)
190
+ return visitor.sla(value.sla);
168
191
  return visitor._(value.$unknown[0], value.$unknown[1]);
169
192
  };
170
193
  })(RelatedItemTypeFilter || (RelatedItemTypeFilter = {}));
@@ -177,6 +200,8 @@ export var RelatedItemContent;
177
200
  return visitor.comment(value.comment);
178
201
  if (value.file !== undefined)
179
202
  return visitor.file(value.file);
203
+ if (value.sla !== undefined)
204
+ return visitor.sla(value.sla);
180
205
  return visitor._(value.$unknown[0], value.$unknown[1]);
181
206
  };
182
207
  })(RelatedItemContent || (RelatedItemContent = {}));
@@ -297,3 +322,83 @@ export var CaseFilter;
297
322
  return visitor._(value.$unknown[0], value.$unknown[1]);
298
323
  };
299
324
  })(CaseFilter || (CaseFilter = {}));
325
+ export const SlaInputConfigurationFilterSensitiveLog = (obj) => ({
326
+ ...obj,
327
+ ...(obj.name && { name: SENSITIVE_STRING }),
328
+ ...(obj.targetFieldValues && { targetFieldValues: obj.targetFieldValues.map((item) => item) }),
329
+ });
330
+ export const SlaInputContentFilterSensitiveLog = (obj) => {
331
+ if (obj.slaInputConfiguration !== undefined)
332
+ return { slaInputConfiguration: SlaInputConfigurationFilterSensitiveLog(obj.slaInputConfiguration) };
333
+ if (obj.$unknown !== undefined)
334
+ return { [obj.$unknown[0]]: "UNKNOWN" };
335
+ };
336
+ export const RelatedItemInputContentFilterSensitiveLog = (obj) => {
337
+ if (obj.contact !== undefined)
338
+ return { contact: obj.contact };
339
+ if (obj.comment !== undefined)
340
+ return { comment: obj.comment };
341
+ if (obj.file !== undefined)
342
+ return { file: obj.file };
343
+ if (obj.sla !== undefined)
344
+ return { sla: SlaInputContentFilterSensitiveLog(obj.sla) };
345
+ if (obj.$unknown !== undefined)
346
+ return { [obj.$unknown[0]]: "UNKNOWN" };
347
+ };
348
+ export const CreateRelatedItemRequestFilterSensitiveLog = (obj) => ({
349
+ ...obj,
350
+ ...(obj.content && { content: RelatedItemInputContentFilterSensitiveLog(obj.content) }),
351
+ ...(obj.performedBy && { performedBy: obj.performedBy }),
352
+ });
353
+ export const SlaFilterFilterSensitiveLog = (obj) => ({
354
+ ...obj,
355
+ ...(obj.name && { name: SENSITIVE_STRING }),
356
+ });
357
+ export const RelatedItemTypeFilterFilterSensitiveLog = (obj) => {
358
+ if (obj.contact !== undefined)
359
+ return { contact: obj.contact };
360
+ if (obj.comment !== undefined)
361
+ return { comment: obj.comment };
362
+ if (obj.file !== undefined)
363
+ return { file: obj.file };
364
+ if (obj.sla !== undefined)
365
+ return { sla: SlaFilterFilterSensitiveLog(obj.sla) };
366
+ if (obj.$unknown !== undefined)
367
+ return { [obj.$unknown[0]]: "UNKNOWN" };
368
+ };
369
+ export const SearchRelatedItemsRequestFilterSensitiveLog = (obj) => ({
370
+ ...obj,
371
+ ...(obj.filters && { filters: obj.filters.map((item) => RelatedItemTypeFilterFilterSensitiveLog(item)) }),
372
+ });
373
+ export const SlaConfigurationFilterSensitiveLog = (obj) => ({
374
+ ...obj,
375
+ ...(obj.name && { name: SENSITIVE_STRING }),
376
+ ...(obj.targetFieldValues && { targetFieldValues: obj.targetFieldValues.map((item) => item) }),
377
+ });
378
+ export const SlaContentFilterSensitiveLog = (obj) => ({
379
+ ...obj,
380
+ ...(obj.slaConfiguration && { slaConfiguration: SlaConfigurationFilterSensitiveLog(obj.slaConfiguration) }),
381
+ });
382
+ export const RelatedItemContentFilterSensitiveLog = (obj) => {
383
+ if (obj.contact !== undefined)
384
+ return { contact: obj.contact };
385
+ if (obj.comment !== undefined)
386
+ return { comment: obj.comment };
387
+ if (obj.file !== undefined)
388
+ return { file: obj.file };
389
+ if (obj.sla !== undefined)
390
+ return { sla: SlaContentFilterSensitiveLog(obj.sla) };
391
+ if (obj.$unknown !== undefined)
392
+ return { [obj.$unknown[0]]: "UNKNOWN" };
393
+ };
394
+ export const SearchRelatedItemsResponseItemFilterSensitiveLog = (obj) => ({
395
+ ...obj,
396
+ ...(obj.content && { content: RelatedItemContentFilterSensitiveLog(obj.content) }),
397
+ ...(obj.performedBy && { performedBy: obj.performedBy }),
398
+ });
399
+ export const SearchRelatedItemsResponseFilterSensitiveLog = (obj) => ({
400
+ ...obj,
401
+ ...(obj.relatedItems && {
402
+ relatedItems: obj.relatedItems.map((item) => SearchRelatedItemsResponseItemFilterSensitiveLog(item)),
403
+ }),
404
+ });
@@ -3,7 +3,7 @@ import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { ConnectCasesServiceException as __BaseException } from "../models/ConnectCasesServiceException";
6
- import { AccessDeniedException, BooleanCondition, CaseFilter, CaseRuleDetails, ConflictException, FieldFilter, FieldValueUnion, InternalServerException, OperandTwo, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
+ import { AccessDeniedException, BooleanCondition, CaseFilter, CaseRuleDetails, ConflictException, FieldFilter, FieldValueUnion, InternalServerException, OperandTwo, RelatedItemInputContent, ResourceNotFoundException, ServiceQuotaExceededException, SlaInputContent, ThrottlingException, ValidationException, } from "../models/models_0";
7
7
  export const se_BatchGetCaseRuleCommand = async (input, context) => {
8
8
  const b = rb(input, context);
9
9
  const headers = {
@@ -134,7 +134,7 @@ export const se_CreateRelatedItemCommand = async (input, context) => {
134
134
  b.p("caseId", () => input.caseId, "{caseId}", false);
135
135
  let body;
136
136
  body = JSON.stringify(take(input, {
137
- content: (_) => _json(_),
137
+ content: (_) => se_RelatedItemInputContent(_, context),
138
138
  performedBy: (_) => _json(_),
139
139
  type: [],
140
140
  }));
@@ -1304,12 +1304,43 @@ const se_OperandTwo = (input, context) => {
1304
1304
  _: (name, value) => ({ [name]: value }),
1305
1305
  });
1306
1306
  };
1307
+ const se_RelatedItemInputContent = (input, context) => {
1308
+ return RelatedItemInputContent.visit(input, {
1309
+ comment: (value) => ({ comment: _json(value) }),
1310
+ contact: (value) => ({ contact: _json(value) }),
1311
+ file: (value) => ({ file: _json(value) }),
1312
+ sla: (value) => ({ sla: se_SlaInputContent(value, context) }),
1313
+ _: (name, value) => ({ [name]: value }),
1314
+ });
1315
+ };
1307
1316
  const se_RequiredCaseRule = (input, context) => {
1308
1317
  return take(input, {
1309
1318
  conditions: (_) => se_BooleanConditionList(_, context),
1310
1319
  defaultValue: [],
1311
1320
  });
1312
1321
  };
1322
+ const se_SlaFieldValueUnionList = (input, context) => {
1323
+ return input
1324
+ .filter((e) => e != null)
1325
+ .map((entry) => {
1326
+ return se_FieldValueUnion(entry, context);
1327
+ });
1328
+ };
1329
+ const se_SlaInputConfiguration = (input, context) => {
1330
+ return take(input, {
1331
+ fieldId: [],
1332
+ name: [],
1333
+ targetFieldValues: (_) => se_SlaFieldValueUnionList(_, context),
1334
+ targetSlaMinutes: [],
1335
+ type: [],
1336
+ });
1337
+ };
1338
+ const se_SlaInputContent = (input, context) => {
1339
+ return SlaInputContent.visit(input, {
1340
+ slaInputConfiguration: (value) => ({ slaInputConfiguration: se_SlaInputConfiguration(value, context) }),
1341
+ _: (name, value) => ({ [name]: value }),
1342
+ });
1343
+ };
1313
1344
  const se_Tags = (input, context) => {
1314
1345
  return Object.entries(input).reduce((acc, [key, value]) => {
1315
1346
  if (value === null) {
@@ -1528,6 +1559,11 @@ const de_RelatedItemContent = (output, context) => {
1528
1559
  file: _json(output.file),
1529
1560
  };
1530
1561
  }
1562
+ if (output.sla != null) {
1563
+ return {
1564
+ sla: de_SlaContent(output.sla, context),
1565
+ };
1566
+ }
1531
1567
  return { $unknown: Object.entries(output)[0] };
1532
1568
  };
1533
1569
  const de_RequiredCaseRule = (output, context) => {
@@ -1572,6 +1608,30 @@ const de_SearchRelatedItemsResponseItemList = (output, context) => {
1572
1608
  });
1573
1609
  return retVal;
1574
1610
  };
1611
+ const de_SlaConfiguration = (output, context) => {
1612
+ return take(output, {
1613
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1614
+ fieldId: __expectString,
1615
+ name: __expectString,
1616
+ status: __expectString,
1617
+ targetFieldValues: (_) => de_SlaFieldValueUnionList(_, context),
1618
+ targetTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1619
+ type: __expectString,
1620
+ });
1621
+ };
1622
+ const de_SlaContent = (output, context) => {
1623
+ return take(output, {
1624
+ slaConfiguration: (_) => de_SlaConfiguration(_, context),
1625
+ });
1626
+ };
1627
+ const de_SlaFieldValueUnionList = (output, context) => {
1628
+ const retVal = (output || [])
1629
+ .filter((e) => e != null)
1630
+ .map((entry) => {
1631
+ return de_FieldValueUnion(__expectUnion(entry), context);
1632
+ });
1633
+ return retVal;
1634
+ };
1575
1635
  const de_Tags = (output, context) => {
1576
1636
  return Object.entries(output).reduce((acc, [key, value]) => {
1577
1637
  if (value === null) {
@@ -33,7 +33,6 @@ declare const CreateCaseCommand_base: {
33
33
  * <p>Creates a case in the specified Cases domain. Case system and custom fields are taken
34
34
  * as an array id/value pairs with a declared data types.</p>
35
35
  * <p>The following fields are required when creating a case:</p>
36
- *
37
36
  * <ul>
38
37
  * <li>
39
38
  * <p>
@@ -36,7 +36,6 @@ declare const CreateDomainCommand_base: {
36
36
  * <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateIntegrationAssociation.html">CreateIntegrationAssociation</a> API. You need specific IAM
37
37
  * permissions to successfully associate the Cases domain. For more information, see
38
38
  * <a href="https://docs.aws.amazon.com/connect/latest/adminguide/required-permissions-iam-cases.html#onboard-cases-iam">Onboard to Cases</a>.</p>
39
- *
40
39
  * </important>
41
40
  * @example
42
41
  * Use a bare-bones client and the command you need to make an API call.
@@ -68,6 +68,23 @@ declare const CreateRelatedItemCommand_base: {
68
68
  * file: { // FileContent
69
69
  * fileArn: "STRING_VALUE", // required
70
70
  * },
71
+ * sla: { // SlaInputContent Union: only one key present
72
+ * slaInputConfiguration: { // SlaInputConfiguration
73
+ * name: "STRING_VALUE", // required
74
+ * type: "STRING_VALUE", // required
75
+ * fieldId: "STRING_VALUE",
76
+ * targetFieldValues: [ // SlaFieldValueUnionList
77
+ * { // FieldValueUnion Union: only one key present
78
+ * stringValue: "STRING_VALUE",
79
+ * doubleValue: Number("double"),
80
+ * booleanValue: true || false,
81
+ * emptyValue: {},
82
+ * userArnValue: "STRING_VALUE",
83
+ * },
84
+ * ],
85
+ * targetSlaMinutes: Number("long"), // required
86
+ * },
87
+ * },
71
88
  * },
72
89
  * performedBy: { // UserUnion Union: only one key present
73
90
  * userArn: "STRING_VALUE",
@@ -28,7 +28,6 @@ declare const DeleteDomainCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Deletes a Cases domain.</p>
31
- *
32
31
  * <note>
33
32
  * <p>After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this
34
33
  * Amazon Connect instance. See <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteIntegrationAssociation.html">DeleteIntegrationAssociation</a>.</p>
@@ -29,7 +29,6 @@ declare const DeleteLayoutCommand_base: {
29
29
  /**
30
30
  * <p>Deletes a layout from a cases template. You can delete up to 100 layouts per
31
31
  * domain.</p>
32
- *
33
32
  * <p>After a layout is deleted:</p>
34
33
  * <ul>
35
34
  * <li>