@jealous-robot-dev/shared-types-responses 1.55.14 → 1.55.16

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export * from './services/errors';
3
3
  export * from './services/common';
4
4
  export * from './services/static-components';
5
5
  export * from './services/user-settings';
6
- export * from './services/live-room';
6
+ export * from './services/live-studio';
7
7
  export * from './services/messenger';
8
8
  export * from './services/payments';
9
9
  export * from './services/events';
package/build/index.js CHANGED
@@ -15,7 +15,7 @@ __exportStar(require("./services/errors"), exports);
15
15
  __exportStar(require("./services/common"), exports);
16
16
  __exportStar(require("./services/static-components"), exports);
17
17
  __exportStar(require("./services/user-settings"), exports);
18
- __exportStar(require("./services/live-room"), exports);
18
+ __exportStar(require("./services/live-studio"), exports);
19
19
  __exportStar(require("./services/messenger"), exports);
20
20
  __exportStar(require("./services/payments"), exports);
21
21
  __exportStar(require("./services/events"), exports);
@@ -1,4 +1,4 @@
1
- import { LiveRoomParticipRole } from '@jealous-robot-dev/drophr-common';
1
+ import { LiveStudioParticipRole } from '@jealous-robot-dev/drophr-common';
2
2
  export declare enum MeetingAPIResponses {
3
3
  FAILED = "FAILED",
4
4
  SUCCESS = "SUCCESS",
@@ -26,5 +26,5 @@ export interface SessionJoinPayload {
26
26
  capacity: number;
27
27
  starts_at: number;
28
28
  can_join?: boolean;
29
- role: LiveRoomParticipRole;
29
+ role: LiveStudioParticipRole;
30
30
  }
@@ -0,0 +1,60 @@
1
+ import { EventTypes, LiveStudioParticipRole } from "@jealous-robot-dev/drophr-common";
2
+ export declare enum LiveStudioResponses {
3
+ OK = "ok",
4
+ JOIN_LATER = "join later",
5
+ INVALID_URL = "invalid url",
6
+ SESSION_ENDED = "session ended",
7
+ NOT_ALLOWED = "User not allowed",
8
+ ALREADY_JOINED = "User already joined"
9
+ }
10
+ export interface LiveStudioMessage {
11
+ ts: number;
12
+ key: string;
13
+ text: string;
14
+ member: string;
15
+ }
16
+ export interface LiveStudioConversation {
17
+ id: string;
18
+ index: number;
19
+ messages: LiveStudioMessage[];
20
+ }
21
+ export interface LiveStudioParticipant {
22
+ UID: string;
23
+ ppu: string;
24
+ username: string;
25
+ lastname: string;
26
+ firstname: string;
27
+ role: LiveStudioParticipRole;
28
+ }
29
+ export interface LiveStudioClientData {
30
+ listing: {
31
+ id: string;
32
+ pic: string;
33
+ name: string;
34
+ host: string;
35
+ langs: string[];
36
+ type: EventTypes;
37
+ session: {
38
+ sid: string;
39
+ end: number;
40
+ start: number;
41
+ duration: number;
42
+ particips: LiveStudioParticipant[];
43
+ };
44
+ };
45
+ sdk: {
46
+ signature: string;
47
+ };
48
+ client: {
49
+ UID: string;
50
+ ppu: string;
51
+ is_new: boolean;
52
+ username: string;
53
+ lastname: string;
54
+ firstname: string;
55
+ role: LiveStudioParticipRole;
56
+ };
57
+ messenger: {
58
+ conversations: LiveStudioConversation[];
59
+ };
60
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiveStudioResponses = void 0;
4
+ var LiveStudioResponses;
5
+ (function (LiveStudioResponses) {
6
+ LiveStudioResponses["OK"] = "ok";
7
+ LiveStudioResponses["JOIN_LATER"] = "join later";
8
+ LiveStudioResponses["INVALID_URL"] = "invalid url";
9
+ LiveStudioResponses["SESSION_ENDED"] = "session ended";
10
+ LiveStudioResponses["NOT_ALLOWED"] = "User not allowed";
11
+ LiveStudioResponses["ALREADY_JOINED"] = "User already joined";
12
+ })(LiveStudioResponses = exports.LiveStudioResponses || (exports.LiveStudioResponses = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.55.14",
3
+ "version": "1.55.16",
4
4
  "description": "Meetle common types of API responses",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,65 +0,0 @@
1
- import { UITHEME, LiveRoomParticipRole, LiveRoomUIParams, EventTypes, UserCategory } from "@jealous-robot-dev/drophr-common";
2
- export interface LiveRoomStandartSessionResponse {
3
- listing: {
4
- id: string;
5
- pic: string;
6
- name: string;
7
- host: string;
8
- langs: string[];
9
- type: EventTypes;
10
- session: {
11
- sid: string;
12
- end: number;
13
- start: number;
14
- duration: number;
15
- max_particips: number;
16
- };
17
- };
18
- connection: {
19
- signature: string;
20
- tracking_frequency?: number;
21
- };
22
- client: {
23
- UID: string;
24
- ppu: string;
25
- is_new: boolean;
26
- username: string;
27
- lastname: string;
28
- firstname: string;
29
- role: LiveRoomParticipRole;
30
- };
31
- prefs: {
32
- theme: UITHEME;
33
- sdk_locale: string;
34
- user_locale: string;
35
- ui: {
36
- [LiveRoomUIParams.FULL_SCREEN_X]: boolean;
37
- [LiveRoomUIParams.HIDE_PREVIEW]: boolean;
38
- [LiveRoomUIParams.HIDE_SPEAKER]: boolean;
39
- [LiveRoomUIParams.GRID_LAYOUT]: boolean;
40
- [LiveRoomUIParams.HIDE_ARROWS]: boolean;
41
- [LiveRoomUIParams.HIDE_SHARE]: boolean;
42
- [LiveRoomUIParams.HIDE_MAP]: boolean;
43
- };
44
- };
45
- }
46
- export interface LiveChannelTrackingMessagePayload {
47
- ts: string;
48
- video_enabled: boolean;
49
- audio_enabled: boolean;
50
- sound_enabled: boolean;
51
- screen_enabled: boolean;
52
- latest_interaction: number;
53
- }
54
- export declare enum LiveChannelTrackingResponseTypes {
55
- OK = "OK",
56
- ABOUT_TO_END = "ABOUT_TO_END",
57
- CHECK_PRESENCE = "CHECK_PRESENCE",
58
- HOST_CONN_TROUBLES = "HOST_CONN_TROUBLES",
59
- HOST_LEFT_PREMATURELY = "HOST_LEFT_PREMATURELY",
60
- CUSTOMER_CONN_TROUBLES = "CUSTOMER_CONN_TROUBLES"
61
- }
62
- export interface LiveChannelTrackingResponse {
63
- result: LiveChannelTrackingResponseTypes;
64
- role: UserCategory;
65
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LiveChannelTrackingResponseTypes = void 0;
4
- var drophr_common_1 = require("@jealous-robot-dev/drophr-common");
5
- var LiveChannelTrackingResponseTypes;
6
- (function (LiveChannelTrackingResponseTypes) {
7
- LiveChannelTrackingResponseTypes["OK"] = "OK";
8
- LiveChannelTrackingResponseTypes["ABOUT_TO_END"] = "ABOUT_TO_END";
9
- LiveChannelTrackingResponseTypes["CHECK_PRESENCE"] = "CHECK_PRESENCE";
10
- LiveChannelTrackingResponseTypes["HOST_CONN_TROUBLES"] = "HOST_CONN_TROUBLES";
11
- LiveChannelTrackingResponseTypes["HOST_LEFT_PREMATURELY"] = "HOST_LEFT_PREMATURELY";
12
- LiveChannelTrackingResponseTypes["CUSTOMER_CONN_TROUBLES"] = "CUSTOMER_CONN_TROUBLES";
13
- })(LiveChannelTrackingResponseTypes = exports.LiveChannelTrackingResponseTypes || (exports.LiveChannelTrackingResponseTypes = {}));