Skip to content

Commit

Permalink
feat: add newly created columns
Browse files Browse the repository at this point in the history
  • Loading branch information
kewitz committed Mar 21, 2024
1 parent 30ac52b commit 6a337d1
Show file tree
Hide file tree
Showing 3 changed files with 423 additions and 10 deletions.
82 changes: 82 additions & 0 deletions src/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,16 @@ interface CollectiveInterface {
Policies for the account. To see non-public policies you need to be admin and have the scope: "account".
"""
policies: Policies!

"""
If created by duplication, the account from which this one was duplicated
"""
duplicatedFromCollective: CollectiveInterface

"""
If this account was duplicated, the accounts that were created from it
"""
duplicatedCollectives(limit: Int! = 100, offset: Int! = 0): CollectiveSearchResults!
}

"""
Expand Down Expand Up @@ -733,6 +743,7 @@ enum OrderStatus {
EXPIRED
DISPUTED
REFUNDED
PAUSED
IN_REVIEW
}

Expand Down Expand Up @@ -2362,6 +2373,16 @@ type Collective implements CollectiveInterface {
contributionPolicy: String
categories: [String]!
policies: Policies!

"""
If created by duplication, the account from which this one was duplicated
"""
duplicatedFromCollective: CollectiveInterface

"""
If this account was duplicated, the accounts that were created from it
"""
duplicatedCollectives(limit: Int! = 100, offset: Int! = 0): CollectiveSearchResults!
}

"""
Expand Down Expand Up @@ -2626,6 +2647,16 @@ type Event implements CollectiveInterface {
contributionPolicy: String
categories: [String]!
policies: Policies!

"""
If created by duplication, the account from which this one was duplicated
"""
duplicatedFromCollective: CollectiveInterface

"""
If this account was duplicated, the accounts that were created from it
"""
duplicatedCollectives(limit: Int! = 100, offset: Int! = 0): CollectiveSearchResults!
}

"""
Expand Down Expand Up @@ -2890,6 +2921,16 @@ type Fund implements CollectiveInterface {
contributionPolicy: String
categories: [String]!
policies: Policies!

"""
If created by duplication, the account from which this one was duplicated
"""
duplicatedFromCollective: CollectiveInterface

"""
If this account was duplicated, the accounts that were created from it
"""
duplicatedCollectives(limit: Int! = 100, offset: Int! = 0): CollectiveSearchResults!
}

"""
Expand Down Expand Up @@ -3154,6 +3195,16 @@ type Organization implements CollectiveInterface {
contributionPolicy: String
categories: [String]!
policies: Policies!

"""
If created by duplication, the account from which this one was duplicated
"""
duplicatedFromCollective: CollectiveInterface

"""
If this account was duplicated, the accounts that were created from it
"""
duplicatedCollectives(limit: Int! = 100, offset: Int! = 0): CollectiveSearchResults!
}

"""
Expand Down Expand Up @@ -3418,6 +3469,16 @@ type Project implements CollectiveInterface {
contributionPolicy: String
categories: [String]!
policies: Policies!

"""
If created by duplication, the account from which this one was duplicated
"""
duplicatedFromCollective: CollectiveInterface

"""
If this account was duplicated, the accounts that were created from it
"""
duplicatedCollectives(limit: Int! = 100, offset: Int! = 0): CollectiveSearchResults!
}

"""
Expand Down Expand Up @@ -3977,6 +4038,16 @@ type User implements CollectiveInterface {
contributionPolicy: String
categories: [String]!
policies: Policies!

"""
If created by duplication, the account from which this one was duplicated
"""
duplicatedFromCollective: CollectiveInterface

"""
If this account was duplicated, the accounts that were created from it
"""
duplicatedCollectives(limit: Int! = 100, offset: Int! = 0): CollectiveSearchResults!
email: String
newsletterOptIn: Boolean
}
Expand Down Expand Up @@ -4244,6 +4315,16 @@ type Vendor implements CollectiveInterface {
categories: [String]!
policies: Policies!

"""
If created by duplication, the account from which this one was duplicated
"""
duplicatedFromCollective: CollectiveInterface

"""
If this account was duplicated, the accounts that were created from it
"""
duplicatedCollectives(limit: Int! = 100, offset: Int! = 0): CollectiveSearchResults!

"""
Returns whether this account has any payout methods saved
"""
Expand Down Expand Up @@ -4756,6 +4837,7 @@ input CollectiveInputType {
isIncognito: Boolean
isActive: Boolean
contributionPolicy: String
vendorInfo: JSON
}

input SocialLinkInput {
Expand Down
Loading

0 comments on commit 6a337d1

Please sign in to comment.