I'm gonna assume the response from /v13/deployments/:id
is the ideal response and compare it to the deployment interfaces responded from other endpoints.
id
isuid
aliasAssignedAt
isaliasAssigned
, note thataliasAssigned
is a boolean field in the ideal responsecreatedAt
is duplicated intocreated
, there're two fields with the same value in there,created
andcreatedAt
- the
creator
field returns two more properties,email
andgithubLogin
readyState
is renamed asstate
, the ideal response here is duplicating it though, thev13/deployments/:id
respond with bothstatus
andreadyState
, they are the same- it's missing a lot of fields, including the ones on aliases
aliasAssignedAt
isaliasAssigned
- the
creator
field returns two more properties as well,email
andgithubLogin
public
field is flippedprivate
fieldownerId
isuserId
- returns
teamId
which the ideal response doesn't (or maybe it'sundefined
instead ofnull
) ready
isreadyAt
- also missing a bunch of fields
I'm creating three separate interfaces due to these differences,
VercelDeployment
(the ideal one),VercelListedDeployment
andVercelLatestDeployment
. This isn't the case for projects though.