vr-commons 1.0.188 → 1.0.190
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/middlewares/index.d.ts +1 -0
- package/dist/middlewares/index.js +4 -1
- package/dist/middlewares/shared/shared.appVersion.middleware.d.ts +9 -0
- package/dist/middlewares/shared/shared.appVersion.middleware.js +175 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +9 -1
- package/dist/utils/users/users.accountRecovery.utils.d.ts +13 -0
- package/dist/utils/users/users.accountRecovery.utils.js +52 -0
- package/dist/validations/admin/admin.devicePayments.validations.d.ts +6 -6
- package/dist/validations/admin/admin.devices.validations.d.ts +12 -12
- package/dist/validations/admin/admin.eventLogs.validations.d.ts +24 -24
- package/dist/validations/admin/admin.installments.validations.d.ts +4 -4
- package/dist/validations/admin/admin.pricings.validations.d.ts +8 -8
- package/dist/validations/admin/admin.products.validations.d.ts +12 -12
- package/dist/validations/admin/admin.users.validations.d.ts +50 -50
- package/dist/validations/index.d.ts +1 -0
- package/dist/validations/index.js +5 -2
- package/dist/validations/shared/shared.account.validations.d.ts +10 -10
- package/dist/validations/shared/shared.appSpecs.validations.d.ts +70 -48
- package/dist/validations/shared/shared.appSpecs.validations.js +7 -2
- package/dist/validations/shared/shared.auth.validations.d.ts +28 -28
- package/dist/validations/shared/shared.moderation.validations.d.ts +18 -18
- package/dist/validations/shared/shared.profiles.validations.d.ts +86 -86
- package/dist/validations/users/users.accountRecovery.validations.d.ts +98 -0
- package/dist/validations/users/users.accountRecovery.validations.js +41 -0
- package/dist/validations/users/users.devicePaymentPlans.validations.d.ts +6 -6
- package/package.json +2 -2
|
@@ -9,6 +9,11 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
9
9
|
developmentBaseUrl: z.ZodString;
|
|
10
10
|
stagingBaseUrl: z.ZodString;
|
|
11
11
|
productionBaseUrl: z.ZodString;
|
|
12
|
+
minimumAndroidAppVersion: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
13
|
+
minimumAndroidAppBuild: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
minimumIosAppVersion: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
15
|
+
minimumIosAppBuild: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
16
|
+
forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
17
|
runtimeConfig: z.ZodOptional<z.ZodObject<{
|
|
13
18
|
googleWebClientId: z.ZodOptional<z.ZodString>;
|
|
14
19
|
paidAccessActivated: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -326,11 +331,11 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
326
331
|
identifierPattern: z.ZodEffects<z.ZodString, string, string>;
|
|
327
332
|
}, "strip", z.ZodTypeAny, {
|
|
328
333
|
prefixes: string[];
|
|
329
|
-
roles: ("
|
|
334
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
330
335
|
identifierPattern: string;
|
|
331
336
|
}, {
|
|
332
337
|
prefixes: string[];
|
|
333
|
-
roles: ("
|
|
338
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
334
339
|
identifierPattern: string;
|
|
335
340
|
}>>;
|
|
336
341
|
bleBatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -391,8 +396,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
391
396
|
paymentPlansPageSize?: number | undefined;
|
|
392
397
|
maximumPageSize?: number | undefined;
|
|
393
398
|
}>>;
|
|
394
|
-
minimumAppVersion: z.ZodOptional<z.ZodString>;
|
|
395
|
-
forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
396
399
|
}, "strip", z.ZodTypeAny, {
|
|
397
400
|
passengerAccess?: {
|
|
398
401
|
mode: "FREE" | "PAID";
|
|
@@ -450,7 +453,7 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
450
453
|
} | undefined;
|
|
451
454
|
serialNumber?: {
|
|
452
455
|
prefixes: string[];
|
|
453
|
-
roles: ("
|
|
456
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
454
457
|
identifierPattern: string;
|
|
455
458
|
} | undefined;
|
|
456
459
|
bleBatches?: {
|
|
@@ -475,8 +478,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
475
478
|
paymentPlansPageSize?: number | undefined;
|
|
476
479
|
maximumPageSize?: number | undefined;
|
|
477
480
|
} | undefined;
|
|
478
|
-
minimumAppVersion?: string | undefined;
|
|
479
|
-
forceUpdateMessage?: string | null | undefined;
|
|
480
481
|
}, {
|
|
481
482
|
passengerAccess?: {
|
|
482
483
|
mode: "FREE" | "PAID";
|
|
@@ -534,7 +535,7 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
534
535
|
} | undefined;
|
|
535
536
|
serialNumber?: {
|
|
536
537
|
prefixes: string[];
|
|
537
|
-
roles: ("
|
|
538
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
538
539
|
identifierPattern: string;
|
|
539
540
|
} | undefined;
|
|
540
541
|
bleBatches?: {
|
|
@@ -559,8 +560,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
559
560
|
paymentPlansPageSize?: number | undefined;
|
|
560
561
|
maximumPageSize?: number | undefined;
|
|
561
562
|
} | undefined;
|
|
562
|
-
minimumAppVersion?: string | undefined;
|
|
563
|
-
forceUpdateMessage?: string | null | undefined;
|
|
564
563
|
}>>;
|
|
565
564
|
privacyPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
566
565
|
privacyPolicyVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -606,8 +605,13 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
606
605
|
enableMomoPayPayment: boolean;
|
|
607
606
|
enableAirtelMoneyPayment: boolean;
|
|
608
607
|
isUnderMaintenance: boolean;
|
|
608
|
+
minimumAndroidAppVersion?: string | null | undefined;
|
|
609
|
+
minimumAndroidAppBuild?: number | null | undefined;
|
|
610
|
+
minimumIosAppVersion?: string | null | undefined;
|
|
611
|
+
minimumIosAppBuild?: string | null | undefined;
|
|
609
612
|
appShortName?: string | null | undefined;
|
|
610
613
|
appDescription?: string | null | undefined;
|
|
614
|
+
forceUpdateMessage?: string | null | undefined;
|
|
611
615
|
runtimeConfig?: {
|
|
612
616
|
passengerAccess?: {
|
|
613
617
|
mode: "FREE" | "PAID";
|
|
@@ -665,7 +669,7 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
665
669
|
} | undefined;
|
|
666
670
|
serialNumber?: {
|
|
667
671
|
prefixes: string[];
|
|
668
|
-
roles: ("
|
|
672
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
669
673
|
identifierPattern: string;
|
|
670
674
|
} | undefined;
|
|
671
675
|
bleBatches?: {
|
|
@@ -690,8 +694,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
690
694
|
paymentPlansPageSize?: number | undefined;
|
|
691
695
|
maximumPageSize?: number | undefined;
|
|
692
696
|
} | undefined;
|
|
693
|
-
minimumAppVersion?: string | undefined;
|
|
694
|
-
forceUpdateMessage?: string | null | undefined;
|
|
695
697
|
} | undefined;
|
|
696
698
|
privacyPolicy?: string | null | undefined;
|
|
697
699
|
privacyPolicyVersion?: string | null | undefined;
|
|
@@ -719,10 +721,15 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
719
721
|
developmentBaseUrl: string;
|
|
720
722
|
stagingBaseUrl: string;
|
|
721
723
|
productionBaseUrl: string;
|
|
724
|
+
minimumAndroidAppVersion?: unknown;
|
|
725
|
+
minimumAndroidAppBuild?: number | null | undefined;
|
|
726
|
+
minimumIosAppVersion?: unknown;
|
|
727
|
+
minimumIosAppBuild?: unknown;
|
|
722
728
|
appShortName?: string | null | undefined;
|
|
723
729
|
appDescription?: string | null | undefined;
|
|
724
730
|
appDefaultLanguage?: string | undefined;
|
|
725
731
|
appSupportedLanguages?: string[] | undefined;
|
|
732
|
+
forceUpdateMessage?: string | null | undefined;
|
|
726
733
|
runtimeConfig?: {
|
|
727
734
|
passengerAccess?: {
|
|
728
735
|
mode: "FREE" | "PAID";
|
|
@@ -780,7 +787,7 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
780
787
|
} | undefined;
|
|
781
788
|
serialNumber?: {
|
|
782
789
|
prefixes: string[];
|
|
783
|
-
roles: ("
|
|
790
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
784
791
|
identifierPattern: string;
|
|
785
792
|
} | undefined;
|
|
786
793
|
bleBatches?: {
|
|
@@ -805,8 +812,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
805
812
|
paymentPlansPageSize?: number | undefined;
|
|
806
813
|
maximumPageSize?: number | undefined;
|
|
807
814
|
} | undefined;
|
|
808
|
-
minimumAppVersion?: string | undefined;
|
|
809
|
-
forceUpdateMessage?: string | null | undefined;
|
|
810
815
|
} | undefined;
|
|
811
816
|
privacyPolicy?: string | null | undefined;
|
|
812
817
|
privacyPolicyVersion?: string | null | undefined;
|
|
@@ -854,8 +859,13 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
854
859
|
enableMomoPayPayment: boolean;
|
|
855
860
|
enableAirtelMoneyPayment: boolean;
|
|
856
861
|
isUnderMaintenance: boolean;
|
|
862
|
+
minimumAndroidAppVersion?: string | null | undefined;
|
|
863
|
+
minimumAndroidAppBuild?: number | null | undefined;
|
|
864
|
+
minimumIosAppVersion?: string | null | undefined;
|
|
865
|
+
minimumIosAppBuild?: string | null | undefined;
|
|
857
866
|
appShortName?: string | null | undefined;
|
|
858
867
|
appDescription?: string | null | undefined;
|
|
868
|
+
forceUpdateMessage?: string | null | undefined;
|
|
859
869
|
runtimeConfig?: {
|
|
860
870
|
passengerAccess?: {
|
|
861
871
|
mode: "FREE" | "PAID";
|
|
@@ -913,7 +923,7 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
913
923
|
} | undefined;
|
|
914
924
|
serialNumber?: {
|
|
915
925
|
prefixes: string[];
|
|
916
|
-
roles: ("
|
|
926
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
917
927
|
identifierPattern: string;
|
|
918
928
|
} | undefined;
|
|
919
929
|
bleBatches?: {
|
|
@@ -938,8 +948,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
938
948
|
paymentPlansPageSize?: number | undefined;
|
|
939
949
|
maximumPageSize?: number | undefined;
|
|
940
950
|
} | undefined;
|
|
941
|
-
minimumAppVersion?: string | undefined;
|
|
942
|
-
forceUpdateMessage?: string | null | undefined;
|
|
943
951
|
} | undefined;
|
|
944
952
|
privacyPolicy?: string | null | undefined;
|
|
945
953
|
privacyPolicyVersion?: string | null | undefined;
|
|
@@ -969,10 +977,15 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
969
977
|
developmentBaseUrl: string;
|
|
970
978
|
stagingBaseUrl: string;
|
|
971
979
|
productionBaseUrl: string;
|
|
980
|
+
minimumAndroidAppVersion?: unknown;
|
|
981
|
+
minimumAndroidAppBuild?: number | null | undefined;
|
|
982
|
+
minimumIosAppVersion?: unknown;
|
|
983
|
+
minimumIosAppBuild?: unknown;
|
|
972
984
|
appShortName?: string | null | undefined;
|
|
973
985
|
appDescription?: string | null | undefined;
|
|
974
986
|
appDefaultLanguage?: string | undefined;
|
|
975
987
|
appSupportedLanguages?: string[] | undefined;
|
|
988
|
+
forceUpdateMessage?: string | null | undefined;
|
|
976
989
|
runtimeConfig?: {
|
|
977
990
|
passengerAccess?: {
|
|
978
991
|
mode: "FREE" | "PAID";
|
|
@@ -1030,7 +1043,7 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
1030
1043
|
} | undefined;
|
|
1031
1044
|
serialNumber?: {
|
|
1032
1045
|
prefixes: string[];
|
|
1033
|
-
roles: ("
|
|
1046
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
1034
1047
|
identifierPattern: string;
|
|
1035
1048
|
} | undefined;
|
|
1036
1049
|
bleBatches?: {
|
|
@@ -1055,8 +1068,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
1055
1068
|
paymentPlansPageSize?: number | undefined;
|
|
1056
1069
|
maximumPageSize?: number | undefined;
|
|
1057
1070
|
} | undefined;
|
|
1058
|
-
minimumAppVersion?: string | undefined;
|
|
1059
|
-
forceUpdateMessage?: string | null | undefined;
|
|
1060
1071
|
} | undefined;
|
|
1061
1072
|
privacyPolicy?: string | null | undefined;
|
|
1062
1073
|
privacyPolicyVersion?: string | null | undefined;
|
|
@@ -1098,6 +1109,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1098
1109
|
id: string;
|
|
1099
1110
|
}>;
|
|
1100
1111
|
body: z.ZodObject<{
|
|
1112
|
+
minimumAndroidAppVersion: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
1113
|
+
minimumAndroidAppBuild: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1114
|
+
minimumIosAppVersion: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
1115
|
+
minimumIosAppBuild: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
1101
1116
|
appShortName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1102
1117
|
appDescription: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1103
1118
|
appDefaultLanguage: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
@@ -1105,6 +1120,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1105
1120
|
developmentBaseUrl: z.ZodOptional<z.ZodString>;
|
|
1106
1121
|
stagingBaseUrl: z.ZodOptional<z.ZodString>;
|
|
1107
1122
|
productionBaseUrl: z.ZodOptional<z.ZodString>;
|
|
1123
|
+
forceUpdateMessage: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1108
1124
|
runtimeConfig: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1109
1125
|
googleWebClientId: z.ZodOptional<z.ZodString>;
|
|
1110
1126
|
paidAccessActivated: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1422,11 +1438,11 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1422
1438
|
identifierPattern: z.ZodEffects<z.ZodString, string, string>;
|
|
1423
1439
|
}, "strip", z.ZodTypeAny, {
|
|
1424
1440
|
prefixes: string[];
|
|
1425
|
-
roles: ("
|
|
1441
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
1426
1442
|
identifierPattern: string;
|
|
1427
1443
|
}, {
|
|
1428
1444
|
prefixes: string[];
|
|
1429
|
-
roles: ("
|
|
1445
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
1430
1446
|
identifierPattern: string;
|
|
1431
1447
|
}>>;
|
|
1432
1448
|
bleBatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1487,8 +1503,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1487
1503
|
paymentPlansPageSize?: number | undefined;
|
|
1488
1504
|
maximumPageSize?: number | undefined;
|
|
1489
1505
|
}>>;
|
|
1490
|
-
minimumAppVersion: z.ZodOptional<z.ZodString>;
|
|
1491
|
-
forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1492
1506
|
}, "strip", z.ZodTypeAny, {
|
|
1493
1507
|
passengerAccess?: {
|
|
1494
1508
|
mode: "FREE" | "PAID";
|
|
@@ -1546,7 +1560,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1546
1560
|
} | undefined;
|
|
1547
1561
|
serialNumber?: {
|
|
1548
1562
|
prefixes: string[];
|
|
1549
|
-
roles: ("
|
|
1563
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
1550
1564
|
identifierPattern: string;
|
|
1551
1565
|
} | undefined;
|
|
1552
1566
|
bleBatches?: {
|
|
@@ -1571,8 +1585,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1571
1585
|
paymentPlansPageSize?: number | undefined;
|
|
1572
1586
|
maximumPageSize?: number | undefined;
|
|
1573
1587
|
} | undefined;
|
|
1574
|
-
minimumAppVersion?: string | undefined;
|
|
1575
|
-
forceUpdateMessage?: string | null | undefined;
|
|
1576
1588
|
}, {
|
|
1577
1589
|
passengerAccess?: {
|
|
1578
1590
|
mode: "FREE" | "PAID";
|
|
@@ -1630,7 +1642,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1630
1642
|
} | undefined;
|
|
1631
1643
|
serialNumber?: {
|
|
1632
1644
|
prefixes: string[];
|
|
1633
|
-
roles: ("
|
|
1645
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
1634
1646
|
identifierPattern: string;
|
|
1635
1647
|
} | undefined;
|
|
1636
1648
|
bleBatches?: {
|
|
@@ -1655,8 +1667,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1655
1667
|
paymentPlansPageSize?: number | undefined;
|
|
1656
1668
|
maximumPageSize?: number | undefined;
|
|
1657
1669
|
} | undefined;
|
|
1658
|
-
minimumAppVersion?: string | undefined;
|
|
1659
|
-
forceUpdateMessage?: string | null | undefined;
|
|
1660
1670
|
}>>>;
|
|
1661
1671
|
privacyPolicy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1662
1672
|
privacyPolicyVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -1688,6 +1698,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1688
1698
|
maintenanceStartAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1689
1699
|
maintenanceEndAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1690
1700
|
}, "strip", z.ZodTypeAny, {
|
|
1701
|
+
minimumAndroidAppVersion?: string | null | undefined;
|
|
1702
|
+
minimumAndroidAppBuild?: number | null | undefined;
|
|
1703
|
+
minimumIosAppVersion?: string | null | undefined;
|
|
1704
|
+
minimumIosAppBuild?: string | null | undefined;
|
|
1691
1705
|
appShortName?: string | null | undefined;
|
|
1692
1706
|
appDescription?: string | null | undefined;
|
|
1693
1707
|
appDefaultLanguage?: string | undefined;
|
|
@@ -1695,6 +1709,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1695
1709
|
developmentBaseUrl?: string | undefined;
|
|
1696
1710
|
stagingBaseUrl?: string | undefined;
|
|
1697
1711
|
productionBaseUrl?: string | undefined;
|
|
1712
|
+
forceUpdateMessage?: string | null | undefined;
|
|
1698
1713
|
runtimeConfig?: {
|
|
1699
1714
|
passengerAccess?: {
|
|
1700
1715
|
mode: "FREE" | "PAID";
|
|
@@ -1752,7 +1767,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1752
1767
|
} | undefined;
|
|
1753
1768
|
serialNumber?: {
|
|
1754
1769
|
prefixes: string[];
|
|
1755
|
-
roles: ("
|
|
1770
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
1756
1771
|
identifierPattern: string;
|
|
1757
1772
|
} | undefined;
|
|
1758
1773
|
bleBatches?: {
|
|
@@ -1777,8 +1792,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1777
1792
|
paymentPlansPageSize?: number | undefined;
|
|
1778
1793
|
maximumPageSize?: number | undefined;
|
|
1779
1794
|
} | undefined;
|
|
1780
|
-
minimumAppVersion?: string | undefined;
|
|
1781
|
-
forceUpdateMessage?: string | null | undefined;
|
|
1782
1795
|
} | undefined;
|
|
1783
1796
|
privacyPolicy?: string | null | undefined;
|
|
1784
1797
|
privacyPolicyVersion?: string | null | undefined;
|
|
@@ -1810,6 +1823,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1810
1823
|
maintenanceStartAt?: string | null | undefined;
|
|
1811
1824
|
maintenanceEndAt?: string | null | undefined;
|
|
1812
1825
|
}, {
|
|
1826
|
+
minimumAndroidAppVersion?: unknown;
|
|
1827
|
+
minimumAndroidAppBuild?: number | null | undefined;
|
|
1828
|
+
minimumIosAppVersion?: unknown;
|
|
1829
|
+
minimumIosAppBuild?: unknown;
|
|
1813
1830
|
appShortName?: string | null | undefined;
|
|
1814
1831
|
appDescription?: string | null | undefined;
|
|
1815
1832
|
appDefaultLanguage?: string | undefined;
|
|
@@ -1817,6 +1834,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1817
1834
|
developmentBaseUrl?: string | undefined;
|
|
1818
1835
|
stagingBaseUrl?: string | undefined;
|
|
1819
1836
|
productionBaseUrl?: string | undefined;
|
|
1837
|
+
forceUpdateMessage?: string | null | undefined;
|
|
1820
1838
|
runtimeConfig?: {
|
|
1821
1839
|
passengerAccess?: {
|
|
1822
1840
|
mode: "FREE" | "PAID";
|
|
@@ -1874,7 +1892,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1874
1892
|
} | undefined;
|
|
1875
1893
|
serialNumber?: {
|
|
1876
1894
|
prefixes: string[];
|
|
1877
|
-
roles: ("
|
|
1895
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
1878
1896
|
identifierPattern: string;
|
|
1879
1897
|
} | undefined;
|
|
1880
1898
|
bleBatches?: {
|
|
@@ -1899,8 +1917,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1899
1917
|
paymentPlansPageSize?: number | undefined;
|
|
1900
1918
|
maximumPageSize?: number | undefined;
|
|
1901
1919
|
} | undefined;
|
|
1902
|
-
minimumAppVersion?: string | undefined;
|
|
1903
|
-
forceUpdateMessage?: string | null | undefined;
|
|
1904
1920
|
} | undefined;
|
|
1905
1921
|
privacyPolicy?: string | null | undefined;
|
|
1906
1922
|
privacyPolicyVersion?: string | null | undefined;
|
|
@@ -1934,6 +1950,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1934
1950
|
}>;
|
|
1935
1951
|
}, "strip", z.ZodTypeAny, {
|
|
1936
1952
|
body: {
|
|
1953
|
+
minimumAndroidAppVersion?: string | null | undefined;
|
|
1954
|
+
minimumAndroidAppBuild?: number | null | undefined;
|
|
1955
|
+
minimumIosAppVersion?: string | null | undefined;
|
|
1956
|
+
minimumIosAppBuild?: string | null | undefined;
|
|
1937
1957
|
appShortName?: string | null | undefined;
|
|
1938
1958
|
appDescription?: string | null | undefined;
|
|
1939
1959
|
appDefaultLanguage?: string | undefined;
|
|
@@ -1941,6 +1961,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1941
1961
|
developmentBaseUrl?: string | undefined;
|
|
1942
1962
|
stagingBaseUrl?: string | undefined;
|
|
1943
1963
|
productionBaseUrl?: string | undefined;
|
|
1964
|
+
forceUpdateMessage?: string | null | undefined;
|
|
1944
1965
|
runtimeConfig?: {
|
|
1945
1966
|
passengerAccess?: {
|
|
1946
1967
|
mode: "FREE" | "PAID";
|
|
@@ -1998,7 +2019,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
1998
2019
|
} | undefined;
|
|
1999
2020
|
serialNumber?: {
|
|
2000
2021
|
prefixes: string[];
|
|
2001
|
-
roles: ("
|
|
2022
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
2002
2023
|
identifierPattern: string;
|
|
2003
2024
|
} | undefined;
|
|
2004
2025
|
bleBatches?: {
|
|
@@ -2023,8 +2044,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
2023
2044
|
paymentPlansPageSize?: number | undefined;
|
|
2024
2045
|
maximumPageSize?: number | undefined;
|
|
2025
2046
|
} | undefined;
|
|
2026
|
-
minimumAppVersion?: string | undefined;
|
|
2027
|
-
forceUpdateMessage?: string | null | undefined;
|
|
2028
2047
|
} | undefined;
|
|
2029
2048
|
privacyPolicy?: string | null | undefined;
|
|
2030
2049
|
privacyPolicyVersion?: string | null | undefined;
|
|
@@ -2061,6 +2080,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
2061
2080
|
};
|
|
2062
2081
|
}, {
|
|
2063
2082
|
body: {
|
|
2083
|
+
minimumAndroidAppVersion?: unknown;
|
|
2084
|
+
minimumAndroidAppBuild?: number | null | undefined;
|
|
2085
|
+
minimumIosAppVersion?: unknown;
|
|
2086
|
+
minimumIosAppBuild?: unknown;
|
|
2064
2087
|
appShortName?: string | null | undefined;
|
|
2065
2088
|
appDescription?: string | null | undefined;
|
|
2066
2089
|
appDefaultLanguage?: string | undefined;
|
|
@@ -2068,6 +2091,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
2068
2091
|
developmentBaseUrl?: string | undefined;
|
|
2069
2092
|
stagingBaseUrl?: string | undefined;
|
|
2070
2093
|
productionBaseUrl?: string | undefined;
|
|
2094
|
+
forceUpdateMessage?: string | null | undefined;
|
|
2071
2095
|
runtimeConfig?: {
|
|
2072
2096
|
passengerAccess?: {
|
|
2073
2097
|
mode: "FREE" | "PAID";
|
|
@@ -2125,7 +2149,7 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
2125
2149
|
} | undefined;
|
|
2126
2150
|
serialNumber?: {
|
|
2127
2151
|
prefixes: string[];
|
|
2128
|
-
roles: ("
|
|
2152
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
2129
2153
|
identifierPattern: string;
|
|
2130
2154
|
} | undefined;
|
|
2131
2155
|
bleBatches?: {
|
|
@@ -2150,8 +2174,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
2150
2174
|
paymentPlansPageSize?: number | undefined;
|
|
2151
2175
|
maximumPageSize?: number | undefined;
|
|
2152
2176
|
} | undefined;
|
|
2153
|
-
minimumAppVersion?: string | undefined;
|
|
2154
|
-
forceUpdateMessage?: string | null | undefined;
|
|
2155
2177
|
} | undefined;
|
|
2156
2178
|
privacyPolicy?: string | null | undefined;
|
|
2157
2179
|
privacyPolicyVersion?: string | null | undefined;
|
|
@@ -2199,13 +2221,13 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
2199
2221
|
page: number;
|
|
2200
2222
|
search?: string | undefined;
|
|
2201
2223
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
2202
|
-
sortOrder?: "
|
|
2224
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
2203
2225
|
}, {
|
|
2204
2226
|
search?: string | undefined;
|
|
2205
2227
|
limit?: string | undefined;
|
|
2206
2228
|
page?: string | undefined;
|
|
2207
2229
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
2208
|
-
sortOrder?: "
|
|
2230
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
2209
2231
|
}>;
|
|
2210
2232
|
}, "strip", z.ZodTypeAny, {
|
|
2211
2233
|
query: {
|
|
@@ -2213,7 +2235,7 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
2213
2235
|
page: number;
|
|
2214
2236
|
search?: string | undefined;
|
|
2215
2237
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
2216
|
-
sortOrder?: "
|
|
2238
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
2217
2239
|
};
|
|
2218
2240
|
}, {
|
|
2219
2241
|
query: {
|
|
@@ -2221,7 +2243,7 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
2221
2243
|
limit?: string | undefined;
|
|
2222
2244
|
page?: string | undefined;
|
|
2223
2245
|
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
2224
|
-
sortOrder?: "
|
|
2246
|
+
sortOrder?: "DESC" | "ASC" | undefined;
|
|
2225
2247
|
};
|
|
2226
2248
|
}>;
|
|
2227
2249
|
export declare const getAppSpecsSchema: z.ZodObject<{
|
|
@@ -27,6 +27,8 @@ const speedGovernorSchema = zod_1.z.object({
|
|
|
27
27
|
weeklySchedule: speedGovernorWeeklyScheduleSchema,
|
|
28
28
|
exceptions: zod_1.z.array(zod_1.z.string().trim().min(1).max(100)).optional(),
|
|
29
29
|
});
|
|
30
|
+
const optionalAppVersion = zod_1.z.preprocess((value) => typeof value === "string" && value.trim() === "" ? null : value, zod_1.z.string().regex(/^\d+\.\d+\.\d+$/, "Use MAJOR.MINOR.PATCH format").nullable().optional());
|
|
31
|
+
const optionalIosBuild = zod_1.z.preprocess((value) => typeof value === "string" && value.trim() === "" ? null : value, zod_1.z.string().regex(/^\d+(?:\.\d+)*$/, "Use a numeric iOS build number").max(50).nullable().optional());
|
|
30
32
|
const appSpecsBaseSchema = {
|
|
31
33
|
// App Identity
|
|
32
34
|
appName: zod_1.z.string().min(1).max(100),
|
|
@@ -39,6 +41,11 @@ const appSpecsBaseSchema = {
|
|
|
39
41
|
developmentBaseUrl: zod_1.z.string().url(),
|
|
40
42
|
stagingBaseUrl: zod_1.z.string().url(),
|
|
41
43
|
productionBaseUrl: zod_1.z.string().url(),
|
|
44
|
+
minimumAndroidAppVersion: optionalAppVersion,
|
|
45
|
+
minimumAndroidAppBuild: zod_1.z.number().int().min(1).max(2100000000).nullable().optional(),
|
|
46
|
+
minimumIosAppVersion: optionalAppVersion,
|
|
47
|
+
minimumIosAppBuild: optionalIosBuild,
|
|
48
|
+
forceUpdateMessage: zod_1.z.string().max(1000).nullable().optional(),
|
|
42
49
|
runtimeConfig: zod_1.z.object({
|
|
43
50
|
googleWebClientId: zod_1.z.string().max(255).optional(),
|
|
44
51
|
paidAccessActivated: zod_1.z.boolean().optional(),
|
|
@@ -78,8 +85,6 @@ const appSpecsBaseSchema = {
|
|
|
78
85
|
paymentPlansPageSize: zod_1.z.number().int().min(1).max(100).optional(),
|
|
79
86
|
maximumPageSize: zod_1.z.number().int().min(1).max(100).optional(),
|
|
80
87
|
}).optional(),
|
|
81
|
-
minimumAppVersion: zod_1.z.string().max(30).optional(),
|
|
82
|
-
forceUpdateMessage: zod_1.z.string().nullable().optional(),
|
|
83
88
|
}).optional(),
|
|
84
89
|
// Legal Documents
|
|
85
90
|
privacyPolicy: zod_1.z.string().nullable().optional(),
|
|
@@ -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
|
-
role: "RIDER" | "PASSENGER";
|
|
100
|
-
password: string;
|
|
101
98
|
firstName: string;
|
|
102
99
|
lastName: string;
|
|
100
|
+
password: string;
|
|
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
|
-
role: "RIDER" | "PASSENGER";
|
|
122
|
-
password: string;
|
|
123
120
|
firstName: string;
|
|
124
121
|
lastName: string;
|
|
122
|
+
password: string;
|
|
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,11 +359,11 @@ 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
|
-
role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
364
|
-
password: string;
|
|
365
362
|
firstName: string;
|
|
366
363
|
lastName: string;
|
|
364
|
+
password: string;
|
|
365
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
366
|
+
contactValue: string;
|
|
367
367
|
jacketId?: string | undefined;
|
|
368
368
|
plateNumber?: string | undefined;
|
|
369
369
|
gender?: "male" | "female" | undefined;
|
|
@@ -371,11 +371,11 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
371
371
|
birthMonth?: number | undefined;
|
|
372
372
|
birthYear?: number | undefined;
|
|
373
373
|
}, {
|
|
374
|
-
contactValue: string;
|
|
375
|
-
role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
376
|
-
password: string;
|
|
377
374
|
firstName: string;
|
|
378
375
|
lastName: string;
|
|
376
|
+
password: string;
|
|
377
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
378
|
+
contactValue: string;
|
|
379
379
|
jacketId?: string | undefined;
|
|
380
380
|
plateNumber?: string | undefined;
|
|
381
381
|
gender?: "male" | "female" | undefined;
|
|
@@ -385,11 +385,11 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
385
385
|
}>;
|
|
386
386
|
}, "strip", z.ZodTypeAny, {
|
|
387
387
|
body: {
|
|
388
|
-
contactValue: string;
|
|
389
|
-
role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
390
|
-
password: string;
|
|
391
388
|
firstName: string;
|
|
392
389
|
lastName: string;
|
|
390
|
+
password: string;
|
|
391
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
392
|
+
contactValue: string;
|
|
393
393
|
jacketId?: string | undefined;
|
|
394
394
|
plateNumber?: string | undefined;
|
|
395
395
|
gender?: "male" | "female" | undefined;
|
|
@@ -399,11 +399,11 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
399
399
|
};
|
|
400
400
|
}, {
|
|
401
401
|
body: {
|
|
402
|
-
contactValue: string;
|
|
403
|
-
role: "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
404
|
-
password: string;
|
|
405
402
|
firstName: string;
|
|
406
403
|
lastName: string;
|
|
404
|
+
password: string;
|
|
405
|
+
role: "ADMIN" | "PASSENGER" | "RIDER" | "AGENT" | "SUPER_ADMIN";
|
|
406
|
+
contactValue: string;
|
|
407
407
|
jacketId?: string | undefined;
|
|
408
408
|
plateNumber?: string | undefined;
|
|
409
409
|
gender?: "male" | "female" | undefined;
|