jr-common-micro 1.1.50 → 1.1.51

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.
@@ -124,6 +124,7 @@ export interface ChatMemberDto {
124
124
  role: string;
125
125
  status: string;
126
126
  joined_at: string;
127
+ is_online: boolean;
127
128
  }
128
129
  export interface ChatMemberListResponse {
129
130
  status: ResponseStatus | undefined;
@@ -293,6 +293,7 @@ export declare class ChatMemberDto extends Message<ChatMemberDto> {
293
293
  role: string;
294
294
  status: string;
295
295
  joinedAt: string;
296
+ isOnline: boolean;
296
297
  constructor(data?: PartialMessage<ChatMemberDto>);
297
298
  static readonly runtime: typeof proto3;
298
299
  static readonly typeName = "micro.v1.chat.ChatMemberDto";
@@ -643,6 +643,7 @@ class ChatMemberDto extends protobuf_1.Message {
643
643
  role = "";
644
644
  status = "";
645
645
  joinedAt = "";
646
+ isOnline = false;
646
647
  constructor(data) {
647
648
  super();
648
649
  protobuf_1.proto3.util.initPartial(data, this);
@@ -656,6 +657,7 @@ class ChatMemberDto extends protobuf_1.Message {
656
657
  { no: 4, name: "role", kind: "scalar", T: 9 },
657
658
  { no: 5, name: "status", kind: "scalar", T: 9 },
658
659
  { no: 6, name: "joined_at", kind: "scalar", T: 9 },
660
+ { no: 7, name: "is_online", kind: "scalar", T: 8 },
659
661
  ]);
660
662
  static fromBinary(bytes, options) {
661
663
  return new ChatMemberDto().fromBinary(bytes, options);
@@ -40,6 +40,12 @@ export declare const PChatService: {
40
40
  readonly O: typeof PinnedMessagesResponse;
41
41
  readonly kind: MethodKind.ServerStreaming;
42
42
  };
43
+ readonly listMembers: {
44
+ readonly name: "ListMembers";
45
+ readonly I: typeof GroupBySlugRequest;
46
+ readonly O: typeof ChatMemberListResponse;
47
+ readonly kind: MethodKind.ServerStreaming;
48
+ };
43
49
  readonly reportMessage: {
44
50
  readonly name: "ReportMessage";
45
51
  readonly I: typeof ReportMessageRequest;
@@ -43,6 +43,12 @@ exports.PChatService = {
43
43
  O: chat_messages_pb_js_1.PinnedMessagesResponse,
44
44
  kind: protobuf_1.MethodKind.ServerStreaming,
45
45
  },
46
+ listMembers: {
47
+ name: "ListMembers",
48
+ I: chat_messages_pb_js_1.GroupBySlugRequest,
49
+ O: chat_messages_pb_js_1.ChatMemberListResponse,
50
+ kind: protobuf_1.MethodKind.ServerStreaming,
51
+ },
46
52
  reportMessage: {
47
53
  name: "ReportMessage",
48
54
  I: chat_messages_pb_js_1.ReportMessageRequest,
@@ -11,6 +11,7 @@ export interface PChatServiceClient {
11
11
  leaveGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<EmptyResponse>;
12
12
  messageHistory(request: MessageHistoryRequest, metadata?: Metadata): Observable<MessageHistoryResponse>;
13
13
  pinnedMessages(request: PinnedMessagesRequest, metadata?: Metadata): Observable<PinnedMessagesResponse>;
14
+ listMembers(request: GroupBySlugRequest, metadata?: Metadata): Observable<ChatMemberListResponse>;
14
15
  reportMessage(request: ReportMessageRequest, metadata?: Metadata): Observable<EmptyResponse>;
15
16
  blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
16
17
  unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
@@ -23,6 +24,7 @@ export interface PChatServiceController {
23
24
  leaveGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<EmptyResponse>;
24
25
  messageHistory(request: MessageHistoryRequest, metadata?: Metadata): Observable<MessageHistoryResponse>;
25
26
  pinnedMessages(request: PinnedMessagesRequest, metadata?: Metadata): Observable<PinnedMessagesResponse>;
27
+ listMembers(request: GroupBySlugRequest, metadata?: Metadata): Observable<ChatMemberListResponse>;
26
28
  reportMessage(request: ReportMessageRequest, metadata?: Metadata): Observable<EmptyResponse>;
27
29
  blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
28
30
  unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
@@ -15,6 +15,7 @@ function PChatServiceControllerMethods() {
15
15
  "leaveGroup",
16
16
  "messageHistory",
17
17
  "pinnedMessages",
18
+ "listMembers",
18
19
  "reportMessage",
19
20
  "blockUser",
20
21
  "unblockUser",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.50",
3
+ "version": "1.1.51",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -155,6 +155,7 @@ message ChatMemberDto {
155
155
  string role = 4;
156
156
  string status = 5;
157
157
  string joined_at = 6;
158
+ bool is_online = 7;
158
159
  }
159
160
 
160
161
  message ChatMemberListResponse {
@@ -13,6 +13,7 @@ service PChatService {
13
13
 
14
14
  rpc MessageHistory(MessageHistoryRequest) returns(stream MessageHistoryResponse) {}
15
15
  rpc PinnedMessages(PinnedMessagesRequest) returns(stream PinnedMessagesResponse) {}
16
+ rpc ListMembers(GroupBySlugRequest) returns(stream ChatMemberListResponse) {}
16
17
 
17
18
  rpc ReportMessage(ReportMessageRequest) returns(stream EmptyResponse) {}
18
19
  rpc BlockUser(BlockUserRequest) returns(stream EmptyResponse) {}