geniebox-shared-lib 1.0.8 → 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.
|
@@ -18,10 +18,7 @@ export interface UserPersonal {
|
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
}
|
|
20
20
|
export interface UserAuthentication {
|
|
21
|
-
|
|
22
|
-
userId: string;
|
|
23
|
-
password?: string | undefined;
|
|
24
|
-
passwordHash: string;
|
|
21
|
+
password: string;
|
|
25
22
|
}
|
|
26
23
|
export interface User {
|
|
27
24
|
uuid: string;
|
|
@@ -159,22 +159,13 @@ exports.UserPersonal = {
|
|
|
159
159
|
},
|
|
160
160
|
};
|
|
161
161
|
function createBaseUserAuthentication() {
|
|
162
|
-
return {
|
|
162
|
+
return { password: "" };
|
|
163
163
|
}
|
|
164
164
|
exports.UserAuthentication = {
|
|
165
165
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
166
|
-
if (message.
|
|
167
|
-
writer.uint32(10).string(message.uuid);
|
|
168
|
-
}
|
|
169
|
-
if (message.userId !== "") {
|
|
170
|
-
writer.uint32(18).string(message.userId);
|
|
171
|
-
}
|
|
172
|
-
if (message.password !== undefined) {
|
|
166
|
+
if (message.password !== "") {
|
|
173
167
|
writer.uint32(26).string(message.password);
|
|
174
168
|
}
|
|
175
|
-
if (message.passwordHash !== "") {
|
|
176
|
-
writer.uint32(34).string(message.passwordHash);
|
|
177
|
-
}
|
|
178
169
|
return writer;
|
|
179
170
|
},
|
|
180
171
|
decode(input, length) {
|
|
@@ -184,20 +175,6 @@ exports.UserAuthentication = {
|
|
|
184
175
|
while (reader.pos < end) {
|
|
185
176
|
const tag = reader.uint32();
|
|
186
177
|
switch (tag >>> 3) {
|
|
187
|
-
case 1: {
|
|
188
|
-
if (tag !== 10) {
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
message.uuid = reader.string();
|
|
192
|
-
continue;
|
|
193
|
-
}
|
|
194
|
-
case 2: {
|
|
195
|
-
if (tag !== 18) {
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
message.userId = reader.string();
|
|
199
|
-
continue;
|
|
200
|
-
}
|
|
201
178
|
case 3: {
|
|
202
179
|
if (tag !== 26) {
|
|
203
180
|
break;
|
|
@@ -205,13 +182,6 @@ exports.UserAuthentication = {
|
|
|
205
182
|
message.password = reader.string();
|
|
206
183
|
continue;
|
|
207
184
|
}
|
|
208
|
-
case 4: {
|
|
209
|
-
if (tag !== 34) {
|
|
210
|
-
break;
|
|
211
|
-
}
|
|
212
|
-
message.passwordHash = reader.string();
|
|
213
|
-
continue;
|
|
214
|
-
}
|
|
215
185
|
}
|
|
216
186
|
if ((tag & 7) === 4 || tag === 0) {
|
|
217
187
|
break;
|