@aws-sdk/client-connectcases 3.928.0 → 3.930.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/index.js +1928 -2515
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/ConnectCasesClient.js +2 -0
- package/dist-es/commands/BatchGetCaseRuleCommand.js +3 -9
- package/dist-es/commands/BatchGetFieldCommand.js +3 -9
- package/dist-es/commands/BatchPutFieldOptionsCommand.js +3 -9
- package/dist-es/commands/CreateCaseCommand.js +3 -10
- package/dist-es/commands/CreateCaseRuleCommand.js +3 -9
- package/dist-es/commands/CreateDomainCommand.js +3 -9
- package/dist-es/commands/CreateFieldCommand.js +3 -9
- package/dist-es/commands/CreateLayoutCommand.js +3 -9
- package/dist-es/commands/CreateRelatedItemCommand.js +3 -10
- package/dist-es/commands/CreateTemplateCommand.js +3 -9
- package/dist-es/commands/DeleteCaseCommand.js +3 -9
- package/dist-es/commands/DeleteCaseRuleCommand.js +3 -9
- package/dist-es/commands/DeleteDomainCommand.js +3 -9
- package/dist-es/commands/DeleteFieldCommand.js +3 -9
- package/dist-es/commands/DeleteLayoutCommand.js +3 -9
- package/dist-es/commands/DeleteRelatedItemCommand.js +3 -9
- package/dist-es/commands/DeleteTemplateCommand.js +3 -9
- package/dist-es/commands/GetCaseAuditEventsCommand.js +3 -10
- package/dist-es/commands/GetCaseCommand.js +3 -9
- package/dist-es/commands/GetCaseEventConfigurationCommand.js +3 -9
- package/dist-es/commands/GetDomainCommand.js +3 -9
- package/dist-es/commands/GetLayoutCommand.js +3 -9
- package/dist-es/commands/GetTemplateCommand.js +3 -9
- package/dist-es/commands/ListCaseRulesCommand.js +3 -9
- package/dist-es/commands/ListCasesForContactCommand.js +3 -9
- package/dist-es/commands/ListDomainsCommand.js +3 -9
- package/dist-es/commands/ListFieldOptionsCommand.js +3 -9
- package/dist-es/commands/ListFieldsCommand.js +3 -9
- package/dist-es/commands/ListLayoutsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTemplatesCommand.js +3 -9
- package/dist-es/commands/PutCaseEventConfigurationCommand.js +3 -9
- package/dist-es/commands/SearchAllRelatedItemsCommand.js +3 -10
- package/dist-es/commands/SearchCasesCommand.js +3 -9
- package/dist-es/commands/SearchRelatedItemsCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateCaseCommand.js +3 -10
- package/dist-es/commands/UpdateCaseRuleCommand.js +3 -9
- package/dist-es/commands/UpdateFieldCommand.js +3 -9
- package/dist-es/commands/UpdateLayoutCommand.js +3 -9
- package/dist-es/commands/UpdateTemplateCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -349
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1832 -0
- package/dist-types/ConnectCasesClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +64 -100
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +250 -0
- package/dist-types/ts3.4/ConnectCasesClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -71
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +257 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -1837
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -380
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -509
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { ConnectCasesServiceException as __BaseException } from "./ConnectCasesServiceException";
|
|
3
2
|
export class AccessDeniedException extends __BaseException {
|
|
4
3
|
name = "AccessDeniedException";
|
|
@@ -24,32 +23,6 @@ export class ConflictException extends __BaseException {
|
|
|
24
23
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
|
-
export var FieldValueUnion;
|
|
28
|
-
(function (FieldValueUnion) {
|
|
29
|
-
FieldValueUnion.visit = (value, visitor) => {
|
|
30
|
-
if (value.stringValue !== undefined)
|
|
31
|
-
return visitor.stringValue(value.stringValue);
|
|
32
|
-
if (value.doubleValue !== undefined)
|
|
33
|
-
return visitor.doubleValue(value.doubleValue);
|
|
34
|
-
if (value.booleanValue !== undefined)
|
|
35
|
-
return visitor.booleanValue(value.booleanValue);
|
|
36
|
-
if (value.emptyValue !== undefined)
|
|
37
|
-
return visitor.emptyValue(value.emptyValue);
|
|
38
|
-
if (value.userArnValue !== undefined)
|
|
39
|
-
return visitor.userArnValue(value.userArnValue);
|
|
40
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
41
|
-
};
|
|
42
|
-
})(FieldValueUnion || (FieldValueUnion = {}));
|
|
43
|
-
export var UserUnion;
|
|
44
|
-
(function (UserUnion) {
|
|
45
|
-
UserUnion.visit = (value, visitor) => {
|
|
46
|
-
if (value.userArn !== undefined)
|
|
47
|
-
return visitor.userArn(value.userArn);
|
|
48
|
-
if (value.customEntity !== undefined)
|
|
49
|
-
return visitor.customEntity(value.customEntity);
|
|
50
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
51
|
-
};
|
|
52
|
-
})(UserUnion || (UserUnion = {}));
|
|
53
26
|
export class InternalServerException extends __BaseException {
|
|
54
27
|
name = "InternalServerException";
|
|
55
28
|
$fault = "server";
|
|
@@ -106,22 +79,6 @@ export class ValidationException extends __BaseException {
|
|
|
106
79
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
107
80
|
}
|
|
108
81
|
}
|
|
109
|
-
export var AuditEventFieldValueUnion;
|
|
110
|
-
(function (AuditEventFieldValueUnion) {
|
|
111
|
-
AuditEventFieldValueUnion.visit = (value, visitor) => {
|
|
112
|
-
if (value.stringValue !== undefined)
|
|
113
|
-
return visitor.stringValue(value.stringValue);
|
|
114
|
-
if (value.doubleValue !== undefined)
|
|
115
|
-
return visitor.doubleValue(value.doubleValue);
|
|
116
|
-
if (value.booleanValue !== undefined)
|
|
117
|
-
return visitor.booleanValue(value.booleanValue);
|
|
118
|
-
if (value.emptyValue !== undefined)
|
|
119
|
-
return visitor.emptyValue(value.emptyValue);
|
|
120
|
-
if (value.userArnValue !== undefined)
|
|
121
|
-
return visitor.userArnValue(value.userArnValue);
|
|
122
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
123
|
-
};
|
|
124
|
-
})(AuditEventFieldValueUnion || (AuditEventFieldValueUnion = {}));
|
|
125
82
|
export const RelatedItemType = {
|
|
126
83
|
COMMENT: "Comment",
|
|
127
84
|
CONNECT_CASE: "ConnectCase",
|
|
@@ -141,32 +98,6 @@ export const CommentBodyTextType = {
|
|
|
141
98
|
export const SlaType = {
|
|
142
99
|
CASE_FIELD: "CaseField",
|
|
143
100
|
};
|
|
144
|
-
export var SlaInputContent;
|
|
145
|
-
(function (SlaInputContent) {
|
|
146
|
-
SlaInputContent.visit = (value, visitor) => {
|
|
147
|
-
if (value.slaInputConfiguration !== undefined)
|
|
148
|
-
return visitor.slaInputConfiguration(value.slaInputConfiguration);
|
|
149
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
150
|
-
};
|
|
151
|
-
})(SlaInputContent || (SlaInputContent = {}));
|
|
152
|
-
export var RelatedItemInputContent;
|
|
153
|
-
(function (RelatedItemInputContent) {
|
|
154
|
-
RelatedItemInputContent.visit = (value, visitor) => {
|
|
155
|
-
if (value.contact !== undefined)
|
|
156
|
-
return visitor.contact(value.contact);
|
|
157
|
-
if (value.comment !== undefined)
|
|
158
|
-
return visitor.comment(value.comment);
|
|
159
|
-
if (value.file !== undefined)
|
|
160
|
-
return visitor.file(value.file);
|
|
161
|
-
if (value.sla !== undefined)
|
|
162
|
-
return visitor.sla(value.sla);
|
|
163
|
-
if (value.connectCase !== undefined)
|
|
164
|
-
return visitor.connectCase(value.connectCase);
|
|
165
|
-
if (value.custom !== undefined)
|
|
166
|
-
return visitor.custom(value.custom);
|
|
167
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
168
|
-
};
|
|
169
|
-
})(RelatedItemInputContent || (RelatedItemInputContent = {}));
|
|
170
101
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
171
102
|
name = "ServiceQuotaExceededException";
|
|
172
103
|
$fault = "client";
|
|
@@ -179,96 +110,16 @@ export class ServiceQuotaExceededException extends __BaseException {
|
|
|
179
110
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
180
111
|
}
|
|
181
112
|
}
|
|
182
|
-
export var FieldFilter;
|
|
183
|
-
(function (FieldFilter) {
|
|
184
|
-
FieldFilter.visit = (value, visitor) => {
|
|
185
|
-
if (value.equalTo !== undefined)
|
|
186
|
-
return visitor.equalTo(value.equalTo);
|
|
187
|
-
if (value.contains !== undefined)
|
|
188
|
-
return visitor.contains(value.contains);
|
|
189
|
-
if (value.greaterThan !== undefined)
|
|
190
|
-
return visitor.greaterThan(value.greaterThan);
|
|
191
|
-
if (value.greaterThanOrEqualTo !== undefined)
|
|
192
|
-
return visitor.greaterThanOrEqualTo(value.greaterThanOrEqualTo);
|
|
193
|
-
if (value.lessThan !== undefined)
|
|
194
|
-
return visitor.lessThan(value.lessThan);
|
|
195
|
-
if (value.lessThanOrEqualTo !== undefined)
|
|
196
|
-
return visitor.lessThanOrEqualTo(value.lessThanOrEqualTo);
|
|
197
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
198
|
-
};
|
|
199
|
-
})(FieldFilter || (FieldFilter = {}));
|
|
200
113
|
export const SlaStatus = {
|
|
201
114
|
ACTIVE: "Active",
|
|
202
115
|
MET: "Met",
|
|
203
116
|
NOT_MET: "NotMet",
|
|
204
117
|
OVERDUE: "Overdue",
|
|
205
118
|
};
|
|
206
|
-
export var RelatedItemContent;
|
|
207
|
-
(function (RelatedItemContent) {
|
|
208
|
-
RelatedItemContent.visit = (value, visitor) => {
|
|
209
|
-
if (value.contact !== undefined)
|
|
210
|
-
return visitor.contact(value.contact);
|
|
211
|
-
if (value.comment !== undefined)
|
|
212
|
-
return visitor.comment(value.comment);
|
|
213
|
-
if (value.file !== undefined)
|
|
214
|
-
return visitor.file(value.file);
|
|
215
|
-
if (value.sla !== undefined)
|
|
216
|
-
return visitor.sla(value.sla);
|
|
217
|
-
if (value.connectCase !== undefined)
|
|
218
|
-
return visitor.connectCase(value.connectCase);
|
|
219
|
-
if (value.custom !== undefined)
|
|
220
|
-
return visitor.custom(value.custom);
|
|
221
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
222
|
-
};
|
|
223
|
-
})(RelatedItemContent || (RelatedItemContent = {}));
|
|
224
119
|
export const Order = {
|
|
225
120
|
ASCENDING: "Asc",
|
|
226
121
|
DESCENDING: "Desc",
|
|
227
122
|
};
|
|
228
|
-
export var OperandOne;
|
|
229
|
-
(function (OperandOne) {
|
|
230
|
-
OperandOne.visit = (value, visitor) => {
|
|
231
|
-
if (value.fieldId !== undefined)
|
|
232
|
-
return visitor.fieldId(value.fieldId);
|
|
233
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
234
|
-
};
|
|
235
|
-
})(OperandOne || (OperandOne = {}));
|
|
236
|
-
export var OperandTwo;
|
|
237
|
-
(function (OperandTwo) {
|
|
238
|
-
OperandTwo.visit = (value, visitor) => {
|
|
239
|
-
if (value.stringValue !== undefined)
|
|
240
|
-
return visitor.stringValue(value.stringValue);
|
|
241
|
-
if (value.booleanValue !== undefined)
|
|
242
|
-
return visitor.booleanValue(value.booleanValue);
|
|
243
|
-
if (value.doubleValue !== undefined)
|
|
244
|
-
return visitor.doubleValue(value.doubleValue);
|
|
245
|
-
if (value.emptyValue !== undefined)
|
|
246
|
-
return visitor.emptyValue(value.emptyValue);
|
|
247
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
248
|
-
};
|
|
249
|
-
})(OperandTwo || (OperandTwo = {}));
|
|
250
|
-
export var BooleanCondition;
|
|
251
|
-
(function (BooleanCondition) {
|
|
252
|
-
BooleanCondition.visit = (value, visitor) => {
|
|
253
|
-
if (value.equalTo !== undefined)
|
|
254
|
-
return visitor.equalTo(value.equalTo);
|
|
255
|
-
if (value.notEqualTo !== undefined)
|
|
256
|
-
return visitor.notEqualTo(value.notEqualTo);
|
|
257
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
258
|
-
};
|
|
259
|
-
})(BooleanCondition || (BooleanCondition = {}));
|
|
260
|
-
export var CaseRuleDetails;
|
|
261
|
-
(function (CaseRuleDetails) {
|
|
262
|
-
CaseRuleDetails.visit = (value, visitor) => {
|
|
263
|
-
if (value.required !== undefined)
|
|
264
|
-
return visitor.required(value.required);
|
|
265
|
-
if (value.fieldOptions !== undefined)
|
|
266
|
-
return visitor.fieldOptions(value.fieldOptions);
|
|
267
|
-
if (value.hidden !== undefined)
|
|
268
|
-
return visitor.hidden(value.hidden);
|
|
269
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
270
|
-
};
|
|
271
|
-
})(CaseRuleDetails || (CaseRuleDetails = {}));
|
|
272
123
|
export const RuleType = {
|
|
273
124
|
FIELD_OPTIONS: "FieldOptions",
|
|
274
125
|
HIDDEN: "Hidden",
|
|
@@ -296,207 +147,7 @@ export const FieldType = {
|
|
|
296
147
|
URL: "Url",
|
|
297
148
|
USER: "User",
|
|
298
149
|
};
|
|
299
|
-
export var Section;
|
|
300
|
-
(function (Section) {
|
|
301
|
-
Section.visit = (value, visitor) => {
|
|
302
|
-
if (value.fieldGroup !== undefined)
|
|
303
|
-
return visitor.fieldGroup(value.fieldGroup);
|
|
304
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
305
|
-
};
|
|
306
|
-
})(Section || (Section = {}));
|
|
307
|
-
export var LayoutContent;
|
|
308
|
-
(function (LayoutContent) {
|
|
309
|
-
LayoutContent.visit = (value, visitor) => {
|
|
310
|
-
if (value.basic !== undefined)
|
|
311
|
-
return visitor.basic(value.basic);
|
|
312
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
313
|
-
};
|
|
314
|
-
})(LayoutContent || (LayoutContent = {}));
|
|
315
150
|
export const TemplateStatus = {
|
|
316
151
|
ACTIVE: "Active",
|
|
317
152
|
INACTIVE: "Inactive",
|
|
318
153
|
};
|
|
319
|
-
export var CaseFilter;
|
|
320
|
-
(function (CaseFilter) {
|
|
321
|
-
CaseFilter.visit = (value, visitor) => {
|
|
322
|
-
if (value.field !== undefined)
|
|
323
|
-
return visitor.field(value.field);
|
|
324
|
-
if (value.not !== undefined)
|
|
325
|
-
return visitor.not(value.not);
|
|
326
|
-
if (value.andAll !== undefined)
|
|
327
|
-
return visitor.andAll(value.andAll);
|
|
328
|
-
if (value.orAll !== undefined)
|
|
329
|
-
return visitor.orAll(value.orAll);
|
|
330
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
331
|
-
};
|
|
332
|
-
})(CaseFilter || (CaseFilter = {}));
|
|
333
|
-
export var CustomFieldsFilter;
|
|
334
|
-
(function (CustomFieldsFilter) {
|
|
335
|
-
CustomFieldsFilter.visit = (value, visitor) => {
|
|
336
|
-
if (value.field !== undefined)
|
|
337
|
-
return visitor.field(value.field);
|
|
338
|
-
if (value.not !== undefined)
|
|
339
|
-
return visitor.not(value.not);
|
|
340
|
-
if (value.andAll !== undefined)
|
|
341
|
-
return visitor.andAll(value.andAll);
|
|
342
|
-
if (value.orAll !== undefined)
|
|
343
|
-
return visitor.orAll(value.orAll);
|
|
344
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
345
|
-
};
|
|
346
|
-
})(CustomFieldsFilter || (CustomFieldsFilter = {}));
|
|
347
|
-
export var RelatedItemTypeFilter;
|
|
348
|
-
(function (RelatedItemTypeFilter) {
|
|
349
|
-
RelatedItemTypeFilter.visit = (value, visitor) => {
|
|
350
|
-
if (value.contact !== undefined)
|
|
351
|
-
return visitor.contact(value.contact);
|
|
352
|
-
if (value.comment !== undefined)
|
|
353
|
-
return visitor.comment(value.comment);
|
|
354
|
-
if (value.file !== undefined)
|
|
355
|
-
return visitor.file(value.file);
|
|
356
|
-
if (value.sla !== undefined)
|
|
357
|
-
return visitor.sla(value.sla);
|
|
358
|
-
if (value.connectCase !== undefined)
|
|
359
|
-
return visitor.connectCase(value.connectCase);
|
|
360
|
-
if (value.custom !== undefined)
|
|
361
|
-
return visitor.custom(value.custom);
|
|
362
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
363
|
-
};
|
|
364
|
-
})(RelatedItemTypeFilter || (RelatedItemTypeFilter = {}));
|
|
365
|
-
export const UserUnionFilterSensitiveLog = (obj) => {
|
|
366
|
-
if (obj.userArn !== undefined)
|
|
367
|
-
return { userArn: obj.userArn };
|
|
368
|
-
if (obj.customEntity !== undefined)
|
|
369
|
-
return { customEntity: SENSITIVE_STRING };
|
|
370
|
-
if (obj.$unknown !== undefined)
|
|
371
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
372
|
-
};
|
|
373
|
-
export const CreateCaseRequestFilterSensitiveLog = (obj) => ({
|
|
374
|
-
...obj,
|
|
375
|
-
...(obj.fields && { fields: obj.fields.map((item) => item) }),
|
|
376
|
-
...(obj.performedBy && { performedBy: UserUnionFilterSensitiveLog(obj.performedBy) }),
|
|
377
|
-
});
|
|
378
|
-
export const AuditEventPerformedByFilterSensitiveLog = (obj) => ({
|
|
379
|
-
...obj,
|
|
380
|
-
...(obj.user && { user: UserUnionFilterSensitiveLog(obj.user) }),
|
|
381
|
-
});
|
|
382
|
-
export const AuditEventFilterSensitiveLog = (obj) => ({
|
|
383
|
-
...obj,
|
|
384
|
-
...(obj.fields && { fields: obj.fields.map((item) => item) }),
|
|
385
|
-
...(obj.performedBy && { performedBy: AuditEventPerformedByFilterSensitiveLog(obj.performedBy) }),
|
|
386
|
-
});
|
|
387
|
-
export const GetCaseAuditEventsResponseFilterSensitiveLog = (obj) => ({
|
|
388
|
-
...obj,
|
|
389
|
-
...(obj.auditEvents && { auditEvents: obj.auditEvents.map((item) => AuditEventFilterSensitiveLog(item)) }),
|
|
390
|
-
});
|
|
391
|
-
export const SlaInputConfigurationFilterSensitiveLog = (obj) => ({
|
|
392
|
-
...obj,
|
|
393
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
394
|
-
...(obj.targetFieldValues && { targetFieldValues: obj.targetFieldValues.map((item) => item) }),
|
|
395
|
-
});
|
|
396
|
-
export const SlaInputContentFilterSensitiveLog = (obj) => {
|
|
397
|
-
if (obj.slaInputConfiguration !== undefined)
|
|
398
|
-
return { slaInputConfiguration: SlaInputConfigurationFilterSensitiveLog(obj.slaInputConfiguration) };
|
|
399
|
-
if (obj.$unknown !== undefined)
|
|
400
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
401
|
-
};
|
|
402
|
-
export const RelatedItemInputContentFilterSensitiveLog = (obj) => {
|
|
403
|
-
if (obj.contact !== undefined)
|
|
404
|
-
return { contact: obj.contact };
|
|
405
|
-
if (obj.comment !== undefined)
|
|
406
|
-
return { comment: obj.comment };
|
|
407
|
-
if (obj.file !== undefined)
|
|
408
|
-
return { file: obj.file };
|
|
409
|
-
if (obj.sla !== undefined)
|
|
410
|
-
return { sla: SlaInputContentFilterSensitiveLog(obj.sla) };
|
|
411
|
-
if (obj.connectCase !== undefined)
|
|
412
|
-
return { connectCase: obj.connectCase };
|
|
413
|
-
if (obj.custom !== undefined)
|
|
414
|
-
return { custom: obj.custom };
|
|
415
|
-
if (obj.$unknown !== undefined)
|
|
416
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
417
|
-
};
|
|
418
|
-
export const CreateRelatedItemRequestFilterSensitiveLog = (obj) => ({
|
|
419
|
-
...obj,
|
|
420
|
-
...(obj.content && { content: RelatedItemInputContentFilterSensitiveLog(obj.content) }),
|
|
421
|
-
...(obj.performedBy && { performedBy: UserUnionFilterSensitiveLog(obj.performedBy) }),
|
|
422
|
-
});
|
|
423
|
-
export const SlaFilterFilterSensitiveLog = (obj) => ({
|
|
424
|
-
...obj,
|
|
425
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
426
|
-
});
|
|
427
|
-
export const SlaConfigurationFilterSensitiveLog = (obj) => ({
|
|
428
|
-
...obj,
|
|
429
|
-
...(obj.name && { name: SENSITIVE_STRING }),
|
|
430
|
-
...(obj.targetFieldValues && { targetFieldValues: obj.targetFieldValues.map((item) => item) }),
|
|
431
|
-
});
|
|
432
|
-
export const SlaContentFilterSensitiveLog = (obj) => ({
|
|
433
|
-
...obj,
|
|
434
|
-
...(obj.slaConfiguration && { slaConfiguration: SlaConfigurationFilterSensitiveLog(obj.slaConfiguration) }),
|
|
435
|
-
});
|
|
436
|
-
export const RelatedItemContentFilterSensitiveLog = (obj) => {
|
|
437
|
-
if (obj.contact !== undefined)
|
|
438
|
-
return { contact: obj.contact };
|
|
439
|
-
if (obj.comment !== undefined)
|
|
440
|
-
return { comment: obj.comment };
|
|
441
|
-
if (obj.file !== undefined)
|
|
442
|
-
return { file: obj.file };
|
|
443
|
-
if (obj.sla !== undefined)
|
|
444
|
-
return { sla: SlaContentFilterSensitiveLog(obj.sla) };
|
|
445
|
-
if (obj.connectCase !== undefined)
|
|
446
|
-
return { connectCase: obj.connectCase };
|
|
447
|
-
if (obj.custom !== undefined)
|
|
448
|
-
return { custom: obj.custom };
|
|
449
|
-
if (obj.$unknown !== undefined)
|
|
450
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
451
|
-
};
|
|
452
|
-
export const SearchRelatedItemsResponseItemFilterSensitiveLog = (obj) => ({
|
|
453
|
-
...obj,
|
|
454
|
-
...(obj.content && { content: RelatedItemContentFilterSensitiveLog(obj.content) }),
|
|
455
|
-
...(obj.performedBy && { performedBy: UserUnionFilterSensitiveLog(obj.performedBy) }),
|
|
456
|
-
});
|
|
457
|
-
export const SearchRelatedItemsResponseFilterSensitiveLog = (obj) => ({
|
|
458
|
-
...obj,
|
|
459
|
-
...(obj.relatedItems && {
|
|
460
|
-
relatedItems: obj.relatedItems.map((item) => SearchRelatedItemsResponseItemFilterSensitiveLog(item)),
|
|
461
|
-
}),
|
|
462
|
-
});
|
|
463
|
-
export const UpdateCaseRequestFilterSensitiveLog = (obj) => ({
|
|
464
|
-
...obj,
|
|
465
|
-
...(obj.fields && { fields: obj.fields.map((item) => item) }),
|
|
466
|
-
...(obj.performedBy && { performedBy: UserUnionFilterSensitiveLog(obj.performedBy) }),
|
|
467
|
-
});
|
|
468
|
-
export const SearchAllRelatedItemsResponseItemFilterSensitiveLog = (obj) => ({
|
|
469
|
-
...obj,
|
|
470
|
-
...(obj.content && { content: RelatedItemContentFilterSensitiveLog(obj.content) }),
|
|
471
|
-
...(obj.performedBy && { performedBy: UserUnionFilterSensitiveLog(obj.performedBy) }),
|
|
472
|
-
});
|
|
473
|
-
export const SearchAllRelatedItemsResponseFilterSensitiveLog = (obj) => ({
|
|
474
|
-
...obj,
|
|
475
|
-
...(obj.relatedItems && {
|
|
476
|
-
relatedItems: obj.relatedItems.map((item) => SearchAllRelatedItemsResponseItemFilterSensitiveLog(item)),
|
|
477
|
-
}),
|
|
478
|
-
});
|
|
479
|
-
export const RelatedItemTypeFilterFilterSensitiveLog = (obj) => {
|
|
480
|
-
if (obj.contact !== undefined)
|
|
481
|
-
return { contact: obj.contact };
|
|
482
|
-
if (obj.comment !== undefined)
|
|
483
|
-
return { comment: obj.comment };
|
|
484
|
-
if (obj.file !== undefined)
|
|
485
|
-
return { file: obj.file };
|
|
486
|
-
if (obj.sla !== undefined)
|
|
487
|
-
return { sla: SlaFilterFilterSensitiveLog(obj.sla) };
|
|
488
|
-
if (obj.connectCase !== undefined)
|
|
489
|
-
return { connectCase: obj.connectCase };
|
|
490
|
-
if (obj.custom !== undefined)
|
|
491
|
-
return { custom: obj.custom };
|
|
492
|
-
if (obj.$unknown !== undefined)
|
|
493
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
494
|
-
};
|
|
495
|
-
export const SearchAllRelatedItemsRequestFilterSensitiveLog = (obj) => ({
|
|
496
|
-
...obj,
|
|
497
|
-
...(obj.filters && { filters: obj.filters.map((item) => RelatedItemTypeFilterFilterSensitiveLog(item)) }),
|
|
498
|
-
});
|
|
499
|
-
export const SearchRelatedItemsRequestFilterSensitiveLog = (obj) => ({
|
|
500
|
-
...obj,
|
|
501
|
-
...(obj.filters && { filters: obj.filters.map((item) => RelatedItemTypeFilterFilterSensitiveLog(item)) }),
|
|
502
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.connectcases" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "ConnectCases",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|