@jealous-robot-dev/shared-types-responses 1.20.30 → 1.21.3

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.
@@ -17,19 +17,19 @@ export interface ShortMessengerUser {
17
17
  available: boolean;
18
18
  }
19
19
  export interface Conversation {
20
- conv_id: string;
21
- conv_index: number;
22
- conv_latest_msgs: Message[];
23
- conv_media: string[];
24
- conv_msg_count: number;
25
- conv_members: MessengerUser[];
20
+ id: string;
21
+ index: number;
22
+ latest_msgs: Message[];
23
+ media: string[];
24
+ msg_count: number;
25
+ members: MessengerUser[];
26
26
  }
27
27
  export interface ShortConversation {
28
- conv_id: string;
29
- conv_index: number;
30
- conv_latest_msgs: Message[];
31
- conv_media: string[];
32
- conv_msg_count: number;
33
- conv_member: ShortMessengerUser;
34
- conv_available: boolean;
28
+ id: string;
29
+ index: number;
30
+ latest_msgs: Message[];
31
+ media: string[];
32
+ msg_count: number;
33
+ member: ShortMessengerUser;
34
+ available: boolean;
35
35
  }
@@ -5,11 +5,11 @@ export declare enum MessageStatus {
5
5
  ERROR = "error"
6
6
  }
7
7
  export interface Message {
8
- message_id: number;
9
- message_author: string;
10
- message_conversation_id: string;
11
- message_written_at: string;
12
- message_text: string;
13
- message_attachment?: string;
14
- message_status: MessageStatus;
8
+ id: number;
9
+ author: string;
10
+ conv_id: string;
11
+ written_at: string;
12
+ text?: string;
13
+ attachment?: string;
14
+ status: MessageStatus;
15
15
  }
@@ -23,3 +23,13 @@ export interface UserInSearch {
23
23
  joined_in: string;
24
24
  ppu: string;
25
25
  }
26
+ export declare enum UserSearchCtxType {
27
+ USERNAME = "USERNAME",
28
+ NAMES = "NAMES"
29
+ }
30
+ export declare const USCTlist: UserSearchCtxType[];
31
+ export declare enum UserSearchQueryTypes {
32
+ SEARCHBAR = "SEARCHBAR",
33
+ PAGE = "PAGE"
34
+ }
35
+ export declare const USQTlist: UserSearchQueryTypes[];
@@ -1,2 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.USQTlist = exports.UserSearchQueryTypes = exports.USCTlist = exports.UserSearchCtxType = void 0;
4
+ var UserSearchCtxType;
5
+ (function (UserSearchCtxType) {
6
+ UserSearchCtxType["USERNAME"] = "USERNAME";
7
+ UserSearchCtxType["NAMES"] = "NAMES";
8
+ })(UserSearchCtxType = exports.UserSearchCtxType || (exports.UserSearchCtxType = {}));
9
+ exports.USCTlist = [
10
+ UserSearchCtxType.NAMES, UserSearchCtxType.USERNAME
11
+ ];
12
+ var UserSearchQueryTypes;
13
+ (function (UserSearchQueryTypes) {
14
+ UserSearchQueryTypes["SEARCHBAR"] = "SEARCHBAR";
15
+ UserSearchQueryTypes["PAGE"] = "PAGE";
16
+ })(UserSearchQueryTypes = exports.UserSearchQueryTypes || (exports.UserSearchQueryTypes = {}));
17
+ exports.USQTlist = [
18
+ UserSearchQueryTypes.PAGE, UserSearchQueryTypes.SEARCHBAR
19
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.20.30",
3
+ "version": "1.21.3",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",