@@ -599,6 +599,7 @@ export type Mutation = {
599599 /** Refresh the common members from the events. Returns the new common member count */
600600 refreshCommonMembers ?: Maybe < Scalars [ 'Int' ] > ;
601601 executePayouts ?: Maybe < Payout > ;
602+ approvePayout ?: Maybe < Scalars [ 'Boolean' ] > ;
602603 updatePaymentData ?: Maybe < Scalars [ 'Boolean' ] > ;
603604 updatePaymentsCommonId ?: Maybe < Scalars [ 'Boolean' ] > ;
604605 createIntention ?: Maybe < Intention > ;
@@ -620,6 +621,13 @@ export type MutationExecutePayoutsArgs = {
620621} ;
621622
622623
624+ export type MutationApprovePayoutArgs = {
625+ payoutId : Scalars [ 'ID' ] ;
626+ index : Scalars [ 'Int' ] ;
627+ token : Scalars [ 'String' ] ;
628+ } ;
629+
630+
623631export type MutationUpdatePaymentDataArgs = {
624632 id : Scalars [ 'ID' ] ;
625633 trackId ?: Maybe < Scalars [ 'ID' ] > ;
@@ -857,6 +865,42 @@ export type UpdatePaymentDataMutation = (
857865 & Pick < Mutation , 'updatePaymentData' >
858866) ;
859867
868+ export type GetConfirmPayoutDataQueryVariables = Exact < {
869+ payoutId : Scalars [ 'ID' ] ;
870+ } > ;
871+
872+
873+ export type GetConfirmPayoutDataQuery = (
874+ { __typename ?: 'Query' }
875+ & { payout ?: Maybe < (
876+ { __typename ?: 'Payout' }
877+ & Pick < Payout , 'amount' >
878+ & { proposals ?: Maybe < Array < Maybe < (
879+ { __typename ?: 'Proposal' }
880+ & Pick < Proposal , 'id' >
881+ & { description : (
882+ { __typename ?: 'ProposalDescription' }
883+ & Pick < ProposalDescription , 'title' | 'description' >
884+ ) , fundingRequest ?: Maybe < (
885+ { __typename ?: 'ProposalFunding' }
886+ & Pick < ProposalFunding , 'amount' >
887+ ) > }
888+ ) > > > }
889+ ) > }
890+ ) ;
891+
892+ export type ApprovePayoutMutationVariables = Exact < {
893+ payoutId : Scalars [ 'ID' ] ;
894+ token : Scalars [ 'String' ] ;
895+ index : Scalars [ 'Int' ] ;
896+ } > ;
897+
898+
899+ export type ApprovePayoutMutation = (
900+ { __typename ?: 'Mutation' }
901+ & Pick < Mutation , 'approvePayout' >
902+ ) ;
903+
860904export type GetProposalsSelectedForBatchQueryVariables = Exact < {
861905 ids : Array < Scalars [ 'String' ] > | Scalars [ 'String' ] ;
862906} > ;
@@ -1605,6 +1649,81 @@ export function useUpdatePaymentDataMutation(baseOptions?: Apollo.MutationHookOp
16051649export type UpdatePaymentDataMutationHookResult = ReturnType < typeof useUpdatePaymentDataMutation > ;
16061650export type UpdatePaymentDataMutationResult = Apollo . MutationResult < UpdatePaymentDataMutation > ;
16071651export type UpdatePaymentDataMutationOptions = Apollo . BaseMutationOptions < UpdatePaymentDataMutation , UpdatePaymentDataMutationVariables > ;
1652+ export const GetConfirmPayoutDataDocument = gql `
1653+ query GetConfirmPayoutData($payoutId: ID!) {
1654+ payout(id: $payoutId) {
1655+ amount
1656+ proposals {
1657+ id
1658+ description {
1659+ title
1660+ description
1661+ }
1662+ fundingRequest {
1663+ amount
1664+ }
1665+ }
1666+ }
1667+ }
1668+ ` ;
1669+
1670+ /**
1671+ * __useGetConfirmPayoutDataQuery__
1672+ *
1673+ * To run a query within a React component, call `useGetConfirmPayoutDataQuery` and pass it any options that fit your needs.
1674+ * When your component renders, `useGetConfirmPayoutDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
1675+ * you can use to render your UI.
1676+ *
1677+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1678+ *
1679+ * @example
1680+ * const { data, loading, error } = useGetConfirmPayoutDataQuery({
1681+ * variables: {
1682+ * payoutId: // value for 'payoutId'
1683+ * },
1684+ * });
1685+ */
1686+ export function useGetConfirmPayoutDataQuery ( baseOptions : Apollo . QueryHookOptions < GetConfirmPayoutDataQuery , GetConfirmPayoutDataQueryVariables > ) {
1687+ return Apollo . useQuery < GetConfirmPayoutDataQuery , GetConfirmPayoutDataQueryVariables > ( GetConfirmPayoutDataDocument , baseOptions ) ;
1688+ }
1689+ export function useGetConfirmPayoutDataLazyQuery ( baseOptions ?: Apollo . LazyQueryHookOptions < GetConfirmPayoutDataQuery , GetConfirmPayoutDataQueryVariables > ) {
1690+ return Apollo . useLazyQuery < GetConfirmPayoutDataQuery , GetConfirmPayoutDataQueryVariables > ( GetConfirmPayoutDataDocument , baseOptions ) ;
1691+ }
1692+ export type GetConfirmPayoutDataQueryHookResult = ReturnType < typeof useGetConfirmPayoutDataQuery > ;
1693+ export type GetConfirmPayoutDataLazyQueryHookResult = ReturnType < typeof useGetConfirmPayoutDataLazyQuery > ;
1694+ export type GetConfirmPayoutDataQueryResult = Apollo . QueryResult < GetConfirmPayoutDataQuery , GetConfirmPayoutDataQueryVariables > ;
1695+ export const ApprovePayoutDocument = gql `
1696+ mutation ApprovePayout($payoutId: ID!, $token: String!, $index: Int!) {
1697+ approvePayout(payoutId: $payoutId, token: $token, index: $index)
1698+ }
1699+ ` ;
1700+ export type ApprovePayoutMutationFn = Apollo . MutationFunction < ApprovePayoutMutation , ApprovePayoutMutationVariables > ;
1701+
1702+ /**
1703+ * __useApprovePayoutMutation__
1704+ *
1705+ * To run a mutation, you first call `useApprovePayoutMutation` within a React component and pass it any options that fit your needs.
1706+ * When your component renders, `useApprovePayoutMutation` returns a tuple that includes:
1707+ * - A mutate function that you can call at any time to execute the mutation
1708+ * - An object with fields that represent the current status of the mutation's execution
1709+ *
1710+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1711+ *
1712+ * @example
1713+ * const [approvePayoutMutation, { data, loading, error }] = useApprovePayoutMutation({
1714+ * variables: {
1715+ * payoutId: // value for 'payoutId'
1716+ * token: // value for 'token'
1717+ * index: // value for 'index'
1718+ * },
1719+ * });
1720+ */
1721+ export function useApprovePayoutMutation ( baseOptions ?: Apollo . MutationHookOptions < ApprovePayoutMutation , ApprovePayoutMutationVariables > ) {
1722+ return Apollo . useMutation < ApprovePayoutMutation , ApprovePayoutMutationVariables > ( ApprovePayoutDocument , baseOptions ) ;
1723+ }
1724+ export type ApprovePayoutMutationHookResult = ReturnType < typeof useApprovePayoutMutation > ;
1725+ export type ApprovePayoutMutationResult = Apollo . MutationResult < ApprovePayoutMutation > ;
1726+ export type ApprovePayoutMutationOptions = Apollo . BaseMutationOptions < ApprovePayoutMutation , ApprovePayoutMutationVariables > ;
16081727export const GetProposalsSelectedForBatchDocument = gql `
16091728 query getProposalsSelectedForBatch($ids: [String!]!) {
16101729 proposals(ids: $ids) {
0 commit comments