@wildix/wda-insights-client 1.0.1 → 1.0.3
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.
|
@@ -52,17 +52,22 @@ const se_GetConferenceSummaryCommand = async (input, context) => {
|
|
|
52
52
|
exports.se_GetConferenceSummaryCommand = se_GetConferenceSummaryCommand;
|
|
53
53
|
const se_ListConversationsCommand = async (input, context) => {
|
|
54
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
55
|
-
const headers = {
|
|
55
|
+
const headers = {
|
|
56
|
+
'content-type': 'application/json',
|
|
57
|
+
};
|
|
56
58
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/conversations";
|
|
57
59
|
const query = (0, smithy_client_1.map)({
|
|
58
60
|
"company": [, input.company],
|
|
59
61
|
});
|
|
60
62
|
let body;
|
|
63
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
+
'exclusiveStartKey': [],
|
|
65
|
+
}));
|
|
61
66
|
return new protocol_http_1.HttpRequest({
|
|
62
67
|
protocol,
|
|
63
68
|
hostname,
|
|
64
69
|
port,
|
|
65
|
-
method: "
|
|
70
|
+
method: "POST",
|
|
66
71
|
headers,
|
|
67
72
|
path: resolvedPath,
|
|
68
73
|
query,
|
|
@@ -162,6 +167,7 @@ const de_ListConversationsCommand = async (output, context) => {
|
|
|
162
167
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
163
168
|
const doc = (0, smithy_client_1.take)(data, {
|
|
164
169
|
'items': smithy_client_1._json,
|
|
170
|
+
'lastEvaluatedKey': smithy_client_1.expectString,
|
|
165
171
|
});
|
|
166
172
|
Object.assign(contents, doc);
|
|
167
173
|
return contents;
|
|
@@ -47,17 +47,22 @@ export const se_GetConferenceSummaryCommand = async (input, context) => {
|
|
|
47
47
|
};
|
|
48
48
|
export const se_ListConversationsCommand = async (input, context) => {
|
|
49
49
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
50
|
-
const headers = {
|
|
50
|
+
const headers = {
|
|
51
|
+
'content-type': 'application/json',
|
|
52
|
+
};
|
|
51
53
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/insights/conversations";
|
|
52
54
|
const query = map({
|
|
53
55
|
"company": [, input.company],
|
|
54
56
|
});
|
|
55
57
|
let body;
|
|
58
|
+
body = JSON.stringify(take(input, {
|
|
59
|
+
'exclusiveStartKey': [],
|
|
60
|
+
}));
|
|
56
61
|
return new __HttpRequest({
|
|
57
62
|
protocol,
|
|
58
63
|
hostname,
|
|
59
64
|
port,
|
|
60
|
-
method: "
|
|
65
|
+
method: "POST",
|
|
61
66
|
headers,
|
|
62
67
|
path: resolvedPath,
|
|
63
68
|
query,
|
|
@@ -154,6 +159,7 @@ export const de_ListConversationsCommand = async (output, context) => {
|
|
|
154
159
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
155
160
|
const doc = take(data, {
|
|
156
161
|
'items': _json,
|
|
162
|
+
'lastEvaluatedKey': __expectString,
|
|
157
163
|
});
|
|
158
164
|
Object.assign(contents, doc);
|
|
159
165
|
return contents;
|
|
@@ -22,7 +22,7 @@ export interface ListConversationsCommandOutput extends ListConversationsOutput,
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* @public
|
|
25
|
-
*
|
|
25
|
+
* Insights API are currently in active development. All interfaces are subject to change.
|
|
26
26
|
* @example
|
|
27
27
|
* Use a bare-bones client and the command you need to make an API call.
|
|
28
28
|
* ```javascript
|
|
@@ -31,11 +31,12 @@ export interface ListConversationsCommandOutput extends ListConversationsOutput,
|
|
|
31
31
|
* const client = new WdaInsightsClient(config);
|
|
32
32
|
* const input = { // ListConversationsInput
|
|
33
33
|
* company: "STRING_VALUE",
|
|
34
|
+
* exclusiveStartKey: "STRING_VALUE",
|
|
34
35
|
* };
|
|
35
36
|
* const command = new ListConversationsCommand(input);
|
|
36
37
|
* const response = await client.send(command);
|
|
37
38
|
* // { // ListConversationsOutput
|
|
38
|
-
* // items: [ // ListConversationsItemsList
|
|
39
|
+
* // items: [ // ListConversationsItemsList // required
|
|
39
40
|
* // { // ListConversationsItem
|
|
40
41
|
* // event: { // ListConversationsItemEvent Union: only one key present
|
|
41
42
|
* // call: { // CallRecord
|
|
@@ -106,6 +107,7 @@ export interface ListConversationsCommandOutput extends ListConversationsOutput,
|
|
|
106
107
|
* // remotePhoneLocation: "STRING_VALUE",
|
|
107
108
|
* // callStatus: "COMPLETED" || "MISSED",
|
|
108
109
|
* // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
|
|
110
|
+
* // transcriptionLanguage: "STRING_VALUE",
|
|
109
111
|
* // attachment: "STRING_VALUE",
|
|
110
112
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
111
113
|
* // attachmentDestinations: [ // CallFlowAttachmentDestinationList
|
|
@@ -169,11 +171,13 @@ export interface ListConversationsCommandOutput extends ListConversationsOutput,
|
|
|
169
171
|
* // },
|
|
170
172
|
* // ],
|
|
171
173
|
* // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
|
|
174
|
+
* // transcriptionLanguage: "STRING_VALUE",
|
|
172
175
|
* // type: "call" || "call_transcription" || "conference" || "conference_transcription", // required
|
|
173
176
|
* // },
|
|
174
177
|
* // },
|
|
175
178
|
* // },
|
|
176
179
|
* // ],
|
|
180
|
+
* // lastEvaluatedKey: "STRING_VALUE",
|
|
177
181
|
* // };
|
|
178
182
|
*
|
|
179
183
|
* ```
|
|
@@ -218,6 +218,7 @@ export interface CallRecord {
|
|
|
218
218
|
remotePhoneLocation?: string;
|
|
219
219
|
callStatus?: ConversationStatus | string;
|
|
220
220
|
transcriptionStatus: CallFlowTranscriptionStatus | string;
|
|
221
|
+
transcriptionLanguage?: string;
|
|
221
222
|
attachment?: string;
|
|
222
223
|
attachmentType?: CallFlowAttachmentType | string;
|
|
223
224
|
attachmentDestinations?: (CallFlowAttachmentDestination)[];
|
|
@@ -346,6 +347,7 @@ export interface ConferenceRecord {
|
|
|
346
347
|
participants: (ConferenceAnalyticsRecordParticipant)[];
|
|
347
348
|
recordings?: (ConferenceRecording)[];
|
|
348
349
|
transcriptionStatus: ConferenceTranscriptionStatus | string;
|
|
350
|
+
transcriptionLanguage?: string;
|
|
349
351
|
type: RecordType | string;
|
|
350
352
|
}
|
|
351
353
|
/**
|
|
@@ -404,6 +406,11 @@ export interface GetConferenceSummaryOutput {
|
|
|
404
406
|
*/
|
|
405
407
|
export interface ListConversationsInput {
|
|
406
408
|
company?: string;
|
|
409
|
+
/**
|
|
410
|
+
* @public
|
|
411
|
+
* A temporary parameter which would be removed in next updates.
|
|
412
|
+
*/
|
|
413
|
+
exclusiveStartKey?: string;
|
|
407
414
|
}
|
|
408
415
|
/**
|
|
409
416
|
* @public
|
|
@@ -448,5 +455,10 @@ export interface ListConversationsItem {
|
|
|
448
455
|
* @public
|
|
449
456
|
*/
|
|
450
457
|
export interface ListConversationsOutput {
|
|
451
|
-
items
|
|
458
|
+
items: (ListConversationsItem)[];
|
|
459
|
+
/**
|
|
460
|
+
* @public
|
|
461
|
+
* A temporary parameter which would be removed in next updates.
|
|
462
|
+
*/
|
|
463
|
+
lastEvaluatedKey?: string;
|
|
452
464
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wda-insights-client",
|
|
3
3
|
"description": "@wildix/wda-insights-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
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",
|