Spaces:
Sleeping
Sleeping
File size: 645 Bytes
de5ba48 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | /** Ride document statuses */
const RIDE_STATUS = {
ACTIVE: 'active',
FILLED: 'filled',
IN_PROGRESS: 'in_progress',
COMPLETED: 'completed',
CANCELLED: 'cancelled',
};
/** Deal (booking) statuses */
const DEAL_STATUS = {
PENDING: 'pending',
CONFIRMED: 'confirmed',
STARTED: 'started',
COMPLETED: 'completed',
CANCELLED: 'cancelled',
};
const ACTIVE_DEAL_STATUSES = [
DEAL_STATUS.PENDING,
DEAL_STATUS.CONFIRMED,
DEAL_STATUS.STARTED,
];
const TERMINAL_DEAL_STATUSES = [DEAL_STATUS.COMPLETED, DEAL_STATUS.CANCELLED];
module.exports = {
RIDE_STATUS,
DEAL_STATUS,
ACTIVE_DEAL_STATUSES,
TERMINAL_DEAL_STATUSES,
};
|