geniebox-shared-lib 1.0.7 → 1.0.9
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,14 +14,11 @@ 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
|
-
|
|
23
|
-
userId: string;
|
|
24
|
-
password?: string | undefined;
|
|
25
|
-
passwordHash: string;
|
|
21
|
+
password: string;
|
|
26
22
|
}
|
|
27
23
|
export interface User {
|
|
28
24
|
uuid: string;
|
|
@@ -53,8 +49,8 @@ export interface UserResponse {
|
|
|
53
49
|
gender: string;
|
|
54
50
|
phoneNumber: string;
|
|
55
51
|
email: string;
|
|
56
|
-
createdAt:
|
|
57
|
-
updatedAt:
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
58
54
|
}
|
|
59
55
|
export interface UsersResponse {
|
|
60
56
|
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,22 +159,13 @@ exports.UserPersonal = {
|
|
|
160
159
|
},
|
|
161
160
|
};
|
|
162
161
|
function createBaseUserAuthentication() {
|
|
163
|
-
return {
|
|
162
|
+
return { password: "" };
|
|
164
163
|
}
|
|
165
164
|
exports.UserAuthentication = {
|
|
166
165
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
167
|
-
if (message.
|
|
168
|
-
writer.uint32(10).string(message.uuid);
|
|
169
|
-
}
|
|
170
|
-
if (message.userId !== "") {
|
|
171
|
-
writer.uint32(18).string(message.userId);
|
|
172
|
-
}
|
|
173
|
-
if (message.password !== undefined) {
|
|
166
|
+
if (message.password !== "") {
|
|
174
167
|
writer.uint32(26).string(message.password);
|
|
175
168
|
}
|
|
176
|
-
if (message.passwordHash !== "") {
|
|
177
|
-
writer.uint32(34).string(message.passwordHash);
|
|
178
|
-
}
|
|
179
169
|
return writer;
|
|
180
170
|
},
|
|
181
171
|
decode(input, length) {
|
|
@@ -185,20 +175,6 @@ exports.UserAuthentication = {
|
|
|
185
175
|
while (reader.pos < end) {
|
|
186
176
|
const tag = reader.uint32();
|
|
187
177
|
switch (tag >>> 3) {
|
|
188
|
-
case 1: {
|
|
189
|
-
if (tag !== 10) {
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
message.uuid = reader.string();
|
|
193
|
-
continue;
|
|
194
|
-
}
|
|
195
|
-
case 2: {
|
|
196
|
-
if (tag !== 18) {
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
message.userId = reader.string();
|
|
200
|
-
continue;
|
|
201
|
-
}
|
|
202
178
|
case 3: {
|
|
203
179
|
if (tag !== 26) {
|
|
204
180
|
break;
|
|
@@ -206,13 +182,6 @@ exports.UserAuthentication = {
|
|
|
206
182
|
message.password = reader.string();
|
|
207
183
|
continue;
|
|
208
184
|
}
|
|
209
|
-
case 4: {
|
|
210
|
-
if (tag !== 34) {
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
message.passwordHash = reader.string();
|
|
214
|
-
continue;
|
|
215
|
-
}
|
|
216
185
|
}
|
|
217
186
|
if ((tag & 7) === 4 || tag === 0) {
|
|
218
187
|
break;
|
|
@@ -447,8 +416,8 @@ function createBaseUserResponse() {
|
|
|
447
416
|
gender: "",
|
|
448
417
|
phoneNumber: "",
|
|
449
418
|
email: "",
|
|
450
|
-
createdAt:
|
|
451
|
-
updatedAt:
|
|
419
|
+
createdAt: "",
|
|
420
|
+
updatedAt: "",
|
|
452
421
|
};
|
|
453
422
|
}
|
|
454
423
|
exports.UserResponse = {
|
|
@@ -477,11 +446,11 @@ exports.UserResponse = {
|
|
|
477
446
|
if (message.email !== "") {
|
|
478
447
|
writer.uint32(66).string(message.email);
|
|
479
448
|
}
|
|
480
|
-
if (message.createdAt !==
|
|
481
|
-
|
|
449
|
+
if (message.createdAt !== "") {
|
|
450
|
+
writer.uint32(74).string(message.createdAt);
|
|
482
451
|
}
|
|
483
|
-
if (message.updatedAt !==
|
|
484
|
-
|
|
452
|
+
if (message.updatedAt !== "") {
|
|
453
|
+
writer.uint32(82).string(message.updatedAt);
|
|
485
454
|
}
|
|
486
455
|
return writer;
|
|
487
456
|
},
|
|
@@ -552,14 +521,14 @@ exports.UserResponse = {
|
|
|
552
521
|
if (tag !== 74) {
|
|
553
522
|
break;
|
|
554
523
|
}
|
|
555
|
-
message.createdAt =
|
|
524
|
+
message.createdAt = reader.string();
|
|
556
525
|
continue;
|
|
557
526
|
}
|
|
558
527
|
case 10: {
|
|
559
528
|
if (tag !== 82) {
|
|
560
529
|
break;
|
|
561
530
|
}
|
|
562
|
-
message.updatedAt =
|
|
531
|
+
message.updatedAt = reader.string();
|
|
563
532
|
continue;
|
|
564
533
|
}
|
|
565
534
|
}
|