Permission renames: - BOOK_APPOINTMENT -> CREATE_EXCHANGE - VIEW_OWN_APPOINTMENTS -> VIEW_OWN_EXCHANGES - CANCEL_OWN_APPOINTMENT -> CANCEL_OWN_EXCHANGE - VIEW_ALL_APPOINTMENTS -> VIEW_ALL_EXCHANGES - CANCEL_ANY_APPOINTMENT -> CANCEL_ANY_EXCHANGE - Add COMPLETE_EXCHANGE permission Model changes: - Delete AppointmentStatus enum - Delete Appointment model Schema changes: - Delete BookingRequest (was for old booking) - Delete AppointmentResponse, PaginatedAppointments - Delete BookableSlot, AvailableSlotsResponse (unused) Constants changes: - Remove appointmentStatuses from shared/constants.json - Merge booking constants into exchange section - Update shared_constants.py and validate_constants.py
47 lines
929 B
JSON
47 lines
929 B
JSON
{
|
|
"roles": {
|
|
"ADMIN": "admin",
|
|
"REGULAR": "regular"
|
|
},
|
|
"inviteStatuses": {
|
|
"READY": "ready",
|
|
"SPENT": "spent",
|
|
"REVOKED": "revoked"
|
|
},
|
|
"exchangeStatuses": {
|
|
"BOOKED": "booked",
|
|
"COMPLETED": "completed",
|
|
"CANCELLED_BY_USER": "cancelled_by_user",
|
|
"CANCELLED_BY_ADMIN": "cancelled_by_admin",
|
|
"NO_SHOW": "no_show"
|
|
},
|
|
"tradeDirections": {
|
|
"BUY": "buy",
|
|
"SELL": "sell"
|
|
},
|
|
"exchange": {
|
|
"slotDurationMinutes": 15,
|
|
"maxAdvanceDays": 30,
|
|
"minAdvanceDays": 1,
|
|
"eurTradeMin": 100,
|
|
"eurTradeMax": 3000,
|
|
"eurTradeIncrement": 20,
|
|
"premiumPercentage": 5,
|
|
"priceRefreshSeconds": 60,
|
|
"priceStalenessSeconds": 300
|
|
},
|
|
"validation": {
|
|
"telegram": {
|
|
"maxLengthAfterAt": 32,
|
|
"mustStartWith": "@"
|
|
},
|
|
"signal": {
|
|
"maxLength": 64
|
|
},
|
|
"nostrNpub": {
|
|
"prefix": "npub1",
|
|
"bech32Words": 52
|
|
}
|
|
}
|
|
}
|
|
|