@verychat/channel-protos 1.0.20 → 1.0.21

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.
@@ -118,13 +118,7 @@ message ChannelChatInfo {
118
118
  optional int64 lastChannelChatStreamId = 3;
119
119
  }
120
120
 
121
-
122
- message Highlight {
123
- repeated string title = 1;
124
- repeated string description = 2;
125
- }
126
-
127
- message ChannelESSchema {
121
+ message ChannelSearchData {
128
122
  string channelId = 1;
129
123
  optional string title = 2;
130
124
  optional string description = 3;
@@ -133,17 +127,11 @@ message ChannelESSchema {
133
127
  optional int32 joinUserCount = 6;
134
128
  optional string lastMessage = 7;
135
129
  optional ChannelType channelType = 8;
136
- }
137
-
138
- message SearchResultItem {
139
- string id = 1;
140
- optional ChannelESSchema source = 2;
141
- optional Highlight highlight = 3;
130
+ int32 score = 9;
142
131
  }
143
132
 
144
133
  message SearchChannelResult {
145
- int32 total = 1;
146
- repeated SearchResultItem items = 2;
134
+ repeated ChannelSearchData datas = 1;
147
135
  }
148
136
 
149
137
  enum MessageType {
package/dist/index.d.ts CHANGED
@@ -57,7 +57,5 @@ export { Reaction } from './proto-libs/channel-types';
57
57
  export { History } from './proto-libs/channel-types';
58
58
  export { Operator } from './proto-libs/channel-types';
59
59
  export { ChannelChatInfo } from './proto-libs/channel-types';
60
- export { Highlight } from './proto-libs/channel-types';
61
- export { ChannelESSchema } from './proto-libs/channel-types';
62
- export { SearchResultItem } from './proto-libs/channel-types';
60
+ export { ChannelSearchData } from './proto-libs/channel-types';
63
61
  export { SearchChannelResult } from './proto-libs/channel-types';
@@ -121,11 +121,7 @@ export interface ChannelChatInfo {
121
121
  lastChannelChatMessageSeq?: number | undefined;
122
122
  lastChannelChatStreamId?: number | undefined;
123
123
  }
124
- export interface Highlight {
125
- title: string[];
126
- description: string[];
127
- }
128
- export interface ChannelESSchema {
124
+ export interface ChannelSearchData {
129
125
  channelId: string;
130
126
  title?: string | undefined;
131
127
  description?: string | undefined;
@@ -134,14 +130,9 @@ export interface ChannelESSchema {
134
130
  joinUserCount?: number | undefined;
135
131
  lastMessage?: string | undefined;
136
132
  channelType?: ChannelType | undefined;
137
- }
138
- export interface SearchResultItem {
139
- id: string;
140
- source?: ChannelESSchema | undefined;
141
- highlight?: Highlight | undefined;
133
+ score: number;
142
134
  }
143
135
  export interface SearchChannelResult {
144
- total: number;
145
- items: SearchResultItem[];
136
+ datas: ChannelSearchData[];
146
137
  }
147
138
  export declare const CHANNEL_PACKAGE_NAME = "channel";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verychat/channel-protos",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -146,12 +146,7 @@ export interface ChannelChatInfo {
146
146
  lastChannelChatStreamId?: number | undefined;
147
147
  }
148
148
 
149
- export interface Highlight {
150
- title: string[];
151
- description: string[];
152
- }
153
-
154
- export interface ChannelESSchema {
149
+ export interface ChannelSearchData {
155
150
  channelId: string;
156
151
  title?: string | undefined;
157
152
  description?: string | undefined;
@@ -160,17 +155,11 @@ export interface ChannelESSchema {
160
155
  joinUserCount?: number | undefined;
161
156
  lastMessage?: string | undefined;
162
157
  channelType?: ChannelType | undefined;
163
- }
164
-
165
- export interface SearchResultItem {
166
- id: string;
167
- source?: ChannelESSchema | undefined;
168
- highlight?: Highlight | undefined;
158
+ score: number;
169
159
  }
170
160
 
171
161
  export interface SearchChannelResult {
172
- total: number;
173
- items: SearchResultItem[];
162
+ datas: ChannelSearchData[];
174
163
  }
175
164
 
176
165
  export const CHANNEL_PACKAGE_NAME = "channel";