@aws-sdk/client-connectcases 3.184.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 (216) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +210 -0
  4. package/dist-cjs/ConnectCases.js +442 -0
  5. package/dist-cjs/ConnectCasesClient.js +37 -0
  6. package/dist-cjs/commands/BatchGetFieldCommand.js +36 -0
  7. package/dist-cjs/commands/BatchPutFieldOptionsCommand.js +36 -0
  8. package/dist-cjs/commands/CreateCaseCommand.js +36 -0
  9. package/dist-cjs/commands/CreateDomainCommand.js +36 -0
  10. package/dist-cjs/commands/CreateFieldCommand.js +36 -0
  11. package/dist-cjs/commands/CreateLayoutCommand.js +36 -0
  12. package/dist-cjs/commands/CreateRelatedItemCommand.js +36 -0
  13. package/dist-cjs/commands/CreateTemplateCommand.js +36 -0
  14. package/dist-cjs/commands/GetCaseCommand.js +36 -0
  15. package/dist-cjs/commands/GetCaseEventConfigurationCommand.js +36 -0
  16. package/dist-cjs/commands/GetDomainCommand.js +36 -0
  17. package/dist-cjs/commands/GetLayoutCommand.js +36 -0
  18. package/dist-cjs/commands/GetTemplateCommand.js +36 -0
  19. package/dist-cjs/commands/ListCasesForContactCommand.js +36 -0
  20. package/dist-cjs/commands/ListDomainsCommand.js +36 -0
  21. package/dist-cjs/commands/ListFieldOptionsCommand.js +36 -0
  22. package/dist-cjs/commands/ListFieldsCommand.js +36 -0
  23. package/dist-cjs/commands/ListLayoutsCommand.js +36 -0
  24. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  25. package/dist-cjs/commands/ListTemplatesCommand.js +36 -0
  26. package/dist-cjs/commands/PutCaseEventConfigurationCommand.js +36 -0
  27. package/dist-cjs/commands/SearchCasesCommand.js +36 -0
  28. package/dist-cjs/commands/SearchRelatedItemsCommand.js +36 -0
  29. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  30. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  31. package/dist-cjs/commands/UpdateCaseCommand.js +36 -0
  32. package/dist-cjs/commands/UpdateFieldCommand.js +36 -0
  33. package/dist-cjs/commands/UpdateLayoutCommand.js +36 -0
  34. package/dist-cjs/commands/UpdateTemplateCommand.js +36 -0
  35. package/dist-cjs/commands/index.js +32 -0
  36. package/dist-cjs/endpoints.js +132 -0
  37. package/dist-cjs/index.js +11 -0
  38. package/dist-cjs/models/ConnectCasesServiceException.js +11 -0
  39. package/dist-cjs/models/index.js +4 -0
  40. package/dist-cjs/models/models_0.js +661 -0
  41. package/dist-cjs/pagination/GetCasePaginator.js +35 -0
  42. package/dist-cjs/pagination/Interfaces.js +2 -0
  43. package/dist-cjs/pagination/ListCasesForContactPaginator.js +36 -0
  44. package/dist-cjs/pagination/ListDomainsPaginator.js +36 -0
  45. package/dist-cjs/pagination/ListFieldOptionsPaginator.js +36 -0
  46. package/dist-cjs/pagination/ListFieldsPaginator.js +36 -0
  47. package/dist-cjs/pagination/ListLayoutsPaginator.js +36 -0
  48. package/dist-cjs/pagination/ListTemplatesPaginator.js +36 -0
  49. package/dist-cjs/pagination/SearchCasesPaginator.js +36 -0
  50. package/dist-cjs/pagination/SearchRelatedItemsPaginator.js +36 -0
  51. package/dist-cjs/pagination/index.js +13 -0
  52. package/dist-cjs/protocols/Aws_restJson1.js +2920 -0
  53. package/dist-cjs/runtimeConfig.browser.js +45 -0
  54. package/dist-cjs/runtimeConfig.js +52 -0
  55. package/dist-cjs/runtimeConfig.native.js +16 -0
  56. package/dist-cjs/runtimeConfig.shared.js +17 -0
  57. package/dist-es/ConnectCases.js +438 -0
  58. package/dist-es/ConnectCasesClient.js +33 -0
  59. package/dist-es/commands/BatchGetFieldCommand.js +32 -0
  60. package/dist-es/commands/BatchPutFieldOptionsCommand.js +32 -0
  61. package/dist-es/commands/CreateCaseCommand.js +32 -0
  62. package/dist-es/commands/CreateDomainCommand.js +32 -0
  63. package/dist-es/commands/CreateFieldCommand.js +32 -0
  64. package/dist-es/commands/CreateLayoutCommand.js +32 -0
  65. package/dist-es/commands/CreateRelatedItemCommand.js +32 -0
  66. package/dist-es/commands/CreateTemplateCommand.js +32 -0
  67. package/dist-es/commands/GetCaseCommand.js +32 -0
  68. package/dist-es/commands/GetCaseEventConfigurationCommand.js +32 -0
  69. package/dist-es/commands/GetDomainCommand.js +32 -0
  70. package/dist-es/commands/GetLayoutCommand.js +32 -0
  71. package/dist-es/commands/GetTemplateCommand.js +32 -0
  72. package/dist-es/commands/ListCasesForContactCommand.js +32 -0
  73. package/dist-es/commands/ListDomainsCommand.js +32 -0
  74. package/dist-es/commands/ListFieldOptionsCommand.js +32 -0
  75. package/dist-es/commands/ListFieldsCommand.js +32 -0
  76. package/dist-es/commands/ListLayoutsCommand.js +32 -0
  77. package/dist-es/commands/ListTagsForResourceCommand.js +32 -0
  78. package/dist-es/commands/ListTemplatesCommand.js +32 -0
  79. package/dist-es/commands/PutCaseEventConfigurationCommand.js +32 -0
  80. package/dist-es/commands/SearchCasesCommand.js +32 -0
  81. package/dist-es/commands/SearchRelatedItemsCommand.js +32 -0
  82. package/dist-es/commands/TagResourceCommand.js +32 -0
  83. package/dist-es/commands/UntagResourceCommand.js +32 -0
  84. package/dist-es/commands/UpdateCaseCommand.js +32 -0
  85. package/dist-es/commands/UpdateFieldCommand.js +32 -0
  86. package/dist-es/commands/UpdateLayoutCommand.js +32 -0
  87. package/dist-es/commands/UpdateTemplateCommand.js +32 -0
  88. package/dist-es/commands/index.js +29 -0
  89. package/dist-es/endpoints.js +128 -0
  90. package/dist-es/index.js +6 -0
  91. package/dist-es/models/ConnectCasesServiceException.js +7 -0
  92. package/dist-es/models/index.js +1 -0
  93. package/dist-es/models/models_0.js +556 -0
  94. package/dist-es/pagination/GetCasePaginator.js +31 -0
  95. package/dist-es/pagination/Interfaces.js +1 -0
  96. package/dist-es/pagination/ListCasesForContactPaginator.js +32 -0
  97. package/dist-es/pagination/ListDomainsPaginator.js +32 -0
  98. package/dist-es/pagination/ListFieldOptionsPaginator.js +32 -0
  99. package/dist-es/pagination/ListFieldsPaginator.js +32 -0
  100. package/dist-es/pagination/ListLayoutsPaginator.js +32 -0
  101. package/dist-es/pagination/ListTemplatesPaginator.js +32 -0
  102. package/dist-es/pagination/SearchCasesPaginator.js +32 -0
  103. package/dist-es/pagination/SearchRelatedItemsPaginator.js +32 -0
  104. package/dist-es/pagination/index.js +10 -0
  105. package/dist-es/protocols/Aws_restJson1.js +2853 -0
  106. package/dist-es/runtimeConfig.browser.js +40 -0
  107. package/dist-es/runtimeConfig.js +48 -0
  108. package/dist-es/runtimeConfig.native.js +11 -0
  109. package/dist-es/runtimeConfig.shared.js +10 -0
  110. package/dist-types/ConnectCases.d.ts +276 -0
  111. package/dist-types/ConnectCasesClient.d.ts +178 -0
  112. package/dist-types/commands/BatchGetFieldCommand.d.ts +35 -0
  113. package/dist-types/commands/BatchPutFieldOptionsCommand.d.ts +36 -0
  114. package/dist-types/commands/CreateCaseCommand.d.ts +40 -0
  115. package/dist-types/commands/CreateDomainCommand.d.ts +42 -0
  116. package/dist-types/commands/CreateFieldCommand.d.ts +36 -0
  117. package/dist-types/commands/CreateLayoutCommand.d.ts +48 -0
  118. package/dist-types/commands/CreateRelatedItemCommand.d.ts +43 -0
  119. package/dist-types/commands/CreateTemplateCommand.d.ts +38 -0
  120. package/dist-types/commands/GetCaseCommand.d.ts +35 -0
  121. package/dist-types/commands/GetCaseEventConfigurationCommand.d.ts +35 -0
  122. package/dist-types/commands/GetDomainCommand.d.ts +35 -0
  123. package/dist-types/commands/GetLayoutCommand.d.ts +35 -0
  124. package/dist-types/commands/GetTemplateCommand.d.ts +35 -0
  125. package/dist-types/commands/ListCasesForContactCommand.d.ts +35 -0
  126. package/dist-types/commands/ListDomainsCommand.d.ts +36 -0
  127. package/dist-types/commands/ListFieldOptionsCommand.d.ts +35 -0
  128. package/dist-types/commands/ListFieldsCommand.d.ts +35 -0
  129. package/dist-types/commands/ListLayoutsCommand.d.ts +36 -0
  130. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  131. package/dist-types/commands/ListTemplatesCommand.d.ts +36 -0
  132. package/dist-types/commands/PutCaseEventConfigurationCommand.d.ts +35 -0
  133. package/dist-types/commands/SearchCasesCommand.d.ts +36 -0
  134. package/dist-types/commands/SearchRelatedItemsCommand.d.ts +39 -0
  135. package/dist-types/commands/TagResourceCommand.d.ts +35 -0
  136. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  137. package/dist-types/commands/UpdateCaseCommand.d.ts +38 -0
  138. package/dist-types/commands/UpdateFieldCommand.d.ts +35 -0
  139. package/dist-types/commands/UpdateLayoutCommand.d.ts +43 -0
  140. package/dist-types/commands/UpdateTemplateCommand.d.ts +39 -0
  141. package/dist-types/commands/index.d.ts +29 -0
  142. package/dist-types/endpoints.d.ts +2 -0
  143. package/dist-types/index.d.ts +6 -0
  144. package/dist-types/models/ConnectCasesServiceException.d.ts +10 -0
  145. package/dist-types/models/index.d.ts +1 -0
  146. package/dist-types/models/models_0.d.ts +1985 -0
  147. package/dist-types/pagination/GetCasePaginator.d.ts +4 -0
  148. package/dist-types/pagination/Interfaces.d.ts +6 -0
  149. package/dist-types/pagination/ListCasesForContactPaginator.d.ts +4 -0
  150. package/dist-types/pagination/ListDomainsPaginator.d.ts +4 -0
  151. package/dist-types/pagination/ListFieldOptionsPaginator.d.ts +4 -0
  152. package/dist-types/pagination/ListFieldsPaginator.d.ts +4 -0
  153. package/dist-types/pagination/ListLayoutsPaginator.d.ts +4 -0
  154. package/dist-types/pagination/ListTemplatesPaginator.d.ts +4 -0
  155. package/dist-types/pagination/SearchCasesPaginator.d.ts +4 -0
  156. package/dist-types/pagination/SearchRelatedItemsPaginator.d.ts +4 -0
  157. package/dist-types/pagination/index.d.ts +10 -0
  158. package/dist-types/protocols/Aws_restJson1.d.ts +89 -0
  159. package/dist-types/runtimeConfig.browser.d.ts +40 -0
  160. package/dist-types/runtimeConfig.d.ts +40 -0
  161. package/dist-types/runtimeConfig.native.d.ts +39 -0
  162. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  163. package/dist-types/ts3.4/ConnectCases.d.ts +497 -0
  164. package/dist-types/ts3.4/ConnectCasesClient.d.ts +279 -0
  165. package/dist-types/ts3.4/commands/BatchGetFieldCommand.d.ts +35 -0
  166. package/dist-types/ts3.4/commands/BatchPutFieldOptionsCommand.d.ts +39 -0
  167. package/dist-types/ts3.4/commands/CreateCaseCommand.d.ts +32 -0
  168. package/dist-types/ts3.4/commands/CreateDomainCommand.d.ts +32 -0
  169. package/dist-types/ts3.4/commands/CreateFieldCommand.d.ts +32 -0
  170. package/dist-types/ts3.4/commands/CreateLayoutCommand.d.ts +32 -0
  171. package/dist-types/ts3.4/commands/CreateRelatedItemCommand.d.ts +36 -0
  172. package/dist-types/ts3.4/commands/CreateTemplateCommand.d.ts +35 -0
  173. package/dist-types/ts3.4/commands/GetCaseCommand.d.ts +32 -0
  174. package/dist-types/ts3.4/commands/GetCaseEventConfigurationCommand.d.ts +39 -0
  175. package/dist-types/ts3.4/commands/GetDomainCommand.d.ts +32 -0
  176. package/dist-types/ts3.4/commands/GetLayoutCommand.d.ts +32 -0
  177. package/dist-types/ts3.4/commands/GetTemplateCommand.d.ts +32 -0
  178. package/dist-types/ts3.4/commands/ListCasesForContactCommand.d.ts +36 -0
  179. package/dist-types/ts3.4/commands/ListDomainsCommand.d.ts +32 -0
  180. package/dist-types/ts3.4/commands/ListFieldOptionsCommand.d.ts +35 -0
  181. package/dist-types/ts3.4/commands/ListFieldsCommand.d.ts +32 -0
  182. package/dist-types/ts3.4/commands/ListLayoutsCommand.d.ts +32 -0
  183. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +36 -0
  184. package/dist-types/ts3.4/commands/ListTemplatesCommand.d.ts +35 -0
  185. package/dist-types/ts3.4/commands/PutCaseEventConfigurationCommand.d.ts +39 -0
  186. package/dist-types/ts3.4/commands/SearchCasesCommand.d.ts +32 -0
  187. package/dist-types/ts3.4/commands/SearchRelatedItemsCommand.d.ts +36 -0
  188. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +30 -0
  189. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +30 -0
  190. package/dist-types/ts3.4/commands/UpdateCaseCommand.d.ts +32 -0
  191. package/dist-types/ts3.4/commands/UpdateFieldCommand.d.ts +32 -0
  192. package/dist-types/ts3.4/commands/UpdateLayoutCommand.d.ts +32 -0
  193. package/dist-types/ts3.4/commands/UpdateTemplateCommand.d.ts +35 -0
  194. package/dist-types/ts3.4/commands/index.d.ts +29 -0
  195. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  196. package/dist-types/ts3.4/index.d.ts +6 -0
  197. package/dist-types/ts3.4/models/ConnectCasesServiceException.d.ts +7 -0
  198. package/dist-types/ts3.4/models/index.d.ts +1 -0
  199. package/dist-types/ts3.4/models/models_0.d.ts +988 -0
  200. package/dist-types/ts3.4/pagination/GetCasePaginator.d.ts +11 -0
  201. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
  202. package/dist-types/ts3.4/pagination/ListCasesForContactPaginator.d.ts +11 -0
  203. package/dist-types/ts3.4/pagination/ListDomainsPaginator.d.ts +11 -0
  204. package/dist-types/ts3.4/pagination/ListFieldOptionsPaginator.d.ts +11 -0
  205. package/dist-types/ts3.4/pagination/ListFieldsPaginator.d.ts +11 -0
  206. package/dist-types/ts3.4/pagination/ListLayoutsPaginator.d.ts +11 -0
  207. package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +11 -0
  208. package/dist-types/ts3.4/pagination/SearchCasesPaginator.d.ts +11 -0
  209. package/dist-types/ts3.4/pagination/SearchRelatedItemsPaginator.d.ts +11 -0
  210. package/dist-types/ts3.4/pagination/index.d.ts +10 -0
  211. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +353 -0
  212. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +67 -0
  213. package/dist-types/ts3.4/runtimeConfig.d.ts +67 -0
  214. package/dist-types/ts3.4/runtimeConfig.native.d.ts +68 -0
  215. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +10 -0
  216. package/package.json +102 -0
@@ -0,0 +1,556 @@
1
+ import { ConnectCasesServiceException as __BaseException } from "./ConnectCasesServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "AccessDeniedException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "AccessDeniedException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class ConflictException extends __BaseException {
15
+ constructor(opts) {
16
+ super({
17
+ name: "ConflictException",
18
+ $fault: "client",
19
+ ...opts,
20
+ });
21
+ this.name = "ConflictException";
22
+ this.$fault = "client";
23
+ Object.setPrototypeOf(this, ConflictException.prototype);
24
+ }
25
+ }
26
+ export var FieldValueUnion;
27
+ (function (FieldValueUnion) {
28
+ FieldValueUnion.visit = (value, visitor) => {
29
+ if (value.stringValue !== undefined)
30
+ return visitor.stringValue(value.stringValue);
31
+ if (value.doubleValue !== undefined)
32
+ return visitor.doubleValue(value.doubleValue);
33
+ if (value.booleanValue !== undefined)
34
+ return visitor.booleanValue(value.booleanValue);
35
+ return visitor._(value.$unknown[0], value.$unknown[1]);
36
+ };
37
+ })(FieldValueUnion || (FieldValueUnion = {}));
38
+ export class InternalServerException extends __BaseException {
39
+ constructor(opts) {
40
+ super({
41
+ name: "InternalServerException",
42
+ $fault: "server",
43
+ ...opts,
44
+ });
45
+ this.name = "InternalServerException";
46
+ this.$fault = "server";
47
+ this.$retryable = {};
48
+ Object.setPrototypeOf(this, InternalServerException.prototype);
49
+ this.retryAfterSeconds = opts.retryAfterSeconds;
50
+ }
51
+ }
52
+ export class ResourceNotFoundException extends __BaseException {
53
+ constructor(opts) {
54
+ super({
55
+ name: "ResourceNotFoundException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ this.name = "ResourceNotFoundException";
60
+ this.$fault = "client";
61
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
62
+ this.resourceId = opts.resourceId;
63
+ this.resourceType = opts.resourceType;
64
+ }
65
+ }
66
+ export class ThrottlingException extends __BaseException {
67
+ constructor(opts) {
68
+ super({
69
+ name: "ThrottlingException",
70
+ $fault: "client",
71
+ ...opts,
72
+ });
73
+ this.name = "ThrottlingException";
74
+ this.$fault = "client";
75
+ this.$retryable = {};
76
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
77
+ }
78
+ }
79
+ export class ValidationException extends __BaseException {
80
+ constructor(opts) {
81
+ super({
82
+ name: "ValidationException",
83
+ $fault: "client",
84
+ ...opts,
85
+ });
86
+ this.name = "ValidationException";
87
+ this.$fault = "client";
88
+ Object.setPrototypeOf(this, ValidationException.prototype);
89
+ }
90
+ }
91
+ export var CommentBodyTextType;
92
+ (function (CommentBodyTextType) {
93
+ CommentBodyTextType["PLAINTEXT"] = "Text/Plain";
94
+ })(CommentBodyTextType || (CommentBodyTextType = {}));
95
+ export var RelatedItemInputContent;
96
+ (function (RelatedItemInputContent) {
97
+ RelatedItemInputContent.visit = (value, visitor) => {
98
+ if (value.contact !== undefined)
99
+ return visitor.contact(value.contact);
100
+ if (value.comment !== undefined)
101
+ return visitor.comment(value.comment);
102
+ return visitor._(value.$unknown[0], value.$unknown[1]);
103
+ };
104
+ })(RelatedItemInputContent || (RelatedItemInputContent = {}));
105
+ export var RelatedItemType;
106
+ (function (RelatedItemType) {
107
+ RelatedItemType["COMMENT"] = "Comment";
108
+ RelatedItemType["CONTACT"] = "Contact";
109
+ })(RelatedItemType || (RelatedItemType = {}));
110
+ export class ServiceQuotaExceededException extends __BaseException {
111
+ constructor(opts) {
112
+ super({
113
+ name: "ServiceQuotaExceededException",
114
+ $fault: "client",
115
+ ...opts,
116
+ });
117
+ this.name = "ServiceQuotaExceededException";
118
+ this.$fault = "client";
119
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
120
+ }
121
+ }
122
+ export var RelatedItemTypeFilter;
123
+ (function (RelatedItemTypeFilter) {
124
+ RelatedItemTypeFilter.visit = (value, visitor) => {
125
+ if (value.contact !== undefined)
126
+ return visitor.contact(value.contact);
127
+ if (value.comment !== undefined)
128
+ return visitor.comment(value.comment);
129
+ return visitor._(value.$unknown[0], value.$unknown[1]);
130
+ };
131
+ })(RelatedItemTypeFilter || (RelatedItemTypeFilter = {}));
132
+ export var RelatedItemContent;
133
+ (function (RelatedItemContent) {
134
+ RelatedItemContent.visit = (value, visitor) => {
135
+ if (value.contact !== undefined)
136
+ return visitor.contact(value.contact);
137
+ if (value.comment !== undefined)
138
+ return visitor.comment(value.comment);
139
+ return visitor._(value.$unknown[0], value.$unknown[1]);
140
+ };
141
+ })(RelatedItemContent || (RelatedItemContent = {}));
142
+ export var FieldFilter;
143
+ (function (FieldFilter) {
144
+ FieldFilter.visit = (value, visitor) => {
145
+ if (value.equalTo !== undefined)
146
+ return visitor.equalTo(value.equalTo);
147
+ if (value.contains !== undefined)
148
+ return visitor.contains(value.contains);
149
+ if (value.greaterThan !== undefined)
150
+ return visitor.greaterThan(value.greaterThan);
151
+ if (value.greaterThanOrEqualTo !== undefined)
152
+ return visitor.greaterThanOrEqualTo(value.greaterThanOrEqualTo);
153
+ if (value.lessThan !== undefined)
154
+ return visitor.lessThan(value.lessThan);
155
+ if (value.lessThanOrEqualTo !== undefined)
156
+ return visitor.lessThanOrEqualTo(value.lessThanOrEqualTo);
157
+ return visitor._(value.$unknown[0], value.$unknown[1]);
158
+ };
159
+ })(FieldFilter || (FieldFilter = {}));
160
+ export var Order;
161
+ (function (Order) {
162
+ Order["ASCENDING"] = "Asc";
163
+ Order["DESCENDING"] = "Desc";
164
+ })(Order || (Order = {}));
165
+ export var DomainStatus;
166
+ (function (DomainStatus) {
167
+ DomainStatus["ACTIVE"] = "Active";
168
+ DomainStatus["CREATION_FAILED"] = "CreationFailed";
169
+ DomainStatus["CREATION_IN_PROGRESS"] = "CreationInProgress";
170
+ })(DomainStatus || (DomainStatus = {}));
171
+ export var FieldNamespace;
172
+ (function (FieldNamespace) {
173
+ FieldNamespace["CUSTOM"] = "Custom";
174
+ FieldNamespace["SYSTEM"] = "System";
175
+ })(FieldNamespace || (FieldNamespace = {}));
176
+ export var FieldType;
177
+ (function (FieldType) {
178
+ FieldType["BOOLEAN"] = "Boolean";
179
+ FieldType["DATE_TIME"] = "DateTime";
180
+ FieldType["NUMBER"] = "Number";
181
+ FieldType["SINGLE_SELECT"] = "SingleSelect";
182
+ FieldType["TEXT"] = "Text";
183
+ })(FieldType || (FieldType = {}));
184
+ export var Section;
185
+ (function (Section) {
186
+ Section.visit = (value, visitor) => {
187
+ if (value.fieldGroup !== undefined)
188
+ return visitor.fieldGroup(value.fieldGroup);
189
+ return visitor._(value.$unknown[0], value.$unknown[1]);
190
+ };
191
+ })(Section || (Section = {}));
192
+ export var LayoutContent;
193
+ (function (LayoutContent) {
194
+ LayoutContent.visit = (value, visitor) => {
195
+ if (value.basic !== undefined)
196
+ return visitor.basic(value.basic);
197
+ return visitor._(value.$unknown[0], value.$unknown[1]);
198
+ };
199
+ })(LayoutContent || (LayoutContent = {}));
200
+ export var CaseFilter;
201
+ (function (CaseFilter) {
202
+ CaseFilter.visit = (value, visitor) => {
203
+ if (value.field !== undefined)
204
+ return visitor.field(value.field);
205
+ if (value.not !== undefined)
206
+ return visitor.not(value.not);
207
+ if (value.andAll !== undefined)
208
+ return visitor.andAll(value.andAll);
209
+ return visitor._(value.$unknown[0], value.$unknown[1]);
210
+ };
211
+ })(CaseFilter || (CaseFilter = {}));
212
+ export const FieldValueUnionFilterSensitiveLog = (obj) => {
213
+ if (obj.stringValue !== undefined)
214
+ return { stringValue: obj.stringValue };
215
+ if (obj.doubleValue !== undefined)
216
+ return { doubleValue: obj.doubleValue };
217
+ if (obj.booleanValue !== undefined)
218
+ return { booleanValue: obj.booleanValue };
219
+ if (obj.$unknown !== undefined)
220
+ return { [obj.$unknown[0]]: "UNKNOWN" };
221
+ };
222
+ export const FieldValueFilterSensitiveLog = (obj) => ({
223
+ ...obj,
224
+ ...(obj.value && { value: FieldValueUnionFilterSensitiveLog(obj.value) }),
225
+ });
226
+ export const CreateCaseRequestFilterSensitiveLog = (obj) => ({
227
+ ...obj,
228
+ ...(obj.fields && { fields: obj.fields.map((item) => FieldValueFilterSensitiveLog(item)) }),
229
+ });
230
+ export const CreateCaseResponseFilterSensitiveLog = (obj) => ({
231
+ ...obj,
232
+ });
233
+ export const FieldIdentifierFilterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ });
236
+ export const GetCaseRequestFilterSensitiveLog = (obj) => ({
237
+ ...obj,
238
+ });
239
+ export const GetCaseResponseFilterSensitiveLog = (obj) => ({
240
+ ...obj,
241
+ ...(obj.fields && { fields: obj.fields.map((item) => FieldValueFilterSensitiveLog(item)) }),
242
+ });
243
+ export const ListCasesForContactRequestFilterSensitiveLog = (obj) => ({
244
+ ...obj,
245
+ });
246
+ export const CaseSummaryFilterSensitiveLog = (obj) => ({
247
+ ...obj,
248
+ });
249
+ export const ListCasesForContactResponseFilterSensitiveLog = (obj) => ({
250
+ ...obj,
251
+ });
252
+ export const CommentContentFilterSensitiveLog = (obj) => ({
253
+ ...obj,
254
+ });
255
+ export const ContactFilterSensitiveLog = (obj) => ({
256
+ ...obj,
257
+ });
258
+ export const RelatedItemInputContentFilterSensitiveLog = (obj) => {
259
+ if (obj.contact !== undefined)
260
+ return { contact: ContactFilterSensitiveLog(obj.contact) };
261
+ if (obj.comment !== undefined)
262
+ return { comment: CommentContentFilterSensitiveLog(obj.comment) };
263
+ if (obj.$unknown !== undefined)
264
+ return { [obj.$unknown[0]]: "UNKNOWN" };
265
+ };
266
+ export const CreateRelatedItemRequestFilterSensitiveLog = (obj) => ({
267
+ ...obj,
268
+ ...(obj.content && { content: RelatedItemInputContentFilterSensitiveLog(obj.content) }),
269
+ });
270
+ export const CreateRelatedItemResponseFilterSensitiveLog = (obj) => ({
271
+ ...obj,
272
+ });
273
+ export const CommentFilterFilterSensitiveLog = (obj) => ({
274
+ ...obj,
275
+ });
276
+ export const ContactFilterFilterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ });
279
+ export const RelatedItemTypeFilterFilterSensitiveLog = (obj) => {
280
+ if (obj.contact !== undefined)
281
+ return { contact: ContactFilterFilterSensitiveLog(obj.contact) };
282
+ if (obj.comment !== undefined)
283
+ return { comment: CommentFilterFilterSensitiveLog(obj.comment) };
284
+ if (obj.$unknown !== undefined)
285
+ return { [obj.$unknown[0]]: "UNKNOWN" };
286
+ };
287
+ export const SearchRelatedItemsRequestFilterSensitiveLog = (obj) => ({
288
+ ...obj,
289
+ ...(obj.filters && { filters: obj.filters.map((item) => RelatedItemTypeFilterFilterSensitiveLog(item)) }),
290
+ });
291
+ export const ContactContentFilterSensitiveLog = (obj) => ({
292
+ ...obj,
293
+ });
294
+ export const RelatedItemContentFilterSensitiveLog = (obj) => {
295
+ if (obj.contact !== undefined)
296
+ return { contact: ContactContentFilterSensitiveLog(obj.contact) };
297
+ if (obj.comment !== undefined)
298
+ return { comment: CommentContentFilterSensitiveLog(obj.comment) };
299
+ if (obj.$unknown !== undefined)
300
+ return { [obj.$unknown[0]]: "UNKNOWN" };
301
+ };
302
+ export const SearchRelatedItemsResponseItemFilterSensitiveLog = (obj) => ({
303
+ ...obj,
304
+ ...(obj.content && { content: RelatedItemContentFilterSensitiveLog(obj.content) }),
305
+ });
306
+ export const SearchRelatedItemsResponseFilterSensitiveLog = (obj) => ({
307
+ ...obj,
308
+ ...(obj.relatedItems && {
309
+ relatedItems: obj.relatedItems.map((item) => SearchRelatedItemsResponseItemFilterSensitiveLog(item)),
310
+ }),
311
+ });
312
+ export const FieldFilterFilterSensitiveLog = (obj) => {
313
+ if (obj.equalTo !== undefined)
314
+ return { equalTo: FieldValueFilterSensitiveLog(obj.equalTo) };
315
+ if (obj.contains !== undefined)
316
+ return { contains: FieldValueFilterSensitiveLog(obj.contains) };
317
+ if (obj.greaterThan !== undefined)
318
+ return { greaterThan: FieldValueFilterSensitiveLog(obj.greaterThan) };
319
+ if (obj.greaterThanOrEqualTo !== undefined)
320
+ return { greaterThanOrEqualTo: FieldValueFilterSensitiveLog(obj.greaterThanOrEqualTo) };
321
+ if (obj.lessThan !== undefined)
322
+ return { lessThan: FieldValueFilterSensitiveLog(obj.lessThan) };
323
+ if (obj.lessThanOrEqualTo !== undefined)
324
+ return { lessThanOrEqualTo: FieldValueFilterSensitiveLog(obj.lessThanOrEqualTo) };
325
+ if (obj.$unknown !== undefined)
326
+ return { [obj.$unknown[0]]: "UNKNOWN" };
327
+ };
328
+ export const SortFilterSensitiveLog = (obj) => ({
329
+ ...obj,
330
+ });
331
+ export const SearchCasesResponseItemFilterSensitiveLog = (obj) => ({
332
+ ...obj,
333
+ ...(obj.fields && { fields: obj.fields.map((item) => FieldValueFilterSensitiveLog(item)) }),
334
+ });
335
+ export const SearchCasesResponseFilterSensitiveLog = (obj) => ({
336
+ ...obj,
337
+ });
338
+ export const UpdateCaseRequestFilterSensitiveLog = (obj) => ({
339
+ ...obj,
340
+ ...(obj.fields && { fields: obj.fields.map((item) => FieldValueFilterSensitiveLog(item)) }),
341
+ });
342
+ export const UpdateCaseResponseFilterSensitiveLog = (obj) => ({
343
+ ...obj,
344
+ });
345
+ export const CreateDomainRequestFilterSensitiveLog = (obj) => ({
346
+ ...obj,
347
+ });
348
+ export const CreateDomainResponseFilterSensitiveLog = (obj) => ({
349
+ ...obj,
350
+ });
351
+ export const GetCaseEventConfigurationRequestFilterSensitiveLog = (obj) => ({
352
+ ...obj,
353
+ });
354
+ export const CaseEventIncludedDataFilterSensitiveLog = (obj) => ({
355
+ ...obj,
356
+ });
357
+ export const RelatedItemEventIncludedDataFilterSensitiveLog = (obj) => ({
358
+ ...obj,
359
+ });
360
+ export const EventIncludedDataFilterSensitiveLog = (obj) => ({
361
+ ...obj,
362
+ });
363
+ export const EventBridgeConfigurationFilterSensitiveLog = (obj) => ({
364
+ ...obj,
365
+ });
366
+ export const GetCaseEventConfigurationResponseFilterSensitiveLog = (obj) => ({
367
+ ...obj,
368
+ });
369
+ export const GetDomainRequestFilterSensitiveLog = (obj) => ({
370
+ ...obj,
371
+ });
372
+ export const GetDomainResponseFilterSensitiveLog = (obj) => ({
373
+ ...obj,
374
+ });
375
+ export const ListDomainsRequestFilterSensitiveLog = (obj) => ({
376
+ ...obj,
377
+ });
378
+ export const DomainSummaryFilterSensitiveLog = (obj) => ({
379
+ ...obj,
380
+ });
381
+ export const ListDomainsResponseFilterSensitiveLog = (obj) => ({
382
+ ...obj,
383
+ });
384
+ export const PutCaseEventConfigurationRequestFilterSensitiveLog = (obj) => ({
385
+ ...obj,
386
+ });
387
+ export const PutCaseEventConfigurationResponseFilterSensitiveLog = (obj) => ({
388
+ ...obj,
389
+ });
390
+ export const BatchGetFieldRequestFilterSensitiveLog = (obj) => ({
391
+ ...obj,
392
+ });
393
+ export const FieldErrorFilterSensitiveLog = (obj) => ({
394
+ ...obj,
395
+ });
396
+ export const GetFieldResponseFilterSensitiveLog = (obj) => ({
397
+ ...obj,
398
+ });
399
+ export const BatchGetFieldResponseFilterSensitiveLog = (obj) => ({
400
+ ...obj,
401
+ });
402
+ export const FieldOptionFilterSensitiveLog = (obj) => ({
403
+ ...obj,
404
+ });
405
+ export const BatchPutFieldOptionsRequestFilterSensitiveLog = (obj) => ({
406
+ ...obj,
407
+ });
408
+ export const FieldOptionErrorFilterSensitiveLog = (obj) => ({
409
+ ...obj,
410
+ });
411
+ export const BatchPutFieldOptionsResponseFilterSensitiveLog = (obj) => ({
412
+ ...obj,
413
+ });
414
+ export const CreateFieldRequestFilterSensitiveLog = (obj) => ({
415
+ ...obj,
416
+ });
417
+ export const CreateFieldResponseFilterSensitiveLog = (obj) => ({
418
+ ...obj,
419
+ });
420
+ export const ListFieldOptionsRequestFilterSensitiveLog = (obj) => ({
421
+ ...obj,
422
+ });
423
+ export const ListFieldOptionsResponseFilterSensitiveLog = (obj) => ({
424
+ ...obj,
425
+ });
426
+ export const ListFieldsRequestFilterSensitiveLog = (obj) => ({
427
+ ...obj,
428
+ });
429
+ export const FieldSummaryFilterSensitiveLog = (obj) => ({
430
+ ...obj,
431
+ });
432
+ export const ListFieldsResponseFilterSensitiveLog = (obj) => ({
433
+ ...obj,
434
+ });
435
+ export const UpdateFieldRequestFilterSensitiveLog = (obj) => ({
436
+ ...obj,
437
+ });
438
+ export const UpdateFieldResponseFilterSensitiveLog = (obj) => ({
439
+ ...obj,
440
+ });
441
+ export const FieldItemFilterSensitiveLog = (obj) => ({
442
+ ...obj,
443
+ });
444
+ export const FieldGroupFilterSensitiveLog = (obj) => ({
445
+ ...obj,
446
+ });
447
+ export const SectionFilterSensitiveLog = (obj) => {
448
+ if (obj.fieldGroup !== undefined)
449
+ return { fieldGroup: FieldGroupFilterSensitiveLog(obj.fieldGroup) };
450
+ if (obj.$unknown !== undefined)
451
+ return { [obj.$unknown[0]]: "UNKNOWN" };
452
+ };
453
+ export const LayoutSectionsFilterSensitiveLog = (obj) => ({
454
+ ...obj,
455
+ ...(obj.sections && { sections: obj.sections.map((item) => SectionFilterSensitiveLog(item)) }),
456
+ });
457
+ export const BasicLayoutFilterSensitiveLog = (obj) => ({
458
+ ...obj,
459
+ ...(obj.topPanel && { topPanel: LayoutSectionsFilterSensitiveLog(obj.topPanel) }),
460
+ ...(obj.moreInfo && { moreInfo: LayoutSectionsFilterSensitiveLog(obj.moreInfo) }),
461
+ });
462
+ export const LayoutContentFilterSensitiveLog = (obj) => {
463
+ if (obj.basic !== undefined)
464
+ return { basic: BasicLayoutFilterSensitiveLog(obj.basic) };
465
+ if (obj.$unknown !== undefined)
466
+ return { [obj.$unknown[0]]: "UNKNOWN" };
467
+ };
468
+ export const CreateLayoutRequestFilterSensitiveLog = (obj) => ({
469
+ ...obj,
470
+ ...(obj.content && { content: LayoutContentFilterSensitiveLog(obj.content) }),
471
+ });
472
+ export const CreateLayoutResponseFilterSensitiveLog = (obj) => ({
473
+ ...obj,
474
+ });
475
+ export const GetLayoutRequestFilterSensitiveLog = (obj) => ({
476
+ ...obj,
477
+ });
478
+ export const GetLayoutResponseFilterSensitiveLog = (obj) => ({
479
+ ...obj,
480
+ ...(obj.content && { content: LayoutContentFilterSensitiveLog(obj.content) }),
481
+ });
482
+ export const ListLayoutsRequestFilterSensitiveLog = (obj) => ({
483
+ ...obj,
484
+ });
485
+ export const LayoutSummaryFilterSensitiveLog = (obj) => ({
486
+ ...obj,
487
+ });
488
+ export const ListLayoutsResponseFilterSensitiveLog = (obj) => ({
489
+ ...obj,
490
+ });
491
+ export const UpdateLayoutRequestFilterSensitiveLog = (obj) => ({
492
+ ...obj,
493
+ ...(obj.content && { content: LayoutContentFilterSensitiveLog(obj.content) }),
494
+ });
495
+ export const UpdateLayoutResponseFilterSensitiveLog = (obj) => ({
496
+ ...obj,
497
+ });
498
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
499
+ ...obj,
500
+ });
501
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
502
+ ...obj,
503
+ });
504
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
505
+ ...obj,
506
+ });
507
+ export const LayoutConfigurationFilterSensitiveLog = (obj) => ({
508
+ ...obj,
509
+ });
510
+ export const RequiredFieldFilterSensitiveLog = (obj) => ({
511
+ ...obj,
512
+ });
513
+ export const CreateTemplateRequestFilterSensitiveLog = (obj) => ({
514
+ ...obj,
515
+ });
516
+ export const CreateTemplateResponseFilterSensitiveLog = (obj) => ({
517
+ ...obj,
518
+ });
519
+ export const GetTemplateRequestFilterSensitiveLog = (obj) => ({
520
+ ...obj,
521
+ });
522
+ export const GetTemplateResponseFilterSensitiveLog = (obj) => ({
523
+ ...obj,
524
+ });
525
+ export const ListTemplatesRequestFilterSensitiveLog = (obj) => ({
526
+ ...obj,
527
+ });
528
+ export const TemplateSummaryFilterSensitiveLog = (obj) => ({
529
+ ...obj,
530
+ });
531
+ export const ListTemplatesResponseFilterSensitiveLog = (obj) => ({
532
+ ...obj,
533
+ });
534
+ export const UpdateTemplateRequestFilterSensitiveLog = (obj) => ({
535
+ ...obj,
536
+ });
537
+ export const UpdateTemplateResponseFilterSensitiveLog = (obj) => ({
538
+ ...obj,
539
+ });
540
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
541
+ ...obj,
542
+ });
543
+ export const CaseFilterFilterSensitiveLog = (obj) => {
544
+ if (obj.field !== undefined)
545
+ return { field: FieldFilterFilterSensitiveLog(obj.field) };
546
+ if (obj.not !== undefined)
547
+ return { not: CaseFilterFilterSensitiveLog(obj.not) };
548
+ if (obj.andAll !== undefined)
549
+ return { andAll: obj.andAll.map((item) => CaseFilterFilterSensitiveLog(item)) };
550
+ if (obj.$unknown !== undefined)
551
+ return { [obj.$unknown[0]]: "UNKNOWN" };
552
+ };
553
+ export const SearchCasesRequestFilterSensitiveLog = (obj) => ({
554
+ ...obj,
555
+ ...(obj.filter && { filter: CaseFilterFilterSensitiveLog(obj.filter) }),
556
+ });
@@ -0,0 +1,31 @@
1
+ import { GetCaseCommand } from "../commands/GetCaseCommand";
2
+ import { ConnectCases } from "../ConnectCases";
3
+ import { ConnectCasesClient } from "../ConnectCasesClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new GetCaseCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.getCase(input, ...args);
9
+ };
10
+ export async function* paginateGetCase(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ if (config.client instanceof ConnectCases) {
17
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else if (config.client instanceof ConnectCasesClient) {
20
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
21
+ }
22
+ else {
23
+ throw new Error("Invalid client, expected ConnectCases | ConnectCasesClient");
24
+ }
25
+ yield page;
26
+ const prevToken = token;
27
+ token = page.nextToken;
28
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
29
+ }
30
+ return undefined;
31
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ import { ListCasesForContactCommand, } from "../commands/ListCasesForContactCommand";
2
+ import { ConnectCases } from "../ConnectCases";
3
+ import { ConnectCasesClient } from "../ConnectCasesClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListCasesForContactCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listCasesForContact(input, ...args);
9
+ };
10
+ export async function* paginateListCasesForContact(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof ConnectCases) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof ConnectCasesClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected ConnectCases | ConnectCasesClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { ListDomainsCommand } from "../commands/ListDomainsCommand";
2
+ import { ConnectCases } from "../ConnectCases";
3
+ import { ConnectCasesClient } from "../ConnectCasesClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListDomainsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listDomains(input, ...args);
9
+ };
10
+ export async function* paginateListDomains(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof ConnectCases) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof ConnectCasesClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected ConnectCases | ConnectCasesClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { ListFieldOptionsCommand, } from "../commands/ListFieldOptionsCommand";
2
+ import { ConnectCases } from "../ConnectCases";
3
+ import { ConnectCasesClient } from "../ConnectCasesClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListFieldOptionsCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listFieldOptions(input, ...args);
9
+ };
10
+ export async function* paginateListFieldOptions(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof ConnectCases) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof ConnectCasesClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected ConnectCases | ConnectCasesClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }