From 1142a002dd8a97bb32c515b1d4a98a449e2201e9 Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Tue, 28 Feb 2023 11:30:34 -0800 Subject: [PATCH] chore: delete old lib --- .../proposals-hooks/__generated__/Proposal.ts | 150 ------------------ 1 file changed, 150 deletions(-) delete mode 100644 libs/governance/src/lib/proposals-hooks/__generated__/Proposal.ts diff --git a/libs/governance/src/lib/proposals-hooks/__generated__/Proposal.ts b/libs/governance/src/lib/proposals-hooks/__generated__/Proposal.ts deleted file mode 100644 index 2c10bb94d..000000000 --- a/libs/governance/src/lib/proposals-hooks/__generated__/Proposal.ts +++ /dev/null @@ -1,150 +0,0 @@ -import * as Types from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import { UpdateNetworkParameterFielsFragmentDoc } from '../../proposals-data-provider/__generated__/Proposals'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type ProposalEventFieldsFragment = { __typename?: 'Proposal', id?: string | null, reference: string, state: Types.ProposalState, rejectionReason?: Types.ProposalRejectionReason | null, errorDetails?: string | null }; - -export type ProposalEventSubscriptionVariables = Types.Exact<{ - partyId: Types.Scalars['ID']; -}>; - - -export type ProposalEventSubscription = { __typename?: 'Subscription', proposals: { __typename?: 'Proposal', id?: string | null, reference: string, state: Types.ProposalState, rejectionReason?: Types.ProposalRejectionReason | null, errorDetails?: string | null } }; - -export type UpdateNetworkParameterProposalFragment = { __typename?: 'Proposal', id?: string | null, state: Types.ProposalState, datetime: any, terms: { __typename?: 'ProposalTerms', enactmentDatetime?: any | null, change: { __typename?: 'NewAsset' } | { __typename?: 'NewFreeform' } | { __typename?: 'NewMarket' } | { __typename?: 'UpdateAsset' } | { __typename?: 'UpdateMarket' } | { __typename?: 'UpdateNetworkParameter', networkParameter: { __typename?: 'NetworkParameter', key: string, value: string } } } }; - -export type OnUpdateNetworkParametersSubscriptionVariables = Types.Exact<{ [key: string]: never; }>; - - -export type OnUpdateNetworkParametersSubscription = { __typename?: 'Subscription', proposals: { __typename?: 'Proposal', id?: string | null, state: Types.ProposalState, datetime: any, terms: { __typename?: 'ProposalTerms', enactmentDatetime?: any | null, change: { __typename?: 'NewAsset' } | { __typename?: 'NewFreeform' } | { __typename?: 'NewMarket' } | { __typename?: 'UpdateAsset' } | { __typename?: 'UpdateMarket' } | { __typename?: 'UpdateNetworkParameter', networkParameter: { __typename?: 'NetworkParameter', key: string, value: string } } } } }; - -export type ProposalOfMarketQueryVariables = Types.Exact<{ - marketId: Types.Scalars['ID']; -}>; - - -export type ProposalOfMarketQuery = { __typename?: 'Query', proposal?: { __typename?: 'Proposal', id?: string | null, terms: { __typename?: 'ProposalTerms', enactmentDatetime?: any | null } } | null }; - -export const ProposalEventFieldsFragmentDoc = gql` - fragment ProposalEventFields on Proposal { - id - reference - state - rejectionReason - errorDetails -} - `; -export const UpdateNetworkParameterProposalFragmentDoc = gql` - fragment UpdateNetworkParameterProposal on Proposal { - id - state - datetime - terms { - enactmentDatetime - change { - ... on UpdateNetworkParameter { - ...UpdateNetworkParameterFiels - } - } - } -} - ${UpdateNetworkParameterFielsFragmentDoc}`; -export const ProposalEventDocument = gql` - subscription ProposalEvent($partyId: ID!) { - proposals(partyId: $partyId) { - ...ProposalEventFields - } -} - ${ProposalEventFieldsFragmentDoc}`; - -/** - * __useProposalEventSubscription__ - * - * To run a query within a React component, call `useProposalEventSubscription` and pass it any options that fit your needs. - * When your component renders, `useProposalEventSubscription` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useProposalEventSubscription({ - * variables: { - * partyId: // value for 'partyId' - * }, - * }); - */ -export function useProposalEventSubscription(baseOptions: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(ProposalEventDocument, options); - } -export type ProposalEventSubscriptionHookResult = ReturnType; -export type ProposalEventSubscriptionResult = Apollo.SubscriptionResult; -export const OnUpdateNetworkParametersDocument = gql` - subscription OnUpdateNetworkParameters { - proposals { - ...UpdateNetworkParameterProposal - } -} - ${UpdateNetworkParameterProposalFragmentDoc}`; - -/** - * __useOnUpdateNetworkParametersSubscription__ - * - * To run a query within a React component, call `useOnUpdateNetworkParametersSubscription` and pass it any options that fit your needs. - * When your component renders, `useOnUpdateNetworkParametersSubscription` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useOnUpdateNetworkParametersSubscription({ - * variables: { - * }, - * }); - */ -export function useOnUpdateNetworkParametersSubscription(baseOptions?: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(OnUpdateNetworkParametersDocument, options); - } -export type OnUpdateNetworkParametersSubscriptionHookResult = ReturnType; -export type OnUpdateNetworkParametersSubscriptionResult = Apollo.SubscriptionResult; -export const ProposalOfMarketDocument = gql` - query ProposalOfMarket($marketId: ID!) { - proposal(id: $marketId) { - id - terms { - enactmentDatetime - } - } -} - `; - -/** - * __useProposalOfMarketQuery__ - * - * To run a query within a React component, call `useProposalOfMarketQuery` and pass it any options that fit your needs. - * When your component renders, `useProposalOfMarketQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @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; - * - * @example - * const { data, loading, error } = useProposalOfMarketQuery({ - * variables: { - * marketId: // value for 'marketId' - * }, - * }); - */ -export function useProposalOfMarketQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ProposalOfMarketDocument, options); - } -export function useProposalOfMarketLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ProposalOfMarketDocument, options); - } -export type ProposalOfMarketQueryHookResult = ReturnType; -export type ProposalOfMarketLazyQueryHookResult = ReturnType; -export type ProposalOfMarketQueryResult = Apollo.QueryResult; \ No newline at end of file