jr-common-micro 1.1.55 → 1.1.56
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/user/profile_messages_nest.d.ts +8 -0
- package/dist/proto/micro/v1/user/profile_messages_pb.d.ts +24 -0
- package/dist/proto/micro/v1/user/profile_messages_pb.js +55 -1
- package/dist/proto/micro/v1/user/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/user/services_connect.js +6 -0
- package/dist/proto/micro/v1/user/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/user/services_nest.js +1 -0
- package/package.json +1 -1
- package/proto/micro/v1/user/profile_messages.proto +11 -0
- package/proto/micro/v1/user/services.proto +1 -0
|
@@ -74,4 +74,12 @@ export interface AvatarPhotoResponse {
|
|
|
74
74
|
data: Buffer;
|
|
75
75
|
mimetype: string;
|
|
76
76
|
}
|
|
77
|
+
export interface SearchProfilesRequest {
|
|
78
|
+
query: string;
|
|
79
|
+
limit: number;
|
|
80
|
+
}
|
|
81
|
+
export interface ProfileIdListResponse {
|
|
82
|
+
status: ResponseStatus | undefined;
|
|
83
|
+
user_ids: string[];
|
|
84
|
+
}
|
|
77
85
|
export declare const MICRO_V1_USER_PACKAGE_NAME = "micro.v1.user";
|
|
@@ -187,3 +187,27 @@ export declare class AvatarPhotoResponse extends Message<AvatarPhotoResponse> {
|
|
|
187
187
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AvatarPhotoResponse;
|
|
188
188
|
static equals(a: AvatarPhotoResponse | PlainMessage<AvatarPhotoResponse> | undefined, b: AvatarPhotoResponse | PlainMessage<AvatarPhotoResponse> | undefined): boolean;
|
|
189
189
|
}
|
|
190
|
+
export declare class SearchProfilesRequest extends Message<SearchProfilesRequest> {
|
|
191
|
+
query: string;
|
|
192
|
+
limit: number;
|
|
193
|
+
constructor(data?: PartialMessage<SearchProfilesRequest>);
|
|
194
|
+
static readonly runtime: typeof proto3;
|
|
195
|
+
static readonly typeName = "micro.v1.user.SearchProfilesRequest";
|
|
196
|
+
static readonly fields: FieldList;
|
|
197
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchProfilesRequest;
|
|
198
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchProfilesRequest;
|
|
199
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchProfilesRequest;
|
|
200
|
+
static equals(a: SearchProfilesRequest | PlainMessage<SearchProfilesRequest> | undefined, b: SearchProfilesRequest | PlainMessage<SearchProfilesRequest> | undefined): boolean;
|
|
201
|
+
}
|
|
202
|
+
export declare class ProfileIdListResponse extends Message<ProfileIdListResponse> {
|
|
203
|
+
status?: ResponseStatus;
|
|
204
|
+
userIds: string[];
|
|
205
|
+
constructor(data?: PartialMessage<ProfileIdListResponse>);
|
|
206
|
+
static readonly runtime: typeof proto3;
|
|
207
|
+
static readonly typeName = "micro.v1.user.ProfileIdListResponse";
|
|
208
|
+
static readonly fields: FieldList;
|
|
209
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProfileIdListResponse;
|
|
210
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProfileIdListResponse;
|
|
211
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProfileIdListResponse;
|
|
212
|
+
static equals(a: ProfileIdListResponse | PlainMessage<ProfileIdListResponse> | undefined, b: ProfileIdListResponse | PlainMessage<ProfileIdListResponse> | undefined): boolean;
|
|
213
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AvatarPhotoResponse = exports.AvatarPhotoSetRequest = 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;
|
|
3
|
+
exports.ProfileIdListResponse = exports.SearchProfilesRequest = exports.AvatarPhotoResponse = exports.AvatarPhotoSetRequest = 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 {
|
|
@@ -417,3 +417,57 @@ class AvatarPhotoResponse extends protobuf_1.Message {
|
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
exports.AvatarPhotoResponse = AvatarPhotoResponse;
|
|
420
|
+
class SearchProfilesRequest extends protobuf_1.Message {
|
|
421
|
+
query = "";
|
|
422
|
+
limit = 0;
|
|
423
|
+
constructor(data) {
|
|
424
|
+
super();
|
|
425
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
426
|
+
}
|
|
427
|
+
static runtime = protobuf_1.proto3;
|
|
428
|
+
static typeName = "micro.v1.user.SearchProfilesRequest";
|
|
429
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
430
|
+
{ no: 1, name: "query", kind: "scalar", T: 9 },
|
|
431
|
+
{ no: 2, name: "limit", kind: "scalar", T: 5 },
|
|
432
|
+
]);
|
|
433
|
+
static fromBinary(bytes, options) {
|
|
434
|
+
return new SearchProfilesRequest().fromBinary(bytes, options);
|
|
435
|
+
}
|
|
436
|
+
static fromJson(jsonValue, options) {
|
|
437
|
+
return new SearchProfilesRequest().fromJson(jsonValue, options);
|
|
438
|
+
}
|
|
439
|
+
static fromJsonString(jsonString, options) {
|
|
440
|
+
return new SearchProfilesRequest().fromJsonString(jsonString, options);
|
|
441
|
+
}
|
|
442
|
+
static equals(a, b) {
|
|
443
|
+
return protobuf_1.proto3.util.equals(SearchProfilesRequest, a, b);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
exports.SearchProfilesRequest = SearchProfilesRequest;
|
|
447
|
+
class ProfileIdListResponse extends protobuf_1.Message {
|
|
448
|
+
status;
|
|
449
|
+
userIds = [];
|
|
450
|
+
constructor(data) {
|
|
451
|
+
super();
|
|
452
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
453
|
+
}
|
|
454
|
+
static runtime = protobuf_1.proto3;
|
|
455
|
+
static typeName = "micro.v1.user.ProfileIdListResponse";
|
|
456
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
457
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
458
|
+
{ no: 2, name: "user_ids", kind: "scalar", T: 9, repeated: true },
|
|
459
|
+
]);
|
|
460
|
+
static fromBinary(bytes, options) {
|
|
461
|
+
return new ProfileIdListResponse().fromBinary(bytes, options);
|
|
462
|
+
}
|
|
463
|
+
static fromJson(jsonValue, options) {
|
|
464
|
+
return new ProfileIdListResponse().fromJson(jsonValue, options);
|
|
465
|
+
}
|
|
466
|
+
static fromJsonString(jsonString, options) {
|
|
467
|
+
return new ProfileIdListResponse().fromJsonString(jsonString, options);
|
|
468
|
+
}
|
|
469
|
+
static equals(a, b) {
|
|
470
|
+
return protobuf_1.proto3.util.equals(ProfileIdListResponse, a, b);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
exports.ProfileIdListResponse = ProfileIdListResponse;
|
|
@@ -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 { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_pb.js";
|
|
6
|
+
import { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileIdListResponse, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, SearchProfilesRequest, 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";
|
|
@@ -223,6 +223,12 @@ export declare const PProfileService: {
|
|
|
223
223
|
readonly O: typeof EmptyResponse;
|
|
224
224
|
readonly kind: MethodKind.ServerStreaming;
|
|
225
225
|
};
|
|
226
|
+
readonly searchProfiles: {
|
|
227
|
+
readonly name: "SearchProfiles";
|
|
228
|
+
readonly I: typeof SearchProfilesRequest;
|
|
229
|
+
readonly O: typeof ProfileIdListResponse;
|
|
230
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
231
|
+
};
|
|
226
232
|
readonly myProfile: {
|
|
227
233
|
readonly name: "MyProfile";
|
|
228
234
|
readonly I: typeof EmptyRequest;
|
|
@@ -226,6 +226,12 @@ exports.PProfileService = {
|
|
|
226
226
|
O: general_pb_js_1.EmptyResponse,
|
|
227
227
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
228
228
|
},
|
|
229
|
+
searchProfiles: {
|
|
230
|
+
name: "SearchProfiles",
|
|
231
|
+
I: profile_messages_pb_js_1.SearchProfilesRequest,
|
|
232
|
+
O: profile_messages_pb_js_1.ProfileIdListResponse,
|
|
233
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
234
|
+
},
|
|
229
235
|
myProfile: {
|
|
230
236
|
name: "MyProfile",
|
|
231
237
|
I: general_pb_js_1.EmptyRequest,
|
|
@@ -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 { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_nest";
|
|
6
|
+
import { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileIdListResponse, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, SearchProfilesRequest, 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";
|
|
@@ -106,6 +106,7 @@ export interface PProfileServiceClient {
|
|
|
106
106
|
setAvatarPhoto(request: AvatarPhotoSetRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
107
107
|
getAvatarPhoto(request: ByIdRequest, metadata?: Metadata): Observable<AvatarPhotoResponse>;
|
|
108
108
|
deleteAvatarPhoto(request: EmptyRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
109
|
+
searchProfiles(request: SearchProfilesRequest, metadata?: Metadata): Observable<ProfileIdListResponse>;
|
|
109
110
|
myProfile(request: EmptyRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
|
|
110
111
|
updateProfile(request: ProfileUpdateRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
|
|
111
112
|
publicProfile(request: ProfileByUsernameRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
|
|
@@ -123,6 +124,7 @@ export interface PProfileServiceController {
|
|
|
123
124
|
setAvatarPhoto(request: AvatarPhotoSetRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
124
125
|
getAvatarPhoto(request: ByIdRequest, metadata?: Metadata): Observable<AvatarPhotoResponse>;
|
|
125
126
|
deleteAvatarPhoto(request: EmptyRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
127
|
+
searchProfiles(request: SearchProfilesRequest, metadata?: Metadata): Observable<ProfileIdListResponse>;
|
|
126
128
|
myProfile(request: EmptyRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
|
|
127
129
|
updateProfile(request: ProfileUpdateRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
|
|
128
130
|
publicProfile(request: ProfileByUsernameRequest, metadata?: Metadata): Observable<ProfileSingleResponse>;
|
package/package.json
CHANGED
|
@@ -95,3 +95,14 @@ message AvatarPhotoResponse {
|
|
|
95
95
|
bytes data = 2;
|
|
96
96
|
string mimetype = 3;
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
// Username substring search (admin user directory).
|
|
100
|
+
message SearchProfilesRequest {
|
|
101
|
+
string query = 1;
|
|
102
|
+
int32 limit = 2;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message ProfileIdListResponse {
|
|
106
|
+
ResponseStatus status = 1;
|
|
107
|
+
repeated string user_ids = 2;
|
|
108
|
+
}
|
|
@@ -65,6 +65,7 @@ service PProfileService {
|
|
|
65
65
|
rpc SetAvatarPhoto(AvatarPhotoSetRequest) returns(stream EmptyResponse) {}
|
|
66
66
|
rpc GetAvatarPhoto(ByIdRequest) returns(stream AvatarPhotoResponse) {}
|
|
67
67
|
rpc DeleteAvatarPhoto(EmptyRequest) returns(stream EmptyResponse) {}
|
|
68
|
+
rpc SearchProfiles(SearchProfilesRequest) returns(stream ProfileIdListResponse) {}
|
|
68
69
|
rpc MyProfile(EmptyRequest) returns(stream ProfileSingleResponse) {}
|
|
69
70
|
rpc UpdateProfile(ProfileUpdateRequest) returns(stream ProfileSingleResponse) {}
|
|
70
71
|
rpc PublicProfile(ProfileByUsernameRequest) returns(stream ProfileSingleResponse) {}
|