@voicenter-team/opensips-js 1.0.77 → 1.0.78

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voicenter-team/opensips-js",
3
- "version": "1.0.77",
3
+ "version": "1.0.78",
4
4
  "description": "The JS package for opensips",
5
5
  "default": "src/index.ts",
6
6
  "jsdelivr": "dist/opensips-js.umd.js",
@@ -58,7 +58,8 @@
58
58
  "jssip": "3.10.0",
59
59
  "loglevel": "^1.8.1",
60
60
  "mime": "^3.0.0",
61
- "p-iteration": "^1.1.8"
61
+ "p-iteration": "^1.1.8",
62
+ "sdp-transform": "2.14.1"
62
63
  },
63
64
  "files": [
64
65
  "dist",
@@ -14,6 +14,8 @@ import {
14
14
  } from 'jssip/lib/SIPMessage'
15
15
  import { UAConfiguration } from 'jssip/lib/UA'
16
16
 
17
+ import { MODULES } from '@/enum/modules'
18
+
17
19
  export type IntervalType = ReturnType<typeof setInterval>
18
20
 
19
21
  export type ListenerEventType = EndEvent | IncomingEvent | OutgoingEvent | IncomingAckEvent | OutgoingAckEvent
@@ -121,6 +123,12 @@ export type IRoomUpdate = Omit<IRoom, 'started'> & {
121
123
  started?: Date
122
124
  }
123
125
 
126
+ export type AudioModuleName = typeof MODULES.AUDIO
127
+ export type VideoModuleName = typeof MODULES.VIDEO
128
+ export type MSRPModuleName = typeof MODULES.MSRP
129
+
130
+ export type Modules = AudioModuleName | VideoModuleName | MSRPModuleName
131
+
124
132
  export interface IOpenSIPSJSOptions {
125
133
  configuration: Omit<UAConfiguration, 'sockets'>,
126
134
  socketInterfaces: [ string ]
@@ -129,7 +137,8 @@ export interface IOpenSIPSJSOptions {
129
137
  session_timers: boolean
130
138
  extraHeaders: [ string ]
131
139
  pcConfig: RTCConfiguration
132
- }
140
+ },
141
+ modules: Array<Modules>
133
142
  }
134
143
 
135
144
  export interface TriggerListenerOptions {
@@ -5,3 +5,9 @@ export interface ITimeData {
5
5
  seconds: number
6
6
  formatted: string
7
7
  }
8
+
9
+ export type TempTimeData = Omit<ITimeData, 'callId'> & {
10
+ callId: string | undefined
11
+ }
12
+
13
+ export type CallTime = Record<string, TempTimeData>