@wildix/wda-insights-client 1.0.3 → 1.0.6
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 +8 -0
- package/dist-cjs/commands/ScheduleCallPostAnalysisCommand.js +41 -0
- package/dist-cjs/commands/ScheduleCallSummaryGenerationCommand.js +41 -0
- package/dist-cjs/commands/ScheduleConferencePostAnalysisCommand.js +41 -0
- package/dist-cjs/commands/ScheduleConferenceSummaryGenerationCommand.js +41 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +10 -3
- package/dist-cjs/protocols/Aws_restJson1.js +231 -1
- package/dist-es/WdaInsights.js +8 -0
- package/dist-es/commands/ScheduleCallPostAnalysisCommand.js +37 -0
- package/dist-es/commands/ScheduleCallSummaryGenerationCommand.js +37 -0
- package/dist-es/commands/ScheduleConferencePostAnalysisCommand.js +37 -0
- package/dist-es/commands/ScheduleConferenceSummaryGenerationCommand.js +37 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +9 -2
- package/dist-es/protocols/Aws_restJson1.js +222 -0
- package/dist-types/WdaInsights.d.ts +28 -0
- package/dist-types/WdaInsightsClient.d.ts +6 -2
- package/dist-types/commands/GetCallSummaryCommand.d.ts +10 -2
- package/dist-types/commands/GetConferenceSummaryCommand.d.ts +10 -2
- package/dist-types/commands/ListConversationsCommand.d.ts +7 -0
- package/dist-types/commands/ScheduleCallPostAnalysisCommand.d.ts +74 -0
- package/dist-types/commands/ScheduleCallSummaryGenerationCommand.d.ts +81 -0
- package/dist-types/commands/ScheduleConferencePostAnalysisCommand.d.ts +73 -0
- package/dist-types/commands/ScheduleConferenceSummaryGenerationCommand.d.ts +80 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +101 -4
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +1 -1
package/dist-cjs/WdaInsights.js
CHANGED
|
@@ -5,11 +5,19 @@ const WdaInsightsClient_1 = require("./WdaInsightsClient");
|
|
|
5
5
|
const GetCallSummaryCommand_1 = require("./commands/GetCallSummaryCommand");
|
|
6
6
|
const GetConferenceSummaryCommand_1 = require("./commands/GetConferenceSummaryCommand");
|
|
7
7
|
const ListConversationsCommand_1 = require("./commands/ListConversationsCommand");
|
|
8
|
+
const ScheduleCallPostAnalysisCommand_1 = require("./commands/ScheduleCallPostAnalysisCommand");
|
|
9
|
+
const ScheduleCallSummaryGenerationCommand_1 = require("./commands/ScheduleCallSummaryGenerationCommand");
|
|
10
|
+
const ScheduleConferencePostAnalysisCommand_1 = require("./commands/ScheduleConferencePostAnalysisCommand");
|
|
11
|
+
const ScheduleConferenceSummaryGenerationCommand_1 = require("./commands/ScheduleConferenceSummaryGenerationCommand");
|
|
8
12
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
13
|
const commands = {
|
|
10
14
|
GetCallSummaryCommand: GetCallSummaryCommand_1.GetCallSummaryCommand,
|
|
11
15
|
GetConferenceSummaryCommand: GetConferenceSummaryCommand_1.GetConferenceSummaryCommand,
|
|
12
16
|
ListConversationsCommand: ListConversationsCommand_1.ListConversationsCommand,
|
|
17
|
+
ScheduleCallPostAnalysisCommand: ScheduleCallPostAnalysisCommand_1.ScheduleCallPostAnalysisCommand,
|
|
18
|
+
ScheduleCallSummaryGenerationCommand: ScheduleCallSummaryGenerationCommand_1.ScheduleCallSummaryGenerationCommand,
|
|
19
|
+
ScheduleConferencePostAnalysisCommand: ScheduleConferencePostAnalysisCommand_1.ScheduleConferencePostAnalysisCommand,
|
|
20
|
+
ScheduleConferenceSummaryGenerationCommand: ScheduleConferenceSummaryGenerationCommand_1.ScheduleConferenceSummaryGenerationCommand,
|
|
13
21
|
};
|
|
14
22
|
class WdaInsights extends WdaInsightsClient_1.WdaInsightsClient {
|
|
15
23
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScheduleCallPostAnalysisCommand = 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 ScheduleCallPostAnalysisCommand 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 = "ScheduleCallPostAnalysisCommand";
|
|
20
|
+
const handlerExecutionContext = {
|
|
21
|
+
logger,
|
|
22
|
+
clientName,
|
|
23
|
+
commandName,
|
|
24
|
+
inputFilterSensitiveLog: (_) => _,
|
|
25
|
+
outputFilterSensitiveLog: (_) => _,
|
|
26
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
+
service: "WdaInsights",
|
|
28
|
+
operation: "ScheduleCallPostAnalysis",
|
|
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_ScheduleCallPostAnalysisCommand)(input, context);
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
38
|
+
return (0, Aws_restJson1_1.de_ScheduleCallPostAnalysisCommand)(output, context);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.ScheduleCallPostAnalysisCommand = ScheduleCallPostAnalysisCommand;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScheduleCallSummaryGenerationCommand = 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 ScheduleCallSummaryGenerationCommand 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 = "ScheduleCallSummaryGenerationCommand";
|
|
20
|
+
const handlerExecutionContext = {
|
|
21
|
+
logger,
|
|
22
|
+
clientName,
|
|
23
|
+
commandName,
|
|
24
|
+
inputFilterSensitiveLog: (_) => _,
|
|
25
|
+
outputFilterSensitiveLog: (_) => _,
|
|
26
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
+
service: "WdaInsights",
|
|
28
|
+
operation: "ScheduleCallSummaryGeneration",
|
|
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_ScheduleCallSummaryGenerationCommand)(input, context);
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
38
|
+
return (0, Aws_restJson1_1.de_ScheduleCallSummaryGenerationCommand)(output, context);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.ScheduleCallSummaryGenerationCommand = ScheduleCallSummaryGenerationCommand;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScheduleConferencePostAnalysisCommand = 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 ScheduleConferencePostAnalysisCommand 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 = "ScheduleConferencePostAnalysisCommand";
|
|
20
|
+
const handlerExecutionContext = {
|
|
21
|
+
logger,
|
|
22
|
+
clientName,
|
|
23
|
+
commandName,
|
|
24
|
+
inputFilterSensitiveLog: (_) => _,
|
|
25
|
+
outputFilterSensitiveLog: (_) => _,
|
|
26
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
+
service: "WdaInsights",
|
|
28
|
+
operation: "ScheduleConferencePostAnalysis",
|
|
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_ScheduleConferencePostAnalysisCommand)(input, context);
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
38
|
+
return (0, Aws_restJson1_1.de_ScheduleConferencePostAnalysisCommand)(output, context);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.ScheduleConferencePostAnalysisCommand = ScheduleConferencePostAnalysisCommand;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScheduleConferenceSummaryGenerationCommand = 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 ScheduleConferenceSummaryGenerationCommand 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 = "ScheduleConferenceSummaryGenerationCommand";
|
|
20
|
+
const handlerExecutionContext = {
|
|
21
|
+
logger,
|
|
22
|
+
clientName,
|
|
23
|
+
commandName,
|
|
24
|
+
inputFilterSensitiveLog: (_) => _,
|
|
25
|
+
outputFilterSensitiveLog: (_) => _,
|
|
26
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
+
service: "WdaInsights",
|
|
28
|
+
operation: "ScheduleConferenceSummaryGeneration",
|
|
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_ScheduleConferenceSummaryGenerationCommand)(input, context);
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
38
|
+
return (0, Aws_restJson1_1.de_ScheduleConferenceSummaryGenerationCommand)(output, context);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.ScheduleConferenceSummaryGenerationCommand = ScheduleConferenceSummaryGenerationCommand;
|
|
@@ -4,3 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./GetCallSummaryCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./GetConferenceSummaryCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ListConversationsCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ScheduleCallPostAnalysisCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ScheduleCallSummaryGenerationCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ScheduleConferencePostAnalysisCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ScheduleConferenceSummaryGenerationCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListConversationsItemEvent = exports.InsightsStatus = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallNotFoundException = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.ListConversationsItemEvent = exports.InsightsStatus = exports.InsightsQuality = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallNotFoundException = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const WdaInsightsServiceException_1 = require("./WdaInsightsServiceException");
|
|
5
5
|
class ForbiddenException extends WdaInsightsServiceException_1.WdaInsightsServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -120,10 +120,17 @@ exports.ConferenceTranscriptionStatus = {
|
|
|
120
120
|
AVAILABLE: "AVAILABLE",
|
|
121
121
|
UNAVAILABLE: "UNAVAILABLE",
|
|
122
122
|
};
|
|
123
|
+
exports.InsightsQuality = {
|
|
124
|
+
MAX: "MAX",
|
|
125
|
+
RECOMMENDED: "RECOMMENDED",
|
|
126
|
+
};
|
|
123
127
|
exports.InsightsStatus = {
|
|
124
|
-
|
|
125
|
-
|
|
128
|
+
FAILED: "FAILED",
|
|
129
|
+
NONE: "NONE",
|
|
126
130
|
SCHEDULED: "SCHEDULED",
|
|
131
|
+
STARTED: "STARTED",
|
|
132
|
+
SUCCEEDED: "SUCCEEDED",
|
|
133
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
127
134
|
};
|
|
128
135
|
var ListConversationsItemEvent;
|
|
129
136
|
(function (ListConversationsItemEvent) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ListConversationsCommand = exports.de_GetConferenceSummaryCommand = exports.de_GetCallSummaryCommand = 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_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;
|
|
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");
|
|
@@ -14,6 +14,9 @@ const se_GetCallSummaryCommand = async (input, context) => {
|
|
|
14
14
|
const query = (0, smithy_client_1.map)({
|
|
15
15
|
"company": [, input.company],
|
|
16
16
|
"locale": [, input.locale],
|
|
17
|
+
"template": [, input.template],
|
|
18
|
+
"instance": [, input.instance],
|
|
19
|
+
"quality": [, input.quality],
|
|
17
20
|
});
|
|
18
21
|
let body;
|
|
19
22
|
return new protocol_http_1.HttpRequest({
|
|
@@ -36,6 +39,9 @@ const se_GetConferenceSummaryCommand = async (input, context) => {
|
|
|
36
39
|
const query = (0, smithy_client_1.map)({
|
|
37
40
|
"company": [, input.company],
|
|
38
41
|
"locale": [, input.locale],
|
|
42
|
+
"template": [, input.template],
|
|
43
|
+
"instance": [, input.instance],
|
|
44
|
+
"quality": [, input.quality],
|
|
39
45
|
});
|
|
40
46
|
let body;
|
|
41
47
|
return new protocol_http_1.HttpRequest({
|
|
@@ -75,6 +81,92 @@ const se_ListConversationsCommand = async (input, context) => {
|
|
|
75
81
|
});
|
|
76
82
|
};
|
|
77
83
|
exports.se_ListConversationsCommand = se_ListConversationsCommand;
|
|
84
|
+
const se_ScheduleCallPostAnalysisCommand = async (input, context) => {
|
|
85
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
86
|
+
const headers = {};
|
|
87
|
+
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/calls/{callId}/flows/{flowIndex}/schedule_post_analysis";
|
|
88
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'callId', () => input.callId, '{callId}', false);
|
|
89
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
|
|
90
|
+
let body;
|
|
91
|
+
return new protocol_http_1.HttpRequest({
|
|
92
|
+
protocol,
|
|
93
|
+
hostname,
|
|
94
|
+
port,
|
|
95
|
+
method: "POST",
|
|
96
|
+
headers,
|
|
97
|
+
path: resolvedPath,
|
|
98
|
+
body,
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
exports.se_ScheduleCallPostAnalysisCommand = se_ScheduleCallPostAnalysisCommand;
|
|
102
|
+
const se_ScheduleCallSummaryGenerationCommand = async (input, context) => {
|
|
103
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
104
|
+
const headers = {};
|
|
105
|
+
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/calls/{callId}/flows/{flowIndex}/schedule_summary_generation";
|
|
106
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'callId', () => input.callId, '{callId}', false);
|
|
107
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
|
|
108
|
+
const query = (0, smithy_client_1.map)({
|
|
109
|
+
"company": [, input.company],
|
|
110
|
+
"locale": [, input.locale],
|
|
111
|
+
"template": [, input.template],
|
|
112
|
+
"instance": [, input.instance],
|
|
113
|
+
"quality": [, input.quality],
|
|
114
|
+
});
|
|
115
|
+
let body;
|
|
116
|
+
return new protocol_http_1.HttpRequest({
|
|
117
|
+
protocol,
|
|
118
|
+
hostname,
|
|
119
|
+
port,
|
|
120
|
+
method: "POST",
|
|
121
|
+
headers,
|
|
122
|
+
path: resolvedPath,
|
|
123
|
+
query,
|
|
124
|
+
body,
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
exports.se_ScheduleCallSummaryGenerationCommand = se_ScheduleCallSummaryGenerationCommand;
|
|
128
|
+
const se_ScheduleConferencePostAnalysisCommand = async (input, context) => {
|
|
129
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
130
|
+
const headers = {};
|
|
131
|
+
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/conferences/{conferenceId}/schedule_post_analysis";
|
|
132
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
133
|
+
let body;
|
|
134
|
+
return new protocol_http_1.HttpRequest({
|
|
135
|
+
protocol,
|
|
136
|
+
hostname,
|
|
137
|
+
port,
|
|
138
|
+
method: "POST",
|
|
139
|
+
headers,
|
|
140
|
+
path: resolvedPath,
|
|
141
|
+
body,
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
exports.se_ScheduleConferencePostAnalysisCommand = se_ScheduleConferencePostAnalysisCommand;
|
|
145
|
+
const se_ScheduleConferenceSummaryGenerationCommand = async (input, context) => {
|
|
146
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
147
|
+
const headers = {};
|
|
148
|
+
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/conferences/{conferenceId}/schedule_summary_generation";
|
|
149
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
150
|
+
const query = (0, smithy_client_1.map)({
|
|
151
|
+
"company": [, input.company],
|
|
152
|
+
"locale": [, input.locale],
|
|
153
|
+
"template": [, input.template],
|
|
154
|
+
"instance": [, input.instance],
|
|
155
|
+
"quality": [, input.quality],
|
|
156
|
+
});
|
|
157
|
+
let body;
|
|
158
|
+
return new protocol_http_1.HttpRequest({
|
|
159
|
+
protocol,
|
|
160
|
+
hostname,
|
|
161
|
+
port,
|
|
162
|
+
method: "POST",
|
|
163
|
+
headers,
|
|
164
|
+
path: resolvedPath,
|
|
165
|
+
query,
|
|
166
|
+
body,
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
exports.se_ScheduleConferenceSummaryGenerationCommand = se_ScheduleConferenceSummaryGenerationCommand;
|
|
78
170
|
const de_GetCallSummaryCommand = async (output, context) => {
|
|
79
171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
80
172
|
return de_GetCallSummaryCommandError(output, context);
|
|
@@ -195,6 +287,144 @@ const de_ListConversationsCommandError = async (output, context) => {
|
|
|
195
287
|
});
|
|
196
288
|
}
|
|
197
289
|
};
|
|
290
|
+
const de_ScheduleCallPostAnalysisCommand = async (output, context) => {
|
|
291
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
292
|
+
return de_ScheduleCallPostAnalysisCommandError(output, context);
|
|
293
|
+
}
|
|
294
|
+
const contents = (0, smithy_client_1.map)({
|
|
295
|
+
$metadata: deserializeMetadata(output),
|
|
296
|
+
});
|
|
297
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
298
|
+
return contents;
|
|
299
|
+
};
|
|
300
|
+
exports.de_ScheduleCallPostAnalysisCommand = de_ScheduleCallPostAnalysisCommand;
|
|
301
|
+
const de_ScheduleCallPostAnalysisCommandError = async (output, context) => {
|
|
302
|
+
const parsedOutput = {
|
|
303
|
+
...output,
|
|
304
|
+
body: await parseErrorBody(output.body, context)
|
|
305
|
+
};
|
|
306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
307
|
+
switch (errorCode) {
|
|
308
|
+
case "ForbiddenException":
|
|
309
|
+
case "smithy.framework#ForbiddenException":
|
|
310
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
311
|
+
case "ValidationException":
|
|
312
|
+
case "smithy.framework#ValidationException":
|
|
313
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
314
|
+
default:
|
|
315
|
+
const parsedBody = parsedOutput.body;
|
|
316
|
+
return throwDefaultError({
|
|
317
|
+
output,
|
|
318
|
+
parsedBody,
|
|
319
|
+
errorCode
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
const de_ScheduleCallSummaryGenerationCommand = async (output, context) => {
|
|
324
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
325
|
+
return de_ScheduleCallSummaryGenerationCommandError(output, context);
|
|
326
|
+
}
|
|
327
|
+
const contents = (0, smithy_client_1.map)({
|
|
328
|
+
$metadata: deserializeMetadata(output),
|
|
329
|
+
});
|
|
330
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
331
|
+
return contents;
|
|
332
|
+
};
|
|
333
|
+
exports.de_ScheduleCallSummaryGenerationCommand = de_ScheduleCallSummaryGenerationCommand;
|
|
334
|
+
const de_ScheduleCallSummaryGenerationCommandError = async (output, context) => {
|
|
335
|
+
const parsedOutput = {
|
|
336
|
+
...output,
|
|
337
|
+
body: await parseErrorBody(output.body, context)
|
|
338
|
+
};
|
|
339
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
340
|
+
switch (errorCode) {
|
|
341
|
+
case "CallNotFoundException":
|
|
342
|
+
case "wildix.wda.history#CallNotFoundException":
|
|
343
|
+
throw await de_CallNotFoundExceptionRes(parsedOutput, context);
|
|
344
|
+
case "ForbiddenException":
|
|
345
|
+
case "smithy.framework#ForbiddenException":
|
|
346
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
347
|
+
case "ValidationException":
|
|
348
|
+
case "smithy.framework#ValidationException":
|
|
349
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
350
|
+
default:
|
|
351
|
+
const parsedBody = parsedOutput.body;
|
|
352
|
+
return throwDefaultError({
|
|
353
|
+
output,
|
|
354
|
+
parsedBody,
|
|
355
|
+
errorCode
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
const de_ScheduleConferencePostAnalysisCommand = async (output, context) => {
|
|
360
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
361
|
+
return de_ScheduleConferencePostAnalysisCommandError(output, context);
|
|
362
|
+
}
|
|
363
|
+
const contents = (0, smithy_client_1.map)({
|
|
364
|
+
$metadata: deserializeMetadata(output),
|
|
365
|
+
});
|
|
366
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
367
|
+
return contents;
|
|
368
|
+
};
|
|
369
|
+
exports.de_ScheduleConferencePostAnalysisCommand = de_ScheduleConferencePostAnalysisCommand;
|
|
370
|
+
const de_ScheduleConferencePostAnalysisCommandError = async (output, context) => {
|
|
371
|
+
const parsedOutput = {
|
|
372
|
+
...output,
|
|
373
|
+
body: await parseErrorBody(output.body, context)
|
|
374
|
+
};
|
|
375
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
|
+
switch (errorCode) {
|
|
377
|
+
case "ForbiddenException":
|
|
378
|
+
case "smithy.framework#ForbiddenException":
|
|
379
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
380
|
+
case "ValidationException":
|
|
381
|
+
case "smithy.framework#ValidationException":
|
|
382
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
383
|
+
default:
|
|
384
|
+
const parsedBody = parsedOutput.body;
|
|
385
|
+
return throwDefaultError({
|
|
386
|
+
output,
|
|
387
|
+
parsedBody,
|
|
388
|
+
errorCode
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
const de_ScheduleConferenceSummaryGenerationCommand = async (output, context) => {
|
|
393
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
394
|
+
return de_ScheduleConferenceSummaryGenerationCommandError(output, context);
|
|
395
|
+
}
|
|
396
|
+
const contents = (0, smithy_client_1.map)({
|
|
397
|
+
$metadata: deserializeMetadata(output),
|
|
398
|
+
});
|
|
399
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
400
|
+
return contents;
|
|
401
|
+
};
|
|
402
|
+
exports.de_ScheduleConferenceSummaryGenerationCommand = de_ScheduleConferenceSummaryGenerationCommand;
|
|
403
|
+
const de_ScheduleConferenceSummaryGenerationCommandError = async (output, context) => {
|
|
404
|
+
const parsedOutput = {
|
|
405
|
+
...output,
|
|
406
|
+
body: await parseErrorBody(output.body, context)
|
|
407
|
+
};
|
|
408
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
|
+
switch (errorCode) {
|
|
410
|
+
case "ConferenceNotFoundException":
|
|
411
|
+
case "wildix.wda.history#ConferenceNotFoundException":
|
|
412
|
+
throw await de_ConferenceNotFoundExceptionRes(parsedOutput, context);
|
|
413
|
+
case "ForbiddenException":
|
|
414
|
+
case "smithy.framework#ForbiddenException":
|
|
415
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
416
|
+
case "ValidationException":
|
|
417
|
+
case "smithy.framework#ValidationException":
|
|
418
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
419
|
+
default:
|
|
420
|
+
const parsedBody = parsedOutput.body;
|
|
421
|
+
return throwDefaultError({
|
|
422
|
+
output,
|
|
423
|
+
parsedBody,
|
|
424
|
+
errorCode
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
};
|
|
198
428
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(WdaInsightsServiceException_1.WdaInsightsServiceException);
|
|
199
429
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
200
430
|
const contents = (0, smithy_client_1.map)({});
|
package/dist-es/WdaInsights.js
CHANGED
|
@@ -2,11 +2,19 @@ import { WdaInsightsClient, } from "./WdaInsightsClient";
|
|
|
2
2
|
import { GetCallSummaryCommand, } from "./commands/GetCallSummaryCommand";
|
|
3
3
|
import { GetConferenceSummaryCommand, } from "./commands/GetConferenceSummaryCommand";
|
|
4
4
|
import { ListConversationsCommand, } from "./commands/ListConversationsCommand";
|
|
5
|
+
import { ScheduleCallPostAnalysisCommand, } from "./commands/ScheduleCallPostAnalysisCommand";
|
|
6
|
+
import { ScheduleCallSummaryGenerationCommand, } from "./commands/ScheduleCallSummaryGenerationCommand";
|
|
7
|
+
import { ScheduleConferencePostAnalysisCommand, } from "./commands/ScheduleConferencePostAnalysisCommand";
|
|
8
|
+
import { ScheduleConferenceSummaryGenerationCommand, } from "./commands/ScheduleConferenceSummaryGenerationCommand";
|
|
5
9
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
6
10
|
const commands = {
|
|
7
11
|
GetCallSummaryCommand,
|
|
8
12
|
GetConferenceSummaryCommand,
|
|
9
13
|
ListConversationsCommand,
|
|
14
|
+
ScheduleCallPostAnalysisCommand,
|
|
15
|
+
ScheduleCallSummaryGenerationCommand,
|
|
16
|
+
ScheduleConferencePostAnalysisCommand,
|
|
17
|
+
ScheduleConferenceSummaryGenerationCommand,
|
|
10
18
|
};
|
|
11
19
|
export class WdaInsights extends WdaInsightsClient {
|
|
12
20
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { de_ScheduleCallPostAnalysisCommand, se_ScheduleCallPostAnalysisCommand, } 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 ScheduleCallPostAnalysisCommand 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 = "ScheduleCallPostAnalysisCommand";
|
|
17
|
+
const handlerExecutionContext = {
|
|
18
|
+
logger,
|
|
19
|
+
clientName,
|
|
20
|
+
commandName,
|
|
21
|
+
inputFilterSensitiveLog: (_) => _,
|
|
22
|
+
outputFilterSensitiveLog: (_) => _,
|
|
23
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
+
service: "WdaInsights",
|
|
25
|
+
operation: "ScheduleCallPostAnalysis",
|
|
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_ScheduleCallPostAnalysisCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return de_ScheduleCallPostAnalysisCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { de_ScheduleCallSummaryGenerationCommand, se_ScheduleCallSummaryGenerationCommand, } 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 ScheduleCallSummaryGenerationCommand 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 = "ScheduleCallSummaryGenerationCommand";
|
|
17
|
+
const handlerExecutionContext = {
|
|
18
|
+
logger,
|
|
19
|
+
clientName,
|
|
20
|
+
commandName,
|
|
21
|
+
inputFilterSensitiveLog: (_) => _,
|
|
22
|
+
outputFilterSensitiveLog: (_) => _,
|
|
23
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
+
service: "WdaInsights",
|
|
25
|
+
operation: "ScheduleCallSummaryGeneration",
|
|
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_ScheduleCallSummaryGenerationCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return de_ScheduleCallSummaryGenerationCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { de_ScheduleConferencePostAnalysisCommand, se_ScheduleConferencePostAnalysisCommand, } 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 ScheduleConferencePostAnalysisCommand 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 = "ScheduleConferencePostAnalysisCommand";
|
|
17
|
+
const handlerExecutionContext = {
|
|
18
|
+
logger,
|
|
19
|
+
clientName,
|
|
20
|
+
commandName,
|
|
21
|
+
inputFilterSensitiveLog: (_) => _,
|
|
22
|
+
outputFilterSensitiveLog: (_) => _,
|
|
23
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
+
service: "WdaInsights",
|
|
25
|
+
operation: "ScheduleConferencePostAnalysis",
|
|
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_ScheduleConferencePostAnalysisCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return de_ScheduleConferencePostAnalysisCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { de_ScheduleConferenceSummaryGenerationCommand, se_ScheduleConferenceSummaryGenerationCommand, } 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 ScheduleConferenceSummaryGenerationCommand 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 = "ScheduleConferenceSummaryGenerationCommand";
|
|
17
|
+
const handlerExecutionContext = {
|
|
18
|
+
logger,
|
|
19
|
+
clientName,
|
|
20
|
+
commandName,
|
|
21
|
+
inputFilterSensitiveLog: (_) => _,
|
|
22
|
+
outputFilterSensitiveLog: (_) => _,
|
|
23
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
+
service: "WdaInsights",
|
|
25
|
+
operation: "ScheduleConferenceSummaryGeneration",
|
|
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_ScheduleConferenceSummaryGenerationCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return de_ScheduleConferenceSummaryGenerationCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|