vr-commons 1.0.163 → 1.0.165

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.
@@ -640,15 +640,14 @@ exports.stockUtil = {
640
640
  batchNumber++;
641
641
  offset = (batchNumber - 1) * batchSize;
642
642
  const pairIdsResult = await sequelizeInstance.query(`
643
- SELECT "pairId"
644
- FROM "devices"
645
- WHERE "deletedAt" IS NULL
646
- AND ${whereClause}
647
- GROUP BY "pairId"
648
- HAVING COUNT(*) = 2
649
- ORDER BY "pairId" ASC
650
- LIMIT $1
651
- OFFSET $2
643
+ SELECT "pairId"
644
+ FROM "devices"
645
+ WHERE ${whereClause}
646
+ GROUP BY "pairId"
647
+ HAVING COUNT(*) = 2
648
+ ORDER BY "pairId" ASC
649
+ LIMIT $1
650
+ OFFSET $2
652
651
  `, {
653
652
  bind: [batchSize, offset],
654
653
  type: "SELECT",
@@ -4,44 +4,20 @@ export declare const createAppSpecsSchema: z.ZodObject<{
4
4
  appName: z.ZodString;
5
5
  appShortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
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
7
  appDefaultLanguage: z.ZodDefault<z.ZodString>;
12
8
  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
9
  privacyPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
10
  privacyPolicyVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
11
  termsAndConditions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
12
  termsAndConditionsVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
13
  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;
14
+ enableRiderAccess: z.ZodDefault<z.ZodBoolean>;
15
+ enablePassengerAccess: z.ZodDefault<z.ZodBoolean>;
16
+ enableAgentAccess: z.ZodDefault<z.ZodBoolean>;
17
+ enableAdminAccess: z.ZodDefault<z.ZodBoolean>;
18
+ enableCashPayment: z.ZodDefault<z.ZodBoolean>;
19
+ enableMomoPayPayment: z.ZodDefault<z.ZodBoolean>;
20
+ enableAirtelMoneyPayment: z.ZodDefault<z.ZodBoolean>;
45
21
  facebookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
22
  twitterUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
23
  instagramUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -55,82 +31,29 @@ export declare const createAppSpecsSchema: z.ZodObject<{
55
31
  companyEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
32
  companyPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
33
  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;
34
+ isUnderMaintenance: z.ZodDefault<z.ZodBoolean>;
72
35
  maintenanceMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
36
  maintenanceStartAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
37
  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
38
  }, "strip", z.ZodTypeAny, {
79
39
  appName: string;
80
40
  appDefaultLanguage: string;
81
41
  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;
42
+ enableRiderAccess: boolean;
43
+ enablePassengerAccess: boolean;
44
+ enableAgentAccess: boolean;
45
+ enableAdminAccess: boolean;
46
+ enableCashPayment: boolean;
47
+ enableMomoPayPayment: boolean;
48
+ enableAirtelMoneyPayment: boolean;
115
49
  isUnderMaintenance: boolean;
116
50
  appShortName?: string | null | undefined;
117
51
  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
52
  privacyPolicy?: string | null | undefined;
123
53
  privacyPolicyVersion?: string | null | undefined;
124
54
  termsAndConditions?: string | null | undefined;
125
55
  termsAndConditionsVersion?: string | null | undefined;
126
56
  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
57
  facebookUrl?: string | null | undefined;
135
58
  twitterUrl?: string | null | undefined;
136
59
  instagramUrl?: string | null | undefined;
@@ -147,51 +70,10 @@ export declare const createAppSpecsSchema: z.ZodObject<{
147
70
  maintenanceMessage?: string | null | undefined;
148
71
  maintenanceStartAt?: string | null | undefined;
149
72
  maintenanceEndAt?: string | null | undefined;
150
- googleAnalyticsId?: string | null | undefined;
151
- facebookPixelId?: string | null | undefined;
152
- sentryDsn?: string | null | undefined;
153
73
  }, {
154
74
  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
75
  appShortName?: string | null | undefined;
190
76
  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
77
  appDefaultLanguage?: string | undefined;
196
78
  appSupportedLanguages?: string[] | undefined;
197
79
  privacyPolicy?: string | null | undefined;
@@ -199,13 +81,13 @@ export declare const createAppSpecsSchema: z.ZodObject<{
199
81
  termsAndConditions?: string | null | undefined;
200
82
  termsAndConditionsVersion?: string | null | undefined;
201
83
  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;
84
+ enableRiderAccess?: boolean | undefined;
85
+ enablePassengerAccess?: boolean | undefined;
86
+ enableAgentAccess?: boolean | undefined;
87
+ enableAdminAccess?: boolean | undefined;
88
+ enableCashPayment?: boolean | undefined;
89
+ enableMomoPayPayment?: boolean | undefined;
90
+ enableAirtelMoneyPayment?: boolean | undefined;
209
91
  facebookUrl?: string | null | undefined;
210
92
  twitterUrl?: string | null | undefined;
211
93
  instagramUrl?: string | null | undefined;
@@ -219,70 +101,31 @@ export declare const createAppSpecsSchema: z.ZodObject<{
219
101
  companyEmail?: string | null | undefined;
220
102
  companyPhone?: string | null | undefined;
221
103
  companyTaxId?: string | null | undefined;
104
+ isUnderMaintenance?: boolean | undefined;
222
105
  maintenanceMessage?: string | null | undefined;
223
106
  maintenanceStartAt?: string | null | undefined;
224
107
  maintenanceEndAt?: string | null | undefined;
225
- googleAnalyticsId?: string | null | undefined;
226
- facebookPixelId?: string | null | undefined;
227
- sentryDsn?: string | null | undefined;
228
108
  }>;
229
109
  }, "strip", z.ZodTypeAny, {
230
110
  body: {
231
111
  appName: string;
232
112
  appDefaultLanguage: string;
233
113
  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;
114
+ enableRiderAccess: boolean;
115
+ enablePassengerAccess: boolean;
116
+ enableAgentAccess: boolean;
117
+ enableAdminAccess: boolean;
118
+ enableCashPayment: boolean;
119
+ enableMomoPayPayment: boolean;
120
+ enableAirtelMoneyPayment: boolean;
267
121
  isUnderMaintenance: boolean;
268
122
  appShortName?: string | null | undefined;
269
123
  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
124
  privacyPolicy?: string | null | undefined;
275
125
  privacyPolicyVersion?: string | null | undefined;
276
126
  termsAndConditions?: string | null | undefined;
277
127
  termsAndConditionsVersion?: string | null | undefined;
278
128
  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
129
  facebookUrl?: string | null | undefined;
287
130
  twitterUrl?: string | null | undefined;
288
131
  instagramUrl?: string | null | undefined;
@@ -299,53 +142,12 @@ export declare const createAppSpecsSchema: z.ZodObject<{
299
142
  maintenanceMessage?: string | null | undefined;
300
143
  maintenanceStartAt?: string | null | undefined;
301
144
  maintenanceEndAt?: string | null | undefined;
302
- googleAnalyticsId?: string | null | undefined;
303
- facebookPixelId?: string | null | undefined;
304
- sentryDsn?: string | null | undefined;
305
145
  };
306
146
  }, {
307
147
  body: {
308
148
  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
149
  appShortName?: string | null | undefined;
344
150
  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
151
  appDefaultLanguage?: string | undefined;
350
152
  appSupportedLanguages?: string[] | undefined;
351
153
  privacyPolicy?: string | null | undefined;
@@ -353,13 +155,13 @@ export declare const createAppSpecsSchema: z.ZodObject<{
353
155
  termsAndConditions?: string | null | undefined;
354
156
  termsAndConditionsVersion?: string | null | undefined;
355
157
  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;
158
+ enableRiderAccess?: boolean | undefined;
159
+ enablePassengerAccess?: boolean | undefined;
160
+ enableAgentAccess?: boolean | undefined;
161
+ enableAdminAccess?: boolean | undefined;
162
+ enableCashPayment?: boolean | undefined;
163
+ enableMomoPayPayment?: boolean | undefined;
164
+ enableAirtelMoneyPayment?: boolean | undefined;
363
165
  facebookUrl?: string | null | undefined;
364
166
  twitterUrl?: string | null | undefined;
365
167
  instagramUrl?: string | null | undefined;
@@ -373,12 +175,10 @@ export declare const createAppSpecsSchema: z.ZodObject<{
373
175
  companyEmail?: string | null | undefined;
374
176
  companyPhone?: string | null | undefined;
375
177
  companyTaxId?: string | null | undefined;
178
+ isUnderMaintenance?: boolean | undefined;
376
179
  maintenanceMessage?: string | null | undefined;
377
180
  maintenanceStartAt?: string | null | undefined;
378
181
  maintenanceEndAt?: string | null | undefined;
379
- googleAnalyticsId?: string | null | undefined;
380
- facebookPixelId?: string | null | undefined;
381
- sentryDsn?: string | null | undefined;
382
182
  };
383
183
  }>;
384
184
  export declare const updateAppSpecsSchema: z.ZodObject<{
@@ -393,44 +193,20 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
393
193
  appName: z.ZodOptional<z.ZodString>;
394
194
  appShortName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
395
195
  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
196
  appDefaultLanguage: z.ZodOptional<z.ZodDefault<z.ZodString>>;
401
197
  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
198
  privacyPolicy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
422
199
  privacyPolicyVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
423
200
  termsAndConditions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
424
201
  termsAndConditionsVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
425
202
  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>;
203
+ enableRiderAccess: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
204
+ enablePassengerAccess: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
205
+ enableAgentAccess: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
206
+ enableAdminAccess: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
207
+ enableCashPayment: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
208
+ enableMomoPayPayment: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
209
+ enableAirtelMoneyPayment: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
434
210
  facebookUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
435
211
  twitterUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
436
212
  instagramUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -444,68 +220,28 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
444
220
  companyEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
445
221
  companyPhone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
446
222
  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>;
223
+ isUnderMaintenance: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
461
224
  maintenanceMessage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
462
225
  maintenanceStartAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
463
226
  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
227
  }, "strip", z.ZodTypeAny, {
468
228
  appName?: string | undefined;
469
229
  appShortName?: string | null | undefined;
470
230
  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
231
  appDefaultLanguage?: string | undefined;
476
232
  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
233
  privacyPolicy?: string | null | undefined;
497
234
  privacyPolicyVersion?: string | null | undefined;
498
235
  termsAndConditions?: string | null | undefined;
499
236
  termsAndConditionsVersion?: string | null | undefined;
500
237
  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;
238
+ enableRiderAccess?: boolean | undefined;
239
+ enablePassengerAccess?: boolean | undefined;
240
+ enableAgentAccess?: boolean | undefined;
241
+ enableAdminAccess?: boolean | undefined;
242
+ enableCashPayment?: boolean | undefined;
243
+ enableMomoPayPayment?: boolean | undefined;
244
+ enableAirtelMoneyPayment?: boolean | undefined;
509
245
  facebookUrl?: string | null | undefined;
510
246
  twitterUrl?: string | null | undefined;
511
247
  instagramUrl?: string | null | undefined;
@@ -519,68 +255,28 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
519
255
  companyEmail?: string | null | undefined;
520
256
  companyPhone?: string | null | undefined;
521
257
  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
258
  isUnderMaintenance?: boolean | undefined;
536
259
  maintenanceMessage?: string | null | undefined;
537
260
  maintenanceStartAt?: string | null | undefined;
538
261
  maintenanceEndAt?: string | null | undefined;
539
- googleAnalyticsId?: string | null | undefined;
540
- facebookPixelId?: string | null | undefined;
541
- sentryDsn?: string | null | undefined;
542
262
  }, {
543
263
  appName?: string | undefined;
544
264
  appShortName?: string | null | undefined;
545
265
  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
266
  appDefaultLanguage?: string | undefined;
551
267
  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
268
  privacyPolicy?: string | null | undefined;
572
269
  privacyPolicyVersion?: string | null | undefined;
573
270
  termsAndConditions?: string | null | undefined;
574
271
  termsAndConditionsVersion?: string | null | undefined;
575
272
  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;
273
+ enableRiderAccess?: boolean | undefined;
274
+ enablePassengerAccess?: boolean | undefined;
275
+ enableAgentAccess?: boolean | undefined;
276
+ enableAdminAccess?: boolean | undefined;
277
+ enableCashPayment?: boolean | undefined;
278
+ enableMomoPayPayment?: boolean | undefined;
279
+ enableAirtelMoneyPayment?: boolean | undefined;
584
280
  facebookUrl?: string | null | undefined;
585
281
  twitterUrl?: string | null | undefined;
586
282
  instagramUrl?: string | null | undefined;
@@ -594,70 +290,30 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
594
290
  companyEmail?: string | null | undefined;
595
291
  companyPhone?: string | null | undefined;
596
292
  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
293
  isUnderMaintenance?: boolean | undefined;
611
294
  maintenanceMessage?: string | null | undefined;
612
295
  maintenanceStartAt?: string | null | undefined;
613
296
  maintenanceEndAt?: string | null | undefined;
614
- googleAnalyticsId?: string | null | undefined;
615
- facebookPixelId?: string | null | undefined;
616
- sentryDsn?: string | null | undefined;
617
297
  }>;
618
298
  }, "strip", z.ZodTypeAny, {
619
299
  body: {
620
300
  appName?: string | undefined;
621
301
  appShortName?: string | null | undefined;
622
302
  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
303
  appDefaultLanguage?: string | undefined;
628
304
  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
305
  privacyPolicy?: string | null | undefined;
649
306
  privacyPolicyVersion?: string | null | undefined;
650
307
  termsAndConditions?: string | null | undefined;
651
308
  termsAndConditionsVersion?: string | null | undefined;
652
309
  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;
310
+ enableRiderAccess?: boolean | undefined;
311
+ enablePassengerAccess?: boolean | undefined;
312
+ enableAgentAccess?: boolean | undefined;
313
+ enableAdminAccess?: boolean | undefined;
314
+ enableCashPayment?: boolean | undefined;
315
+ enableMomoPayPayment?: boolean | undefined;
316
+ enableAirtelMoneyPayment?: boolean | undefined;
661
317
  facebookUrl?: string | null | undefined;
662
318
  twitterUrl?: string | null | undefined;
663
319
  instagramUrl?: string | null | undefined;
@@ -671,26 +327,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
671
327
  companyEmail?: string | null | undefined;
672
328
  companyPhone?: string | null | undefined;
673
329
  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
330
  isUnderMaintenance?: boolean | undefined;
688
331
  maintenanceMessage?: string | null | undefined;
689
332
  maintenanceStartAt?: string | null | undefined;
690
333
  maintenanceEndAt?: string | null | undefined;
691
- googleAnalyticsId?: string | null | undefined;
692
- facebookPixelId?: string | null | undefined;
693
- sentryDsn?: string | null | undefined;
694
334
  };
695
335
  params: {
696
336
  id: string;
@@ -700,44 +340,20 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
700
340
  appName?: string | undefined;
701
341
  appShortName?: string | null | undefined;
702
342
  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
343
  appDefaultLanguage?: string | undefined;
708
344
  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
345
  privacyPolicy?: string | null | undefined;
729
346
  privacyPolicyVersion?: string | null | undefined;
730
347
  termsAndConditions?: string | null | undefined;
731
348
  termsAndConditionsVersion?: string | null | undefined;
732
349
  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;
350
+ enableRiderAccess?: boolean | undefined;
351
+ enablePassengerAccess?: boolean | undefined;
352
+ enableAgentAccess?: boolean | undefined;
353
+ enableAdminAccess?: boolean | undefined;
354
+ enableCashPayment?: boolean | undefined;
355
+ enableMomoPayPayment?: boolean | undefined;
356
+ enableAirtelMoneyPayment?: boolean | undefined;
741
357
  facebookUrl?: string | null | undefined;
742
358
  twitterUrl?: string | null | undefined;
743
359
  instagramUrl?: string | null | undefined;
@@ -751,26 +367,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
751
367
  companyEmail?: string | null | undefined;
752
368
  companyPhone?: string | null | undefined;
753
369
  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
370
  isUnderMaintenance?: boolean | undefined;
768
371
  maintenanceMessage?: string | null | undefined;
769
372
  maintenanceStartAt?: string | null | undefined;
770
373
  maintenanceEndAt?: string | null | undefined;
771
- googleAnalyticsId?: string | null | undefined;
772
- facebookPixelId?: string | null | undefined;
773
- sentryDsn?: string | null | undefined;
774
374
  };
775
375
  params: {
776
376
  id: string;
@@ -1,58 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getActiveAppSpecsSchema = exports.activateAppSpecsSchema = exports.getAppSpecsSchema = exports.listAppSpecsSchema = exports.updateAppSpecsSchema = exports.createAppSpecsSchema = void 0;
4
+ // src/validations/appSpecs.validations.ts
4
5
  const zod_1 = require("zod");
5
- const colorRegex = /^#[0-9A-Fa-f]{6}$/;
6
6
  const urlRegex = /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/;
7
7
  const appSpecsBaseSchema = {
8
8
  // App Identity
9
9
  appName: zod_1.z.string().min(1).max(100),
10
10
  appShortName: zod_1.z.string().max(50).nullable().optional(),
11
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
12
  appDefaultLanguage: zod_1.z.string().min(2).max(10).default("en"),
17
13
  appSupportedLanguages: zod_1.z
18
14
  .array(zod_1.z.string().min(2).max(10))
19
15
  .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
16
  // Legal Documents
42
17
  privacyPolicy: zod_1.z.string().nullable().optional(),
43
18
  privacyPolicyVersion: zod_1.z.string().max(20).nullable().optional(),
44
19
  termsAndConditions: zod_1.z.string().nullable().optional(),
45
20
  termsAndConditionsVersion: zod_1.z.string().max(20).nullable().optional(),
46
21
  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(),
22
+ // ✅ Role Access
23
+ enableRiderAccess: zod_1.z.boolean().default(true),
24
+ enablePassengerAccess: zod_1.z.boolean().default(true),
25
+ enableAgentAccess: zod_1.z.boolean().default(true),
26
+ enableAdminAccess: zod_1.z.boolean().default(true),
27
+ // ✅ Accepted Payment Methods
28
+ enableCashPayment: zod_1.z.boolean().default(true),
29
+ enableMomoPayPayment: zod_1.z.boolean().default(true),
30
+ enableAirtelMoneyPayment: zod_1.z.boolean().default(true),
56
31
  // Social Links
57
32
  facebookUrl: zod_1.z.string().url().nullable().optional(),
58
33
  twitterUrl: zod_1.z.string().url().nullable().optional(),
@@ -68,29 +43,11 @@ const appSpecsBaseSchema = {
68
43
  companyEmail: zod_1.z.string().email().nullable().optional(),
69
44
  companyPhone: zod_1.z.string().max(20).nullable().optional(),
70
45
  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
46
  // Maintenance
86
- isUnderMaintenance: zod_1.z.boolean(),
47
+ isUnderMaintenance: zod_1.z.boolean().default(false),
87
48
  maintenanceMessage: zod_1.z.string().nullable().optional(),
88
49
  maintenanceStartAt: zod_1.z.string().datetime().nullable().optional(),
89
50
  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
51
  };
95
52
  exports.createAppSpecsSchema = zod_1.z.object({
96
53
  body: zod_1.z.object(appSpecsBaseSchema),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.163",
3
+ "version": "1.0.165",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -103,7 +103,7 @@
103
103
  "rimraf": "^5.0.5",
104
104
  "streamifier": "^0.1.1",
105
105
  "typescript": "^5.3.3",
106
- "vr-models": "^1.0.85",
106
+ "vr-models": "^1.0.87",
107
107
  "zod": "^3.25.20"
108
108
  },
109
109
  "dependencies": {