Spaces:
Sleeping
Sleeping
Download src/constants/statuses.js from carpool-team/Carpool: direct link, hf CLI and curl.
- Browser
- Download file 645 Bytes
-
https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/src/constants/statuses.js
- Command line
-
hf download hf://spaces/carpool-team/Carpool/src/constants/statuses.js
-
curl -L -o statuses.js https://huggingface.co/spaces/carpool-team/Carpool/resolve/main/src/constants/statuses.js
645 Bytes
| /** 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, | |
| }; | |