jr-common-micro 1.1.73 → 1.1.74
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/dist/proto/micro/v1/chat/services_connect.d.ts +6 -0
- package/dist/proto/micro/v1/chat/services_connect.js +6 -0
- package/dist/proto/micro/v1/chat/services_nest.d.ts +2 -0
- package/dist/proto/micro/v1/chat/services_nest.js +1 -0
- package/dist/proto/micro/v1/notification/notification_messages_nest.d.ts +1 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.d.ts +1 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.js +2 -0
- package/package.json +1 -1
- package/proto/micro/v1/chat/services.proto +3 -0
- package/proto/micro/v1/notification/notification_messages.proto +3 -0
|
@@ -88,6 +88,12 @@ export declare const PChatService: {
|
|
|
88
88
|
readonly O: typeof BlockedUsersResponse;
|
|
89
89
|
readonly kind: MethodKind.ServerStreaming;
|
|
90
90
|
};
|
|
91
|
+
readonly removeUserData: {
|
|
92
|
+
readonly name: "RemoveUserData";
|
|
93
|
+
readonly I: typeof ByIdRequest;
|
|
94
|
+
readonly O: typeof EmptyResponse;
|
|
95
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
96
|
+
};
|
|
91
97
|
};
|
|
92
98
|
};
|
|
93
99
|
export declare const PChatModerationService: {
|
|
@@ -91,6 +91,12 @@ exports.PChatService = {
|
|
|
91
91
|
O: chat_messages_pb_js_1.BlockedUsersResponse,
|
|
92
92
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
93
93
|
},
|
|
94
|
+
removeUserData: {
|
|
95
|
+
name: "RemoveUserData",
|
|
96
|
+
I: general_pb_js_1.ByIdRequest,
|
|
97
|
+
O: general_pb_js_1.EmptyResponse,
|
|
98
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
99
|
+
},
|
|
94
100
|
}
|
|
95
101
|
};
|
|
96
102
|
exports.PChatModerationService = {
|
|
@@ -19,6 +19,7 @@ export interface PChatServiceClient {
|
|
|
19
19
|
blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
20
20
|
unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
21
21
|
blockedUsers(request: EmptyRequest, metadata?: Metadata): Observable<BlockedUsersResponse>;
|
|
22
|
+
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
22
23
|
}
|
|
23
24
|
export interface PChatServiceController {
|
|
24
25
|
listGroups(request: EmptyRequest, metadata?: Metadata): Observable<ChatGroupListResponse>;
|
|
@@ -35,6 +36,7 @@ export interface PChatServiceController {
|
|
|
35
36
|
blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
36
37
|
unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
37
38
|
blockedUsers(request: EmptyRequest, metadata?: Metadata): Observable<BlockedUsersResponse>;
|
|
39
|
+
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
38
40
|
}
|
|
39
41
|
export declare function PChatServiceControllerMethods(): (constructor: Function) => void;
|
|
40
42
|
export declare const P_CHAT_SERVICE_NAME = "PChatService";
|
|
@@ -243,6 +243,7 @@ export declare class SendChatMentionRequest extends Message<SendChatMentionReque
|
|
|
243
243
|
groupSlug: string;
|
|
244
244
|
preview: string;
|
|
245
245
|
kind: string;
|
|
246
|
+
senderIsGroup: boolean;
|
|
246
247
|
constructor(data?: PartialMessage<SendChatMentionRequest>);
|
|
247
248
|
static readonly runtime: typeof proto3;
|
|
248
249
|
static readonly typeName = "micro.v1.notification.SendChatMentionRequest";
|
|
@@ -528,6 +528,7 @@ class SendChatMentionRequest extends protobuf_1.Message {
|
|
|
528
528
|
groupSlug = "";
|
|
529
529
|
preview = "";
|
|
530
530
|
kind = "";
|
|
531
|
+
senderIsGroup = false;
|
|
531
532
|
constructor(data) {
|
|
532
533
|
super();
|
|
533
534
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -541,6 +542,7 @@ class SendChatMentionRequest extends protobuf_1.Message {
|
|
|
541
542
|
{ no: 4, name: "group_slug", kind: "scalar", T: 9 },
|
|
542
543
|
{ no: 5, name: "preview", kind: "scalar", T: 9 },
|
|
543
544
|
{ no: 6, name: "kind", kind: "scalar", T: 9 },
|
|
545
|
+
{ no: 7, name: "sender_is_group", kind: "scalar", T: 8 },
|
|
544
546
|
]);
|
|
545
547
|
static fromBinary(bytes, options) {
|
|
546
548
|
return new SendChatMentionRequest().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -24,6 +24,9 @@ service PChatService {
|
|
|
24
24
|
rpc BlockUser(BlockUserRequest) returns(stream EmptyResponse) {}
|
|
25
25
|
rpc UnblockUser(BlockUserRequest) returns(stream EmptyResponse) {}
|
|
26
26
|
rpc BlockedUsers(EmptyRequest) returns(stream BlockedUsersResponse) {}
|
|
27
|
+
// Account deletion (called by user-micro's fan-out): erases everything
|
|
28
|
+
// the account wrote or did in chat. id = user id.
|
|
29
|
+
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
service PChatModerationService {
|
|
@@ -142,6 +142,9 @@ message SendChatMentionRequest {
|
|
|
142
142
|
string preview = 5;
|
|
143
143
|
// "mention" (default) or "message" (all-messages subscription push).
|
|
144
144
|
string kind = 6;
|
|
145
|
+
// sender_username is the GROUP's name (anonymous staff post): the push
|
|
146
|
+
// text must not put an "@" in front of it.
|
|
147
|
+
bool sender_is_group = 7;
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
message NotificationPaginationDto {
|