-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: email notification endpoint for distribute-payouts events (#4298)
- Loading branch information
1 parent
d137ddb
commit 3f3ff13
Showing
6 changed files
with
673 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/graphql/distributePayoutsEvents/distributePayoutsEvents.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
query DistributePayoutsEvents( | ||
$where: DistributePayoutsEvent_filter | ||
$orderBy: DistributePayoutsEvent_orderBy | ||
$orderDirection: OrderDirection | ||
$first: Int | ||
$skip: Int | ||
) { | ||
distributePayoutsEvents( | ||
where: $where | ||
orderBy: $orderBy | ||
orderDirection: $orderDirection | ||
first: $first | ||
skip: $skip | ||
) { | ||
txHash | ||
amount | ||
amountUSD | ||
beneficiary | ||
beneficiaryDistributionAmount | ||
beneficiaryDistributionAmountUSD | ||
caller | ||
from | ||
projectId | ||
splitDistributions { | ||
beneficiary | ||
amount | ||
amountUSD | ||
allocator | ||
caller | ||
domain | ||
from | ||
group | ||
id | ||
lockedUntil | ||
percent | ||
preferAddToBalance | ||
preferClaimed | ||
projectId | ||
splitProjectId | ||
terminal | ||
timestamp | ||
txHash | ||
} | ||
distributedAmount | ||
distributedAmountUSD | ||
fee | ||
feeUSD | ||
fundingCycleConfiguration | ||
fundingCycleNumber | ||
id | ||
memo | ||
terminal | ||
timestamp | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export enum ProjectNotification { | ||
ProjectPaid = 'project_paid', | ||
PayoutsDistributed = 'payouts_distributed', | ||
} |
Oops, something went wrong.