geniebox-shared-lib 1.0.8 → 1.0.10
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/user/user.interface.d.ts +17 -2
- package/dist/user/user.interface.js +131 -5
- package/package.json +1 -1
|
@@ -28,9 +28,22 @@ export interface User {
|
|
|
28
28
|
personal: UserPersonal | undefined;
|
|
29
29
|
authentication: UserAuthentication | undefined;
|
|
30
30
|
}
|
|
31
|
+
export interface CreateUserPersonal {
|
|
32
|
+
photoUrl: string;
|
|
33
|
+
firstName: string;
|
|
34
|
+
lastName: string;
|
|
35
|
+
birthday: string;
|
|
36
|
+
/** "male" | "female" */
|
|
37
|
+
gender: string;
|
|
38
|
+
email: string;
|
|
39
|
+
phoneNumber: string;
|
|
40
|
+
}
|
|
41
|
+
export interface CreateUserAuthentication {
|
|
42
|
+
password?: string | undefined;
|
|
43
|
+
}
|
|
31
44
|
export interface CreateUserRequest {
|
|
32
|
-
personal:
|
|
33
|
-
authentication:
|
|
45
|
+
personal: CreateUserPersonal | undefined;
|
|
46
|
+
authentication: CreateUserAuthentication | undefined;
|
|
34
47
|
}
|
|
35
48
|
export interface GetByIdRequest {
|
|
36
49
|
uuid: string;
|
|
@@ -62,6 +75,8 @@ export declare const USER_PACKAGE_NAME = "user";
|
|
|
62
75
|
export declare const UserPersonal: MessageFns<UserPersonal>;
|
|
63
76
|
export declare const UserAuthentication: MessageFns<UserAuthentication>;
|
|
64
77
|
export declare const User: MessageFns<User>;
|
|
78
|
+
export declare const CreateUserPersonal: MessageFns<CreateUserPersonal>;
|
|
79
|
+
export declare const CreateUserAuthentication: MessageFns<CreateUserAuthentication>;
|
|
65
80
|
export declare const CreateUserRequest: MessageFns<CreateUserRequest>;
|
|
66
81
|
export declare const GetByIdRequest: MessageFns<GetByIdRequest>;
|
|
67
82
|
export declare const UpdateUserRequest: MessageFns<UpdateUserRequest>;
|
|
@@ -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.UsersResponse = exports.UserResponse = exports.RemoveUserRequest = exports.UpdateUserRequest = exports.GetByIdRequest = exports.CreateUserRequest = exports.User = exports.UserAuthentication = exports.UserPersonal = exports.USER_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
8
|
+
exports.UserServiceService = exports.USER_SERVICE_NAME = exports.UsersResponse = exports.UserResponse = exports.RemoveUserRequest = exports.UpdateUserRequest = 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");
|
|
@@ -274,16 +274,142 @@ exports.User = {
|
|
|
274
274
|
return message;
|
|
275
275
|
},
|
|
276
276
|
};
|
|
277
|
+
function createBaseCreateUserPersonal() {
|
|
278
|
+
return { photoUrl: "", firstName: "", lastName: "", birthday: "", gender: "", email: "", phoneNumber: "" };
|
|
279
|
+
}
|
|
280
|
+
exports.CreateUserPersonal = {
|
|
281
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
282
|
+
if (message.photoUrl !== "") {
|
|
283
|
+
writer.uint32(10).string(message.photoUrl);
|
|
284
|
+
}
|
|
285
|
+
if (message.firstName !== "") {
|
|
286
|
+
writer.uint32(18).string(message.firstName);
|
|
287
|
+
}
|
|
288
|
+
if (message.lastName !== "") {
|
|
289
|
+
writer.uint32(26).string(message.lastName);
|
|
290
|
+
}
|
|
291
|
+
if (message.birthday !== "") {
|
|
292
|
+
writer.uint32(34).string(message.birthday);
|
|
293
|
+
}
|
|
294
|
+
if (message.gender !== "") {
|
|
295
|
+
writer.uint32(42).string(message.gender);
|
|
296
|
+
}
|
|
297
|
+
if (message.email !== "") {
|
|
298
|
+
writer.uint32(50).string(message.email);
|
|
299
|
+
}
|
|
300
|
+
if (message.phoneNumber !== "") {
|
|
301
|
+
writer.uint32(58).string(message.phoneNumber);
|
|
302
|
+
}
|
|
303
|
+
return writer;
|
|
304
|
+
},
|
|
305
|
+
decode(input, length) {
|
|
306
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
307
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
308
|
+
const message = createBaseCreateUserPersonal();
|
|
309
|
+
while (reader.pos < end) {
|
|
310
|
+
const tag = reader.uint32();
|
|
311
|
+
switch (tag >>> 3) {
|
|
312
|
+
case 1: {
|
|
313
|
+
if (tag !== 10) {
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
message.photoUrl = reader.string();
|
|
317
|
+
continue;
|
|
318
|
+
}
|
|
319
|
+
case 2: {
|
|
320
|
+
if (tag !== 18) {
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
message.firstName = reader.string();
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
case 3: {
|
|
327
|
+
if (tag !== 26) {
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
message.lastName = reader.string();
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
case 4: {
|
|
334
|
+
if (tag !== 34) {
|
|
335
|
+
break;
|
|
336
|
+
}
|
|
337
|
+
message.birthday = reader.string();
|
|
338
|
+
continue;
|
|
339
|
+
}
|
|
340
|
+
case 5: {
|
|
341
|
+
if (tag !== 42) {
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
message.gender = reader.string();
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
case 6: {
|
|
348
|
+
if (tag !== 50) {
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
message.email = reader.string();
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
case 7: {
|
|
355
|
+
if (tag !== 58) {
|
|
356
|
+
break;
|
|
357
|
+
}
|
|
358
|
+
message.phoneNumber = reader.string();
|
|
359
|
+
continue;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
363
|
+
break;
|
|
364
|
+
}
|
|
365
|
+
reader.skip(tag & 7);
|
|
366
|
+
}
|
|
367
|
+
return message;
|
|
368
|
+
},
|
|
369
|
+
};
|
|
370
|
+
function createBaseCreateUserAuthentication() {
|
|
371
|
+
return {};
|
|
372
|
+
}
|
|
373
|
+
exports.CreateUserAuthentication = {
|
|
374
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
375
|
+
if (message.password !== undefined) {
|
|
376
|
+
writer.uint32(10).string(message.password);
|
|
377
|
+
}
|
|
378
|
+
return writer;
|
|
379
|
+
},
|
|
380
|
+
decode(input, length) {
|
|
381
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
382
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
383
|
+
const message = createBaseCreateUserAuthentication();
|
|
384
|
+
while (reader.pos < end) {
|
|
385
|
+
const tag = reader.uint32();
|
|
386
|
+
switch (tag >>> 3) {
|
|
387
|
+
case 1: {
|
|
388
|
+
if (tag !== 10) {
|
|
389
|
+
break;
|
|
390
|
+
}
|
|
391
|
+
message.password = reader.string();
|
|
392
|
+
continue;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
reader.skip(tag & 7);
|
|
399
|
+
}
|
|
400
|
+
return message;
|
|
401
|
+
},
|
|
402
|
+
};
|
|
277
403
|
function createBaseCreateUserRequest() {
|
|
278
404
|
return { personal: undefined, authentication: undefined };
|
|
279
405
|
}
|
|
280
406
|
exports.CreateUserRequest = {
|
|
281
407
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
282
408
|
if (message.personal !== undefined) {
|
|
283
|
-
exports.
|
|
409
|
+
exports.CreateUserPersonal.encode(message.personal, writer.uint32(10).fork()).join();
|
|
284
410
|
}
|
|
285
411
|
if (message.authentication !== undefined) {
|
|
286
|
-
exports.
|
|
412
|
+
exports.CreateUserAuthentication.encode(message.authentication, writer.uint32(18).fork()).join();
|
|
287
413
|
}
|
|
288
414
|
return writer;
|
|
289
415
|
},
|
|
@@ -298,14 +424,14 @@ exports.CreateUserRequest = {
|
|
|
298
424
|
if (tag !== 10) {
|
|
299
425
|
break;
|
|
300
426
|
}
|
|
301
|
-
message.personal = exports.
|
|
427
|
+
message.personal = exports.CreateUserPersonal.decode(reader, reader.uint32());
|
|
302
428
|
continue;
|
|
303
429
|
}
|
|
304
430
|
case 2: {
|
|
305
431
|
if (tag !== 18) {
|
|
306
432
|
break;
|
|
307
433
|
}
|
|
308
|
-
message.authentication = exports.
|
|
434
|
+
message.authentication = exports.CreateUserAuthentication.decode(reader, reader.uint32());
|
|
309
435
|
continue;
|
|
310
436
|
}
|
|
311
437
|
}
|