@webex/calling 3.0.0-next.4 → 3.0.0-next.5

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 (123) hide show
  1. package/CHANGELOG.md +1403 -1403
  2. package/README.md +74 -74
  3. package/dist/module/CallHistory/CallHistory.js +81 -81
  4. package/dist/module/CallHistory/callHistoryFixtures.js +307 -307
  5. package/dist/module/CallHistory/constants.js +9 -9
  6. package/dist/module/CallHistory/types.js +1 -1
  7. package/dist/module/CallSettings/CallSettings.js +65 -65
  8. package/dist/module/CallSettings/UcmBackendConnector.js +100 -100
  9. package/dist/module/CallSettings/WxCallBackendConnector.js +287 -287
  10. package/dist/module/CallSettings/constants.js +11 -11
  11. package/dist/module/CallSettings/testFixtures.js +62 -62
  12. package/dist/module/CallSettings/types.js +1 -1
  13. package/dist/module/CallingClient/CallingClient.js +248 -248
  14. package/dist/module/CallingClient/callRecordFixtures.js +93 -93
  15. package/dist/module/CallingClient/calling/CallerId/index.js +169 -169
  16. package/dist/module/CallingClient/calling/CallerId/types.js +1 -1
  17. package/dist/module/CallingClient/calling/call.js +1658 -1658
  18. package/dist/module/CallingClient/calling/callManager.js +284 -284
  19. package/dist/module/CallingClient/calling/index.js +2 -2
  20. package/dist/module/CallingClient/calling/types.js +53 -53
  21. package/dist/module/CallingClient/callingClientFixtures.js +38 -38
  22. package/dist/module/CallingClient/constants.js +122 -122
  23. package/dist/module/CallingClient/line/index.js +158 -158
  24. package/dist/module/CallingClient/line/types.js +15 -15
  25. package/dist/module/CallingClient/registration/index.js +1 -1
  26. package/dist/module/CallingClient/registration/register.js +507 -507
  27. package/dist/module/CallingClient/registration/registerFixtures.js +28 -28
  28. package/dist/module/CallingClient/registration/types.js +1 -1
  29. package/dist/module/CallingClient/types.js +1 -1
  30. package/dist/module/Contacts/ContactsClient.js +484 -484
  31. package/dist/module/Contacts/constants.js +20 -20
  32. package/dist/module/Contacts/contactFixtures.js +284 -284
  33. package/dist/module/Contacts/types.js +10 -10
  34. package/dist/module/Errors/catalog/CallError.js +26 -26
  35. package/dist/module/Errors/catalog/CallingDeviceError.js +18 -18
  36. package/dist/module/Errors/catalog/ExtendedError.js +10 -10
  37. package/dist/module/Errors/catalog/LineError.js +24 -24
  38. package/dist/module/Errors/index.js +2 -2
  39. package/dist/module/Errors/types.js +48 -48
  40. package/dist/module/Events/impl/index.js +19 -19
  41. package/dist/module/Events/types.js +83 -83
  42. package/dist/module/Logger/index.js +114 -114
  43. package/dist/module/Logger/types.js +25 -25
  44. package/dist/module/Metrics/index.js +232 -232
  45. package/dist/module/Metrics/types.js +37 -37
  46. package/dist/module/SDKConnector/index.js +39 -39
  47. package/dist/module/SDKConnector/types.js +1 -1
  48. package/dist/module/SDKConnector/utils.js +12 -12
  49. package/dist/module/Voicemail/BroadworksBackendConnector.js +291 -291
  50. package/dist/module/Voicemail/UcmBackendConnector.js +279 -279
  51. package/dist/module/Voicemail/Voicemail.js +110 -110
  52. package/dist/module/Voicemail/WxCallBackendConnector.js +279 -279
  53. package/dist/module/Voicemail/constants.js +29 -29
  54. package/dist/module/Voicemail/types.js +1 -1
  55. package/dist/module/Voicemail/voicemailFixture.js +510 -510
  56. package/dist/module/api.js +6 -6
  57. package/dist/module/common/Utils.js +802 -802
  58. package/dist/module/common/constants.js +41 -41
  59. package/dist/module/common/index.js +1 -1
  60. package/dist/module/common/testUtil.js +938 -938
  61. package/dist/module/common/types.js +57 -57
  62. package/dist/module/index.js +8 -8
  63. package/dist/types/CallHistory/CallHistory.d.ts +17 -17
  64. package/dist/types/CallHistory/callHistoryFixtures.d.ts +94 -94
  65. package/dist/types/CallHistory/constants.d.ts +9 -9
  66. package/dist/types/CallHistory/types.d.ts +18 -18
  67. package/dist/types/CallSettings/CallSettings.d.ts +19 -19
  68. package/dist/types/CallSettings/UcmBackendConnector.d.ts +19 -19
  69. package/dist/types/CallSettings/WxCallBackendConnector.d.ts +21 -21
  70. package/dist/types/CallSettings/constants.d.ts +11 -11
  71. package/dist/types/CallSettings/testFixtures.d.ts +15 -15
  72. package/dist/types/CallSettings/types.d.ts +107 -107
  73. package/dist/types/CallingClient/CallingClient.d.ts +35 -35
  74. package/dist/types/CallingClient/callRecordFixtures.d.ts +3 -3
  75. package/dist/types/CallingClient/calling/CallerId/index.d.ts +17 -17
  76. package/dist/types/CallingClient/calling/CallerId/types.d.ts +41 -41
  77. package/dist/types/CallingClient/calling/call.d.ts +96 -96
  78. package/dist/types/CallingClient/calling/callManager.d.ts +25 -25
  79. package/dist/types/CallingClient/calling/index.d.ts +2 -2
  80. package/dist/types/CallingClient/calling/types.d.ts +206 -206
  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 +43 -43
  84. package/dist/types/CallingClient/line/types.d.ts +55 -55
  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 +26 -26
  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 +72 -72
  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 +288 -288
  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 +417 -417
  116. package/dist/types/api.d.ts +16 -16
  117. package/dist/types/common/Utils.d.ts +34 -34
  118. package/dist/types/common/constants.d.ts +41 -41
  119. package/dist/types/common/index.d.ts +1 -1
  120. package/dist/types/common/testUtil.d.ts +3611 -3611
  121. package/dist/types/common/types.d.ts +191 -191
  122. package/dist/types/index.d.ts +8 -8
  123. package/package.json +2 -2
@@ -1,30 +1,30 @@
1
- export declare const API_V1 = "api/v1";
2
- export declare const VOICEMAIL_FILE = "VoicemailClient";
3
- export declare const BROADWORKS_VOICEMAIL_FILE = "BroadworksBackendConnector";
4
- export declare const CALLS = "calls";
5
- export declare const BW_TOKEN_FETCH_ENDPOINT = "/idp/bwtoken/fetch";
6
- export declare const JSON_FORMAT = "?format=json";
7
- export declare const LIMIT = "&limit";
8
- export declare const MARK_AS_READ = "MarkAsRead";
9
- export declare const MARK_AS_UNREAD = "MarkAsUnread";
10
- export declare const MESSAGE_MEDIA_CONTENT = "messageMediaContent";
11
- export declare const MESSAGE_SUMMARY = "MessageSummary";
12
- export declare const NO_VOICEMAIL_MSG = "No additional voicemails";
13
- export declare const NO_VOICEMAIL_STATUS_CODE = 204;
14
- export declare const OFFSET = "?offset";
15
- export declare const OFFSET_INDEX = 0;
16
- export declare const OFFSET_LIMIT = 100;
17
- export declare const PREFIX = 2;
18
- export declare const RADIX_RAND = 36;
19
- export declare const SORT_ORDER = "&sortOrder";
20
- export declare const TRANSCRIPT_STATUS = "status";
21
- export declare const SUMMARY = "summary";
22
- export declare const TRANSCRIPT_CONTENT = "content";
23
- export declare const VMGATEWAY = "vmgateway";
24
- export declare const VOICEMAILS = "voicemails";
25
- export declare const VOICE_MESSAGING_MESSAGES = "VoiceMessagingMessages";
26
- export declare const NEW_MESSAGES = "newMessages";
27
- export declare const OLD_MESSAGES = "oldMessages";
28
- export declare const NEW_URGENT_MESSAGES = "newUrgentMessages";
29
- export declare const OLD_URGENT_MESSAGES = "oldUrgentMessages";
1
+ export declare const API_V1 = "api/v1";
2
+ export declare const VOICEMAIL_FILE = "VoicemailClient";
3
+ export declare const BROADWORKS_VOICEMAIL_FILE = "BroadworksBackendConnector";
4
+ export declare const CALLS = "calls";
5
+ export declare const BW_TOKEN_FETCH_ENDPOINT = "/idp/bwtoken/fetch";
6
+ export declare const JSON_FORMAT = "?format=json";
7
+ export declare const LIMIT = "&limit";
8
+ export declare const MARK_AS_READ = "MarkAsRead";
9
+ export declare const MARK_AS_UNREAD = "MarkAsUnread";
10
+ export declare const MESSAGE_MEDIA_CONTENT = "messageMediaContent";
11
+ export declare const MESSAGE_SUMMARY = "MessageSummary";
12
+ export declare const NO_VOICEMAIL_MSG = "No additional voicemails";
13
+ export declare const NO_VOICEMAIL_STATUS_CODE = 204;
14
+ export declare const OFFSET = "?offset";
15
+ export declare const OFFSET_INDEX = 0;
16
+ export declare const OFFSET_LIMIT = 100;
17
+ export declare const PREFIX = 2;
18
+ export declare const RADIX_RAND = 36;
19
+ export declare const SORT_ORDER = "&sortOrder";
20
+ export declare const TRANSCRIPT_STATUS = "status";
21
+ export declare const SUMMARY = "summary";
22
+ export declare const TRANSCRIPT_CONTENT = "content";
23
+ export declare const VMGATEWAY = "vmgateway";
24
+ export declare const VOICEMAILS = "voicemails";
25
+ export declare const VOICE_MESSAGING_MESSAGES = "VoiceMessagingMessages";
26
+ export declare const NEW_MESSAGES = "newMessages";
27
+ export declare const OLD_MESSAGES = "oldMessages";
28
+ export declare const NEW_URGENT_MESSAGES = "newUrgentMessages";
29
+ export declare const OLD_URGENT_MESSAGES = "oldUrgentMessages";
30
30
  //# sourceMappingURL=constants.d.ts.map
@@ -1,134 +1,134 @@
1
- import { ISDKConnector } from '../SDKConnector/types';
2
- import { LOGGER } from '../Logger/types';
3
- import { WebexRequestPayload, SORT, DisplayInformation } from '../common/types';
4
- export interface LoggerInterface {
5
- level: LOGGER;
6
- }
7
- export type BroadworksTokenType = {
8
- token: {
9
- bearer: string;
10
- };
11
- };
12
- export type ResponseString$ = {
13
- $: string;
14
- };
15
- export type ResponseNumber$ = {
16
- $: number;
17
- };
18
- export type CallingPartyInfo = {
19
- name: ResponseString$;
20
- userId?: ResponseString$;
21
- address: ResponseString$;
22
- userExternalId?: ResponseString$;
23
- };
24
- export type SummaryInfo = {
25
- newMessages: number;
26
- oldMessages: number;
27
- newUrgentMessages: number;
28
- oldUrgentMessages: number;
29
- };
30
- export type MessageInfo = {
31
- duration: ResponseString$;
32
- callingPartyInfo: CallingPartyInfo;
33
- time: ResponseNumber$;
34
- messageId: ResponseString$;
35
- read: ResponseString$ | object;
36
- };
37
- export type FilteredVoicemail = {
38
- messages: MessageInfo[];
39
- moreVMAvailable: boolean;
40
- };
41
- export type VoicemailList = {
42
- VoiceMessagingMessages: {
43
- messageInfoList: {
44
- messageInfo: MessageInfo[];
45
- };
46
- };
47
- };
48
- export type VoicemailResponseEvent = {
49
- statusCode: number;
50
- data: {
51
- voicemailList?: MessageInfo[];
52
- voicemailContent?: {
53
- type: string | null;
54
- content: string | null;
55
- };
56
- voicemailSummary?: SummaryInfo;
57
- voicemailTranscript?: string | null;
58
- error?: string;
59
- };
60
- message: string | null;
61
- };
62
- export interface IVoicemail {
63
- getSDKConnector: () => ISDKConnector;
64
- init: () => VoicemailResponseEvent;
65
- getVoicemailList: (offset: number, offsetLimit: number, sort: SORT, refresh?: boolean) => Promise<VoicemailResponseEvent>;
66
- getVoicemailContent: (messageId: string) => Promise<VoicemailResponseEvent>;
67
- getVoicemailSummary: () => Promise<VoicemailResponseEvent | null>;
68
- voicemailMarkAsRead: (messageId: string) => Promise<VoicemailResponseEvent>;
69
- voicemailMarkAsUnread: (messageId: string) => Promise<VoicemailResponseEvent>;
70
- deleteVoicemail: (messageId: string) => Promise<VoicemailResponseEvent>;
71
- getVMTranscript: (messageId: string) => Promise<VoicemailResponseEvent | null>;
72
- resolveContact: (callingPartyInfo: CallingPartyInfo) => Promise<DisplayInformation | null>;
73
- }
74
- export interface IWxCallBackendConnector extends IVoicemail {
75
- xsiEndpoint: WebexRequestPayload;
76
- userId: string;
77
- }
78
- export interface IBroadworksCallBackendConnector extends IVoicemail {
79
- xsiEndpoint: WebexRequestPayload;
80
- userId: string;
81
- bwtoken: string;
82
- xsiAccessToken: string;
83
- }
84
- export interface IUcmBackendConnector extends IVoicemail {
85
- userId: string;
86
- }
87
- export type From = {
88
- DisplayName: string;
89
- SmtpAddress: string;
90
- DtmfAccessId: string;
91
- };
92
- export type CallerId = {
93
- CallerNumber: string;
94
- CallerName: string;
95
- };
96
- export type UcmVmMessageInfo = {
97
- Subject: string;
98
- Read: string;
99
- Dispatch: string;
100
- Secure: string;
101
- Priority: string;
102
- Sensitivity: string;
103
- URI: string;
104
- MsgId: string;
105
- From: From;
106
- CallerId: CallerId;
107
- ArrivalTime: string;
108
- Size: string;
109
- Duration: string;
110
- IMAPUid: string;
111
- FromSub: string;
112
- MsgType: string;
113
- };
114
- export type UcmVMContentResponse = {
115
- data?: string;
116
- };
117
- export type UcmVMResponse = {
118
- '@total': string;
119
- Message: UcmVmMessageInfo;
120
- };
121
- export type MessageId = {
122
- messageId: string;
123
- eventType: string;
124
- status: string;
125
- };
126
- export type VoicemailEvent = {
127
- data: MessageId;
128
- filterMessage: boolean;
129
- id: string;
130
- sequenceNumber: number;
131
- timestamp: number;
132
- trackingId: string;
133
- };
1
+ import { ISDKConnector } from '../SDKConnector/types';
2
+ import { LOGGER } from '../Logger/types';
3
+ import { WebexRequestPayload, SORT, DisplayInformation } from '../common/types';
4
+ export interface LoggerInterface {
5
+ level: LOGGER;
6
+ }
7
+ export type BroadworksTokenType = {
8
+ token: {
9
+ bearer: string;
10
+ };
11
+ };
12
+ export type ResponseString$ = {
13
+ $: string;
14
+ };
15
+ export type ResponseNumber$ = {
16
+ $: number;
17
+ };
18
+ export type CallingPartyInfo = {
19
+ name: ResponseString$;
20
+ userId?: ResponseString$;
21
+ address: ResponseString$;
22
+ userExternalId?: ResponseString$;
23
+ };
24
+ export type SummaryInfo = {
25
+ newMessages: number;
26
+ oldMessages: number;
27
+ newUrgentMessages: number;
28
+ oldUrgentMessages: number;
29
+ };
30
+ export type MessageInfo = {
31
+ duration: ResponseString$;
32
+ callingPartyInfo: CallingPartyInfo;
33
+ time: ResponseNumber$;
34
+ messageId: ResponseString$;
35
+ read: ResponseString$ | object;
36
+ };
37
+ export type FilteredVoicemail = {
38
+ messages: MessageInfo[];
39
+ moreVMAvailable: boolean;
40
+ };
41
+ export type VoicemailList = {
42
+ VoiceMessagingMessages: {
43
+ messageInfoList: {
44
+ messageInfo: MessageInfo[];
45
+ };
46
+ };
47
+ };
48
+ export type VoicemailResponseEvent = {
49
+ statusCode: number;
50
+ data: {
51
+ voicemailList?: MessageInfo[];
52
+ voicemailContent?: {
53
+ type: string | null;
54
+ content: string | null;
55
+ };
56
+ voicemailSummary?: SummaryInfo;
57
+ voicemailTranscript?: string | null;
58
+ error?: string;
59
+ };
60
+ message: string | null;
61
+ };
62
+ export interface IVoicemail {
63
+ getSDKConnector: () => ISDKConnector;
64
+ init: () => VoicemailResponseEvent;
65
+ getVoicemailList: (offset: number, offsetLimit: number, sort: SORT, refresh?: boolean) => Promise<VoicemailResponseEvent>;
66
+ getVoicemailContent: (messageId: string) => Promise<VoicemailResponseEvent>;
67
+ getVoicemailSummary: () => Promise<VoicemailResponseEvent | null>;
68
+ voicemailMarkAsRead: (messageId: string) => Promise<VoicemailResponseEvent>;
69
+ voicemailMarkAsUnread: (messageId: string) => Promise<VoicemailResponseEvent>;
70
+ deleteVoicemail: (messageId: string) => Promise<VoicemailResponseEvent>;
71
+ getVMTranscript: (messageId: string) => Promise<VoicemailResponseEvent | null>;
72
+ resolveContact: (callingPartyInfo: CallingPartyInfo) => Promise<DisplayInformation | null>;
73
+ }
74
+ export interface IWxCallBackendConnector extends IVoicemail {
75
+ xsiEndpoint: WebexRequestPayload;
76
+ userId: string;
77
+ }
78
+ export interface IBroadworksCallBackendConnector extends IVoicemail {
79
+ xsiEndpoint: WebexRequestPayload;
80
+ userId: string;
81
+ bwtoken: string;
82
+ xsiAccessToken: string;
83
+ }
84
+ export interface IUcmBackendConnector extends IVoicemail {
85
+ userId: string;
86
+ }
87
+ export type From = {
88
+ DisplayName: string;
89
+ SmtpAddress: string;
90
+ DtmfAccessId: string;
91
+ };
92
+ export type CallerId = {
93
+ CallerNumber: string;
94
+ CallerName: string;
95
+ };
96
+ export type UcmVmMessageInfo = {
97
+ Subject: string;
98
+ Read: string;
99
+ Dispatch: string;
100
+ Secure: string;
101
+ Priority: string;
102
+ Sensitivity: string;
103
+ URI: string;
104
+ MsgId: string;
105
+ From: From;
106
+ CallerId: CallerId;
107
+ ArrivalTime: string;
108
+ Size: string;
109
+ Duration: string;
110
+ IMAPUid: string;
111
+ FromSub: string;
112
+ MsgType: string;
113
+ };
114
+ export type UcmVMContentResponse = {
115
+ data?: string;
116
+ };
117
+ export type UcmVMResponse = {
118
+ '@total': string;
119
+ Message: UcmVmMessageInfo;
120
+ };
121
+ export type MessageId = {
122
+ messageId: string;
123
+ eventType: string;
124
+ status: string;
125
+ };
126
+ export type VoicemailEvent = {
127
+ data: MessageId;
128
+ filterMessage: boolean;
129
+ id: string;
130
+ sequenceNumber: number;
131
+ timestamp: number;
132
+ trackingId: string;
133
+ };
134
134
  //# sourceMappingURL=types.d.ts.map