@wildix/wda-history-client 1.0.31 → 1.0.33
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/protocols/Aws_restJson1.js +21 -2
- package/dist-es/protocols/Aws_restJson1.js +22 -3
- package/dist-types/commands/GetCallCommand.d.ts +2 -0
- package/dist-types/commands/QueryConversationsCommand.d.ts +4 -0
- package/dist-types/commands/QueryUserCallsCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +9 -0
- package/package.json +1 -1
|
@@ -117,7 +117,7 @@ const se_QueryConversationsCommand = async (input, context) => {
|
|
|
117
117
|
});
|
|
118
118
|
let body;
|
|
119
119
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
120
|
-
'filter': _ => (
|
|
120
|
+
'filter': _ => se_QueryConversationsFilter(_, context),
|
|
121
121
|
'limit': [],
|
|
122
122
|
'offset': [],
|
|
123
123
|
}));
|
|
@@ -140,7 +140,7 @@ const se_QueryUserCallsCommand = async (input, context) => {
|
|
|
140
140
|
});
|
|
141
141
|
let body;
|
|
142
142
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
143
|
-
'filter': _ => (
|
|
143
|
+
'filter': _ => se_QueryUserCallsFilter(_, context),
|
|
144
144
|
'limit': [],
|
|
145
145
|
'offset': [],
|
|
146
146
|
}));
|
|
@@ -388,6 +388,25 @@ const de_ConferenceTranscriptionNotFoundExceptionRes = async (parsedOutput, cont
|
|
|
388
388
|
});
|
|
389
389
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
390
390
|
};
|
|
391
|
+
const se_QueryConversationsFilter = (input, context) => {
|
|
392
|
+
return (0, smithy_client_1.take)(input, {
|
|
393
|
+
'direction': [],
|
|
394
|
+
'flags': smithy_client_1._json,
|
|
395
|
+
'from': smithy_client_1.serializeDateTime,
|
|
396
|
+
'status': [],
|
|
397
|
+
'to': smithy_client_1.serializeDateTime,
|
|
398
|
+
});
|
|
399
|
+
};
|
|
400
|
+
const se_QueryUserCallsFilter = (input, context) => {
|
|
401
|
+
return (0, smithy_client_1.take)(input, {
|
|
402
|
+
'direction': [],
|
|
403
|
+
'flags': smithy_client_1._json,
|
|
404
|
+
'from': smithy_client_1.serializeDateTime,
|
|
405
|
+
'status': [],
|
|
406
|
+
'to': smithy_client_1.serializeDateTime,
|
|
407
|
+
'userDirection': [],
|
|
408
|
+
});
|
|
409
|
+
};
|
|
391
410
|
const deserializeMetadata = (output) => ({
|
|
392
411
|
httpStatusCode: output.statusCode,
|
|
393
412
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2,7 +2,7 @@ import { WdaHistoryServiceException as __BaseException } from "../models/WdaHist
|
|
|
2
2
|
import { CallNotFoundException, CallTranscriptionNotFoundException, ConferenceNotFoundException, ConferenceTranscriptionNotFoundException, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, serializeDateTime as __serializeDateTime, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
6
|
export const se_GetCallCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
8
8
|
const headers = {};
|
|
@@ -108,7 +108,7 @@ export const se_QueryConversationsCommand = async (input, context) => {
|
|
|
108
108
|
});
|
|
109
109
|
let body;
|
|
110
110
|
body = JSON.stringify(take(input, {
|
|
111
|
-
'filter': _ =>
|
|
111
|
+
'filter': _ => se_QueryConversationsFilter(_, context),
|
|
112
112
|
'limit': [],
|
|
113
113
|
'offset': [],
|
|
114
114
|
}));
|
|
@@ -130,7 +130,7 @@ export const se_QueryUserCallsCommand = async (input, context) => {
|
|
|
130
130
|
});
|
|
131
131
|
let body;
|
|
132
132
|
body = JSON.stringify(take(input, {
|
|
133
|
-
'filter': _ =>
|
|
133
|
+
'filter': _ => se_QueryUserCallsFilter(_, context),
|
|
134
134
|
'limit': [],
|
|
135
135
|
'offset': [],
|
|
136
136
|
}));
|
|
@@ -369,6 +369,25 @@ const de_ConferenceTranscriptionNotFoundExceptionRes = async (parsedOutput, cont
|
|
|
369
369
|
});
|
|
370
370
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
371
371
|
};
|
|
372
|
+
const se_QueryConversationsFilter = (input, context) => {
|
|
373
|
+
return take(input, {
|
|
374
|
+
'direction': [],
|
|
375
|
+
'flags': _json,
|
|
376
|
+
'from': __serializeDateTime,
|
|
377
|
+
'status': [],
|
|
378
|
+
'to': __serializeDateTime,
|
|
379
|
+
});
|
|
380
|
+
};
|
|
381
|
+
const se_QueryUserCallsFilter = (input, context) => {
|
|
382
|
+
return take(input, {
|
|
383
|
+
'direction': [],
|
|
384
|
+
'flags': _json,
|
|
385
|
+
'from': __serializeDateTime,
|
|
386
|
+
'status': [],
|
|
387
|
+
'to': __serializeDateTime,
|
|
388
|
+
'userDirection': [],
|
|
389
|
+
});
|
|
390
|
+
};
|
|
372
391
|
const deserializeMetadata = (output) => ({
|
|
373
392
|
httpStatusCode: output.statusCode,
|
|
374
393
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -68,6 +68,7 @@ declare const GetCallCommand_base: {
|
|
|
68
68
|
* // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
|
|
69
69
|
* // role: "CLIENT" || "AGENT", // required
|
|
70
70
|
* // license: "STRING_VALUE",
|
|
71
|
+
* // sipCallId: "STRING_VALUE",
|
|
71
72
|
* // },
|
|
72
73
|
* // callee: {
|
|
73
74
|
* // type: "REMOTE" || "LOCAL", // required
|
|
@@ -84,6 +85,7 @@ declare const GetCallCommand_base: {
|
|
|
84
85
|
* // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
|
|
85
86
|
* // role: "CLIENT" || "AGENT", // required
|
|
86
87
|
* // license: "STRING_VALUE",
|
|
88
|
+
* // sipCallId: "STRING_VALUE",
|
|
87
89
|
* // },
|
|
88
90
|
* // service: "STRING_VALUE",
|
|
89
91
|
* // serviceNumber: "STRING_VALUE",
|
|
@@ -45,6 +45,8 @@ declare const QueryConversationsCommand_base: {
|
|
|
45
45
|
* "FAX" || "VOICEMAIL",
|
|
46
46
|
* ],
|
|
47
47
|
* status: "COMPLETED" || "MISSED",
|
|
48
|
+
* from: new Date("TIMESTAMP"),
|
|
49
|
+
* to: new Date("TIMESTAMP"),
|
|
48
50
|
* },
|
|
49
51
|
* };
|
|
50
52
|
* const command = new QueryConversationsCommand(input);
|
|
@@ -77,6 +79,7 @@ declare const QueryConversationsCommand_base: {
|
|
|
77
79
|
* // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
|
|
78
80
|
* // role: "CLIENT" || "AGENT", // required
|
|
79
81
|
* // license: "STRING_VALUE",
|
|
82
|
+
* // sipCallId: "STRING_VALUE",
|
|
80
83
|
* // },
|
|
81
84
|
* // callee: {
|
|
82
85
|
* // type: "REMOTE" || "LOCAL", // required
|
|
@@ -93,6 +96,7 @@ declare const QueryConversationsCommand_base: {
|
|
|
93
96
|
* // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
|
|
94
97
|
* // role: "CLIENT" || "AGENT", // required
|
|
95
98
|
* // license: "STRING_VALUE",
|
|
99
|
+
* // sipCallId: "STRING_VALUE",
|
|
96
100
|
* // },
|
|
97
101
|
* // service: "STRING_VALUE",
|
|
98
102
|
* // serviceNumber: "STRING_VALUE",
|
|
@@ -45,6 +45,8 @@ declare const QueryUserCallsCommand_base: {
|
|
|
45
45
|
* "FAX" || "VOICEMAIL",
|
|
46
46
|
* ],
|
|
47
47
|
* status: "COMPLETED" || "MISSED",
|
|
48
|
+
* from: new Date("TIMESTAMP"),
|
|
49
|
+
* to: new Date("TIMESTAMP"),
|
|
48
50
|
* userDirection: "INCOMING" || "OUTGOING",
|
|
49
51
|
* },
|
|
50
52
|
* };
|
|
@@ -77,6 +79,7 @@ declare const QueryUserCallsCommand_base: {
|
|
|
77
79
|
* // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
|
|
78
80
|
* // role: "CLIENT" || "AGENT", // required
|
|
79
81
|
* // license: "STRING_VALUE",
|
|
82
|
+
* // sipCallId: "STRING_VALUE",
|
|
80
83
|
* // },
|
|
81
84
|
* // callee: {
|
|
82
85
|
* // type: "REMOTE" || "LOCAL", // required
|
|
@@ -93,6 +96,7 @@ declare const QueryUserCallsCommand_base: {
|
|
|
93
96
|
* // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
|
|
94
97
|
* // role: "CLIENT" || "AGENT", // required
|
|
95
98
|
* // license: "STRING_VALUE",
|
|
99
|
+
* // sipCallId: "STRING_VALUE",
|
|
96
100
|
* // },
|
|
97
101
|
* // service: "STRING_VALUE",
|
|
98
102
|
* // serviceNumber: "STRING_VALUE",
|
|
@@ -271,6 +271,11 @@ export interface CallParticipant {
|
|
|
271
271
|
userDevice?: CallDevice | undefined;
|
|
272
272
|
role: CallParticipantRole;
|
|
273
273
|
license?: string | undefined;
|
|
274
|
+
/**
|
|
275
|
+
* A unique identifier for the SIP call session used to control the call e.g., answer, hold, transfer, hang up.
|
|
276
|
+
* @public
|
|
277
|
+
*/
|
|
278
|
+
sipCallId?: string | undefined;
|
|
274
279
|
}
|
|
275
280
|
/**
|
|
276
281
|
* @public
|
|
@@ -812,6 +817,8 @@ export interface QueryConversationsFilter {
|
|
|
812
817
|
direction?: ConversationDirection | undefined;
|
|
813
818
|
flags?: (ConversationFlag)[] | undefined;
|
|
814
819
|
status?: ConversationStatus | undefined;
|
|
820
|
+
from?: Date | undefined;
|
|
821
|
+
to?: Date | undefined;
|
|
815
822
|
}
|
|
816
823
|
/**
|
|
817
824
|
* @public
|
|
@@ -864,6 +871,8 @@ export interface QueryUserCallsFilter {
|
|
|
864
871
|
direction?: ConversationDirection | undefined;
|
|
865
872
|
flags?: (ConversationFlag)[] | undefined;
|
|
866
873
|
status?: ConversationStatus | undefined;
|
|
874
|
+
from?: Date | undefined;
|
|
875
|
+
to?: Date | undefined;
|
|
867
876
|
userDirection?: ConversationUserDirection | undefined;
|
|
868
877
|
}
|
|
869
878
|
/**
|
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.
|
|
4
|
+
"version": "1.0.33",
|
|
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",
|