@webex/calling 0.0.1-next.0

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 (179) hide show
  1. package/README.md +67 -0
  2. package/dist/module/CallHistory/CallHistory.js +84 -0
  3. package/dist/module/CallHistory/callHistoryFixtures.js +307 -0
  4. package/dist/module/CallHistory/constants.js +9 -0
  5. package/dist/module/CallHistory/types.js +1 -0
  6. package/dist/module/CallSettings/CallSettings.js +65 -0
  7. package/dist/module/CallSettings/UcmBackendConnector.js +100 -0
  8. package/dist/module/CallSettings/WxCallBackendConnector.js +287 -0
  9. package/dist/module/CallSettings/constants.js +11 -0
  10. package/dist/module/CallSettings/testFixtures.js +62 -0
  11. package/dist/module/CallSettings/types.js +1 -0
  12. package/dist/module/CallingClient/CallingClient.js +268 -0
  13. package/dist/module/CallingClient/callRecordFixtures.js +93 -0
  14. package/dist/module/CallingClient/calling/CallerId/index.js +169 -0
  15. package/dist/module/CallingClient/calling/CallerId/types.js +1 -0
  16. package/dist/module/CallingClient/calling/call.js +1649 -0
  17. package/dist/module/CallingClient/calling/callManager.js +274 -0
  18. package/dist/module/CallingClient/calling/index.js +2 -0
  19. package/dist/module/CallingClient/calling/types.js +53 -0
  20. package/dist/module/CallingClient/callingClientFixtures.js +38 -0
  21. package/dist/module/CallingClient/constants.js +122 -0
  22. package/dist/module/CallingClient/line/index.js +110 -0
  23. package/dist/module/CallingClient/line/types.js +14 -0
  24. package/dist/module/CallingClient/registration/index.js +1 -0
  25. package/dist/module/CallingClient/registration/register.js +507 -0
  26. package/dist/module/CallingClient/registration/registerFixtures.js +28 -0
  27. package/dist/module/CallingClient/registration/types.js +1 -0
  28. package/dist/module/CallingClient/types.js +1 -0
  29. package/dist/module/Contacts/ContactsClient.js +487 -0
  30. package/dist/module/Contacts/constants.js +20 -0
  31. package/dist/module/Contacts/contactFixtures.js +284 -0
  32. package/dist/module/Contacts/types.js +10 -0
  33. package/dist/module/Errors/catalog/CallError.js +26 -0
  34. package/dist/module/Errors/catalog/CallingDeviceError.js +18 -0
  35. package/dist/module/Errors/catalog/ExtendedError.js +10 -0
  36. package/dist/module/Errors/catalog/LineError.js +24 -0
  37. package/dist/module/Errors/index.js +2 -0
  38. package/dist/module/Errors/types.js +48 -0
  39. package/dist/module/Events/impl/index.js +19 -0
  40. package/dist/module/Events/types.js +74 -0
  41. package/dist/module/Logger/index.js +114 -0
  42. package/dist/module/Logger/types.js +25 -0
  43. package/dist/module/Metrics/index.js +232 -0
  44. package/dist/module/Metrics/types.js +37 -0
  45. package/dist/module/SDKConnector/index.js +39 -0
  46. package/dist/module/SDKConnector/types.js +1 -0
  47. package/dist/module/SDKConnector/utils.js +12 -0
  48. package/dist/module/Voicemail/BroadworksBackendConnector.js +289 -0
  49. package/dist/module/Voicemail/UcmBackendConnector.js +275 -0
  50. package/dist/module/Voicemail/Voicemail.js +110 -0
  51. package/dist/module/Voicemail/WxCallBackendConnector.js +279 -0
  52. package/dist/module/Voicemail/constants.js +29 -0
  53. package/dist/module/Voicemail/types.js +1 -0
  54. package/dist/module/Voicemail/voicemailFixture.js +449 -0
  55. package/dist/module/common/Utils.js +802 -0
  56. package/dist/module/common/constants.js +40 -0
  57. package/dist/module/common/index.js +1 -0
  58. package/dist/module/common/testUtil.js +938 -0
  59. package/dist/module/common/types.js +57 -0
  60. package/dist/module/index.js +8 -0
  61. package/dist/types/CallHistory/CallHistory.d.ts +19 -0
  62. package/dist/types/CallHistory/CallHistory.d.ts.map +1 -0
  63. package/dist/types/CallHistory/callHistoryFixtures.d.ts +95 -0
  64. package/dist/types/CallHistory/callHistoryFixtures.d.ts.map +1 -0
  65. package/dist/types/CallHistory/constants.d.ts +10 -0
  66. package/dist/types/CallHistory/constants.d.ts.map +1 -0
  67. package/dist/types/CallHistory/types.d.ts +21 -0
  68. package/dist/types/CallHistory/types.d.ts.map +1 -0
  69. package/dist/types/CallSettings/CallSettings.d.ts +20 -0
  70. package/dist/types/CallSettings/CallSettings.d.ts.map +1 -0
  71. package/dist/types/CallSettings/UcmBackendConnector.d.ts +20 -0
  72. package/dist/types/CallSettings/UcmBackendConnector.d.ts.map +1 -0
  73. package/dist/types/CallSettings/WxCallBackendConnector.d.ts +22 -0
  74. package/dist/types/CallSettings/WxCallBackendConnector.d.ts.map +1 -0
  75. package/dist/types/CallSettings/constants.d.ts +12 -0
  76. package/dist/types/CallSettings/constants.d.ts.map +1 -0
  77. package/dist/types/CallSettings/testFixtures.d.ts +16 -0
  78. package/dist/types/CallSettings/testFixtures.d.ts.map +1 -0
  79. package/dist/types/CallSettings/types.d.ts +108 -0
  80. package/dist/types/CallSettings/types.d.ts.map +1 -0
  81. package/dist/types/CallingClient/CallingClient.d.ts +38 -0
  82. package/dist/types/CallingClient/CallingClient.d.ts.map +1 -0
  83. package/dist/types/CallingClient/callRecordFixtures.d.ts +4 -0
  84. package/dist/types/CallingClient/callRecordFixtures.d.ts.map +1 -0
  85. package/dist/types/CallingClient/calling/CallerId/index.d.ts +18 -0
  86. package/dist/types/CallingClient/calling/CallerId/index.d.ts.map +1 -0
  87. package/dist/types/CallingClient/calling/CallerId/types.d.ts +42 -0
  88. package/dist/types/CallingClient/calling/CallerId/types.d.ts.map +1 -0
  89. package/dist/types/CallingClient/calling/call.d.ts +95 -0
  90. package/dist/types/CallingClient/calling/call.d.ts.map +1 -0
  91. package/dist/types/CallingClient/calling/callManager.d.ts +22 -0
  92. package/dist/types/CallingClient/calling/callManager.d.ts.map +1 -0
  93. package/dist/types/CallingClient/calling/index.d.ts +3 -0
  94. package/dist/types/CallingClient/calling/index.d.ts.map +1 -0
  95. package/dist/types/CallingClient/calling/types.d.ts +204 -0
  96. package/dist/types/CallingClient/calling/types.d.ts.map +1 -0
  97. package/dist/types/CallingClient/callingClientFixtures.d.ts +19 -0
  98. package/dist/types/CallingClient/callingClientFixtures.d.ts.map +1 -0
  99. package/dist/types/CallingClient/constants.d.ts +123 -0
  100. package/dist/types/CallingClient/constants.d.ts.map +1 -0
  101. package/dist/types/CallingClient/line/index.d.ts +39 -0
  102. package/dist/types/CallingClient/line/index.d.ts.map +1 -0
  103. package/dist/types/CallingClient/line/types.d.ts +51 -0
  104. package/dist/types/CallingClient/line/types.d.ts.map +1 -0
  105. package/dist/types/CallingClient/registration/index.d.ts +2 -0
  106. package/dist/types/CallingClient/registration/index.d.ts.map +1 -0
  107. package/dist/types/CallingClient/registration/register.d.ts +65 -0
  108. package/dist/types/CallingClient/registration/register.d.ts.map +1 -0
  109. package/dist/types/CallingClient/registration/registerFixtures.d.ts +29 -0
  110. package/dist/types/CallingClient/registration/registerFixtures.d.ts.map +1 -0
  111. package/dist/types/CallingClient/registration/types.d.ts +21 -0
  112. package/dist/types/CallingClient/registration/types.d.ts.map +1 -0
  113. package/dist/types/CallingClient/types.d.ts +30 -0
  114. package/dist/types/CallingClient/types.d.ts.map +1 -0
  115. package/dist/types/Contacts/ContactsClient.d.ts +28 -0
  116. package/dist/types/Contacts/ContactsClient.d.ts.map +1 -0
  117. package/dist/types/Contacts/constants.d.ts +20 -0
  118. package/dist/types/Contacts/constants.d.ts.map +1 -0
  119. package/dist/types/Contacts/contactFixtures.d.ts +281 -0
  120. package/dist/types/Contacts/contactFixtures.d.ts.map +1 -0
  121. package/dist/types/Contacts/types.d.ts +75 -0
  122. package/dist/types/Contacts/types.d.ts.map +1 -0
  123. package/dist/types/Errors/catalog/CallError.d.ts +12 -0
  124. package/dist/types/Errors/catalog/CallError.d.ts.map +1 -0
  125. package/dist/types/Errors/catalog/CallingDeviceError.d.ts +11 -0
  126. package/dist/types/Errors/catalog/CallingDeviceError.d.ts.map +1 -0
  127. package/dist/types/Errors/catalog/ExtendedError.d.ts +7 -0
  128. package/dist/types/Errors/catalog/ExtendedError.d.ts.map +1 -0
  129. package/dist/types/Errors/catalog/LineError.d.ts +11 -0
  130. package/dist/types/Errors/catalog/LineError.d.ts.map +1 -0
  131. package/dist/types/Errors/index.d.ts +3 -0
  132. package/dist/types/Errors/index.d.ts.map +1 -0
  133. package/dist/types/Errors/types.d.ts +61 -0
  134. package/dist/types/Errors/types.d.ts.map +1 -0
  135. package/dist/types/Events/impl/index.d.ts +9 -0
  136. package/dist/types/Events/impl/index.d.ts.map +1 -0
  137. package/dist/types/Events/types.d.ts +284 -0
  138. package/dist/types/Events/types.d.ts.map +1 -0
  139. package/dist/types/Logger/index.d.ts +13 -0
  140. package/dist/types/Logger/index.d.ts.map +1 -0
  141. package/dist/types/Logger/types.d.ts +26 -0
  142. package/dist/types/Logger/types.d.ts.map +1 -0
  143. package/dist/types/Metrics/index.d.ts +6 -0
  144. package/dist/types/Metrics/index.d.ts.map +1 -0
  145. package/dist/types/Metrics/types.d.ts +43 -0
  146. package/dist/types/Metrics/types.d.ts.map +1 -0
  147. package/dist/types/SDKConnector/index.d.ts +13 -0
  148. package/dist/types/SDKConnector/index.d.ts.map +1 -0
  149. package/dist/types/SDKConnector/types.d.ts +129 -0
  150. package/dist/types/SDKConnector/types.d.ts.map +1 -0
  151. package/dist/types/SDKConnector/utils.d.ts +6 -0
  152. package/dist/types/SDKConnector/utils.d.ts.map +1 -0
  153. package/dist/types/Voicemail/BroadworksBackendConnector.d.ts +28 -0
  154. package/dist/types/Voicemail/BroadworksBackendConnector.d.ts.map +1 -0
  155. package/dist/types/Voicemail/UcmBackendConnector.d.ts +35 -0
  156. package/dist/types/Voicemail/UcmBackendConnector.d.ts.map +1 -0
  157. package/dist/types/Voicemail/Voicemail.d.ts +28 -0
  158. package/dist/types/Voicemail/Voicemail.d.ts.map +1 -0
  159. package/dist/types/Voicemail/WxCallBackendConnector.d.ts +24 -0
  160. package/dist/types/Voicemail/WxCallBackendConnector.d.ts.map +1 -0
  161. package/dist/types/Voicemail/constants.d.ts +30 -0
  162. package/dist/types/Voicemail/constants.d.ts.map +1 -0
  163. package/dist/types/Voicemail/types.d.ts +134 -0
  164. package/dist/types/Voicemail/types.d.ts.map +1 -0
  165. package/dist/types/Voicemail/voicemailFixture.d.ts +350 -0
  166. package/dist/types/Voicemail/voicemailFixture.d.ts.map +1 -0
  167. package/dist/types/common/Utils.d.ts +35 -0
  168. package/dist/types/common/Utils.d.ts.map +1 -0
  169. package/dist/types/common/constants.d.ts +41 -0
  170. package/dist/types/common/constants.d.ts.map +1 -0
  171. package/dist/types/common/index.d.ts +2 -0
  172. package/dist/types/common/index.d.ts.map +1 -0
  173. package/dist/types/common/testUtil.d.ts +3612 -0
  174. package/dist/types/common/testUtil.d.ts.map +1 -0
  175. package/dist/types/common/types.d.ts +192 -0
  176. package/dist/types/common/types.d.ts.map +1 -0
  177. package/dist/types/index.d.ts +9 -0
  178. package/dist/types/index.d.ts.map +1 -0
  179. package/package.json +161 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testUtil.d.ts","sourceRoot":"","sources":["../../../src/common/testUtil.ts"],"names":[],"mappings":";AASA,OAAO,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAStC,wBAAgB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkFhC;AAED,eAAO,MAAM,YAAY;;CAExB,CAAC;AAEF,eAAO,MAAM,eAAe,0DAW3B,CAAC;AAKF,eAAO,MAAM,aAAa,UAAiB,MAAM,KAAG,QAAQ,IAAI,CAE/D,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;CAK7B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;CASlC,CAAC;AAEF,eAAO,MAAM,0BAA0B,qBAWtC,CAAC;AAKF,eAAO,MAAM,iBAAiB;;;;;;;;;CAW7B,CAAC;AAKF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFjC,CAAC;AAKF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;CA6BvC,CAAC;AAOF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2rB3C,CAAC"}
@@ -0,0 +1,192 @@
1
+ export type MobiusDeviceId = string;
2
+ export type MobiusDeviceUri = string;
3
+ export type SettingEnabled = boolean;
4
+ export declare enum ALLOWED_SERVICES {
5
+ MOBIUS = "mobius",
6
+ JANUS = "janus"
7
+ }
8
+ export declare enum HTTP_METHODS {
9
+ GET = "GET",
10
+ POST = "POST",
11
+ PATCH = "PATCH",
12
+ PUT = "PUT",
13
+ DELETE = "DELETE"
14
+ }
15
+ export declare enum MobiusStatus {
16
+ ACTIVE = "active",
17
+ DEFAULT = "default"
18
+ }
19
+ export declare enum CALLING_BACKEND {
20
+ WXC = "WEBEX_CALLING",
21
+ BWRKS = "BROADWORKS_CALLING",
22
+ UCM = "UCM_CALLING",
23
+ INVALID = "Calling backend is currently not supported"
24
+ }
25
+ export type DeviceList = unknown;
26
+ export type CallId = string;
27
+ export type CorrelationId = string;
28
+ export type SipAddress = string;
29
+ export declare enum CallType {
30
+ URI = "uri",
31
+ TEL = "tel"
32
+ }
33
+ export type CallDetails = {
34
+ type: CallType;
35
+ address: SipAddress;
36
+ };
37
+ export type CallDestination = CallDetails;
38
+ export declare enum CallDirection {
39
+ INBOUND = "inbound",
40
+ OUTBOUND = "outbound"
41
+ }
42
+ export type AvatarId = string;
43
+ export type DisplayName = string;
44
+ export type DisplayInformation = {
45
+ avatarSrc: AvatarId | undefined;
46
+ name: DisplayName | undefined;
47
+ num: string | undefined;
48
+ id: string | undefined;
49
+ };
50
+ export type WebexRequestPayload = {
51
+ method?: HTTP_METHODS;
52
+ uri?: string;
53
+ addAuthHeader?: boolean;
54
+ headers?: {
55
+ [key: string]: string | null;
56
+ };
57
+ body?: object;
58
+ statusCode?: number;
59
+ json?: boolean;
60
+ service?: ALLOWED_SERVICES;
61
+ };
62
+ export type ErrorCode = string;
63
+ export type Digit = string | number;
64
+ export type ServerInfo = {
65
+ region: string;
66
+ uris: string[];
67
+ };
68
+ export type MobiusServers = {
69
+ primary: ServerInfo;
70
+ backup: ServerInfo;
71
+ };
72
+ export type IpInfo = {
73
+ ipv4: string;
74
+ ipv6: string;
75
+ };
76
+ export type DeviceType = {
77
+ deviceId: string;
78
+ uri: string;
79
+ status: string;
80
+ lastSeen: string;
81
+ addresses: string[];
82
+ clientDeviceUri: string;
83
+ };
84
+ export type RegionInfo = {
85
+ countryCode: string;
86
+ clientRegion: string;
87
+ };
88
+ export interface IDeviceInfo {
89
+ userId?: string;
90
+ errorCode?: number;
91
+ device?: DeviceType;
92
+ devices?: DeviceType[];
93
+ keepaliveInterval?: number;
94
+ callKeepaliveInterval?: number;
95
+ voicePortalNumber?: number;
96
+ voicePortalExtension?: number;
97
+ rehomingIntervalMin?: number;
98
+ rehomingIntervalMax?: number;
99
+ }
100
+ export interface IMetaContext {
101
+ file?: string;
102
+ method?: string;
103
+ }
104
+ export declare enum SORT {
105
+ ASC = "ASC",
106
+ DESC = "DESC",
107
+ DEFAULT = "DESC"
108
+ }
109
+ export declare enum SORT_BY {
110
+ END_TIME = "endTime",
111
+ DEFAULT = "endTime",
112
+ START_TIME = "startTime"
113
+ }
114
+ export declare enum ServiceIndicator {
115
+ CALLING = "calling",
116
+ CONTACT_CENTER = "contactcenter"
117
+ }
118
+ export type ServiceData = {
119
+ indicator: ServiceIndicator;
120
+ domain?: string;
121
+ };
122
+ export type PhoneNumber = {
123
+ type: string;
124
+ value: string;
125
+ primary?: boolean;
126
+ };
127
+ export type PersonInfo = {
128
+ id: string;
129
+ emails: string[];
130
+ phoneNumbers: PhoneNumber[];
131
+ displayName: string;
132
+ nickName: string;
133
+ firstName: string;
134
+ lastName: string;
135
+ avatar: string;
136
+ orgId: string;
137
+ created: string;
138
+ lastModified: string;
139
+ lastActivity: string;
140
+ status: string;
141
+ type: string;
142
+ };
143
+ export type PeopleListResponse = {
144
+ items: PersonInfo[];
145
+ notFoundIds: string[];
146
+ };
147
+ export declare enum DecodeType {
148
+ PEOPLE = "PEOPLE",
149
+ ORGANIZATION = "ORGANIZATION"
150
+ }
151
+ export type ContactDetail = {
152
+ type?: string;
153
+ value: string;
154
+ };
155
+ export interface LookupOptions {
156
+ ids: string[];
157
+ }
158
+ export type DSSLookupResponse = {
159
+ additionalInfo: {
160
+ department: string;
161
+ firstName: string;
162
+ identityManager: {
163
+ managerId: string;
164
+ displayName: string;
165
+ };
166
+ jobTitle: string;
167
+ lastName: string;
168
+ };
169
+ displayName: string;
170
+ emails: ContactDetail[];
171
+ entityProviderType: string;
172
+ identity: string;
173
+ orgId: string;
174
+ phoneNumbers: ContactDetail[];
175
+ photos: ContactDetail[];
176
+ sipAddresses: ContactDetail[];
177
+ type: string;
178
+ };
179
+ export type KmsKey = {
180
+ uri: string;
181
+ userId: string;
182
+ createDate: string;
183
+ expirationDate: string;
184
+ bindDate?: string;
185
+ resourceUri?: string;
186
+ };
187
+ export type KmsResourceObject = {
188
+ uri: string;
189
+ keyUris: string[];
190
+ authorizationUris: string[];
191
+ };
192
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/common/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AACpC,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AACrC,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;AAErC,oBAAY,gBAAgB;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AC;IAClB,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { createMicrophoneStream } from '@webex/media-helpers';
2
+ import { createCallSettingsClient } from './CallSettings/CallSettings';
3
+ import { createContactsClient } from './Contacts/ContactsClient';
4
+ import { createClient } from './CallingClient/CallingClient';
5
+ import { createCallHistoryClient } from './CallHistory/CallHistory';
6
+ import { createVoicemailClient } from './Voicemail/Voicemail';
7
+ import Logger from './Logger';
8
+ export { createClient, createCallHistoryClient, createMicrophoneStream, createVoicemailClient, createContactsClient, createCallSettingsClient, Logger, };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAC,wBAAwB,EAAC,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,uBAAuB,EAAC,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAC,qBAAqB,EAAC,MAAM,uBAAuB,CAAC;AAC5D,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,MAAM,GACP,CAAC"}
package/package.json ADDED
@@ -0,0 +1,161 @@
1
+ {
2
+ "name": "@webex/calling",
3
+ "version": "0.0.1-next.0",
4
+ "files": [
5
+ "dist"
6
+ ],
7
+ "main": "dist/module/index.js",
8
+ "module": "dist/module/index.js",
9
+ "types": "dist/types/index.d.ts",
10
+ "license": "MIT",
11
+ "author": "devsupport@webex.com",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://sqbu-github.cisco.com/WebExSquared/web-calling-sdk"
15
+ },
16
+ "engines": {
17
+ "node": ">=14.x"
18
+ },
19
+ "scripts": {
20
+ "prebuild": "rimraf dist",
21
+ "build": "tsc",
22
+ "build:src": "tsc",
23
+ "test": "jest --config=jest.config.js --runInBand",
24
+ "start": "web-dev-server --config web-dev-server.config.js",
25
+ "lint": "eslint 'src/**/*.ts'",
26
+ "fix:lint": "eslint 'src/**/*.ts' --fix",
27
+ "fix:prettier": "prettier \"src/**/*.ts\" --write",
28
+ "test:spell-check": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
29
+ "prepare": "husky install",
30
+ "publish:release": "semantic-release",
31
+ "build:docs": "typedoc --out docs/",
32
+ "docs": "typedoc --emit none",
33
+ "deploy:npm": "npm publish"
34
+ },
35
+ "dependencies": {
36
+ "@types/platform": "1.3.4",
37
+ "@webex/internal-media-core": "2.0.0",
38
+ "@webex/media-helpers": "workspace:^",
39
+ "async-mutex": "0.4.0",
40
+ "buffer": "6.0.3",
41
+ "jest-html-reporters": "3.0.11",
42
+ "platform": "1.3.6",
43
+ "uuid": "8.3.2",
44
+ "xstate": "4.30.6"
45
+ },
46
+ "devDependencies": {
47
+ "@babel/preset-typescript": "7.16.7",
48
+ "@commitlint/cli": "15.0.0",
49
+ "@commitlint/config-conventional": "15.0.0",
50
+ "@rollup/plugin-commonjs": "22.0.2",
51
+ "@rollup/plugin-json": "4.1.0",
52
+ "@rollup/plugin-node-resolve": "13.1.3",
53
+ "@semantic-release/changelog": "6.0.1",
54
+ "@semantic-release/git": "10.0.1",
55
+ "@semantic-release/release-notes-generator": "10.0.2",
56
+ "@types/chai": "4.2.21",
57
+ "@types/jest": "27.4.1",
58
+ "@types/mocha": "9.0.0",
59
+ "@types/node": "16.11.9",
60
+ "@types/uuid": "8.3.4",
61
+ "@typescript-eslint/eslint-plugin": "5.38.1",
62
+ "@typescript-eslint/parser": "5.38.1",
63
+ "@web/dev-server": "0.1.30",
64
+ "chai": "4.3.4",
65
+ "cspell": "5.19.2",
66
+ "esbuild": "^0.17.19",
67
+ "eslint": "8.8.0",
68
+ "eslint-config-airbnb-base": "15.0.0",
69
+ "eslint-config-prettier": "8.3.0",
70
+ "eslint-import-resolver-typescript": "2.4.0",
71
+ "eslint-plugin-import": "2.25.3",
72
+ "eslint-plugin-jsdoc": "38.0.4",
73
+ "eslint-plugin-prettier": "4.0.0",
74
+ "eslint-plugin-tsdoc": "0.2.14",
75
+ "husky": "7.0.0",
76
+ "jest": "27.5.1",
77
+ "jest-junit": "13.0.0",
78
+ "karma": "6.3.4",
79
+ "karma-chai": "0.1.0",
80
+ "karma-chrome-launcher": "3.1.0",
81
+ "karma-coverage": "2.0.3",
82
+ "karma-firefox-launcher": "2.1.1",
83
+ "karma-junit-reporter": "2.0.1",
84
+ "karma-mocha": "2.0.1",
85
+ "karma-mocha-reporter": "2.2.5",
86
+ "karma-safari-launcher": "1.0.0",
87
+ "karma-sauce-launcher": "4.3.6",
88
+ "karma-typescript": "5.5.3",
89
+ "karma-typescript-es6-transform": "5.5.3",
90
+ "mocha": "9.1.2",
91
+ "prettier": "2.5.1",
92
+ "puppeteer": "11.0.0",
93
+ "rimraf": "3.0.2",
94
+ "rollup": "2.68.0",
95
+ "rollup-plugin-polyfill-node": "0.8.0",
96
+ "rollup-plugin-terser": "7.0.2",
97
+ "rollup-plugin-typescript2": "0.31.2",
98
+ "semantic-release": "18.0.0",
99
+ "sinon": "12.0.1",
100
+ "ts-jest": "27.1.4",
101
+ "typed-emitter": "2.1.0",
102
+ "typedoc": "0.22.13",
103
+ "typescript": "4.9.5"
104
+ },
105
+ "commitlint": {
106
+ "extends": [
107
+ "@commitlint/config-conventional"
108
+ ],
109
+ "rules": {
110
+ "scope-case": [
111
+ 2,
112
+ "always",
113
+ [
114
+ "lower-case",
115
+ "pascal-case"
116
+ ]
117
+ ],
118
+ "body-max-line-length": [
119
+ 0,
120
+ "always",
121
+ 400
122
+ ],
123
+ "footer-max-line-length": [
124
+ 0,
125
+ "always",
126
+ 400
127
+ ]
128
+ }
129
+ },
130
+ "release": {
131
+ "plugins": [
132
+ "@semantic-release/commit-analyzer",
133
+ "@semantic-release/release-notes-generator",
134
+ "@semantic-release/changelog",
135
+ [
136
+ "@semantic-release/npm",
137
+ {
138
+ "npmPublish": true
139
+ }
140
+ ],
141
+ [
142
+ "@semantic-release/git",
143
+ {
144
+ "assets": [
145
+ "CHANGELOG.md",
146
+ "docs",
147
+ "package.json",
148
+ "yarn.lock"
149
+ ]
150
+ }
151
+ ]
152
+ ],
153
+ "branches": [
154
+ "main"
155
+ ]
156
+ },
157
+ "gh-pages-deploy": {
158
+ "staticpath": "docs",
159
+ "noprompt": true
160
+ }
161
+ }