geniebox-shared-lib 1.0.37 → 1.0.38

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.
@@ -70,6 +70,9 @@ export interface CheckEmailVerifiedResponse {
70
70
  userId: string;
71
71
  emailVerified: boolean;
72
72
  }
73
+ export interface GetByIdRequest {
74
+ uuid: string;
75
+ }
73
76
  export declare const AUTH_PACKAGE_NAME = "auth";
74
77
  export declare const RegisterCredentials: MessageFns<RegisterCredentials>;
75
78
  export declare const LoginCredentials: MessageFns<LoginCredentials>;
@@ -85,7 +88,9 @@ export declare const ConfirmEmailRequest: MessageFns<ConfirmEmailRequest>;
85
88
  export declare const ConfirmEmailResponse: MessageFns<ConfirmEmailResponse>;
86
89
  export declare const CheckEmailVerifiedRequest: MessageFns<CheckEmailVerifiedRequest>;
87
90
  export declare const CheckEmailVerifiedResponse: MessageFns<CheckEmailVerifiedResponse>;
91
+ export declare const GetByIdRequest: MessageFns<GetByIdRequest>;
88
92
  export interface AuthServiceClient {
93
+ profile(request: GetByIdRequest, metadata?: Metadata): Observable<UserResponse>;
89
94
  login(request: LoginCredentials, metadata?: Metadata): Observable<AuthResponse>;
90
95
  register(request: RegisterCredentials, metadata?: Metadata): Observable<AuthResponse>;
91
96
  refresh(request: RefreshRequest, metadata?: Metadata): Observable<AuthResponse>;
@@ -96,6 +101,7 @@ export interface AuthServiceClient {
96
101
  checkEmailVerified(request: CheckEmailVerifiedRequest, metadata?: Metadata): Observable<CheckEmailVerifiedResponse>;
97
102
  }
98
103
  export interface AuthServiceController {
104
+ profile(request: GetByIdRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
99
105
  login(request: LoginCredentials, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
100
106
  register(request: RegisterCredentials, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
101
107
  refresh(request: RefreshRequest, metadata?: Metadata): Promise<AuthResponse> | Observable<AuthResponse> | AuthResponse;
@@ -109,6 +115,15 @@ export declare function AuthServiceControllerMethods(): (constructor: Function)
109
115
  export declare const AUTH_SERVICE_NAME = "AuthService";
110
116
  export type AuthServiceService = typeof AuthServiceService;
111
117
  export declare const AuthServiceService: {
118
+ readonly profile: {
119
+ readonly path: "/auth.AuthService/profile";
120
+ readonly requestStream: false;
121
+ readonly responseStream: false;
122
+ readonly requestSerialize: (value: GetByIdRequest) => Buffer;
123
+ readonly requestDeserialize: (value: Buffer) => GetByIdRequest;
124
+ readonly responseSerialize: (value: UserResponse) => Buffer;
125
+ readonly responseDeserialize: (value: Buffer) => UserResponse;
126
+ };
112
127
  readonly login: {
113
128
  readonly path: "/auth.AuthService/login";
114
129
  readonly requestStream: false;
@@ -183,6 +198,7 @@ export declare const AuthServiceService: {
183
198
  };
184
199
  };
185
200
  export interface AuthServiceServer extends UntypedServiceImplementation {
201
+ profile: handleUnaryCall<GetByIdRequest, UserResponse>;
186
202
  login: handleUnaryCall<LoginCredentials, AuthResponse>;
187
203
  register: handleUnaryCall<RegisterCredentials, AuthResponse>;
188
204
  refresh: handleUnaryCall<RefreshRequest, AuthResponse>;
@@ -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.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = 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.GetByIdRequest = exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = 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");
@@ -725,9 +725,43 @@ exports.CheckEmailVerifiedResponse = {
725
725
  return message;
726
726
  },
727
727
  };
728
+ function createBaseGetByIdRequest() {
729
+ return { uuid: "" };
730
+ }
731
+ exports.GetByIdRequest = {
732
+ encode(message, writer = new wire_1.BinaryWriter()) {
733
+ if (message.uuid !== "") {
734
+ writer.uint32(10).string(message.uuid);
735
+ }
736
+ return writer;
737
+ },
738
+ decode(input, length) {
739
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
740
+ const end = length === undefined ? reader.len : reader.pos + length;
741
+ const message = createBaseGetByIdRequest();
742
+ while (reader.pos < end) {
743
+ const tag = reader.uint32();
744
+ switch (tag >>> 3) {
745
+ case 1: {
746
+ if (tag !== 10) {
747
+ break;
748
+ }
749
+ message.uuid = reader.string();
750
+ continue;
751
+ }
752
+ }
753
+ if ((tag & 7) === 4 || tag === 0) {
754
+ break;
755
+ }
756
+ reader.skip(tag & 7);
757
+ }
758
+ return message;
759
+ },
760
+ };
728
761
  function AuthServiceControllerMethods() {
729
762
  return function (constructor) {
730
763
  const grpcMethods = [
764
+ "profile",
731
765
  "login",
732
766
  "register",
733
767
  "refresh",
@@ -750,6 +784,15 @@ function AuthServiceControllerMethods() {
750
784
  }
751
785
  exports.AUTH_SERVICE_NAME = "AuthService";
752
786
  exports.AuthServiceService = {
787
+ profile: {
788
+ path: "/auth.AuthService/profile",
789
+ requestStream: false,
790
+ responseStream: false,
791
+ requestSerialize: (value) => Buffer.from(exports.GetByIdRequest.encode(value).finish()),
792
+ requestDeserialize: (value) => exports.GetByIdRequest.decode(value),
793
+ responseSerialize: (value) => Buffer.from(exports.UserResponse.encode(value).finish()),
794
+ responseDeserialize: (value) => exports.UserResponse.decode(value),
795
+ },
753
796
  login: {
754
797
  path: "/auth.AuthService/login",
755
798
  requestStream: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geniebox-shared-lib",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Shared NestJS library with gRPC clients",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",