geniebox-shared-lib 1.0.17 → 1.0.19

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.
@@ -5,12 +5,12 @@ export declare const protobufPackage = "auth";
5
5
  export interface RegisterCredentials {
6
6
  firstName: string;
7
7
  lastName?: string | undefined;
8
- email?: string | undefined;
9
- phoneNumber?: string | undefined;
10
8
  password: string;
11
9
  photoUrl?: string | undefined;
12
10
  birthday?: string | undefined;
13
11
  gender?: string | undefined;
12
+ email?: string | undefined;
13
+ phoneNumber?: string | undefined;
14
14
  }
15
15
  export interface Tokens {
16
16
  accessToken: string;
@@ -23,23 +23,23 @@ exports.RegisterCredentials = {
23
23
  if (message.lastName !== undefined) {
24
24
  writer.uint32(18).string(message.lastName);
25
25
  }
26
- if (message.email !== undefined) {
27
- writer.uint32(26).string(message.email);
28
- }
29
- if (message.phoneNumber !== undefined) {
30
- writer.uint32(34).string(message.phoneNumber);
31
- }
32
26
  if (message.password !== "") {
33
- writer.uint32(42).string(message.password);
27
+ writer.uint32(26).string(message.password);
34
28
  }
35
29
  if (message.photoUrl !== undefined) {
36
- writer.uint32(50).string(message.photoUrl);
30
+ writer.uint32(34).string(message.photoUrl);
37
31
  }
38
32
  if (message.birthday !== undefined) {
39
- writer.uint32(58).string(message.birthday);
33
+ writer.uint32(42).string(message.birthday);
40
34
  }
41
35
  if (message.gender !== undefined) {
42
- writer.uint32(66).string(message.gender);
36
+ writer.uint32(50).string(message.gender);
37
+ }
38
+ if (message.email !== undefined) {
39
+ writer.uint32(58).string(message.email);
40
+ }
41
+ if (message.phoneNumber !== undefined) {
42
+ writer.uint32(66).string(message.phoneNumber);
43
43
  }
44
44
  return writer;
45
45
  },
@@ -68,42 +68,42 @@ exports.RegisterCredentials = {
68
68
  if (tag !== 26) {
69
69
  break;
70
70
  }
71
- message.email = reader.string();
71
+ message.password = reader.string();
72
72
  continue;
73
73
  }
74
74
  case 4: {
75
75
  if (tag !== 34) {
76
76
  break;
77
77
  }
78
- message.phoneNumber = reader.string();
78
+ message.photoUrl = reader.string();
79
79
  continue;
80
80
  }
81
81
  case 5: {
82
82
  if (tag !== 42) {
83
83
  break;
84
84
  }
85
- message.password = reader.string();
85
+ message.birthday = reader.string();
86
86
  continue;
87
87
  }
88
88
  case 6: {
89
89
  if (tag !== 50) {
90
90
  break;
91
91
  }
92
- message.photoUrl = reader.string();
92
+ message.gender = reader.string();
93
93
  continue;
94
94
  }
95
95
  case 7: {
96
96
  if (tag !== 58) {
97
97
  break;
98
98
  }
99
- message.birthday = reader.string();
99
+ message.email = reader.string();
100
100
  continue;
101
101
  }
102
102
  case 8: {
103
103
  if (tag !== 66) {
104
104
  break;
105
105
  }
106
- message.gender = reader.string();
106
+ message.phoneNumber = reader.string();
107
107
  continue;
108
108
  }
109
109
  }
@@ -29,12 +29,12 @@ export interface User {
29
29
  authentication?: UserAuthentication | undefined;
30
30
  }
31
31
  export interface CreateUserPersonal {
32
- photoUrl: string;
32
+ photoUrl?: string | undefined;
33
33
  firstName: string;
34
- lastName: string;
35
- birthday: string;
34
+ lastName?: string | undefined;
35
+ birthday?: string | undefined;
36
36
  /** "male" | "female" */
37
- gender: string;
37
+ gender?: string | undefined;
38
38
  email: string;
39
39
  phoneNumber: string;
40
40
  }
@@ -275,23 +275,23 @@ exports.User = {
275
275
  },
276
276
  };
277
277
  function createBaseCreateUserPersonal() {
278
- return { photoUrl: "", firstName: "", lastName: "", birthday: "", gender: "", email: "", phoneNumber: "" };
278
+ return { firstName: "", email: "", phoneNumber: "" };
279
279
  }
280
280
  exports.CreateUserPersonal = {
281
281
  encode(message, writer = new wire_1.BinaryWriter()) {
282
- if (message.photoUrl !== "") {
282
+ if (message.photoUrl !== undefined) {
283
283
  writer.uint32(10).string(message.photoUrl);
284
284
  }
285
285
  if (message.firstName !== "") {
286
286
  writer.uint32(18).string(message.firstName);
287
287
  }
288
- if (message.lastName !== "") {
288
+ if (message.lastName !== undefined) {
289
289
  writer.uint32(26).string(message.lastName);
290
290
  }
291
- if (message.birthday !== "") {
291
+ if (message.birthday !== undefined) {
292
292
  writer.uint32(34).string(message.birthday);
293
293
  }
294
- if (message.gender !== "") {
294
+ if (message.gender !== undefined) {
295
295
  writer.uint32(42).string(message.gender);
296
296
  }
297
297
  if (message.email !== "") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geniebox-shared-lib",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Shared NestJS library with gRPC clients",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",