aws-sdk-connectcases 1.37.0 → 1.38.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:connectcases)
23
23
  # structure.
24
24
  #
25
25
  # connect_cases = Aws::ConnectCases::Client.new
26
- # resp = connect_cases.batch_get_field(params)
26
+ # resp = connect_cases.batch_get_case_rule(params)
27
27
  #
28
28
  # See {Client} for more information.
29
29
  #
@@ -54,7 +54,7 @@ module Aws::ConnectCases
54
54
  autoload :EndpointProvider, 'aws-sdk-connectcases/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-connectcases/endpoints'
56
56
 
57
- GEM_VERSION = '1.37.0'
57
+ GEM_VERSION = '1.38.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -77,6 +77,22 @@ module Aws
77
77
  | (?Hash[Symbol, untyped]) -> instance
78
78
 
79
79
 
80
+ interface _BatchGetCaseRuleResponseSuccess
81
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetCaseRuleResponse]
82
+ def case_rules: () -> ::Array[Types::GetCaseRuleResponse]
83
+ def errors: () -> ::Array[Types::CaseRuleError]
84
+ end
85
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#batch_get_case_rule-instance_method
86
+ def batch_get_case_rule: (
87
+ case_rules: Array[
88
+ {
89
+ id: ::String
90
+ },
91
+ ],
92
+ domain_id: ::String
93
+ ) -> _BatchGetCaseRuleResponseSuccess
94
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetCaseRuleResponseSuccess
95
+
80
96
  interface _BatchGetFieldResponseSuccess
81
97
  include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetFieldResponse]
82
98
  def errors: () -> ::Array[Types::FieldError]
@@ -140,6 +156,54 @@ module Aws
140
156
  ) -> _CreateCaseResponseSuccess
141
157
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCaseResponseSuccess
142
158
 
159
+ interface _CreateCaseRuleResponseSuccess
160
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCaseRuleResponse]
161
+ def case_rule_arn: () -> ::String
162
+ def case_rule_id: () -> ::String
163
+ end
164
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#create_case_rule-instance_method
165
+ def create_case_rule: (
166
+ ?description: ::String,
167
+ domain_id: ::String,
168
+ name: ::String,
169
+ rule: {
170
+ required: {
171
+ conditions: Array[
172
+ {
173
+ equal_to: {
174
+ operand_one: {
175
+ field_id: ::String?
176
+ },
177
+ operand_two: {
178
+ boolean_value: bool?,
179
+ double_value: ::Float?,
180
+ empty_value: {
181
+ }?,
182
+ string_value: ::String?
183
+ },
184
+ result: bool
185
+ }?,
186
+ not_equal_to: {
187
+ operand_one: {
188
+ field_id: ::String?
189
+ },
190
+ operand_two: {
191
+ boolean_value: bool?,
192
+ double_value: ::Float?,
193
+ empty_value: {
194
+ }?,
195
+ string_value: ::String?
196
+ },
197
+ result: bool
198
+ }?
199
+ },
200
+ ],
201
+ default_value: bool
202
+ }?
203
+ }
204
+ ) -> _CreateCaseRuleResponseSuccess
205
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCaseRuleResponseSuccess
206
+
143
207
  interface _CreateDomainResponseSuccess
144
208
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateDomainResponse]
145
209
  def domain_arn: () -> ::String
@@ -256,10 +320,26 @@ module Aws
256
320
  field_id: ::String
257
321
  },
258
322
  ],
323
+ ?rules: Array[
324
+ {
325
+ case_rule_id: ::String,
326
+ field_id: ::String
327
+ },
328
+ ],
259
329
  ?status: ("Active" | "Inactive")
260
330
  ) -> _CreateTemplateResponseSuccess
261
331
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateTemplateResponseSuccess
262
332
 
333
+ interface _DeleteCaseRuleResponseSuccess
334
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCaseRuleResponse]
335
+ end
336
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#delete_case_rule-instance_method
337
+ def delete_case_rule: (
338
+ case_rule_id: ::String,
339
+ domain_id: ::String
340
+ ) -> _DeleteCaseRuleResponseSuccess
341
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCaseRuleResponseSuccess
342
+
263
343
  interface _DeleteDomainResponseSuccess
264
344
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteDomainResponse]
265
345
  end
@@ -385,6 +465,7 @@ module Aws
385
465
  def layout_configuration: () -> Types::LayoutConfiguration
386
466
  def name: () -> ::String
387
467
  def required_fields: () -> ::Array[Types::RequiredField]
468
+ def rules: () -> ::Array[Types::TemplateRule]
388
469
  def status: () -> ("Active" | "Inactive")
389
470
  def tags: () -> ::Hash[::String, ::String]
390
471
  def template_arn: () -> ::String
@@ -397,6 +478,19 @@ module Aws
397
478
  ) -> _GetTemplateResponseSuccess
398
479
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetTemplateResponseSuccess
399
480
 
481
+ interface _ListCaseRulesResponseSuccess
482
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCaseRulesResponse]
483
+ def case_rules: () -> ::Array[Types::CaseRuleSummary]
484
+ def next_token: () -> ::String
485
+ end
486
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#list_case_rules-instance_method
487
+ def list_case_rules: (
488
+ domain_id: ::String,
489
+ ?max_results: ::Integer,
490
+ ?next_token: ::String
491
+ ) -> _ListCaseRulesResponseSuccess
492
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCaseRulesResponseSuccess
493
+
400
494
  interface _ListCasesForContactResponseSuccess
401
495
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCasesForContactResponse]
402
496
  def cases: () -> ::Array[Types::CaseSummary]
@@ -681,6 +775,53 @@ module Aws
681
775
  ) -> _UpdateCaseResponseSuccess
682
776
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCaseResponseSuccess
683
777
 
778
+ interface _UpdateCaseRuleResponseSuccess
779
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCaseRuleResponse]
780
+ end
781
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#update_case_rule-instance_method
782
+ def update_case_rule: (
783
+ case_rule_id: ::String,
784
+ ?description: ::String,
785
+ domain_id: ::String,
786
+ ?name: ::String,
787
+ ?rule: {
788
+ required: {
789
+ conditions: Array[
790
+ {
791
+ equal_to: {
792
+ operand_one: {
793
+ field_id: ::String?
794
+ },
795
+ operand_two: {
796
+ boolean_value: bool?,
797
+ double_value: ::Float?,
798
+ empty_value: {
799
+ }?,
800
+ string_value: ::String?
801
+ },
802
+ result: bool
803
+ }?,
804
+ not_equal_to: {
805
+ operand_one: {
806
+ field_id: ::String?
807
+ },
808
+ operand_two: {
809
+ boolean_value: bool?,
810
+ double_value: ::Float?,
811
+ empty_value: {
812
+ }?,
813
+ string_value: ::String?
814
+ },
815
+ result: bool
816
+ }?
817
+ },
818
+ ],
819
+ default_value: bool
820
+ }?
821
+ }
822
+ ) -> _UpdateCaseRuleResponseSuccess
823
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCaseRuleResponseSuccess
824
+
684
825
  interface _UpdateFieldResponseSuccess
685
826
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateFieldResponse]
686
827
  end
@@ -752,6 +893,12 @@ module Aws
752
893
  field_id: ::String
753
894
  },
754
895
  ],
896
+ ?rules: Array[
897
+ {
898
+ case_rule_id: ::String,
899
+ field_id: ::String
900
+ },
901
+ ],
755
902
  ?status: ("Active" | "Inactive"),
756
903
  template_id: ::String
757
904
  ) -> _UpdateTemplateResponseSuccess
data/sig/types.rbs CHANGED
@@ -65,6 +65,18 @@ module Aws::ConnectCases
65
65
  SENSITIVE: []
66
66
  end
67
67
 
68
+ class BatchGetCaseRuleRequest
69
+ attr_accessor case_rules: ::Array[Types::CaseRuleIdentifier]
70
+ attr_accessor domain_id: ::String
71
+ SENSITIVE: []
72
+ end
73
+
74
+ class BatchGetCaseRuleResponse
75
+ attr_accessor case_rules: ::Array[Types::GetCaseRuleResponse]
76
+ attr_accessor errors: ::Array[Types::CaseRuleError]
77
+ SENSITIVE: []
78
+ end
79
+
68
80
  class BatchGetFieldRequest
69
81
  attr_accessor domain_id: ::String
70
82
  attr_accessor fields: ::Array[Types::FieldIdentifier]
@@ -89,6 +101,27 @@ module Aws::ConnectCases
89
101
  SENSITIVE: []
90
102
  end
91
103
 
104
+ class BooleanCondition
105
+ attr_accessor equal_to: Types::BooleanOperands
106
+ attr_accessor not_equal_to: Types::BooleanOperands
107
+ attr_accessor unknown: untyped
108
+ SENSITIVE: []
109
+
110
+ class EqualTo < BooleanCondition
111
+ end
112
+ class NotEqualTo < BooleanCondition
113
+ end
114
+ class Unknown < BooleanCondition
115
+ end
116
+ end
117
+
118
+ class BooleanOperands
119
+ attr_accessor operand_one: Types::OperandOne
120
+ attr_accessor operand_two: Types::OperandTwo
121
+ attr_accessor result: bool
122
+ SENSITIVE: []
123
+ end
124
+
92
125
  class CaseEventIncludedData
93
126
  attr_accessor fields: ::Array[Types::FieldIdentifier]
94
127
  SENSITIVE: []
@@ -114,6 +147,38 @@ module Aws::ConnectCases
114
147
  end
115
148
  end
116
149
 
150
+ class CaseRuleDetails
151
+ attr_accessor required: Types::RequiredCaseRule
152
+ attr_accessor unknown: untyped
153
+ SENSITIVE: []
154
+
155
+ class Required < CaseRuleDetails
156
+ end
157
+ class Unknown < CaseRuleDetails
158
+ end
159
+ end
160
+
161
+ class CaseRuleError
162
+ attr_accessor error_code: ::String
163
+ attr_accessor id: ::String
164
+ attr_accessor message: ::String
165
+ SENSITIVE: []
166
+ end
167
+
168
+ class CaseRuleIdentifier
169
+ attr_accessor id: ::String
170
+ SENSITIVE: []
171
+ end
172
+
173
+ class CaseRuleSummary
174
+ attr_accessor case_rule_arn: ::String
175
+ attr_accessor case_rule_id: ::String
176
+ attr_accessor description: ::String
177
+ attr_accessor name: ::String
178
+ attr_accessor rule_type: ("Required")
179
+ SENSITIVE: []
180
+ end
181
+
117
182
  class CaseSummary
118
183
  attr_accessor case_id: ::String
119
184
  attr_accessor template_id: ::String
@@ -167,6 +232,20 @@ module Aws::ConnectCases
167
232
  SENSITIVE: []
168
233
  end
169
234
 
235
+ class CreateCaseRuleRequest
236
+ attr_accessor description: ::String
237
+ attr_accessor domain_id: ::String
238
+ attr_accessor name: ::String
239
+ attr_accessor rule: Types::CaseRuleDetails
240
+ SENSITIVE: []
241
+ end
242
+
243
+ class CreateCaseRuleResponse
244
+ attr_accessor case_rule_arn: ::String
245
+ attr_accessor case_rule_id: ::String
246
+ SENSITIVE: []
247
+ end
248
+
170
249
  class CreateDomainRequest
171
250
  attr_accessor name: ::String
172
251
  SENSITIVE: []
@@ -227,6 +306,7 @@ module Aws::ConnectCases
227
306
  attr_accessor layout_configuration: Types::LayoutConfiguration
228
307
  attr_accessor name: ::String
229
308
  attr_accessor required_fields: ::Array[Types::RequiredField]
309
+ attr_accessor rules: ::Array[Types::TemplateRule]
230
310
  attr_accessor status: ("Active" | "Inactive")
231
311
  SENSITIVE: []
232
312
  end
@@ -237,6 +317,15 @@ module Aws::ConnectCases
237
317
  SENSITIVE: []
238
318
  end
239
319
 
320
+ class DeleteCaseRuleRequest
321
+ attr_accessor case_rule_id: ::String
322
+ attr_accessor domain_id: ::String
323
+ SENSITIVE: []
324
+ end
325
+
326
+ class DeleteCaseRuleResponse < Aws::EmptyStructure
327
+ end
328
+
240
329
  class DeleteDomainRequest
241
330
  attr_accessor domain_id: ::String
242
331
  SENSITIVE: []
@@ -282,6 +371,9 @@ module Aws::ConnectCases
282
371
  class EmptyFieldValue < Aws::EmptyStructure
283
372
  end
284
373
 
374
+ class EmptyOperandValue < Aws::EmptyStructure
375
+ end
376
+
285
377
  class EventBridgeConfiguration
286
378
  attr_accessor enabled: bool
287
379
  attr_accessor included_data: Types::EventIncludedData
@@ -445,6 +537,19 @@ module Aws::ConnectCases
445
537
  SENSITIVE: []
446
538
  end
447
539
 
540
+ class GetCaseRuleResponse
541
+ attr_accessor case_rule_arn: ::String
542
+ attr_accessor case_rule_id: ::String
543
+ attr_accessor created_time: ::Time
544
+ attr_accessor deleted: bool
545
+ attr_accessor description: ::String
546
+ attr_accessor last_modified_time: ::Time
547
+ attr_accessor name: ::String
548
+ attr_accessor rule: Types::CaseRuleDetails
549
+ attr_accessor tags: ::Hash[::String, ::String]
550
+ SENSITIVE: []
551
+ end
552
+
448
553
  class GetDomainRequest
449
554
  attr_accessor domain_id: ::String
450
555
  SENSITIVE: []
@@ -506,6 +611,7 @@ module Aws::ConnectCases
506
611
  attr_accessor layout_configuration: Types::LayoutConfiguration
507
612
  attr_accessor name: ::String
508
613
  attr_accessor required_fields: ::Array[Types::RequiredField]
614
+ attr_accessor rules: ::Array[Types::TemplateRule]
509
615
  attr_accessor status: ("Active" | "Inactive")
510
616
  attr_accessor tags: ::Hash[::String, ::String]
511
617
  attr_accessor template_arn: ::String
@@ -547,6 +653,19 @@ module Aws::ConnectCases
547
653
  SENSITIVE: []
548
654
  end
549
655
 
656
+ class ListCaseRulesRequest
657
+ attr_accessor domain_id: ::String
658
+ attr_accessor max_results: ::Integer
659
+ attr_accessor next_token: ::String
660
+ SENSITIVE: []
661
+ end
662
+
663
+ class ListCaseRulesResponse
664
+ attr_accessor case_rules: ::Array[Types::CaseRuleSummary]
665
+ attr_accessor next_token: ::String
666
+ SENSITIVE: []
667
+ end
668
+
550
669
  class ListCasesForContactRequest
551
670
  attr_accessor contact_arn: ::String
552
671
  attr_accessor domain_id: ::String
@@ -638,6 +757,37 @@ module Aws::ConnectCases
638
757
  SENSITIVE: []
639
758
  end
640
759
 
760
+ class OperandOne
761
+ attr_accessor field_id: ::String
762
+ attr_accessor unknown: untyped
763
+ SENSITIVE: []
764
+
765
+ class FieldId < OperandOne
766
+ end
767
+ class Unknown < OperandOne
768
+ end
769
+ end
770
+
771
+ class OperandTwo
772
+ attr_accessor boolean_value: bool
773
+ attr_accessor double_value: ::Float
774
+ attr_accessor empty_value: Types::EmptyOperandValue
775
+ attr_accessor string_value: ::String
776
+ attr_accessor unknown: untyped
777
+ SENSITIVE: []
778
+
779
+ class BooleanValue < OperandTwo
780
+ end
781
+ class DoubleValue < OperandTwo
782
+ end
783
+ class EmptyValue < OperandTwo
784
+ end
785
+ class StringValue < OperandTwo
786
+ end
787
+ class Unknown < OperandTwo
788
+ end
789
+ end
790
+
641
791
  class PutCaseEventConfigurationRequest
642
792
  attr_accessor domain_id: ::String
643
793
  attr_accessor event_bridge: Types::EventBridgeConfiguration
@@ -703,6 +853,12 @@ module Aws::ConnectCases
703
853
  end
704
854
  end
705
855
 
856
+ class RequiredCaseRule
857
+ attr_accessor conditions: ::Array[Types::BooleanCondition]
858
+ attr_accessor default_value: bool
859
+ SENSITIVE: []
860
+ end
861
+
706
862
  class RequiredField
707
863
  attr_accessor field_id: ::String
708
864
  SENSITIVE: []
@@ -793,6 +949,12 @@ module Aws::ConnectCases
793
949
  SENSITIVE: []
794
950
  end
795
951
 
952
+ class TemplateRule
953
+ attr_accessor case_rule_id: ::String
954
+ attr_accessor field_id: ::String
955
+ SENSITIVE: []
956
+ end
957
+
796
958
  class TemplateSummary
797
959
  attr_accessor name: ::String
798
960
  attr_accessor status: ("Active" | "Inactive")
@@ -823,6 +985,18 @@ module Aws::ConnectCases
823
985
  class UpdateCaseResponse < Aws::EmptyStructure
824
986
  end
825
987
 
988
+ class UpdateCaseRuleRequest
989
+ attr_accessor case_rule_id: ::String
990
+ attr_accessor description: ::String
991
+ attr_accessor domain_id: ::String
992
+ attr_accessor name: ::String
993
+ attr_accessor rule: Types::CaseRuleDetails
994
+ SENSITIVE: []
995
+ end
996
+
997
+ class UpdateCaseRuleResponse < Aws::EmptyStructure
998
+ end
999
+
826
1000
  class UpdateFieldRequest
827
1001
  attr_accessor description: ::String
828
1002
  attr_accessor domain_id: ::String
@@ -851,6 +1025,7 @@ module Aws::ConnectCases
851
1025
  attr_accessor layout_configuration: Types::LayoutConfiguration
852
1026
  attr_accessor name: ::String
853
1027
  attr_accessor required_fields: ::Array[Types::RequiredField]
1028
+ attr_accessor rules: ::Array[Types::TemplateRule]
854
1029
  attr_accessor status: ("Active" | "Inactive")
855
1030
  attr_accessor template_id: ::String
856
1031
  SENSITIVE: []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-connectcases
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.37.0
4
+ version: 1.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-15 00:00:00.000000000 Z
11
+ date: 2025-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core