diff --git a/libs/deal-ticket/src/components/__generated__/MarketNames.ts b/libs/deal-ticket/src/components/__generated__/MarketNames.ts index ff4d9a956..2247947f9 100644 --- a/libs/deal-ticket/src/components/__generated__/MarketNames.ts +++ b/libs/deal-ticket/src/components/__generated__/MarketNames.ts @@ -64,7 +64,7 @@ export interface MarketNames_markets { */ state: MarketState; /** - * An instance of or reference to a tradable instrument. + * An instance of, or reference to, a tradable instrument. */ tradableInstrument: MarketNames_markets_tradableInstrument; } diff --git a/libs/environment/src/hooks/mocks/apollo-client.tsx b/libs/environment/src/hooks/mocks/apollo-client.tsx index f8cb80947..e1642613a 100644 --- a/libs/environment/src/hooks/mocks/apollo-client.tsx +++ b/libs/environment/src/hooks/mocks/apollo-client.tsx @@ -23,7 +23,7 @@ export const getMockBusEventsResult = (): BlockTime => ({ busEvents: [ { __typename: 'BusEvent', - id: '0', + eventId: '0', }, ], }); diff --git a/libs/environment/src/utils/__generated__/BlockTime.ts b/libs/environment/src/utils/__generated__/BlockTime.ts index 4d8697142..40fa9807b 100644 --- a/libs/environment/src/utils/__generated__/BlockTime.ts +++ b/libs/environment/src/utils/__generated__/BlockTime.ts @@ -12,7 +12,7 @@ export interface BlockTime_busEvents { /** * the ID for this event */ - id: string; + eventId: string; } export interface BlockTime { diff --git a/libs/environment/src/utils/request-node.ts b/libs/environment/src/utils/request-node.ts index 0ceb3e4b7..522c5abc1 100644 --- a/libs/environment/src/utils/request-node.ts +++ b/libs/environment/src/utils/request-node.ts @@ -14,7 +14,7 @@ export const STATS_QUERY = gql` export const TIME_UPDATE_SUBSCRIPTION = gql` subscription BlockTime { busEvents(types: TimeUpdate, batchSize: 1) { - id + eventId } } `; diff --git a/libs/market-list/src/lib/__generated__/MarketList.ts b/libs/market-list/src/lib/__generated__/MarketList.ts index b00f798c1..5f56d3975 100644 --- a/libs/market-list/src/lib/__generated__/MarketList.ts +++ b/libs/market-list/src/lib/__generated__/MarketList.ts @@ -178,14 +178,14 @@ export interface MarketList_markets { /** * decimalPlaces indicates the number of decimal places that an integer must be shifted by in order to get a correct * number denominated in the currency of the market. (uint64) - * + * * Examples: * Currency Balance decimalPlaces Real Balance * GBP 100 0 GBP 100 * GBP 100 2 GBP 1.00 * GBP 100 4 GBP 0.01 * GBP 1 4 GBP 0.0001 ( 0.01p ) - * + * * GBX (pence) 100 0 GBP 1.00 (100p ) * GBX (pence) 100 2 GBP 0.01 ( 1p ) * GBX (pence) 100 4 GBP 0.0001 ( 0.01p ) diff --git a/libs/types/apollo.config.js b/libs/types/apollo.config.js index babf705d3..8eb16d25a 100644 --- a/libs/types/apollo.config.js +++ b/libs/types/apollo.config.js @@ -2,7 +2,8 @@ module.exports = { client: { service: { name: 'vega', - url: process.env.NX_VEGA_URL, + url: + process.env.NX_VEGA_URL || 'https://api.n11.testnet.vega.xyz/graphql', }, includes: ['../../{apps,libs}/**/*.{ts,tsx,js,jsx,graphql}'], excludes: ['**/generic-data-provider.ts'], diff --git a/libs/types/project.json b/libs/types/project.json index 784781bc6..571da4a67 100644 --- a/libs/types/project.json +++ b/libs/types/project.json @@ -42,7 +42,10 @@ "generate": { "builder": "@nrwl/workspace:run-commands", "options": { - "commands": ["node libs/types/fix-imports"], + "commands": [ + "npx apollo client:codegen --config=libs/types/apollo.config.js --target=typescript --globalTypesFile=libs/types/src/__generated__/globalTypes.ts", + "node libs/types/fix-imports" + ], "parallel": false } }