@wildix/wda-stream-client 1.1.47 → 1.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/WdaStream.js +2 -0
- package/dist-cjs/commands/ListServicesCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +65 -41
- package/dist-cjs/models/models_1.js +44 -0
- package/dist-cjs/protocols/Aws_restJson1.js +54 -3
- package/dist-es/WdaStream.js +2 -0
- package/dist-es/commands/ListServicesCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +64 -38
- package/dist-es/models/models_1.js +39 -0
- package/dist-es/protocols/Aws_restJson1.js +50 -1
- package/dist-types/WdaStream.d.ts +8 -0
- package/dist-types/WdaStreamClient.d.ts +3 -2
- package/dist-types/commands/ConsumeEventCommand.d.ts +170 -1
- package/dist-types/commands/DescribeEventCommand.d.ts +120 -44
- package/dist-types/commands/GetOngoingCallCommand.d.ts +1 -1
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +2 -2
- package/dist-types/commands/GetOngoingConferenceCommand.d.ts +2 -2
- package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +3 -3
- package/dist-types/commands/ListServicesCommand.d.ts +87 -0
- package/dist-types/commands/QueryConversationsCommand.d.ts +4 -4
- package/dist-types/commands/QueryPresenceCommand.d.ts +1 -1
- package/dist-types/commands/QueryPresencesCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePresenceLastSeenCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1196 -394
- package/dist-types/models/models_1.d.ts +313 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WdaStreamServiceException as __BaseException } from "../models/WdaStreamServiceException";
|
|
2
|
-
import { ConsumeEventInputEvent, ForbiddenException,
|
|
2
|
+
import { ConsumeEventInputEvent, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
3
|
+
import { MatchNotFoundException, PresenceNotAvailableException, } from "../models/models_1";
|
|
3
4
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
5
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
6
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
@@ -114,6 +115,25 @@ export const se_GetOngoingConferenceTranscriptionCommand = async (input, context
|
|
|
114
115
|
.b(body);
|
|
115
116
|
return b.build();
|
|
116
117
|
};
|
|
118
|
+
export const se_ListServicesCommand = async (input, context) => {
|
|
119
|
+
const b = rb(input, context);
|
|
120
|
+
const headers = {
|
|
121
|
+
'content-type': 'application/json',
|
|
122
|
+
};
|
|
123
|
+
b.bp("/v2/stream/services");
|
|
124
|
+
const query = map({
|
|
125
|
+
[_c]: [, input[_c]],
|
|
126
|
+
});
|
|
127
|
+
let body;
|
|
128
|
+
body = JSON.stringify(take(input, {
|
|
129
|
+
'filter': _ => _json(_),
|
|
130
|
+
}));
|
|
131
|
+
b.m("POST")
|
|
132
|
+
.h(headers)
|
|
133
|
+
.q(query)
|
|
134
|
+
.b(body);
|
|
135
|
+
return b.build();
|
|
136
|
+
};
|
|
117
137
|
export const se_QueryConversationsCommand = async (input, context) => {
|
|
118
138
|
const b = rb(input, context);
|
|
119
139
|
const headers = {
|
|
@@ -225,6 +245,12 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
225
245
|
'PresenceAnalyticsStatusEvent': _json,
|
|
226
246
|
'PresenceAnalyticsTelephonyEvent': _json,
|
|
227
247
|
'PresenceEventType': __expectString,
|
|
248
|
+
'ServiceAnalyticsLiveCompleteEvent': _json,
|
|
249
|
+
'ServiceAnalyticsLiveProgressEvent': _json,
|
|
250
|
+
'ServiceCallAnalyticsLiveCompleteEvent': _json,
|
|
251
|
+
'ServiceCallAnalyticsLiveProgressEvent': _json,
|
|
252
|
+
'ServiceCallEventType': __expectString,
|
|
253
|
+
'ServiceEventType': __expectString,
|
|
228
254
|
'WebhookCallCompletedEvent': _json,
|
|
229
255
|
'WebhookCallLiveCompletedEvent': _json,
|
|
230
256
|
'WebhookCallLiveInterruptedEvent': _json,
|
|
@@ -343,6 +369,20 @@ export const de_GetOngoingConferenceTranscriptionCommand = async (output, contex
|
|
|
343
369
|
Object.assign(contents, doc);
|
|
344
370
|
return contents;
|
|
345
371
|
};
|
|
372
|
+
export const de_ListServicesCommand = async (output, context) => {
|
|
373
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
374
|
+
return de_CommandError(output, context);
|
|
375
|
+
}
|
|
376
|
+
const contents = map({
|
|
377
|
+
$metadata: deserializeMetadata(output),
|
|
378
|
+
});
|
|
379
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
380
|
+
const doc = take(data, {
|
|
381
|
+
'services': _json,
|
|
382
|
+
});
|
|
383
|
+
Object.assign(contents, doc);
|
|
384
|
+
return contents;
|
|
385
|
+
};
|
|
346
386
|
export const de_QueryConversationsCommand = async (output, context) => {
|
|
347
387
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
348
388
|
return de_CommandError(output, context);
|
|
@@ -510,6 +550,15 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
510
550
|
conferenceTranscription: value => ({ "conferenceTranscription": _json(value) }),
|
|
511
551
|
presence: value => ({ "presence": _json(value) }),
|
|
512
552
|
presenceTelephony: value => ({ "presenceTelephony": _json(value) }),
|
|
553
|
+
serviceAgentJoin: value => ({ "serviceAgentJoin": _json(value) }),
|
|
554
|
+
serviceAgentLeave: value => ({ "serviceAgentLeave": _json(value) }),
|
|
555
|
+
serviceAgentUpdate: value => ({ "serviceAgentUpdate": _json(value) }),
|
|
556
|
+
serviceCallEnd: value => ({ "serviceCallEnd": _json(value) }),
|
|
557
|
+
serviceCallInit: value => ({ "serviceCallInit": _json(value) }),
|
|
558
|
+
serviceCallUpdate: value => ({ "serviceCallUpdate": _json(value) }),
|
|
559
|
+
serviceEnd: value => ({ "serviceEnd": _json(value) }),
|
|
560
|
+
serviceInit: value => ({ "serviceInit": _json(value) }),
|
|
561
|
+
serviceUpdate: value => ({ "serviceUpdate": _json(value) }),
|
|
513
562
|
smsInbound: value => ({ "smsInbound": _json(value) }),
|
|
514
563
|
smsStatus: value => ({ "smsStatus": _json(value) }),
|
|
515
564
|
usageStt: value => ({ "usageStt": _json(value) }),
|
|
@@ -6,6 +6,7 @@ import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./comma
|
|
|
6
6
|
import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "./commands/GetOngoingCallTranscriptionCommand";
|
|
7
7
|
import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
|
|
8
8
|
import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
|
|
9
|
+
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
9
10
|
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
10
11
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
11
12
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
@@ -55,6 +56,13 @@ export interface WdaStream {
|
|
|
55
56
|
getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceTranscriptionCommandOutput>;
|
|
56
57
|
getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
|
|
57
58
|
getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
|
|
59
|
+
/**
|
|
60
|
+
* @see {@link ListServicesCommand}
|
|
61
|
+
*/
|
|
62
|
+
listServices(): Promise<ListServicesCommandOutput>;
|
|
63
|
+
listServices(args: ListServicesCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesCommandOutput>;
|
|
64
|
+
listServices(args: ListServicesCommandInput, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
65
|
+
listServices(args: ListServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
58
66
|
/**
|
|
59
67
|
* @see {@link QueryConversationsCommand}
|
|
60
68
|
*/
|
|
@@ -5,6 +5,7 @@ import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./comma
|
|
|
5
5
|
import { GetOngoingCallTranscriptionCommandInput, GetOngoingCallTranscriptionCommandOutput } from "./commands/GetOngoingCallTranscriptionCommand";
|
|
6
6
|
import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
|
|
7
7
|
import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
|
|
8
|
+
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
8
9
|
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
9
10
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
10
11
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
@@ -20,11 +21,11 @@ export { __Client };
|
|
|
20
21
|
/**
|
|
21
22
|
* @public
|
|
22
23
|
*/
|
|
23
|
-
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | GetOngoingCallTranscriptionCommandInput | GetOngoingConferenceCommandInput | GetOngoingConferenceTranscriptionCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
24
|
+
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | GetOngoingCallTranscriptionCommandInput | GetOngoingConferenceCommandInput | GetOngoingConferenceTranscriptionCommandInput | ListServicesCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
24
25
|
/**
|
|
25
26
|
* @public
|
|
26
27
|
*/
|
|
27
|
-
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | GetOngoingCallTranscriptionCommandOutput | GetOngoingConferenceCommandOutput | GetOngoingConferenceTranscriptionCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
28
|
+
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | GetOngoingCallTranscriptionCommandOutput | GetOngoingConferenceCommandOutput | GetOngoingConferenceTranscriptionCommandOutput | ListServicesCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
28
29
|
/**
|
|
29
30
|
* @public
|
|
30
31
|
*/
|
|
@@ -359,7 +359,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
359
359
|
* flowIndex: Number("int"), // required
|
|
360
360
|
* flowStartTime: Number("long"), // required
|
|
361
361
|
* callStartTime: Number("long"), // required
|
|
362
|
-
* type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
|
|
362
|
+
* type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave" || "service" || "service_complete" || "service_agent" || "service_call" || "service_call_complete", // required
|
|
363
363
|
* cds: { // CdsTranscriptionPayloadReference
|
|
364
364
|
* id: "STRING_VALUE", // required
|
|
365
365
|
* },
|
|
@@ -871,6 +871,175 @@ declare const ConsumeEventCommand_base: {
|
|
|
871
871
|
* status: "STRING_VALUE",
|
|
872
872
|
* },
|
|
873
873
|
* },
|
|
874
|
+
* serviceInit: { // ServiceInitConsumeEvent
|
|
875
|
+
* id: "STRING_VALUE", // required
|
|
876
|
+
* time: Number("long"), // required
|
|
877
|
+
* pbx: "STRING_VALUE", // required
|
|
878
|
+
* company: "STRING_VALUE", // required
|
|
879
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
880
|
+
* data: { // ServiceConsumeEventData
|
|
881
|
+
* name: "STRING_VALUE",
|
|
882
|
+
* strategy: "STRING_VALUE",
|
|
883
|
+
* maxCalls: "STRING_VALUE",
|
|
884
|
+
* weight: "STRING_VALUE",
|
|
885
|
+
* agents: [ // ServiceAgentsList
|
|
886
|
+
* { // ServiceAgent
|
|
887
|
+
* id: "STRING_VALUE", // required
|
|
888
|
+
* penalty: "STRING_VALUE",
|
|
889
|
+
* type: "STATIC" || "DYNAMIC",
|
|
890
|
+
* paused: true || false,
|
|
891
|
+
* lastQueueCallEnd: Number("long"),
|
|
892
|
+
* userExtension: "STRING_VALUE",
|
|
893
|
+
* name: "STRING_VALUE",
|
|
894
|
+
* },
|
|
895
|
+
* ],
|
|
896
|
+
* calls: [ // ServiceCallsList
|
|
897
|
+
* "STRING_VALUE",
|
|
898
|
+
* ],
|
|
899
|
+
* },
|
|
900
|
+
* },
|
|
901
|
+
* serviceUpdate: { // ServiceUpdateConsumeEvent
|
|
902
|
+
* id: "STRING_VALUE", // required
|
|
903
|
+
* time: Number("long"), // required
|
|
904
|
+
* pbx: "STRING_VALUE", // required
|
|
905
|
+
* company: "STRING_VALUE", // required
|
|
906
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
907
|
+
* data: {
|
|
908
|
+
* name: "STRING_VALUE",
|
|
909
|
+
* strategy: "STRING_VALUE",
|
|
910
|
+
* maxCalls: "STRING_VALUE",
|
|
911
|
+
* weight: "STRING_VALUE",
|
|
912
|
+
* agents: [
|
|
913
|
+
* {
|
|
914
|
+
* id: "STRING_VALUE", // required
|
|
915
|
+
* penalty: "STRING_VALUE",
|
|
916
|
+
* type: "STATIC" || "DYNAMIC",
|
|
917
|
+
* paused: true || false,
|
|
918
|
+
* lastQueueCallEnd: Number("long"),
|
|
919
|
+
* userExtension: "STRING_VALUE",
|
|
920
|
+
* name: "STRING_VALUE",
|
|
921
|
+
* },
|
|
922
|
+
* ],
|
|
923
|
+
* calls: [
|
|
924
|
+
* "STRING_VALUE",
|
|
925
|
+
* ],
|
|
926
|
+
* },
|
|
927
|
+
* },
|
|
928
|
+
* serviceEnd: { // ServiceEndConsumeEvent
|
|
929
|
+
* id: "STRING_VALUE", // required
|
|
930
|
+
* time: Number("long"), // required
|
|
931
|
+
* pbx: "STRING_VALUE", // required
|
|
932
|
+
* company: "STRING_VALUE", // required
|
|
933
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
934
|
+
* },
|
|
935
|
+
* serviceCallInit: { // ServiceCallInitConsumeEvent
|
|
936
|
+
* id: "STRING_VALUE", // required
|
|
937
|
+
* time: Number("long"), // required
|
|
938
|
+
* pbx: "STRING_VALUE", // required
|
|
939
|
+
* company: "STRING_VALUE", // required
|
|
940
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
941
|
+
* data: { // ServiceCallConsumeEventData
|
|
942
|
+
* callId: "STRING_VALUE", // required
|
|
943
|
+
* startTime: Number("long"),
|
|
944
|
+
* direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
|
|
945
|
+
* action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
|
|
946
|
+
* customer: { // ServiceCustomer
|
|
947
|
+
* phone: "STRING_VALUE", // required
|
|
948
|
+
* name: "STRING_VALUE",
|
|
949
|
+
* },
|
|
950
|
+
* relatedAgents: [ // ServiceCallAgentsList
|
|
951
|
+
* "STRING_VALUE",
|
|
952
|
+
* ],
|
|
953
|
+
* },
|
|
954
|
+
* },
|
|
955
|
+
* serviceCallUpdate: { // ServiceCallUpdateConsumeEvent
|
|
956
|
+
* id: "STRING_VALUE", // required
|
|
957
|
+
* time: Number("long"), // required
|
|
958
|
+
* pbx: "STRING_VALUE", // required
|
|
959
|
+
* company: "STRING_VALUE", // required
|
|
960
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
961
|
+
* data: {
|
|
962
|
+
* callId: "STRING_VALUE", // required
|
|
963
|
+
* startTime: Number("long"),
|
|
964
|
+
* direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
|
|
965
|
+
* action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
|
|
966
|
+
* customer: {
|
|
967
|
+
* phone: "STRING_VALUE", // required
|
|
968
|
+
* name: "STRING_VALUE",
|
|
969
|
+
* },
|
|
970
|
+
* relatedAgents: [
|
|
971
|
+
* "STRING_VALUE",
|
|
972
|
+
* ],
|
|
973
|
+
* },
|
|
974
|
+
* },
|
|
975
|
+
* serviceCallEnd: { // ServiceCallEndConsumeEvent
|
|
976
|
+
* id: "STRING_VALUE", // required
|
|
977
|
+
* time: Number("long"), // required
|
|
978
|
+
* pbx: "STRING_VALUE", // required
|
|
979
|
+
* company: "STRING_VALUE", // required
|
|
980
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
981
|
+
* data: {
|
|
982
|
+
* callId: "STRING_VALUE", // required
|
|
983
|
+
* startTime: Number("long"),
|
|
984
|
+
* direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
|
|
985
|
+
* action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
|
|
986
|
+
* customer: {
|
|
987
|
+
* phone: "STRING_VALUE", // required
|
|
988
|
+
* name: "STRING_VALUE",
|
|
989
|
+
* },
|
|
990
|
+
* relatedAgents: [
|
|
991
|
+
* "STRING_VALUE",
|
|
992
|
+
* ],
|
|
993
|
+
* },
|
|
994
|
+
* },
|
|
995
|
+
* serviceAgentJoin: { // ServiceAgentJoinConsumeEvent
|
|
996
|
+
* id: "STRING_VALUE", // required
|
|
997
|
+
* time: Number("long"), // required
|
|
998
|
+
* pbx: "STRING_VALUE", // required
|
|
999
|
+
* company: "STRING_VALUE", // required
|
|
1000
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
1001
|
+
* data: { // ServiceAgentConsumeEventData
|
|
1002
|
+
* id: "STRING_VALUE", // required
|
|
1003
|
+
* penalty: "STRING_VALUE",
|
|
1004
|
+
* type: "STATIC" || "DYNAMIC",
|
|
1005
|
+
* paused: true || false,
|
|
1006
|
+
* lastQueueCallEnd: Number("long"),
|
|
1007
|
+
* userExtension: "STRING_VALUE",
|
|
1008
|
+
* name: "STRING_VALUE",
|
|
1009
|
+
* },
|
|
1010
|
+
* },
|
|
1011
|
+
* serviceAgentUpdate: { // ServiceAgentUpdateConsumeEvent
|
|
1012
|
+
* id: "STRING_VALUE", // required
|
|
1013
|
+
* time: Number("long"), // required
|
|
1014
|
+
* pbx: "STRING_VALUE", // required
|
|
1015
|
+
* company: "STRING_VALUE", // required
|
|
1016
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
1017
|
+
* data: {
|
|
1018
|
+
* id: "STRING_VALUE", // required
|
|
1019
|
+
* penalty: "STRING_VALUE",
|
|
1020
|
+
* type: "STATIC" || "DYNAMIC",
|
|
1021
|
+
* paused: true || false,
|
|
1022
|
+
* lastQueueCallEnd: Number("long"),
|
|
1023
|
+
* userExtension: "STRING_VALUE",
|
|
1024
|
+
* name: "STRING_VALUE",
|
|
1025
|
+
* },
|
|
1026
|
+
* },
|
|
1027
|
+
* serviceAgentLeave: { // ServiceAgentLeaveConsumeEvent
|
|
1028
|
+
* id: "STRING_VALUE", // required
|
|
1029
|
+
* time: Number("long"), // required
|
|
1030
|
+
* pbx: "STRING_VALUE", // required
|
|
1031
|
+
* company: "STRING_VALUE", // required
|
|
1032
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
1033
|
+
* data: {
|
|
1034
|
+
* id: "STRING_VALUE", // required
|
|
1035
|
+
* penalty: "STRING_VALUE",
|
|
1036
|
+
* type: "STATIC" || "DYNAMIC",
|
|
1037
|
+
* paused: true || false,
|
|
1038
|
+
* lastQueueCallEnd: Number("long"),
|
|
1039
|
+
* userExtension: "STRING_VALUE",
|
|
1040
|
+
* name: "STRING_VALUE",
|
|
1041
|
+
* },
|
|
1042
|
+
* },
|
|
874
1043
|
* usageStt: { // TranscriptionUsageEvent
|
|
875
1044
|
* id: "STRING_VALUE", // required
|
|
876
1045
|
* time: Number("long"), // required
|