geniebox-shared-lib 1.0.38 → 1.0.40

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { SharedModule } from "./shared.module";
2
2
  export { UsersClient } from "./user/user.client";
3
3
  export { AuthClient } from "./auth/auth.client";
4
- export { MessageFns as UserMessageFns, protobufPackage as UserProtobufPackage, User, CreateUserRequest, CreateUserPersonal, UpdateUserRequest, GetByIdRequest, UserResponse, UsersResponse, FindByEmailRequest, FindByPhoneRequest, UpdatePasswordRequest, UpdateEmailVerificationRequest, GetEmailVerificationStatusRequest, EmailVerificationStatusResponse, UserServiceService as UserService, } from "./user/user.interface";
4
+ export { MessageFns as UserMessageFns, protobufPackage as UserProtobufPackage, User, CreateUserRequest, CreateUserPersonal, UpdateUserRequest, GetByIdRequest, UserResponse, UsersResponse, FindByEmailRequest, FindByPhoneRequest, UpdateUserPersonalRequest, UpdatePasswordRequest, UpdateEmailVerificationRequest, GetEmailVerificationStatusRequest, EmailVerificationStatusResponse, UserServiceService as UserService, } from "./user/user.interface";
5
5
  export { MessageFns as AuthMessageFns, protobufPackage as AuthProtobufPackage, LoginCredentials, RegisterCredentials, LogoutRequest, RefreshRequest, AuthResponse, RefreshTokenResponse, RecoverRequest, ResetPasswordRequest, ConfirmEmailRequest, ConfirmEmailResponse, CheckEmailVerifiedRequest, CheckEmailVerifiedResponse, } from "./auth/auth.interface";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.RefreshTokenResponse = exports.AuthResponse = exports.RefreshRequest = exports.LogoutRequest = exports.RegisterCredentials = exports.LoginCredentials = exports.AuthProtobufPackage = exports.UserService = exports.EmailVerificationStatusResponse = exports.GetEmailVerificationStatusRequest = exports.UpdateEmailVerificationRequest = exports.UpdatePasswordRequest = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.UsersResponse = exports.UserResponse = exports.GetByIdRequest = exports.UpdateUserRequest = exports.CreateUserPersonal = exports.CreateUserRequest = exports.User = exports.UserProtobufPackage = exports.AuthClient = exports.UsersClient = exports.SharedModule = void 0;
3
+ exports.CheckEmailVerifiedResponse = exports.CheckEmailVerifiedRequest = exports.ConfirmEmailResponse = exports.ConfirmEmailRequest = exports.ResetPasswordRequest = exports.RecoverRequest = exports.RefreshTokenResponse = exports.AuthResponse = exports.RefreshRequest = exports.LogoutRequest = exports.RegisterCredentials = exports.LoginCredentials = exports.AuthProtobufPackage = exports.UserService = exports.EmailVerificationStatusResponse = exports.GetEmailVerificationStatusRequest = exports.UpdateEmailVerificationRequest = exports.UpdatePasswordRequest = exports.UpdateUserPersonalRequest = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.UsersResponse = exports.UserResponse = exports.GetByIdRequest = exports.UpdateUserRequest = exports.CreateUserPersonal = exports.CreateUserRequest = exports.User = exports.UserProtobufPackage = exports.AuthClient = exports.UsersClient = exports.SharedModule = void 0;
4
4
  var shared_module_1 = require("./shared.module");
5
5
  Object.defineProperty(exports, "SharedModule", { enumerable: true, get: function () { return shared_module_1.SharedModule; } });
6
6
  var user_client_1 = require("./user/user.client");
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "UserResponse", { enumerable: true, get: function
18
18
  Object.defineProperty(exports, "UsersResponse", { enumerable: true, get: function () { return user_interface_1.UsersResponse; } });
19
19
  Object.defineProperty(exports, "FindByEmailRequest", { enumerable: true, get: function () { return user_interface_1.FindByEmailRequest; } });
20
20
  Object.defineProperty(exports, "FindByPhoneRequest", { enumerable: true, get: function () { return user_interface_1.FindByPhoneRequest; } });
21
+ Object.defineProperty(exports, "UpdateUserPersonalRequest", { enumerable: true, get: function () { return user_interface_1.UpdateUserPersonalRequest; } });
21
22
  Object.defineProperty(exports, "UpdatePasswordRequest", { enumerable: true, get: function () { return user_interface_1.UpdatePasswordRequest; } });
22
23
  Object.defineProperty(exports, "UpdateEmailVerificationRequest", { enumerable: true, get: function () { return user_interface_1.UpdateEmailVerificationRequest; } });
23
24
  Object.defineProperty(exports, "GetEmailVerificationStatusRequest", { enumerable: true, get: function () { return user_interface_1.GetEmailVerificationStatusRequest; } });
@@ -60,6 +60,16 @@ export interface UpdateUserRequest {
60
60
  personal?: UserPersonal | undefined;
61
61
  authentication?: UserAuthentication | undefined;
62
62
  }
63
+ export interface UpdateUserPersonalRequest {
64
+ uuid: string;
65
+ photoUrl?: string | undefined;
66
+ firstName?: string | undefined;
67
+ lastName?: string | undefined;
68
+ birthday?: string | undefined;
69
+ gender?: string | undefined;
70
+ email?: string | undefined;
71
+ phoneNumber?: string | undefined;
72
+ }
63
73
  export interface UpdatePasswordRequest {
64
74
  uuid: string;
65
75
  password: string;
@@ -104,6 +114,7 @@ export declare const GetByIdRequest: MessageFns<GetByIdRequest>;
104
114
  export declare const FindByEmailRequest: MessageFns<FindByEmailRequest>;
105
115
  export declare const FindByPhoneRequest: MessageFns<FindByPhoneRequest>;
106
116
  export declare const UpdateUserRequest: MessageFns<UpdateUserRequest>;
117
+ export declare const UpdateUserPersonalRequest: MessageFns<UpdateUserPersonalRequest>;
107
118
  export declare const UpdatePasswordRequest: MessageFns<UpdatePasswordRequest>;
108
119
  export declare const RemoveUserRequest: MessageFns<RemoveUserRequest>;
109
120
  export declare const UpdateEmailVerificationRequest: MessageFns<UpdateEmailVerificationRequest>;
@@ -118,6 +129,7 @@ export interface UserServiceClient {
118
129
  findByPhone(request: FindByPhoneRequest, metadata?: Metadata): Observable<User>;
119
130
  findAll(request: Empty, metadata?: Metadata): Observable<UsersResponse>;
120
131
  update(request: UpdateUserRequest, metadata?: Metadata): Observable<UserResponse>;
132
+ updatePersonal(request: UpdateUserPersonalRequest, metadata?: Metadata): Observable<UserResponse>;
121
133
  updatePassword(request: UpdatePasswordRequest, metadata?: Metadata): Observable<Empty>;
122
134
  remove(request: RemoveUserRequest, metadata?: Metadata): Observable<Empty>;
123
135
  updateEmailVerification(request: UpdateEmailVerificationRequest, metadata?: Metadata): Observable<EmailVerificationStatusResponse>;
@@ -130,6 +142,7 @@ export interface UserServiceController {
130
142
  findByPhone(request: FindByPhoneRequest, metadata?: Metadata): Promise<User> | Observable<User> | User;
131
143
  findAll(request: Empty, metadata?: Metadata): Promise<UsersResponse> | Observable<UsersResponse> | UsersResponse;
132
144
  update(request: UpdateUserRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
145
+ updatePersonal(request: UpdateUserPersonalRequest, metadata?: Metadata): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
133
146
  updatePassword(request: UpdatePasswordRequest, metadata?: Metadata): void;
134
147
  remove(request: RemoveUserRequest, metadata?: Metadata): void;
135
148
  updateEmailVerification(request: UpdateEmailVerificationRequest, metadata?: Metadata): Promise<EmailVerificationStatusResponse> | Observable<EmailVerificationStatusResponse> | EmailVerificationStatusResponse;
@@ -193,6 +206,15 @@ export declare const UserServiceService: {
193
206
  readonly responseSerialize: (value: UserResponse) => Buffer;
194
207
  readonly responseDeserialize: (value: Buffer) => UserResponse;
195
208
  };
209
+ readonly updatePersonal: {
210
+ readonly path: "/user.UserService/updatePersonal";
211
+ readonly requestStream: false;
212
+ readonly responseStream: false;
213
+ readonly requestSerialize: (value: UpdateUserPersonalRequest) => Buffer;
214
+ readonly requestDeserialize: (value: Buffer) => UpdateUserPersonalRequest;
215
+ readonly responseSerialize: (value: UserResponse) => Buffer;
216
+ readonly responseDeserialize: (value: Buffer) => UserResponse;
217
+ };
196
218
  readonly updatePassword: {
197
219
  readonly path: "/user.UserService/updatePassword";
198
220
  readonly requestStream: false;
@@ -237,6 +259,7 @@ export interface UserServiceServer extends UntypedServiceImplementation {
237
259
  findByPhone: handleUnaryCall<FindByPhoneRequest, User>;
238
260
  findAll: handleUnaryCall<Empty, UsersResponse>;
239
261
  update: handleUnaryCall<UpdateUserRequest, UserResponse>;
262
+ updatePersonal: handleUnaryCall<UpdateUserPersonalRequest, UserResponse>;
240
263
  updatePassword: handleUnaryCall<UpdatePasswordRequest, Empty>;
241
264
  remove: handleUnaryCall<RemoveUserRequest, Empty>;
242
265
  updateEmailVerification: handleUnaryCall<UpdateEmailVerificationRequest, EmailVerificationStatusResponse>;
@@ -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.UpdatePasswordRequest = exports.UpdateUserRequest = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.GetByIdRequest = exports.CreateUserRequest = exports.CreateUserAuthentication = exports.CreateUserPersonal = exports.User = exports.UserAuthentication = exports.UserPersonal = exports.USER_PACKAGE_NAME = exports.protobufPackage = void 0;
8
+ exports.UserServiceService = exports.USER_SERVICE_NAME = exports.EmailVerificationStatusResponse = exports.UsersResponse = exports.UserResponse = exports.GetEmailVerificationStatusRequest = exports.UpdateEmailVerificationRequest = exports.RemoveUserRequest = exports.UpdatePasswordRequest = exports.UpdateUserPersonalRequest = exports.UpdateUserRequest = exports.FindByPhoneRequest = exports.FindByEmailRequest = exports.GetByIdRequest = 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");
@@ -606,6 +606,109 @@ exports.UpdateUserRequest = {
606
606
  return message;
607
607
  },
608
608
  };
609
+ function createBaseUpdateUserPersonalRequest() {
610
+ return { uuid: "" };
611
+ }
612
+ exports.UpdateUserPersonalRequest = {
613
+ encode(message, writer = new wire_1.BinaryWriter()) {
614
+ if (message.uuid !== "") {
615
+ writer.uint32(10).string(message.uuid);
616
+ }
617
+ if (message.photoUrl !== undefined) {
618
+ writer.uint32(18).string(message.photoUrl);
619
+ }
620
+ if (message.firstName !== undefined) {
621
+ writer.uint32(26).string(message.firstName);
622
+ }
623
+ if (message.lastName !== undefined) {
624
+ writer.uint32(34).string(message.lastName);
625
+ }
626
+ if (message.birthday !== undefined) {
627
+ writer.uint32(42).string(message.birthday);
628
+ }
629
+ if (message.gender !== undefined) {
630
+ writer.uint32(50).string(message.gender);
631
+ }
632
+ if (message.email !== undefined) {
633
+ writer.uint32(58).string(message.email);
634
+ }
635
+ if (message.phoneNumber !== undefined) {
636
+ writer.uint32(66).string(message.phoneNumber);
637
+ }
638
+ return writer;
639
+ },
640
+ decode(input, length) {
641
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
642
+ const end = length === undefined ? reader.len : reader.pos + length;
643
+ const message = createBaseUpdateUserPersonalRequest();
644
+ while (reader.pos < end) {
645
+ const tag = reader.uint32();
646
+ switch (tag >>> 3) {
647
+ case 1: {
648
+ if (tag !== 10) {
649
+ break;
650
+ }
651
+ message.uuid = reader.string();
652
+ continue;
653
+ }
654
+ case 2: {
655
+ if (tag !== 18) {
656
+ break;
657
+ }
658
+ message.photoUrl = reader.string();
659
+ continue;
660
+ }
661
+ case 3: {
662
+ if (tag !== 26) {
663
+ break;
664
+ }
665
+ message.firstName = reader.string();
666
+ continue;
667
+ }
668
+ case 4: {
669
+ if (tag !== 34) {
670
+ break;
671
+ }
672
+ message.lastName = reader.string();
673
+ continue;
674
+ }
675
+ case 5: {
676
+ if (tag !== 42) {
677
+ break;
678
+ }
679
+ message.birthday = reader.string();
680
+ continue;
681
+ }
682
+ case 6: {
683
+ if (tag !== 50) {
684
+ break;
685
+ }
686
+ message.gender = reader.string();
687
+ continue;
688
+ }
689
+ case 7: {
690
+ if (tag !== 58) {
691
+ break;
692
+ }
693
+ message.email = reader.string();
694
+ continue;
695
+ }
696
+ case 8: {
697
+ if (tag !== 66) {
698
+ break;
699
+ }
700
+ message.phoneNumber = reader.string();
701
+ continue;
702
+ }
703
+ }
704
+ if ((tag & 7) === 4 || tag === 0) {
705
+ break;
706
+ }
707
+ reader.skip(tag & 7);
708
+ }
709
+ return message;
710
+ },
711
+ };
609
712
  function createBaseUpdatePasswordRequest() {
610
713
  return { uuid: "", password: "" };
611
714
  }
@@ -977,6 +1080,7 @@ function UserServiceControllerMethods() {
977
1080
  "findByPhone",
978
1081
  "findAll",
979
1082
  "update",
1083
+ "updatePersonal",
980
1084
  "updatePassword",
981
1085
  "remove",
982
1086
  "updateEmailVerification",
@@ -1049,6 +1153,15 @@ exports.UserServiceService = {
1049
1153
  responseSerialize: (value) => Buffer.from(exports.UserResponse.encode(value).finish()),
1050
1154
  responseDeserialize: (value) => exports.UserResponse.decode(value),
1051
1155
  },
1156
+ updatePersonal: {
1157
+ path: "/user.UserService/updatePersonal",
1158
+ requestStream: false,
1159
+ responseStream: false,
1160
+ requestSerialize: (value) => Buffer.from(exports.UpdateUserPersonalRequest.encode(value).finish()),
1161
+ requestDeserialize: (value) => exports.UpdateUserPersonalRequest.decode(value),
1162
+ responseSerialize: (value) => Buffer.from(exports.UserResponse.encode(value).finish()),
1163
+ responseDeserialize: (value) => exports.UserResponse.decode(value),
1164
+ },
1052
1165
  updatePassword: {
1053
1166
  path: "/user.UserService/updatePassword",
1054
1167
  requestStream: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geniebox-shared-lib",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "Shared NestJS library with gRPC clients",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",