@aws-sdk/client-connectcases 3.278.0 → 3.281.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/README.md +248 -6
- package/dist-cjs/ConnectCases.js +15 -0
- package/dist-cjs/commands/DeleteDomainCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +10 -2
- package/dist-cjs/protocols/Aws_restJson1.js +65 -2
- package/dist-es/ConnectCases.js +15 -0
- package/dist-es/commands/DeleteDomainCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +61 -0
- package/dist-types/ConnectCases.d.ts +37 -9
- package/dist-types/ConnectCasesClient.d.ts +8 -8
- package/dist-types/commands/BatchGetFieldCommand.d.ts +6 -0
- package/dist-types/commands/BatchPutFieldOptionsCommand.d.ts +6 -0
- package/dist-types/commands/CreateCaseCommand.d.ts +23 -2
- package/dist-types/commands/CreateDomainCommand.d.ts +9 -1
- package/dist-types/commands/CreateFieldCommand.d.ts +6 -0
- package/dist-types/commands/CreateLayoutCommand.d.ts +6 -0
- package/dist-types/commands/CreateRelatedItemCommand.d.ts +6 -0
- package/dist-types/commands/CreateTemplateCommand.d.ts +6 -0
- package/dist-types/commands/DeleteDomainCommand.d.ts +43 -0
- package/dist-types/commands/GetCaseCommand.d.ts +6 -0
- package/dist-types/commands/GetCaseEventConfigurationCommand.d.ts +6 -0
- package/dist-types/commands/GetDomainCommand.d.ts +6 -0
- package/dist-types/commands/GetLayoutCommand.d.ts +6 -0
- package/dist-types/commands/GetTemplateCommand.d.ts +6 -0
- package/dist-types/commands/ListCasesForContactCommand.d.ts +6 -0
- package/dist-types/commands/ListDomainsCommand.d.ts +6 -0
- package/dist-types/commands/ListFieldOptionsCommand.d.ts +6 -0
- package/dist-types/commands/ListFieldsCommand.d.ts +6 -0
- package/dist-types/commands/ListLayoutsCommand.d.ts +6 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -0
- package/dist-types/commands/ListTemplatesCommand.d.ts +6 -0
- package/dist-types/commands/PutCaseEventConfigurationCommand.d.ts +6 -0
- package/dist-types/commands/SearchCasesCommand.d.ts +11 -0
- package/dist-types/commands/SearchRelatedItemsCommand.d.ts +6 -0
- package/dist-types/commands/TagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateCaseCommand.d.ts +6 -0
- package/dist-types/commands/UpdateFieldCommand.d.ts +6 -0
- package/dist-types/commands/UpdateLayoutCommand.d.ts +6 -0
- package/dist-types/commands/UpdateTemplateCommand.d.ts +6 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +16 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/ConnectCases.d.ts +17 -0
- package/dist-types/ts3.4/ConnectCasesClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DeleteDomainCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -9,12 +9,11 @@
|
|
|
9
9
|
|
|
10
10
|
AWS SDK for JavaScript ConnectCases Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
|
-
<p>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
<i>Amazon Connect Administrator Guide</i>. </p>
|
|
12
|
+
<p>With Amazon Connect Cases, your agents can track and manage customer issues that require
|
|
13
|
+
multiple interactions, follow-up tasks, and teams in your contact center. A case represents a
|
|
14
|
+
customer issue. It records the issue, the steps and interactions taken to resolve the issue,
|
|
15
|
+
and the outcome. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the
|
|
16
|
+
<i>Amazon Connect Administrator Guide</i>.</p>
|
|
18
17
|
|
|
19
18
|
## Installing
|
|
20
19
|
|
|
@@ -208,3 +207,246 @@ To contribute to client you can check our [generate clients scripts](https://git
|
|
|
208
207
|
This SDK is distributed under the
|
|
209
208
|
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
|
|
210
209
|
see LICENSE for more information.
|
|
210
|
+
|
|
211
|
+
## Client Commands (Operations List)
|
|
212
|
+
|
|
213
|
+
<details>
|
|
214
|
+
<summary>
|
|
215
|
+
BatchGetField
|
|
216
|
+
</summary>
|
|
217
|
+
|
|
218
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/batchgetfieldcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/batchgetfieldcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/batchgetfieldcommandoutput.html)
|
|
219
|
+
|
|
220
|
+
</details>
|
|
221
|
+
<details>
|
|
222
|
+
<summary>
|
|
223
|
+
BatchPutFieldOptions
|
|
224
|
+
</summary>
|
|
225
|
+
|
|
226
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/batchputfieldoptionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/batchputfieldoptionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/batchputfieldoptionscommandoutput.html)
|
|
227
|
+
|
|
228
|
+
</details>
|
|
229
|
+
<details>
|
|
230
|
+
<summary>
|
|
231
|
+
CreateCase
|
|
232
|
+
</summary>
|
|
233
|
+
|
|
234
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/createcasecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createcasecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createcasecommandoutput.html)
|
|
235
|
+
|
|
236
|
+
</details>
|
|
237
|
+
<details>
|
|
238
|
+
<summary>
|
|
239
|
+
CreateDomain
|
|
240
|
+
</summary>
|
|
241
|
+
|
|
242
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/createdomaincommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createdomaincommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createdomaincommandoutput.html)
|
|
243
|
+
|
|
244
|
+
</details>
|
|
245
|
+
<details>
|
|
246
|
+
<summary>
|
|
247
|
+
CreateField
|
|
248
|
+
</summary>
|
|
249
|
+
|
|
250
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/createfieldcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createfieldcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createfieldcommandoutput.html)
|
|
251
|
+
|
|
252
|
+
</details>
|
|
253
|
+
<details>
|
|
254
|
+
<summary>
|
|
255
|
+
CreateLayout
|
|
256
|
+
</summary>
|
|
257
|
+
|
|
258
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/createlayoutcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createlayoutcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createlayoutcommandoutput.html)
|
|
259
|
+
|
|
260
|
+
</details>
|
|
261
|
+
<details>
|
|
262
|
+
<summary>
|
|
263
|
+
CreateRelatedItem
|
|
264
|
+
</summary>
|
|
265
|
+
|
|
266
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/createrelateditemcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createrelateditemcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createrelateditemcommandoutput.html)
|
|
267
|
+
|
|
268
|
+
</details>
|
|
269
|
+
<details>
|
|
270
|
+
<summary>
|
|
271
|
+
CreateTemplate
|
|
272
|
+
</summary>
|
|
273
|
+
|
|
274
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/createtemplatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createtemplatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/createtemplatecommandoutput.html)
|
|
275
|
+
|
|
276
|
+
</details>
|
|
277
|
+
<details>
|
|
278
|
+
<summary>
|
|
279
|
+
DeleteDomain
|
|
280
|
+
</summary>
|
|
281
|
+
|
|
282
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/deletedomaincommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/deletedomaincommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/deletedomaincommandoutput.html)
|
|
283
|
+
|
|
284
|
+
</details>
|
|
285
|
+
<details>
|
|
286
|
+
<summary>
|
|
287
|
+
GetCase
|
|
288
|
+
</summary>
|
|
289
|
+
|
|
290
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/getcasecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/getcasecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/getcasecommandoutput.html)
|
|
291
|
+
|
|
292
|
+
</details>
|
|
293
|
+
<details>
|
|
294
|
+
<summary>
|
|
295
|
+
GetCaseEventConfiguration
|
|
296
|
+
</summary>
|
|
297
|
+
|
|
298
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/getcaseeventconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/getcaseeventconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/getcaseeventconfigurationcommandoutput.html)
|
|
299
|
+
|
|
300
|
+
</details>
|
|
301
|
+
<details>
|
|
302
|
+
<summary>
|
|
303
|
+
GetDomain
|
|
304
|
+
</summary>
|
|
305
|
+
|
|
306
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/getdomaincommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/getdomaincommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/getdomaincommandoutput.html)
|
|
307
|
+
|
|
308
|
+
</details>
|
|
309
|
+
<details>
|
|
310
|
+
<summary>
|
|
311
|
+
GetLayout
|
|
312
|
+
</summary>
|
|
313
|
+
|
|
314
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/getlayoutcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/getlayoutcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/getlayoutcommandoutput.html)
|
|
315
|
+
|
|
316
|
+
</details>
|
|
317
|
+
<details>
|
|
318
|
+
<summary>
|
|
319
|
+
GetTemplate
|
|
320
|
+
</summary>
|
|
321
|
+
|
|
322
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/gettemplatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/gettemplatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/gettemplatecommandoutput.html)
|
|
323
|
+
|
|
324
|
+
</details>
|
|
325
|
+
<details>
|
|
326
|
+
<summary>
|
|
327
|
+
ListCasesForContact
|
|
328
|
+
</summary>
|
|
329
|
+
|
|
330
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/listcasesforcontactcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listcasesforcontactcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listcasesforcontactcommandoutput.html)
|
|
331
|
+
|
|
332
|
+
</details>
|
|
333
|
+
<details>
|
|
334
|
+
<summary>
|
|
335
|
+
ListDomains
|
|
336
|
+
</summary>
|
|
337
|
+
|
|
338
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/listdomainscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listdomainscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listdomainscommandoutput.html)
|
|
339
|
+
|
|
340
|
+
</details>
|
|
341
|
+
<details>
|
|
342
|
+
<summary>
|
|
343
|
+
ListFieldOptions
|
|
344
|
+
</summary>
|
|
345
|
+
|
|
346
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/listfieldoptionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listfieldoptionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listfieldoptionscommandoutput.html)
|
|
347
|
+
|
|
348
|
+
</details>
|
|
349
|
+
<details>
|
|
350
|
+
<summary>
|
|
351
|
+
ListFields
|
|
352
|
+
</summary>
|
|
353
|
+
|
|
354
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/listfieldscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listfieldscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listfieldscommandoutput.html)
|
|
355
|
+
|
|
356
|
+
</details>
|
|
357
|
+
<details>
|
|
358
|
+
<summary>
|
|
359
|
+
ListLayouts
|
|
360
|
+
</summary>
|
|
361
|
+
|
|
362
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/listlayoutscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listlayoutscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listlayoutscommandoutput.html)
|
|
363
|
+
|
|
364
|
+
</details>
|
|
365
|
+
<details>
|
|
366
|
+
<summary>
|
|
367
|
+
ListTagsForResource
|
|
368
|
+
</summary>
|
|
369
|
+
|
|
370
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/listtagsforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listtagsforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listtagsforresourcecommandoutput.html)
|
|
371
|
+
|
|
372
|
+
</details>
|
|
373
|
+
<details>
|
|
374
|
+
<summary>
|
|
375
|
+
ListTemplates
|
|
376
|
+
</summary>
|
|
377
|
+
|
|
378
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/listtemplatescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listtemplatescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/listtemplatescommandoutput.html)
|
|
379
|
+
|
|
380
|
+
</details>
|
|
381
|
+
<details>
|
|
382
|
+
<summary>
|
|
383
|
+
PutCaseEventConfiguration
|
|
384
|
+
</summary>
|
|
385
|
+
|
|
386
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/putcaseeventconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/putcaseeventconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/putcaseeventconfigurationcommandoutput.html)
|
|
387
|
+
|
|
388
|
+
</details>
|
|
389
|
+
<details>
|
|
390
|
+
<summary>
|
|
391
|
+
SearchCases
|
|
392
|
+
</summary>
|
|
393
|
+
|
|
394
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/searchcasescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/searchcasescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/searchcasescommandoutput.html)
|
|
395
|
+
|
|
396
|
+
</details>
|
|
397
|
+
<details>
|
|
398
|
+
<summary>
|
|
399
|
+
SearchRelatedItems
|
|
400
|
+
</summary>
|
|
401
|
+
|
|
402
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/searchrelateditemscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/searchrelateditemscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/searchrelateditemscommandoutput.html)
|
|
403
|
+
|
|
404
|
+
</details>
|
|
405
|
+
<details>
|
|
406
|
+
<summary>
|
|
407
|
+
TagResource
|
|
408
|
+
</summary>
|
|
409
|
+
|
|
410
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/tagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/tagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/tagresourcecommandoutput.html)
|
|
411
|
+
|
|
412
|
+
</details>
|
|
413
|
+
<details>
|
|
414
|
+
<summary>
|
|
415
|
+
UntagResource
|
|
416
|
+
</summary>
|
|
417
|
+
|
|
418
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/untagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/untagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/untagresourcecommandoutput.html)
|
|
419
|
+
|
|
420
|
+
</details>
|
|
421
|
+
<details>
|
|
422
|
+
<summary>
|
|
423
|
+
UpdateCase
|
|
424
|
+
</summary>
|
|
425
|
+
|
|
426
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/updatecasecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/updatecasecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/updatecasecommandoutput.html)
|
|
427
|
+
|
|
428
|
+
</details>
|
|
429
|
+
<details>
|
|
430
|
+
<summary>
|
|
431
|
+
UpdateField
|
|
432
|
+
</summary>
|
|
433
|
+
|
|
434
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/updatefieldcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/updatefieldcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/updatefieldcommandoutput.html)
|
|
435
|
+
|
|
436
|
+
</details>
|
|
437
|
+
<details>
|
|
438
|
+
<summary>
|
|
439
|
+
UpdateLayout
|
|
440
|
+
</summary>
|
|
441
|
+
|
|
442
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/updatelayoutcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/updatelayoutcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/updatelayoutcommandoutput.html)
|
|
443
|
+
|
|
444
|
+
</details>
|
|
445
|
+
<details>
|
|
446
|
+
<summary>
|
|
447
|
+
UpdateTemplate
|
|
448
|
+
</summary>
|
|
449
|
+
|
|
450
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/classes/updatetemplatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/updatetemplatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-connectcases/interfaces/updatetemplatecommandoutput.html)
|
|
451
|
+
|
|
452
|
+
</details>
|
package/dist-cjs/ConnectCases.js
CHANGED
|
@@ -9,6 +9,7 @@ const CreateFieldCommand_1 = require("./commands/CreateFieldCommand");
|
|
|
9
9
|
const CreateLayoutCommand_1 = require("./commands/CreateLayoutCommand");
|
|
10
10
|
const CreateRelatedItemCommand_1 = require("./commands/CreateRelatedItemCommand");
|
|
11
11
|
const CreateTemplateCommand_1 = require("./commands/CreateTemplateCommand");
|
|
12
|
+
const DeleteDomainCommand_1 = require("./commands/DeleteDomainCommand");
|
|
12
13
|
const GetCaseCommand_1 = require("./commands/GetCaseCommand");
|
|
13
14
|
const GetCaseEventConfigurationCommand_1 = require("./commands/GetCaseEventConfigurationCommand");
|
|
14
15
|
const GetDomainCommand_1 = require("./commands/GetDomainCommand");
|
|
@@ -144,6 +145,20 @@ class ConnectCases extends ConnectCasesClient_1.ConnectCasesClient {
|
|
|
144
145
|
return this.send(command, optionsOrCb);
|
|
145
146
|
}
|
|
146
147
|
}
|
|
148
|
+
deleteDomain(args, optionsOrCb, cb) {
|
|
149
|
+
const command = new DeleteDomainCommand_1.DeleteDomainCommand(args);
|
|
150
|
+
if (typeof optionsOrCb === "function") {
|
|
151
|
+
this.send(command, optionsOrCb);
|
|
152
|
+
}
|
|
153
|
+
else if (typeof cb === "function") {
|
|
154
|
+
if (typeof optionsOrCb !== "object")
|
|
155
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
156
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
return this.send(command, optionsOrCb);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
147
162
|
getCase(args, optionsOrCb, cb) {
|
|
148
163
|
const command = new GetCaseCommand_1.GetCaseCommand(args);
|
|
149
164
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteDomainCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteDomainCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteDomainCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ConnectCasesClient";
|
|
28
|
+
const commandName = "DeleteDomainCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteDomainRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteDomainResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteDomainCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteDomainCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteDomainCommand = DeleteDomainCommand;
|
|
@@ -9,6 +9,7 @@ tslib_1.__exportStar(require("./CreateFieldCommand"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./CreateLayoutCommand"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./CreateRelatedItemCommand"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./CreateTemplateCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DeleteDomainCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./GetCaseCommand"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./GetCaseEventConfigurationCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./GetDomainCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateCaseRequestFilterSensitiveLog = exports.SearchCasesResponseFilterSensitiveLog = exports.SearchCasesResponseItemFilterSensitiveLog = exports.SortFilterSensitiveLog = exports.FieldFilterFilterSensitiveLog = exports.SearchRelatedItemsResponseFilterSensitiveLog = exports.SearchRelatedItemsResponseItemFilterSensitiveLog = exports.RelatedItemContentFilterSensitiveLog = exports.ContactContentFilterSensitiveLog = exports.SearchRelatedItemsRequestFilterSensitiveLog = exports.RelatedItemTypeFilterFilterSensitiveLog = exports.ContactFilterFilterSensitiveLog = exports.CommentFilterFilterSensitiveLog = exports.CreateRelatedItemResponseFilterSensitiveLog = exports.CreateRelatedItemRequestFilterSensitiveLog = exports.RelatedItemInputContentFilterSensitiveLog = exports.ContactFilterSensitiveLog = exports.CommentContentFilterSensitiveLog = exports.ListCasesForContactResponseFilterSensitiveLog = exports.CaseSummaryFilterSensitiveLog = exports.ListCasesForContactRequestFilterSensitiveLog = exports.GetCaseResponseFilterSensitiveLog = exports.GetCaseRequestFilterSensitiveLog = exports.FieldIdentifierFilterSensitiveLog = exports.CreateCaseResponseFilterSensitiveLog = exports.CreateCaseRequestFilterSensitiveLog = exports.FieldValueFilterSensitiveLog = exports.FieldValueUnionFilterSensitiveLog = exports.CaseFilter = exports.TemplateStatus = exports.LayoutContent = exports.Section = exports.FieldType = exports.FieldNamespace = exports.DomainStatus = exports.Order = exports.FieldFilter = exports.RelatedItemContent = exports.RelatedItemTypeFilter = exports.ServiceQuotaExceededException = exports.RelatedItemType = exports.RelatedItemInputContent = exports.CommentBodyTextType = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.FieldValueUnion = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.SearchCasesRequestFilterSensitiveLog = exports.CaseFilterFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.UpdateTemplateResponseFilterSensitiveLog = exports.UpdateTemplateRequestFilterSensitiveLog = exports.ListTemplatesResponseFilterSensitiveLog = exports.TemplateSummaryFilterSensitiveLog = exports.ListTemplatesRequestFilterSensitiveLog = exports.GetTemplateResponseFilterSensitiveLog = exports.GetTemplateRequestFilterSensitiveLog = exports.CreateTemplateResponseFilterSensitiveLog = exports.CreateTemplateRequestFilterSensitiveLog = exports.RequiredFieldFilterSensitiveLog = exports.LayoutConfigurationFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = void 0;
|
|
4
|
+
exports.UpdateLayoutResponseFilterSensitiveLog = exports.UpdateLayoutRequestFilterSensitiveLog = exports.ListLayoutsResponseFilterSensitiveLog = exports.LayoutSummaryFilterSensitiveLog = exports.ListLayoutsRequestFilterSensitiveLog = exports.GetLayoutResponseFilterSensitiveLog = exports.GetLayoutRequestFilterSensitiveLog = exports.CreateLayoutResponseFilterSensitiveLog = exports.CreateLayoutRequestFilterSensitiveLog = exports.LayoutContentFilterSensitiveLog = exports.BasicLayoutFilterSensitiveLog = exports.LayoutSectionsFilterSensitiveLog = exports.SectionFilterSensitiveLog = exports.FieldGroupFilterSensitiveLog = exports.FieldItemFilterSensitiveLog = exports.UpdateFieldResponseFilterSensitiveLog = exports.UpdateFieldRequestFilterSensitiveLog = exports.ListFieldsResponseFilterSensitiveLog = exports.FieldSummaryFilterSensitiveLog = exports.ListFieldsRequestFilterSensitiveLog = exports.ListFieldOptionsResponseFilterSensitiveLog = exports.ListFieldOptionsRequestFilterSensitiveLog = exports.CreateFieldResponseFilterSensitiveLog = exports.CreateFieldRequestFilterSensitiveLog = exports.BatchPutFieldOptionsResponseFilterSensitiveLog = exports.FieldOptionErrorFilterSensitiveLog = exports.BatchPutFieldOptionsRequestFilterSensitiveLog = exports.FieldOptionFilterSensitiveLog = exports.BatchGetFieldResponseFilterSensitiveLog = exports.GetFieldResponseFilterSensitiveLog = exports.FieldErrorFilterSensitiveLog = exports.BatchGetFieldRequestFilterSensitiveLog = exports.PutCaseEventConfigurationResponseFilterSensitiveLog = exports.PutCaseEventConfigurationRequestFilterSensitiveLog = exports.ListDomainsResponseFilterSensitiveLog = exports.DomainSummaryFilterSensitiveLog = exports.ListDomainsRequestFilterSensitiveLog = exports.GetDomainResponseFilterSensitiveLog = exports.GetDomainRequestFilterSensitiveLog = exports.GetCaseEventConfigurationResponseFilterSensitiveLog = exports.EventBridgeConfigurationFilterSensitiveLog = exports.EventIncludedDataFilterSensitiveLog = exports.RelatedItemEventIncludedDataFilterSensitiveLog = exports.CaseEventIncludedDataFilterSensitiveLog = exports.GetCaseEventConfigurationRequestFilterSensitiveLog = exports.DeleteDomainResponseFilterSensitiveLog = exports.DeleteDomainRequestFilterSensitiveLog = exports.CreateDomainResponseFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.UpdateCaseResponseFilterSensitiveLog = void 0;
|
|
5
|
+
exports.SearchCasesRequestFilterSensitiveLog = exports.CaseFilterFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.UpdateTemplateResponseFilterSensitiveLog = exports.UpdateTemplateRequestFilterSensitiveLog = exports.ListTemplatesResponseFilterSensitiveLog = exports.TemplateSummaryFilterSensitiveLog = exports.ListTemplatesRequestFilterSensitiveLog = exports.GetTemplateResponseFilterSensitiveLog = exports.GetTemplateRequestFilterSensitiveLog = exports.CreateTemplateResponseFilterSensitiveLog = exports.CreateTemplateRequestFilterSensitiveLog = exports.RequiredFieldFilterSensitiveLog = exports.LayoutConfigurationFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = void 0;
|
|
6
6
|
const ConnectCasesServiceException_1 = require("./ConnectCasesServiceException");
|
|
7
7
|
class AccessDeniedException extends ConnectCasesServiceException_1.ConnectCasesServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -396,6 +396,14 @@ const CreateDomainResponseFilterSensitiveLog = (obj) => ({
|
|
|
396
396
|
...obj,
|
|
397
397
|
});
|
|
398
398
|
exports.CreateDomainResponseFilterSensitiveLog = CreateDomainResponseFilterSensitiveLog;
|
|
399
|
+
const DeleteDomainRequestFilterSensitiveLog = (obj) => ({
|
|
400
|
+
...obj,
|
|
401
|
+
});
|
|
402
|
+
exports.DeleteDomainRequestFilterSensitiveLog = DeleteDomainRequestFilterSensitiveLog;
|
|
403
|
+
const DeleteDomainResponseFilterSensitiveLog = (obj) => ({
|
|
404
|
+
...obj,
|
|
405
|
+
});
|
|
406
|
+
exports.DeleteDomainResponseFilterSensitiveLog = DeleteDomainResponseFilterSensitiveLog;
|
|
399
407
|
const GetCaseEventConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
400
408
|
...obj,
|
|
401
409
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateTemplateCommand = exports.deserializeAws_restJson1UpdateLayoutCommand = exports.deserializeAws_restJson1UpdateFieldCommand = exports.deserializeAws_restJson1UpdateCaseCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchRelatedItemsCommand = exports.deserializeAws_restJson1SearchCasesCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListLayoutsCommand = exports.deserializeAws_restJson1ListFieldsCommand = exports.deserializeAws_restJson1ListFieldOptionsCommand = exports.deserializeAws_restJson1ListDomainsCommand = exports.deserializeAws_restJson1ListCasesForContactCommand = exports.deserializeAws_restJson1GetTemplateCommand = exports.deserializeAws_restJson1GetLayoutCommand = exports.deserializeAws_restJson1GetDomainCommand = exports.deserializeAws_restJson1GetCaseEventConfigurationCommand = exports.deserializeAws_restJson1GetCaseCommand = exports.deserializeAws_restJson1DeleteDomainCommand = exports.deserializeAws_restJson1CreateTemplateCommand = exports.deserializeAws_restJson1CreateRelatedItemCommand = exports.deserializeAws_restJson1CreateLayoutCommand = exports.deserializeAws_restJson1CreateFieldCommand = exports.deserializeAws_restJson1CreateDomainCommand = exports.deserializeAws_restJson1CreateCaseCommand = exports.deserializeAws_restJson1BatchPutFieldOptionsCommand = exports.deserializeAws_restJson1BatchGetFieldCommand = exports.serializeAws_restJson1UpdateTemplateCommand = exports.serializeAws_restJson1UpdateLayoutCommand = exports.serializeAws_restJson1UpdateFieldCommand = exports.serializeAws_restJson1UpdateCaseCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchRelatedItemsCommand = exports.serializeAws_restJson1SearchCasesCommand = exports.serializeAws_restJson1PutCaseEventConfigurationCommand = exports.serializeAws_restJson1ListTemplatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListLayoutsCommand = exports.serializeAws_restJson1ListFieldsCommand = exports.serializeAws_restJson1ListFieldOptionsCommand = exports.serializeAws_restJson1ListDomainsCommand = exports.serializeAws_restJson1ListCasesForContactCommand = exports.serializeAws_restJson1GetTemplateCommand = exports.serializeAws_restJson1GetLayoutCommand = exports.serializeAws_restJson1GetDomainCommand = exports.serializeAws_restJson1GetCaseEventConfigurationCommand = exports.serializeAws_restJson1GetCaseCommand = exports.serializeAws_restJson1DeleteDomainCommand = exports.serializeAws_restJson1CreateTemplateCommand = exports.serializeAws_restJson1CreateRelatedItemCommand = exports.serializeAws_restJson1CreateLayoutCommand = exports.serializeAws_restJson1CreateFieldCommand = exports.serializeAws_restJson1CreateDomainCommand = exports.serializeAws_restJson1CreateCaseCommand = exports.serializeAws_restJson1BatchPutFieldOptionsCommand = exports.serializeAws_restJson1BatchGetFieldCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateTemplateCommand = exports.deserializeAws_restJson1UpdateLayoutCommand = exports.deserializeAws_restJson1UpdateFieldCommand = exports.deserializeAws_restJson1UpdateCaseCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchRelatedItemsCommand = exports.deserializeAws_restJson1SearchCasesCommand = exports.deserializeAws_restJson1PutCaseEventConfigurationCommand = exports.deserializeAws_restJson1ListTemplatesCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -200,6 +200,23 @@ const serializeAws_restJson1CreateTemplateCommand = async (input, context) => {
|
|
|
200
200
|
});
|
|
201
201
|
};
|
|
202
202
|
exports.serializeAws_restJson1CreateTemplateCommand = serializeAws_restJson1CreateTemplateCommand;
|
|
203
|
+
const serializeAws_restJson1DeleteDomainCommand = async (input, context) => {
|
|
204
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
205
|
+
const headers = {};
|
|
206
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}";
|
|
207
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
208
|
+
let body;
|
|
209
|
+
return new protocol_http_1.HttpRequest({
|
|
210
|
+
protocol,
|
|
211
|
+
hostname,
|
|
212
|
+
port,
|
|
213
|
+
method: "DELETE",
|
|
214
|
+
headers,
|
|
215
|
+
path: resolvedPath,
|
|
216
|
+
body,
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
exports.serializeAws_restJson1DeleteDomainCommand = serializeAws_restJson1DeleteDomainCommand;
|
|
203
220
|
const serializeAws_restJson1GetCaseCommand = async (input, context) => {
|
|
204
221
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
205
222
|
const headers = {
|
|
@@ -1100,6 +1117,52 @@ const deserializeAws_restJson1CreateTemplateCommandError = async (output, contex
|
|
|
1100
1117
|
});
|
|
1101
1118
|
}
|
|
1102
1119
|
};
|
|
1120
|
+
const deserializeAws_restJson1DeleteDomainCommand = async (output, context) => {
|
|
1121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
+
return deserializeAws_restJson1DeleteDomainCommandError(output, context);
|
|
1123
|
+
}
|
|
1124
|
+
const contents = map({
|
|
1125
|
+
$metadata: deserializeMetadata(output),
|
|
1126
|
+
});
|
|
1127
|
+
await collectBody(output.body, context);
|
|
1128
|
+
return contents;
|
|
1129
|
+
};
|
|
1130
|
+
exports.deserializeAws_restJson1DeleteDomainCommand = deserializeAws_restJson1DeleteDomainCommand;
|
|
1131
|
+
const deserializeAws_restJson1DeleteDomainCommandError = async (output, context) => {
|
|
1132
|
+
const parsedOutput = {
|
|
1133
|
+
...output,
|
|
1134
|
+
body: await parseErrorBody(output.body, context),
|
|
1135
|
+
};
|
|
1136
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
|
+
switch (errorCode) {
|
|
1138
|
+
case "AccessDeniedException":
|
|
1139
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1140
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1141
|
+
case "ConflictException":
|
|
1142
|
+
case "com.amazonaws.connectcases#ConflictException":
|
|
1143
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1144
|
+
case "InternalServerException":
|
|
1145
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1146
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1147
|
+
case "ResourceNotFoundException":
|
|
1148
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1149
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1150
|
+
case "ThrottlingException":
|
|
1151
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1152
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1153
|
+
case "ValidationException":
|
|
1154
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1155
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1156
|
+
default:
|
|
1157
|
+
const parsedBody = parsedOutput.body;
|
|
1158
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1159
|
+
output,
|
|
1160
|
+
parsedBody,
|
|
1161
|
+
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1162
|
+
errorCode,
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1103
1166
|
const deserializeAws_restJson1GetCaseCommand = async (output, context) => {
|
|
1104
1167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1105
1168
|
return deserializeAws_restJson1GetCaseCommandError(output, context);
|
package/dist-es/ConnectCases.js
CHANGED
|
@@ -6,6 +6,7 @@ import { CreateFieldCommand } from "./commands/CreateFieldCommand";
|
|
|
6
6
|
import { CreateLayoutCommand, } from "./commands/CreateLayoutCommand";
|
|
7
7
|
import { CreateRelatedItemCommand, } from "./commands/CreateRelatedItemCommand";
|
|
8
8
|
import { CreateTemplateCommand, } from "./commands/CreateTemplateCommand";
|
|
9
|
+
import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
|
|
9
10
|
import { GetCaseCommand } from "./commands/GetCaseCommand";
|
|
10
11
|
import { GetCaseEventConfigurationCommand, } from "./commands/GetCaseEventConfigurationCommand";
|
|
11
12
|
import { GetDomainCommand } from "./commands/GetDomainCommand";
|
|
@@ -141,6 +142,20 @@ export class ConnectCases extends ConnectCasesClient {
|
|
|
141
142
|
return this.send(command, optionsOrCb);
|
|
142
143
|
}
|
|
143
144
|
}
|
|
145
|
+
deleteDomain(args, optionsOrCb, cb) {
|
|
146
|
+
const command = new DeleteDomainCommand(args);
|
|
147
|
+
if (typeof optionsOrCb === "function") {
|
|
148
|
+
this.send(command, optionsOrCb);
|
|
149
|
+
}
|
|
150
|
+
else if (typeof cb === "function") {
|
|
151
|
+
if (typeof optionsOrCb !== "object")
|
|
152
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
153
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
return this.send(command, optionsOrCb);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
144
159
|
getCase(args, optionsOrCb, cb) {
|
|
145
160
|
const command = new GetCaseCommand(args);
|
|
146
161
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteDomainRequestFilterSensitiveLog, DeleteDomainResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteDomainCommand, serializeAws_restJson1DeleteDomainCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DeleteDomainCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteDomainCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ConnectCasesClient";
|
|
25
|
+
const commandName = "DeleteDomainCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeleteDomainRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeleteDomainResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DeleteDomainCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DeleteDomainCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from "./CreateFieldCommand";
|
|
|
6
6
|
export * from "./CreateLayoutCommand";
|
|
7
7
|
export * from "./CreateRelatedItemCommand";
|
|
8
8
|
export * from "./CreateTemplateCommand";
|
|
9
|
+
export * from "./DeleteDomainCommand";
|
|
9
10
|
export * from "./GetCaseCommand";
|
|
10
11
|
export * from "./GetCaseEventConfigurationCommand";
|
|
11
12
|
export * from "./GetDomainCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|