Skip to content

Commit

Permalink
Update ODB Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
lucuma-steward[bot] committed Feb 12, 2025
1 parent 8ab8bf7 commit 3d8c533
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2819,6 +2819,9 @@ input ProgramUserPropertiesInput {

"""The user's reported gender."""
gender: Gender

"""Whether the user has data access."""
hasDataAccess: Boolean
}

"""The role a user a plays when assigned to a program."""
Expand All @@ -2832,6 +2835,9 @@ enum ProgramUserRole {
"""Co-Investigator (read-only access)"""
COI_RO

"""External"""
EXTERNAL

"""Staff/Partner Primary Support"""
SUPPORT_PRIMARY

Expand Down Expand Up @@ -2875,6 +2881,9 @@ type ProgramUser {

"""User invitations, if any, associated with this program user."""
invitations: [UserInvitation!]!

"""Has access to data."""
hasDataAccess: Boolean!
}

"""Proper motion component, choose one of the available units"""
Expand Down Expand Up @@ -7486,6 +7495,15 @@ type Query {
"""Metadata for `enum FilterType`"""
filterTypeMeta: [FilterTypeMeta!]!

"""
Obtains a list of program references for which the user with ORCiD `orcidId`
has GOA data-download access privileges. These will be those for which the
user is a ProgramUser of any role with the `hasDataAccess` flag set.
This query is for use by the GOA and will fail for other users.
"""
goaDataDownloadAccess(orcidId: String!): [ProgramReferenceLabel!]!

"""Returns the group indicated by the given groupId, if found."""
group(groupId: GroupId!): Group

Expand Down Expand Up @@ -11050,6 +11068,9 @@ input WhereProgramUser {

"""Matches the gender status."""
gender: WhereOptionEqGender

"""Matches the data access flag."""
hasDataAccess: WhereBoolean
}

"""Proposal filter options. All specified items must match."""
Expand Down

0 comments on commit 3d8c533

Please sign in to comment.