ozone-type
Advanced tools
Comparing version 5.4.53 to 5.4.54
@@ -1,9 +0,2 @@ | ||
import { Item } from './Item'; | ||
export declare class Call extends Item { | ||
from: string; | ||
direction?: CallDirection; | ||
response?: CallResponse; | ||
wakeUpDevice?: boolean; | ||
constructor(src: Call); | ||
} | ||
import { Item, UUID } from './Item'; | ||
export declare enum CallDirection { | ||
@@ -19,1 +12,19 @@ INCOMING = "INCOMING", | ||
} | ||
export declare class Call extends Item { | ||
from: string; | ||
direction?: CallDirection; | ||
response?: CallResponse; | ||
wakeUpDevice?: boolean; | ||
constructor(src: Call); | ||
} | ||
export declare class SipCall extends Call { | ||
receptionDate: string; | ||
sipExtensionId: UUID; | ||
constructor(src: SipCall); | ||
} | ||
export declare class VideoCall extends Call { | ||
callerId: UUID; | ||
constructor(src: VideoCall); | ||
} | ||
export declare const isSipCall: (call: Call) => call is SipCall; | ||
export declare const isVideoCall: (call: Call) => call is VideoCall; |
import { Item } from './Item'; | ||
export class Call extends Item { | ||
constructor(src) { | ||
super(src); | ||
this.from = src.from; | ||
this.direction = src.direction; | ||
this.response = src.response; | ||
this.wakeUpDevice = src.wakeUpDevice; | ||
} | ||
} | ||
export var CallDirection; | ||
@@ -23,1 +14,25 @@ (function (CallDirection) { | ||
})(CallResponse || (CallResponse = {})); | ||
export class Call extends Item { | ||
constructor(src) { | ||
super(src); | ||
this.from = src.from; | ||
this.direction = src.direction; | ||
this.response = src.response; | ||
this.wakeUpDevice = src.wakeUpDevice; | ||
} | ||
} | ||
export class SipCall extends Call { | ||
constructor(src) { | ||
super(src); | ||
this.receptionDate = src.receptionDate; | ||
this.sipExtensionId = src.sipExtensionId; | ||
} | ||
} | ||
export class VideoCall extends Call { | ||
constructor(src) { | ||
super(src); | ||
this.callerId = src.callerId; | ||
} | ||
} | ||
export const isSipCall = (call) => call.type === 'sip.call'; | ||
export const isVideoCall = (call) => call.type === 'video.call'; |
export * from './SipServer'; | ||
export * from './SipCall'; | ||
export * from './SipExtension'; |
export * from './SipServer'; | ||
export * from './SipCall'; | ||
export * from './SipExtension'; |
@@ -1,3 +0,15 @@ | ||
import { Item } from './Item' | ||
import { Item, UUID } from './Item' | ||
export enum CallDirection { | ||
INCOMING = 'INCOMING', | ||
OUTGOING = 'OUTGOING' | ||
} | ||
export enum CallResponse { | ||
ACCEPTED = 'ACCEPTED', | ||
REFUSED = 'REFUSED', | ||
IGNORED = 'IGNORED', // The call will continue ringing | ||
TERMINATED = 'TERMINATED' // The call has been terminated before it was answered | ||
} | ||
export class Call extends Item { | ||
@@ -18,12 +30,23 @@ from: string | ||
export enum CallDirection { | ||
INCOMING = 'INCOMING', | ||
OUTGOING = 'OUTGOING' | ||
export class SipCall extends Call { | ||
receptionDate: string | ||
sipExtensionId: UUID | ||
constructor(src: SipCall) { | ||
super(src) | ||
this.receptionDate = src.receptionDate | ||
this.sipExtensionId = src.sipExtensionId | ||
} | ||
} | ||
export enum CallResponse { | ||
ACCEPTED = 'ACCEPTED', | ||
REFUSED = 'REFUSED', | ||
IGNORED = 'IGNORED', // The call will continue ringing | ||
TERMINATED = 'TERMINATED' // The call has been terminated before it was answered | ||
export class VideoCall extends Call { | ||
callerId: UUID | ||
constructor(src: VideoCall) { | ||
super(src) | ||
this.callerId = src.callerId | ||
} | ||
} | ||
export const isSipCall = (call: Call): call is SipCall => call.type === 'sip.call' | ||
export const isVideoCall = (call: Call): call is VideoCall => call.type === 'video.call' |
export * from './SipServer' | ||
export * from './SipCall' | ||
export * from './SipExtension' |
{ | ||
"name": "ozone-type", | ||
"version": "5.4.53", | ||
"version": "5.4.54", | ||
"publishConfig": { | ||
@@ -21,3 +21,3 @@ "access": "public" | ||
"license": "ISC", | ||
"gitHead": "afe2ced6129ea86d2fe2de74589edd8bfb13de2d" | ||
"gitHead": "cd44a15c549a039d2f8ca015b9063eeea8ba89bd" | ||
} |
2287410
31419
1975