Skip to content

Commit

Permalink
feat(Transactions): add transactions import fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Jan 17, 2025
1 parent 0574844 commit 6a9ebf3
Show file tree
Hide file tree
Showing 3 changed files with 352 additions and 188 deletions.
18 changes: 13 additions & 5 deletions src/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ interface CollectiveInterface {
stats: CollectiveStatsType
transactions(type: String, limit: Int, offset: Int, includeExpenseTransactions: Boolean): [Transaction]
expenses(type: String, limit: Int, offset: Int, status: String, includeHostedCollectives: Boolean): [ExpenseType]
@deprecated(reason: "2024-12-13: Please move to GraphQL v2")

"""
The list of expense types supported by this account
Expand Down Expand Up @@ -371,7 +372,7 @@ type OrderType {
"""
Whether this subscription is past due or not
"""
isPastDue: Boolean
isPastDue: Boolean @deprecated(reason: "2024-12-13: Not used, so we stop returning it.")

"""
If there is a subscription, is it active?
Expand Down Expand Up @@ -895,9 +896,9 @@ type ExpenseType {
tags: [String]
status: String
type: String
PayoutMethod: PayoutMethod
PayoutMethod: PayoutMethod @deprecated(reason: "2024-12-13: Please move to GraphQL v2")
privateMessage: String
items: [ExpenseItem]
items: [ExpenseItem] @deprecated(reason: "2024-12-13: Please move to GraphQL v2")
attachedFiles: [ExpenseAttachedFile!]
user: UserDetails
fromCollective: CollectiveInterface
Expand Down Expand Up @@ -1982,7 +1983,7 @@ type CollectiveStatsType {
"""
Breakdown of expenses submitted to this collective by type (ALL/PENDING/APPROVED/PAID/REJECTED)
"""
expenses: ExpensesStatsType
expenses: ExpensesStatsType @deprecated(reason: "2024-12-13: Please move to GraphQL v2")

"""
Number of transactions
Expand Down Expand Up @@ -2295,6 +2296,7 @@ type Collective implements CollectiveInterface {
includeExpenseTransactions: Boolean
): [Transaction]
expenses(type: String, limit: Int, offset: Int, includeHostedCollectives: Boolean, status: String): [ExpenseType]
@deprecated(reason: "2024-12-13: Please move to GraphQL v2")

"""
The list of expense types supported by this account
Expand Down Expand Up @@ -2564,6 +2566,7 @@ type Event implements CollectiveInterface {
includeExpenseTransactions: Boolean
): [Transaction]
expenses(type: String, limit: Int, offset: Int, includeHostedCollectives: Boolean, status: String): [ExpenseType]
@deprecated(reason: "2024-12-13: Please move to GraphQL v2")

"""
The list of expense types supported by this account
Expand Down Expand Up @@ -2833,6 +2836,7 @@ type Fund implements CollectiveInterface {
includeExpenseTransactions: Boolean
): [Transaction]
expenses(type: String, limit: Int, offset: Int, includeHostedCollectives: Boolean, status: String): [ExpenseType]
@deprecated(reason: "2024-12-13: Please move to GraphQL v2")

"""
The list of expense types supported by this account
Expand Down Expand Up @@ -3102,6 +3106,7 @@ type Organization implements CollectiveInterface {
includeExpenseTransactions: Boolean
): [Transaction]
expenses(type: String, limit: Int, offset: Int, includeHostedCollectives: Boolean, status: String): [ExpenseType]
@deprecated(reason: "2024-12-13: Please move to GraphQL v2")

"""
The list of expense types supported by this account
Expand Down Expand Up @@ -3371,6 +3376,7 @@ type Project implements CollectiveInterface {
includeExpenseTransactions: Boolean
): [Transaction]
expenses(type: String, limit: Int, offset: Int, includeHostedCollectives: Boolean, status: String): [ExpenseType]
@deprecated(reason: "2024-12-13: Please move to GraphQL v2")

"""
The list of expense types supported by this account
Expand Down Expand Up @@ -3551,7 +3557,7 @@ type Expense implements Transaction {
paymentMethod: PaymentMethodType
invoiceTemplate: String
description: String
expense: ExpenseType
expense: ExpenseType @deprecated(reason: "2024-12-13: Please move to GraphQL v2")
}

"""
Expand Down Expand Up @@ -3935,6 +3941,7 @@ type User implements CollectiveInterface {
includeExpenseTransactions: Boolean
): [Transaction]
expenses(type: String, limit: Int, offset: Int, includeHostedCollectives: Boolean, status: String): [ExpenseType]
@deprecated(reason: "2024-12-13: Please move to GraphQL v2")

"""
The list of expense types supported by this account
Expand Down Expand Up @@ -4206,6 +4213,7 @@ type Vendor implements CollectiveInterface {
includeExpenseTransactions: Boolean
): [Transaction]
expenses(type: String, limit: Int, offset: Int, includeHostedCollectives: Boolean, status: String): [ExpenseType]
@deprecated(reason: "2024-12-13: Please move to GraphQL v2")

"""
The list of expense types supported by this account
Expand Down
Loading

0 comments on commit 6a9ebf3

Please sign in to comment.