From 009e327c81619ae5ccdc5e061005d3b82cad9201 Mon Sep 17 00:00:00 2001 From: Akash Shaw Date: Thu, 18 Apr 2024 20:56:04 +0530 Subject: [PATCH 1/4] chore: creates a row in client_settings on client signup --- backend/backend-common/src/db/client.ts | 5 + .../down.sql | 1 + .../up.sql | 1 + .../down.sql | 5 + .../up.sql | 5 + backend/zeus/src/codegen/types.ts | 562 +++++- backend/zeus/src/zeus/const.ts | 217 +++ backend/zeus/src/zeus/index.ts | 1687 ++++++++++++++++- 8 files changed, 2477 insertions(+), 6 deletions(-) create mode 100644 backend/hasura/hasura/migrations/default/1713453773148_alter_table_public_client_settings_alter_column_prefered_explorer/down.sql create mode 100644 backend/hasura/hasura/migrations/default/1713453773148_alter_table_public_client_settings_alter_column_prefered_explorer/up.sql create mode 100644 backend/hasura/hasura/migrations/default/1713453797648_set_fk_public_client_settings_client_id/down.sql create mode 100644 backend/hasura/hasura/migrations/default/1713453797648_set_fk_public_client_settings_client_id/up.sql diff --git a/backend/backend-common/src/db/client.ts b/backend/backend-common/src/db/client.ts index 644b6ad2..e6da53de 100644 --- a/backend/backend-common/src/db/client.ts +++ b/backend/backend-common/src/db/client.ts @@ -625,6 +625,11 @@ export const createBaseClient = async ( lastname, mobile: mobile || null, password: hashPassword, + client_setting: { + data: { + lang: "en", + } + } }, }, { diff --git a/backend/hasura/hasura/migrations/default/1713453773148_alter_table_public_client_settings_alter_column_prefered_explorer/down.sql b/backend/hasura/hasura/migrations/default/1713453773148_alter_table_public_client_settings_alter_column_prefered_explorer/down.sql new file mode 100644 index 00000000..f680d85a --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713453773148_alter_table_public_client_settings_alter_column_prefered_explorer/down.sql @@ -0,0 +1 @@ +ALTER TABLE "public"."client_settings" ALTER COLUMN "prefered_explorer" drop default; diff --git a/backend/hasura/hasura/migrations/default/1713453773148_alter_table_public_client_settings_alter_column_prefered_explorer/up.sql b/backend/hasura/hasura/migrations/default/1713453773148_alter_table_public_client_settings_alter_column_prefered_explorer/up.sql new file mode 100644 index 00000000..ba74205c --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713453773148_alter_table_public_client_settings_alter_column_prefered_explorer/up.sql @@ -0,0 +1 @@ +alter table "public"."client_settings" alter column "prefered_explorer" set default 'solscan'; diff --git a/backend/hasura/hasura/migrations/default/1713453797648_set_fk_public_client_settings_client_id/down.sql b/backend/hasura/hasura/migrations/default/1713453797648_set_fk_public_client_settings_client_id/down.sql new file mode 100644 index 00000000..b053ca8c --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713453797648_set_fk_public_client_settings_client_id/down.sql @@ -0,0 +1,5 @@ +alter table "public"."client_settings" drop constraint "client_settings_client_id_fkey", + add constraint "client_settings_client_id_fkey" + foreign key ("client_id") + references "public"."client" + ("id") on update no action on delete no action; diff --git a/backend/hasura/hasura/migrations/default/1713453797648_set_fk_public_client_settings_client_id/up.sql b/backend/hasura/hasura/migrations/default/1713453797648_set_fk_public_client_settings_client_id/up.sql new file mode 100644 index 00000000..27561cdc --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713453797648_set_fk_public_client_settings_client_id/up.sql @@ -0,0 +1,5 @@ +alter table "public"."client_settings" drop constraint "client_settings_client_id_fkey", + add constraint "client_settings_client_id_fkey" + foreign key ("client_id") + references "public"."client" + ("id") on update set default on delete no action; diff --git a/backend/zeus/src/codegen/types.ts b/backend/zeus/src/codegen/types.ts index 4e372f28..13e94d2e 100644 --- a/backend/zeus/src/codegen/types.ts +++ b/backend/zeus/src/codegen/types.ts @@ -83,6 +83,10 @@ export type Account = { __typename?: 'account'; /** An object relationship */ bitcoin?: Maybe; + /** An array relationship */ + centralized_txns: Array; + /** An aggregate relationship */ + centralized_txns_aggregate: Centralized_Txn_Aggregate; /** An object relationship */ client: Client; /** clientId */ @@ -102,6 +106,26 @@ export type Account = { walletId: Scalars['uuid']['output']; }; + +/** accounts in a wallet */ +export type AccountCentralized_TxnsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** accounts in a wallet */ +export type AccountCentralized_Txns_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + /** aggregated selection of "account" */ export type Account_Aggregate = { __typename?: 'account_aggregate'; @@ -171,6 +195,8 @@ export type Account_Bool_Exp = { _not?: InputMaybe; _or?: InputMaybe>; bitcoin?: InputMaybe; + centralized_txns?: InputMaybe; + centralized_txns_aggregate?: InputMaybe; client?: InputMaybe; clientId?: InputMaybe; createdAt?: InputMaybe; @@ -194,6 +220,7 @@ export enum Account_Constraint { /** input type for inserting data into table "account" */ export type Account_Insert_Input = { bitcoin?: InputMaybe; + centralized_txns?: InputMaybe; client?: InputMaybe; /** clientId */ clientId?: InputMaybe; @@ -285,6 +312,7 @@ export type Account_On_Conflict = { /** Ordering options when selecting data from "account". */ export type Account_Order_By = { bitcoin?: InputMaybe; + centralized_txns_aggregate?: InputMaybe; client?: InputMaybe; clientId?: InputMaybe; createdAt?: InputMaybe; @@ -957,14 +985,25 @@ export type Centralized_Txn = { /** An object relationship */ account: Account; accountId: Scalars['uuid']['output']; + baseCurrency: Scalars['String']['output']; + baseCurrencyAmount: Scalars['float8']['output']; /** An object relationship */ client: Client; clientId: Scalars['uuid']['output']; createdAt: Scalars['timestamptz']['output']; + cryptoTransactionId: Scalars['String']['output']; + failedReason?: Maybe; + feeAmount: Scalars['float8']['output']; id: Scalars['uuid']['output']; + paymentMethod?: Maybe; provider: Scalars['String']['output']; + providerTxnId: Scalars['uuid']['output']; + quoteCurrency: Scalars['String']['output']; + quoteCurrencyAmount: Scalars['float8']['output']; + signature?: Maybe; status: Scalars['String']['output']; updatedAt: Scalars['timestamptz']['output']; + walletAddress: Scalars['String']['output']; }; /** aggregated selection of "centralized_txn" */ @@ -974,12 +1013,105 @@ export type Centralized_Txn_Aggregate = { nodes: Array; }; +export type Centralized_Txn_Aggregate_Bool_Exp = { + avg?: InputMaybe; + corr?: InputMaybe; + count?: InputMaybe; + covar_samp?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_samp?: InputMaybe; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Avg = { + arguments: Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Avg_Arguments_Columns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Float8_Comparison_Exp; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Corr = { + arguments: Centralized_Txn_Aggregate_Bool_Exp_Corr_Arguments; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Float8_Comparison_Exp; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Corr_Arguments = { + X: Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Corr_Arguments_Columns; + Y: Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Corr_Arguments_Columns; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Count = { + arguments?: InputMaybe>; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Int_Comparison_Exp; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Covar_Samp = { + arguments: Centralized_Txn_Aggregate_Bool_Exp_Covar_Samp_Arguments; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Float8_Comparison_Exp; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Covar_Samp_Arguments = { + X: Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Covar_Samp_Arguments_Columns; + Y: Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Covar_Samp_Arguments_Columns; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Max = { + arguments: Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Max_Arguments_Columns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Float8_Comparison_Exp; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Min = { + arguments: Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Min_Arguments_Columns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Float8_Comparison_Exp; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Stddev_Samp = { + arguments: Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Stddev_Samp_Arguments_Columns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Float8_Comparison_Exp; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Sum = { + arguments: Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Sum_Arguments_Columns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Float8_Comparison_Exp; +}; + +export type Centralized_Txn_Aggregate_Bool_Exp_Var_Samp = { + arguments: Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Var_Samp_Arguments_Columns; + distinct?: InputMaybe; + filter?: InputMaybe; + predicate: Float8_Comparison_Exp; +}; + /** aggregate fields of "centralized_txn" */ export type Centralized_Txn_Aggregate_Fields = { __typename?: 'centralized_txn_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; }; @@ -989,6 +1121,43 @@ export type Centralized_Txn_Aggregate_FieldsCountArgs = { distinct?: InputMaybe; }; +/** order by aggregate values of table "centralized_txn" */ +export type Centralized_Txn_Aggregate_Order_By = { + avg?: InputMaybe; + count?: InputMaybe; + max?: InputMaybe; + min?: InputMaybe; + stddev?: InputMaybe; + stddev_pop?: InputMaybe; + stddev_samp?: InputMaybe; + sum?: InputMaybe; + var_pop?: InputMaybe; + var_samp?: InputMaybe; + variance?: InputMaybe; +}; + +/** input type for inserting array relation for remote table "centralized_txn" */ +export type Centralized_Txn_Arr_Rel_Insert_Input = { + data: Array; + /** upsert condition */ + on_conflict?: InputMaybe; +}; + +/** aggregate avg on columns */ +export type Centralized_Txn_Avg_Fields = { + __typename?: 'centralized_txn_avg_fields'; + baseCurrencyAmount?: Maybe; + feeAmount?: Maybe; + quoteCurrencyAmount?: Maybe; +}; + +/** order by avg() on columns of table "centralized_txn" */ +export type Centralized_Txn_Avg_Order_By = { + baseCurrencyAmount?: InputMaybe; + feeAmount?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; +}; + /** Boolean expression to filter rows from the table "centralized_txn". All fields are combined with a logical 'AND'. */ export type Centralized_Txn_Bool_Exp = { _and?: InputMaybe>; @@ -996,13 +1165,24 @@ export type Centralized_Txn_Bool_Exp = { _or?: InputMaybe>; account?: InputMaybe; accountId?: InputMaybe; + baseCurrency?: InputMaybe; + baseCurrencyAmount?: InputMaybe; client?: InputMaybe; clientId?: InputMaybe; createdAt?: InputMaybe; + cryptoTransactionId?: InputMaybe; + failedReason?: InputMaybe; + feeAmount?: InputMaybe; id?: InputMaybe; + paymentMethod?: InputMaybe; provider?: InputMaybe; + providerTxnId?: InputMaybe; + quoteCurrency?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; + signature?: InputMaybe; status?: InputMaybe; updatedAt?: InputMaybe; + walletAddress?: InputMaybe; }; /** unique or primary key constraints on table "centralized_txn" */ @@ -1011,41 +1191,125 @@ export enum Centralized_Txn_Constraint { CentralizedTxnPkey = 'centralized_txn_pkey' } +/** input type for incrementing numeric columns in table "centralized_txn" */ +export type Centralized_Txn_Inc_Input = { + baseCurrencyAmount?: InputMaybe; + feeAmount?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; +}; + /** input type for inserting data into table "centralized_txn" */ export type Centralized_Txn_Insert_Input = { account?: InputMaybe; accountId?: InputMaybe; + baseCurrency?: InputMaybe; + baseCurrencyAmount?: InputMaybe; client?: InputMaybe; clientId?: InputMaybe; createdAt?: InputMaybe; + cryptoTransactionId?: InputMaybe; + failedReason?: InputMaybe; + feeAmount?: InputMaybe; id?: InputMaybe; + paymentMethod?: InputMaybe; provider?: InputMaybe; + providerTxnId?: InputMaybe; + quoteCurrency?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; + signature?: InputMaybe; status?: InputMaybe; updatedAt?: InputMaybe; + walletAddress?: InputMaybe; }; /** aggregate max on columns */ export type Centralized_Txn_Max_Fields = { __typename?: 'centralized_txn_max_fields'; accountId?: Maybe; + baseCurrency?: Maybe; + baseCurrencyAmount?: Maybe; clientId?: Maybe; createdAt?: Maybe; + cryptoTransactionId?: Maybe; + failedReason?: Maybe; + feeAmount?: Maybe; id?: Maybe; + paymentMethod?: Maybe; provider?: Maybe; + providerTxnId?: Maybe; + quoteCurrency?: Maybe; + quoteCurrencyAmount?: Maybe; + signature?: Maybe; status?: Maybe; updatedAt?: Maybe; + walletAddress?: Maybe; +}; + +/** order by max() on columns of table "centralized_txn" */ +export type Centralized_Txn_Max_Order_By = { + accountId?: InputMaybe; + baseCurrency?: InputMaybe; + baseCurrencyAmount?: InputMaybe; + clientId?: InputMaybe; + createdAt?: InputMaybe; + cryptoTransactionId?: InputMaybe; + failedReason?: InputMaybe; + feeAmount?: InputMaybe; + id?: InputMaybe; + paymentMethod?: InputMaybe; + provider?: InputMaybe; + providerTxnId?: InputMaybe; + quoteCurrency?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; + signature?: InputMaybe; + status?: InputMaybe; + updatedAt?: InputMaybe; + walletAddress?: InputMaybe; }; /** aggregate min on columns */ export type Centralized_Txn_Min_Fields = { __typename?: 'centralized_txn_min_fields'; accountId?: Maybe; + baseCurrency?: Maybe; + baseCurrencyAmount?: Maybe; clientId?: Maybe; createdAt?: Maybe; + cryptoTransactionId?: Maybe; + failedReason?: Maybe; + feeAmount?: Maybe; id?: Maybe; + paymentMethod?: Maybe; provider?: Maybe; + providerTxnId?: Maybe; + quoteCurrency?: Maybe; + quoteCurrencyAmount?: Maybe; + signature?: Maybe; status?: Maybe; updatedAt?: Maybe; + walletAddress?: Maybe; +}; + +/** order by min() on columns of table "centralized_txn" */ +export type Centralized_Txn_Min_Order_By = { + accountId?: InputMaybe; + baseCurrency?: InputMaybe; + baseCurrencyAmount?: InputMaybe; + clientId?: InputMaybe; + createdAt?: InputMaybe; + cryptoTransactionId?: InputMaybe; + failedReason?: InputMaybe; + feeAmount?: InputMaybe; + id?: InputMaybe; + paymentMethod?: InputMaybe; + provider?: InputMaybe; + providerTxnId?: InputMaybe; + quoteCurrency?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; + signature?: InputMaybe; + status?: InputMaybe; + updatedAt?: InputMaybe; + walletAddress?: InputMaybe; }; /** response of any mutation on the table "centralized_txn" */ @@ -1068,13 +1332,24 @@ export type Centralized_Txn_On_Conflict = { export type Centralized_Txn_Order_By = { account?: InputMaybe; accountId?: InputMaybe; + baseCurrency?: InputMaybe; + baseCurrencyAmount?: InputMaybe; client?: InputMaybe; clientId?: InputMaybe; createdAt?: InputMaybe; + cryptoTransactionId?: InputMaybe; + failedReason?: InputMaybe; + feeAmount?: InputMaybe; id?: InputMaybe; + paymentMethod?: InputMaybe; provider?: InputMaybe; + providerTxnId?: InputMaybe; + quoteCurrency?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; + signature?: InputMaybe; status?: InputMaybe; updatedAt?: InputMaybe; + walletAddress?: InputMaybe; }; /** primary key columns input for table: centralized_txn */ @@ -1087,28 +1362,186 @@ export enum Centralized_Txn_Select_Column { /** column name */ AccountId = 'accountId', /** column name */ + BaseCurrency = 'baseCurrency', + /** column name */ + BaseCurrencyAmount = 'baseCurrencyAmount', + /** column name */ ClientId = 'clientId', /** column name */ CreatedAt = 'createdAt', /** column name */ + CryptoTransactionId = 'cryptoTransactionId', + /** column name */ + FailedReason = 'failedReason', + /** column name */ + FeeAmount = 'feeAmount', + /** column name */ Id = 'id', /** column name */ + PaymentMethod = 'paymentMethod', + /** column name */ Provider = 'provider', /** column name */ + ProviderTxnId = 'providerTxnId', + /** column name */ + QuoteCurrency = 'quoteCurrency', + /** column name */ + QuoteCurrencyAmount = 'quoteCurrencyAmount', + /** column name */ + Signature = 'signature', + /** column name */ Status = 'status', /** column name */ - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', + /** column name */ + WalletAddress = 'walletAddress' +} + +/** select "centralized_txn_aggregate_bool_exp_avg_arguments_columns" columns of table "centralized_txn" */ +export enum Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Avg_Arguments_Columns { + /** column name */ + BaseCurrencyAmount = 'baseCurrencyAmount', + /** column name */ + FeeAmount = 'feeAmount', + /** column name */ + QuoteCurrencyAmount = 'quoteCurrencyAmount' +} + +/** select "centralized_txn_aggregate_bool_exp_corr_arguments_columns" columns of table "centralized_txn" */ +export enum Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Corr_Arguments_Columns { + /** column name */ + BaseCurrencyAmount = 'baseCurrencyAmount', + /** column name */ + FeeAmount = 'feeAmount', + /** column name */ + QuoteCurrencyAmount = 'quoteCurrencyAmount' +} + +/** select "centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns" columns of table "centralized_txn" */ +export enum Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Covar_Samp_Arguments_Columns { + /** column name */ + BaseCurrencyAmount = 'baseCurrencyAmount', + /** column name */ + FeeAmount = 'feeAmount', + /** column name */ + QuoteCurrencyAmount = 'quoteCurrencyAmount' +} + +/** select "centralized_txn_aggregate_bool_exp_max_arguments_columns" columns of table "centralized_txn" */ +export enum Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Max_Arguments_Columns { + /** column name */ + BaseCurrencyAmount = 'baseCurrencyAmount', + /** column name */ + FeeAmount = 'feeAmount', + /** column name */ + QuoteCurrencyAmount = 'quoteCurrencyAmount' +} + +/** select "centralized_txn_aggregate_bool_exp_min_arguments_columns" columns of table "centralized_txn" */ +export enum Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Min_Arguments_Columns { + /** column name */ + BaseCurrencyAmount = 'baseCurrencyAmount', + /** column name */ + FeeAmount = 'feeAmount', + /** column name */ + QuoteCurrencyAmount = 'quoteCurrencyAmount' +} + +/** select "centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns" columns of table "centralized_txn" */ +export enum Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Stddev_Samp_Arguments_Columns { + /** column name */ + BaseCurrencyAmount = 'baseCurrencyAmount', + /** column name */ + FeeAmount = 'feeAmount', + /** column name */ + QuoteCurrencyAmount = 'quoteCurrencyAmount' +} + +/** select "centralized_txn_aggregate_bool_exp_sum_arguments_columns" columns of table "centralized_txn" */ +export enum Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Sum_Arguments_Columns { + /** column name */ + BaseCurrencyAmount = 'baseCurrencyAmount', + /** column name */ + FeeAmount = 'feeAmount', + /** column name */ + QuoteCurrencyAmount = 'quoteCurrencyAmount' +} + +/** select "centralized_txn_aggregate_bool_exp_var_samp_arguments_columns" columns of table "centralized_txn" */ +export enum Centralized_Txn_Select_Column_Centralized_Txn_Aggregate_Bool_Exp_Var_Samp_Arguments_Columns { + /** column name */ + BaseCurrencyAmount = 'baseCurrencyAmount', + /** column name */ + FeeAmount = 'feeAmount', + /** column name */ + QuoteCurrencyAmount = 'quoteCurrencyAmount' } /** input type for updating data in table "centralized_txn" */ export type Centralized_Txn_Set_Input = { accountId?: InputMaybe; + baseCurrency?: InputMaybe; + baseCurrencyAmount?: InputMaybe; clientId?: InputMaybe; createdAt?: InputMaybe; + cryptoTransactionId?: InputMaybe; + failedReason?: InputMaybe; + feeAmount?: InputMaybe; id?: InputMaybe; + paymentMethod?: InputMaybe; provider?: InputMaybe; + providerTxnId?: InputMaybe; + quoteCurrency?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; + signature?: InputMaybe; status?: InputMaybe; updatedAt?: InputMaybe; + walletAddress?: InputMaybe; +}; + +/** aggregate stddev on columns */ +export type Centralized_Txn_Stddev_Fields = { + __typename?: 'centralized_txn_stddev_fields'; + baseCurrencyAmount?: Maybe; + feeAmount?: Maybe; + quoteCurrencyAmount?: Maybe; +}; + +/** order by stddev() on columns of table "centralized_txn" */ +export type Centralized_Txn_Stddev_Order_By = { + baseCurrencyAmount?: InputMaybe; + feeAmount?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; +}; + +/** aggregate stddev_pop on columns */ +export type Centralized_Txn_Stddev_Pop_Fields = { + __typename?: 'centralized_txn_stddev_pop_fields'; + baseCurrencyAmount?: Maybe; + feeAmount?: Maybe; + quoteCurrencyAmount?: Maybe; +}; + +/** order by stddev_pop() on columns of table "centralized_txn" */ +export type Centralized_Txn_Stddev_Pop_Order_By = { + baseCurrencyAmount?: InputMaybe; + feeAmount?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; +}; + +/** aggregate stddev_samp on columns */ +export type Centralized_Txn_Stddev_Samp_Fields = { + __typename?: 'centralized_txn_stddev_samp_fields'; + baseCurrencyAmount?: Maybe; + feeAmount?: Maybe; + quoteCurrencyAmount?: Maybe; +}; + +/** order by stddev_samp() on columns of table "centralized_txn" */ +export type Centralized_Txn_Stddev_Samp_Order_By = { + baseCurrencyAmount?: InputMaybe; + feeAmount?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; }; /** Streaming cursor of the table "centralized_txn" */ @@ -1122,12 +1555,38 @@ export type Centralized_Txn_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Centralized_Txn_Stream_Cursor_Value_Input = { accountId?: InputMaybe; + baseCurrency?: InputMaybe; + baseCurrencyAmount?: InputMaybe; clientId?: InputMaybe; createdAt?: InputMaybe; + cryptoTransactionId?: InputMaybe; + failedReason?: InputMaybe; + feeAmount?: InputMaybe; id?: InputMaybe; + paymentMethod?: InputMaybe; provider?: InputMaybe; + providerTxnId?: InputMaybe; + quoteCurrency?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; + signature?: InputMaybe; status?: InputMaybe; updatedAt?: InputMaybe; + walletAddress?: InputMaybe; +}; + +/** aggregate sum on columns */ +export type Centralized_Txn_Sum_Fields = { + __typename?: 'centralized_txn_sum_fields'; + baseCurrencyAmount?: Maybe; + feeAmount?: Maybe; + quoteCurrencyAmount?: Maybe; +}; + +/** order by sum() on columns of table "centralized_txn" */ +export type Centralized_Txn_Sum_Order_By = { + baseCurrencyAmount?: InputMaybe; + feeAmount?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; }; /** update columns of table "centralized_txn" */ @@ -1135,26 +1594,95 @@ export enum Centralized_Txn_Update_Column { /** column name */ AccountId = 'accountId', /** column name */ + BaseCurrency = 'baseCurrency', + /** column name */ + BaseCurrencyAmount = 'baseCurrencyAmount', + /** column name */ ClientId = 'clientId', /** column name */ CreatedAt = 'createdAt', /** column name */ + CryptoTransactionId = 'cryptoTransactionId', + /** column name */ + FailedReason = 'failedReason', + /** column name */ + FeeAmount = 'feeAmount', + /** column name */ Id = 'id', /** column name */ + PaymentMethod = 'paymentMethod', + /** column name */ Provider = 'provider', /** column name */ + ProviderTxnId = 'providerTxnId', + /** column name */ + QuoteCurrency = 'quoteCurrency', + /** column name */ + QuoteCurrencyAmount = 'quoteCurrencyAmount', + /** column name */ + Signature = 'signature', + /** column name */ Status = 'status', /** column name */ - UpdatedAt = 'updatedAt' + UpdatedAt = 'updatedAt', + /** column name */ + WalletAddress = 'walletAddress' } export type Centralized_Txn_Updates = { + /** increments the numeric columns with given value of the filtered values */ + _inc?: InputMaybe; /** sets the columns of the filtered rows to the given values */ _set?: InputMaybe; /** filter the rows which have to be updated */ where: Centralized_Txn_Bool_Exp; }; +/** aggregate var_pop on columns */ +export type Centralized_Txn_Var_Pop_Fields = { + __typename?: 'centralized_txn_var_pop_fields'; + baseCurrencyAmount?: Maybe; + feeAmount?: Maybe; + quoteCurrencyAmount?: Maybe; +}; + +/** order by var_pop() on columns of table "centralized_txn" */ +export type Centralized_Txn_Var_Pop_Order_By = { + baseCurrencyAmount?: InputMaybe; + feeAmount?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; +}; + +/** aggregate var_samp on columns */ +export type Centralized_Txn_Var_Samp_Fields = { + __typename?: 'centralized_txn_var_samp_fields'; + baseCurrencyAmount?: Maybe; + feeAmount?: Maybe; + quoteCurrencyAmount?: Maybe; +}; + +/** order by var_samp() on columns of table "centralized_txn" */ +export type Centralized_Txn_Var_Samp_Order_By = { + baseCurrencyAmount?: InputMaybe; + feeAmount?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; +}; + +/** aggregate variance on columns */ +export type Centralized_Txn_Variance_Fields = { + __typename?: 'centralized_txn_variance_fields'; + baseCurrencyAmount?: Maybe; + feeAmount?: Maybe; + quoteCurrencyAmount?: Maybe; +}; + +/** order by variance() on columns of table "centralized_txn" */ +export type Centralized_Txn_Variance_Order_By = { + baseCurrencyAmount?: InputMaybe; + feeAmount?: InputMaybe; + quoteCurrencyAmount?: InputMaybe; +}; + /** chat messages for clients */ export type Chat = { __typename?: 'chat'; @@ -1402,6 +1930,10 @@ export type Client = { /** An object relationship */ address?: Maybe
; /** An array relationship */ + centralized_txns: Array; + /** An aggregate relationship */ + centralized_txns_aggregate: Centralized_Txn_Aggregate; + /** An array relationship */ chats: Array; /** An aggregate relationship */ chats_aggregate: Chat_Aggregate; @@ -1464,6 +1996,26 @@ export type ClientAccounts_AggregateArgs = { }; +/** subscriber for paybox */ +export type ClientCentralized_TxnsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +/** subscriber for paybox */ +export type ClientCentralized_Txns_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + /** subscriber for paybox */ export type ClientChatsArgs = { distinct_on?: InputMaybe>; @@ -1647,6 +2199,8 @@ export type Client_Bool_Exp = { accounts?: InputMaybe; accounts_aggregate?: InputMaybe; address?: InputMaybe; + centralized_txns?: InputMaybe; + centralized_txns_aggregate?: InputMaybe; chats?: InputMaybe; chats_aggregate?: InputMaybe; client_setting?: InputMaybe; @@ -1691,6 +2245,7 @@ export type Client_Inc_Input = { export type Client_Insert_Input = { accounts?: InputMaybe; address?: InputMaybe; + centralized_txns?: InputMaybe; chats?: InputMaybe; client_setting?: InputMaybe; createdAt?: InputMaybe; @@ -1766,6 +2321,7 @@ export type Client_On_Conflict = { export type Client_Order_By = { accounts_aggregate?: InputMaybe; address?: InputMaybe; + centralized_txns_aggregate?: InputMaybe; chats_aggregate?: InputMaybe; client_setting?: InputMaybe; createdAt?: InputMaybe; @@ -3487,6 +4043,7 @@ export type Mutation_RootUpdate_Bitcoin_ManyArgs = { /** mutation root */ export type Mutation_RootUpdate_Centralized_TxnArgs = { + _inc?: InputMaybe; _set?: InputMaybe; where: Centralized_Txn_Bool_Exp; }; @@ -3494,6 +4051,7 @@ export type Mutation_RootUpdate_Centralized_TxnArgs = { /** mutation root */ export type Mutation_RootUpdate_Centralized_Txn_By_PkArgs = { + _inc?: InputMaybe; _set?: InputMaybe; pk_columns: Centralized_Txn_Pk_Columns_Input; }; diff --git a/backend/zeus/src/zeus/const.ts b/backend/zeus/src/zeus/const.ts index cc84fe16..6fb72c88 100644 --- a/backend/zeus/src/zeus/const.ts +++ b/backend/zeus/src/zeus/const.ts @@ -4,6 +4,18 @@ export const AllTypesProps: Record = { Boolean_comparison_exp: {}, Int_comparison_exp: {}, String_comparison_exp: {}, + account: { + centralized_txns: { + distinct_on: "centralized_txn_select_column", + order_by: "centralized_txn_order_by", + where: "centralized_txn_bool_exp", + }, + centralized_txns_aggregate: { + distinct_on: "centralized_txn_select_column", + order_by: "centralized_txn_order_by", + where: "centralized_txn_bool_exp", + }, + }, account_aggregate_bool_exp: { bool_and: "account_aggregate_bool_exp_bool_and", bool_or: "account_aggregate_bool_exp_bool_or", @@ -45,6 +57,8 @@ export const AllTypesProps: Record = { _not: "account_bool_exp", _or: "account_bool_exp", bitcoin: "bitcoin_bool_exp", + centralized_txns: "centralized_txn_bool_exp", + centralized_txns_aggregate: "centralized_txn_aggregate_bool_exp", client: "client_bool_exp", clientId: "uuid_comparison_exp", createdAt: "timestamptz_comparison_exp", @@ -61,6 +75,7 @@ export const AllTypesProps: Record = { account_constraint: "enum" as const, account_insert_input: { bitcoin: "bitcoin_obj_rel_insert_input", + centralized_txns: "centralized_txn_arr_rel_insert_input", client: "client_obj_rel_insert_input", clientId: "uuid", createdAt: "timestamptz", @@ -100,6 +115,7 @@ export const AllTypesProps: Record = { }, account_order_by: { bitcoin: "bitcoin_order_by", + centralized_txns_aggregate: "centralized_txn_aggregate_order_by", client: "client_order_by", clientId: "order_by", createdAt: "order_by", @@ -316,11 +332,103 @@ export const AllTypesProps: Record = { _set: "bitcoin_set_input", where: "bitcoin_bool_exp", }, + centralized_txn_aggregate_bool_exp: { + avg: "centralized_txn_aggregate_bool_exp_avg", + corr: "centralized_txn_aggregate_bool_exp_corr", + count: "centralized_txn_aggregate_bool_exp_count", + covar_samp: "centralized_txn_aggregate_bool_exp_covar_samp", + max: "centralized_txn_aggregate_bool_exp_max", + min: "centralized_txn_aggregate_bool_exp_min", + stddev_samp: "centralized_txn_aggregate_bool_exp_stddev_samp", + sum: "centralized_txn_aggregate_bool_exp_sum", + var_samp: "centralized_txn_aggregate_bool_exp_var_samp", + }, + centralized_txn_aggregate_bool_exp_avg: { + arguments: + "centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns", + filter: "centralized_txn_bool_exp", + predicate: "float8_comparison_exp", + }, + centralized_txn_aggregate_bool_exp_corr: { + arguments: "centralized_txn_aggregate_bool_exp_corr_arguments", + filter: "centralized_txn_bool_exp", + predicate: "float8_comparison_exp", + }, + centralized_txn_aggregate_bool_exp_corr_arguments: { + X: "centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns", + Y: "centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns", + }, + centralized_txn_aggregate_bool_exp_count: { + arguments: "centralized_txn_select_column", + filter: "centralized_txn_bool_exp", + predicate: "Int_comparison_exp", + }, + centralized_txn_aggregate_bool_exp_covar_samp: { + arguments: "centralized_txn_aggregate_bool_exp_covar_samp_arguments", + filter: "centralized_txn_bool_exp", + predicate: "float8_comparison_exp", + }, + centralized_txn_aggregate_bool_exp_covar_samp_arguments: { + X: "centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns", + Y: "centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns", + }, + centralized_txn_aggregate_bool_exp_max: { + arguments: + "centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns", + filter: "centralized_txn_bool_exp", + predicate: "float8_comparison_exp", + }, + centralized_txn_aggregate_bool_exp_min: { + arguments: + "centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns", + filter: "centralized_txn_bool_exp", + predicate: "float8_comparison_exp", + }, + centralized_txn_aggregate_bool_exp_stddev_samp: { + arguments: + "centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns", + filter: "centralized_txn_bool_exp", + predicate: "float8_comparison_exp", + }, + centralized_txn_aggregate_bool_exp_sum: { + arguments: + "centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns", + filter: "centralized_txn_bool_exp", + predicate: "float8_comparison_exp", + }, + centralized_txn_aggregate_bool_exp_var_samp: { + arguments: + "centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns", + filter: "centralized_txn_bool_exp", + predicate: "float8_comparison_exp", + }, centralized_txn_aggregate_fields: { count: { columns: "centralized_txn_select_column", }, }, + centralized_txn_aggregate_order_by: { + avg: "centralized_txn_avg_order_by", + count: "order_by", + max: "centralized_txn_max_order_by", + min: "centralized_txn_min_order_by", + stddev: "centralized_txn_stddev_order_by", + stddev_pop: "centralized_txn_stddev_pop_order_by", + stddev_samp: "centralized_txn_stddev_samp_order_by", + sum: "centralized_txn_sum_order_by", + var_pop: "centralized_txn_var_pop_order_by", + var_samp: "centralized_txn_var_samp_order_by", + variance: "centralized_txn_variance_order_by", + }, + centralized_txn_arr_rel_insert_input: { + data: "centralized_txn_insert_input", + on_conflict: "centralized_txn_on_conflict", + }, + centralized_txn_avg_order_by: { + baseCurrencyAmount: "order_by", + feeAmount: "order_by", + quoteCurrencyAmount: "order_by", + }, centralized_txn_bool_exp: { _and: "centralized_txn_bool_exp", _not: "centralized_txn_bool_exp", @@ -365,6 +473,46 @@ export const AllTypesProps: Record = { quoteCurrencyAmount: "float8", updatedAt: "timestamptz", }, + centralized_txn_max_order_by: { + accountId: "order_by", + baseCurrency: "order_by", + baseCurrencyAmount: "order_by", + clientId: "order_by", + createdAt: "order_by", + cryptoTransactionId: "order_by", + failedReason: "order_by", + feeAmount: "order_by", + id: "order_by", + paymentMethod: "order_by", + provider: "order_by", + providerTxnId: "order_by", + quoteCurrency: "order_by", + quoteCurrencyAmount: "order_by", + signature: "order_by", + status: "order_by", + updatedAt: "order_by", + walletAddress: "order_by", + }, + centralized_txn_min_order_by: { + accountId: "order_by", + baseCurrency: "order_by", + baseCurrencyAmount: "order_by", + clientId: "order_by", + createdAt: "order_by", + cryptoTransactionId: "order_by", + failedReason: "order_by", + feeAmount: "order_by", + id: "order_by", + paymentMethod: "order_by", + provider: "order_by", + providerTxnId: "order_by", + quoteCurrency: "order_by", + quoteCurrencyAmount: "order_by", + signature: "order_by", + status: "order_by", + updatedAt: "order_by", + walletAddress: "order_by", + }, centralized_txn_on_conflict: { constraint: "centralized_txn_constraint", update_columns: "centralized_txn_update_column", @@ -396,6 +544,22 @@ export const AllTypesProps: Record = { id: "uuid", }, centralized_txn_select_column: "enum" as const, + centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns: + "enum" as const, + centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns: + "enum" as const, + centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns: + "enum" as const, + centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns: + "enum" as const, + centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns: + "enum" as const, + centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns: + "enum" as const, + centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns: + "enum" as const, + centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns: + "enum" as const, centralized_txn_set_input: { accountId: "uuid", baseCurrencyAmount: "float8", @@ -407,6 +571,21 @@ export const AllTypesProps: Record = { quoteCurrencyAmount: "float8", updatedAt: "timestamptz", }, + centralized_txn_stddev_order_by: { + baseCurrencyAmount: "order_by", + feeAmount: "order_by", + quoteCurrencyAmount: "order_by", + }, + centralized_txn_stddev_pop_order_by: { + baseCurrencyAmount: "order_by", + feeAmount: "order_by", + quoteCurrencyAmount: "order_by", + }, + centralized_txn_stddev_samp_order_by: { + baseCurrencyAmount: "order_by", + feeAmount: "order_by", + quoteCurrencyAmount: "order_by", + }, centralized_txn_stream_cursor_input: { initial_value: "centralized_txn_stream_cursor_value_input", ordering: "cursor_ordering", @@ -422,12 +601,32 @@ export const AllTypesProps: Record = { quoteCurrencyAmount: "float8", updatedAt: "timestamptz", }, + centralized_txn_sum_order_by: { + baseCurrencyAmount: "order_by", + feeAmount: "order_by", + quoteCurrencyAmount: "order_by", + }, centralized_txn_update_column: "enum" as const, centralized_txn_updates: { _inc: "centralized_txn_inc_input", _set: "centralized_txn_set_input", where: "centralized_txn_bool_exp", }, + centralized_txn_var_pop_order_by: { + baseCurrencyAmount: "order_by", + feeAmount: "order_by", + quoteCurrencyAmount: "order_by", + }, + centralized_txn_var_samp_order_by: { + baseCurrencyAmount: "order_by", + feeAmount: "order_by", + quoteCurrencyAmount: "order_by", + }, + centralized_txn_variance_order_by: { + baseCurrencyAmount: "order_by", + feeAmount: "order_by", + quoteCurrencyAmount: "order_by", + }, chat_aggregate_bool_exp: { count: "chat_aggregate_bool_exp_count", }, @@ -542,6 +741,16 @@ export const AllTypesProps: Record = { order_by: "account_order_by", where: "account_bool_exp", }, + centralized_txns: { + distinct_on: "centralized_txn_select_column", + order_by: "centralized_txn_order_by", + where: "centralized_txn_bool_exp", + }, + centralized_txns_aggregate: { + distinct_on: "centralized_txn_select_column", + order_by: "centralized_txn_order_by", + where: "centralized_txn_bool_exp", + }, chats: { distinct_on: "chat_select_column", order_by: "chat_order_by", @@ -625,6 +834,8 @@ export const AllTypesProps: Record = { accounts: "account_bool_exp", accounts_aggregate: "account_aggregate_bool_exp", address: "address_bool_exp", + centralized_txns: "centralized_txn_bool_exp", + centralized_txns_aggregate: "centralized_txn_aggregate_bool_exp", chats: "chat_bool_exp", chats_aggregate: "chat_aggregate_bool_exp", client_setting: "client_settings_bool_exp", @@ -659,6 +870,7 @@ export const AllTypesProps: Record = { client_insert_input: { accounts: "account_arr_rel_insert_input", address: "address_obj_rel_insert_input", + centralized_txns: "centralized_txn_arr_rel_insert_input", chats: "chat_arr_rel_insert_input", client_setting: "client_settings_obj_rel_insert_input", createdAt: "timestamptz", @@ -685,6 +897,7 @@ export const AllTypesProps: Record = { client_order_by: { accounts_aggregate: "account_aggregate_order_by", address: "address_order_by", + centralized_txns_aggregate: "centralized_txn_aggregate_order_by", chats_aggregate: "chat_aggregate_order_by", client_setting: "client_settings_order_by", createdAt: "order_by", @@ -2811,6 +3024,8 @@ export const ReturnTypes: Record = { }, account: { bitcoin: "bitcoin", + centralized_txns: "centralized_txn", + centralized_txns_aggregate: "centralized_txn_aggregate", client: "client", clientId: "uuid", createdAt: "timestamptz", @@ -3161,6 +3376,8 @@ export const ReturnTypes: Record = { accounts: "account", accounts_aggregate: "account_aggregate", address: "address", + centralized_txns: "centralized_txn", + centralized_txns_aggregate: "centralized_txn_aggregate", chats: "chat", chats_aggregate: "chat_aggregate", client_setting: "client_settings", diff --git a/backend/zeus/src/zeus/index.ts b/backend/zeus/src/zeus/index.ts index daf89795..29bd543f 100644 --- a/backend/zeus/src/zeus/index.ts +++ b/backend/zeus/src/zeus/index.ts @@ -1084,6 +1084,74 @@ export type ValueTypes = { ["account"]: AliasType<{ /** An object relationship */ bitcoin?: ValueTypes["bitcoin"]; + centralized_txns?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null + | Variable /** limit the number of rows returned */; + limit?: + | number + | undefined + | null + | Variable< + any, + string + > /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null + | Variable /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null + | Variable /** filter the rows returned */; + where?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + }, + ValueTypes["centralized_txn"], + ]; + centralized_txns_aggregate?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null + | Variable /** limit the number of rows returned */; + limit?: + | number + | undefined + | null + | Variable< + any, + string + > /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null + | Variable /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null + | Variable /** filter the rows returned */; + where?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + }, + ValueTypes["centralized_txn_aggregate"], + ]; /** An object relationship */ client?: ValueTypes["client"]; /** clientId */ @@ -1227,6 +1295,16 @@ export type ValueTypes = { | undefined | null | Variable; + centralized_txns?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + centralized_txns_aggregate?: + | ValueTypes["centralized_txn_aggregate_bool_exp"] + | undefined + | null + | Variable; client?: | ValueTypes["client_bool_exp"] | undefined @@ -1289,6 +1367,11 @@ export type ValueTypes = { | undefined | null | Variable; + centralized_txns?: + | ValueTypes["centralized_txn_arr_rel_insert_input"] + | undefined + | null + | Variable; client?: | ValueTypes["client_obj_rel_insert_input"] | undefined @@ -1442,6 +1525,11 @@ export type ValueTypes = { | undefined | null | Variable; + centralized_txns_aggregate?: + | ValueTypes["centralized_txn_aggregate_order_by"] + | undefined + | null + | Variable; client?: | ValueTypes["client_order_by"] | undefined @@ -2317,6 +2405,179 @@ export type ValueTypes = { nodes?: ValueTypes["centralized_txn"]; __typename?: boolean | `@${string}`; }>; + ["centralized_txn_aggregate_bool_exp"]: { + avg?: + | ValueTypes["centralized_txn_aggregate_bool_exp_avg"] + | undefined + | null + | Variable; + corr?: + | ValueTypes["centralized_txn_aggregate_bool_exp_corr"] + | undefined + | null + | Variable; + count?: + | ValueTypes["centralized_txn_aggregate_bool_exp_count"] + | undefined + | null + | Variable; + covar_samp?: + | ValueTypes["centralized_txn_aggregate_bool_exp_covar_samp"] + | undefined + | null + | Variable; + max?: + | ValueTypes["centralized_txn_aggregate_bool_exp_max"] + | undefined + | null + | Variable; + min?: + | ValueTypes["centralized_txn_aggregate_bool_exp_min"] + | undefined + | null + | Variable; + stddev_samp?: + | ValueTypes["centralized_txn_aggregate_bool_exp_stddev_samp"] + | undefined + | null + | Variable; + sum?: + | ValueTypes["centralized_txn_aggregate_bool_exp_sum"] + | undefined + | null + | Variable; + var_samp?: + | ValueTypes["centralized_txn_aggregate_bool_exp_var_samp"] + | undefined + | null + | Variable; + }; + ["centralized_txn_aggregate_bool_exp_avg"]: { + arguments: + | ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns"] + | Variable; + distinct?: boolean | undefined | null | Variable; + filter?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + predicate: ValueTypes["float8_comparison_exp"] | Variable; + }; + ["centralized_txn_aggregate_bool_exp_corr"]: { + arguments: + | ValueTypes["centralized_txn_aggregate_bool_exp_corr_arguments"] + | Variable; + distinct?: boolean | undefined | null | Variable; + filter?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + predicate: ValueTypes["float8_comparison_exp"] | Variable; + }; + ["centralized_txn_aggregate_bool_exp_corr_arguments"]: { + X: + | ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"] + | Variable; + Y: + | ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"] + | Variable; + }; + ["centralized_txn_aggregate_bool_exp_count"]: { + arguments?: + | Array + | undefined + | null + | Variable; + distinct?: boolean | undefined | null | Variable; + filter?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + predicate: ValueTypes["Int_comparison_exp"] | Variable; + }; + ["centralized_txn_aggregate_bool_exp_covar_samp"]: { + arguments: + | ValueTypes["centralized_txn_aggregate_bool_exp_covar_samp_arguments"] + | Variable; + distinct?: boolean | undefined | null | Variable; + filter?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + predicate: ValueTypes["float8_comparison_exp"] | Variable; + }; + ["centralized_txn_aggregate_bool_exp_covar_samp_arguments"]: { + X: + | ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"] + | Variable; + Y: + | ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"] + | Variable; + }; + ["centralized_txn_aggregate_bool_exp_max"]: { + arguments: + | ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns"] + | Variable; + distinct?: boolean | undefined | null | Variable; + filter?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + predicate: ValueTypes["float8_comparison_exp"] | Variable; + }; + ["centralized_txn_aggregate_bool_exp_min"]: { + arguments: + | ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns"] + | Variable; + distinct?: boolean | undefined | null | Variable; + filter?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + predicate: ValueTypes["float8_comparison_exp"] | Variable; + }; + ["centralized_txn_aggregate_bool_exp_stddev_samp"]: { + arguments: + | ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns"] + | Variable; + distinct?: boolean | undefined | null | Variable; + filter?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + predicate: ValueTypes["float8_comparison_exp"] | Variable; + }; + ["centralized_txn_aggregate_bool_exp_sum"]: { + arguments: + | ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns"] + | Variable; + distinct?: boolean | undefined | null | Variable; + filter?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + predicate: ValueTypes["float8_comparison_exp"] | Variable; + }; + ["centralized_txn_aggregate_bool_exp_var_samp"]: { + arguments: + | ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns"] + | Variable; + distinct?: boolean | undefined | null | Variable; + filter?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + predicate: ValueTypes["float8_comparison_exp"] | Variable; + }; /** aggregate fields of "centralized_txn" */ ["centralized_txn_aggregate_fields"]: AliasType<{ avg?: ValueTypes["centralized_txn_avg_fields"]; @@ -2342,6 +2603,72 @@ export type ValueTypes = { variance?: ValueTypes["centralized_txn_variance_fields"]; __typename?: boolean | `@${string}`; }>; + /** order by aggregate values of table "centralized_txn" */ + ["centralized_txn_aggregate_order_by"]: { + avg?: + | ValueTypes["centralized_txn_avg_order_by"] + | undefined + | null + | Variable; + count?: ValueTypes["order_by"] | undefined | null | Variable; + max?: + | ValueTypes["centralized_txn_max_order_by"] + | undefined + | null + | Variable; + min?: + | ValueTypes["centralized_txn_min_order_by"] + | undefined + | null + | Variable; + stddev?: + | ValueTypes["centralized_txn_stddev_order_by"] + | undefined + | null + | Variable; + stddev_pop?: + | ValueTypes["centralized_txn_stddev_pop_order_by"] + | undefined + | null + | Variable; + stddev_samp?: + | ValueTypes["centralized_txn_stddev_samp_order_by"] + | undefined + | null + | Variable; + sum?: + | ValueTypes["centralized_txn_sum_order_by"] + | undefined + | null + | Variable; + var_pop?: + | ValueTypes["centralized_txn_var_pop_order_by"] + | undefined + | null + | Variable; + var_samp?: + | ValueTypes["centralized_txn_var_samp_order_by"] + | undefined + | null + | Variable; + variance?: + | ValueTypes["centralized_txn_variance_order_by"] + | undefined + | null + | Variable; + }; + /** input type for inserting array relation for remote table "centralized_txn" */ + ["centralized_txn_arr_rel_insert_input"]: { + data: + | Array + | Variable; + /** upsert condition */ + on_conflict?: + | ValueTypes["centralized_txn_on_conflict"] + | undefined + | null + | Variable; + }; /** aggregate avg on columns */ ["centralized_txn_avg_fields"]: AliasType<{ baseCurrencyAmount?: boolean | `@${string}`; @@ -2349,6 +2676,24 @@ export type ValueTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by avg() on columns of table "centralized_txn" */ + ["centralized_txn_avg_order_by"]: { + baseCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + feeAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; /** Boolean expression to filter rows from the table "centralized_txn". All fields are combined with a logical 'AND'. */ ["centralized_txn_bool_exp"]: { _and?: @@ -2556,6 +2901,91 @@ export type ValueTypes = { walletAddress?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by max() on columns of table "centralized_txn" */ + ["centralized_txn_max_order_by"]: { + accountId?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + baseCurrency?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + baseCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + clientId?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + createdAt?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + cryptoTransactionId?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + failedReason?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + feeAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + id?: ValueTypes["order_by"] | undefined | null | Variable; + paymentMethod?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + provider?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + providerTxnId?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrency?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + signature?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + status?: ValueTypes["order_by"] | undefined | null | Variable; + updatedAt?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + walletAddress?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; /** aggregate min on columns */ ["centralized_txn_min_fields"]: AliasType<{ accountId?: boolean | `@${string}`; @@ -2578,6 +3008,91 @@ export type ValueTypes = { walletAddress?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by min() on columns of table "centralized_txn" */ + ["centralized_txn_min_order_by"]: { + accountId?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + baseCurrency?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + baseCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + clientId?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + createdAt?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + cryptoTransactionId?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + failedReason?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + feeAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + id?: ValueTypes["order_by"] | undefined | null | Variable; + paymentMethod?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + provider?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + providerTxnId?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrency?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + signature?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + status?: ValueTypes["order_by"] | undefined | null | Variable; + updatedAt?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + walletAddress?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; /** response of any mutation on the table "centralized_txn" */ ["centralized_txn_mutation_response"]: AliasType<{ /** number of rows affected by the mutation */ @@ -2701,6 +3216,22 @@ export type ValueTypes = { }; /** select columns of table "centralized_txn" */ ["centralized_txn_select_column"]: centralized_txn_select_column; + /** select "centralized_txn_aggregate_bool_exp_avg_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_corr_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_max_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_min_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_sum_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_var_samp_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns; /** input type for updating data in table "centralized_txn" */ ["centralized_txn_set_input"]: { accountId?: ValueTypes["uuid"] | undefined | null | Variable; @@ -2749,6 +3280,24 @@ export type ValueTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by stddev() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_order_by"]: { + baseCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + feeAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; /** aggregate stddev_pop on columns */ ["centralized_txn_stddev_pop_fields"]: AliasType<{ baseCurrencyAmount?: boolean | `@${string}`; @@ -2756,6 +3305,24 @@ export type ValueTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by stddev_pop() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_pop_order_by"]: { + baseCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + feeAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; /** aggregate stddev_samp on columns */ ["centralized_txn_stddev_samp_fields"]: AliasType<{ baseCurrencyAmount?: boolean | `@${string}`; @@ -2763,6 +3330,24 @@ export type ValueTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by stddev_samp() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_samp_order_by"]: { + baseCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + feeAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; /** Streaming cursor of the table "centralized_txn" */ ["centralized_txn_stream_cursor_input"]: { /** Stream column input with initial value */ @@ -2824,6 +3409,24 @@ export type ValueTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by sum() on columns of table "centralized_txn" */ + ["centralized_txn_sum_order_by"]: { + baseCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + feeAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; /** update columns of table "centralized_txn" */ ["centralized_txn_update_column"]: centralized_txn_update_column; ["centralized_txn_updates"]: { @@ -2849,6 +3452,24 @@ export type ValueTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by var_pop() on columns of table "centralized_txn" */ + ["centralized_txn_var_pop_order_by"]: { + baseCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + feeAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; /** aggregate var_samp on columns */ ["centralized_txn_var_samp_fields"]: AliasType<{ baseCurrencyAmount?: boolean | `@${string}`; @@ -2856,6 +3477,24 @@ export type ValueTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by var_samp() on columns of table "centralized_txn" */ + ["centralized_txn_var_samp_order_by"]: { + baseCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + feeAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; /** aggregate variance on columns */ ["centralized_txn_variance_fields"]: AliasType<{ baseCurrencyAmount?: boolean | `@${string}`; @@ -2863,6 +3502,24 @@ export type ValueTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by variance() on columns of table "centralized_txn" */ + ["centralized_txn_variance_order_by"]: { + baseCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + feeAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + quoteCurrencyAmount?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; /** chat messages for clients */ ["chat"]: AliasType<{ /** An object relationship */ @@ -3294,6 +3951,74 @@ export type ValueTypes = { ]; /** An object relationship */ address?: ValueTypes["address"]; + centralized_txns?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null + | Variable /** limit the number of rows returned */; + limit?: + | number + | undefined + | null + | Variable< + any, + string + > /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null + | Variable /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null + | Variable /** filter the rows returned */; + where?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + }, + ValueTypes["centralized_txn"], + ]; + centralized_txns_aggregate?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null + | Variable /** limit the number of rows returned */; + limit?: + | number + | undefined + | null + | Variable< + any, + string + > /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null + | Variable /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null + | Variable /** filter the rows returned */; + where?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + }, + ValueTypes["centralized_txn_aggregate"], + ]; chats?: [ { /** distinct select on columns */ @@ -3852,6 +4577,16 @@ export type ValueTypes = { | undefined | null | Variable; + centralized_txns?: + | ValueTypes["centralized_txn_bool_exp"] + | undefined + | null + | Variable; + centralized_txns_aggregate?: + | ValueTypes["centralized_txn_aggregate_bool_exp"] + | undefined + | null + | Variable; chats?: | ValueTypes["chat_bool_exp"] | undefined @@ -3996,6 +4731,11 @@ export type ValueTypes = { | undefined | null | Variable; + centralized_txns?: + | ValueTypes["centralized_txn_arr_rel_insert_input"] + | undefined + | null + | Variable; chats?: | ValueTypes["chat_arr_rel_insert_input"] | undefined @@ -4123,6 +4863,11 @@ export type ValueTypes = { | undefined | null | Variable; + centralized_txns_aggregate?: + | ValueTypes["centralized_txn_aggregate_order_by"] + | undefined + | null + | Variable; chats_aggregate?: | ValueTypes["chat_aggregate_order_by"] | undefined @@ -12502,6 +13247,58 @@ export type ResolverInputTypes = { ["account"]: AliasType<{ /** An object relationship */ bitcoin?: ResolverInputTypes["bitcoin"]; + centralized_txns?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null /** limit the number of rows returned */; + limit?: + | number + | undefined + | null /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null /** filter the rows returned */; + where?: + | ResolverInputTypes["centralized_txn_bool_exp"] + | undefined + | null; + }, + ResolverInputTypes["centralized_txn"], + ]; + centralized_txns_aggregate?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null /** limit the number of rows returned */; + limit?: + | number + | undefined + | null /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null /** filter the rows returned */; + where?: + | ResolverInputTypes["centralized_txn_bool_exp"] + | undefined + | null; + }, + ResolverInputTypes["centralized_txn_aggregate"], + ]; /** An object relationship */ client?: ResolverInputTypes["client"]; /** clientId */ @@ -12596,6 +13393,14 @@ export type ResolverInputTypes = { _not?: ResolverInputTypes["account_bool_exp"] | undefined | null; _or?: Array | undefined | null; bitcoin?: ResolverInputTypes["bitcoin_bool_exp"] | undefined | null; + centralized_txns?: + | ResolverInputTypes["centralized_txn_bool_exp"] + | undefined + | null; + centralized_txns_aggregate?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp"] + | undefined + | null; client?: ResolverInputTypes["client_bool_exp"] | undefined | null; clientId?: ResolverInputTypes["uuid_comparison_exp"] | undefined | null; createdAt?: @@ -12623,6 +13428,10 @@ export type ResolverInputTypes = { | ResolverInputTypes["bitcoin_obj_rel_insert_input"] | undefined | null; + centralized_txns?: + | ResolverInputTypes["centralized_txn_arr_rel_insert_input"] + | undefined + | null; client?: | ResolverInputTypes["client_obj_rel_insert_input"] | undefined @@ -12712,6 +13521,10 @@ export type ResolverInputTypes = { /** Ordering options when selecting data from "account". */ ["account_order_by"]: { bitcoin?: ResolverInputTypes["bitcoin_order_by"] | undefined | null; + centralized_txns_aggregate?: + | ResolverInputTypes["centralized_txn_aggregate_order_by"] + | undefined + | null; client?: ResolverInputTypes["client_order_by"] | undefined | null; clientId?: ResolverInputTypes["order_by"] | undefined | null; createdAt?: ResolverInputTypes["order_by"] | undefined | null; @@ -13245,6 +14058,109 @@ export type ResolverInputTypes = { nodes?: ResolverInputTypes["centralized_txn"]; __typename?: boolean | `@${string}`; }>; + ["centralized_txn_aggregate_bool_exp"]: { + avg?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp_avg"] + | undefined + | null; + corr?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp_corr"] + | undefined + | null; + count?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp_count"] + | undefined + | null; + covar_samp?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp_covar_samp"] + | undefined + | null; + max?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp_max"] + | undefined + | null; + min?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp_min"] + | undefined + | null; + stddev_samp?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp_stddev_samp"] + | undefined + | null; + sum?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp_sum"] + | undefined + | null; + var_samp?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp_var_samp"] + | undefined + | null; + }; + ["centralized_txn_aggregate_bool_exp_avg"]: { + arguments: ResolverInputTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns"]; + distinct?: boolean | undefined | null; + filter?: ResolverInputTypes["centralized_txn_bool_exp"] | undefined | null; + predicate: ResolverInputTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_corr"]: { + arguments: ResolverInputTypes["centralized_txn_aggregate_bool_exp_corr_arguments"]; + distinct?: boolean | undefined | null; + filter?: ResolverInputTypes["centralized_txn_bool_exp"] | undefined | null; + predicate: ResolverInputTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_corr_arguments"]: { + X: ResolverInputTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]; + Y: ResolverInputTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]; + }; + ["centralized_txn_aggregate_bool_exp_count"]: { + arguments?: + | Array + | undefined + | null; + distinct?: boolean | undefined | null; + filter?: ResolverInputTypes["centralized_txn_bool_exp"] | undefined | null; + predicate: ResolverInputTypes["Int_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_covar_samp"]: { + arguments: ResolverInputTypes["centralized_txn_aggregate_bool_exp_covar_samp_arguments"]; + distinct?: boolean | undefined | null; + filter?: ResolverInputTypes["centralized_txn_bool_exp"] | undefined | null; + predicate: ResolverInputTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_covar_samp_arguments"]: { + X: ResolverInputTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]; + Y: ResolverInputTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]; + }; + ["centralized_txn_aggregate_bool_exp_max"]: { + arguments: ResolverInputTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns"]; + distinct?: boolean | undefined | null; + filter?: ResolverInputTypes["centralized_txn_bool_exp"] | undefined | null; + predicate: ResolverInputTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_min"]: { + arguments: ResolverInputTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns"]; + distinct?: boolean | undefined | null; + filter?: ResolverInputTypes["centralized_txn_bool_exp"] | undefined | null; + predicate: ResolverInputTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_stddev_samp"]: { + arguments: ResolverInputTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns"]; + distinct?: boolean | undefined | null; + filter?: ResolverInputTypes["centralized_txn_bool_exp"] | undefined | null; + predicate: ResolverInputTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_sum"]: { + arguments: ResolverInputTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns"]; + distinct?: boolean | undefined | null; + filter?: ResolverInputTypes["centralized_txn_bool_exp"] | undefined | null; + predicate: ResolverInputTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_var_samp"]: { + arguments: ResolverInputTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns"]; + distinct?: boolean | undefined | null; + filter?: ResolverInputTypes["centralized_txn_bool_exp"] | undefined | null; + predicate: ResolverInputTypes["float8_comparison_exp"]; + }; /** aggregate fields of "centralized_txn" */ ["centralized_txn_aggregate_fields"]: AliasType<{ avg?: ResolverInputTypes["centralized_txn_avg_fields"]; @@ -13269,6 +14185,47 @@ export type ResolverInputTypes = { variance?: ResolverInputTypes["centralized_txn_variance_fields"]; __typename?: boolean | `@${string}`; }>; + /** order by aggregate values of table "centralized_txn" */ + ["centralized_txn_aggregate_order_by"]: { + avg?: ResolverInputTypes["centralized_txn_avg_order_by"] | undefined | null; + count?: ResolverInputTypes["order_by"] | undefined | null; + max?: ResolverInputTypes["centralized_txn_max_order_by"] | undefined | null; + min?: ResolverInputTypes["centralized_txn_min_order_by"] | undefined | null; + stddev?: + | ResolverInputTypes["centralized_txn_stddev_order_by"] + | undefined + | null; + stddev_pop?: + | ResolverInputTypes["centralized_txn_stddev_pop_order_by"] + | undefined + | null; + stddev_samp?: + | ResolverInputTypes["centralized_txn_stddev_samp_order_by"] + | undefined + | null; + sum?: ResolverInputTypes["centralized_txn_sum_order_by"] | undefined | null; + var_pop?: + | ResolverInputTypes["centralized_txn_var_pop_order_by"] + | undefined + | null; + var_samp?: + | ResolverInputTypes["centralized_txn_var_samp_order_by"] + | undefined + | null; + variance?: + | ResolverInputTypes["centralized_txn_variance_order_by"] + | undefined + | null; + }; + /** input type for inserting array relation for remote table "centralized_txn" */ + ["centralized_txn_arr_rel_insert_input"]: { + data: Array; + /** upsert condition */ + on_conflict?: + | ResolverInputTypes["centralized_txn_on_conflict"] + | undefined + | null; + }; /** aggregate avg on columns */ ["centralized_txn_avg_fields"]: AliasType<{ baseCurrencyAmount?: boolean | `@${string}`; @@ -13276,6 +14233,12 @@ export type ResolverInputTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by avg() on columns of table "centralized_txn" */ + ["centralized_txn_avg_order_by"]: { + baseCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + feeAmount?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + }; /** Boolean expression to filter rows from the table "centralized_txn". All fields are combined with a logical 'AND'. */ ["centralized_txn_bool_exp"]: { _and?: @@ -13400,6 +14363,27 @@ export type ResolverInputTypes = { walletAddress?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by max() on columns of table "centralized_txn" */ + ["centralized_txn_max_order_by"]: { + accountId?: ResolverInputTypes["order_by"] | undefined | null; + baseCurrency?: ResolverInputTypes["order_by"] | undefined | null; + baseCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + clientId?: ResolverInputTypes["order_by"] | undefined | null; + createdAt?: ResolverInputTypes["order_by"] | undefined | null; + cryptoTransactionId?: ResolverInputTypes["order_by"] | undefined | null; + failedReason?: ResolverInputTypes["order_by"] | undefined | null; + feeAmount?: ResolverInputTypes["order_by"] | undefined | null; + id?: ResolverInputTypes["order_by"] | undefined | null; + paymentMethod?: ResolverInputTypes["order_by"] | undefined | null; + provider?: ResolverInputTypes["order_by"] | undefined | null; + providerTxnId?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrency?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + signature?: ResolverInputTypes["order_by"] | undefined | null; + status?: ResolverInputTypes["order_by"] | undefined | null; + updatedAt?: ResolverInputTypes["order_by"] | undefined | null; + walletAddress?: ResolverInputTypes["order_by"] | undefined | null; + }; /** aggregate min on columns */ ["centralized_txn_min_fields"]: AliasType<{ accountId?: boolean | `@${string}`; @@ -13422,6 +14406,27 @@ export type ResolverInputTypes = { walletAddress?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by min() on columns of table "centralized_txn" */ + ["centralized_txn_min_order_by"]: { + accountId?: ResolverInputTypes["order_by"] | undefined | null; + baseCurrency?: ResolverInputTypes["order_by"] | undefined | null; + baseCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + clientId?: ResolverInputTypes["order_by"] | undefined | null; + createdAt?: ResolverInputTypes["order_by"] | undefined | null; + cryptoTransactionId?: ResolverInputTypes["order_by"] | undefined | null; + failedReason?: ResolverInputTypes["order_by"] | undefined | null; + feeAmount?: ResolverInputTypes["order_by"] | undefined | null; + id?: ResolverInputTypes["order_by"] | undefined | null; + paymentMethod?: ResolverInputTypes["order_by"] | undefined | null; + provider?: ResolverInputTypes["order_by"] | undefined | null; + providerTxnId?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrency?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + signature?: ResolverInputTypes["order_by"] | undefined | null; + status?: ResolverInputTypes["order_by"] | undefined | null; + updatedAt?: ResolverInputTypes["order_by"] | undefined | null; + walletAddress?: ResolverInputTypes["order_by"] | undefined | null; + }; /** response of any mutation on the table "centralized_txn" */ ["centralized_txn_mutation_response"]: AliasType<{ /** number of rows affected by the mutation */ @@ -13465,6 +14470,22 @@ export type ResolverInputTypes = { }; /** select columns of table "centralized_txn" */ ["centralized_txn_select_column"]: centralized_txn_select_column; + /** select "centralized_txn_aggregate_bool_exp_avg_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_corr_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_max_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_min_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_sum_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_var_samp_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns; /** input type for updating data in table "centralized_txn" */ ["centralized_txn_set_input"]: { accountId?: ResolverInputTypes["uuid"] | undefined | null; @@ -13493,6 +14514,12 @@ export type ResolverInputTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by stddev() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_order_by"]: { + baseCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + feeAmount?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + }; /** aggregate stddev_pop on columns */ ["centralized_txn_stddev_pop_fields"]: AliasType<{ baseCurrencyAmount?: boolean | `@${string}`; @@ -13500,6 +14527,12 @@ export type ResolverInputTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by stddev_pop() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_pop_order_by"]: { + baseCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + feeAmount?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + }; /** aggregate stddev_samp on columns */ ["centralized_txn_stddev_samp_fields"]: AliasType<{ baseCurrencyAmount?: boolean | `@${string}`; @@ -13507,6 +14540,12 @@ export type ResolverInputTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by stddev_samp() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_samp_order_by"]: { + baseCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + feeAmount?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + }; /** Streaming cursor of the table "centralized_txn" */ ["centralized_txn_stream_cursor_input"]: { /** Stream column input with initial value */ @@ -13542,6 +14581,12 @@ export type ResolverInputTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by sum() on columns of table "centralized_txn" */ + ["centralized_txn_sum_order_by"]: { + baseCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + feeAmount?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + }; /** update columns of table "centralized_txn" */ ["centralized_txn_update_column"]: centralized_txn_update_column; ["centralized_txn_updates"]: { @@ -13559,6 +14604,12 @@ export type ResolverInputTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by var_pop() on columns of table "centralized_txn" */ + ["centralized_txn_var_pop_order_by"]: { + baseCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + feeAmount?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + }; /** aggregate var_samp on columns */ ["centralized_txn_var_samp_fields"]: AliasType<{ baseCurrencyAmount?: boolean | `@${string}`; @@ -13566,6 +14617,12 @@ export type ResolverInputTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by var_samp() on columns of table "centralized_txn" */ + ["centralized_txn_var_samp_order_by"]: { + baseCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + feeAmount?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + }; /** aggregate variance on columns */ ["centralized_txn_variance_fields"]: AliasType<{ baseCurrencyAmount?: boolean | `@${string}`; @@ -13573,6 +14630,12 @@ export type ResolverInputTypes = { quoteCurrencyAmount?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** order by variance() on columns of table "centralized_txn" */ + ["centralized_txn_variance_order_by"]: { + baseCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + feeAmount?: ResolverInputTypes["order_by"] | undefined | null; + quoteCurrencyAmount?: ResolverInputTypes["order_by"] | undefined | null; + }; /** chat messages for clients */ ["chat"]: AliasType<{ /** An object relationship */ @@ -13827,6 +14890,58 @@ export type ResolverInputTypes = { ]; /** An object relationship */ address?: ResolverInputTypes["address"]; + centralized_txns?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null /** limit the number of rows returned */; + limit?: + | number + | undefined + | null /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null /** filter the rows returned */; + where?: + | ResolverInputTypes["centralized_txn_bool_exp"] + | undefined + | null; + }, + ResolverInputTypes["centralized_txn"], + ]; + centralized_txns_aggregate?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null /** limit the number of rows returned */; + limit?: + | number + | undefined + | null /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null /** filter the rows returned */; + where?: + | ResolverInputTypes["centralized_txn_bool_exp"] + | undefined + | null; + }, + ResolverInputTypes["centralized_txn_aggregate"], + ]; chats?: [ { /** distinct select on columns */ @@ -14215,6 +15330,14 @@ export type ResolverInputTypes = { | undefined | null; address?: ResolverInputTypes["address_bool_exp"] | undefined | null; + centralized_txns?: + | ResolverInputTypes["centralized_txn_bool_exp"] + | undefined + | null; + centralized_txns_aggregate?: + | ResolverInputTypes["centralized_txn_aggregate_bool_exp"] + | undefined + | null; chats?: ResolverInputTypes["chat_bool_exp"] | undefined | null; chats_aggregate?: | ResolverInputTypes["chat_aggregate_bool_exp"] @@ -14299,6 +15422,10 @@ export type ResolverInputTypes = { | ResolverInputTypes["address_obj_rel_insert_input"] | undefined | null; + centralized_txns?: + | ResolverInputTypes["centralized_txn_arr_rel_insert_input"] + | undefined + | null; chats?: ResolverInputTypes["chat_arr_rel_insert_input"] | undefined | null; client_setting?: | ResolverInputTypes["client_settings_obj_rel_insert_input"] @@ -14392,6 +15519,10 @@ export type ResolverInputTypes = { | undefined | null; address?: ResolverInputTypes["address_order_by"] | undefined | null; + centralized_txns_aggregate?: + | ResolverInputTypes["centralized_txn_aggregate_order_by"] + | undefined + | null; chats_aggregate?: | ResolverInputTypes["chat_aggregate_order_by"] | undefined @@ -20041,6 +21172,10 @@ export type ModelTypes = { ["account"]: { /** An object relationship */ bitcoin?: ModelTypes["bitcoin"] | undefined; + /** An array relationship */ + centralized_txns: Array; + /** An aggregate relationship */ + centralized_txns_aggregate: ModelTypes["centralized_txn_aggregate"]; /** An object relationship */ client: ModelTypes["client"]; /** clientId */ @@ -20111,6 +21246,10 @@ export type ModelTypes = { _not?: ModelTypes["account_bool_exp"] | undefined; _or?: Array | undefined; bitcoin?: ModelTypes["bitcoin_bool_exp"] | undefined; + centralized_txns?: ModelTypes["centralized_txn_bool_exp"] | undefined; + centralized_txns_aggregate?: + | ModelTypes["centralized_txn_aggregate_bool_exp"] + | undefined; client?: ModelTypes["client_bool_exp"] | undefined; clientId?: ModelTypes["uuid_comparison_exp"] | undefined; createdAt?: ModelTypes["timestamptz_comparison_exp"] | undefined; @@ -20128,6 +21267,9 @@ export type ModelTypes = { /** input type for inserting data into table "account" */ ["account_insert_input"]: { bitcoin?: ModelTypes["bitcoin_obj_rel_insert_input"] | undefined; + centralized_txns?: + | ModelTypes["centralized_txn_arr_rel_insert_input"] + | undefined; client?: ModelTypes["client_obj_rel_insert_input"] | undefined; /** clientId */ clientId?: ModelTypes["uuid"] | undefined; @@ -20208,6 +21350,9 @@ export type ModelTypes = { /** Ordering options when selecting data from "account". */ ["account_order_by"]: { bitcoin?: ModelTypes["bitcoin_order_by"] | undefined; + centralized_txns_aggregate?: + | ModelTypes["centralized_txn_aggregate_order_by"] + | undefined; client?: ModelTypes["client_order_by"] | undefined; clientId?: ModelTypes["order_by"] | undefined; createdAt?: ModelTypes["order_by"] | undefined; @@ -20668,10 +21813,89 @@ export type ModelTypes = { updatedAt: ModelTypes["timestamptz"]; walletAddress: string; }; - /** aggregated selection of "centralized_txn" */ - ["centralized_txn_aggregate"]: { - aggregate?: ModelTypes["centralized_txn_aggregate_fields"] | undefined; - nodes: Array; + /** aggregated selection of "centralized_txn" */ + ["centralized_txn_aggregate"]: { + aggregate?: ModelTypes["centralized_txn_aggregate_fields"] | undefined; + nodes: Array; + }; + ["centralized_txn_aggregate_bool_exp"]: { + avg?: ModelTypes["centralized_txn_aggregate_bool_exp_avg"] | undefined; + corr?: ModelTypes["centralized_txn_aggregate_bool_exp_corr"] | undefined; + count?: ModelTypes["centralized_txn_aggregate_bool_exp_count"] | undefined; + covar_samp?: + | ModelTypes["centralized_txn_aggregate_bool_exp_covar_samp"] + | undefined; + max?: ModelTypes["centralized_txn_aggregate_bool_exp_max"] | undefined; + min?: ModelTypes["centralized_txn_aggregate_bool_exp_min"] | undefined; + stddev_samp?: + | ModelTypes["centralized_txn_aggregate_bool_exp_stddev_samp"] + | undefined; + sum?: ModelTypes["centralized_txn_aggregate_bool_exp_sum"] | undefined; + var_samp?: + | ModelTypes["centralized_txn_aggregate_bool_exp_var_samp"] + | undefined; + }; + ["centralized_txn_aggregate_bool_exp_avg"]: { + arguments: ModelTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns"]; + distinct?: boolean | undefined; + filter?: ModelTypes["centralized_txn_bool_exp"] | undefined; + predicate: ModelTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_corr"]: { + arguments: ModelTypes["centralized_txn_aggregate_bool_exp_corr_arguments"]; + distinct?: boolean | undefined; + filter?: ModelTypes["centralized_txn_bool_exp"] | undefined; + predicate: ModelTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_corr_arguments"]: { + X: ModelTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]; + Y: ModelTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]; + }; + ["centralized_txn_aggregate_bool_exp_count"]: { + arguments?: Array | undefined; + distinct?: boolean | undefined; + filter?: ModelTypes["centralized_txn_bool_exp"] | undefined; + predicate: ModelTypes["Int_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_covar_samp"]: { + arguments: ModelTypes["centralized_txn_aggregate_bool_exp_covar_samp_arguments"]; + distinct?: boolean | undefined; + filter?: ModelTypes["centralized_txn_bool_exp"] | undefined; + predicate: ModelTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_covar_samp_arguments"]: { + X: ModelTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]; + Y: ModelTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]; + }; + ["centralized_txn_aggregate_bool_exp_max"]: { + arguments: ModelTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns"]; + distinct?: boolean | undefined; + filter?: ModelTypes["centralized_txn_bool_exp"] | undefined; + predicate: ModelTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_min"]: { + arguments: ModelTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns"]; + distinct?: boolean | undefined; + filter?: ModelTypes["centralized_txn_bool_exp"] | undefined; + predicate: ModelTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_stddev_samp"]: { + arguments: ModelTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns"]; + distinct?: boolean | undefined; + filter?: ModelTypes["centralized_txn_bool_exp"] | undefined; + predicate: ModelTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_sum"]: { + arguments: ModelTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns"]; + distinct?: boolean | undefined; + filter?: ModelTypes["centralized_txn_bool_exp"] | undefined; + predicate: ModelTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_var_samp"]: { + arguments: ModelTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns"]; + distinct?: boolean | undefined; + filter?: ModelTypes["centralized_txn_bool_exp"] | undefined; + predicate: ModelTypes["float8_comparison_exp"]; }; /** aggregate fields of "centralized_txn" */ ["centralized_txn_aggregate_fields"]: { @@ -20687,12 +21911,40 @@ export type ModelTypes = { var_samp?: ModelTypes["centralized_txn_var_samp_fields"] | undefined; variance?: ModelTypes["centralized_txn_variance_fields"] | undefined; }; + /** order by aggregate values of table "centralized_txn" */ + ["centralized_txn_aggregate_order_by"]: { + avg?: ModelTypes["centralized_txn_avg_order_by"] | undefined; + count?: ModelTypes["order_by"] | undefined; + max?: ModelTypes["centralized_txn_max_order_by"] | undefined; + min?: ModelTypes["centralized_txn_min_order_by"] | undefined; + stddev?: ModelTypes["centralized_txn_stddev_order_by"] | undefined; + stddev_pop?: ModelTypes["centralized_txn_stddev_pop_order_by"] | undefined; + stddev_samp?: + | ModelTypes["centralized_txn_stddev_samp_order_by"] + | undefined; + sum?: ModelTypes["centralized_txn_sum_order_by"] | undefined; + var_pop?: ModelTypes["centralized_txn_var_pop_order_by"] | undefined; + var_samp?: ModelTypes["centralized_txn_var_samp_order_by"] | undefined; + variance?: ModelTypes["centralized_txn_variance_order_by"] | undefined; + }; + /** input type for inserting array relation for remote table "centralized_txn" */ + ["centralized_txn_arr_rel_insert_input"]: { + data: Array; + /** upsert condition */ + on_conflict?: ModelTypes["centralized_txn_on_conflict"] | undefined; + }; /** aggregate avg on columns */ ["centralized_txn_avg_fields"]: { baseCurrencyAmount?: number | undefined; feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by avg() on columns of table "centralized_txn" */ + ["centralized_txn_avg_order_by"]: { + baseCurrencyAmount?: ModelTypes["order_by"] | undefined; + feeAmount?: ModelTypes["order_by"] | undefined; + quoteCurrencyAmount?: ModelTypes["order_by"] | undefined; + }; /** Boolean expression to filter rows from the table "centralized_txn". All fields are combined with a logical 'AND'. */ ["centralized_txn_bool_exp"]: { _and?: Array | undefined; @@ -20770,6 +22022,27 @@ export type ModelTypes = { updatedAt?: ModelTypes["timestamptz"] | undefined; walletAddress?: string | undefined; }; + /** order by max() on columns of table "centralized_txn" */ + ["centralized_txn_max_order_by"]: { + accountId?: ModelTypes["order_by"] | undefined; + baseCurrency?: ModelTypes["order_by"] | undefined; + baseCurrencyAmount?: ModelTypes["order_by"] | undefined; + clientId?: ModelTypes["order_by"] | undefined; + createdAt?: ModelTypes["order_by"] | undefined; + cryptoTransactionId?: ModelTypes["order_by"] | undefined; + failedReason?: ModelTypes["order_by"] | undefined; + feeAmount?: ModelTypes["order_by"] | undefined; + id?: ModelTypes["order_by"] | undefined; + paymentMethod?: ModelTypes["order_by"] | undefined; + provider?: ModelTypes["order_by"] | undefined; + providerTxnId?: ModelTypes["order_by"] | undefined; + quoteCurrency?: ModelTypes["order_by"] | undefined; + quoteCurrencyAmount?: ModelTypes["order_by"] | undefined; + signature?: ModelTypes["order_by"] | undefined; + status?: ModelTypes["order_by"] | undefined; + updatedAt?: ModelTypes["order_by"] | undefined; + walletAddress?: ModelTypes["order_by"] | undefined; + }; /** aggregate min on columns */ ["centralized_txn_min_fields"]: { accountId?: ModelTypes["uuid"] | undefined; @@ -20791,6 +22064,27 @@ export type ModelTypes = { updatedAt?: ModelTypes["timestamptz"] | undefined; walletAddress?: string | undefined; }; + /** order by min() on columns of table "centralized_txn" */ + ["centralized_txn_min_order_by"]: { + accountId?: ModelTypes["order_by"] | undefined; + baseCurrency?: ModelTypes["order_by"] | undefined; + baseCurrencyAmount?: ModelTypes["order_by"] | undefined; + clientId?: ModelTypes["order_by"] | undefined; + createdAt?: ModelTypes["order_by"] | undefined; + cryptoTransactionId?: ModelTypes["order_by"] | undefined; + failedReason?: ModelTypes["order_by"] | undefined; + feeAmount?: ModelTypes["order_by"] | undefined; + id?: ModelTypes["order_by"] | undefined; + paymentMethod?: ModelTypes["order_by"] | undefined; + provider?: ModelTypes["order_by"] | undefined; + providerTxnId?: ModelTypes["order_by"] | undefined; + quoteCurrency?: ModelTypes["order_by"] | undefined; + quoteCurrencyAmount?: ModelTypes["order_by"] | undefined; + signature?: ModelTypes["order_by"] | undefined; + status?: ModelTypes["order_by"] | undefined; + updatedAt?: ModelTypes["order_by"] | undefined; + walletAddress?: ModelTypes["order_by"] | undefined; + }; /** response of any mutation on the table "centralized_txn" */ ["centralized_txn_mutation_response"]: { /** number of rows affected by the mutation */ @@ -20832,6 +22126,14 @@ export type ModelTypes = { id: ModelTypes["uuid"]; }; ["centralized_txn_select_column"]: centralized_txn_select_column; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns; /** input type for updating data in table "centralized_txn" */ ["centralized_txn_set_input"]: { accountId?: ModelTypes["uuid"] | undefined; @@ -20859,18 +22161,36 @@ export type ModelTypes = { feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by stddev() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_order_by"]: { + baseCurrencyAmount?: ModelTypes["order_by"] | undefined; + feeAmount?: ModelTypes["order_by"] | undefined; + quoteCurrencyAmount?: ModelTypes["order_by"] | undefined; + }; /** aggregate stddev_pop on columns */ ["centralized_txn_stddev_pop_fields"]: { baseCurrencyAmount?: number | undefined; feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by stddev_pop() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_pop_order_by"]: { + baseCurrencyAmount?: ModelTypes["order_by"] | undefined; + feeAmount?: ModelTypes["order_by"] | undefined; + quoteCurrencyAmount?: ModelTypes["order_by"] | undefined; + }; /** aggregate stddev_samp on columns */ ["centralized_txn_stddev_samp_fields"]: { baseCurrencyAmount?: number | undefined; feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by stddev_samp() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_samp_order_by"]: { + baseCurrencyAmount?: ModelTypes["order_by"] | undefined; + feeAmount?: ModelTypes["order_by"] | undefined; + quoteCurrencyAmount?: ModelTypes["order_by"] | undefined; + }; /** Streaming cursor of the table "centralized_txn" */ ["centralized_txn_stream_cursor_input"]: { /** Stream column input with initial value */ @@ -20905,6 +22225,12 @@ export type ModelTypes = { feeAmount?: ModelTypes["float8"] | undefined; quoteCurrencyAmount?: ModelTypes["float8"] | undefined; }; + /** order by sum() on columns of table "centralized_txn" */ + ["centralized_txn_sum_order_by"]: { + baseCurrencyAmount?: ModelTypes["order_by"] | undefined; + feeAmount?: ModelTypes["order_by"] | undefined; + quoteCurrencyAmount?: ModelTypes["order_by"] | undefined; + }; ["centralized_txn_update_column"]: centralized_txn_update_column; ["centralized_txn_updates"]: { /** increments the numeric columns with given value of the filtered values */ @@ -20920,18 +22246,36 @@ export type ModelTypes = { feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by var_pop() on columns of table "centralized_txn" */ + ["centralized_txn_var_pop_order_by"]: { + baseCurrencyAmount?: ModelTypes["order_by"] | undefined; + feeAmount?: ModelTypes["order_by"] | undefined; + quoteCurrencyAmount?: ModelTypes["order_by"] | undefined; + }; /** aggregate var_samp on columns */ ["centralized_txn_var_samp_fields"]: { baseCurrencyAmount?: number | undefined; feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by var_samp() on columns of table "centralized_txn" */ + ["centralized_txn_var_samp_order_by"]: { + baseCurrencyAmount?: ModelTypes["order_by"] | undefined; + feeAmount?: ModelTypes["order_by"] | undefined; + quoteCurrencyAmount?: ModelTypes["order_by"] | undefined; + }; /** aggregate variance on columns */ ["centralized_txn_variance_fields"]: { baseCurrencyAmount?: number | undefined; feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by variance() on columns of table "centralized_txn" */ + ["centralized_txn_variance_order_by"]: { + baseCurrencyAmount?: ModelTypes["order_by"] | undefined; + feeAmount?: ModelTypes["order_by"] | undefined; + quoteCurrencyAmount?: ModelTypes["order_by"] | undefined; + }; /** chat messages for clients */ ["chat"]: { /** An object relationship */ @@ -21109,6 +22453,10 @@ export type ModelTypes = { /** An object relationship */ address?: ModelTypes["address"] | undefined; /** An array relationship */ + centralized_txns: Array; + /** An aggregate relationship */ + centralized_txns_aggregate: ModelTypes["centralized_txn_aggregate"]; + /** An array relationship */ chats: Array; /** An aggregate relationship */ chats_aggregate: ModelTypes["chat_aggregate"]; @@ -21180,6 +22528,10 @@ export type ModelTypes = { accounts?: ModelTypes["account_bool_exp"] | undefined; accounts_aggregate?: ModelTypes["account_aggregate_bool_exp"] | undefined; address?: ModelTypes["address_bool_exp"] | undefined; + centralized_txns?: ModelTypes["centralized_txn_bool_exp"] | undefined; + centralized_txns_aggregate?: + | ModelTypes["centralized_txn_aggregate_bool_exp"] + | undefined; chats?: ModelTypes["chat_bool_exp"] | undefined; chats_aggregate?: ModelTypes["chat_aggregate_bool_exp"] | undefined; client_setting?: ModelTypes["client_settings_bool_exp"] | undefined; @@ -21227,6 +22579,9 @@ export type ModelTypes = { ["client_insert_input"]: { accounts?: ModelTypes["account_arr_rel_insert_input"] | undefined; address?: ModelTypes["address_obj_rel_insert_input"] | undefined; + centralized_txns?: + | ModelTypes["centralized_txn_arr_rel_insert_input"] + | undefined; chats?: ModelTypes["chat_arr_rel_insert_input"] | undefined; client_setting?: | ModelTypes["client_settings_obj_rel_insert_input"] @@ -21299,6 +22654,9 @@ export type ModelTypes = { ["client_order_by"]: { accounts_aggregate?: ModelTypes["account_aggregate_order_by"] | undefined; address?: ModelTypes["address_order_by"] | undefined; + centralized_txns_aggregate?: + | ModelTypes["centralized_txn_aggregate_order_by"] + | undefined; chats_aggregate?: ModelTypes["chat_aggregate_order_by"] | undefined; client_setting?: ModelTypes["client_settings_order_by"] | undefined; createdAt?: ModelTypes["order_by"] | undefined; @@ -24119,6 +25477,10 @@ export type GraphQLTypes = { __typename: "account"; /** An object relationship */ bitcoin?: GraphQLTypes["bitcoin"] | undefined; + /** An array relationship */ + centralized_txns: Array; + /** An aggregate relationship */ + centralized_txns_aggregate: GraphQLTypes["centralized_txn_aggregate"]; /** An object relationship */ client: GraphQLTypes["client"]; /** clientId */ @@ -24191,6 +25553,10 @@ export type GraphQLTypes = { _not?: GraphQLTypes["account_bool_exp"] | undefined; _or?: Array | undefined; bitcoin?: GraphQLTypes["bitcoin_bool_exp"] | undefined; + centralized_txns?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + centralized_txns_aggregate?: + | GraphQLTypes["centralized_txn_aggregate_bool_exp"] + | undefined; client?: GraphQLTypes["client_bool_exp"] | undefined; clientId?: GraphQLTypes["uuid_comparison_exp"] | undefined; createdAt?: GraphQLTypes["timestamptz_comparison_exp"] | undefined; @@ -24209,6 +25575,9 @@ export type GraphQLTypes = { /** input type for inserting data into table "account" */ ["account_insert_input"]: { bitcoin?: GraphQLTypes["bitcoin_obj_rel_insert_input"] | undefined; + centralized_txns?: + | GraphQLTypes["centralized_txn_arr_rel_insert_input"] + | undefined; client?: GraphQLTypes["client_obj_rel_insert_input"] | undefined; /** clientId */ clientId?: GraphQLTypes["uuid"] | undefined; @@ -24292,6 +25661,9 @@ export type GraphQLTypes = { /** Ordering options when selecting data from "account". */ ["account_order_by"]: { bitcoin?: GraphQLTypes["bitcoin_order_by"] | undefined; + centralized_txns_aggregate?: + | GraphQLTypes["centralized_txn_aggregate_order_by"] + | undefined; client?: GraphQLTypes["client_order_by"] | undefined; clientId?: GraphQLTypes["order_by"] | undefined; createdAt?: GraphQLTypes["order_by"] | undefined; @@ -24789,6 +26161,89 @@ export type GraphQLTypes = { aggregate?: GraphQLTypes["centralized_txn_aggregate_fields"] | undefined; nodes: Array; }; + ["centralized_txn_aggregate_bool_exp"]: { + avg?: GraphQLTypes["centralized_txn_aggregate_bool_exp_avg"] | undefined; + corr?: GraphQLTypes["centralized_txn_aggregate_bool_exp_corr"] | undefined; + count?: + | GraphQLTypes["centralized_txn_aggregate_bool_exp_count"] + | undefined; + covar_samp?: + | GraphQLTypes["centralized_txn_aggregate_bool_exp_covar_samp"] + | undefined; + max?: GraphQLTypes["centralized_txn_aggregate_bool_exp_max"] | undefined; + min?: GraphQLTypes["centralized_txn_aggregate_bool_exp_min"] | undefined; + stddev_samp?: + | GraphQLTypes["centralized_txn_aggregate_bool_exp_stddev_samp"] + | undefined; + sum?: GraphQLTypes["centralized_txn_aggregate_bool_exp_sum"] | undefined; + var_samp?: + | GraphQLTypes["centralized_txn_aggregate_bool_exp_var_samp"] + | undefined; + }; + ["centralized_txn_aggregate_bool_exp_avg"]: { + arguments: GraphQLTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns"]; + distinct?: boolean | undefined; + filter?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + predicate: GraphQLTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_corr"]: { + arguments: GraphQLTypes["centralized_txn_aggregate_bool_exp_corr_arguments"]; + distinct?: boolean | undefined; + filter?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + predicate: GraphQLTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_corr_arguments"]: { + X: GraphQLTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]; + Y: GraphQLTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]; + }; + ["centralized_txn_aggregate_bool_exp_count"]: { + arguments?: + | Array + | undefined; + distinct?: boolean | undefined; + filter?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + predicate: GraphQLTypes["Int_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_covar_samp"]: { + arguments: GraphQLTypes["centralized_txn_aggregate_bool_exp_covar_samp_arguments"]; + distinct?: boolean | undefined; + filter?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + predicate: GraphQLTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_covar_samp_arguments"]: { + X: GraphQLTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]; + Y: GraphQLTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]; + }; + ["centralized_txn_aggregate_bool_exp_max"]: { + arguments: GraphQLTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns"]; + distinct?: boolean | undefined; + filter?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + predicate: GraphQLTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_min"]: { + arguments: GraphQLTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns"]; + distinct?: boolean | undefined; + filter?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + predicate: GraphQLTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_stddev_samp"]: { + arguments: GraphQLTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns"]; + distinct?: boolean | undefined; + filter?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + predicate: GraphQLTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_sum"]: { + arguments: GraphQLTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns"]; + distinct?: boolean | undefined; + filter?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + predicate: GraphQLTypes["float8_comparison_exp"]; + }; + ["centralized_txn_aggregate_bool_exp_var_samp"]: { + arguments: GraphQLTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns"]; + distinct?: boolean | undefined; + filter?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + predicate: GraphQLTypes["float8_comparison_exp"]; + }; /** aggregate fields of "centralized_txn" */ ["centralized_txn_aggregate_fields"]: { __typename: "centralized_txn_aggregate_fields"; @@ -24806,6 +26261,30 @@ export type GraphQLTypes = { var_samp?: GraphQLTypes["centralized_txn_var_samp_fields"] | undefined; variance?: GraphQLTypes["centralized_txn_variance_fields"] | undefined; }; + /** order by aggregate values of table "centralized_txn" */ + ["centralized_txn_aggregate_order_by"]: { + avg?: GraphQLTypes["centralized_txn_avg_order_by"] | undefined; + count?: GraphQLTypes["order_by"] | undefined; + max?: GraphQLTypes["centralized_txn_max_order_by"] | undefined; + min?: GraphQLTypes["centralized_txn_min_order_by"] | undefined; + stddev?: GraphQLTypes["centralized_txn_stddev_order_by"] | undefined; + stddev_pop?: + | GraphQLTypes["centralized_txn_stddev_pop_order_by"] + | undefined; + stddev_samp?: + | GraphQLTypes["centralized_txn_stddev_samp_order_by"] + | undefined; + sum?: GraphQLTypes["centralized_txn_sum_order_by"] | undefined; + var_pop?: GraphQLTypes["centralized_txn_var_pop_order_by"] | undefined; + var_samp?: GraphQLTypes["centralized_txn_var_samp_order_by"] | undefined; + variance?: GraphQLTypes["centralized_txn_variance_order_by"] | undefined; + }; + /** input type for inserting array relation for remote table "centralized_txn" */ + ["centralized_txn_arr_rel_insert_input"]: { + data: Array; + /** upsert condition */ + on_conflict?: GraphQLTypes["centralized_txn_on_conflict"] | undefined; + }; /** aggregate avg on columns */ ["centralized_txn_avg_fields"]: { __typename: "centralized_txn_avg_fields"; @@ -24813,6 +26292,12 @@ export type GraphQLTypes = { feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by avg() on columns of table "centralized_txn" */ + ["centralized_txn_avg_order_by"]: { + baseCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + feeAmount?: GraphQLTypes["order_by"] | undefined; + quoteCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + }; /** Boolean expression to filter rows from the table "centralized_txn". All fields are combined with a logical 'AND'. */ ["centralized_txn_bool_exp"]: { _and?: Array | undefined; @@ -24892,6 +26377,27 @@ export type GraphQLTypes = { updatedAt?: GraphQLTypes["timestamptz"] | undefined; walletAddress?: string | undefined; }; + /** order by max() on columns of table "centralized_txn" */ + ["centralized_txn_max_order_by"]: { + accountId?: GraphQLTypes["order_by"] | undefined; + baseCurrency?: GraphQLTypes["order_by"] | undefined; + baseCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + clientId?: GraphQLTypes["order_by"] | undefined; + createdAt?: GraphQLTypes["order_by"] | undefined; + cryptoTransactionId?: GraphQLTypes["order_by"] | undefined; + failedReason?: GraphQLTypes["order_by"] | undefined; + feeAmount?: GraphQLTypes["order_by"] | undefined; + id?: GraphQLTypes["order_by"] | undefined; + paymentMethod?: GraphQLTypes["order_by"] | undefined; + provider?: GraphQLTypes["order_by"] | undefined; + providerTxnId?: GraphQLTypes["order_by"] | undefined; + quoteCurrency?: GraphQLTypes["order_by"] | undefined; + quoteCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + signature?: GraphQLTypes["order_by"] | undefined; + status?: GraphQLTypes["order_by"] | undefined; + updatedAt?: GraphQLTypes["order_by"] | undefined; + walletAddress?: GraphQLTypes["order_by"] | undefined; + }; /** aggregate min on columns */ ["centralized_txn_min_fields"]: { __typename: "centralized_txn_min_fields"; @@ -24914,6 +26420,27 @@ export type GraphQLTypes = { updatedAt?: GraphQLTypes["timestamptz"] | undefined; walletAddress?: string | undefined; }; + /** order by min() on columns of table "centralized_txn" */ + ["centralized_txn_min_order_by"]: { + accountId?: GraphQLTypes["order_by"] | undefined; + baseCurrency?: GraphQLTypes["order_by"] | undefined; + baseCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + clientId?: GraphQLTypes["order_by"] | undefined; + createdAt?: GraphQLTypes["order_by"] | undefined; + cryptoTransactionId?: GraphQLTypes["order_by"] | undefined; + failedReason?: GraphQLTypes["order_by"] | undefined; + feeAmount?: GraphQLTypes["order_by"] | undefined; + id?: GraphQLTypes["order_by"] | undefined; + paymentMethod?: GraphQLTypes["order_by"] | undefined; + provider?: GraphQLTypes["order_by"] | undefined; + providerTxnId?: GraphQLTypes["order_by"] | undefined; + quoteCurrency?: GraphQLTypes["order_by"] | undefined; + quoteCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + signature?: GraphQLTypes["order_by"] | undefined; + status?: GraphQLTypes["order_by"] | undefined; + updatedAt?: GraphQLTypes["order_by"] | undefined; + walletAddress?: GraphQLTypes["order_by"] | undefined; + }; /** response of any mutation on the table "centralized_txn" */ ["centralized_txn_mutation_response"]: { __typename: "centralized_txn_mutation_response"; @@ -24957,6 +26484,22 @@ export type GraphQLTypes = { }; /** select columns of table "centralized_txn" */ ["centralized_txn_select_column"]: centralized_txn_select_column; + /** select "centralized_txn_aggregate_bool_exp_avg_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_corr_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_max_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_min_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_sum_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns; + /** select "centralized_txn_aggregate_bool_exp_var_samp_arguments_columns" columns of table "centralized_txn" */ + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns"]: centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns; /** input type for updating data in table "centralized_txn" */ ["centralized_txn_set_input"]: { accountId?: GraphQLTypes["uuid"] | undefined; @@ -24985,6 +26528,12 @@ export type GraphQLTypes = { feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by stddev() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_order_by"]: { + baseCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + feeAmount?: GraphQLTypes["order_by"] | undefined; + quoteCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + }; /** aggregate stddev_pop on columns */ ["centralized_txn_stddev_pop_fields"]: { __typename: "centralized_txn_stddev_pop_fields"; @@ -24992,6 +26541,12 @@ export type GraphQLTypes = { feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by stddev_pop() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_pop_order_by"]: { + baseCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + feeAmount?: GraphQLTypes["order_by"] | undefined; + quoteCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + }; /** aggregate stddev_samp on columns */ ["centralized_txn_stddev_samp_fields"]: { __typename: "centralized_txn_stddev_samp_fields"; @@ -24999,6 +26554,12 @@ export type GraphQLTypes = { feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by stddev_samp() on columns of table "centralized_txn" */ + ["centralized_txn_stddev_samp_order_by"]: { + baseCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + feeAmount?: GraphQLTypes["order_by"] | undefined; + quoteCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + }; /** Streaming cursor of the table "centralized_txn" */ ["centralized_txn_stream_cursor_input"]: { /** Stream column input with initial value */ @@ -25034,6 +26595,12 @@ export type GraphQLTypes = { feeAmount?: GraphQLTypes["float8"] | undefined; quoteCurrencyAmount?: GraphQLTypes["float8"] | undefined; }; + /** order by sum() on columns of table "centralized_txn" */ + ["centralized_txn_sum_order_by"]: { + baseCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + feeAmount?: GraphQLTypes["order_by"] | undefined; + quoteCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + }; /** update columns of table "centralized_txn" */ ["centralized_txn_update_column"]: centralized_txn_update_column; ["centralized_txn_updates"]: { @@ -25051,6 +26618,12 @@ export type GraphQLTypes = { feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by var_pop() on columns of table "centralized_txn" */ + ["centralized_txn_var_pop_order_by"]: { + baseCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + feeAmount?: GraphQLTypes["order_by"] | undefined; + quoteCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + }; /** aggregate var_samp on columns */ ["centralized_txn_var_samp_fields"]: { __typename: "centralized_txn_var_samp_fields"; @@ -25058,6 +26631,12 @@ export type GraphQLTypes = { feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by var_samp() on columns of table "centralized_txn" */ + ["centralized_txn_var_samp_order_by"]: { + baseCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + feeAmount?: GraphQLTypes["order_by"] | undefined; + quoteCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + }; /** aggregate variance on columns */ ["centralized_txn_variance_fields"]: { __typename: "centralized_txn_variance_fields"; @@ -25065,6 +26644,12 @@ export type GraphQLTypes = { feeAmount?: number | undefined; quoteCurrencyAmount?: number | undefined; }; + /** order by variance() on columns of table "centralized_txn" */ + ["centralized_txn_variance_order_by"]: { + baseCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + feeAmount?: GraphQLTypes["order_by"] | undefined; + quoteCurrencyAmount?: GraphQLTypes["order_by"] | undefined; + }; /** chat messages for clients */ ["chat"]: { __typename: "chat"; @@ -25252,6 +26837,10 @@ export type GraphQLTypes = { /** An object relationship */ address?: GraphQLTypes["address"] | undefined; /** An array relationship */ + centralized_txns: Array; + /** An aggregate relationship */ + centralized_txns_aggregate: GraphQLTypes["centralized_txn_aggregate"]; + /** An array relationship */ chats: Array; /** An aggregate relationship */ chats_aggregate: GraphQLTypes["chat_aggregate"]; @@ -25328,6 +26917,10 @@ export type GraphQLTypes = { accounts?: GraphQLTypes["account_bool_exp"] | undefined; accounts_aggregate?: GraphQLTypes["account_aggregate_bool_exp"] | undefined; address?: GraphQLTypes["address_bool_exp"] | undefined; + centralized_txns?: GraphQLTypes["centralized_txn_bool_exp"] | undefined; + centralized_txns_aggregate?: + | GraphQLTypes["centralized_txn_aggregate_bool_exp"] + | undefined; chats?: GraphQLTypes["chat_bool_exp"] | undefined; chats_aggregate?: GraphQLTypes["chat_aggregate_bool_exp"] | undefined; client_setting?: GraphQLTypes["client_settings_bool_exp"] | undefined; @@ -25376,6 +26969,9 @@ export type GraphQLTypes = { ["client_insert_input"]: { accounts?: GraphQLTypes["account_arr_rel_insert_input"] | undefined; address?: GraphQLTypes["address_obj_rel_insert_input"] | undefined; + centralized_txns?: + | GraphQLTypes["centralized_txn_arr_rel_insert_input"] + | undefined; chats?: GraphQLTypes["chat_arr_rel_insert_input"] | undefined; client_setting?: | GraphQLTypes["client_settings_obj_rel_insert_input"] @@ -25455,6 +27051,9 @@ export type GraphQLTypes = { ["client_order_by"]: { accounts_aggregate?: GraphQLTypes["account_aggregate_order_by"] | undefined; address?: GraphQLTypes["address_order_by"] | undefined; + centralized_txns_aggregate?: + | GraphQLTypes["centralized_txn_aggregate_order_by"] + | undefined; chats_aggregate?: GraphQLTypes["chat_aggregate_order_by"] | undefined; client_setting?: GraphQLTypes["client_settings_order_by"] | undefined; createdAt?: GraphQLTypes["order_by"] | undefined; @@ -28473,6 +30072,54 @@ export const enum centralized_txn_select_column { updatedAt = "updatedAt", walletAddress = "walletAddress", } +/** select "centralized_txn_aggregate_bool_exp_avg_arguments_columns" columns of table "centralized_txn" */ +export const enum centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns { + baseCurrencyAmount = "baseCurrencyAmount", + feeAmount = "feeAmount", + quoteCurrencyAmount = "quoteCurrencyAmount", +} +/** select "centralized_txn_aggregate_bool_exp_corr_arguments_columns" columns of table "centralized_txn" */ +export const enum centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns { + baseCurrencyAmount = "baseCurrencyAmount", + feeAmount = "feeAmount", + quoteCurrencyAmount = "quoteCurrencyAmount", +} +/** select "centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns" columns of table "centralized_txn" */ +export const enum centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns { + baseCurrencyAmount = "baseCurrencyAmount", + feeAmount = "feeAmount", + quoteCurrencyAmount = "quoteCurrencyAmount", +} +/** select "centralized_txn_aggregate_bool_exp_max_arguments_columns" columns of table "centralized_txn" */ +export const enum centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns { + baseCurrencyAmount = "baseCurrencyAmount", + feeAmount = "feeAmount", + quoteCurrencyAmount = "quoteCurrencyAmount", +} +/** select "centralized_txn_aggregate_bool_exp_min_arguments_columns" columns of table "centralized_txn" */ +export const enum centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns { + baseCurrencyAmount = "baseCurrencyAmount", + feeAmount = "feeAmount", + quoteCurrencyAmount = "quoteCurrencyAmount", +} +/** select "centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns" columns of table "centralized_txn" */ +export const enum centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns { + baseCurrencyAmount = "baseCurrencyAmount", + feeAmount = "feeAmount", + quoteCurrencyAmount = "quoteCurrencyAmount", +} +/** select "centralized_txn_aggregate_bool_exp_sum_arguments_columns" columns of table "centralized_txn" */ +export const enum centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns { + baseCurrencyAmount = "baseCurrencyAmount", + feeAmount = "feeAmount", + quoteCurrencyAmount = "quoteCurrencyAmount", +} +/** select "centralized_txn_aggregate_bool_exp_var_samp_arguments_columns" columns of table "centralized_txn" */ +export const enum centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns { + baseCurrencyAmount = "baseCurrencyAmount", + feeAmount = "feeAmount", + quoteCurrencyAmount = "quoteCurrencyAmount", +} /** update columns of table "centralized_txn" */ export const enum centralized_txn_update_column { accountId = "accountId", @@ -28926,19 +30573,51 @@ type ZEUS_VARIABLES = { ["bitcoin_stream_cursor_value_input"]: ValueTypes["bitcoin_stream_cursor_value_input"]; ["bitcoin_update_column"]: ValueTypes["bitcoin_update_column"]; ["bitcoin_updates"]: ValueTypes["bitcoin_updates"]; + ["centralized_txn_aggregate_bool_exp"]: ValueTypes["centralized_txn_aggregate_bool_exp"]; + ["centralized_txn_aggregate_bool_exp_avg"]: ValueTypes["centralized_txn_aggregate_bool_exp_avg"]; + ["centralized_txn_aggregate_bool_exp_corr"]: ValueTypes["centralized_txn_aggregate_bool_exp_corr"]; + ["centralized_txn_aggregate_bool_exp_corr_arguments"]: ValueTypes["centralized_txn_aggregate_bool_exp_corr_arguments"]; + ["centralized_txn_aggregate_bool_exp_count"]: ValueTypes["centralized_txn_aggregate_bool_exp_count"]; + ["centralized_txn_aggregate_bool_exp_covar_samp"]: ValueTypes["centralized_txn_aggregate_bool_exp_covar_samp"]; + ["centralized_txn_aggregate_bool_exp_covar_samp_arguments"]: ValueTypes["centralized_txn_aggregate_bool_exp_covar_samp_arguments"]; + ["centralized_txn_aggregate_bool_exp_max"]: ValueTypes["centralized_txn_aggregate_bool_exp_max"]; + ["centralized_txn_aggregate_bool_exp_min"]: ValueTypes["centralized_txn_aggregate_bool_exp_min"]; + ["centralized_txn_aggregate_bool_exp_stddev_samp"]: ValueTypes["centralized_txn_aggregate_bool_exp_stddev_samp"]; + ["centralized_txn_aggregate_bool_exp_sum"]: ValueTypes["centralized_txn_aggregate_bool_exp_sum"]; + ["centralized_txn_aggregate_bool_exp_var_samp"]: ValueTypes["centralized_txn_aggregate_bool_exp_var_samp"]; + ["centralized_txn_aggregate_order_by"]: ValueTypes["centralized_txn_aggregate_order_by"]; + ["centralized_txn_arr_rel_insert_input"]: ValueTypes["centralized_txn_arr_rel_insert_input"]; + ["centralized_txn_avg_order_by"]: ValueTypes["centralized_txn_avg_order_by"]; ["centralized_txn_bool_exp"]: ValueTypes["centralized_txn_bool_exp"]; ["centralized_txn_constraint"]: ValueTypes["centralized_txn_constraint"]; ["centralized_txn_inc_input"]: ValueTypes["centralized_txn_inc_input"]; ["centralized_txn_insert_input"]: ValueTypes["centralized_txn_insert_input"]; + ["centralized_txn_max_order_by"]: ValueTypes["centralized_txn_max_order_by"]; + ["centralized_txn_min_order_by"]: ValueTypes["centralized_txn_min_order_by"]; ["centralized_txn_on_conflict"]: ValueTypes["centralized_txn_on_conflict"]; ["centralized_txn_order_by"]: ValueTypes["centralized_txn_order_by"]; ["centralized_txn_pk_columns_input"]: ValueTypes["centralized_txn_pk_columns_input"]; ["centralized_txn_select_column"]: ValueTypes["centralized_txn_select_column"]; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns"]: ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_avg_arguments_columns"]; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]: ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_corr_arguments_columns"]; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]: ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_covar_samp_arguments_columns"]; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns"]: ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_max_arguments_columns"]; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns"]: ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_min_arguments_columns"]; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns"]: ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_stddev_samp_arguments_columns"]; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns"]: ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_sum_arguments_columns"]; + ["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns"]: ValueTypes["centralized_txn_select_column_centralized_txn_aggregate_bool_exp_var_samp_arguments_columns"]; ["centralized_txn_set_input"]: ValueTypes["centralized_txn_set_input"]; + ["centralized_txn_stddev_order_by"]: ValueTypes["centralized_txn_stddev_order_by"]; + ["centralized_txn_stddev_pop_order_by"]: ValueTypes["centralized_txn_stddev_pop_order_by"]; + ["centralized_txn_stddev_samp_order_by"]: ValueTypes["centralized_txn_stddev_samp_order_by"]; ["centralized_txn_stream_cursor_input"]: ValueTypes["centralized_txn_stream_cursor_input"]; ["centralized_txn_stream_cursor_value_input"]: ValueTypes["centralized_txn_stream_cursor_value_input"]; + ["centralized_txn_sum_order_by"]: ValueTypes["centralized_txn_sum_order_by"]; ["centralized_txn_update_column"]: ValueTypes["centralized_txn_update_column"]; ["centralized_txn_updates"]: ValueTypes["centralized_txn_updates"]; + ["centralized_txn_var_pop_order_by"]: ValueTypes["centralized_txn_var_pop_order_by"]; + ["centralized_txn_var_samp_order_by"]: ValueTypes["centralized_txn_var_samp_order_by"]; + ["centralized_txn_variance_order_by"]: ValueTypes["centralized_txn_variance_order_by"]; ["chat_aggregate_bool_exp"]: ValueTypes["chat_aggregate_bool_exp"]; ["chat_aggregate_bool_exp_count"]: ValueTypes["chat_aggregate_bool_exp_count"]; ["chat_aggregate_order_by"]: ValueTypes["chat_aggregate_order_by"]; From 679d0d11b6403ef6d82f3a5b5a27750a5ed80c13 Mon Sep 17 00:00:00 2001 From: Akash Shaw Date: Thu, 18 Apr 2024 21:36:08 +0530 Subject: [PATCH 2/4] feat: adds client connections table , and changed some attributes in settings table --- .../default/tables/public_connections.yaml | 28 +++++++++++++++++++ .../databases/default/tables/tables.yaml | 1 + .../down.sql | 1 + .../up.sql | 18 ++++++++++++ .../down.sql | 1 + .../up.sql | 1 + .../down.sql | 5 ++++ .../up.sql | 5 ++++ .../down.sql | 5 ++++ .../up.sql | 5 ++++ 10 files changed, 70 insertions(+) create mode 100644 backend/hasura/hasura/metadata/databases/default/tables/public_connections.yaml create mode 100644 backend/hasura/hasura/migrations/default/1713456154428_create_table_public_connections/down.sql create mode 100644 backend/hasura/hasura/migrations/default/1713456154428_create_table_public_connections/up.sql create mode 100644 backend/hasura/hasura/migrations/default/1713456247122_alter_table_public_connections_alter_column_btc_network/down.sql create mode 100644 backend/hasura/hasura/migrations/default/1713456247122_alter_table_public_connections_alter_column_btc_network/up.sql create mode 100644 backend/hasura/hasura/migrations/default/1713456290163_set_fk_public_connections_client_id/down.sql create mode 100644 backend/hasura/hasura/migrations/default/1713456290163_set_fk_public_connections_client_id/up.sql create mode 100644 backend/hasura/hasura/migrations/default/1713456294404_set_fk_public_connections_client_settings_id/down.sql create mode 100644 backend/hasura/hasura/migrations/default/1713456294404_set_fk_public_connections_client_settings_id/up.sql diff --git a/backend/hasura/hasura/metadata/databases/default/tables/public_connections.yaml b/backend/hasura/hasura/metadata/databases/default/tables/public_connections.yaml new file mode 100644 index 00000000..2a3a32a6 --- /dev/null +++ b/backend/hasura/hasura/metadata/databases/default/tables/public_connections.yaml @@ -0,0 +1,28 @@ +table: + name: connections + schema: public +configuration: + column_config: + btc_network: + custom_name: btcNetwork + client_id: + custom_name: clientId + client_settings_id: + custom_name: clientSettingsId + created_at: + custom_name: createdAt + eth_network: + custom_name: ethNetwork + sol_network: + custom_name: solNetwork + updated_at: + custom_name: updatedAt + custom_column_names: + btc_network: btcNetwork + client_id: clientId + client_settings_id: clientSettingsId + created_at: createdAt + eth_network: ethNetwork + sol_network: solNetwork + updated_at: updatedAt + custom_root_fields: {} diff --git a/backend/hasura/hasura/metadata/databases/default/tables/tables.yaml b/backend/hasura/hasura/metadata/databases/default/tables/tables.yaml index 06552b4e..10ad6f70 100644 --- a/backend/hasura/hasura/metadata/databases/default/tables/tables.yaml +++ b/backend/hasura/hasura/metadata/databases/default/tables/tables.yaml @@ -5,6 +5,7 @@ - "!include public_chat.yaml" - "!include public_client.yaml" - "!include public_client_settings.yaml" +- "!include public_connections.yaml" - "!include public_eth.yaml" - "!include public_friendship.yaml" - "!include public_notif_to_subs.yaml" diff --git a/backend/hasura/hasura/migrations/default/1713456154428_create_table_public_connections/down.sql b/backend/hasura/hasura/migrations/default/1713456154428_create_table_public_connections/down.sql new file mode 100644 index 00000000..abea96f0 --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713456154428_create_table_public_connections/down.sql @@ -0,0 +1 @@ +DROP TABLE "public"."connections"; diff --git a/backend/hasura/hasura/migrations/default/1713456154428_create_table_public_connections/up.sql b/backend/hasura/hasura/migrations/default/1713456154428_create_table_public_connections/up.sql new file mode 100644 index 00000000..2c521e24 --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713456154428_create_table_public_connections/up.sql @@ -0,0 +1,18 @@ +CREATE TABLE "public"."connections" ("id" uuid NOT NULL DEFAULT gen_random_uuid(), "client_id" uuid NOT NULL, "sol_network" text NOT NULL DEFAULT 'devnet', "eth_network" text NOT NULL DEFAULT 'sepolia', "btc_network" text NOT NULL, "client_settings_id" uuid NOT NULL, "created_at" timestamptz NOT NULL DEFAULT now(), "updated_at" timestamptz NOT NULL DEFAULT now(), PRIMARY KEY ("id") , FOREIGN KEY ("client_id") REFERENCES "public"."client"("id") ON UPDATE no action ON DELETE no action, FOREIGN KEY ("client_settings_id") REFERENCES "public"."client_settings"("id") ON UPDATE no action ON DELETE no action, UNIQUE ("id"), UNIQUE ("client_settings_id"), UNIQUE ("client_id"));COMMENT ON TABLE "public"."connections" IS E'blockchains connections metadata'; +CREATE OR REPLACE FUNCTION "public"."set_current_timestamp_updated_at"() +RETURNS TRIGGER AS $$ +DECLARE + _new record; +BEGIN + _new := NEW; + _new."updated_at" = NOW(); + RETURN _new; +END; +$$ LANGUAGE plpgsql; +CREATE TRIGGER "set_public_connections_updated_at" +BEFORE UPDATE ON "public"."connections" +FOR EACH ROW +EXECUTE PROCEDURE "public"."set_current_timestamp_updated_at"(); +COMMENT ON TRIGGER "set_public_connections_updated_at" ON "public"."connections" +IS 'trigger to set value of column "updated_at" to current timestamp on row update'; +CREATE EXTENSION IF NOT EXISTS pgcrypto; diff --git a/backend/hasura/hasura/migrations/default/1713456247122_alter_table_public_connections_alter_column_btc_network/down.sql b/backend/hasura/hasura/migrations/default/1713456247122_alter_table_public_connections_alter_column_btc_network/down.sql new file mode 100644 index 00000000..f241829a --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713456247122_alter_table_public_connections_alter_column_btc_network/down.sql @@ -0,0 +1 @@ +ALTER TABLE "public"."connections" ALTER COLUMN "btc_network" drop default; diff --git a/backend/hasura/hasura/migrations/default/1713456247122_alter_table_public_connections_alter_column_btc_network/up.sql b/backend/hasura/hasura/migrations/default/1713456247122_alter_table_public_connections_alter_column_btc_network/up.sql new file mode 100644 index 00000000..f938a747 --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713456247122_alter_table_public_connections_alter_column_btc_network/up.sql @@ -0,0 +1 @@ +alter table "public"."connections" alter column "btc_network" set default 'testnet'; diff --git a/backend/hasura/hasura/migrations/default/1713456290163_set_fk_public_connections_client_id/down.sql b/backend/hasura/hasura/migrations/default/1713456290163_set_fk_public_connections_client_id/down.sql new file mode 100644 index 00000000..4d9c2378 --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713456290163_set_fk_public_connections_client_id/down.sql @@ -0,0 +1,5 @@ +alter table "public"."connections" drop constraint "connections_client_id_fkey", + add constraint "connections_client_id_fkey" + foreign key ("client_id") + references "public"."client" + ("id") on update no action on delete no action; diff --git a/backend/hasura/hasura/migrations/default/1713456290163_set_fk_public_connections_client_id/up.sql b/backend/hasura/hasura/migrations/default/1713456290163_set_fk_public_connections_client_id/up.sql new file mode 100644 index 00000000..6634d0cf --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713456290163_set_fk_public_connections_client_id/up.sql @@ -0,0 +1,5 @@ +alter table "public"."connections" drop constraint "connections_client_id_fkey", + add constraint "connections_client_id_fkey" + foreign key ("client_id") + references "public"."client" + ("id") on update set default on delete no action; diff --git a/backend/hasura/hasura/migrations/default/1713456294404_set_fk_public_connections_client_settings_id/down.sql b/backend/hasura/hasura/migrations/default/1713456294404_set_fk_public_connections_client_settings_id/down.sql new file mode 100644 index 00000000..c64330e1 --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713456294404_set_fk_public_connections_client_settings_id/down.sql @@ -0,0 +1,5 @@ +alter table "public"."connections" drop constraint "connections_client_settings_id_fkey", + add constraint "connections_client_settings_id_fkey" + foreign key ("client_settings_id") + references "public"."client_settings" + ("id") on update no action on delete no action; diff --git a/backend/hasura/hasura/migrations/default/1713456294404_set_fk_public_connections_client_settings_id/up.sql b/backend/hasura/hasura/migrations/default/1713456294404_set_fk_public_connections_client_settings_id/up.sql new file mode 100644 index 00000000..c6b6ef94 --- /dev/null +++ b/backend/hasura/hasura/migrations/default/1713456294404_set_fk_public_connections_client_settings_id/up.sql @@ -0,0 +1,5 @@ +alter table "public"."connections" drop constraint "connections_client_settings_id_fkey", + add constraint "connections_client_settings_id_fkey" + foreign key ("client_settings_id") + references "public"."client_settings" + ("id") on update set default on delete no action; From 61ee85918434d0f590326b3141b9be6d8aed1863 Mon Sep 17 00:00:00 2001 From: Akash Shaw Date: Thu, 18 Apr 2024 21:36:30 +0530 Subject: [PATCH 3/4] chore: types for that --- backend/zeus/src/codegen/types.ts | 337 ++++++++ backend/zeus/src/zeus/const.ts | 180 +++++ backend/zeus/src/zeus/index.ts | 1254 ++++++++++++++++++++++++++++- 3 files changed, 1768 insertions(+), 3 deletions(-) diff --git a/backend/zeus/src/codegen/types.ts b/backend/zeus/src/codegen/types.ts index 13e94d2e..1ed2eae2 100644 --- a/backend/zeus/src/codegen/types.ts +++ b/backend/zeus/src/codegen/types.ts @@ -2700,6 +2700,216 @@ export type Client_Variance_Fields = { mobile?: Maybe; }; +/** blockchains connections metadata */ +export type Connections = { + __typename?: 'connections'; + btcNetwork: Scalars['String']['output']; + clientId: Scalars['uuid']['output']; + clientSettingsId: Scalars['uuid']['output']; + createdAt: Scalars['timestamptz']['output']; + ethNetwork: Scalars['String']['output']; + id: Scalars['uuid']['output']; + solNetwork: Scalars['String']['output']; + updatedAt: Scalars['timestamptz']['output']; +}; + +/** aggregated selection of "connections" */ +export type Connections_Aggregate = { + __typename?: 'connections_aggregate'; + aggregate?: Maybe; + nodes: Array; +}; + +/** aggregate fields of "connections" */ +export type Connections_Aggregate_Fields = { + __typename?: 'connections_aggregate_fields'; + count: Scalars['Int']['output']; + max?: Maybe; + min?: Maybe; +}; + + +/** aggregate fields of "connections" */ +export type Connections_Aggregate_FieldsCountArgs = { + columns?: InputMaybe>; + distinct?: InputMaybe; +}; + +/** Boolean expression to filter rows from the table "connections". All fields are combined with a logical 'AND'. */ +export type Connections_Bool_Exp = { + _and?: InputMaybe>; + _not?: InputMaybe; + _or?: InputMaybe>; + btcNetwork?: InputMaybe; + clientId?: InputMaybe; + clientSettingsId?: InputMaybe; + createdAt?: InputMaybe; + ethNetwork?: InputMaybe; + id?: InputMaybe; + solNetwork?: InputMaybe; + updatedAt?: InputMaybe; +}; + +/** unique or primary key constraints on table "connections" */ +export enum Connections_Constraint { + /** unique or primary key constraint on columns "client_id" */ + ConnectionsClientIdKey = 'connections_client_id_key', + /** unique or primary key constraint on columns "client_settings_id" */ + ConnectionsClientSettingsIdKey = 'connections_client_settings_id_key', + /** unique or primary key constraint on columns "id" */ + ConnectionsPkey = 'connections_pkey' +} + +/** input type for inserting data into table "connections" */ +export type Connections_Insert_Input = { + btcNetwork?: InputMaybe; + clientId?: InputMaybe; + clientSettingsId?: InputMaybe; + createdAt?: InputMaybe; + ethNetwork?: InputMaybe; + id?: InputMaybe; + solNetwork?: InputMaybe; + updatedAt?: InputMaybe; +}; + +/** aggregate max on columns */ +export type Connections_Max_Fields = { + __typename?: 'connections_max_fields'; + btcNetwork?: Maybe; + clientId?: Maybe; + clientSettingsId?: Maybe; + createdAt?: Maybe; + ethNetwork?: Maybe; + id?: Maybe; + solNetwork?: Maybe; + updatedAt?: Maybe; +}; + +/** aggregate min on columns */ +export type Connections_Min_Fields = { + __typename?: 'connections_min_fields'; + btcNetwork?: Maybe; + clientId?: Maybe; + clientSettingsId?: Maybe; + createdAt?: Maybe; + ethNetwork?: Maybe; + id?: Maybe; + solNetwork?: Maybe; + updatedAt?: Maybe; +}; + +/** response of any mutation on the table "connections" */ +export type Connections_Mutation_Response = { + __typename?: 'connections_mutation_response'; + /** number of rows affected by the mutation */ + affected_rows: Scalars['Int']['output']; + /** data from the rows affected by the mutation */ + returning: Array; +}; + +/** on_conflict condition type for table "connections" */ +export type Connections_On_Conflict = { + constraint: Connections_Constraint; + update_columns?: Array; + where?: InputMaybe; +}; + +/** Ordering options when selecting data from "connections". */ +export type Connections_Order_By = { + btcNetwork?: InputMaybe; + clientId?: InputMaybe; + clientSettingsId?: InputMaybe; + createdAt?: InputMaybe; + ethNetwork?: InputMaybe; + id?: InputMaybe; + solNetwork?: InputMaybe; + updatedAt?: InputMaybe; +}; + +/** primary key columns input for table: connections */ +export type Connections_Pk_Columns_Input = { + id: Scalars['uuid']['input']; +}; + +/** select columns of table "connections" */ +export enum Connections_Select_Column { + /** column name */ + BtcNetwork = 'btcNetwork', + /** column name */ + ClientId = 'clientId', + /** column name */ + ClientSettingsId = 'clientSettingsId', + /** column name */ + CreatedAt = 'createdAt', + /** column name */ + EthNetwork = 'ethNetwork', + /** column name */ + Id = 'id', + /** column name */ + SolNetwork = 'solNetwork', + /** column name */ + UpdatedAt = 'updatedAt' +} + +/** input type for updating data in table "connections" */ +export type Connections_Set_Input = { + btcNetwork?: InputMaybe; + clientId?: InputMaybe; + clientSettingsId?: InputMaybe; + createdAt?: InputMaybe; + ethNetwork?: InputMaybe; + id?: InputMaybe; + solNetwork?: InputMaybe; + updatedAt?: InputMaybe; +}; + +/** Streaming cursor of the table "connections" */ +export type Connections_Stream_Cursor_Input = { + /** Stream column input with initial value */ + initial_value: Connections_Stream_Cursor_Value_Input; + /** cursor ordering */ + ordering?: InputMaybe; +}; + +/** Initial value of the column from where the streaming should start */ +export type Connections_Stream_Cursor_Value_Input = { + btcNetwork?: InputMaybe; + clientId?: InputMaybe; + clientSettingsId?: InputMaybe; + createdAt?: InputMaybe; + ethNetwork?: InputMaybe; + id?: InputMaybe; + solNetwork?: InputMaybe; + updatedAt?: InputMaybe; +}; + +/** update columns of table "connections" */ +export enum Connections_Update_Column { + /** column name */ + BtcNetwork = 'btcNetwork', + /** column name */ + ClientId = 'clientId', + /** column name */ + ClientSettingsId = 'clientSettingsId', + /** column name */ + CreatedAt = 'createdAt', + /** column name */ + EthNetwork = 'ethNetwork', + /** column name */ + Id = 'id', + /** column name */ + SolNetwork = 'solNetwork', + /** column name */ + UpdatedAt = 'updatedAt' +} + +export type Connections_Updates = { + /** sets the columns of the filtered rows to the given values */ + _set?: InputMaybe; + /** filter the rows which have to be updated */ + where: Connections_Bool_Exp; +}; + /** ordering argument of a cursor */ export enum Cursor_Ordering { /** ascending ordering of the cursor */ @@ -3404,6 +3614,10 @@ export type Mutation_Root = { delete_client_settings?: Maybe; /** delete single row from the table: "client_settings" */ delete_client_settings_by_pk?: Maybe; + /** delete data from the table: "connections" */ + delete_connections?: Maybe; + /** delete single row from the table: "connections" */ + delete_connections_by_pk?: Maybe; /** delete data from the table: "eth" */ delete_eth?: Maybe; /** delete single row from the table: "eth" */ @@ -3464,6 +3678,10 @@ export type Mutation_Root = { insert_client_settings?: Maybe; /** insert a single row into the table: "client_settings" */ insert_client_settings_one?: Maybe; + /** insert data into the table: "connections" */ + insert_connections?: Maybe; + /** insert a single row into the table: "connections" */ + insert_connections_one?: Maybe; /** insert data into the table: "eth" */ insert_eth?: Maybe; /** insert a single row into the table: "eth" */ @@ -3538,6 +3756,12 @@ export type Mutation_Root = { update_client_settings_by_pk?: Maybe; /** update multiples rows of table: "client_settings" */ update_client_settings_many?: Maybe>>; + /** update data of the table: "connections" */ + update_connections?: Maybe; + /** update single row of the table: "connections" */ + update_connections_by_pk?: Maybe; + /** update multiples rows of table: "connections" */ + update_connections_many?: Maybe>>; /** update data of the table: "eth" */ update_eth?: Maybe; /** update single row of the table: "eth" */ @@ -3673,6 +3897,18 @@ export type Mutation_RootDelete_Client_Settings_By_PkArgs = { }; +/** mutation root */ +export type Mutation_RootDelete_ConnectionsArgs = { + where: Connections_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootDelete_Connections_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + /** mutation root */ export type Mutation_RootDelete_EthArgs = { where: Eth_Bool_Exp; @@ -3867,6 +4103,20 @@ export type Mutation_RootInsert_Client_Settings_OneArgs = { }; +/** mutation root */ +export type Mutation_RootInsert_ConnectionsArgs = { + objects: Array; + on_conflict?: InputMaybe; +}; + + +/** mutation root */ +export type Mutation_RootInsert_Connections_OneArgs = { + object: Connections_Insert_Input; + on_conflict?: InputMaybe; +}; + + /** mutation root */ export type Mutation_RootInsert_EthArgs = { objects: Array; @@ -4125,6 +4375,26 @@ export type Mutation_RootUpdate_Client_Settings_ManyArgs = { }; +/** mutation root */ +export type Mutation_RootUpdate_ConnectionsArgs = { + _set?: InputMaybe; + where: Connections_Bool_Exp; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Connections_By_PkArgs = { + _set?: InputMaybe; + pk_columns: Connections_Pk_Columns_Input; +}; + + +/** mutation root */ +export type Mutation_RootUpdate_Connections_ManyArgs = { + updates: Array; +}; + + /** mutation root */ export type Mutation_RootUpdate_EthArgs = { _inc?: InputMaybe; @@ -5203,6 +5473,12 @@ export type Query_Root = { client_settings_aggregate: Client_Settings_Aggregate; /** fetch data from the table: "client_settings" using primary key columns */ client_settings_by_pk?: Maybe; + /** fetch data from the table: "connections" */ + connections: Array; + /** fetch aggregated fields from the table: "connections" */ + connections_aggregate: Connections_Aggregate; + /** fetch data from the table: "connections" using primary key columns */ + connections_by_pk?: Maybe; /** fetch data from the table: "eth" */ eth: Array; /** fetch aggregated fields from the table: "eth" */ @@ -5415,6 +5691,29 @@ export type Query_RootClient_Settings_By_PkArgs = { }; +export type Query_RootConnectionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootConnections_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Query_RootConnections_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + export type Query_RootEthArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; @@ -5975,6 +6274,14 @@ export type Subscription_Root = { client_settings_stream: Array; /** fetch data from the table in a streaming manner: "client" */ client_stream: Array; + /** fetch data from the table: "connections" */ + connections: Array; + /** fetch aggregated fields from the table: "connections" */ + connections_aggregate: Connections_Aggregate; + /** fetch data from the table: "connections" using primary key columns */ + connections_by_pk?: Maybe; + /** fetch data from the table in a streaming manner: "connections" */ + connections_stream: Array; /** fetch data from the table: "eth" */ eth: Array; /** fetch aggregated fields from the table: "eth" */ @@ -6252,6 +6559,36 @@ export type Subscription_RootClient_StreamArgs = { }; +export type Subscription_RootConnectionsArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootConnections_AggregateArgs = { + distinct_on?: InputMaybe>; + limit?: InputMaybe; + offset?: InputMaybe; + order_by?: InputMaybe>; + where?: InputMaybe; +}; + + +export type Subscription_RootConnections_By_PkArgs = { + id: Scalars['uuid']['input']; +}; + + +export type Subscription_RootConnections_StreamArgs = { + batch_size: Scalars['Int']['input']; + cursor: Array>; + where?: InputMaybe; +}; + + export type Subscription_RootEthArgs = { distinct_on?: InputMaybe>; limit?: InputMaybe; diff --git a/backend/zeus/src/zeus/const.ts b/backend/zeus/src/zeus/const.ts index 6fb72c88..a9a08640 100644 --- a/backend/zeus/src/zeus/const.ts +++ b/backend/zeus/src/zeus/const.ts @@ -1016,6 +1016,74 @@ export const AllTypesProps: Record = { _set: "client_set_input", where: "client_bool_exp", }, + connections_aggregate_fields: { + count: { + columns: "connections_select_column", + }, + }, + connections_bool_exp: { + _and: "connections_bool_exp", + _not: "connections_bool_exp", + _or: "connections_bool_exp", + btcNetwork: "String_comparison_exp", + clientId: "uuid_comparison_exp", + clientSettingsId: "uuid_comparison_exp", + createdAt: "timestamptz_comparison_exp", + ethNetwork: "String_comparison_exp", + id: "uuid_comparison_exp", + solNetwork: "String_comparison_exp", + updatedAt: "timestamptz_comparison_exp", + }, + connections_constraint: "enum" as const, + connections_insert_input: { + clientId: "uuid", + clientSettingsId: "uuid", + createdAt: "timestamptz", + id: "uuid", + updatedAt: "timestamptz", + }, + connections_on_conflict: { + constraint: "connections_constraint", + update_columns: "connections_update_column", + where: "connections_bool_exp", + }, + connections_order_by: { + btcNetwork: "order_by", + clientId: "order_by", + clientSettingsId: "order_by", + createdAt: "order_by", + ethNetwork: "order_by", + id: "order_by", + solNetwork: "order_by", + updatedAt: "order_by", + }, + connections_pk_columns_input: { + id: "uuid", + }, + connections_select_column: "enum" as const, + connections_set_input: { + clientId: "uuid", + clientSettingsId: "uuid", + createdAt: "timestamptz", + id: "uuid", + updatedAt: "timestamptz", + }, + connections_stream_cursor_input: { + initial_value: "connections_stream_cursor_value_input", + ordering: "cursor_ordering", + }, + connections_stream_cursor_value_input: { + clientId: "uuid", + clientSettingsId: "uuid", + createdAt: "timestamptz", + id: "uuid", + updatedAt: "timestamptz", + }, + connections_update_column: "enum" as const, + connections_updates: { + _set: "connections_set_input", + where: "connections_bool_exp", + }, cursor_ordering: "enum" as const, eth_aggregate_fields: { count: { @@ -1301,6 +1369,12 @@ export const AllTypesProps: Record = { delete_client_settings_by_pk: { id: "uuid", }, + delete_connections: { + where: "connections_bool_exp", + }, + delete_connections_by_pk: { + id: "uuid", + }, delete_eth: { where: "eth_bool_exp", }, @@ -1405,6 +1479,14 @@ export const AllTypesProps: Record = { object: "client_settings_insert_input", on_conflict: "client_settings_on_conflict", }, + insert_connections: { + objects: "connections_insert_input", + on_conflict: "connections_on_conflict", + }, + insert_connections_one: { + object: "connections_insert_input", + on_conflict: "connections_on_conflict", + }, insert_eth: { objects: "eth_insert_input", on_conflict: "eth_on_conflict", @@ -1552,6 +1634,17 @@ export const AllTypesProps: Record = { update_client_settings_many: { updates: "client_settings_updates", }, + update_connections: { + _set: "connections_set_input", + where: "connections_bool_exp", + }, + update_connections_by_pk: { + _set: "connections_set_input", + pk_columns: "connections_pk_columns_input", + }, + update_connections_many: { + updates: "connections_updates", + }, update_eth: { _inc: "eth_inc_input", _set: "eth_set_input", @@ -2109,6 +2202,19 @@ export const AllTypesProps: Record = { client_settings_by_pk: { id: "uuid", }, + connections: { + distinct_on: "connections_select_column", + order_by: "connections_order_by", + where: "connections_bool_exp", + }, + connections_aggregate: { + distinct_on: "connections_select_column", + order_by: "connections_order_by", + where: "connections_bool_exp", + }, + connections_by_pk: { + id: "uuid", + }, eth: { distinct_on: "eth_select_column", order_by: "eth_order_by", @@ -2423,6 +2529,23 @@ export const AllTypesProps: Record = { cursor: "client_stream_cursor_input", where: "client_bool_exp", }, + connections: { + distinct_on: "connections_select_column", + order_by: "connections_order_by", + where: "connections_bool_exp", + }, + connections_aggregate: { + distinct_on: "connections_select_column", + order_by: "connections_order_by", + where: "connections_bool_exp", + }, + connections_by_pk: { + id: "uuid", + }, + connections_stream: { + cursor: "connections_stream_cursor_input", + where: "connections_bool_exp", + }, eth: { distinct_on: "eth_select_column", order_by: "eth_order_by", @@ -3513,6 +3636,49 @@ export const ReturnTypes: Record = { client_variance_fields: { mobile: "Float", }, + connections: { + btcNetwork: "String", + clientId: "uuid", + clientSettingsId: "uuid", + createdAt: "timestamptz", + ethNetwork: "String", + id: "uuid", + solNetwork: "String", + updatedAt: "timestamptz", + }, + connections_aggregate: { + aggregate: "connections_aggregate_fields", + nodes: "connections", + }, + connections_aggregate_fields: { + count: "Int", + max: "connections_max_fields", + min: "connections_min_fields", + }, + connections_max_fields: { + btcNetwork: "String", + clientId: "uuid", + clientSettingsId: "uuid", + createdAt: "timestamptz", + ethNetwork: "String", + id: "uuid", + solNetwork: "String", + updatedAt: "timestamptz", + }, + connections_min_fields: { + btcNetwork: "String", + clientId: "uuid", + clientSettingsId: "uuid", + createdAt: "timestamptz", + ethNetwork: "String", + id: "uuid", + solNetwork: "String", + updatedAt: "timestamptz", + }, + connections_mutation_response: { + affected_rows: "Int", + returning: "connections", + }, eth: { account: "account", accountId: "uuid", @@ -3698,6 +3864,8 @@ export const ReturnTypes: Record = { delete_client_by_pk: "client", delete_client_settings: "client_settings_mutation_response", delete_client_settings_by_pk: "client_settings", + delete_connections: "connections_mutation_response", + delete_connections_by_pk: "connections", delete_eth: "eth_mutation_response", delete_eth_by_pk: "eth", delete_friendship: "friendship_mutation_response", @@ -3729,6 +3897,8 @@ export const ReturnTypes: Record = { insert_client_one: "client", insert_client_settings: "client_settings_mutation_response", insert_client_settings_one: "client_settings", + insert_connections: "connections_mutation_response", + insert_connections_one: "connections", insert_eth: "eth_mutation_response", insert_eth_one: "eth", insert_friendship: "friendship_mutation_response", @@ -3767,6 +3937,9 @@ export const ReturnTypes: Record = { update_client_settings: "client_settings_mutation_response", update_client_settings_by_pk: "client_settings", update_client_settings_many: "client_settings_mutation_response", + update_connections: "connections_mutation_response", + update_connections_by_pk: "connections", + update_connections_many: "connections_mutation_response", update_eth: "eth_mutation_response", update_eth_by_pk: "eth", update_eth_many: "eth_mutation_response", @@ -3945,6 +4118,9 @@ export const ReturnTypes: Record = { client_settings: "client_settings", client_settings_aggregate: "client_settings_aggregate", client_settings_by_pk: "client_settings", + connections: "connections", + connections_aggregate: "connections_aggregate", + connections_by_pk: "connections", eth: "eth", eth_aggregate: "eth_aggregate", eth_by_pk: "eth", @@ -4094,6 +4270,10 @@ export const ReturnTypes: Record = { client_settings_by_pk: "client_settings", client_settings_stream: "client_settings", client_stream: "client", + connections: "connections", + connections_aggregate: "connections_aggregate", + connections_by_pk: "connections", + connections_stream: "connections", eth: "eth", eth_aggregate: "eth_aggregate", eth_by_pk: "eth", diff --git a/backend/zeus/src/zeus/index.ts b/backend/zeus/src/zeus/index.ts index 29bd543f..1d767a34 100644 --- a/backend/zeus/src/zeus/index.ts +++ b/backend/zeus/src/zeus/index.ts @@ -5346,6 +5346,284 @@ export type ValueTypes = { mobile?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** blockchains connections metadata */ + ["connections"]: AliasType<{ + btcNetwork?: boolean | `@${string}`; + clientId?: boolean | `@${string}`; + clientSettingsId?: boolean | `@${string}`; + createdAt?: boolean | `@${string}`; + ethNetwork?: boolean | `@${string}`; + id?: boolean | `@${string}`; + solNetwork?: boolean | `@${string}`; + updatedAt?: boolean | `@${string}`; + __typename?: boolean | `@${string}`; + }>; + /** aggregated selection of "connections" */ + ["connections_aggregate"]: AliasType<{ + aggregate?: ValueTypes["connections_aggregate_fields"]; + nodes?: ValueTypes["connections"]; + __typename?: boolean | `@${string}`; + }>; + /** aggregate fields of "connections" */ + ["connections_aggregate_fields"]: AliasType<{ + count?: [ + { + columns?: + | Array + | undefined + | null + | Variable; + distinct?: boolean | undefined | null | Variable; + }, + boolean | `@${string}`, + ]; + max?: ValueTypes["connections_max_fields"]; + min?: ValueTypes["connections_min_fields"]; + __typename?: boolean | `@${string}`; + }>; + /** Boolean expression to filter rows from the table "connections". All fields are combined with a logical 'AND'. */ + ["connections_bool_exp"]: { + _and?: + | Array + | undefined + | null + | Variable; + _not?: + | ValueTypes["connections_bool_exp"] + | undefined + | null + | Variable; + _or?: + | Array + | undefined + | null + | Variable; + btcNetwork?: + | ValueTypes["String_comparison_exp"] + | undefined + | null + | Variable; + clientId?: + | ValueTypes["uuid_comparison_exp"] + | undefined + | null + | Variable; + clientSettingsId?: + | ValueTypes["uuid_comparison_exp"] + | undefined + | null + | Variable; + createdAt?: + | ValueTypes["timestamptz_comparison_exp"] + | undefined + | null + | Variable; + ethNetwork?: + | ValueTypes["String_comparison_exp"] + | undefined + | null + | Variable; + id?: + | ValueTypes["uuid_comparison_exp"] + | undefined + | null + | Variable; + solNetwork?: + | ValueTypes["String_comparison_exp"] + | undefined + | null + | Variable; + updatedAt?: + | ValueTypes["timestamptz_comparison_exp"] + | undefined + | null + | Variable; + }; + /** unique or primary key constraints on table "connections" */ + ["connections_constraint"]: connections_constraint; + /** input type for inserting data into table "connections" */ + ["connections_insert_input"]: { + btcNetwork?: string | undefined | null | Variable; + clientId?: ValueTypes["uuid"] | undefined | null | Variable; + clientSettingsId?: + | ValueTypes["uuid"] + | undefined + | null + | Variable; + createdAt?: + | ValueTypes["timestamptz"] + | undefined + | null + | Variable; + ethNetwork?: string | undefined | null | Variable; + id?: ValueTypes["uuid"] | undefined | null | Variable; + solNetwork?: string | undefined | null | Variable; + updatedAt?: + | ValueTypes["timestamptz"] + | undefined + | null + | Variable; + }; + /** aggregate max on columns */ + ["connections_max_fields"]: AliasType<{ + btcNetwork?: boolean | `@${string}`; + clientId?: boolean | `@${string}`; + clientSettingsId?: boolean | `@${string}`; + createdAt?: boolean | `@${string}`; + ethNetwork?: boolean | `@${string}`; + id?: boolean | `@${string}`; + solNetwork?: boolean | `@${string}`; + updatedAt?: boolean | `@${string}`; + __typename?: boolean | `@${string}`; + }>; + /** aggregate min on columns */ + ["connections_min_fields"]: AliasType<{ + btcNetwork?: boolean | `@${string}`; + clientId?: boolean | `@${string}`; + clientSettingsId?: boolean | `@${string}`; + createdAt?: boolean | `@${string}`; + ethNetwork?: boolean | `@${string}`; + id?: boolean | `@${string}`; + solNetwork?: boolean | `@${string}`; + updatedAt?: boolean | `@${string}`; + __typename?: boolean | `@${string}`; + }>; + /** response of any mutation on the table "connections" */ + ["connections_mutation_response"]: AliasType<{ + /** number of rows affected by the mutation */ + affected_rows?: boolean | `@${string}`; + /** data from the rows affected by the mutation */ + returning?: ValueTypes["connections"]; + __typename?: boolean | `@${string}`; + }>; + /** on_conflict condition type for table "connections" */ + ["connections_on_conflict"]: { + constraint: ValueTypes["connections_constraint"] | Variable; + update_columns: + | Array + | Variable; + where?: + | ValueTypes["connections_bool_exp"] + | undefined + | null + | Variable; + }; + /** Ordering options when selecting data from "connections". */ + ["connections_order_by"]: { + btcNetwork?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + clientId?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + clientSettingsId?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + createdAt?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + ethNetwork?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + id?: ValueTypes["order_by"] | undefined | null | Variable; + solNetwork?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + updatedAt?: + | ValueTypes["order_by"] + | undefined + | null + | Variable; + }; + /** primary key columns input for table: connections */ + ["connections_pk_columns_input"]: { + id: ValueTypes["uuid"] | Variable; + }; + /** select columns of table "connections" */ + ["connections_select_column"]: connections_select_column; + /** input type for updating data in table "connections" */ + ["connections_set_input"]: { + btcNetwork?: string | undefined | null | Variable; + clientId?: ValueTypes["uuid"] | undefined | null | Variable; + clientSettingsId?: + | ValueTypes["uuid"] + | undefined + | null + | Variable; + createdAt?: + | ValueTypes["timestamptz"] + | undefined + | null + | Variable; + ethNetwork?: string | undefined | null | Variable; + id?: ValueTypes["uuid"] | undefined | null | Variable; + solNetwork?: string | undefined | null | Variable; + updatedAt?: + | ValueTypes["timestamptz"] + | undefined + | null + | Variable; + }; + /** Streaming cursor of the table "connections" */ + ["connections_stream_cursor_input"]: { + /** Stream column input with initial value */ + initial_value: + | ValueTypes["connections_stream_cursor_value_input"] + | Variable; + /** cursor ordering */ + ordering?: + | ValueTypes["cursor_ordering"] + | undefined + | null + | Variable; + }; + /** Initial value of the column from where the streaming should start */ + ["connections_stream_cursor_value_input"]: { + btcNetwork?: string | undefined | null | Variable; + clientId?: ValueTypes["uuid"] | undefined | null | Variable; + clientSettingsId?: + | ValueTypes["uuid"] + | undefined + | null + | Variable; + createdAt?: + | ValueTypes["timestamptz"] + | undefined + | null + | Variable; + ethNetwork?: string | undefined | null | Variable; + id?: ValueTypes["uuid"] | undefined | null | Variable; + solNetwork?: string | undefined | null | Variable; + updatedAt?: + | ValueTypes["timestamptz"] + | undefined + | null + | Variable; + }; + /** update columns of table "connections" */ + ["connections_update_column"]: connections_update_column; + ["connections_updates"]: { + /** sets the columns of the filtered rows to the given values */ + _set?: + | ValueTypes["connections_set_input"] + | undefined + | null + | Variable; + /** filter the rows which have to be updated */ + where: ValueTypes["connections_bool_exp"] | Variable; + }; /** ordering argument of a cursor */ ["cursor_ordering"]: cursor_ordering; /** eth address and token for client wallets */ @@ -6429,6 +6707,17 @@ export type ValueTypes = { { id: ValueTypes["uuid"] | Variable }, ValueTypes["client_settings"], ]; + delete_connections?: [ + { + /** filter the rows which have to be deleted */ + where: ValueTypes["connections_bool_exp"] | Variable; + }, + ValueTypes["connections_mutation_response"], + ]; + delete_connections_by_pk?: [ + { id: ValueTypes["uuid"] | Variable }, + ValueTypes["connections"], + ]; delete_eth?: [ { /** filter the rows which have to be deleted */ @@ -6715,6 +7004,34 @@ export type ValueTypes = { }, ValueTypes["client_settings"], ]; + insert_connections?: [ + { + /** the rows to be inserted */ + objects: + | Array + | Variable /** upsert condition */; + on_conflict?: + | ValueTypes["connections_on_conflict"] + | undefined + | null + | Variable; + }, + ValueTypes["connections_mutation_response"], + ]; + insert_connections_one?: [ + { + /** the row to be inserted */ + object: + | ValueTypes["connections_insert_input"] + | Variable /** upsert condition */; + on_conflict?: + | ValueTypes["connections_on_conflict"] + | undefined + | null + | Variable; + }, + ValueTypes["connections"], + ]; insert_eth?: [ { /** the rows to be inserted */ @@ -7241,6 +7558,44 @@ export type ValueTypes = { }, ValueTypes["client_settings_mutation_response"], ]; + update_connections?: [ + { + /** sets the columns of the filtered rows to the given values */ + _set?: + | ValueTypes["connections_set_input"] + | undefined + | null + | Variable< + any, + string + > /** filter the rows which have to be updated */; + where: ValueTypes["connections_bool_exp"] | Variable; + }, + ValueTypes["connections_mutation_response"], + ]; + update_connections_by_pk?: [ + { + /** sets the columns of the filtered rows to the given values */ + _set?: + | ValueTypes["connections_set_input"] + | undefined + | null + | Variable; + pk_columns: + | ValueTypes["connections_pk_columns_input"] + | Variable; + }, + ValueTypes["connections"], + ]; + update_connections_many?: [ + { + /** updates to execute, in order */ + updates: + | Array + | Variable; + }, + ValueTypes["connections_mutation_response"], + ]; update_eth?: [ { /** increments the numeric columns with given value of the filtered values */ @@ -9435,6 +9790,78 @@ export type ValueTypes = { { id: ValueTypes["uuid"] | Variable }, ValueTypes["client_settings"], ]; + connections?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null + | Variable /** limit the number of rows returned */; + limit?: + | number + | undefined + | null + | Variable< + any, + string + > /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null + | Variable /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null + | Variable /** filter the rows returned */; + where?: + | ValueTypes["connections_bool_exp"] + | undefined + | null + | Variable; + }, + ValueTypes["connections"], + ]; + connections_aggregate?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null + | Variable /** limit the number of rows returned */; + limit?: + | number + | undefined + | null + | Variable< + any, + string + > /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null + | Variable /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null + | Variable /** filter the rows returned */; + where?: + | ValueTypes["connections_bool_exp"] + | undefined + | null + | Variable; + }, + ValueTypes["connections_aggregate"], + ]; + connections_by_pk?: [ + { id: ValueTypes["uuid"] | Variable }, + ValueTypes["connections"], + ]; eth?: [ { /** distinct select on columns */ @@ -11083,6 +11510,100 @@ export type ValueTypes = { }, ValueTypes["client"], ]; + connections?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null + | Variable /** limit the number of rows returned */; + limit?: + | number + | undefined + | null + | Variable< + any, + string + > /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null + | Variable /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null + | Variable /** filter the rows returned */; + where?: + | ValueTypes["connections_bool_exp"] + | undefined + | null + | Variable; + }, + ValueTypes["connections"], + ]; + connections_aggregate?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null + | Variable /** limit the number of rows returned */; + limit?: + | number + | undefined + | null + | Variable< + any, + string + > /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null + | Variable /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null + | Variable /** filter the rows returned */; + where?: + | ValueTypes["connections_bool_exp"] + | undefined + | null + | Variable; + }, + ValueTypes["connections_aggregate"], + ]; + connections_by_pk?: [ + { id: ValueTypes["uuid"] | Variable }, + ValueTypes["connections"], + ]; + connections_stream?: [ + { + /** maximum number of rows returned in a single batch */ + batch_size: + | number + | Variable< + any, + string + > /** cursor to stream the results returned by the query */; + cursor: + | Array< + ValueTypes["connections_stream_cursor_input"] | undefined | null + > + | Variable /** filter the rows returned */; + where?: + | ValueTypes["connections_bool_exp"] + | undefined + | null + | Variable; + }, + ValueTypes["connections"], + ]; eth?: [ { /** distinct select on columns */ @@ -15836,6 +16357,168 @@ export type ResolverInputTypes = { mobile?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; + /** blockchains connections metadata */ + ["connections"]: AliasType<{ + btcNetwork?: boolean | `@${string}`; + clientId?: boolean | `@${string}`; + clientSettingsId?: boolean | `@${string}`; + createdAt?: boolean | `@${string}`; + ethNetwork?: boolean | `@${string}`; + id?: boolean | `@${string}`; + solNetwork?: boolean | `@${string}`; + updatedAt?: boolean | `@${string}`; + __typename?: boolean | `@${string}`; + }>; + /** aggregated selection of "connections" */ + ["connections_aggregate"]: AliasType<{ + aggregate?: ResolverInputTypes["connections_aggregate_fields"]; + nodes?: ResolverInputTypes["connections"]; + __typename?: boolean | `@${string}`; + }>; + /** aggregate fields of "connections" */ + ["connections_aggregate_fields"]: AliasType<{ + count?: [ + { + columns?: + | Array + | undefined + | null; + distinct?: boolean | undefined | null; + }, + boolean | `@${string}`, + ]; + max?: ResolverInputTypes["connections_max_fields"]; + min?: ResolverInputTypes["connections_min_fields"]; + __typename?: boolean | `@${string}`; + }>; + /** Boolean expression to filter rows from the table "connections". All fields are combined with a logical 'AND'. */ + ["connections_bool_exp"]: { + _and?: Array | undefined | null; + _not?: ResolverInputTypes["connections_bool_exp"] | undefined | null; + _or?: Array | undefined | null; + btcNetwork?: ResolverInputTypes["String_comparison_exp"] | undefined | null; + clientId?: ResolverInputTypes["uuid_comparison_exp"] | undefined | null; + clientSettingsId?: + | ResolverInputTypes["uuid_comparison_exp"] + | undefined + | null; + createdAt?: + | ResolverInputTypes["timestamptz_comparison_exp"] + | undefined + | null; + ethNetwork?: ResolverInputTypes["String_comparison_exp"] | undefined | null; + id?: ResolverInputTypes["uuid_comparison_exp"] | undefined | null; + solNetwork?: ResolverInputTypes["String_comparison_exp"] | undefined | null; + updatedAt?: + | ResolverInputTypes["timestamptz_comparison_exp"] + | undefined + | null; + }; + /** unique or primary key constraints on table "connections" */ + ["connections_constraint"]: connections_constraint; + /** input type for inserting data into table "connections" */ + ["connections_insert_input"]: { + btcNetwork?: string | undefined | null; + clientId?: ResolverInputTypes["uuid"] | undefined | null; + clientSettingsId?: ResolverInputTypes["uuid"] | undefined | null; + createdAt?: ResolverInputTypes["timestamptz"] | undefined | null; + ethNetwork?: string | undefined | null; + id?: ResolverInputTypes["uuid"] | undefined | null; + solNetwork?: string | undefined | null; + updatedAt?: ResolverInputTypes["timestamptz"] | undefined | null; + }; + /** aggregate max on columns */ + ["connections_max_fields"]: AliasType<{ + btcNetwork?: boolean | `@${string}`; + clientId?: boolean | `@${string}`; + clientSettingsId?: boolean | `@${string}`; + createdAt?: boolean | `@${string}`; + ethNetwork?: boolean | `@${string}`; + id?: boolean | `@${string}`; + solNetwork?: boolean | `@${string}`; + updatedAt?: boolean | `@${string}`; + __typename?: boolean | `@${string}`; + }>; + /** aggregate min on columns */ + ["connections_min_fields"]: AliasType<{ + btcNetwork?: boolean | `@${string}`; + clientId?: boolean | `@${string}`; + clientSettingsId?: boolean | `@${string}`; + createdAt?: boolean | `@${string}`; + ethNetwork?: boolean | `@${string}`; + id?: boolean | `@${string}`; + solNetwork?: boolean | `@${string}`; + updatedAt?: boolean | `@${string}`; + __typename?: boolean | `@${string}`; + }>; + /** response of any mutation on the table "connections" */ + ["connections_mutation_response"]: AliasType<{ + /** number of rows affected by the mutation */ + affected_rows?: boolean | `@${string}`; + /** data from the rows affected by the mutation */ + returning?: ResolverInputTypes["connections"]; + __typename?: boolean | `@${string}`; + }>; + /** on_conflict condition type for table "connections" */ + ["connections_on_conflict"]: { + constraint: ResolverInputTypes["connections_constraint"]; + update_columns: Array; + where?: ResolverInputTypes["connections_bool_exp"] | undefined | null; + }; + /** Ordering options when selecting data from "connections". */ + ["connections_order_by"]: { + btcNetwork?: ResolverInputTypes["order_by"] | undefined | null; + clientId?: ResolverInputTypes["order_by"] | undefined | null; + clientSettingsId?: ResolverInputTypes["order_by"] | undefined | null; + createdAt?: ResolverInputTypes["order_by"] | undefined | null; + ethNetwork?: ResolverInputTypes["order_by"] | undefined | null; + id?: ResolverInputTypes["order_by"] | undefined | null; + solNetwork?: ResolverInputTypes["order_by"] | undefined | null; + updatedAt?: ResolverInputTypes["order_by"] | undefined | null; + }; + /** primary key columns input for table: connections */ + ["connections_pk_columns_input"]: { + id: ResolverInputTypes["uuid"]; + }; + /** select columns of table "connections" */ + ["connections_select_column"]: connections_select_column; + /** input type for updating data in table "connections" */ + ["connections_set_input"]: { + btcNetwork?: string | undefined | null; + clientId?: ResolverInputTypes["uuid"] | undefined | null; + clientSettingsId?: ResolverInputTypes["uuid"] | undefined | null; + createdAt?: ResolverInputTypes["timestamptz"] | undefined | null; + ethNetwork?: string | undefined | null; + id?: ResolverInputTypes["uuid"] | undefined | null; + solNetwork?: string | undefined | null; + updatedAt?: ResolverInputTypes["timestamptz"] | undefined | null; + }; + /** Streaming cursor of the table "connections" */ + ["connections_stream_cursor_input"]: { + /** Stream column input with initial value */ + initial_value: ResolverInputTypes["connections_stream_cursor_value_input"]; + /** cursor ordering */ + ordering?: ResolverInputTypes["cursor_ordering"] | undefined | null; + }; + /** Initial value of the column from where the streaming should start */ + ["connections_stream_cursor_value_input"]: { + btcNetwork?: string | undefined | null; + clientId?: ResolverInputTypes["uuid"] | undefined | null; + clientSettingsId?: ResolverInputTypes["uuid"] | undefined | null; + createdAt?: ResolverInputTypes["timestamptz"] | undefined | null; + ethNetwork?: string | undefined | null; + id?: ResolverInputTypes["uuid"] | undefined | null; + solNetwork?: string | undefined | null; + updatedAt?: ResolverInputTypes["timestamptz"] | undefined | null; + }; + /** update columns of table "connections" */ + ["connections_update_column"]: connections_update_column; + ["connections_updates"]: { + /** sets the columns of the filtered rows to the given values */ + _set?: ResolverInputTypes["connections_set_input"] | undefined | null; + /** filter the rows which have to be updated */ + where: ResolverInputTypes["connections_bool_exp"]; + }; /** ordering argument of a cursor */ ["cursor_ordering"]: cursor_ordering; /** eth address and token for client wallets */ @@ -16500,11 +17183,22 @@ export type ResolverInputTypes = { /** filter the rows which have to be deleted */ where: ResolverInputTypes["client_settings_bool_exp"]; }, - ResolverInputTypes["client_settings_mutation_response"], + ResolverInputTypes["client_settings_mutation_response"], + ]; + delete_client_settings_by_pk?: [ + { id: ResolverInputTypes["uuid"] }, + ResolverInputTypes["client_settings"], + ]; + delete_connections?: [ + { + /** filter the rows which have to be deleted */ + where: ResolverInputTypes["connections_bool_exp"]; + }, + ResolverInputTypes["connections_mutation_response"], ]; - delete_client_settings_by_pk?: [ + delete_connections_by_pk?: [ { id: ResolverInputTypes["uuid"] }, - ResolverInputTypes["client_settings"], + ResolverInputTypes["connections"], ]; delete_eth?: [ { @@ -16756,6 +17450,30 @@ export type ResolverInputTypes = { }, ResolverInputTypes["client_settings"], ]; + insert_connections?: [ + { + /** the rows to be inserted */ + objects: Array< + ResolverInputTypes["connections_insert_input"] + > /** upsert condition */; + on_conflict?: + | ResolverInputTypes["connections_on_conflict"] + | undefined + | null; + }, + ResolverInputTypes["connections_mutation_response"], + ]; + insert_connections_one?: [ + { + /** the row to be inserted */ + object: ResolverInputTypes["connections_insert_input"] /** upsert condition */; + on_conflict?: + | ResolverInputTypes["connections_on_conflict"] + | undefined + | null; + }, + ResolverInputTypes["connections"], + ]; insert_eth?: [ { /** the rows to be inserted */ @@ -17148,6 +17866,32 @@ export type ResolverInputTypes = { }, ResolverInputTypes["client_settings_mutation_response"], ]; + update_connections?: [ + { + /** sets the columns of the filtered rows to the given values */ + _set?: + | ResolverInputTypes["connections_set_input"] + | undefined + | null /** filter the rows which have to be updated */; + where: ResolverInputTypes["connections_bool_exp"]; + }, + ResolverInputTypes["connections_mutation_response"], + ]; + update_connections_by_pk?: [ + { + /** sets the columns of the filtered rows to the given values */ + _set?: ResolverInputTypes["connections_set_input"] | undefined | null; + pk_columns: ResolverInputTypes["connections_pk_columns_input"]; + }, + ResolverInputTypes["connections"], + ]; + update_connections_many?: [ + { + /** updates to execute, in order */ + updates: Array; + }, + ResolverInputTypes["connections_mutation_response"], + ]; update_eth?: [ { /** increments the numeric columns with given value of the filtered values */ @@ -18607,6 +19351,56 @@ export type ResolverInputTypes = { { id: ResolverInputTypes["uuid"] }, ResolverInputTypes["client_settings"], ]; + connections?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null /** limit the number of rows returned */; + limit?: + | number + | undefined + | null /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null /** filter the rows returned */; + where?: ResolverInputTypes["connections_bool_exp"] | undefined | null; + }, + ResolverInputTypes["connections"], + ]; + connections_aggregate?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null /** limit the number of rows returned */; + limit?: + | number + | undefined + | null /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null /** filter the rows returned */; + where?: ResolverInputTypes["connections_bool_exp"] | undefined | null; + }, + ResolverInputTypes["connections_aggregate"], + ]; + connections_by_pk?: [ + { id: ResolverInputTypes["uuid"] }, + ResolverInputTypes["connections"], + ]; eth?: [ { /** distinct select on columns */ @@ -19712,6 +20506,69 @@ export type ResolverInputTypes = { }, ResolverInputTypes["client"], ]; + connections?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null /** limit the number of rows returned */; + limit?: + | number + | undefined + | null /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null /** filter the rows returned */; + where?: ResolverInputTypes["connections_bool_exp"] | undefined | null; + }, + ResolverInputTypes["connections"], + ]; + connections_aggregate?: [ + { + /** distinct select on columns */ + distinct_on?: + | Array + | undefined + | null /** limit the number of rows returned */; + limit?: + | number + | undefined + | null /** skip the first n rows. Use only with order_by */; + offset?: + | number + | undefined + | null /** sort the rows by one or more columns */; + order_by?: + | Array + | undefined + | null /** filter the rows returned */; + where?: ResolverInputTypes["connections_bool_exp"] | undefined | null; + }, + ResolverInputTypes["connections_aggregate"], + ]; + connections_by_pk?: [ + { id: ResolverInputTypes["uuid"] }, + ResolverInputTypes["connections"], + ]; + connections_stream?: [ + { + /** maximum number of rows returned in a single batch */ + batch_size: number /** cursor to stream the results returned by the query */; + cursor: Array< + | ResolverInputTypes["connections_stream_cursor_input"] + | undefined + | null + > /** filter the rows returned */; + where?: ResolverInputTypes["connections_bool_exp"] | undefined | null; + }, + ResolverInputTypes["connections"], + ]; eth?: [ { /** distinct select on columns */ @@ -22905,6 +23762,141 @@ export type ModelTypes = { ["client_variance_fields"]: { mobile?: number | undefined; }; + /** blockchains connections metadata */ + ["connections"]: { + btcNetwork: string; + clientId: ModelTypes["uuid"]; + clientSettingsId: ModelTypes["uuid"]; + createdAt: ModelTypes["timestamptz"]; + ethNetwork: string; + id: ModelTypes["uuid"]; + solNetwork: string; + updatedAt: ModelTypes["timestamptz"]; + }; + /** aggregated selection of "connections" */ + ["connections_aggregate"]: { + aggregate?: ModelTypes["connections_aggregate_fields"] | undefined; + nodes: Array; + }; + /** aggregate fields of "connections" */ + ["connections_aggregate_fields"]: { + count: number; + max?: ModelTypes["connections_max_fields"] | undefined; + min?: ModelTypes["connections_min_fields"] | undefined; + }; + /** Boolean expression to filter rows from the table "connections". All fields are combined with a logical 'AND'. */ + ["connections_bool_exp"]: { + _and?: Array | undefined; + _not?: ModelTypes["connections_bool_exp"] | undefined; + _or?: Array | undefined; + btcNetwork?: ModelTypes["String_comparison_exp"] | undefined; + clientId?: ModelTypes["uuid_comparison_exp"] | undefined; + clientSettingsId?: ModelTypes["uuid_comparison_exp"] | undefined; + createdAt?: ModelTypes["timestamptz_comparison_exp"] | undefined; + ethNetwork?: ModelTypes["String_comparison_exp"] | undefined; + id?: ModelTypes["uuid_comparison_exp"] | undefined; + solNetwork?: ModelTypes["String_comparison_exp"] | undefined; + updatedAt?: ModelTypes["timestamptz_comparison_exp"] | undefined; + }; + ["connections_constraint"]: connections_constraint; + /** input type for inserting data into table "connections" */ + ["connections_insert_input"]: { + btcNetwork?: string | undefined; + clientId?: ModelTypes["uuid"] | undefined; + clientSettingsId?: ModelTypes["uuid"] | undefined; + createdAt?: ModelTypes["timestamptz"] | undefined; + ethNetwork?: string | undefined; + id?: ModelTypes["uuid"] | undefined; + solNetwork?: string | undefined; + updatedAt?: ModelTypes["timestamptz"] | undefined; + }; + /** aggregate max on columns */ + ["connections_max_fields"]: { + btcNetwork?: string | undefined; + clientId?: ModelTypes["uuid"] | undefined; + clientSettingsId?: ModelTypes["uuid"] | undefined; + createdAt?: ModelTypes["timestamptz"] | undefined; + ethNetwork?: string | undefined; + id?: ModelTypes["uuid"] | undefined; + solNetwork?: string | undefined; + updatedAt?: ModelTypes["timestamptz"] | undefined; + }; + /** aggregate min on columns */ + ["connections_min_fields"]: { + btcNetwork?: string | undefined; + clientId?: ModelTypes["uuid"] | undefined; + clientSettingsId?: ModelTypes["uuid"] | undefined; + createdAt?: ModelTypes["timestamptz"] | undefined; + ethNetwork?: string | undefined; + id?: ModelTypes["uuid"] | undefined; + solNetwork?: string | undefined; + updatedAt?: ModelTypes["timestamptz"] | undefined; + }; + /** response of any mutation on the table "connections" */ + ["connections_mutation_response"]: { + /** number of rows affected by the mutation */ + affected_rows: number; + /** data from the rows affected by the mutation */ + returning: Array; + }; + /** on_conflict condition type for table "connections" */ + ["connections_on_conflict"]: { + constraint: ModelTypes["connections_constraint"]; + update_columns: Array; + where?: ModelTypes["connections_bool_exp"] | undefined; + }; + /** Ordering options when selecting data from "connections". */ + ["connections_order_by"]: { + btcNetwork?: ModelTypes["order_by"] | undefined; + clientId?: ModelTypes["order_by"] | undefined; + clientSettingsId?: ModelTypes["order_by"] | undefined; + createdAt?: ModelTypes["order_by"] | undefined; + ethNetwork?: ModelTypes["order_by"] | undefined; + id?: ModelTypes["order_by"] | undefined; + solNetwork?: ModelTypes["order_by"] | undefined; + updatedAt?: ModelTypes["order_by"] | undefined; + }; + /** primary key columns input for table: connections */ + ["connections_pk_columns_input"]: { + id: ModelTypes["uuid"]; + }; + ["connections_select_column"]: connections_select_column; + /** input type for updating data in table "connections" */ + ["connections_set_input"]: { + btcNetwork?: string | undefined; + clientId?: ModelTypes["uuid"] | undefined; + clientSettingsId?: ModelTypes["uuid"] | undefined; + createdAt?: ModelTypes["timestamptz"] | undefined; + ethNetwork?: string | undefined; + id?: ModelTypes["uuid"] | undefined; + solNetwork?: string | undefined; + updatedAt?: ModelTypes["timestamptz"] | undefined; + }; + /** Streaming cursor of the table "connections" */ + ["connections_stream_cursor_input"]: { + /** Stream column input with initial value */ + initial_value: ModelTypes["connections_stream_cursor_value_input"]; + /** cursor ordering */ + ordering?: ModelTypes["cursor_ordering"] | undefined; + }; + /** Initial value of the column from where the streaming should start */ + ["connections_stream_cursor_value_input"]: { + btcNetwork?: string | undefined; + clientId?: ModelTypes["uuid"] | undefined; + clientSettingsId?: ModelTypes["uuid"] | undefined; + createdAt?: ModelTypes["timestamptz"] | undefined; + ethNetwork?: string | undefined; + id?: ModelTypes["uuid"] | undefined; + solNetwork?: string | undefined; + updatedAt?: ModelTypes["timestamptz"] | undefined; + }; + ["connections_update_column"]: connections_update_column; + ["connections_updates"]: { + /** sets the columns of the filtered rows to the given values */ + _set?: ModelTypes["connections_set_input"] | undefined; + /** filter the rows which have to be updated */ + where: ModelTypes["connections_bool_exp"]; + }; ["cursor_ordering"]: cursor_ordering; /** eth address and token for client wallets */ ["eth"]: { @@ -23404,6 +24396,12 @@ export type ModelTypes = { | undefined; /** delete single row from the table: "client_settings" */ delete_client_settings_by_pk?: ModelTypes["client_settings"] | undefined; + /** delete data from the table: "connections" */ + delete_connections?: + | ModelTypes["connections_mutation_response"] + | undefined; + /** delete single row from the table: "connections" */ + delete_connections_by_pk?: ModelTypes["connections"] | undefined; /** delete data from the table: "eth" */ delete_eth?: ModelTypes["eth_mutation_response"] | undefined; /** delete single row from the table: "eth" */ @@ -23478,6 +24476,12 @@ export type ModelTypes = { | undefined; /** insert a single row into the table: "client_settings" */ insert_client_settings_one?: ModelTypes["client_settings"] | undefined; + /** insert data into the table: "connections" */ + insert_connections?: + | ModelTypes["connections_mutation_response"] + | undefined; + /** insert a single row into the table: "connections" */ + insert_connections_one?: ModelTypes["connections"] | undefined; /** insert data into the table: "eth" */ insert_eth?: ModelTypes["eth_mutation_response"] | undefined; /** insert a single row into the table: "eth" */ @@ -23580,6 +24584,16 @@ export type ModelTypes = { update_client_settings_many?: | Array | undefined; + /** update data of the table: "connections" */ + update_connections?: + | ModelTypes["connections_mutation_response"] + | undefined; + /** update single row of the table: "connections" */ + update_connections_by_pk?: ModelTypes["connections"] | undefined; + /** update multiples rows of table: "connections" */ + update_connections_many?: + | Array + | undefined; /** update data of the table: "eth" */ update_eth?: ModelTypes["eth_mutation_response"] | undefined; /** update single row of the table: "eth" */ @@ -24307,6 +25321,12 @@ export type ModelTypes = { client_settings_aggregate: ModelTypes["client_settings_aggregate"]; /** fetch data from the table: "client_settings" using primary key columns */ client_settings_by_pk?: ModelTypes["client_settings"] | undefined; + /** fetch data from the table: "connections" */ + connections: Array; + /** fetch aggregated fields from the table: "connections" */ + connections_aggregate: ModelTypes["connections_aggregate"]; + /** fetch data from the table: "connections" using primary key columns */ + connections_by_pk?: ModelTypes["connections"] | undefined; /** fetch data from the table: "eth" */ eth: Array; /** fetch aggregated fields from the table: "eth" */ @@ -24633,6 +25653,14 @@ export type ModelTypes = { client_settings_stream: Array; /** fetch data from the table in a streaming manner: "client" */ client_stream: Array; + /** fetch data from the table: "connections" */ + connections: Array; + /** fetch aggregated fields from the table: "connections" */ + connections_aggregate: ModelTypes["connections_aggregate"]; + /** fetch data from the table: "connections" using primary key columns */ + connections_by_pk?: ModelTypes["connections"] | undefined; + /** fetch data from the table in a streaming manner: "connections" */ + connections_stream: Array; /** fetch data from the table: "eth" */ eth: Array; /** fetch aggregated fields from the table: "eth" */ @@ -27320,6 +28348,150 @@ export type GraphQLTypes = { __typename: "client_variance_fields"; mobile?: number | undefined; }; + /** blockchains connections metadata */ + ["connections"]: { + __typename: "connections"; + btcNetwork: string; + clientId: GraphQLTypes["uuid"]; + clientSettingsId: GraphQLTypes["uuid"]; + createdAt: GraphQLTypes["timestamptz"]; + ethNetwork: string; + id: GraphQLTypes["uuid"]; + solNetwork: string; + updatedAt: GraphQLTypes["timestamptz"]; + }; + /** aggregated selection of "connections" */ + ["connections_aggregate"]: { + __typename: "connections_aggregate"; + aggregate?: GraphQLTypes["connections_aggregate_fields"] | undefined; + nodes: Array; + }; + /** aggregate fields of "connections" */ + ["connections_aggregate_fields"]: { + __typename: "connections_aggregate_fields"; + count: number; + max?: GraphQLTypes["connections_max_fields"] | undefined; + min?: GraphQLTypes["connections_min_fields"] | undefined; + }; + /** Boolean expression to filter rows from the table "connections". All fields are combined with a logical 'AND'. */ + ["connections_bool_exp"]: { + _and?: Array | undefined; + _not?: GraphQLTypes["connections_bool_exp"] | undefined; + _or?: Array | undefined; + btcNetwork?: GraphQLTypes["String_comparison_exp"] | undefined; + clientId?: GraphQLTypes["uuid_comparison_exp"] | undefined; + clientSettingsId?: GraphQLTypes["uuid_comparison_exp"] | undefined; + createdAt?: GraphQLTypes["timestamptz_comparison_exp"] | undefined; + ethNetwork?: GraphQLTypes["String_comparison_exp"] | undefined; + id?: GraphQLTypes["uuid_comparison_exp"] | undefined; + solNetwork?: GraphQLTypes["String_comparison_exp"] | undefined; + updatedAt?: GraphQLTypes["timestamptz_comparison_exp"] | undefined; + }; + /** unique or primary key constraints on table "connections" */ + ["connections_constraint"]: connections_constraint; + /** input type for inserting data into table "connections" */ + ["connections_insert_input"]: { + btcNetwork?: string | undefined; + clientId?: GraphQLTypes["uuid"] | undefined; + clientSettingsId?: GraphQLTypes["uuid"] | undefined; + createdAt?: GraphQLTypes["timestamptz"] | undefined; + ethNetwork?: string | undefined; + id?: GraphQLTypes["uuid"] | undefined; + solNetwork?: string | undefined; + updatedAt?: GraphQLTypes["timestamptz"] | undefined; + }; + /** aggregate max on columns */ + ["connections_max_fields"]: { + __typename: "connections_max_fields"; + btcNetwork?: string | undefined; + clientId?: GraphQLTypes["uuid"] | undefined; + clientSettingsId?: GraphQLTypes["uuid"] | undefined; + createdAt?: GraphQLTypes["timestamptz"] | undefined; + ethNetwork?: string | undefined; + id?: GraphQLTypes["uuid"] | undefined; + solNetwork?: string | undefined; + updatedAt?: GraphQLTypes["timestamptz"] | undefined; + }; + /** aggregate min on columns */ + ["connections_min_fields"]: { + __typename: "connections_min_fields"; + btcNetwork?: string | undefined; + clientId?: GraphQLTypes["uuid"] | undefined; + clientSettingsId?: GraphQLTypes["uuid"] | undefined; + createdAt?: GraphQLTypes["timestamptz"] | undefined; + ethNetwork?: string | undefined; + id?: GraphQLTypes["uuid"] | undefined; + solNetwork?: string | undefined; + updatedAt?: GraphQLTypes["timestamptz"] | undefined; + }; + /** response of any mutation on the table "connections" */ + ["connections_mutation_response"]: { + __typename: "connections_mutation_response"; + /** number of rows affected by the mutation */ + affected_rows: number; + /** data from the rows affected by the mutation */ + returning: Array; + }; + /** on_conflict condition type for table "connections" */ + ["connections_on_conflict"]: { + constraint: GraphQLTypes["connections_constraint"]; + update_columns: Array; + where?: GraphQLTypes["connections_bool_exp"] | undefined; + }; + /** Ordering options when selecting data from "connections". */ + ["connections_order_by"]: { + btcNetwork?: GraphQLTypes["order_by"] | undefined; + clientId?: GraphQLTypes["order_by"] | undefined; + clientSettingsId?: GraphQLTypes["order_by"] | undefined; + createdAt?: GraphQLTypes["order_by"] | undefined; + ethNetwork?: GraphQLTypes["order_by"] | undefined; + id?: GraphQLTypes["order_by"] | undefined; + solNetwork?: GraphQLTypes["order_by"] | undefined; + updatedAt?: GraphQLTypes["order_by"] | undefined; + }; + /** primary key columns input for table: connections */ + ["connections_pk_columns_input"]: { + id: GraphQLTypes["uuid"]; + }; + /** select columns of table "connections" */ + ["connections_select_column"]: connections_select_column; + /** input type for updating data in table "connections" */ + ["connections_set_input"]: { + btcNetwork?: string | undefined; + clientId?: GraphQLTypes["uuid"] | undefined; + clientSettingsId?: GraphQLTypes["uuid"] | undefined; + createdAt?: GraphQLTypes["timestamptz"] | undefined; + ethNetwork?: string | undefined; + id?: GraphQLTypes["uuid"] | undefined; + solNetwork?: string | undefined; + updatedAt?: GraphQLTypes["timestamptz"] | undefined; + }; + /** Streaming cursor of the table "connections" */ + ["connections_stream_cursor_input"]: { + /** Stream column input with initial value */ + initial_value: GraphQLTypes["connections_stream_cursor_value_input"]; + /** cursor ordering */ + ordering?: GraphQLTypes["cursor_ordering"] | undefined; + }; + /** Initial value of the column from where the streaming should start */ + ["connections_stream_cursor_value_input"]: { + btcNetwork?: string | undefined; + clientId?: GraphQLTypes["uuid"] | undefined; + clientSettingsId?: GraphQLTypes["uuid"] | undefined; + createdAt?: GraphQLTypes["timestamptz"] | undefined; + ethNetwork?: string | undefined; + id?: GraphQLTypes["uuid"] | undefined; + solNetwork?: string | undefined; + updatedAt?: GraphQLTypes["timestamptz"] | undefined; + }; + /** update columns of table "connections" */ + ["connections_update_column"]: connections_update_column; + ["connections_updates"]: { + /** sets the columns of the filtered rows to the given values */ + _set?: GraphQLTypes["connections_set_input"] | undefined; + /** filter the rows which have to be updated */ + where: GraphQLTypes["connections_bool_exp"]; + }; /** ordering argument of a cursor */ ["cursor_ordering"]: cursor_ordering; /** eth address and token for client wallets */ @@ -27847,6 +29019,12 @@ export type GraphQLTypes = { | undefined; /** delete single row from the table: "client_settings" */ delete_client_settings_by_pk?: GraphQLTypes["client_settings"] | undefined; + /** delete data from the table: "connections" */ + delete_connections?: + | GraphQLTypes["connections_mutation_response"] + | undefined; + /** delete single row from the table: "connections" */ + delete_connections_by_pk?: GraphQLTypes["connections"] | undefined; /** delete data from the table: "eth" */ delete_eth?: GraphQLTypes["eth_mutation_response"] | undefined; /** delete single row from the table: "eth" */ @@ -27923,6 +29101,12 @@ export type GraphQLTypes = { | undefined; /** insert a single row into the table: "client_settings" */ insert_client_settings_one?: GraphQLTypes["client_settings"] | undefined; + /** insert data into the table: "connections" */ + insert_connections?: + | GraphQLTypes["connections_mutation_response"] + | undefined; + /** insert a single row into the table: "connections" */ + insert_connections_one?: GraphQLTypes["connections"] | undefined; /** insert data into the table: "eth" */ insert_eth?: GraphQLTypes["eth_mutation_response"] | undefined; /** insert a single row into the table: "eth" */ @@ -28027,6 +29211,16 @@ export type GraphQLTypes = { update_client_settings_many?: | Array | undefined; + /** update data of the table: "connections" */ + update_connections?: + | GraphQLTypes["connections_mutation_response"] + | undefined; + /** update single row of the table: "connections" */ + update_connections_by_pk?: GraphQLTypes["connections"] | undefined; + /** update multiples rows of table: "connections" */ + update_connections_many?: + | Array + | undefined; /** update data of the table: "eth" */ update_eth?: GraphQLTypes["eth_mutation_response"] | undefined; /** update single row of the table: "eth" */ @@ -28794,6 +29988,12 @@ export type GraphQLTypes = { client_settings_aggregate: GraphQLTypes["client_settings_aggregate"]; /** fetch data from the table: "client_settings" using primary key columns */ client_settings_by_pk?: GraphQLTypes["client_settings"] | undefined; + /** fetch data from the table: "connections" */ + connections: Array; + /** fetch aggregated fields from the table: "connections" */ + connections_aggregate: GraphQLTypes["connections_aggregate"]; + /** fetch data from the table: "connections" using primary key columns */ + connections_by_pk?: GraphQLTypes["connections"] | undefined; /** fetch data from the table: "eth" */ eth: Array; /** fetch aggregated fields from the table: "eth" */ @@ -29138,6 +30338,14 @@ export type GraphQLTypes = { client_settings_stream: Array; /** fetch data from the table in a streaming manner: "client" */ client_stream: Array; + /** fetch data from the table: "connections" */ + connections: Array; + /** fetch aggregated fields from the table: "connections" */ + connections_aggregate: GraphQLTypes["connections_aggregate"]; + /** fetch data from the table: "connections" using primary key columns */ + connections_by_pk?: GraphQLTypes["connections"] | undefined; + /** fetch data from the table in a streaming manner: "connections" */ + connections_stream: Array; /** fetch data from the table: "eth" */ eth: Array; /** fetch aggregated fields from the table: "eth" */ @@ -30221,6 +31429,34 @@ export const enum client_update_column { username = "username", valid = "valid", } +/** unique or primary key constraints on table "connections" */ +export const enum connections_constraint { + connections_client_id_key = "connections_client_id_key", + connections_client_settings_id_key = "connections_client_settings_id_key", + connections_pkey = "connections_pkey", +} +/** select columns of table "connections" */ +export const enum connections_select_column { + btcNetwork = "btcNetwork", + clientId = "clientId", + clientSettingsId = "clientSettingsId", + createdAt = "createdAt", + ethNetwork = "ethNetwork", + id = "id", + solNetwork = "solNetwork", + updatedAt = "updatedAt", +} +/** update columns of table "connections" */ +export const enum connections_update_column { + btcNetwork = "btcNetwork", + clientId = "clientId", + clientSettingsId = "clientSettingsId", + createdAt = "createdAt", + ethNetwork = "ethNetwork", + id = "id", + solNetwork = "solNetwork", + updatedAt = "updatedAt", +} /** ordering argument of a cursor */ export const enum cursor_ordering { ASC = "ASC", @@ -30663,6 +31899,18 @@ type ZEUS_VARIABLES = { ["client_stream_cursor_value_input"]: ValueTypes["client_stream_cursor_value_input"]; ["client_update_column"]: ValueTypes["client_update_column"]; ["client_updates"]: ValueTypes["client_updates"]; + ["connections_bool_exp"]: ValueTypes["connections_bool_exp"]; + ["connections_constraint"]: ValueTypes["connections_constraint"]; + ["connections_insert_input"]: ValueTypes["connections_insert_input"]; + ["connections_on_conflict"]: ValueTypes["connections_on_conflict"]; + ["connections_order_by"]: ValueTypes["connections_order_by"]; + ["connections_pk_columns_input"]: ValueTypes["connections_pk_columns_input"]; + ["connections_select_column"]: ValueTypes["connections_select_column"]; + ["connections_set_input"]: ValueTypes["connections_set_input"]; + ["connections_stream_cursor_input"]: ValueTypes["connections_stream_cursor_input"]; + ["connections_stream_cursor_value_input"]: ValueTypes["connections_stream_cursor_value_input"]; + ["connections_update_column"]: ValueTypes["connections_update_column"]; + ["connections_updates"]: ValueTypes["connections_updates"]; ["cursor_ordering"]: ValueTypes["cursor_ordering"]; ["eth_bool_exp"]: ValueTypes["eth_bool_exp"]; ["eth_constraint"]: ValueTypes["eth_constraint"]; From 3db2729610c5c234ff8fc0455677f9a01816cffb Mon Sep 17 00:00:00 2001 From: Akash Shaw Date: Thu, 18 Apr 2024 21:37:29 +0530 Subject: [PATCH 4/4] chore(deps): deps update --- yarn.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index 026b7773..756190e4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4593,7 +4593,7 @@ "@radix-ui/react-switch@^1.0.3": version "1.0.3" - resolved "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.0.3.tgz" + resolved "https://registry.yarnpkg.com/@radix-ui/react-switch/-/react-switch-1.0.3.tgz#6119f16656a9eafb4424c600fdb36efa5ec5837e" integrity sha512-mxm87F88HyHztsI7N+ZUmEoARGkC22YVW5CaC+Byc+HRpuvCrOBPTAnXgf+tZ/7i0Sg/eOePGdMhUKhPaQEqow== dependencies: "@babel/runtime" "^7.13.10"