vr-commons 1.0.172 → 1.0.177

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.
Files changed (101) hide show
  1. package/dist/constants/regex.constants.d.ts +19 -0
  2. package/dist/constants/regex.constants.js +24 -0
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.js +0 -3
  5. package/dist/middlewares/admin/admin.auth.middleware.js +60 -0
  6. package/dist/middlewares/index.d.ts +4 -5
  7. package/dist/middlewares/index.js +11 -14
  8. package/dist/middlewares/shared/auth.admin.middlewares.d.ts +3 -0
  9. package/dist/middlewares/{auth.admin.middlewares.js → shared/auth.admin.middlewares.js} +7 -7
  10. package/dist/middlewares/{account.shared.middlewares.js → shared/shared.account.middleware.js} +8 -8
  11. package/dist/middlewares/{errorHandler.middleware.js → shared/shared.errorHandler.middleware.js} +0 -1
  12. package/dist/middlewares/{auth.users.middlewares.js → users/users.auth.middleware.js} +10 -10
  13. package/dist/utils/{admin.devicePayment.utils.js → admin/admin.devicePayments.utils.js} +0 -1
  14. package/dist/utils/{admin.device.utils.d.ts → admin/admin.devices.utils.d.ts} +1 -1
  15. package/dist/utils/{admin.device.utils.js → admin/admin.devices.utils.js} +11 -12
  16. package/dist/utils/{eventlogs.admin.utils.js → admin/admin.eventLogs.utils.js} +0 -1
  17. package/dist/utils/{hierarchy.utils.js → admin/admin.hierarchy.utils.js} +0 -2
  18. package/dist/utils/{product.utils.d.ts → admin/admin.products.utils.d.ts} +1 -1
  19. package/dist/utils/{systemLog.utils.js → admin/admin.systemLogs.utils.js} +0 -1
  20. package/dist/utils/index.d.ts +16 -18
  21. package/dist/utils/index.js +88 -99
  22. package/dist/utils/{account.utils.js → shared/shared.accounts.utils.js} +0 -1
  23. package/dist/utils/{profiles.utils.d.ts → shared/shared.profiles.utils.d.ts} +2 -1
  24. package/dist/utils/{profiles.utils.js → shared/shared.profiles.utils.js} +3 -2
  25. package/dist/utils/{verification.utils.d.ts → users/users.verification.utils.d.ts} +1 -1
  26. package/dist/utils/{verification.utils.js → users/users.verification.utils.js} +3 -2
  27. package/dist/validations/{admin.devicePayment.validations.js → admin/admin.devicePayments.validations.js} +3 -2
  28. package/dist/validations/{admin.devices.validations.js → admin/admin.devices.validations.js} +4 -5
  29. package/dist/validations/{eventlogs.admin.validations.js → admin/admin.eventLogs.validations.js} +2 -2
  30. package/dist/validations/{admin.installment.validations.js → admin/admin.installments.validations.js} +4 -3
  31. package/dist/validations/{pricings.validations.js → admin/admin.pricings.validations.js} +5 -5
  32. package/dist/validations/{product.validations.js → admin/admin.products.validations.js} +4 -3
  33. package/dist/validations/{users.admin.validations.js → admin/admin.users.validations.js} +13 -13
  34. package/dist/validations/index.d.ts +16 -15
  35. package/dist/validations/index.js +132 -125
  36. package/dist/validations/{account.validations.js → shared/shared.account.validations.js} +7 -7
  37. package/dist/validations/{appSpecs.validations.d.ts → shared/shared.appSpecs.validations.d.ts} +30 -100
  38. package/dist/validations/{appSpecs.validations.js → shared/shared.appSpecs.validations.js} +3 -7
  39. package/dist/validations/{auth.validations.js → shared/shared.auth.validations.js} +6 -6
  40. package/dist/validations/{dateRange.validations.js → shared/shared.dateRanges.validations.js} +5 -5
  41. package/dist/validations/{moderation.validations.js → shared/shared.moderation.validations.js} +24 -25
  42. package/dist/validations/{profiles.validations.js → shared/shared.profiles.validations.js} +22 -21
  43. package/dist/validations/{devices.validations.js → users/users.devices.validations.js} +2 -1
  44. package/package.json +2 -2
  45. package/dist/middlewares/idempotency.middlewares.d.ts +0 -3
  46. package/dist/middlewares/idempotency.middlewares.js +0 -74
  47. package/dist/utils/deviceUtils.d.ts +0 -2
  48. package/dist/utils/deviceUtils.js +0 -21
  49. package/dist/utils/session.utils.d.ts +0 -6
  50. package/dist/utils/session.utils.js +0 -25
  51. package/dist/validations/appeals.validations.d.ts +0 -61
  52. package/dist/validations/appeals.validations.js +0 -31
  53. package/dist/validations/payinstallment.validations.d.ts +0 -56
  54. package/dist/validations/payinstallment.validations.js +0 -23
  55. package/dist/validations/pricing.validations.d.ts +0 -313
  56. package/dist/validations/pricing.validations.js +0 -376
  57. /package/dist/middlewares/{auth.admin.middlewares.d.ts → admin/admin.auth.middleware.d.ts} +0 -0
  58. /package/dist/middlewares/{account.shared.middlewares.d.ts → shared/shared.account.middleware.d.ts} +0 -0
  59. /package/dist/middlewares/{errorHandler.middleware.d.ts → shared/shared.errorHandler.middleware.d.ts} +0 -0
  60. /package/dist/middlewares/{auth.users.middlewares.d.ts → users/users.auth.middleware.d.ts} +0 -0
  61. /package/dist/utils/{bans.utils.d.ts → admin/admin.bans.utils.d.ts} +0 -0
  62. /package/dist/utils/{bans.utils.js → admin/admin.bans.utils.js} +0 -0
  63. /package/dist/utils/{admin.devicePayment.utils.d.ts → admin/admin.devicePayments.utils.d.ts} +0 -0
  64. /package/dist/utils/{eventlogs.admin.utils.d.ts → admin/admin.eventLogs.utils.d.ts} +0 -0
  65. /package/dist/utils/{hierarchy.utils.d.ts → admin/admin.hierarchy.utils.d.ts} +0 -0
  66. /package/dist/utils/{moderation.utils.d.ts → admin/admin.moderation.utils.d.ts} +0 -0
  67. /package/dist/utils/{moderation.utils.js → admin/admin.moderation.utils.js} +0 -0
  68. /package/dist/utils/{product.utils.js → admin/admin.products.utils.js} +0 -0
  69. /package/dist/utils/{suspension.utils.d.ts → admin/admin.suspensions.utils.d.ts} +0 -0
  70. /package/dist/utils/{suspension.utils.js → admin/admin.suspensions.utils.js} +0 -0
  71. /package/dist/utils/{systemLog.utils.d.ts → admin/admin.systemLogs.utils.d.ts} +0 -0
  72. /package/dist/utils/{account.utils.d.ts → shared/shared.accounts.utils.d.ts} +0 -0
  73. /package/dist/utils/{authTokens.utils.d.ts → shared/shared.authTokens.utils.d.ts} +0 -0
  74. /package/dist/utils/{authTokens.utils.js → shared/shared.authTokens.utils.js} +0 -0
  75. /package/dist/utils/{eventLog.utils.d.ts → shared/shared.eventLogs.utils.d.ts} +0 -0
  76. /package/dist/utils/{eventLog.utils.js → shared/shared.eventLogs.utils.js} +0 -0
  77. /package/dist/utils/{response.utils.d.ts → shared/shared.responses.utils.d.ts} +0 -0
  78. /package/dist/utils/{response.utils.js → shared/shared.responses.utils.js} +0 -0
  79. /package/dist/utils/{types.d.ts → shared/shared.types.d.ts} +0 -0
  80. /package/dist/utils/{types.js → shared/shared.types.js} +0 -0
  81. /package/dist/validations/{bans.validations.d.ts → admin/admin.bans.validations.d.ts} +0 -0
  82. /package/dist/validations/{bans.validations.js → admin/admin.bans.validations.js} +0 -0
  83. /package/dist/validations/{admin.devicePayment.validations.d.ts → admin/admin.devicePayments.validations.d.ts} +0 -0
  84. /package/dist/validations/{admin.devices.validations.d.ts → admin/admin.devices.validations.d.ts} +0 -0
  85. /package/dist/validations/{eventlogs.admin.validations.d.ts → admin/admin.eventLogs.validations.d.ts} +0 -0
  86. /package/dist/validations/{admin.installment.validations.d.ts → admin/admin.installments.validations.d.ts} +0 -0
  87. /package/dist/validations/{pricings.validations.d.ts → admin/admin.pricings.validations.d.ts} +0 -0
  88. /package/dist/validations/{product.validations.d.ts → admin/admin.products.validations.d.ts} +0 -0
  89. /package/dist/validations/{suspensions.validations.d.ts → admin/admin.suspensions.validations.d.ts} +0 -0
  90. /package/dist/validations/{suspensions.validations.js → admin/admin.suspensions.validations.js} +0 -0
  91. /package/dist/validations/{users.admin.validations.d.ts → admin/admin.users.validations.d.ts} +0 -0
  92. /package/dist/validations/{account.validations.d.ts → shared/shared.account.validations.d.ts} +0 -0
  93. /package/dist/validations/{auth.validations.d.ts → shared/shared.auth.validations.d.ts} +0 -0
  94. /package/dist/validations/{dateRange.validations.d.ts → shared/shared.dateRanges.validations.d.ts} +0 -0
  95. /package/dist/validations/{moderation.validations.d.ts → shared/shared.moderation.validations.d.ts} +0 -0
  96. /package/dist/validations/{profiles.validations.d.ts → shared/shared.profiles.validations.d.ts} +0 -0
  97. /package/dist/validations/{validate.validations.d.ts → shared/shared.validate.validations.d.ts} +0 -0
  98. /package/dist/validations/{validate.validations.js → shared/shared.validate.validations.js} +0 -0
  99. /package/dist/validations/{devicePaymentPlan.validations.d.ts → users/users.devicePaymentPlans.validations.d.ts} +0 -0
  100. /package/dist/validations/{devicePaymentPlan.validations.js → users/users.devicePaymentPlans.validations.js} +0 -0
  101. /package/dist/validations/{devices.validations.d.ts → users/users.devices.validations.d.ts} +0 -0
@@ -1,120 +1,127 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
17
  exports.activateAppSpecsSchema = exports.getAppSpecsByNameSchema = exports.getActiveAppSpecsSchema = exports.listAppSpecsSchema = exports.updateAppSpecsSchema = exports.createAppSpecsSchema = exports.exportBansSchema = exports.createSuspensionSchema = exports.createBanSchema = exports.extendSuspensionSchema = exports.revokeSuspensionSchema = exports.revokeBanSchema = exports.reviewAppealSchema = exports.listSuspensionsSchema = exports.listPendingAppealsSchema = exports.listBansSchema = exports.getUserBansSchema = exports.getUserSuspensionsSchema = exports.getSuspensionSchema = exports.getUserRestrictionsSchema = exports.getBanSchema = exports.submitSuspensionAppealSchema = exports.submitBanAppealSchema = exports.deactivateAccountSchema = exports.createRiderSchema = exports.updateRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.googleLoginSchema = exports.completePassengerProfileSchema = exports.checkRiderAccountSchema = exports.setRiderPasswordSchema = exports.riderPasswordRegex = exports.passwordRegex = exports.emailRegex = exports.phoneRegex = exports.requestOtpSchema = exports.resendOtpSchema = exports.verifyOtpSchema = exports.registerSchema = exports.refreshTokenSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
4
- exports.enableDevicesSchema = exports.disableDevicesSchema = exports.permanentDeleteDevicesByPairsSchema = exports.makeDevicesPermanentSchema = exports.deleteDevicesByPairsSchema = exports.unlockDevicesSchema = exports.lockDevicesSchema = exports.createDevicePairsSchema = exports.checkAvailabilitySchema = exports.deletePricingSchema = exports.getPricingsSchema = exports.getPricingSchema = exports.updatePricingSchema = exports.createPricingSchema = exports.updateStockSchema = exports.deleteProductSchema = exports.activateProductSchema = exports.deactivateProductSchema = exports.getProductsSchema = exports.getProductSchema = exports.updateProductSchema = exports.createProductSchema = exports.resetPasswordSchema = exports.upgradeToRiderSchema = exports.fireEmployeeSchema = exports.demoteAdminSchema = exports.promoteAdminSchema = exports.hireAdminSchema = exports.getUsersSchema = exports.getUserSchema = exports.deleteUserSchema = exports.updateRiderSchema = exports.updateAdminSchema = exports.registerRiderSchema = exports.riderPasswordSchema = exports.changePasswordSchema = exports.strongPasswordRegex = exports.deleteAccountSchema = exports.verifyPhoneChangeSchema = exports.requestPhoneChangeSchema = exports.updateProfileSchema = exports.getInstallmentsSchema = exports.getInstallmentByIdSchema = exports.payInstallmentSchema = exports.serialRegex = exports.extendSessionSchema = exports.unlockDeviceSchema = exports.getUserPaymentPlanSchema = exports.listUserPaymentPlansSchema = exports.getAppSpecsSchema = void 0;
18
+ exports.enableDevicesSchema = exports.disableDevicesSchema = exports.permanentDeleteDevicesByPairsSchema = exports.makeDevicesPermanentSchema = exports.deleteDevicesByPairsSchema = exports.unlockDevicesSchema = exports.lockDevicesSchema = exports.createDevicePairsSchema = exports.checkAvailabilitySchema = exports.deletePricingSchema = exports.getPricingsSchema = exports.getPricingSchema = exports.updatePricingSchema = exports.createPricingSchema = exports.updateStockSchema = exports.deleteProductSchema = exports.activateProductSchema = exports.deactivateProductSchema = exports.getProductsSchema = exports.getProductSchema = exports.updateProductSchema = exports.createProductSchema = exports.resetPasswordSchema = exports.upgradeToRiderSchema = exports.fireEmployeeSchema = exports.demoteAdminSchema = exports.promoteAdminSchema = exports.hireAdminSchema = exports.getUsersSchema = exports.getUserSchema = exports.deleteUserSchema = exports.updateRiderSchema = exports.updateAdminSchema = exports.getInstallmentsSchema = exports.getInstallmentByIdSchema = exports.payInstallmentSchema = exports.serialRegex = exports.extendSessionSchema = exports.unlockDeviceSchema = exports.getUserPaymentPlanSchema = exports.listUserPaymentPlansSchema = exports.registerRiderSchema = exports.riderPasswordSchema = exports.changePasswordSchema = exports.strongPasswordRegex = exports.deleteAccountSchema = exports.verifyPhoneChangeSchema = exports.requestPhoneChangeSchema = exports.updateProfileSchema = exports.getAppSpecsSchema = void 0;
5
19
  exports.getEventLogSchema = exports.listEventLogsSchema = exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = exports.createPlanSchema = exports.customDeviceResetSchema = exports.triggerDeviceResetSchema = exports.getDevicesSchema = exports.getDeviceSchema = void 0;
6
- var validate_validations_1 = require("./validate.validations");
7
- Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_validations_1.validate; } });
8
- var auth_validations_1 = require("./auth.validations");
9
- Object.defineProperty(exports, "riderLoginSchema", { enumerable: true, get: function () { return auth_validations_1.riderLoginSchema; } });
10
- Object.defineProperty(exports, "forgotPasswordSchema", { enumerable: true, get: function () { return auth_validations_1.forgotPasswordSchema; } });
11
- Object.defineProperty(exports, "userLoginSchema", { enumerable: true, get: function () { return auth_validations_1.userLoginSchema; } });
12
- Object.defineProperty(exports, "refreshTokenSchema", { enumerable: true, get: function () { return auth_validations_1.refreshTokenSchema; } });
13
- Object.defineProperty(exports, "registerSchema", { enumerable: true, get: function () { return auth_validations_1.registerSchema; } });
14
- Object.defineProperty(exports, "verifyOtpSchema", { enumerable: true, get: function () { return auth_validations_1.verifyOtpSchema; } });
15
- Object.defineProperty(exports, "resendOtpSchema", { enumerable: true, get: function () { return auth_validations_1.resendOtpSchema; } });
16
- Object.defineProperty(exports, "requestOtpSchema", { enumerable: true, get: function () { return auth_validations_1.requestOtpSchema; } });
17
- Object.defineProperty(exports, "phoneRegex", { enumerable: true, get: function () { return auth_validations_1.phoneRegex; } });
18
- Object.defineProperty(exports, "emailRegex", { enumerable: true, get: function () { return auth_validations_1.emailRegex; } });
19
- Object.defineProperty(exports, "passwordRegex", { enumerable: true, get: function () { return auth_validations_1.passwordRegex; } });
20
- Object.defineProperty(exports, "riderPasswordRegex", { enumerable: true, get: function () { return auth_validations_1.riderPasswordRegex; } });
21
- Object.defineProperty(exports, "setRiderPasswordSchema", { enumerable: true, get: function () { return auth_validations_1.setRiderPasswordSchema; } });
22
- Object.defineProperty(exports, "checkRiderAccountSchema", { enumerable: true, get: function () { return auth_validations_1.checkRiderAccountSchema; } });
23
- Object.defineProperty(exports, "completePassengerProfileSchema", { enumerable: true, get: function () { return auth_validations_1.completePassengerProfileSchema; } });
24
- Object.defineProperty(exports, "googleLoginSchema", { enumerable: true, get: function () { return auth_validations_1.googleLoginSchema; } });
25
- var profiles_validations_1 = require("./profiles.validations");
26
- // Admin/Super Admin Schema
27
- Object.defineProperty(exports, "createUserSchema", { enumerable: true, get: function () { return profiles_validations_1.createUserSchema; } });
28
- Object.defineProperty(exports, "getUserByIdSchema", { enumerable: true, get: function () { return profiles_validations_1.getUserByIdSchema; } });
29
- Object.defineProperty(exports, "updateUserProfileSchema", { enumerable: true, get: function () { return profiles_validations_1.updateUserProfileSchema; } });
30
- Object.defineProperty(exports, "getAllUsersSchema", { enumerable: true, get: function () { return profiles_validations_1.getAllUsersSchema; } });
31
- // Profile View Schemas
32
- Object.defineProperty(exports, "viewProfileSchema", { enumerable: true, get: function () { return profiles_validations_1.viewProfileSchema; } });
33
- // Passenger Schemas
34
- Object.defineProperty(exports, "passengerSignupSchema", { enumerable: true, get: function () { return profiles_validations_1.passengerSignupSchema; } });
35
- Object.defineProperty(exports, "updatePassengerProfileSchema", { enumerable: true, get: function () { return profiles_validations_1.updatePassengerProfileSchema; } });
36
- // Rider Schemas
37
- Object.defineProperty(exports, "updateRiderProfileSchema", { enumerable: true, get: function () { return profiles_validations_1.updateRiderProfileSchema; } });
38
- Object.defineProperty(exports, "createRiderSchema", { enumerable: true, get: function () { return profiles_validations_1.createRiderSchema; } });
39
- // Account Management Schemas
40
- Object.defineProperty(exports, "deactivateAccountSchema", { enumerable: true, get: function () { return profiles_validations_1.deactivateAccountSchema; } });
41
- var moderation_validations_1 = require("./moderation.validations");
42
- //operations
43
- Object.defineProperty(exports, "submitBanAppealSchema", { enumerable: true, get: function () { return moderation_validations_1.submitBanAppealSchema; } });
44
- Object.defineProperty(exports, "submitSuspensionAppealSchema", { enumerable: true, get: function () { return moderation_validations_1.submitSuspensionAppealSchema; } });
45
- Object.defineProperty(exports, "getBanSchema", { enumerable: true, get: function () { return moderation_validations_1.getBanSchema; } });
46
- Object.defineProperty(exports, "getUserRestrictionsSchema", { enumerable: true, get: function () { return moderation_validations_1.getUserRestrictionsSchema; } });
47
- Object.defineProperty(exports, "getSuspensionSchema", { enumerable: true, get: function () { return moderation_validations_1.getSuspensionSchema; } });
48
- Object.defineProperty(exports, "getUserSuspensionsSchema", { enumerable: true, get: function () { return moderation_validations_1.getUserSuspensionsSchema; } });
49
- Object.defineProperty(exports, "getUserBansSchema", { enumerable: true, get: function () { return moderation_validations_1.getUserBansSchema; } });
50
- //management
51
- Object.defineProperty(exports, "listBansSchema", { enumerable: true, get: function () { return moderation_validations_1.listBansSchema; } });
52
- Object.defineProperty(exports, "listPendingAppealsSchema", { enumerable: true, get: function () { return moderation_validations_1.listPendingAppealsSchema; } });
53
- Object.defineProperty(exports, "listSuspensionsSchema", { enumerable: true, get: function () { return moderation_validations_1.listSuspensionsSchema; } });
54
- Object.defineProperty(exports, "reviewAppealSchema", { enumerable: true, get: function () { return moderation_validations_1.reviewAppealSchema; } });
55
- Object.defineProperty(exports, "revokeBanSchema", { enumerable: true, get: function () { return moderation_validations_1.revokeBanSchema; } });
56
- Object.defineProperty(exports, "revokeSuspensionSchema", { enumerable: true, get: function () { return moderation_validations_1.revokeSuspensionSchema; } });
57
- Object.defineProperty(exports, "extendSuspensionSchema", { enumerable: true, get: function () { return moderation_validations_1.extendSuspensionSchema; } });
58
- Object.defineProperty(exports, "createBanSchema", { enumerable: true, get: function () { return moderation_validations_1.createBanSchema; } });
59
- Object.defineProperty(exports, "createSuspensionSchema", { enumerable: true, get: function () { return moderation_validations_1.createSuspensionSchema; } });
60
- //analytics
61
- Object.defineProperty(exports, "exportBansSchema", { enumerable: true, get: function () { return moderation_validations_1.exportBansSchema; } });
62
- var appSpecs_validations_1 = require("./appSpecs.validations");
63
- Object.defineProperty(exports, "createAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.createAppSpecsSchema; } });
64
- Object.defineProperty(exports, "updateAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.updateAppSpecsSchema; } });
65
- Object.defineProperty(exports, "listAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.listAppSpecsSchema; } });
66
- Object.defineProperty(exports, "getActiveAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.getActiveAppSpecsSchema; } });
67
- Object.defineProperty(exports, "getAppSpecsByNameSchema", { enumerable: true, get: function () { return appSpecs_validations_1.getAppSpecsByNameSchema; } });
68
- Object.defineProperty(exports, "activateAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.activateAppSpecsSchema; } });
69
- Object.defineProperty(exports, "getAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.getAppSpecsSchema; } });
70
- var devicePaymentPlan_validations_1 = require("./devicePaymentPlan.validations");
71
- Object.defineProperty(exports, "listUserPaymentPlansSchema", { enumerable: true, get: function () { return devicePaymentPlan_validations_1.listUserPaymentPlansSchema; } });
72
- Object.defineProperty(exports, "getUserPaymentPlanSchema", { enumerable: true, get: function () { return devicePaymentPlan_validations_1.getUserPaymentPlanSchema; } });
73
- var devices_validations_1 = require("./devices.validations");
74
- Object.defineProperty(exports, "unlockDeviceSchema", { enumerable: true, get: function () { return devices_validations_1.unlockDeviceSchema; } });
75
- Object.defineProperty(exports, "extendSessionSchema", { enumerable: true, get: function () { return devices_validations_1.extendSessionSchema; } });
76
- Object.defineProperty(exports, "serialRegex", { enumerable: true, get: function () { return devices_validations_1.serialRegex; } });
77
- var admin_installment_validations_1 = require("./admin.installment.validations");
78
- Object.defineProperty(exports, "payInstallmentSchema", { enumerable: true, get: function () { return admin_installment_validations_1.payInstallmentSchema; } });
79
- Object.defineProperty(exports, "getInstallmentByIdSchema", { enumerable: true, get: function () { return admin_installment_validations_1.getInstallmentByIdSchema; } });
80
- Object.defineProperty(exports, "getInstallmentsSchema", { enumerable: true, get: function () { return admin_installment_validations_1.getInstallmentsSchema; } });
81
- var account_validations_1 = require("./account.validations");
82
- Object.defineProperty(exports, "updateProfileSchema", { enumerable: true, get: function () { return account_validations_1.updateProfileSchema; } });
83
- Object.defineProperty(exports, "requestPhoneChangeSchema", { enumerable: true, get: function () { return account_validations_1.requestPhoneChangeSchema; } });
84
- Object.defineProperty(exports, "verifyPhoneChangeSchema", { enumerable: true, get: function () { return account_validations_1.verifyPhoneChangeSchema; } });
85
- Object.defineProperty(exports, "deleteAccountSchema", { enumerable: true, get: function () { return account_validations_1.deleteAccountSchema; } });
86
- Object.defineProperty(exports, "strongPasswordRegex", { enumerable: true, get: function () { return account_validations_1.strongPasswordRegex; } });
87
- Object.defineProperty(exports, "changePasswordSchema", { enumerable: true, get: function () { return account_validations_1.changePasswordSchema; } });
88
- Object.defineProperty(exports, "riderPasswordSchema", { enumerable: true, get: function () { return account_validations_1.riderPasswordSchema; } });
89
- Object.defineProperty(exports, "registerRiderSchema", { enumerable: true, get: function () { return account_validations_1.registerRiderSchema; } });
90
- var users_admin_validations_1 = require("./users.admin.validations");
91
- Object.defineProperty(exports, "updateAdminSchema", { enumerable: true, get: function () { return users_admin_validations_1.updateAdminSchema; } });
92
- Object.defineProperty(exports, "updateRiderSchema", { enumerable: true, get: function () { return users_admin_validations_1.updateRiderSchema; } });
93
- Object.defineProperty(exports, "deleteUserSchema", { enumerable: true, get: function () { return users_admin_validations_1.deleteUserSchema; } });
94
- Object.defineProperty(exports, "getUserSchema", { enumerable: true, get: function () { return users_admin_validations_1.getUserSchema; } });
95
- Object.defineProperty(exports, "getUsersSchema", { enumerable: true, get: function () { return users_admin_validations_1.getUsersSchema; } });
96
- Object.defineProperty(exports, "hireAdminSchema", { enumerable: true, get: function () { return users_admin_validations_1.hireAdminSchema; } });
97
- Object.defineProperty(exports, "promoteAdminSchema", { enumerable: true, get: function () { return users_admin_validations_1.promoteAdminSchema; } });
98
- Object.defineProperty(exports, "demoteAdminSchema", { enumerable: true, get: function () { return users_admin_validations_1.demoteAdminSchema; } });
99
- Object.defineProperty(exports, "fireEmployeeSchema", { enumerable: true, get: function () { return users_admin_validations_1.fireEmployeeSchema; } });
100
- Object.defineProperty(exports, "upgradeToRiderSchema", { enumerable: true, get: function () { return users_admin_validations_1.upgradeToRiderSchema; } });
101
- Object.defineProperty(exports, "resetPasswordSchema", { enumerable: true, get: function () { return users_admin_validations_1.resetPasswordSchema; } });
102
- var product_validations_1 = require("./product.validations");
103
- Object.defineProperty(exports, "createProductSchema", { enumerable: true, get: function () { return product_validations_1.createProductSchema; } });
104
- Object.defineProperty(exports, "updateProductSchema", { enumerable: true, get: function () { return product_validations_1.updateProductSchema; } });
105
- Object.defineProperty(exports, "getProductSchema", { enumerable: true, get: function () { return product_validations_1.getProductSchema; } });
106
- Object.defineProperty(exports, "getProductsSchema", { enumerable: true, get: function () { return product_validations_1.getProductsSchema; } });
107
- Object.defineProperty(exports, "deactivateProductSchema", { enumerable: true, get: function () { return product_validations_1.deactivateProductSchema; } });
108
- Object.defineProperty(exports, "activateProductSchema", { enumerable: true, get: function () { return product_validations_1.activateProductSchema; } });
109
- Object.defineProperty(exports, "deleteProductSchema", { enumerable: true, get: function () { return product_validations_1.deleteProductSchema; } });
110
- Object.defineProperty(exports, "updateStockSchema", { enumerable: true, get: function () { return product_validations_1.updateStockSchema; } });
111
- var pricings_validations_1 = require("./pricings.validations");
112
- Object.defineProperty(exports, "createPricingSchema", { enumerable: true, get: function () { return pricings_validations_1.createPricingSchema; } });
113
- Object.defineProperty(exports, "updatePricingSchema", { enumerable: true, get: function () { return pricings_validations_1.updatePricingSchema; } });
114
- Object.defineProperty(exports, "getPricingSchema", { enumerable: true, get: function () { return pricings_validations_1.getPricingSchema; } });
115
- Object.defineProperty(exports, "getPricingsSchema", { enumerable: true, get: function () { return pricings_validations_1.getPricingsSchema; } });
116
- Object.defineProperty(exports, "deletePricingSchema", { enumerable: true, get: function () { return pricings_validations_1.deletePricingSchema; } });
117
- var admin_devices_validations_1 = require("./admin.devices.validations");
20
+ __exportStar(require("../constants/regex.constants"), exports);
21
+ var shared_validate_validations_1 = require("./shared/shared.validate.validations");
22
+ Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return shared_validate_validations_1.validate; } });
23
+ var shared_auth_validations_1 = require("./shared/shared.auth.validations");
24
+ Object.defineProperty(exports, "riderLoginSchema", { enumerable: true, get: function () { return shared_auth_validations_1.riderLoginSchema; } });
25
+ Object.defineProperty(exports, "forgotPasswordSchema", { enumerable: true, get: function () { return shared_auth_validations_1.forgotPasswordSchema; } });
26
+ Object.defineProperty(exports, "userLoginSchema", { enumerable: true, get: function () { return shared_auth_validations_1.userLoginSchema; } });
27
+ Object.defineProperty(exports, "refreshTokenSchema", { enumerable: true, get: function () { return shared_auth_validations_1.refreshTokenSchema; } });
28
+ Object.defineProperty(exports, "registerSchema", { enumerable: true, get: function () { return shared_auth_validations_1.registerSchema; } });
29
+ Object.defineProperty(exports, "verifyOtpSchema", { enumerable: true, get: function () { return shared_auth_validations_1.verifyOtpSchema; } });
30
+ Object.defineProperty(exports, "resendOtpSchema", { enumerable: true, get: function () { return shared_auth_validations_1.resendOtpSchema; } });
31
+ Object.defineProperty(exports, "requestOtpSchema", { enumerable: true, get: function () { return shared_auth_validations_1.requestOtpSchema; } });
32
+ Object.defineProperty(exports, "phoneRegex", { enumerable: true, get: function () { return shared_auth_validations_1.phoneRegex; } });
33
+ Object.defineProperty(exports, "emailRegex", { enumerable: true, get: function () { return shared_auth_validations_1.emailRegex; } });
34
+ Object.defineProperty(exports, "passwordRegex", { enumerable: true, get: function () { return shared_auth_validations_1.passwordRegex; } });
35
+ Object.defineProperty(exports, "riderPasswordRegex", { enumerable: true, get: function () { return shared_auth_validations_1.riderPasswordRegex; } });
36
+ Object.defineProperty(exports, "setRiderPasswordSchema", { enumerable: true, get: function () { return shared_auth_validations_1.setRiderPasswordSchema; } });
37
+ Object.defineProperty(exports, "checkRiderAccountSchema", { enumerable: true, get: function () { return shared_auth_validations_1.checkRiderAccountSchema; } });
38
+ Object.defineProperty(exports, "completePassengerProfileSchema", { enumerable: true, get: function () { return shared_auth_validations_1.completePassengerProfileSchema; } });
39
+ Object.defineProperty(exports, "googleLoginSchema", { enumerable: true, get: function () { return shared_auth_validations_1.googleLoginSchema; } });
40
+ var shared_profiles_validations_1 = require("./shared/shared.profiles.validations");
41
+ Object.defineProperty(exports, "createUserSchema", { enumerable: true, get: function () { return shared_profiles_validations_1.createUserSchema; } });
42
+ Object.defineProperty(exports, "getUserByIdSchema", { enumerable: true, get: function () { return shared_profiles_validations_1.getUserByIdSchema; } });
43
+ Object.defineProperty(exports, "updateUserProfileSchema", { enumerable: true, get: function () { return shared_profiles_validations_1.updateUserProfileSchema; } });
44
+ Object.defineProperty(exports, "getAllUsersSchema", { enumerable: true, get: function () { return shared_profiles_validations_1.getAllUsersSchema; } });
45
+ Object.defineProperty(exports, "viewProfileSchema", { enumerable: true, get: function () { return shared_profiles_validations_1.viewProfileSchema; } });
46
+ Object.defineProperty(exports, "passengerSignupSchema", { enumerable: true, get: function () { return shared_profiles_validations_1.passengerSignupSchema; } });
47
+ Object.defineProperty(exports, "updatePassengerProfileSchema", { enumerable: true, get: function () { return shared_profiles_validations_1.updatePassengerProfileSchema; } });
48
+ Object.defineProperty(exports, "updateRiderProfileSchema", { enumerable: true, get: function () { return shared_profiles_validations_1.updateRiderProfileSchema; } });
49
+ Object.defineProperty(exports, "createRiderSchema", { enumerable: true, get: function () { return shared_profiles_validations_1.createRiderSchema; } });
50
+ Object.defineProperty(exports, "deactivateAccountSchema", { enumerable: true, get: function () { return shared_profiles_validations_1.deactivateAccountSchema; } });
51
+ var shared_moderation_validations_1 = require("./shared/shared.moderation.validations");
52
+ Object.defineProperty(exports, "submitBanAppealSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.submitBanAppealSchema; } });
53
+ Object.defineProperty(exports, "submitSuspensionAppealSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.submitSuspensionAppealSchema; } });
54
+ Object.defineProperty(exports, "getBanSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.getBanSchema; } });
55
+ Object.defineProperty(exports, "getUserRestrictionsSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.getUserRestrictionsSchema; } });
56
+ Object.defineProperty(exports, "getSuspensionSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.getSuspensionSchema; } });
57
+ Object.defineProperty(exports, "getUserSuspensionsSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.getUserSuspensionsSchema; } });
58
+ Object.defineProperty(exports, "getUserBansSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.getUserBansSchema; } });
59
+ Object.defineProperty(exports, "listBansSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.listBansSchema; } });
60
+ Object.defineProperty(exports, "listPendingAppealsSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.listPendingAppealsSchema; } });
61
+ Object.defineProperty(exports, "listSuspensionsSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.listSuspensionsSchema; } });
62
+ Object.defineProperty(exports, "reviewAppealSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.reviewAppealSchema; } });
63
+ Object.defineProperty(exports, "revokeBanSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.revokeBanSchema; } });
64
+ Object.defineProperty(exports, "revokeSuspensionSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.revokeSuspensionSchema; } });
65
+ Object.defineProperty(exports, "extendSuspensionSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.extendSuspensionSchema; } });
66
+ Object.defineProperty(exports, "createBanSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.createBanSchema; } });
67
+ Object.defineProperty(exports, "createSuspensionSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.createSuspensionSchema; } });
68
+ Object.defineProperty(exports, "exportBansSchema", { enumerable: true, get: function () { return shared_moderation_validations_1.exportBansSchema; } });
69
+ var shared_appSpecs_validations_1 = require("./shared/shared.appSpecs.validations");
70
+ Object.defineProperty(exports, "createAppSpecsSchema", { enumerable: true, get: function () { return shared_appSpecs_validations_1.createAppSpecsSchema; } });
71
+ Object.defineProperty(exports, "updateAppSpecsSchema", { enumerable: true, get: function () { return shared_appSpecs_validations_1.updateAppSpecsSchema; } });
72
+ Object.defineProperty(exports, "listAppSpecsSchema", { enumerable: true, get: function () { return shared_appSpecs_validations_1.listAppSpecsSchema; } });
73
+ Object.defineProperty(exports, "getActiveAppSpecsSchema", { enumerable: true, get: function () { return shared_appSpecs_validations_1.getActiveAppSpecsSchema; } });
74
+ Object.defineProperty(exports, "getAppSpecsByNameSchema", { enumerable: true, get: function () { return shared_appSpecs_validations_1.getAppSpecsByNameSchema; } });
75
+ Object.defineProperty(exports, "activateAppSpecsSchema", { enumerable: true, get: function () { return shared_appSpecs_validations_1.activateAppSpecsSchema; } });
76
+ Object.defineProperty(exports, "getAppSpecsSchema", { enumerable: true, get: function () { return shared_appSpecs_validations_1.getAppSpecsSchema; } });
77
+ var shared_account_validations_1 = require("./shared/shared.account.validations");
78
+ Object.defineProperty(exports, "updateProfileSchema", { enumerable: true, get: function () { return shared_account_validations_1.updateProfileSchema; } });
79
+ Object.defineProperty(exports, "requestPhoneChangeSchema", { enumerable: true, get: function () { return shared_account_validations_1.requestPhoneChangeSchema; } });
80
+ Object.defineProperty(exports, "verifyPhoneChangeSchema", { enumerable: true, get: function () { return shared_account_validations_1.verifyPhoneChangeSchema; } });
81
+ Object.defineProperty(exports, "deleteAccountSchema", { enumerable: true, get: function () { return shared_account_validations_1.deleteAccountSchema; } });
82
+ Object.defineProperty(exports, "strongPasswordRegex", { enumerable: true, get: function () { return shared_account_validations_1.strongPasswordRegex; } });
83
+ Object.defineProperty(exports, "changePasswordSchema", { enumerable: true, get: function () { return shared_account_validations_1.changePasswordSchema; } });
84
+ Object.defineProperty(exports, "riderPasswordSchema", { enumerable: true, get: function () { return shared_account_validations_1.riderPasswordSchema; } });
85
+ Object.defineProperty(exports, "registerRiderSchema", { enumerable: true, get: function () { return shared_account_validations_1.registerRiderSchema; } });
86
+ var users_devicePaymentPlans_validations_1 = require("./users/users.devicePaymentPlans.validations");
87
+ Object.defineProperty(exports, "listUserPaymentPlansSchema", { enumerable: true, get: function () { return users_devicePaymentPlans_validations_1.listUserPaymentPlansSchema; } });
88
+ Object.defineProperty(exports, "getUserPaymentPlanSchema", { enumerable: true, get: function () { return users_devicePaymentPlans_validations_1.getUserPaymentPlanSchema; } });
89
+ var users_devices_validations_1 = require("./users/users.devices.validations");
90
+ Object.defineProperty(exports, "unlockDeviceSchema", { enumerable: true, get: function () { return users_devices_validations_1.unlockDeviceSchema; } });
91
+ Object.defineProperty(exports, "extendSessionSchema", { enumerable: true, get: function () { return users_devices_validations_1.extendSessionSchema; } });
92
+ Object.defineProperty(exports, "serialRegex", { enumerable: true, get: function () { return users_devices_validations_1.serialRegex; } });
93
+ var admin_installments_validations_1 = require("./admin/admin.installments.validations");
94
+ Object.defineProperty(exports, "payInstallmentSchema", { enumerable: true, get: function () { return admin_installments_validations_1.payInstallmentSchema; } });
95
+ Object.defineProperty(exports, "getInstallmentByIdSchema", { enumerable: true, get: function () { return admin_installments_validations_1.getInstallmentByIdSchema; } });
96
+ Object.defineProperty(exports, "getInstallmentsSchema", { enumerable: true, get: function () { return admin_installments_validations_1.getInstallmentsSchema; } });
97
+ var admin_users_validations_1 = require("./admin/admin.users.validations");
98
+ Object.defineProperty(exports, "updateAdminSchema", { enumerable: true, get: function () { return admin_users_validations_1.updateAdminSchema; } });
99
+ Object.defineProperty(exports, "updateRiderSchema", { enumerable: true, get: function () { return admin_users_validations_1.updateRiderSchema; } });
100
+ Object.defineProperty(exports, "deleteUserSchema", { enumerable: true, get: function () { return admin_users_validations_1.deleteUserSchema; } });
101
+ Object.defineProperty(exports, "getUserSchema", { enumerable: true, get: function () { return admin_users_validations_1.getUserSchema; } });
102
+ Object.defineProperty(exports, "getUsersSchema", { enumerable: true, get: function () { return admin_users_validations_1.getUsersSchema; } });
103
+ Object.defineProperty(exports, "hireAdminSchema", { enumerable: true, get: function () { return admin_users_validations_1.hireAdminSchema; } });
104
+ Object.defineProperty(exports, "promoteAdminSchema", { enumerable: true, get: function () { return admin_users_validations_1.promoteAdminSchema; } });
105
+ Object.defineProperty(exports, "demoteAdminSchema", { enumerable: true, get: function () { return admin_users_validations_1.demoteAdminSchema; } });
106
+ Object.defineProperty(exports, "fireEmployeeSchema", { enumerable: true, get: function () { return admin_users_validations_1.fireEmployeeSchema; } });
107
+ Object.defineProperty(exports, "upgradeToRiderSchema", { enumerable: true, get: function () { return admin_users_validations_1.upgradeToRiderSchema; } });
108
+ Object.defineProperty(exports, "resetPasswordSchema", { enumerable: true, get: function () { return admin_users_validations_1.resetPasswordSchema; } });
109
+ var admin_products_validations_1 = require("./admin/admin.products.validations");
110
+ Object.defineProperty(exports, "createProductSchema", { enumerable: true, get: function () { return admin_products_validations_1.createProductSchema; } });
111
+ Object.defineProperty(exports, "updateProductSchema", { enumerable: true, get: function () { return admin_products_validations_1.updateProductSchema; } });
112
+ Object.defineProperty(exports, "getProductSchema", { enumerable: true, get: function () { return admin_products_validations_1.getProductSchema; } });
113
+ Object.defineProperty(exports, "getProductsSchema", { enumerable: true, get: function () { return admin_products_validations_1.getProductsSchema; } });
114
+ Object.defineProperty(exports, "deactivateProductSchema", { enumerable: true, get: function () { return admin_products_validations_1.deactivateProductSchema; } });
115
+ Object.defineProperty(exports, "activateProductSchema", { enumerable: true, get: function () { return admin_products_validations_1.activateProductSchema; } });
116
+ Object.defineProperty(exports, "deleteProductSchema", { enumerable: true, get: function () { return admin_products_validations_1.deleteProductSchema; } });
117
+ Object.defineProperty(exports, "updateStockSchema", { enumerable: true, get: function () { return admin_products_validations_1.updateStockSchema; } });
118
+ var admin_pricings_validations_1 = require("./admin/admin.pricings.validations");
119
+ Object.defineProperty(exports, "createPricingSchema", { enumerable: true, get: function () { return admin_pricings_validations_1.createPricingSchema; } });
120
+ Object.defineProperty(exports, "updatePricingSchema", { enumerable: true, get: function () { return admin_pricings_validations_1.updatePricingSchema; } });
121
+ Object.defineProperty(exports, "getPricingSchema", { enumerable: true, get: function () { return admin_pricings_validations_1.getPricingSchema; } });
122
+ Object.defineProperty(exports, "getPricingsSchema", { enumerable: true, get: function () { return admin_pricings_validations_1.getPricingsSchema; } });
123
+ Object.defineProperty(exports, "deletePricingSchema", { enumerable: true, get: function () { return admin_pricings_validations_1.deletePricingSchema; } });
124
+ var admin_devices_validations_1 = require("./admin/admin.devices.validations");
118
125
  Object.defineProperty(exports, "checkAvailabilitySchema", { enumerable: true, get: function () { return admin_devices_validations_1.checkAvailabilitySchema; } });
119
126
  Object.defineProperty(exports, "createDevicePairsSchema", { enumerable: true, get: function () { return admin_devices_validations_1.createDevicePairsSchema; } });
120
127
  Object.defineProperty(exports, "lockDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.lockDevicesSchema; } });
@@ -128,15 +135,15 @@ Object.defineProperty(exports, "getDeviceSchema", { enumerable: true, get: funct
128
135
  Object.defineProperty(exports, "getDevicesSchema", { enumerable: true, get: function () { return admin_devices_validations_1.getDevicesSchema; } });
129
136
  Object.defineProperty(exports, "triggerDeviceResetSchema", { enumerable: true, get: function () { return admin_devices_validations_1.triggerDeviceResetSchema; } });
130
137
  Object.defineProperty(exports, "customDeviceResetSchema", { enumerable: true, get: function () { return admin_devices_validations_1.customDeviceResetSchema; } });
131
- var admin_devicePayment_validations_1 = require("./admin.devicePayment.validations");
132
- Object.defineProperty(exports, "createPlanSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.createPlanSchema; } });
133
- Object.defineProperty(exports, "limitedUpdateSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.limitedUpdateSchema; } });
134
- Object.defineProperty(exports, "getDevicePlanSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.getDevicePlanSchema; } });
135
- Object.defineProperty(exports, "getPlanSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.getPlanSchema; } });
136
- Object.defineProperty(exports, "getUserPlansSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.getUserPlansSchema; } });
137
- Object.defineProperty(exports, "listPlansSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.listPlansSchema; } });
138
- Object.defineProperty(exports, "recordPaymentSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.recordPaymentSchema; } });
139
- Object.defineProperty(exports, "deletePlanSchema", { enumerable: true, get: function () { return admin_devicePayment_validations_1.deletePlanSchema; } });
140
- var eventlogs_admin_validations_1 = require("./eventlogs.admin.validations");
141
- Object.defineProperty(exports, "listEventLogsSchema", { enumerable: true, get: function () { return eventlogs_admin_validations_1.listEventLogsSchema; } });
142
- Object.defineProperty(exports, "getEventLogSchema", { enumerable: true, get: function () { return eventlogs_admin_validations_1.getEventLogSchema; } });
138
+ var admin_devicePayments_validations_1 = require("./admin/admin.devicePayments.validations");
139
+ Object.defineProperty(exports, "createPlanSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.createPlanSchema; } });
140
+ Object.defineProperty(exports, "limitedUpdateSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.limitedUpdateSchema; } });
141
+ Object.defineProperty(exports, "getDevicePlanSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.getDevicePlanSchema; } });
142
+ Object.defineProperty(exports, "getPlanSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.getPlanSchema; } });
143
+ Object.defineProperty(exports, "getUserPlansSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.getUserPlansSchema; } });
144
+ Object.defineProperty(exports, "listPlansSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.listPlansSchema; } });
145
+ Object.defineProperty(exports, "recordPaymentSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.recordPaymentSchema; } });
146
+ Object.defineProperty(exports, "deletePlanSchema", { enumerable: true, get: function () { return admin_devicePayments_validations_1.deletePlanSchema; } });
147
+ var admin_eventLogs_validations_1 = require("./admin/admin.eventLogs.validations");
148
+ Object.defineProperty(exports, "listEventLogsSchema", { enumerable: true, get: function () { return admin_eventLogs_validations_1.listEventLogsSchema; } });
149
+ Object.defineProperty(exports, "getEventLogSchema", { enumerable: true, get: function () { return admin_eventLogs_validations_1.getEventLogSchema; } });
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.registerRiderSchema = exports.riderPasswordSchema = exports.resetPasswordSchema = exports.forgotPasswordSchema = exports.loginSchema = exports.changePasswordSchema = exports.deleteAccountSchema = exports.confirmVerificationSchema = exports.verifyContactSchema = exports.setPrimaryContactSchema = exports.deleteContactSchema = exports.addContactSchema = exports.verifyEmailChangeSchema = exports.verifyPhoneChangeSchema = exports.requestPhoneChangeSchema = exports.changeEmailSchema = exports.updateContactSchema = exports.updateProfileSchema = exports.validateContactValue = exports.detectContactType = exports.strongPasswordRegex = exports.emailRegex = exports.phoneRegex = void 0;
4
- // src/modules/account/validations/account.schema.ts
5
4
  const zod_1 = require("zod");
5
+ const regex_constants_1 = require("../../constants/regex.constants");
6
6
  // ==================== REGEX PATTERNS ====================
7
- exports.phoneRegex = /^\+250(78|79|73|72)[0-9]{7}$/;
8
- exports.emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
9
- const plateRegex = /^R[ABCDEFGHIJKLMNPQRSTUVWXYZ]\s?\d{3}\s?[ABCDEFGHIJKLMNPQRSTUVWXYZ]$/;
10
- exports.strongPasswordRegex = /^(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&#^()_\-+=])[A-Za-z\d@$!%*?&#^()_\-+=]{8,}$/;
7
+ exports.phoneRegex = regex_constants_1.PHONE_NUMBER_REGEX;
8
+ exports.emailRegex = regex_constants_1.EMAIL_ADDRESS_REGEX;
9
+ const plateRegex = regex_constants_1.RWANDA_PLATE_NUMBER_REGEX;
10
+ exports.strongPasswordRegex = regex_constants_1.STRONG_PASSWORD_REGEX;
11
11
  // ==================== CONTACT VALIDATION HELPERS ====================
12
12
  const detectContactType = (value) => {
13
13
  if (!value)
@@ -201,7 +201,7 @@ const isValidBirthDate = (date, month, year) => {
201
201
  exports.riderPasswordSchema = zod_1.z
202
202
  .string()
203
203
  .length(4, "Password must be exactly 4 digits")
204
- .regex(/^\d{4}$/, "Password must contain only digits")
204
+ .regex(regex_constants_1.FOUR_DIGIT_PIN_REGEX, "Password must contain only digits")
205
205
  .refine((password) => {
206
206
  // Check if all 4 digits are the same
207
207
  const uniqueDigits = new Set(password.split("")).size;
@@ -226,7 +226,7 @@ exports.registerRiderSchema = zod_1.z.object({
226
226
  .regex(exports.phoneRegex, "Invalid phone number format. Must be a valid Rwandan phone number (+250...) followed by 7 digits."),
227
227
  jacketId: zod_1.z
228
228
  .string()
229
- .regex(/^JKT-\d{9}$/, "Jacket ID must be in format JKT-XXXXXXXXX")
229
+ .regex(regex_constants_1.JACKET_ID_REGEX, "Jacket ID must be in format JKT-XXXXXXXXX")
230
230
  .optional()
231
231
  .nullable(),
232
232
  plateNumber: zod_1.z
@@ -6,21 +6,10 @@ export declare const createAppSpecsSchema: z.ZodObject<{
6
6
  appDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
7
  appDefaultLanguage: z.ZodDefault<z.ZodString>;
8
8
  appSupportedLanguages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
9
+ developmentBaseUrl: z.ZodString;
10
+ stagingBaseUrl: z.ZodString;
11
+ productionBaseUrl: z.ZodString;
9
12
  runtimeConfig: z.ZodOptional<z.ZodObject<{
10
- apiBaseUrl: z.ZodOptional<z.ZodString>;
11
- apiBaseUrls: z.ZodOptional<z.ZodObject<{
12
- production: z.ZodOptional<z.ZodString>;
13
- staging: z.ZodOptional<z.ZodString>;
14
- develop: z.ZodOptional<z.ZodString>;
15
- }, "strip", z.ZodTypeAny, {
16
- production?: string | undefined;
17
- staging?: string | undefined;
18
- develop?: string | undefined;
19
- }, {
20
- production?: string | undefined;
21
- staging?: string | undefined;
22
- develop?: string | undefined;
23
- }>>;
24
13
  googleWebClientId: z.ZodOptional<z.ZodString>;
25
14
  speedGovernor: z.ZodOptional<z.ZodObject<{
26
15
  isActive: z.ZodBoolean;
@@ -106,12 +95,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
106
95
  minimumAppVersion: z.ZodOptional<z.ZodString>;
107
96
  forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
97
  }, "strip", z.ZodTypeAny, {
109
- apiBaseUrl?: string | undefined;
110
- apiBaseUrls?: {
111
- production?: string | undefined;
112
- staging?: string | undefined;
113
- develop?: string | undefined;
114
- } | undefined;
115
98
  googleWebClientId?: string | undefined;
116
99
  speedGovernor?: {
117
100
  isActive: boolean;
@@ -147,12 +130,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
147
130
  minimumAppVersion?: string | undefined;
148
131
  forceUpdateMessage?: string | null | undefined;
149
132
  }, {
150
- apiBaseUrl?: string | undefined;
151
- apiBaseUrls?: {
152
- production?: string | undefined;
153
- staging?: string | undefined;
154
- develop?: string | undefined;
155
- } | undefined;
156
133
  googleWebClientId?: string | undefined;
157
134
  speedGovernor?: {
158
135
  isActive: boolean;
@@ -221,6 +198,9 @@ export declare const createAppSpecsSchema: z.ZodObject<{
221
198
  appName: string;
222
199
  appDefaultLanguage: string;
223
200
  appSupportedLanguages: string[];
201
+ developmentBaseUrl: string;
202
+ stagingBaseUrl: string;
203
+ productionBaseUrl: string;
224
204
  enableRiderAccess: boolean;
225
205
  enablePassengerAccess: boolean;
226
206
  enableAgentAccess: boolean;
@@ -232,12 +212,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
232
212
  appShortName?: string | null | undefined;
233
213
  appDescription?: string | null | undefined;
234
214
  runtimeConfig?: {
235
- apiBaseUrl?: string | undefined;
236
- apiBaseUrls?: {
237
- production?: string | undefined;
238
- staging?: string | undefined;
239
- develop?: string | undefined;
240
- } | undefined;
241
215
  googleWebClientId?: string | undefined;
242
216
  speedGovernor?: {
243
217
  isActive: boolean;
@@ -296,17 +270,14 @@ export declare const createAppSpecsSchema: z.ZodObject<{
296
270
  maintenanceEndAt?: string | null | undefined;
297
271
  }, {
298
272
  appName: string;
273
+ developmentBaseUrl: string;
274
+ stagingBaseUrl: string;
275
+ productionBaseUrl: string;
299
276
  appShortName?: string | null | undefined;
300
277
  appDescription?: string | null | undefined;
301
278
  appDefaultLanguage?: string | undefined;
302
279
  appSupportedLanguages?: string[] | undefined;
303
280
  runtimeConfig?: {
304
- apiBaseUrl?: string | undefined;
305
- apiBaseUrls?: {
306
- production?: string | undefined;
307
- staging?: string | undefined;
308
- develop?: string | undefined;
309
- } | undefined;
310
281
  googleWebClientId?: string | undefined;
311
282
  speedGovernor?: {
312
283
  isActive: boolean;
@@ -377,6 +348,9 @@ export declare const createAppSpecsSchema: z.ZodObject<{
377
348
  appName: string;
378
349
  appDefaultLanguage: string;
379
350
  appSupportedLanguages: string[];
351
+ developmentBaseUrl: string;
352
+ stagingBaseUrl: string;
353
+ productionBaseUrl: string;
380
354
  enableRiderAccess: boolean;
381
355
  enablePassengerAccess: boolean;
382
356
  enableAgentAccess: boolean;
@@ -388,12 +362,6 @@ export declare const createAppSpecsSchema: z.ZodObject<{
388
362
  appShortName?: string | null | undefined;
389
363
  appDescription?: string | null | undefined;
390
364
  runtimeConfig?: {
391
- apiBaseUrl?: string | undefined;
392
- apiBaseUrls?: {
393
- production?: string | undefined;
394
- staging?: string | undefined;
395
- develop?: string | undefined;
396
- } | undefined;
397
365
  googleWebClientId?: string | undefined;
398
366
  speedGovernor?: {
399
367
  isActive: boolean;
@@ -454,17 +422,14 @@ export declare const createAppSpecsSchema: z.ZodObject<{
454
422
  }, {
455
423
  body: {
456
424
  appName: string;
425
+ developmentBaseUrl: string;
426
+ stagingBaseUrl: string;
427
+ productionBaseUrl: string;
457
428
  appShortName?: string | null | undefined;
458
429
  appDescription?: string | null | undefined;
459
430
  appDefaultLanguage?: string | undefined;
460
431
  appSupportedLanguages?: string[] | undefined;
461
432
  runtimeConfig?: {
462
- apiBaseUrl?: string | undefined;
463
- apiBaseUrls?: {
464
- production?: string | undefined;
465
- staging?: string | undefined;
466
- develop?: string | undefined;
467
- } | undefined;
468
433
  googleWebClientId?: string | undefined;
469
434
  speedGovernor?: {
470
435
  isActive: boolean;
@@ -544,21 +509,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
544
509
  appDescription: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
545
510
  appDefaultLanguage: z.ZodOptional<z.ZodDefault<z.ZodString>>;
546
511
  appSupportedLanguages: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
512
+ developmentBaseUrl: z.ZodOptional<z.ZodString>;
513
+ stagingBaseUrl: z.ZodOptional<z.ZodString>;
514
+ productionBaseUrl: z.ZodOptional<z.ZodString>;
547
515
  runtimeConfig: z.ZodOptional<z.ZodOptional<z.ZodObject<{
548
- apiBaseUrl: z.ZodOptional<z.ZodString>;
549
- apiBaseUrls: z.ZodOptional<z.ZodObject<{
550
- production: z.ZodOptional<z.ZodString>;
551
- staging: z.ZodOptional<z.ZodString>;
552
- develop: z.ZodOptional<z.ZodString>;
553
- }, "strip", z.ZodTypeAny, {
554
- production?: string | undefined;
555
- staging?: string | undefined;
556
- develop?: string | undefined;
557
- }, {
558
- production?: string | undefined;
559
- staging?: string | undefined;
560
- develop?: string | undefined;
561
- }>>;
562
516
  googleWebClientId: z.ZodOptional<z.ZodString>;
563
517
  speedGovernor: z.ZodOptional<z.ZodObject<{
564
518
  isActive: z.ZodBoolean;
@@ -644,12 +598,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
644
598
  minimumAppVersion: z.ZodOptional<z.ZodString>;
645
599
  forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
646
600
  }, "strip", z.ZodTypeAny, {
647
- apiBaseUrl?: string | undefined;
648
- apiBaseUrls?: {
649
- production?: string | undefined;
650
- staging?: string | undefined;
651
- develop?: string | undefined;
652
- } | undefined;
653
601
  googleWebClientId?: string | undefined;
654
602
  speedGovernor?: {
655
603
  isActive: boolean;
@@ -685,12 +633,6 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
685
633
  minimumAppVersion?: string | undefined;
686
634
  forceUpdateMessage?: string | null | undefined;
687
635
  }, {
688
- apiBaseUrl?: string | undefined;
689
- apiBaseUrls?: {
690
- production?: string | undefined;
691
- staging?: string | undefined;
692
- develop?: string | undefined;
693
- } | undefined;
694
636
  googleWebClientId?: string | undefined;
695
637
  speedGovernor?: {
696
638
  isActive: boolean;
@@ -760,13 +702,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
760
702
  appDescription?: string | null | undefined;
761
703
  appDefaultLanguage?: string | undefined;
762
704
  appSupportedLanguages?: string[] | undefined;
705
+ developmentBaseUrl?: string | undefined;
706
+ stagingBaseUrl?: string | undefined;
707
+ productionBaseUrl?: string | undefined;
763
708
  runtimeConfig?: {
764
- apiBaseUrl?: string | undefined;
765
- apiBaseUrls?: {
766
- production?: string | undefined;
767
- staging?: string | undefined;
768
- develop?: string | undefined;
769
- } | undefined;
770
709
  googleWebClientId?: string | undefined;
771
710
  speedGovernor?: {
772
711
  isActive: boolean;
@@ -836,13 +775,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
836
775
  appDescription?: string | null | undefined;
837
776
  appDefaultLanguage?: string | undefined;
838
777
  appSupportedLanguages?: string[] | undefined;
778
+ developmentBaseUrl?: string | undefined;
779
+ stagingBaseUrl?: string | undefined;
780
+ productionBaseUrl?: string | undefined;
839
781
  runtimeConfig?: {
840
- apiBaseUrl?: string | undefined;
841
- apiBaseUrls?: {
842
- production?: string | undefined;
843
- staging?: string | undefined;
844
- develop?: string | undefined;
845
- } | undefined;
846
782
  googleWebClientId?: string | undefined;
847
783
  speedGovernor?: {
848
784
  isActive: boolean;
@@ -914,13 +850,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
914
850
  appDescription?: string | null | undefined;
915
851
  appDefaultLanguage?: string | undefined;
916
852
  appSupportedLanguages?: string[] | undefined;
853
+ developmentBaseUrl?: string | undefined;
854
+ stagingBaseUrl?: string | undefined;
855
+ productionBaseUrl?: string | undefined;
917
856
  runtimeConfig?: {
918
- apiBaseUrl?: string | undefined;
919
- apiBaseUrls?: {
920
- production?: string | undefined;
921
- staging?: string | undefined;
922
- develop?: string | undefined;
923
- } | undefined;
924
857
  googleWebClientId?: string | undefined;
925
858
  speedGovernor?: {
926
859
  isActive: boolean;
@@ -995,13 +928,10 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
995
928
  appDescription?: string | null | undefined;
996
929
  appDefaultLanguage?: string | undefined;
997
930
  appSupportedLanguages?: string[] | undefined;
931
+ developmentBaseUrl?: string | undefined;
932
+ stagingBaseUrl?: string | undefined;
933
+ productionBaseUrl?: string | undefined;
998
934
  runtimeConfig?: {
999
- apiBaseUrl?: string | undefined;
1000
- apiBaseUrls?: {
1001
- production?: string | undefined;
1002
- staging?: string | undefined;
1003
- develop?: string | undefined;
1004
- } | undefined;
1005
935
  googleWebClientId?: string | undefined;
1006
936
  speedGovernor?: {
1007
937
  isActive: boolean;