@webex/calling 0.0.1-next.0 → 0.0.1-next.2

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.
Files changed (122) hide show
  1. package/README.md +51 -66
  2. package/dist/module/CallHistory/CallHistory.js +84 -84
  3. package/dist/module/CallHistory/callHistoryFixtures.js +307 -307
  4. package/dist/module/CallHistory/constants.js +9 -9
  5. package/dist/module/CallHistory/types.js +1 -1
  6. package/dist/module/CallSettings/CallSettings.js +65 -65
  7. package/dist/module/CallSettings/UcmBackendConnector.js +100 -100
  8. package/dist/module/CallSettings/WxCallBackendConnector.js +287 -287
  9. package/dist/module/CallSettings/constants.js +11 -11
  10. package/dist/module/CallSettings/testFixtures.js +62 -62
  11. package/dist/module/CallSettings/types.js +1 -1
  12. package/dist/module/CallingClient/CallingClient.js +268 -268
  13. package/dist/module/CallingClient/callRecordFixtures.js +93 -93
  14. package/dist/module/CallingClient/calling/CallerId/index.js +169 -169
  15. package/dist/module/CallingClient/calling/CallerId/types.js +1 -1
  16. package/dist/module/CallingClient/calling/call.js +1649 -1649
  17. package/dist/module/CallingClient/calling/callManager.js +274 -274
  18. package/dist/module/CallingClient/calling/index.js +2 -2
  19. package/dist/module/CallingClient/calling/types.js +53 -53
  20. package/dist/module/CallingClient/callingClientFixtures.js +38 -38
  21. package/dist/module/CallingClient/constants.js +122 -122
  22. package/dist/module/CallingClient/line/index.js +110 -110
  23. package/dist/module/CallingClient/line/types.js +14 -14
  24. package/dist/module/CallingClient/registration/index.js +1 -1
  25. package/dist/module/CallingClient/registration/register.js +507 -507
  26. package/dist/module/CallingClient/registration/registerFixtures.js +28 -28
  27. package/dist/module/CallingClient/registration/types.js +1 -1
  28. package/dist/module/CallingClient/types.js +1 -1
  29. package/dist/module/Contacts/ContactsClient.js +487 -487
  30. package/dist/module/Contacts/constants.js +20 -20
  31. package/dist/module/Contacts/contactFixtures.js +284 -284
  32. package/dist/module/Contacts/types.js +10 -10
  33. package/dist/module/Errors/catalog/CallError.js +26 -26
  34. package/dist/module/Errors/catalog/CallingDeviceError.js +18 -18
  35. package/dist/module/Errors/catalog/ExtendedError.js +10 -10
  36. package/dist/module/Errors/catalog/LineError.js +24 -24
  37. package/dist/module/Errors/index.js +2 -2
  38. package/dist/module/Errors/types.js +48 -48
  39. package/dist/module/Events/impl/index.js +19 -19
  40. package/dist/module/Events/types.js +74 -74
  41. package/dist/module/Logger/index.js +114 -114
  42. package/dist/module/Logger/types.js +25 -25
  43. package/dist/module/Metrics/index.js +232 -232
  44. package/dist/module/Metrics/types.js +37 -37
  45. package/dist/module/SDKConnector/index.js +39 -39
  46. package/dist/module/SDKConnector/types.js +1 -1
  47. package/dist/module/SDKConnector/utils.js +12 -12
  48. package/dist/module/Voicemail/BroadworksBackendConnector.js +289 -289
  49. package/dist/module/Voicemail/UcmBackendConnector.js +275 -275
  50. package/dist/module/Voicemail/Voicemail.js +110 -110
  51. package/dist/module/Voicemail/WxCallBackendConnector.js +279 -279
  52. package/dist/module/Voicemail/constants.js +29 -29
  53. package/dist/module/Voicemail/types.js +1 -1
  54. package/dist/module/Voicemail/voicemailFixture.js +449 -449
  55. package/dist/module/common/Utils.js +802 -802
  56. package/dist/module/common/constants.js +40 -40
  57. package/dist/module/common/index.js +1 -1
  58. package/dist/module/common/testUtil.js +938 -938
  59. package/dist/module/common/types.js +57 -57
  60. package/dist/module/index.js +8 -8
  61. package/dist/types/CallHistory/CallHistory.d.ts +18 -18
  62. package/dist/types/CallHistory/callHistoryFixtures.d.ts +94 -94
  63. package/dist/types/CallHistory/constants.d.ts +9 -9
  64. package/dist/types/CallHistory/types.d.ts +20 -20
  65. package/dist/types/CallSettings/CallSettings.d.ts +19 -19
  66. package/dist/types/CallSettings/UcmBackendConnector.d.ts +19 -19
  67. package/dist/types/CallSettings/WxCallBackendConnector.d.ts +21 -21
  68. package/dist/types/CallSettings/constants.d.ts +11 -11
  69. package/dist/types/CallSettings/testFixtures.d.ts +15 -15
  70. package/dist/types/CallSettings/types.d.ts +107 -107
  71. package/dist/types/CallingClient/CallingClient.d.ts +37 -37
  72. package/dist/types/CallingClient/callRecordFixtures.d.ts +3 -3
  73. package/dist/types/CallingClient/calling/CallerId/index.d.ts +17 -17
  74. package/dist/types/CallingClient/calling/CallerId/types.d.ts +41 -41
  75. package/dist/types/CallingClient/calling/call.d.ts +94 -94
  76. package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
  77. package/dist/types/CallingClient/calling/callManager.d.ts +21 -21
  78. package/dist/types/CallingClient/calling/index.d.ts +2 -2
  79. package/dist/types/CallingClient/calling/types.d.ts +203 -203
  80. package/dist/types/CallingClient/calling/types.d.ts.map +1 -1
  81. package/dist/types/CallingClient/callingClientFixtures.d.ts +18 -18
  82. package/dist/types/CallingClient/constants.d.ts +122 -122
  83. package/dist/types/CallingClient/line/index.d.ts +38 -38
  84. package/dist/types/CallingClient/line/types.d.ts +50 -50
  85. package/dist/types/CallingClient/registration/index.d.ts +1 -1
  86. package/dist/types/CallingClient/registration/register.d.ts +64 -64
  87. package/dist/types/CallingClient/registration/registerFixtures.d.ts +28 -28
  88. package/dist/types/CallingClient/registration/types.d.ts +20 -20
  89. package/dist/types/CallingClient/types.d.ts +29 -29
  90. package/dist/types/Contacts/ContactsClient.d.ts +27 -27
  91. package/dist/types/Contacts/constants.d.ts +19 -19
  92. package/dist/types/Contacts/contactFixtures.d.ts +280 -280
  93. package/dist/types/Contacts/types.d.ts +74 -74
  94. package/dist/types/Errors/catalog/CallError.d.ts +11 -11
  95. package/dist/types/Errors/catalog/CallingDeviceError.d.ts +10 -10
  96. package/dist/types/Errors/catalog/ExtendedError.d.ts +6 -6
  97. package/dist/types/Errors/catalog/LineError.d.ts +10 -10
  98. package/dist/types/Errors/index.d.ts +2 -2
  99. package/dist/types/Errors/types.d.ts +60 -60
  100. package/dist/types/Events/impl/index.d.ts +8 -8
  101. package/dist/types/Events/types.d.ts +283 -283
  102. package/dist/types/Logger/index.d.ts +12 -12
  103. package/dist/types/Logger/types.d.ts +25 -25
  104. package/dist/types/Metrics/index.d.ts +5 -5
  105. package/dist/types/Metrics/types.d.ts +42 -42
  106. package/dist/types/SDKConnector/index.d.ts +12 -12
  107. package/dist/types/SDKConnector/types.d.ts +128 -128
  108. package/dist/types/SDKConnector/utils.d.ts +5 -5
  109. package/dist/types/Voicemail/BroadworksBackendConnector.d.ts +27 -27
  110. package/dist/types/Voicemail/UcmBackendConnector.d.ts +34 -34
  111. package/dist/types/Voicemail/Voicemail.d.ts +27 -27
  112. package/dist/types/Voicemail/WxCallBackendConnector.d.ts +23 -23
  113. package/dist/types/Voicemail/constants.d.ts +29 -29
  114. package/dist/types/Voicemail/types.d.ts +133 -133
  115. package/dist/types/Voicemail/voicemailFixture.d.ts +349 -349
  116. package/dist/types/common/Utils.d.ts +34 -34
  117. package/dist/types/common/constants.d.ts +40 -40
  118. package/dist/types/common/index.d.ts +1 -1
  119. package/dist/types/common/testUtil.d.ts +3611 -3611
  120. package/dist/types/common/types.d.ts +191 -191
  121. package/dist/types/index.d.ts +8 -8
  122. package/package.json +6 -41
@@ -1,307 +1,307 @@
1
- import { Disposition, MOBIUS_EVENT_KEYS, SessionType } from '../Events/types';
2
- export const sortedCallHistory = {
3
- body: {
4
- statusCode: 200,
5
- userSessions: [
6
- {
7
- id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
8
- durationSecs: 438,
9
- self: {
10
- id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
11
- name: 'Mark',
12
- incomingCallProtocols: [],
13
- callbackInfo: {
14
- callbackAddress: 'test@cisco.com',
15
- callbackType: 'EMAIL',
16
- },
17
- lookUpInfo: {
18
- lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
19
- type: 'CONVERSATION',
20
- },
21
- },
22
- url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
23
- sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
24
- sessionType: 'SPARK',
25
- startTime: '2022-08-09T10:45:21.565Z',
26
- endTime: '2022-08-09T10:53:01.624Z',
27
- direction: 'OUTGOING',
28
- disposition: 'INITIATED',
29
- other: {
30
- id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
31
- name: 'test',
32
- isPrivate: false,
33
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
34
- },
35
- durationSeconds: 438,
36
- joinedDurationSeconds: 457,
37
- participantCount: 2,
38
- links: {
39
- locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
40
- conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
41
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
42
- },
43
- isDeleted: false,
44
- isPMR: false,
45
- correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
46
- },
47
- {
48
- id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
49
- durationSecs: 438,
50
- self: {
51
- id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
52
- name: 'Mark',
53
- incomingCallProtocols: [],
54
- callbackInfo: {
55
- callbackAddress: 'test@cisco.com',
56
- callbackType: 'EMAIL',
57
- },
58
- lookUpInfo: {
59
- lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
60
- type: 'CONVERSATION',
61
- },
62
- },
63
- url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
64
- sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
65
- sessionType: 'SPARK',
66
- startTime: '2022-08-22T10:45:21.565Z',
67
- endTime: '2022-08-22T10:53:01.624Z',
68
- direction: 'OUTGOING',
69
- disposition: 'INITIATED',
70
- other: {
71
- id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
72
- name: 'test',
73
- isPrivate: false,
74
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
75
- },
76
- durationSeconds: 438,
77
- joinedDurationSeconds: 457,
78
- participantCount: 2,
79
- links: {
80
- locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
81
- conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
82
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
83
- },
84
- isDeleted: false,
85
- isPMR: false,
86
- correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
87
- },
88
- {
89
- id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
90
- durationSecs: 438,
91
- self: {
92
- id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
93
- name: 'Mark',
94
- incomingCallProtocols: [],
95
- callbackInfo: {
96
- callbackAddress: 'test@cisco.com',
97
- callbackType: 'EMAIL',
98
- },
99
- lookUpInfo: {
100
- lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
101
- type: 'CONVERSATION',
102
- },
103
- },
104
- url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
105
- sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
106
- sessionType: 'SPARK',
107
- startTime: '2022-08-30T10:45:21.565Z',
108
- endTime: '2022-08-30T10:53:01.624Z',
109
- direction: 'OUTGOING',
110
- disposition: 'INITIATED',
111
- other: {
112
- id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
113
- name: 'test',
114
- isPrivate: false,
115
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
116
- },
117
- durationSeconds: 438,
118
- joinedDurationSeconds: 457,
119
- participantCount: 2,
120
- links: {
121
- locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
122
- conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
123
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
124
- },
125
- isDeleted: false,
126
- isPMR: false,
127
- correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
128
- },
129
- ],
130
- },
131
- };
132
- export const mockCallHistoryBody = {
133
- body: {
134
- statusCode: 200,
135
- userSessions: [
136
- {
137
- id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
138
- durationSecs: 438,
139
- self: {
140
- id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
141
- name: 'Mark',
142
- incomingCallProtocols: [],
143
- callbackInfo: {
144
- callbackAddress: 'test@cisco.com',
145
- callbackType: 'EMAIL',
146
- },
147
- lookUpInfo: {
148
- lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
149
- type: 'CONVERSATION',
150
- },
151
- },
152
- url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
153
- sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
154
- sessionType: 'SPARK',
155
- startTime: '2022-08-22T10:45:21.565Z',
156
- endTime: '2022-08-22T10:53:01.624Z',
157
- direction: 'OUTGOING',
158
- disposition: 'INITIATED',
159
- other: {
160
- id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
161
- name: 'test',
162
- isPrivate: false,
163
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
164
- },
165
- durationSeconds: 438,
166
- joinedDurationSeconds: 457,
167
- participantCount: 2,
168
- links: {
169
- locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
170
- conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
171
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
172
- },
173
- isDeleted: false,
174
- isPMR: false,
175
- correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
176
- },
177
- {
178
- id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
179
- durationSecs: 438,
180
- self: {
181
- id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
182
- name: 'Mark',
183
- incomingCallProtocols: [],
184
- callbackInfo: {
185
- callbackAddress: 'test@cisco.com',
186
- callbackType: 'EMAIL',
187
- },
188
- lookUpInfo: {
189
- lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
190
- type: 'CONVERSATION',
191
- },
192
- },
193
- url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
194
- sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
195
- sessionType: 'SPARK',
196
- startTime: '2022-08-30T10:45:21.565Z',
197
- endTime: '2022-08-30T10:53:01.624Z',
198
- direction: 'OUTGOING',
199
- disposition: 'INITIATED',
200
- other: {
201
- id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
202
- name: 'test',
203
- isPrivate: false,
204
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
205
- },
206
- durationSeconds: 438,
207
- joinedDurationSeconds: 457,
208
- participantCount: 2,
209
- links: {
210
- locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
211
- conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
212
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
213
- },
214
- isDeleted: false,
215
- isPMR: false,
216
- correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
217
- },
218
- {
219
- id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
220
- durationSecs: 438,
221
- self: {
222
- id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
223
- name: 'Mark',
224
- incomingCallProtocols: [],
225
- callbackInfo: {
226
- callbackAddress: 'test@cisco.com',
227
- callbackType: 'EMAIL',
228
- },
229
- lookUpInfo: {
230
- lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
231
- type: 'CONVERSATION',
232
- },
233
- },
234
- url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
235
- sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
236
- sessionType: 'SPARK',
237
- startTime: '2022-08-09T10:45:21.565Z',
238
- endTime: '2022-08-09T10:53:01.624Z',
239
- direction: 'OUTGOING',
240
- disposition: 'INITIATED',
241
- other: {
242
- id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
243
- name: 'test',
244
- isPrivate: false,
245
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
246
- },
247
- durationSeconds: 438,
248
- joinedDurationSeconds: 457,
249
- participantCount: 2,
250
- links: {
251
- locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
252
- conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
253
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
254
- },
255
- isDeleted: false,
256
- isPMR: false,
257
- correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
258
- },
259
- ],
260
- },
261
- };
262
- const WEBEX_CALL_SESSION = {
263
- id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
264
- durationSecs: 438,
265
- self: {
266
- id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
267
- name: 'Mark',
268
- phoneNumber: '123456',
269
- },
270
- url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
271
- sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
272
- sessionType: SessionType.WEBEX_CALLING,
273
- startTime: '2022-08-02T10:45:21.565Z',
274
- endTime: '2022-08-02T10:53:01.624Z',
275
- direction: 'OUTGOING',
276
- disposition: Disposition.INITIATED,
277
- other: {
278
- id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
279
- name: 'test',
280
- isPrivate: false,
281
- callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
282
- phoneNumber: '123456679',
283
- },
284
- durationSeconds: 438,
285
- joinedDurationSeconds: 457,
286
- participantCount: 2,
287
- links: {
288
- locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
289
- conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
290
- callbackAddress: '123-456-7890',
291
- },
292
- isDeleted: false,
293
- isPMR: false,
294
- correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
295
- };
296
- export const MOCK_SESSION_EVENT = {
297
- id: 'id',
298
- data: {
299
- userSessions: {
300
- userSessions: [WEBEX_CALL_SESSION],
301
- statusCode: 0,
302
- },
303
- eventType: MOBIUS_EVENT_KEYS.CALL_SESSION_EVENT_INCLUSIVE,
304
- },
305
- timestamp: 12345,
306
- trackingId: 'tracking-id',
307
- };
1
+ import { Disposition, MOBIUS_EVENT_KEYS, SessionType } from '../Events/types';
2
+ export const sortedCallHistory = {
3
+ body: {
4
+ statusCode: 200,
5
+ userSessions: [
6
+ {
7
+ id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
8
+ durationSecs: 438,
9
+ self: {
10
+ id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
11
+ name: 'Mark',
12
+ incomingCallProtocols: [],
13
+ callbackInfo: {
14
+ callbackAddress: 'test@cisco.com',
15
+ callbackType: 'EMAIL',
16
+ },
17
+ lookUpInfo: {
18
+ lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
19
+ type: 'CONVERSATION',
20
+ },
21
+ },
22
+ url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
23
+ sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
24
+ sessionType: 'SPARK',
25
+ startTime: '2022-08-09T10:45:21.565Z',
26
+ endTime: '2022-08-09T10:53:01.624Z',
27
+ direction: 'OUTGOING',
28
+ disposition: 'INITIATED',
29
+ other: {
30
+ id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
31
+ name: 'test',
32
+ isPrivate: false,
33
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
34
+ },
35
+ durationSeconds: 438,
36
+ joinedDurationSeconds: 457,
37
+ participantCount: 2,
38
+ links: {
39
+ locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
40
+ conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
41
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
42
+ },
43
+ isDeleted: false,
44
+ isPMR: false,
45
+ correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
46
+ },
47
+ {
48
+ id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
49
+ durationSecs: 438,
50
+ self: {
51
+ id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
52
+ name: 'Mark',
53
+ incomingCallProtocols: [],
54
+ callbackInfo: {
55
+ callbackAddress: 'test@cisco.com',
56
+ callbackType: 'EMAIL',
57
+ },
58
+ lookUpInfo: {
59
+ lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
60
+ type: 'CONVERSATION',
61
+ },
62
+ },
63
+ url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
64
+ sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
65
+ sessionType: 'SPARK',
66
+ startTime: '2022-08-22T10:45:21.565Z',
67
+ endTime: '2022-08-22T10:53:01.624Z',
68
+ direction: 'OUTGOING',
69
+ disposition: 'INITIATED',
70
+ other: {
71
+ id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
72
+ name: 'test',
73
+ isPrivate: false,
74
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
75
+ },
76
+ durationSeconds: 438,
77
+ joinedDurationSeconds: 457,
78
+ participantCount: 2,
79
+ links: {
80
+ locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
81
+ conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
82
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
83
+ },
84
+ isDeleted: false,
85
+ isPMR: false,
86
+ correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
87
+ },
88
+ {
89
+ id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
90
+ durationSecs: 438,
91
+ self: {
92
+ id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
93
+ name: 'Mark',
94
+ incomingCallProtocols: [],
95
+ callbackInfo: {
96
+ callbackAddress: 'test@cisco.com',
97
+ callbackType: 'EMAIL',
98
+ },
99
+ lookUpInfo: {
100
+ lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
101
+ type: 'CONVERSATION',
102
+ },
103
+ },
104
+ url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
105
+ sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
106
+ sessionType: 'SPARK',
107
+ startTime: '2022-08-30T10:45:21.565Z',
108
+ endTime: '2022-08-30T10:53:01.624Z',
109
+ direction: 'OUTGOING',
110
+ disposition: 'INITIATED',
111
+ other: {
112
+ id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
113
+ name: 'test',
114
+ isPrivate: false,
115
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
116
+ },
117
+ durationSeconds: 438,
118
+ joinedDurationSeconds: 457,
119
+ participantCount: 2,
120
+ links: {
121
+ locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
122
+ conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
123
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
124
+ },
125
+ isDeleted: false,
126
+ isPMR: false,
127
+ correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
128
+ },
129
+ ],
130
+ },
131
+ };
132
+ export const mockCallHistoryBody = {
133
+ body: {
134
+ statusCode: 200,
135
+ userSessions: [
136
+ {
137
+ id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
138
+ durationSecs: 438,
139
+ self: {
140
+ id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
141
+ name: 'Mark',
142
+ incomingCallProtocols: [],
143
+ callbackInfo: {
144
+ callbackAddress: 'test@cisco.com',
145
+ callbackType: 'EMAIL',
146
+ },
147
+ lookUpInfo: {
148
+ lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
149
+ type: 'CONVERSATION',
150
+ },
151
+ },
152
+ url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
153
+ sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
154
+ sessionType: 'SPARK',
155
+ startTime: '2022-08-22T10:45:21.565Z',
156
+ endTime: '2022-08-22T10:53:01.624Z',
157
+ direction: 'OUTGOING',
158
+ disposition: 'INITIATED',
159
+ other: {
160
+ id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
161
+ name: 'test',
162
+ isPrivate: false,
163
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
164
+ },
165
+ durationSeconds: 438,
166
+ joinedDurationSeconds: 457,
167
+ participantCount: 2,
168
+ links: {
169
+ locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
170
+ conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
171
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
172
+ },
173
+ isDeleted: false,
174
+ isPMR: false,
175
+ correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
176
+ },
177
+ {
178
+ id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
179
+ durationSecs: 438,
180
+ self: {
181
+ id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
182
+ name: 'Mark',
183
+ incomingCallProtocols: [],
184
+ callbackInfo: {
185
+ callbackAddress: 'test@cisco.com',
186
+ callbackType: 'EMAIL',
187
+ },
188
+ lookUpInfo: {
189
+ lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
190
+ type: 'CONVERSATION',
191
+ },
192
+ },
193
+ url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
194
+ sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
195
+ sessionType: 'SPARK',
196
+ startTime: '2022-08-30T10:45:21.565Z',
197
+ endTime: '2022-08-30T10:53:01.624Z',
198
+ direction: 'OUTGOING',
199
+ disposition: 'INITIATED',
200
+ other: {
201
+ id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
202
+ name: 'test',
203
+ isPrivate: false,
204
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
205
+ },
206
+ durationSeconds: 438,
207
+ joinedDurationSeconds: 457,
208
+ participantCount: 2,
209
+ links: {
210
+ locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
211
+ conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
212
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
213
+ },
214
+ isDeleted: false,
215
+ isPMR: false,
216
+ correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
217
+ },
218
+ {
219
+ id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
220
+ durationSecs: 438,
221
+ self: {
222
+ id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
223
+ name: 'Mark',
224
+ incomingCallProtocols: [],
225
+ callbackInfo: {
226
+ callbackAddress: 'test@cisco.com',
227
+ callbackType: 'EMAIL',
228
+ },
229
+ lookUpInfo: {
230
+ lookupLink: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
231
+ type: 'CONVERSATION',
232
+ },
233
+ },
234
+ url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
235
+ sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
236
+ sessionType: 'SPARK',
237
+ startTime: '2022-08-09T10:45:21.565Z',
238
+ endTime: '2022-08-09T10:53:01.624Z',
239
+ direction: 'OUTGOING',
240
+ disposition: 'INITIATED',
241
+ other: {
242
+ id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
243
+ name: 'test',
244
+ isPrivate: false,
245
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
246
+ },
247
+ durationSeconds: 438,
248
+ joinedDurationSeconds: 457,
249
+ participantCount: 2,
250
+ links: {
251
+ locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
252
+ conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
253
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
254
+ },
255
+ isDeleted: false,
256
+ isPMR: false,
257
+ correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
258
+ },
259
+ ],
260
+ },
261
+ };
262
+ const WEBEX_CALL_SESSION = {
263
+ id: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
264
+ durationSecs: 438,
265
+ self: {
266
+ id: 'a24027e7-9b6e-4047-a950-42f4492148ec',
267
+ name: 'Mark',
268
+ phoneNumber: '123456',
269
+ },
270
+ url: 'https://janus-a.wbx2.com/janus/api/v1/history/userSessions/d74d19cc-6aa7-f341-6012-aec433cc6f8d',
271
+ sessionId: 'd74d19cc-6aa7-f341-6012-aec433cc6f8d',
272
+ sessionType: SessionType.WEBEX_CALLING,
273
+ startTime: '2022-08-02T10:45:21.565Z',
274
+ endTime: '2022-08-02T10:53:01.624Z',
275
+ direction: 'OUTGOING',
276
+ disposition: Disposition.INITIATED,
277
+ other: {
278
+ id: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
279
+ name: 'test',
280
+ isPrivate: false,
281
+ callbackAddress: 'c9bde63c-e3e2-4db4-ba45-0d6c698ffd65',
282
+ phoneNumber: '123456679',
283
+ },
284
+ durationSeconds: 438,
285
+ joinedDurationSeconds: 457,
286
+ participantCount: 2,
287
+ links: {
288
+ locusUrl: 'https://locus-a.wbx2.com/locus/api/v1/loci/f5dbe4da-663b-3f73-a2fc-3a2fb0f12080',
289
+ conversationUrl: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/c9252ff0-9de2-11ec-a582-59d00c02cca9',
290
+ callbackAddress: '123-456-7890',
291
+ },
292
+ isDeleted: false,
293
+ isPMR: false,
294
+ correlationIds: ['58ea6cd9-852b-4a77-957f-e704c8b0e63e'],
295
+ };
296
+ export const MOCK_SESSION_EVENT = {
297
+ id: 'id',
298
+ data: {
299
+ userSessions: {
300
+ userSessions: [WEBEX_CALL_SESSION],
301
+ statusCode: 0,
302
+ },
303
+ eventType: MOBIUS_EVENT_KEYS.CALL_SESSION_EVENT_INCLUSIVE,
304
+ },
305
+ timestamp: 12345,
306
+ trackingId: 'tracking-id',
307
+ };
@@ -1,9 +1,9 @@
1
- export const CALL_HISTORY_FILE = 'CallHistory';
2
- export const FROM_DATE = '?from';
3
- export const HISTORY = 'history';
4
- export const LIMIT = 50;
5
- export const NUMBER_OF_DAYS = 10;
6
- export const RESPONSE_MESSAGE = 'responseMessage';
7
- export const SUCCESS_MESSAGE = 'SUCCESS';
8
- export const STATUS_CODE = 'statusCode';
9
- export const USER_SESSIONS = 'userSessions';
1
+ export const CALL_HISTORY_FILE = 'CallHistory';
2
+ export const FROM_DATE = '?from';
3
+ export const HISTORY = 'history';
4
+ export const LIMIT = 50;
5
+ export const NUMBER_OF_DAYS = 10;
6
+ export const RESPONSE_MESSAGE = 'responseMessage';
7
+ export const SUCCESS_MESSAGE = 'SUCCESS';
8
+ export const STATUS_CODE = 'statusCode';
9
+ export const USER_SESSIONS = 'userSessions';
@@ -1 +1 @@
1
- export {};
1
+ export {};