@aws-sdk/client-connectcases 3.738.0 → 3.743.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.
Files changed (49) hide show
  1. package/README.md +54 -0
  2. package/dist-cjs/index.js +410 -1
  3. package/dist-es/ConnectCases.js +10 -0
  4. package/dist-es/commands/BatchGetCaseRuleCommand.js +22 -0
  5. package/dist-es/commands/CreateCaseRuleCommand.js +22 -0
  6. package/dist-es/commands/DeleteCaseRuleCommand.js +22 -0
  7. package/dist-es/commands/ListCaseRulesCommand.js +22 -0
  8. package/dist-es/commands/UpdateCaseRuleCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +43 -0
  11. package/dist-es/pagination/ListCaseRulesPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/protocols/Aws_restJson1.js +261 -1
  14. package/dist-types/ConnectCases.d.ts +50 -1
  15. package/dist-types/ConnectCasesClient.d.ts +22 -3
  16. package/dist-types/commands/BatchGetCaseRuleCommand.d.ts +148 -0
  17. package/dist-types/commands/CreateCaseCommand.d.ts +0 -1
  18. package/dist-types/commands/CreateCaseRuleCommand.d.ts +135 -0
  19. package/dist-types/commands/CreateRelatedItemCommand.d.ts +3 -1
  20. package/dist-types/commands/CreateTemplateCommand.d.ts +29 -0
  21. package/dist-types/commands/DeleteCaseRuleCommand.d.ts +91 -0
  22. package/dist-types/commands/DeleteDomainCommand.d.ts +0 -1
  23. package/dist-types/commands/DeleteFieldCommand.d.ts +18 -15
  24. package/dist-types/commands/DeleteLayoutCommand.d.ts +3 -2
  25. package/dist-types/commands/GetTemplateCommand.d.ts +29 -1
  26. package/dist-types/commands/ListCaseRulesCommand.d.ts +101 -0
  27. package/dist-types/commands/ListTemplatesCommand.d.ts +23 -0
  28. package/dist-types/commands/UpdateCaseCommand.d.ts +0 -1
  29. package/dist-types/commands/UpdateCaseRuleCommand.d.ts +129 -0
  30. package/dist-types/commands/UpdateTemplateCommand.d.ts +29 -0
  31. package/dist-types/commands/index.d.ts +5 -0
  32. package/dist-types/index.d.ts +15 -1
  33. package/dist-types/models/models_0.d.ts +573 -1
  34. package/dist-types/pagination/ListCaseRulesPaginator.d.ts +7 -0
  35. package/dist-types/pagination/index.d.ts +1 -0
  36. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  37. package/dist-types/ts3.4/ConnectCases.d.ts +85 -0
  38. package/dist-types/ts3.4/ConnectCasesClient.d.ts +30 -0
  39. package/dist-types/ts3.4/commands/BatchGetCaseRuleCommand.d.ts +50 -0
  40. package/dist-types/ts3.4/commands/CreateCaseRuleCommand.d.ts +50 -0
  41. package/dist-types/ts3.4/commands/DeleteCaseRuleCommand.d.ts +50 -0
  42. package/dist-types/ts3.4/commands/ListCaseRulesCommand.d.ts +50 -0
  43. package/dist-types/ts3.4/commands/UpdateCaseRuleCommand.d.ts +50 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +199 -0
  46. package/dist-types/ts3.4/pagination/ListCaseRulesPaginator.d.ts +11 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  48. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  49. package/package.json +5 -5
@@ -567,6 +567,198 @@ export interface UpdateCaseRequest {
567
567
  performedBy?: UserUnion | undefined;
568
568
  }
569
569
  export interface UpdateCaseResponse {}
570
+ export interface CaseRuleIdentifier {
571
+ id: string | undefined;
572
+ }
573
+ export interface BatchGetCaseRuleRequest {
574
+ domainId: string | undefined;
575
+ caseRules: CaseRuleIdentifier[] | undefined;
576
+ }
577
+ export type OperandOne = OperandOne.FieldIdMember | OperandOne.$UnknownMember;
578
+ export declare namespace OperandOne {
579
+ interface FieldIdMember {
580
+ fieldId: string;
581
+ $unknown?: never;
582
+ }
583
+ interface $UnknownMember {
584
+ fieldId?: never;
585
+ $unknown: [string, any];
586
+ }
587
+ interface Visitor<T> {
588
+ fieldId: (value: string) => T;
589
+ _: (name: string, value: any) => T;
590
+ }
591
+ const visit: <T>(value: OperandOne, visitor: Visitor<T>) => T;
592
+ }
593
+ export interface EmptyOperandValue {}
594
+ export type OperandTwo =
595
+ | OperandTwo.BooleanValueMember
596
+ | OperandTwo.DoubleValueMember
597
+ | OperandTwo.EmptyValueMember
598
+ | OperandTwo.StringValueMember
599
+ | OperandTwo.$UnknownMember;
600
+ export declare namespace OperandTwo {
601
+ interface StringValueMember {
602
+ stringValue: string;
603
+ booleanValue?: never;
604
+ doubleValue?: never;
605
+ emptyValue?: never;
606
+ $unknown?: never;
607
+ }
608
+ interface BooleanValueMember {
609
+ stringValue?: never;
610
+ booleanValue: boolean;
611
+ doubleValue?: never;
612
+ emptyValue?: never;
613
+ $unknown?: never;
614
+ }
615
+ interface DoubleValueMember {
616
+ stringValue?: never;
617
+ booleanValue?: never;
618
+ doubleValue: number;
619
+ emptyValue?: never;
620
+ $unknown?: never;
621
+ }
622
+ interface EmptyValueMember {
623
+ stringValue?: never;
624
+ booleanValue?: never;
625
+ doubleValue?: never;
626
+ emptyValue: EmptyOperandValue;
627
+ $unknown?: never;
628
+ }
629
+ interface $UnknownMember {
630
+ stringValue?: never;
631
+ booleanValue?: never;
632
+ doubleValue?: never;
633
+ emptyValue?: never;
634
+ $unknown: [string, any];
635
+ }
636
+ interface Visitor<T> {
637
+ stringValue: (value: string) => T;
638
+ booleanValue: (value: boolean) => T;
639
+ doubleValue: (value: number) => T;
640
+ emptyValue: (value: EmptyOperandValue) => T;
641
+ _: (name: string, value: any) => T;
642
+ }
643
+ const visit: <T>(value: OperandTwo, visitor: Visitor<T>) => T;
644
+ }
645
+ export interface BooleanOperands {
646
+ operandOne: OperandOne | undefined;
647
+ operandTwo: OperandTwo | undefined;
648
+ result: boolean | undefined;
649
+ }
650
+ export type BooleanCondition =
651
+ | BooleanCondition.EqualToMember
652
+ | BooleanCondition.NotEqualToMember
653
+ | BooleanCondition.$UnknownMember;
654
+ export declare namespace BooleanCondition {
655
+ interface EqualToMember {
656
+ equalTo: BooleanOperands;
657
+ notEqualTo?: never;
658
+ $unknown?: never;
659
+ }
660
+ interface NotEqualToMember {
661
+ equalTo?: never;
662
+ notEqualTo: BooleanOperands;
663
+ $unknown?: never;
664
+ }
665
+ interface $UnknownMember {
666
+ equalTo?: never;
667
+ notEqualTo?: never;
668
+ $unknown: [string, any];
669
+ }
670
+ interface Visitor<T> {
671
+ equalTo: (value: BooleanOperands) => T;
672
+ notEqualTo: (value: BooleanOperands) => T;
673
+ _: (name: string, value: any) => T;
674
+ }
675
+ const visit: <T>(value: BooleanCondition, visitor: Visitor<T>) => T;
676
+ }
677
+ export interface RequiredCaseRule {
678
+ defaultValue: boolean | undefined;
679
+ conditions: BooleanCondition[] | undefined;
680
+ }
681
+ export type CaseRuleDetails =
682
+ | CaseRuleDetails.RequiredMember
683
+ | CaseRuleDetails.$UnknownMember;
684
+ export declare namespace CaseRuleDetails {
685
+ interface RequiredMember {
686
+ required: RequiredCaseRule;
687
+ $unknown?: never;
688
+ }
689
+ interface $UnknownMember {
690
+ required?: never;
691
+ $unknown: [string, any];
692
+ }
693
+ interface Visitor<T> {
694
+ required: (value: RequiredCaseRule) => T;
695
+ _: (name: string, value: any) => T;
696
+ }
697
+ const visit: <T>(value: CaseRuleDetails, visitor: Visitor<T>) => T;
698
+ }
699
+ export interface GetCaseRuleResponse {
700
+ caseRuleId: string | undefined;
701
+ name: string | undefined;
702
+ caseRuleArn: string | undefined;
703
+ rule: CaseRuleDetails | undefined;
704
+ description?: string | undefined;
705
+ deleted?: boolean | undefined;
706
+ createdTime?: Date | undefined;
707
+ lastModifiedTime?: Date | undefined;
708
+ tags?: Record<string, string> | undefined;
709
+ }
710
+ export interface CaseRuleError {
711
+ id: string | undefined;
712
+ errorCode: string | undefined;
713
+ message?: string | undefined;
714
+ }
715
+ export interface BatchGetCaseRuleResponse {
716
+ caseRules: GetCaseRuleResponse[] | undefined;
717
+ errors: CaseRuleError[] | undefined;
718
+ }
719
+ export interface CreateCaseRuleRequest {
720
+ domainId: string | undefined;
721
+ name: string | undefined;
722
+ description?: string | undefined;
723
+ rule: CaseRuleDetails | undefined;
724
+ }
725
+ export interface CreateCaseRuleResponse {
726
+ caseRuleId: string | undefined;
727
+ caseRuleArn: string | undefined;
728
+ }
729
+ export interface DeleteCaseRuleRequest {
730
+ domainId: string | undefined;
731
+ caseRuleId: string | undefined;
732
+ }
733
+ export interface DeleteCaseRuleResponse {}
734
+ export interface ListCaseRulesRequest {
735
+ domainId: string | undefined;
736
+ maxResults?: number | undefined;
737
+ nextToken?: string | undefined;
738
+ }
739
+ export declare const RuleType: {
740
+ readonly REQUIRED: "Required";
741
+ };
742
+ export type RuleType = (typeof RuleType)[keyof typeof RuleType];
743
+ export interface CaseRuleSummary {
744
+ caseRuleId: string | undefined;
745
+ name: string | undefined;
746
+ caseRuleArn: string | undefined;
747
+ ruleType: RuleType | undefined;
748
+ description?: string | undefined;
749
+ }
750
+ export interface ListCaseRulesResponse {
751
+ caseRules: CaseRuleSummary[] | undefined;
752
+ nextToken?: string | undefined;
753
+ }
754
+ export interface UpdateCaseRuleRequest {
755
+ domainId: string | undefined;
756
+ caseRuleId: string | undefined;
757
+ name?: string | undefined;
758
+ description?: string | undefined;
759
+ rule?: CaseRuleDetails | undefined;
760
+ }
761
+ export interface UpdateCaseRuleResponse {}
570
762
  export interface CreateDomainRequest {
571
763
  name: string | undefined;
572
764
  }
@@ -855,6 +1047,10 @@ export interface LayoutConfiguration {
855
1047
  export interface RequiredField {
856
1048
  fieldId: string | undefined;
857
1049
  }
1050
+ export interface TemplateRule {
1051
+ caseRuleId: string | undefined;
1052
+ fieldId: string | undefined;
1053
+ }
858
1054
  export declare const TemplateStatus: {
859
1055
  readonly ACTIVE: "Active";
860
1056
  readonly INACTIVE: "Inactive";
@@ -868,6 +1064,7 @@ export interface CreateTemplateRequest {
868
1064
  layoutConfiguration?: LayoutConfiguration | undefined;
869
1065
  requiredFields?: RequiredField[] | undefined;
870
1066
  status?: TemplateStatus | undefined;
1067
+ rules?: TemplateRule[] | undefined;
871
1068
  }
872
1069
  export interface CreateTemplateResponse {
873
1070
  templateId: string | undefined;
@@ -894,6 +1091,7 @@ export interface GetTemplateResponse {
894
1091
  deleted?: boolean | undefined;
895
1092
  createdTime?: Date | undefined;
896
1093
  lastModifiedTime?: Date | undefined;
1094
+ rules?: TemplateRule[] | undefined;
897
1095
  }
898
1096
  export interface ListTemplatesRequest {
899
1097
  domainId: string | undefined;
@@ -919,6 +1117,7 @@ export interface UpdateTemplateRequest {
919
1117
  layoutConfiguration?: LayoutConfiguration | undefined;
920
1118
  requiredFields?: RequiredField[] | undefined;
921
1119
  status?: TemplateStatus | undefined;
1120
+ rules?: TemplateRule[] | undefined;
922
1121
  }
923
1122
  export interface UpdateTemplateResponse {}
924
1123
  export interface UntagResourceRequest {
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListCaseRulesCommandInput,
4
+ ListCaseRulesCommandOutput,
5
+ } from "../commands/ListCaseRulesCommand";
6
+ import { ConnectCasesPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListCaseRules: (
8
+ config: ConnectCasesPaginationConfiguration,
9
+ input: ListCaseRulesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListCaseRulesCommandOutput>;
@@ -1,6 +1,7 @@
1
1
  export * from "./GetCaseAuditEventsPaginator";
2
2
  export * from "./GetCasePaginator";
3
3
  export * from "./Interfaces";
4
+ export * from "./ListCaseRulesPaginator";
4
5
  export * from "./ListCasesForContactPaginator";
5
6
  export * from "./ListDomainsPaginator";
6
7
  export * from "./ListFieldOptionsPaginator";
@@ -3,6 +3,10 @@ import {
3
3
  HttpResponse as __HttpResponse,
4
4
  } from "@smithy/protocol-http";
5
5
  import { SerdeContext as __SerdeContext } from "@smithy/types";
6
+ import {
7
+ BatchGetCaseRuleCommandInput,
8
+ BatchGetCaseRuleCommandOutput,
9
+ } from "../commands/BatchGetCaseRuleCommand";
6
10
  import {
7
11
  BatchGetFieldCommandInput,
8
12
  BatchGetFieldCommandOutput,
@@ -15,6 +19,10 @@ import {
15
19
  CreateCaseCommandInput,
16
20
  CreateCaseCommandOutput,
17
21
  } from "../commands/CreateCaseCommand";
22
+ import {
23
+ CreateCaseRuleCommandInput,
24
+ CreateCaseRuleCommandOutput,
25
+ } from "../commands/CreateCaseRuleCommand";
18
26
  import {
19
27
  CreateDomainCommandInput,
20
28
  CreateDomainCommandOutput,
@@ -35,6 +43,10 @@ import {
35
43
  CreateTemplateCommandInput,
36
44
  CreateTemplateCommandOutput,
37
45
  } from "../commands/CreateTemplateCommand";
46
+ import {
47
+ DeleteCaseRuleCommandInput,
48
+ DeleteCaseRuleCommandOutput,
49
+ } from "../commands/DeleteCaseRuleCommand";
38
50
  import {
39
51
  DeleteDomainCommandInput,
40
52
  DeleteDomainCommandOutput,
@@ -75,6 +87,10 @@ import {
75
87
  GetTemplateCommandInput,
76
88
  GetTemplateCommandOutput,
77
89
  } from "../commands/GetTemplateCommand";
90
+ import {
91
+ ListCaseRulesCommandInput,
92
+ ListCaseRulesCommandOutput,
93
+ } from "../commands/ListCaseRulesCommand";
78
94
  import {
79
95
  ListCasesForContactCommandInput,
80
96
  ListCasesForContactCommandOutput,
@@ -127,6 +143,10 @@ import {
127
143
  UpdateCaseCommandInput,
128
144
  UpdateCaseCommandOutput,
129
145
  } from "../commands/UpdateCaseCommand";
146
+ import {
147
+ UpdateCaseRuleCommandInput,
148
+ UpdateCaseRuleCommandOutput,
149
+ } from "../commands/UpdateCaseRuleCommand";
130
150
  import {
131
151
  UpdateFieldCommandInput,
132
152
  UpdateFieldCommandOutput,
@@ -139,6 +159,10 @@ import {
139
159
  UpdateTemplateCommandInput,
140
160
  UpdateTemplateCommandOutput,
141
161
  } from "../commands/UpdateTemplateCommand";
162
+ export declare const se_BatchGetCaseRuleCommand: (
163
+ input: BatchGetCaseRuleCommandInput,
164
+ context: __SerdeContext
165
+ ) => Promise<__HttpRequest>;
142
166
  export declare const se_BatchGetFieldCommand: (
143
167
  input: BatchGetFieldCommandInput,
144
168
  context: __SerdeContext
@@ -151,6 +175,10 @@ export declare const se_CreateCaseCommand: (
151
175
  input: CreateCaseCommandInput,
152
176
  context: __SerdeContext
153
177
  ) => Promise<__HttpRequest>;
178
+ export declare const se_CreateCaseRuleCommand: (
179
+ input: CreateCaseRuleCommandInput,
180
+ context: __SerdeContext
181
+ ) => Promise<__HttpRequest>;
154
182
  export declare const se_CreateDomainCommand: (
155
183
  input: CreateDomainCommandInput,
156
184
  context: __SerdeContext
@@ -171,6 +199,10 @@ export declare const se_CreateTemplateCommand: (
171
199
  input: CreateTemplateCommandInput,
172
200
  context: __SerdeContext
173
201
  ) => Promise<__HttpRequest>;
202
+ export declare const se_DeleteCaseRuleCommand: (
203
+ input: DeleteCaseRuleCommandInput,
204
+ context: __SerdeContext
205
+ ) => Promise<__HttpRequest>;
174
206
  export declare const se_DeleteDomainCommand: (
175
207
  input: DeleteDomainCommandInput,
176
208
  context: __SerdeContext
@@ -211,6 +243,10 @@ export declare const se_GetTemplateCommand: (
211
243
  input: GetTemplateCommandInput,
212
244
  context: __SerdeContext
213
245
  ) => Promise<__HttpRequest>;
246
+ export declare const se_ListCaseRulesCommand: (
247
+ input: ListCaseRulesCommandInput,
248
+ context: __SerdeContext
249
+ ) => Promise<__HttpRequest>;
214
250
  export declare const se_ListCasesForContactCommand: (
215
251
  input: ListCasesForContactCommandInput,
216
252
  context: __SerdeContext
@@ -263,6 +299,10 @@ export declare const se_UpdateCaseCommand: (
263
299
  input: UpdateCaseCommandInput,
264
300
  context: __SerdeContext
265
301
  ) => Promise<__HttpRequest>;
302
+ export declare const se_UpdateCaseRuleCommand: (
303
+ input: UpdateCaseRuleCommandInput,
304
+ context: __SerdeContext
305
+ ) => Promise<__HttpRequest>;
266
306
  export declare const se_UpdateFieldCommand: (
267
307
  input: UpdateFieldCommandInput,
268
308
  context: __SerdeContext
@@ -275,6 +315,10 @@ export declare const se_UpdateTemplateCommand: (
275
315
  input: UpdateTemplateCommandInput,
276
316
  context: __SerdeContext
277
317
  ) => Promise<__HttpRequest>;
318
+ export declare const de_BatchGetCaseRuleCommand: (
319
+ output: __HttpResponse,
320
+ context: __SerdeContext
321
+ ) => Promise<BatchGetCaseRuleCommandOutput>;
278
322
  export declare const de_BatchGetFieldCommand: (
279
323
  output: __HttpResponse,
280
324
  context: __SerdeContext
@@ -287,6 +331,10 @@ export declare const de_CreateCaseCommand: (
287
331
  output: __HttpResponse,
288
332
  context: __SerdeContext
289
333
  ) => Promise<CreateCaseCommandOutput>;
334
+ export declare const de_CreateCaseRuleCommand: (
335
+ output: __HttpResponse,
336
+ context: __SerdeContext
337
+ ) => Promise<CreateCaseRuleCommandOutput>;
290
338
  export declare const de_CreateDomainCommand: (
291
339
  output: __HttpResponse,
292
340
  context: __SerdeContext
@@ -307,6 +355,10 @@ export declare const de_CreateTemplateCommand: (
307
355
  output: __HttpResponse,
308
356
  context: __SerdeContext
309
357
  ) => Promise<CreateTemplateCommandOutput>;
358
+ export declare const de_DeleteCaseRuleCommand: (
359
+ output: __HttpResponse,
360
+ context: __SerdeContext
361
+ ) => Promise<DeleteCaseRuleCommandOutput>;
310
362
  export declare const de_DeleteDomainCommand: (
311
363
  output: __HttpResponse,
312
364
  context: __SerdeContext
@@ -347,6 +399,10 @@ export declare const de_GetTemplateCommand: (
347
399
  output: __HttpResponse,
348
400
  context: __SerdeContext
349
401
  ) => Promise<GetTemplateCommandOutput>;
402
+ export declare const de_ListCaseRulesCommand: (
403
+ output: __HttpResponse,
404
+ context: __SerdeContext
405
+ ) => Promise<ListCaseRulesCommandOutput>;
350
406
  export declare const de_ListCasesForContactCommand: (
351
407
  output: __HttpResponse,
352
408
  context: __SerdeContext
@@ -399,6 +455,10 @@ export declare const de_UpdateCaseCommand: (
399
455
  output: __HttpResponse,
400
456
  context: __SerdeContext
401
457
  ) => Promise<UpdateCaseCommandOutput>;
458
+ export declare const de_UpdateCaseRuleCommand: (
459
+ output: __HttpResponse,
460
+ context: __SerdeContext
461
+ ) => Promise<UpdateCaseRuleCommandOutput>;
402
462
  export declare const de_UpdateFieldCommand: (
403
463
  output: __HttpResponse,
404
464
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connectcases",
3
3
  "description": "AWS SDK for JavaScript Connectcases Client for Node.js, Browser and React Native",
4
- "version": "3.738.0",
4
+ "version": "3.743.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-connectcases",
@@ -21,16 +21,16 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.734.0",
24
- "@aws-sdk/credential-provider-node": "3.738.0",
24
+ "@aws-sdk/credential-provider-node": "3.743.0",
25
25
  "@aws-sdk/middleware-host-header": "3.734.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.734.0",
28
- "@aws-sdk/middleware-user-agent": "3.734.0",
28
+ "@aws-sdk/middleware-user-agent": "3.743.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",
31
- "@aws-sdk/util-endpoints": "3.734.0",
31
+ "@aws-sdk/util-endpoints": "3.743.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.734.0",
33
+ "@aws-sdk/util-user-agent-node": "3.743.0",
34
34
  "@smithy/config-resolver": "^4.0.1",
35
35
  "@smithy/core": "^3.1.1",
36
36
  "@smithy/fetch-http-handler": "^5.0.1",