sysadmin can retrieve phone number list from cli
Acceptance Criteria
GIVEN a sysadmin that controls a deployment of signalboost
- WHEN the sysadmin calls
boost list_numbers
from their local dev machine - THEN the signalboost api will return a JSON-formatted list of phone number records
GIVEN the above
- WHEN the sysdamin calls
boost list_numbers -inactive
- THEN the signalboost api will return a JSON-formatted list of phone numbers records with status
PURCHASED
orVERIFIED
GIVEN the above
- WHEN the sysdamin calls
boost list_numbers -active
- THEN the signalboost api will return a JSON-formatted list of phone numbers records with status
PURCHASED
orVERIFIED
Definitions
lists of phone number records are formatted as follows:
{
count: 1,
phoneNumbers:
[
{
phoneNumber: string,
status: string,
twilioSid: string,
}
]
}
Implementation Notes
- this will require adding a
twilioSid
field to thephoneNumber
model- this data should be retrieved and added to all currently existing models
- it should also be written to the DB in
phoneNumberService#purchase
calls
Edited by aguestuser