vr-commons 1.0.51 → 1.0.52

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.
@@ -69,7 +69,6 @@ const formatUserProfile = (user, viewerType = "ADMIN", options = {}) => {
69
69
  ...baseProfile,
70
70
  jacketId: user.jacketId,
71
71
  plateNumber: user.plateNumber,
72
- isSuspended: user.isSuspended,
73
72
  isDeactivated: user.isDeactivated,
74
73
  ...securityFields,
75
74
  };
@@ -78,12 +77,7 @@ const formatUserProfile = (user, viewerType = "ADMIN", options = {}) => {
78
77
  ...baseProfile,
79
78
  jacketId: user.jacketId,
80
79
  plateNumber: user.plateNumber,
81
- isSuspended: user.isSuspended,
82
80
  isDeactivated: user.isDeactivated,
83
- bannedAt: user.bannedAt,
84
- banReason: user.banReason,
85
- suspendedAt: user.suspendedAt,
86
- suspensionReason: user.suspensionReason,
87
81
  deactivatedAt: user.deactivatedAt,
88
82
  securityClearanceId: user.securityClearanceId,
89
83
  ...securityFields,
@@ -150,14 +144,14 @@ exports.hasAllPermissions = hasAllPermissions;
150
144
  * Check if account can be modified (not deactivated/suspended)
151
145
  */
152
146
  const canModifyAccount = (user) => {
153
- return !user.isDeactivated && !user.isSuspended;
147
+ return !user.isDeactivated;
154
148
  };
155
149
  exports.canModifyAccount = canModifyAccount;
156
150
  /**
157
151
  * Check if account is active and accessible
158
152
  */
159
153
  const isAccountAccessible = (user) => {
160
- return user.isActive && !user.isDeactivated && !user.isSuspended;
154
+ return user.isActive && !user.isDeactivated;
161
155
  };
162
156
  exports.isAccountAccessible = isAccountAccessible;
163
157
  // ============================================================================
@@ -0,0 +1,855 @@
1
+ import { z } from "zod";
2
+ export declare const createAppSpecsSchema: z.ZodObject<{
3
+ body: z.ZodObject<{
4
+ appName: z.ZodString;
5
+ appShortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ appDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ appIcon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ appLogo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ appFavicon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ appSplashScreen: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ appDefaultLanguage: z.ZodDefault<z.ZodString>;
12
+ appSupportedLanguages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
13
+ primaryColor: z.ZodString;
14
+ secondaryColor: z.ZodString;
15
+ accentColor: z.ZodString;
16
+ successColor: z.ZodString;
17
+ errorColor: z.ZodString;
18
+ warningColor: z.ZodString;
19
+ infoColor: z.ZodString;
20
+ backgroundColor: z.ZodString;
21
+ textColor: z.ZodString;
22
+ buttonColor: z.ZodString;
23
+ buttonTextColor: z.ZodString;
24
+ theme: z.ZodEnum<["light", "dark", "system"]>;
25
+ buttonStyle: z.ZodEnum<["rounded", "square", "pill"]>;
26
+ fontFamily: z.ZodEnum<["system", "roboto", "poppins", "inter", "montserrat"]>;
27
+ borderRadius: z.ZodNumber;
28
+ enableAnimations: z.ZodBoolean;
29
+ enablePushNotifications: z.ZodBoolean;
30
+ enableEmailNotifications: z.ZodBoolean;
31
+ enableSmsNotifications: z.ZodBoolean;
32
+ privacyPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ privacyPolicyVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ termsAndConditions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ termsAndConditionsVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ aboutUs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ cookiePolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ cookiePolicyVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ refundPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ refundPolicyVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ appVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ minimumSupportedVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ latestVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ forceUpdate: z.ZodBoolean;
45
+ facebookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ twitterUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ instagramUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ linkedinUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ youtubeUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ supportEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ supportPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ companyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ companyAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ companyEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ companyPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ companyTaxId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ enableRiderApp: z.ZodBoolean;
59
+ enablePassengerApp: z.ZodBoolean;
60
+ enableAgentApp: z.ZodBoolean;
61
+ enableAdminDashboard: z.ZodBoolean;
62
+ enableGuestCheckout: z.ZodBoolean;
63
+ enableReferrals: z.ZodBoolean;
64
+ enableWallet: z.ZodBoolean;
65
+ enablePromoCodes: z.ZodBoolean;
66
+ enableReviews: z.ZodBoolean;
67
+ enableChat: z.ZodBoolean;
68
+ enableVoiceCall: z.ZodBoolean;
69
+ enableMaps: z.ZodBoolean;
70
+ enablePayment: z.ZodBoolean;
71
+ isUnderMaintenance: z.ZodBoolean;
72
+ maintenanceMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ maintenanceStartAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ maintenanceEndAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ googleAnalyticsId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ facebookPixelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ sentryDsn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ appName: string;
80
+ appDefaultLanguage: string;
81
+ appSupportedLanguages: string[];
82
+ primaryColor: string;
83
+ secondaryColor: string;
84
+ accentColor: string;
85
+ successColor: string;
86
+ errorColor: string;
87
+ warningColor: string;
88
+ infoColor: string;
89
+ backgroundColor: string;
90
+ textColor: string;
91
+ buttonColor: string;
92
+ buttonTextColor: string;
93
+ theme: "light" | "dark" | "system";
94
+ buttonStyle: "rounded" | "square" | "pill";
95
+ fontFamily: "system" | "roboto" | "poppins" | "inter" | "montserrat";
96
+ borderRadius: number;
97
+ enableAnimations: boolean;
98
+ enablePushNotifications: boolean;
99
+ enableEmailNotifications: boolean;
100
+ enableSmsNotifications: boolean;
101
+ forceUpdate: boolean;
102
+ enableRiderApp: boolean;
103
+ enablePassengerApp: boolean;
104
+ enableAgentApp: boolean;
105
+ enableAdminDashboard: boolean;
106
+ enableGuestCheckout: boolean;
107
+ enableReferrals: boolean;
108
+ enableWallet: boolean;
109
+ enablePromoCodes: boolean;
110
+ enableReviews: boolean;
111
+ enableChat: boolean;
112
+ enableVoiceCall: boolean;
113
+ enableMaps: boolean;
114
+ enablePayment: boolean;
115
+ isUnderMaintenance: boolean;
116
+ appShortName?: string | null | undefined;
117
+ appDescription?: string | null | undefined;
118
+ appIcon?: string | null | undefined;
119
+ appLogo?: string | null | undefined;
120
+ appFavicon?: string | null | undefined;
121
+ appSplashScreen?: string | null | undefined;
122
+ privacyPolicy?: string | null | undefined;
123
+ privacyPolicyVersion?: string | null | undefined;
124
+ termsAndConditions?: string | null | undefined;
125
+ termsAndConditionsVersion?: string | null | undefined;
126
+ aboutUs?: string | null | undefined;
127
+ cookiePolicy?: string | null | undefined;
128
+ cookiePolicyVersion?: string | null | undefined;
129
+ refundPolicy?: string | null | undefined;
130
+ refundPolicyVersion?: string | null | undefined;
131
+ appVersion?: string | null | undefined;
132
+ minimumSupportedVersion?: string | null | undefined;
133
+ latestVersion?: string | null | undefined;
134
+ facebookUrl?: string | null | undefined;
135
+ twitterUrl?: string | null | undefined;
136
+ instagramUrl?: string | null | undefined;
137
+ linkedinUrl?: string | null | undefined;
138
+ youtubeUrl?: string | null | undefined;
139
+ websiteUrl?: string | null | undefined;
140
+ supportEmail?: string | null | undefined;
141
+ supportPhone?: string | null | undefined;
142
+ companyName?: string | null | undefined;
143
+ companyAddress?: string | null | undefined;
144
+ companyEmail?: string | null | undefined;
145
+ companyPhone?: string | null | undefined;
146
+ companyTaxId?: string | null | undefined;
147
+ maintenanceMessage?: string | null | undefined;
148
+ maintenanceStartAt?: string | null | undefined;
149
+ maintenanceEndAt?: string | null | undefined;
150
+ googleAnalyticsId?: string | null | undefined;
151
+ facebookPixelId?: string | null | undefined;
152
+ sentryDsn?: string | null | undefined;
153
+ }, {
154
+ appName: string;
155
+ primaryColor: string;
156
+ secondaryColor: string;
157
+ accentColor: string;
158
+ successColor: string;
159
+ errorColor: string;
160
+ warningColor: string;
161
+ infoColor: string;
162
+ backgroundColor: string;
163
+ textColor: string;
164
+ buttonColor: string;
165
+ buttonTextColor: string;
166
+ theme: "light" | "dark" | "system";
167
+ buttonStyle: "rounded" | "square" | "pill";
168
+ fontFamily: "system" | "roboto" | "poppins" | "inter" | "montserrat";
169
+ borderRadius: number;
170
+ enableAnimations: boolean;
171
+ enablePushNotifications: boolean;
172
+ enableEmailNotifications: boolean;
173
+ enableSmsNotifications: boolean;
174
+ forceUpdate: boolean;
175
+ enableRiderApp: boolean;
176
+ enablePassengerApp: boolean;
177
+ enableAgentApp: boolean;
178
+ enableAdminDashboard: boolean;
179
+ enableGuestCheckout: boolean;
180
+ enableReferrals: boolean;
181
+ enableWallet: boolean;
182
+ enablePromoCodes: boolean;
183
+ enableReviews: boolean;
184
+ enableChat: boolean;
185
+ enableVoiceCall: boolean;
186
+ enableMaps: boolean;
187
+ enablePayment: boolean;
188
+ isUnderMaintenance: boolean;
189
+ appShortName?: string | null | undefined;
190
+ appDescription?: string | null | undefined;
191
+ appIcon?: string | null | undefined;
192
+ appLogo?: string | null | undefined;
193
+ appFavicon?: string | null | undefined;
194
+ appSplashScreen?: string | null | undefined;
195
+ appDefaultLanguage?: string | undefined;
196
+ appSupportedLanguages?: string[] | undefined;
197
+ privacyPolicy?: string | null | undefined;
198
+ privacyPolicyVersion?: string | null | undefined;
199
+ termsAndConditions?: string | null | undefined;
200
+ termsAndConditionsVersion?: string | null | undefined;
201
+ aboutUs?: string | null | undefined;
202
+ cookiePolicy?: string | null | undefined;
203
+ cookiePolicyVersion?: string | null | undefined;
204
+ refundPolicy?: string | null | undefined;
205
+ refundPolicyVersion?: string | null | undefined;
206
+ appVersion?: string | null | undefined;
207
+ minimumSupportedVersion?: string | null | undefined;
208
+ latestVersion?: string | null | undefined;
209
+ facebookUrl?: string | null | undefined;
210
+ twitterUrl?: string | null | undefined;
211
+ instagramUrl?: string | null | undefined;
212
+ linkedinUrl?: string | null | undefined;
213
+ youtubeUrl?: string | null | undefined;
214
+ websiteUrl?: string | null | undefined;
215
+ supportEmail?: string | null | undefined;
216
+ supportPhone?: string | null | undefined;
217
+ companyName?: string | null | undefined;
218
+ companyAddress?: string | null | undefined;
219
+ companyEmail?: string | null | undefined;
220
+ companyPhone?: string | null | undefined;
221
+ companyTaxId?: string | null | undefined;
222
+ maintenanceMessage?: string | null | undefined;
223
+ maintenanceStartAt?: string | null | undefined;
224
+ maintenanceEndAt?: string | null | undefined;
225
+ googleAnalyticsId?: string | null | undefined;
226
+ facebookPixelId?: string | null | undefined;
227
+ sentryDsn?: string | null | undefined;
228
+ }>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ body: {
231
+ appName: string;
232
+ appDefaultLanguage: string;
233
+ appSupportedLanguages: string[];
234
+ primaryColor: string;
235
+ secondaryColor: string;
236
+ accentColor: string;
237
+ successColor: string;
238
+ errorColor: string;
239
+ warningColor: string;
240
+ infoColor: string;
241
+ backgroundColor: string;
242
+ textColor: string;
243
+ buttonColor: string;
244
+ buttonTextColor: string;
245
+ theme: "light" | "dark" | "system";
246
+ buttonStyle: "rounded" | "square" | "pill";
247
+ fontFamily: "system" | "roboto" | "poppins" | "inter" | "montserrat";
248
+ borderRadius: number;
249
+ enableAnimations: boolean;
250
+ enablePushNotifications: boolean;
251
+ enableEmailNotifications: boolean;
252
+ enableSmsNotifications: boolean;
253
+ forceUpdate: boolean;
254
+ enableRiderApp: boolean;
255
+ enablePassengerApp: boolean;
256
+ enableAgentApp: boolean;
257
+ enableAdminDashboard: boolean;
258
+ enableGuestCheckout: boolean;
259
+ enableReferrals: boolean;
260
+ enableWallet: boolean;
261
+ enablePromoCodes: boolean;
262
+ enableReviews: boolean;
263
+ enableChat: boolean;
264
+ enableVoiceCall: boolean;
265
+ enableMaps: boolean;
266
+ enablePayment: boolean;
267
+ isUnderMaintenance: boolean;
268
+ appShortName?: string | null | undefined;
269
+ appDescription?: string | null | undefined;
270
+ appIcon?: string | null | undefined;
271
+ appLogo?: string | null | undefined;
272
+ appFavicon?: string | null | undefined;
273
+ appSplashScreen?: string | null | undefined;
274
+ privacyPolicy?: string | null | undefined;
275
+ privacyPolicyVersion?: string | null | undefined;
276
+ termsAndConditions?: string | null | undefined;
277
+ termsAndConditionsVersion?: string | null | undefined;
278
+ aboutUs?: string | null | undefined;
279
+ cookiePolicy?: string | null | undefined;
280
+ cookiePolicyVersion?: string | null | undefined;
281
+ refundPolicy?: string | null | undefined;
282
+ refundPolicyVersion?: string | null | undefined;
283
+ appVersion?: string | null | undefined;
284
+ minimumSupportedVersion?: string | null | undefined;
285
+ latestVersion?: string | null | undefined;
286
+ facebookUrl?: string | null | undefined;
287
+ twitterUrl?: string | null | undefined;
288
+ instagramUrl?: string | null | undefined;
289
+ linkedinUrl?: string | null | undefined;
290
+ youtubeUrl?: string | null | undefined;
291
+ websiteUrl?: string | null | undefined;
292
+ supportEmail?: string | null | undefined;
293
+ supportPhone?: string | null | undefined;
294
+ companyName?: string | null | undefined;
295
+ companyAddress?: string | null | undefined;
296
+ companyEmail?: string | null | undefined;
297
+ companyPhone?: string | null | undefined;
298
+ companyTaxId?: string | null | undefined;
299
+ maintenanceMessage?: string | null | undefined;
300
+ maintenanceStartAt?: string | null | undefined;
301
+ maintenanceEndAt?: string | null | undefined;
302
+ googleAnalyticsId?: string | null | undefined;
303
+ facebookPixelId?: string | null | undefined;
304
+ sentryDsn?: string | null | undefined;
305
+ };
306
+ }, {
307
+ body: {
308
+ appName: string;
309
+ primaryColor: string;
310
+ secondaryColor: string;
311
+ accentColor: string;
312
+ successColor: string;
313
+ errorColor: string;
314
+ warningColor: string;
315
+ infoColor: string;
316
+ backgroundColor: string;
317
+ textColor: string;
318
+ buttonColor: string;
319
+ buttonTextColor: string;
320
+ theme: "light" | "dark" | "system";
321
+ buttonStyle: "rounded" | "square" | "pill";
322
+ fontFamily: "system" | "roboto" | "poppins" | "inter" | "montserrat";
323
+ borderRadius: number;
324
+ enableAnimations: boolean;
325
+ enablePushNotifications: boolean;
326
+ enableEmailNotifications: boolean;
327
+ enableSmsNotifications: boolean;
328
+ forceUpdate: boolean;
329
+ enableRiderApp: boolean;
330
+ enablePassengerApp: boolean;
331
+ enableAgentApp: boolean;
332
+ enableAdminDashboard: boolean;
333
+ enableGuestCheckout: boolean;
334
+ enableReferrals: boolean;
335
+ enableWallet: boolean;
336
+ enablePromoCodes: boolean;
337
+ enableReviews: boolean;
338
+ enableChat: boolean;
339
+ enableVoiceCall: boolean;
340
+ enableMaps: boolean;
341
+ enablePayment: boolean;
342
+ isUnderMaintenance: boolean;
343
+ appShortName?: string | null | undefined;
344
+ appDescription?: string | null | undefined;
345
+ appIcon?: string | null | undefined;
346
+ appLogo?: string | null | undefined;
347
+ appFavicon?: string | null | undefined;
348
+ appSplashScreen?: string | null | undefined;
349
+ appDefaultLanguage?: string | undefined;
350
+ appSupportedLanguages?: string[] | undefined;
351
+ privacyPolicy?: string | null | undefined;
352
+ privacyPolicyVersion?: string | null | undefined;
353
+ termsAndConditions?: string | null | undefined;
354
+ termsAndConditionsVersion?: string | null | undefined;
355
+ aboutUs?: string | null | undefined;
356
+ cookiePolicy?: string | null | undefined;
357
+ cookiePolicyVersion?: string | null | undefined;
358
+ refundPolicy?: string | null | undefined;
359
+ refundPolicyVersion?: string | null | undefined;
360
+ appVersion?: string | null | undefined;
361
+ minimumSupportedVersion?: string | null | undefined;
362
+ latestVersion?: string | null | undefined;
363
+ facebookUrl?: string | null | undefined;
364
+ twitterUrl?: string | null | undefined;
365
+ instagramUrl?: string | null | undefined;
366
+ linkedinUrl?: string | null | undefined;
367
+ youtubeUrl?: string | null | undefined;
368
+ websiteUrl?: string | null | undefined;
369
+ supportEmail?: string | null | undefined;
370
+ supportPhone?: string | null | undefined;
371
+ companyName?: string | null | undefined;
372
+ companyAddress?: string | null | undefined;
373
+ companyEmail?: string | null | undefined;
374
+ companyPhone?: string | null | undefined;
375
+ companyTaxId?: string | null | undefined;
376
+ maintenanceMessage?: string | null | undefined;
377
+ maintenanceStartAt?: string | null | undefined;
378
+ maintenanceEndAt?: string | null | undefined;
379
+ googleAnalyticsId?: string | null | undefined;
380
+ facebookPixelId?: string | null | undefined;
381
+ sentryDsn?: string | null | undefined;
382
+ };
383
+ }>;
384
+ export declare const updateAppSpecsSchema: z.ZodObject<{
385
+ params: z.ZodObject<{
386
+ id: z.ZodString;
387
+ }, "strip", z.ZodTypeAny, {
388
+ id: string;
389
+ }, {
390
+ id: string;
391
+ }>;
392
+ body: z.ZodObject<{
393
+ appName: z.ZodOptional<z.ZodString>;
394
+ appShortName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
395
+ appDescription: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
396
+ appIcon: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
397
+ appLogo: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
398
+ appFavicon: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
399
+ appSplashScreen: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
400
+ appDefaultLanguage: z.ZodOptional<z.ZodDefault<z.ZodString>>;
401
+ appSupportedLanguages: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
402
+ primaryColor: z.ZodOptional<z.ZodString>;
403
+ secondaryColor: z.ZodOptional<z.ZodString>;
404
+ accentColor: z.ZodOptional<z.ZodString>;
405
+ successColor: z.ZodOptional<z.ZodString>;
406
+ errorColor: z.ZodOptional<z.ZodString>;
407
+ warningColor: z.ZodOptional<z.ZodString>;
408
+ infoColor: z.ZodOptional<z.ZodString>;
409
+ backgroundColor: z.ZodOptional<z.ZodString>;
410
+ textColor: z.ZodOptional<z.ZodString>;
411
+ buttonColor: z.ZodOptional<z.ZodString>;
412
+ buttonTextColor: z.ZodOptional<z.ZodString>;
413
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark", "system"]>>;
414
+ buttonStyle: z.ZodOptional<z.ZodEnum<["rounded", "square", "pill"]>>;
415
+ fontFamily: z.ZodOptional<z.ZodEnum<["system", "roboto", "poppins", "inter", "montserrat"]>>;
416
+ borderRadius: z.ZodOptional<z.ZodNumber>;
417
+ enableAnimations: z.ZodOptional<z.ZodBoolean>;
418
+ enablePushNotifications: z.ZodOptional<z.ZodBoolean>;
419
+ enableEmailNotifications: z.ZodOptional<z.ZodBoolean>;
420
+ enableSmsNotifications: z.ZodOptional<z.ZodBoolean>;
421
+ privacyPolicy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
422
+ privacyPolicyVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
423
+ termsAndConditions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
424
+ termsAndConditionsVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
425
+ aboutUs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
426
+ cookiePolicy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
427
+ cookiePolicyVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
428
+ refundPolicy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
429
+ refundPolicyVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
430
+ appVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
431
+ minimumSupportedVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
432
+ latestVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
433
+ forceUpdate: z.ZodOptional<z.ZodBoolean>;
434
+ facebookUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
435
+ twitterUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
436
+ instagramUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
437
+ linkedinUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
438
+ youtubeUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
439
+ websiteUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
440
+ supportEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
441
+ supportPhone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
442
+ companyName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
443
+ companyAddress: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
444
+ companyEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
445
+ companyPhone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
446
+ companyTaxId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
447
+ enableRiderApp: z.ZodOptional<z.ZodBoolean>;
448
+ enablePassengerApp: z.ZodOptional<z.ZodBoolean>;
449
+ enableAgentApp: z.ZodOptional<z.ZodBoolean>;
450
+ enableAdminDashboard: z.ZodOptional<z.ZodBoolean>;
451
+ enableGuestCheckout: z.ZodOptional<z.ZodBoolean>;
452
+ enableReferrals: z.ZodOptional<z.ZodBoolean>;
453
+ enableWallet: z.ZodOptional<z.ZodBoolean>;
454
+ enablePromoCodes: z.ZodOptional<z.ZodBoolean>;
455
+ enableReviews: z.ZodOptional<z.ZodBoolean>;
456
+ enableChat: z.ZodOptional<z.ZodBoolean>;
457
+ enableVoiceCall: z.ZodOptional<z.ZodBoolean>;
458
+ enableMaps: z.ZodOptional<z.ZodBoolean>;
459
+ enablePayment: z.ZodOptional<z.ZodBoolean>;
460
+ isUnderMaintenance: z.ZodOptional<z.ZodBoolean>;
461
+ maintenanceMessage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
462
+ maintenanceStartAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
463
+ maintenanceEndAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
464
+ googleAnalyticsId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
465
+ facebookPixelId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
466
+ sentryDsn: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ appName?: string | undefined;
469
+ appShortName?: string | null | undefined;
470
+ appDescription?: string | null | undefined;
471
+ appIcon?: string | null | undefined;
472
+ appLogo?: string | null | undefined;
473
+ appFavicon?: string | null | undefined;
474
+ appSplashScreen?: string | null | undefined;
475
+ appDefaultLanguage?: string | undefined;
476
+ appSupportedLanguages?: string[] | undefined;
477
+ primaryColor?: string | undefined;
478
+ secondaryColor?: string | undefined;
479
+ accentColor?: string | undefined;
480
+ successColor?: string | undefined;
481
+ errorColor?: string | undefined;
482
+ warningColor?: string | undefined;
483
+ infoColor?: string | undefined;
484
+ backgroundColor?: string | undefined;
485
+ textColor?: string | undefined;
486
+ buttonColor?: string | undefined;
487
+ buttonTextColor?: string | undefined;
488
+ theme?: "light" | "dark" | "system" | undefined;
489
+ buttonStyle?: "rounded" | "square" | "pill" | undefined;
490
+ fontFamily?: "system" | "roboto" | "poppins" | "inter" | "montserrat" | undefined;
491
+ borderRadius?: number | undefined;
492
+ enableAnimations?: boolean | undefined;
493
+ enablePushNotifications?: boolean | undefined;
494
+ enableEmailNotifications?: boolean | undefined;
495
+ enableSmsNotifications?: boolean | undefined;
496
+ privacyPolicy?: string | null | undefined;
497
+ privacyPolicyVersion?: string | null | undefined;
498
+ termsAndConditions?: string | null | undefined;
499
+ termsAndConditionsVersion?: string | null | undefined;
500
+ aboutUs?: string | null | undefined;
501
+ cookiePolicy?: string | null | undefined;
502
+ cookiePolicyVersion?: string | null | undefined;
503
+ refundPolicy?: string | null | undefined;
504
+ refundPolicyVersion?: string | null | undefined;
505
+ appVersion?: string | null | undefined;
506
+ minimumSupportedVersion?: string | null | undefined;
507
+ latestVersion?: string | null | undefined;
508
+ forceUpdate?: boolean | undefined;
509
+ facebookUrl?: string | null | undefined;
510
+ twitterUrl?: string | null | undefined;
511
+ instagramUrl?: string | null | undefined;
512
+ linkedinUrl?: string | null | undefined;
513
+ youtubeUrl?: string | null | undefined;
514
+ websiteUrl?: string | null | undefined;
515
+ supportEmail?: string | null | undefined;
516
+ supportPhone?: string | null | undefined;
517
+ companyName?: string | null | undefined;
518
+ companyAddress?: string | null | undefined;
519
+ companyEmail?: string | null | undefined;
520
+ companyPhone?: string | null | undefined;
521
+ companyTaxId?: string | null | undefined;
522
+ enableRiderApp?: boolean | undefined;
523
+ enablePassengerApp?: boolean | undefined;
524
+ enableAgentApp?: boolean | undefined;
525
+ enableAdminDashboard?: boolean | undefined;
526
+ enableGuestCheckout?: boolean | undefined;
527
+ enableReferrals?: boolean | undefined;
528
+ enableWallet?: boolean | undefined;
529
+ enablePromoCodes?: boolean | undefined;
530
+ enableReviews?: boolean | undefined;
531
+ enableChat?: boolean | undefined;
532
+ enableVoiceCall?: boolean | undefined;
533
+ enableMaps?: boolean | undefined;
534
+ enablePayment?: boolean | undefined;
535
+ isUnderMaintenance?: boolean | undefined;
536
+ maintenanceMessage?: string | null | undefined;
537
+ maintenanceStartAt?: string | null | undefined;
538
+ maintenanceEndAt?: string | null | undefined;
539
+ googleAnalyticsId?: string | null | undefined;
540
+ facebookPixelId?: string | null | undefined;
541
+ sentryDsn?: string | null | undefined;
542
+ }, {
543
+ appName?: string | undefined;
544
+ appShortName?: string | null | undefined;
545
+ appDescription?: string | null | undefined;
546
+ appIcon?: string | null | undefined;
547
+ appLogo?: string | null | undefined;
548
+ appFavicon?: string | null | undefined;
549
+ appSplashScreen?: string | null | undefined;
550
+ appDefaultLanguage?: string | undefined;
551
+ appSupportedLanguages?: string[] | undefined;
552
+ primaryColor?: string | undefined;
553
+ secondaryColor?: string | undefined;
554
+ accentColor?: string | undefined;
555
+ successColor?: string | undefined;
556
+ errorColor?: string | undefined;
557
+ warningColor?: string | undefined;
558
+ infoColor?: string | undefined;
559
+ backgroundColor?: string | undefined;
560
+ textColor?: string | undefined;
561
+ buttonColor?: string | undefined;
562
+ buttonTextColor?: string | undefined;
563
+ theme?: "light" | "dark" | "system" | undefined;
564
+ buttonStyle?: "rounded" | "square" | "pill" | undefined;
565
+ fontFamily?: "system" | "roboto" | "poppins" | "inter" | "montserrat" | undefined;
566
+ borderRadius?: number | undefined;
567
+ enableAnimations?: boolean | undefined;
568
+ enablePushNotifications?: boolean | undefined;
569
+ enableEmailNotifications?: boolean | undefined;
570
+ enableSmsNotifications?: boolean | undefined;
571
+ privacyPolicy?: string | null | undefined;
572
+ privacyPolicyVersion?: string | null | undefined;
573
+ termsAndConditions?: string | null | undefined;
574
+ termsAndConditionsVersion?: string | null | undefined;
575
+ aboutUs?: string | null | undefined;
576
+ cookiePolicy?: string | null | undefined;
577
+ cookiePolicyVersion?: string | null | undefined;
578
+ refundPolicy?: string | null | undefined;
579
+ refundPolicyVersion?: string | null | undefined;
580
+ appVersion?: string | null | undefined;
581
+ minimumSupportedVersion?: string | null | undefined;
582
+ latestVersion?: string | null | undefined;
583
+ forceUpdate?: boolean | undefined;
584
+ facebookUrl?: string | null | undefined;
585
+ twitterUrl?: string | null | undefined;
586
+ instagramUrl?: string | null | undefined;
587
+ linkedinUrl?: string | null | undefined;
588
+ youtubeUrl?: string | null | undefined;
589
+ websiteUrl?: string | null | undefined;
590
+ supportEmail?: string | null | undefined;
591
+ supportPhone?: string | null | undefined;
592
+ companyName?: string | null | undefined;
593
+ companyAddress?: string | null | undefined;
594
+ companyEmail?: string | null | undefined;
595
+ companyPhone?: string | null | undefined;
596
+ companyTaxId?: string | null | undefined;
597
+ enableRiderApp?: boolean | undefined;
598
+ enablePassengerApp?: boolean | undefined;
599
+ enableAgentApp?: boolean | undefined;
600
+ enableAdminDashboard?: boolean | undefined;
601
+ enableGuestCheckout?: boolean | undefined;
602
+ enableReferrals?: boolean | undefined;
603
+ enableWallet?: boolean | undefined;
604
+ enablePromoCodes?: boolean | undefined;
605
+ enableReviews?: boolean | undefined;
606
+ enableChat?: boolean | undefined;
607
+ enableVoiceCall?: boolean | undefined;
608
+ enableMaps?: boolean | undefined;
609
+ enablePayment?: boolean | undefined;
610
+ isUnderMaintenance?: boolean | undefined;
611
+ maintenanceMessage?: string | null | undefined;
612
+ maintenanceStartAt?: string | null | undefined;
613
+ maintenanceEndAt?: string | null | undefined;
614
+ googleAnalyticsId?: string | null | undefined;
615
+ facebookPixelId?: string | null | undefined;
616
+ sentryDsn?: string | null | undefined;
617
+ }>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ body: {
620
+ appName?: string | undefined;
621
+ appShortName?: string | null | undefined;
622
+ appDescription?: string | null | undefined;
623
+ appIcon?: string | null | undefined;
624
+ appLogo?: string | null | undefined;
625
+ appFavicon?: string | null | undefined;
626
+ appSplashScreen?: string | null | undefined;
627
+ appDefaultLanguage?: string | undefined;
628
+ appSupportedLanguages?: string[] | undefined;
629
+ primaryColor?: string | undefined;
630
+ secondaryColor?: string | undefined;
631
+ accentColor?: string | undefined;
632
+ successColor?: string | undefined;
633
+ errorColor?: string | undefined;
634
+ warningColor?: string | undefined;
635
+ infoColor?: string | undefined;
636
+ backgroundColor?: string | undefined;
637
+ textColor?: string | undefined;
638
+ buttonColor?: string | undefined;
639
+ buttonTextColor?: string | undefined;
640
+ theme?: "light" | "dark" | "system" | undefined;
641
+ buttonStyle?: "rounded" | "square" | "pill" | undefined;
642
+ fontFamily?: "system" | "roboto" | "poppins" | "inter" | "montserrat" | undefined;
643
+ borderRadius?: number | undefined;
644
+ enableAnimations?: boolean | undefined;
645
+ enablePushNotifications?: boolean | undefined;
646
+ enableEmailNotifications?: boolean | undefined;
647
+ enableSmsNotifications?: boolean | undefined;
648
+ privacyPolicy?: string | null | undefined;
649
+ privacyPolicyVersion?: string | null | undefined;
650
+ termsAndConditions?: string | null | undefined;
651
+ termsAndConditionsVersion?: string | null | undefined;
652
+ aboutUs?: string | null | undefined;
653
+ cookiePolicy?: string | null | undefined;
654
+ cookiePolicyVersion?: string | null | undefined;
655
+ refundPolicy?: string | null | undefined;
656
+ refundPolicyVersion?: string | null | undefined;
657
+ appVersion?: string | null | undefined;
658
+ minimumSupportedVersion?: string | null | undefined;
659
+ latestVersion?: string | null | undefined;
660
+ forceUpdate?: boolean | undefined;
661
+ facebookUrl?: string | null | undefined;
662
+ twitterUrl?: string | null | undefined;
663
+ instagramUrl?: string | null | undefined;
664
+ linkedinUrl?: string | null | undefined;
665
+ youtubeUrl?: string | null | undefined;
666
+ websiteUrl?: string | null | undefined;
667
+ supportEmail?: string | null | undefined;
668
+ supportPhone?: string | null | undefined;
669
+ companyName?: string | null | undefined;
670
+ companyAddress?: string | null | undefined;
671
+ companyEmail?: string | null | undefined;
672
+ companyPhone?: string | null | undefined;
673
+ companyTaxId?: string | null | undefined;
674
+ enableRiderApp?: boolean | undefined;
675
+ enablePassengerApp?: boolean | undefined;
676
+ enableAgentApp?: boolean | undefined;
677
+ enableAdminDashboard?: boolean | undefined;
678
+ enableGuestCheckout?: boolean | undefined;
679
+ enableReferrals?: boolean | undefined;
680
+ enableWallet?: boolean | undefined;
681
+ enablePromoCodes?: boolean | undefined;
682
+ enableReviews?: boolean | undefined;
683
+ enableChat?: boolean | undefined;
684
+ enableVoiceCall?: boolean | undefined;
685
+ enableMaps?: boolean | undefined;
686
+ enablePayment?: boolean | undefined;
687
+ isUnderMaintenance?: boolean | undefined;
688
+ maintenanceMessage?: string | null | undefined;
689
+ maintenanceStartAt?: string | null | undefined;
690
+ maintenanceEndAt?: string | null | undefined;
691
+ googleAnalyticsId?: string | null | undefined;
692
+ facebookPixelId?: string | null | undefined;
693
+ sentryDsn?: string | null | undefined;
694
+ };
695
+ params: {
696
+ id: string;
697
+ };
698
+ }, {
699
+ body: {
700
+ appName?: string | undefined;
701
+ appShortName?: string | null | undefined;
702
+ appDescription?: string | null | undefined;
703
+ appIcon?: string | null | undefined;
704
+ appLogo?: string | null | undefined;
705
+ appFavicon?: string | null | undefined;
706
+ appSplashScreen?: string | null | undefined;
707
+ appDefaultLanguage?: string | undefined;
708
+ appSupportedLanguages?: string[] | undefined;
709
+ primaryColor?: string | undefined;
710
+ secondaryColor?: string | undefined;
711
+ accentColor?: string | undefined;
712
+ successColor?: string | undefined;
713
+ errorColor?: string | undefined;
714
+ warningColor?: string | undefined;
715
+ infoColor?: string | undefined;
716
+ backgroundColor?: string | undefined;
717
+ textColor?: string | undefined;
718
+ buttonColor?: string | undefined;
719
+ buttonTextColor?: string | undefined;
720
+ theme?: "light" | "dark" | "system" | undefined;
721
+ buttonStyle?: "rounded" | "square" | "pill" | undefined;
722
+ fontFamily?: "system" | "roboto" | "poppins" | "inter" | "montserrat" | undefined;
723
+ borderRadius?: number | undefined;
724
+ enableAnimations?: boolean | undefined;
725
+ enablePushNotifications?: boolean | undefined;
726
+ enableEmailNotifications?: boolean | undefined;
727
+ enableSmsNotifications?: boolean | undefined;
728
+ privacyPolicy?: string | null | undefined;
729
+ privacyPolicyVersion?: string | null | undefined;
730
+ termsAndConditions?: string | null | undefined;
731
+ termsAndConditionsVersion?: string | null | undefined;
732
+ aboutUs?: string | null | undefined;
733
+ cookiePolicy?: string | null | undefined;
734
+ cookiePolicyVersion?: string | null | undefined;
735
+ refundPolicy?: string | null | undefined;
736
+ refundPolicyVersion?: string | null | undefined;
737
+ appVersion?: string | null | undefined;
738
+ minimumSupportedVersion?: string | null | undefined;
739
+ latestVersion?: string | null | undefined;
740
+ forceUpdate?: boolean | undefined;
741
+ facebookUrl?: string | null | undefined;
742
+ twitterUrl?: string | null | undefined;
743
+ instagramUrl?: string | null | undefined;
744
+ linkedinUrl?: string | null | undefined;
745
+ youtubeUrl?: string | null | undefined;
746
+ websiteUrl?: string | null | undefined;
747
+ supportEmail?: string | null | undefined;
748
+ supportPhone?: string | null | undefined;
749
+ companyName?: string | null | undefined;
750
+ companyAddress?: string | null | undefined;
751
+ companyEmail?: string | null | undefined;
752
+ companyPhone?: string | null | undefined;
753
+ companyTaxId?: string | null | undefined;
754
+ enableRiderApp?: boolean | undefined;
755
+ enablePassengerApp?: boolean | undefined;
756
+ enableAgentApp?: boolean | undefined;
757
+ enableAdminDashboard?: boolean | undefined;
758
+ enableGuestCheckout?: boolean | undefined;
759
+ enableReferrals?: boolean | undefined;
760
+ enableWallet?: boolean | undefined;
761
+ enablePromoCodes?: boolean | undefined;
762
+ enableReviews?: boolean | undefined;
763
+ enableChat?: boolean | undefined;
764
+ enableVoiceCall?: boolean | undefined;
765
+ enableMaps?: boolean | undefined;
766
+ enablePayment?: boolean | undefined;
767
+ isUnderMaintenance?: boolean | undefined;
768
+ maintenanceMessage?: string | null | undefined;
769
+ maintenanceStartAt?: string | null | undefined;
770
+ maintenanceEndAt?: string | null | undefined;
771
+ googleAnalyticsId?: string | null | undefined;
772
+ facebookPixelId?: string | null | undefined;
773
+ sentryDsn?: string | null | undefined;
774
+ };
775
+ params: {
776
+ id: string;
777
+ };
778
+ }>;
779
+ export declare const listAppSpecsSchema: z.ZodObject<{
780
+ query: z.ZodObject<{
781
+ page: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
782
+ limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
783
+ isActive: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
784
+ search: z.ZodOptional<z.ZodString>;
785
+ sortBy: z.ZodOptional<z.ZodEnum<["version", "createdAt", "updatedAt"]>>;
786
+ sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
787
+ }, "strip", z.ZodTypeAny, {
788
+ limit: number;
789
+ page: number;
790
+ search?: string | undefined;
791
+ isActive?: "true" | "false" | undefined;
792
+ sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
793
+ sortOrder?: "DESC" | "ASC" | undefined;
794
+ }, {
795
+ search?: string | undefined;
796
+ limit?: string | undefined;
797
+ isActive?: "true" | "false" | undefined;
798
+ page?: string | undefined;
799
+ sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
800
+ sortOrder?: "DESC" | "ASC" | undefined;
801
+ }>;
802
+ }, "strip", z.ZodTypeAny, {
803
+ query: {
804
+ limit: number;
805
+ page: number;
806
+ search?: string | undefined;
807
+ isActive?: "true" | "false" | undefined;
808
+ sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
809
+ sortOrder?: "DESC" | "ASC" | undefined;
810
+ };
811
+ }, {
812
+ query: {
813
+ search?: string | undefined;
814
+ limit?: string | undefined;
815
+ isActive?: "true" | "false" | undefined;
816
+ page?: string | undefined;
817
+ sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
818
+ sortOrder?: "DESC" | "ASC" | undefined;
819
+ };
820
+ }>;
821
+ export declare const getAppSpecsSchema: z.ZodObject<{
822
+ params: z.ZodObject<{
823
+ id: z.ZodString;
824
+ }, "strip", z.ZodTypeAny, {
825
+ id: string;
826
+ }, {
827
+ id: string;
828
+ }>;
829
+ }, "strip", z.ZodTypeAny, {
830
+ params: {
831
+ id: string;
832
+ };
833
+ }, {
834
+ params: {
835
+ id: string;
836
+ };
837
+ }>;
838
+ export declare const activateAppSpecsSchema: z.ZodObject<{
839
+ params: z.ZodObject<{
840
+ id: z.ZodString;
841
+ }, "strip", z.ZodTypeAny, {
842
+ id: string;
843
+ }, {
844
+ id: string;
845
+ }>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ params: {
848
+ id: string;
849
+ };
850
+ }, {
851
+ params: {
852
+ id: string;
853
+ };
854
+ }>;
855
+ export declare const getActiveAppSpecsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getActiveAppSpecsSchema = exports.activateAppSpecsSchema = exports.getAppSpecsSchema = exports.listAppSpecsSchema = exports.updateAppSpecsSchema = exports.createAppSpecsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const colorRegex = /^#[0-9A-Fa-f]{6}$/;
6
+ const urlRegex = /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/;
7
+ const appSpecsBaseSchema = {
8
+ // App Identity
9
+ appName: zod_1.z.string().min(1).max(100),
10
+ appShortName: zod_1.z.string().max(50).nullable().optional(),
11
+ appDescription: zod_1.z.string().nullable().optional(),
12
+ appIcon: zod_1.z.string().url().nullable().optional(),
13
+ appLogo: zod_1.z.string().url().nullable().optional(),
14
+ appFavicon: zod_1.z.string().url().nullable().optional(),
15
+ appSplashScreen: zod_1.z.string().url().nullable().optional(),
16
+ appDefaultLanguage: zod_1.z.string().min(2).max(10).default("en"),
17
+ appSupportedLanguages: zod_1.z
18
+ .array(zod_1.z.string().min(2).max(10))
19
+ .default(["en", "fr"]),
20
+ // Branding & Colors
21
+ primaryColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
22
+ secondaryColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
23
+ accentColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
24
+ successColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
25
+ errorColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
26
+ warningColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
27
+ infoColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
28
+ backgroundColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
29
+ textColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
30
+ buttonColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
31
+ buttonTextColor: zod_1.z.string().regex(colorRegex, "Invalid hex color"),
32
+ // UI/UX
33
+ theme: zod_1.z.enum(["light", "dark", "system"]),
34
+ buttonStyle: zod_1.z.enum(["rounded", "square", "pill"]),
35
+ fontFamily: zod_1.z.enum(["system", "roboto", "poppins", "inter", "montserrat"]),
36
+ borderRadius: zod_1.z.number().min(0).max(50),
37
+ enableAnimations: zod_1.z.boolean(),
38
+ enablePushNotifications: zod_1.z.boolean(),
39
+ enableEmailNotifications: zod_1.z.boolean(),
40
+ enableSmsNotifications: zod_1.z.boolean(),
41
+ // Legal Documents
42
+ privacyPolicy: zod_1.z.string().nullable().optional(),
43
+ privacyPolicyVersion: zod_1.z.string().max(20).nullable().optional(),
44
+ termsAndConditions: zod_1.z.string().nullable().optional(),
45
+ termsAndConditionsVersion: zod_1.z.string().max(20).nullable().optional(),
46
+ aboutUs: zod_1.z.string().nullable().optional(),
47
+ cookiePolicy: zod_1.z.string().nullable().optional(),
48
+ cookiePolicyVersion: zod_1.z.string().max(20).nullable().optional(),
49
+ refundPolicy: zod_1.z.string().nullable().optional(),
50
+ refundPolicyVersion: zod_1.z.string().max(20).nullable().optional(),
51
+ // App Metadata
52
+ appVersion: zod_1.z.string().max(20).nullable().optional(),
53
+ minimumSupportedVersion: zod_1.z.string().max(20).nullable().optional(),
54
+ latestVersion: zod_1.z.string().max(20).nullable().optional(),
55
+ forceUpdate: zod_1.z.boolean(),
56
+ // Social Links
57
+ facebookUrl: zod_1.z.string().url().nullable().optional(),
58
+ twitterUrl: zod_1.z.string().url().nullable().optional(),
59
+ instagramUrl: zod_1.z.string().url().nullable().optional(),
60
+ linkedinUrl: zod_1.z.string().url().nullable().optional(),
61
+ youtubeUrl: zod_1.z.string().url().nullable().optional(),
62
+ websiteUrl: zod_1.z.string().url().nullable().optional(),
63
+ supportEmail: zod_1.z.string().email().nullable().optional(),
64
+ supportPhone: zod_1.z.string().max(20).nullable().optional(),
65
+ // Contact Info
66
+ companyName: zod_1.z.string().max(200).nullable().optional(),
67
+ companyAddress: zod_1.z.string().nullable().optional(),
68
+ companyEmail: zod_1.z.string().email().nullable().optional(),
69
+ companyPhone: zod_1.z.string().max(20).nullable().optional(),
70
+ companyTaxId: zod_1.z.string().max(50).nullable().optional(),
71
+ // Feature Flags
72
+ enableRiderApp: zod_1.z.boolean(),
73
+ enablePassengerApp: zod_1.z.boolean(),
74
+ enableAgentApp: zod_1.z.boolean(),
75
+ enableAdminDashboard: zod_1.z.boolean(),
76
+ enableGuestCheckout: zod_1.z.boolean(),
77
+ enableReferrals: zod_1.z.boolean(),
78
+ enableWallet: zod_1.z.boolean(),
79
+ enablePromoCodes: zod_1.z.boolean(),
80
+ enableReviews: zod_1.z.boolean(),
81
+ enableChat: zod_1.z.boolean(),
82
+ enableVoiceCall: zod_1.z.boolean(),
83
+ enableMaps: zod_1.z.boolean(),
84
+ enablePayment: zod_1.z.boolean(),
85
+ // Maintenance
86
+ isUnderMaintenance: zod_1.z.boolean(),
87
+ maintenanceMessage: zod_1.z.string().nullable().optional(),
88
+ maintenanceStartAt: zod_1.z.string().datetime().nullable().optional(),
89
+ maintenanceEndAt: zod_1.z.string().datetime().nullable().optional(),
90
+ // Analytics
91
+ googleAnalyticsId: zod_1.z.string().max(50).nullable().optional(),
92
+ facebookPixelId: zod_1.z.string().max(50).nullable().optional(),
93
+ sentryDsn: zod_1.z.string().url().nullable().optional(),
94
+ };
95
+ exports.createAppSpecsSchema = zod_1.z.object({
96
+ body: zod_1.z.object(appSpecsBaseSchema),
97
+ });
98
+ exports.updateAppSpecsSchema = zod_1.z.object({
99
+ params: zod_1.z.object({
100
+ id: zod_1.z.string().uuid(),
101
+ }),
102
+ body: zod_1.z.object(appSpecsBaseSchema).partial(),
103
+ });
104
+ exports.listAppSpecsSchema = zod_1.z.object({
105
+ query: zod_1.z.object({
106
+ page: zod_1.z
107
+ .string()
108
+ .optional()
109
+ .transform((val) => (val ? parseInt(val) : 1))
110
+ .pipe(zod_1.z.number().min(1)),
111
+ limit: zod_1.z
112
+ .string()
113
+ .optional()
114
+ .transform((val) => (val ? parseInt(val) : 10))
115
+ .pipe(zod_1.z.number().min(1).max(100)),
116
+ isActive: zod_1.z.enum(["true", "false"]).optional(),
117
+ search: zod_1.z.string().optional(),
118
+ sortBy: zod_1.z.enum(["version", "createdAt", "updatedAt"]).optional(),
119
+ sortOrder: zod_1.z.enum(["ASC", "DESC"]).optional(),
120
+ }),
121
+ });
122
+ exports.getAppSpecsSchema = zod_1.z.object({
123
+ params: zod_1.z.object({
124
+ id: zod_1.z.string().uuid(),
125
+ }),
126
+ });
127
+ exports.activateAppSpecsSchema = zod_1.z.object({
128
+ params: zod_1.z.object({
129
+ id: zod_1.z.string().uuid(),
130
+ }),
131
+ });
132
+ exports.getActiveAppSpecsSchema = zod_1.z.object({});
@@ -18,16 +18,16 @@ export declare const riderLoginSchema: z.ZodObject<{
18
18
  phoneNumber: string;
19
19
  nationalId: string;
20
20
  };
21
- params?: {} | undefined;
22
21
  query?: {} | undefined;
22
+ params?: {} | undefined;
23
23
  headers?: {} | undefined;
24
24
  }, {
25
25
  body: {
26
26
  phoneNumber: string;
27
27
  nationalId: string;
28
28
  };
29
- params?: {} | undefined;
30
29
  query?: {} | undefined;
30
+ params?: {} | undefined;
31
31
  headers?: {} | undefined;
32
32
  }>;
33
33
  export declare const userLoginSchema: z.ZodObject<{
@@ -21,7 +21,7 @@ export declare const listBansSchema: z.ZodObject<{
21
21
  isPermanent?: "true" | "false" | undefined;
22
22
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
23
23
  status?: "active" | "revoked" | undefined;
24
- sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
24
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
25
25
  fromDate?: string | undefined;
26
26
  toDate?: string | undefined;
27
27
  sortOrder?: "DESC" | "ASC" | undefined;
@@ -33,7 +33,7 @@ export declare const listBansSchema: z.ZodObject<{
33
33
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
34
34
  status?: "active" | "revoked" | undefined;
35
35
  page?: string | undefined;
36
- sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
36
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
37
37
  fromDate?: string | undefined;
38
38
  toDate?: string | undefined;
39
39
  sortOrder?: "DESC" | "ASC" | undefined;
@@ -45,7 +45,7 @@ export declare const listBansSchema: z.ZodObject<{
45
45
  isPermanent?: "true" | "false" | undefined;
46
46
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
47
47
  status?: "active" | "revoked" | undefined;
48
- sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
48
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
49
49
  fromDate?: string | undefined;
50
50
  toDate?: string | undefined;
51
51
  sortOrder?: "DESC" | "ASC" | undefined;
@@ -57,7 +57,7 @@ export declare const listBansSchema: z.ZodObject<{
57
57
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
58
58
  status?: "active" | "revoked" | undefined;
59
59
  page?: string | undefined;
60
- sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
60
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
61
61
  fromDate?: string | undefined;
62
62
  toDate?: string | undefined;
63
63
  sortOrder?: "DESC" | "ASC" | undefined;
@@ -71,7 +71,7 @@ export declare const listBansSchema: z.ZodObject<{
71
71
  isPermanent?: "true" | "false" | undefined;
72
72
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
73
73
  status?: "active" | "revoked" | undefined;
74
- sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
74
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
75
75
  fromDate?: string | undefined;
76
76
  toDate?: string | undefined;
77
77
  sortOrder?: "DESC" | "ASC" | undefined;
@@ -85,7 +85,7 @@ export declare const listBansSchema: z.ZodObject<{
85
85
  appealStatus?: "pending" | "approved" | "rejected" | undefined;
86
86
  status?: "active" | "revoked" | undefined;
87
87
  page?: string | undefined;
88
- sortBy?: "bannedAt" | "createdAt" | "reason" | undefined;
88
+ sortBy?: "createdAt" | "reason" | "bannedAt" | undefined;
89
89
  fromDate?: string | undefined;
90
90
  toDate?: string | undefined;
91
91
  sortOrder?: "DESC" | "ASC" | undefined;
@@ -125,8 +125,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
125
125
  password?: string | undefined;
126
126
  plateNumber?: string | null | undefined;
127
127
  isActive?: boolean | undefined;
128
- isSuspended?: boolean | undefined;
129
128
  isDeactivated?: boolean | undefined;
129
+ isSuspended?: boolean | undefined;
130
130
  }, {
131
131
  firstName?: string | undefined;
132
132
  lastName?: string | undefined;
@@ -135,8 +135,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
135
135
  password?: string | undefined;
136
136
  plateNumber?: string | null | undefined;
137
137
  isActive?: boolean | undefined;
138
- isSuspended?: boolean | undefined;
139
138
  isDeactivated?: boolean | undefined;
139
+ isSuspended?: boolean | undefined;
140
140
  }>, {
141
141
  firstName?: string | undefined;
142
142
  lastName?: string | undefined;
@@ -145,8 +145,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
145
145
  password?: string | undefined;
146
146
  plateNumber?: string | null | undefined;
147
147
  isActive?: boolean | undefined;
148
- isSuspended?: boolean | undefined;
149
148
  isDeactivated?: boolean | undefined;
149
+ isSuspended?: boolean | undefined;
150
150
  }, {
151
151
  firstName?: string | undefined;
152
152
  lastName?: string | undefined;
@@ -155,8 +155,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
155
155
  password?: string | undefined;
156
156
  plateNumber?: string | null | undefined;
157
157
  isActive?: boolean | undefined;
158
- isSuspended?: boolean | undefined;
159
158
  isDeactivated?: boolean | undefined;
159
+ isSuspended?: boolean | undefined;
160
160
  }>;
161
161
  headers: z.ZodObject<{
162
162
  authorization: z.ZodString;
@@ -174,8 +174,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
174
174
  password?: string | undefined;
175
175
  plateNumber?: string | null | undefined;
176
176
  isActive?: boolean | undefined;
177
- isSuspended?: boolean | undefined;
178
177
  isDeactivated?: boolean | undefined;
178
+ isSuspended?: boolean | undefined;
179
179
  };
180
180
  params: {
181
181
  userId: string;
@@ -192,8 +192,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
192
192
  password?: string | undefined;
193
193
  plateNumber?: string | null | undefined;
194
194
  isActive?: boolean | undefined;
195
- isSuspended?: boolean | undefined;
196
195
  isDeactivated?: boolean | undefined;
196
+ isSuspended?: boolean | undefined;
197
197
  };
198
198
  params: {
199
199
  userId: string;
@@ -221,9 +221,9 @@ export declare const getAllUsersSchema: z.ZodObject<{
221
221
  search?: string | undefined;
222
222
  limit?: number | undefined;
223
223
  isActive?: boolean | undefined;
224
- isSuspended?: boolean | undefined;
225
224
  role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
226
225
  isBanned?: boolean | undefined;
226
+ isSuspended?: boolean | undefined;
227
227
  page?: number | undefined;
228
228
  startDate?: string | undefined;
229
229
  endDate?: string | undefined;
@@ -232,9 +232,9 @@ export declare const getAllUsersSchema: z.ZodObject<{
232
232
  order?: "asc" | "desc" | undefined;
233
233
  limit?: string | undefined;
234
234
  isActive?: "true" | "false" | undefined;
235
- isSuspended?: "true" | "false" | undefined;
236
235
  role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
237
236
  isBanned?: "true" | "false" | undefined;
237
+ isSuspended?: "true" | "false" | undefined;
238
238
  page?: string | undefined;
239
239
  startDate?: string | undefined;
240
240
  endDate?: string | undefined;
@@ -254,9 +254,9 @@ export declare const getAllUsersSchema: z.ZodObject<{
254
254
  search?: string | undefined;
255
255
  limit?: number | undefined;
256
256
  isActive?: boolean | undefined;
257
- isSuspended?: boolean | undefined;
258
257
  role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
259
258
  isBanned?: boolean | undefined;
259
+ isSuspended?: boolean | undefined;
260
260
  page?: number | undefined;
261
261
  startDate?: string | undefined;
262
262
  endDate?: string | undefined;
@@ -270,9 +270,9 @@ export declare const getAllUsersSchema: z.ZodObject<{
270
270
  order?: "asc" | "desc" | undefined;
271
271
  limit?: string | undefined;
272
272
  isActive?: "true" | "false" | undefined;
273
- isSuspended?: "true" | "false" | undefined;
274
273
  role?: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN" | undefined;
275
274
  isBanned?: "true" | "false" | undefined;
275
+ isSuspended?: "true" | "false" | undefined;
276
276
  page?: string | undefined;
277
277
  startDate?: string | undefined;
278
278
  endDate?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -98,7 +98,7 @@
98
98
  "@types/uuid": "^10.0.0",
99
99
  "axios": "^1.9.0",
100
100
  "date-fns": "^4.1.0",
101
- "vr-models": "^1.0.29",
101
+ "vr-models": "^1.0.37",
102
102
  "rimraf": "^5.0.5",
103
103
  "typescript": "^5.3.3",
104
104
  "zod": "^3.25.20"