vr-commons 1.0.65 → 1.0.66

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.
@@ -11,7 +11,7 @@ export interface BaseUserProfile {
11
11
  id: string;
12
12
  firstName: string;
13
13
  lastName: string;
14
- phoneNumber: string;
14
+ primaryPhone: string;
15
15
  email: string | null;
16
16
  nationalId: string;
17
17
  isActive: boolean;
@@ -25,7 +25,7 @@ const formatUserProfile = (user, viewerType = "ADMIN", options = {}) => {
25
25
  id: user.id,
26
26
  firstName: user.firstName,
27
27
  lastName: user.lastName,
28
- phoneNumber: user.phoneNumber,
28
+ primaryPhone: user.primaryPhone?.phoneNumber,
29
29
  email: user.email,
30
30
  nationalId: user.nationalId,
31
31
  isActive: user.isActive,
@@ -790,14 +790,14 @@ export declare const listAppSpecsSchema: z.ZodObject<{
790
790
  search?: string | undefined;
791
791
  isActive?: "true" | "false" | undefined;
792
792
  sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
793
- sortOrder?: "DESC" | "ASC" | undefined;
793
+ sortOrder?: "ASC" | "DESC" | undefined;
794
794
  }, {
795
795
  search?: string | undefined;
796
796
  limit?: string | undefined;
797
797
  isActive?: "true" | "false" | undefined;
798
798
  page?: string | undefined;
799
799
  sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
800
- sortOrder?: "DESC" | "ASC" | undefined;
800
+ sortOrder?: "ASC" | "DESC" | undefined;
801
801
  }>;
802
802
  }, "strip", z.ZodTypeAny, {
803
803
  query: {
@@ -806,7 +806,7 @@ export declare const listAppSpecsSchema: z.ZodObject<{
806
806
  search?: string | undefined;
807
807
  isActive?: "true" | "false" | undefined;
808
808
  sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
809
- sortOrder?: "DESC" | "ASC" | undefined;
809
+ sortOrder?: "ASC" | "DESC" | undefined;
810
810
  };
811
811
  }, {
812
812
  query: {
@@ -815,7 +815,7 @@ export declare const listAppSpecsSchema: z.ZodObject<{
815
815
  isActive?: "true" | "false" | undefined;
816
816
  page?: string | undefined;
817
817
  sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
818
- sortOrder?: "DESC" | "ASC" | undefined;
818
+ sortOrder?: "ASC" | "DESC" | undefined;
819
819
  };
820
820
  }>;
821
821
  export declare const getAppSpecsSchema: z.ZodObject<{
@@ -6,27 +6,27 @@ export declare const riderLoginSchema: z.ZodObject<{
6
6
  phoneNumber: z.ZodString;
7
7
  nationalId: z.ZodString;
8
8
  }, "strip", z.ZodTypeAny, {
9
- phoneNumber: string;
10
9
  nationalId: string;
11
- }, {
12
10
  phoneNumber: string;
11
+ }, {
13
12
  nationalId: string;
13
+ phoneNumber: string;
14
14
  }>;
15
15
  query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
16
16
  params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
17
17
  headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
18
18
  }, "strip", z.ZodTypeAny, {
19
19
  body: {
20
- phoneNumber: string;
21
20
  nationalId: string;
21
+ phoneNumber: string;
22
22
  };
23
23
  query?: {} | undefined;
24
24
  params?: {} | undefined;
25
25
  headers?: {} | undefined;
26
26
  }, {
27
27
  body: {
28
- phoneNumber: string;
29
28
  nationalId: string;
29
+ phoneNumber: string;
30
30
  };
31
31
  query?: {} | undefined;
32
32
  params?: {} | undefined;
@@ -37,21 +37,21 @@ export declare const userLoginSchema: z.ZodObject<{
37
37
  email: z.ZodString;
38
38
  password: z.ZodString;
39
39
  }, "strip", z.ZodTypeAny, {
40
- email: string;
41
40
  password: string;
42
- }, {
43
41
  email: string;
42
+ }, {
44
43
  password: string;
44
+ email: string;
45
45
  }>;
46
46
  }, "strip", z.ZodTypeAny, {
47
47
  body: {
48
- email: string;
49
48
  password: string;
49
+ email: string;
50
50
  };
51
51
  }, {
52
52
  body: {
53
- email: string;
54
53
  password: string;
54
+ email: string;
55
55
  };
56
56
  }>;
57
57
  export declare const forgotPasswordSchema: z.ZodObject<{
@@ -96,32 +96,32 @@ export declare const registerSchema: z.ZodObject<{
96
96
  email: z.ZodOptional<z.ZodString>;
97
97
  password: z.ZodString;
98
98
  }, "strict", z.ZodTypeAny, {
99
+ password: string;
99
100
  firstName: string;
100
101
  lastName: string;
101
102
  phoneNumber: string;
102
- password: string;
103
103
  email?: string | undefined;
104
104
  }, {
105
+ password: string;
105
106
  firstName: string;
106
107
  lastName: string;
107
108
  phoneNumber: string;
108
- password: string;
109
109
  email?: string | undefined;
110
110
  }>;
111
111
  }, "strip", z.ZodTypeAny, {
112
112
  body: {
113
+ password: string;
113
114
  firstName: string;
114
115
  lastName: string;
115
116
  phoneNumber: string;
116
- password: string;
117
117
  email?: string | undefined;
118
118
  };
119
119
  }, {
120
120
  body: {
121
+ password: string;
121
122
  firstName: string;
122
123
  lastName: string;
123
124
  phoneNumber: string;
124
- password: string;
125
125
  email?: string | undefined;
126
126
  };
127
127
  }>;
@@ -130,21 +130,21 @@ export declare const confirmSchema: z.ZodObject<{
130
130
  phoneNumber: z.ZodString;
131
131
  otp: z.ZodString;
132
132
  }, "strict", z.ZodTypeAny, {
133
- phoneNumber: string;
134
133
  otp: string;
135
- }, {
136
134
  phoneNumber: string;
135
+ }, {
137
136
  otp: string;
137
+ phoneNumber: string;
138
138
  }>;
139
139
  }, "strip", z.ZodTypeAny, {
140
140
  body: {
141
- phoneNumber: string;
142
141
  otp: string;
142
+ phoneNumber: string;
143
143
  };
144
144
  }, {
145
145
  body: {
146
- phoneNumber: string;
147
146
  otp: string;
147
+ phoneNumber: string;
148
148
  };
149
149
  }>;
150
150
  export declare const verifySchema: z.ZodObject<{
@@ -11,13 +11,13 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
11
11
  page: number;
12
12
  status?: "pending" | "succeeded" | "failed" | undefined;
13
13
  sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
14
- sortOrder?: "DESC" | "ASC" | undefined;
14
+ sortOrder?: "ASC" | "DESC" | undefined;
15
15
  }, {
16
16
  limit?: string | undefined;
17
- status?: "pending" | "succeeded" | "failed" | undefined;
18
17
  page?: string | undefined;
18
+ status?: "pending" | "succeeded" | "failed" | undefined;
19
19
  sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
20
- sortOrder?: "DESC" | "ASC" | undefined;
20
+ sortOrder?: "ASC" | "DESC" | undefined;
21
21
  }>;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  query: {
@@ -25,15 +25,15 @@ export declare const listUserPaymentPlansSchema: z.ZodObject<{
25
25
  page: number;
26
26
  status?: "pending" | "succeeded" | "failed" | undefined;
27
27
  sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
28
- sortOrder?: "DESC" | "ASC" | undefined;
28
+ sortOrder?: "ASC" | "DESC" | undefined;
29
29
  };
30
30
  }, {
31
31
  query: {
32
32
  limit?: string | undefined;
33
- status?: "pending" | "succeeded" | "failed" | undefined;
34
33
  page?: string | undefined;
34
+ status?: "pending" | "succeeded" | "failed" | undefined;
35
35
  sortBy?: "createdAt" | "updatedAt" | "status" | "nextInstallmentDueAt" | undefined;
36
- sortOrder?: "DESC" | "ASC" | undefined;
36
+ sortOrder?: "ASC" | "DESC" | undefined;
37
37
  };
38
38
  }>;
39
39
  export declare const getUserPaymentPlanSchema: z.ZodObject<{
@@ -21,20 +21,20 @@ export declare const extendSessionSchema: z.ZodObject<{
21
21
  deviceSerialNumber: z.ZodString;
22
22
  sessionId: z.ZodString;
23
23
  }, "strip", z.ZodTypeAny, {
24
- sessionId: string;
25
24
  deviceSerialNumber: string;
26
- }, {
27
25
  sessionId: string;
26
+ }, {
28
27
  deviceSerialNumber: string;
28
+ sessionId: string;
29
29
  }>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  body: {
32
- sessionId: string;
33
32
  deviceSerialNumber: string;
33
+ sessionId: string;
34
34
  };
35
35
  }, {
36
36
  body: {
37
- sessionId: string;
38
37
  deviceSerialNumber: string;
38
+ sessionId: string;
39
39
  };
40
40
  }>;
@@ -24,19 +24,19 @@ export declare const listBansSchema: z.ZodObject<{
24
24
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
25
25
  fromDate?: string | undefined;
26
26
  toDate?: string | undefined;
27
- sortOrder?: "DESC" | "ASC" | undefined;
27
+ sortOrder?: "ASC" | "DESC" | undefined;
28
28
  }, {
29
29
  search?: string | undefined;
30
30
  limit?: string | undefined;
31
31
  userId?: string | undefined;
32
+ page?: string | undefined;
32
33
  isPermanent?: "true" | "false" | undefined;
33
34
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
34
35
  status?: "active" | "revoked" | undefined;
35
- page?: string | undefined;
36
36
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
37
37
  fromDate?: string | undefined;
38
38
  toDate?: string | undefined;
39
- sortOrder?: "DESC" | "ASC" | undefined;
39
+ sortOrder?: "ASC" | "DESC" | undefined;
40
40
  }>, {
41
41
  limit: number;
42
42
  page: number;
@@ -48,19 +48,19 @@ export declare const listBansSchema: z.ZodObject<{
48
48
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
49
49
  fromDate?: string | undefined;
50
50
  toDate?: string | undefined;
51
- sortOrder?: "DESC" | "ASC" | undefined;
51
+ sortOrder?: "ASC" | "DESC" | undefined;
52
52
  }, {
53
53
  search?: string | undefined;
54
54
  limit?: string | undefined;
55
55
  userId?: string | undefined;
56
+ page?: string | undefined;
56
57
  isPermanent?: "true" | "false" | undefined;
57
58
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
58
59
  status?: "active" | "revoked" | undefined;
59
- page?: string | undefined;
60
60
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
61
61
  fromDate?: string | undefined;
62
62
  toDate?: string | undefined;
63
- sortOrder?: "DESC" | "ASC" | undefined;
63
+ sortOrder?: "ASC" | "DESC" | undefined;
64
64
  }>;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  query: {
@@ -74,21 +74,21 @@ export declare const listBansSchema: z.ZodObject<{
74
74
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
75
75
  fromDate?: string | undefined;
76
76
  toDate?: string | undefined;
77
- sortOrder?: "DESC" | "ASC" | undefined;
77
+ sortOrder?: "ASC" | "DESC" | undefined;
78
78
  };
79
79
  }, {
80
80
  query: {
81
81
  search?: string | undefined;
82
82
  limit?: string | undefined;
83
83
  userId?: string | undefined;
84
+ page?: string | undefined;
84
85
  isPermanent?: "true" | "false" | undefined;
85
86
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
86
87
  status?: "active" | "revoked" | undefined;
87
- page?: string | undefined;
88
88
  sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
89
89
  fromDate?: string | undefined;
90
90
  toDate?: string | undefined;
91
- sortOrder?: "DESC" | "ASC" | undefined;
91
+ sortOrder?: "ASC" | "DESC" | undefined;
92
92
  };
93
93
  }>;
94
94
  export declare const listSuspensionsSchema: z.ZodObject<{
@@ -111,21 +111,21 @@ export declare const listSuspensionsSchema: z.ZodObject<{
111
111
  userId?: string | undefined;
112
112
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
113
113
  status?: "active" | "revoked" | "expired" | undefined;
114
- sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
114
+ sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
115
115
  fromDate?: string | undefined;
116
116
  toDate?: string | undefined;
117
- sortOrder?: "DESC" | "ASC" | undefined;
117
+ sortOrder?: "ASC" | "DESC" | undefined;
118
118
  }, {
119
119
  search?: string | undefined;
120
120
  limit?: string | undefined;
121
121
  userId?: string | undefined;
122
+ page?: string | undefined;
122
123
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
123
124
  status?: "active" | "revoked" | "expired" | undefined;
124
- page?: string | undefined;
125
- sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
125
+ sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
126
126
  fromDate?: string | undefined;
127
127
  toDate?: string | undefined;
128
- sortOrder?: "DESC" | "ASC" | undefined;
128
+ sortOrder?: "ASC" | "DESC" | undefined;
129
129
  }>, {
130
130
  limit: number;
131
131
  page: number;
@@ -133,21 +133,21 @@ export declare const listSuspensionsSchema: z.ZodObject<{
133
133
  userId?: string | undefined;
134
134
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
135
135
  status?: "active" | "revoked" | "expired" | undefined;
136
- sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
136
+ sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
137
137
  fromDate?: string | undefined;
138
138
  toDate?: string | undefined;
139
- sortOrder?: "DESC" | "ASC" | undefined;
139
+ sortOrder?: "ASC" | "DESC" | undefined;
140
140
  }, {
141
141
  search?: string | undefined;
142
142
  limit?: string | undefined;
143
143
  userId?: string | undefined;
144
+ page?: string | undefined;
144
145
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
145
146
  status?: "active" | "revoked" | "expired" | undefined;
146
- page?: string | undefined;
147
- sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
147
+ sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
148
148
  fromDate?: string | undefined;
149
149
  toDate?: string | undefined;
150
- sortOrder?: "DESC" | "ASC" | undefined;
150
+ sortOrder?: "ASC" | "DESC" | undefined;
151
151
  }>;
152
152
  }, "strip", z.ZodTypeAny, {
153
153
  query: {
@@ -157,23 +157,23 @@ export declare const listSuspensionsSchema: z.ZodObject<{
157
157
  userId?: string | undefined;
158
158
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
159
159
  status?: "active" | "revoked" | "expired" | undefined;
160
- sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
160
+ sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
161
161
  fromDate?: string | undefined;
162
162
  toDate?: string | undefined;
163
- sortOrder?: "DESC" | "ASC" | undefined;
163
+ sortOrder?: "ASC" | "DESC" | undefined;
164
164
  };
165
165
  }, {
166
166
  query: {
167
167
  search?: string | undefined;
168
168
  limit?: string | undefined;
169
169
  userId?: string | undefined;
170
+ page?: string | undefined;
170
171
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
171
172
  status?: "active" | "revoked" | "expired" | undefined;
172
- page?: string | undefined;
173
- sortBy?: "createdAt" | "startedAt" | "reason" | "endsAt" | undefined;
173
+ sortBy?: "createdAt" | "reason" | "endsAt" | "startedAt" | undefined;
174
174
  fromDate?: string | undefined;
175
175
  toDate?: string | undefined;
176
- sortOrder?: "DESC" | "ASC" | undefined;
176
+ sortOrder?: "ASC" | "DESC" | undefined;
177
177
  };
178
178
  }>;
179
179
  export declare const revokeBanSchema: z.ZodObject<{
@@ -15,22 +15,22 @@ export declare const createUserSchema: z.ZodObject<{
15
15
  plateNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16
16
  jacketId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17
17
  }, "strip", z.ZodTypeAny, {
18
+ role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
19
+ password: string;
18
20
  firstName: string;
19
21
  lastName: string;
20
- phoneNumber: string;
21
- password: string;
22
22
  nationalId: string;
23
- role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
23
+ phoneNumber: string;
24
24
  jacketId?: string | null | undefined;
25
25
  email?: string | null | undefined;
26
26
  plateNumber?: string | null | undefined;
27
27
  }, {
28
+ role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
29
+ password: string;
28
30
  firstName: string;
29
31
  lastName: string;
30
- phoneNumber: string;
31
- password: string;
32
32
  nationalId: string;
33
- role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
33
+ phoneNumber: string;
34
34
  jacketId?: string | null | undefined;
35
35
  email?: string | null | undefined;
36
36
  plateNumber?: string | null | undefined;
@@ -44,12 +44,12 @@ export declare const createUserSchema: z.ZodObject<{
44
44
  }>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  body: {
47
+ role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
48
+ password: string;
47
49
  firstName: string;
48
50
  lastName: string;
49
- phoneNumber: string;
50
- password: string;
51
51
  nationalId: string;
52
- role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
52
+ phoneNumber: string;
53
53
  jacketId?: string | null | undefined;
54
54
  email?: string | null | undefined;
55
55
  plateNumber?: string | null | undefined;
@@ -59,12 +59,12 @@ export declare const createUserSchema: z.ZodObject<{
59
59
  };
60
60
  }, {
61
61
  body: {
62
+ role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
63
+ password: string;
62
64
  firstName: string;
63
65
  lastName: string;
64
- phoneNumber: string;
65
- password: string;
66
66
  nationalId: string;
67
- role: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN";
67
+ phoneNumber: string;
68
68
  jacketId?: string | null | undefined;
69
69
  email?: string | null | undefined;
70
70
  plateNumber?: string | null | undefined;
@@ -122,44 +122,44 @@ export declare const updateUserProfileSchema: z.ZodObject<{
122
122
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
123
123
  password: z.ZodOptional<z.ZodString>;
124
124
  }, "strip", z.ZodTypeAny, {
125
+ password?: string | undefined;
125
126
  firstName?: string | undefined;
126
127
  lastName?: string | undefined;
127
- phoneNumber?: string | undefined;
128
128
  email?: string | null | undefined;
129
- password?: string | undefined;
130
129
  plateNumber?: string | null | undefined;
131
130
  isActive?: boolean | undefined;
132
131
  isDeactivated?: boolean | undefined;
132
+ phoneNumber?: string | undefined;
133
133
  isSuspended?: boolean | undefined;
134
134
  }, {
135
+ password?: string | undefined;
135
136
  firstName?: string | undefined;
136
137
  lastName?: string | undefined;
137
- phoneNumber?: string | undefined;
138
138
  email?: string | null | undefined;
139
- password?: string | undefined;
140
139
  plateNumber?: string | null | undefined;
141
140
  isActive?: boolean | undefined;
142
141
  isDeactivated?: boolean | undefined;
142
+ phoneNumber?: string | undefined;
143
143
  isSuspended?: boolean | undefined;
144
144
  }>, {
145
+ password?: string | undefined;
145
146
  firstName?: string | undefined;
146
147
  lastName?: string | undefined;
147
- phoneNumber?: string | undefined;
148
148
  email?: string | null | undefined;
149
- password?: string | undefined;
150
149
  plateNumber?: string | null | undefined;
151
150
  isActive?: boolean | undefined;
152
151
  isDeactivated?: boolean | undefined;
152
+ phoneNumber?: string | undefined;
153
153
  isSuspended?: boolean | undefined;
154
154
  }, {
155
+ password?: string | undefined;
155
156
  firstName?: string | undefined;
156
157
  lastName?: string | undefined;
157
- phoneNumber?: string | undefined;
158
158
  email?: string | null | undefined;
159
- password?: string | undefined;
160
159
  plateNumber?: string | null | undefined;
161
160
  isActive?: boolean | undefined;
162
161
  isDeactivated?: boolean | undefined;
162
+ phoneNumber?: string | undefined;
163
163
  isSuspended?: boolean | undefined;
164
164
  }>;
165
165
  headers: z.ZodObject<{
@@ -171,14 +171,14 @@ export declare const updateUserProfileSchema: z.ZodObject<{
171
171
  }>;
172
172
  }, "strip", z.ZodTypeAny, {
173
173
  body: {
174
+ password?: string | undefined;
174
175
  firstName?: string | undefined;
175
176
  lastName?: string | undefined;
176
- phoneNumber?: string | undefined;
177
177
  email?: string | null | undefined;
178
- password?: string | undefined;
179
178
  plateNumber?: string | null | undefined;
180
179
  isActive?: boolean | undefined;
181
180
  isDeactivated?: boolean | undefined;
181
+ phoneNumber?: string | undefined;
182
182
  isSuspended?: boolean | undefined;
183
183
  };
184
184
  params: {
@@ -189,14 +189,14 @@ export declare const updateUserProfileSchema: z.ZodObject<{
189
189
  };
190
190
  }, {
191
191
  body: {
192
+ password?: string | undefined;
192
193
  firstName?: string | undefined;
193
194
  lastName?: string | undefined;
194
- phoneNumber?: string | undefined;
195
195
  email?: string | null | undefined;
196
- password?: string | undefined;
197
196
  plateNumber?: string | null | undefined;
198
197
  isActive?: boolean | undefined;
199
198
  isDeactivated?: boolean | undefined;
199
+ phoneNumber?: string | undefined;
200
200
  isSuspended?: boolean | undefined;
201
201
  };
202
202
  params: {
@@ -220,26 +220,26 @@ export declare const getAllUsersSchema: z.ZodObject<{
220
220
  sortBy: z.ZodDefault<z.ZodEnum<["firstName", "lastLoginAt", "createdAt"]>>;
221
221
  order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
222
222
  }, "strip", z.ZodTypeAny, {
223
- order: "asc" | "desc";
223
+ order: "desc" | "asc";
224
224
  sortBy: "createdAt" | "firstName" | "lastLoginAt";
225
+ role?: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN" | undefined;
225
226
  search?: string | undefined;
226
227
  limit?: number | undefined;
227
228
  isActive?: boolean | undefined;
228
- role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
229
- isBanned?: boolean | undefined;
230
229
  isSuspended?: boolean | undefined;
231
230
  page?: number | undefined;
231
+ isBanned?: boolean | undefined;
232
232
  startDate?: string | undefined;
233
233
  endDate?: string | undefined;
234
234
  }, {
235
+ role?: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN" | undefined;
235
236
  search?: string | undefined;
236
- order?: "asc" | "desc" | undefined;
237
237
  limit?: string | undefined;
238
+ order?: "desc" | "asc" | undefined;
238
239
  isActive?: "true" | "false" | undefined;
239
- role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
240
- isBanned?: "true" | "false" | undefined;
241
240
  isSuspended?: "true" | "false" | undefined;
242
241
  page?: string | undefined;
242
+ isBanned?: "true" | "false" | undefined;
243
243
  startDate?: string | undefined;
244
244
  endDate?: string | undefined;
245
245
  sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
@@ -253,15 +253,15 @@ export declare const getAllUsersSchema: z.ZodObject<{
253
253
  }>;
254
254
  }, "strip", z.ZodTypeAny, {
255
255
  query: {
256
- order: "asc" | "desc";
256
+ order: "desc" | "asc";
257
257
  sortBy: "createdAt" | "firstName" | "lastLoginAt";
258
+ role?: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN" | undefined;
258
259
  search?: string | undefined;
259
260
  limit?: number | undefined;
260
261
  isActive?: boolean | undefined;
261
- role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
262
- isBanned?: boolean | undefined;
263
262
  isSuspended?: boolean | undefined;
264
263
  page?: number | undefined;
264
+ isBanned?: boolean | undefined;
265
265
  startDate?: string | undefined;
266
266
  endDate?: string | undefined;
267
267
  };
@@ -270,14 +270,14 @@ export declare const getAllUsersSchema: z.ZodObject<{
270
270
  };
271
271
  }, {
272
272
  query: {
273
+ role?: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN" | undefined;
273
274
  search?: string | undefined;
274
- order?: "asc" | "desc" | undefined;
275
275
  limit?: string | undefined;
276
+ order?: "desc" | "asc" | undefined;
276
277
  isActive?: "true" | "false" | undefined;
277
- role?: "RIDER" | "PASSENGER" | "ADMIN" | "AGENT" | "SUPER_ADMIN" | undefined;
278
- isBanned?: "true" | "false" | undefined;
279
278
  isSuspended?: "true" | "false" | undefined;
280
279
  page?: string | undefined;
280
+ isBanned?: "true" | "false" | undefined;
281
281
  startDate?: string | undefined;
282
282
  endDate?: string | undefined;
283
283
  sortBy?: "createdAt" | "firstName" | "lastLoginAt" | undefined;
@@ -325,20 +325,20 @@ export declare const passengerSignupSchema: z.ZodObject<{
325
325
  }, "strip", z.ZodTypeAny, {
326
326
  firstName: string;
327
327
  lastName: string;
328
- phoneNumber: string;
329
328
  nationalId: string;
329
+ phoneNumber: string;
330
+ password?: string | null | undefined;
330
331
  jacketId?: string | undefined;
331
332
  email?: string | null | undefined;
332
- password?: string | null | undefined;
333
333
  plateNumber?: string | null | undefined;
334
334
  }, {
335
335
  firstName: string;
336
336
  lastName: string;
337
- phoneNumber: string;
338
337
  nationalId: string;
338
+ phoneNumber: string;
339
+ password?: string | null | undefined;
339
340
  jacketId?: string | undefined;
340
341
  email?: string | null | undefined;
341
- password?: string | null | undefined;
342
342
  plateNumber?: string | null | undefined;
343
343
  }>;
344
344
  headers: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
@@ -346,11 +346,11 @@ export declare const passengerSignupSchema: z.ZodObject<{
346
346
  body: {
347
347
  firstName: string;
348
348
  lastName: string;
349
- phoneNumber: string;
350
349
  nationalId: string;
350
+ phoneNumber: string;
351
+ password?: string | null | undefined;
351
352
  jacketId?: string | undefined;
352
353
  email?: string | null | undefined;
353
- password?: string | null | undefined;
354
354
  plateNumber?: string | null | undefined;
355
355
  };
356
356
  headers?: {} | undefined;
@@ -358,11 +358,11 @@ export declare const passengerSignupSchema: z.ZodObject<{
358
358
  body: {
359
359
  firstName: string;
360
360
  lastName: string;
361
- phoneNumber: string;
362
361
  nationalId: string;
362
+ phoneNumber: string;
363
+ password?: string | null | undefined;
363
364
  jacketId?: string | undefined;
364
365
  email?: string | null | undefined;
365
- password?: string | null | undefined;
366
366
  plateNumber?: string | null | undefined;
367
367
  };
368
368
  headers?: {} | undefined;
@@ -422,17 +422,17 @@ export declare const createRiderSchema: z.ZodObject<{
422
422
  }, "strip", z.ZodTypeAny, {
423
423
  firstName: string;
424
424
  lastName: string;
425
- phoneNumber: string;
426
425
  jacketId: string;
427
426
  plateNumber: string;
428
427
  nationalId: string;
428
+ phoneNumber: string;
429
429
  }, {
430
430
  firstName: string;
431
431
  lastName: string;
432
- phoneNumber: string;
433
432
  jacketId: string;
434
433
  plateNumber: string;
435
434
  nationalId: string;
435
+ phoneNumber: string;
436
436
  }>;
437
437
  params: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
438
438
  query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
@@ -440,10 +440,10 @@ export declare const createRiderSchema: z.ZodObject<{
440
440
  body: {
441
441
  firstName: string;
442
442
  lastName: string;
443
- phoneNumber: string;
444
443
  jacketId: string;
445
444
  plateNumber: string;
446
445
  nationalId: string;
446
+ phoneNumber: string;
447
447
  };
448
448
  query?: {} | undefined;
449
449
  params?: {} | undefined;
@@ -451,10 +451,10 @@ export declare const createRiderSchema: z.ZodObject<{
451
451
  body: {
452
452
  firstName: string;
453
453
  lastName: string;
454
- phoneNumber: string;
455
454
  jacketId: string;
456
455
  plateNumber: string;
457
456
  nationalId: string;
457
+ phoneNumber: string;
458
458
  };
459
459
  query?: {} | undefined;
460
460
  params?: {} | undefined;
@@ -477,31 +477,31 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
477
477
  }, "strip", z.ZodTypeAny, {
478
478
  firstName: string;
479
479
  lastName: string;
480
- phoneNumber: string;
481
480
  jacketId: string;
482
481
  plateNumber: string;
483
482
  nationalId: string;
483
+ phoneNumber: string;
484
484
  }, {
485
485
  firstName: string;
486
486
  lastName: string;
487
- phoneNumber: string;
488
487
  jacketId: string;
489
488
  plateNumber: string;
490
489
  nationalId: string;
490
+ phoneNumber: string;
491
491
  }>, {
492
492
  firstName: string;
493
493
  lastName: string;
494
- phoneNumber: string;
495
494
  jacketId: string;
496
495
  plateNumber: string;
497
496
  nationalId: string;
497
+ phoneNumber: string;
498
498
  }, {
499
499
  firstName: string;
500
500
  lastName: string;
501
- phoneNumber: string;
502
501
  jacketId: string;
503
502
  plateNumber: string;
504
503
  nationalId: string;
504
+ phoneNumber: string;
505
505
  }>;
506
506
  query: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
507
507
  headers: z.ZodObject<{
@@ -515,10 +515,10 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
515
515
  body: {
516
516
  firstName: string;
517
517
  lastName: string;
518
- phoneNumber: string;
519
518
  jacketId: string;
520
519
  plateNumber: string;
521
520
  nationalId: string;
521
+ phoneNumber: string;
522
522
  };
523
523
  params: {
524
524
  id: string;
@@ -531,10 +531,10 @@ export declare const updateRiderProfileSchema: z.ZodObject<{
531
531
  body: {
532
532
  firstName: string;
533
533
  lastName: string;
534
- phoneNumber: string;
535
534
  jacketId: string;
536
535
  plateNumber: string;
537
536
  nationalId: string;
537
+ phoneNumber: string;
538
538
  };
539
539
  params: {
540
540
  id: string;
@@ -668,31 +668,31 @@ export declare const updateProfileSchema: z.ZodObject<{
668
668
  }, "strict", z.ZodTypeAny, {
669
669
  firstName?: string | undefined;
670
670
  lastName?: string | undefined;
671
- phoneNumber?: string | undefined;
672
671
  email?: string | undefined;
673
672
  nationalId?: string | undefined;
673
+ phoneNumber?: string | undefined;
674
674
  }, {
675
675
  firstName?: string | undefined;
676
676
  lastName?: string | undefined;
677
- phoneNumber?: string | undefined;
678
677
  email?: string | undefined;
679
678
  nationalId?: string | undefined;
679
+ phoneNumber?: string | undefined;
680
680
  }>;
681
681
  }, "strip", z.ZodTypeAny, {
682
682
  body: {
683
683
  firstName?: string | undefined;
684
684
  lastName?: string | undefined;
685
- phoneNumber?: string | undefined;
686
685
  email?: string | undefined;
687
686
  nationalId?: string | undefined;
687
+ phoneNumber?: string | undefined;
688
688
  };
689
689
  }, {
690
690
  body: {
691
691
  firstName?: string | undefined;
692
692
  lastName?: string | undefined;
693
- phoneNumber?: string | undefined;
694
693
  email?: string | undefined;
695
694
  nationalId?: string | undefined;
695
+ phoneNumber?: string | undefined;
696
696
  };
697
697
  }>;
698
698
  export type CreateUserInput = z.infer<typeof createUserSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -100,7 +100,7 @@
100
100
  "date-fns": "^4.1.0",
101
101
  "rimraf": "^5.0.5",
102
102
  "typescript": "^5.3.3",
103
- "vr-models": "^1.0.43",
103
+ "vr-models": "^1.0.45",
104
104
  "zod": "^3.25.20"
105
105
  },
106
106
  "dependencies": {