diff --git a/apps/api-gateway/schema.graphql b/apps/api-gateway/schema.graphql index fe47f3c22..ee2446d00 100644 --- a/apps/api-gateway/schema.graphql +++ b/apps/api-gateway/schema.graphql @@ -28,6 +28,9 @@ type Query { daoMetricsDayBuckets(where: daoMetricsDayBucketFilter, orderBy: String, orderDirection: String, before: String, after: String, limit: Int): daoMetricsDayBucketPage! _meta: Meta + """Get total assets""" + totalAssets(days: queryInput_totalAssets_days = _7d): [query_totalAssets_items] + """Get historical market data for a specific token""" historicalTokenData(skip: NonNegativeInt, limit: Float = 365): [query_historicalTokenData_items] @@ -1320,6 +1323,19 @@ input tokenPriceFilter { timestamp_lte: BigInt } +type query_totalAssets_items { + totalAssets: String! + date: String! +} + +enum queryInput_totalAssets_days { + _7d + _30d + _90d + _180d + _365d +} + type query_historicalTokenData_items { price: String! timestamp: Float! diff --git a/packages/graphql-client/generated.ts b/packages/graphql-client/generated.ts index 56db3b6dd..93c02e0cc 100644 --- a/packages/graphql-client/generated.ts +++ b/packages/graphql-client/generated.ts @@ -146,6 +146,8 @@ export type Query = { /** Get property data for a specific token */ token?: Maybe; tokens: TokenPage; + /** Get total assets */ + totalAssets?: Maybe>>; /** Get transactions with their associated transfers and delegations, with optional filtering and sorting */ transactions?: Maybe; /** Get transfers of a given address */ @@ -397,6 +399,11 @@ export type QueryTokensArgs = { }; +export type QueryTotalAssetsArgs = { + days?: InputMaybe; +}; + + export type QueryTransactionsArgs = { affectedSupply?: InputMaybe; from?: InputMaybe; @@ -1523,6 +1530,14 @@ export enum QueryInput_Token_Currency { Usd = 'usd' } +export enum QueryInput_TotalAssets_Days { + '7d' = '_7d', + '30d' = '_30d', + '90d' = '_90d', + '180d' = '_180d', + '365d' = '_365d' +} + export enum QueryInput_Transactions_SortOrder { Asc = 'asc', Desc = 'desc' @@ -1689,6 +1704,12 @@ export type Query_Proposals_Items_Items = { values: Array>; }; +export type Query_TotalAssets_Items = { + __typename?: 'query_totalAssets_items'; + date: Scalars['String']['output']; + totalAssets: Scalars['String']['output']; +}; + export type Query_Transactions_Items_Items = { __typename?: 'query_transactions_items_items'; delegations: Array>; diff --git a/packages/graphql-client/types.ts b/packages/graphql-client/types.ts index bd29443be..6629871ea 100644 --- a/packages/graphql-client/types.ts +++ b/packages/graphql-client/types.ts @@ -143,6 +143,8 @@ export type Query = { /** Get property data for a specific token */ token?: Maybe; tokens: TokenPage; + /** Get total assets */ + totalAssets?: Maybe>>; /** Get transactions with their associated transfers and delegations, with optional filtering and sorting */ transactions?: Maybe; /** Get transfers of a given address */ @@ -394,6 +396,11 @@ export type QueryTokensArgs = { }; +export type QueryTotalAssetsArgs = { + days?: InputMaybe; +}; + + export type QueryTransactionsArgs = { affectedSupply?: InputMaybe; from?: InputMaybe; @@ -1520,6 +1527,14 @@ export enum QueryInput_Token_Currency { Usd = 'usd' } +export enum QueryInput_TotalAssets_Days { + '7d' = '_7d', + '30d' = '_30d', + '90d' = '_90d', + '180d' = '_180d', + '365d' = '_365d' +} + export enum QueryInput_Transactions_SortOrder { Asc = 'asc', Desc = 'desc' @@ -1686,6 +1701,12 @@ export type Query_Proposals_Items_Items = { values: Array>; }; +export type Query_TotalAssets_Items = { + __typename?: 'query_totalAssets_items'; + date: Scalars['String']['output']; + totalAssets: Scalars['String']['output']; +}; + export type Query_Transactions_Items_Items = { __typename?: 'query_transactions_items_items'; delegations: Array>;