jr-common-micro 1.1.49 → 1.1.50

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.
@@ -0,0 +1,3 @@
1
+ export * as chat_messages_nest from './chat_messages_nest';
2
+ export * as services_connect from './services_connect';
3
+ export * as services_nest from './services_nest';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.services_nest = exports.services_connect = exports.chat_messages_nest = void 0;
4
+ const tslib_1 = require("tslib");
5
+ exports.chat_messages_nest = tslib_1.__importStar(require("./chat_messages_nest"));
6
+ exports.services_connect = tslib_1.__importStar(require("./services_connect"));
7
+ exports.services_nest = tslib_1.__importStar(require("./services_nest"));
@@ -0,0 +1,133 @@
1
+ import { EmptyRequest, EmptyResponse, PaginateRequest } from "../general_pb.js";
2
+ import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMemberListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest } from "./chat_messages_pb.js";
3
+ import { MethodKind } from "@bufbuild/protobuf";
4
+ export declare const PChatService: {
5
+ readonly typeName: "micro.v1.chat.PChatService";
6
+ readonly methods: {
7
+ readonly listGroups: {
8
+ readonly name: "ListGroups";
9
+ readonly I: typeof EmptyRequest;
10
+ readonly O: typeof ChatGroupListResponse;
11
+ readonly kind: MethodKind.ServerStreaming;
12
+ };
13
+ readonly getGroup: {
14
+ readonly name: "GetGroup";
15
+ readonly I: typeof GroupBySlugRequest;
16
+ readonly O: typeof ChatGroupSingleResponse;
17
+ readonly kind: MethodKind.ServerStreaming;
18
+ };
19
+ readonly joinGroup: {
20
+ readonly name: "JoinGroup";
21
+ readonly I: typeof GroupBySlugRequest;
22
+ readonly O: typeof JoinGroupResponse;
23
+ readonly kind: MethodKind.ServerStreaming;
24
+ };
25
+ readonly leaveGroup: {
26
+ readonly name: "LeaveGroup";
27
+ readonly I: typeof GroupBySlugRequest;
28
+ readonly O: typeof EmptyResponse;
29
+ readonly kind: MethodKind.ServerStreaming;
30
+ };
31
+ readonly messageHistory: {
32
+ readonly name: "MessageHistory";
33
+ readonly I: typeof MessageHistoryRequest;
34
+ readonly O: typeof MessageHistoryResponse;
35
+ readonly kind: MethodKind.ServerStreaming;
36
+ };
37
+ readonly pinnedMessages: {
38
+ readonly name: "PinnedMessages";
39
+ readonly I: typeof PinnedMessagesRequest;
40
+ readonly O: typeof PinnedMessagesResponse;
41
+ readonly kind: MethodKind.ServerStreaming;
42
+ };
43
+ readonly reportMessage: {
44
+ readonly name: "ReportMessage";
45
+ readonly I: typeof ReportMessageRequest;
46
+ readonly O: typeof EmptyResponse;
47
+ readonly kind: MethodKind.ServerStreaming;
48
+ };
49
+ readonly blockUser: {
50
+ readonly name: "BlockUser";
51
+ readonly I: typeof BlockUserRequest;
52
+ readonly O: typeof EmptyResponse;
53
+ readonly kind: MethodKind.ServerStreaming;
54
+ };
55
+ readonly unblockUser: {
56
+ readonly name: "UnblockUser";
57
+ readonly I: typeof BlockUserRequest;
58
+ readonly O: typeof EmptyResponse;
59
+ readonly kind: MethodKind.ServerStreaming;
60
+ };
61
+ readonly blockedUsers: {
62
+ readonly name: "BlockedUsers";
63
+ readonly I: typeof EmptyRequest;
64
+ readonly O: typeof BlockedUsersResponse;
65
+ readonly kind: MethodKind.ServerStreaming;
66
+ };
67
+ };
68
+ };
69
+ export declare const PChatModerationService: {
70
+ readonly typeName: "micro.v1.chat.PChatModerationService";
71
+ readonly methods: {
72
+ readonly upsertGroup: {
73
+ readonly name: "UpsertGroup";
74
+ readonly I: typeof GroupUpsertRequest;
75
+ readonly O: typeof ChatGroupSingleResponse;
76
+ readonly kind: MethodKind.ServerStreaming;
77
+ };
78
+ readonly applySanction: {
79
+ readonly name: "ApplySanction";
80
+ readonly I: typeof SanctionRequest;
81
+ readonly O: typeof EmptyResponse;
82
+ readonly kind: MethodKind.ServerStreaming;
83
+ };
84
+ readonly revokeSanction: {
85
+ readonly name: "RevokeSanction";
86
+ readonly I: typeof RevokeSanctionRequest;
87
+ readonly O: typeof EmptyResponse;
88
+ readonly kind: MethodKind.ServerStreaming;
89
+ };
90
+ readonly listSanctions: {
91
+ readonly name: "ListSanctions";
92
+ readonly I: typeof PaginateRequest;
93
+ readonly O: typeof SanctionListResponse;
94
+ readonly kind: MethodKind.ServerStreaming;
95
+ };
96
+ readonly deleteMessage: {
97
+ readonly name: "DeleteMessage";
98
+ readonly I: typeof DeleteMessageRequest;
99
+ readonly O: typeof EmptyResponse;
100
+ readonly kind: MethodKind.ServerStreaming;
101
+ };
102
+ readonly pinMessage: {
103
+ readonly name: "PinMessage";
104
+ readonly I: typeof PinMessageRequest;
105
+ readonly O: typeof EmptyResponse;
106
+ readonly kind: MethodKind.ServerStreaming;
107
+ };
108
+ readonly pendingMembers: {
109
+ readonly name: "PendingMembers";
110
+ readonly I: typeof PendingMembersRequest;
111
+ readonly O: typeof ChatMemberListResponse;
112
+ readonly kind: MethodKind.ServerStreaming;
113
+ };
114
+ readonly memberAction: {
115
+ readonly name: "MemberAction";
116
+ readonly I: typeof MemberActionRequest;
117
+ readonly O: typeof EmptyResponse;
118
+ readonly kind: MethodKind.ServerStreaming;
119
+ };
120
+ readonly listReports: {
121
+ readonly name: "ListReports";
122
+ readonly I: typeof PaginateRequest;
123
+ readonly O: typeof ReportListResponse;
124
+ readonly kind: MethodKind.ServerStreaming;
125
+ };
126
+ readonly reviewReport: {
127
+ readonly name: "ReviewReport";
128
+ readonly I: typeof ReviewReportRequest;
129
+ readonly O: typeof EmptyResponse;
130
+ readonly kind: MethodKind.ServerStreaming;
131
+ };
132
+ };
133
+ };
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PChatModerationService = exports.PChatService = void 0;
4
+ const general_pb_js_1 = require("../general_pb.js");
5
+ const chat_messages_pb_js_1 = require("./chat_messages_pb.js");
6
+ const protobuf_1 = require("@bufbuild/protobuf");
7
+ exports.PChatService = {
8
+ typeName: "micro.v1.chat.PChatService",
9
+ methods: {
10
+ listGroups: {
11
+ name: "ListGroups",
12
+ I: general_pb_js_1.EmptyRequest,
13
+ O: chat_messages_pb_js_1.ChatGroupListResponse,
14
+ kind: protobuf_1.MethodKind.ServerStreaming,
15
+ },
16
+ getGroup: {
17
+ name: "GetGroup",
18
+ I: chat_messages_pb_js_1.GroupBySlugRequest,
19
+ O: chat_messages_pb_js_1.ChatGroupSingleResponse,
20
+ kind: protobuf_1.MethodKind.ServerStreaming,
21
+ },
22
+ joinGroup: {
23
+ name: "JoinGroup",
24
+ I: chat_messages_pb_js_1.GroupBySlugRequest,
25
+ O: chat_messages_pb_js_1.JoinGroupResponse,
26
+ kind: protobuf_1.MethodKind.ServerStreaming,
27
+ },
28
+ leaveGroup: {
29
+ name: "LeaveGroup",
30
+ I: chat_messages_pb_js_1.GroupBySlugRequest,
31
+ O: general_pb_js_1.EmptyResponse,
32
+ kind: protobuf_1.MethodKind.ServerStreaming,
33
+ },
34
+ messageHistory: {
35
+ name: "MessageHistory",
36
+ I: chat_messages_pb_js_1.MessageHistoryRequest,
37
+ O: chat_messages_pb_js_1.MessageHistoryResponse,
38
+ kind: protobuf_1.MethodKind.ServerStreaming,
39
+ },
40
+ pinnedMessages: {
41
+ name: "PinnedMessages",
42
+ I: chat_messages_pb_js_1.PinnedMessagesRequest,
43
+ O: chat_messages_pb_js_1.PinnedMessagesResponse,
44
+ kind: protobuf_1.MethodKind.ServerStreaming,
45
+ },
46
+ reportMessage: {
47
+ name: "ReportMessage",
48
+ I: chat_messages_pb_js_1.ReportMessageRequest,
49
+ O: general_pb_js_1.EmptyResponse,
50
+ kind: protobuf_1.MethodKind.ServerStreaming,
51
+ },
52
+ blockUser: {
53
+ name: "BlockUser",
54
+ I: chat_messages_pb_js_1.BlockUserRequest,
55
+ O: general_pb_js_1.EmptyResponse,
56
+ kind: protobuf_1.MethodKind.ServerStreaming,
57
+ },
58
+ unblockUser: {
59
+ name: "UnblockUser",
60
+ I: chat_messages_pb_js_1.BlockUserRequest,
61
+ O: general_pb_js_1.EmptyResponse,
62
+ kind: protobuf_1.MethodKind.ServerStreaming,
63
+ },
64
+ blockedUsers: {
65
+ name: "BlockedUsers",
66
+ I: general_pb_js_1.EmptyRequest,
67
+ O: chat_messages_pb_js_1.BlockedUsersResponse,
68
+ kind: protobuf_1.MethodKind.ServerStreaming,
69
+ },
70
+ }
71
+ };
72
+ exports.PChatModerationService = {
73
+ typeName: "micro.v1.chat.PChatModerationService",
74
+ methods: {
75
+ upsertGroup: {
76
+ name: "UpsertGroup",
77
+ I: chat_messages_pb_js_1.GroupUpsertRequest,
78
+ O: chat_messages_pb_js_1.ChatGroupSingleResponse,
79
+ kind: protobuf_1.MethodKind.ServerStreaming,
80
+ },
81
+ applySanction: {
82
+ name: "ApplySanction",
83
+ I: chat_messages_pb_js_1.SanctionRequest,
84
+ O: general_pb_js_1.EmptyResponse,
85
+ kind: protobuf_1.MethodKind.ServerStreaming,
86
+ },
87
+ revokeSanction: {
88
+ name: "RevokeSanction",
89
+ I: chat_messages_pb_js_1.RevokeSanctionRequest,
90
+ O: general_pb_js_1.EmptyResponse,
91
+ kind: protobuf_1.MethodKind.ServerStreaming,
92
+ },
93
+ listSanctions: {
94
+ name: "ListSanctions",
95
+ I: general_pb_js_1.PaginateRequest,
96
+ O: chat_messages_pb_js_1.SanctionListResponse,
97
+ kind: protobuf_1.MethodKind.ServerStreaming,
98
+ },
99
+ deleteMessage: {
100
+ name: "DeleteMessage",
101
+ I: chat_messages_pb_js_1.DeleteMessageRequest,
102
+ O: general_pb_js_1.EmptyResponse,
103
+ kind: protobuf_1.MethodKind.ServerStreaming,
104
+ },
105
+ pinMessage: {
106
+ name: "PinMessage",
107
+ I: chat_messages_pb_js_1.PinMessageRequest,
108
+ O: general_pb_js_1.EmptyResponse,
109
+ kind: protobuf_1.MethodKind.ServerStreaming,
110
+ },
111
+ pendingMembers: {
112
+ name: "PendingMembers",
113
+ I: chat_messages_pb_js_1.PendingMembersRequest,
114
+ O: chat_messages_pb_js_1.ChatMemberListResponse,
115
+ kind: protobuf_1.MethodKind.ServerStreaming,
116
+ },
117
+ memberAction: {
118
+ name: "MemberAction",
119
+ I: chat_messages_pb_js_1.MemberActionRequest,
120
+ O: general_pb_js_1.EmptyResponse,
121
+ kind: protobuf_1.MethodKind.ServerStreaming,
122
+ },
123
+ listReports: {
124
+ name: "ListReports",
125
+ I: general_pb_js_1.PaginateRequest,
126
+ O: chat_messages_pb_js_1.ReportListResponse,
127
+ kind: protobuf_1.MethodKind.ServerStreaming,
128
+ },
129
+ reviewReport: {
130
+ name: "ReviewReport",
131
+ I: chat_messages_pb_js_1.ReviewReportRequest,
132
+ O: general_pb_js_1.EmptyResponse,
133
+ kind: protobuf_1.MethodKind.ServerStreaming,
134
+ },
135
+ }
136
+ };
@@ -0,0 +1,58 @@
1
+ import type { Metadata } from "@grpc/grpc-js";
2
+ import { Observable } from "rxjs";
3
+ import { EmptyRequest, EmptyResponse, PaginateRequest } from "../general_nest";
4
+ import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMemberListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest } from "./chat_messages_nest";
5
+ export declare const protobufPackage = "micro.v1.chat";
6
+ export declare const MICRO_V1_CHAT_PACKAGE_NAME = "micro.v1.chat";
7
+ export interface PChatServiceClient {
8
+ listGroups(request: EmptyRequest, metadata?: Metadata): Observable<ChatGroupListResponse>;
9
+ getGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<ChatGroupSingleResponse>;
10
+ joinGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<JoinGroupResponse>;
11
+ leaveGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<EmptyResponse>;
12
+ messageHistory(request: MessageHistoryRequest, metadata?: Metadata): Observable<MessageHistoryResponse>;
13
+ pinnedMessages(request: PinnedMessagesRequest, metadata?: Metadata): Observable<PinnedMessagesResponse>;
14
+ reportMessage(request: ReportMessageRequest, metadata?: Metadata): Observable<EmptyResponse>;
15
+ blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
16
+ unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
17
+ blockedUsers(request: EmptyRequest, metadata?: Metadata): Observable<BlockedUsersResponse>;
18
+ }
19
+ export interface PChatServiceController {
20
+ listGroups(request: EmptyRequest, metadata?: Metadata): Observable<ChatGroupListResponse>;
21
+ getGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<ChatGroupSingleResponse>;
22
+ joinGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<JoinGroupResponse>;
23
+ leaveGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<EmptyResponse>;
24
+ messageHistory(request: MessageHistoryRequest, metadata?: Metadata): Observable<MessageHistoryResponse>;
25
+ pinnedMessages(request: PinnedMessagesRequest, metadata?: Metadata): Observable<PinnedMessagesResponse>;
26
+ reportMessage(request: ReportMessageRequest, metadata?: Metadata): Observable<EmptyResponse>;
27
+ blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
28
+ unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
29
+ blockedUsers(request: EmptyRequest, metadata?: Metadata): Observable<BlockedUsersResponse>;
30
+ }
31
+ export declare function PChatServiceControllerMethods(): (constructor: Function) => void;
32
+ export declare const P_CHAT_SERVICE_NAME = "PChatService";
33
+ export interface PChatModerationServiceClient {
34
+ upsertGroup(request: GroupUpsertRequest, metadata?: Metadata): Observable<ChatGroupSingleResponse>;
35
+ applySanction(request: SanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
36
+ revokeSanction(request: RevokeSanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
37
+ listSanctions(request: PaginateRequest, metadata?: Metadata): Observable<SanctionListResponse>;
38
+ deleteMessage(request: DeleteMessageRequest, metadata?: Metadata): Observable<EmptyResponse>;
39
+ pinMessage(request: PinMessageRequest, metadata?: Metadata): Observable<EmptyResponse>;
40
+ pendingMembers(request: PendingMembersRequest, metadata?: Metadata): Observable<ChatMemberListResponse>;
41
+ memberAction(request: MemberActionRequest, metadata?: Metadata): Observable<EmptyResponse>;
42
+ listReports(request: PaginateRequest, metadata?: Metadata): Observable<ReportListResponse>;
43
+ reviewReport(request: ReviewReportRequest, metadata?: Metadata): Observable<EmptyResponse>;
44
+ }
45
+ export interface PChatModerationServiceController {
46
+ upsertGroup(request: GroupUpsertRequest, metadata?: Metadata): Observable<ChatGroupSingleResponse>;
47
+ applySanction(request: SanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
48
+ revokeSanction(request: RevokeSanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
49
+ listSanctions(request: PaginateRequest, metadata?: Metadata): Observable<SanctionListResponse>;
50
+ deleteMessage(request: DeleteMessageRequest, metadata?: Metadata): Observable<EmptyResponse>;
51
+ pinMessage(request: PinMessageRequest, metadata?: Metadata): Observable<EmptyResponse>;
52
+ pendingMembers(request: PendingMembersRequest, metadata?: Metadata): Observable<ChatMemberListResponse>;
53
+ memberAction(request: MemberActionRequest, metadata?: Metadata): Observable<EmptyResponse>;
54
+ listReports(request: PaginateRequest, metadata?: Metadata): Observable<ReportListResponse>;
55
+ reviewReport(request: ReviewReportRequest, metadata?: Metadata): Observable<EmptyResponse>;
56
+ }
57
+ export declare function PChatModerationServiceControllerMethods(): (constructor: Function) => void;
58
+ export declare const P_CHAT_MODERATION_SERVICE_NAME = "PChatModerationService";
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.P_CHAT_MODERATION_SERVICE_NAME = exports.P_CHAT_SERVICE_NAME = exports.MICRO_V1_CHAT_PACKAGE_NAME = exports.protobufPackage = void 0;
4
+ exports.PChatServiceControllerMethods = PChatServiceControllerMethods;
5
+ exports.PChatModerationServiceControllerMethods = PChatModerationServiceControllerMethods;
6
+ const microservices_1 = require("@nestjs/microservices");
7
+ exports.protobufPackage = "micro.v1.chat";
8
+ exports.MICRO_V1_CHAT_PACKAGE_NAME = "micro.v1.chat";
9
+ function PChatServiceControllerMethods() {
10
+ return function (constructor) {
11
+ const grpcMethods = [
12
+ "listGroups",
13
+ "getGroup",
14
+ "joinGroup",
15
+ "leaveGroup",
16
+ "messageHistory",
17
+ "pinnedMessages",
18
+ "reportMessage",
19
+ "blockUser",
20
+ "unblockUser",
21
+ "blockedUsers",
22
+ ];
23
+ for (const method of grpcMethods) {
24
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
25
+ (0, microservices_1.GrpcMethod)("PChatService", method)(constructor.prototype[method], method, descriptor);
26
+ }
27
+ const grpcStreamMethods = [];
28
+ for (const method of grpcStreamMethods) {
29
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
30
+ (0, microservices_1.GrpcStreamMethod)("PChatService", method)(constructor.prototype[method], method, descriptor);
31
+ }
32
+ };
33
+ }
34
+ exports.P_CHAT_SERVICE_NAME = "PChatService";
35
+ function PChatModerationServiceControllerMethods() {
36
+ return function (constructor) {
37
+ const grpcMethods = [
38
+ "upsertGroup",
39
+ "applySanction",
40
+ "revokeSanction",
41
+ "listSanctions",
42
+ "deleteMessage",
43
+ "pinMessage",
44
+ "pendingMembers",
45
+ "memberAction",
46
+ "listReports",
47
+ "reviewReport",
48
+ ];
49
+ for (const method of grpcMethods) {
50
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
51
+ (0, microservices_1.GrpcMethod)("PChatModerationService", method)(constructor.prototype[method], method, descriptor);
52
+ }
53
+ const grpcStreamMethods = [];
54
+ for (const method of grpcStreamMethods) {
55
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
56
+ (0, microservices_1.GrpcStreamMethod)("PChatModerationService", method)(constructor.prototype[method], method, descriptor);
57
+ }
58
+ };
59
+ }
60
+ exports.P_CHAT_MODERATION_SERVICE_NAME = "PChatModerationService";
@@ -1,3 +1,4 @@
1
+ export * as chat from './chat';
1
2
  export * as coin from './coin';
2
3
  export * as data from './data';
3
4
  export * as education from './education';
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.user = exports.puppeteer = exports.portfolio = exports.notification = exports.news = exports.media = exports.general_nest = exports.education = exports.data = exports.coin = void 0;
3
+ exports.user = exports.puppeteer = exports.portfolio = exports.notification = exports.news = exports.media = exports.general_nest = exports.education = exports.data = exports.coin = exports.chat = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ exports.chat = tslib_1.__importStar(require("./chat"));
5
6
  exports.coin = tslib_1.__importStar(require("./coin"));
6
7
  exports.data = tslib_1.__importStar(require("./data"));
7
8
  exports.education = tslib_1.__importStar(require("./education"));
@@ -55,6 +55,10 @@ export interface ProfileListItemDto {
55
55
  username: string;
56
56
  avatar_id: string;
57
57
  role: string;
58
+ status: string;
59
+ }
60
+ export interface ProfilesByIdsRequest {
61
+ user_ids: string[];
58
62
  }
59
63
  export interface ProfileListResponse {
60
64
  status: ResponseStatus | undefined;
@@ -128,6 +128,7 @@ export declare class ProfileListItemDto extends Message<ProfileListItemDto> {
128
128
  username: string;
129
129
  avatarId: string;
130
130
  role: string;
131
+ status: string;
131
132
  constructor(data?: PartialMessage<ProfileListItemDto>);
132
133
  static readonly runtime: typeof proto3;
133
134
  static readonly typeName = "micro.v1.user.ProfileListItemDto";
@@ -137,6 +138,17 @@ export declare class ProfileListItemDto extends Message<ProfileListItemDto> {
137
138
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProfileListItemDto;
138
139
  static equals(a: ProfileListItemDto | PlainMessage<ProfileListItemDto> | undefined, b: ProfileListItemDto | PlainMessage<ProfileListItemDto> | undefined): boolean;
139
140
  }
141
+ export declare class ProfilesByIdsRequest extends Message<ProfilesByIdsRequest> {
142
+ userIds: string[];
143
+ constructor(data?: PartialMessage<ProfilesByIdsRequest>);
144
+ static readonly runtime: typeof proto3;
145
+ static readonly typeName = "micro.v1.user.ProfilesByIdsRequest";
146
+ static readonly fields: FieldList;
147
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProfilesByIdsRequest;
148
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProfilesByIdsRequest;
149
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProfilesByIdsRequest;
150
+ static equals(a: ProfilesByIdsRequest | PlainMessage<ProfilesByIdsRequest> | undefined, b: ProfilesByIdsRequest | PlainMessage<ProfilesByIdsRequest> | undefined): boolean;
151
+ }
140
152
  export declare class ProfileListResponse extends Message<ProfileListResponse> {
141
153
  status?: ResponseStatus;
142
154
  pagination?: PaginationMetaResult;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProfileListResponse = exports.ProfileListItemDto = exports.LikeRequest = exports.FollowRequest = exports.ProfileSingleResponse = exports.ProfileByUsernameRequest = exports.ProfileUpdateRequest = exports.ClaimUsernameRequest = exports.UsernameAvailableResponse = exports.UsernameAvailableRequest = exports.ProfileDto = void 0;
3
+ exports.ProfileListResponse = exports.ProfilesByIdsRequest = exports.ProfileListItemDto = exports.LikeRequest = exports.FollowRequest = exports.ProfileSingleResponse = exports.ProfileByUsernameRequest = exports.ProfileUpdateRequest = exports.ClaimUsernameRequest = exports.UsernameAvailableResponse = exports.UsernameAvailableRequest = exports.ProfileDto = void 0;
4
4
  const protobuf_1 = require("@bufbuild/protobuf");
5
5
  const general_pb_js_1 = require("../general_pb.js");
6
6
  class ProfileDto extends protobuf_1.Message {
@@ -279,6 +279,7 @@ class ProfileListItemDto extends protobuf_1.Message {
279
279
  username = "";
280
280
  avatarId = "";
281
281
  role = "";
282
+ status = "";
282
283
  constructor(data) {
283
284
  super();
284
285
  protobuf_1.proto3.util.initPartial(data, this);
@@ -290,6 +291,7 @@ class ProfileListItemDto extends protobuf_1.Message {
290
291
  { no: 2, name: "username", kind: "scalar", T: 9 },
291
292
  { no: 3, name: "avatar_id", kind: "scalar", T: 9 },
292
293
  { no: 4, name: "role", kind: "scalar", T: 9 },
294
+ { no: 5, name: "status", kind: "scalar", T: 9 },
293
295
  ]);
294
296
  static fromBinary(bytes, options) {
295
297
  return new ProfileListItemDto().fromBinary(bytes, options);
@@ -305,6 +307,31 @@ class ProfileListItemDto extends protobuf_1.Message {
305
307
  }
306
308
  }
307
309
  exports.ProfileListItemDto = ProfileListItemDto;
310
+ class ProfilesByIdsRequest extends protobuf_1.Message {
311
+ userIds = [];
312
+ constructor(data) {
313
+ super();
314
+ protobuf_1.proto3.util.initPartial(data, this);
315
+ }
316
+ static runtime = protobuf_1.proto3;
317
+ static typeName = "micro.v1.user.ProfilesByIdsRequest";
318
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
319
+ { no: 1, name: "user_ids", kind: "scalar", T: 9, repeated: true },
320
+ ]);
321
+ static fromBinary(bytes, options) {
322
+ return new ProfilesByIdsRequest().fromBinary(bytes, options);
323
+ }
324
+ static fromJson(jsonValue, options) {
325
+ return new ProfilesByIdsRequest().fromJson(jsonValue, options);
326
+ }
327
+ static fromJsonString(jsonString, options) {
328
+ return new ProfilesByIdsRequest().fromJsonString(jsonString, options);
329
+ }
330
+ static equals(a, b) {
331
+ return protobuf_1.proto3.util.equals(ProfilesByIdsRequest, a, b);
332
+ }
333
+ }
334
+ exports.ProfilesByIdsRequest = ProfilesByIdsRequest;
308
335
  class ProfileListResponse extends protobuf_1.Message {
309
336
  status;
310
337
  pagination;
@@ -3,7 +3,7 @@ import { MethodKind } from "@bufbuild/protobuf";
3
3
  import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_pb.js";
4
4
  import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_pb.js";
5
5
  import { SiteSettingsRequest, SiteSettingsResponse } from "./site_settings_messages_pb.js";
6
- import { ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileListResponse, ProfileSingleResponse, ProfileUpdateRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_pb.js";
6
+ import { ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_pb.js";
7
7
  import { RoleAdminStoreRequest, RoleAdminUpdateRequest, RolePaginationResponse, RoleSingleResponse } from "./authorization_messages_pb.js";
8
8
  export declare const PAuthService: {
9
9
  readonly typeName: "micro.v1.user.PAuthService";
@@ -253,6 +253,12 @@ export declare const PProfileService: {
253
253
  readonly O: typeof ProfileListResponse;
254
254
  readonly kind: MethodKind.ServerStreaming;
255
255
  };
256
+ readonly profilesByIds: {
257
+ readonly name: "ProfilesByIds";
258
+ readonly I: typeof ProfilesByIdsRequest;
259
+ readonly O: typeof ProfileListResponse;
260
+ readonly kind: MethodKind.ServerStreaming;
261
+ };
256
262
  readonly following: {
257
263
  readonly name: "Following";
258
264
  readonly I: typeof PaginateRequest;
@@ -256,6 +256,12 @@ exports.PProfileService = {
256
256
  O: profile_messages_pb_js_1.ProfileListResponse,
257
257
  kind: protobuf_1.MethodKind.ServerStreaming,
258
258
  },
259
+ profilesByIds: {
260
+ name: "ProfilesByIds",
261
+ I: profile_messages_pb_js_1.ProfilesByIdsRequest,
262
+ O: profile_messages_pb_js_1.ProfileListResponse,
263
+ kind: protobuf_1.MethodKind.ServerStreaming,
264
+ },
259
265
  following: {
260
266
  name: "Following",
261
267
  I: general_pb_js_1.PaginateRequest,
@@ -3,7 +3,7 @@ import { Observable } from "rxjs";
3
3
  import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_nest";
4
4
  import { AppleRequest, GoogleRequest, LoginRequest, LoginResponse, LostPasswordChangePasswordRequest, LostPasswordChangePasswordResponse, LostPasswordHashCheckRequest, LostPasswordHashCheckResponse, LostPasswordStartRequest, LostPasswordStartResponse, RegisterRequest, RegisterResponse, RemoveUserDataRequest, ResendVerificationEmailRequest, ResendVerificationEmailResponse, TfaRequest, TfaResponse, UserVerificationRequest, UserVerificationResponse, VerifyTokenRequest, VerifyTokenResponse } from "./auth_messages_nest";
5
5
  import { RoleAdminStoreRequest, RoleAdminUpdateRequest, RolePaginationResponse, RoleSingleResponse } from "./authorization_messages_nest";
6
- import { ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileListResponse, ProfileSingleResponse, ProfileUpdateRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_nest";
6
+ import { ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_nest";
7
7
  import { SiteSettingsRequest, SiteSettingsResponse } from "./site_settings_messages_nest";
8
8
  import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_nest";
9
9
  export declare const protobufPackage = "micro.v1.user";
@@ -111,6 +111,7 @@ export interface PProfileServiceClient {
111
111
  like(request: LikeRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
112
112
  unlike(request: LikeRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
113
113
  followers(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
114
+ profilesByIds(request: ProfilesByIdsRequest, metadata?: Metadata): Observable<ProfileListResponse>;
114
115
  following(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
115
116
  }
116
117
  export interface PProfileServiceController {
@@ -124,6 +125,7 @@ export interface PProfileServiceController {
124
125
  like(request: LikeRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
125
126
  unlike(request: LikeRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
126
127
  followers(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
128
+ profilesByIds(request: ProfilesByIdsRequest, metadata?: Metadata): Observable<ProfileListResponse>;
127
129
  following(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
128
130
  }
129
131
  export declare function PProfileServiceControllerMethods(): (constructor: Function) => void;
@@ -145,6 +145,7 @@ function PProfileServiceControllerMethods() {
145
145
  "like",
146
146
  "unlike",
147
147
  "followers",
148
+ "profilesByIds",
148
149
  "following",
149
150
  ];
150
151
  for (const method of grpcMethods) {
@@ -7,6 +7,7 @@ export declare const DATA_MICRO = "DATA_MICRO";
7
7
  export declare const EDUCATION_MICRO = "EDUCATION_MICRO";
8
8
  export declare const PUPPETEER_MICRO = "PUPPETEER_MICRO";
9
9
  export declare const MEDIA_MICRO = "MEDIA_MICRO";
10
+ export declare const CHAT_MICRO = "CHAT_MICRO";
10
11
  export declare const X_INTERNAL_HASH = "x-internal-hash";
11
12
  export declare const FILTER_SEPARATOR = "_|_";
12
13
  export declare const KAFKA_KEYS: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MEDIA_UPLOADS_PATH = exports.KEYS = exports.KAFKA_KEYS = exports.FILTER_SEPARATOR = exports.X_INTERNAL_HASH = exports.MEDIA_MICRO = exports.PUPPETEER_MICRO = exports.EDUCATION_MICRO = exports.DATA_MICRO = exports.PORTFOLIO_MICRO = exports.USER_MICRO = exports.NOTIFICATION_MICRO = exports.NEWS_MICRO = exports.COIN_MICRO = void 0;
3
+ exports.MEDIA_UPLOADS_PATH = exports.KEYS = exports.KAFKA_KEYS = exports.FILTER_SEPARATOR = exports.X_INTERNAL_HASH = exports.CHAT_MICRO = exports.MEDIA_MICRO = exports.PUPPETEER_MICRO = exports.EDUCATION_MICRO = exports.DATA_MICRO = exports.PORTFOLIO_MICRO = exports.USER_MICRO = exports.NOTIFICATION_MICRO = exports.NEWS_MICRO = exports.COIN_MICRO = void 0;
4
4
  exports.COIN_MICRO = 'COIN_MICRO';
5
5
  exports.NEWS_MICRO = 'NEWS_MICRO';
6
6
  exports.NOTIFICATION_MICRO = 'NOTIFICATION_MICRO';
@@ -10,6 +10,7 @@ exports.DATA_MICRO = 'DATA_MICRO';
10
10
  exports.EDUCATION_MICRO = 'EDUCATION_MICRO';
11
11
  exports.PUPPETEER_MICRO = 'PUPPETEER_MICRO';
12
12
  exports.MEDIA_MICRO = 'MEDIA_MICRO';
13
+ exports.CHAT_MICRO = 'CHAT_MICRO';
13
14
  exports.X_INTERNAL_HASH = 'x-internal-hash';
14
15
  exports.FILTER_SEPARATOR = '_|_';
15
16
  exports.KAFKA_KEYS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.49",
3
+ "version": "1.1.50",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,