geniebox-shared-lib 1.0.6 → 1.0.8
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.
|
@@ -2,7 +2,6 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
2
2
|
import type { handleUnaryCall, Metadata, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
import { Empty } from "./google/protobuf/empty.interface";
|
|
5
|
-
import { Timestamp } from "./google/protobuf/timestamp.interface";
|
|
6
5
|
export declare const protobufPackage = "user";
|
|
7
6
|
export interface UserPersonal {
|
|
8
7
|
uuid: string;
|
|
@@ -15,13 +14,13 @@ export interface UserPersonal {
|
|
|
15
14
|
gender: string;
|
|
16
15
|
email: string;
|
|
17
16
|
phoneNumber: string;
|
|
18
|
-
createdAt:
|
|
19
|
-
updatedAt:
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
20
19
|
}
|
|
21
20
|
export interface UserAuthentication {
|
|
22
21
|
uuid: string;
|
|
23
22
|
userId: string;
|
|
24
|
-
password
|
|
23
|
+
password?: string | undefined;
|
|
25
24
|
passwordHash: string;
|
|
26
25
|
}
|
|
27
26
|
export interface User {
|
|
@@ -53,8 +52,8 @@ export interface UserResponse {
|
|
|
53
52
|
gender: string;
|
|
54
53
|
phoneNumber: string;
|
|
55
54
|
email: string;
|
|
56
|
-
createdAt:
|
|
57
|
-
updatedAt:
|
|
55
|
+
createdAt: string;
|
|
56
|
+
updatedAt: string;
|
|
58
57
|
}
|
|
59
58
|
export interface UsersResponse {
|
|
60
59
|
users: UserResponse[];
|
|
@@ -11,7 +11,6 @@ exports.UserServiceControllerMethods = UserServiceControllerMethods;
|
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
12
|
const microservices_1 = require("@nestjs/microservices");
|
|
13
13
|
const empty_interface_1 = require("./google/protobuf/empty.interface");
|
|
14
|
-
const timestamp_interface_1 = require("./google/protobuf/timestamp.interface");
|
|
15
14
|
exports.protobufPackage = "user";
|
|
16
15
|
exports.USER_PACKAGE_NAME = "user";
|
|
17
16
|
function createBaseUserPersonal() {
|
|
@@ -25,8 +24,8 @@ function createBaseUserPersonal() {
|
|
|
25
24
|
gender: "",
|
|
26
25
|
email: "",
|
|
27
26
|
phoneNumber: "",
|
|
28
|
-
createdAt:
|
|
29
|
-
updatedAt:
|
|
27
|
+
createdAt: "",
|
|
28
|
+
updatedAt: "",
|
|
30
29
|
};
|
|
31
30
|
}
|
|
32
31
|
exports.UserPersonal = {
|
|
@@ -58,11 +57,11 @@ exports.UserPersonal = {
|
|
|
58
57
|
if (message.phoneNumber !== "") {
|
|
59
58
|
writer.uint32(74).string(message.phoneNumber);
|
|
60
59
|
}
|
|
61
|
-
if (message.createdAt !==
|
|
62
|
-
|
|
60
|
+
if (message.createdAt !== "") {
|
|
61
|
+
writer.uint32(82).string(message.createdAt);
|
|
63
62
|
}
|
|
64
|
-
if (message.updatedAt !==
|
|
65
|
-
|
|
63
|
+
if (message.updatedAt !== "") {
|
|
64
|
+
writer.uint32(90).string(message.updatedAt);
|
|
66
65
|
}
|
|
67
66
|
return writer;
|
|
68
67
|
},
|
|
@@ -140,14 +139,14 @@ exports.UserPersonal = {
|
|
|
140
139
|
if (tag !== 82) {
|
|
141
140
|
break;
|
|
142
141
|
}
|
|
143
|
-
message.createdAt =
|
|
142
|
+
message.createdAt = reader.string();
|
|
144
143
|
continue;
|
|
145
144
|
}
|
|
146
145
|
case 11: {
|
|
147
146
|
if (tag !== 90) {
|
|
148
147
|
break;
|
|
149
148
|
}
|
|
150
|
-
message.updatedAt =
|
|
149
|
+
message.updatedAt = reader.string();
|
|
151
150
|
continue;
|
|
152
151
|
}
|
|
153
152
|
}
|
|
@@ -160,7 +159,7 @@ exports.UserPersonal = {
|
|
|
160
159
|
},
|
|
161
160
|
};
|
|
162
161
|
function createBaseUserAuthentication() {
|
|
163
|
-
return { uuid: "", userId: "",
|
|
162
|
+
return { uuid: "", userId: "", passwordHash: "" };
|
|
164
163
|
}
|
|
165
164
|
exports.UserAuthentication = {
|
|
166
165
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -170,7 +169,7 @@ exports.UserAuthentication = {
|
|
|
170
169
|
if (message.userId !== "") {
|
|
171
170
|
writer.uint32(18).string(message.userId);
|
|
172
171
|
}
|
|
173
|
-
if (message.password !==
|
|
172
|
+
if (message.password !== undefined) {
|
|
174
173
|
writer.uint32(26).string(message.password);
|
|
175
174
|
}
|
|
176
175
|
if (message.passwordHash !== "") {
|
|
@@ -447,8 +446,8 @@ function createBaseUserResponse() {
|
|
|
447
446
|
gender: "",
|
|
448
447
|
phoneNumber: "",
|
|
449
448
|
email: "",
|
|
450
|
-
createdAt:
|
|
451
|
-
updatedAt:
|
|
449
|
+
createdAt: "",
|
|
450
|
+
updatedAt: "",
|
|
452
451
|
};
|
|
453
452
|
}
|
|
454
453
|
exports.UserResponse = {
|
|
@@ -477,11 +476,11 @@ exports.UserResponse = {
|
|
|
477
476
|
if (message.email !== "") {
|
|
478
477
|
writer.uint32(66).string(message.email);
|
|
479
478
|
}
|
|
480
|
-
if (message.createdAt !==
|
|
481
|
-
|
|
479
|
+
if (message.createdAt !== "") {
|
|
480
|
+
writer.uint32(74).string(message.createdAt);
|
|
482
481
|
}
|
|
483
|
-
if (message.updatedAt !==
|
|
484
|
-
|
|
482
|
+
if (message.updatedAt !== "") {
|
|
483
|
+
writer.uint32(82).string(message.updatedAt);
|
|
485
484
|
}
|
|
486
485
|
return writer;
|
|
487
486
|
},
|
|
@@ -552,14 +551,14 @@ exports.UserResponse = {
|
|
|
552
551
|
if (tag !== 74) {
|
|
553
552
|
break;
|
|
554
553
|
}
|
|
555
|
-
message.createdAt =
|
|
554
|
+
message.createdAt = reader.string();
|
|
556
555
|
continue;
|
|
557
556
|
}
|
|
558
557
|
case 10: {
|
|
559
558
|
if (tag !== 82) {
|
|
560
559
|
break;
|
|
561
560
|
}
|
|
562
|
-
message.updatedAt =
|
|
561
|
+
message.updatedAt = reader.string();
|
|
563
562
|
continue;
|
|
564
563
|
}
|
|
565
564
|
}
|