geniebox-shared-lib 2.0.0 → 2.0.2
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/README.md +636 -0
- package/dist/auth.interface.d.ts +17 -0
- package/dist/auth.interface.js +54 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/dist/user.interface.d.ts +23 -7
- package/dist/user.interface.js +49 -6
- package/package.json +1 -1
- package/dist/account/account.client.d.ts +0 -11
- package/dist/account/account.client.js +0 -41
- package/dist/account/account.interface.d.ts +0 -184
- package/dist/account/account.interface.js +0 -625
- package/dist/ai/ai.client.d.ts +0 -12
- package/dist/ai/ai.client.js +0 -42
- package/dist/ai/ai.interface.d.ts +0 -138
- package/dist/ai/ai.interface.js +0 -532
- package/dist/ai/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/ai/google/protobuf/empty.interface.js +0 -35
- package/dist/ai/google/protobuf/struct.interface.d.ts +0 -91
- package/dist/ai/google/protobuf/struct.interface.js +0 -300
- package/dist/auth/auth.client.d.ts +0 -11
- package/dist/auth/auth.client.js +0 -44
- package/dist/auth/auth.interface.d.ts +0 -248
- package/dist/auth/auth.interface.js +0 -974
- package/dist/auth/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/auth/google/protobuf/empty.interface.js +0 -35
- package/dist/event/event.client.d.ts +0 -13
- package/dist/event/event.client.js +0 -48
- package/dist/event/event.interface.d.ts +0 -42
- package/dist/event/event.interface.js +0 -126
- package/dist/file/file.client.d.ts +0 -12
- package/dist/file/file.client.js +0 -42
- package/dist/file/file.interface.d.ts +0 -90
- package/dist/file/file.interface.js +0 -332
- package/dist/file.interface.d.ts +0 -90
- package/dist/file.interface.js +0 -332
- package/dist/key/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/key/google/protobuf/empty.interface.js +0 -35
- package/dist/key/key.client.d.ts +0 -12
- package/dist/key/key.client.js +0 -42
- package/dist/key/key.interface.d.ts +0 -134
- package/dist/key/key.interface.js +0 -430
- package/dist/openai/google/protobuf/struct.interface.d.ts +0 -91
- package/dist/openai/google/protobuf/struct.interface.js +0 -300
- package/dist/openai/openai.client.d.ts +0 -12
- package/dist/openai/openai.client.js +0 -43
- package/dist/openai/openai.interface.d.ts +0 -41
- package/dist/openai/openai.interface.js +0 -116
- package/dist/user/account.interface.d.ts +0 -184
- package/dist/user/account.interface.js +0 -625
- package/dist/user/google/protobuf/empty.interface.d.ts +0 -19
- package/dist/user/google/protobuf/empty.interface.js +0 -35
- package/dist/user/google/protobuf/timestamp.interface.d.ts +0 -114
- package/dist/user/google/protobuf/timestamp.interface.js +0 -65
- package/dist/user/user.client.d.ts +0 -12
- package/dist/user/user.client.js +0 -42
- package/dist/user/user.interface.d.ts +0 -289
- package/dist/user/user.interface.js +0 -1264
package/dist/auth.interface.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v5.28.2
|
|
6
6
|
// source: auth.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AuthServiceService = exports.AUTH_SERVICE_NAME = exports.ResendConfirmationCodeRequest = exports.GetByIdRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.RefreshTokenResponse = exports.RefreshRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.LogoutRequest = exports.UserResponse = exports.AuthResponse = exports.Tokens = exports.LoginCredentials = exports.RegisterCredentials = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
8
|
+
exports.AuthServiceService = exports.AUTH_SERVICE_NAME = exports.VerifyResetCodeRequest = exports.ResendConfirmationCodeRequest = exports.GetByIdRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.RefreshTokenResponse = exports.RefreshRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.LogoutRequest = exports.UserResponse = exports.AuthResponse = exports.Tokens = exports.LoginCredentials = exports.RegisterCredentials = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
@@ -844,6 +844,49 @@ exports.ResendConfirmationCodeRequest = {
|
|
|
844
844
|
return message;
|
|
845
845
|
},
|
|
846
846
|
};
|
|
847
|
+
function createBaseVerifyResetCodeRequest() {
|
|
848
|
+
return { email: "", code: "" };
|
|
849
|
+
}
|
|
850
|
+
exports.VerifyResetCodeRequest = {
|
|
851
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
852
|
+
if (message.email !== "") {
|
|
853
|
+
writer.uint32(10).string(message.email);
|
|
854
|
+
}
|
|
855
|
+
if (message.code !== "") {
|
|
856
|
+
writer.uint32(18).string(message.code);
|
|
857
|
+
}
|
|
858
|
+
return writer;
|
|
859
|
+
},
|
|
860
|
+
decode(input, length) {
|
|
861
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
862
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
863
|
+
const message = createBaseVerifyResetCodeRequest();
|
|
864
|
+
while (reader.pos < end) {
|
|
865
|
+
const tag = reader.uint32();
|
|
866
|
+
switch (tag >>> 3) {
|
|
867
|
+
case 1: {
|
|
868
|
+
if (tag !== 10) {
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
message.email = reader.string();
|
|
872
|
+
continue;
|
|
873
|
+
}
|
|
874
|
+
case 2: {
|
|
875
|
+
if (tag !== 18) {
|
|
876
|
+
break;
|
|
877
|
+
}
|
|
878
|
+
message.code = reader.string();
|
|
879
|
+
continue;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
883
|
+
break;
|
|
884
|
+
}
|
|
885
|
+
reader.skip(tag & 7);
|
|
886
|
+
}
|
|
887
|
+
return message;
|
|
888
|
+
},
|
|
889
|
+
};
|
|
847
890
|
function AuthServiceControllerMethods() {
|
|
848
891
|
return function (constructor) {
|
|
849
892
|
const grpcMethods = [
|
|
@@ -853,6 +896,7 @@ function AuthServiceControllerMethods() {
|
|
|
853
896
|
"refresh",
|
|
854
897
|
"logout",
|
|
855
898
|
"recover",
|
|
899
|
+
"verifyResetCode",
|
|
856
900
|
"resetPassword",
|
|
857
901
|
"confirmEmail",
|
|
858
902
|
"confirmEmailByCode",
|
|
@@ -926,6 +970,15 @@ exports.AuthServiceService = {
|
|
|
926
970
|
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
927
971
|
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
928
972
|
},
|
|
973
|
+
verifyResetCode: {
|
|
974
|
+
path: "/auth.AuthService/verifyResetCode",
|
|
975
|
+
requestStream: false,
|
|
976
|
+
responseStream: false,
|
|
977
|
+
requestSerialize: (value) => Buffer.from(exports.VerifyResetCodeRequest.encode(value).finish()),
|
|
978
|
+
requestDeserialize: (value) => exports.VerifyResetCodeRequest.decode(value),
|
|
979
|
+
responseSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
|
|
980
|
+
responseDeserialize: (value) => empty_interface_1.Empty.decode(value),
|
|
981
|
+
},
|
|
929
982
|
resetPassword: {
|
|
930
983
|
path: "/auth.AuthService/resetPassword",
|
|
931
984
|
requestStream: false,
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { OpenAIClient } from "./openai.client";
|
|
|
6
6
|
export { StorageClient } from "./storage.client";
|
|
7
7
|
export { EventClient } from "./event.client";
|
|
8
8
|
export { KeyClient } from "./key.client";
|
|
9
|
-
export { MessageFns as UserMessageFns, protobufPackage as UserProtobufPackage, User, CreateUserRequest, CreateUserPersonal, UpdateUserRequest,
|
|
9
|
+
export { MessageFns as UserMessageFns, protobufPackage as UserProtobufPackage, User, CreateUserRequest, CreateUserPersonal, UpdateUserRequest, FindOneRequest, UserResponse, UsersResponse, FindByEmailRequest, FindByPhoneRequest, UpdateUserPersonal, UpdatePasswordRequest, UpdateEmailVerificationRequest, ResetPasswordData, GetEmailVerificationStatusRequest, EmailVerificationStatusResponse, FindUsersByIdsRequest, UserServiceService as UserService, } from "./user.interface";
|
|
10
10
|
export { MessageFns as AuthMessageFns, protobufPackage as AuthProtobufPackage, LoginCredentials, RegisterCredentials, LogoutRequest, RefreshRequest, AuthResponse, RefreshTokenResponse, RecoverRequest, ResetPasswordRequest, ConfirmEmailRequest, ConfirmEmailByCodeRequest, ConfirmEmailResponse, CheckEmailVerifiedRequest, CheckEmailVerifiedResponse, ResendConfirmationCodeRequest, } from "./auth.interface";
|
|
11
11
|
export { MessageFns as AIMessageFns, protobufPackage as AIProtobufPackage, AICallRequest, AICallResponse, AIStatusRequest, AIStatusResponse, AIResultRequest, AIResultResponse, AICancelRequest, AICancelResponse, AIStreamRequest, AIStreamResponse, AIServiceService as AIService, } from "./ai.interface";
|
|
12
12
|
export { MessageFns as OpenAIMessageFns, protobufPackage as OpenAIProtobufPackage, CreateRequest as OpenAICreateRequest, CreateResponse as OpenAICreateResponse, OpenAIServiceService as OpenAIService, } from "./openai.interface";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.KeyService = exports.GetKeysByUserRequest = exports.KeysResponse = exports.KeyResponse = exports.GetKeyByIdRequest = exports.RemoveKeyRequest = exports.UpdateKeyRequest = exports.CreateKeyRequest = exports.Key = exports.KeysProtobufPackage = exports.EventService = exports.EventMessage = exports.SubscribeRequest = exports.EventProtobufPackage = exports.FileProtobufPackage = exports.StorageService = exports.DeleteResponse = exports.DeleteRequest = exports.DownloadResponse = exports.DownloadRequest = exports.UploadResponse = exports.UploadRequest = exports.OpenAIService = exports.OpenAICreateResponse = exports.OpenAICreateRequest = exports.OpenAIProtobufPackage = exports.AIService = exports.AIStreamResponse = void 0;
|
|
3
|
+
exports.AICancelResponse = exports.AICancelRequest = exports.AIResultResponse = exports.AIResultRequest = exports.AIStatusResponse = exports.AIStatusRequest = exports.AICallResponse = exports.AICallRequest = exports.AIProtobufPackage = exports.ResendConfirmationCodeRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailByCodeRequest = exports.ConfirmEmailRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.RefreshTokenResponse = exports.AuthResponse = exports.RefreshRequest = exports.LogoutRequest = exports.RegisterCredentials = exports.LoginCredentials = exports.AuthProtobufPackage = exports.UserService = exports.FindUsersByIdsRequest = exports.EmailVerificationStatusResponse = exports.GetEmailVerificationStatusRequest = exports.ResetPasswordData = exports.UpdateEmailVerificationRequest = exports.UpdatePasswordRequest = exports.UpdateUserPersonal = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.UsersResponse = exports.UserResponse = exports.FindOneRequest = exports.UpdateUserRequest = exports.CreateUserPersonal = exports.CreateUserRequest = exports.User = exports.UserProtobufPackage = exports.KeyClient = exports.EventClient = exports.StorageClient = exports.OpenAIClient = exports.AIClient = exports.AuthClient = exports.UsersClient = exports.SharedModule = void 0;
|
|
4
|
+
exports.KeyService = exports.GetKeysByUserRequest = exports.KeysResponse = exports.KeyResponse = exports.GetKeyByIdRequest = exports.RemoveKeyRequest = exports.UpdateKeyRequest = exports.CreateKeyRequest = exports.Key = exports.KeysProtobufPackage = exports.EventService = exports.EventMessage = exports.SubscribeRequest = exports.EventProtobufPackage = exports.FileProtobufPackage = exports.StorageService = exports.DeleteResponse = exports.DeleteRequest = exports.DownloadResponse = exports.DownloadRequest = exports.UploadResponse = exports.UploadRequest = exports.OpenAIService = exports.OpenAICreateResponse = exports.OpenAICreateRequest = exports.OpenAIProtobufPackage = exports.AIService = exports.AIStreamResponse = exports.AIStreamRequest = void 0;
|
|
5
5
|
var shared_module_1 = require("./shared.module");
|
|
6
6
|
Object.defineProperty(exports, "SharedModule", { enumerable: true, get: function () { return shared_module_1.SharedModule; } });
|
|
7
7
|
var user_client_1 = require("./user.client");
|
|
@@ -27,7 +27,7 @@ Object.defineProperty(exports, "User", { enumerable: true, get: function () { re
|
|
|
27
27
|
Object.defineProperty(exports, "CreateUserRequest", { enumerable: true, get: function () { return user_interface_1.CreateUserRequest; } });
|
|
28
28
|
Object.defineProperty(exports, "CreateUserPersonal", { enumerable: true, get: function () { return user_interface_1.CreateUserPersonal; } });
|
|
29
29
|
Object.defineProperty(exports, "UpdateUserRequest", { enumerable: true, get: function () { return user_interface_1.UpdateUserRequest; } });
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "FindOneRequest", { enumerable: true, get: function () { return user_interface_1.FindOneRequest; } });
|
|
31
31
|
Object.defineProperty(exports, "UserResponse", { enumerable: true, get: function () { return user_interface_1.UserResponse; } });
|
|
32
32
|
Object.defineProperty(exports, "UsersResponse", { enumerable: true, get: function () { return user_interface_1.UsersResponse; } });
|
|
33
33
|
Object.defineProperty(exports, "FindByEmailRequest", { enumerable: true, get: function () { return user_interface_1.FindByEmailRequest; } });
|
|
@@ -38,6 +38,7 @@ Object.defineProperty(exports, "UpdateEmailVerificationRequest", { enumerable: t
|
|
|
38
38
|
Object.defineProperty(exports, "ResetPasswordData", { enumerable: true, get: function () { return user_interface_1.ResetPasswordData; } });
|
|
39
39
|
Object.defineProperty(exports, "GetEmailVerificationStatusRequest", { enumerable: true, get: function () { return user_interface_1.GetEmailVerificationStatusRequest; } });
|
|
40
40
|
Object.defineProperty(exports, "EmailVerificationStatusResponse", { enumerable: true, get: function () { return user_interface_1.EmailVerificationStatusResponse; } });
|
|
41
|
+
Object.defineProperty(exports, "FindUsersByIdsRequest", { enumerable: true, get: function () { return user_interface_1.FindUsersByIdsRequest; } });
|
|
41
42
|
Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return user_interface_1.UserServiceService; } });
|
|
42
43
|
// ============================
|
|
43
44
|
// Auth exports
|
package/dist/user.interface.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface CreateUserRequest {
|
|
|
46
46
|
personal?: CreateUserPersonal | undefined;
|
|
47
47
|
authentication?: CreateUserAuthentication | undefined;
|
|
48
48
|
}
|
|
49
|
-
export interface
|
|
49
|
+
export interface FindOneRequest {
|
|
50
50
|
uuid: string;
|
|
51
51
|
}
|
|
52
52
|
export interface FindByEmailRequest {
|
|
@@ -89,6 +89,9 @@ export interface UpdateEmailVerificationRequest {
|
|
|
89
89
|
export interface GetEmailVerificationStatusRequest {
|
|
90
90
|
uuid: string;
|
|
91
91
|
}
|
|
92
|
+
export interface FindUsersByIdsRequest {
|
|
93
|
+
uuids: string[];
|
|
94
|
+
}
|
|
92
95
|
export interface UserResponse {
|
|
93
96
|
uuid: string;
|
|
94
97
|
photoUrl: string;
|
|
@@ -115,7 +118,7 @@ export declare const User: MessageFns<User>;
|
|
|
115
118
|
export declare const CreateUserPersonal: MessageFns<CreateUserPersonal>;
|
|
116
119
|
export declare const CreateUserAuthentication: MessageFns<CreateUserAuthentication>;
|
|
117
120
|
export declare const CreateUserRequest: MessageFns<CreateUserRequest>;
|
|
118
|
-
export declare const
|
|
121
|
+
export declare const FindOneRequest: MessageFns<FindOneRequest>;
|
|
119
122
|
export declare const FindByEmailRequest: MessageFns<FindByEmailRequest>;
|
|
120
123
|
export declare const FindByPhoneRequest: MessageFns<FindByPhoneRequest>;
|
|
121
124
|
export declare const UpdateUserRequest: MessageFns<UpdateUserRequest>;
|
|
@@ -125,12 +128,13 @@ export declare const ResetPasswordData: MessageFns<ResetPasswordData>;
|
|
|
125
128
|
export declare const RemoveUserRequest: MessageFns<RemoveUserRequest>;
|
|
126
129
|
export declare const UpdateEmailVerificationRequest: MessageFns<UpdateEmailVerificationRequest>;
|
|
127
130
|
export declare const GetEmailVerificationStatusRequest: MessageFns<GetEmailVerificationStatusRequest>;
|
|
131
|
+
export declare const FindUsersByIdsRequest: MessageFns<FindUsersByIdsRequest>;
|
|
128
132
|
export declare const UserResponse: MessageFns<UserResponse>;
|
|
129
133
|
export declare const UsersResponse: MessageFns<UsersResponse>;
|
|
130
134
|
export declare const EmailVerificationStatusResponse: MessageFns<EmailVerificationStatusResponse>;
|
|
131
135
|
export interface UserServiceClient {
|
|
132
136
|
create(request: CreateUserRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
133
|
-
findOne(request:
|
|
137
|
+
findOne(request: FindOneRequest, metadata?: Metadata): Observable<UserResponse>;
|
|
134
138
|
findByEmail(request: FindByEmailRequest, metadata?: Metadata): Observable<User>;
|
|
135
139
|
findByPhone(request: FindByPhoneRequest, metadata?: Metadata): Observable<User>;
|
|
136
140
|
findAll(request: Empty, metadata?: Metadata): Observable<UsersResponse>;
|
|
@@ -141,10 +145,11 @@ export interface UserServiceClient {
|
|
|
141
145
|
remove(request: RemoveUserRequest, metadata?: Metadata): Observable<Empty>;
|
|
142
146
|
updateEmailVerification(request: UpdateEmailVerificationRequest, metadata?: Metadata): Observable<EmailVerificationStatusResponse>;
|
|
143
147
|
getEmailVerificationStatus(request: GetEmailVerificationStatusRequest, metadata?: Metadata): Observable<EmailVerificationStatusResponse>;
|
|
148
|
+
getByIds(request: FindUsersByIdsRequest, metadata?: Metadata): Observable<UsersResponse>;
|
|
144
149
|
}
|
|
145
150
|
export interface UserServiceController {
|
|
146
151
|
create(request: CreateUserRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
147
|
-
findOne(request:
|
|
152
|
+
findOne(request: FindOneRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
|
|
148
153
|
findByEmail(request: FindByEmailRequest, metadata?: Metadata): Promise<User> | Observable<User> | User;
|
|
149
154
|
findByPhone(request: FindByPhoneRequest, metadata?: Metadata): Promise<User> | Observable<User> | User;
|
|
150
155
|
findAll(request: Empty, metadata?: Metadata): Promise<UsersResponse> | Observable<UsersResponse> | UsersResponse;
|
|
@@ -155,6 +160,7 @@ export interface UserServiceController {
|
|
|
155
160
|
remove(request: RemoveUserRequest, metadata?: Metadata): void;
|
|
156
161
|
updateEmailVerification(request: UpdateEmailVerificationRequest, metadata?: Metadata): Promise<EmailVerificationStatusResponse> | Observable<EmailVerificationStatusResponse> | EmailVerificationStatusResponse;
|
|
157
162
|
getEmailVerificationStatus(request: GetEmailVerificationStatusRequest, metadata?: Metadata): Promise<EmailVerificationStatusResponse> | Observable<EmailVerificationStatusResponse> | EmailVerificationStatusResponse;
|
|
163
|
+
getByIds(request: FindUsersByIdsRequest, metadata?: Metadata): Promise<UsersResponse> | Observable<UsersResponse> | UsersResponse;
|
|
158
164
|
}
|
|
159
165
|
export declare function UserServiceControllerMethods(): (constructor: Function) => void;
|
|
160
166
|
export declare const USER_SERVICE_NAME = "UserService";
|
|
@@ -173,8 +179,8 @@ export declare const UserServiceService: {
|
|
|
173
179
|
readonly path: "/user.UserService/findOne";
|
|
174
180
|
readonly requestStream: false;
|
|
175
181
|
readonly responseStream: false;
|
|
176
|
-
readonly requestSerialize: (value:
|
|
177
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
182
|
+
readonly requestSerialize: (value: FindOneRequest) => Buffer;
|
|
183
|
+
readonly requestDeserialize: (value: Buffer) => FindOneRequest;
|
|
178
184
|
readonly responseSerialize: (value: UserResponse) => Buffer;
|
|
179
185
|
readonly responseDeserialize: (value: Buffer) => UserResponse;
|
|
180
186
|
};
|
|
@@ -268,10 +274,19 @@ export declare const UserServiceService: {
|
|
|
268
274
|
readonly responseSerialize: (value: EmailVerificationStatusResponse) => Buffer;
|
|
269
275
|
readonly responseDeserialize: (value: Buffer) => EmailVerificationStatusResponse;
|
|
270
276
|
};
|
|
277
|
+
readonly getByIds: {
|
|
278
|
+
readonly path: "/user.UserService/getByIds";
|
|
279
|
+
readonly requestStream: false;
|
|
280
|
+
readonly responseStream: false;
|
|
281
|
+
readonly requestSerialize: (value: FindUsersByIdsRequest) => Buffer;
|
|
282
|
+
readonly requestDeserialize: (value: Buffer) => FindUsersByIdsRequest;
|
|
283
|
+
readonly responseSerialize: (value: UsersResponse) => Buffer;
|
|
284
|
+
readonly responseDeserialize: (value: Buffer) => UsersResponse;
|
|
285
|
+
};
|
|
271
286
|
};
|
|
272
287
|
export interface UserServiceServer extends UntypedServiceImplementation {
|
|
273
288
|
create: handleUnaryCall<CreateUserRequest, UserResponse>;
|
|
274
|
-
findOne: handleUnaryCall<
|
|
289
|
+
findOne: handleUnaryCall<FindOneRequest, UserResponse>;
|
|
275
290
|
findByEmail: handleUnaryCall<FindByEmailRequest, User>;
|
|
276
291
|
findByPhone: handleUnaryCall<FindByPhoneRequest, User>;
|
|
277
292
|
findAll: handleUnaryCall<Empty, UsersResponse>;
|
|
@@ -282,6 +297,7 @@ export interface UserServiceServer extends UntypedServiceImplementation {
|
|
|
282
297
|
remove: handleUnaryCall<RemoveUserRequest, Empty>;
|
|
283
298
|
updateEmailVerification: handleUnaryCall<UpdateEmailVerificationRequest, EmailVerificationStatusResponse>;
|
|
284
299
|
getEmailVerificationStatus: handleUnaryCall<GetEmailVerificationStatusRequest, EmailVerificationStatusResponse>;
|
|
300
|
+
getByIds: handleUnaryCall<FindUsersByIdsRequest, UsersResponse>;
|
|
285
301
|
}
|
|
286
302
|
export interface MessageFns<T> {
|
|
287
303
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
package/dist/user.interface.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v5.28.2
|
|
6
6
|
// source: user.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.UserServiceService = exports.USER_SERVICE_NAME = exports.EmailVerificationStatusResponse = exports.UsersResponse = exports.UserResponse = exports.GetEmailVerificationStatusRequest = exports.UpdateEmailVerificationRequest = exports.RemoveUserRequest = exports.ResetPasswordData = exports.UpdatePasswordRequest = exports.UpdateUserPersonal = exports.UpdateUserRequest = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.
|
|
8
|
+
exports.UserServiceService = exports.USER_SERVICE_NAME = exports.EmailVerificationStatusResponse = exports.UsersResponse = exports.UserResponse = exports.FindUsersByIdsRequest = exports.GetEmailVerificationStatusRequest = exports.UpdateEmailVerificationRequest = exports.RemoveUserRequest = exports.ResetPasswordData = exports.UpdatePasswordRequest = exports.UpdateUserPersonal = exports.UpdateUserRequest = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.FindOneRequest = exports.CreateUserRequest = exports.CreateUserAuthentication = exports.CreateUserPersonal = exports.User = exports.UserAuthentication = exports.UserPersonal = exports.USER_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.UserServiceControllerMethods = UserServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
@@ -454,10 +454,10 @@ exports.CreateUserRequest = {
|
|
|
454
454
|
return message;
|
|
455
455
|
},
|
|
456
456
|
};
|
|
457
|
-
function
|
|
457
|
+
function createBaseFindOneRequest() {
|
|
458
458
|
return { uuid: "" };
|
|
459
459
|
}
|
|
460
|
-
exports.
|
|
460
|
+
exports.FindOneRequest = {
|
|
461
461
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
462
462
|
if (message.uuid !== "") {
|
|
463
463
|
writer.uint32(10).string(message.uuid);
|
|
@@ -467,7 +467,7 @@ exports.GetByIdRequest = {
|
|
|
467
467
|
decode(input, length) {
|
|
468
468
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
469
469
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
470
|
-
const message =
|
|
470
|
+
const message = createBaseFindOneRequest();
|
|
471
471
|
while (reader.pos < end) {
|
|
472
472
|
const tag = reader.uint32();
|
|
473
473
|
switch (tag >>> 3) {
|
|
@@ -914,6 +914,39 @@ exports.GetEmailVerificationStatusRequest = {
|
|
|
914
914
|
return message;
|
|
915
915
|
},
|
|
916
916
|
};
|
|
917
|
+
function createBaseFindUsersByIdsRequest() {
|
|
918
|
+
return { uuids: [] };
|
|
919
|
+
}
|
|
920
|
+
exports.FindUsersByIdsRequest = {
|
|
921
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
922
|
+
for (const v of message.uuids) {
|
|
923
|
+
writer.uint32(10).string(v);
|
|
924
|
+
}
|
|
925
|
+
return writer;
|
|
926
|
+
},
|
|
927
|
+
decode(input, length) {
|
|
928
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
929
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
930
|
+
const message = createBaseFindUsersByIdsRequest();
|
|
931
|
+
while (reader.pos < end) {
|
|
932
|
+
const tag = reader.uint32();
|
|
933
|
+
switch (tag >>> 3) {
|
|
934
|
+
case 1: {
|
|
935
|
+
if (tag !== 10) {
|
|
936
|
+
break;
|
|
937
|
+
}
|
|
938
|
+
message.uuids.push(reader.string());
|
|
939
|
+
continue;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
reader.skip(tag & 7);
|
|
946
|
+
}
|
|
947
|
+
return message;
|
|
948
|
+
},
|
|
949
|
+
};
|
|
917
950
|
function createBaseUserResponse() {
|
|
918
951
|
return {
|
|
919
952
|
uuid: "",
|
|
@@ -1139,6 +1172,7 @@ function UserServiceControllerMethods() {
|
|
|
1139
1172
|
"remove",
|
|
1140
1173
|
"updateEmailVerification",
|
|
1141
1174
|
"getEmailVerificationStatus",
|
|
1175
|
+
"getByIds",
|
|
1142
1176
|
];
|
|
1143
1177
|
for (const method of grpcMethods) {
|
|
1144
1178
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -1166,8 +1200,8 @@ exports.UserServiceService = {
|
|
|
1166
1200
|
path: "/user.UserService/findOne",
|
|
1167
1201
|
requestStream: false,
|
|
1168
1202
|
responseStream: false,
|
|
1169
|
-
requestSerialize: (value) => Buffer.from(exports.
|
|
1170
|
-
requestDeserialize: (value) => exports.
|
|
1203
|
+
requestSerialize: (value) => Buffer.from(exports.FindOneRequest.encode(value).finish()),
|
|
1204
|
+
requestDeserialize: (value) => exports.FindOneRequest.decode(value),
|
|
1171
1205
|
responseSerialize: (value) => Buffer.from(exports.UserResponse.encode(value).finish()),
|
|
1172
1206
|
responseDeserialize: (value) => exports.UserResponse.decode(value),
|
|
1173
1207
|
},
|
|
@@ -1261,4 +1295,13 @@ exports.UserServiceService = {
|
|
|
1261
1295
|
responseSerialize: (value) => Buffer.from(exports.EmailVerificationStatusResponse.encode(value).finish()),
|
|
1262
1296
|
responseDeserialize: (value) => exports.EmailVerificationStatusResponse.decode(value),
|
|
1263
1297
|
},
|
|
1298
|
+
getByIds: {
|
|
1299
|
+
path: "/user.UserService/getByIds",
|
|
1300
|
+
requestStream: false,
|
|
1301
|
+
responseStream: false,
|
|
1302
|
+
requestSerialize: (value) => Buffer.from(exports.FindUsersByIdsRequest.encode(value).finish()),
|
|
1303
|
+
requestDeserialize: (value) => exports.FindUsersByIdsRequest.decode(value),
|
|
1304
|
+
responseSerialize: (value) => Buffer.from(exports.UsersResponse.encode(value).finish()),
|
|
1305
|
+
responseDeserialize: (value) => exports.UsersResponse.decode(value),
|
|
1306
|
+
},
|
|
1264
1307
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OnModuleInit } from "@nestjs/common";
|
|
2
|
-
import { ClientGrpc } from "@nestjs/microservices";
|
|
3
|
-
import { AccountServiceClient } from "./account.interface";
|
|
4
|
-
export declare class AccountClient implements OnModuleInit {
|
|
5
|
-
private client;
|
|
6
|
-
private readonly logger;
|
|
7
|
-
private accountClient;
|
|
8
|
-
constructor(client: ClientGrpc);
|
|
9
|
-
onModuleInit(): void;
|
|
10
|
-
get service(): AccountServiceClient;
|
|
11
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var AccountClient_1;
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AccountClient = void 0;
|
|
17
|
-
const common_1 = require("@nestjs/common");
|
|
18
|
-
let AccountClient = AccountClient_1 = class AccountClient {
|
|
19
|
-
constructor(client) {
|
|
20
|
-
this.client = client;
|
|
21
|
-
this.logger = new common_1.Logger(AccountClient_1.name);
|
|
22
|
-
this.accountClient = null;
|
|
23
|
-
}
|
|
24
|
-
onModuleInit() {
|
|
25
|
-
this.accountClient =
|
|
26
|
-
this.client.getService("AccountService");
|
|
27
|
-
this.logger.log("AccountServiceClient initialized");
|
|
28
|
-
}
|
|
29
|
-
get service() {
|
|
30
|
-
if (!this.accountClient) {
|
|
31
|
-
throw new Error("AccountService not initialized yet");
|
|
32
|
-
}
|
|
33
|
-
return this.accountClient;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.AccountClient = AccountClient;
|
|
37
|
-
exports.AccountClient = AccountClient = AccountClient_1 = __decorate([
|
|
38
|
-
(0, common_1.Injectable)(),
|
|
39
|
-
__param(0, (0, common_1.Inject)("ACCOUNT_PACKAGE")),
|
|
40
|
-
__metadata("design:paramtypes", [Object])
|
|
41
|
-
], AccountClient);
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import type { handleServerStreamingCall, handleUnaryCall, Metadata, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
export declare const protobufPackage = "account";
|
|
5
|
-
/** User message */
|
|
6
|
-
export interface User {
|
|
7
|
-
uuid: string;
|
|
8
|
-
firstName: string;
|
|
9
|
-
lastName: string;
|
|
10
|
-
email: string;
|
|
11
|
-
phoneNumber: string;
|
|
12
|
-
photoUrl: string;
|
|
13
|
-
/** "male" или "female" */
|
|
14
|
-
gender: string;
|
|
15
|
-
/** ISO дата */
|
|
16
|
-
birthday: string;
|
|
17
|
-
}
|
|
18
|
-
/** Account message */
|
|
19
|
-
export interface Account {
|
|
20
|
-
uuid: string;
|
|
21
|
-
name: string;
|
|
22
|
-
imageUrl?: string | undefined;
|
|
23
|
-
users: User[];
|
|
24
|
-
}
|
|
25
|
-
/** Requests */
|
|
26
|
-
export interface CreateAccountRequest {
|
|
27
|
-
name: string;
|
|
28
|
-
imageUrl?: string | undefined;
|
|
29
|
-
}
|
|
30
|
-
export interface CreateAccountWithUsersRequest {
|
|
31
|
-
name: string;
|
|
32
|
-
imageUrl?: string | undefined;
|
|
33
|
-
userIds: string[];
|
|
34
|
-
}
|
|
35
|
-
export interface AddUserRequest {
|
|
36
|
-
accountId: string;
|
|
37
|
-
userId: string;
|
|
38
|
-
}
|
|
39
|
-
export interface GetAccountRequest {
|
|
40
|
-
uuid: string;
|
|
41
|
-
}
|
|
42
|
-
export interface GetAccountWithUsersRequest {
|
|
43
|
-
uuid: string;
|
|
44
|
-
}
|
|
45
|
-
export interface UpdateAccountRequest {
|
|
46
|
-
uuid: string;
|
|
47
|
-
name: string;
|
|
48
|
-
imageUrl?: string | undefined;
|
|
49
|
-
}
|
|
50
|
-
export interface DeleteAccountRequest {
|
|
51
|
-
uuid: string;
|
|
52
|
-
}
|
|
53
|
-
/** Responses */
|
|
54
|
-
export interface AccountResponse {
|
|
55
|
-
account: Account | undefined;
|
|
56
|
-
}
|
|
57
|
-
export interface Empty {
|
|
58
|
-
}
|
|
59
|
-
export declare const ACCOUNT_PACKAGE_NAME = "account";
|
|
60
|
-
export declare const User: MessageFns<User>;
|
|
61
|
-
export declare const Account: MessageFns<Account>;
|
|
62
|
-
export declare const CreateAccountRequest: MessageFns<CreateAccountRequest>;
|
|
63
|
-
export declare const CreateAccountWithUsersRequest: MessageFns<CreateAccountWithUsersRequest>;
|
|
64
|
-
export declare const AddUserRequest: MessageFns<AddUserRequest>;
|
|
65
|
-
export declare const GetAccountRequest: MessageFns<GetAccountRequest>;
|
|
66
|
-
export declare const GetAccountWithUsersRequest: MessageFns<GetAccountWithUsersRequest>;
|
|
67
|
-
export declare const UpdateAccountRequest: MessageFns<UpdateAccountRequest>;
|
|
68
|
-
export declare const DeleteAccountRequest: MessageFns<DeleteAccountRequest>;
|
|
69
|
-
export declare const AccountResponse: MessageFns<AccountResponse>;
|
|
70
|
-
export declare const Empty: MessageFns<Empty>;
|
|
71
|
-
/** Service */
|
|
72
|
-
export interface AccountServiceClient {
|
|
73
|
-
createAccount(request: CreateAccountRequest, metadata?: Metadata): Observable<AccountResponse>;
|
|
74
|
-
createAccountWithUsers(request: CreateAccountWithUsersRequest, metadata?: Metadata): Observable<AccountResponse>;
|
|
75
|
-
addUser(request: AddUserRequest, metadata?: Metadata): Observable<Empty>;
|
|
76
|
-
getAccount(request: GetAccountRequest, metadata?: Metadata): Observable<AccountResponse>;
|
|
77
|
-
getAccountWithUsers(request: GetAccountWithUsersRequest, metadata?: Metadata): Observable<AccountResponse>;
|
|
78
|
-
updateAccount(request: UpdateAccountRequest, metadata?: Metadata): Observable<AccountResponse>;
|
|
79
|
-
deleteAccount(request: DeleteAccountRequest, metadata?: Metadata): Observable<Empty>;
|
|
80
|
-
findAllAccounts(request: Empty, metadata?: Metadata): Observable<AccountResponse>;
|
|
81
|
-
}
|
|
82
|
-
/** Service */
|
|
83
|
-
export interface AccountServiceController {
|
|
84
|
-
createAccount(request: CreateAccountRequest, metadata?: Metadata): Promise<AccountResponse> | Observable<AccountResponse> | AccountResponse;
|
|
85
|
-
createAccountWithUsers(request: CreateAccountWithUsersRequest, metadata?: Metadata): Promise<AccountResponse> | Observable<AccountResponse> | AccountResponse;
|
|
86
|
-
addUser(request: AddUserRequest, metadata?: Metadata): Promise<Empty> | Observable<Empty> | Empty;
|
|
87
|
-
getAccount(request: GetAccountRequest, metadata?: Metadata): Promise<AccountResponse> | Observable<AccountResponse> | AccountResponse;
|
|
88
|
-
getAccountWithUsers(request: GetAccountWithUsersRequest, metadata?: Metadata): Promise<AccountResponse> | Observable<AccountResponse> | AccountResponse;
|
|
89
|
-
updateAccount(request: UpdateAccountRequest, metadata?: Metadata): Promise<AccountResponse> | Observable<AccountResponse> | AccountResponse;
|
|
90
|
-
deleteAccount(request: DeleteAccountRequest, metadata?: Metadata): Promise<Empty> | Observable<Empty> | Empty;
|
|
91
|
-
findAllAccounts(request: Empty, metadata?: Metadata): Observable<AccountResponse>;
|
|
92
|
-
}
|
|
93
|
-
export declare function AccountServiceControllerMethods(): (constructor: Function) => void;
|
|
94
|
-
export declare const ACCOUNT_SERVICE_NAME = "AccountService";
|
|
95
|
-
/** Service */
|
|
96
|
-
export type AccountServiceService = typeof AccountServiceService;
|
|
97
|
-
export declare const AccountServiceService: {
|
|
98
|
-
readonly createAccount: {
|
|
99
|
-
readonly path: "/account.AccountService/CreateAccount";
|
|
100
|
-
readonly requestStream: false;
|
|
101
|
-
readonly responseStream: false;
|
|
102
|
-
readonly requestSerialize: (value: CreateAccountRequest) => Buffer;
|
|
103
|
-
readonly requestDeserialize: (value: Buffer) => CreateAccountRequest;
|
|
104
|
-
readonly responseSerialize: (value: AccountResponse) => Buffer;
|
|
105
|
-
readonly responseDeserialize: (value: Buffer) => AccountResponse;
|
|
106
|
-
};
|
|
107
|
-
readonly createAccountWithUsers: {
|
|
108
|
-
readonly path: "/account.AccountService/CreateAccountWithUsers";
|
|
109
|
-
readonly requestStream: false;
|
|
110
|
-
readonly responseStream: false;
|
|
111
|
-
readonly requestSerialize: (value: CreateAccountWithUsersRequest) => Buffer;
|
|
112
|
-
readonly requestDeserialize: (value: Buffer) => CreateAccountWithUsersRequest;
|
|
113
|
-
readonly responseSerialize: (value: AccountResponse) => Buffer;
|
|
114
|
-
readonly responseDeserialize: (value: Buffer) => AccountResponse;
|
|
115
|
-
};
|
|
116
|
-
readonly addUser: {
|
|
117
|
-
readonly path: "/account.AccountService/AddUser";
|
|
118
|
-
readonly requestStream: false;
|
|
119
|
-
readonly responseStream: false;
|
|
120
|
-
readonly requestSerialize: (value: AddUserRequest) => Buffer;
|
|
121
|
-
readonly requestDeserialize: (value: Buffer) => AddUserRequest;
|
|
122
|
-
readonly responseSerialize: (value: Empty) => Buffer;
|
|
123
|
-
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
124
|
-
};
|
|
125
|
-
readonly getAccount: {
|
|
126
|
-
readonly path: "/account.AccountService/GetAccount";
|
|
127
|
-
readonly requestStream: false;
|
|
128
|
-
readonly responseStream: false;
|
|
129
|
-
readonly requestSerialize: (value: GetAccountRequest) => Buffer;
|
|
130
|
-
readonly requestDeserialize: (value: Buffer) => GetAccountRequest;
|
|
131
|
-
readonly responseSerialize: (value: AccountResponse) => Buffer;
|
|
132
|
-
readonly responseDeserialize: (value: Buffer) => AccountResponse;
|
|
133
|
-
};
|
|
134
|
-
readonly getAccountWithUsers: {
|
|
135
|
-
readonly path: "/account.AccountService/GetAccountWithUsers";
|
|
136
|
-
readonly requestStream: false;
|
|
137
|
-
readonly responseStream: false;
|
|
138
|
-
readonly requestSerialize: (value: GetAccountWithUsersRequest) => Buffer;
|
|
139
|
-
readonly requestDeserialize: (value: Buffer) => GetAccountWithUsersRequest;
|
|
140
|
-
readonly responseSerialize: (value: AccountResponse) => Buffer;
|
|
141
|
-
readonly responseDeserialize: (value: Buffer) => AccountResponse;
|
|
142
|
-
};
|
|
143
|
-
readonly updateAccount: {
|
|
144
|
-
readonly path: "/account.AccountService/UpdateAccount";
|
|
145
|
-
readonly requestStream: false;
|
|
146
|
-
readonly responseStream: false;
|
|
147
|
-
readonly requestSerialize: (value: UpdateAccountRequest) => Buffer;
|
|
148
|
-
readonly requestDeserialize: (value: Buffer) => UpdateAccountRequest;
|
|
149
|
-
readonly responseSerialize: (value: AccountResponse) => Buffer;
|
|
150
|
-
readonly responseDeserialize: (value: Buffer) => AccountResponse;
|
|
151
|
-
};
|
|
152
|
-
readonly deleteAccount: {
|
|
153
|
-
readonly path: "/account.AccountService/DeleteAccount";
|
|
154
|
-
readonly requestStream: false;
|
|
155
|
-
readonly responseStream: false;
|
|
156
|
-
readonly requestSerialize: (value: DeleteAccountRequest) => Buffer;
|
|
157
|
-
readonly requestDeserialize: (value: Buffer) => DeleteAccountRequest;
|
|
158
|
-
readonly responseSerialize: (value: Empty) => Buffer;
|
|
159
|
-
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
160
|
-
};
|
|
161
|
-
readonly findAllAccounts: {
|
|
162
|
-
readonly path: "/account.AccountService/FindAllAccounts";
|
|
163
|
-
readonly requestStream: false;
|
|
164
|
-
readonly responseStream: true;
|
|
165
|
-
readonly requestSerialize: (value: Empty) => Buffer;
|
|
166
|
-
readonly requestDeserialize: (value: Buffer) => Empty;
|
|
167
|
-
readonly responseSerialize: (value: AccountResponse) => Buffer;
|
|
168
|
-
readonly responseDeserialize: (value: Buffer) => AccountResponse;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
export interface AccountServiceServer extends UntypedServiceImplementation {
|
|
172
|
-
createAccount: handleUnaryCall<CreateAccountRequest, AccountResponse>;
|
|
173
|
-
createAccountWithUsers: handleUnaryCall<CreateAccountWithUsersRequest, AccountResponse>;
|
|
174
|
-
addUser: handleUnaryCall<AddUserRequest, Empty>;
|
|
175
|
-
getAccount: handleUnaryCall<GetAccountRequest, AccountResponse>;
|
|
176
|
-
getAccountWithUsers: handleUnaryCall<GetAccountWithUsersRequest, AccountResponse>;
|
|
177
|
-
updateAccount: handleUnaryCall<UpdateAccountRequest, AccountResponse>;
|
|
178
|
-
deleteAccount: handleUnaryCall<DeleteAccountRequest, Empty>;
|
|
179
|
-
findAllAccounts: handleServerStreamingCall<Empty, AccountResponse>;
|
|
180
|
-
}
|
|
181
|
-
export interface MessageFns<T> {
|
|
182
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
183
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
184
|
-
}
|