adds dacId as a config value, for referencing the ICGC DAC id
adds safe parsing to all responses, including for missing types on access and refresh token calls (from PR 457)
adds extended AxiosError classes for 404 and 429 errors
adds functions for all ega API calls needed to support the permissions flow. Adds success/failure returns to these, i'm thinking these can be used in the main ega function to populate a JobReport like we have for the other batch jobs
adds expiresAtUtc to approved apps db query to be used as expires_at value in ApprovePermissionRequest
creates separate functions for retrieving + parsing the approved users list, instead of reusing those for the CSV setup (which has unneeded extra fields). The intention is to remove all the CSV-related code after the new implementation is completed
adds util functions for creating permission-related request objects. These will be used in 454
Types
adds zod types for EGA responses + supporting custom entity types
adds regular ts types for request params, these do not need zod validation
adds safeParseArray utility func to validate items in list responses (thanks @joneubank !)
Adds necessary API calls for permissions flow.
EGA Job
dacId
as a config value, for referencing the ICGC DAC idAxiosError
classes for404
and429
errorsexpiresAtUtc
to approved apps db query to be used asexpires_at
value in ApprovePermissionRequestTypes
safeParseArray
utility func to validate items in list responses (thanks @joneubank !)Result
type forDocumentation
DAC_ID
to.env.example
+README
Dependencies
zod
, bumpstypescript
versionDev testing
userJwt
expiry value