- Add AppointmentStatus enum (booked, cancelled_by_user, cancelled_by_admin) - Add booking permissions for regular users (book_appointment, view_own_appointments, cancel_own_appointment) - Add availability/appointments permissions for admin (manage_availability, view_all_appointments, cancel_any_appointment) - Add booking constants to shared/constants.json (slotDurationMinutes, maxAdvanceDays, minAdvanceDays, noteMaxLength) - Update validate_constants.py to validate new sections
36 lines
665 B
JSON
36 lines
665 B
JSON
{
|
|
"roles": {
|
|
"ADMIN": "admin",
|
|
"REGULAR": "regular"
|
|
},
|
|
"inviteStatuses": {
|
|
"READY": "ready",
|
|
"SPENT": "spent",
|
|
"REVOKED": "revoked"
|
|
},
|
|
"appointmentStatuses": {
|
|
"BOOKED": "booked",
|
|
"CANCELLED_BY_USER": "cancelled_by_user",
|
|
"CANCELLED_BY_ADMIN": "cancelled_by_admin"
|
|
},
|
|
"booking": {
|
|
"slotDurationMinutes": 15,
|
|
"maxAdvanceDays": 30,
|
|
"minAdvanceDays": 1,
|
|
"noteMaxLength": 144
|
|
},
|
|
"validation": {
|
|
"telegram": {
|
|
"maxLengthAfterAt": 32,
|
|
"mustStartWith": "@"
|
|
},
|
|
"signal": {
|
|
"maxLength": 64
|
|
},
|
|
"nostrNpub": {
|
|
"prefix": "npub1",
|
|
"bech32Words": 52
|
|
}
|
|
}
|
|
}
|
|
|