@wildix/wda-history-client 1.0.20 → 1.0.22

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.
@@ -8,6 +8,8 @@ const GetCallTranscriptionTextCommand_1 = require("./commands/GetCallTranscripti
8
8
  const GetConferenceCommand_1 = require("./commands/GetConferenceCommand");
9
9
  const GetConferenceTranscriptionCommand_1 = require("./commands/GetConferenceTranscriptionCommand");
10
10
  const GetConferenceTranscriptionTextCommand_1 = require("./commands/GetConferenceTranscriptionTextCommand");
11
+ const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
12
+ const QueryUserCallsCommand_1 = require("./commands/QueryUserCallsCommand");
11
13
  const smithy_client_1 = require("@smithy/smithy-client");
12
14
  const commands = {
13
15
  GetCallCommand: GetCallCommand_1.GetCallCommand,
@@ -16,6 +18,8 @@ const commands = {
16
18
  GetConferenceCommand: GetConferenceCommand_1.GetConferenceCommand,
17
19
  GetConferenceTranscriptionCommand: GetConferenceTranscriptionCommand_1.GetConferenceTranscriptionCommand,
18
20
  GetConferenceTranscriptionTextCommand: GetConferenceTranscriptionTextCommand_1.GetConferenceTranscriptionTextCommand,
21
+ QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
22
+ QueryUserCallsCommand: QueryUserCallsCommand_1.QueryUserCallsCommand,
19
23
  };
20
24
  class WdaHistory extends WdaHistoryClient_1.WdaHistoryClient {
21
25
  }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueryConversationsCommand = 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
+ class QueryConversationsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WdaHistory", "QueryConversations", {})
15
+ .n("WdaHistoryClient", "QueryConversationsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_QueryConversationsCommand)
18
+ .de(Aws_restJson1_1.de_QueryConversationsCommand)
19
+ .build() {
20
+ }
21
+ exports.QueryConversationsCommand = QueryConversationsCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueryUserCallsCommand = 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
+ class QueryUserCallsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WdaHistory", "QueryUserCalls", {})
15
+ .n("WdaHistoryClient", "QueryUserCallsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_QueryUserCallsCommand)
18
+ .de(Aws_restJson1_1.de_QueryUserCallsCommand)
19
+ .build() {
20
+ }
21
+ exports.QueryUserCallsCommand = QueryUserCallsCommand;
@@ -7,3 +7,5 @@ tslib_1.__exportStar(require("./GetCallTranscriptionTextCommand"), exports);
7
7
  tslib_1.__exportStar(require("./GetConferenceCommand"), exports);
8
8
  tslib_1.__exportStar(require("./GetConferenceTranscriptionCommand"), exports);
9
9
  tslib_1.__exportStar(require("./GetConferenceTranscriptionTextCommand"), exports);
10
+ tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
11
+ tslib_1.__exportStar(require("./QueryUserCallsCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.CallTranscriptionSpeaker = exports.CallTranscriptionNotFoundException = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallNotFoundException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
3
+ exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.CallTranscriptionSpeaker = exports.CallTranscriptionNotFoundException = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallNotFoundException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
4
4
  const WdaHistoryServiceException_1 = require("./WdaHistoryServiceException");
5
5
  class ValidationException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
6
6
  constructor(opts) {
@@ -166,3 +166,26 @@ class ConferenceTranscriptionNotFoundException extends WdaHistoryServiceExceptio
166
166
  }
167
167
  }
168
168
  exports.ConferenceTranscriptionNotFoundException = ConferenceTranscriptionNotFoundException;
169
+ var Conversation;
170
+ (function (Conversation) {
171
+ Conversation.visit = (value, visitor) => {
172
+ if (value.call !== undefined)
173
+ return visitor.call(value.call);
174
+ if (value.conference !== undefined)
175
+ return visitor.conference(value.conference);
176
+ return visitor._(value.$unknown[0], value.$unknown[1]);
177
+ };
178
+ })(Conversation = exports.Conversation || (exports.Conversation = {}));
179
+ exports.ConversationDirection = {
180
+ INBOUND: "INBOUND",
181
+ INTERNAL: "INTERNAL",
182
+ OUTBOUND: "OUTBOUND",
183
+ };
184
+ exports.ConversationFlag = {
185
+ FAX: "FAX",
186
+ VOICEMAIL: "VOICEMAIL",
187
+ };
188
+ exports.ConversationUserDirection = {
189
+ INCOMING: "INCOMING",
190
+ OUTGOING: "OUTGOING",
191
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetConferenceTranscriptionTextCommand = exports.de_GetConferenceTranscriptionCommand = exports.de_GetConferenceCommand = exports.de_GetCallTranscriptionTextCommand = exports.de_GetCallTranscriptionCommand = exports.de_GetCallCommand = exports.se_GetConferenceTranscriptionTextCommand = exports.se_GetConferenceTranscriptionCommand = exports.se_GetConferenceCommand = exports.se_GetCallTranscriptionTextCommand = exports.se_GetCallTranscriptionCommand = exports.se_GetCallCommand = void 0;
3
+ exports.de_QueryUserCallsCommand = exports.de_QueryConversationsCommand = exports.de_GetConferenceTranscriptionTextCommand = exports.de_GetConferenceTranscriptionCommand = exports.de_GetConferenceCommand = exports.de_GetCallTranscriptionTextCommand = exports.de_GetCallTranscriptionCommand = exports.de_GetCallCommand = exports.se_QueryUserCallsCommand = exports.se_QueryConversationsCommand = exports.se_GetConferenceTranscriptionTextCommand = exports.se_GetConferenceTranscriptionCommand = exports.se_GetConferenceCommand = exports.se_GetCallTranscriptionTextCommand = exports.se_GetCallTranscriptionCommand = exports.se_GetCallCommand = void 0;
4
4
  const WdaHistoryServiceException_1 = require("../models/WdaHistoryServiceException");
5
5
  const models_0_1 = require("../models/models_0");
6
6
  const core_1 = require("@smithy/core");
@@ -104,6 +104,52 @@ const se_GetConferenceTranscriptionTextCommand = async (input, context) => {
104
104
  return b.build();
105
105
  };
106
106
  exports.se_GetConferenceTranscriptionTextCommand = se_GetConferenceTranscriptionTextCommand;
107
+ const se_QueryConversationsCommand = async (input, context) => {
108
+ const b = (0, core_1.requestBuilder)(input, context);
109
+ const headers = {
110
+ 'content-type': 'application/json',
111
+ };
112
+ b.bp("/v2/history/conversations");
113
+ const query = (0, smithy_client_1.map)({
114
+ [_c]: [, input[_c]],
115
+ [_u]: [, input[_u]],
116
+ });
117
+ let body;
118
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
119
+ 'filter': _ => (0, smithy_client_1._json)(_),
120
+ 'limit': [],
121
+ 'offset': [],
122
+ }));
123
+ b.m("POST")
124
+ .h(headers)
125
+ .q(query)
126
+ .b(body);
127
+ return b.build();
128
+ };
129
+ exports.se_QueryConversationsCommand = se_QueryConversationsCommand;
130
+ const se_QueryUserCallsCommand = async (input, context) => {
131
+ const b = (0, core_1.requestBuilder)(input, context);
132
+ const headers = {
133
+ 'content-type': 'application/json',
134
+ };
135
+ b.bp("/v2/history/user/calls");
136
+ const query = (0, smithy_client_1.map)({
137
+ [_c]: [, input[_c]],
138
+ [_u]: [, input[_u]],
139
+ });
140
+ let body;
141
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
142
+ 'filter': _ => (0, smithy_client_1._json)(_),
143
+ 'limit': [],
144
+ 'offset': [],
145
+ }));
146
+ b.m("POST")
147
+ .h(headers)
148
+ .q(query)
149
+ .b(body);
150
+ return b.build();
151
+ };
152
+ exports.se_QueryUserCallsCommand = se_QueryUserCallsCommand;
107
153
  const de_GetCallCommand = async (output, context) => {
108
154
  if (output.statusCode !== 200 && output.statusCode >= 300) {
109
155
  return de_CommandError(output, context);
@@ -198,6 +244,36 @@ const de_GetConferenceTranscriptionTextCommand = async (output, context) => {
198
244
  return contents;
199
245
  };
200
246
  exports.de_GetConferenceTranscriptionTextCommand = de_GetConferenceTranscriptionTextCommand;
247
+ const de_QueryConversationsCommand = async (output, context) => {
248
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
249
+ return de_CommandError(output, context);
250
+ }
251
+ const contents = (0, smithy_client_1.map)({
252
+ $metadata: deserializeMetadata(output),
253
+ });
254
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
255
+ const doc = (0, smithy_client_1.take)(data, {
256
+ 'conversations': smithy_client_1._json,
257
+ });
258
+ Object.assign(contents, doc);
259
+ return contents;
260
+ };
261
+ exports.de_QueryConversationsCommand = de_QueryConversationsCommand;
262
+ const de_QueryUserCallsCommand = async (output, context) => {
263
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
264
+ return de_CommandError(output, context);
265
+ }
266
+ const contents = (0, smithy_client_1.map)({
267
+ $metadata: deserializeMetadata(output),
268
+ });
269
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
270
+ const doc = (0, smithy_client_1.take)(data, {
271
+ 'calls': smithy_client_1._json,
272
+ });
273
+ Object.assign(contents, doc);
274
+ return contents;
275
+ };
276
+ exports.de_QueryUserCallsCommand = de_QueryUserCallsCommand;
201
277
  const de_CommandError = async (output, context) => {
202
278
  const parsedOutput = {
203
279
  ...output,
@@ -325,6 +401,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
325
401
  value.length != 0) &&
326
402
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
327
403
  const _c = "company";
404
+ const _u = "user";
328
405
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
329
406
  if (encoded.length) {
330
407
  return JSON.parse(encoded);
@@ -5,6 +5,8 @@ import { GetCallTranscriptionTextCommand, } from "./commands/GetCallTranscriptio
5
5
  import { GetConferenceCommand, } from "./commands/GetConferenceCommand";
6
6
  import { GetConferenceTranscriptionCommand, } from "./commands/GetConferenceTranscriptionCommand";
7
7
  import { GetConferenceTranscriptionTextCommand, } from "./commands/GetConferenceTranscriptionTextCommand";
8
+ import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
9
+ import { QueryUserCallsCommand, } from "./commands/QueryUserCallsCommand";
8
10
  import { createAggregatedClient } from "@smithy/smithy-client";
9
11
  const commands = {
10
12
  GetCallCommand,
@@ -13,6 +15,8 @@ const commands = {
13
15
  GetConferenceCommand,
14
16
  GetConferenceTranscriptionCommand,
15
17
  GetConferenceTranscriptionTextCommand,
18
+ QueryConversationsCommand,
19
+ QueryUserCallsCommand,
16
20
  };
17
21
  export class WdaHistory extends WdaHistoryClient {
18
22
  }
@@ -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("WdaHistory", "QueryConversations", {})
12
+ .n("WdaHistoryClient", "QueryConversationsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_QueryConversationsCommand)
15
+ .de(de_QueryConversationsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_QueryUserCallsCommand, se_QueryUserCallsCommand, } 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 QueryUserCallsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaHistory", "QueryUserCalls", {})
12
+ .n("WdaHistoryClient", "QueryUserCallsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_QueryUserCallsCommand)
15
+ .de(de_QueryUserCallsCommand)
16
+ .build() {
17
+ }
@@ -4,3 +4,5 @@ export * from "./GetCallTranscriptionTextCommand";
4
4
  export * from "./GetConferenceCommand";
5
5
  export * from "./GetConferenceTranscriptionCommand";
6
6
  export * from "./GetConferenceTranscriptionTextCommand";
7
+ export * from "./QueryConversationsCommand";
8
+ export * from "./QueryUserCallsCommand";
@@ -157,3 +157,26 @@ export class ConferenceTranscriptionNotFoundException extends __BaseException {
157
157
  Object.setPrototypeOf(this, ConferenceTranscriptionNotFoundException.prototype);
158
158
  }
159
159
  }
160
+ export var Conversation;
161
+ (function (Conversation) {
162
+ Conversation.visit = (value, visitor) => {
163
+ if (value.call !== undefined)
164
+ return visitor.call(value.call);
165
+ if (value.conference !== undefined)
166
+ return visitor.conference(value.conference);
167
+ return visitor._(value.$unknown[0], value.$unknown[1]);
168
+ };
169
+ })(Conversation || (Conversation = {}));
170
+ export const ConversationDirection = {
171
+ INBOUND: "INBOUND",
172
+ INTERNAL: "INTERNAL",
173
+ OUTBOUND: "OUTBOUND",
174
+ };
175
+ export const ConversationFlag = {
176
+ FAX: "FAX",
177
+ VOICEMAIL: "VOICEMAIL",
178
+ };
179
+ export const ConversationUserDirection = {
180
+ INCOMING: "INCOMING",
181
+ OUTGOING: "OUTGOING",
182
+ };
@@ -95,6 +95,50 @@ export const se_GetConferenceTranscriptionTextCommand = async (input, context) =
95
95
  .b(body);
96
96
  return b.build();
97
97
  };
98
+ export const se_QueryConversationsCommand = async (input, context) => {
99
+ const b = rb(input, context);
100
+ const headers = {
101
+ 'content-type': 'application/json',
102
+ };
103
+ b.bp("/v2/history/conversations");
104
+ const query = map({
105
+ [_c]: [, input[_c]],
106
+ [_u]: [, input[_u]],
107
+ });
108
+ let body;
109
+ body = JSON.stringify(take(input, {
110
+ 'filter': _ => _json(_),
111
+ 'limit': [],
112
+ 'offset': [],
113
+ }));
114
+ b.m("POST")
115
+ .h(headers)
116
+ .q(query)
117
+ .b(body);
118
+ return b.build();
119
+ };
120
+ export const se_QueryUserCallsCommand = async (input, context) => {
121
+ const b = rb(input, context);
122
+ const headers = {
123
+ 'content-type': 'application/json',
124
+ };
125
+ b.bp("/v2/history/user/calls");
126
+ const query = map({
127
+ [_c]: [, input[_c]],
128
+ [_u]: [, input[_u]],
129
+ });
130
+ let body;
131
+ body = JSON.stringify(take(input, {
132
+ 'filter': _ => _json(_),
133
+ 'limit': [],
134
+ 'offset': [],
135
+ }));
136
+ b.m("POST")
137
+ .h(headers)
138
+ .q(query)
139
+ .b(body);
140
+ return b.build();
141
+ };
98
142
  export const de_GetCallCommand = async (output, context) => {
99
143
  if (output.statusCode !== 200 && output.statusCode >= 300) {
100
144
  return de_CommandError(output, context);
@@ -183,6 +227,34 @@ export const de_GetConferenceTranscriptionTextCommand = async (output, context)
183
227
  Object.assign(contents, doc);
184
228
  return contents;
185
229
  };
230
+ export const de_QueryConversationsCommand = async (output, context) => {
231
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
232
+ return de_CommandError(output, context);
233
+ }
234
+ const contents = map({
235
+ $metadata: deserializeMetadata(output),
236
+ });
237
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
238
+ const doc = take(data, {
239
+ 'conversations': _json,
240
+ });
241
+ Object.assign(contents, doc);
242
+ return contents;
243
+ };
244
+ export const de_QueryUserCallsCommand = async (output, context) => {
245
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
246
+ return de_CommandError(output, context);
247
+ }
248
+ const contents = map({
249
+ $metadata: deserializeMetadata(output),
250
+ });
251
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
252
+ const doc = take(data, {
253
+ 'calls': _json,
254
+ });
255
+ Object.assign(contents, doc);
256
+ return contents;
257
+ };
186
258
  const de_CommandError = async (output, context) => {
187
259
  const parsedOutput = {
188
260
  ...output,
@@ -310,6 +382,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
310
382
  value.length != 0) &&
311
383
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
312
384
  const _c = "company";
385
+ const _u = "user";
313
386
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
314
387
  if (encoded.length) {
315
388
  return JSON.parse(encoded);
@@ -5,6 +5,8 @@ import { GetCallTranscriptionTextCommandInput, GetCallTranscriptionTextCommandOu
5
5
  import { GetConferenceCommandInput, GetConferenceCommandOutput } from "./commands/GetConferenceCommand";
6
6
  import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionCommandOutput } from "./commands/GetConferenceTranscriptionCommand";
7
7
  import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "./commands/GetConferenceTranscriptionTextCommand";
8
+ import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
9
+ import { QueryUserCallsCommandInput, QueryUserCallsCommandOutput } from "./commands/QueryUserCallsCommand";
8
10
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
9
11
  export interface WdaHistory {
10
12
  /**
@@ -43,6 +45,20 @@ export interface WdaHistory {
43
45
  getConferenceTranscriptionText(args: GetConferenceTranscriptionTextCommandInput, options?: __HttpHandlerOptions): Promise<GetConferenceTranscriptionTextCommandOutput>;
44
46
  getConferenceTranscriptionText(args: GetConferenceTranscriptionTextCommandInput, cb: (err: any, data?: GetConferenceTranscriptionTextCommandOutput) => void): void;
45
47
  getConferenceTranscriptionText(args: GetConferenceTranscriptionTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConferenceTranscriptionTextCommandOutput) => void): void;
48
+ /**
49
+ * @see {@link QueryConversationsCommand}
50
+ */
51
+ queryConversations(): Promise<QueryConversationsCommandOutput>;
52
+ queryConversations(args: QueryConversationsCommandInput, options?: __HttpHandlerOptions): Promise<QueryConversationsCommandOutput>;
53
+ queryConversations(args: QueryConversationsCommandInput, cb: (err: any, data?: QueryConversationsCommandOutput) => void): void;
54
+ queryConversations(args: QueryConversationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryConversationsCommandOutput) => void): void;
55
+ /**
56
+ * @see {@link QueryUserCallsCommand}
57
+ */
58
+ queryUserCalls(): Promise<QueryUserCallsCommandOutput>;
59
+ queryUserCalls(args: QueryUserCallsCommandInput, options?: __HttpHandlerOptions): Promise<QueryUserCallsCommandOutput>;
60
+ queryUserCalls(args: QueryUserCallsCommandInput, cb: (err: any, data?: QueryUserCallsCommandOutput) => void): void;
61
+ queryUserCalls(args: QueryUserCallsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUserCallsCommandOutput) => void): void;
46
62
  }
47
63
  /**
48
64
  * @public
@@ -4,6 +4,8 @@ import { GetCallTranscriptionTextCommandInput, GetCallTranscriptionTextCommandOu
4
4
  import { GetConferenceCommandInput, GetConferenceCommandOutput } from "./commands/GetConferenceCommand";
5
5
  import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionCommandOutput } from "./commands/GetConferenceTranscriptionCommand";
6
6
  import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "./commands/GetConferenceTranscriptionTextCommand";
7
+ import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
8
+ import { QueryUserCallsCommandInput, QueryUserCallsCommandOutput } from "./commands/QueryUserCallsCommand";
7
9
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
8
10
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
11
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
@@ -15,11 +17,11 @@ export { __Client };
15
17
  /**
16
18
  * @public
17
19
  */
18
- export type ServiceInputTypes = GetCallCommandInput | GetCallTranscriptionCommandInput | GetCallTranscriptionTextCommandInput | GetConferenceCommandInput | GetConferenceTranscriptionCommandInput | GetConferenceTranscriptionTextCommandInput;
20
+ export type ServiceInputTypes = GetCallCommandInput | GetCallTranscriptionCommandInput | GetCallTranscriptionTextCommandInput | GetConferenceCommandInput | GetConferenceTranscriptionCommandInput | GetConferenceTranscriptionTextCommandInput | QueryConversationsCommandInput | QueryUserCallsCommandInput;
19
21
  /**
20
22
  * @public
21
23
  */
22
- export type ServiceOutputTypes = GetCallCommandOutput | GetCallTranscriptionCommandOutput | GetCallTranscriptionTextCommandOutput | GetConferenceCommandOutput | GetConferenceTranscriptionCommandOutput | GetConferenceTranscriptionTextCommandOutput;
24
+ export type ServiceOutputTypes = GetCallCommandOutput | GetCallTranscriptionCommandOutput | GetCallTranscriptionTextCommandOutput | GetConferenceCommandOutput | GetConferenceTranscriptionCommandOutput | GetConferenceTranscriptionTextCommandOutput | QueryConversationsCommandOutput | QueryUserCallsCommandOutput;
23
25
  /**
24
26
  * @public
25
27
  */
@@ -50,6 +50,8 @@ declare const GetCallCommand_base: {
50
50
  * // connectTime: Number("long"),
51
51
  * // talkTime: Number("long"),
52
52
  * // waitTime: Number("long"),
53
+ * // queueTime: Number("long"),
54
+ * // holdTime: Number("long"),
53
55
  * // duration: Number("long"), // required
54
56
  * // caller: { // CallParticipant
55
57
  * // type: "REMOTE" || "LOCAL", // required
@@ -0,0 +1,233 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WdaHistoryClientResolvedConfig } from "../WdaHistoryClient";
2
+ import { QueryConversationsInput, QueryConversationsOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link QueryConversationsCommand}.
14
+ */
15
+ export interface QueryConversationsCommandInput extends QueryConversationsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link QueryConversationsCommand}.
21
+ */
22
+ export interface QueryConversationsCommandOutput extends QueryConversationsOutput, __MetadataBearer {
23
+ }
24
+ declare const QueryConversationsCommand_base: {
25
+ new (input: QueryConversationsCommandInput): import("@smithy/smithy-client").CommandImpl<QueryConversationsCommandInput, QueryConversationsCommandOutput, WdaHistoryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [QueryConversationsCommandInput]): import("@smithy/smithy-client").CommandImpl<QueryConversationsCommandInput, QueryConversationsCommandOutput, WdaHistoryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves list of conversations using filters.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WdaHistoryClient, QueryConversationsCommand } from "@wildix/wda-history-client"; // ES Modules import
35
+ * // const { WdaHistoryClient, QueryConversationsCommand } = require("@wildix/wda-history-client"); // CommonJS import
36
+ * const client = new WdaHistoryClient(config);
37
+ * const input = { // QueryConversationsInput
38
+ * company: "STRING_VALUE",
39
+ * user: "STRING_VALUE",
40
+ * limit: Number("int"),
41
+ * offset: Number("int"),
42
+ * filter: { // QueryConversationsFilter
43
+ * direction: "INTERNAL" || "INBOUND" || "OUTBOUND",
44
+ * flags: [ // ConversationFlags
45
+ * "FAX" || "VOICEMAIL",
46
+ * ],
47
+ * status: "COMPLETED" || "MISSED",
48
+ * },
49
+ * };
50
+ * const command = new QueryConversationsCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // QueryConversationsOutput
53
+ * // conversations: [ // ConversationsList // required
54
+ * // { // Conversation Union: only one key present
55
+ * // call: { // CallRecord
56
+ * // flowIndex: Number("int"), // required
57
+ * // startTime: Number("long"), // required
58
+ * // endTime: Number("long"), // required
59
+ * // connectTime: Number("long"),
60
+ * // talkTime: Number("long"),
61
+ * // waitTime: Number("long"),
62
+ * // queueTime: Number("long"),
63
+ * // holdTime: Number("long"),
64
+ * // duration: Number("long"), // required
65
+ * // caller: { // CallParticipant
66
+ * // type: "REMOTE" || "LOCAL", // required
67
+ * // phone: "STRING_VALUE",
68
+ * // name: "STRING_VALUE",
69
+ * // company: "STRING_VALUE",
70
+ * // email: "STRING_VALUE",
71
+ * // userId: "STRING_VALUE",
72
+ * // userExtension: "STRING_VALUE",
73
+ * // userDepartment: "STRING_VALUE",
74
+ * // groupId: "STRING_VALUE",
75
+ * // groupName: "STRING_VALUE",
76
+ * // userAgent: "STRING_VALUE",
77
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "UNKNOWN",
78
+ * // role: "CLIENT" || "AGENT", // required
79
+ * // license: "STRING_VALUE",
80
+ * // },
81
+ * // callee: {
82
+ * // type: "REMOTE" || "LOCAL", // required
83
+ * // phone: "STRING_VALUE",
84
+ * // name: "STRING_VALUE",
85
+ * // company: "STRING_VALUE",
86
+ * // email: "STRING_VALUE",
87
+ * // userId: "STRING_VALUE",
88
+ * // userExtension: "STRING_VALUE",
89
+ * // userDepartment: "STRING_VALUE",
90
+ * // groupId: "STRING_VALUE",
91
+ * // groupName: "STRING_VALUE",
92
+ * // userAgent: "STRING_VALUE",
93
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "UNKNOWN",
94
+ * // role: "CLIENT" || "AGENT", // required
95
+ * // license: "STRING_VALUE",
96
+ * // },
97
+ * // service: "STRING_VALUE",
98
+ * // serviceNumber: "STRING_VALUE",
99
+ * // destination: "STRING_VALUE",
100
+ * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
101
+ * // trunkName: "STRING_VALUE",
102
+ * // trunkDirection: "STRING_VALUE",
103
+ * // queueName: "STRING_VALUE",
104
+ * // queueId: "STRING_VALUE",
105
+ * // tags: [ // CallFlowTags
106
+ * // "STRING_VALUE",
107
+ * // ],
108
+ * // flags: [ // CallFlowFlags
109
+ * // "STRING_VALUE",
110
+ * // ],
111
+ * // callerMos: "STRING_VALUE",
112
+ * // calleeMos: "STRING_VALUE",
113
+ * // xhoppersConfId: "STRING_VALUE",
114
+ * // recordings: [ // CallFlowRecordings
115
+ * // "STRING_VALUE",
116
+ * // ],
117
+ * // recordingsData: [ // CallFlowRecordingsData
118
+ * // { // RecordingsData
119
+ * // fileName: "STRING_VALUE", // required
120
+ * // start: Number("long"), // required
121
+ * // end: Number("long"), // required
122
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
123
+ * // url: "STRING_VALUE", // required
124
+ * // pauses: [ // CallRecordPausesList // required
125
+ * // { // CallRecordPause
126
+ * // start: Number("long"),
127
+ * // end: Number("long"),
128
+ * // reason: "pause" || "hold",
129
+ * // },
130
+ * // ],
131
+ * // },
132
+ * // ],
133
+ * // mergeWith: "STRING_VALUE",
134
+ * // splitReason: "STRING_VALUE",
135
+ * // splitTransferType: "STRING_VALUE",
136
+ * // remotePhone: "STRING_VALUE",
137
+ * // remotePhoneCountryCode: Number("int"),
138
+ * // remotePhoneCountryCodeStr: "STRING_VALUE",
139
+ * // remotePhoneLocation: "STRING_VALUE",
140
+ * // callStatus: "COMPLETED" || "MISSED",
141
+ * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE",
142
+ * // transcriptionLanguage: "STRING_VALUE",
143
+ * // attachment: "STRING_VALUE",
144
+ * // attachmentType: "VOICEMAIL" || "FAX",
145
+ * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
146
+ * // { // CallFlowAttachmentDestination
147
+ * // phone: "STRING_VALUE",
148
+ * // name: "STRING_VALUE",
149
+ * // email: "STRING_VALUE",
150
+ * // userId: "STRING_VALUE",
151
+ * // userExtension: "STRING_VALUE",
152
+ * // userDepartment: "STRING_VALUE",
153
+ * // groupId: "STRING_VALUE",
154
+ * // groupName: "STRING_VALUE",
155
+ * // },
156
+ * // ],
157
+ * // id: "STRING_VALUE", // required
158
+ * // pbx: "STRING_VALUE", // required
159
+ * // time: Number("long"), // required
160
+ * // company: "STRING_VALUE", // required
161
+ * // licenses: [ // LicensesList // required
162
+ * // "x-bees",
163
+ * // ],
164
+ * // type: "call" || "call_transcription" || "conference" || "conference_transcription", // required
165
+ * // },
166
+ * // conference: { // ConferenceRecord
167
+ * // id: "STRING_VALUE", // required
168
+ * // time: Number("long"), // required
169
+ * // company: "STRING_VALUE", // required
170
+ * // pbx: "STRING_VALUE",
171
+ * // startTime: Number("long"), // required
172
+ * // endTime: Number("long"), // required
173
+ * // duration: Number("long"), // required
174
+ * // waitTime: Number("int"),
175
+ * // subject: "STRING_VALUE",
176
+ * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND", // required
177
+ * // service: "STRING_VALUE",
178
+ * // status: "COMPLETED" || "MISSED",
179
+ * // participants: [ // ConferenceAnalyticsRecordParticipantList // required
180
+ * // { // ConferenceAnalyticsRecordParticipant
181
+ * // jid: "STRING_VALUE", // required
182
+ * // info: { // ConferenceParticipant
183
+ * // type: "EXTERNAL" || "EXTERNAL_DIAL_IN" || "PBX" || "PBX_SIP" || "XBS", // required
184
+ * // role: "CLIENT" || "AGENT",
185
+ * // jid: "STRING_VALUE",
186
+ * // name: "STRING_VALUE",
187
+ * // email: "STRING_VALUE",
188
+ * // phone: "STRING_VALUE",
189
+ * // department: "STRING_VALUE",
190
+ * // company: "STRING_VALUE",
191
+ * // pbxSerial: "STRING_VALUE",
192
+ * // pbxExtension: "STRING_VALUE",
193
+ * // pbxGroupId: "STRING_VALUE",
194
+ * // xbsId: "STRING_VALUE",
195
+ * // license: "basic" || "essential" || "business" || "premium" || "wizyconf",
196
+ * // },
197
+ * // totalDuration: Number("int"), // required
198
+ * // totalSpeakDuration: Number("int"), // required
199
+ * // joinTime: Number("long"), // required
200
+ * // },
201
+ * // ],
202
+ * // recordings: [ // ConferenceRecordingList
203
+ * // { // ConferenceRecording
204
+ * // url: "STRING_VALUE", // required
205
+ * // start: Number("long"), // required
206
+ * // end: Number("long"), // required
207
+ * // },
208
+ * // ],
209
+ * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
210
+ * // transcriptionLanguage: "STRING_VALUE",
211
+ * // type: "call" || "call_transcription" || "conference" || "conference_transcription", // required
212
+ * // },
213
+ * // },
214
+ * // ],
215
+ * // };
216
+ *
217
+ * ```
218
+ *
219
+ * @param QueryConversationsCommandInput - {@link QueryConversationsCommandInput}
220
+ * @returns {@link QueryConversationsCommandOutput}
221
+ * @see {@link QueryConversationsCommandInput} for command's `input` shape.
222
+ * @see {@link QueryConversationsCommandOutput} for command's `response` shape.
223
+ * @see {@link WdaHistoryClientResolvedConfig | config} for WdaHistoryClient's `config` shape.
224
+ *
225
+ * @throws {@link ValidationException} (client fault)
226
+ *
227
+ * @throws {@link WdaHistoryServiceException}
228
+ * <p>Base exception class for all service exceptions from WdaHistory service.</p>
229
+ *
230
+ * @public
231
+ */
232
+ export declare class QueryConversationsCommand extends QueryConversationsCommand_base {
233
+ }
@@ -0,0 +1,185 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WdaHistoryClientResolvedConfig } from "../WdaHistoryClient";
2
+ import { QueryUserCallsInput, QueryUserCallsOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link QueryUserCallsCommand}.
14
+ */
15
+ export interface QueryUserCallsCommandInput extends QueryUserCallsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link QueryUserCallsCommand}.
21
+ */
22
+ export interface QueryUserCallsCommandOutput extends QueryUserCallsOutput, __MetadataBearer {
23
+ }
24
+ declare const QueryUserCallsCommand_base: {
25
+ new (input: QueryUserCallsCommandInput): import("@smithy/smithy-client").CommandImpl<QueryUserCallsCommandInput, QueryUserCallsCommandOutput, WdaHistoryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [QueryUserCallsCommandInput]): import("@smithy/smithy-client").CommandImpl<QueryUserCallsCommandInput, QueryUserCallsCommandOutput, WdaHistoryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves list of user calls using filters.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WdaHistoryClient, QueryUserCallsCommand } from "@wildix/wda-history-client"; // ES Modules import
35
+ * // const { WdaHistoryClient, QueryUserCallsCommand } = require("@wildix/wda-history-client"); // CommonJS import
36
+ * const client = new WdaHistoryClient(config);
37
+ * const input = { // QueryUserCallsInput
38
+ * company: "STRING_VALUE",
39
+ * user: "STRING_VALUE",
40
+ * limit: Number("int"),
41
+ * offset: Number("int"),
42
+ * filter: { // QueryUserCallsFilter
43
+ * direction: "INTERNAL" || "INBOUND" || "OUTBOUND",
44
+ * flags: [ // ConversationFlags
45
+ * "FAX" || "VOICEMAIL",
46
+ * ],
47
+ * status: "COMPLETED" || "MISSED",
48
+ * userDirection: "INCOMING" || "OUTGOING",
49
+ * },
50
+ * };
51
+ * const command = new QueryUserCallsCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // QueryUserCallsOutput
54
+ * // calls: [ // CallsList // required
55
+ * // { // CallRecord
56
+ * // flowIndex: Number("int"), // required
57
+ * // startTime: Number("long"), // required
58
+ * // endTime: Number("long"), // required
59
+ * // connectTime: Number("long"),
60
+ * // talkTime: Number("long"),
61
+ * // waitTime: Number("long"),
62
+ * // queueTime: Number("long"),
63
+ * // holdTime: Number("long"),
64
+ * // duration: Number("long"), // required
65
+ * // caller: { // CallParticipant
66
+ * // type: "REMOTE" || "LOCAL", // required
67
+ * // phone: "STRING_VALUE",
68
+ * // name: "STRING_VALUE",
69
+ * // company: "STRING_VALUE",
70
+ * // email: "STRING_VALUE",
71
+ * // userId: "STRING_VALUE",
72
+ * // userExtension: "STRING_VALUE",
73
+ * // userDepartment: "STRING_VALUE",
74
+ * // groupId: "STRING_VALUE",
75
+ * // groupName: "STRING_VALUE",
76
+ * // userAgent: "STRING_VALUE",
77
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "UNKNOWN",
78
+ * // role: "CLIENT" || "AGENT", // required
79
+ * // license: "STRING_VALUE",
80
+ * // },
81
+ * // callee: {
82
+ * // type: "REMOTE" || "LOCAL", // required
83
+ * // phone: "STRING_VALUE",
84
+ * // name: "STRING_VALUE",
85
+ * // company: "STRING_VALUE",
86
+ * // email: "STRING_VALUE",
87
+ * // userId: "STRING_VALUE",
88
+ * // userExtension: "STRING_VALUE",
89
+ * // userDepartment: "STRING_VALUE",
90
+ * // groupId: "STRING_VALUE",
91
+ * // groupName: "STRING_VALUE",
92
+ * // userAgent: "STRING_VALUE",
93
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "UNKNOWN",
94
+ * // role: "CLIENT" || "AGENT", // required
95
+ * // license: "STRING_VALUE",
96
+ * // },
97
+ * // service: "STRING_VALUE",
98
+ * // serviceNumber: "STRING_VALUE",
99
+ * // destination: "STRING_VALUE",
100
+ * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
101
+ * // trunkName: "STRING_VALUE",
102
+ * // trunkDirection: "STRING_VALUE",
103
+ * // queueName: "STRING_VALUE",
104
+ * // queueId: "STRING_VALUE",
105
+ * // tags: [ // CallFlowTags
106
+ * // "STRING_VALUE",
107
+ * // ],
108
+ * // flags: [ // CallFlowFlags
109
+ * // "STRING_VALUE",
110
+ * // ],
111
+ * // callerMos: "STRING_VALUE",
112
+ * // calleeMos: "STRING_VALUE",
113
+ * // xhoppersConfId: "STRING_VALUE",
114
+ * // recordings: [ // CallFlowRecordings
115
+ * // "STRING_VALUE",
116
+ * // ],
117
+ * // recordingsData: [ // CallFlowRecordingsData
118
+ * // { // RecordingsData
119
+ * // fileName: "STRING_VALUE", // required
120
+ * // start: Number("long"), // required
121
+ * // end: Number("long"), // required
122
+ * // owner: "CALLEE" || "CALLER" || "SYSTEM", // required
123
+ * // url: "STRING_VALUE", // required
124
+ * // pauses: [ // CallRecordPausesList // required
125
+ * // { // CallRecordPause
126
+ * // start: Number("long"),
127
+ * // end: Number("long"),
128
+ * // reason: "pause" || "hold",
129
+ * // },
130
+ * // ],
131
+ * // },
132
+ * // ],
133
+ * // mergeWith: "STRING_VALUE",
134
+ * // splitReason: "STRING_VALUE",
135
+ * // splitTransferType: "STRING_VALUE",
136
+ * // remotePhone: "STRING_VALUE",
137
+ * // remotePhoneCountryCode: Number("int"),
138
+ * // remotePhoneCountryCodeStr: "STRING_VALUE",
139
+ * // remotePhoneLocation: "STRING_VALUE",
140
+ * // callStatus: "COMPLETED" || "MISSED",
141
+ * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE",
142
+ * // transcriptionLanguage: "STRING_VALUE",
143
+ * // attachment: "STRING_VALUE",
144
+ * // attachmentType: "VOICEMAIL" || "FAX",
145
+ * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
146
+ * // { // CallFlowAttachmentDestination
147
+ * // phone: "STRING_VALUE",
148
+ * // name: "STRING_VALUE",
149
+ * // email: "STRING_VALUE",
150
+ * // userId: "STRING_VALUE",
151
+ * // userExtension: "STRING_VALUE",
152
+ * // userDepartment: "STRING_VALUE",
153
+ * // groupId: "STRING_VALUE",
154
+ * // groupName: "STRING_VALUE",
155
+ * // },
156
+ * // ],
157
+ * // id: "STRING_VALUE", // required
158
+ * // pbx: "STRING_VALUE", // required
159
+ * // time: Number("long"), // required
160
+ * // company: "STRING_VALUE", // required
161
+ * // licenses: [ // LicensesList // required
162
+ * // "x-bees",
163
+ * // ],
164
+ * // type: "call" || "call_transcription" || "conference" || "conference_transcription", // required
165
+ * // },
166
+ * // ],
167
+ * // };
168
+ *
169
+ * ```
170
+ *
171
+ * @param QueryUserCallsCommandInput - {@link QueryUserCallsCommandInput}
172
+ * @returns {@link QueryUserCallsCommandOutput}
173
+ * @see {@link QueryUserCallsCommandInput} for command's `input` shape.
174
+ * @see {@link QueryUserCallsCommandOutput} for command's `response` shape.
175
+ * @see {@link WdaHistoryClientResolvedConfig | config} for WdaHistoryClient's `config` shape.
176
+ *
177
+ * @throws {@link ValidationException} (client fault)
178
+ *
179
+ * @throws {@link WdaHistoryServiceException}
180
+ * <p>Base exception class for all service exceptions from WdaHistory service.</p>
181
+ *
182
+ * @public
183
+ */
184
+ export declare class QueryUserCallsCommand extends QueryUserCallsCommand_base {
185
+ }
@@ -4,3 +4,5 @@ export * from "./GetCallTranscriptionTextCommand";
4
4
  export * from "./GetConferenceCommand";
5
5
  export * from "./GetConferenceTranscriptionCommand";
6
6
  export * from "./GetConferenceTranscriptionTextCommand";
7
+ export * from "./QueryConversationsCommand";
8
+ export * from "./QueryUserCallsCommand";
@@ -234,9 +234,35 @@ export interface CallRecord {
234
234
  flowIndex: number;
235
235
  startTime: number;
236
236
  endTime: number;
237
+ /**
238
+ * Duration when the called party's phone rang (Ring Time in UI)
239
+ * @public
240
+ */
237
241
  connectTime?: number;
242
+ /**
243
+ * Duration of conversation from the moment the call is answered until it ends, excluding hold time
244
+ * @public
245
+ */
238
246
  talkTime?: number;
247
+ /**
248
+ * Duration spent on IVR, dialplan applications, playback, etc. before the call is answered
249
+ * @public
250
+ */
239
251
  waitTime?: number;
252
+ /**
253
+ * Duration of call waiting in queue
254
+ * @public
255
+ */
256
+ queueTime?: number;
257
+ /**
258
+ * Duration the call was on hold after being answered
259
+ * @public
260
+ */
261
+ holdTime?: number;
262
+ /**
263
+ * Total duration = connectTime + waitTime + queueTime + talkTime + holdTime
264
+ * @public
265
+ */
240
266
  duration: number;
241
267
  caller?: CallParticipant;
242
268
  callee?: CallParticipant;
@@ -510,6 +536,39 @@ export interface ConferenceTranscriptionRecord {
510
536
  type: RecordType;
511
537
  transcriptions: (ConferenceTranscription)[];
512
538
  }
539
+ /**
540
+ * @public
541
+ */
542
+ export type Conversation = Conversation.CallMember | Conversation.ConferenceMember | Conversation.$UnknownMember;
543
+ /**
544
+ * @public
545
+ */
546
+ export declare namespace Conversation {
547
+ interface CallMember {
548
+ call: CallRecord;
549
+ conference?: never;
550
+ $unknown?: never;
551
+ }
552
+ interface ConferenceMember {
553
+ call?: never;
554
+ conference: ConferenceRecord;
555
+ $unknown?: never;
556
+ }
557
+ /**
558
+ * @public
559
+ */
560
+ interface $UnknownMember {
561
+ call?: never;
562
+ conference?: never;
563
+ $unknown: [string, any];
564
+ }
565
+ interface Visitor<T> {
566
+ call: (value: CallRecord) => T;
567
+ conference: (value: ConferenceRecord) => T;
568
+ _: (name: string, value: any) => T;
569
+ }
570
+ const visit: <T>(value: Conversation, visitor: Visitor<T>) => T;
571
+ }
513
572
  /**
514
573
  * @public
515
574
  */
@@ -605,3 +664,121 @@ export interface GetConferenceTranscriptionTextOutput {
605
664
  text: string;
606
665
  chunks: (TranscriptionTextChunk)[];
607
666
  }
667
+ /**
668
+ * @public
669
+ * @enum
670
+ */
671
+ export declare const ConversationDirection: {
672
+ readonly INBOUND: "INBOUND";
673
+ readonly INTERNAL: "INTERNAL";
674
+ readonly OUTBOUND: "OUTBOUND";
675
+ };
676
+ /**
677
+ * @public
678
+ */
679
+ export type ConversationDirection = typeof ConversationDirection[keyof typeof ConversationDirection];
680
+ /**
681
+ * @public
682
+ * @enum
683
+ */
684
+ export declare const ConversationFlag: {
685
+ readonly FAX: "FAX";
686
+ readonly VOICEMAIL: "VOICEMAIL";
687
+ };
688
+ /**
689
+ * @public
690
+ */
691
+ export type ConversationFlag = typeof ConversationFlag[keyof typeof ConversationFlag];
692
+ /**
693
+ * @public
694
+ */
695
+ export interface QueryConversationsFilter {
696
+ direction?: ConversationDirection;
697
+ flags?: (ConversationFlag)[];
698
+ status?: ConversationStatus;
699
+ }
700
+ /**
701
+ * @public
702
+ */
703
+ export interface QueryConversationsInput {
704
+ /**
705
+ * Company id. eg. it_w123123. Required for s2s auth.
706
+ * @public
707
+ */
708
+ company?: string;
709
+ /**
710
+ * PBX user id. eg. 123123123. Can be applied only for s2s and pbx authorization.
711
+ * @public
712
+ */
713
+ user?: string;
714
+ /**
715
+ * The maximum number of rows to return.
716
+ * @public
717
+ */
718
+ limit?: number;
719
+ /**
720
+ * The offset from which to start.
721
+ * @public
722
+ */
723
+ offset?: number;
724
+ filter?: QueryConversationsFilter;
725
+ }
726
+ /**
727
+ * @public
728
+ */
729
+ export interface QueryConversationsOutput {
730
+ conversations: (Conversation)[];
731
+ }
732
+ /**
733
+ * @public
734
+ * @enum
735
+ */
736
+ export declare const ConversationUserDirection: {
737
+ readonly INCOMING: "INCOMING";
738
+ readonly OUTGOING: "OUTGOING";
739
+ };
740
+ /**
741
+ * @public
742
+ */
743
+ export type ConversationUserDirection = typeof ConversationUserDirection[keyof typeof ConversationUserDirection];
744
+ /**
745
+ * @public
746
+ */
747
+ export interface QueryUserCallsFilter {
748
+ direction?: ConversationDirection;
749
+ flags?: (ConversationFlag)[];
750
+ status?: ConversationStatus;
751
+ userDirection?: ConversationUserDirection;
752
+ }
753
+ /**
754
+ * @public
755
+ */
756
+ export interface QueryUserCallsInput {
757
+ /**
758
+ * Company id. eg. it_w123123. Required for s2s auth.
759
+ * @public
760
+ */
761
+ company?: string;
762
+ /**
763
+ * PBX user id. eg. 123123123. Can be applied only for s2s and pbx authorization.
764
+ * @public
765
+ */
766
+ user?: string;
767
+ /**
768
+ * The maximum number of rows to return.
769
+ * @public
770
+ */
771
+ limit?: number;
772
+ /**
773
+ * The offset from which to start.
774
+ * @public
775
+ */
776
+ offset?: number;
777
+ filter?: QueryUserCallsFilter;
778
+ }
779
+ /**
780
+ * @public
781
+ */
782
+ export interface QueryUserCallsOutput {
783
+ calls: (CallRecord)[];
784
+ }
@@ -4,6 +4,8 @@ import { GetCallTranscriptionTextCommandInput, GetCallTranscriptionTextCommandOu
4
4
  import { GetConferenceCommandInput, GetConferenceCommandOutput } from "../commands/GetConferenceCommand";
5
5
  import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionCommandOutput } from "../commands/GetConferenceTranscriptionCommand";
6
6
  import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "../commands/GetConferenceTranscriptionTextCommand";
7
+ import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "../commands/QueryConversationsCommand";
8
+ import { QueryUserCallsCommandInput, QueryUserCallsCommandOutput } from "../commands/QueryUserCallsCommand";
7
9
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
8
10
  import { SerdeContext as __SerdeContext } from "@smithy/types";
9
11
  /**
@@ -30,6 +32,14 @@ export declare const se_GetConferenceTranscriptionCommand: (input: GetConference
30
32
  * serializeAws_restJson1GetConferenceTranscriptionTextCommand
31
33
  */
32
34
  export declare const se_GetConferenceTranscriptionTextCommand: (input: GetConferenceTranscriptionTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
35
+ /**
36
+ * serializeAws_restJson1QueryConversationsCommand
37
+ */
38
+ export declare const se_QueryConversationsCommand: (input: QueryConversationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
39
+ /**
40
+ * serializeAws_restJson1QueryUserCallsCommand
41
+ */
42
+ export declare const se_QueryUserCallsCommand: (input: QueryUserCallsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
33
43
  /**
34
44
  * deserializeAws_restJson1GetCallCommand
35
45
  */
@@ -54,3 +64,11 @@ export declare const de_GetConferenceTranscriptionCommand: (output: __HttpRespon
54
64
  * deserializeAws_restJson1GetConferenceTranscriptionTextCommand
55
65
  */
56
66
  export declare const de_GetConferenceTranscriptionTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetConferenceTranscriptionTextCommandOutput>;
67
+ /**
68
+ * deserializeAws_restJson1QueryConversationsCommand
69
+ */
70
+ export declare const de_QueryConversationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryConversationsCommandOutput>;
71
+ /**
72
+ * deserializeAws_restJson1QueryUserCallsCommand
73
+ */
74
+ export declare const de_QueryUserCallsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryUserCallsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wda-history-client",
3
3
  "description": "@wildix/wda-history-client client",
4
- "version": "1.0.20",
4
+ "version": "1.0.22",
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",