vr-commons 1.0.181 → 1.0.183
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.
- package/dist/validations/admin/admin.devicePayments.validations.d.ts +54 -54
- package/dist/validations/admin/admin.devices.validations.d.ts +51 -51
- package/dist/validations/admin/admin.users.validations.d.ts +103 -103
- package/dist/validations/shared/shared.account.validations.d.ts +16 -16
- package/dist/validations/shared/shared.appSpecs.validations.d.ts +50 -0
- package/dist/validations/shared/shared.appSpecs.validations.js +1 -0
- package/dist/validations/shared/shared.auth.validations.d.ts +34 -34
- package/package.json +2 -2
|
@@ -11,6 +11,13 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
11
11
|
productionBaseUrl: z.ZodString;
|
|
12
12
|
runtimeConfig: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
googleWebClientId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
passengerAccess: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
mode: z.ZodEnum<["FREE", "PAID"]>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
mode: "FREE" | "PAID";
|
|
18
|
+
}, {
|
|
19
|
+
mode: "FREE" | "PAID";
|
|
20
|
+
}>>;
|
|
14
21
|
speedGovernor: z.ZodOptional<z.ZodObject<{
|
|
15
22
|
isActive: z.ZodBoolean;
|
|
16
23
|
speedLimitKmh: z.ZodNumber;
|
|
@@ -96,6 +103,9 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
96
103
|
forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
104
|
}, "strip", z.ZodTypeAny, {
|
|
98
105
|
googleWebClientId?: string | undefined;
|
|
106
|
+
passengerAccess?: {
|
|
107
|
+
mode: "FREE" | "PAID";
|
|
108
|
+
} | undefined;
|
|
99
109
|
speedGovernor?: {
|
|
100
110
|
isActive: boolean;
|
|
101
111
|
speedLimitKmh: number;
|
|
@@ -131,6 +141,9 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
131
141
|
forceUpdateMessage?: string | null | undefined;
|
|
132
142
|
}, {
|
|
133
143
|
googleWebClientId?: string | undefined;
|
|
144
|
+
passengerAccess?: {
|
|
145
|
+
mode: "FREE" | "PAID";
|
|
146
|
+
} | undefined;
|
|
134
147
|
speedGovernor?: {
|
|
135
148
|
isActive: boolean;
|
|
136
149
|
speedLimitKmh: number;
|
|
@@ -213,6 +226,9 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
213
226
|
appDescription?: string | null | undefined;
|
|
214
227
|
runtimeConfig?: {
|
|
215
228
|
googleWebClientId?: string | undefined;
|
|
229
|
+
passengerAccess?: {
|
|
230
|
+
mode: "FREE" | "PAID";
|
|
231
|
+
} | undefined;
|
|
216
232
|
speedGovernor?: {
|
|
217
233
|
isActive: boolean;
|
|
218
234
|
speedLimitKmh: number;
|
|
@@ -279,6 +295,9 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
279
295
|
appSupportedLanguages?: string[] | undefined;
|
|
280
296
|
runtimeConfig?: {
|
|
281
297
|
googleWebClientId?: string | undefined;
|
|
298
|
+
passengerAccess?: {
|
|
299
|
+
mode: "FREE" | "PAID";
|
|
300
|
+
} | undefined;
|
|
282
301
|
speedGovernor?: {
|
|
283
302
|
isActive: boolean;
|
|
284
303
|
speedLimitKmh: number;
|
|
@@ -363,6 +382,9 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
363
382
|
appDescription?: string | null | undefined;
|
|
364
383
|
runtimeConfig?: {
|
|
365
384
|
googleWebClientId?: string | undefined;
|
|
385
|
+
passengerAccess?: {
|
|
386
|
+
mode: "FREE" | "PAID";
|
|
387
|
+
} | undefined;
|
|
366
388
|
speedGovernor?: {
|
|
367
389
|
isActive: boolean;
|
|
368
390
|
speedLimitKmh: number;
|
|
@@ -431,6 +453,9 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
431
453
|
appSupportedLanguages?: string[] | undefined;
|
|
432
454
|
runtimeConfig?: {
|
|
433
455
|
googleWebClientId?: string | undefined;
|
|
456
|
+
passengerAccess?: {
|
|
457
|
+
mode: "FREE" | "PAID";
|
|
458
|
+
} | undefined;
|
|
434
459
|
speedGovernor?: {
|
|
435
460
|
isActive: boolean;
|
|
436
461
|
speedLimitKmh: number;
|
|
@@ -514,6 +539,13 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
514
539
|
productionBaseUrl: z.ZodOptional<z.ZodString>;
|
|
515
540
|
runtimeConfig: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
516
541
|
googleWebClientId: z.ZodOptional<z.ZodString>;
|
|
542
|
+
passengerAccess: z.ZodOptional<z.ZodObject<{
|
|
543
|
+
mode: z.ZodEnum<["FREE", "PAID"]>;
|
|
544
|
+
}, "strip", z.ZodTypeAny, {
|
|
545
|
+
mode: "FREE" | "PAID";
|
|
546
|
+
}, {
|
|
547
|
+
mode: "FREE" | "PAID";
|
|
548
|
+
}>>;
|
|
517
549
|
speedGovernor: z.ZodOptional<z.ZodObject<{
|
|
518
550
|
isActive: z.ZodBoolean;
|
|
519
551
|
speedLimitKmh: z.ZodNumber;
|
|
@@ -599,6 +631,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
599
631
|
forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
600
632
|
}, "strip", z.ZodTypeAny, {
|
|
601
633
|
googleWebClientId?: string | undefined;
|
|
634
|
+
passengerAccess?: {
|
|
635
|
+
mode: "FREE" | "PAID";
|
|
636
|
+
} | undefined;
|
|
602
637
|
speedGovernor?: {
|
|
603
638
|
isActive: boolean;
|
|
604
639
|
speedLimitKmh: number;
|
|
@@ -634,6 +669,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
634
669
|
forceUpdateMessage?: string | null | undefined;
|
|
635
670
|
}, {
|
|
636
671
|
googleWebClientId?: string | undefined;
|
|
672
|
+
passengerAccess?: {
|
|
673
|
+
mode: "FREE" | "PAID";
|
|
674
|
+
} | undefined;
|
|
637
675
|
speedGovernor?: {
|
|
638
676
|
isActive: boolean;
|
|
639
677
|
speedLimitKmh: number;
|
|
@@ -707,6 +745,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
707
745
|
productionBaseUrl?: string | undefined;
|
|
708
746
|
runtimeConfig?: {
|
|
709
747
|
googleWebClientId?: string | undefined;
|
|
748
|
+
passengerAccess?: {
|
|
749
|
+
mode: "FREE" | "PAID";
|
|
750
|
+
} | undefined;
|
|
710
751
|
speedGovernor?: {
|
|
711
752
|
isActive: boolean;
|
|
712
753
|
speedLimitKmh: number;
|
|
@@ -780,6 +821,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
780
821
|
productionBaseUrl?: string | undefined;
|
|
781
822
|
runtimeConfig?: {
|
|
782
823
|
googleWebClientId?: string | undefined;
|
|
824
|
+
passengerAccess?: {
|
|
825
|
+
mode: "FREE" | "PAID";
|
|
826
|
+
} | undefined;
|
|
783
827
|
speedGovernor?: {
|
|
784
828
|
isActive: boolean;
|
|
785
829
|
speedLimitKmh: number;
|
|
@@ -855,6 +899,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
855
899
|
productionBaseUrl?: string | undefined;
|
|
856
900
|
runtimeConfig?: {
|
|
857
901
|
googleWebClientId?: string | undefined;
|
|
902
|
+
passengerAccess?: {
|
|
903
|
+
mode: "FREE" | "PAID";
|
|
904
|
+
} | undefined;
|
|
858
905
|
speedGovernor?: {
|
|
859
906
|
isActive: boolean;
|
|
860
907
|
speedLimitKmh: number;
|
|
@@ -933,6 +980,9 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
933
980
|
productionBaseUrl?: string | undefined;
|
|
934
981
|
runtimeConfig?: {
|
|
935
982
|
googleWebClientId?: string | undefined;
|
|
983
|
+
passengerAccess?: {
|
|
984
|
+
mode: "FREE" | "PAID";
|
|
985
|
+
} | undefined;
|
|
936
986
|
speedGovernor?: {
|
|
937
987
|
isActive: boolean;
|
|
938
988
|
speedLimitKmh: number;
|
|
@@ -19,6 +19,7 @@ const appSpecsBaseSchema = {
|
|
|
19
19
|
productionBaseUrl: zod_1.z.string().url(),
|
|
20
20
|
runtimeConfig: zod_1.z.object({
|
|
21
21
|
googleWebClientId: zod_1.z.string().max(255).optional(),
|
|
22
|
+
passengerAccess: zod_1.z.object({ mode: zod_1.z.enum(["FREE", "PAID"]) }).optional(),
|
|
22
23
|
speedGovernor: zod_1.z.object({
|
|
23
24
|
isActive: zod_1.z.boolean(),
|
|
24
25
|
speedLimitKmh: zod_1.z.number().positive().max(300),
|
|
@@ -10,21 +10,21 @@ export declare const userLoginSchema: z.ZodObject<{
|
|
|
10
10
|
contactValue: z.ZodEffects<z.ZodString, string, string>;
|
|
11
11
|
password: z.ZodString;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
contactValue: string;
|
|
14
13
|
password: string;
|
|
15
|
-
}, {
|
|
16
14
|
contactValue: string;
|
|
15
|
+
}, {
|
|
17
16
|
password: string;
|
|
17
|
+
contactValue: string;
|
|
18
18
|
}>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
body: {
|
|
21
|
-
contactValue: string;
|
|
22
21
|
password: string;
|
|
22
|
+
contactValue: string;
|
|
23
23
|
};
|
|
24
24
|
}, {
|
|
25
25
|
body: {
|
|
26
|
-
contactValue: string;
|
|
27
26
|
password: string;
|
|
27
|
+
contactValue: string;
|
|
28
28
|
};
|
|
29
29
|
}>;
|
|
30
30
|
export declare const forgotPasswordSchema: z.ZodObject<{
|
|
@@ -95,33 +95,33 @@ export declare const registerSchema: z.ZodObject<{
|
|
|
95
95
|
birthMonth: z.ZodOptional<z.ZodNumber>;
|
|
96
96
|
birthYear: z.ZodOptional<z.ZodNumber>;
|
|
97
97
|
}, "strict", z.ZodTypeAny, {
|
|
98
|
-
contactValue: string;
|
|
99
|
-
password: string;
|
|
100
98
|
firstName: string;
|
|
101
99
|
lastName: string;
|
|
100
|
+
password: string;
|
|
102
101
|
role: "PASSENGER" | "RIDER";
|
|
102
|
+
contactValue: string;
|
|
103
103
|
gender?: "male" | "female" | undefined;
|
|
104
104
|
birthDate?: number | undefined;
|
|
105
105
|
birthMonth?: number | undefined;
|
|
106
106
|
birthYear?: number | undefined;
|
|
107
107
|
}, {
|
|
108
|
-
contactValue: string;
|
|
109
|
-
password: string;
|
|
110
108
|
firstName: string;
|
|
111
109
|
lastName: string;
|
|
112
|
-
|
|
110
|
+
password: string;
|
|
111
|
+
contactValue: string;
|
|
113
112
|
gender?: "male" | "female" | undefined;
|
|
114
113
|
birthDate?: number | undefined;
|
|
115
114
|
birthMonth?: number | undefined;
|
|
116
115
|
birthYear?: number | undefined;
|
|
116
|
+
role?: "PASSENGER" | "RIDER" | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
119
|
body: {
|
|
120
|
-
contactValue: string;
|
|
121
|
-
password: string;
|
|
122
120
|
firstName: string;
|
|
123
121
|
lastName: string;
|
|
122
|
+
password: string;
|
|
124
123
|
role: "PASSENGER" | "RIDER";
|
|
124
|
+
contactValue: string;
|
|
125
125
|
gender?: "male" | "female" | undefined;
|
|
126
126
|
birthDate?: number | undefined;
|
|
127
127
|
birthMonth?: number | undefined;
|
|
@@ -129,15 +129,15 @@ export declare const registerSchema: z.ZodObject<{
|
|
|
129
129
|
};
|
|
130
130
|
}, {
|
|
131
131
|
body: {
|
|
132
|
-
contactValue: string;
|
|
133
|
-
password: string;
|
|
134
132
|
firstName: string;
|
|
135
133
|
lastName: string;
|
|
136
|
-
|
|
134
|
+
password: string;
|
|
135
|
+
contactValue: string;
|
|
137
136
|
gender?: "male" | "female" | undefined;
|
|
138
137
|
birthDate?: number | undefined;
|
|
139
138
|
birthMonth?: number | undefined;
|
|
140
139
|
birthYear?: number | undefined;
|
|
140
|
+
role?: "PASSENGER" | "RIDER" | undefined;
|
|
141
141
|
};
|
|
142
142
|
}>;
|
|
143
143
|
export declare const riderPasswordRegex: RegExp;
|
|
@@ -359,57 +359,57 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
359
359
|
jacketId: z.ZodOptional<z.ZodString>;
|
|
360
360
|
plateNumber: z.ZodOptional<z.ZodString>;
|
|
361
361
|
}, "strip", z.ZodTypeAny, {
|
|
362
|
-
contactValue: string;
|
|
363
|
-
password: string;
|
|
364
362
|
firstName: string;
|
|
365
363
|
lastName: string;
|
|
366
|
-
|
|
364
|
+
password: string;
|
|
365
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
366
|
+
contactValue: string;
|
|
367
|
+
jacketId?: string | undefined;
|
|
368
|
+
plateNumber?: string | undefined;
|
|
367
369
|
gender?: "male" | "female" | undefined;
|
|
368
370
|
birthDate?: number | undefined;
|
|
369
371
|
birthMonth?: number | undefined;
|
|
370
372
|
birthYear?: number | undefined;
|
|
371
|
-
jacketId?: string | undefined;
|
|
372
|
-
plateNumber?: string | undefined;
|
|
373
373
|
}, {
|
|
374
|
-
contactValue: string;
|
|
375
|
-
password: string;
|
|
376
374
|
firstName: string;
|
|
377
375
|
lastName: string;
|
|
378
|
-
|
|
376
|
+
password: string;
|
|
377
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
378
|
+
contactValue: string;
|
|
379
|
+
jacketId?: string | undefined;
|
|
380
|
+
plateNumber?: string | undefined;
|
|
379
381
|
gender?: "male" | "female" | undefined;
|
|
380
382
|
birthDate?: number | undefined;
|
|
381
383
|
birthMonth?: number | undefined;
|
|
382
384
|
birthYear?: number | undefined;
|
|
383
|
-
jacketId?: string | undefined;
|
|
384
|
-
plateNumber?: string | undefined;
|
|
385
385
|
}>;
|
|
386
386
|
}, "strip", z.ZodTypeAny, {
|
|
387
387
|
body: {
|
|
388
|
-
contactValue: string;
|
|
389
|
-
password: string;
|
|
390
388
|
firstName: string;
|
|
391
389
|
lastName: string;
|
|
392
|
-
|
|
390
|
+
password: string;
|
|
391
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
392
|
+
contactValue: string;
|
|
393
|
+
jacketId?: string | undefined;
|
|
394
|
+
plateNumber?: string | undefined;
|
|
393
395
|
gender?: "male" | "female" | undefined;
|
|
394
396
|
birthDate?: number | undefined;
|
|
395
397
|
birthMonth?: number | undefined;
|
|
396
398
|
birthYear?: number | undefined;
|
|
397
|
-
jacketId?: string | undefined;
|
|
398
|
-
plateNumber?: string | undefined;
|
|
399
399
|
};
|
|
400
400
|
}, {
|
|
401
401
|
body: {
|
|
402
|
-
contactValue: string;
|
|
403
|
-
password: string;
|
|
404
402
|
firstName: string;
|
|
405
403
|
lastName: string;
|
|
406
|
-
|
|
404
|
+
password: string;
|
|
405
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
406
|
+
contactValue: string;
|
|
407
|
+
jacketId?: string | undefined;
|
|
408
|
+
plateNumber?: string | undefined;
|
|
407
409
|
gender?: "male" | "female" | undefined;
|
|
408
410
|
birthDate?: number | undefined;
|
|
409
411
|
birthMonth?: number | undefined;
|
|
410
412
|
birthYear?: number | undefined;
|
|
411
|
-
jacketId?: string | undefined;
|
|
412
|
-
plateNumber?: string | undefined;
|
|
413
413
|
};
|
|
414
414
|
}>;
|
|
415
415
|
export declare const updateContactSchema: z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vr-commons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.183",
|
|
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.
|
|
106
|
+
"vr-models": "^1.0.109",
|
|
107
107
|
"zod": "^3.25.20"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|