diff --git a/libs/accounts/src/lib/__generated__/Accounts.ts b/libs/accounts/src/lib/__generated__/Accounts.ts deleted file mode 100644 index b45f04ac9..000000000 --- a/libs/accounts/src/lib/__generated__/Accounts.ts +++ /dev/null @@ -1,159 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type AccountFieldsFragment = { __typename?: 'Account', type: Types.AccountType, balance: string, market?: { __typename?: 'Market', id: string } | null, asset: { __typename?: 'Asset', id: string } }; - -export type AccountsQueryVariables = Types.Exact<{ - partyId: Types.Scalars['ID']; -}>; - - -export type AccountsQuery = { __typename?: 'Query', party?: { __typename?: 'Party', id: string, accounts?: Array<{ __typename?: 'Account', type: Types.AccountType, balance: string, market?: { __typename?: 'Market', id: string } | null, asset: { __typename?: 'Asset', id: string } }> | null } | null }; - -export type AccountEventsSubscriptionVariables = Types.Exact<{ - partyId: Types.Scalars['ID']; -}>; - - -export type AccountEventsSubscription = { __typename?: 'Subscription', accounts: Array<{ __typename?: 'AccountUpdate', type: Types.AccountType, balance: string, assetId: string, marketId?: string | null }> }; - -export type AssetsFieldsFragment = { __typename?: 'Asset', id: string, name: string, symbol: string, decimals: number, quantum: string, status: Types.AssetStatus }; - -export type AssetsQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type AssetsQuery = { __typename?: 'Query', assetsConnection?: { __typename?: 'AssetsConnection', edges?: Array<{ __typename?: 'AssetEdge', node: { __typename?: 'Asset', id: string, name: string, symbol: string, decimals: number, quantum: string, status: Types.AssetStatus } } | null> | null } | null }; - -export const AccountFieldsFragmentDoc = gql` - fragment AccountFields on Account { - type - balance - market { - id - } - asset { - id - } -} - `; -export const AssetsFieldsFragmentDoc = gql` - fragment AssetsFields on Asset { - id - name - symbol - decimals - quantum - status -} - `; -export const AccountsDocument = gql` - query Accounts($partyId: ID!) { - party(id: $partyId) { - id - accounts { - ...AccountFields - } - } -} - ${AccountFieldsFragmentDoc}`; - -/** - * __useAccountsQuery__ - * - * To run a query within a React component, call `useAccountsQuery` and pass it any options that fit your needs. - * When your component renders, `useAccountsQuery` 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 } = useAccountsQuery({ - * variables: { - * partyId: // value for 'partyId' - * }, - * }); - */ -export function useAccountsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountsDocument, options); - } -export function useAccountsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountsDocument, options); - } -export type AccountsQueryHookResult = ReturnType; -export type AccountsLazyQueryHookResult = ReturnType; -export type AccountsQueryResult = Apollo.QueryResult; -export const AccountEventsDocument = gql` - subscription AccountEvents($partyId: ID!) { - accounts(partyId: $partyId) { - type - balance - assetId - marketId - } -} - `; - -/** - * __useAccountEventsSubscription__ - * - * To run a query within a React component, call `useAccountEventsSubscription` and pass it any options that fit your needs. - * When your component renders, `useAccountEventsSubscription` 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 } = useAccountEventsSubscription({ - * variables: { - * partyId: // value for 'partyId' - * }, - * }); - */ -export function useAccountEventsSubscription(baseOptions: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(AccountEventsDocument, options); - } -export type AccountEventsSubscriptionHookResult = ReturnType; -export type AccountEventsSubscriptionResult = Apollo.SubscriptionResult; -export const AssetsDocument = gql` - query Assets { - assetsConnection { - edges { - node { - ...AssetsFields - } - } - } -} - ${AssetsFieldsFragmentDoc}`; - -/** - * __useAssetsQuery__ - * - * To run a query within a React component, call `useAssetsQuery` and pass it any options that fit your needs. - * When your component renders, `useAssetsQuery` 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 } = useAssetsQuery({ - * variables: { - * }, - * }); - */ -export function useAssetsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AssetsDocument, options); - } -export function useAssetsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AssetsDocument, options); - } -export type AssetsQueryHookResult = ReturnType; -export type AssetsLazyQueryHookResult = ReturnType; -export type AssetsQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/libs/accounts/src/lib/__generated___/Accounts.ts b/libs/accounts/src/lib/__generated___/Accounts.ts index 77aa6e26a..b45f04ac9 100644 --- a/libs/accounts/src/lib/__generated___/Accounts.ts +++ b/libs/accounts/src/lib/__generated___/Accounts.ts @@ -27,37 +27,37 @@ export type AssetsQueryVariables = Types.Exact<{ [key: string]: never; }>; export type AssetsQuery = { __typename?: 'Query', assetsConnection?: { __typename?: 'AssetsConnection', edges?: Array<{ __typename?: 'AssetEdge', node: { __typename?: 'Asset', id: string, name: string, symbol: string, decimals: number, quantum: string, status: Types.AssetStatus } } | null> | null } | null }; export const AccountFieldsFragmentDoc = gql` - fragment AccountFields on Account { - type - balance - market { - id - } - asset { - id - } - } -`; -export const AssetsFieldsFragmentDoc = gql` - fragment AssetsFields on Asset { + fragment AccountFields on Account { + type + balance + market { id - name - symbol - decimals - quantum - status } -`; + asset { + id + } +} + `; +export const AssetsFieldsFragmentDoc = gql` + fragment AssetsFields on Asset { + id + name + symbol + decimals + quantum + status +} + `; export const AccountsDocument = gql` - query Accounts($partyId: ID!) { - party(id: $partyId) { - id - accounts { - ...AccountFields - } + query Accounts($partyId: ID!) { + party(id: $partyId) { + id + accounts { + ...AccountFields } } -${AccountFieldsFragmentDoc}`; +} + ${AccountFieldsFragmentDoc}`; /** * __useAccountsQuery__ @@ -76,26 +76,26 @@ ${AccountFieldsFragmentDoc}`; * }); */ export function useAccountsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountsDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(AccountsDocument, options); + } export function useAccountsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountsDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(AccountsDocument, options); + } export type AccountsQueryHookResult = ReturnType; export type AccountsLazyQueryHookResult = ReturnType; export type AccountsQueryResult = Apollo.QueryResult; export const AccountEventsDocument = gql` - subscription AccountEvents($partyId: ID!) { - accounts(partyId: $partyId) { - type - balance - assetId - marketId - } + subscription AccountEvents($partyId: ID!) { + accounts(partyId: $partyId) { + type + balance + assetId + marketId } -`; +} + `; /** * __useAccountEventsSubscription__ @@ -114,22 +114,22 @@ export const AccountEventsDocument = gql` * }); */ export function useAccountEventsSubscription(baseOptions: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(AccountEventsDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSubscription(AccountEventsDocument, options); + } export type AccountEventsSubscriptionHookResult = ReturnType; export type AccountEventsSubscriptionResult = Apollo.SubscriptionResult; export const AssetsDocument = gql` - query Assets { - assetsConnection { - edges { - node { - ...AssetsFields - } + query Assets { + assetsConnection { + edges { + node { + ...AssetsFields } } } -${AssetsFieldsFragmentDoc}`; +} + ${AssetsFieldsFragmentDoc}`; /** * __useAssetsQuery__ @@ -147,13 +147,13 @@ ${AssetsFieldsFragmentDoc}`; * }); */ export function useAssetsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AssetsDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(AssetsDocument, options); + } export function useAssetsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AssetsDocument, options); -} + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(AssetsDocument, options); + } export type AssetsQueryHookResult = ReturnType; export type AssetsLazyQueryHookResult = ReturnType; -export type AssetsQueryResult = Apollo.QueryResult; +export type AssetsQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/libs/accounts/src/lib/asset-data-provider.ts b/libs/accounts/src/lib/asset-data-provider.ts index c9159c9f1..7509b61d4 100644 --- a/libs/accounts/src/lib/asset-data-provider.ts +++ b/libs/accounts/src/lib/asset-data-provider.ts @@ -1,9 +1,9 @@ import { makeDataProvider } from '@vegaprotocol/react-helpers'; -import { AssetsDocument } from './__generated__/Accounts'; +import { AssetsDocument } from './__generated___/Accounts'; import type { AssetsQuery, AssetsFieldsFragment, -} from './__generated__/Accounts'; +} from './__generated___/Accounts'; const getData = (responseData: AssetsQuery) => responseData.assetsConnection?.edges diff --git a/libs/accounts/src/lib/index.ts b/libs/accounts/src/lib/index.ts index 86e857552..ded2a6e4c 100644 --- a/libs/accounts/src/lib/index.ts +++ b/libs/accounts/src/lib/index.ts @@ -1,4 +1,4 @@ -export * from './__generated__/Accounts'; +export * from './__generated___/Accounts'; export * from './accounts-data-provider'; export * from './accounts-table'; export * from './asset-balance'; diff --git a/libs/assets/src/lib/__generated__/Asset.ts b/libs/assets/src/lib/__generated__/Asset.ts deleted file mode 100644 index af5f4739a..000000000 --- a/libs/assets/src/lib/__generated__/Asset.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type AssetQueryVariables = Types.Exact<{ - assetId: Types.Scalars['ID']; -}>; - - -export type AssetQuery = { __typename?: 'Query', asset?: { __typename?: 'Asset', id: string, name: string, symbol: string, decimals: number, quantum: string, source: { __typename?: 'BuiltinAsset' } | { __typename?: 'ERC20', contractAddress: string, lifetimeLimit: string, withdrawThreshold: string } } | null }; - - -export const AssetDocument = gql` - query Asset($assetId: ID!) { - asset(id: $assetId) { - id - name - symbol - decimals - quantum - source { - ... on ERC20 { - contractAddress - lifetimeLimit - withdrawThreshold - } - } - } -} - `; - -/** - * __useAssetQuery__ - * - * To run a query within a React component, call `useAssetQuery` and pass it any options that fit your needs. - * When your component renders, `useAssetQuery` 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 } = useAssetQuery({ - * variables: { - * assetId: // value for 'assetId' - * }, - * }); - */ -export function useAssetQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AssetDocument, options); - } -export function useAssetLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AssetDocument, options); - } -export type AssetQueryHookResult = ReturnType; -export type AssetLazyQueryHookResult = ReturnType; -export type AssetQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/libs/assets/src/lib/__generated__/Assets.ts b/libs/assets/src/lib/__generated__/Assets.ts deleted file mode 100644 index a4d53232e..000000000 --- a/libs/assets/src/lib/__generated__/Assets.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type AssetsConnectionQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type AssetsConnectionQuery = { __typename?: 'Query', assetsConnection?: { __typename?: 'AssetsConnection', edges?: Array<{ __typename?: 'AssetEdge', node: { __typename?: 'Asset', id: string, name: string, symbol: string, decimals: number, quantum: string, source: { __typename?: 'BuiltinAsset' } | { __typename?: 'ERC20', contractAddress: string, lifetimeLimit: string, withdrawThreshold: string } } } | null> | null } | null }; - - -export const AssetsConnectionDocument = gql` - query AssetsConnection { - assetsConnection { - edges { - node { - id - name - symbol - decimals - quantum - source { - ... on ERC20 { - contractAddress - lifetimeLimit - withdrawThreshold - } - } - } - } - } -} - `; - -/** - * __useAssetsConnectionQuery__ - * - * To run a query within a React component, call `useAssetsConnectionQuery` and pass it any options that fit your needs. - * When your component renders, `useAssetsConnectionQuery` 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 } = useAssetsConnectionQuery({ - * variables: { - * }, - * }); - */ -export function useAssetsConnectionQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AssetsConnectionDocument, options); - } -export function useAssetsConnectionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AssetsConnectionDocument, options); - } -export type AssetsConnectionQueryHookResult = ReturnType; -export type AssetsConnectionLazyQueryHookResult = ReturnType; -export type AssetsConnectionQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/libs/assets/src/lib/asset-details-dialog.spec.tsx b/libs/assets/src/lib/asset-details-dialog.spec.tsx index a060d9fa6..6e37f24c1 100644 --- a/libs/assets/src/lib/asset-details-dialog.spec.tsx +++ b/libs/assets/src/lib/asset-details-dialog.spec.tsx @@ -1,7 +1,7 @@ import { MockedProvider } from '@apollo/react-testing'; import { render, screen } from '@testing-library/react'; import { AssetDetailsDialog } from './asset-details-dialog'; -import { AssetsConnectionDocument } from './__generated__/Assets'; +import { AssetsConnectionDocument } from './__generated___/Assets'; const mockedData = { data: { diff --git a/libs/assets/src/lib/asset-details-dialog.tsx b/libs/assets/src/lib/asset-details-dialog.tsx index 199f0261e..9ab17b76d 100644 --- a/libs/assets/src/lib/asset-details-dialog.tsx +++ b/libs/assets/src/lib/asset-details-dialog.tsx @@ -9,7 +9,7 @@ import { Splash, Tooltip, } from '@vegaprotocol/ui-toolkit'; -import { useAssetsConnectionQuery } from './__generated__/Assets'; +import { useAssetsConnectionQuery } from './__generated___/Assets'; import type { Schema } from '@vegaprotocol/types'; import create from 'zustand'; diff --git a/libs/assets/src/lib/index.ts b/libs/assets/src/lib/index.ts index e2f715fbc..c07a13583 100644 --- a/libs/assets/src/lib/index.ts +++ b/libs/assets/src/lib/index.ts @@ -1,2 +1,2 @@ -export * from './__generated__/Assets'; +export * from './__generated___/Assets'; export * from './asset-details-dialog'; diff --git a/libs/candles-chart/src/lib/__generated__/Candles.ts b/libs/candles-chart/src/lib/__generated__/Candles.ts deleted file mode 100644 index 7ad5117ac..000000000 --- a/libs/candles-chart/src/lib/__generated__/Candles.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type CandleFieldsFragment = { __typename?: 'Candle', periodStart: string, lastUpdateInPeriod: string, high: string, low: string, open: string, close: string, volume: string }; - -export type CandlesQueryVariables = Types.Exact<{ - marketId: Types.Scalars['ID']; - interval: Types.Interval; - since: Types.Scalars['String']; -}>; - - -export type CandlesQuery = { __typename?: 'Query', market?: { __typename?: 'Market', id: string, decimalPlaces: number, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, code: string } }, candlesConnection?: { __typename?: 'CandleDataConnection', edges?: Array<{ __typename?: 'CandleEdge', node: { __typename?: 'Candle', periodStart: string, lastUpdateInPeriod: string, high: string, low: string, open: string, close: string, volume: string } } | null> | null } | null } | null }; - -export type CandlesEventsSubscriptionVariables = Types.Exact<{ - marketId: Types.Scalars['ID']; - interval: Types.Interval; -}>; - - -export type CandlesEventsSubscription = { __typename?: 'Subscription', candles: { __typename?: 'Candle', periodStart: string, lastUpdateInPeriod: string, high: string, low: string, open: string, close: string, volume: string } }; - -export const CandleFieldsFragmentDoc = gql` - fragment CandleFields on Candle { - periodStart - lastUpdateInPeriod - high - low - open - close - volume -} - `; -export const CandlesDocument = gql` - query Candles($marketId: ID!, $interval: Interval!, $since: String!) { - market(id: $marketId) { - id - decimalPlaces - tradableInstrument { - instrument { - id - name - code - } - } - candlesConnection(interval: $interval, since: $since) { - edges { - node { - ...CandleFields - } - } - } - } -} - ${CandleFieldsFragmentDoc}`; - -/** - * __useCandlesQuery__ - * - * To run a query within a React component, call `useCandlesQuery` and pass it any options that fit your needs. - * When your component renders, `useCandlesQuery` 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 } = useCandlesQuery({ - * variables: { - * marketId: // value for 'marketId' - * interval: // value for 'interval' - * since: // value for 'since' - * }, - * }); - */ -export function useCandlesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(CandlesDocument, options); - } -export function useCandlesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(CandlesDocument, options); - } -export type CandlesQueryHookResult = ReturnType; -export type CandlesLazyQueryHookResult = ReturnType; -export type CandlesQueryResult = Apollo.QueryResult; -export const CandlesEventsDocument = gql` - subscription CandlesEvents($marketId: ID!, $interval: Interval!) { - candles(marketId: $marketId, interval: $interval) { - ...CandleFields - } -} - ${CandleFieldsFragmentDoc}`; - -/** - * __useCandlesEventsSubscription__ - * - * To run a query within a React component, call `useCandlesEventsSubscription` and pass it any options that fit your needs. - * When your component renders, `useCandlesEventsSubscription` 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 } = useCandlesEventsSubscription({ - * variables: { - * marketId: // value for 'marketId' - * interval: // value for 'interval' - * }, - * }); - */ -export function useCandlesEventsSubscription(baseOptions: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(CandlesEventsDocument, options); - } -export type CandlesEventsSubscriptionHookResult = ReturnType; -export type CandlesEventsSubscriptionResult = Apollo.SubscriptionResult; \ No newline at end of file diff --git a/libs/candles-chart/src/lib/__generated__/Chart.ts b/libs/candles-chart/src/lib/__generated__/Chart.ts deleted file mode 100644 index fec36dd6f..000000000 --- a/libs/candles-chart/src/lib/__generated__/Chart.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type ChartQueryVariables = Types.Exact<{ - marketId: Types.Scalars['ID']; -}>; - - -export type ChartQuery = { __typename?: 'Query', market?: { __typename?: 'Market', decimalPlaces: number, data?: { __typename?: 'MarketData', priceMonitoringBounds?: Array<{ __typename?: 'PriceMonitoringBounds', minValidPrice: string, maxValidPrice: string, referencePrice: string }> | null } | null } | null }; - - -export const ChartDocument = gql` - query Chart($marketId: ID!) { - market(id: $marketId) { - decimalPlaces - data { - priceMonitoringBounds { - minValidPrice - maxValidPrice - referencePrice - } - } - } -} - `; - -/** - * __useChartQuery__ - * - * To run a query within a React component, call `useChartQuery` and pass it any options that fit your needs. - * When your component renders, `useChartQuery` 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 } = useChartQuery({ - * variables: { - * marketId: // value for 'marketId' - * }, - * }); - */ -export function useChartQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ChartDocument, options); - } -export function useChartLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ChartDocument, options); - } -export type ChartQueryHookResult = ReturnType; -export type ChartLazyQueryHookResult = ReturnType; -export type ChartQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/libs/candles-chart/src/lib/data-source.ts b/libs/candles-chart/src/lib/data-source.ts index c5a3ce8cc..9c7903902 100644 --- a/libs/candles-chart/src/lib/data-source.ts +++ b/libs/candles-chart/src/lib/data-source.ts @@ -3,19 +3,19 @@ import type { Candle, DataSource } from 'pennant'; import { Interval as PennantInterval } from 'pennant'; import { addDecimal } from '@vegaprotocol/react-helpers'; -import { ChartDocument } from './__generated__/Chart'; -import type { ChartQuery, ChartQueryVariables } from './__generated__/Chart'; +import { ChartDocument } from './__generated___/Chart'; +import type { ChartQuery, ChartQueryVariables } from './__generated___/Chart'; import { CandlesDocument, CandlesEventsDocument, -} from './__generated__/Candles'; +} from './__generated___/Candles'; import type { CandlesQuery, CandlesQueryVariables, CandleFieldsFragment, CandlesEventsSubscription, CandlesEventsSubscriptionVariables, -} from './__generated__/Candles'; +} from './__generated___/Candles'; import type { Subscription } from 'zen-observable-ts'; import { Interval } from '@vegaprotocol/types'; diff --git a/libs/candles-chart/src/lib/index.ts b/libs/candles-chart/src/lib/index.ts index fec9df1f3..b09081938 100644 --- a/libs/candles-chart/src/lib/index.ts +++ b/libs/candles-chart/src/lib/index.ts @@ -1,4 +1,4 @@ -export * from './__generated__/Candles'; -export * from './__generated__/Chart'; +export * from './__generated___/Candles'; +export * from './__generated___/Chart'; export * from './candles-chart'; export * from './data-source'; diff --git a/libs/deal-ticket/src/components/deal-ticket-validation/use-order-validation.tsx b/libs/deal-ticket/src/components/deal-ticket-validation/use-order-validation.tsx index 29743d677..f03abb4ff 100644 --- a/libs/deal-ticket/src/components/deal-ticket-validation/use-order-validation.tsx +++ b/libs/deal-ticket/src/components/deal-ticket-validation/use-order-validation.tsx @@ -15,7 +15,7 @@ import { Tooltip } from '@vegaprotocol/ui-toolkit'; import { ERROR_SIZE_DECIMAL } from './validate-size'; import { MarketDataGrid } from '../trading-mode-tooltip'; import { compileGridData } from '../trading-mode-tooltip/compile-grid-data'; -import type { DealTicketMarketFragment } from '../deal-ticket/__generated__/DealTicket'; +import type { DealTicketMarketFragment } from '../deal-ticket/__generated___/DealTicket'; export const isMarketInAuction = (market: DealTicketMarketFragment) => { return [ diff --git a/libs/deal-ticket/src/components/deal-ticket/__generated__/DealTicket.ts b/libs/deal-ticket/src/components/deal-ticket/__generated__/DealTicket.ts deleted file mode 100644 index 3c8527efb..000000000 --- a/libs/deal-ticket/src/components/deal-ticket/__generated__/DealTicket.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type DealTicketMarketFragment = { __typename?: 'Market', id: string, decimalPlaces: number, positionDecimalPlaces: number, state: Types.MarketState, tradingMode: Types.MarketTradingMode, data?: { __typename?: 'MarketData', indicativePrice: string, indicativeVolume: string, targetStake?: string | null, suppliedStake?: string | null, auctionStart?: string | null, auctionEnd?: string | null, trigger: Types.AuctionTrigger, market: { __typename?: 'Market', id: string } } | null, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, product: { __typename?: 'Future', quoteName: string, settlementAsset: { __typename?: 'Asset', id: string, symbol: string, decimals: number, name: string } } } }, depth: { __typename?: 'MarketDepth', lastTrade?: { __typename?: 'Trade', price: string } | null } }; - -export type DealTicketQueryVariables = Types.Exact<{ - marketId: Types.Scalars['ID']; -}>; - - -export type DealTicketQuery = { __typename?: 'Query', market?: { __typename?: 'Market', id: string, decimalPlaces: number, positionDecimalPlaces: number, state: Types.MarketState, tradingMode: Types.MarketTradingMode, data?: { __typename?: 'MarketData', indicativePrice: string, indicativeVolume: string, targetStake?: string | null, suppliedStake?: string | null, auctionStart?: string | null, auctionEnd?: string | null, trigger: Types.AuctionTrigger, market: { __typename?: 'Market', id: string } } | null, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, product: { __typename?: 'Future', quoteName: string, settlementAsset: { __typename?: 'Asset', id: string, symbol: string, decimals: number, name: string } } } }, depth: { __typename?: 'MarketDepth', lastTrade?: { __typename?: 'Trade', price: string } | null } } | null }; - -export const DealTicketMarketFragmentDoc = gql` - fragment DealTicketMarket on Market { - id - decimalPlaces - positionDecimalPlaces - state - tradingMode - data { - market { - id - } - indicativePrice - indicativeVolume - targetStake - suppliedStake - auctionStart - auctionEnd - trigger - } - tradableInstrument { - instrument { - id - name - product { - ... on Future { - quoteName - settlementAsset { - id - symbol - decimals - name - } - } - } - } - } - depth { - lastTrade { - price - } - } -} - `; -export const DealTicketDocument = gql` - query DealTicket($marketId: ID!) { - market(id: $marketId) { - ...DealTicketMarket - } -} - ${DealTicketMarketFragmentDoc}`; - -/** - * __useDealTicketQuery__ - * - * To run a query within a React component, call `useDealTicketQuery` and pass it any options that fit your needs. - * When your component renders, `useDealTicketQuery` 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 } = useDealTicketQuery({ - * variables: { - * marketId: // value for 'marketId' - * }, - * }); - */ -export function useDealTicketQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(DealTicketDocument, options); - } -export function useDealTicketLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(DealTicketDocument, options); - } -export type DealTicketQueryHookResult = ReturnType; -export type DealTicketLazyQueryHookResult = ReturnType; -export type DealTicketQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/libs/deal-ticket/src/components/deal-ticket/__generated___/DealTicket.ts b/libs/deal-ticket/src/components/deal-ticket/__generated___/DealTicket.ts index 0f67de30d..3c8527efb 100644 --- a/libs/deal-ticket/src/components/deal-ticket/__generated___/DealTicket.ts +++ b/libs/deal-ticket/src/components/deal-ticket/__generated___/DealTicket.ts @@ -3,14 +3,14 @@ import { Schema as Types } from '@vegaprotocol/types'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type DealTicketMarketFragment = { __typename?: 'Market', id: string, decimalPlaces: number, positionDecimalPlaces: number, state: Types.MarketState, tradingMode: Types.MarketTradingMode, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, product: { __typename?: 'Future', quoteName: string, settlementAsset: { __typename?: 'Asset', id: string, symbol: string, name: string } } } }, depth: { __typename?: 'MarketDepth', lastTrade?: { __typename?: 'Trade', price: string } | null } }; +export type DealTicketMarketFragment = { __typename?: 'Market', id: string, decimalPlaces: number, positionDecimalPlaces: number, state: Types.MarketState, tradingMode: Types.MarketTradingMode, data?: { __typename?: 'MarketData', indicativePrice: string, indicativeVolume: string, targetStake?: string | null, suppliedStake?: string | null, auctionStart?: string | null, auctionEnd?: string | null, trigger: Types.AuctionTrigger, market: { __typename?: 'Market', id: string } } | null, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, product: { __typename?: 'Future', quoteName: string, settlementAsset: { __typename?: 'Asset', id: string, symbol: string, decimals: number, name: string } } } }, depth: { __typename?: 'MarketDepth', lastTrade?: { __typename?: 'Trade', price: string } | null } }; export type DealTicketQueryVariables = Types.Exact<{ marketId: Types.Scalars['ID']; }>; -export type DealTicketQuery = { __typename?: 'Query', market?: { __typename?: 'Market', id: string, decimalPlaces: number, positionDecimalPlaces: number, state: Types.MarketState, tradingMode: Types.MarketTradingMode, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, product: { __typename?: 'Future', quoteName: string, settlementAsset: { __typename?: 'Asset', id: string, symbol: string, name: string } } } }, depth: { __typename?: 'MarketDepth', lastTrade?: { __typename?: 'Trade', price: string } | null } } | null }; +export type DealTicketQuery = { __typename?: 'Query', market?: { __typename?: 'Market', id: string, decimalPlaces: number, positionDecimalPlaces: number, state: Types.MarketState, tradingMode: Types.MarketTradingMode, data?: { __typename?: 'MarketData', indicativePrice: string, indicativeVolume: string, targetStake?: string | null, suppliedStake?: string | null, auctionStart?: string | null, auctionEnd?: string | null, trigger: Types.AuctionTrigger, market: { __typename?: 'Market', id: string } } | null, tradableInstrument: { __typename?: 'TradableInstrument', instrument: { __typename?: 'Instrument', id: string, name: string, product: { __typename?: 'Future', quoteName: string, settlementAsset: { __typename?: 'Asset', id: string, symbol: string, decimals: number, name: string } } } }, depth: { __typename?: 'MarketDepth', lastTrade?: { __typename?: 'Trade', price: string } | null } } | null }; export const DealTicketMarketFragmentDoc = gql` fragment DealTicketMarket on Market { @@ -19,6 +19,18 @@ export const DealTicketMarketFragmentDoc = gql` positionDecimalPlaces state tradingMode + data { + market { + id + } + indicativePrice + indicativeVolume + targetStake + suppliedStake + auctionStart + auctionEnd + trigger + } tradableInstrument { instrument { id @@ -29,6 +41,7 @@ export const DealTicketMarketFragmentDoc = gql` settlementAsset { id symbol + decimals name } } diff --git a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-amount.tsx b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-amount.tsx index 007268bc5..e57e1715f 100644 --- a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-amount.tsx +++ b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-amount.tsx @@ -2,7 +2,7 @@ import type { UseFormRegister } from 'react-hook-form'; import type { OrderSubmissionBody } from '@vegaprotocol/wallet'; import { DealTicketMarketAmount } from './deal-ticket-market-amount'; import { DealTicketLimitAmount } from './deal-ticket-limit-amount'; -import type { DealTicketMarketFragment } from './__generated__/DealTicket'; +import type { DealTicketMarketFragment } from './__generated___/DealTicket'; import { Schema } from '@vegaprotocol/types'; export interface DealTicketAmountProps { diff --git a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-container.tsx b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-container.tsx index ad02e48db..1a58988d4 100644 --- a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-container.tsx +++ b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-container.tsx @@ -1,8 +1,8 @@ import { AsyncRenderer, Splash } from '@vegaprotocol/ui-toolkit'; import { DealTicketManager } from './deal-ticket-manager'; import { t } from '@vegaprotocol/react-helpers'; -import { useDealTicketQuery } from './__generated__/DealTicket'; -import type { DealTicketQuery } from './__generated__/DealTicket'; +import { useDealTicketQuery } from './__generated___/DealTicket'; +import type { DealTicketQuery } from './__generated___/DealTicket'; export interface DealTicketContainerProps { marketId: string; diff --git a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-manager.tsx b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-manager.tsx index 65734c522..55271769f 100644 --- a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-manager.tsx +++ b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-manager.tsx @@ -1,7 +1,7 @@ import type { ReactNode } from 'react'; import { VegaTxStatus } from '@vegaprotocol/wallet'; import { DealTicket } from './deal-ticket'; -import type { DealTicketMarketFragment } from './__generated__/DealTicket'; +import type { DealTicketMarketFragment } from './__generated___/DealTicket'; import { useOrderSubmit, OrderFeedback } from '@vegaprotocol/orders'; import { Schema } from '@vegaprotocol/types'; import { Icon, Intent } from '@vegaprotocol/ui-toolkit'; diff --git a/libs/deal-ticket/src/components/deal-ticket/deal-ticket.spec.tsx b/libs/deal-ticket/src/components/deal-ticket/deal-ticket.spec.tsx index 29f16537d..3701ddea6 100644 --- a/libs/deal-ticket/src/components/deal-ticket/deal-ticket.spec.tsx +++ b/libs/deal-ticket/src/components/deal-ticket/deal-ticket.spec.tsx @@ -2,7 +2,7 @@ import { VegaWalletContext } from '@vegaprotocol/wallet'; import { addDecimal } from '@vegaprotocol/react-helpers'; import { fireEvent, render, screen, act } from '@testing-library/react'; import { DealTicket } from './deal-ticket'; -import type { DealTicketMarketFragment } from './__generated__/DealTicket'; +import type { DealTicketMarketFragment } from './__generated___/DealTicket'; import { Schema } from '@vegaprotocol/types'; import type { OrderSubmissionBody } from '@vegaprotocol/wallet'; diff --git a/libs/deal-ticket/src/components/deal-ticket/deal-ticket.tsx b/libs/deal-ticket/src/components/deal-ticket/deal-ticket.tsx index 4dccb5eea..eed0852d1 100644 --- a/libs/deal-ticket/src/components/deal-ticket/deal-ticket.tsx +++ b/libs/deal-ticket/src/components/deal-ticket/deal-ticket.tsx @@ -10,7 +10,7 @@ import { TypeSelector } from './type-selector'; import { SideSelector } from './side-selector'; import { DealTicketAmount } from './deal-ticket-amount'; import { TimeInForceSelector } from './time-in-force-selector'; -import type { DealTicketMarketFragment } from './__generated__/DealTicket'; +import type { DealTicketMarketFragment } from './__generated___/DealTicket'; import { ExpirySelector } from './expiry-selector'; import type { OrderSubmissionBody } from '@vegaprotocol/wallet'; import { OrderTimeInForce, OrderType } from '@vegaprotocol/types'; diff --git a/libs/deal-ticket/src/components/deal-ticket/index.ts b/libs/deal-ticket/src/components/deal-ticket/index.ts index d9f11eae6..aadda9f00 100644 --- a/libs/deal-ticket/src/components/deal-ticket/index.ts +++ b/libs/deal-ticket/src/components/deal-ticket/index.ts @@ -1,4 +1,4 @@ -export * from './__generated__/DealTicket'; +export * from './__generated___/DealTicket'; export * from './deal-ticket-amount'; export * from './deal-ticket-container'; export * from './deal-ticket-limit-amount'; diff --git a/libs/deal-ticket/src/components/trading-mode-tooltip/compile-grid-data.tsx b/libs/deal-ticket/src/components/trading-mode-tooltip/compile-grid-data.tsx index e0ea0f762..0f15ec962 100644 --- a/libs/deal-ticket/src/components/trading-mode-tooltip/compile-grid-data.tsx +++ b/libs/deal-ticket/src/components/trading-mode-tooltip/compile-grid-data.tsx @@ -8,7 +8,7 @@ import Link from 'next/link'; import { MarketTradingMode, AuctionTrigger } from '@vegaprotocol/types'; import type { ReactNode } from 'react'; import type { MarketDataGridProps } from './market-data-grid'; -import type { DealTicketMarketFragment } from '../deal-ticket/__generated__/DealTicket'; +import type { DealTicketMarketFragment } from '../deal-ticket/__generated___/DealTicket'; export const compileGridData = ( market: DealTicketMarketFragment, diff --git a/libs/fills/src/index.ts b/libs/fills/src/index.ts index a7260afe7..e5512697d 100644 --- a/libs/fills/src/index.ts +++ b/libs/fills/src/index.ts @@ -1,4 +1,4 @@ export * from './lib/fills-container'; export * from './lib/use-fills-list'; export * from './lib/fills-data-provider'; -export * from './lib/__generated__/Fills'; +export * from './lib/__generated___/Fills'; diff --git a/libs/fills/src/lib/__generated__/Fills.ts b/libs/fills/src/lib/__generated__/Fills.ts deleted file mode 100644 index de686417a..000000000 --- a/libs/fills/src/lib/__generated__/Fills.ts +++ /dev/null @@ -1,161 +0,0 @@ -import { Schema as Types } from '@vegaprotocol/types'; - -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -const defaultOptions = {} as const; -export type FillFieldsFragment = { __typename?: 'Trade', id: string, createdAt: string, price: string, size: string, buyOrder: string, sellOrder: string, aggressor: Types.Side, market: { __typename?: 'Market', id: string }, buyer: { __typename?: 'Party', id: string }, seller: { __typename?: 'Party', id: string }, buyerFee: { __typename?: 'TradeFee', makerFee: string, infrastructureFee: string, liquidityFee: string }, sellerFee: { __typename?: 'TradeFee', makerFee: string, infrastructureFee: string, liquidityFee: string } }; - -export type FillEdgeFragment = { __typename?: 'TradeEdge', cursor: string, node: { __typename?: 'Trade', id: string, createdAt: string, price: string, size: string, buyOrder: string, sellOrder: string, aggressor: Types.Side, market: { __typename?: 'Market', id: string }, buyer: { __typename?: 'Party', id: string }, seller: { __typename?: 'Party', id: string }, buyerFee: { __typename?: 'TradeFee', makerFee: string, infrastructureFee: string, liquidityFee: string }, sellerFee: { __typename?: 'TradeFee', makerFee: string, infrastructureFee: string, liquidityFee: string } } }; - -export type FillsQueryVariables = Types.Exact<{ - partyId: Types.Scalars['ID']; - marketId?: Types.InputMaybe; - pagination?: Types.InputMaybe; -}>; - - -export type FillsQuery = { __typename?: 'Query', party?: { __typename?: 'Party', id: string, tradesConnection?: { __typename?: 'TradeConnection', edges: Array<{ __typename?: 'TradeEdge', cursor: string, node: { __typename?: 'Trade', id: string, createdAt: string, price: string, size: string, buyOrder: string, sellOrder: string, aggressor: Types.Side, market: { __typename?: 'Market', id: string }, buyer: { __typename?: 'Party', id: string }, seller: { __typename?: 'Party', id: string }, buyerFee: { __typename?: 'TradeFee', makerFee: string, infrastructureFee: string, liquidityFee: string }, sellerFee: { __typename?: 'TradeFee', makerFee: string, infrastructureFee: string, liquidityFee: string } } }>, pageInfo: { __typename?: 'PageInfo', startCursor: string, endCursor: string, hasNextPage: boolean, hasPreviousPage: boolean } } | null } | null }; - -export type FillsEventSubscriptionVariables = Types.Exact<{ - partyId: Types.Scalars['ID']; -}>; - - -export type FillsEventSubscription = { __typename?: 'Subscription', trades?: Array<{ __typename?: 'TradeUpdate', id: string, marketId: string, buyOrder: string, sellOrder: string, buyerId: string, sellerId: string, aggressor: Types.Side, price: string, size: string, createdAt: string, type: Types.TradeType, buyerFee: { __typename?: 'TradeFee', makerFee: string, infrastructureFee: string, liquidityFee: string }, sellerFee: { __typename?: 'TradeFee', makerFee: string, infrastructureFee: string, liquidityFee: string } }> | null }; - -export const FillFieldsFragmentDoc = gql` - fragment FillFields on Trade { - id - market { - id - } - createdAt - price - size - buyOrder - sellOrder - aggressor - buyer { - id - } - seller { - id - } - buyerFee { - makerFee - infrastructureFee - liquidityFee - } - sellerFee { - makerFee - infrastructureFee - liquidityFee - } -} - `; -export const FillEdgeFragmentDoc = gql` - fragment FillEdge on TradeEdge { - node { - ...FillFields - } - cursor -} - ${FillFieldsFragmentDoc}`; -export const FillsDocument = gql` - query Fills($partyId: ID!, $marketId: ID, $pagination: Pagination) { - party(id: $partyId) { - id - tradesConnection(marketId: $marketId, pagination: $pagination) { - edges { - ...FillEdge - } - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - } - } -} - ${FillEdgeFragmentDoc}`; - -/** - * __useFillsQuery__ - * - * To run a query within a React component, call `useFillsQuery` and pass it any options that fit your needs. - * When your component renders, `useFillsQuery` 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 } = useFillsQuery({ - * variables: { - * partyId: // value for 'partyId' - * marketId: // value for 'marketId' - * pagination: // value for 'pagination' - * }, - * }); - */ -export function useFillsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(FillsDocument, options); - } -export function useFillsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(FillsDocument, options); - } -export type FillsQueryHookResult = ReturnType; -export type FillsLazyQueryHookResult = ReturnType; -export type FillsQueryResult = Apollo.QueryResult; -export const FillsEventDocument = gql` - subscription FillsEvent($partyId: ID!) { - trades(partyId: $partyId) { - id - marketId - buyOrder - sellOrder - buyerId - sellerId - aggressor - price - size - createdAt - type - buyerFee { - makerFee - infrastructureFee - liquidityFee - } - sellerFee { - makerFee - infrastructureFee - liquidityFee - } - } -} - `; - -/** - * __useFillsEventSubscription__ - * - * To run a query within a React component, call `useFillsEventSubscription` and pass it any options that fit your needs. - * When your component renders, `useFillsEventSubscription` 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 } = useFillsEventSubscription({ - * variables: { - * partyId: // value for 'partyId' - * }, - * }); - */ -export function useFillsEventSubscription(baseOptions: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(FillsEventDocument, options); - } -export type FillsEventSubscriptionHookResult = ReturnType; -export type FillsEventSubscriptionResult = Apollo.SubscriptionResult; \ No newline at end of file diff --git a/libs/fills/src/lib/fills-data-provider.ts b/libs/fills/src/lib/fills-data-provider.ts index 346d8329c..2a2218de5 100644 --- a/libs/fills/src/lib/fills-data-provider.ts +++ b/libs/fills/src/lib/fills-data-provider.ts @@ -8,13 +8,13 @@ import { import type { Market } from '@vegaprotocol/market-list'; import { marketsProvider } from '@vegaprotocol/market-list'; import type { PageInfo } from '@vegaprotocol/react-helpers'; -import { FillsDocument, FillsEventDocument } from './__generated__/Fills'; +import { FillsDocument, FillsEventDocument } from './__generated___/Fills'; import type { FillsQuery, FillFieldsFragment, FillEdgeFragment, FillsEventSubscription, -} from './__generated__/Fills'; +} from './__generated___/Fills'; const update = ( data: FillEdgeFragment[] | null, diff --git a/libs/react-helpers/src/lib/__generated___/ChainId.ts b/libs/react-helpers/src/lib/__generated___/ChainId.ts index 365810340..f175f78d1 100644 --- a/libs/react-helpers/src/lib/__generated___/ChainId.ts +++ b/libs/react-helpers/src/lib/__generated___/ChainId.ts @@ -1,4 +1,4 @@ -import { Schema as Types} from '@vegaprotocol/types'; +import { Schema as Types } from '@vegaprotocol/types'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; diff --git a/libs/types/.env b/libs/types/.env index 7607da6a5..d7698de3b 100644 --- a/libs/types/.env +++ b/libs/types/.env @@ -1 +1 @@ -GRAPHQL_SCHEMA_PATH=https://api.n04.d.vega.xyz/graphql +GRAPHQL_SCHEMA_PATH=https://api.n11.testnet.vega.xyz/graphql diff --git a/libs/types/src/__generated__/types.ts b/libs/types/src/__generated__/types.ts index fab33fca8..8aa0bf96c 100644 --- a/libs/types/src/__generated__/types.ts +++ b/libs/types/src/__generated__/types.ts @@ -3625,7 +3625,7 @@ export type QuerypartiesConnectionArgs = { /** Queries allow a caller to read data and filter data via GraphQL. */ export type QuerypartyArgs = { - id?: InputMaybe; + id: Scalars['ID']; };