jr-common-micro 1.1.47 → 1.1.49

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.
Files changed (30) hide show
  1. package/dist/proto/micro/v1/coin/analytics_messages_nest.d.ts +6 -0
  2. package/dist/proto/micro/v1/coin/analytics_messages_pb.d.ts +14 -0
  3. package/dist/proto/micro/v1/coin/analytics_messages_pb.js +33 -2
  4. package/dist/proto/micro/v1/coin/services_connect.d.ts +2 -2
  5. package/dist/proto/micro/v1/coin/services_connect.js +1 -1
  6. package/dist/proto/micro/v1/coin/services_nest.d.ts +3 -3
  7. package/dist/proto/micro/v1/news/news_messages_nest.d.ts +3 -0
  8. package/dist/proto/micro/v1/news/news_messages_pb.d.ts +11 -0
  9. package/dist/proto/micro/v1/news/news_messages_pb.js +26 -1
  10. package/dist/proto/micro/v1/news/services_connect.d.ts +7 -1
  11. package/dist/proto/micro/v1/news/services_connect.js +6 -0
  12. package/dist/proto/micro/v1/news/services_nest.d.ts +3 -1
  13. package/dist/proto/micro/v1/news/services_nest.js +8 -1
  14. package/dist/proto/micro/v1/user/index.d.ts +1 -0
  15. package/dist/proto/micro/v1/user/index.js +2 -1
  16. package/dist/proto/micro/v1/user/profile_messages_nest.d.ts +64 -0
  17. package/dist/proto/micro/v1/user/profile_messages_nest.js +5 -0
  18. package/dist/proto/micro/v1/user/profile_messages_pb.d.ts +152 -0
  19. package/dist/proto/micro/v1/user/profile_messages_pb.js +336 -0
  20. package/dist/proto/micro/v1/user/services_connect.d.ts +72 -0
  21. package/dist/proto/micro/v1/user/services_connect.js +73 -1
  22. package/dist/proto/micro/v1/user/services_nest.d.ts +29 -0
  23. package/dist/proto/micro/v1/user/services_nest.js +29 -1
  24. package/package.json +1 -1
  25. package/proto/micro/v1/coin/analytics_messages.proto +8 -1
  26. package/proto/micro/v1/coin/services.proto +1 -1
  27. package/proto/micro/v1/news/news_messages.proto +2 -0
  28. package/proto/micro/v1/news/services.proto +1 -0
  29. package/proto/micro/v1/user/profile_messages.proto +80 -0
  30. package/proto/micro/v1/user/services.proto +15 -0
@@ -0,0 +1,336 @@
1
+ "use strict";
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;
4
+ const protobuf_1 = require("@bufbuild/protobuf");
5
+ const general_pb_js_1 = require("../general_pb.js");
6
+ class ProfileDto extends protobuf_1.Message {
7
+ userId = "";
8
+ username = "";
9
+ bio = "";
10
+ avatarId = "";
11
+ linkX = "";
12
+ linkInstagram = "";
13
+ linkYoutube = "";
14
+ linkTelegram = "";
15
+ role = "";
16
+ followerCount = 0;
17
+ followingCount = 0;
18
+ likeCount = 0;
19
+ isFollowing = false;
20
+ isLiked = false;
21
+ isMe = false;
22
+ memberSince = "";
23
+ constructor(data) {
24
+ super();
25
+ protobuf_1.proto3.util.initPartial(data, this);
26
+ }
27
+ static runtime = protobuf_1.proto3;
28
+ static typeName = "micro.v1.user.ProfileDto";
29
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
30
+ { no: 1, name: "user_id", kind: "scalar", T: 9 },
31
+ { no: 2, name: "username", kind: "scalar", T: 9 },
32
+ { no: 3, name: "bio", kind: "scalar", T: 9 },
33
+ { no: 4, name: "avatar_id", kind: "scalar", T: 9 },
34
+ { no: 5, name: "link_x", kind: "scalar", T: 9 },
35
+ { no: 6, name: "link_instagram", kind: "scalar", T: 9 },
36
+ { no: 7, name: "link_youtube", kind: "scalar", T: 9 },
37
+ { no: 8, name: "link_telegram", kind: "scalar", T: 9 },
38
+ { no: 9, name: "role", kind: "scalar", T: 9 },
39
+ { no: 10, name: "follower_count", kind: "scalar", T: 13 },
40
+ { no: 11, name: "following_count", kind: "scalar", T: 13 },
41
+ { no: 12, name: "like_count", kind: "scalar", T: 13 },
42
+ { no: 13, name: "is_following", kind: "scalar", T: 8 },
43
+ { no: 14, name: "is_liked", kind: "scalar", T: 8 },
44
+ { no: 15, name: "is_me", kind: "scalar", T: 8 },
45
+ { no: 16, name: "member_since", kind: "scalar", T: 9 },
46
+ ]);
47
+ static fromBinary(bytes, options) {
48
+ return new ProfileDto().fromBinary(bytes, options);
49
+ }
50
+ static fromJson(jsonValue, options) {
51
+ return new ProfileDto().fromJson(jsonValue, options);
52
+ }
53
+ static fromJsonString(jsonString, options) {
54
+ return new ProfileDto().fromJsonString(jsonString, options);
55
+ }
56
+ static equals(a, b) {
57
+ return protobuf_1.proto3.util.equals(ProfileDto, a, b);
58
+ }
59
+ }
60
+ exports.ProfileDto = ProfileDto;
61
+ class UsernameAvailableRequest extends protobuf_1.Message {
62
+ username = "";
63
+ constructor(data) {
64
+ super();
65
+ protobuf_1.proto3.util.initPartial(data, this);
66
+ }
67
+ static runtime = protobuf_1.proto3;
68
+ static typeName = "micro.v1.user.UsernameAvailableRequest";
69
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
70
+ { no: 1, name: "username", kind: "scalar", T: 9 },
71
+ ]);
72
+ static fromBinary(bytes, options) {
73
+ return new UsernameAvailableRequest().fromBinary(bytes, options);
74
+ }
75
+ static fromJson(jsonValue, options) {
76
+ return new UsernameAvailableRequest().fromJson(jsonValue, options);
77
+ }
78
+ static fromJsonString(jsonString, options) {
79
+ return new UsernameAvailableRequest().fromJsonString(jsonString, options);
80
+ }
81
+ static equals(a, b) {
82
+ return protobuf_1.proto3.util.equals(UsernameAvailableRequest, a, b);
83
+ }
84
+ }
85
+ exports.UsernameAvailableRequest = UsernameAvailableRequest;
86
+ class UsernameAvailableResponse extends protobuf_1.Message {
87
+ status;
88
+ available = false;
89
+ reason = "";
90
+ constructor(data) {
91
+ super();
92
+ protobuf_1.proto3.util.initPartial(data, this);
93
+ }
94
+ static runtime = protobuf_1.proto3;
95
+ static typeName = "micro.v1.user.UsernameAvailableResponse";
96
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
97
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
98
+ { no: 2, name: "available", kind: "scalar", T: 8 },
99
+ { no: 3, name: "reason", kind: "scalar", T: 9 },
100
+ ]);
101
+ static fromBinary(bytes, options) {
102
+ return new UsernameAvailableResponse().fromBinary(bytes, options);
103
+ }
104
+ static fromJson(jsonValue, options) {
105
+ return new UsernameAvailableResponse().fromJson(jsonValue, options);
106
+ }
107
+ static fromJsonString(jsonString, options) {
108
+ return new UsernameAvailableResponse().fromJsonString(jsonString, options);
109
+ }
110
+ static equals(a, b) {
111
+ return protobuf_1.proto3.util.equals(UsernameAvailableResponse, a, b);
112
+ }
113
+ }
114
+ exports.UsernameAvailableResponse = UsernameAvailableResponse;
115
+ class ClaimUsernameRequest extends protobuf_1.Message {
116
+ username = "";
117
+ constructor(data) {
118
+ super();
119
+ protobuf_1.proto3.util.initPartial(data, this);
120
+ }
121
+ static runtime = protobuf_1.proto3;
122
+ static typeName = "micro.v1.user.ClaimUsernameRequest";
123
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
124
+ { no: 1, name: "username", kind: "scalar", T: 9 },
125
+ ]);
126
+ static fromBinary(bytes, options) {
127
+ return new ClaimUsernameRequest().fromBinary(bytes, options);
128
+ }
129
+ static fromJson(jsonValue, options) {
130
+ return new ClaimUsernameRequest().fromJson(jsonValue, options);
131
+ }
132
+ static fromJsonString(jsonString, options) {
133
+ return new ClaimUsernameRequest().fromJsonString(jsonString, options);
134
+ }
135
+ static equals(a, b) {
136
+ return protobuf_1.proto3.util.equals(ClaimUsernameRequest, a, b);
137
+ }
138
+ }
139
+ exports.ClaimUsernameRequest = ClaimUsernameRequest;
140
+ class ProfileUpdateRequest extends protobuf_1.Message {
141
+ bio;
142
+ avatarId;
143
+ linkX;
144
+ linkInstagram;
145
+ linkYoutube;
146
+ linkTelegram;
147
+ constructor(data) {
148
+ super();
149
+ protobuf_1.proto3.util.initPartial(data, this);
150
+ }
151
+ static runtime = protobuf_1.proto3;
152
+ static typeName = "micro.v1.user.ProfileUpdateRequest";
153
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
154
+ { no: 1, name: "bio", kind: "scalar", T: 9, opt: true },
155
+ { no: 2, name: "avatar_id", kind: "scalar", T: 9, opt: true },
156
+ { no: 3, name: "link_x", kind: "scalar", T: 9, opt: true },
157
+ { no: 4, name: "link_instagram", kind: "scalar", T: 9, opt: true },
158
+ { no: 5, name: "link_youtube", kind: "scalar", T: 9, opt: true },
159
+ { no: 6, name: "link_telegram", kind: "scalar", T: 9, opt: true },
160
+ ]);
161
+ static fromBinary(bytes, options) {
162
+ return new ProfileUpdateRequest().fromBinary(bytes, options);
163
+ }
164
+ static fromJson(jsonValue, options) {
165
+ return new ProfileUpdateRequest().fromJson(jsonValue, options);
166
+ }
167
+ static fromJsonString(jsonString, options) {
168
+ return new ProfileUpdateRequest().fromJsonString(jsonString, options);
169
+ }
170
+ static equals(a, b) {
171
+ return protobuf_1.proto3.util.equals(ProfileUpdateRequest, a, b);
172
+ }
173
+ }
174
+ exports.ProfileUpdateRequest = ProfileUpdateRequest;
175
+ class ProfileByUsernameRequest extends protobuf_1.Message {
176
+ username = "";
177
+ constructor(data) {
178
+ super();
179
+ protobuf_1.proto3.util.initPartial(data, this);
180
+ }
181
+ static runtime = protobuf_1.proto3;
182
+ static typeName = "micro.v1.user.ProfileByUsernameRequest";
183
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
184
+ { no: 1, name: "username", kind: "scalar", T: 9 },
185
+ ]);
186
+ static fromBinary(bytes, options) {
187
+ return new ProfileByUsernameRequest().fromBinary(bytes, options);
188
+ }
189
+ static fromJson(jsonValue, options) {
190
+ return new ProfileByUsernameRequest().fromJson(jsonValue, options);
191
+ }
192
+ static fromJsonString(jsonString, options) {
193
+ return new ProfileByUsernameRequest().fromJsonString(jsonString, options);
194
+ }
195
+ static equals(a, b) {
196
+ return protobuf_1.proto3.util.equals(ProfileByUsernameRequest, a, b);
197
+ }
198
+ }
199
+ exports.ProfileByUsernameRequest = ProfileByUsernameRequest;
200
+ class ProfileSingleResponse extends protobuf_1.Message {
201
+ status;
202
+ data;
203
+ constructor(data) {
204
+ super();
205
+ protobuf_1.proto3.util.initPartial(data, this);
206
+ }
207
+ static runtime = protobuf_1.proto3;
208
+ static typeName = "micro.v1.user.ProfileSingleResponse";
209
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
210
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
211
+ { no: 2, name: "data", kind: "message", T: ProfileDto },
212
+ ]);
213
+ static fromBinary(bytes, options) {
214
+ return new ProfileSingleResponse().fromBinary(bytes, options);
215
+ }
216
+ static fromJson(jsonValue, options) {
217
+ return new ProfileSingleResponse().fromJson(jsonValue, options);
218
+ }
219
+ static fromJsonString(jsonString, options) {
220
+ return new ProfileSingleResponse().fromJsonString(jsonString, options);
221
+ }
222
+ static equals(a, b) {
223
+ return protobuf_1.proto3.util.equals(ProfileSingleResponse, a, b);
224
+ }
225
+ }
226
+ exports.ProfileSingleResponse = ProfileSingleResponse;
227
+ class FollowRequest extends protobuf_1.Message {
228
+ username = "";
229
+ constructor(data) {
230
+ super();
231
+ protobuf_1.proto3.util.initPartial(data, this);
232
+ }
233
+ static runtime = protobuf_1.proto3;
234
+ static typeName = "micro.v1.user.FollowRequest";
235
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
236
+ { no: 1, name: "username", kind: "scalar", T: 9 },
237
+ ]);
238
+ static fromBinary(bytes, options) {
239
+ return new FollowRequest().fromBinary(bytes, options);
240
+ }
241
+ static fromJson(jsonValue, options) {
242
+ return new FollowRequest().fromJson(jsonValue, options);
243
+ }
244
+ static fromJsonString(jsonString, options) {
245
+ return new FollowRequest().fromJsonString(jsonString, options);
246
+ }
247
+ static equals(a, b) {
248
+ return protobuf_1.proto3.util.equals(FollowRequest, a, b);
249
+ }
250
+ }
251
+ exports.FollowRequest = FollowRequest;
252
+ class LikeRequest extends protobuf_1.Message {
253
+ username = "";
254
+ constructor(data) {
255
+ super();
256
+ protobuf_1.proto3.util.initPartial(data, this);
257
+ }
258
+ static runtime = protobuf_1.proto3;
259
+ static typeName = "micro.v1.user.LikeRequest";
260
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
261
+ { no: 1, name: "username", kind: "scalar", T: 9 },
262
+ ]);
263
+ static fromBinary(bytes, options) {
264
+ return new LikeRequest().fromBinary(bytes, options);
265
+ }
266
+ static fromJson(jsonValue, options) {
267
+ return new LikeRequest().fromJson(jsonValue, options);
268
+ }
269
+ static fromJsonString(jsonString, options) {
270
+ return new LikeRequest().fromJsonString(jsonString, options);
271
+ }
272
+ static equals(a, b) {
273
+ return protobuf_1.proto3.util.equals(LikeRequest, a, b);
274
+ }
275
+ }
276
+ exports.LikeRequest = LikeRequest;
277
+ class ProfileListItemDto extends protobuf_1.Message {
278
+ userId = "";
279
+ username = "";
280
+ avatarId = "";
281
+ role = "";
282
+ constructor(data) {
283
+ super();
284
+ protobuf_1.proto3.util.initPartial(data, this);
285
+ }
286
+ static runtime = protobuf_1.proto3;
287
+ static typeName = "micro.v1.user.ProfileListItemDto";
288
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
289
+ { no: 1, name: "user_id", kind: "scalar", T: 9 },
290
+ { no: 2, name: "username", kind: "scalar", T: 9 },
291
+ { no: 3, name: "avatar_id", kind: "scalar", T: 9 },
292
+ { no: 4, name: "role", kind: "scalar", T: 9 },
293
+ ]);
294
+ static fromBinary(bytes, options) {
295
+ return new ProfileListItemDto().fromBinary(bytes, options);
296
+ }
297
+ static fromJson(jsonValue, options) {
298
+ return new ProfileListItemDto().fromJson(jsonValue, options);
299
+ }
300
+ static fromJsonString(jsonString, options) {
301
+ return new ProfileListItemDto().fromJsonString(jsonString, options);
302
+ }
303
+ static equals(a, b) {
304
+ return protobuf_1.proto3.util.equals(ProfileListItemDto, a, b);
305
+ }
306
+ }
307
+ exports.ProfileListItemDto = ProfileListItemDto;
308
+ class ProfileListResponse extends protobuf_1.Message {
309
+ status;
310
+ pagination;
311
+ data = [];
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.ProfileListResponse";
318
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
319
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
320
+ { no: 2, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult },
321
+ { no: 3, name: "data", kind: "message", T: ProfileListItemDto, repeated: true },
322
+ ]);
323
+ static fromBinary(bytes, options) {
324
+ return new ProfileListResponse().fromBinary(bytes, options);
325
+ }
326
+ static fromJson(jsonValue, options) {
327
+ return new ProfileListResponse().fromJson(jsonValue, options);
328
+ }
329
+ static fromJsonString(jsonString, options) {
330
+ return new ProfileListResponse().fromJsonString(jsonString, options);
331
+ }
332
+ static equals(a, b) {
333
+ return protobuf_1.proto3.util.equals(ProfileListResponse, a, b);
334
+ }
335
+ }
336
+ exports.ProfileListResponse = ProfileListResponse;
@@ -3,6 +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
7
  import { RoleAdminStoreRequest, RoleAdminUpdateRequest, RolePaginationResponse, RoleSingleResponse } from "./authorization_messages_pb.js";
7
8
  export declare const PAuthService: {
8
9
  readonly typeName: "micro.v1.user.PAuthService";
@@ -189,6 +190,77 @@ export declare const PUserExistService: {
189
190
  };
190
191
  };
191
192
  };
193
+ export declare const PProfileService: {
194
+ readonly typeName: "micro.v1.user.PProfileService";
195
+ readonly methods: {
196
+ readonly usernameAvailable: {
197
+ readonly name: "UsernameAvailable";
198
+ readonly I: typeof UsernameAvailableRequest;
199
+ readonly O: typeof UsernameAvailableResponse;
200
+ readonly kind: MethodKind.ServerStreaming;
201
+ };
202
+ readonly claimUsername: {
203
+ readonly name: "ClaimUsername";
204
+ readonly I: typeof ClaimUsernameRequest;
205
+ readonly O: typeof ProfileSingleResponse;
206
+ readonly kind: MethodKind.ServerStreaming;
207
+ };
208
+ readonly myProfile: {
209
+ readonly name: "MyProfile";
210
+ readonly I: typeof EmptyRequest;
211
+ readonly O: typeof ProfileSingleResponse;
212
+ readonly kind: MethodKind.ServerStreaming;
213
+ };
214
+ readonly updateProfile: {
215
+ readonly name: "UpdateProfile";
216
+ readonly I: typeof ProfileUpdateRequest;
217
+ readonly O: typeof ProfileSingleResponse;
218
+ readonly kind: MethodKind.ServerStreaming;
219
+ };
220
+ readonly publicProfile: {
221
+ readonly name: "PublicProfile";
222
+ readonly I: typeof ProfileByUsernameRequest;
223
+ readonly O: typeof ProfileSingleResponse;
224
+ readonly kind: MethodKind.ServerStreaming;
225
+ };
226
+ readonly follow: {
227
+ readonly name: "Follow";
228
+ readonly I: typeof FollowRequest;
229
+ readonly O: typeof ProfileSingleResponse;
230
+ readonly kind: MethodKind.ServerStreaming;
231
+ };
232
+ readonly unfollow: {
233
+ readonly name: "Unfollow";
234
+ readonly I: typeof FollowRequest;
235
+ readonly O: typeof ProfileSingleResponse;
236
+ readonly kind: MethodKind.ServerStreaming;
237
+ };
238
+ readonly like: {
239
+ readonly name: "Like";
240
+ readonly I: typeof LikeRequest;
241
+ readonly O: typeof ProfileSingleResponse;
242
+ readonly kind: MethodKind.ServerStreaming;
243
+ };
244
+ readonly unlike: {
245
+ readonly name: "Unlike";
246
+ readonly I: typeof LikeRequest;
247
+ readonly O: typeof ProfileSingleResponse;
248
+ readonly kind: MethodKind.ServerStreaming;
249
+ };
250
+ readonly followers: {
251
+ readonly name: "Followers";
252
+ readonly I: typeof PaginateRequest;
253
+ readonly O: typeof ProfileListResponse;
254
+ readonly kind: MethodKind.ServerStreaming;
255
+ };
256
+ readonly following: {
257
+ readonly name: "Following";
258
+ readonly I: typeof PaginateRequest;
259
+ readonly O: typeof ProfileListResponse;
260
+ readonly kind: MethodKind.ServerStreaming;
261
+ };
262
+ };
263
+ };
192
264
  export declare const PUserAdminService: {
193
265
  readonly typeName: "micro.v1.user.PUserAdminService";
194
266
  readonly methods: {
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PBetaCodeAdminService = exports.PRoleAdminService = exports.PUserAdminService = exports.PUserExistService = exports.PUserAppleService = exports.PUserGoogleService = exports.PSiteSettingsService = exports.PRoleService = exports.PUserService = exports.PAuthService = void 0;
3
+ exports.PBetaCodeAdminService = exports.PRoleAdminService = exports.PUserAdminService = exports.PProfileService = exports.PUserExistService = exports.PUserAppleService = exports.PUserGoogleService = exports.PSiteSettingsService = exports.PRoleService = exports.PUserService = exports.PAuthService = void 0;
4
4
  const auth_messages_pb_js_1 = require("./auth_messages_pb.js");
5
5
  const protobuf_1 = require("@bufbuild/protobuf");
6
6
  const general_pb_js_1 = require("../general_pb.js");
7
7
  const user_messages_pb_js_1 = require("./user_messages_pb.js");
8
8
  const site_settings_messages_pb_js_1 = require("./site_settings_messages_pb.js");
9
+ const profile_messages_pb_js_1 = require("./profile_messages_pb.js");
9
10
  const authorization_messages_pb_js_1 = require("./authorization_messages_pb.js");
10
11
  exports.PAuthService = {
11
12
  typeName: "micro.v1.user.PAuthService",
@@ -192,6 +193,77 @@ exports.PUserExistService = {
192
193
  },
193
194
  }
194
195
  };
196
+ exports.PProfileService = {
197
+ typeName: "micro.v1.user.PProfileService",
198
+ methods: {
199
+ usernameAvailable: {
200
+ name: "UsernameAvailable",
201
+ I: profile_messages_pb_js_1.UsernameAvailableRequest,
202
+ O: profile_messages_pb_js_1.UsernameAvailableResponse,
203
+ kind: protobuf_1.MethodKind.ServerStreaming,
204
+ },
205
+ claimUsername: {
206
+ name: "ClaimUsername",
207
+ I: profile_messages_pb_js_1.ClaimUsernameRequest,
208
+ O: profile_messages_pb_js_1.ProfileSingleResponse,
209
+ kind: protobuf_1.MethodKind.ServerStreaming,
210
+ },
211
+ myProfile: {
212
+ name: "MyProfile",
213
+ I: general_pb_js_1.EmptyRequest,
214
+ O: profile_messages_pb_js_1.ProfileSingleResponse,
215
+ kind: protobuf_1.MethodKind.ServerStreaming,
216
+ },
217
+ updateProfile: {
218
+ name: "UpdateProfile",
219
+ I: profile_messages_pb_js_1.ProfileUpdateRequest,
220
+ O: profile_messages_pb_js_1.ProfileSingleResponse,
221
+ kind: protobuf_1.MethodKind.ServerStreaming,
222
+ },
223
+ publicProfile: {
224
+ name: "PublicProfile",
225
+ I: profile_messages_pb_js_1.ProfileByUsernameRequest,
226
+ O: profile_messages_pb_js_1.ProfileSingleResponse,
227
+ kind: protobuf_1.MethodKind.ServerStreaming,
228
+ },
229
+ follow: {
230
+ name: "Follow",
231
+ I: profile_messages_pb_js_1.FollowRequest,
232
+ O: profile_messages_pb_js_1.ProfileSingleResponse,
233
+ kind: protobuf_1.MethodKind.ServerStreaming,
234
+ },
235
+ unfollow: {
236
+ name: "Unfollow",
237
+ I: profile_messages_pb_js_1.FollowRequest,
238
+ O: profile_messages_pb_js_1.ProfileSingleResponse,
239
+ kind: protobuf_1.MethodKind.ServerStreaming,
240
+ },
241
+ like: {
242
+ name: "Like",
243
+ I: profile_messages_pb_js_1.LikeRequest,
244
+ O: profile_messages_pb_js_1.ProfileSingleResponse,
245
+ kind: protobuf_1.MethodKind.ServerStreaming,
246
+ },
247
+ unlike: {
248
+ name: "Unlike",
249
+ I: profile_messages_pb_js_1.LikeRequest,
250
+ O: profile_messages_pb_js_1.ProfileSingleResponse,
251
+ kind: protobuf_1.MethodKind.ServerStreaming,
252
+ },
253
+ followers: {
254
+ name: "Followers",
255
+ I: general_pb_js_1.PaginateRequest,
256
+ O: profile_messages_pb_js_1.ProfileListResponse,
257
+ kind: protobuf_1.MethodKind.ServerStreaming,
258
+ },
259
+ following: {
260
+ name: "Following",
261
+ I: general_pb_js_1.PaginateRequest,
262
+ O: profile_messages_pb_js_1.ProfileListResponse,
263
+ kind: protobuf_1.MethodKind.ServerStreaming,
264
+ },
265
+ }
266
+ };
195
267
  exports.PUserAdminService = {
196
268
  typeName: "micro.v1.user.PUserAdminService",
197
269
  methods: {
@@ -3,6 +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
7
  import { SiteSettingsRequest, SiteSettingsResponse } from "./site_settings_messages_nest";
7
8
  import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_nest";
8
9
  export declare const protobufPackage = "micro.v1.user";
@@ -99,6 +100,34 @@ export interface PUserExistServiceController {
99
100
  }
100
101
  export declare function PUserExistServiceControllerMethods(): (constructor: Function) => void;
101
102
  export declare const P_USER_EXIST_SERVICE_NAME = "PUserExistService";
103
+ export interface PProfileServiceClient {
104
+ usernameAvailable(request: UsernameAvailableRequest, metadata?: Metadata): Observable<UsernameAvailableResponse>;
105
+ claimUsername(request: ClaimUsernameRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
106
+ myProfile(request: EmptyRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
107
+ updateProfile(request: ProfileUpdateRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
108
+ publicProfile(request: ProfileByUsernameRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
109
+ follow(request: FollowRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
110
+ unfollow(request: FollowRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
111
+ like(request: LikeRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
112
+ unlike(request: LikeRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
113
+ followers(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
114
+ following(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
115
+ }
116
+ export interface PProfileServiceController {
117
+ usernameAvailable(request: UsernameAvailableRequest, metadata?: Metadata): Observable<UsernameAvailableResponse>;
118
+ claimUsername(request: ClaimUsernameRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
119
+ myProfile(request: EmptyRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
120
+ updateProfile(request: ProfileUpdateRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
121
+ publicProfile(request: ProfileByUsernameRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
122
+ follow(request: FollowRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
123
+ unfollow(request: FollowRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
124
+ like(request: LikeRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
125
+ unlike(request: LikeRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
126
+ followers(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
127
+ following(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
128
+ }
129
+ export declare function PProfileServiceControllerMethods(): (constructor: Function) => void;
130
+ export declare const P_PROFILE_SERVICE_NAME = "PProfileService";
102
131
  export interface PUserAdminServiceClient {
103
132
  read(request: ByIdRequest, metadata?: Metadata): Observable<UserSingleResponse>;
104
133
  store(request: UserAdminStoreRequest, metadata?: Metadata): Observable<UserSingleResponse>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.P_BETA_CODE_ADMIN_SERVICE_NAME = exports.P_ROLE_ADMIN_SERVICE_NAME = exports.P_USER_ADMIN_SERVICE_NAME = exports.P_USER_EXIST_SERVICE_NAME = exports.P_USER_APPLE_SERVICE_NAME = exports.P_USER_GOOGLE_SERVICE_NAME = exports.P_SITE_SETTINGS_SERVICE_NAME = exports.P_ROLE_SERVICE_NAME = exports.P_USER_SERVICE_NAME = exports.P_AUTH_SERVICE_NAME = exports.MICRO_V1_USER_PACKAGE_NAME = exports.protobufPackage = void 0;
3
+ exports.P_BETA_CODE_ADMIN_SERVICE_NAME = exports.P_ROLE_ADMIN_SERVICE_NAME = exports.P_USER_ADMIN_SERVICE_NAME = exports.P_PROFILE_SERVICE_NAME = exports.P_USER_EXIST_SERVICE_NAME = exports.P_USER_APPLE_SERVICE_NAME = exports.P_USER_GOOGLE_SERVICE_NAME = exports.P_SITE_SETTINGS_SERVICE_NAME = exports.P_ROLE_SERVICE_NAME = exports.P_USER_SERVICE_NAME = exports.P_AUTH_SERVICE_NAME = exports.MICRO_V1_USER_PACKAGE_NAME = exports.protobufPackage = void 0;
4
4
  exports.PAuthServiceControllerMethods = PAuthServiceControllerMethods;
5
5
  exports.PUserServiceControllerMethods = PUserServiceControllerMethods;
6
6
  exports.PRoleServiceControllerMethods = PRoleServiceControllerMethods;
@@ -8,6 +8,7 @@ exports.PSiteSettingsServiceControllerMethods = PSiteSettingsServiceControllerMe
8
8
  exports.PUserGoogleServiceControllerMethods = PUserGoogleServiceControllerMethods;
9
9
  exports.PUserAppleServiceControllerMethods = PUserAppleServiceControllerMethods;
10
10
  exports.PUserExistServiceControllerMethods = PUserExistServiceControllerMethods;
11
+ exports.PProfileServiceControllerMethods = PProfileServiceControllerMethods;
11
12
  exports.PUserAdminServiceControllerMethods = PUserAdminServiceControllerMethods;
12
13
  exports.PRoleAdminServiceControllerMethods = PRoleAdminServiceControllerMethods;
13
14
  exports.PBetaCodeAdminServiceControllerMethods = PBetaCodeAdminServiceControllerMethods;
@@ -131,6 +132,33 @@ function PUserExistServiceControllerMethods() {
131
132
  };
132
133
  }
133
134
  exports.P_USER_EXIST_SERVICE_NAME = "PUserExistService";
135
+ function PProfileServiceControllerMethods() {
136
+ return function (constructor) {
137
+ const grpcMethods = [
138
+ "usernameAvailable",
139
+ "claimUsername",
140
+ "myProfile",
141
+ "updateProfile",
142
+ "publicProfile",
143
+ "follow",
144
+ "unfollow",
145
+ "like",
146
+ "unlike",
147
+ "followers",
148
+ "following",
149
+ ];
150
+ for (const method of grpcMethods) {
151
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
152
+ (0, microservices_1.GrpcMethod)("PProfileService", method)(constructor.prototype[method], method, descriptor);
153
+ }
154
+ const grpcStreamMethods = [];
155
+ for (const method of grpcStreamMethods) {
156
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
157
+ (0, microservices_1.GrpcStreamMethod)("PProfileService", method)(constructor.prototype[method], method, descriptor);
158
+ }
159
+ };
160
+ }
161
+ exports.P_PROFILE_SERVICE_NAME = "PProfileService";
134
162
  function PUserAdminServiceControllerMethods() {
135
163
  return function (constructor) {
136
164
  const grpcMethods = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.47",
3
+ "version": "1.1.49",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -384,6 +384,12 @@ message PaginateRequestCurrency {
384
384
  optional bool optimization = 14;
385
385
  }
386
386
 
387
+ message PassiveCurrenciesRequest {
388
+ int32 page = 1;
389
+ int32 per_page = 2;
390
+ int32 draw = 3;
391
+ }
392
+
387
393
  message PassiveCurrencyItem {
388
394
  string url_id = 1;
389
395
  string name = 2;
@@ -392,5 +398,6 @@ message PassiveCurrencyItem {
392
398
 
393
399
  message PassiveCurrenciesResponse {
394
400
  ResponseStatus status = 1;
395
- repeated PassiveCurrencyItem data = 2;
401
+ PaginationMetaResult pagination = 2;
402
+ repeated PassiveCurrencyItem data = 3;
396
403
  }
@@ -79,7 +79,7 @@ service PAnalyticsService {
79
79
  rpc CurrenciesNew(PaginateRequest) returns(stream CurrenciesNewResponse) {}
80
80
  rpc CurrenciesNewsChanges(CurrenciesNewsChangeRequest) returns(stream CurrenciesNewsChangeResponse) {}
81
81
  rpc PaginateCurrency(PaginateRequestCurrency) returns(stream CurrenciesNewResponse) {}
82
- rpc PassiveCurrencies(EmptyRequest) returns (PassiveCurrenciesResponse) {}
82
+ rpc PassiveCurrencies(PassiveCurrenciesRequest) returns (PassiveCurrenciesResponse) {}
83
83
  }
84
84
 
85
85
  // ---> Admin <---
@@ -169,6 +169,8 @@ message NewsReadCategory {
169
169
 
170
170
  message NewsReadCategories { repeated NewsReadCategory category = 1; }
171
171
 
172
+ message NewsReadTickers { repeated string tickers = 1; }
173
+
172
174
  message TranslateRequest {
173
175
  string id = 1;
174
176
  string language = 2;
@@ -24,6 +24,7 @@ service PNewsService {
24
24
  rpc PaginateFrom(PaginateFromRequest) returns(stream NewsPaginationResponse) {}
25
25
  rpc ReadAllByCoin(PaginateRequest) returns(stream NewsPaginationResponse) {}
26
26
  rpc ReadCategories(EmptyRequest) returns(stream NewsReadCategories) {}
27
+ rpc ReadTickers(EmptyRequest) returns(stream NewsReadTickers) {}
27
28
  }
28
29
 
29
30
  service PBlogService {