@aws-sdk/client-connectcases 3.441.0 → 3.446.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/dist-cjs/models/models_0.js +9 -1
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/CreateRelatedItemCommand.d.ts +15 -2
- package/dist-types/commands/SearchRelatedItemsCommand.d.ts +3 -0
- package/dist-types/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +40 -0
- package/dist-types/ts3.4/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +18 -0
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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;
|
|
3
|
+
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.UserUnion = exports.RelatedItemInputContent = exports.CommentBodyTextType = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.FieldValueUnion = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const ConnectCasesServiceException_1 = require("./ConnectCasesServiceException");
|
|
5
5
|
class AccessDeniedException extends ConnectCasesServiceException_1.ConnectCasesServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -112,6 +112,14 @@ var RelatedItemInputContent;
|
|
|
112
112
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
113
113
|
};
|
|
114
114
|
})(RelatedItemInputContent = exports.RelatedItemInputContent || (exports.RelatedItemInputContent = {}));
|
|
115
|
+
var UserUnion;
|
|
116
|
+
(function (UserUnion) {
|
|
117
|
+
UserUnion.visit = (value, visitor) => {
|
|
118
|
+
if (value.userArn !== undefined)
|
|
119
|
+
return visitor.userArn(value.userArn);
|
|
120
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
121
|
+
};
|
|
122
|
+
})(UserUnion = exports.UserUnion || (exports.UserUnion = {}));
|
|
115
123
|
exports.RelatedItemType = {
|
|
116
124
|
COMMENT: "Comment",
|
|
117
125
|
CONTACT: "Contact",
|
|
@@ -158,6 +158,7 @@ const se_CreateRelatedItemCommand = async (input, context) => {
|
|
|
158
158
|
let body;
|
|
159
159
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
160
160
|
content: (_) => (0, smithy_client_1._json)(_),
|
|
161
|
+
performedBy: (_) => (0, smithy_client_1._json)(_),
|
|
161
162
|
type: [],
|
|
162
163
|
}));
|
|
163
164
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2360,6 +2361,7 @@ const de_SearchRelatedItemsResponseItem = (output, context) => {
|
|
|
2360
2361
|
return (0, smithy_client_1.take)(output, {
|
|
2361
2362
|
associationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2362
2363
|
content: (_) => de_RelatedItemContent((0, core_1.awsExpectUnion)(_), context),
|
|
2364
|
+
performedBy: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
2363
2365
|
relatedItemId: smithy_client_1.expectString,
|
|
2364
2366
|
tags: (_) => de_Tags(_, context),
|
|
2365
2367
|
type: smithy_client_1.expectString,
|
|
@@ -103,6 +103,14 @@ export var RelatedItemInputContent;
|
|
|
103
103
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
104
104
|
};
|
|
105
105
|
})(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 = {}));
|
|
106
114
|
export const RelatedItemType = {
|
|
107
115
|
COMMENT: "Comment",
|
|
108
116
|
CONTACT: "Contact",
|
|
@@ -148,6 +148,7 @@ export const se_CreateRelatedItemCommand = async (input, context) => {
|
|
|
148
148
|
let body;
|
|
149
149
|
body = JSON.stringify(take(input, {
|
|
150
150
|
content: (_) => _json(_),
|
|
151
|
+
performedBy: (_) => _json(_),
|
|
151
152
|
type: [],
|
|
152
153
|
}));
|
|
153
154
|
return new __HttpRequest({
|
|
@@ -2296,6 +2297,7 @@ const de_SearchRelatedItemsResponseItem = (output, context) => {
|
|
|
2296
2297
|
return take(output, {
|
|
2297
2298
|
associationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2298
2299
|
content: (_) => de_RelatedItemContent(__expectUnion(_), context),
|
|
2300
|
+
performedBy: (_) => _json(__expectUnion(_)),
|
|
2299
2301
|
relatedItemId: __expectString,
|
|
2300
2302
|
tags: (_) => de_Tags(_, context),
|
|
2301
2303
|
type: __expectString,
|
|
@@ -26,11 +26,21 @@ export interface CreateRelatedItemCommandOutput extends CreateRelatedItemRespons
|
|
|
26
26
|
* <p>Creates a related item (comments, tasks, and contacts) and associates it with a
|
|
27
27
|
* case.</p>
|
|
28
28
|
* <note>
|
|
29
|
-
* <
|
|
30
|
-
*
|
|
29
|
+
* <ul>
|
|
30
|
+
* <li>
|
|
31
|
+
* <p>A Related Item is a resource that is associated with a case. It may or may not have an
|
|
32
|
+
* external identifier linking it to an external resource (for example, a
|
|
31
33
|
* <code>contactArn</code>). All Related Items have their own internal identifier, the
|
|
32
34
|
* <code>relatedItemArn</code>. Examples of related items include <code>comments</code> and
|
|
33
35
|
* <code>contacts</code>.</p>
|
|
36
|
+
* </li>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>If you provide a value for <code>performedBy.userArn</code> you must also have
|
|
39
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html">DescribeUser</a>
|
|
40
|
+
* permission on the ARN of the user that you provide.</p>
|
|
41
|
+
* </li>
|
|
42
|
+
* </ul>
|
|
43
|
+
*
|
|
34
44
|
* </note>
|
|
35
45
|
* @example
|
|
36
46
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -51,6 +61,9 @@ export interface CreateRelatedItemCommandOutput extends CreateRelatedItemRespons
|
|
|
51
61
|
* contentType: "STRING_VALUE", // required
|
|
52
62
|
* },
|
|
53
63
|
* },
|
|
64
|
+
* performedBy: { // UserUnion Union: only one key present
|
|
65
|
+
* userArn: "STRING_VALUE",
|
|
66
|
+
* },
|
|
54
67
|
* };
|
|
55
68
|
* const command = new CreateRelatedItemCommand(input);
|
|
56
69
|
* const response = await client.send(command);
|
|
@@ -74,6 +74,9 @@ export interface SearchRelatedItemsCommandOutput extends SearchRelatedItemsRespo
|
|
|
74
74
|
* // tags: { // Tags
|
|
75
75
|
* // "<keys>": "STRING_VALUE",
|
|
76
76
|
* // },
|
|
77
|
+
* // performedBy: { // UserUnion Union: only one key present
|
|
78
|
+
* // userArn: "STRING_VALUE",
|
|
79
|
+
* // },
|
|
77
80
|
* // },
|
|
78
81
|
* // ],
|
|
79
82
|
* // };
|
package/dist-types/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
export * from "./ConnectCasesClient";
|
|
11
11
|
export * from "./ConnectCases";
|
|
12
12
|
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
13
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
14
|
+
export { ConnectCasesExtensionConfiguration } from "./extensionConfiguration";
|
|
13
15
|
export * from "./commands";
|
|
14
16
|
export * from "./pagination";
|
|
15
17
|
export * from "./models";
|
|
@@ -434,6 +434,36 @@ export declare namespace RelatedItemInputContent {
|
|
|
434
434
|
}
|
|
435
435
|
const visit: <T>(value: RelatedItemInputContent, visitor: Visitor<T>) => T;
|
|
436
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* @public
|
|
439
|
+
* <p>Represents the identity of the person who performed the action.</p>
|
|
440
|
+
*/
|
|
441
|
+
export type UserUnion = UserUnion.UserArnMember | UserUnion.$UnknownMember;
|
|
442
|
+
/**
|
|
443
|
+
* @public
|
|
444
|
+
*/
|
|
445
|
+
export declare namespace UserUnion {
|
|
446
|
+
/**
|
|
447
|
+
* @public
|
|
448
|
+
* <p>Represents the Amazon Connect ARN of the user.</p>
|
|
449
|
+
*/
|
|
450
|
+
interface UserArnMember {
|
|
451
|
+
userArn: string;
|
|
452
|
+
$unknown?: never;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* @public
|
|
456
|
+
*/
|
|
457
|
+
interface $UnknownMember {
|
|
458
|
+
userArn?: never;
|
|
459
|
+
$unknown: [string, any];
|
|
460
|
+
}
|
|
461
|
+
interface Visitor<T> {
|
|
462
|
+
userArn: (value: string) => T;
|
|
463
|
+
_: (name: string, value: any) => T;
|
|
464
|
+
}
|
|
465
|
+
const visit: <T>(value: UserUnion, visitor: Visitor<T>) => T;
|
|
466
|
+
}
|
|
437
467
|
/**
|
|
438
468
|
* @public
|
|
439
469
|
* @enum
|
|
@@ -470,6 +500,11 @@ export interface CreateRelatedItemRequest {
|
|
|
470
500
|
* <p>The content of a related item to be created.</p>
|
|
471
501
|
*/
|
|
472
502
|
content: RelatedItemInputContent | undefined;
|
|
503
|
+
/**
|
|
504
|
+
* @public
|
|
505
|
+
* <p>Represents the creator of the related item.</p>
|
|
506
|
+
*/
|
|
507
|
+
performedBy?: UserUnion;
|
|
473
508
|
}
|
|
474
509
|
/**
|
|
475
510
|
* @public
|
|
@@ -688,6 +723,11 @@ export interface SearchRelatedItemsResponseItem {
|
|
|
688
723
|
* <p>A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.</p>
|
|
689
724
|
*/
|
|
690
725
|
tags?: Record<string, string>;
|
|
726
|
+
/**
|
|
727
|
+
* @public
|
|
728
|
+
* <p>Represents the creator of the related item.</p>
|
|
729
|
+
*/
|
|
730
|
+
performedBy?: UserUnion;
|
|
691
731
|
}
|
|
692
732
|
/**
|
|
693
733
|
* @public
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./ConnectCasesClient";
|
|
2
2
|
export * from "./ConnectCases";
|
|
3
3
|
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
4
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
5
|
+
export { ConnectCasesExtensionConfiguration } from "./extensionConfiguration";
|
|
4
6
|
export * from "./commands";
|
|
5
7
|
export * from "./pagination";
|
|
6
8
|
export * from "./models";
|
|
@@ -179,6 +179,22 @@ export declare namespace RelatedItemInputContent {
|
|
|
179
179
|
}
|
|
180
180
|
const visit: <T>(value: RelatedItemInputContent, visitor: Visitor<T>) => T;
|
|
181
181
|
}
|
|
182
|
+
export type UserUnion = UserUnion.UserArnMember | UserUnion.$UnknownMember;
|
|
183
|
+
export declare namespace UserUnion {
|
|
184
|
+
interface UserArnMember {
|
|
185
|
+
userArn: string;
|
|
186
|
+
$unknown?: never;
|
|
187
|
+
}
|
|
188
|
+
interface $UnknownMember {
|
|
189
|
+
userArn?: never;
|
|
190
|
+
$unknown: [string, any];
|
|
191
|
+
}
|
|
192
|
+
interface Visitor<T> {
|
|
193
|
+
userArn: (value: string) => T;
|
|
194
|
+
_: (name: string, value: any) => T;
|
|
195
|
+
}
|
|
196
|
+
const visit: <T>(value: UserUnion, visitor: Visitor<T>) => T;
|
|
197
|
+
}
|
|
182
198
|
export declare const RelatedItemType: {
|
|
183
199
|
readonly COMMENT: "Comment";
|
|
184
200
|
readonly CONTACT: "Contact";
|
|
@@ -190,6 +206,7 @@ export interface CreateRelatedItemRequest {
|
|
|
190
206
|
caseId: string | undefined;
|
|
191
207
|
type: RelatedItemType | undefined;
|
|
192
208
|
content: RelatedItemInputContent | undefined;
|
|
209
|
+
performedBy?: UserUnion;
|
|
193
210
|
}
|
|
194
211
|
export interface CreateRelatedItemResponse {
|
|
195
212
|
relatedItemId: string | undefined;
|
|
@@ -279,6 +296,7 @@ export interface SearchRelatedItemsResponseItem {
|
|
|
279
296
|
associationTime: Date | undefined;
|
|
280
297
|
content: RelatedItemContent | undefined;
|
|
281
298
|
tags?: Record<string, string>;
|
|
299
|
+
performedBy?: UserUnion;
|
|
282
300
|
}
|
|
283
301
|
export interface SearchRelatedItemsResponse {
|
|
284
302
|
nextToken?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-connectcases",
|
|
3
3
|
"description": "AWS SDK for JavaScript Connectcases Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.446.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.445.0",
|
|
25
|
+
"@aws-sdk/core": "3.445.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.445.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.433.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.433.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.433.0",
|