@rtsee/common 0.0.33 → 0.0.34

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.
@@ -1,3 +1,15 @@
1
- export interface IConference {
1
+ import { IPeer } from "@rtsee/core";
2
+ export interface IRTSeeCall<T = any> {
3
+ id: string;
4
+ roomId: string;
5
+ members: IPeer[];
6
+ data?: T;
7
+ }
8
+ export interface IRTSeeCallMember {
9
+ clientId: string;
10
+ callId: string;
11
+ isPresent?: boolean;
12
+ joinedAt?: Date;
13
+ leftAt?: Date;
2
14
  }
3
15
  //# sourceMappingURL=IConference.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IConference.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/conference/IConference.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;CAE3B"}
1
+ {"version":3,"file":"IConference.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/conference/IConference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,MAAM,CAAC,EAAE,IAAI,CAAC;CACf"}
@@ -0,0 +1,6 @@
1
+ export interface IRTSeeConferenceRoom<T = any> {
2
+ id: string;
3
+ chatId: string;
4
+ data?: T;
5
+ }
6
+ //# sourceMappingURL=Room.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Room.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/conference/Room.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,GAAG;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,CAAC,CAAC;CACV"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Room.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Room.js","sourceRoot":"","sources":["../../../../../src/interfaces/conference/Room.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { IPeer } from "@rtsee/core";
2
+ import { IRTSeeCall, IRTSeeConferenceRoom } from "@rtsee/common";
3
+ export interface IRTSeeConferenceStorageProcessor {
4
+ createRoom(roomData: IRTSeeConferenceRoom): Promise<IRTSeeConferenceRoom>;
5
+ createCall(peer: IPeer, call: Omit<IRTSeeCall, 'id' | 'members'>): Promise<IRTSeeCall | null>;
6
+ joinCall(peer: IPeer, call: IRTSeeCall): Promise<IRTSeeCall | null>;
7
+ leaveCall(peer: IPeer, call: IRTSeeCall): Promise<IRTSeeCall | null>;
8
+ endCall(peer: IPeer, call: IRTSeeCall): Promise<IRTSeeCall | null>;
9
+ }
10
+ //# sourceMappingURL=StorageProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StorageProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/conference/StorageProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAC,UAAU,EAAE,oBAAoB,EAAC,MAAM,eAAe,CAAC;AAE/D,MAAM,WAAW,gCAAgC;IAC/C,UAAU,CACR,QAAQ,EAAE,oBAAoB,GAC7B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC,UAAU,CACR,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,SAAS,CAAC,GACvC,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IAC9B,QAAQ,CACN,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,UAAU,GACf,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IAC9B,SAAS,CACP,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,UAAU,GACf,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IAC9B,OAAO,CACL,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,UAAU,GACf,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;CAC/B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=StorageProcessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StorageProcessor.js","sourceRoot":"","sources":["../../../../../src/interfaces/conference/StorageProcessor.ts"],"names":[],"mappings":""}
@@ -1,3 +1,5 @@
1
1
  export * from "./ConferenceSignals";
2
2
  export * from './IConference';
3
+ export * from './StorageProcessor';
4
+ export * from './Room';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/conference/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/conference/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC"}
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ConferenceSignals"), exports);
18
18
  __exportStar(require("./IConference"), exports);
19
+ __exportStar(require("./StorageProcessor"), exports);
20
+ __exportStar(require("./Room"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interfaces/conference/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interfaces/conference/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,gDAA8B;AAC9B,qDAAmC;AACnC,yCAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtsee/common",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "license": "ISC",
5
5
  "private": false,
6
6
  "main": "dist/common/src/index",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "47400b8569141cd4d3521900ca6d45b6e89f3b1d"
34
+ "gitHead": "2feaa4064bb068d2b23448ec28e277159401855e"
35
35
  }