geniebox-shared-lib 1.0.16 → 1.0.18
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.
|
@@ -4,13 +4,13 @@ import { Observable } from "rxjs";
|
|
|
4
4
|
export declare const protobufPackage = "auth";
|
|
5
5
|
export interface RegisterCredentials {
|
|
6
6
|
firstName: string;
|
|
7
|
-
lastName
|
|
8
|
-
email: string;
|
|
9
|
-
phoneNumber: string;
|
|
7
|
+
lastName?: string | undefined;
|
|
10
8
|
password: string;
|
|
11
|
-
photoUrl
|
|
12
|
-
birthday
|
|
13
|
-
gender
|
|
9
|
+
photoUrl?: string | undefined;
|
|
10
|
+
birthday?: string | undefined;
|
|
11
|
+
gender?: string | undefined;
|
|
12
|
+
email?: string | undefined;
|
|
13
|
+
phoneNumber?: string | undefined;
|
|
14
14
|
}
|
|
15
15
|
export interface Tokens {
|
|
16
16
|
accessToken: string;
|
|
@@ -13,42 +13,33 @@ const microservices_1 = require("@nestjs/microservices");
|
|
|
13
13
|
exports.protobufPackage = "auth";
|
|
14
14
|
exports.AUTH_PACKAGE_NAME = "auth";
|
|
15
15
|
function createBaseRegisterCredentials() {
|
|
16
|
-
return {
|
|
17
|
-
firstName: "",
|
|
18
|
-
lastName: "",
|
|
19
|
-
email: "",
|
|
20
|
-
phoneNumber: "",
|
|
21
|
-
password: "",
|
|
22
|
-
photoUrl: "",
|
|
23
|
-
birthday: "",
|
|
24
|
-
gender: "",
|
|
25
|
-
};
|
|
16
|
+
return { firstName: "", password: "" };
|
|
26
17
|
}
|
|
27
18
|
exports.RegisterCredentials = {
|
|
28
19
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
29
20
|
if (message.firstName !== "") {
|
|
30
21
|
writer.uint32(10).string(message.firstName);
|
|
31
22
|
}
|
|
32
|
-
if (message.lastName !==
|
|
23
|
+
if (message.lastName !== undefined) {
|
|
33
24
|
writer.uint32(18).string(message.lastName);
|
|
34
25
|
}
|
|
35
|
-
if (message.
|
|
36
|
-
writer.uint32(26).string(message.
|
|
26
|
+
if (message.password !== "") {
|
|
27
|
+
writer.uint32(26).string(message.password);
|
|
37
28
|
}
|
|
38
|
-
if (message.
|
|
39
|
-
writer.uint32(34).string(message.
|
|
29
|
+
if (message.photoUrl !== undefined) {
|
|
30
|
+
writer.uint32(34).string(message.photoUrl);
|
|
40
31
|
}
|
|
41
|
-
if (message.
|
|
42
|
-
writer.uint32(42).string(message.
|
|
32
|
+
if (message.birthday !== undefined) {
|
|
33
|
+
writer.uint32(42).string(message.birthday);
|
|
43
34
|
}
|
|
44
|
-
if (message.
|
|
45
|
-
writer.uint32(50).string(message.
|
|
35
|
+
if (message.gender !== undefined) {
|
|
36
|
+
writer.uint32(50).string(message.gender);
|
|
46
37
|
}
|
|
47
|
-
if (message.
|
|
48
|
-
writer.uint32(58).string(message.
|
|
38
|
+
if (message.email !== undefined) {
|
|
39
|
+
writer.uint32(58).string(message.email);
|
|
49
40
|
}
|
|
50
|
-
if (message.
|
|
51
|
-
writer.uint32(66).string(message.
|
|
41
|
+
if (message.phoneNumber !== undefined) {
|
|
42
|
+
writer.uint32(66).string(message.phoneNumber);
|
|
52
43
|
}
|
|
53
44
|
return writer;
|
|
54
45
|
},
|
|
@@ -77,42 +68,42 @@ exports.RegisterCredentials = {
|
|
|
77
68
|
if (tag !== 26) {
|
|
78
69
|
break;
|
|
79
70
|
}
|
|
80
|
-
message.
|
|
71
|
+
message.password = reader.string();
|
|
81
72
|
continue;
|
|
82
73
|
}
|
|
83
74
|
case 4: {
|
|
84
75
|
if (tag !== 34) {
|
|
85
76
|
break;
|
|
86
77
|
}
|
|
87
|
-
message.
|
|
78
|
+
message.photoUrl = reader.string();
|
|
88
79
|
continue;
|
|
89
80
|
}
|
|
90
81
|
case 5: {
|
|
91
82
|
if (tag !== 42) {
|
|
92
83
|
break;
|
|
93
84
|
}
|
|
94
|
-
message.
|
|
85
|
+
message.birthday = reader.string();
|
|
95
86
|
continue;
|
|
96
87
|
}
|
|
97
88
|
case 6: {
|
|
98
89
|
if (tag !== 50) {
|
|
99
90
|
break;
|
|
100
91
|
}
|
|
101
|
-
message.
|
|
92
|
+
message.gender = reader.string();
|
|
102
93
|
continue;
|
|
103
94
|
}
|
|
104
95
|
case 7: {
|
|
105
96
|
if (tag !== 58) {
|
|
106
97
|
break;
|
|
107
98
|
}
|
|
108
|
-
message.
|
|
99
|
+
message.email = reader.string();
|
|
109
100
|
continue;
|
|
110
101
|
}
|
|
111
102
|
case 8: {
|
|
112
103
|
if (tag !== 66) {
|
|
113
104
|
break;
|
|
114
105
|
}
|
|
115
|
-
message.
|
|
106
|
+
message.phoneNumber = reader.string();
|
|
116
107
|
continue;
|
|
117
108
|
}
|
|
118
109
|
}
|