@syncot/presence
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.0.18](https://github.com/SyncOT/SyncOT/compare/@syncot/presence@0.0.17...@syncot/presence@0.0.18) (2019-10-31) | ||
**Note:** Version bump only for package @syncot/presence | ||
## [0.0.17](https://github.com/SyncOT/SyncOT/compare/@syncot/presence@0.0.16...@syncot/presence@0.0.17) (2019-10-21) | ||
@@ -8,0 +16,0 @@ |
import { EmitterInterface, SyncOtEmitter, Validator } from '@syncot/util'; | ||
import { SpanContext } from 'opentracing'; | ||
import { Duplex } from 'readable-stream'; | ||
@@ -76,13 +75,13 @@ export interface Presence { | ||
*/ | ||
submitPresence(presence: Presence, context?: SpanContext): Promise<void>; | ||
submitPresence(presence: Presence): Promise<void>; | ||
/** | ||
* Removes the presence object from the current session. | ||
*/ | ||
removePresence(context?: SpanContext): Promise<void>; | ||
getPresenceBySessionId(sessionId: string, context?: SpanContext): Promise<Presence | null>; | ||
getPresenceByUserId(userId: string, context?: SpanContext): Promise<Presence[]>; | ||
getPresenceByLocationId(locationId: string, context?: SpanContext): Promise<Presence[]>; | ||
streamPresenceBySessionId(sessionId: string, context?: SpanContext): Promise<Duplex>; | ||
streamPresenceByUserId(userId: string, context?: SpanContext): Promise<Duplex>; | ||
streamPresenceByLocationId(locationId: string, context?: SpanContext): Promise<Duplex>; | ||
removePresence(): Promise<void>; | ||
getPresenceBySessionId(sessionId: string): Promise<Presence | null>; | ||
getPresenceByUserId(userId: string): Promise<Presence[]>; | ||
getPresenceByLocationId(locationId: string): Promise<Presence[]>; | ||
streamPresenceBySessionId(sessionId: string): Promise<Duplex>; | ||
streamPresenceByUserId(userId: string): Promise<Duplex>; | ||
streamPresenceByLocationId(locationId: string): Promise<Duplex>; | ||
} | ||
@@ -89,0 +88,0 @@ /** |
{ | ||
"name": "@syncot/presence", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Interfaces and type definitions related to global presence management.", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "5ddb4179d53c84ccf7929fddeb5447d30890812e" | ||
"gitHead": "5818b8da0797e211da295d133817448730d39d5d" | ||
} |
7639
124