@wildix/wda-history-client 1.0.37 → 1.0.39

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.
@@ -10,6 +10,7 @@ const GetConferenceTranscriptionCommand_1 = require("./commands/GetConferenceTra
10
10
  const GetConferenceTranscriptionTextCommand_1 = require("./commands/GetConferenceTranscriptionTextCommand");
11
11
  const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
12
12
  const QueryUserCallsCommand_1 = require("./commands/QueryUserCallsCommand");
13
+ const UpdateCallCommand_1 = require("./commands/UpdateCallCommand");
13
14
  const smithy_client_1 = require("@smithy/smithy-client");
14
15
  const commands = {
15
16
  GetCallCommand: GetCallCommand_1.GetCallCommand,
@@ -20,6 +21,7 @@ const commands = {
20
21
  GetConferenceTranscriptionTextCommand: GetConferenceTranscriptionTextCommand_1.GetConferenceTranscriptionTextCommand,
21
22
  QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
22
23
  QueryUserCallsCommand: QueryUserCallsCommand_1.QueryUserCallsCommand,
24
+ UpdateCallCommand: UpdateCallCommand_1.UpdateCallCommand,
23
25
  };
24
26
  class WdaHistory extends WdaHistoryClient_1.WdaHistoryClient {
25
27
  }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateCallCommand = 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 UpdateCallCommand 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", "UpdateCall", {})
15
+ .n("WdaHistoryClient", "UpdateCallCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_UpdateCallCommand)
18
+ .de(Aws_restJson1_1.de_UpdateCallCommand)
19
+ .build() {
20
+ }
21
+ exports.UpdateCallCommand = UpdateCallCommand;
@@ -9,3 +9,4 @@ tslib_1.__exportStar(require("./GetConferenceTranscriptionCommand"), exports);
9
9
  tslib_1.__exportStar(require("./GetConferenceTranscriptionTextCommand"), exports);
10
10
  tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
11
11
  tslib_1.__exportStar(require("./QueryUserCallsCommand"), exports);
12
+ tslib_1.__exportStar(require("./UpdateCallCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.de_UpdateCallCommand = 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_UpdateCallCommand = 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("@aws-sdk/core");
@@ -151,6 +151,28 @@ const se_QueryUserCallsCommand = async (input, context) => {
151
151
  return b.build();
152
152
  };
153
153
  exports.se_QueryUserCallsCommand = se_QueryUserCallsCommand;
154
+ const se_UpdateCallCommand = async (input, context) => {
155
+ const b = (0, core_2.requestBuilder)(input, context);
156
+ const headers = {
157
+ 'content-type': 'application/json',
158
+ };
159
+ b.bp("/v2/history/calls/{callId}/flows/{flowIndex}");
160
+ b.p('callId', () => input.callId, '{callId}', false);
161
+ b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
162
+ const query = (0, smithy_client_1.map)({
163
+ [_c]: [, input[_cI]],
164
+ });
165
+ let body;
166
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
167
+ 'tags': _ => (0, smithy_client_1._json)(_),
168
+ }));
169
+ b.m("PUT")
170
+ .h(headers)
171
+ .q(query)
172
+ .b(body);
173
+ return b.build();
174
+ };
175
+ exports.se_UpdateCallCommand = se_UpdateCallCommand;
154
176
  const de_GetCallCommand = async (output, context) => {
155
177
  if (output.statusCode !== 200 && output.statusCode >= 300) {
156
178
  return de_CommandError(output, context);
@@ -275,6 +297,21 @@ const de_QueryUserCallsCommand = async (output, context) => {
275
297
  return contents;
276
298
  };
277
299
  exports.de_QueryUserCallsCommand = de_QueryUserCallsCommand;
300
+ const de_UpdateCallCommand = async (output, context) => {
301
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
302
+ return de_CommandError(output, context);
303
+ }
304
+ const contents = (0, smithy_client_1.map)({
305
+ $metadata: deserializeMetadata(output),
306
+ });
307
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
308
+ const doc = (0, smithy_client_1.take)(data, {
309
+ 'call': smithy_client_1._json,
310
+ });
311
+ Object.assign(contents, doc);
312
+ return contents;
313
+ };
314
+ exports.de_UpdateCallCommand = de_UpdateCallCommand;
278
315
  const de_CommandError = async (output, context) => {
279
316
  const parsedOutput = {
280
317
  ...output,
@@ -393,6 +430,7 @@ const se_QueryConversationsFilter = (input, context) => {
393
430
  'direction': [],
394
431
  'flags': smithy_client_1._json,
395
432
  'from': smithy_client_1.serializeDateTime,
433
+ 'hasAttachment': [],
396
434
  'search': [],
397
435
  'status': [],
398
436
  'tags': smithy_client_1._json,
@@ -404,6 +442,7 @@ const se_QueryUserCallsFilter = (input, context) => {
404
442
  'direction': [],
405
443
  'flags': smithy_client_1._json,
406
444
  'from': smithy_client_1.serializeDateTime,
445
+ 'hasAttachment': [],
407
446
  'search': [],
408
447
  'status': [],
409
448
  'tags': smithy_client_1._json,
@@ -419,4 +458,5 @@ const deserializeMetadata = (output) => ({
419
458
  });
420
459
  const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
421
460
  const _c = "company";
461
+ const _cI = "companyId";
422
462
  const _u = "user";
@@ -7,6 +7,7 @@ import { GetConferenceTranscriptionCommand, } from "./commands/GetConferenceTran
7
7
  import { GetConferenceTranscriptionTextCommand, } from "./commands/GetConferenceTranscriptionTextCommand";
8
8
  import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
9
9
  import { QueryUserCallsCommand, } from "./commands/QueryUserCallsCommand";
10
+ import { UpdateCallCommand, } from "./commands/UpdateCallCommand";
10
11
  import { createAggregatedClient } from "@smithy/smithy-client";
11
12
  const commands = {
12
13
  GetCallCommand,
@@ -17,6 +18,7 @@ const commands = {
17
18
  GetConferenceTranscriptionTextCommand,
18
19
  QueryConversationsCommand,
19
20
  QueryUserCallsCommand,
21
+ UpdateCallCommand,
20
22
  };
21
23
  export class WdaHistory extends WdaHistoryClient {
22
24
  }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateCallCommand, se_UpdateCallCommand, } 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 UpdateCallCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaHistory", "UpdateCall", {})
12
+ .n("WdaHistoryClient", "UpdateCallCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateCallCommand)
15
+ .de(de_UpdateCallCommand)
16
+ .build() {
17
+ }
@@ -6,3 +6,4 @@ export * from "./GetConferenceTranscriptionCommand";
6
6
  export * from "./GetConferenceTranscriptionTextCommand";
7
7
  export * from "./QueryConversationsCommand";
8
8
  export * from "./QueryUserCallsCommand";
9
+ export * from "./UpdateCallCommand";
@@ -140,6 +140,27 @@ export const se_QueryUserCallsCommand = async (input, context) => {
140
140
  .b(body);
141
141
  return b.build();
142
142
  };
143
+ export const se_UpdateCallCommand = async (input, context) => {
144
+ const b = rb(input, context);
145
+ const headers = {
146
+ 'content-type': 'application/json',
147
+ };
148
+ b.bp("/v2/history/calls/{callId}/flows/{flowIndex}");
149
+ b.p('callId', () => input.callId, '{callId}', false);
150
+ b.p('flowIndex', () => input.flowIndex.toString(), '{flowIndex}', false);
151
+ const query = map({
152
+ [_c]: [, input[_cI]],
153
+ });
154
+ let body;
155
+ body = JSON.stringify(take(input, {
156
+ 'tags': _ => _json(_),
157
+ }));
158
+ b.m("PUT")
159
+ .h(headers)
160
+ .q(query)
161
+ .b(body);
162
+ return b.build();
163
+ };
143
164
  export const de_GetCallCommand = async (output, context) => {
144
165
  if (output.statusCode !== 200 && output.statusCode >= 300) {
145
166
  return de_CommandError(output, context);
@@ -256,6 +277,20 @@ export const de_QueryUserCallsCommand = async (output, context) => {
256
277
  Object.assign(contents, doc);
257
278
  return contents;
258
279
  };
280
+ export const de_UpdateCallCommand = async (output, context) => {
281
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
282
+ return de_CommandError(output, context);
283
+ }
284
+ const contents = map({
285
+ $metadata: deserializeMetadata(output),
286
+ });
287
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
288
+ const doc = take(data, {
289
+ 'call': _json,
290
+ });
291
+ Object.assign(contents, doc);
292
+ return contents;
293
+ };
259
294
  const de_CommandError = async (output, context) => {
260
295
  const parsedOutput = {
261
296
  ...output,
@@ -374,6 +409,7 @@ const se_QueryConversationsFilter = (input, context) => {
374
409
  'direction': [],
375
410
  'flags': _json,
376
411
  'from': __serializeDateTime,
412
+ 'hasAttachment': [],
377
413
  'search': [],
378
414
  'status': [],
379
415
  'tags': _json,
@@ -385,6 +421,7 @@ const se_QueryUserCallsFilter = (input, context) => {
385
421
  'direction': [],
386
422
  'flags': _json,
387
423
  'from': __serializeDateTime,
424
+ 'hasAttachment': [],
388
425
  'search': [],
389
426
  'status': [],
390
427
  'tags': _json,
@@ -400,4 +437,5 @@ const deserializeMetadata = (output) => ({
400
437
  });
401
438
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
402
439
  const _c = "company";
440
+ const _cI = "companyId";
403
441
  const _u = "user";
@@ -7,6 +7,7 @@ import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionComma
7
7
  import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "./commands/GetConferenceTranscriptionTextCommand";
8
8
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
9
9
  import { QueryUserCallsCommandInput, QueryUserCallsCommandOutput } from "./commands/QueryUserCallsCommand";
10
+ import { UpdateCallCommandInput, UpdateCallCommandOutput } from "./commands/UpdateCallCommand";
10
11
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
11
12
  export interface WdaHistory {
12
13
  /**
@@ -59,6 +60,12 @@ export interface WdaHistory {
59
60
  queryUserCalls(args: QueryUserCallsCommandInput, options?: __HttpHandlerOptions): Promise<QueryUserCallsCommandOutput>;
60
61
  queryUserCalls(args: QueryUserCallsCommandInput, cb: (err: any, data?: QueryUserCallsCommandOutput) => void): void;
61
62
  queryUserCalls(args: QueryUserCallsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUserCallsCommandOutput) => void): void;
63
+ /**
64
+ * @see {@link UpdateCallCommand}
65
+ */
66
+ updateCall(args: UpdateCallCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCallCommandOutput>;
67
+ updateCall(args: UpdateCallCommandInput, cb: (err: any, data?: UpdateCallCommandOutput) => void): void;
68
+ updateCall(args: UpdateCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCallCommandOutput) => void): void;
62
69
  }
63
70
  /**
64
71
  * @public
@@ -6,6 +6,7 @@ import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionComma
6
6
  import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "./commands/GetConferenceTranscriptionTextCommand";
7
7
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
8
8
  import { QueryUserCallsCommandInput, QueryUserCallsCommandOutput } from "./commands/QueryUserCallsCommand";
9
+ import { UpdateCallCommandInput, UpdateCallCommandOutput } from "./commands/UpdateCallCommand";
9
10
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
10
11
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
11
12
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
@@ -17,11 +18,11 @@ export { __Client };
17
18
  /**
18
19
  * @public
19
20
  */
20
- export type ServiceInputTypes = GetCallCommandInput | GetCallTranscriptionCommandInput | GetCallTranscriptionTextCommandInput | GetConferenceCommandInput | GetConferenceTranscriptionCommandInput | GetConferenceTranscriptionTextCommandInput | QueryConversationsCommandInput | QueryUserCallsCommandInput;
21
+ export type ServiceInputTypes = GetCallCommandInput | GetCallTranscriptionCommandInput | GetCallTranscriptionTextCommandInput | GetConferenceCommandInput | GetConferenceTranscriptionCommandInput | GetConferenceTranscriptionTextCommandInput | QueryConversationsCommandInput | QueryUserCallsCommandInput | UpdateCallCommandInput;
21
22
  /**
22
23
  * @public
23
24
  */
24
- export type ServiceOutputTypes = GetCallCommandOutput | GetCallTranscriptionCommandOutput | GetCallTranscriptionTextCommandOutput | GetConferenceCommandOutput | GetConferenceTranscriptionCommandOutput | GetConferenceTranscriptionTextCommandOutput | QueryConversationsCommandOutput | QueryUserCallsCommandOutput;
25
+ export type ServiceOutputTypes = GetCallCommandOutput | GetCallTranscriptionCommandOutput | GetCallTranscriptionTextCommandOutput | GetConferenceCommandOutput | GetConferenceTranscriptionCommandOutput | GetConferenceTranscriptionTextCommandOutput | QueryConversationsCommandOutput | QueryUserCallsCommandOutput | UpdateCallCommandOutput;
25
26
  /**
26
27
  * @public
27
28
  */
@@ -51,6 +51,7 @@ declare const QueryConversationsCommand_base: {
51
51
  * "STRING_VALUE",
52
52
  * ],
53
53
  * search: "STRING_VALUE",
54
+ * hasAttachment: true || false,
54
55
  * },
55
56
  * };
56
57
  * const command = new QueryConversationsCommand(input);
@@ -51,6 +51,7 @@ declare const QueryUserCallsCommand_base: {
51
51
  * "STRING_VALUE",
52
52
  * ],
53
53
  * search: "STRING_VALUE",
54
+ * hasAttachment: true || false,
54
55
  * userDirection: "INCOMING" || "OUTGOING",
55
56
  * },
56
57
  * };
@@ -0,0 +1,248 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WdaHistoryClientResolvedConfig } from "../WdaHistoryClient";
2
+ import { UpdateCallInput, UpdateCallOutput } 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 UpdateCallCommand}.
14
+ */
15
+ export interface UpdateCallCommandInput extends UpdateCallInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateCallCommand}.
21
+ */
22
+ export interface UpdateCallCommandOutput extends UpdateCallOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateCallCommand_base: {
25
+ new (input: UpdateCallCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCallCommandInput, UpdateCallCommandOutput, WdaHistoryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateCallCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCallCommandInput, UpdateCallCommandOutput, WdaHistoryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { WdaHistoryClient, UpdateCallCommand } from "@wildix/wda-history-client"; // ES Modules import
36
+ * // const { WdaHistoryClient, UpdateCallCommand } = require("@wildix/wda-history-client"); // CommonJS import
37
+ * const client = new WdaHistoryClient(config);
38
+ * const input = { // UpdateCallInput
39
+ * companyId: "STRING_VALUE",
40
+ * callId: "STRING_VALUE", // required
41
+ * flowIndex: Number("int"), // required
42
+ * tags: [ // CallFlowTags
43
+ * "STRING_VALUE",
44
+ * ],
45
+ * };
46
+ * const command = new UpdateCallCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // UpdateCallOutput
49
+ * // call: { // CallRecord
50
+ * // flowIndex: Number("int"), // required
51
+ * // startTime: Number("long"), // required
52
+ * // endTime: Number("long"), // required
53
+ * // connectTime: Number("long"),
54
+ * // talkTime: Number("long"),
55
+ * // waitTime: Number("long"),
56
+ * // queueTime: Number("long"),
57
+ * // holdTime: Number("long"),
58
+ * // duration: Number("long"), // required
59
+ * // caller: { // CallParticipant
60
+ * // type: "REMOTE" || "LOCAL", // required
61
+ * // phone: "STRING_VALUE",
62
+ * // name: "STRING_VALUE",
63
+ * // company: "STRING_VALUE",
64
+ * // email: "STRING_VALUE",
65
+ * // userId: "STRING_VALUE",
66
+ * // userExtension: "STRING_VALUE",
67
+ * // userDepartment: "STRING_VALUE",
68
+ * // groupId: "STRING_VALUE",
69
+ * // groupName: "STRING_VALUE",
70
+ * // userAgent: "STRING_VALUE",
71
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
72
+ * // role: "CLIENT" || "AGENT", // required
73
+ * // license: "STRING_VALUE",
74
+ * // sipCallId: "STRING_VALUE",
75
+ * // },
76
+ * // callee: {
77
+ * // type: "REMOTE" || "LOCAL", // required
78
+ * // phone: "STRING_VALUE",
79
+ * // name: "STRING_VALUE",
80
+ * // company: "STRING_VALUE",
81
+ * // email: "STRING_VALUE",
82
+ * // userId: "STRING_VALUE",
83
+ * // userExtension: "STRING_VALUE",
84
+ * // userDepartment: "STRING_VALUE",
85
+ * // groupId: "STRING_VALUE",
86
+ * // groupName: "STRING_VALUE",
87
+ * // userAgent: "STRING_VALUE",
88
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
89
+ * // role: "CLIENT" || "AGENT", // required
90
+ * // license: "STRING_VALUE",
91
+ * // sipCallId: "STRING_VALUE",
92
+ * // },
93
+ * // service: "STRING_VALUE",
94
+ * // serviceNumber: "STRING_VALUE",
95
+ * // destination: "STRING_VALUE",
96
+ * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
97
+ * // trunkName: "STRING_VALUE",
98
+ * // trunkDirection: "STRING_VALUE",
99
+ * // queueName: "STRING_VALUE",
100
+ * // queueId: "STRING_VALUE",
101
+ * // tags: [ // CallFlowTags
102
+ * // "STRING_VALUE",
103
+ * // ],
104
+ * // flags: [ // CallFlowFlags
105
+ * // "STRING_VALUE",
106
+ * // ],
107
+ * // callerMos: "STRING_VALUE",
108
+ * // calleeMos: "STRING_VALUE",
109
+ * // xhoppersConfId: "STRING_VALUE",
110
+ * // recordings: [ // CallFlowRecordings
111
+ * // "STRING_VALUE",
112
+ * // ],
113
+ * // recordingsData: [ // CallFlowRecordingsData
114
+ * // { // CallFlowRecording
115
+ * // fileName: "STRING_VALUE", // required
116
+ * // start: Number("long"), // required
117
+ * // end: Number("long"), // required
118
+ * // owner: "callee" || "caller" || "system", // required
119
+ * // url: "STRING_VALUE", // required
120
+ * // pauses: [ // CallRecordPausesList // required
121
+ * // { // CallRecordPause
122
+ * // start: Number("long"),
123
+ * // end: Number("long"),
124
+ * // reason: "pause" || "hold",
125
+ * // },
126
+ * // ],
127
+ * // },
128
+ * // ],
129
+ * // mergeWith: "STRING_VALUE",
130
+ * // splitReason: "STRING_VALUE",
131
+ * // splitTransferType: "STRING_VALUE",
132
+ * // remotePhone: "STRING_VALUE",
133
+ * // remotePhoneCountryCode: Number("int"),
134
+ * // remotePhoneCountryCodeStr: "STRING_VALUE",
135
+ * // remotePhoneLocation: "STRING_VALUE",
136
+ * // callStatus: "COMPLETED" || "MISSED",
137
+ * // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE",
138
+ * // transcriptionLanguage: "STRING_VALUE",
139
+ * // transcriptionSeconds: Number("int"),
140
+ * // attachment: "STRING_VALUE",
141
+ * // attachmentType: "VOICEMAIL" || "FAX",
142
+ * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
143
+ * // { // CallFlowAttachmentDestination
144
+ * // phone: "STRING_VALUE",
145
+ * // name: "STRING_VALUE",
146
+ * // email: "STRING_VALUE",
147
+ * // userId: "STRING_VALUE",
148
+ * // userExtension: "STRING_VALUE",
149
+ * // userDepartment: "STRING_VALUE",
150
+ * // groupId: "STRING_VALUE",
151
+ * // groupName: "STRING_VALUE",
152
+ * // },
153
+ * // ],
154
+ * // attachments: [ // CallFlowAttachments
155
+ * // { // CallFlowAttachment Union: only one key present
156
+ * // recording: {
157
+ * // fileName: "STRING_VALUE", // required
158
+ * // start: Number("long"), // required
159
+ * // end: Number("long"), // required
160
+ * // owner: "callee" || "caller" || "system", // required
161
+ * // url: "STRING_VALUE", // required
162
+ * // pauses: [ // required
163
+ * // {
164
+ * // start: Number("long"),
165
+ * // end: Number("long"),
166
+ * // reason: "pause" || "hold",
167
+ * // },
168
+ * // ],
169
+ * // },
170
+ * // fax: { // CallFlowFax
171
+ * // url: "STRING_VALUE", // required
172
+ * // status: "ok" || "error",
173
+ * // destinations: [
174
+ * // {
175
+ * // phone: "STRING_VALUE",
176
+ * // name: "STRING_VALUE",
177
+ * // email: "STRING_VALUE",
178
+ * // userId: "STRING_VALUE",
179
+ * // userExtension: "STRING_VALUE",
180
+ * // userDepartment: "STRING_VALUE",
181
+ * // groupId: "STRING_VALUE",
182
+ * // groupName: "STRING_VALUE",
183
+ * // },
184
+ * // ],
185
+ * // owner: "callee" || "caller" || "system",
186
+ * // error: "STRING_VALUE",
187
+ * // },
188
+ * // voicemail: { // CallFlowVoicemail
189
+ * // url: "STRING_VALUE", // required
190
+ * // destinations: [
191
+ * // {
192
+ * // phone: "STRING_VALUE",
193
+ * // name: "STRING_VALUE",
194
+ * // email: "STRING_VALUE",
195
+ * // userId: "STRING_VALUE",
196
+ * // userExtension: "STRING_VALUE",
197
+ * // userDepartment: "STRING_VALUE",
198
+ * // groupId: "STRING_VALUE",
199
+ * // groupName: "STRING_VALUE",
200
+ * // },
201
+ * // ],
202
+ * // owner: "callee" || "caller" || "system",
203
+ * // },
204
+ * // },
205
+ * // ],
206
+ * // id: "STRING_VALUE", // required
207
+ * // pbx: "STRING_VALUE", // required
208
+ * // time: Number("long"), // required
209
+ * // company: "STRING_VALUE", // required
210
+ * // licenses: [ // LicensesList // required
211
+ * // "x-bees" || "uc",
212
+ * // ],
213
+ * // type: "call" || "call_transcription" || "conference" || "conference_transcription", // required
214
+ * // },
215
+ * // };
216
+ *
217
+ * ```
218
+ *
219
+ * @param UpdateCallCommandInput - {@link UpdateCallCommandInput}
220
+ * @returns {@link UpdateCallCommandOutput}
221
+ * @see {@link UpdateCallCommandInput} for command's `input` shape.
222
+ * @see {@link UpdateCallCommandOutput} 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 ForbiddenException} (client fault)
228
+ *
229
+ * @throws {@link CallNotFoundException} (client fault)
230
+ *
231
+ * @throws {@link WdaHistoryServiceException}
232
+ * <p>Base exception class for all service exceptions from WdaHistory service.</p>
233
+ *
234
+ *
235
+ */
236
+ export declare class UpdateCallCommand extends UpdateCallCommand_base {
237
+ /** @internal type navigation helper, not in runtime. */
238
+ protected static __types: {
239
+ api: {
240
+ input: UpdateCallInput;
241
+ output: UpdateCallOutput;
242
+ };
243
+ sdk: {
244
+ input: UpdateCallCommandInput;
245
+ output: UpdateCallCommandOutput;
246
+ };
247
+ };
248
+ }
@@ -6,3 +6,4 @@ export * from "./GetConferenceTranscriptionCommand";
6
6
  export * from "./GetConferenceTranscriptionTextCommand";
7
7
  export * from "./QueryConversationsCommand";
8
8
  export * from "./QueryUserCallsCommand";
9
+ export * from "./UpdateCallCommand";
@@ -821,6 +821,7 @@ export interface QueryConversationsFilter {
821
821
  to?: Date | undefined;
822
822
  tags?: (string)[] | undefined;
823
823
  search?: string | undefined;
824
+ hasAttachment?: boolean | undefined;
824
825
  }
825
826
  /**
826
827
  * @public
@@ -877,6 +878,7 @@ export interface QueryUserCallsFilter {
877
878
  to?: Date | undefined;
878
879
  tags?: (string)[] | undefined;
879
880
  search?: string | undefined;
881
+ hasAttachment?: boolean | undefined;
880
882
  userDirection?: ConversationUserDirection | undefined;
881
883
  }
882
884
  /**
@@ -911,3 +913,22 @@ export interface QueryUserCallsInput {
911
913
  export interface QueryUserCallsOutput {
912
914
  calls: (CallRecord)[];
913
915
  }
916
+ /**
917
+ * @public
918
+ */
919
+ export interface UpdateCallInput {
920
+ /**
921
+ * The unique identifier of the tenant when a service token is used.
922
+ * @public
923
+ */
924
+ companyId?: string | undefined;
925
+ callId: string;
926
+ flowIndex: number;
927
+ tags?: (string)[] | undefined;
928
+ }
929
+ /**
930
+ * @public
931
+ */
932
+ export interface UpdateCallOutput {
933
+ call: CallRecord;
934
+ }
@@ -6,6 +6,7 @@ import { GetConferenceTranscriptionCommandInput, GetConferenceTranscriptionComma
6
6
  import { GetConferenceTranscriptionTextCommandInput, GetConferenceTranscriptionTextCommandOutput } from "../commands/GetConferenceTranscriptionTextCommand";
7
7
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "../commands/QueryConversationsCommand";
8
8
  import { QueryUserCallsCommandInput, QueryUserCallsCommandOutput } from "../commands/QueryUserCallsCommand";
9
+ import { UpdateCallCommandInput, UpdateCallCommandOutput } from "../commands/UpdateCallCommand";
9
10
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
10
11
  import { SerdeContext as __SerdeContext } from "@smithy/types";
11
12
  /**
@@ -40,6 +41,10 @@ export declare const se_QueryConversationsCommand: (input: QueryConversationsCom
40
41
  * serializeAws_restJson1QueryUserCallsCommand
41
42
  */
42
43
  export declare const se_QueryUserCallsCommand: (input: QueryUserCallsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
44
+ /**
45
+ * serializeAws_restJson1UpdateCallCommand
46
+ */
47
+ export declare const se_UpdateCallCommand: (input: UpdateCallCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
43
48
  /**
44
49
  * deserializeAws_restJson1GetCallCommand
45
50
  */
@@ -72,3 +77,7 @@ export declare const de_QueryConversationsCommand: (output: __HttpResponse, cont
72
77
  * deserializeAws_restJson1QueryUserCallsCommand
73
78
  */
74
79
  export declare const de_QueryUserCallsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryUserCallsCommandOutput>;
80
+ /**
81
+ * deserializeAws_restJson1UpdateCallCommand
82
+ */
83
+ export declare const de_UpdateCallCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateCallCommandOutput>;
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.37",
4
+ "version": "1.0.39",
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",