@jealous-robot-dev/shared-types-responses 1.55.13 → 1.55.15

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.
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,6 +1,4 @@
1
- import { EventImpressionPhrases } from '@jealous-robot-dev/shared-phrases';
2
1
  import { EventTypes } from '@jealous-robot-dev/drophr-common';
3
- import { QueryResponse } from "../common";
4
2
  import { UserInEvent } from "./events";
5
3
  export interface EventImpressionData {
6
4
  id: string;
@@ -15,5 +13,3 @@ export interface EventImpressionData {
15
13
  starts_at: number;
16
14
  host: UserInEvent;
17
15
  }
18
- export interface EventImpressionResponse extends QueryResponse<EventImpressionData, EventImpressionPhrases> {
19
- }
@@ -5,6 +5,7 @@ export interface EventInSearch {
5
5
  raiting: number;
6
6
  capacity: number;
7
7
  type: EventTypes;
8
+ is_saved: boolean;
8
9
  pics: HostEventPics[];
9
10
  reviews_count: number;
10
11
  audience: ServiceAudience;
@@ -12,5 +13,4 @@ export interface EventInSearch {
12
13
  amount: number;
13
14
  isMin: boolean;
14
15
  };
15
- is_saved: boolean;
16
16
  }
@@ -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,52 @@
1
+ import { EventTypes, LiveStudioParticipRole } from "@jealous-robot-dev/drophr-common";
2
+ export interface LiveStudioMessage {
3
+ ts: number;
4
+ key: string;
5
+ text: string;
6
+ member: string;
7
+ }
8
+ export interface LiveStudioConversation {
9
+ id: string;
10
+ index: number;
11
+ messages: LiveStudioMessage[];
12
+ }
13
+ export interface LiveStudioParticipant {
14
+ UID: string;
15
+ ppu: string;
16
+ username: string;
17
+ lastname: string;
18
+ firstname: string;
19
+ role: LiveStudioParticipRole;
20
+ }
21
+ export interface LiveStudioClientData {
22
+ listing: {
23
+ id: string;
24
+ pic: string;
25
+ name: string;
26
+ host: string;
27
+ langs: string[];
28
+ type: EventTypes;
29
+ session: {
30
+ sid: string;
31
+ end: number;
32
+ start: number;
33
+ duration: number;
34
+ particips: LiveStudioParticipant[];
35
+ };
36
+ };
37
+ sdk: {
38
+ signature: string;
39
+ };
40
+ client: {
41
+ UID: string;
42
+ ppu: string;
43
+ is_new: boolean;
44
+ username: string;
45
+ lastname: string;
46
+ firstname: string;
47
+ role: LiveStudioParticipRole;
48
+ };
49
+ messenger: {
50
+ conversations: LiveStudioConversation[];
51
+ };
52
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.55.13",
3
+ "version": "1.55.15",
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 = {}));