@fonoster/common 0.15.1 → 0.15.5

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.
@@ -167,6 +167,7 @@ enum ContactType {
167
167
 
168
168
  message CreateUserRequest {
169
169
  string email = 1;
170
+ string phone = 5;
170
171
  string password = 2;
171
172
  string name = 3;
172
173
  string avatar = 4;
@@ -187,6 +188,7 @@ message GetUserRequest {
187
188
  message User {
188
189
  string ref = 1;
189
190
  string email = 2;
191
+ string phone = 7;
190
192
  string name = 3;
191
193
  string avatar = 4;
192
194
  int32 created_at = 5;
@@ -198,6 +200,7 @@ message UpdateUserRequest {
198
200
  string password = 2;
199
201
  string name = 3;
200
202
  string avatar = 4;
203
+ string phone = 5;
201
204
  }
202
205
 
203
206
  message UpdateUserResponse {
@@ -78,17 +78,20 @@ declare const exchangeRefreshTokenRequestSchema: z.ZodObject<{
78
78
  declare const createUserRequestSchema: z.ZodObject<{
79
79
  name: z.ZodString;
80
80
  email: z.ZodString;
81
+ phone: z.ZodOptional<z.ZodString>;
81
82
  password: z.ZodString;
82
83
  avatar: z.ZodOptional<z.ZodString>;
83
84
  }, "strip", z.ZodTypeAny, {
84
85
  name?: string;
85
86
  email?: string;
86
87
  password?: string;
88
+ phone?: string;
87
89
  avatar?: string;
88
90
  }, {
89
91
  name?: string;
90
92
  email?: string;
91
93
  password?: string;
94
+ phone?: string;
92
95
  avatar?: string;
93
96
  }>;
94
97
  declare const createUserWithOauth2CodeRequestSchema: z.ZodObject<{
@@ -101,17 +104,20 @@ declare const createUserWithOauth2CodeRequestSchema: z.ZodObject<{
101
104
  declare const updateUserRequestSchema: z.ZodObject<{
102
105
  ref: z.ZodString;
103
106
  name: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>;
107
+ phone: z.ZodOptional<z.ZodString>;
104
108
  password: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>;
105
109
  avatar: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>;
106
110
  }, "strip", z.ZodTypeAny, {
107
111
  name?: string;
108
112
  ref?: string;
109
113
  password?: string;
114
+ phone?: string;
110
115
  avatar?: string;
111
116
  }, {
112
117
  name?: string;
113
118
  ref?: string;
114
119
  password?: string;
120
+ phone?: string;
115
121
  avatar?: string;
116
122
  }>;
117
123
  declare const inviteUserToWorkspaceRequestSchema: z.ZodObject<{
@@ -69,6 +69,7 @@ exports.exchangeRefreshTokenRequestSchema = exchangeRefreshTokenRequestSchema;
69
69
  const createUserRequestSchema = zod_1.z.object({
70
70
  name: zod_1.z.string().max(50, { message: MAX_NAME_MESSAGE }),
71
71
  email: zod_1.z.string().email({ message: EMAIL_MESSAGE }),
72
+ phone: zod_1.z.string().max(20).optional(),
72
73
  password: zod_1.z.string().min(8, { message: PASSWORD_MESSAGE }).max(100),
73
74
  avatar: zod_1.z
74
75
  .string()
@@ -87,6 +88,7 @@ const updateUserRequestSchema = zod_1.z.object({
87
88
  .string()
88
89
  .max(50, { message: MAX_NAME_MESSAGE })
89
90
  .or(zod_1.z.string().optional()),
91
+ phone: zod_1.z.string().max(20).optional(),
90
92
  password: zod_1.z
91
93
  .string()
92
94
  .min(8, { message: PASSWORD_MESSAGE })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/common",
3
- "version": "0.15.1",
3
+ "version": "0.15.5",
4
4
  "description": "Common library for Fonoster projects",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -18,7 +18,7 @@
18
18
  "clean": "rimraf ./dist node_modules tsconfig.tsbuildinfo"
19
19
  },
20
20
  "dependencies": {
21
- "@fonoster/logger": "^0.15.1",
21
+ "@fonoster/logger": "^0.15.3",
22
22
  "@grpc/grpc-js": "~1.10.6",
23
23
  "@grpc/proto-loader": "^0.7.12",
24
24
  "@influxdata/influxdb-client": "^1.35.0",
@@ -49,5 +49,5 @@
49
49
  "devDependencies": {
50
50
  "@types/nodemailer": "^6.4.14"
51
51
  },
52
- "gitHead": "4e27c619e3b47300465b5f0ba0036d397aef2b17"
52
+ "gitHead": "624a7946ab7a3b6c034fca216a4f901cc95259dd"
53
53
  }