@wildix/wda-insights-client 1.0.19 → 1.0.20
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/WdaInsights.js +4 -0
- package/dist-cjs/commands/GetCallCharacteristicsCommand.js +41 -0
- package/dist-cjs/commands/GetConferenceTimeFramesCommand.js +41 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +5 -5
- package/dist-cjs/protocols/Aws_restJson1.js +170 -1
- package/dist-es/WdaInsights.js +4 -0
- package/dist-es/commands/GetCallCharacteristicsCommand.js +37 -0
- package/dist-es/commands/GetConferenceTimeFramesCommand.js +37 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +166 -1
- package/dist-types/WdaInsights.d.ts +14 -0
- package/dist-types/WdaInsightsClient.d.ts +4 -2
- package/dist-types/commands/GetCallCharacteristicsCommand.d.ts +135 -0
- package/dist-types/commands/GetConferenceTimeFramesCommand.d.ts +92 -0
- package/dist-types/commands/ListConversationsCommand.d.ts +8 -4
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +156 -20
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -3
- package/dist-types/runtimeConfig.d.ts +3 -3
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/package.json +1 -1
package/dist-cjs/WdaInsights.js
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WdaInsights = void 0;
|
|
4
4
|
const WdaInsightsClient_1 = require("./WdaInsightsClient");
|
|
5
|
+
const GetCallCharacteristicsCommand_1 = require("./commands/GetCallCharacteristicsCommand");
|
|
5
6
|
const GetCallSummaryCommand_1 = require("./commands/GetCallSummaryCommand");
|
|
6
7
|
const GetConferenceSummaryCommand_1 = require("./commands/GetConferenceSummaryCommand");
|
|
8
|
+
const GetConferenceTimeFramesCommand_1 = require("./commands/GetConferenceTimeFramesCommand");
|
|
7
9
|
const ListConversationsCommand_1 = require("./commands/ListConversationsCommand");
|
|
8
10
|
const ScheduleCallPostAnalysisCommand_1 = require("./commands/ScheduleCallPostAnalysisCommand");
|
|
9
11
|
const ScheduleCallSummaryGenerationCommand_1 = require("./commands/ScheduleCallSummaryGenerationCommand");
|
|
@@ -11,8 +13,10 @@ const ScheduleConferencePostAnalysisCommand_1 = require("./commands/ScheduleConf
|
|
|
11
13
|
const ScheduleConferenceSummaryGenerationCommand_1 = require("./commands/ScheduleConferenceSummaryGenerationCommand");
|
|
12
14
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
13
15
|
const commands = {
|
|
16
|
+
GetCallCharacteristicsCommand: GetCallCharacteristicsCommand_1.GetCallCharacteristicsCommand,
|
|
14
17
|
GetCallSummaryCommand: GetCallSummaryCommand_1.GetCallSummaryCommand,
|
|
15
18
|
GetConferenceSummaryCommand: GetConferenceSummaryCommand_1.GetConferenceSummaryCommand,
|
|
19
|
+
GetConferenceTimeFramesCommand: GetConferenceTimeFramesCommand_1.GetConferenceTimeFramesCommand,
|
|
16
20
|
ListConversationsCommand: ListConversationsCommand_1.ListConversationsCommand,
|
|
17
21
|
ScheduleCallPostAnalysisCommand: ScheduleCallPostAnalysisCommand_1.ScheduleCallPostAnalysisCommand,
|
|
18
22
|
ScheduleCallSummaryGenerationCommand: ScheduleCallSummaryGenerationCommand_1.ScheduleCallSummaryGenerationCommand,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetCallCharacteristicsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
class GetCallCharacteristicsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
16
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
17
|
+
const { logger } = configuration;
|
|
18
|
+
const clientName = "WdaInsightsClient";
|
|
19
|
+
const commandName = "GetCallCharacteristicsCommand";
|
|
20
|
+
const handlerExecutionContext = {
|
|
21
|
+
logger,
|
|
22
|
+
clientName,
|
|
23
|
+
commandName,
|
|
24
|
+
inputFilterSensitiveLog: (_) => _,
|
|
25
|
+
outputFilterSensitiveLog: (_) => _,
|
|
26
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
+
service: "WdaInsights",
|
|
28
|
+
operation: "GetCallCharacteristics",
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
35
|
+
return (0, Aws_restJson1_1.se_GetCallCharacteristicsCommand)(input, context);
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
38
|
+
return (0, Aws_restJson1_1.de_GetCallCharacteristicsCommand)(output, context);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.GetCallCharacteristicsCommand = GetCallCharacteristicsCommand;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetConferenceTimeFramesCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
class GetConferenceTimeFramesCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
16
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
17
|
+
const { logger } = configuration;
|
|
18
|
+
const clientName = "WdaInsightsClient";
|
|
19
|
+
const commandName = "GetConferenceTimeFramesCommand";
|
|
20
|
+
const handlerExecutionContext = {
|
|
21
|
+
logger,
|
|
22
|
+
clientName,
|
|
23
|
+
commandName,
|
|
24
|
+
inputFilterSensitiveLog: (_) => _,
|
|
25
|
+
outputFilterSensitiveLog: (_) => _,
|
|
26
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
+
service: "WdaInsights",
|
|
28
|
+
operation: "GetConferenceTimeFrames",
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
35
|
+
return (0, Aws_restJson1_1.se_GetConferenceTimeFramesCommand)(input, context);
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
38
|
+
return (0, Aws_restJson1_1.de_GetConferenceTimeFramesCommand)(output, context);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.GetConferenceTimeFramesCommand = GetConferenceTimeFramesCommand;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./GetCallCharacteristicsCommand"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./GetCallSummaryCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./GetConferenceSummaryCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./GetConferenceTimeFramesCommand"), exports);
|
|
6
8
|
tslib_1.__exportStar(require("./ListConversationsCommand"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./ScheduleCallPostAnalysisCommand"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./ScheduleCallSummaryGenerationCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListConversationsItemEvent = exports.ListConversationsFilterParticipant = exports.ListConversationsFilterDate = exports.ListConversationsFilterPredefinedDateType = exports.
|
|
3
|
+
exports.ListConversationsItemEvent = exports.ListConversationsFilterParticipant = exports.ListConversationsFilterDate = exports.ListConversationsFilterPredefinedDateType = exports.InsightsQuality = exports.InsightsStatus = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallNotFoundException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const WdaInsightsServiceException_1 = require("./WdaInsightsServiceException");
|
|
5
5
|
class ValidationException extends WdaInsightsServiceException_1.WdaInsightsServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -129,10 +129,6 @@ exports.ConferenceTranscriptionStatus = {
|
|
|
129
129
|
AVAILABLE: "AVAILABLE",
|
|
130
130
|
UNAVAILABLE: "UNAVAILABLE",
|
|
131
131
|
};
|
|
132
|
-
exports.InsightsQuality = {
|
|
133
|
-
MAX: "MAX",
|
|
134
|
-
RECOMMENDED: "RECOMMENDED",
|
|
135
|
-
};
|
|
136
132
|
exports.InsightsStatus = {
|
|
137
133
|
FAILED: "FAILED",
|
|
138
134
|
NONE: "NONE",
|
|
@@ -141,6 +137,10 @@ exports.InsightsStatus = {
|
|
|
141
137
|
SUCCEEDED: "SUCCEEDED",
|
|
142
138
|
UNAVAILABLE: "UNAVAILABLE",
|
|
143
139
|
};
|
|
140
|
+
exports.InsightsQuality = {
|
|
141
|
+
MAX: "MAX",
|
|
142
|
+
RECOMMENDED: "RECOMMENDED",
|
|
143
|
+
};
|
|
144
144
|
exports.ListConversationsFilterPredefinedDateType = {
|
|
145
145
|
LAST_30_DAYS: "LAST_30_DAYS",
|
|
146
146
|
PREVIOUS_MONTH: "PREVIOUS_MONTH",
|
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ScheduleConferenceSummaryGenerationCommand = exports.de_ScheduleConferencePostAnalysisCommand = exports.de_ScheduleCallSummaryGenerationCommand = exports.de_ScheduleCallPostAnalysisCommand = exports.de_ListConversationsCommand = exports.de_GetConferenceSummaryCommand = exports.de_GetCallSummaryCommand = exports.se_ScheduleConferenceSummaryGenerationCommand = exports.se_ScheduleConferencePostAnalysisCommand = exports.se_ScheduleCallSummaryGenerationCommand = exports.se_ScheduleCallPostAnalysisCommand = exports.se_ListConversationsCommand = exports.se_GetConferenceSummaryCommand = exports.se_GetCallSummaryCommand = void 0;
|
|
3
|
+
exports.de_ScheduleConferenceSummaryGenerationCommand = exports.de_ScheduleConferencePostAnalysisCommand = exports.de_ScheduleCallSummaryGenerationCommand = exports.de_ScheduleCallPostAnalysisCommand = exports.de_ListConversationsCommand = exports.de_GetConferenceTimeFramesCommand = exports.de_GetConferenceSummaryCommand = exports.de_GetCallSummaryCommand = exports.de_GetCallCharacteristicsCommand = exports.se_ScheduleConferenceSummaryGenerationCommand = exports.se_ScheduleConferencePostAnalysisCommand = exports.se_ScheduleCallSummaryGenerationCommand = exports.se_ScheduleCallPostAnalysisCommand = exports.se_ListConversationsCommand = exports.se_GetConferenceTimeFramesCommand = exports.se_GetConferenceSummaryCommand = exports.se_GetCallSummaryCommand = exports.se_GetCallCharacteristicsCommand = void 0;
|
|
4
4
|
const WdaInsightsServiceException_1 = require("../models/WdaInsightsServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
+
const se_GetCallCharacteristicsCommand = async (input, context) => {
|
|
9
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
|
+
const headers = {};
|
|
11
|
+
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/calls/{callId}/flows/{flowIndex}/characteristics";
|
|
12
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'callId', () => input.callId, '{callId}', false);
|
|
13
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
|
|
14
|
+
const query = (0, smithy_client_1.map)({
|
|
15
|
+
"company": [, input.company],
|
|
16
|
+
});
|
|
17
|
+
let body;
|
|
18
|
+
return new protocol_http_1.HttpRequest({
|
|
19
|
+
protocol,
|
|
20
|
+
hostname,
|
|
21
|
+
port,
|
|
22
|
+
method: "GET",
|
|
23
|
+
headers,
|
|
24
|
+
path: resolvedPath,
|
|
25
|
+
query,
|
|
26
|
+
body,
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
exports.se_GetCallCharacteristicsCommand = se_GetCallCharacteristicsCommand;
|
|
8
30
|
const se_GetCallSummaryCommand = async (input, context) => {
|
|
9
31
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
32
|
const headers = {};
|
|
@@ -56,6 +78,31 @@ const se_GetConferenceSummaryCommand = async (input, context) => {
|
|
|
56
78
|
});
|
|
57
79
|
};
|
|
58
80
|
exports.se_GetConferenceSummaryCommand = se_GetConferenceSummaryCommand;
|
|
81
|
+
const se_GetConferenceTimeFramesCommand = async (input, context) => {
|
|
82
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
83
|
+
const headers = {};
|
|
84
|
+
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/conferences/{conferenceId}/timeframes";
|
|
85
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
86
|
+
const query = (0, smithy_client_1.map)({
|
|
87
|
+
"company": [, input.company],
|
|
88
|
+
"locale": [, input.locale],
|
|
89
|
+
"template": [, input.template],
|
|
90
|
+
"instance": [, input.instance],
|
|
91
|
+
"quality": [, input.quality],
|
|
92
|
+
});
|
|
93
|
+
let body;
|
|
94
|
+
return new protocol_http_1.HttpRequest({
|
|
95
|
+
protocol,
|
|
96
|
+
hostname,
|
|
97
|
+
port,
|
|
98
|
+
method: "GET",
|
|
99
|
+
headers,
|
|
100
|
+
path: resolvedPath,
|
|
101
|
+
query,
|
|
102
|
+
body,
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
exports.se_GetConferenceTimeFramesCommand = se_GetConferenceTimeFramesCommand;
|
|
59
106
|
const se_ListConversationsCommand = async (input, context) => {
|
|
60
107
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
61
108
|
const headers = {
|
|
@@ -176,6 +223,47 @@ const se_ScheduleConferenceSummaryGenerationCommand = async (input, context) =>
|
|
|
176
223
|
});
|
|
177
224
|
};
|
|
178
225
|
exports.se_ScheduleConferenceSummaryGenerationCommand = se_ScheduleConferenceSummaryGenerationCommand;
|
|
226
|
+
const de_GetCallCharacteristicsCommand = async (output, context) => {
|
|
227
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
228
|
+
return de_GetCallCharacteristicsCommandError(output, context);
|
|
229
|
+
}
|
|
230
|
+
const contents = (0, smithy_client_1.map)({
|
|
231
|
+
$metadata: deserializeMetadata(output),
|
|
232
|
+
});
|
|
233
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
234
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
235
|
+
'characteristics': _ => de_InsightsCharacteristics(_, context),
|
|
236
|
+
'status': smithy_client_1.expectString,
|
|
237
|
+
});
|
|
238
|
+
Object.assign(contents, doc);
|
|
239
|
+
return contents;
|
|
240
|
+
};
|
|
241
|
+
exports.de_GetCallCharacteristicsCommand = de_GetCallCharacteristicsCommand;
|
|
242
|
+
const de_GetCallCharacteristicsCommandError = async (output, context) => {
|
|
243
|
+
const parsedOutput = {
|
|
244
|
+
...output,
|
|
245
|
+
body: await parseErrorBody(output.body, context)
|
|
246
|
+
};
|
|
247
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
248
|
+
switch (errorCode) {
|
|
249
|
+
case "CallNotFoundException":
|
|
250
|
+
case "wildix.wda.history#CallNotFoundException":
|
|
251
|
+
throw await de_CallNotFoundExceptionRes(parsedOutput, context);
|
|
252
|
+
case "ForbiddenException":
|
|
253
|
+
case "smithy.framework#ForbiddenException":
|
|
254
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
255
|
+
case "ValidationException":
|
|
256
|
+
case "smithy.framework#ValidationException":
|
|
257
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
258
|
+
default:
|
|
259
|
+
const parsedBody = parsedOutput.body;
|
|
260
|
+
return throwDefaultError({
|
|
261
|
+
output,
|
|
262
|
+
parsedBody,
|
|
263
|
+
errorCode
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
};
|
|
179
267
|
const de_GetCallSummaryCommand = async (output, context) => {
|
|
180
268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
181
269
|
return de_GetCallSummaryCommandError(output, context);
|
|
@@ -260,6 +348,46 @@ const de_GetConferenceSummaryCommandError = async (output, context) => {
|
|
|
260
348
|
});
|
|
261
349
|
}
|
|
262
350
|
};
|
|
351
|
+
const de_GetConferenceTimeFramesCommand = async (output, context) => {
|
|
352
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
353
|
+
return de_GetConferenceTimeFramesCommandError(output, context);
|
|
354
|
+
}
|
|
355
|
+
const contents = (0, smithy_client_1.map)({
|
|
356
|
+
$metadata: deserializeMetadata(output),
|
|
357
|
+
});
|
|
358
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
359
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
360
|
+
'timeFrames': smithy_client_1._json,
|
|
361
|
+
});
|
|
362
|
+
Object.assign(contents, doc);
|
|
363
|
+
return contents;
|
|
364
|
+
};
|
|
365
|
+
exports.de_GetConferenceTimeFramesCommand = de_GetConferenceTimeFramesCommand;
|
|
366
|
+
const de_GetConferenceTimeFramesCommandError = async (output, context) => {
|
|
367
|
+
const parsedOutput = {
|
|
368
|
+
...output,
|
|
369
|
+
body: await parseErrorBody(output.body, context)
|
|
370
|
+
};
|
|
371
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
372
|
+
switch (errorCode) {
|
|
373
|
+
case "ConferenceNotFoundException":
|
|
374
|
+
case "wildix.wda.history#ConferenceNotFoundException":
|
|
375
|
+
throw await de_ConferenceNotFoundExceptionRes(parsedOutput, context);
|
|
376
|
+
case "ForbiddenException":
|
|
377
|
+
case "smithy.framework#ForbiddenException":
|
|
378
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
379
|
+
case "ValidationException":
|
|
380
|
+
case "smithy.framework#ValidationException":
|
|
381
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
382
|
+
default:
|
|
383
|
+
const parsedBody = parsedOutput.body;
|
|
384
|
+
return throwDefaultError({
|
|
385
|
+
output,
|
|
386
|
+
parsedBody,
|
|
387
|
+
errorCode
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
};
|
|
263
391
|
const de_ListConversationsCommand = async (output, context) => {
|
|
264
392
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
265
393
|
return de_ListConversationsCommandError(output, context);
|
|
@@ -490,6 +618,47 @@ const de_ConferenceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
490
618
|
});
|
|
491
619
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
492
620
|
};
|
|
621
|
+
const de_InsightsCharacteristics = (output, context) => {
|
|
622
|
+
return (0, smithy_client_1.take)(output, {
|
|
623
|
+
'duration': smithy_client_1.expectLong,
|
|
624
|
+
'interruptions': smithy_client_1._json,
|
|
625
|
+
'nonTalkTime': smithy_client_1._json,
|
|
626
|
+
'sentiment': (_) => de_InsightsSentiment(_, context),
|
|
627
|
+
'talkSpeed': smithy_client_1._json,
|
|
628
|
+
'talkTime': smithy_client_1._json,
|
|
629
|
+
});
|
|
630
|
+
};
|
|
631
|
+
const de_InsightsSentiment = (output, context) => {
|
|
632
|
+
return (0, smithy_client_1.take)(output, {
|
|
633
|
+
'score': smithy_client_1.limitedParseFloat32,
|
|
634
|
+
'scoreByParticipant': (_) => de_InsightsSentimentScoreByParticipantList(_, context),
|
|
635
|
+
'scoreByPeriod': (_) => de_InsightsSentimentScoreByPeriodList(_, context),
|
|
636
|
+
});
|
|
637
|
+
};
|
|
638
|
+
const de_InsightsSentimentScoreByParticipantChunk = (output, context) => {
|
|
639
|
+
return (0, smithy_client_1.take)(output, {
|
|
640
|
+
'interrupter': smithy_client_1.expectString,
|
|
641
|
+
'score': smithy_client_1.limitedParseFloat32,
|
|
642
|
+
});
|
|
643
|
+
};
|
|
644
|
+
const de_InsightsSentimentScoreByParticipantList = (output, context) => {
|
|
645
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
646
|
+
return de_InsightsSentimentScoreByParticipantChunk(entry, context);
|
|
647
|
+
});
|
|
648
|
+
return retVal;
|
|
649
|
+
};
|
|
650
|
+
const de_InsightsSentimentScoreByPeriodChunk = (output, context) => {
|
|
651
|
+
return (0, smithy_client_1.take)(output, {
|
|
652
|
+
'participants': (_) => de_InsightsSentimentScoreByParticipantList(_, context),
|
|
653
|
+
'score': smithy_client_1.limitedParseFloat32,
|
|
654
|
+
});
|
|
655
|
+
};
|
|
656
|
+
const de_InsightsSentimentScoreByPeriodList = (output, context) => {
|
|
657
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
658
|
+
return de_InsightsSentimentScoreByPeriodChunk(entry, context);
|
|
659
|
+
});
|
|
660
|
+
return retVal;
|
|
661
|
+
};
|
|
493
662
|
const deserializeMetadata = (output) => ({
|
|
494
663
|
httpStatusCode: output.statusCode,
|
|
495
664
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/WdaInsights.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { WdaInsightsClient, } from "./WdaInsightsClient";
|
|
2
|
+
import { GetCallCharacteristicsCommand, } from "./commands/GetCallCharacteristicsCommand";
|
|
2
3
|
import { GetCallSummaryCommand, } from "./commands/GetCallSummaryCommand";
|
|
3
4
|
import { GetConferenceSummaryCommand, } from "./commands/GetConferenceSummaryCommand";
|
|
5
|
+
import { GetConferenceTimeFramesCommand, } from "./commands/GetConferenceTimeFramesCommand";
|
|
4
6
|
import { ListConversationsCommand, } from "./commands/ListConversationsCommand";
|
|
5
7
|
import { ScheduleCallPostAnalysisCommand, } from "./commands/ScheduleCallPostAnalysisCommand";
|
|
6
8
|
import { ScheduleCallSummaryGenerationCommand, } from "./commands/ScheduleCallSummaryGenerationCommand";
|
|
@@ -8,8 +10,10 @@ import { ScheduleConferencePostAnalysisCommand, } from "./commands/ScheduleConfe
|
|
|
8
10
|
import { ScheduleConferenceSummaryGenerationCommand, } from "./commands/ScheduleConferenceSummaryGenerationCommand";
|
|
9
11
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
10
12
|
const commands = {
|
|
13
|
+
GetCallCharacteristicsCommand,
|
|
11
14
|
GetCallSummaryCommand,
|
|
12
15
|
GetConferenceSummaryCommand,
|
|
16
|
+
GetConferenceTimeFramesCommand,
|
|
13
17
|
ListConversationsCommand,
|
|
14
18
|
ScheduleCallPostAnalysisCommand,
|
|
15
19
|
ScheduleCallSummaryGenerationCommand,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { de_GetCallCharacteristicsCommand, se_GetCallCharacteristicsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetCallCharacteristicsCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
12
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
14
|
+
const { logger } = configuration;
|
|
15
|
+
const clientName = "WdaInsightsClient";
|
|
16
|
+
const commandName = "GetCallCharacteristicsCommand";
|
|
17
|
+
const handlerExecutionContext = {
|
|
18
|
+
logger,
|
|
19
|
+
clientName,
|
|
20
|
+
commandName,
|
|
21
|
+
inputFilterSensitiveLog: (_) => _,
|
|
22
|
+
outputFilterSensitiveLog: (_) => _,
|
|
23
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
+
service: "WdaInsights",
|
|
25
|
+
operation: "GetCallCharacteristics",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const { requestHandler } = configuration;
|
|
29
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
+
}
|
|
31
|
+
serialize(input, context) {
|
|
32
|
+
return se_GetCallCharacteristicsCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return de_GetCallCharacteristicsCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { de_GetConferenceTimeFramesCommand, se_GetConferenceTimeFramesCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetConferenceTimeFramesCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
12
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
14
|
+
const { logger } = configuration;
|
|
15
|
+
const clientName = "WdaInsightsClient";
|
|
16
|
+
const commandName = "GetConferenceTimeFramesCommand";
|
|
17
|
+
const handlerExecutionContext = {
|
|
18
|
+
logger,
|
|
19
|
+
clientName,
|
|
20
|
+
commandName,
|
|
21
|
+
inputFilterSensitiveLog: (_) => _,
|
|
22
|
+
outputFilterSensitiveLog: (_) => _,
|
|
23
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
+
service: "WdaInsights",
|
|
25
|
+
operation: "GetConferenceTimeFrames",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const { requestHandler } = configuration;
|
|
29
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
+
}
|
|
31
|
+
serialize(input, context) {
|
|
32
|
+
return se_GetConferenceTimeFramesCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return de_GetConferenceTimeFramesCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export * from "./GetCallCharacteristicsCommand";
|
|
1
2
|
export * from "./GetCallSummaryCommand";
|
|
2
3
|
export * from "./GetConferenceSummaryCommand";
|
|
4
|
+
export * from "./GetConferenceTimeFramesCommand";
|
|
3
5
|
export * from "./ListConversationsCommand";
|
|
4
6
|
export * from "./ScheduleCallPostAnalysisCommand";
|
|
5
7
|
export * from "./ScheduleCallSummaryGenerationCommand";
|
|
@@ -122,10 +122,6 @@ export const ConferenceTranscriptionStatus = {
|
|
|
122
122
|
AVAILABLE: "AVAILABLE",
|
|
123
123
|
UNAVAILABLE: "UNAVAILABLE",
|
|
124
124
|
};
|
|
125
|
-
export const InsightsQuality = {
|
|
126
|
-
MAX: "MAX",
|
|
127
|
-
RECOMMENDED: "RECOMMENDED",
|
|
128
|
-
};
|
|
129
125
|
export const InsightsStatus = {
|
|
130
126
|
FAILED: "FAILED",
|
|
131
127
|
NONE: "NONE",
|
|
@@ -134,6 +130,10 @@ export const InsightsStatus = {
|
|
|
134
130
|
SUCCEEDED: "SUCCEEDED",
|
|
135
131
|
UNAVAILABLE: "UNAVAILABLE",
|
|
136
132
|
};
|
|
133
|
+
export const InsightsQuality = {
|
|
134
|
+
MAX: "MAX",
|
|
135
|
+
RECOMMENDED: "RECOMMENDED",
|
|
136
|
+
};
|
|
137
137
|
export const ListConversationsFilterPredefinedDateType = {
|
|
138
138
|
LAST_30_DAYS: "LAST_30_DAYS",
|
|
139
139
|
PREVIOUS_MONTH: "PREVIOUS_MONTH",
|