geniebox-shared-lib 1.0.4 → 1.0.6

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.
@@ -21,6 +21,7 @@ export interface UserPersonal {
21
21
  export interface UserAuthentication {
22
22
  uuid: string;
23
23
  userId: string;
24
+ password: string;
24
25
  passwordHash: string;
25
26
  }
26
27
  export interface User {
@@ -87,7 +88,7 @@ export declare const USER_SERVICE_NAME = "UserService";
87
88
  export type UserServiceService = typeof UserServiceService;
88
89
  export declare const UserServiceService: {
89
90
  readonly create: {
90
- readonly path: "/user.UserService/Create";
91
+ readonly path: "/user.UserService/create";
91
92
  readonly requestStream: false;
92
93
  readonly responseStream: false;
93
94
  readonly requestSerialize: (value: CreateUserRequest) => Buffer;
@@ -96,7 +97,7 @@ export declare const UserServiceService: {
96
97
  readonly responseDeserialize: (value: Buffer) => UserResponse;
97
98
  };
98
99
  readonly findOne: {
99
- readonly path: "/user.UserService/FindOne";
100
+ readonly path: "/user.UserService/findOne";
100
101
  readonly requestStream: false;
101
102
  readonly responseStream: false;
102
103
  readonly requestSerialize: (value: GetByIdRequest) => Buffer;
@@ -105,7 +106,7 @@ export declare const UserServiceService: {
105
106
  readonly responseDeserialize: (value: Buffer) => UserResponse;
106
107
  };
107
108
  readonly findAll: {
108
- readonly path: "/user.UserService/FindAll";
109
+ readonly path: "/user.UserService/findAll";
109
110
  readonly requestStream: false;
110
111
  readonly responseStream: false;
111
112
  readonly requestSerialize: (value: Empty) => Buffer;
@@ -114,7 +115,7 @@ export declare const UserServiceService: {
114
115
  readonly responseDeserialize: (value: Buffer) => UsersResponse;
115
116
  };
116
117
  readonly update: {
117
- readonly path: "/user.UserService/Update";
118
+ readonly path: "/user.UserService/update";
118
119
  readonly requestStream: false;
119
120
  readonly responseStream: false;
120
121
  readonly requestSerialize: (value: UpdateUserRequest) => Buffer;
@@ -123,7 +124,7 @@ export declare const UserServiceService: {
123
124
  readonly responseDeserialize: (value: Buffer) => UserResponse;
124
125
  };
125
126
  readonly remove: {
126
- readonly path: "/user.UserService/Remove";
127
+ readonly path: "/user.UserService/remove";
127
128
  readonly requestStream: false;
128
129
  readonly responseStream: false;
129
130
  readonly requestSerialize: (value: RemoveUserRequest) => Buffer;
@@ -160,7 +160,7 @@ exports.UserPersonal = {
160
160
  },
161
161
  };
162
162
  function createBaseUserAuthentication() {
163
- return { uuid: "", userId: "", passwordHash: "" };
163
+ return { uuid: "", userId: "", password: "", passwordHash: "" };
164
164
  }
165
165
  exports.UserAuthentication = {
166
166
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -170,8 +170,11 @@ exports.UserAuthentication = {
170
170
  if (message.userId !== "") {
171
171
  writer.uint32(18).string(message.userId);
172
172
  }
173
+ if (message.password !== "") {
174
+ writer.uint32(26).string(message.password);
175
+ }
173
176
  if (message.passwordHash !== "") {
174
- writer.uint32(26).string(message.passwordHash);
177
+ writer.uint32(34).string(message.passwordHash);
175
178
  }
176
179
  return writer;
177
180
  },
@@ -200,6 +203,13 @@ exports.UserAuthentication = {
200
203
  if (tag !== 26) {
201
204
  break;
202
205
  }
206
+ message.password = reader.string();
207
+ continue;
208
+ }
209
+ case 4: {
210
+ if (tag !== 34) {
211
+ break;
212
+ }
203
213
  message.passwordHash = reader.string();
204
214
  continue;
205
215
  }
@@ -611,7 +621,7 @@ function UserServiceControllerMethods() {
611
621
  exports.USER_SERVICE_NAME = "UserService";
612
622
  exports.UserServiceService = {
613
623
  create: {
614
- path: "/user.UserService/Create",
624
+ path: "/user.UserService/create",
615
625
  requestStream: false,
616
626
  responseStream: false,
617
627
  requestSerialize: (value) => Buffer.from(exports.CreateUserRequest.encode(value).finish()),
@@ -620,7 +630,7 @@ exports.UserServiceService = {
620
630
  responseDeserialize: (value) => exports.UserResponse.decode(value),
621
631
  },
622
632
  findOne: {
623
- path: "/user.UserService/FindOne",
633
+ path: "/user.UserService/findOne",
624
634
  requestStream: false,
625
635
  responseStream: false,
626
636
  requestSerialize: (value) => Buffer.from(exports.GetByIdRequest.encode(value).finish()),
@@ -629,7 +639,7 @@ exports.UserServiceService = {
629
639
  responseDeserialize: (value) => exports.UserResponse.decode(value),
630
640
  },
631
641
  findAll: {
632
- path: "/user.UserService/FindAll",
642
+ path: "/user.UserService/findAll",
633
643
  requestStream: false,
634
644
  responseStream: false,
635
645
  requestSerialize: (value) => Buffer.from(empty_interface_1.Empty.encode(value).finish()),
@@ -638,7 +648,7 @@ exports.UserServiceService = {
638
648
  responseDeserialize: (value) => exports.UsersResponse.decode(value),
639
649
  },
640
650
  update: {
641
- path: "/user.UserService/Update",
651
+ path: "/user.UserService/update",
642
652
  requestStream: false,
643
653
  responseStream: false,
644
654
  requestSerialize: (value) => Buffer.from(exports.UpdateUserRequest.encode(value).finish()),
@@ -647,7 +657,7 @@ exports.UserServiceService = {
647
657
  responseDeserialize: (value) => exports.UserResponse.decode(value),
648
658
  },
649
659
  remove: {
650
- path: "/user.UserService/Remove",
660
+ path: "/user.UserService/remove",
651
661
  requestStream: false,
652
662
  responseStream: false,
653
663
  requestSerialize: (value) => Buffer.from(exports.RemoveUserRequest.encode(value).finish()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geniebox-shared-lib",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Shared NestJS library with gRPC clients",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",