geniebox-shared-lib 1.0.10 → 1.0.12
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.
|
@@ -20,7 +20,6 @@ export interface AuthTokensResponse {
|
|
|
20
20
|
userId: string;
|
|
21
21
|
sessionId: string;
|
|
22
22
|
email: string;
|
|
23
|
-
accountId: string;
|
|
24
23
|
tokens: Tokens | undefined;
|
|
25
24
|
}
|
|
26
25
|
export interface UserResponse {
|
|
@@ -29,7 +28,6 @@ export interface UserResponse {
|
|
|
29
28
|
lastName: string;
|
|
30
29
|
email: string;
|
|
31
30
|
phoneNumber: string;
|
|
32
|
-
accounts: string[];
|
|
33
31
|
photoUrl: string;
|
|
34
32
|
birthday: string;
|
|
35
33
|
gender: string;
|
|
@@ -168,7 +168,7 @@ exports.Tokens = {
|
|
|
168
168
|
},
|
|
169
169
|
};
|
|
170
170
|
function createBaseAuthTokensResponse() {
|
|
171
|
-
return { userId: "", sessionId: "", email: "",
|
|
171
|
+
return { userId: "", sessionId: "", email: "", tokens: undefined };
|
|
172
172
|
}
|
|
173
173
|
exports.AuthTokensResponse = {
|
|
174
174
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -181,11 +181,8 @@ exports.AuthTokensResponse = {
|
|
|
181
181
|
if (message.email !== "") {
|
|
182
182
|
writer.uint32(26).string(message.email);
|
|
183
183
|
}
|
|
184
|
-
if (message.accountId !== "") {
|
|
185
|
-
writer.uint32(34).string(message.accountId);
|
|
186
|
-
}
|
|
187
184
|
if (message.tokens !== undefined) {
|
|
188
|
-
exports.Tokens.encode(message.tokens, writer.uint32(
|
|
185
|
+
exports.Tokens.encode(message.tokens, writer.uint32(34).fork()).join();
|
|
189
186
|
}
|
|
190
187
|
return writer;
|
|
191
188
|
},
|
|
@@ -221,13 +218,6 @@ exports.AuthTokensResponse = {
|
|
|
221
218
|
if (tag !== 34) {
|
|
222
219
|
break;
|
|
223
220
|
}
|
|
224
|
-
message.accountId = reader.string();
|
|
225
|
-
continue;
|
|
226
|
-
}
|
|
227
|
-
case 5: {
|
|
228
|
-
if (tag !== 42) {
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
221
|
message.tokens = exports.Tokens.decode(reader, reader.uint32());
|
|
232
222
|
continue;
|
|
233
223
|
}
|
|
@@ -241,17 +231,7 @@ exports.AuthTokensResponse = {
|
|
|
241
231
|
},
|
|
242
232
|
};
|
|
243
233
|
function createBaseUserResponse() {
|
|
244
|
-
return {
|
|
245
|
-
uuid: "",
|
|
246
|
-
firstName: "",
|
|
247
|
-
lastName: "",
|
|
248
|
-
email: "",
|
|
249
|
-
phoneNumber: "",
|
|
250
|
-
accounts: [],
|
|
251
|
-
photoUrl: "",
|
|
252
|
-
birthday: "",
|
|
253
|
-
gender: "",
|
|
254
|
-
};
|
|
234
|
+
return { uuid: "", firstName: "", lastName: "", email: "", phoneNumber: "", photoUrl: "", birthday: "", gender: "" };
|
|
255
235
|
}
|
|
256
236
|
exports.UserResponse = {
|
|
257
237
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -270,17 +250,14 @@ exports.UserResponse = {
|
|
|
270
250
|
if (message.phoneNumber !== "") {
|
|
271
251
|
writer.uint32(42).string(message.phoneNumber);
|
|
272
252
|
}
|
|
273
|
-
for (const v of message.accounts) {
|
|
274
|
-
writer.uint32(50).string(v);
|
|
275
|
-
}
|
|
276
253
|
if (message.photoUrl !== "") {
|
|
277
|
-
writer.uint32(
|
|
254
|
+
writer.uint32(50).string(message.photoUrl);
|
|
278
255
|
}
|
|
279
256
|
if (message.birthday !== "") {
|
|
280
|
-
writer.uint32(
|
|
257
|
+
writer.uint32(58).string(message.birthday);
|
|
281
258
|
}
|
|
282
259
|
if (message.gender !== "") {
|
|
283
|
-
writer.uint32(
|
|
260
|
+
writer.uint32(66).string(message.gender);
|
|
284
261
|
}
|
|
285
262
|
return writer;
|
|
286
263
|
},
|
|
@@ -330,27 +307,20 @@ exports.UserResponse = {
|
|
|
330
307
|
if (tag !== 50) {
|
|
331
308
|
break;
|
|
332
309
|
}
|
|
333
|
-
message.
|
|
310
|
+
message.photoUrl = reader.string();
|
|
334
311
|
continue;
|
|
335
312
|
}
|
|
336
313
|
case 7: {
|
|
337
314
|
if (tag !== 58) {
|
|
338
315
|
break;
|
|
339
316
|
}
|
|
340
|
-
message.
|
|
317
|
+
message.birthday = reader.string();
|
|
341
318
|
continue;
|
|
342
319
|
}
|
|
343
320
|
case 8: {
|
|
344
321
|
if (tag !== 66) {
|
|
345
322
|
break;
|
|
346
323
|
}
|
|
347
|
-
message.birthday = reader.string();
|
|
348
|
-
continue;
|
|
349
|
-
}
|
|
350
|
-
case 9: {
|
|
351
|
-
if (tag !== 74) {
|
|
352
|
-
break;
|
|
353
|
-
}
|
|
354
324
|
message.gender = reader.string();
|
|
355
325
|
continue;
|
|
356
326
|
}
|