@verychat/channel-protos 1.0.22 → 1.0.24

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.
@@ -13,22 +13,22 @@ message GetMyChannelsResponse {
13
13
  repeated Channel channels = 1;
14
14
  }
15
15
 
16
- message GetMySubscribedChannelResponse {
17
- repeated UserChannel userChannels = 1;
18
- }
19
-
20
- message GetRecommendChannelsRequest {
21
- int32 userId = 1;
22
- }
23
-
24
- message GetRecommendChannelsResponse {
25
- repeated RecommendChannel channels = 1;
26
- }
27
-
28
- message CreateChannelRequest {
29
- int32 userId = 1;
30
- CreateChannelDto dto = 2;
31
- }
16
+ message GetMySubscribedChannelResponse {
17
+ repeated UserChannel userChannels = 1;
18
+ }
19
+
20
+ message GetRecommendChannelsRequest {
21
+ int32 userId = 1;
22
+ }
23
+
24
+ message GetRecommendChannelsResponse {
25
+ repeated RecommendChannel channels = 1;
26
+ }
27
+
28
+ message CreateChannelRequest {
29
+ int32 userId = 1;
30
+ CreateChannelDto dto = 2;
31
+ }
32
32
 
33
33
  message CreateChannelResponse {
34
34
  string channelId = 1;
@@ -165,6 +165,23 @@ message GetMessagesResponse {
165
165
  repeated ChannelMessage messages = 1;
166
166
  }
167
167
 
168
+ message GetNewChannelMessageRequest {
169
+ int32 userId = 1;
170
+ optional int32 page = 2;
171
+ }
172
+
173
+ message GetNewChannelMessageResponse {
174
+ repeated NewChannelMessage messages = 1;
175
+ }
176
+
177
+ message GetMessageSpecifyRequest {
178
+ repeated GetMessagesSpecifyType array = 1;
179
+ }
180
+
181
+ message GetMessageSpecifyResponse {
182
+ repeated NewChannelMessage messages = 1;
183
+ }
184
+
168
185
  message GetHistorysRequest {
169
186
  string channelId = 1;
170
187
  int64 lastStreamId = 2;
@@ -209,11 +226,11 @@ service ChannelService {
209
226
  rpc CreateChannel (CreateChannelRequest) returns (CreateChannelResponse);
210
227
  rpc EditChannel (EditChannelRequest) returns (EditChannelResponse);
211
228
 
212
- rpc GetMyChannels (GetChannelRequest) returns (GetMyChannelsResponse);
213
- rpc GetMySubscribeChannels (GetChannelRequest) returns (GetMySubscribedChannelResponse);
214
- rpc GetRecommendChannels (GetRecommendChannelsRequest) returns (GetRecommendChannelsResponse);
215
-
216
- rpc GetChannelInfo (GetChannelInfoRequest) returns (GetChannelInfoResponse);
229
+ rpc GetMyChannels (GetChannelRequest) returns (GetMyChannelsResponse);
230
+ rpc GetMySubscribeChannels (GetChannelRequest) returns (GetMySubscribedChannelResponse);
231
+ rpc GetRecommendChannels (GetRecommendChannelsRequest) returns (GetRecommendChannelsResponse);
232
+
233
+ rpc GetChannelInfo (GetChannelInfoRequest) returns (GetChannelInfoResponse);
217
234
 
218
235
  rpc ReadMessage (ReadMessageRequest) returns (Empty);
219
236
  rpc GetViewCount (GetMessageViewCountRequest) returns (GetMessageViewCountResponse);
@@ -236,6 +253,8 @@ service ChannelService {
236
253
 
237
254
  rpc GetMessage (GetMessageRequest) returns (GetMessageResponse);
238
255
  rpc GetMessages (GetMessagesRequest) returns (GetMessagesResponse);
256
+ rpc GetNewChannelMessage (GetNewChannelMessageRequest) returns (GetNewChannelMessageResponse);
257
+ rpc GetMessagesSpecifyInfo (GetMessageSpecifyRequest) returns (GetMessageSpecifyResponse);
239
258
  rpc GetHistorys (GetHistorysRequest) returns (GetHistorysResponse);
240
259
 
241
260
  rpc HoldMessage (HoldMessageRequest) returns (Empty);
@@ -251,4 +270,4 @@ service ChannelService {
251
270
  rpc ChannelChatGetMessage (GetMessageRequest) returns (GetMessageResponse);
252
271
  rpc ChannelChatGetMessages (GetMessagesRequest) returns (GetMessagesResponse);
253
272
  rpc ChannelChatGetHistorys (GetHistorysRequest) returns (GetHistorysResponse);
254
- }
273
+ }
@@ -99,11 +99,29 @@ message ChannelMessage {
99
99
  int64 streamId = 10;
100
100
  }
101
101
 
102
+ message NewChannelMessage {
103
+ string channelId = 1;
104
+ int32 seq = 2;
105
+ int32 userId = 3;
106
+ string message = 4;
107
+ MessageType type = 5;
108
+ string createdAt = 6;
109
+ int32 likeCount = 7;
110
+ string channelTitle = 8;
111
+ string channelThumbnailUrl = 9;
112
+ optional string deletedAt = 10;
113
+ }
114
+
102
115
  message Reaction {
103
116
  int32 userId = 1;
104
117
  string reactionCode = 2;
105
118
  }
106
119
 
120
+ message GetMessagesSpecifyType {
121
+ string channelId = 1;
122
+ int32 seq = 2;
123
+ }
124
+
107
125
  message History {
108
126
  int64 streamId = 1;
109
127
  int32 userId = 2;
@@ -162,4 +180,4 @@ enum HistoryOperation {
162
180
  REACTION_REMOVE = 1;
163
181
  MESSAGE_EDIT = 2;
164
182
  MESSAGE_DELETE = 3;
165
- }
183
+ }
package/dist/index.d.ts CHANGED
@@ -32,6 +32,10 @@ export { GetMessageRequest } from './proto-libs/channel-services';
32
32
  export { GetMessageResponse } from './proto-libs/channel-services';
33
33
  export { GetMessagesRequest } from './proto-libs/channel-services';
34
34
  export { GetMessagesResponse } from './proto-libs/channel-services';
35
+ export { GetNewChannelMessageRequest } from './proto-libs/channel-services';
36
+ export { GetNewChannelMessageResponse } from './proto-libs/channel-services';
37
+ export { GetMessageSpecifyRequest } from './proto-libs/channel-services';
38
+ export { GetMessageSpecifyResponse } from './proto-libs/channel-services';
35
39
  export { GetHistorysRequest } from './proto-libs/channel-services';
36
40
  export { GetHistorysResponse } from './proto-libs/channel-services';
37
41
  export { HoldMessageRequest } from './proto-libs/channel-services';
@@ -56,7 +60,9 @@ export { EditChannelDto } from './proto-libs/channel-types';
56
60
  export { CreateMessageDto } from './proto-libs/channel-types';
57
61
  export { ReactionMessageDto } from './proto-libs/channel-types';
58
62
  export { ChannelMessage } from './proto-libs/channel-types';
63
+ export { NewChannelMessage } from './proto-libs/channel-types';
59
64
  export { Reaction } from './proto-libs/channel-types';
65
+ export { GetMessagesSpecifyType } from './proto-libs/channel-types';
60
66
  export { History } from './proto-libs/channel-types';
61
67
  export { Operator } from './proto-libs/channel-types';
62
68
  export { ChannelChatInfo } from './proto-libs/channel-types';
@@ -1,6 +1,6 @@
1
1
  import { Metadata } from "@grpc/grpc-js";
2
2
  import { Observable } from "rxjs";
3
- import { Channel, ChannelChatInfo, ChannelInfo, ChannelMessage, CreateChannelDto, CreateMessageDto, EditChannelDto, History, Operator, ReactionMessageDto, RecommendChannel, SearchChannelResult, UserChannel } from "./channel-types";
3
+ import { Channel, ChannelChatInfo, ChannelInfo, ChannelMessage, CreateChannelDto, CreateMessageDto, EditChannelDto, GetMessagesSpecifyType, History, NewChannelMessage, Operator, ReactionMessageDto, RecommendChannel, SearchChannelResult, UserChannel } from "./channel-types";
4
4
  export declare const protobufPackage = "channel";
5
5
  export interface Empty {
6
6
  }
@@ -138,6 +138,19 @@ export interface GetMessagesRequest {
138
138
  export interface GetMessagesResponse {
139
139
  messages: ChannelMessage[];
140
140
  }
141
+ export interface GetNewChannelMessageRequest {
142
+ userId: number;
143
+ page?: number | undefined;
144
+ }
145
+ export interface GetNewChannelMessageResponse {
146
+ messages: NewChannelMessage[];
147
+ }
148
+ export interface GetMessageSpecifyRequest {
149
+ array: GetMessagesSpecifyType[];
150
+ }
151
+ export interface GetMessageSpecifyResponse {
152
+ messages: NewChannelMessage[];
153
+ }
141
154
  export interface GetHistorysRequest {
142
155
  channelId: string;
143
156
  lastStreamId: number;
@@ -193,6 +206,8 @@ export interface ChannelServiceClient {
193
206
  removeOperator(request: RemoveOperatorRequest, metadata?: Metadata): Observable<RemoveOperatorResponse>;
194
207
  getMessage(request: GetMessageRequest, metadata?: Metadata): Observable<GetMessageResponse>;
195
208
  getMessages(request: GetMessagesRequest, metadata?: Metadata): Observable<GetMessagesResponse>;
209
+ getNewChannelMessage(request: GetNewChannelMessageRequest, metadata?: Metadata): Observable<GetNewChannelMessageResponse>;
210
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
196
211
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
197
212
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
198
213
  getMembers(request: GetMembersRequest, metadata?: Metadata): Observable<GetMembersResponse>;
@@ -228,6 +243,8 @@ export interface ChannelServiceController {
228
243
  removeOperator(request: RemoveOperatorRequest, metadata?: Metadata): Observable<RemoveOperatorResponse>;
229
244
  getMessage(request: GetMessageRequest, metadata?: Metadata): Observable<GetMessageResponse>;
230
245
  getMessages(request: GetMessagesRequest, metadata?: Metadata): Observable<GetMessagesResponse>;
246
+ getNewChannelMessage(request: GetNewChannelMessageRequest, metadata?: Metadata): Observable<GetNewChannelMessageResponse>;
247
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
231
248
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
232
249
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
233
250
  getMembers(request: GetMembersRequest, metadata?: Metadata): Observable<GetMembersResponse>;
@@ -34,6 +34,8 @@ function ChannelServiceControllerMethods() {
34
34
  "removeOperator",
35
35
  "getMessage",
36
36
  "getMessages",
37
+ "getNewChannelMessage",
38
+ "getMessagesSpecifyInfo",
37
39
  "getHistorys",
38
40
  "holdMessage",
39
41
  "getMembers",
@@ -105,10 +105,26 @@ export interface ChannelMessage {
105
105
  reactions: Reaction[];
106
106
  streamId: number;
107
107
  }
108
+ export interface NewChannelMessage {
109
+ channelId: string;
110
+ seq: number;
111
+ userId: number;
112
+ message: string;
113
+ type: MessageType;
114
+ createdAt: string;
115
+ likeCount: number;
116
+ channelTitle: string;
117
+ channelThumbnailUrl: string;
118
+ deletedAt?: string | undefined;
119
+ }
108
120
  export interface Reaction {
109
121
  userId: number;
110
122
  reactionCode: string;
111
123
  }
124
+ export interface GetMessagesSpecifyType {
125
+ channelId: string;
126
+ seq: number;
127
+ }
112
128
  export interface History {
113
129
  streamId: number;
114
130
  userId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verychat/channel-protos",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,7 +16,9 @@ import {
16
16
  CreateChannelDto,
17
17
  CreateMessageDto,
18
18
  EditChannelDto,
19
+ GetMessagesSpecifyType,
19
20
  History,
21
+ NewChannelMessage,
20
22
  Operator,
21
23
  ReactionMessageDto,
22
24
  RecommendChannel,
@@ -194,6 +196,23 @@ export interface GetMessagesResponse {
194
196
  messages: ChannelMessage[];
195
197
  }
196
198
 
199
+ export interface GetNewChannelMessageRequest {
200
+ userId: number;
201
+ page?: number | undefined;
202
+ }
203
+
204
+ export interface GetNewChannelMessageResponse {
205
+ messages: NewChannelMessage[];
206
+ }
207
+
208
+ export interface GetMessageSpecifyRequest {
209
+ array: GetMessagesSpecifyType[];
210
+ }
211
+
212
+ export interface GetMessageSpecifyResponse {
213
+ messages: NewChannelMessage[];
214
+ }
215
+
197
216
  export interface GetHistorysRequest {
198
217
  channelId: string;
199
218
  lastStreamId: number;
@@ -282,6 +301,13 @@ export interface ChannelServiceClient {
282
301
 
283
302
  getMessages(request: GetMessagesRequest, metadata?: Metadata): Observable<GetMessagesResponse>;
284
303
 
304
+ getNewChannelMessage(
305
+ request: GetNewChannelMessageRequest,
306
+ metadata?: Metadata,
307
+ ): Observable<GetNewChannelMessageResponse>;
308
+
309
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
310
+
285
311
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
286
312
 
287
313
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
@@ -356,6 +382,13 @@ export interface ChannelServiceController {
356
382
 
357
383
  getMessages(request: GetMessagesRequest, metadata?: Metadata): Observable<GetMessagesResponse>;
358
384
 
385
+ getNewChannelMessage(
386
+ request: GetNewChannelMessageRequest,
387
+ metadata?: Metadata,
388
+ ): Observable<GetNewChannelMessageResponse>;
389
+
390
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
391
+
359
392
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
360
393
 
361
394
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
@@ -408,6 +441,8 @@ export function ChannelServiceControllerMethods() {
408
441
  "removeOperator",
409
442
  "getMessage",
410
443
  "getMessages",
444
+ "getNewChannelMessage",
445
+ "getMessagesSpecifyInfo",
411
446
  "getHistorys",
412
447
  "holdMessage",
413
448
  "getMembers",
@@ -127,11 +127,29 @@ export interface ChannelMessage {
127
127
  streamId: number;
128
128
  }
129
129
 
130
+ export interface NewChannelMessage {
131
+ channelId: string;
132
+ seq: number;
133
+ userId: number;
134
+ message: string;
135
+ type: MessageType;
136
+ createdAt: string;
137
+ likeCount: number;
138
+ channelTitle: string;
139
+ channelThumbnailUrl: string;
140
+ deletedAt?: string | undefined;
141
+ }
142
+
130
143
  export interface Reaction {
131
144
  userId: number;
132
145
  reactionCode: string;
133
146
  }
134
147
 
148
+ export interface GetMessagesSpecifyType {
149
+ channelId: string;
150
+ seq: number;
151
+ }
152
+
135
153
  export interface History {
136
154
  streamId: number;
137
155
  userId: number;