diff --git a/server/graphql/schemaV2.graphql b/server/graphql/schemaV2.graphql index 962e54352dd3..b7a4b28f519a 100644 --- a/server/graphql/schemaV2.graphql +++ b/server/graphql/schemaV2.graphql @@ -4244,6 +4244,11 @@ type Contributor { collectiveSlug: String @deprecated(reason: "2024-08-26: Use account.slug instead") account: Account + """ + List of accounts the contributor has contributed to + """ + accountsContributedTo: [Account] + """ Contributor avatar or logo """ @@ -4715,6 +4720,11 @@ enum LastCommentBy { """ HOST_ADMIN + """ + Not a Fiscal Host Admin + """ + NON_HOST_ADMIN + """ Collective Admin """ @@ -14607,6 +14617,51 @@ type Query { id: String! ): Conversation + """ + Get Contributors grouped by their profiles + """ + contributors( + """ + Host hosting the account + """ + account: AccountReferenceInput + + """ + Host hosting the account + """ + host: AccountReferenceInput + limit: Int! = 100 + offset: Int! = 0 + role: [MemberRole] + type: [AccountType] + + """ + Admin only. To filter on the email address of a member, useful to check if a member exists. + """ + email: EmailAddress + + """ + Order of the results + """ + orderBy: ChronologicalOrderInput! = { field: CREATED_AT, direction: ASC } + includeInherited: Boolean = true + ): ContributorCollection! + + """ + Get Contributors grouped by their profiles + """ + contributor( + """ + Contributor Account reference + """ + account: AccountReferenceInput + + """ + Context host to fetch the contributor from + """ + host: AccountReferenceInput + ): Contributor! + """ Get exchange rates from Open Collective """ @@ -14928,6 +14983,36 @@ type Query { """ role: [MemberRole] ): [MemberInvitation] + + """ + Get all members (admins, members, backers, followers) + """ + members( + """ + Host hosting the account + """ + account: AccountReferenceInput + + """ + Host hosting the account + """ + host: AccountReferenceInput + limit: Int! = 100 + offset: Int! = 0 + role: [MemberRole] + accountType: [AccountType] + + """ + Admin only. To filter on the email address of a member, useful to check if a member exists. + """ + email: EmailAddress + + """ + Order of the results + """ + orderBy: ChronologicalOrderInput! = { field: CREATED_AT, direction: ASC } + includeInherited: Boolean = true + ): MemberCollection! order( """ Identifiers to retrieve the Order