@aws-sdk/client-connectcases 3.495.0 → 3.497.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 +8 -0
- package/dist-cjs/commands/GetCaseAuditEventsCommand.js +1 -0
- package/dist-cjs/index.js +242 -60
- package/dist-cjs/pagination/GetCaseAuditEventsPaginator.js +1 -0
- package/dist-es/ConnectCases.js +2 -0
- package/dist-es/commands/GetCaseAuditEventsCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +36 -12
- package/dist-es/pagination/GetCaseAuditEventsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +123 -0
- package/dist-types/ConnectCases.d.ts +7 -0
- package/dist-types/ConnectCasesClient.d.ts +3 -2
- package/dist-types/commands/CreateCaseCommand.d.ts +13 -4
- package/dist-types/commands/CreateRelatedItemCommand.d.ts +6 -7
- package/dist-types/commands/GetCaseAuditEventsCommand.d.ts +111 -0
- package/dist-types/commands/GetCaseCommand.d.ts +1 -0
- package/dist-types/commands/PutCaseEventConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/SearchCasesCommand.d.ts +6 -0
- package/dist-types/commands/UpdateCaseCommand.d.ts +9 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +305 -44
- package/dist-types/pagination/GetCaseAuditEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -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/GetCaseAuditEventsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +140 -22
- package/dist-types/ts3.4/pagination/GetCaseAuditEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +39 -39
package/README.md
CHANGED
|
@@ -286,6 +286,14 @@ GetCase
|
|
|
286
286
|
|
|
287
287
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/GetCaseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/GetCaseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/GetCaseCommandOutput/)
|
|
288
288
|
|
|
289
|
+
</details>
|
|
290
|
+
<details>
|
|
291
|
+
<summary>
|
|
292
|
+
GetCaseAuditEvents
|
|
293
|
+
</summary>
|
|
294
|
+
|
|
295
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connectcases/command/GetCaseAuditEventsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/GetCaseAuditEventsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connectcases/Interface/GetCaseAuditEventsCommandOutput/)
|
|
296
|
+
|
|
289
297
|
</details>
|
|
290
298
|
<details>
|
|
291
299
|
<summary>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/index.js
CHANGED
|
@@ -22,6 +22,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AuditEventFieldValueUnion: () => AuditEventFieldValueUnion,
|
|
26
|
+
AuditEventType: () => AuditEventType,
|
|
25
27
|
BatchGetFieldCommand: () => BatchGetFieldCommand,
|
|
26
28
|
BatchPutFieldOptionsCommand: () => BatchPutFieldOptionsCommand,
|
|
27
29
|
CaseFilter: () => CaseFilter,
|
|
@@ -42,6 +44,7 @@ __export(src_exports, {
|
|
|
42
44
|
FieldNamespace: () => FieldNamespace,
|
|
43
45
|
FieldType: () => FieldType,
|
|
44
46
|
FieldValueUnion: () => FieldValueUnion,
|
|
47
|
+
GetCaseAuditEventsCommand: () => GetCaseAuditEventsCommand,
|
|
45
48
|
GetCaseCommand: () => GetCaseCommand,
|
|
46
49
|
GetCaseEventConfigurationCommand: () => GetCaseEventConfigurationCommand,
|
|
47
50
|
GetDomainCommand: () => GetDomainCommand,
|
|
@@ -79,6 +82,7 @@ __export(src_exports, {
|
|
|
79
82
|
ValidationException: () => ValidationException,
|
|
80
83
|
__Client: () => import_smithy_client.Client,
|
|
81
84
|
paginateGetCase: () => paginateGetCase,
|
|
85
|
+
paginateGetCaseAuditEvents: () => paginateGetCaseAuditEvents,
|
|
82
86
|
paginateListCasesForContact: () => paginateListCasesForContact,
|
|
83
87
|
paginateListDomains: () => paginateListDomains,
|
|
84
88
|
paginateListFieldOptions: () => paginateListFieldOptions,
|
|
@@ -250,9 +254,19 @@ var FieldValueUnion;
|
|
|
250
254
|
return visitor.booleanValue(value.booleanValue);
|
|
251
255
|
if (value.emptyValue !== void 0)
|
|
252
256
|
return visitor.emptyValue(value.emptyValue);
|
|
257
|
+
if (value.userArnValue !== void 0)
|
|
258
|
+
return visitor.userArnValue(value.userArnValue);
|
|
253
259
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
254
260
|
}, "visit");
|
|
255
261
|
})(FieldValueUnion || (FieldValueUnion = {}));
|
|
262
|
+
var UserUnion;
|
|
263
|
+
((UserUnion3) => {
|
|
264
|
+
UserUnion3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
265
|
+
if (value.userArn !== void 0)
|
|
266
|
+
return visitor.userArn(value.userArn);
|
|
267
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
268
|
+
}, "visit");
|
|
269
|
+
})(UserUnion || (UserUnion = {}));
|
|
256
270
|
var _InternalServerException = class _InternalServerException extends ConnectCasesServiceException {
|
|
257
271
|
/**
|
|
258
272
|
* @internal
|
|
@@ -326,6 +340,31 @@ var _ValidationException = class _ValidationException extends ConnectCasesServic
|
|
|
326
340
|
};
|
|
327
341
|
__name(_ValidationException, "ValidationException");
|
|
328
342
|
var ValidationException = _ValidationException;
|
|
343
|
+
var AuditEventFieldValueUnion;
|
|
344
|
+
((AuditEventFieldValueUnion3) => {
|
|
345
|
+
AuditEventFieldValueUnion3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
346
|
+
if (value.stringValue !== void 0)
|
|
347
|
+
return visitor.stringValue(value.stringValue);
|
|
348
|
+
if (value.doubleValue !== void 0)
|
|
349
|
+
return visitor.doubleValue(value.doubleValue);
|
|
350
|
+
if (value.booleanValue !== void 0)
|
|
351
|
+
return visitor.booleanValue(value.booleanValue);
|
|
352
|
+
if (value.emptyValue !== void 0)
|
|
353
|
+
return visitor.emptyValue(value.emptyValue);
|
|
354
|
+
if (value.userArnValue !== void 0)
|
|
355
|
+
return visitor.userArnValue(value.userArnValue);
|
|
356
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
357
|
+
}, "visit");
|
|
358
|
+
})(AuditEventFieldValueUnion || (AuditEventFieldValueUnion = {}));
|
|
359
|
+
var RelatedItemType = {
|
|
360
|
+
COMMENT: "Comment",
|
|
361
|
+
CONTACT: "Contact"
|
|
362
|
+
};
|
|
363
|
+
var AuditEventType = {
|
|
364
|
+
CASE_CREATED: "Case.Created",
|
|
365
|
+
CASE_UPDATED: "Case.Updated",
|
|
366
|
+
RELATED_ITEM_CREATED: "RelatedItem.Created"
|
|
367
|
+
};
|
|
329
368
|
var CommentBodyTextType = {
|
|
330
369
|
PLAINTEXT: "Text/Plain"
|
|
331
370
|
};
|
|
@@ -339,18 +378,6 @@ var RelatedItemInputContent;
|
|
|
339
378
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
340
379
|
}, "visit");
|
|
341
380
|
})(RelatedItemInputContent || (RelatedItemInputContent = {}));
|
|
342
|
-
var UserUnion;
|
|
343
|
-
((UserUnion3) => {
|
|
344
|
-
UserUnion3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
345
|
-
if (value.userArn !== void 0)
|
|
346
|
-
return visitor.userArn(value.userArn);
|
|
347
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
348
|
-
}, "visit");
|
|
349
|
-
})(UserUnion || (UserUnion = {}));
|
|
350
|
-
var RelatedItemType = {
|
|
351
|
-
COMMENT: "Comment",
|
|
352
|
-
CONTACT: "Contact"
|
|
353
|
-
};
|
|
354
381
|
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ConnectCasesServiceException {
|
|
355
382
|
/**
|
|
356
383
|
* @internal
|
|
@@ -425,7 +452,8 @@ var FieldType = {
|
|
|
425
452
|
NUMBER: "Number",
|
|
426
453
|
SINGLE_SELECT: "SingleSelect",
|
|
427
454
|
TEXT: "Text",
|
|
428
|
-
URL: "Url"
|
|
455
|
+
URL: "Url",
|
|
456
|
+
USER: "User"
|
|
429
457
|
};
|
|
430
458
|
var Section;
|
|
431
459
|
((Section3) => {
|
|
@@ -508,6 +536,7 @@ var se_CreateCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
508
536
|
(0, import_smithy_client.take)(input, {
|
|
509
537
|
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
510
538
|
fields: (_) => se_FieldValueList(_, context),
|
|
539
|
+
performedBy: (_) => (0, import_smithy_client._json)(_),
|
|
511
540
|
templateId: []
|
|
512
541
|
})
|
|
513
542
|
);
|
|
@@ -630,6 +659,24 @@ var se_GetCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
630
659
|
b.m("POST").h(headers).b(body);
|
|
631
660
|
return b.build();
|
|
632
661
|
}, "se_GetCaseCommand");
|
|
662
|
+
var se_GetCaseAuditEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
663
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
664
|
+
const headers = {
|
|
665
|
+
"content-type": "application/json"
|
|
666
|
+
};
|
|
667
|
+
b.bp("/domains/{domainId}/cases/{caseId}/audit-history");
|
|
668
|
+
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
669
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
670
|
+
let body;
|
|
671
|
+
body = JSON.stringify(
|
|
672
|
+
(0, import_smithy_client.take)(input, {
|
|
673
|
+
maxResults: [],
|
|
674
|
+
nextToken: []
|
|
675
|
+
})
|
|
676
|
+
);
|
|
677
|
+
b.m("POST").h(headers).b(body);
|
|
678
|
+
return b.build();
|
|
679
|
+
}, "se_GetCaseAuditEventsCommand");
|
|
633
680
|
var se_GetCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
634
681
|
const b = (0, import_core2.requestBuilder)(input, context);
|
|
635
682
|
const headers = {};
|
|
@@ -860,7 +907,8 @@ var se_UpdateCaseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
860
907
|
let body;
|
|
861
908
|
body = JSON.stringify(
|
|
862
909
|
(0, import_smithy_client.take)(input, {
|
|
863
|
-
fields: (_) => se_FieldValueList(_, context)
|
|
910
|
+
fields: (_) => se_FieldValueList(_, context),
|
|
911
|
+
performedBy: (_) => (0, import_smithy_client._json)(_)
|
|
864
912
|
})
|
|
865
913
|
);
|
|
866
914
|
b.m("PUT").h(headers).b(body);
|
|
@@ -1413,6 +1461,52 @@ var de_GetCaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1413
1461
|
});
|
|
1414
1462
|
}
|
|
1415
1463
|
}, "de_GetCaseCommandError");
|
|
1464
|
+
var de_GetCaseAuditEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1465
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1466
|
+
return de_GetCaseAuditEventsCommandError(output, context);
|
|
1467
|
+
}
|
|
1468
|
+
const contents = (0, import_smithy_client.map)({
|
|
1469
|
+
$metadata: deserializeMetadata(output)
|
|
1470
|
+
});
|
|
1471
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1472
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1473
|
+
auditEvents: (_) => de_AuditEventsList(_, context),
|
|
1474
|
+
nextToken: import_smithy_client.expectString
|
|
1475
|
+
});
|
|
1476
|
+
Object.assign(contents, doc);
|
|
1477
|
+
return contents;
|
|
1478
|
+
}, "de_GetCaseAuditEventsCommand");
|
|
1479
|
+
var de_GetCaseAuditEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1480
|
+
const parsedOutput = {
|
|
1481
|
+
...output,
|
|
1482
|
+
body: await parseErrorBody(output.body, context)
|
|
1483
|
+
};
|
|
1484
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
|
+
switch (errorCode) {
|
|
1486
|
+
case "AccessDeniedException":
|
|
1487
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
1488
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1489
|
+
case "InternalServerException":
|
|
1490
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
1491
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1492
|
+
case "ResourceNotFoundException":
|
|
1493
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
1494
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1495
|
+
case "ThrottlingException":
|
|
1496
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
1497
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1498
|
+
case "ValidationException":
|
|
1499
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
1500
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1501
|
+
default:
|
|
1502
|
+
const parsedBody = parsedOutput.body;
|
|
1503
|
+
return throwDefaultError({
|
|
1504
|
+
output,
|
|
1505
|
+
parsedBody,
|
|
1506
|
+
errorCode
|
|
1507
|
+
});
|
|
1508
|
+
}
|
|
1509
|
+
}, "de_GetCaseAuditEventsCommandError");
|
|
1416
1510
|
var de_GetCaseEventConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1417
1511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1418
1512
|
return de_GetCaseEventConfigurationCommandError(output, context);
|
|
@@ -2456,6 +2550,7 @@ var se_FieldValueUnion = /* @__PURE__ */ __name((input, context) => {
|
|
|
2456
2550
|
doubleValue: (value) => ({ doubleValue: (0, import_smithy_client.serializeFloat)(value) }),
|
|
2457
2551
|
emptyValue: (value) => ({ emptyValue: (0, import_smithy_client._json)(value) }),
|
|
2458
2552
|
stringValue: (value) => ({ stringValue: value }),
|
|
2553
|
+
userArnValue: (value) => ({ userArnValue: value }),
|
|
2459
2554
|
_: (name, value) => ({ name: value })
|
|
2460
2555
|
});
|
|
2461
2556
|
}, "se_FieldValueUnion");
|
|
@@ -2469,6 +2564,61 @@ var se_Tags = /* @__PURE__ */ __name((input, context) => {
|
|
|
2469
2564
|
return acc;
|
|
2470
2565
|
}, {});
|
|
2471
2566
|
}, "se_Tags");
|
|
2567
|
+
var de_AuditEvent = /* @__PURE__ */ __name((output, context) => {
|
|
2568
|
+
return (0, import_smithy_client.take)(output, {
|
|
2569
|
+
eventId: import_smithy_client.expectString,
|
|
2570
|
+
fields: (_) => de_AuditEventFieldList(_, context),
|
|
2571
|
+
performedBy: import_smithy_client._json,
|
|
2572
|
+
performedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2573
|
+
relatedItemType: import_smithy_client.expectString,
|
|
2574
|
+
type: import_smithy_client.expectString
|
|
2575
|
+
});
|
|
2576
|
+
}, "de_AuditEvent");
|
|
2577
|
+
var de_AuditEventField = /* @__PURE__ */ __name((output, context) => {
|
|
2578
|
+
return (0, import_smithy_client.take)(output, {
|
|
2579
|
+
eventFieldId: import_smithy_client.expectString,
|
|
2580
|
+
newValue: (_) => de_AuditEventFieldValueUnion((0, import_core.awsExpectUnion)(_), context),
|
|
2581
|
+
oldValue: (_) => de_AuditEventFieldValueUnion((0, import_core.awsExpectUnion)(_), context)
|
|
2582
|
+
});
|
|
2583
|
+
}, "de_AuditEventField");
|
|
2584
|
+
var de_AuditEventFieldList = /* @__PURE__ */ __name((output, context) => {
|
|
2585
|
+
const retVal = (output || []).map((entry) => {
|
|
2586
|
+
if (entry === null) {
|
|
2587
|
+
return null;
|
|
2588
|
+
}
|
|
2589
|
+
return de_AuditEventField(entry, context);
|
|
2590
|
+
});
|
|
2591
|
+
return retVal;
|
|
2592
|
+
}, "de_AuditEventFieldList");
|
|
2593
|
+
var de_AuditEventFieldValueUnion = /* @__PURE__ */ __name((output, context) => {
|
|
2594
|
+
if ((0, import_smithy_client.expectBoolean)(output.booleanValue) !== void 0) {
|
|
2595
|
+
return { booleanValue: (0, import_smithy_client.expectBoolean)(output.booleanValue) };
|
|
2596
|
+
}
|
|
2597
|
+
if ((0, import_smithy_client.limitedParseDouble)(output.doubleValue) !== void 0) {
|
|
2598
|
+
return { doubleValue: (0, import_smithy_client.limitedParseDouble)(output.doubleValue) };
|
|
2599
|
+
}
|
|
2600
|
+
if (output.emptyValue != null) {
|
|
2601
|
+
return {
|
|
2602
|
+
emptyValue: (0, import_smithy_client._json)(output.emptyValue)
|
|
2603
|
+
};
|
|
2604
|
+
}
|
|
2605
|
+
if ((0, import_smithy_client.expectString)(output.stringValue) !== void 0) {
|
|
2606
|
+
return { stringValue: (0, import_smithy_client.expectString)(output.stringValue) };
|
|
2607
|
+
}
|
|
2608
|
+
if ((0, import_smithy_client.expectString)(output.userArnValue) !== void 0) {
|
|
2609
|
+
return { userArnValue: (0, import_smithy_client.expectString)(output.userArnValue) };
|
|
2610
|
+
}
|
|
2611
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2612
|
+
}, "de_AuditEventFieldValueUnion");
|
|
2613
|
+
var de_AuditEventsList = /* @__PURE__ */ __name((output, context) => {
|
|
2614
|
+
const retVal = (output || []).map((entry) => {
|
|
2615
|
+
if (entry === null) {
|
|
2616
|
+
return null;
|
|
2617
|
+
}
|
|
2618
|
+
return de_AuditEvent(entry, context);
|
|
2619
|
+
});
|
|
2620
|
+
return retVal;
|
|
2621
|
+
}, "de_AuditEventsList");
|
|
2472
2622
|
var de_BatchGetFieldList = /* @__PURE__ */ __name((output, context) => {
|
|
2473
2623
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2474
2624
|
return de_GetFieldResponse(entry, context);
|
|
@@ -2509,6 +2659,9 @@ var de_FieldValueUnion = /* @__PURE__ */ __name((output, context) => {
|
|
|
2509
2659
|
if ((0, import_smithy_client.expectString)(output.stringValue) !== void 0) {
|
|
2510
2660
|
return { stringValue: (0, import_smithy_client.expectString)(output.stringValue) };
|
|
2511
2661
|
}
|
|
2662
|
+
if ((0, import_smithy_client.expectString)(output.userArnValue) !== void 0) {
|
|
2663
|
+
return { userArnValue: (0, import_smithy_client.expectString)(output.userArnValue) };
|
|
2664
|
+
}
|
|
2512
2665
|
return { $unknown: Object.entries(output)[0] };
|
|
2513
2666
|
}, "de_FieldValueUnion");
|
|
2514
2667
|
var de_GetFieldResponse = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -2785,6 +2938,23 @@ var _DeleteDomainCommand = class _DeleteDomainCommand extends import_smithy_clie
|
|
|
2785
2938
|
__name(_DeleteDomainCommand, "DeleteDomainCommand");
|
|
2786
2939
|
var DeleteDomainCommand = _DeleteDomainCommand;
|
|
2787
2940
|
|
|
2941
|
+
// src/commands/GetCaseAuditEventsCommand.ts
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
|
|
2945
|
+
|
|
2946
|
+
var _GetCaseAuditEventsCommand = class _GetCaseAuditEventsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2947
|
+
...commonParams
|
|
2948
|
+
}).m(function(Command, cs, config, o) {
|
|
2949
|
+
return [
|
|
2950
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2951
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2952
|
+
];
|
|
2953
|
+
}).s("AmazonConnectCases", "GetCaseAuditEvents", {}).n("ConnectCasesClient", "GetCaseAuditEventsCommand").f(void 0, void 0).ser(se_GetCaseAuditEventsCommand).de(de_GetCaseAuditEventsCommand).build() {
|
|
2954
|
+
};
|
|
2955
|
+
__name(_GetCaseAuditEventsCommand, "GetCaseAuditEventsCommand");
|
|
2956
|
+
var GetCaseAuditEventsCommand = _GetCaseAuditEventsCommand;
|
|
2957
|
+
|
|
2788
2958
|
// src/commands/GetCaseCommand.ts
|
|
2789
2959
|
|
|
2790
2960
|
|
|
@@ -3154,6 +3324,7 @@ var commands = {
|
|
|
3154
3324
|
CreateTemplateCommand,
|
|
3155
3325
|
DeleteDomainCommand,
|
|
3156
3326
|
GetCaseCommand,
|
|
3327
|
+
GetCaseAuditEventsCommand,
|
|
3157
3328
|
GetCaseEventConfigurationCommand,
|
|
3158
3329
|
GetDomainCommand,
|
|
3159
3330
|
GetLayoutCommand,
|
|
@@ -3181,55 +3352,58 @@ __name(_ConnectCases, "ConnectCases");
|
|
|
3181
3352
|
var ConnectCases = _ConnectCases;
|
|
3182
3353
|
(0, import_smithy_client.createAggregatedClient)(commands, ConnectCases);
|
|
3183
3354
|
|
|
3184
|
-
// src/pagination/
|
|
3355
|
+
// src/pagination/GetCaseAuditEventsPaginator.ts
|
|
3185
3356
|
var import_core3 = require("@smithy/core");
|
|
3186
|
-
var
|
|
3357
|
+
var paginateGetCaseAuditEvents = (0, import_core3.createPaginator)(ConnectCasesClient, GetCaseAuditEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
3187
3358
|
|
|
3188
|
-
// src/pagination/
|
|
3359
|
+
// src/pagination/GetCasePaginator.ts
|
|
3189
3360
|
var import_core4 = require("@smithy/core");
|
|
3190
|
-
var
|
|
3361
|
+
var paginateGetCase = (0, import_core4.createPaginator)(ConnectCasesClient, GetCaseCommand, "nextToken", "nextToken", "");
|
|
3191
3362
|
|
|
3192
|
-
// src/pagination/
|
|
3363
|
+
// src/pagination/ListCasesForContactPaginator.ts
|
|
3193
3364
|
var import_core5 = require("@smithy/core");
|
|
3194
|
-
var
|
|
3365
|
+
var paginateListCasesForContact = (0, import_core5.createPaginator)(ConnectCasesClient, ListCasesForContactCommand, "nextToken", "nextToken", "maxResults");
|
|
3195
3366
|
|
|
3196
|
-
// src/pagination/
|
|
3367
|
+
// src/pagination/ListDomainsPaginator.ts
|
|
3197
3368
|
var import_core6 = require("@smithy/core");
|
|
3198
|
-
var
|
|
3369
|
+
var paginateListDomains = (0, import_core6.createPaginator)(ConnectCasesClient, ListDomainsCommand, "nextToken", "nextToken", "maxResults");
|
|
3199
3370
|
|
|
3200
|
-
// src/pagination/
|
|
3371
|
+
// src/pagination/ListFieldOptionsPaginator.ts
|
|
3201
3372
|
var import_core7 = require("@smithy/core");
|
|
3202
|
-
var
|
|
3373
|
+
var paginateListFieldOptions = (0, import_core7.createPaginator)(ConnectCasesClient, ListFieldOptionsCommand, "nextToken", "nextToken", "maxResults");
|
|
3203
3374
|
|
|
3204
|
-
// src/pagination/
|
|
3375
|
+
// src/pagination/ListFieldsPaginator.ts
|
|
3205
3376
|
var import_core8 = require("@smithy/core");
|
|
3206
|
-
var
|
|
3377
|
+
var paginateListFields = (0, import_core8.createPaginator)(ConnectCasesClient, ListFieldsCommand, "nextToken", "nextToken", "maxResults");
|
|
3207
3378
|
|
|
3208
|
-
// src/pagination/
|
|
3379
|
+
// src/pagination/ListLayoutsPaginator.ts
|
|
3209
3380
|
var import_core9 = require("@smithy/core");
|
|
3210
|
-
var
|
|
3381
|
+
var paginateListLayouts = (0, import_core9.createPaginator)(ConnectCasesClient, ListLayoutsCommand, "nextToken", "nextToken", "maxResults");
|
|
3211
3382
|
|
|
3212
|
-
// src/pagination/
|
|
3383
|
+
// src/pagination/ListTemplatesPaginator.ts
|
|
3213
3384
|
var import_core10 = require("@smithy/core");
|
|
3214
|
-
var
|
|
3385
|
+
var paginateListTemplates = (0, import_core10.createPaginator)(ConnectCasesClient, ListTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
3215
3386
|
|
|
3216
|
-
// src/pagination/
|
|
3387
|
+
// src/pagination/SearchCasesPaginator.ts
|
|
3217
3388
|
var import_core11 = require("@smithy/core");
|
|
3218
|
-
var
|
|
3389
|
+
var paginateSearchCases = (0, import_core11.createPaginator)(ConnectCasesClient, SearchCasesCommand, "nextToken", "nextToken", "maxResults");
|
|
3390
|
+
|
|
3391
|
+
// src/pagination/SearchRelatedItemsPaginator.ts
|
|
3392
|
+
var import_core12 = require("@smithy/core");
|
|
3393
|
+
var paginateSearchRelatedItems = (0, import_core12.createPaginator)(ConnectCasesClient, SearchRelatedItemsCommand, "nextToken", "nextToken", "maxResults");
|
|
3219
3394
|
|
|
3220
3395
|
// src/index.ts
|
|
3221
3396
|
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
3222
3397
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3398
|
+
|
|
3223
3399
|
0 && (module.exports = {
|
|
3224
|
-
|
|
3400
|
+
ConnectCasesServiceException,
|
|
3401
|
+
__Client,
|
|
3402
|
+
ConnectCasesClient,
|
|
3403
|
+
ConnectCases,
|
|
3404
|
+
$Command,
|
|
3225
3405
|
BatchGetFieldCommand,
|
|
3226
3406
|
BatchPutFieldOptionsCommand,
|
|
3227
|
-
CaseFilter,
|
|
3228
|
-
CommentBodyTextType,
|
|
3229
|
-
ConflictException,
|
|
3230
|
-
ConnectCases,
|
|
3231
|
-
ConnectCasesClient,
|
|
3232
|
-
ConnectCasesServiceException,
|
|
3233
3407
|
CreateCaseCommand,
|
|
3234
3408
|
CreateDomainCommand,
|
|
3235
3409
|
CreateFieldCommand,
|
|
@@ -3237,18 +3411,12 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
3237
3411
|
CreateRelatedItemCommand,
|
|
3238
3412
|
CreateTemplateCommand,
|
|
3239
3413
|
DeleteDomainCommand,
|
|
3240
|
-
|
|
3241
|
-
FieldFilter,
|
|
3242
|
-
FieldNamespace,
|
|
3243
|
-
FieldType,
|
|
3244
|
-
FieldValueUnion,
|
|
3414
|
+
GetCaseAuditEventsCommand,
|
|
3245
3415
|
GetCaseCommand,
|
|
3246
3416
|
GetCaseEventConfigurationCommand,
|
|
3247
3417
|
GetDomainCommand,
|
|
3248
3418
|
GetLayoutCommand,
|
|
3249
3419
|
GetTemplateCommand,
|
|
3250
|
-
InternalServerException,
|
|
3251
|
-
LayoutContent,
|
|
3252
3420
|
ListCasesForContactCommand,
|
|
3253
3421
|
ListDomainsCommand,
|
|
3254
3422
|
ListFieldOptionsCommand,
|
|
@@ -3256,28 +3424,16 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
3256
3424
|
ListLayoutsCommand,
|
|
3257
3425
|
ListTagsForResourceCommand,
|
|
3258
3426
|
ListTemplatesCommand,
|
|
3259
|
-
Order,
|
|
3260
3427
|
PutCaseEventConfigurationCommand,
|
|
3261
|
-
RelatedItemContent,
|
|
3262
|
-
RelatedItemInputContent,
|
|
3263
|
-
RelatedItemType,
|
|
3264
|
-
RelatedItemTypeFilter,
|
|
3265
|
-
ResourceNotFoundException,
|
|
3266
3428
|
SearchCasesCommand,
|
|
3267
3429
|
SearchRelatedItemsCommand,
|
|
3268
|
-
Section,
|
|
3269
|
-
ServiceQuotaExceededException,
|
|
3270
3430
|
TagResourceCommand,
|
|
3271
|
-
TemplateStatus,
|
|
3272
|
-
ThrottlingException,
|
|
3273
3431
|
UntagResourceCommand,
|
|
3274
3432
|
UpdateCaseCommand,
|
|
3275
3433
|
UpdateFieldCommand,
|
|
3276
3434
|
UpdateLayoutCommand,
|
|
3277
3435
|
UpdateTemplateCommand,
|
|
3278
|
-
|
|
3279
|
-
ValidationException,
|
|
3280
|
-
__Client,
|
|
3436
|
+
paginateGetCaseAuditEvents,
|
|
3281
3437
|
paginateGetCase,
|
|
3282
3438
|
paginateListCasesForContact,
|
|
3283
3439
|
paginateListDomains,
|
|
@@ -3286,5 +3442,31 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
3286
3442
|
paginateListLayouts,
|
|
3287
3443
|
paginateListTemplates,
|
|
3288
3444
|
paginateSearchCases,
|
|
3289
|
-
paginateSearchRelatedItems
|
|
3445
|
+
paginateSearchRelatedItems,
|
|
3446
|
+
AccessDeniedException,
|
|
3447
|
+
ConflictException,
|
|
3448
|
+
FieldValueUnion,
|
|
3449
|
+
UserUnion,
|
|
3450
|
+
InternalServerException,
|
|
3451
|
+
ResourceNotFoundException,
|
|
3452
|
+
ThrottlingException,
|
|
3453
|
+
ValidationException,
|
|
3454
|
+
AuditEventFieldValueUnion,
|
|
3455
|
+
RelatedItemType,
|
|
3456
|
+
AuditEventType,
|
|
3457
|
+
CommentBodyTextType,
|
|
3458
|
+
RelatedItemInputContent,
|
|
3459
|
+
ServiceQuotaExceededException,
|
|
3460
|
+
RelatedItemTypeFilter,
|
|
3461
|
+
RelatedItemContent,
|
|
3462
|
+
FieldFilter,
|
|
3463
|
+
Order,
|
|
3464
|
+
DomainStatus,
|
|
3465
|
+
FieldNamespace,
|
|
3466
|
+
FieldType,
|
|
3467
|
+
Section,
|
|
3468
|
+
LayoutContent,
|
|
3469
|
+
TemplateStatus,
|
|
3470
|
+
CaseFilter
|
|
3290
3471
|
});
|
|
3472
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-es/ConnectCases.js
CHANGED
|
@@ -8,6 +8,7 @@ import { CreateLayoutCommand, } from "./commands/CreateLayoutCommand";
|
|
|
8
8
|
import { CreateRelatedItemCommand, } from "./commands/CreateRelatedItemCommand";
|
|
9
9
|
import { CreateTemplateCommand, } from "./commands/CreateTemplateCommand";
|
|
10
10
|
import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
|
|
11
|
+
import { GetCaseAuditEventsCommand, } from "./commands/GetCaseAuditEventsCommand";
|
|
11
12
|
import { GetCaseCommand } from "./commands/GetCaseCommand";
|
|
12
13
|
import { GetCaseEventConfigurationCommand, } from "./commands/GetCaseEventConfigurationCommand";
|
|
13
14
|
import { GetDomainCommand } from "./commands/GetDomainCommand";
|
|
@@ -41,6 +42,7 @@ const commands = {
|
|
|
41
42
|
CreateTemplateCommand,
|
|
42
43
|
DeleteDomainCommand,
|
|
43
44
|
GetCaseCommand,
|
|
45
|
+
GetCaseAuditEventsCommand,
|
|
44
46
|
GetCaseEventConfigurationCommand,
|
|
45
47
|
GetDomainCommand,
|
|
46
48
|
GetLayoutCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_GetCaseAuditEventsCommand, se_GetCaseAuditEventsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetCaseAuditEventsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonConnectCases", "GetCaseAuditEvents", {})
|
|
19
|
+
.n("ConnectCasesClient", "GetCaseAuditEventsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetCaseAuditEventsCommand)
|
|
22
|
+
.de(de_GetCaseAuditEventsCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -7,6 +7,7 @@ export * from "./CreateLayoutCommand";
|
|
|
7
7
|
export * from "./CreateRelatedItemCommand";
|
|
8
8
|
export * from "./CreateTemplateCommand";
|
|
9
9
|
export * from "./DeleteDomainCommand";
|
|
10
|
+
export * from "./GetCaseAuditEventsCommand";
|
|
10
11
|
export * from "./GetCaseCommand";
|
|
11
12
|
export * from "./GetCaseEventConfigurationCommand";
|
|
12
13
|
export * from "./GetDomainCommand";
|
|
@@ -34,9 +34,19 @@ export var FieldValueUnion;
|
|
|
34
34
|
return visitor.booleanValue(value.booleanValue);
|
|
35
35
|
if (value.emptyValue !== undefined)
|
|
36
36
|
return visitor.emptyValue(value.emptyValue);
|
|
37
|
+
if (value.userArnValue !== undefined)
|
|
38
|
+
return visitor.userArnValue(value.userArnValue);
|
|
37
39
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
38
40
|
};
|
|
39
41
|
})(FieldValueUnion || (FieldValueUnion = {}));
|
|
42
|
+
export var UserUnion;
|
|
43
|
+
(function (UserUnion) {
|
|
44
|
+
UserUnion.visit = (value, visitor) => {
|
|
45
|
+
if (value.userArn !== undefined)
|
|
46
|
+
return visitor.userArn(value.userArn);
|
|
47
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
48
|
+
};
|
|
49
|
+
})(UserUnion || (UserUnion = {}));
|
|
40
50
|
export class InternalServerException extends __BaseException {
|
|
41
51
|
constructor(opts) {
|
|
42
52
|
super({
|
|
@@ -90,6 +100,31 @@ export class ValidationException extends __BaseException {
|
|
|
90
100
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
91
101
|
}
|
|
92
102
|
}
|
|
103
|
+
export var AuditEventFieldValueUnion;
|
|
104
|
+
(function (AuditEventFieldValueUnion) {
|
|
105
|
+
AuditEventFieldValueUnion.visit = (value, visitor) => {
|
|
106
|
+
if (value.stringValue !== undefined)
|
|
107
|
+
return visitor.stringValue(value.stringValue);
|
|
108
|
+
if (value.doubleValue !== undefined)
|
|
109
|
+
return visitor.doubleValue(value.doubleValue);
|
|
110
|
+
if (value.booleanValue !== undefined)
|
|
111
|
+
return visitor.booleanValue(value.booleanValue);
|
|
112
|
+
if (value.emptyValue !== undefined)
|
|
113
|
+
return visitor.emptyValue(value.emptyValue);
|
|
114
|
+
if (value.userArnValue !== undefined)
|
|
115
|
+
return visitor.userArnValue(value.userArnValue);
|
|
116
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
117
|
+
};
|
|
118
|
+
})(AuditEventFieldValueUnion || (AuditEventFieldValueUnion = {}));
|
|
119
|
+
export const RelatedItemType = {
|
|
120
|
+
COMMENT: "Comment",
|
|
121
|
+
CONTACT: "Contact",
|
|
122
|
+
};
|
|
123
|
+
export const AuditEventType = {
|
|
124
|
+
CASE_CREATED: "Case.Created",
|
|
125
|
+
CASE_UPDATED: "Case.Updated",
|
|
126
|
+
RELATED_ITEM_CREATED: "RelatedItem.Created",
|
|
127
|
+
};
|
|
93
128
|
export const CommentBodyTextType = {
|
|
94
129
|
PLAINTEXT: "Text/Plain",
|
|
95
130
|
};
|
|
@@ -103,18 +138,6 @@ export var RelatedItemInputContent;
|
|
|
103
138
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
104
139
|
};
|
|
105
140
|
})(RelatedItemInputContent || (RelatedItemInputContent = {}));
|
|
106
|
-
export var UserUnion;
|
|
107
|
-
(function (UserUnion) {
|
|
108
|
-
UserUnion.visit = (value, visitor) => {
|
|
109
|
-
if (value.userArn !== undefined)
|
|
110
|
-
return visitor.userArn(value.userArn);
|
|
111
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
112
|
-
};
|
|
113
|
-
})(UserUnion || (UserUnion = {}));
|
|
114
|
-
export const RelatedItemType = {
|
|
115
|
-
COMMENT: "Comment",
|
|
116
|
-
CONTACT: "Contact",
|
|
117
|
-
};
|
|
118
141
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
119
142
|
constructor(opts) {
|
|
120
143
|
super({
|
|
@@ -185,6 +208,7 @@ export const FieldType = {
|
|
|
185
208
|
SINGLE_SELECT: "SingleSelect",
|
|
186
209
|
TEXT: "Text",
|
|
187
210
|
URL: "Url",
|
|
211
|
+
USER: "User",
|
|
188
212
|
};
|
|
189
213
|
export var Section;
|
|
190
214
|
(function (Section) {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { GetCaseAuditEventsCommand, } from "../commands/GetCaseAuditEventsCommand";
|
|
3
|
+
import { ConnectCasesClient } from "../ConnectCasesClient";
|
|
4
|
+
export const paginateGetCaseAuditEvents = createPaginator(ConnectCasesClient, GetCaseAuditEventsCommand, "nextToken", "nextToken", "maxResults");
|