@webex/calling 0.0.1-next.4 → 0.0.1-next.6

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 (125) hide show
  1. package/dist/module/Voicemail/BroadworksBackendConnector.js +3 -1
  2. package/dist/module/Voicemail/UcmBackendConnector.js +10 -6
  3. package/dist/module/Voicemail/WxCallBackendConnector.js +5 -5
  4. package/dist/module/Voicemail/voicemailFixture.js +61 -0
  5. package/dist/module/common/Utils.js +10 -10
  6. package/dist/module/common/constants.js +1 -0
  7. package/package.json +2 -1
  8. package/dist/types/CallHistory/CallHistory.d.ts +0 -19
  9. package/dist/types/CallHistory/CallHistory.d.ts.map +0 -1
  10. package/dist/types/CallHistory/callHistoryFixtures.d.ts +0 -95
  11. package/dist/types/CallHistory/callHistoryFixtures.d.ts.map +0 -1
  12. package/dist/types/CallHistory/constants.d.ts +0 -10
  13. package/dist/types/CallHistory/constants.d.ts.map +0 -1
  14. package/dist/types/CallHistory/types.d.ts +0 -21
  15. package/dist/types/CallHistory/types.d.ts.map +0 -1
  16. package/dist/types/CallSettings/CallSettings.d.ts +0 -20
  17. package/dist/types/CallSettings/CallSettings.d.ts.map +0 -1
  18. package/dist/types/CallSettings/UcmBackendConnector.d.ts +0 -20
  19. package/dist/types/CallSettings/UcmBackendConnector.d.ts.map +0 -1
  20. package/dist/types/CallSettings/WxCallBackendConnector.d.ts +0 -22
  21. package/dist/types/CallSettings/WxCallBackendConnector.d.ts.map +0 -1
  22. package/dist/types/CallSettings/constants.d.ts +0 -12
  23. package/dist/types/CallSettings/constants.d.ts.map +0 -1
  24. package/dist/types/CallSettings/testFixtures.d.ts +0 -16
  25. package/dist/types/CallSettings/testFixtures.d.ts.map +0 -1
  26. package/dist/types/CallSettings/types.d.ts +0 -108
  27. package/dist/types/CallSettings/types.d.ts.map +0 -1
  28. package/dist/types/CallingClient/CallingClient.d.ts +0 -38
  29. package/dist/types/CallingClient/CallingClient.d.ts.map +0 -1
  30. package/dist/types/CallingClient/callRecordFixtures.d.ts +0 -4
  31. package/dist/types/CallingClient/callRecordFixtures.d.ts.map +0 -1
  32. package/dist/types/CallingClient/calling/CallerId/index.d.ts +0 -18
  33. package/dist/types/CallingClient/calling/CallerId/index.d.ts.map +0 -1
  34. package/dist/types/CallingClient/calling/CallerId/types.d.ts +0 -42
  35. package/dist/types/CallingClient/calling/CallerId/types.d.ts.map +0 -1
  36. package/dist/types/CallingClient/calling/call.d.ts +0 -95
  37. package/dist/types/CallingClient/calling/call.d.ts.map +0 -1
  38. package/dist/types/CallingClient/calling/callManager.d.ts +0 -22
  39. package/dist/types/CallingClient/calling/callManager.d.ts.map +0 -1
  40. package/dist/types/CallingClient/calling/index.d.ts +0 -3
  41. package/dist/types/CallingClient/calling/index.d.ts.map +0 -1
  42. package/dist/types/CallingClient/calling/types.d.ts +0 -204
  43. package/dist/types/CallingClient/calling/types.d.ts.map +0 -1
  44. package/dist/types/CallingClient/callingClientFixtures.d.ts +0 -19
  45. package/dist/types/CallingClient/callingClientFixtures.d.ts.map +0 -1
  46. package/dist/types/CallingClient/constants.d.ts +0 -123
  47. package/dist/types/CallingClient/constants.d.ts.map +0 -1
  48. package/dist/types/CallingClient/line/index.d.ts +0 -39
  49. package/dist/types/CallingClient/line/index.d.ts.map +0 -1
  50. package/dist/types/CallingClient/line/types.d.ts +0 -51
  51. package/dist/types/CallingClient/line/types.d.ts.map +0 -1
  52. package/dist/types/CallingClient/registration/index.d.ts +0 -2
  53. package/dist/types/CallingClient/registration/index.d.ts.map +0 -1
  54. package/dist/types/CallingClient/registration/register.d.ts +0 -65
  55. package/dist/types/CallingClient/registration/register.d.ts.map +0 -1
  56. package/dist/types/CallingClient/registration/registerFixtures.d.ts +0 -29
  57. package/dist/types/CallingClient/registration/registerFixtures.d.ts.map +0 -1
  58. package/dist/types/CallingClient/registration/types.d.ts +0 -21
  59. package/dist/types/CallingClient/registration/types.d.ts.map +0 -1
  60. package/dist/types/CallingClient/types.d.ts +0 -30
  61. package/dist/types/CallingClient/types.d.ts.map +0 -1
  62. package/dist/types/Contacts/ContactsClient.d.ts +0 -28
  63. package/dist/types/Contacts/ContactsClient.d.ts.map +0 -1
  64. package/dist/types/Contacts/constants.d.ts +0 -20
  65. package/dist/types/Contacts/constants.d.ts.map +0 -1
  66. package/dist/types/Contacts/contactFixtures.d.ts +0 -281
  67. package/dist/types/Contacts/contactFixtures.d.ts.map +0 -1
  68. package/dist/types/Contacts/types.d.ts +0 -75
  69. package/dist/types/Contacts/types.d.ts.map +0 -1
  70. package/dist/types/Errors/catalog/CallError.d.ts +0 -12
  71. package/dist/types/Errors/catalog/CallError.d.ts.map +0 -1
  72. package/dist/types/Errors/catalog/CallingDeviceError.d.ts +0 -11
  73. package/dist/types/Errors/catalog/CallingDeviceError.d.ts.map +0 -1
  74. package/dist/types/Errors/catalog/ExtendedError.d.ts +0 -7
  75. package/dist/types/Errors/catalog/ExtendedError.d.ts.map +0 -1
  76. package/dist/types/Errors/catalog/LineError.d.ts +0 -11
  77. package/dist/types/Errors/catalog/LineError.d.ts.map +0 -1
  78. package/dist/types/Errors/index.d.ts +0 -3
  79. package/dist/types/Errors/index.d.ts.map +0 -1
  80. package/dist/types/Errors/types.d.ts +0 -61
  81. package/dist/types/Errors/types.d.ts.map +0 -1
  82. package/dist/types/Events/impl/index.d.ts +0 -9
  83. package/dist/types/Events/impl/index.d.ts.map +0 -1
  84. package/dist/types/Events/types.d.ts +0 -284
  85. package/dist/types/Events/types.d.ts.map +0 -1
  86. package/dist/types/Logger/index.d.ts +0 -13
  87. package/dist/types/Logger/index.d.ts.map +0 -1
  88. package/dist/types/Logger/types.d.ts +0 -26
  89. package/dist/types/Logger/types.d.ts.map +0 -1
  90. package/dist/types/Metrics/index.d.ts +0 -6
  91. package/dist/types/Metrics/index.d.ts.map +0 -1
  92. package/dist/types/Metrics/types.d.ts +0 -43
  93. package/dist/types/Metrics/types.d.ts.map +0 -1
  94. package/dist/types/SDKConnector/index.d.ts +0 -13
  95. package/dist/types/SDKConnector/index.d.ts.map +0 -1
  96. package/dist/types/SDKConnector/types.d.ts +0 -129
  97. package/dist/types/SDKConnector/types.d.ts.map +0 -1
  98. package/dist/types/SDKConnector/utils.d.ts +0 -6
  99. package/dist/types/SDKConnector/utils.d.ts.map +0 -1
  100. package/dist/types/Voicemail/BroadworksBackendConnector.d.ts +0 -28
  101. package/dist/types/Voicemail/BroadworksBackendConnector.d.ts.map +0 -1
  102. package/dist/types/Voicemail/UcmBackendConnector.d.ts +0 -35
  103. package/dist/types/Voicemail/UcmBackendConnector.d.ts.map +0 -1
  104. package/dist/types/Voicemail/Voicemail.d.ts +0 -28
  105. package/dist/types/Voicemail/Voicemail.d.ts.map +0 -1
  106. package/dist/types/Voicemail/WxCallBackendConnector.d.ts +0 -24
  107. package/dist/types/Voicemail/WxCallBackendConnector.d.ts.map +0 -1
  108. package/dist/types/Voicemail/constants.d.ts +0 -30
  109. package/dist/types/Voicemail/constants.d.ts.map +0 -1
  110. package/dist/types/Voicemail/types.d.ts +0 -134
  111. package/dist/types/Voicemail/types.d.ts.map +0 -1
  112. package/dist/types/Voicemail/voicemailFixture.d.ts +0 -350
  113. package/dist/types/Voicemail/voicemailFixture.d.ts.map +0 -1
  114. package/dist/types/common/Utils.d.ts +0 -35
  115. package/dist/types/common/Utils.d.ts.map +0 -1
  116. package/dist/types/common/constants.d.ts +0 -41
  117. package/dist/types/common/constants.d.ts.map +0 -1
  118. package/dist/types/common/index.d.ts +0 -2
  119. package/dist/types/common/index.d.ts.map +0 -1
  120. package/dist/types/common/testUtil.d.ts +0 -3612
  121. package/dist/types/common/testUtil.d.ts.map +0 -1
  122. package/dist/types/common/types.d.ts +0 -192
  123. package/dist/types/common/types.d.ts.map +0 -1
  124. package/dist/types/index.d.ts +0 -9
  125. package/dist/types/index.d.ts.map +0 -1
@@ -1,281 +0,0 @@
1
- export declare const mockCity = "Edinburgh";
2
- export declare const mockCountry = "UK";
3
- export declare const mockState = "London";
4
- export declare const mockStreet = "511, Houston Street";
5
- export declare const mockZipCode = "455372";
6
- export declare const mockCompany = "Intel";
7
- export declare const mockDisplayNameOne = "Jane Doe";
8
- export declare const mockFirstName = "Jane";
9
- export declare const mockLastName = "Doe";
10
- export declare const mockEmail = "jando567@gmail.com";
11
- export declare const mockNumber1 = "jando@intel.com";
12
- export declare const mockNumber2 = "6647384294";
13
- export declare const mockSipAddress = "jando@go.webex.com";
14
- export declare const mockTitle = "Director";
15
- export declare const mockGroupName = "Other contacts";
16
- export declare const mockAvatarURL = "avatar-prod-us-east-2.webexcontent.com";
17
- export declare const mockDisplayNameTwo = "TestUser Webrtc";
18
- export declare const mockContactResponseBodyOne: {
19
- contacts: ({
20
- avatarUrlDomain: string;
21
- contactId: string;
22
- contactType: string;
23
- encryptionKeyUrl: string;
24
- groups: string[];
25
- isMigration: boolean;
26
- meta: {
27
- created: string;
28
- lastModified: string;
29
- };
30
- ownerId: string;
31
- phoneNumbers: {
32
- type: string;
33
- value: string;
34
- }[];
35
- sipAddresses: {
36
- type: string;
37
- value: string;
38
- }[];
39
- addressInfo?: undefined;
40
- avatarURL?: undefined;
41
- companyName?: undefined;
42
- displayName?: undefined;
43
- emails?: undefined;
44
- firstName?: undefined;
45
- lastName?: undefined;
46
- title?: undefined;
47
- } | {
48
- addressInfo: {
49
- city: string;
50
- country: string;
51
- state: string;
52
- street: string;
53
- zipCode: string;
54
- };
55
- avatarUrlDomain: string;
56
- avatarURL: string;
57
- companyName: string;
58
- contactId: string;
59
- contactType: string;
60
- displayName: string;
61
- emails: {
62
- type: string;
63
- value: string;
64
- }[];
65
- encryptionKeyUrl: string;
66
- firstName: string;
67
- groups: string[];
68
- isMigration: boolean;
69
- lastName: string;
70
- meta: {
71
- created: string;
72
- lastModified: string;
73
- };
74
- ownerId: string;
75
- phoneNumbers: {
76
- type: string;
77
- value: string;
78
- }[];
79
- sipAddresses: {
80
- type: string;
81
- value: string;
82
- }[];
83
- title: string;
84
- })[];
85
- groups: {
86
- meta: {
87
- created: string;
88
- lastModified: string;
89
- };
90
- groupId: string;
91
- groupType: string;
92
- ownerId: string;
93
- displayName: string;
94
- members: string[];
95
- encryptionKeyUrl: string;
96
- isMigration: boolean;
97
- }[];
98
- };
99
- export declare const mockContactResponseBodyTwo: {
100
- contacts: {
101
- avatarUrlDomain: string;
102
- contactId: string;
103
- contactType: string;
104
- displayName: string;
105
- encryptionKeyUrl: string;
106
- groups: string[];
107
- ownerId: string;
108
- }[];
109
- groups: {
110
- meta: {
111
- created: string;
112
- lastModified: string;
113
- };
114
- groupId: string;
115
- groupType: string;
116
- ownerId: string;
117
- displayName: string;
118
- members: string[];
119
- encryptionKeyUrl: string;
120
- isMigration: boolean;
121
- }[];
122
- };
123
- export declare const mockContactResponseBodyThird: {
124
- contacts: never[];
125
- groups: never[];
126
- ownerId: string;
127
- };
128
- export declare const mockContactListOne: ({
129
- addressInfo: {
130
- city: string;
131
- country: string;
132
- state: string;
133
- street: string;
134
- zipCode: string;
135
- };
136
- avatarUrlDomain: string;
137
- companyName: string;
138
- contactId: string;
139
- contactType: string;
140
- displayName: string;
141
- emails: {
142
- type: string;
143
- value: string;
144
- }[];
145
- encryptionKeyUrl: string;
146
- firstName: string;
147
- groups: string[];
148
- lastName: string;
149
- ownerId: string;
150
- phoneNumbers: {
151
- type: string;
152
- value: string;
153
- }[];
154
- sipAddresses: {
155
- type: string;
156
- value: string;
157
- }[];
158
- title: string;
159
- isMigration: boolean;
160
- meta: {
161
- created: string;
162
- lastModified: string;
163
- };
164
- avatarURL: string;
165
- department?: undefined;
166
- manager?: undefined;
167
- } | {
168
- avatarUrlDomain: string;
169
- contactId: string;
170
- contactType: string;
171
- department: string;
172
- displayName: string;
173
- emails: {
174
- value: string;
175
- }[];
176
- encryptionKeyUrl: string;
177
- firstName: string;
178
- groups: string[];
179
- lastName: string;
180
- manager: string;
181
- ownerId: string;
182
- phoneNumbers: {
183
- type: string;
184
- value: string;
185
- }[];
186
- sipAddresses: ({
187
- type: string;
188
- value: string;
189
- primary: boolean;
190
- } | {
191
- type: string;
192
- value: string;
193
- primary?: undefined;
194
- })[];
195
- title: string;
196
- avatarURL: string;
197
- addressInfo?: undefined;
198
- companyName?: undefined;
199
- isMigration?: undefined;
200
- meta?: undefined;
201
- })[];
202
- export declare const mockContactListTwo: {
203
- avatarUrlDomain: string;
204
- contactId: string;
205
- contactType: string;
206
- displayName: string;
207
- encryptionKeyUrl: string;
208
- groups: string[];
209
- ownerId: string;
210
- }[];
211
- export declare const mockContactGroupListOne: {
212
- meta: {
213
- created: string;
214
- lastModified: string;
215
- };
216
- groupId: string;
217
- groupType: string;
218
- ownerId: string;
219
- displayName: string;
220
- members: string[];
221
- encryptionKeyUrl: string;
222
- isMigration: boolean;
223
- }[];
224
- export declare const mockContactGroupListTwo: {
225
- meta: {
226
- created: string;
227
- lastModified: string;
228
- };
229
- groupId: string;
230
- groupType: string;
231
- ownerId: string;
232
- displayName: string;
233
- members: string[];
234
- encryptionKeyUrl: string;
235
- isMigration: boolean;
236
- }[];
237
- export declare const mockDSSResponse: {
238
- additionalInfo: {
239
- created: string;
240
- department: string;
241
- extLinkedAccts: {
242
- providerID: string;
243
- accountGUID: string;
244
- status: string;
245
- }[];
246
- firstName: string;
247
- identityManager: {
248
- displayName: string;
249
- managerId: string;
250
- };
251
- jobTitle: string;
252
- lastName: string;
253
- modified: string;
254
- nickName: string;
255
- userName: string;
256
- };
257
- displayName: string;
258
- emails: {
259
- value: string;
260
- }[];
261
- entityProviderType: string;
262
- identity: string;
263
- orgId: string;
264
- phoneNumbers: {
265
- type: string;
266
- value: string;
267
- }[];
268
- photos: {
269
- value: string;
270
- }[];
271
- sipAddresses: {
272
- type: string;
273
- value: string;
274
- primary: boolean;
275
- }[];
276
- type: string;
277
- }[];
278
- export declare const mockKmsKey: {
279
- uri: string;
280
- };
281
- //# sourceMappingURL=contactFixtures.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contactFixtures.d.ts","sourceRoot":"","sources":["../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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmC3B,CAAC;AAEF,eAAO,MAAM,UAAU;;CAEtB,CAAC"}
@@ -1,75 +0,0 @@
1
- import { ContactDetail } from '../common/types';
2
- import { ISDKConnector } from '../SDKConnector/types';
3
- export declare enum ContactType {
4
- CUSTOM = "CUSTOM",
5
- CLOUD = "CLOUD"
6
- }
7
- export type AddressType = {
8
- city?: string;
9
- country?: string;
10
- state?: string;
11
- street?: string;
12
- zipCode?: string;
13
- };
14
- export type Contact = {
15
- addressInfo?: AddressType;
16
- avatarURL?: string;
17
- avatarUrlDomain?: string;
18
- companyName?: string;
19
- contactId?: string;
20
- contactType: ContactType;
21
- department?: string;
22
- displayName?: string;
23
- emails?: ContactDetail[];
24
- encryptionKeyUrl: string;
25
- firstName?: string;
26
- groups: string[];
27
- kmsResourceObjectUrl?: string;
28
- lastName?: string;
29
- manager?: string;
30
- ownerId?: string;
31
- phoneNumbers?: ContactDetail[];
32
- primaryContactMethod?: string;
33
- schemas?: string;
34
- sipAddresses?: ContactDetail[];
35
- title?: string;
36
- };
37
- export declare enum GroupType {
38
- NORMAL = "NORMAL",
39
- EXTERNAL = "EXTERNAL"
40
- }
41
- export type ContactGroup = {
42
- displayName: string;
43
- encryptionKeyUrl: string;
44
- groupId: string;
45
- groupType: GroupType;
46
- members?: string[];
47
- ownerId?: string;
48
- };
49
- export type ContactList = {
50
- contacts: Contact[];
51
- groups: ContactGroup[];
52
- };
53
- export type ContactResponse = {
54
- statusCode: number;
55
- data: {
56
- contacts?: Contact[];
57
- groups?: ContactGroup[];
58
- contact?: Contact;
59
- group?: ContactGroup;
60
- error?: string;
61
- };
62
- message: string | null;
63
- };
64
- export interface IContacts {
65
- getSDKConnector: () => ISDKConnector;
66
- getContacts: () => Promise<ContactResponse>;
67
- createContactGroup: (displayName: string, encryptionKeyUrl?: string, groupType?: GroupType) => Promise<ContactResponse>;
68
- deleteContactGroup: (groupId: string) => Promise<ContactResponse>;
69
- createContact: (contactInfo: Contact) => Promise<ContactResponse>;
70
- deleteContact: (contactId: string) => Promise<ContactResponse>;
71
- }
72
- export type ContactIdContactInfo = {
73
- [Key: string]: Contact;
74
- };
75
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Contacts/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAEpD,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,C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IAC9B,kBAAkB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IAClE,aAAa,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IAClE,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;CAChE;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC"}
@@ -1,12 +0,0 @@
1
- import { CallErrorObject, ErrorContext, ErrorMessage, ERROR_LAYER, ERROR_TYPE } from '../types';
2
- import ExtendedError from './ExtendedError';
3
- import { CorrelationId } from '../../common/types';
4
- export declare class CallError extends ExtendedError {
5
- private correlationId;
6
- private errorLayer;
7
- constructor(msg: ErrorMessage, context: ErrorContext, type: ERROR_TYPE, correlationId: CorrelationId, errorLayer: ERROR_LAYER);
8
- setCallError(error: CallErrorObject): void;
9
- getCallError(): CallErrorObject;
10
- }
11
- export declare const createCallError: (msg: ErrorMessage, context: ErrorContext, type: ERROR_TYPE, correlationId: CorrelationId, errorLayer: ERROR_LAYER) => CallError;
12
- //# sourceMappingURL=CallError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CallError.d.ts","sourceRoot":"","sources":["../../../../src/Errors/catalog/CallError.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAC9F,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAKjD,qBAAa,SAAU,SAAQ,aAAa;IAC1C,OAAO,CAAC,aAAa,CAAgB;IAErC,OAAO,CAAC,UAAU,CAAc;gBAY9B,GAAG,EAAE,YAAY,EACjB,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,UAAU,EAChB,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,WAAW;IAYlB,YAAY,CAAC,KAAK,EAAE,eAAe;IAYnC,YAAY,IAAI,eAAe;CASvC;AAYD,eAAO,MAAM,eAAe,QACrB,YAAY,WACR,YAAY,QACf,UAAU,iBACD,aAAa,cAChB,WAAW,cACwC,CAAC"}
@@ -1,11 +0,0 @@
1
- import { MobiusStatus } from '../../common/types';
2
- import { ErrorContext, ErrorMessage, ErrorObject, ERROR_TYPE } from '../types';
3
- import ExtendedError from './ExtendedError';
4
- export declare class CallingClientError extends ExtendedError {
5
- status: MobiusStatus;
6
- constructor(msg: ErrorMessage, context: ErrorContext, type: ERROR_TYPE, status: MobiusStatus);
7
- setError(error: ErrorObject): void;
8
- getError(): ErrorObject;
9
- }
10
- export declare const createClientError: (msg: ErrorMessage, context: ErrorContext, type: ERROR_TYPE, status: MobiusStatus) => CallingClientError;
11
- //# sourceMappingURL=CallingDeviceError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CallingDeviceError.d.ts","sourceRoot":"","sources":["../../../../src/Errors/catalog/CallingDeviceError.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAC7E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAK5C,qBAAa,kBAAmB,SAAQ,aAAa;IAC5C,MAAM,EAAE,YAAY,CAAwB;gBAUvC,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY;IAUrF,QAAQ,CAAC,KAAK,EAAE,WAAW;IAW3B,QAAQ,IAAI,WAAW;CAG/B;AAWD,eAAO,MAAM,iBAAiB,QACvB,YAAY,WACR,YAAY,QACf,UAAU,UACR,YAAY,uBACiC,CAAC"}
@@ -1,7 +0,0 @@
1
- import { ErrorContext, ErrorMessage, ERROR_TYPE } from '../types';
2
- export default class ExtendedError extends Error {
3
- type: ERROR_TYPE;
4
- context: ErrorContext;
5
- constructor(msg: ErrorMessage, context: ErrorContext, type: ERROR_TYPE);
6
- }
7
- //# sourceMappingURL=ExtendedError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExtendedError.d.ts","sourceRoot":"","sources":["../../../../src/Errors/catalog/ExtendedError.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAC,MAAM,UAAU,CAAC;AAKhE,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,KAAK;IACvC,IAAI,EAAE,UAAU,CAAC;IAEjB,OAAO,EAAE,YAAY,CAAC;gBAOjB,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU;CAKvE"}
@@ -1,11 +0,0 @@
1
- import { LineStatus } from '../../CallingClient/line/types';
2
- import { ErrorMessage, ERROR_TYPE, LineErrorObject, ErrorContext } from '../types';
3
- import ExtendedError from './ExtendedError';
4
- export declare class LineError extends ExtendedError {
5
- status: LineStatus;
6
- constructor(msg: ErrorMessage, context: ErrorContext, type: ERROR_TYPE, status: LineStatus);
7
- setError(error: LineErrorObject): void;
8
- getError(): LineErrorObject;
9
- }
10
- export declare const createLineError: (msg: ErrorMessage, context: ErrorContext, type: ERROR_TYPE, status: LineStatus) => LineError;
11
- //# sourceMappingURL=LineError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LineError.d.ts","sourceRoot":"","sources":["../../../../src/Errors/catalog/LineError.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AACjF,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAK5C,qBAAa,SAAU,SAAQ,aAAa;IACnC,MAAM,EAAE,UAAU,CAAuB;gBAUpC,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU;IAUnF,QAAQ,CAAC,KAAK,EAAE,eAAe;IAY/B,QAAQ,IAAI,eAAe;CAQnC;AAWD,eAAO,MAAM,eAAe,QACrB,YAAY,WACR,YAAY,QACf,UAAU,UACR,UAAU,cAC0B,CAAC"}
@@ -1,3 +0,0 @@
1
- export { CallingClientError } from './catalog/CallingDeviceError';
2
- export { CallError } from './catalog/CallError';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC"}
@@ -1,61 +0,0 @@
1
- import { LineStatus } from '../CallingClient/line/types';
2
- import { CorrelationId, IMetaContext } from '../common/types';
3
- export type ErrorMessage = string;
4
- export declare enum ERROR_LAYER {
5
- CALL_CONTROL = "call_control",
6
- MEDIA = "media"
7
- }
8
- export declare enum ERROR_TYPE {
9
- CALL_ERROR = "call_error",
10
- DEFAULT = "default_error",
11
- FORBIDDEN_ERROR = "forbidden",
12
- NOT_FOUND = "not_found",
13
- REGISTRATION_ERROR = "registration_error",
14
- SERVICE_UNAVAILABLE = "service_unavailable",
15
- TIMEOUT = "timeout",
16
- TOKEN_ERROR = "token_error",
17
- SERVER_ERROR = "server_error"
18
- }
19
- export declare enum ERROR_CODE {
20
- UNAUTHORIZED = 401,
21
- FORBIDDEN = 403,
22
- DEVICE_NOT_FOUND = 404,
23
- INTERNAL_SERVER_ERROR = 500,
24
- NOT_IMPLEMENTED = 501,
25
- SERVICE_UNAVAILABLE = 503,
26
- BAD_REQUEST = 400,
27
- REQUEST_TIMEOUT = 408,
28
- TOO_MANY_REQUESTS = 429
29
- }
30
- export declare enum CALL_ERROR_CODE {
31
- INVALID_STATUS_UPDATE = 111,
32
- DEVICE_NOT_REGISTERED = 112,
33
- CALL_NOT_FOUND = 113,
34
- ERROR_PROCESSING = 114,
35
- USER_BUSY = 115,
36
- PARSING_ERROR = 116,
37
- TIMEOUT_ERROR = 117,
38
- NOT_ACCEPTABLE = 118,
39
- CALL_REJECTED = 119,
40
- NOT_AVAILABLE = 120
41
- }
42
- export declare enum DEVICE_ERROR_CODE {
43
- DEVICE_LIMIT_EXCEEDED = 101,
44
- DEVICE_CREATION_DISABLED = 102,
45
- DEVICE_CREATION_FAILED = 103
46
- }
47
- export interface ErrorContext extends IMetaContext {
48
- }
49
- export type ErrorObject = {
50
- message: ErrorMessage;
51
- type: ERROR_TYPE;
52
- context: ErrorContext;
53
- };
54
- export interface LineErrorObject extends ErrorObject {
55
- status: LineStatus;
56
- }
57
- export interface CallErrorObject extends ErrorObject {
58
- correlationId: CorrelationId;
59
- errorLayer: ERROR_LAYER;
60
- }
61
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/Errors/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAC,aAAa,EAAE,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,oBAAY,WAAW;IACrB,YAAY,iBAAiB;IAC7B,KAAK,UAAU;CAChB;AAED,oBAAY,UAAU;IACpB,UAAU,eAAe;IACzB,OAAO,kBAAkB;IACzB,eAAe,cAAc;IAC7B,SAAS,cAAc;IACvB,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;CAC9B;AAED,oBAAY,UAAU;IACpB,YAAY,MAAM;IAClB,SAAS,MAAM;IACf,gBAAgB,MAAM;IACtB,qBAAqB,MAAM;IAC3B,eAAe,MAAM;IACrB,mBAAmB,MAAM;IACzB,WAAW,MAAM;IACjB,eAAe,MAAM;IACrB,iBAAiB,MAAM;CACxB;AAED,oBAAY,eAAe;IACzB,qBAAqB,MAAM;IAC3B,qBAAqB,MAAM;IAC3B,cAAc,MAAM;IACpB,gBAAgB,MAAM;IACtB,SAAS,MAAM;IACf,aAAa,MAAM;IACnB,aAAa,MAAM;IACnB,cAAc,MAAM;IACpB,aAAa,MAAM;IACnB,aAAa,MAAM;CACpB;AAED,oBAAY,iBAAiB;IAC3B,qBAAqB,MAAM;IAC3B,wBAAwB,MAAM;IAC9B,sBAAsB,MAAM;CAC7B;AAED,MAAM,WAAW,YAAa,SAAQ,YAAY;CAAG;AAErD,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,MAAM,EAAE,UAAU,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,EAAE,WAAW,CAAC;CACzB"}
@@ -1,9 +0,0 @@
1
- import TypedEmitter, { EventMap } from 'typed-emitter';
2
- declare const Eventing_base: new <T_1 extends EventMap>() => TypedEmitter<T_1>;
3
- export declare class Eventing<T extends EventMap> extends Eventing_base<T> {
4
- emit<E extends keyof T>(event: E, ...args: Parameters<T[E]>): boolean;
5
- on<E extends keyof T>(event: E, listener: T[E]): this;
6
- off<E extends keyof T>(event: E, listener: T[E]): this;
7
- }
8
- export {};
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Events/impl/index.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,EAAE,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;;AAOrD,qBAAa,QAAQ,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,cAE/C,CAAC,CAAC;IAKH,IAAI,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO;IAsBrE,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAUrD,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;CAGvD"}