aws-sdk-connectcases 1.82.0 → 1.83.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42a1098c23ee5a970da2bd4c8f9efca12abcb35c3b145e841b91d98bad48e1b1
4
- data.tar.gz: 1ae6d8e5d78e16f96ae4ef4b055fb95ee70394579fa6099200e97fb1e42b2ae0
3
+ metadata.gz: f13aaac8a9bb755d855c8e90355906cd33e4e7362c5aa0c1b439b635b6a8c8a6
4
+ data.tar.gz: 5c7894035caa01bf934467efb37a11acc2c8cd526449971654db9748dac1a961
5
5
  SHA512:
6
- metadata.gz: fc03dbf0ab13a60d77e0b9766f3ccd06c75385dd76fb04cbfe596d51a30944bb43607566214f85041ab5807d96be11952b9a90020b52f7f29c2ede0244edde6f
7
- data.tar.gz: 3b871db704d86738a68237fabe62b2dc7f8175f8eaed35db6b46fd680629b71ece172cc953368b9a29ce3aa13d18547cc0a1bf6d214706e6fbbeab059ec09dd3
6
+ metadata.gz: '08cfc402cc98a0e11b1ea12804c65527271ee78ace5ab3aaf40e658cf8c3fb273ee04d60432d9aa8443044bb1232450941e3a8918e905ca2958e5eef99087fe0'
7
+ data.tar.gz: 0d0e12282902347f3581b96036e6405ba5fe7f75ca5ebc6eeaa9c4545d3be57d9175dfdd619a2a4fc0c4b68f4baa8be75f994b039d0768da96c6dce56a129f59
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.83.0 (2026-11-11)
5
+ ------------------
6
+
7
+ * Feature - This release adds APIs that allow customers to merge cases to consolidate case history, and get the status of an ongoing case merge operation.
8
+
4
9
  1.82.0 (2026-11-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.82.0
1
+ 1.83.0
@@ -1487,14 +1487,19 @@ module Aws::ConnectCases
1487
1487
  # [DescribeUser][3] permission on the ARN of the user that you
1488
1488
  # provide.
1489
1489
  #
1490
- # **Endpoints**: See [Connect Customer endpoints and quotas][4].
1490
+ # * If the case is the secondary case of a merge that is running, the
1491
+ # request fails with a `ConflictException`. For more information, see
1492
+ # [StartMergeCases][4].
1493
+ #
1494
+ # **Endpoints**: See [Connect Customer endpoints and quotas][5].
1491
1495
  #
1492
1496
  #
1493
1497
  #
1494
1498
  # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#cases-quotas
1495
1499
  # [2]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeContact.html
1496
1500
  # [3]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html
1497
- # [4]: https://docs.aws.amazon.com/general/latest/gr/connect_region.html
1501
+ # [4]: https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_StartMergeCases.html
1502
+ # [5]: https://docs.aws.amazon.com/general/latest/gr/connect_region.html
1498
1503
  #
1499
1504
  # @option params [required, String] :domain_id
1500
1505
  # The unique identifier of the Cases domain.
@@ -1713,9 +1718,17 @@ module Aws::ConnectCases
1713
1718
  #
1714
1719
  # * Perform any operations that require the CaseID
1715
1720
  #
1721
+ # You can't delete a case while it's part of a merge that is running,
1722
+ # as either the primary or the secondary case. The request fails with a
1723
+ # `ConflictException`. For more information, see [StartMergeCases][1].
1724
+ #
1716
1725
  # This action is irreversible. After you delete a case, you cannot
1717
1726
  # recover its data.
1718
1727
  #
1728
+ #
1729
+ #
1730
+ # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_StartMergeCases.html
1731
+ #
1719
1732
  # @option params [required, String] :domain_id
1720
1733
  # A unique identifier of the Cases domain.
1721
1734
  #
@@ -1913,9 +1926,14 @@ module Aws::ConnectCases
1913
1926
  #
1914
1927
  # </note>
1915
1928
  #
1929
+ # If the case is the secondary case of a merge that is running, the
1930
+ # request fails with a `ConflictException`. For more information, see
1931
+ # [StartMergeCases][2].
1932
+ #
1916
1933
  #
1917
1934
  #
1918
1935
  # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteAttachedFile.html
1936
+ # [2]: https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_StartMergeCases.html
1919
1937
  #
1920
1938
  # @option params [required, String] :domain_id
1921
1939
  # A unique identifier of the Cases domain.
@@ -2080,7 +2098,7 @@ module Aws::ConnectCases
2080
2098
  # resp.next_token #=> String
2081
2099
  # resp.audit_events #=> Array
2082
2100
  # resp.audit_events[0].event_id #=> String
2083
- # resp.audit_events[0].type #=> String, one of "Case.Created", "Case.Updated", "RelatedItem.Created", "RelatedItem.Deleted", "RelatedItem.Updated"
2101
+ # resp.audit_events[0].type #=> String, one of "Case.Created", "Case.Updated", "RelatedItem.Created", "RelatedItem.Deleted", "RelatedItem.Updated", "Case.Merged"
2084
2102
  # resp.audit_events[0].related_item_type #=> String, one of "Contact", "Comment", "File", "Sla", "ConnectCase", "Custom"
2085
2103
  # resp.audit_events[0].performed_time #=> Time
2086
2104
  # resp.audit_events[0].fields #=> Array
@@ -2096,6 +2114,9 @@ module Aws::ConnectCases
2096
2114
  # resp.audit_events[0].performed_by.user.user_arn #=> String
2097
2115
  # resp.audit_events[0].performed_by.user.custom_entity #=> String
2098
2116
  # resp.audit_events[0].performed_by.iam_principal_arn #=> String
2117
+ # resp.audit_events[0].merge_metadata.merge_event_id #=> String
2118
+ # resp.audit_events[0].merge_metadata.primary_case_id #=> String
2119
+ # resp.audit_events[0].merge_metadata.secondary_case_id #=> String
2099
2120
  #
2100
2121
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetCaseAuditEvents AWS API Documentation
2101
2122
  #
@@ -2230,6 +2251,64 @@ module Aws::ConnectCases
2230
2251
  req.send_request(options)
2231
2252
  end
2232
2253
 
2254
+ # Returns the merge status of a case. Use this operation to track a
2255
+ # merge that you started with [StartMergeCases][1], or to check whether
2256
+ # a case is part of a merge before you modify it.
2257
+ #
2258
+ # The operation returns the following, depending on the case:
2259
+ #
2260
+ # * For the primary case or the secondary case of a merge that is
2261
+ # running, it returns `IN_PROGRESS`.
2262
+ #
2263
+ # * For a case that was merged into another case as the secondary case,
2264
+ # it returns `COMPLETED`.
2265
+ #
2266
+ # * For any other case, it returns a `ResourceNotFoundException`. This
2267
+ # includes the primary case after its merge finishes.
2268
+ #
2269
+ # **Endpoints**: See [Connect Customer endpoints and quotas][2].
2270
+ #
2271
+ #
2272
+ #
2273
+ # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_StartMergeCases.html
2274
+ # [2]: https://docs.aws.amazon.com/general/latest/gr/connect_region.html
2275
+ #
2276
+ # @option params [required, String] :domain_id
2277
+ # The unique identifier of the Cases domain.
2278
+ #
2279
+ # @option params [required, String] :case_id
2280
+ # The unique identifier of the case. This can be the primary case or the
2281
+ # secondary case of a merge.
2282
+ #
2283
+ # @return [Types::GetMergeCasesStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2284
+ #
2285
+ # * {Types::GetMergeCasesStatusResponse#status #status} => String
2286
+ # * {Types::GetMergeCasesStatusResponse#primary_case_id #primary_case_id} => String
2287
+ # * {Types::GetMergeCasesStatusResponse#secondary_case_ids #secondary_case_ids} => Array&lt;String&gt;
2288
+ #
2289
+ # @example Request syntax with placeholder values
2290
+ #
2291
+ # resp = client.get_merge_cases_status({
2292
+ # domain_id: "DomainId", # required
2293
+ # case_id: "CaseId", # required
2294
+ # })
2295
+ #
2296
+ # @example Response structure
2297
+ #
2298
+ # resp.status #=> String, one of "IN_PROGRESS", "COMPLETED"
2299
+ # resp.primary_case_id #=> String
2300
+ # resp.secondary_case_ids #=> Array
2301
+ # resp.secondary_case_ids[0] #=> String
2302
+ #
2303
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetMergeCasesStatus AWS API Documentation
2304
+ #
2305
+ # @overload get_merge_cases_status(params = {})
2306
+ # @param [Hash] params ({})
2307
+ def get_merge_cases_status(params = {}, options = {})
2308
+ req = build_request(:get_merge_cases_status, params)
2309
+ req.send_request(options)
2310
+ end
2311
+
2233
2312
  # Returns the details for the requested template. Other template APIs
2234
2313
  # are:
2235
2314
  #
@@ -3346,6 +3425,160 @@ module Aws::ConnectCases
3346
3425
  req.send_request(options)
3347
3426
  end
3348
3427
 
3428
+ # Merges a secondary case into a primary case. The primary case, which
3429
+ # you specify in the request URI, remains active. Both cases must belong
3430
+ # to the same domain.
3431
+ #
3432
+ # The merge runs asynchronously. To track its progress, call
3433
+ # [GetMergeCasesStatus][1]. When the merge finishes, the selected field
3434
+ # values and related items from the secondary case are on the primary
3435
+ # case, the two cases are linked, and the secondary case is closed. Both
3436
+ # cases record the merge in their audit history. For more information,
3437
+ # see [GetCaseAuditEvents][2].
3438
+ #
3439
+ # **Important things to know**
3440
+ #
3441
+ # * Both cases must have the same customer, or at least one of them must
3442
+ # have no customer.
3443
+ #
3444
+ # * While the merge runs, you can't modify the secondary case or its
3445
+ # related items, and you can't delete the primary case. These
3446
+ # requests return a `ConflictException`.
3447
+ #
3448
+ # * After the merge, the secondary case can be reopened, updated, and
3449
+ # deleted, but it can't be merged again.
3450
+ #
3451
+ # The request fails with a `ValidationException`, and no merge starts,
3452
+ # if:
3453
+ #
3454
+ # * The primary case and the secondary case are the same case.
3455
+ #
3456
+ # * Either case is closed.
3457
+ #
3458
+ # * Both cases have a customer, and the customers are different.
3459
+ #
3460
+ # * `fieldsConfiguration` selects a field that can't be merged, or a
3461
+ # field that the secondary case doesn't have.
3462
+ #
3463
+ # * After the merge, the primary case would have more than 500 field
3464
+ # values, or would exceed the maximum case size.
3465
+ #
3466
+ # The request fails with a `ServiceQuotaExceededException` if, after the
3467
+ # merge, either case would exceed the quota for related items per case.
3468
+ # For the primary case, the count is its existing related items, plus
3469
+ # the related items moved from the secondary case, plus the new case
3470
+ # link. See [Connect Customer Cases quotas][3].
3471
+ #
3472
+ # The request fails with a `ConflictException` if either case is already
3473
+ # part of a merge that is running, or was previously merged into another
3474
+ # case as the secondary case.
3475
+ #
3476
+ # **Endpoints**: See [Connect Customer endpoints and quotas][4].
3477
+ #
3478
+ #
3479
+ #
3480
+ # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_GetMergeCasesStatus.html
3481
+ # [2]: https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_GetCaseAuditEvents.html
3482
+ # [3]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#cases-quotas
3483
+ # [4]: https://docs.aws.amazon.com/general/latest/gr/connect_region.html
3484
+ #
3485
+ # @option params [required, String] :domain_id
3486
+ # The unique identifier of the Cases domain.
3487
+ #
3488
+ # @option params [required, String] :case_id
3489
+ # The unique identifier of the primary case. The primary case remains
3490
+ # active and receives the merged field values and related items. The
3491
+ # cases can use different templates, and the primary case keeps its
3492
+ # template.
3493
+ #
3494
+ # @option params [required, Array<String>] :secondary_case_ids
3495
+ # The unique identifier of the secondary case to merge into the primary
3496
+ # case. The secondary case is closed when the merge finishes. Specify
3497
+ # exactly one case ID.
3498
+ #
3499
+ # @option params [Array<Types::FieldsConfiguration>] :fields_configuration
3500
+ # The fields whose values to take from the secondary case. You can only
3501
+ # merge custom fields and the following system fields: `assigned_queue`,
3502
+ # `assigned_user`, `summary`, and `case_reason`. If you select any other
3503
+ # system field, the request fails with a `ValidationException`.
3504
+ #
3505
+ # For each field that can be merged, the merge works as follows:
3506
+ #
3507
+ # * If you select the field, the primary case gets the secondary case's
3508
+ # value. If the secondary case's value is empty, the primary case's
3509
+ # value is cleared.
3510
+ #
3511
+ # * If you don't select the field and the primary case has a value for
3512
+ # it, the primary case keeps its value.
3513
+ #
3514
+ # * If you don't select the field and the primary case doesn't have
3515
+ # the field, or its value is empty, the primary case gets the
3516
+ # secondary case's value. This applies even when the field isn't on
3517
+ # the primary case's template.
3518
+ #
3519
+ # Field values are read from both cases when the merge runs, so changes
3520
+ # that you make to the primary case after you start the merge are taken
3521
+ # into account.
3522
+ #
3523
+ # Specify at most one entry, and set its `sourceCaseId` to the secondary
3524
+ # case ID.
3525
+ #
3526
+ # @option params [Types::RelatedItemsConfiguration] :related_items_configuration
3527
+ # The types of related items to move from the secondary case to the
3528
+ # primary case. Related items of a type that you don't select, or set
3529
+ # to `false`, stay on the closed secondary case. If you omit this
3530
+ # parameter, no related items are moved.
3531
+ #
3532
+ # File, SLA, and work plan related items are never moved. They stay on
3533
+ # the secondary case.
3534
+ #
3535
+ # @option params [Types::UserUnion] :performed_by
3536
+ # The user who performed the merge. If you provide `userArn`, you must
3537
+ # also have [DescribeUser][1] permission on the ARN of that user.
3538
+ #
3539
+ #
3540
+ #
3541
+ # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html
3542
+ #
3543
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3544
+ #
3545
+ # @example Request syntax with placeholder values
3546
+ #
3547
+ # resp = client.start_merge_cases({
3548
+ # domain_id: "DomainId", # required
3549
+ # case_id: "CaseId", # required
3550
+ # secondary_case_ids: ["CaseId"], # required
3551
+ # fields_configuration: [
3552
+ # {
3553
+ # field_ids: [ # required
3554
+ # {
3555
+ # id: "FieldId", # required
3556
+ # },
3557
+ # ],
3558
+ # source_case_id: "CaseId", # required
3559
+ # },
3560
+ # ],
3561
+ # related_items_configuration: {
3562
+ # comment: false,
3563
+ # connect_case: false,
3564
+ # contact: false,
3565
+ # custom: false,
3566
+ # },
3567
+ # performed_by: {
3568
+ # user_arn: "UserArn",
3569
+ # custom_entity: "CustomEntity",
3570
+ # },
3571
+ # })
3572
+ #
3573
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/StartMergeCases AWS API Documentation
3574
+ #
3575
+ # @overload start_merge_cases(params = {})
3576
+ # @param [Hash] params ({})
3577
+ def start_merge_cases(params = {}, options = {})
3578
+ req = build_request(:start_merge_cases, params)
3579
+ req.send_request(options)
3580
+ end
3581
+
3349
3582
  # Adds tags to a resource.
3350
3583
  #
3351
3584
  # @option params [required, String] :arn
@@ -3412,12 +3645,17 @@ module Aws::ConnectCases
3412
3645
  # received as an array of id/value pairs identical to the `CreateCase`
3413
3646
  # input.
3414
3647
  #
3648
+ # If the case is the secondary case of a merge that is running, the
3649
+ # request fails with a `ConflictException`. For more information, see
3650
+ # [StartMergeCases][2].
3651
+ #
3415
3652
  # If the action is successful, the service sends back an HTTP 200
3416
3653
  # response with an empty HTTP body.
3417
3654
  #
3418
3655
  #
3419
3656
  #
3420
3657
  # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html
3658
+ # [2]: https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_StartMergeCases.html
3421
3659
  #
3422
3660
  # @option params [required, String] :domain_id
3423
3661
  # The unique identifier of the Cases domain.
@@ -3750,14 +3988,19 @@ module Aws::ConnectCases
3750
3988
  #
3751
3989
  # * [System case fields][3] cannot be used in a custom related item.
3752
3990
  #
3753
- # **Endpoints**: See [Connect Customer endpoints and quotas][4].
3991
+ # * If the case is the secondary case of a merge that is running, the
3992
+ # request fails with a `ConflictException`. For more information, see
3993
+ # [StartMergeCases][4].
3994
+ #
3995
+ # **Endpoints**: See [Connect Customer endpoints and quotas][5].
3754
3996
  #
3755
3997
  #
3756
3998
  #
3757
3999
  # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#cases-quotas
3758
4000
  # [2]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html
3759
4001
  # [3]: https://docs.aws.amazon.com/connect/latest/adminguide/case-fields.html#system-case-fields
3760
- # [4]: https://docs.aws.amazon.com/general/latest/gr/connect_region.html
4002
+ # [4]: https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_StartMergeCases.html
4003
+ # [5]: https://docs.aws.amazon.com/general/latest/gr/connect_region.html
3761
4004
  #
3762
4005
  # @option params [required, String] :domain_id
3763
4006
  # The unique identifier of the Cases domain.
@@ -3989,7 +4232,7 @@ module Aws::ConnectCases
3989
4232
  tracer: tracer
3990
4233
  )
3991
4234
  context[:gem_name] = 'aws-sdk-connectcases'
3992
- context[:gem_version] = '1.82.0'
4235
+ context[:gem_version] = '1.83.0'
3993
4236
  Seahorse::Client::Request.new(handlers, context)
3994
4237
  end
3995
4238
 
@@ -27,6 +27,8 @@ module Aws::ConnectCases
27
27
  AuditEventId = Shapes::StringShape.new(name: 'AuditEventId')
28
28
  AuditEventPerformedBy = Shapes::StructureShape.new(name: 'AuditEventPerformedBy')
29
29
  AuditEventType = Shapes::StringShape.new(name: 'AuditEventType')
30
+ AuditMergeMetadata = Shapes::StructureShape.new(name: 'AuditMergeMetadata')
31
+ AuditMergeMetadataMergeEventIdString = Shapes::StringShape.new(name: 'AuditMergeMetadataMergeEventIdString')
30
32
  BasicLayout = Shapes::StructureShape.new(name: 'BasicLayout')
31
33
  BatchCreateRelatedItemErrorEntry = Shapes::StructureShape.new(name: 'BatchCreateRelatedItemErrorEntry')
32
34
  BatchCreateRelatedItemErrorEntryList = Shapes::ListShape.new(name: 'BatchCreateRelatedItemErrorEntryList')
@@ -72,6 +74,7 @@ module Aws::ConnectCases
72
74
  CaseFilterAndAllList = Shapes::ListShape.new(name: 'CaseFilterAndAllList')
73
75
  CaseFilterOrAllList = Shapes::ListShape.new(name: 'CaseFilterOrAllList')
74
76
  CaseId = Shapes::StringShape.new(name: 'CaseId')
77
+ CaseIdList = Shapes::ListShape.new(name: 'CaseIdList')
75
78
  CaseIdentifier = Shapes::StructureShape.new(name: 'CaseIdentifier')
76
79
  CaseIdentifierUnion = Shapes::UnionShape.new(name: 'CaseIdentifierUnion')
77
80
  CaseRuleArn = Shapes::StringShape.new(name: 'CaseRuleArn')
@@ -167,6 +170,7 @@ module Aws::ConnectCases
167
170
  FieldGroupNameString = Shapes::StringShape.new(name: 'FieldGroupNameString')
168
171
  FieldId = Shapes::StringShape.new(name: 'FieldId')
169
172
  FieldIdentifier = Shapes::StructureShape.new(name: 'FieldIdentifier')
173
+ FieldIdentifierList = Shapes::ListShape.new(name: 'FieldIdentifierList')
170
174
  FieldIdentifierUnion = Shapes::UnionShape.new(name: 'FieldIdentifierUnion')
171
175
  FieldItem = Shapes::StructureShape.new(name: 'FieldItem')
172
176
  FieldName = Shapes::StringShape.new(name: 'FieldName')
@@ -184,6 +188,8 @@ module Aws::ConnectCases
184
188
  FieldValueList = Shapes::ListShape.new(name: 'FieldValueList')
185
189
  FieldValueUnion = Shapes::UnionShape.new(name: 'FieldValueUnion')
186
190
  FieldValueUnionStringValueString = Shapes::StringShape.new(name: 'FieldValueUnionStringValueString')
191
+ FieldsConfiguration = Shapes::StructureShape.new(name: 'FieldsConfiguration')
192
+ FieldsConfigurationList = Shapes::ListShape.new(name: 'FieldsConfigurationList')
187
193
  FileArn = Shapes::StringShape.new(name: 'FileArn')
188
194
  FileContent = Shapes::StructureShape.new(name: 'FileContent')
189
195
  FileFilter = Shapes::StructureShape.new(name: 'FileFilter')
@@ -203,6 +209,8 @@ module Aws::ConnectCases
203
209
  GetFieldResponse = Shapes::StructureShape.new(name: 'GetFieldResponse')
204
210
  GetLayoutRequest = Shapes::StructureShape.new(name: 'GetLayoutRequest')
205
211
  GetLayoutResponse = Shapes::StructureShape.new(name: 'GetLayoutResponse')
212
+ GetMergeCasesStatusRequest = Shapes::StructureShape.new(name: 'GetMergeCasesStatusRequest')
213
+ GetMergeCasesStatusResponse = Shapes::StructureShape.new(name: 'GetMergeCasesStatusResponse')
206
214
  GetTemplateRequest = Shapes::StructureShape.new(name: 'GetTemplateRequest')
207
215
  GetTemplateResponse = Shapes::StructureShape.new(name: 'GetTemplateResponse')
208
216
  HiddenCaseRule = Shapes::StructureShape.new(name: 'HiddenCaseRule')
@@ -241,6 +249,7 @@ module Aws::ConnectCases
241
249
  ListTemplatesResponse = Shapes::StructureShape.new(name: 'ListTemplatesResponse')
242
250
  ListTemplatesResponseTemplatesList = Shapes::ListShape.new(name: 'ListTemplatesResponseTemplatesList')
243
251
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
252
+ MergeStatus = Shapes::StringShape.new(name: 'MergeStatus')
244
253
  MutableTagKey = Shapes::StringShape.new(name: 'MutableTagKey')
245
254
  MutableTags = Shapes::MapShape.new(name: 'MutableTags')
246
255
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -264,6 +273,7 @@ module Aws::ConnectCases
264
273
  RelatedItemType = Shapes::StringShape.new(name: 'RelatedItemType')
265
274
  RelatedItemTypeFilter = Shapes::UnionShape.new(name: 'RelatedItemTypeFilter')
266
275
  RelatedItemUpdateContent = Shapes::UnionShape.new(name: 'RelatedItemUpdateContent')
276
+ RelatedItemsConfiguration = Shapes::StructureShape.new(name: 'RelatedItemsConfiguration')
267
277
  RequiredCaseRule = Shapes::StructureShape.new(name: 'RequiredCaseRule')
268
278
  RequiredField = Shapes::StructureShape.new(name: 'RequiredField')
269
279
  RequiredFieldList = Shapes::ListShape.new(name: 'RequiredFieldList')
@@ -309,6 +319,9 @@ module Aws::ConnectCases
309
319
  SlaTargetTime = Shapes::TimestampShape.new(name: 'SlaTargetTime', timestampFormat: "iso8601")
310
320
  SlaType = Shapes::StringShape.new(name: 'SlaType')
311
321
  Sort = Shapes::StructureShape.new(name: 'Sort')
322
+ StartMergeCasesRequest = Shapes::StructureShape.new(name: 'StartMergeCasesRequest')
323
+ StartMergeCasesRequestSecondaryCaseIdsList = Shapes::ListShape.new(name: 'StartMergeCasesRequestSecondaryCaseIdsList')
324
+ StartMergeCasesResponse = Shapes::StructureShape.new(name: 'StartMergeCasesResponse')
312
325
  String = Shapes::StringShape.new(name: 'String')
313
326
  TagFilter = Shapes::UnionShape.new(name: 'TagFilter')
314
327
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -363,6 +376,7 @@ module Aws::ConnectCases
363
376
  AuditEvent.add_member(:performed_time, Shapes::ShapeRef.new(shape: AuditEventDateTime, required: true, location_name: "performedTime"))
364
377
  AuditEvent.add_member(:fields, Shapes::ShapeRef.new(shape: AuditEventFieldList, required: true, location_name: "fields"))
365
378
  AuditEvent.add_member(:performed_by, Shapes::ShapeRef.new(shape: AuditEventPerformedBy, location_name: "performedBy"))
379
+ AuditEvent.add_member(:merge_metadata, Shapes::ShapeRef.new(shape: AuditMergeMetadata, location_name: "mergeMetadata"))
366
380
  AuditEvent.struct_class = Types::AuditEvent
367
381
 
368
382
  AuditEventField.add_member(:event_field_id, Shapes::ShapeRef.new(shape: AuditEventFieldId, required: true, location_name: "eventFieldId"))
@@ -390,6 +404,11 @@ module Aws::ConnectCases
390
404
  AuditEventPerformedBy.add_member(:iam_principal_arn, Shapes::ShapeRef.new(shape: IamPrincipalArn, required: true, location_name: "iamPrincipalArn"))
391
405
  AuditEventPerformedBy.struct_class = Types::AuditEventPerformedBy
392
406
 
407
+ AuditMergeMetadata.add_member(:merge_event_id, Shapes::ShapeRef.new(shape: AuditMergeMetadataMergeEventIdString, required: true, location_name: "mergeEventId"))
408
+ AuditMergeMetadata.add_member(:primary_case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location_name: "primaryCaseId"))
409
+ AuditMergeMetadata.add_member(:secondary_case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location_name: "secondaryCaseId"))
410
+ AuditMergeMetadata.struct_class = Types::AuditMergeMetadata
411
+
393
412
  BasicLayout.add_member(:top_panel, Shapes::ShapeRef.new(shape: LayoutSections, location_name: "topPanel"))
394
413
  BasicLayout.add_member(:more_info, Shapes::ShapeRef.new(shape: LayoutSections, location_name: "moreInfo"))
395
414
  BasicLayout.struct_class = Types::BasicLayout
@@ -540,6 +559,8 @@ module Aws::ConnectCases
540
559
 
541
560
  CaseFilterOrAllList.member = Shapes::ShapeRef.new(shape: CaseFilter)
542
561
 
562
+ CaseIdList.member = Shapes::ShapeRef.new(shape: CaseId)
563
+
543
564
  CaseIdentifier.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, location_name: "caseId"))
544
565
  CaseIdentifier.add_member(:reference_number, Shapes::ShapeRef.new(shape: ReferenceNumber, location_name: "referenceNumber"))
545
566
  CaseIdentifier.add_member(:reference_id, Shapes::ShapeRef.new(shape: ReferenceId, location_name: "referenceId"))
@@ -829,6 +850,8 @@ module Aws::ConnectCases
829
850
  FieldIdentifier.add_member(:id, Shapes::ShapeRef.new(shape: FieldId, required: true, location_name: "id"))
830
851
  FieldIdentifier.struct_class = Types::FieldIdentifier
831
852
 
853
+ FieldIdentifierList.member = Shapes::ShapeRef.new(shape: FieldIdentifier)
854
+
832
855
  FieldIdentifierUnion.add_member(:id, Shapes::ShapeRef.new(shape: FieldId, location_name: "id"))
833
856
  FieldIdentifierUnion.add_member(:name, Shapes::ShapeRef.new(shape: FieldName, location_name: "name"))
834
857
  FieldIdentifierUnion.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
@@ -889,6 +912,12 @@ module Aws::ConnectCases
889
912
  FieldValueUnion.add_member_subclass(:unknown, Types::FieldValueUnion::Unknown)
890
913
  FieldValueUnion.struct_class = Types::FieldValueUnion
891
914
 
915
+ FieldsConfiguration.add_member(:field_ids, Shapes::ShapeRef.new(shape: FieldIdentifierList, required: true, location_name: "fieldIds"))
916
+ FieldsConfiguration.add_member(:source_case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location_name: "sourceCaseId"))
917
+ FieldsConfiguration.struct_class = Types::FieldsConfiguration
918
+
919
+ FieldsConfigurationList.member = Shapes::ShapeRef.new(shape: FieldsConfiguration)
920
+
892
921
  FileContent.add_member(:file_arn, Shapes::ShapeRef.new(shape: FileArn, required: true, location_name: "fileArn"))
893
922
  FileContent.struct_class = Types::FileContent
894
923
 
@@ -978,6 +1007,15 @@ module Aws::ConnectCases
978
1007
  GetLayoutResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "lastModifiedTime"))
979
1008
  GetLayoutResponse.struct_class = Types::GetLayoutResponse
980
1009
 
1010
+ GetMergeCasesStatusRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
1011
+ GetMergeCasesStatusRequest.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location: "uri", location_name: "caseId"))
1012
+ GetMergeCasesStatusRequest.struct_class = Types::GetMergeCasesStatusRequest
1013
+
1014
+ GetMergeCasesStatusResponse.add_member(:status, Shapes::ShapeRef.new(shape: MergeStatus, required: true, location_name: "status"))
1015
+ GetMergeCasesStatusResponse.add_member(:primary_case_id, Shapes::ShapeRef.new(shape: CaseId, location_name: "primaryCaseId"))
1016
+ GetMergeCasesStatusResponse.add_member(:secondary_case_ids, Shapes::ShapeRef.new(shape: CaseIdList, location_name: "secondaryCaseIds"))
1017
+ GetMergeCasesStatusResponse.struct_class = Types::GetMergeCasesStatusResponse
1018
+
981
1019
  GetTemplateRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
982
1020
  GetTemplateRequest.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location: "uri", location_name: "templateId"))
983
1021
  GetTemplateRequest.struct_class = Types::GetTemplateRequest
@@ -1198,6 +1236,12 @@ module Aws::ConnectCases
1198
1236
  RelatedItemUpdateContent.add_member_subclass(:unknown, Types::RelatedItemUpdateContent::Unknown)
1199
1237
  RelatedItemUpdateContent.struct_class = Types::RelatedItemUpdateContent
1200
1238
 
1239
+ RelatedItemsConfiguration.add_member(:comment, Shapes::ShapeRef.new(shape: Boolean, location_name: "comment"))
1240
+ RelatedItemsConfiguration.add_member(:connect_case, Shapes::ShapeRef.new(shape: Boolean, location_name: "connectCase"))
1241
+ RelatedItemsConfiguration.add_member(:contact, Shapes::ShapeRef.new(shape: Boolean, location_name: "contact"))
1242
+ RelatedItemsConfiguration.add_member(:custom, Shapes::ShapeRef.new(shape: Boolean, location_name: "custom"))
1243
+ RelatedItemsConfiguration.struct_class = Types::RelatedItemsConfiguration
1244
+
1201
1245
  RequiredCaseRule.add_member(:default_value, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "defaultValue"))
1202
1246
  RequiredCaseRule.add_member(:conditions, Shapes::ShapeRef.new(shape: BooleanConditionList, required: true, location_name: "conditions"))
1203
1247
  RequiredCaseRule.struct_class = Types::RequiredCaseRule
@@ -1339,6 +1383,18 @@ module Aws::ConnectCases
1339
1383
  Sort.add_member(:sort_order, Shapes::ShapeRef.new(shape: Order, required: true, location_name: "sortOrder"))
1340
1384
  Sort.struct_class = Types::Sort
1341
1385
 
1386
+ StartMergeCasesRequest.add_member(:domain_id, Shapes::ShapeRef.new(shape: DomainId, required: true, location: "uri", location_name: "domainId"))
1387
+ StartMergeCasesRequest.add_member(:case_id, Shapes::ShapeRef.new(shape: CaseId, required: true, location: "uri", location_name: "caseId"))
1388
+ StartMergeCasesRequest.add_member(:secondary_case_ids, Shapes::ShapeRef.new(shape: StartMergeCasesRequestSecondaryCaseIdsList, required: true, location_name: "secondaryCaseIds"))
1389
+ StartMergeCasesRequest.add_member(:fields_configuration, Shapes::ShapeRef.new(shape: FieldsConfigurationList, location_name: "fieldsConfiguration"))
1390
+ StartMergeCasesRequest.add_member(:related_items_configuration, Shapes::ShapeRef.new(shape: RelatedItemsConfiguration, location_name: "relatedItemsConfiguration"))
1391
+ StartMergeCasesRequest.add_member(:performed_by, Shapes::ShapeRef.new(shape: UserUnion, location_name: "performedBy"))
1392
+ StartMergeCasesRequest.struct_class = Types::StartMergeCasesRequest
1393
+
1394
+ StartMergeCasesRequestSecondaryCaseIdsList.member = Shapes::ShapeRef.new(shape: CaseId)
1395
+
1396
+ StartMergeCasesResponse.struct_class = Types::StartMergeCasesResponse
1397
+
1342
1398
  TagFilter.add_member(:equal_to, Shapes::ShapeRef.new(shape: TagValue, location_name: "equalTo"))
1343
1399
  TagFilter.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
1344
1400
  TagFilter.add_member_subclass(:equal_to, Types::TagFilter::EqualTo)
@@ -1644,6 +1700,7 @@ module Aws::ConnectCases
1644
1700
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1645
1701
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1646
1702
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1703
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1647
1704
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1648
1705
  end)
1649
1706
 
@@ -1673,6 +1730,7 @@ module Aws::ConnectCases
1673
1730
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1674
1731
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1675
1732
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1733
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1676
1734
  end)
1677
1735
 
1678
1736
  api.add_operation(:delete_case_rule, Seahorse::Model::Operation.new.tap do |o|
@@ -1742,6 +1800,7 @@ module Aws::ConnectCases
1742
1800
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1743
1801
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1744
1802
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1803
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1745
1804
  end)
1746
1805
 
1747
1806
  api.add_operation(:delete_template, Seahorse::Model::Operation.new.tap do |o|
@@ -1834,6 +1893,19 @@ module Aws::ConnectCases
1834
1893
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1835
1894
  end)
1836
1895
 
1896
+ api.add_operation(:get_merge_cases_status, Seahorse::Model::Operation.new.tap do |o|
1897
+ o.name = "GetMergeCasesStatus"
1898
+ o.http_method = "POST"
1899
+ o.http_request_uri = "/domains/{domainId}/cases/{caseId}/merge-status"
1900
+ o.input = Shapes::ShapeRef.new(shape: GetMergeCasesStatusRequest)
1901
+ o.output = Shapes::ShapeRef.new(shape: GetMergeCasesStatusResponse)
1902
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1903
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1904
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1905
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1906
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1907
+ end)
1908
+
1837
1909
  api.add_operation(:get_template, Seahorse::Model::Operation.new.tap do |o|
1838
1910
  o.name = "GetTemplate"
1839
1911
  o.http_method = "POST"
@@ -2063,6 +2135,21 @@ module Aws::ConnectCases
2063
2135
  )
2064
2136
  end)
2065
2137
 
2138
+ api.add_operation(:start_merge_cases, Seahorse::Model::Operation.new.tap do |o|
2139
+ o.name = "StartMergeCases"
2140
+ o.http_method = "POST"
2141
+ o.http_request_uri = "/domains/{domainId}/cases/{caseId}/merge"
2142
+ o.input = Shapes::ShapeRef.new(shape: StartMergeCasesRequest)
2143
+ o.output = Shapes::ShapeRef.new(shape: StartMergeCasesResponse)
2144
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2145
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2146
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2147
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2148
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2149
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2150
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2151
+ end)
2152
+
2066
2153
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
2067
2154
  o.name = "TagResource"
2068
2155
  o.http_method = "POST"
@@ -2100,6 +2187,7 @@ module Aws::ConnectCases
2100
2187
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2101
2188
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2102
2189
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2190
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2103
2191
  end)
2104
2192
 
2105
2193
  api.add_operation(:update_case_rule, Seahorse::Model::Operation.new.tap do |o|
@@ -2157,6 +2245,7 @@ module Aws::ConnectCases
2157
2245
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2158
2246
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2159
2247
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2248
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2160
2249
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2161
2250
  end)
2162
2251
 
@@ -34,7 +34,10 @@ module Aws::ConnectCases
34
34
  #
35
35
  # Valid Values: `Case.Created` \| `Case.Updated` \|
36
36
  # `RelatedItem.Created` \| `RelatedItem.Updated` \|
37
- # `RelatedItem.Deleted`
37
+ # `RelatedItem.Deleted` \| `Case.Merged`
38
+ #
39
+ # `Case.Merged` summarizes a merge on each of the two cases that took
40
+ # part in it.
38
41
  # @return [String]
39
42
  #
40
43
  # @!attribute [rw] related_item_type
@@ -53,6 +56,16 @@ module Aws::ConnectCases
53
56
  # Information of the user which performed the audit.
54
57
  # @return [Types::AuditEventPerformedBy]
55
58
  #
59
+ # @!attribute [rw] merge_metadata
60
+ # Information about the merge that produced this audit event. Present
61
+ # only on audit events produced by a merge. For more information, see
62
+ # [StartMergeCases][1].
63
+ #
64
+ #
65
+ #
66
+ # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_StartMergeCases.html
67
+ # @return [Types::AuditMergeMetadata]
68
+ #
56
69
  # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/AuditEvent AWS API Documentation
57
70
  #
58
71
  class AuditEvent < Struct.new(
@@ -61,7 +74,8 @@ module Aws::ConnectCases
61
74
  :related_item_type,
62
75
  :performed_time,
63
76
  :fields,
64
- :performed_by)
77
+ :performed_by,
78
+ :merge_metadata)
65
79
  SENSITIVE = []
66
80
  include Aws::Structure
67
81
  end
@@ -162,6 +176,32 @@ module Aws::ConnectCases
162
176
  include Aws::Structure
163
177
  end
164
178
 
179
+ # Information about the merge that produced an audit event.
180
+ #
181
+ # @!attribute [rw] merge_event_id
182
+ # The unique identifier of the merge. All audit events produced by the
183
+ # same merge, on both cases, have the same value. Use it to group the
184
+ # changes that a merge made.
185
+ # @return [String]
186
+ #
187
+ # @!attribute [rw] primary_case_id
188
+ # The unique identifier of the primary case of the merge.
189
+ # @return [String]
190
+ #
191
+ # @!attribute [rw] secondary_case_id
192
+ # The unique identifier of the secondary case of the merge.
193
+ # @return [String]
194
+ #
195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/AuditMergeMetadata AWS API Documentation
196
+ #
197
+ class AuditMergeMetadata < Struct.new(
198
+ :merge_event_id,
199
+ :primary_case_id,
200
+ :secondary_case_id)
201
+ SENSITIVE = []
202
+ include Aws::Structure
203
+ end
204
+
165
205
  # Content specific to `BasicLayout` type. It configures fields in the
166
206
  # top panel and More Info tab of agent application.
167
207
  #
@@ -2221,6 +2261,29 @@ module Aws::ConnectCases
2221
2261
  class Unknown < FieldValueUnion; end
2222
2262
  end
2223
2263
 
2264
+ # Specifies the fields whose values to take from the secondary case when
2265
+ # you merge cases.
2266
+ #
2267
+ # @!attribute [rw] field_ids
2268
+ # The fields whose values to take from the source case. Each field
2269
+ # must exist on the source case and must be a field that can be
2270
+ # merged. Don't list the same field more than once.
2271
+ # @return [Array<Types::FieldIdentifier>]
2272
+ #
2273
+ # @!attribute [rw] source_case_id
2274
+ # The unique identifier of the case to take the field values from.
2275
+ # This must be the secondary case.
2276
+ # @return [String]
2277
+ #
2278
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/FieldsConfiguration AWS API Documentation
2279
+ #
2280
+ class FieldsConfiguration < Struct.new(
2281
+ :field_ids,
2282
+ :source_case_id)
2283
+ SENSITIVE = []
2284
+ include Aws::Structure
2285
+ end
2286
+
2224
2287
  # An object that represents a content of an Connect Customer file
2225
2288
  # object.
2226
2289
  #
@@ -2625,6 +2688,46 @@ module Aws::ConnectCases
2625
2688
  include Aws::Structure
2626
2689
  end
2627
2690
 
2691
+ # @!attribute [rw] domain_id
2692
+ # The unique identifier of the Cases domain.
2693
+ # @return [String]
2694
+ #
2695
+ # @!attribute [rw] case_id
2696
+ # The unique identifier of the case. This can be the primary case or
2697
+ # the secondary case of a merge.
2698
+ # @return [String]
2699
+ #
2700
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetMergeCasesStatusRequest AWS API Documentation
2701
+ #
2702
+ class GetMergeCasesStatusRequest < Struct.new(
2703
+ :domain_id,
2704
+ :case_id)
2705
+ SENSITIVE = []
2706
+ include Aws::Structure
2707
+ end
2708
+
2709
+ # @!attribute [rw] status
2710
+ # The merge status of the case.
2711
+ # @return [String]
2712
+ #
2713
+ # @!attribute [rw] primary_case_id
2714
+ # The unique identifier of the primary case of the merge.
2715
+ # @return [String]
2716
+ #
2717
+ # @!attribute [rw] secondary_case_ids
2718
+ # The unique identifiers of the secondary cases of the merge.
2719
+ # @return [Array<String>]
2720
+ #
2721
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/GetMergeCasesStatusResponse AWS API Documentation
2722
+ #
2723
+ class GetMergeCasesStatusResponse < Struct.new(
2724
+ :status,
2725
+ :primary_case_id,
2726
+ :secondary_case_ids)
2727
+ SENSITIVE = []
2728
+ include Aws::Structure
2729
+ end
2730
+
2628
2731
  # @!attribute [rw] domain_id
2629
2732
  # The unique identifier of the Cases domain.
2630
2733
  # @return [String]
@@ -3496,6 +3599,42 @@ module Aws::ConnectCases
3496
3599
  class Unknown < RelatedItemUpdateContent; end
3497
3600
  end
3498
3601
 
3602
+ # Specifies which types of related items to move from the secondary case
3603
+ # to the primary case when you merge cases. Moved related items keep
3604
+ # their related item ID, creator, association time, and tags.
3605
+ #
3606
+ # @!attribute [rw] comment
3607
+ # Whether to move Comment related items to the primary case.
3608
+ # @return [Boolean]
3609
+ #
3610
+ # @!attribute [rw] connect_case
3611
+ # Whether to move Case related items to the primary case. If the
3612
+ # primary case already links to the same case, the secondary case's
3613
+ # link is removed instead of moved.
3614
+ # @return [Boolean]
3615
+ #
3616
+ # @!attribute [rw] contact
3617
+ # Whether to move Contact related items to the primary case. If the
3618
+ # same contact is related to both cases, the primary case keeps its
3619
+ # related item and gets any tag keys that only the secondary case's
3620
+ # related item has.
3621
+ # @return [Boolean]
3622
+ #
3623
+ # @!attribute [rw] custom
3624
+ # Whether to move Custom related items to the primary case.
3625
+ # @return [Boolean]
3626
+ #
3627
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/RelatedItemsConfiguration AWS API Documentation
3628
+ #
3629
+ class RelatedItemsConfiguration < Struct.new(
3630
+ :comment,
3631
+ :connect_case,
3632
+ :contact,
3633
+ :custom)
3634
+ SENSITIVE = []
3635
+ include Aws::Structure
3636
+ end
3637
+
3499
3638
  # Required rule type, used to indicate whether a field is required. In
3500
3639
  # the Connect Customer admin website, case rules are known as *case
3501
3640
  # field conditions*. For more information about case field conditions,
@@ -4082,6 +4221,88 @@ module Aws::ConnectCases
4082
4221
  include Aws::Structure
4083
4222
  end
4084
4223
 
4224
+ # @!attribute [rw] domain_id
4225
+ # The unique identifier of the Cases domain.
4226
+ # @return [String]
4227
+ #
4228
+ # @!attribute [rw] case_id
4229
+ # The unique identifier of the primary case. The primary case remains
4230
+ # active and receives the merged field values and related items. The
4231
+ # cases can use different templates, and the primary case keeps its
4232
+ # template.
4233
+ # @return [String]
4234
+ #
4235
+ # @!attribute [rw] secondary_case_ids
4236
+ # The unique identifier of the secondary case to merge into the
4237
+ # primary case. The secondary case is closed when the merge finishes.
4238
+ # Specify exactly one case ID.
4239
+ # @return [Array<String>]
4240
+ #
4241
+ # @!attribute [rw] fields_configuration
4242
+ # The fields whose values to take from the secondary case. You can
4243
+ # only merge custom fields and the following system fields:
4244
+ # `assigned_queue`, `assigned_user`, `summary`, and `case_reason`. If
4245
+ # you select any other system field, the request fails with a
4246
+ # `ValidationException`.
4247
+ #
4248
+ # For each field that can be merged, the merge works as follows:
4249
+ #
4250
+ # * If you select the field, the primary case gets the secondary
4251
+ # case's value. If the secondary case's value is empty, the
4252
+ # primary case's value is cleared.
4253
+ #
4254
+ # * If you don't select the field and the primary case has a value
4255
+ # for it, the primary case keeps its value.
4256
+ #
4257
+ # * If you don't select the field and the primary case doesn't have
4258
+ # the field, or its value is empty, the primary case gets the
4259
+ # secondary case's value. This applies even when the field isn't
4260
+ # on the primary case's template.
4261
+ #
4262
+ # Field values are read from both cases when the merge runs, so
4263
+ # changes that you make to the primary case after you start the merge
4264
+ # are taken into account.
4265
+ #
4266
+ # Specify at most one entry, and set its `sourceCaseId` to the
4267
+ # secondary case ID.
4268
+ # @return [Array<Types::FieldsConfiguration>]
4269
+ #
4270
+ # @!attribute [rw] related_items_configuration
4271
+ # The types of related items to move from the secondary case to the
4272
+ # primary case. Related items of a type that you don't select, or set
4273
+ # to `false`, stay on the closed secondary case. If you omit this
4274
+ # parameter, no related items are moved.
4275
+ #
4276
+ # File, SLA, and work plan related items are never moved. They stay on
4277
+ # the secondary case.
4278
+ # @return [Types::RelatedItemsConfiguration]
4279
+ #
4280
+ # @!attribute [rw] performed_by
4281
+ # The user who performed the merge. If you provide `userArn`, you must
4282
+ # also have [DescribeUser][1] permission on the ARN of that user.
4283
+ #
4284
+ #
4285
+ #
4286
+ # [1]: https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html
4287
+ # @return [Types::UserUnion]
4288
+ #
4289
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/StartMergeCasesRequest AWS API Documentation
4290
+ #
4291
+ class StartMergeCasesRequest < Struct.new(
4292
+ :domain_id,
4293
+ :case_id,
4294
+ :secondary_case_ids,
4295
+ :fields_configuration,
4296
+ :related_items_configuration,
4297
+ :performed_by)
4298
+ SENSITIVE = []
4299
+ include Aws::Structure
4300
+ end
4301
+
4302
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/StartMergeCasesResponse AWS API Documentation
4303
+ #
4304
+ class StartMergeCasesResponse < Aws::EmptyStructure; end
4305
+
4085
4306
  # A filter for tags. Only one value can be provided.
4086
4307
  #
4087
4308
  # @note TagFilter is a union - when making an API calls you must set exactly one of the members.
@@ -55,7 +55,7 @@ module Aws::ConnectCases
55
55
  autoload :EndpointProvider, 'aws-sdk-connectcases/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-connectcases/endpoints'
57
57
 
58
- GEM_VERSION = '1.82.0'
58
+ GEM_VERSION = '1.83.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -469,6 +469,19 @@ module Aws
469
469
  ) -> _GetLayoutResponseSuccess
470
470
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLayoutResponseSuccess
471
471
 
472
+ interface _GetMergeCasesStatusResponseSuccess
473
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetMergeCasesStatusResponse]
474
+ def status: () -> ("IN_PROGRESS" | "COMPLETED")
475
+ def primary_case_id: () -> ::String
476
+ def secondary_case_ids: () -> ::Array[::String]
477
+ end
478
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#get_merge_cases_status-instance_method
479
+ def get_merge_cases_status: (
480
+ domain_id: ::String,
481
+ case_id: ::String
482
+ ) -> _GetMergeCasesStatusResponseSuccess
483
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMergeCasesStatusResponseSuccess
484
+
472
485
  interface _GetTemplateResponseSuccess
473
486
  include ::Seahorse::Client::_ResponseSuccess[Types::GetTemplateResponse]
474
487
  def template_id: () -> ::String
@@ -686,6 +699,37 @@ module Aws
686
699
  ) -> _SearchRelatedItemsResponseSuccess
687
700
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SearchRelatedItemsResponseSuccess
688
701
 
702
+ interface _StartMergeCasesResponseSuccess
703
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartMergeCasesResponse]
704
+ end
705
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#start_merge_cases-instance_method
706
+ def start_merge_cases: (
707
+ domain_id: ::String,
708
+ case_id: ::String,
709
+ secondary_case_ids: Array[::String],
710
+ ?fields_configuration: Array[
711
+ {
712
+ field_ids: Array[
713
+ {
714
+ id: ::String
715
+ }
716
+ ],
717
+ source_case_id: ::String
718
+ }
719
+ ],
720
+ ?related_items_configuration: {
721
+ comment: bool?,
722
+ connect_case: bool?,
723
+ contact: bool?,
724
+ custom: bool?
725
+ },
726
+ ?performed_by: {
727
+ user_arn: ::String?,
728
+ custom_entity: ::String?
729
+ }
730
+ ) -> _StartMergeCasesResponseSuccess
731
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartMergeCasesResponseSuccess
732
+
689
733
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ConnectCases/Client.html#tag_resource-instance_method
690
734
  def tag_resource: (
691
735
  arn: ::String,
data/sig/types.rbs CHANGED
@@ -15,11 +15,12 @@ module Aws::ConnectCases
15
15
 
16
16
  class AuditEvent
17
17
  attr_accessor event_id: ::String
18
- attr_accessor type: ("Case.Created" | "Case.Updated" | "RelatedItem.Created" | "RelatedItem.Deleted" | "RelatedItem.Updated")
18
+ attr_accessor type: ("Case.Created" | "Case.Updated" | "RelatedItem.Created" | "RelatedItem.Deleted" | "RelatedItem.Updated" | "Case.Merged")
19
19
  attr_accessor related_item_type: ("Contact" | "Comment" | "File" | "Sla" | "ConnectCase" | "Custom")
20
20
  attr_accessor performed_time: ::Time
21
21
  attr_accessor fields: ::Array[Types::AuditEventField]
22
22
  attr_accessor performed_by: Types::AuditEventPerformedBy
23
+ attr_accessor merge_metadata: Types::AuditMergeMetadata
23
24
  SENSITIVE: []
24
25
  end
25
26
 
@@ -59,6 +60,13 @@ module Aws::ConnectCases
59
60
  SENSITIVE: []
60
61
  end
61
62
 
63
+ class AuditMergeMetadata
64
+ attr_accessor merge_event_id: ::String
65
+ attr_accessor primary_case_id: ::String
66
+ attr_accessor secondary_case_id: ::String
67
+ SENSITIVE: []
68
+ end
69
+
62
70
  class BasicLayout
63
71
  attr_accessor top_panel: Types::LayoutSections
64
72
  attr_accessor more_info: Types::LayoutSections
@@ -720,6 +728,12 @@ module Aws::ConnectCases
720
728
  end
721
729
  end
722
730
 
731
+ class FieldsConfiguration
732
+ attr_accessor field_ids: ::Array[Types::FieldIdentifier]
733
+ attr_accessor source_case_id: ::String
734
+ SENSITIVE: []
735
+ end
736
+
723
737
  class FileContent
724
738
  attr_accessor file_arn: ::String
725
739
  SENSITIVE: []
@@ -831,6 +845,19 @@ module Aws::ConnectCases
831
845
  SENSITIVE: []
832
846
  end
833
847
 
848
+ class GetMergeCasesStatusRequest
849
+ attr_accessor domain_id: ::String
850
+ attr_accessor case_id: ::String
851
+ SENSITIVE: []
852
+ end
853
+
854
+ class GetMergeCasesStatusResponse
855
+ attr_accessor status: ("IN_PROGRESS" | "COMPLETED")
856
+ attr_accessor primary_case_id: ::String
857
+ attr_accessor secondary_case_ids: ::Array[::String]
858
+ SENSITIVE: []
859
+ end
860
+
834
861
  class GetTemplateRequest
835
862
  attr_accessor domain_id: ::String
836
863
  attr_accessor template_id: ::String
@@ -1141,6 +1168,14 @@ module Aws::ConnectCases
1141
1168
  end
1142
1169
  end
1143
1170
 
1171
+ class RelatedItemsConfiguration
1172
+ attr_accessor comment: bool
1173
+ attr_accessor connect_case: bool
1174
+ attr_accessor contact: bool
1175
+ attr_accessor custom: bool
1176
+ SENSITIVE: []
1177
+ end
1178
+
1144
1179
  class RequiredCaseRule
1145
1180
  attr_accessor default_value: bool
1146
1181
  attr_accessor conditions: ::Array[Types::BooleanCondition]
@@ -1306,6 +1341,19 @@ module Aws::ConnectCases
1306
1341
  SENSITIVE: []
1307
1342
  end
1308
1343
 
1344
+ class StartMergeCasesRequest
1345
+ attr_accessor domain_id: ::String
1346
+ attr_accessor case_id: ::String
1347
+ attr_accessor secondary_case_ids: ::Array[::String]
1348
+ attr_accessor fields_configuration: ::Array[Types::FieldsConfiguration]
1349
+ attr_accessor related_items_configuration: Types::RelatedItemsConfiguration
1350
+ attr_accessor performed_by: Types::UserUnion
1351
+ SENSITIVE: []
1352
+ end
1353
+
1354
+ class StartMergeCasesResponse < Aws::EmptyStructure
1355
+ end
1356
+
1309
1357
  class TagFilter
1310
1358
  attr_accessor equal_to: Types::TagValue
1311
1359
  attr_accessor unknown: untyped
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-connectcases
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.82.0
4
+ version: 1.83.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.267.0
21
+ version: 3.268.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.267.0
31
+ version: 3.268.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement