@aws-sdk/client-connectcases 3.1005.0 → 3.1006.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/schemas/schemas_0.js +25 -19
- package/dist-es/schemas/schemas_0.js +20 -14
- package/dist-types/commands/BatchGetCaseRuleCommand.d.ts +40 -28
- package/dist-types/commands/CreateCaseRuleCommand.d.ts +40 -28
- package/dist-types/commands/UpdateCaseRuleCommand.d.ts +40 -28
- package/dist-types/models/models_0.d.ts +321 -280
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +127 -100
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1630,193 +1630,6 @@ export interface BooleanOperands {
|
|
|
1630
1630
|
*/
|
|
1631
1631
|
result: boolean | undefined;
|
|
1632
1632
|
}
|
|
1633
|
-
/**
|
|
1634
|
-
* <p>Boolean condition for a rule. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
|
|
1635
|
-
* @public
|
|
1636
|
-
*/
|
|
1637
|
-
export type BooleanCondition = BooleanCondition.EqualToMember | BooleanCondition.NotEqualToMember | BooleanCondition.$UnknownMember;
|
|
1638
|
-
/**
|
|
1639
|
-
* @public
|
|
1640
|
-
*/
|
|
1641
|
-
export declare namespace BooleanCondition {
|
|
1642
|
-
/**
|
|
1643
|
-
* <p>Tests that operandOne is equal to operandTwo.</p>
|
|
1644
|
-
* @public
|
|
1645
|
-
*/
|
|
1646
|
-
interface EqualToMember {
|
|
1647
|
-
equalTo: BooleanOperands;
|
|
1648
|
-
notEqualTo?: never;
|
|
1649
|
-
$unknown?: never;
|
|
1650
|
-
}
|
|
1651
|
-
/**
|
|
1652
|
-
* <p>Tests that operandOne is not equal to operandTwo.</p>
|
|
1653
|
-
* @public
|
|
1654
|
-
*/
|
|
1655
|
-
interface NotEqualToMember {
|
|
1656
|
-
equalTo?: never;
|
|
1657
|
-
notEqualTo: BooleanOperands;
|
|
1658
|
-
$unknown?: never;
|
|
1659
|
-
}
|
|
1660
|
-
/**
|
|
1661
|
-
* @public
|
|
1662
|
-
*/
|
|
1663
|
-
interface $UnknownMember {
|
|
1664
|
-
equalTo?: never;
|
|
1665
|
-
notEqualTo?: never;
|
|
1666
|
-
$unknown: [string, any];
|
|
1667
|
-
}
|
|
1668
|
-
/**
|
|
1669
|
-
* @deprecated unused in schema-serde mode.
|
|
1670
|
-
*
|
|
1671
|
-
*/
|
|
1672
|
-
interface Visitor<T> {
|
|
1673
|
-
equalTo: (value: BooleanOperands) => T;
|
|
1674
|
-
notEqualTo: (value: BooleanOperands) => T;
|
|
1675
|
-
_: (name: string, value: any) => T;
|
|
1676
|
-
}
|
|
1677
|
-
}
|
|
1678
|
-
/**
|
|
1679
|
-
* <p>A rule that controls field visibility based on conditions. Fields can be shown or hidden dynamically based on values in other fields.</p>
|
|
1680
|
-
* @public
|
|
1681
|
-
*/
|
|
1682
|
-
export interface HiddenCaseRule {
|
|
1683
|
-
/**
|
|
1684
|
-
* <p>Whether the field is hidden when no conditions match.</p>
|
|
1685
|
-
* @public
|
|
1686
|
-
*/
|
|
1687
|
-
defaultValue: boolean | undefined;
|
|
1688
|
-
/**
|
|
1689
|
-
* <p>A list of conditions that determine field visibility.</p>
|
|
1690
|
-
* @public
|
|
1691
|
-
*/
|
|
1692
|
-
conditions: BooleanCondition[] | undefined;
|
|
1693
|
-
}
|
|
1694
|
-
/**
|
|
1695
|
-
* <p>Required rule type, used to indicate whether a field is required. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
|
|
1696
|
-
* @public
|
|
1697
|
-
*/
|
|
1698
|
-
export interface RequiredCaseRule {
|
|
1699
|
-
/**
|
|
1700
|
-
* <p>The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.</p>
|
|
1701
|
-
* @public
|
|
1702
|
-
*/
|
|
1703
|
-
defaultValue: boolean | undefined;
|
|
1704
|
-
/**
|
|
1705
|
-
* <p>List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.</p>
|
|
1706
|
-
* @public
|
|
1707
|
-
*/
|
|
1708
|
-
conditions: BooleanCondition[] | undefined;
|
|
1709
|
-
}
|
|
1710
|
-
/**
|
|
1711
|
-
* <p>Represents what rule type should take place, under what conditions. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
|
|
1712
|
-
* @public
|
|
1713
|
-
*/
|
|
1714
|
-
export type CaseRuleDetails = CaseRuleDetails.FieldOptionsMember | CaseRuleDetails.HiddenMember | CaseRuleDetails.RequiredMember | CaseRuleDetails.$UnknownMember;
|
|
1715
|
-
/**
|
|
1716
|
-
* @public
|
|
1717
|
-
*/
|
|
1718
|
-
export declare namespace CaseRuleDetails {
|
|
1719
|
-
/**
|
|
1720
|
-
* <p>Required rule type, used to indicate whether a field is required.</p>
|
|
1721
|
-
* @public
|
|
1722
|
-
*/
|
|
1723
|
-
interface RequiredMember {
|
|
1724
|
-
required: RequiredCaseRule;
|
|
1725
|
-
fieldOptions?: never;
|
|
1726
|
-
hidden?: never;
|
|
1727
|
-
$unknown?: never;
|
|
1728
|
-
}
|
|
1729
|
-
/**
|
|
1730
|
-
* <p>Which options are available in a child field based on the selected value in a parent field.</p>
|
|
1731
|
-
* @public
|
|
1732
|
-
*/
|
|
1733
|
-
interface FieldOptionsMember {
|
|
1734
|
-
required?: never;
|
|
1735
|
-
fieldOptions: FieldOptionsCaseRule;
|
|
1736
|
-
hidden?: never;
|
|
1737
|
-
$unknown?: never;
|
|
1738
|
-
}
|
|
1739
|
-
/**
|
|
1740
|
-
* <p>Whether a field is visible, based on values in other fields.</p>
|
|
1741
|
-
* @public
|
|
1742
|
-
*/
|
|
1743
|
-
interface HiddenMember {
|
|
1744
|
-
required?: never;
|
|
1745
|
-
fieldOptions?: never;
|
|
1746
|
-
hidden: HiddenCaseRule;
|
|
1747
|
-
$unknown?: never;
|
|
1748
|
-
}
|
|
1749
|
-
/**
|
|
1750
|
-
* @public
|
|
1751
|
-
*/
|
|
1752
|
-
interface $UnknownMember {
|
|
1753
|
-
required?: never;
|
|
1754
|
-
fieldOptions?: never;
|
|
1755
|
-
hidden?: never;
|
|
1756
|
-
$unknown: [string, any];
|
|
1757
|
-
}
|
|
1758
|
-
/**
|
|
1759
|
-
* @deprecated unused in schema-serde mode.
|
|
1760
|
-
*
|
|
1761
|
-
*/
|
|
1762
|
-
interface Visitor<T> {
|
|
1763
|
-
required: (value: RequiredCaseRule) => T;
|
|
1764
|
-
fieldOptions: (value: FieldOptionsCaseRule) => T;
|
|
1765
|
-
hidden: (value: HiddenCaseRule) => T;
|
|
1766
|
-
_: (name: string, value: any) => T;
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
/**
|
|
1770
|
-
* <p>Detailed case rule information. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
|
|
1771
|
-
* @public
|
|
1772
|
-
*/
|
|
1773
|
-
export interface GetCaseRuleResponse {
|
|
1774
|
-
/**
|
|
1775
|
-
* <p>Unique identifier of a case rule.</p>
|
|
1776
|
-
* @public
|
|
1777
|
-
*/
|
|
1778
|
-
caseRuleId: string | undefined;
|
|
1779
|
-
/**
|
|
1780
|
-
* <p>Name of the case rule.</p>
|
|
1781
|
-
* @public
|
|
1782
|
-
*/
|
|
1783
|
-
name: string | undefined;
|
|
1784
|
-
/**
|
|
1785
|
-
* <p>The Amazon Resource Name (ARN) of the case rule.</p>
|
|
1786
|
-
* @public
|
|
1787
|
-
*/
|
|
1788
|
-
caseRuleArn: string | undefined;
|
|
1789
|
-
/**
|
|
1790
|
-
* <p>Represents what rule type should take place, under what conditions.</p>
|
|
1791
|
-
* @public
|
|
1792
|
-
*/
|
|
1793
|
-
rule: CaseRuleDetails | undefined;
|
|
1794
|
-
/**
|
|
1795
|
-
* <p>Description of a case rule.</p>
|
|
1796
|
-
* @public
|
|
1797
|
-
*/
|
|
1798
|
-
description?: string | undefined;
|
|
1799
|
-
/**
|
|
1800
|
-
* <p>Indicates whether the resource has been deleted.</p>
|
|
1801
|
-
* @public
|
|
1802
|
-
*/
|
|
1803
|
-
deleted?: boolean | undefined;
|
|
1804
|
-
/**
|
|
1805
|
-
* <p>Timestamp when the resource was created.</p>
|
|
1806
|
-
* @public
|
|
1807
|
-
*/
|
|
1808
|
-
createdTime?: Date | undefined;
|
|
1809
|
-
/**
|
|
1810
|
-
* <p>Timestamp when the resource was created or last modified.</p>
|
|
1811
|
-
* @public
|
|
1812
|
-
*/
|
|
1813
|
-
lastModifiedTime?: Date | undefined;
|
|
1814
|
-
/**
|
|
1815
|
-
* <p>A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.</p>
|
|
1816
|
-
* @public
|
|
1817
|
-
*/
|
|
1818
|
-
tags?: Record<string, string> | undefined;
|
|
1819
|
-
}
|
|
1820
1633
|
/**
|
|
1821
1634
|
* <p>Error for batch describe case rules API failure. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
|
|
1822
1635
|
* @public
|
|
@@ -1838,51 +1651,6 @@ export interface CaseRuleError {
|
|
|
1838
1651
|
*/
|
|
1839
1652
|
message?: string | undefined;
|
|
1840
1653
|
}
|
|
1841
|
-
/**
|
|
1842
|
-
* @public
|
|
1843
|
-
*/
|
|
1844
|
-
export interface BatchGetCaseRuleResponse {
|
|
1845
|
-
/**
|
|
1846
|
-
* <p>A list of detailed case rule information.</p>
|
|
1847
|
-
* @public
|
|
1848
|
-
*/
|
|
1849
|
-
caseRules: GetCaseRuleResponse[] | undefined;
|
|
1850
|
-
/**
|
|
1851
|
-
* <p>A list of case rule errors.</p>
|
|
1852
|
-
* @public
|
|
1853
|
-
*/
|
|
1854
|
-
errors: CaseRuleError[] | undefined;
|
|
1855
|
-
/**
|
|
1856
|
-
* <p>A list of unprocessed case rule identifiers.</p>
|
|
1857
|
-
* @public
|
|
1858
|
-
*/
|
|
1859
|
-
unprocessedCaseRules?: string[] | undefined;
|
|
1860
|
-
}
|
|
1861
|
-
/**
|
|
1862
|
-
* @public
|
|
1863
|
-
*/
|
|
1864
|
-
export interface CreateCaseRuleRequest {
|
|
1865
|
-
/**
|
|
1866
|
-
* <p>Unique identifier of a Cases domain.</p>
|
|
1867
|
-
* @public
|
|
1868
|
-
*/
|
|
1869
|
-
domainId: string | undefined;
|
|
1870
|
-
/**
|
|
1871
|
-
* <p>Name of the case rule.</p>
|
|
1872
|
-
* @public
|
|
1873
|
-
*/
|
|
1874
|
-
name: string | undefined;
|
|
1875
|
-
/**
|
|
1876
|
-
* <p>The description of a case rule.</p>
|
|
1877
|
-
* @public
|
|
1878
|
-
*/
|
|
1879
|
-
description?: string | undefined;
|
|
1880
|
-
/**
|
|
1881
|
-
* <p>Represents what rule type should take place, under what conditions.</p>
|
|
1882
|
-
* @public
|
|
1883
|
-
*/
|
|
1884
|
-
rule: CaseRuleDetails | undefined;
|
|
1885
|
-
}
|
|
1886
1654
|
/**
|
|
1887
1655
|
* @public
|
|
1888
1656
|
*/
|
|
@@ -1984,36 +1752,6 @@ export interface ListCaseRulesResponse {
|
|
|
1984
1752
|
*/
|
|
1985
1753
|
nextToken?: string | undefined;
|
|
1986
1754
|
}
|
|
1987
|
-
/**
|
|
1988
|
-
* @public
|
|
1989
|
-
*/
|
|
1990
|
-
export interface UpdateCaseRuleRequest {
|
|
1991
|
-
/**
|
|
1992
|
-
* <p>Unique identifier of a Cases domain.</p>
|
|
1993
|
-
* @public
|
|
1994
|
-
*/
|
|
1995
|
-
domainId: string | undefined;
|
|
1996
|
-
/**
|
|
1997
|
-
* <p>Unique identifier of a case rule.</p>
|
|
1998
|
-
* @public
|
|
1999
|
-
*/
|
|
2000
|
-
caseRuleId: string | undefined;
|
|
2001
|
-
/**
|
|
2002
|
-
* <p>Name of the case rule.</p>
|
|
2003
|
-
* @public
|
|
2004
|
-
*/
|
|
2005
|
-
name?: string | undefined;
|
|
2006
|
-
/**
|
|
2007
|
-
* <p>Description of a case rule.</p>
|
|
2008
|
-
* @public
|
|
2009
|
-
*/
|
|
2010
|
-
description?: string | undefined;
|
|
2011
|
-
/**
|
|
2012
|
-
* <p>Represents what rule type should take place, under what conditions.</p>
|
|
2013
|
-
* @public
|
|
2014
|
-
*/
|
|
2015
|
-
rule?: CaseRuleDetails | undefined;
|
|
2016
|
-
}
|
|
2017
1755
|
/**
|
|
2018
1756
|
* @public
|
|
2019
1757
|
*/
|
|
@@ -3600,44 +3338,119 @@ export declare namespace CustomFieldsFilter {
|
|
|
3600
3338
|
$unknown?: never;
|
|
3601
3339
|
}
|
|
3602
3340
|
/**
|
|
3603
|
-
* <p>Excludes items matching the filter.</p>
|
|
3341
|
+
* <p>Excludes items matching the filter.</p>
|
|
3342
|
+
* @public
|
|
3343
|
+
*/
|
|
3344
|
+
interface NotMember {
|
|
3345
|
+
field?: never;
|
|
3346
|
+
not: CustomFieldsFilter;
|
|
3347
|
+
andAll?: never;
|
|
3348
|
+
orAll?: never;
|
|
3349
|
+
$unknown?: never;
|
|
3350
|
+
}
|
|
3351
|
+
/**
|
|
3352
|
+
* <p>Provides "and all" filtering.</p>
|
|
3353
|
+
* @public
|
|
3354
|
+
*/
|
|
3355
|
+
interface AndAllMember {
|
|
3356
|
+
field?: never;
|
|
3357
|
+
not?: never;
|
|
3358
|
+
andAll: CustomFieldsFilter[];
|
|
3359
|
+
orAll?: never;
|
|
3360
|
+
$unknown?: never;
|
|
3361
|
+
}
|
|
3362
|
+
/**
|
|
3363
|
+
* <p>Provides "or all" filtering.</p>
|
|
3364
|
+
* @public
|
|
3365
|
+
*/
|
|
3366
|
+
interface OrAllMember {
|
|
3367
|
+
field?: never;
|
|
3368
|
+
not?: never;
|
|
3369
|
+
andAll?: never;
|
|
3370
|
+
orAll: CustomFieldsFilter[];
|
|
3371
|
+
$unknown?: never;
|
|
3372
|
+
}
|
|
3373
|
+
/**
|
|
3374
|
+
* @public
|
|
3375
|
+
*/
|
|
3376
|
+
interface $UnknownMember {
|
|
3377
|
+
field?: never;
|
|
3378
|
+
not?: never;
|
|
3379
|
+
andAll?: never;
|
|
3380
|
+
orAll?: never;
|
|
3381
|
+
$unknown: [string, any];
|
|
3382
|
+
}
|
|
3383
|
+
/**
|
|
3384
|
+
* @deprecated unused in schema-serde mode.
|
|
3385
|
+
*
|
|
3386
|
+
*/
|
|
3387
|
+
interface Visitor<T> {
|
|
3388
|
+
field: (value: FieldFilter) => T;
|
|
3389
|
+
not: (value: CustomFieldsFilter) => T;
|
|
3390
|
+
andAll: (value: CustomFieldsFilter[]) => T;
|
|
3391
|
+
orAll: (value: CustomFieldsFilter[]) => T;
|
|
3392
|
+
_: (name: string, value: any) => T;
|
|
3393
|
+
}
|
|
3394
|
+
}
|
|
3395
|
+
/**
|
|
3396
|
+
* <p>Boolean condition for a rule. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
|
|
3397
|
+
* @public
|
|
3398
|
+
*/
|
|
3399
|
+
export type BooleanCondition = BooleanCondition.AndAllMember | BooleanCondition.EqualToMember | BooleanCondition.NotEqualToMember | BooleanCondition.OrAllMember | BooleanCondition.$UnknownMember;
|
|
3400
|
+
/**
|
|
3401
|
+
* @public
|
|
3402
|
+
*/
|
|
3403
|
+
export declare namespace BooleanCondition {
|
|
3404
|
+
/**
|
|
3405
|
+
* <p>Tests that operandOne is equal to operandTwo.</p>
|
|
3406
|
+
* @public
|
|
3407
|
+
*/
|
|
3408
|
+
interface EqualToMember {
|
|
3409
|
+
equalTo: BooleanOperands;
|
|
3410
|
+
notEqualTo?: never;
|
|
3411
|
+
andAll?: never;
|
|
3412
|
+
orAll?: never;
|
|
3413
|
+
$unknown?: never;
|
|
3414
|
+
}
|
|
3415
|
+
/**
|
|
3416
|
+
* <p>Tests that operandOne is not equal to operandTwo.</p>
|
|
3604
3417
|
* @public
|
|
3605
3418
|
*/
|
|
3606
|
-
interface
|
|
3607
|
-
|
|
3608
|
-
|
|
3419
|
+
interface NotEqualToMember {
|
|
3420
|
+
equalTo?: never;
|
|
3421
|
+
notEqualTo: BooleanOperands;
|
|
3609
3422
|
andAll?: never;
|
|
3610
3423
|
orAll?: never;
|
|
3611
3424
|
$unknown?: never;
|
|
3612
3425
|
}
|
|
3613
3426
|
/**
|
|
3614
|
-
* <p>
|
|
3427
|
+
* <p>Combines multiple conditions with AND operator. All conditions must be true for the compound condition to be true.</p>
|
|
3615
3428
|
* @public
|
|
3616
3429
|
*/
|
|
3617
3430
|
interface AndAllMember {
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
andAll:
|
|
3431
|
+
equalTo?: never;
|
|
3432
|
+
notEqualTo?: never;
|
|
3433
|
+
andAll: CompoundCondition;
|
|
3621
3434
|
orAll?: never;
|
|
3622
3435
|
$unknown?: never;
|
|
3623
3436
|
}
|
|
3624
3437
|
/**
|
|
3625
|
-
* <p>
|
|
3438
|
+
* <p>Combines multiple conditions with OR operator. At least one condition must be true for the compound condition to be true.</p>
|
|
3626
3439
|
* @public
|
|
3627
3440
|
*/
|
|
3628
3441
|
interface OrAllMember {
|
|
3629
|
-
|
|
3630
|
-
|
|
3442
|
+
equalTo?: never;
|
|
3443
|
+
notEqualTo?: never;
|
|
3631
3444
|
andAll?: never;
|
|
3632
|
-
orAll:
|
|
3445
|
+
orAll: CompoundCondition;
|
|
3633
3446
|
$unknown?: never;
|
|
3634
3447
|
}
|
|
3635
3448
|
/**
|
|
3636
3449
|
* @public
|
|
3637
3450
|
*/
|
|
3638
3451
|
interface $UnknownMember {
|
|
3639
|
-
|
|
3640
|
-
|
|
3452
|
+
equalTo?: never;
|
|
3453
|
+
notEqualTo?: never;
|
|
3641
3454
|
andAll?: never;
|
|
3642
3455
|
orAll?: never;
|
|
3643
3456
|
$unknown: [string, any];
|
|
@@ -3647,13 +3460,24 @@ export declare namespace CustomFieldsFilter {
|
|
|
3647
3460
|
*
|
|
3648
3461
|
*/
|
|
3649
3462
|
interface Visitor<T> {
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
andAll: (value:
|
|
3653
|
-
orAll: (value:
|
|
3463
|
+
equalTo: (value: BooleanOperands) => T;
|
|
3464
|
+
notEqualTo: (value: BooleanOperands) => T;
|
|
3465
|
+
andAll: (value: CompoundCondition) => T;
|
|
3466
|
+
orAll: (value: CompoundCondition) => T;
|
|
3654
3467
|
_: (name: string, value: any) => T;
|
|
3655
3468
|
}
|
|
3656
3469
|
}
|
|
3470
|
+
/**
|
|
3471
|
+
* <p>A compound condition that combines multiple boolean conditions using logical operators. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
|
|
3472
|
+
* @public
|
|
3473
|
+
*/
|
|
3474
|
+
export interface CompoundCondition {
|
|
3475
|
+
/**
|
|
3476
|
+
* <p>The list of conditions to combine using the logical operator.</p>
|
|
3477
|
+
* @public
|
|
3478
|
+
*/
|
|
3479
|
+
conditions: BooleanCondition[] | undefined;
|
|
3480
|
+
}
|
|
3657
3481
|
/**
|
|
3658
3482
|
* <p>A filter for related items of type <code>Custom</code>.</p>
|
|
3659
3483
|
* @public
|
|
@@ -3665,6 +3489,38 @@ export interface CustomFilter {
|
|
|
3665
3489
|
*/
|
|
3666
3490
|
fields?: CustomFieldsFilter | undefined;
|
|
3667
3491
|
}
|
|
3492
|
+
/**
|
|
3493
|
+
* <p>A rule that controls field visibility based on conditions. Fields can be shown or hidden dynamically based on values in other fields.</p>
|
|
3494
|
+
* @public
|
|
3495
|
+
*/
|
|
3496
|
+
export interface HiddenCaseRule {
|
|
3497
|
+
/**
|
|
3498
|
+
* <p>Whether the field is hidden when no conditions match.</p>
|
|
3499
|
+
* @public
|
|
3500
|
+
*/
|
|
3501
|
+
defaultValue: boolean | undefined;
|
|
3502
|
+
/**
|
|
3503
|
+
* <p>A list of conditions that determine field visibility.</p>
|
|
3504
|
+
* @public
|
|
3505
|
+
*/
|
|
3506
|
+
conditions: BooleanCondition[] | undefined;
|
|
3507
|
+
}
|
|
3508
|
+
/**
|
|
3509
|
+
* <p>Required rule type, used to indicate whether a field is required. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
|
|
3510
|
+
* @public
|
|
3511
|
+
*/
|
|
3512
|
+
export interface RequiredCaseRule {
|
|
3513
|
+
/**
|
|
3514
|
+
* <p>The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.</p>
|
|
3515
|
+
* @public
|
|
3516
|
+
*/
|
|
3517
|
+
defaultValue: boolean | undefined;
|
|
3518
|
+
/**
|
|
3519
|
+
* <p>List of conditions for the required rule; the first condition to evaluate to true dictates the value of the rule.</p>
|
|
3520
|
+
* @public
|
|
3521
|
+
*/
|
|
3522
|
+
conditions: BooleanCondition[] | undefined;
|
|
3523
|
+
}
|
|
3668
3524
|
/**
|
|
3669
3525
|
* @public
|
|
3670
3526
|
*/
|
|
@@ -3878,3 +3734,188 @@ export interface SearchRelatedItemsRequest {
|
|
|
3878
3734
|
*/
|
|
3879
3735
|
filters?: RelatedItemTypeFilter[] | undefined;
|
|
3880
3736
|
}
|
|
3737
|
+
/**
|
|
3738
|
+
* <p>Represents what rule type should take place, under what conditions. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
|
|
3739
|
+
* @public
|
|
3740
|
+
*/
|
|
3741
|
+
export type CaseRuleDetails = CaseRuleDetails.FieldOptionsMember | CaseRuleDetails.HiddenMember | CaseRuleDetails.RequiredMember | CaseRuleDetails.$UnknownMember;
|
|
3742
|
+
/**
|
|
3743
|
+
* @public
|
|
3744
|
+
*/
|
|
3745
|
+
export declare namespace CaseRuleDetails {
|
|
3746
|
+
/**
|
|
3747
|
+
* <p>Required rule type, used to indicate whether a field is required.</p>
|
|
3748
|
+
* @public
|
|
3749
|
+
*/
|
|
3750
|
+
interface RequiredMember {
|
|
3751
|
+
required: RequiredCaseRule;
|
|
3752
|
+
fieldOptions?: never;
|
|
3753
|
+
hidden?: never;
|
|
3754
|
+
$unknown?: never;
|
|
3755
|
+
}
|
|
3756
|
+
/**
|
|
3757
|
+
* <p>Which options are available in a child field based on the selected value in a parent field.</p>
|
|
3758
|
+
* @public
|
|
3759
|
+
*/
|
|
3760
|
+
interface FieldOptionsMember {
|
|
3761
|
+
required?: never;
|
|
3762
|
+
fieldOptions: FieldOptionsCaseRule;
|
|
3763
|
+
hidden?: never;
|
|
3764
|
+
$unknown?: never;
|
|
3765
|
+
}
|
|
3766
|
+
/**
|
|
3767
|
+
* <p>Whether a field is visible, based on values in other fields.</p>
|
|
3768
|
+
* @public
|
|
3769
|
+
*/
|
|
3770
|
+
interface HiddenMember {
|
|
3771
|
+
required?: never;
|
|
3772
|
+
fieldOptions?: never;
|
|
3773
|
+
hidden: HiddenCaseRule;
|
|
3774
|
+
$unknown?: never;
|
|
3775
|
+
}
|
|
3776
|
+
/**
|
|
3777
|
+
* @public
|
|
3778
|
+
*/
|
|
3779
|
+
interface $UnknownMember {
|
|
3780
|
+
required?: never;
|
|
3781
|
+
fieldOptions?: never;
|
|
3782
|
+
hidden?: never;
|
|
3783
|
+
$unknown: [string, any];
|
|
3784
|
+
}
|
|
3785
|
+
/**
|
|
3786
|
+
* @deprecated unused in schema-serde mode.
|
|
3787
|
+
*
|
|
3788
|
+
*/
|
|
3789
|
+
interface Visitor<T> {
|
|
3790
|
+
required: (value: RequiredCaseRule) => T;
|
|
3791
|
+
fieldOptions: (value: FieldOptionsCaseRule) => T;
|
|
3792
|
+
hidden: (value: HiddenCaseRule) => T;
|
|
3793
|
+
_: (name: string, value: any) => T;
|
|
3794
|
+
}
|
|
3795
|
+
}
|
|
3796
|
+
/**
|
|
3797
|
+
* @public
|
|
3798
|
+
*/
|
|
3799
|
+
export interface CreateCaseRuleRequest {
|
|
3800
|
+
/**
|
|
3801
|
+
* <p>Unique identifier of a Cases domain.</p>
|
|
3802
|
+
* @public
|
|
3803
|
+
*/
|
|
3804
|
+
domainId: string | undefined;
|
|
3805
|
+
/**
|
|
3806
|
+
* <p>Name of the case rule.</p>
|
|
3807
|
+
* @public
|
|
3808
|
+
*/
|
|
3809
|
+
name: string | undefined;
|
|
3810
|
+
/**
|
|
3811
|
+
* <p>The description of a case rule.</p>
|
|
3812
|
+
* @public
|
|
3813
|
+
*/
|
|
3814
|
+
description?: string | undefined;
|
|
3815
|
+
/**
|
|
3816
|
+
* <p>Represents what rule type should take place, under what conditions.</p>
|
|
3817
|
+
* @public
|
|
3818
|
+
*/
|
|
3819
|
+
rule: CaseRuleDetails | undefined;
|
|
3820
|
+
}
|
|
3821
|
+
/**
|
|
3822
|
+
* <p>Detailed case rule information. In the Amazon Connect admin website, case rules are known as <i>case field conditions</i>. For more information about case field conditions, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-field-conditions.html">Add case field conditions to a case template</a>.</p>
|
|
3823
|
+
* @public
|
|
3824
|
+
*/
|
|
3825
|
+
export interface GetCaseRuleResponse {
|
|
3826
|
+
/**
|
|
3827
|
+
* <p>Unique identifier of a case rule.</p>
|
|
3828
|
+
* @public
|
|
3829
|
+
*/
|
|
3830
|
+
caseRuleId: string | undefined;
|
|
3831
|
+
/**
|
|
3832
|
+
* <p>Name of the case rule.</p>
|
|
3833
|
+
* @public
|
|
3834
|
+
*/
|
|
3835
|
+
name: string | undefined;
|
|
3836
|
+
/**
|
|
3837
|
+
* <p>The Amazon Resource Name (ARN) of the case rule.</p>
|
|
3838
|
+
* @public
|
|
3839
|
+
*/
|
|
3840
|
+
caseRuleArn: string | undefined;
|
|
3841
|
+
/**
|
|
3842
|
+
* <p>Represents what rule type should take place, under what conditions.</p>
|
|
3843
|
+
* @public
|
|
3844
|
+
*/
|
|
3845
|
+
rule: CaseRuleDetails | undefined;
|
|
3846
|
+
/**
|
|
3847
|
+
* <p>Description of a case rule.</p>
|
|
3848
|
+
* @public
|
|
3849
|
+
*/
|
|
3850
|
+
description?: string | undefined;
|
|
3851
|
+
/**
|
|
3852
|
+
* <p>Indicates whether the resource has been deleted.</p>
|
|
3853
|
+
* @public
|
|
3854
|
+
*/
|
|
3855
|
+
deleted?: boolean | undefined;
|
|
3856
|
+
/**
|
|
3857
|
+
* <p>Timestamp when the resource was created.</p>
|
|
3858
|
+
* @public
|
|
3859
|
+
*/
|
|
3860
|
+
createdTime?: Date | undefined;
|
|
3861
|
+
/**
|
|
3862
|
+
* <p>Timestamp when the resource was created or last modified.</p>
|
|
3863
|
+
* @public
|
|
3864
|
+
*/
|
|
3865
|
+
lastModifiedTime?: Date | undefined;
|
|
3866
|
+
/**
|
|
3867
|
+
* <p>A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.</p>
|
|
3868
|
+
* @public
|
|
3869
|
+
*/
|
|
3870
|
+
tags?: Record<string, string> | undefined;
|
|
3871
|
+
}
|
|
3872
|
+
/**
|
|
3873
|
+
* @public
|
|
3874
|
+
*/
|
|
3875
|
+
export interface UpdateCaseRuleRequest {
|
|
3876
|
+
/**
|
|
3877
|
+
* <p>Unique identifier of a Cases domain.</p>
|
|
3878
|
+
* @public
|
|
3879
|
+
*/
|
|
3880
|
+
domainId: string | undefined;
|
|
3881
|
+
/**
|
|
3882
|
+
* <p>Unique identifier of a case rule.</p>
|
|
3883
|
+
* @public
|
|
3884
|
+
*/
|
|
3885
|
+
caseRuleId: string | undefined;
|
|
3886
|
+
/**
|
|
3887
|
+
* <p>Name of the case rule.</p>
|
|
3888
|
+
* @public
|
|
3889
|
+
*/
|
|
3890
|
+
name?: string | undefined;
|
|
3891
|
+
/**
|
|
3892
|
+
* <p>Description of a case rule.</p>
|
|
3893
|
+
* @public
|
|
3894
|
+
*/
|
|
3895
|
+
description?: string | undefined;
|
|
3896
|
+
/**
|
|
3897
|
+
* <p>Represents what rule type should take place, under what conditions.</p>
|
|
3898
|
+
* @public
|
|
3899
|
+
*/
|
|
3900
|
+
rule?: CaseRuleDetails | undefined;
|
|
3901
|
+
}
|
|
3902
|
+
/**
|
|
3903
|
+
* @public
|
|
3904
|
+
*/
|
|
3905
|
+
export interface BatchGetCaseRuleResponse {
|
|
3906
|
+
/**
|
|
3907
|
+
* <p>A list of detailed case rule information.</p>
|
|
3908
|
+
* @public
|
|
3909
|
+
*/
|
|
3910
|
+
caseRules: GetCaseRuleResponse[] | undefined;
|
|
3911
|
+
/**
|
|
3912
|
+
* <p>A list of case rule errors.</p>
|
|
3913
|
+
* @public
|
|
3914
|
+
*/
|
|
3915
|
+
errors: CaseRuleError[] | undefined;
|
|
3916
|
+
/**
|
|
3917
|
+
* <p>A list of unprocessed case rule identifiers.</p>
|
|
3918
|
+
* @public
|
|
3919
|
+
*/
|
|
3920
|
+
unprocessedCaseRules?: string[] | undefined;
|
|
3921
|
+
}
|
|
@@ -32,6 +32,7 @@ export declare var CaseRuleSummary$: StaticStructureSchema;
|
|
|
32
32
|
export declare var CaseSummary$: StaticStructureSchema;
|
|
33
33
|
export declare var CommentContent$: StaticStructureSchema;
|
|
34
34
|
export declare var CommentFilter$: StaticStructureSchema;
|
|
35
|
+
export declare var CompoundCondition$: StaticStructureSchema;
|
|
35
36
|
export declare var ConnectCaseContent$: StaticStructureSchema;
|
|
36
37
|
export declare var ConnectCaseFilter$: StaticStructureSchema;
|
|
37
38
|
export declare var ConnectCaseInputContent$: StaticStructureSchema;
|