@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
|
@@ -44,6 +44,7 @@ export const se_CreateCaseCommand = async (input, context) => {
|
|
|
44
44
|
body = JSON.stringify(take(input, {
|
|
45
45
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
46
46
|
fields: (_) => se_FieldValueList(_, context),
|
|
47
|
+
performedBy: (_) => _json(_),
|
|
47
48
|
templateId: [],
|
|
48
49
|
}));
|
|
49
50
|
b.m("POST").h(headers).b(body);
|
|
@@ -153,6 +154,22 @@ export const se_GetCaseCommand = async (input, context) => {
|
|
|
153
154
|
b.m("POST").h(headers).b(body);
|
|
154
155
|
return b.build();
|
|
155
156
|
};
|
|
157
|
+
export const se_GetCaseAuditEventsCommand = async (input, context) => {
|
|
158
|
+
const b = rb(input, context);
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/json",
|
|
161
|
+
};
|
|
162
|
+
b.bp("/domains/{domainId}/cases/{caseId}/audit-history");
|
|
163
|
+
b.p("caseId", () => input.caseId, "{caseId}", false);
|
|
164
|
+
b.p("domainId", () => input.domainId, "{domainId}", false);
|
|
165
|
+
let body;
|
|
166
|
+
body = JSON.stringify(take(input, {
|
|
167
|
+
maxResults: [],
|
|
168
|
+
nextToken: [],
|
|
169
|
+
}));
|
|
170
|
+
b.m("POST").h(headers).b(body);
|
|
171
|
+
return b.build();
|
|
172
|
+
};
|
|
156
173
|
export const se_GetCaseEventConfigurationCommand = async (input, context) => {
|
|
157
174
|
const b = rb(input, context);
|
|
158
175
|
const headers = {};
|
|
@@ -373,6 +390,7 @@ export const se_UpdateCaseCommand = async (input, context) => {
|
|
|
373
390
|
let body;
|
|
374
391
|
body = JSON.stringify(take(input, {
|
|
375
392
|
fields: (_) => se_FieldValueList(_, context),
|
|
393
|
+
performedBy: (_) => _json(_),
|
|
376
394
|
}));
|
|
377
395
|
b.m("PUT").h(headers).b(body);
|
|
378
396
|
return b.build();
|
|
@@ -918,6 +936,52 @@ const de_GetCaseCommandError = async (output, context) => {
|
|
|
918
936
|
});
|
|
919
937
|
}
|
|
920
938
|
};
|
|
939
|
+
export const de_GetCaseAuditEventsCommand = async (output, context) => {
|
|
940
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
941
|
+
return de_GetCaseAuditEventsCommandError(output, context);
|
|
942
|
+
}
|
|
943
|
+
const contents = map({
|
|
944
|
+
$metadata: deserializeMetadata(output),
|
|
945
|
+
});
|
|
946
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
947
|
+
const doc = take(data, {
|
|
948
|
+
auditEvents: (_) => de_AuditEventsList(_, context),
|
|
949
|
+
nextToken: __expectString,
|
|
950
|
+
});
|
|
951
|
+
Object.assign(contents, doc);
|
|
952
|
+
return contents;
|
|
953
|
+
};
|
|
954
|
+
const de_GetCaseAuditEventsCommandError = async (output, context) => {
|
|
955
|
+
const parsedOutput = {
|
|
956
|
+
...output,
|
|
957
|
+
body: await parseErrorBody(output.body, context),
|
|
958
|
+
};
|
|
959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
|
+
switch (errorCode) {
|
|
961
|
+
case "AccessDeniedException":
|
|
962
|
+
case "com.amazonaws.connectcases#AccessDeniedException":
|
|
963
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
964
|
+
case "InternalServerException":
|
|
965
|
+
case "com.amazonaws.connectcases#InternalServerException":
|
|
966
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
967
|
+
case "ResourceNotFoundException":
|
|
968
|
+
case "com.amazonaws.connectcases#ResourceNotFoundException":
|
|
969
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
970
|
+
case "ThrottlingException":
|
|
971
|
+
case "com.amazonaws.connectcases#ThrottlingException":
|
|
972
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
973
|
+
case "ValidationException":
|
|
974
|
+
case "com.amazonaws.connectcases#ValidationException":
|
|
975
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
976
|
+
default:
|
|
977
|
+
const parsedBody = parsedOutput.body;
|
|
978
|
+
return throwDefaultError({
|
|
979
|
+
output,
|
|
980
|
+
parsedBody,
|
|
981
|
+
errorCode,
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
};
|
|
921
985
|
export const de_GetCaseEventConfigurationCommand = async (output, context) => {
|
|
922
986
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
923
987
|
return de_GetCaseEventConfigurationCommandError(output, context);
|
|
@@ -1965,6 +2029,7 @@ const se_FieldValueUnion = (input, context) => {
|
|
|
1965
2029
|
doubleValue: (value) => ({ doubleValue: __serializeFloat(value) }),
|
|
1966
2030
|
emptyValue: (value) => ({ emptyValue: _json(value) }),
|
|
1967
2031
|
stringValue: (value) => ({ stringValue: value }),
|
|
2032
|
+
userArnValue: (value) => ({ userArnValue: value }),
|
|
1968
2033
|
_: (name, value) => ({ name: value }),
|
|
1969
2034
|
});
|
|
1970
2035
|
};
|
|
@@ -1978,6 +2043,61 @@ const se_Tags = (input, context) => {
|
|
|
1978
2043
|
return acc;
|
|
1979
2044
|
}, {});
|
|
1980
2045
|
};
|
|
2046
|
+
const de_AuditEvent = (output, context) => {
|
|
2047
|
+
return take(output, {
|
|
2048
|
+
eventId: __expectString,
|
|
2049
|
+
fields: (_) => de_AuditEventFieldList(_, context),
|
|
2050
|
+
performedBy: _json,
|
|
2051
|
+
performedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2052
|
+
relatedItemType: __expectString,
|
|
2053
|
+
type: __expectString,
|
|
2054
|
+
});
|
|
2055
|
+
};
|
|
2056
|
+
const de_AuditEventField = (output, context) => {
|
|
2057
|
+
return take(output, {
|
|
2058
|
+
eventFieldId: __expectString,
|
|
2059
|
+
newValue: (_) => de_AuditEventFieldValueUnion(__expectUnion(_), context),
|
|
2060
|
+
oldValue: (_) => de_AuditEventFieldValueUnion(__expectUnion(_), context),
|
|
2061
|
+
});
|
|
2062
|
+
};
|
|
2063
|
+
const de_AuditEventFieldList = (output, context) => {
|
|
2064
|
+
const retVal = (output || []).map((entry) => {
|
|
2065
|
+
if (entry === null) {
|
|
2066
|
+
return null;
|
|
2067
|
+
}
|
|
2068
|
+
return de_AuditEventField(entry, context);
|
|
2069
|
+
});
|
|
2070
|
+
return retVal;
|
|
2071
|
+
};
|
|
2072
|
+
const de_AuditEventFieldValueUnion = (output, context) => {
|
|
2073
|
+
if (__expectBoolean(output.booleanValue) !== undefined) {
|
|
2074
|
+
return { booleanValue: __expectBoolean(output.booleanValue) };
|
|
2075
|
+
}
|
|
2076
|
+
if (__limitedParseDouble(output.doubleValue) !== undefined) {
|
|
2077
|
+
return { doubleValue: __limitedParseDouble(output.doubleValue) };
|
|
2078
|
+
}
|
|
2079
|
+
if (output.emptyValue != null) {
|
|
2080
|
+
return {
|
|
2081
|
+
emptyValue: _json(output.emptyValue),
|
|
2082
|
+
};
|
|
2083
|
+
}
|
|
2084
|
+
if (__expectString(output.stringValue) !== undefined) {
|
|
2085
|
+
return { stringValue: __expectString(output.stringValue) };
|
|
2086
|
+
}
|
|
2087
|
+
if (__expectString(output.userArnValue) !== undefined) {
|
|
2088
|
+
return { userArnValue: __expectString(output.userArnValue) };
|
|
2089
|
+
}
|
|
2090
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2091
|
+
};
|
|
2092
|
+
const de_AuditEventsList = (output, context) => {
|
|
2093
|
+
const retVal = (output || []).map((entry) => {
|
|
2094
|
+
if (entry === null) {
|
|
2095
|
+
return null;
|
|
2096
|
+
}
|
|
2097
|
+
return de_AuditEvent(entry, context);
|
|
2098
|
+
});
|
|
2099
|
+
return retVal;
|
|
2100
|
+
};
|
|
1981
2101
|
const de_BatchGetFieldList = (output, context) => {
|
|
1982
2102
|
const retVal = (output || [])
|
|
1983
2103
|
.filter((e) => e != null)
|
|
@@ -2022,6 +2142,9 @@ const de_FieldValueUnion = (output, context) => {
|
|
|
2022
2142
|
if (__expectString(output.stringValue) !== undefined) {
|
|
2023
2143
|
return { stringValue: __expectString(output.stringValue) };
|
|
2024
2144
|
}
|
|
2145
|
+
if (__expectString(output.userArnValue) !== undefined) {
|
|
2146
|
+
return { userArnValue: __expectString(output.userArnValue) };
|
|
2147
|
+
}
|
|
2025
2148
|
return { $unknown: Object.entries(output)[0] };
|
|
2026
2149
|
};
|
|
2027
2150
|
const de_GetFieldResponse = (output, context) => {
|
|
@@ -8,6 +8,7 @@ import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "./commands/
|
|
|
8
8
|
import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "./commands/CreateRelatedItemCommand";
|
|
9
9
|
import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand";
|
|
10
10
|
import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
|
|
11
|
+
import { GetCaseAuditEventsCommandInput, GetCaseAuditEventsCommandOutput } from "./commands/GetCaseAuditEventsCommand";
|
|
11
12
|
import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
12
13
|
import { GetCaseEventConfigurationCommandInput, GetCaseEventConfigurationCommandOutput } from "./commands/GetCaseEventConfigurationCommand";
|
|
13
14
|
import { GetDomainCommandInput, GetDomainCommandOutput } from "./commands/GetDomainCommand";
|
|
@@ -91,6 +92,12 @@ export interface ConnectCases {
|
|
|
91
92
|
getCase(args: GetCaseCommandInput, options?: __HttpHandlerOptions): Promise<GetCaseCommandOutput>;
|
|
92
93
|
getCase(args: GetCaseCommandInput, cb: (err: any, data?: GetCaseCommandOutput) => void): void;
|
|
93
94
|
getCase(args: GetCaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCaseCommandOutput) => void): void;
|
|
95
|
+
/**
|
|
96
|
+
* @see {@link GetCaseAuditEventsCommand}
|
|
97
|
+
*/
|
|
98
|
+
getCaseAuditEvents(args: GetCaseAuditEventsCommandInput, options?: __HttpHandlerOptions): Promise<GetCaseAuditEventsCommandOutput>;
|
|
99
|
+
getCaseAuditEvents(args: GetCaseAuditEventsCommandInput, cb: (err: any, data?: GetCaseAuditEventsCommandOutput) => void): void;
|
|
100
|
+
getCaseAuditEvents(args: GetCaseAuditEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCaseAuditEventsCommandOutput) => void): void;
|
|
94
101
|
/**
|
|
95
102
|
* @see {@link GetCaseEventConfigurationCommand}
|
|
96
103
|
*/
|
|
@@ -17,6 +17,7 @@ import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "./commands/
|
|
|
17
17
|
import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "./commands/CreateRelatedItemCommand";
|
|
18
18
|
import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand";
|
|
19
19
|
import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
|
|
20
|
+
import { GetCaseAuditEventsCommandInput, GetCaseAuditEventsCommandOutput } from "./commands/GetCaseAuditEventsCommand";
|
|
20
21
|
import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
21
22
|
import { GetCaseEventConfigurationCommandInput, GetCaseEventConfigurationCommandOutput } from "./commands/GetCaseEventConfigurationCommand";
|
|
22
23
|
import { GetDomainCommandInput, GetDomainCommandOutput } from "./commands/GetDomainCommand";
|
|
@@ -44,11 +45,11 @@ export { __Client };
|
|
|
44
45
|
/**
|
|
45
46
|
* @public
|
|
46
47
|
*/
|
|
47
|
-
export type ServiceInputTypes = BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | DeleteDomainCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
|
|
48
|
+
export type ServiceInputTypes = BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | DeleteDomainCommandInput | GetCaseAuditEventsCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
|
|
48
49
|
/**
|
|
49
50
|
* @public
|
|
50
51
|
*/
|
|
51
|
-
export type ServiceOutputTypes = BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | DeleteDomainCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
|
|
52
|
+
export type ServiceOutputTypes = BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | DeleteDomainCommandOutput | GetCaseAuditEventsCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
|
|
52
53
|
/**
|
|
53
54
|
* @public
|
|
54
55
|
*/
|
|
@@ -26,15 +26,20 @@ declare const CreateCaseCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <
|
|
29
|
+
* <note>
|
|
30
|
+
* <p>If you provide a value for <code>PerformedBy.UserArn</code> you must also have <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html">connect:DescribeUser</a> permission on the User ARN resource that you provide</p>
|
|
31
|
+
* </note>
|
|
32
|
+
*
|
|
33
|
+
* <p>Creates a case in the specified Cases domain. Case system and custom fields are taken
|
|
30
34
|
* as an array id/value pairs with a declared data types.</p>
|
|
31
|
-
*
|
|
35
|
+
* <p>The following fields are required when creating a case:</p>
|
|
32
36
|
*
|
|
33
37
|
* <ul>
|
|
34
38
|
* <li>
|
|
35
39
|
* <p>
|
|
36
|
-
* <code>customer_id</code> - You must provide the full customer profile ARN in this
|
|
37
|
-
*
|
|
40
|
+
* <code>customer_id</code> - You must provide the full customer profile ARN in this format:
|
|
41
|
+
* <code>arn:aws:profile:your_AWS_Region:your_AWS_account
|
|
42
|
+
* ID:domains/your_profiles_domain_name/profiles/profile_ID</code>
|
|
38
43
|
* </p>
|
|
39
44
|
* </li>
|
|
40
45
|
* <li>
|
|
@@ -60,10 +65,14 @@ declare const CreateCaseCommand_base: {
|
|
|
60
65
|
* doubleValue: Number("double"),
|
|
61
66
|
* booleanValue: true || false,
|
|
62
67
|
* emptyValue: {},
|
|
68
|
+
* userArnValue: "STRING_VALUE",
|
|
63
69
|
* },
|
|
64
70
|
* },
|
|
65
71
|
* ],
|
|
66
72
|
* clientToken: "STRING_VALUE",
|
|
73
|
+
* performedBy: { // UserUnion Union: only one key present
|
|
74
|
+
* userArn: "STRING_VALUE",
|
|
75
|
+
* },
|
|
67
76
|
* };
|
|
68
77
|
* const command = new CreateCaseCommand(input);
|
|
69
78
|
* const response = await client.send(command);
|
|
@@ -31,16 +31,15 @@ declare const CreateRelatedItemCommand_base: {
|
|
|
31
31
|
* <note>
|
|
32
32
|
* <ul>
|
|
33
33
|
* <li>
|
|
34
|
-
* <p>A Related Item is a resource that is associated with a case. It may or may not have
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
34
|
+
* <p>A Related Item is a resource that is associated with a case. It may or may not have
|
|
35
|
+
* an external identifier linking it to an external resource (for example, a
|
|
36
|
+
* <code>contactArn</code>). All Related Items have their own internal identifier, the
|
|
37
|
+
* <code>relatedItemArn</code>. Examples of related items include <code>comments</code>
|
|
38
|
+
* and <code>contacts</code>.</p>
|
|
39
39
|
* </li>
|
|
40
40
|
* <li>
|
|
41
41
|
* <p>If you provide a value for <code>performedBy.userArn</code> you must also have
|
|
42
|
-
*
|
|
43
|
-
* permission on the ARN of the user that you provide.</p>
|
|
42
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html">DescribeUser</a> permission on the ARN of the user that you provide.</p>
|
|
44
43
|
* </li>
|
|
45
44
|
* </ul>
|
|
46
45
|
*
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ConnectCasesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectCasesClient";
|
|
4
|
+
import { GetCaseAuditEventsRequest, GetCaseAuditEventsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link GetCaseAuditEventsCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetCaseAuditEventsCommandInput extends GetCaseAuditEventsRequest {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link GetCaseAuditEventsCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetCaseAuditEventsCommandOutput extends GetCaseAuditEventsResponse, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const GetCaseAuditEventsCommand_base: {
|
|
24
|
+
new (input: GetCaseAuditEventsCommandInput): import("@smithy/smithy-client").CommandImpl<GetCaseAuditEventsCommandInput, GetCaseAuditEventsCommandOutput, ConnectCasesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* <p>Returns the audit history about a specific case if it exists.</p>
|
|
30
|
+
* @example
|
|
31
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
+
* ```javascript
|
|
33
|
+
* import { ConnectCasesClient, GetCaseAuditEventsCommand } from "@aws-sdk/client-connectcases"; // ES Modules import
|
|
34
|
+
* // const { ConnectCasesClient, GetCaseAuditEventsCommand } = require("@aws-sdk/client-connectcases"); // CommonJS import
|
|
35
|
+
* const client = new ConnectCasesClient(config);
|
|
36
|
+
* const input = { // GetCaseAuditEventsRequest
|
|
37
|
+
* caseId: "STRING_VALUE", // required
|
|
38
|
+
* domainId: "STRING_VALUE", // required
|
|
39
|
+
* maxResults: Number("int"),
|
|
40
|
+
* nextToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetCaseAuditEventsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetCaseAuditEventsResponse
|
|
45
|
+
* // nextToken: "STRING_VALUE",
|
|
46
|
+
* // auditEvents: [ // AuditEventsList // required
|
|
47
|
+
* // { // AuditEvent
|
|
48
|
+
* // eventId: "STRING_VALUE", // required
|
|
49
|
+
* // type: "STRING_VALUE", // required
|
|
50
|
+
* // relatedItemType: "STRING_VALUE",
|
|
51
|
+
* // performedTime: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // fields: [ // AuditEventFieldList // required
|
|
53
|
+
* // { // AuditEventField
|
|
54
|
+
* // eventFieldId: "STRING_VALUE", // required
|
|
55
|
+
* // oldValue: { // AuditEventFieldValueUnion Union: only one key present
|
|
56
|
+
* // stringValue: "STRING_VALUE",
|
|
57
|
+
* // doubleValue: Number("double"),
|
|
58
|
+
* // booleanValue: true || false,
|
|
59
|
+
* // emptyValue: {},
|
|
60
|
+
* // userArnValue: "STRING_VALUE",
|
|
61
|
+
* // },
|
|
62
|
+
* // newValue: {// Union: only one key present
|
|
63
|
+
* // stringValue: "STRING_VALUE",
|
|
64
|
+
* // doubleValue: Number("double"),
|
|
65
|
+
* // booleanValue: true || false,
|
|
66
|
+
* // emptyValue: {},
|
|
67
|
+
* // userArnValue: "STRING_VALUE",
|
|
68
|
+
* // },
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // performedBy: { // AuditEventPerformedBy
|
|
72
|
+
* // user: { // UserUnion Union: only one key present
|
|
73
|
+
* // userArn: "STRING_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // iamPrincipalArn: "STRING_VALUE", // required
|
|
76
|
+
* // },
|
|
77
|
+
* // },
|
|
78
|
+
* // ],
|
|
79
|
+
* // };
|
|
80
|
+
*
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @param GetCaseAuditEventsCommandInput - {@link GetCaseAuditEventsCommandInput}
|
|
84
|
+
* @returns {@link GetCaseAuditEventsCommandOutput}
|
|
85
|
+
* @see {@link GetCaseAuditEventsCommandInput} for command's `input` shape.
|
|
86
|
+
* @see {@link GetCaseAuditEventsCommandOutput} for command's `response` shape.
|
|
87
|
+
* @see {@link ConnectCasesClientResolvedConfig | config} for ConnectCasesClient's `config` shape.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
90
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link InternalServerException} (server fault)
|
|
93
|
+
* <p>We couldn't process your request because of an issue with the server. Try again
|
|
94
|
+
* later.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
97
|
+
* <p>We couldn't find the requested resource. Check that your resources exists and were created
|
|
98
|
+
* in the same Amazon Web Services Region as your request, and try your request again.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
101
|
+
* <p>The rate has been exceeded for this API. Please try again after a few minutes.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link ValidationException} (client fault)
|
|
104
|
+
* <p>The request isn't valid. Check the syntax and try again.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ConnectCasesServiceException}
|
|
107
|
+
* <p>Base exception class for all service exceptions from ConnectCases service.</p>
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
export declare class GetCaseAuditEventsCommand extends GetCaseAuditEventsCommand_base {
|
|
111
|
+
}
|
|
@@ -26,9 +26,9 @@ declare const PutCaseEventConfigurationCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <p>Adds case event publishing configuration. For a complete list of
|
|
30
|
-
*
|
|
31
|
-
*
|
|
29
|
+
* <p>Adds case event publishing configuration. For a complete list of fields you can add to the
|
|
30
|
+
* event message, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-fields.html">Create case fields</a> in the
|
|
31
|
+
* <i>Amazon Connect Administrator Guide</i>
|
|
32
32
|
* </p>
|
|
33
33
|
* @example
|
|
34
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -53,6 +53,7 @@ declare const SearchCasesCommand_base: {
|
|
|
53
53
|
* doubleValue: Number("double"),
|
|
54
54
|
* booleanValue: true || false,
|
|
55
55
|
* emptyValue: {},
|
|
56
|
+
* userArnValue: "STRING_VALUE",
|
|
56
57
|
* },
|
|
57
58
|
* },
|
|
58
59
|
* contains: {
|
|
@@ -62,6 +63,7 @@ declare const SearchCasesCommand_base: {
|
|
|
62
63
|
* doubleValue: Number("double"),
|
|
63
64
|
* booleanValue: true || false,
|
|
64
65
|
* emptyValue: {},
|
|
66
|
+
* userArnValue: "STRING_VALUE",
|
|
65
67
|
* },
|
|
66
68
|
* },
|
|
67
69
|
* greaterThan: {
|
|
@@ -71,6 +73,7 @@ declare const SearchCasesCommand_base: {
|
|
|
71
73
|
* doubleValue: Number("double"),
|
|
72
74
|
* booleanValue: true || false,
|
|
73
75
|
* emptyValue: {},
|
|
76
|
+
* userArnValue: "STRING_VALUE",
|
|
74
77
|
* },
|
|
75
78
|
* },
|
|
76
79
|
* greaterThanOrEqualTo: {
|
|
@@ -80,6 +83,7 @@ declare const SearchCasesCommand_base: {
|
|
|
80
83
|
* doubleValue: Number("double"),
|
|
81
84
|
* booleanValue: true || false,
|
|
82
85
|
* emptyValue: {},
|
|
86
|
+
* userArnValue: "STRING_VALUE",
|
|
83
87
|
* },
|
|
84
88
|
* },
|
|
85
89
|
* lessThan: {
|
|
@@ -89,6 +93,7 @@ declare const SearchCasesCommand_base: {
|
|
|
89
93
|
* doubleValue: Number("double"),
|
|
90
94
|
* booleanValue: true || false,
|
|
91
95
|
* emptyValue: {},
|
|
96
|
+
* userArnValue: "STRING_VALUE",
|
|
92
97
|
* },
|
|
93
98
|
* },
|
|
94
99
|
* lessThanOrEqualTo: "<FieldValue>",
|
|
@@ -145,6 +150,7 @@ declare const SearchCasesCommand_base: {
|
|
|
145
150
|
* // doubleValue: Number("double"),
|
|
146
151
|
* // booleanValue: true || false,
|
|
147
152
|
* // emptyValue: {},
|
|
153
|
+
* // userArnValue: "STRING_VALUE",
|
|
148
154
|
* // },
|
|
149
155
|
* // },
|
|
150
156
|
* // ],
|
|
@@ -26,7 +26,11 @@ declare const UpdateCaseCommand_base: {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @public
|
|
29
|
-
* <
|
|
29
|
+
* <note>
|
|
30
|
+
* <p>If you provide a value for <code>PerformedBy.UserArn</code> you must also have <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html">connect:DescribeUser</a> permission on the User ARN resource that you provide</p>
|
|
31
|
+
* </note>
|
|
32
|
+
*
|
|
33
|
+
* <p>Updates the values of fields on a case. Fields to be updated are received as an array of
|
|
30
34
|
* id/value pairs identical to the <code>CreateCase</code> input .</p>
|
|
31
35
|
* <p>If the action is successful, the service sends back an HTTP 200 response with an empty
|
|
32
36
|
* HTTP body.</p>
|
|
@@ -47,9 +51,13 @@ declare const UpdateCaseCommand_base: {
|
|
|
47
51
|
* doubleValue: Number("double"),
|
|
48
52
|
* booleanValue: true || false,
|
|
49
53
|
* emptyValue: {},
|
|
54
|
+
* userArnValue: "STRING_VALUE",
|
|
50
55
|
* },
|
|
51
56
|
* },
|
|
52
57
|
* ],
|
|
58
|
+
* performedBy: { // UserUnion Union: only one key present
|
|
59
|
+
* userArn: "STRING_VALUE",
|
|
60
|
+
* },
|
|
53
61
|
* };
|
|
54
62
|
* const command = new UpdateCaseCommand(input);
|
|
55
63
|
* const response = await client.send(command);
|
|
@@ -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";
|