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

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,43 +1,43 @@
1
- import { LineError } from '../Errors/catalog/LineError';
2
- import { CallError, CallingClientError } from '../Errors';
3
- import { CallId, CorrelationId, IDeviceInfo } from '../common/types';
4
- export declare enum METRIC_TYPE {
5
- OPERATIONAL = "operational",
6
- BEHAVIORAL = "behavioral"
7
- }
8
- export declare enum METRIC_EVENT {
9
- CALL = "web-calling-sdk-callcontrol",
10
- CALL_ERROR = "web-calling-sdk-callcontrol-error",
11
- MEDIA = "web-calling-sdk-media",
12
- MEDIA_ERROR = "web-calling-sdk-media-error",
13
- REGISTRATION = "web-calling-sdk-registration",
14
- REGISTRATION_ERROR = "web-calling-sdk-registration-error",
15
- VOICEMAIL = "web-calling-sdk-voicemail",
16
- VOICEMAIL_ERROR = "web-calling-sdk-voicemail-error"
17
- }
18
- export declare enum REG_ACTION {
19
- REGISTER = "register",
20
- DEREGISTER = "deregister",
21
- KEEPALIVE_FAILURE = "keepaliveFailure"
22
- }
23
- export declare enum TRANSFER_ACTION {
24
- BLIND = "TRANSFER_BLIND",
25
- CONSULT = "TRANSFER_CONSULT"
26
- }
27
- export declare enum VOICEMAIL_ACTION {
28
- GET_VOICEMAILS = "get_voicemails",
29
- GET_VOICEMAIL_CONTENT = "get_voicemail_content",
30
- GET_VOICEMAIL_SUMMARY = "get_voicemail_summary",
31
- MARK_READ = "mark_read",
32
- MARK_UNREAD = "mark_unread",
33
- DELETE = "delete",
34
- TRANSCRIPT = "transcript"
35
- }
36
- export interface IMetricManager {
37
- setDeviceInfo: (deviceInfo: IDeviceInfo) => void;
38
- submitRegistrationMetric: (name: METRIC_EVENT, metricAction: REG_ACTION, type: METRIC_TYPE, error: LineError | CallingClientError | undefined) => void;
39
- submitCallMetric: (name: METRIC_EVENT, metricAction: string, type: METRIC_TYPE, callId: CallId, correlationId: CorrelationId, callError?: CallError) => void;
40
- submitMediaMetric: (name: METRIC_EVENT, metricAction: string, type: METRIC_TYPE, callId: CallId, correlationId: CorrelationId, localSdp?: string, remoteSdp?: string, callError?: CallError) => void;
41
- submitVoicemailMetric: (name: METRIC_EVENT, metricAction: string, type: METRIC_TYPE, messageId?: string, voicemailError?: string, statusCode?: number) => void;
42
- }
1
+ import { LineError } from '../Errors/catalog/LineError';
2
+ import { CallError, CallingClientError } from '../Errors';
3
+ import { CallId, CorrelationId, IDeviceInfo } from '../common/types';
4
+ export declare enum METRIC_TYPE {
5
+ OPERATIONAL = "operational",
6
+ BEHAVIORAL = "behavioral"
7
+ }
8
+ export declare enum METRIC_EVENT {
9
+ CALL = "web-calling-sdk-callcontrol",
10
+ CALL_ERROR = "web-calling-sdk-callcontrol-error",
11
+ MEDIA = "web-calling-sdk-media",
12
+ MEDIA_ERROR = "web-calling-sdk-media-error",
13
+ REGISTRATION = "web-calling-sdk-registration",
14
+ REGISTRATION_ERROR = "web-calling-sdk-registration-error",
15
+ VOICEMAIL = "web-calling-sdk-voicemail",
16
+ VOICEMAIL_ERROR = "web-calling-sdk-voicemail-error"
17
+ }
18
+ export declare enum REG_ACTION {
19
+ REGISTER = "register",
20
+ DEREGISTER = "deregister",
21
+ KEEPALIVE_FAILURE = "keepaliveFailure"
22
+ }
23
+ export declare enum TRANSFER_ACTION {
24
+ BLIND = "TRANSFER_BLIND",
25
+ CONSULT = "TRANSFER_CONSULT"
26
+ }
27
+ export declare enum VOICEMAIL_ACTION {
28
+ GET_VOICEMAILS = "get_voicemails",
29
+ GET_VOICEMAIL_CONTENT = "get_voicemail_content",
30
+ GET_VOICEMAIL_SUMMARY = "get_voicemail_summary",
31
+ MARK_READ = "mark_read",
32
+ MARK_UNREAD = "mark_unread",
33
+ DELETE = "delete",
34
+ TRANSCRIPT = "transcript"
35
+ }
36
+ export interface IMetricManager {
37
+ setDeviceInfo: (deviceInfo: IDeviceInfo) => void;
38
+ submitRegistrationMetric: (name: METRIC_EVENT, metricAction: REG_ACTION, type: METRIC_TYPE, error: LineError | CallingClientError | undefined) => void;
39
+ submitCallMetric: (name: METRIC_EVENT, metricAction: string, type: METRIC_TYPE, callId: CallId, correlationId: CorrelationId, callError?: CallError) => void;
40
+ submitMediaMetric: (name: METRIC_EVENT, metricAction: string, type: METRIC_TYPE, callId: CallId, correlationId: CorrelationId, localSdp?: string, remoteSdp?: string, callError?: CallError) => void;
41
+ submitVoicemailMetric: (name: METRIC_EVENT, metricAction: string, type: METRIC_TYPE, messageId?: string, voicemailError?: string, statusCode?: number) => void;
42
+ }
43
43
  //# sourceMappingURL=types.d.ts.map
@@ -1,13 +1,13 @@
1
- import { WebexRequestPayload } from '../common/types';
2
- import { ISDKConnector, WebexSDK } from './types';
3
- declare class SDKConnector implements ISDKConnector {
4
- setWebex(webexInstance: WebexSDK): void;
5
- get(): ISDKConnector;
6
- getWebex(): WebexSDK;
7
- request<T>(request: WebexRequestPayload): Promise<T>;
8
- registerListener<T>(event: string, cb: (data?: T) => void): void;
9
- unregisterListener(event: string): void;
10
- }
11
- declare const _default: Readonly<SDKConnector>;
12
- export default _default;
1
+ import { WebexRequestPayload } from '../common/types';
2
+ import { ISDKConnector, WebexSDK } from './types';
3
+ declare class SDKConnector implements ISDKConnector {
4
+ setWebex(webexInstance: WebexSDK): void;
5
+ get(): ISDKConnector;
6
+ getWebex(): WebexSDK;
7
+ request<T>(request: WebexRequestPayload): Promise<T>;
8
+ registerListener<T>(event: string, cb: (data?: T) => void): void;
9
+ unregisterListener(event: string): void;
10
+ }
11
+ declare const _default: Readonly<SDKConnector>;
12
+ export default _default;
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1,129 +1,129 @@
1
- import { DSSLookupResponse, KmsKey, KmsResourceObject, LookupOptions, PeopleListResponse, WebexRequestPayload } from '../common/types';
2
- type Listener = (e: string, data?: unknown) => void;
3
- type ListenerOff = (e: string) => void;
4
- export type ServiceHost = {
5
- host: string;
6
- ttl: number;
7
- priority: number;
8
- id: string;
9
- homeCluster: boolean;
10
- };
11
- export type Model = {
12
- _values: {
13
- key: string;
14
- };
15
- };
16
- export type ServiceCatalog = {
17
- serviceGroups: {
18
- postauth: [
19
- {
20
- _values: {
21
- name: string;
22
- hosts: ServiceHost[];
23
- };
24
- }
25
- ];
26
- };
27
- };
28
- export type ClientRegionInfo = {
29
- attribution: string;
30
- clientAddress: string;
31
- clientRegion: string;
32
- countryCode: string;
33
- disclaimer: string;
34
- regionCode: string;
35
- timezone: string;
36
- };
37
- export interface WebexSDK {
38
- version: string;
39
- canAuthorize: boolean;
40
- credentials: {
41
- getUserToken: () => Promise<string>;
42
- };
43
- ready: boolean;
44
- request: <T>(payload: WebexRequestPayload) => Promise<T>;
45
- internal: {
46
- mercury: {
47
- on: Listener;
48
- off: ListenerOff;
49
- connected: boolean;
50
- connecting: boolean;
51
- };
52
- calendar: unknown;
53
- device: {
54
- url: string;
55
- userId: string;
56
- orgId: string;
57
- version: string;
58
- callingBehavior: string;
59
- features: {
60
- entitlement: {
61
- models: Model[];
62
- };
63
- };
64
- };
65
- dss: {
66
- lookup: (options: LookupOptions) => Promise<DSSLookupResponse[]>;
67
- };
68
- encryption: {
69
- decryptText: (encryptionKeyUrl: string, encryptedData?: string) => Promise<string>;
70
- encryptText: (encryptionKeyUrl: string, text?: string) => Promise<string>;
71
- kms: {
72
- createUnboundKeys: (arg0: {
73
- count?: number;
74
- }) => Promise<KmsKey[]>;
75
- createResource: (arg0: {
76
- keyUris: string[];
77
- }) => Promise<KmsResourceObject>;
78
- bindKey: (arg0: {
79
- kroUri: string;
80
- keyUri: string;
81
- }) => Promise<KmsKey>;
82
- };
83
- };
84
- presence: unknown;
85
- support: unknown;
86
- services: {
87
- _serviceUrls: {
88
- mobius: string;
89
- identity: string;
90
- janus: string;
91
- wdm: string;
92
- broadworksIdpProxy: string;
93
- hydra: string;
94
- mercuryApi: string;
95
- 'ucmgmt-gateway': string;
96
- contactsService: string;
97
- directorySearch: string;
98
- };
99
- fetchClientRegionInfo: () => Promise<ClientRegionInfo>;
100
- };
101
- metrics: {
102
- submitClientMetrics: (name: string, data: unknown) => void;
103
- };
104
- };
105
- logger: {
106
- log: (payload: string) => void;
107
- error: (payload: string) => void;
108
- warn: (payload: string) => void;
109
- info: (payload: string) => void;
110
- trace: (payload: string) => void;
111
- debug: (payload: string) => void;
112
- };
113
- messages: unknown;
114
- memberships: unknown;
115
- people: {
116
- list: (arg: object) => Promise<PeopleListResponse>;
117
- };
118
- rooms: unknown;
119
- teams: unknown;
120
- }
121
- export interface ISDKConnector {
122
- setWebex: (webexInstance: WebexSDK) => void;
123
- getWebex: () => WebexSDK;
124
- get: () => ISDKConnector;
125
- registerListener: <T>(event: string, cb: (data?: T) => unknown) => void;
126
- unregisterListener: (event: string) => void;
127
- }
128
- export {};
1
+ import { DSSLookupResponse, KmsKey, KmsResourceObject, LookupOptions, PeopleListResponse, WebexRequestPayload } from '../common/types';
2
+ type Listener = (e: string, data?: unknown) => void;
3
+ type ListenerOff = (e: string) => void;
4
+ export type ServiceHost = {
5
+ host: string;
6
+ ttl: number;
7
+ priority: number;
8
+ id: string;
9
+ homeCluster: boolean;
10
+ };
11
+ export type Model = {
12
+ _values: {
13
+ key: string;
14
+ };
15
+ };
16
+ export type ServiceCatalog = {
17
+ serviceGroups: {
18
+ postauth: [
19
+ {
20
+ _values: {
21
+ name: string;
22
+ hosts: ServiceHost[];
23
+ };
24
+ }
25
+ ];
26
+ };
27
+ };
28
+ export type ClientRegionInfo = {
29
+ attribution: string;
30
+ clientAddress: string;
31
+ clientRegion: string;
32
+ countryCode: string;
33
+ disclaimer: string;
34
+ regionCode: string;
35
+ timezone: string;
36
+ };
37
+ export interface WebexSDK {
38
+ version: string;
39
+ canAuthorize: boolean;
40
+ credentials: {
41
+ getUserToken: () => Promise<string>;
42
+ };
43
+ ready: boolean;
44
+ request: <T>(payload: WebexRequestPayload) => Promise<T>;
45
+ internal: {
46
+ mercury: {
47
+ on: Listener;
48
+ off: ListenerOff;
49
+ connected: boolean;
50
+ connecting: boolean;
51
+ };
52
+ calendar: unknown;
53
+ device: {
54
+ url: string;
55
+ userId: string;
56
+ orgId: string;
57
+ version: string;
58
+ callingBehavior: string;
59
+ features: {
60
+ entitlement: {
61
+ models: Model[];
62
+ };
63
+ };
64
+ };
65
+ dss: {
66
+ lookup: (options: LookupOptions) => Promise<DSSLookupResponse[]>;
67
+ };
68
+ encryption: {
69
+ decryptText: (encryptionKeyUrl: string, encryptedData?: string) => Promise<string>;
70
+ encryptText: (encryptionKeyUrl: string, text?: string) => Promise<string>;
71
+ kms: {
72
+ createUnboundKeys: (arg0: {
73
+ count?: number;
74
+ }) => Promise<KmsKey[]>;
75
+ createResource: (arg0: {
76
+ keyUris: string[];
77
+ }) => Promise<KmsResourceObject>;
78
+ bindKey: (arg0: {
79
+ kroUri: string;
80
+ keyUri: string;
81
+ }) => Promise<KmsKey>;
82
+ };
83
+ };
84
+ presence: unknown;
85
+ support: unknown;
86
+ services: {
87
+ _serviceUrls: {
88
+ mobius: string;
89
+ identity: string;
90
+ janus: string;
91
+ wdm: string;
92
+ broadworksIdpProxy: string;
93
+ hydra: string;
94
+ mercuryApi: string;
95
+ 'ucmgmt-gateway': string;
96
+ contactsService: string;
97
+ directorySearch: string;
98
+ };
99
+ fetchClientRegionInfo: () => Promise<ClientRegionInfo>;
100
+ };
101
+ metrics: {
102
+ submitClientMetrics: (name: string, data: unknown) => void;
103
+ };
104
+ };
105
+ logger: {
106
+ log: (payload: string) => void;
107
+ error: (payload: string) => void;
108
+ warn: (payload: string) => void;
109
+ info: (payload: string) => void;
110
+ trace: (payload: string) => void;
111
+ debug: (payload: string) => void;
112
+ };
113
+ messages: unknown;
114
+ memberships: unknown;
115
+ people: {
116
+ list: (arg: object) => Promise<PeopleListResponse>;
117
+ };
118
+ rooms: unknown;
119
+ teams: unknown;
120
+ }
121
+ export interface ISDKConnector {
122
+ setWebex: (webexInstance: WebexSDK) => void;
123
+ getWebex: () => WebexSDK;
124
+ get: () => ISDKConnector;
125
+ registerListener: <T>(event: string, cb: (data?: T) => unknown) => void;
126
+ unregisterListener: (event: string) => void;
127
+ }
128
+ export {};
129
129
  //# sourceMappingURL=types.d.ts.map
@@ -1,6 +1,6 @@
1
- import { WebexSDK } from './types';
2
- export declare const validateWebex: (webexInstance: WebexSDK) => {
3
- error: Error | undefined;
4
- success: boolean;
5
- };
1
+ import { WebexSDK } from './types';
2
+ export declare const validateWebex: (webexInstance: WebexSDK) => {
3
+ error: Error | undefined;
4
+ success: boolean;
5
+ };
6
6
  //# sourceMappingURL=utils.d.ts.map
@@ -1,28 +1,28 @@
1
- import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
2
- import { LoggerInterface, IBroadworksCallBackendConnector, VoicemailResponseEvent, CallingPartyInfo } from './types';
3
- import { DisplayInformation, SORT, WebexRequestPayload } from '../common/types';
4
- export declare class BroadworksBackendConnector implements IBroadworksCallBackendConnector {
5
- bwtoken: string;
6
- userId: string;
7
- xsiAccessToken: string;
8
- xsiEndpoint: WebexRequestPayload;
9
- private context;
10
- private sdkConnector;
11
- private webex;
12
- private xsiVoiceMessageURI;
13
- constructor(webex: WebexSDK, logger: LoggerInterface);
14
- init(): VoicemailResponseEvent;
15
- getSDKConnector(): ISDKConnector;
16
- private getUserId;
17
- private getBwToken;
18
- private setXsiVoiceMessageURI;
19
- getVoicemailList(offset: number, offsetLimit: number, sort: SORT, refresh?: boolean): Promise<VoicemailResponseEvent>;
20
- getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
21
- getVoicemailSummary(): Promise<VoicemailResponseEvent | null>;
22
- voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
23
- voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
24
- deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
25
- getVMTranscript(messageId: string): Promise<VoicemailResponseEvent | null>;
26
- resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
27
- }
1
+ import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
2
+ import { LoggerInterface, IBroadworksCallBackendConnector, VoicemailResponseEvent, CallingPartyInfo } from './types';
3
+ import { DisplayInformation, SORT, WebexRequestPayload } from '../common/types';
4
+ export declare class BroadworksBackendConnector implements IBroadworksCallBackendConnector {
5
+ bwtoken: string;
6
+ userId: string;
7
+ xsiAccessToken: string;
8
+ xsiEndpoint: WebexRequestPayload;
9
+ private context;
10
+ private sdkConnector;
11
+ private webex;
12
+ private xsiVoiceMessageURI;
13
+ constructor(webex: WebexSDK, logger: LoggerInterface);
14
+ init(): VoicemailResponseEvent;
15
+ getSDKConnector(): ISDKConnector;
16
+ private getUserId;
17
+ private getBwToken;
18
+ private setXsiVoiceMessageURI;
19
+ getVoicemailList(offset: number, offsetLimit: number, sort: SORT, refresh?: boolean): Promise<VoicemailResponseEvent>;
20
+ getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
21
+ getVoicemailSummary(): Promise<VoicemailResponseEvent | null>;
22
+ voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
23
+ voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
24
+ deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
25
+ getVMTranscript(messageId: string): Promise<VoicemailResponseEvent | null>;
26
+ resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
27
+ }
28
28
  //# sourceMappingURL=BroadworksBackendConnector.d.ts.map
@@ -1,35 +1,35 @@
1
- import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
2
- import { SORT, DisplayInformation } from '../common/types';
3
- import { CallingPartyInfo, IUcmBackendConnector, LoggerInterface, VoicemailResponseEvent } from './types';
4
- export declare class UcmBackendConnector implements IUcmBackendConnector {
5
- vgEndpoint: string | unknown;
6
- userId: string;
7
- orgId: string;
8
- private sdkConnector;
9
- private webex;
10
- private vgVoiceMessageURI;
11
- constructor(webex: WebexSDK, logger: LoggerInterface);
12
- init(): VoicemailResponseEvent;
13
- getSDKConnector(): ISDKConnector;
14
- private setUcmVoiceMessageBaseURI;
15
- getVoicemailList(offset: number, offsetLimit: number, sort: SORT): Promise<import("../CallHistory/types").JanusResponseEvent | VoicemailResponseEvent | import("../CallSettings/types").CallSettingResponse | import("../Contacts/types").ContactResponse>;
16
- getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
17
- getVoicemailSummary(): Promise<VoicemailResponseEvent | null>;
18
- getVoicemailContentUcm(messageId: string): Promise<unknown>;
19
- returnUcmPromise(voicemailContentUrl: string, mercuryApi: string): Promise<{
20
- statusCode: number;
21
- data: {
22
- voicemailContent: {
23
- type: string;
24
- content: string;
25
- };
26
- };
27
- message: string;
28
- }>;
29
- voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
30
- voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
31
- deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
32
- getVMTranscript(messageId: string): Promise<VoicemailResponseEvent | null>;
33
- resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
34
- }
1
+ import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
2
+ import { SORT, DisplayInformation } from '../common/types';
3
+ import { CallingPartyInfo, IUcmBackendConnector, LoggerInterface, VoicemailResponseEvent } from './types';
4
+ export declare class UcmBackendConnector implements IUcmBackendConnector {
5
+ vgEndpoint: string | unknown;
6
+ userId: string;
7
+ orgId: string;
8
+ private sdkConnector;
9
+ private webex;
10
+ private vgVoiceMessageURI;
11
+ constructor(webex: WebexSDK, logger: LoggerInterface);
12
+ init(): VoicemailResponseEvent;
13
+ getSDKConnector(): ISDKConnector;
14
+ private setUcmVoiceMessageBaseURI;
15
+ getVoicemailList(offset: number, offsetLimit: number, sort: SORT): Promise<import("../CallHistory/types").JanusResponseEvent | VoicemailResponseEvent | import("../CallSettings/types").CallSettingResponse | import("../Contacts/types").ContactResponse>;
16
+ getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
17
+ getVoicemailSummary(): Promise<VoicemailResponseEvent | null>;
18
+ getVoicemailContentUcm(messageId: string): Promise<unknown>;
19
+ returnUcmPromise(voicemailContentUrl: string, mercuryApi: string): Promise<{
20
+ statusCode: number;
21
+ data: {
22
+ voicemailContent: {
23
+ type: string;
24
+ content: string;
25
+ };
26
+ };
27
+ message: string;
28
+ }>;
29
+ voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
30
+ voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
31
+ deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
32
+ getVMTranscript(messageId: string): Promise<VoicemailResponseEvent | null>;
33
+ resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
34
+ }
35
35
  //# sourceMappingURL=UcmBackendConnector.d.ts.map
@@ -1,28 +1,28 @@
1
- import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
2
- import { IVoicemail, VoicemailResponseEvent, LoggerInterface, CallingPartyInfo } from './types';
3
- import { DisplayInformation, SORT } from '../common/types';
4
- import { VoicemailEventTypes } from '../Events/types';
5
- import { Eventing } from '../Events/impl';
6
- export declare class Voicemail extends Eventing<VoicemailEventTypes> implements IVoicemail {
7
- logger: LoggerInterface;
8
- private sdkConnector;
9
- private webex;
10
- private callingBackend;
11
- private backendConnector;
12
- private metricManager;
13
- constructor(webex: WebexSDK, logger: LoggerInterface);
14
- init(): VoicemailResponseEvent;
15
- private initializeBackendConnector;
16
- private submitMetric;
17
- getVoicemailList(offset: number, offsetLimit: number, sort: SORT, refresh?: boolean): Promise<VoicemailResponseEvent>;
18
- getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
19
- getVoicemailSummary(): Promise<VoicemailResponseEvent | null>;
20
- voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
21
- voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
22
- deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
23
- getVMTranscript(messageId: string): Promise<VoicemailResponseEvent | null>;
24
- resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
25
- getSDKConnector(): ISDKConnector;
26
- }
27
- export declare const createVoicemailClient: (webex: WebexSDK, logger: LoggerInterface) => IVoicemail;
1
+ import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
2
+ import { IVoicemail, VoicemailResponseEvent, LoggerInterface, CallingPartyInfo } from './types';
3
+ import { DisplayInformation, SORT } from '../common/types';
4
+ import { VoicemailEventTypes } from '../Events/types';
5
+ import { Eventing } from '../Events/impl';
6
+ export declare class Voicemail extends Eventing<VoicemailEventTypes> implements IVoicemail {
7
+ logger: LoggerInterface;
8
+ private sdkConnector;
9
+ private webex;
10
+ private callingBackend;
11
+ private backendConnector;
12
+ private metricManager;
13
+ constructor(webex: WebexSDK, logger: LoggerInterface);
14
+ init(): VoicemailResponseEvent;
15
+ private initializeBackendConnector;
16
+ private submitMetric;
17
+ getVoicemailList(offset: number, offsetLimit: number, sort: SORT, refresh?: boolean): Promise<VoicemailResponseEvent>;
18
+ getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
19
+ getVoicemailSummary(): Promise<VoicemailResponseEvent | null>;
20
+ voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
21
+ voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
22
+ deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
23
+ getVMTranscript(messageId: string): Promise<VoicemailResponseEvent | null>;
24
+ resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
25
+ getSDKConnector(): ISDKConnector;
26
+ }
27
+ export declare const createVoicemailClient: (webex: WebexSDK, logger: LoggerInterface) => IVoicemail;
28
28
  //# sourceMappingURL=Voicemail.d.ts.map
@@ -1,24 +1,24 @@
1
- import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
2
- import { LoggerInterface, IWxCallBackendConnector, VoicemailResponseEvent, CallingPartyInfo } from './types';
3
- import { DisplayInformation, SORT, WebexRequestPayload } from '../common/types';
4
- export declare class WxCallBackendConnector implements IWxCallBackendConnector {
5
- xsiEndpoint: WebexRequestPayload;
6
- userId: string;
7
- private context;
8
- private sdkConnector;
9
- private xsiVoiceMessageURI;
10
- private webex;
11
- constructor(webex: WebexSDK, logger: LoggerInterface);
12
- init(): VoicemailResponseEvent;
13
- getSDKConnector(): ISDKConnector;
14
- private setXsiVoiceMessageURI;
15
- getVoicemailList(offset: number, offsetLimit: number, sort: SORT, refresh?: boolean): Promise<import("../CallHistory/types").JanusResponseEvent | VoicemailResponseEvent | import("../CallSettings/types").CallSettingResponse | import("../Contacts/types").ContactResponse>;
16
- getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
17
- getVoicemailSummary(): Promise<VoicemailResponseEvent>;
18
- voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
19
- voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
20
- deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
21
- getVMTranscript(messageId: string): Promise<VoicemailResponseEvent>;
22
- resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
23
- }
1
+ import { ISDKConnector, WebexSDK } from '../SDKConnector/types';
2
+ import { LoggerInterface, IWxCallBackendConnector, VoicemailResponseEvent, CallingPartyInfo } from './types';
3
+ import { DisplayInformation, SORT, WebexRequestPayload } from '../common/types';
4
+ export declare class WxCallBackendConnector implements IWxCallBackendConnector {
5
+ xsiEndpoint: WebexRequestPayload;
6
+ userId: string;
7
+ private context;
8
+ private sdkConnector;
9
+ private xsiVoiceMessageURI;
10
+ private webex;
11
+ constructor(webex: WebexSDK, logger: LoggerInterface);
12
+ init(): VoicemailResponseEvent;
13
+ getSDKConnector(): ISDKConnector;
14
+ private setXsiVoiceMessageURI;
15
+ getVoicemailList(offset: number, offsetLimit: number, sort: SORT, refresh?: boolean): Promise<import("../CallHistory/types").JanusResponseEvent | VoicemailResponseEvent | import("../CallSettings/types").CallSettingResponse | import("../Contacts/types").ContactResponse>;
16
+ getVoicemailContent(messageId: string): Promise<VoicemailResponseEvent>;
17
+ getVoicemailSummary(): Promise<VoicemailResponseEvent>;
18
+ voicemailMarkAsRead(messageId: string): Promise<VoicemailResponseEvent>;
19
+ voicemailMarkAsUnread(messageId: string): Promise<VoicemailResponseEvent>;
20
+ deleteVoicemail(messageId: string): Promise<VoicemailResponseEvent>;
21
+ getVMTranscript(messageId: string): Promise<VoicemailResponseEvent>;
22
+ resolveContact(callingPartyInfo: CallingPartyInfo): Promise<DisplayInformation | null>;
23
+ }
24
24
  //# sourceMappingURL=WxCallBackendConnector.d.ts.map