@wildix/wda-stream-client 1.0.55 → 1.0.57
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/WdaStream.js +2 -2
- package/dist-cjs/commands/{GetConversationsCommand.js → QueryConversationsCommand.js} +7 -7
- package/dist-cjs/commands/index.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +12 -7
- package/dist-es/WdaStream.js +2 -2
- package/dist-es/commands/QueryConversationsCommand.js +17 -0
- package/dist-es/commands/index.js +1 -1
- package/dist-es/protocols/Aws_restJson1.js +9 -4
- package/dist-types/WdaStream.d.ts +6 -6
- package/dist-types/WdaStreamClient.d.ts +3 -3
- package/dist-types/commands/ConsumeEventCommand.d.ts +3 -0
- package/dist-types/commands/{GetConversationsCommand.d.ts → QueryConversationsCommand.d.ts} +32 -25
- package/dist-types/commands/index.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +22 -14
- package/dist-types/protocols/Aws_restJson1.d.ts +5 -5
- package/package.json +1 -1
- package/dist-es/commands/GetConversationsCommand.js +0 -17
package/dist-cjs/WdaStream.js
CHANGED
|
@@ -5,7 +5,7 @@ const WdaStreamClient_1 = require("./WdaStreamClient");
|
|
|
5
5
|
const ConsumeEventCommand_1 = require("./commands/ConsumeEventCommand");
|
|
6
6
|
const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
|
|
7
7
|
const GetConferenceIdCommand_1 = require("./commands/GetConferenceIdCommand");
|
|
8
|
-
const
|
|
8
|
+
const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
|
|
9
9
|
const QueryPresenceCommand_1 = require("./commands/QueryPresenceCommand");
|
|
10
10
|
const QueryPresencesCommand_1 = require("./commands/QueryPresencesCommand");
|
|
11
11
|
const UpdatePresenceLastSeenCommand_1 = require("./commands/UpdatePresenceLastSeenCommand");
|
|
@@ -14,7 +14,7 @@ const commands = {
|
|
|
14
14
|
ConsumeEventCommand: ConsumeEventCommand_1.ConsumeEventCommand,
|
|
15
15
|
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
16
16
|
GetConferenceIdCommand: GetConferenceIdCommand_1.GetConferenceIdCommand,
|
|
17
|
-
|
|
17
|
+
QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
|
|
18
18
|
QueryPresenceCommand: QueryPresenceCommand_1.QueryPresenceCommand,
|
|
19
19
|
QueryPresencesCommand: QueryPresencesCommand_1.QueryPresencesCommand,
|
|
20
20
|
UpdatePresenceLastSeenCommand: UpdatePresenceLastSeenCommand_1.UpdatePresenceLastSeenCommand,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.QueryConversationsCommand = exports.$Command = void 0;
|
|
4
4
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class
|
|
8
|
+
class QueryConversationsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [
|
|
11
11
|
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
12
|
];
|
|
13
13
|
})
|
|
14
|
-
.s("WdaStream", "
|
|
15
|
-
.n("WdaStreamClient", "
|
|
14
|
+
.s("WdaStream", "QueryConversations", {})
|
|
15
|
+
.n("WdaStreamClient", "QueryConversationsCommand")
|
|
16
16
|
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.
|
|
18
|
-
.de(Aws_restJson1_1.
|
|
17
|
+
.ser(Aws_restJson1_1.se_QueryConversationsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_QueryConversationsCommand)
|
|
19
19
|
.build() {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.QueryConversationsCommand = QueryConversationsCommand;
|
|
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./ConsumeEventCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./GetConferenceIdCommand"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./
|
|
7
|
+
tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./QueryPresenceCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./QueryPresencesCommand"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./UpdatePresenceLastSeenCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.
|
|
3
|
+
exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
|
|
4
4
|
const WdaStreamServiceException_1 = require("../models/WdaStreamServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -60,21 +60,26 @@ const se_GetConferenceIdCommand = async (input, context) => {
|
|
|
60
60
|
return b.build();
|
|
61
61
|
};
|
|
62
62
|
exports.se_GetConferenceIdCommand = se_GetConferenceIdCommand;
|
|
63
|
-
const
|
|
63
|
+
const se_QueryConversationsCommand = async (input, context) => {
|
|
64
64
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
65
|
-
const headers = {
|
|
65
|
+
const headers = {
|
|
66
|
+
'content-type': 'application/json',
|
|
67
|
+
};
|
|
66
68
|
b.bp("/v2/stream/conversations");
|
|
67
69
|
const query = (0, smithy_client_1.map)({
|
|
68
70
|
[_c]: [, input[_c]],
|
|
69
71
|
});
|
|
70
72
|
let body;
|
|
71
|
-
|
|
73
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
74
|
+
'filter': _ => (0, smithy_client_1._json)(_),
|
|
75
|
+
}));
|
|
76
|
+
b.m("POST")
|
|
72
77
|
.h(headers)
|
|
73
78
|
.q(query)
|
|
74
79
|
.b(body);
|
|
75
80
|
return b.build();
|
|
76
81
|
};
|
|
77
|
-
exports.
|
|
82
|
+
exports.se_QueryConversationsCommand = se_QueryConversationsCommand;
|
|
78
83
|
const se_QueryPresenceCommand = async (input, context) => {
|
|
79
84
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
80
85
|
const headers = {
|
|
@@ -228,7 +233,7 @@ const de_GetConferenceIdCommand = async (output, context) => {
|
|
|
228
233
|
return contents;
|
|
229
234
|
};
|
|
230
235
|
exports.de_GetConferenceIdCommand = de_GetConferenceIdCommand;
|
|
231
|
-
const
|
|
236
|
+
const de_QueryConversationsCommand = async (output, context) => {
|
|
232
237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
233
238
|
return de_CommandError(output, context);
|
|
234
239
|
}
|
|
@@ -244,7 +249,7 @@ const de_GetConversationsCommand = async (output, context) => {
|
|
|
244
249
|
Object.assign(contents, doc);
|
|
245
250
|
return contents;
|
|
246
251
|
};
|
|
247
|
-
exports.
|
|
252
|
+
exports.de_QueryConversationsCommand = de_QueryConversationsCommand;
|
|
248
253
|
const de_QueryPresenceCommand = async (output, context) => {
|
|
249
254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
250
255
|
return de_CommandError(output, context);
|
package/dist-es/WdaStream.js
CHANGED
|
@@ -2,7 +2,7 @@ import { WdaStreamClient, } from "./WdaStreamClient";
|
|
|
2
2
|
import { ConsumeEventCommand, } from "./commands/ConsumeEventCommand";
|
|
3
3
|
import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
|
|
4
4
|
import { GetConferenceIdCommand, } from "./commands/GetConferenceIdCommand";
|
|
5
|
-
import {
|
|
5
|
+
import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
|
|
6
6
|
import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
|
|
7
7
|
import { QueryPresencesCommand, } from "./commands/QueryPresencesCommand";
|
|
8
8
|
import { UpdatePresenceLastSeenCommand, } from "./commands/UpdatePresenceLastSeenCommand";
|
|
@@ -11,7 +11,7 @@ const commands = {
|
|
|
11
11
|
ConsumeEventCommand,
|
|
12
12
|
DescribeEventCommand,
|
|
13
13
|
GetConferenceIdCommand,
|
|
14
|
-
|
|
14
|
+
QueryConversationsCommand,
|
|
15
15
|
QueryPresenceCommand,
|
|
16
16
|
QueryPresencesCommand,
|
|
17
17
|
UpdatePresenceLastSeenCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_QueryConversationsCommand, se_QueryConversationsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class QueryConversationsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("WdaStream", "QueryConversations", {})
|
|
12
|
+
.n("WdaStreamClient", "QueryConversationsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_QueryConversationsCommand)
|
|
15
|
+
.de(de_QueryConversationsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./ConsumeEventCommand";
|
|
2
2
|
export * from "./DescribeEventCommand";
|
|
3
3
|
export * from "./GetConferenceIdCommand";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./QueryConversationsCommand";
|
|
5
5
|
export * from "./QueryPresenceCommand";
|
|
6
6
|
export * from "./QueryPresencesCommand";
|
|
7
7
|
export * from "./UpdatePresenceLastSeenCommand";
|
|
@@ -54,15 +54,20 @@ export const se_GetConferenceIdCommand = async (input, context) => {
|
|
|
54
54
|
.b(body);
|
|
55
55
|
return b.build();
|
|
56
56
|
};
|
|
57
|
-
export const
|
|
57
|
+
export const se_QueryConversationsCommand = async (input, context) => {
|
|
58
58
|
const b = rb(input, context);
|
|
59
|
-
const headers = {
|
|
59
|
+
const headers = {
|
|
60
|
+
'content-type': 'application/json',
|
|
61
|
+
};
|
|
60
62
|
b.bp("/v2/stream/conversations");
|
|
61
63
|
const query = map({
|
|
62
64
|
[_c]: [, input[_c]],
|
|
63
65
|
});
|
|
64
66
|
let body;
|
|
65
|
-
|
|
67
|
+
body = JSON.stringify(take(input, {
|
|
68
|
+
'filter': _ => _json(_),
|
|
69
|
+
}));
|
|
70
|
+
b.m("POST")
|
|
66
71
|
.h(headers)
|
|
67
72
|
.q(query)
|
|
68
73
|
.b(body);
|
|
@@ -215,7 +220,7 @@ export const de_GetConferenceIdCommand = async (output, context) => {
|
|
|
215
220
|
Object.assign(contents, doc);
|
|
216
221
|
return contents;
|
|
217
222
|
};
|
|
218
|
-
export const
|
|
223
|
+
export const de_QueryConversationsCommand = async (output, context) => {
|
|
219
224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
220
225
|
return de_CommandError(output, context);
|
|
221
226
|
}
|
|
@@ -2,7 +2,7 @@ import { WdaStreamClient } from "./WdaStreamClient";
|
|
|
2
2
|
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/ConsumeEventCommand";
|
|
3
3
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
4
4
|
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
|
|
5
|
-
import {
|
|
5
|
+
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
6
6
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
7
7
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
8
8
|
import { UpdatePresenceLastSeenCommandInput, UpdatePresenceLastSeenCommandOutput } from "./commands/UpdatePresenceLastSeenCommand";
|
|
@@ -28,12 +28,12 @@ export interface WdaStream {
|
|
|
28
28
|
getConferenceId(args: GetConferenceIdCommandInput, cb: (err: any, data?: GetConferenceIdCommandOutput) => void): void;
|
|
29
29
|
getConferenceId(args: GetConferenceIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConferenceIdCommandOutput) => void): void;
|
|
30
30
|
/**
|
|
31
|
-
* @see {@link
|
|
31
|
+
* @see {@link QueryConversationsCommand}
|
|
32
32
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
queryConversations(): Promise<QueryConversationsCommandOutput>;
|
|
34
|
+
queryConversations(args: QueryConversationsCommandInput, options?: __HttpHandlerOptions): Promise<QueryConversationsCommandOutput>;
|
|
35
|
+
queryConversations(args: QueryConversationsCommandInput, cb: (err: any, data?: QueryConversationsCommandOutput) => void): void;
|
|
36
|
+
queryConversations(args: QueryConversationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryConversationsCommandOutput) => void): void;
|
|
37
37
|
/**
|
|
38
38
|
* @see {@link QueryPresenceCommand}
|
|
39
39
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/ConsumeEventCommand";
|
|
2
2
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
3
3
|
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
|
|
4
|
-
import {
|
|
4
|
+
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
5
5
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
6
6
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
7
7
|
import { UpdatePresenceLastSeenCommandInput, UpdatePresenceLastSeenCommandOutput } from "./commands/UpdatePresenceLastSeenCommand";
|
|
@@ -16,11 +16,11 @@ export { __Client };
|
|
|
16
16
|
/**
|
|
17
17
|
* @public
|
|
18
18
|
*/
|
|
19
|
-
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput |
|
|
19
|
+
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
22
|
*/
|
|
23
|
-
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput |
|
|
23
|
+
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
*/
|
|
@@ -90,6 +90,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
90
90
|
* flags: [ // CallFlowFlags
|
|
91
91
|
* "STRING_VALUE",
|
|
92
92
|
* ],
|
|
93
|
+
* sipCallId: "STRING_VALUE",
|
|
93
94
|
* licenses: [ // LicensesList
|
|
94
95
|
* "x-bees" || "uc",
|
|
95
96
|
* ],
|
|
@@ -148,6 +149,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
148
149
|
* flags: [
|
|
149
150
|
* "STRING_VALUE",
|
|
150
151
|
* ],
|
|
152
|
+
* sipCallId: "STRING_VALUE",
|
|
151
153
|
* mos: { // CallMosData
|
|
152
154
|
* caller: "STRING_VALUE",
|
|
153
155
|
* callee: "STRING_VALUE",
|
|
@@ -194,6 +196,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
194
196
|
* flags: [
|
|
195
197
|
* "STRING_VALUE",
|
|
196
198
|
* ],
|
|
199
|
+
* sipCallId: "STRING_VALUE",
|
|
197
200
|
* mos: {
|
|
198
201
|
* caller: "STRING_VALUE",
|
|
199
202
|
* callee: "STRING_VALUE",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServiceInputTypes, ServiceOutputTypes, WdaStreamClientResolvedConfig } from "../WdaStreamClient";
|
|
2
|
-
import {
|
|
2
|
+
import { QueryConversationsInput, QueryConversationsOutput } from "../models/models_0";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
5
|
/**
|
|
@@ -10,20 +10,20 @@ export { $Command };
|
|
|
10
10
|
/**
|
|
11
11
|
* @public
|
|
12
12
|
*
|
|
13
|
-
* The input for {@link
|
|
13
|
+
* The input for {@link QueryConversationsCommand}.
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface QueryConversationsCommandInput extends QueryConversationsInput {
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* @public
|
|
19
19
|
*
|
|
20
|
-
* The output of {@link
|
|
20
|
+
* The output of {@link QueryConversationsCommand}.
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface QueryConversationsCommandOutput extends QueryConversationsOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
|
-
declare const
|
|
25
|
-
new (input:
|
|
26
|
-
new (...[input]: [] | [
|
|
24
|
+
declare const QueryConversationsCommand_base: {
|
|
25
|
+
new (input: QueryConversationsCommandInput): import("@smithy/smithy-client").CommandImpl<QueryConversationsCommandInput, QueryConversationsCommandOutput, WdaStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [QueryConversationsCommandInput]): import("@smithy/smithy-client").CommandImpl<QueryConversationsCommandInput, QueryConversationsCommandOutput, WdaStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -34,16 +34,23 @@ declare const GetConversationsCommand_base: {
|
|
|
34
34
|
* @example
|
|
35
35
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
36
|
* ```javascript
|
|
37
|
-
* import { WdaStreamClient,
|
|
38
|
-
* // const { WdaStreamClient,
|
|
37
|
+
* import { WdaStreamClient, QueryConversationsCommand } from "@wildix/wda-stream-client"; // ES Modules import
|
|
38
|
+
* // const { WdaStreamClient, QueryConversationsCommand } = require("@wildix/wda-stream-client"); // CommonJS import
|
|
39
39
|
* const client = new WdaStreamClient(config);
|
|
40
|
-
* const input = { //
|
|
40
|
+
* const input = { // QueryConversationsInput
|
|
41
41
|
* company: "STRING_VALUE",
|
|
42
|
+
* filter: [ // PresenceQueryFilterList
|
|
43
|
+
* { // PresenceQueryFilter
|
|
44
|
+
* id: "STRING_VALUE",
|
|
45
|
+
* company: "STRING_VALUE",
|
|
46
|
+
* extension: "STRING_VALUE",
|
|
47
|
+
* },
|
|
48
|
+
* ],
|
|
42
49
|
* };
|
|
43
|
-
* const command = new
|
|
50
|
+
* const command = new QueryConversationsCommand(input);
|
|
44
51
|
* const response = await client.send(command);
|
|
45
|
-
* // { //
|
|
46
|
-
* // calls: [ //
|
|
52
|
+
* // { // QueryConversationsOutput
|
|
53
|
+
* // calls: [ // QueryConversationsCallsList // required
|
|
47
54
|
* // { // CallAnalyticsLiveProgressEvent
|
|
48
55
|
* // id: "STRING_VALUE", // required
|
|
49
56
|
* // pbx: "STRING_VALUE", // required
|
|
@@ -219,7 +226,7 @@ declare const GetConversationsCommand_base: {
|
|
|
219
226
|
* // ],
|
|
220
227
|
* // },
|
|
221
228
|
* // ],
|
|
222
|
-
* // conferences: [ //
|
|
229
|
+
* // conferences: [ // QueryConversationsConferencesList // required
|
|
223
230
|
* // { // ConferenceAnalyticsLiveProgressEvent
|
|
224
231
|
* // id: "STRING_VALUE", // required
|
|
225
232
|
* // time: Number("long"), // required
|
|
@@ -248,7 +255,7 @@ declare const GetConversationsCommand_base: {
|
|
|
248
255
|
* // transcriptionLanguage: "STRING_VALUE",
|
|
249
256
|
* // },
|
|
250
257
|
* // ],
|
|
251
|
-
* // chats: [ //
|
|
258
|
+
* // chats: [ // QueryConversationsChatsList // required
|
|
252
259
|
* // { // ChatAnalyticsLiveProgressEvent
|
|
253
260
|
* // id: "STRING_VALUE", // required
|
|
254
261
|
* // time: Number("long"), // required
|
|
@@ -335,10 +342,10 @@ declare const GetConversationsCommand_base: {
|
|
|
335
342
|
*
|
|
336
343
|
* ```
|
|
337
344
|
*
|
|
338
|
-
* @param
|
|
339
|
-
* @returns {@link
|
|
340
|
-
* @see {@link
|
|
341
|
-
* @see {@link
|
|
345
|
+
* @param QueryConversationsCommandInput - {@link QueryConversationsCommandInput}
|
|
346
|
+
* @returns {@link QueryConversationsCommandOutput}
|
|
347
|
+
* @see {@link QueryConversationsCommandInput} for command's `input` shape.
|
|
348
|
+
* @see {@link QueryConversationsCommandOutput} for command's `response` shape.
|
|
342
349
|
* @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
|
|
343
350
|
*
|
|
344
351
|
* @throws {@link ForbiddenException} (client fault)
|
|
@@ -351,16 +358,16 @@ declare const GetConversationsCommand_base: {
|
|
|
351
358
|
*
|
|
352
359
|
* @public
|
|
353
360
|
*/
|
|
354
|
-
export declare class
|
|
361
|
+
export declare class QueryConversationsCommand extends QueryConversationsCommand_base {
|
|
355
362
|
/** @internal type navigation helper, not in runtime. */
|
|
356
363
|
protected static __types: {
|
|
357
364
|
api: {
|
|
358
|
-
input:
|
|
359
|
-
output:
|
|
365
|
+
input: QueryConversationsInput;
|
|
366
|
+
output: QueryConversationsOutput;
|
|
360
367
|
};
|
|
361
368
|
sdk: {
|
|
362
|
-
input:
|
|
363
|
-
output:
|
|
369
|
+
input: QueryConversationsCommandInput;
|
|
370
|
+
output: QueryConversationsCommandOutput;
|
|
364
371
|
};
|
|
365
372
|
};
|
|
366
373
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./ConsumeEventCommand";
|
|
2
2
|
export * from "./DescribeEventCommand";
|
|
3
3
|
export * from "./GetConferenceIdCommand";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./QueryConversationsCommand";
|
|
5
5
|
export * from "./QueryPresenceCommand";
|
|
6
6
|
export * from "./QueryPresencesCommand";
|
|
7
7
|
export * from "./UpdatePresenceLastSeenCommand";
|
|
@@ -1361,6 +1361,7 @@ export interface CallSplitConsumeEventData {
|
|
|
1361
1361
|
queue?: CallFlowConsumeQueue | undefined;
|
|
1362
1362
|
tags?: (string)[] | undefined;
|
|
1363
1363
|
flags?: (string)[] | undefined;
|
|
1364
|
+
sipCallId?: string | undefined;
|
|
1364
1365
|
mos?: CallMosData | undefined;
|
|
1365
1366
|
reason?: string | undefined;
|
|
1366
1367
|
transferType?: string | undefined;
|
|
@@ -1391,6 +1392,7 @@ export interface CallStartConsumeEventData {
|
|
|
1391
1392
|
queue?: CallFlowConsumeQueue | undefined;
|
|
1392
1393
|
tags?: (string)[] | undefined;
|
|
1393
1394
|
flags?: (string)[] | undefined;
|
|
1395
|
+
sipCallId?: string | undefined;
|
|
1394
1396
|
licenses?: (License)[] | undefined;
|
|
1395
1397
|
}
|
|
1396
1398
|
/**
|
|
@@ -1443,6 +1445,7 @@ export interface CallUpdateConsumeEventData {
|
|
|
1443
1445
|
queue?: CallFlowConsumeQueue | undefined;
|
|
1444
1446
|
tags?: (string)[] | undefined;
|
|
1445
1447
|
flags?: (string)[] | undefined;
|
|
1448
|
+
sipCallId?: string | undefined;
|
|
1446
1449
|
mos?: CallMosData | undefined;
|
|
1447
1450
|
}
|
|
1448
1451
|
/**
|
|
@@ -4184,20 +4187,6 @@ export declare class MatchNotFoundException extends __BaseException {
|
|
|
4184
4187
|
*/
|
|
4185
4188
|
constructor(opts: __ExceptionOptionType<MatchNotFoundException, __BaseException>);
|
|
4186
4189
|
}
|
|
4187
|
-
/**
|
|
4188
|
-
* @public
|
|
4189
|
-
*/
|
|
4190
|
-
export interface GetConversationsInput {
|
|
4191
|
-
company?: string | undefined;
|
|
4192
|
-
}
|
|
4193
|
-
/**
|
|
4194
|
-
* @public
|
|
4195
|
-
*/
|
|
4196
|
-
export interface GetConversationsOutput {
|
|
4197
|
-
calls: (CallAnalyticsLiveProgressEvent)[];
|
|
4198
|
-
conferences: (ConferenceAnalyticsLiveProgressEvent)[];
|
|
4199
|
-
chats: (ChatAnalyticsLiveProgressEvent)[];
|
|
4200
|
-
}
|
|
4201
4190
|
/**
|
|
4202
4191
|
* @public
|
|
4203
4192
|
* @enum
|
|
@@ -4319,6 +4308,25 @@ export interface PresenceQueryFilter {
|
|
|
4319
4308
|
*/
|
|
4320
4309
|
extension?: string | undefined;
|
|
4321
4310
|
}
|
|
4311
|
+
/**
|
|
4312
|
+
* @public
|
|
4313
|
+
*/
|
|
4314
|
+
export interface QueryConversationsInput {
|
|
4315
|
+
company?: string | undefined;
|
|
4316
|
+
/**
|
|
4317
|
+
* List of filters to match the user conversations list.
|
|
4318
|
+
* @public
|
|
4319
|
+
*/
|
|
4320
|
+
filter?: (PresenceQueryFilter)[] | undefined;
|
|
4321
|
+
}
|
|
4322
|
+
/**
|
|
4323
|
+
* @public
|
|
4324
|
+
*/
|
|
4325
|
+
export interface QueryConversationsOutput {
|
|
4326
|
+
calls: (CallAnalyticsLiveProgressEvent)[];
|
|
4327
|
+
conferences: (ConferenceAnalyticsLiveProgressEvent)[];
|
|
4328
|
+
chats: (ChatAnalyticsLiveProgressEvent)[];
|
|
4329
|
+
}
|
|
4322
4330
|
/**
|
|
4323
4331
|
* @public
|
|
4324
4332
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "../commands/ConsumeEventCommand";
|
|
2
2
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "../commands/DescribeEventCommand";
|
|
3
3
|
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "../commands/GetConferenceIdCommand";
|
|
4
|
-
import {
|
|
4
|
+
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "../commands/QueryConversationsCommand";
|
|
5
5
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "../commands/QueryPresenceCommand";
|
|
6
6
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "../commands/QueryPresencesCommand";
|
|
7
7
|
import { UpdatePresenceLastSeenCommandInput, UpdatePresenceLastSeenCommandOutput } from "../commands/UpdatePresenceLastSeenCommand";
|
|
@@ -20,9 +20,9 @@ export declare const se_DescribeEventCommand: (input: DescribeEventCommandInput,
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const se_GetConferenceIdCommand: (input: GetConferenceIdCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* serializeAws_restJson1QueryConversationsCommand
|
|
24
24
|
*/
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const se_QueryConversationsCommand: (input: QueryConversationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
26
26
|
/**
|
|
27
27
|
* serializeAws_restJson1QueryPresenceCommand
|
|
28
28
|
*/
|
|
@@ -48,9 +48,9 @@ export declare const de_DescribeEventCommand: (output: __HttpResponse, context:
|
|
|
48
48
|
*/
|
|
49
49
|
export declare const de_GetConferenceIdCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetConferenceIdCommandOutput>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* deserializeAws_restJson1QueryConversationsCommand
|
|
52
52
|
*/
|
|
53
|
-
export declare const
|
|
53
|
+
export declare const de_QueryConversationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryConversationsCommandOutput>;
|
|
54
54
|
/**
|
|
55
55
|
* deserializeAws_restJson1QueryPresenceCommand
|
|
56
56
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wda-stream-client",
|
|
3
3
|
"description": "@wildix/wda-stream-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.57",
|
|
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",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { de_GetConversationsCommand, se_GetConversationsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
-
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
export { $Command };
|
|
5
|
-
export class GetConversationsCommand extends $Command.classBuilder()
|
|
6
|
-
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
-
})
|
|
11
|
-
.s("WdaStream", "GetConversations", {})
|
|
12
|
-
.n("WdaStreamClient", "GetConversationsCommand")
|
|
13
|
-
.f(void 0, void 0)
|
|
14
|
-
.ser(se_GetConversationsCommand)
|
|
15
|
-
.de(de_GetConversationsCommand)
|
|
16
|
-
.build() {
|
|
17
|
-
}
|