From c1a35cef90d737f445af659fe22c39426a8bf5ef Mon Sep 17 00:00:00 2001 From: Marc-Aurele Besner Date: Fri, 15 Nov 2024 15:35:46 -0500 Subject: [PATCH] update codegen --- explorer/gql/graphql.ts | 176 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) diff --git a/explorer/gql/graphql.ts b/explorer/gql/graphql.ts index 625683a5..c119bc74 100644 --- a/explorer/gql/graphql.ts +++ b/explorer/gql/graphql.ts @@ -94,6 +94,47 @@ export type Consensus_Account_Histories = { uuid: Scalars['uuid']['output']; }; +/** aggregated selection of "consensus.account_histories" */ +export type Consensus_Account_Histories_Aggregate = { + __typename?: 'consensus_account_histories_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "consensus.account_histories" */ +export type Consensus_Account_Histories_Aggregate_Fields = { + __typename?: 'consensus_account_histories_aggregate_fields'; + avg?: Maybe; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; + stddev?: Maybe; + stddev_pop?: Maybe; + stddev_samp?: Maybe; + sum?: Maybe; + var_pop?: Maybe; + var_samp?: Maybe; + variance?: Maybe; +}; + + +/** aggregate fields of "consensus.account_histories" */ +export type Consensus_Account_Histories_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Consensus_Account_Histories_Avg_Fields = { + __typename?: 'consensus_account_histories_avg_fields'; + created_at?: Maybe; + free?: Maybe; + nonce?: Maybe; + reserved?: Maybe; + total?: Maybe; + updated_at?: Maybe; +}; + /** Boolean expression to filter rows from the table "consensus.account_histories". All fields are combined with a logical 'AND'. */ export type Consensus_Account_Histories_Bool_Exp = { _and?: InputMaybe>; @@ -111,6 +152,32 @@ export type Consensus_Account_Histories_Bool_Exp = { uuid?: InputMaybe; }; +/** aggregate max on columns */ +export type Consensus_Account_Histories_Max_Fields = { + __typename?: 'consensus_account_histories_max_fields'; + created_at?: Maybe; + free?: Maybe; + id?: Maybe; + nonce?: Maybe; + reserved?: Maybe; + total?: Maybe; + updated_at?: Maybe; + uuid?: Maybe; +}; + +/** aggregate min on columns */ +export type Consensus_Account_Histories_Min_Fields = { + __typename?: 'consensus_account_histories_min_fields'; + created_at?: Maybe; + free?: Maybe; + id?: Maybe; + nonce?: Maybe; + reserved?: Maybe; + total?: Maybe; + updated_at?: Maybe; + uuid?: Maybe; +}; + /** Ordering options when selecting data from "consensus.account_histories". */ export type Consensus_Account_Histories_Order_By = { _block_range?: InputMaybe; @@ -147,6 +214,39 @@ export enum Consensus_Account_Histories_Select_Column { Uuid = 'uuid' } +/** aggregate stddev on columns */ +export type Consensus_Account_Histories_Stddev_Fields = { + __typename?: 'consensus_account_histories_stddev_fields'; + created_at?: Maybe; + free?: Maybe; + nonce?: Maybe; + reserved?: Maybe; + total?: Maybe; + updated_at?: Maybe; +}; + +/** aggregate stddev_pop on columns */ +export type Consensus_Account_Histories_Stddev_Pop_Fields = { + __typename?: 'consensus_account_histories_stddev_pop_fields'; + created_at?: Maybe; + free?: Maybe; + nonce?: Maybe; + reserved?: Maybe; + total?: Maybe; + updated_at?: Maybe; +}; + +/** aggregate stddev_samp on columns */ +export type Consensus_Account_Histories_Stddev_Samp_Fields = { + __typename?: 'consensus_account_histories_stddev_samp_fields'; + created_at?: Maybe; + free?: Maybe; + nonce?: Maybe; + reserved?: Maybe; + total?: Maybe; + updated_at?: Maybe; +}; + /** Streaming cursor of the table "consensus_account_histories" */ export type Consensus_Account_Histories_Stream_Cursor_Input = { /** Stream column input with initial value */ @@ -168,6 +268,50 @@ export type Consensus_Account_Histories_Stream_Cursor_Value_Input = { uuid?: InputMaybe; }; +/** aggregate sum on columns */ +export type Consensus_Account_Histories_Sum_Fields = { + __typename?: 'consensus_account_histories_sum_fields'; + created_at?: Maybe; + free?: Maybe; + nonce?: Maybe; + reserved?: Maybe; + total?: Maybe; + updated_at?: Maybe; +}; + +/** aggregate var_pop on columns */ +export type Consensus_Account_Histories_Var_Pop_Fields = { + __typename?: 'consensus_account_histories_var_pop_fields'; + created_at?: Maybe; + free?: Maybe; + nonce?: Maybe; + reserved?: Maybe; + total?: Maybe; + updated_at?: Maybe; +}; + +/** aggregate var_samp on columns */ +export type Consensus_Account_Histories_Var_Samp_Fields = { + __typename?: 'consensus_account_histories_var_samp_fields'; + created_at?: Maybe; + free?: Maybe; + nonce?: Maybe; + reserved?: Maybe; + total?: Maybe; + updated_at?: Maybe; +}; + +/** aggregate variance on columns */ +export type Consensus_Account_Histories_Variance_Fields = { + __typename?: 'consensus_account_histories_variance_fields'; + created_at?: Maybe; + free?: Maybe; + nonce?: Maybe; + reserved?: Maybe; + total?: Maybe; + updated_at?: Maybe; +}; + /** columns and relationships of "consensus.account_profiles" */ export type Consensus_Account_Profiles = { __typename?: 'consensus_account_profiles'; @@ -8345,6 +8489,8 @@ export type Query_Root = { __typename?: 'query_root'; /** fetch data from the table: "consensus.account_histories" */ consensus_account_histories: Array; + /** fetch aggregated fields from the table: "consensus.account_histories" */ + consensus_account_histories_aggregate: Consensus_Account_Histories_Aggregate; /** fetch data from the table: "consensus.account_histories" using primary key columns */ consensus_account_histories_by_pk?: Maybe; /** fetch data from the table: "consensus.account_profiles" */ @@ -8625,6 +8771,15 @@ export type Query_RootConsensus_Account_HistoriesArgs = { }; +export type Query_RootConsensus_Account_Histories_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + export type Query_RootConsensus_Account_Histories_By_PkArgs = { uuid: Scalars['uuid']['input']; }; @@ -14077,6 +14232,8 @@ export type Subscription_Root = { __typename?: 'subscription_root'; /** fetch data from the table: "consensus.account_histories" */ consensus_account_histories: Array; + /** fetch aggregated fields from the table: "consensus.account_histories" */ + consensus_account_histories_aggregate: Consensus_Account_Histories_Aggregate; /** fetch data from the table: "consensus.account_histories" using primary key columns */ consensus_account_histories_by_pk?: Maybe; /** fetch data from the table in a streaming manner: "consensus.account_histories" */ @@ -14451,6 +14608,15 @@ export type Subscription_RootConsensus_Account_HistoriesArgs = { }; +export type Subscription_RootConsensus_Account_Histories_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + export type Subscription_RootConsensus_Account_Histories_By_PkArgs = { uuid: Scalars['uuid']['input']; }; @@ -15876,6 +16042,16 @@ export type TransfersByAccountIdQueryVariables = Exact<{ export type TransfersByAccountIdQuery = { __typename?: 'query_root', consensus_transfers_aggregate: { __typename?: 'consensus_transfers_aggregate', aggregate?: { __typename?: 'consensus_transfers_aggregate_fields', count: number } | null }, consensus_transfers: Array<{ __typename?: 'consensus_transfers', id: string, extrinsic_id: string, event_id: string, from: string, to: string, value: any, fee: any, success: boolean, timestamp: any, date: any, created_at: any }> }; +export type BalanceHistoryByAccountIdQueryVariables = Exact<{ + limit: Scalars['Int']['input']; + offset?: InputMaybe; + where?: InputMaybe; + orderBy: Array | Consensus_Account_Histories_Order_By; +}>; + + +export type BalanceHistoryByAccountIdQuery = { __typename?: 'query_root', consensus_account_histories_aggregate: { __typename?: 'consensus_account_histories_aggregate', aggregate?: { __typename?: 'consensus_account_histories_aggregate_fields', count: number } | null }, consensus_account_histories: Array<{ __typename?: 'consensus_account_histories', reserved: any, total?: any | null, nonce: any, free: any, created_at: any, updated_at: any, _block_range: any, id: any }> }; + export type AllRewardForAccountByIdQueryVariables = Exact<{ accountId: Scalars['String']['input']; }>;