From 640fdc04380f3dbe087f68a9ffbe45be578771af Mon Sep 17 00:00:00 2001 From: jordan Date: Thu, 8 Aug 2024 11:29:58 -0700 Subject: [PATCH 1/2] fix chain pollution error in ship dash --- .graphclientrc.yml | 4 +- src/.graphclient/index.ts | 151 ++- src/.graphclient/schema.graphql | 118 +- .../grant-ships/introspectionSchema.ts | 1208 ++++++----------- .../sources/grant-ships/schema.graphql | 118 +- src/.graphclient/sources/grant-ships/types.ts | 108 +- src/components/grant/GrantCard.tsx | 189 ++- src/components/grant/MilestonesDrawer.tsx | 1 - src/graphql/newQueries/getShipByHatId.graphql | 6 +- src/pages/Grant.tsx | 23 +- src/pages/Project.tsx | 3 + src/pages/Ship.tsx | 3 + src/queries/getUserData.ts | 3 +- 13 files changed, 865 insertions(+), 1070 deletions(-) diff --git a/.graphclientrc.yml b/.graphclientrc.yml index a505b50d..b49da495 100644 --- a/.graphclientrc.yml +++ b/.graphclientrc.yml @@ -2,8 +2,8 @@ sources: - name: grant-ships handler: graphql: - endpoint: https://indexer.bigdevenergy.link/e09c75f/v1/graphql - # endpoint: http://localhost:8080/v1/graphql + # endpoint: https://indexer.bigdevenergy.link/e09c75f/v1/graphql + endpoint: http://localhost:8080/v1/graphql # - name: gs-voting # handler: # graphql: diff --git a/src/.graphclient/index.ts b/src/.graphclient/index.ts index 53b5cebb..3c293608 100644 --- a/src/.graphclient/index.ts +++ b/src/.graphclient/index.ts @@ -38,6 +38,8 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; + _numeric: any; + _text: any; contract_type: any; entity_type: any; event_type: any; @@ -791,7 +793,7 @@ export type EventPost_variance_order_by = { /** columns and relationships of "FactoryEventsSummary" */ export type FactoryEventsSummary = { address: Scalars['String']; - admins: Array; + admins: Scalars['_text']; contestBuiltCount: Scalars['numeric']; contestCloneCount: Scalars['numeric']; contestTemplateCount: Scalars['numeric']; @@ -807,7 +809,7 @@ export type FactoryEventsSummary_bool_exp = { _not?: InputMaybe; _or?: InputMaybe>; address?: InputMaybe; - admins?: InputMaybe; + admins?: InputMaybe<_text_comparison_exp>; contestBuiltCount?: InputMaybe; contestCloneCount?: InputMaybe; contestTemplateCount?: InputMaybe; @@ -862,7 +864,7 @@ export type FactoryEventsSummary_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type FactoryEventsSummary_stream_cursor_value_input = { address?: InputMaybe; - admins?: InputMaybe>; + admins?: InputMaybe; contestBuiltCount?: InputMaybe; contestCloneCount?: InputMaybe; contestTemplateCount?: InputMaybe; @@ -1886,8 +1888,8 @@ export type GrantShip = { name: Scalars['String']; nonce: Scalars['numeric']; owner: Scalars['String']; - pastNames: Array; - pastProfileIds: Array; + pastNames: Scalars['_text']; + pastProfileIds: Scalars['_text']; poolActive?: Maybe; poolFunded: Scalars['Boolean']; poolId?: Maybe; @@ -1987,8 +1989,8 @@ export type GrantShip_bool_exp = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; + pastNames?: InputMaybe<_text_comparison_exp>; + pastProfileIds?: InputMaybe<_text_comparison_exp>; poolActive?: InputMaybe; poolFunded?: InputMaybe; poolId?: InputMaybe; @@ -2027,8 +2029,6 @@ export type GrantShip_max_order_by = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; poolId?: InputMaybe; profileId?: InputMaybe; profileMetadata_id?: InputMaybe; @@ -2063,8 +2063,6 @@ export type GrantShip_min_order_by = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; poolId?: InputMaybe; profileId?: InputMaybe; profileMetadata_id?: InputMaybe; @@ -2309,8 +2307,8 @@ export type GrantShip_stream_cursor_value_input = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe>; - pastProfileIds?: InputMaybe>; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; poolActive?: InputMaybe; poolFunded?: InputMaybe; poolId?: InputMaybe; @@ -2848,7 +2846,7 @@ export type HatsPoster = { db_write_timestamp?: Maybe; /** An array relationship */ eventPosts: Array; - hatIds: Array; + hatIds: Scalars['_numeric']; hatsAddress: Scalars['String']; id: Scalars['String']; /** An array relationship */ @@ -2882,7 +2880,7 @@ export type HatsPoster_bool_exp = { _or?: InputMaybe>; db_write_timestamp?: InputMaybe; eventPosts?: InputMaybe; - hatIds?: InputMaybe; + hatIds?: InputMaybe<_numeric_comparison_exp>; hatsAddress?: InputMaybe; id?: InputMaybe; record?: InputMaybe; @@ -2920,7 +2918,7 @@ export type HatsPoster_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type HatsPoster_stream_cursor_value_input = { db_write_timestamp?: InputMaybe; - hatIds?: InputMaybe>; + hatIds?: InputMaybe; hatsAddress?: InputMaybe; id?: InputMaybe; }; @@ -3538,7 +3536,7 @@ export type ProfileIdToAnchor_stream_cursor_value_input = { /** columns and relationships of "ProfileMemberGroup" */ export type ProfileMemberGroup = { - addresses: Array; + addresses: Scalars['_text']; db_write_timestamp?: Maybe; id: Scalars['String']; role: Scalars['String']; @@ -3549,7 +3547,7 @@ export type ProfileMemberGroup_bool_exp = { _and?: InputMaybe>; _not?: InputMaybe; _or?: InputMaybe>; - addresses?: InputMaybe; + addresses?: InputMaybe<_text_comparison_exp>; db_write_timestamp?: InputMaybe; id?: InputMaybe; role?: InputMaybe; @@ -3584,7 +3582,7 @@ export type ProfileMemberGroup_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type ProfileMemberGroup_stream_cursor_value_input = { - addresses?: InputMaybe>; + addresses?: InputMaybe; db_write_timestamp?: InputMaybe; id?: InputMaybe; role?: InputMaybe; @@ -3608,8 +3606,8 @@ export type Project = { name: Scalars['String']; nonce: Scalars['numeric']; owner: Scalars['String']; - pastNames: Array; - pastProfileIds: Array; + pastNames: Scalars['_text']; + pastProfileIds: Scalars['_text']; profileId: Scalars['String']; status: Scalars['Int']; totalAmountReceived: Scalars['numeric']; @@ -3643,8 +3641,8 @@ export type Project_bool_exp = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; + pastNames?: InputMaybe<_text_comparison_exp>; + pastProfileIds?: InputMaybe<_text_comparison_exp>; profileId?: InputMaybe; status?: InputMaybe; totalAmountReceived?: InputMaybe; @@ -3725,8 +3723,8 @@ export type Project_stream_cursor_value_input = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe>; - pastProfileIds?: InputMaybe>; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; profileId?: InputMaybe; status?: InputMaybe; totalAmountReceived?: InputMaybe; @@ -4521,23 +4519,6 @@ export type StemModule_stream_cursor_value_input = { moduleTemplate_id?: InputMaybe; }; -/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ -export type String_array_comparison_exp = { - /** is the array contained in the given array value */ - _contained_in?: InputMaybe>; - /** does the array contain the given value */ - _contains?: InputMaybe>; - _eq?: InputMaybe>; - _gt?: InputMaybe>; - _gte?: InputMaybe>; - _in?: InputMaybe>>; - _is_null?: InputMaybe; - _lt?: InputMaybe>; - _lte?: InputMaybe>; - _neq?: InputMaybe>; - _nin?: InputMaybe>>; -}; - /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ export type String_comparison_exp = { _eq?: InputMaybe; @@ -4829,6 +4810,32 @@ export type Update_stream_cursor_value_input = { timestamp?: InputMaybe; }; +/** Boolean expression to compare columns of type "_numeric". All fields are combined with logical 'AND'. */ +export type _numeric_comparison_exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. */ +export type _text_comparison_exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + /** columns and relationships of "chain_metadata" */ export type chain_metadata = { block_height: Scalars['Int']; @@ -5466,23 +5473,6 @@ export type json_comparison_exp = { _nin?: InputMaybe>; }; -/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ -export type numeric_array_comparison_exp = { - /** is the array contained in the given array value */ - _contained_in?: InputMaybe>; - /** does the array contain the given value */ - _contains?: InputMaybe>; - _eq?: InputMaybe>; - _gt?: InputMaybe>; - _gte?: InputMaybe>; - _in?: InputMaybe>>; - _is_null?: InputMaybe; - _lt?: InputMaybe>; - _lte?: InputMaybe>; - _neq?: InputMaybe>; - _nin?: InputMaybe>>; -}; - /** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ export type numeric_comparison_exp = { _eq?: InputMaybe; @@ -8266,7 +8256,6 @@ export type ResolversTypes = ResolversObject<{ StemModule_stream_cursor_input: StemModule_stream_cursor_input; StemModule_stream_cursor_value_input: StemModule_stream_cursor_value_input; String: ResolverTypeWrapper; - String_array_comparison_exp: String_array_comparison_exp; String_comparison_exp: String_comparison_exp; TVParams: ResolverTypeWrapper; TVParams_bool_exp: TVParams_bool_exp; @@ -8286,6 +8275,10 @@ export type ResolversTypes = ResolversObject<{ Update_select_column: Update_select_column; Update_stream_cursor_input: Update_stream_cursor_input; Update_stream_cursor_value_input: Update_stream_cursor_value_input; + _numeric: ResolverTypeWrapper; + _numeric_comparison_exp: _numeric_comparison_exp; + _text: ResolverTypeWrapper; + _text_comparison_exp: _text_comparison_exp; chain_metadata: ResolverTypeWrapper; chain_metadata_bool_exp: chain_metadata_bool_exp; chain_metadata_order_by: chain_metadata_order_by; @@ -8338,7 +8331,6 @@ export type ResolversTypes = ResolversObject<{ json: ResolverTypeWrapper; json_comparison_exp: json_comparison_exp; numeric: ResolverTypeWrapper; - numeric_array_comparison_exp: numeric_array_comparison_exp; numeric_comparison_exp: numeric_comparison_exp; order_by: order_by; persisted_state: ResolverTypeWrapper; @@ -8658,7 +8650,6 @@ export type ResolversParentTypes = ResolversObject<{ StemModule_stream_cursor_input: StemModule_stream_cursor_input; StemModule_stream_cursor_value_input: StemModule_stream_cursor_value_input; String: Scalars['String']; - String_array_comparison_exp: String_array_comparison_exp; String_comparison_exp: String_comparison_exp; TVParams: TVParams; TVParams_bool_exp: TVParams_bool_exp; @@ -8675,6 +8666,10 @@ export type ResolversParentTypes = ResolversObject<{ Update_order_by: Update_order_by; Update_stream_cursor_input: Update_stream_cursor_input; Update_stream_cursor_value_input: Update_stream_cursor_value_input; + _numeric: Scalars['_numeric']; + _numeric_comparison_exp: _numeric_comparison_exp; + _text: Scalars['_text']; + _text_comparison_exp: _text_comparison_exp; chain_metadata: chain_metadata; chain_metadata_bool_exp: chain_metadata_bool_exp; chain_metadata_order_by: chain_metadata_order_by; @@ -8721,7 +8716,6 @@ export type ResolversParentTypes = ResolversObject<{ json: Scalars['json']; json_comparison_exp: json_comparison_exp; numeric: Scalars['numeric']; - numeric_array_comparison_exp: numeric_array_comparison_exp; numeric_comparison_exp: numeric_comparison_exp; persisted_state: persisted_state; persisted_state_bool_exp: persisted_state_bool_exp; @@ -8835,7 +8829,7 @@ export type EventPostResolvers = ResolversObject<{ address?: Resolver; - admins?: Resolver, ParentType, ContextType>; + admins?: Resolver; contestBuiltCount?: Resolver; contestCloneCount?: Resolver; contestTemplateCount?: Resolver; @@ -9027,8 +9021,8 @@ export type GrantShipResolvers; nonce?: Resolver; owner?: Resolver; - pastNames?: Resolver, ParentType, ContextType>; - pastProfileIds?: Resolver, ParentType, ContextType>; + pastNames?: Resolver; + pastProfileIds?: Resolver; poolActive?: Resolver, ParentType, ContextType>; poolFunded?: Resolver; poolId?: Resolver, ParentType, ContextType>; @@ -9079,7 +9073,7 @@ export type HALParamsResolvers = ResolversObject<{ db_write_timestamp?: Resolver, ParentType, ContextType>; eventPosts?: Resolver, ParentType, ContextType, Partial>; - hatIds?: Resolver, ParentType, ContextType>; + hatIds?: Resolver; hatsAddress?: Resolver; id?: Resolver; record?: Resolver, ParentType, ContextType, Partial>; @@ -9144,7 +9138,7 @@ export type ProfileIdToAnchorResolvers; export type ProfileMemberGroupResolvers = ResolversObject<{ - addresses?: Resolver, ParentType, ContextType>; + addresses?: Resolver; db_write_timestamp?: Resolver, ParentType, ContextType>; id?: Resolver; role?: Resolver; @@ -9165,8 +9159,8 @@ export type ProjectResolvers; nonce?: Resolver; owner?: Resolver; - pastNames?: Resolver, ParentType, ContextType>; - pastProfileIds?: Resolver, ParentType, ContextType>; + pastNames?: Resolver; + pastProfileIds?: Resolver; profileId?: Resolver; status?: Resolver; totalAmountReceived?: Resolver; @@ -9297,6 +9291,14 @@ export type UpdateResolvers; }>; +export interface _numericScalarConfig extends GraphQLScalarTypeConfig { + name: '_numeric'; +} + +export interface _textScalarConfig extends GraphQLScalarTypeConfig { + name: '_text'; +} + export type chain_metadataResolvers = ResolversObject<{ block_height?: Resolver; chain_id?: Resolver; @@ -9694,6 +9696,8 @@ export type Resolvers = ResolversObject<{ TVParams?: TVParamsResolvers; Transaction?: TransactionResolvers; Update?: UpdateResolvers; + _numeric?: GraphQLScalarType; + _text?: GraphQLScalarType; chain_metadata?: chain_metadataResolvers; contract_type?: GraphQLScalarType; dynamic_contract_registry?: dynamic_contract_registryResolvers; @@ -9762,7 +9766,7 @@ const grantShipsTransforms = []; const additionalTypeDefs = [] as any[]; const grantShipsHandler = new GraphqlHandler({ name: "grant-ships", - config: {"endpoint":"https://indexer.bigdevenergy.link/e09c75f/v1/graphql"}, + config: {"endpoint":"http://localhost:8080/v1/graphql"}, baseDir, cache, pubsub, @@ -10310,6 +10314,7 @@ export type getShipFundsAvailableQuery = { GrantShip: Array; @@ -10956,8 +10961,8 @@ export const getShipFundsAvailableDocument = gql` } ` as unknown as DocumentNode; export const getShipIdByHatIdDocument = gql` - query getShipIdByHatId($hatId: String!) { - GrantShip(where: {hatId: {_eq: $hatId}}) { + query getShipIdByHatId($hatId: String!, $gameId: String!) { + GrantShip(where: {hatId: {_eq: $hatId}, gameManager_id: {_eq: $gameId}}) { id } } diff --git a/src/.graphclient/schema.graphql b/src/.graphclient/schema.graphql index 4e8f6393..23d44e90 100644 --- a/src/.graphclient/schema.graphql +++ b/src/.graphclient/schema.graphql @@ -866,7 +866,7 @@ columns and relationships of "FactoryEventsSummary" """ type FactoryEventsSummary { address: String! - admins: [String!]! + admins: _text! contestBuiltCount: numeric! contestCloneCount: numeric! contestTemplateCount: numeric! @@ -884,7 +884,7 @@ input FactoryEventsSummary_bool_exp { _not: FactoryEventsSummary_bool_exp _or: [FactoryEventsSummary_bool_exp!] address: String_comparison_exp - admins: String_array_comparison_exp + admins: _text_comparison_exp contestBuiltCount: numeric_comparison_exp contestCloneCount: numeric_comparison_exp contestTemplateCount: numeric_comparison_exp @@ -944,7 +944,7 @@ input FactoryEventsSummary_stream_cursor_input { """Initial value of the column from where the streaming should start""" input FactoryEventsSummary_stream_cursor_value_input { address: String - admins: [String!] + admins: _text contestBuiltCount: numeric contestCloneCount: numeric contestTemplateCount: numeric @@ -2091,8 +2091,8 @@ type GrantShip { name: String! nonce: numeric! owner: String! - pastNames: [String!]! - pastProfileIds: [String!]! + pastNames: _text! + pastProfileIds: _text! poolActive: Boolean poolFunded: Boolean! poolId: numeric @@ -2188,8 +2188,8 @@ input GrantShip_bool_exp { name: String_comparison_exp nonce: numeric_comparison_exp owner: String_comparison_exp - pastNames: String_array_comparison_exp - pastProfileIds: String_array_comparison_exp + pastNames: _text_comparison_exp + pastProfileIds: _text_comparison_exp poolActive: Boolean_comparison_exp poolFunded: Boolean_comparison_exp poolId: numeric_comparison_exp @@ -2230,8 +2230,6 @@ input GrantShip_max_order_by { name: order_by nonce: order_by owner: order_by - pastNames: order_by - pastProfileIds: order_by poolId: order_by profileId: order_by profileMetadata_id: order_by @@ -2268,8 +2266,6 @@ input GrantShip_min_order_by { name: order_by nonce: order_by owner: order_by - pastNames: order_by - pastProfileIds: order_by poolId: order_by profileId: order_by profileMetadata_id: order_by @@ -2525,8 +2521,8 @@ input GrantShip_stream_cursor_value_input { name: String nonce: numeric owner: String - pastNames: [String!] - pastProfileIds: [String!] + pastNames: _text + pastProfileIds: _text poolActive: Boolean poolFunded: Boolean poolId: numeric @@ -3134,7 +3130,7 @@ type HatsPoster { """filter the rows returned""" where: EventPost_bool_exp ): [EventPost!]! - hatIds: [numeric!]! + hatIds: _numeric! hatsAddress: String! id: String! """An array relationship""" @@ -3161,7 +3157,7 @@ input HatsPoster_bool_exp { _or: [HatsPoster_bool_exp!] db_write_timestamp: timestamp_comparison_exp eventPosts: EventPost_bool_exp - hatIds: numeric_array_comparison_exp + hatIds: _numeric_comparison_exp hatsAddress: String_comparison_exp id: String_comparison_exp record: Record_bool_exp @@ -3204,7 +3200,7 @@ input HatsPoster_stream_cursor_input { """Initial value of the column from where the streaming should start""" input HatsPoster_stream_cursor_value_input { db_write_timestamp: timestamp - hatIds: [numeric!] + hatIds: _numeric hatsAddress: String id: String } @@ -3916,7 +3912,7 @@ input ProfileIdToAnchor_stream_cursor_value_input { columns and relationships of "ProfileMemberGroup" """ type ProfileMemberGroup { - addresses: [String!]! + addresses: _text! db_write_timestamp: timestamp id: String! role: String! @@ -3929,7 +3925,7 @@ input ProfileMemberGroup_bool_exp { _and: [ProfileMemberGroup_bool_exp!] _not: ProfileMemberGroup_bool_exp _or: [ProfileMemberGroup_bool_exp!] - addresses: String_array_comparison_exp + addresses: _text_comparison_exp db_write_timestamp: timestamp_comparison_exp id: String_comparison_exp role: String_comparison_exp @@ -3969,7 +3965,7 @@ input ProfileMemberGroup_stream_cursor_input { """Initial value of the column from where the streaming should start""" input ProfileMemberGroup_stream_cursor_value_input { - addresses: [String!] + addresses: _text db_write_timestamp: timestamp id: String role: String @@ -4006,8 +4002,8 @@ type Project { name: String! nonce: numeric! owner: String! - pastNames: [String!]! - pastProfileIds: [String!]! + pastNames: _text! + pastProfileIds: _text! profileId: String! status: Int! totalAmountReceived: numeric! @@ -4033,8 +4029,8 @@ input Project_bool_exp { name: String_comparison_exp nonce: numeric_comparison_exp owner: String_comparison_exp - pastNames: String_array_comparison_exp - pastProfileIds: String_array_comparison_exp + pastNames: _text_comparison_exp + pastProfileIds: _text_comparison_exp profileId: String_comparison_exp status: Int_comparison_exp totalAmountReceived: numeric_comparison_exp @@ -4120,8 +4116,8 @@ input Project_stream_cursor_value_input { name: String nonce: numeric owner: String - pastNames: [String!] - pastProfileIds: [String!] + pastNames: _text + pastProfileIds: _text profileId: String status: Int totalAmountReceived: numeric @@ -5046,25 +5042,6 @@ input StemModule_stream_cursor_value_input { moduleTemplate_id: String } -""" -Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. -""" -input String_array_comparison_exp { - """is the array contained in the given array value""" - _contained_in: [String!] - """does the array contain the given value""" - _contains: [String!] - _eq: [String!] - _gt: [String!] - _gte: [String!] - _in: [[String!]!] - _is_null: Boolean - _lt: [String!] - _lte: [String!] - _neq: [String!] - _nin: [[String!]!] -} - """ Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. """ @@ -5393,6 +5370,40 @@ input Update_stream_cursor_value_input { timestamp: Int } +scalar _numeric + +""" +Boolean expression to compare columns of type "_numeric". All fields are combined with logical 'AND'. +""" +input _numeric_comparison_exp { + _eq: _numeric + _gt: _numeric + _gte: _numeric + _in: [_numeric!] + _is_null: Boolean + _lt: _numeric + _lte: _numeric + _neq: _numeric + _nin: [_numeric!] +} + +scalar _text + +""" +Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. +""" +input _text_comparison_exp { + _eq: _text + _gt: _text + _gte: _text + _in: [_text!] + _is_null: Boolean + _lt: _text + _lte: _text + _neq: _text + _nin: [_text!] +} + """ columns and relationships of "chain_metadata" """ @@ -6107,25 +6118,6 @@ input json_comparison_exp { scalar numeric -""" -Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. -""" -input numeric_array_comparison_exp { - """is the array contained in the given array value""" - _contained_in: [numeric!] - """does the array contain the given value""" - _contains: [numeric!] - _eq: [numeric!] - _gt: [numeric!] - _gte: [numeric!] - _in: [[numeric!]!] - _is_null: Boolean - _lt: [numeric!] - _lte: [numeric!] - _neq: [numeric!] - _nin: [[numeric!]!] -} - """ Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. """ diff --git a/src/.graphclient/sources/grant-ships/introspectionSchema.ts b/src/.graphclient/sources/grant-ships/introspectionSchema.ts index a14fe1cd..1a7c4309 100644 --- a/src/.graphclient/sources/grant-ships/introspectionSchema.ts +++ b/src/.graphclient/sources/grant-ships/introspectionSchema.ts @@ -7689,16 +7689,10 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } } }, @@ -7932,7 +7926,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "String_array_comparison_exp" + "value": "_text_comparison_exp" } }, "directives": [] @@ -8419,16 +8413,10 @@ const schemaAST = { "value": "admins" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } }, "directives": [] @@ -19716,16 +19704,10 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } } }, @@ -19741,16 +19723,10 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } } }, @@ -21012,7 +20988,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "String_array_comparison_exp" + "value": "_text_comparison_exp" } }, "directives": [] @@ -21027,7 +21003,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "String_array_comparison_exp" + "value": "_text_comparison_exp" } }, "directives": [] @@ -21557,36 +21533,6 @@ const schemaAST = { }, "directives": [] }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "pastNames" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "order_by" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "pastProfileIds" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "order_by" - } - }, - "directives": [] - }, { "kind": "InputValueDefinition", "name": { @@ -22052,36 +21998,6 @@ const schemaAST = { }, "directives": [] }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "pastNames" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "order_by" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "pastProfileIds" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "order_by" - } - }, - "directives": [] - }, { "kind": "InputValueDefinition", "name": { @@ -24718,16 +24634,10 @@ const schemaAST = { "value": "pastNames" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } }, "directives": [] @@ -24739,16 +24649,10 @@ const schemaAST = { "value": "pastProfileIds" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } }, "directives": [] @@ -30857,16 +30761,10 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_numeric" } } }, @@ -31166,7 +31064,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "numeric_array_comparison_exp" + "value": "_numeric_comparison_exp" } }, "directives": [] @@ -31483,16 +31381,10 @@ const schemaAST = { "value": "hatIds" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_numeric" } }, "directives": [] @@ -37892,16 +37784,10 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } } }, @@ -38044,7 +37930,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "String_array_comparison_exp" + "value": "_text_comparison_exp" } }, "directives": [] @@ -38316,16 +38202,10 @@ const schemaAST = { "value": "addresses" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } }, "directives": [] @@ -38769,16 +38649,10 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } } }, @@ -38794,16 +38668,10 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } } }, @@ -39144,7 +39012,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "String_array_comparison_exp" + "value": "_text_comparison_exp" } }, "directives": [] @@ -39159,7 +39027,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "String_array_comparison_exp" + "value": "_text_comparison_exp" } }, "directives": [] @@ -39934,16 +39802,10 @@ const schemaAST = { "value": "pastNames" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } }, "directives": [] @@ -39955,16 +39817,10 @@ const schemaAST = { "value": "pastProfileIds" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" } }, "directives": [] @@ -47833,57 +47689,35 @@ const schemaAST = { }, "name": { "kind": "Name", - "value": "String_array_comparison_exp" + "value": "String_comparison_exp" }, "fields": [ { "kind": "InputValueDefinition", - "description": { - "kind": "StringValue", - "value": "is the array contained in the given array value", - "block": true - }, "name": { "kind": "Name", - "value": "_contained_in" + "value": "_eq" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" } }, "directives": [] }, { "kind": "InputValueDefinition", - "description": { - "kind": "StringValue", - "value": "does the array contain the given value", - "block": true - }, "name": { "kind": "Name", - "value": "_contains" + "value": "_gt" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" } }, "directives": [] @@ -47892,40 +47726,33 @@ const schemaAST = { "kind": "InputValueDefinition", "name": { "kind": "Name", - "value": "_eq" + "value": "_gte" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" } }, "directives": [] }, { "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "does the column match the given case-insensitive pattern", + "block": true + }, "name": { "kind": "Name", - "value": "_gt" + "value": "_ilike" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" } }, "directives": [] @@ -47934,7 +47761,7 @@ const schemaAST = { "kind": "InputValueDefinition", "name": { "kind": "Name", - "value": "_gte" + "value": "_in" }, "type": { "kind": "ListType", @@ -47953,253 +47780,20 @@ const schemaAST = { }, { "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "does the column match the given POSIX regular expression, case insensitive", + "block": true + }, "name": { "kind": "Name", - "value": "_in" + "value": "_iregex" }, "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_is_null" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "Boolean" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_lt" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_lte" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_neq" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_nin" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } - } - } - } - }, - "directives": [] - } - ], - "directives": [] - }, - { - "kind": "InputObjectTypeDefinition", - "description": { - "kind": "StringValue", - "value": "Boolean expression to compare columns of type \"String\". All fields are combined with logical 'AND'.", - "block": true - }, - "name": { - "kind": "Name", - "value": "String_comparison_exp" - }, - "fields": [ - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_eq" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_gt" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_gte" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "description": { - "kind": "StringValue", - "value": "does the column match the given case-insensitive pattern", - "block": true - }, - "name": { - "kind": "Name", - "value": "_ilike" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_in" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "description": { - "kind": "StringValue", - "value": "does the column match the given POSIX regular expression, case insensitive", - "block": true - }, - "name": { - "kind": "Name", - "value": "_iregex" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" } }, "directives": [] @@ -51146,6 +50740,346 @@ const schemaAST = { ], "directives": [] }, + { + "kind": "ScalarTypeDefinition", + "name": { + "kind": "Name", + "value": "_numeric" + }, + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "description": { + "kind": "StringValue", + "value": "Boolean expression to compare columns of type \"_numeric\". All fields are combined with logical 'AND'.", + "block": true + }, + "name": { + "kind": "Name", + "value": "_numeric_comparison_exp" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_eq" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_numeric" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_numeric" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_numeric" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_numeric" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_is_null" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Boolean" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_numeric" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_numeric" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_neq" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_numeric" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_nin" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_numeric" + } + } + } + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "ScalarTypeDefinition", + "name": { + "kind": "Name", + "value": "_text" + }, + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "description": { + "kind": "StringValue", + "value": "Boolean expression to compare columns of type \"_text\". All fields are combined with logical 'AND'.", + "block": true + }, + "name": { + "kind": "Name", + "value": "_text_comparison_exp" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_eq" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_is_null" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Boolean" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_neq" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_nin" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_text" + } + } + } + }, + "directives": [] + } + ], + "directives": [] + }, { "kind": "ObjectTypeDefinition", "description": { @@ -57913,268 +57847,6 @@ const schemaAST = { }, "directives": [] }, - { - "kind": "InputObjectTypeDefinition", - "description": { - "kind": "StringValue", - "value": "Boolean expression to compare columns of type \"numeric\". All fields are combined with logical 'AND'.", - "block": true - }, - "name": { - "kind": "Name", - "value": "numeric_array_comparison_exp" - }, - "fields": [ - { - "kind": "InputValueDefinition", - "description": { - "kind": "StringValue", - "value": "is the array contained in the given array value", - "block": true - }, - "name": { - "kind": "Name", - "value": "_contained_in" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "description": { - "kind": "StringValue", - "value": "does the array contain the given value", - "block": true - }, - "name": { - "kind": "Name", - "value": "_contains" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_eq" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_gt" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_gte" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_in" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_is_null" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "Boolean" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_lt" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_lte" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_neq" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_nin" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "numeric" - } - } - } - } - } - }, - "directives": [] - } - ], - "directives": [] - }, { "kind": "InputObjectTypeDefinition", "description": { diff --git a/src/.graphclient/sources/grant-ships/schema.graphql b/src/.graphclient/sources/grant-ships/schema.graphql index 4e8f6393..23d44e90 100644 --- a/src/.graphclient/sources/grant-ships/schema.graphql +++ b/src/.graphclient/sources/grant-ships/schema.graphql @@ -866,7 +866,7 @@ columns and relationships of "FactoryEventsSummary" """ type FactoryEventsSummary { address: String! - admins: [String!]! + admins: _text! contestBuiltCount: numeric! contestCloneCount: numeric! contestTemplateCount: numeric! @@ -884,7 +884,7 @@ input FactoryEventsSummary_bool_exp { _not: FactoryEventsSummary_bool_exp _or: [FactoryEventsSummary_bool_exp!] address: String_comparison_exp - admins: String_array_comparison_exp + admins: _text_comparison_exp contestBuiltCount: numeric_comparison_exp contestCloneCount: numeric_comparison_exp contestTemplateCount: numeric_comparison_exp @@ -944,7 +944,7 @@ input FactoryEventsSummary_stream_cursor_input { """Initial value of the column from where the streaming should start""" input FactoryEventsSummary_stream_cursor_value_input { address: String - admins: [String!] + admins: _text contestBuiltCount: numeric contestCloneCount: numeric contestTemplateCount: numeric @@ -2091,8 +2091,8 @@ type GrantShip { name: String! nonce: numeric! owner: String! - pastNames: [String!]! - pastProfileIds: [String!]! + pastNames: _text! + pastProfileIds: _text! poolActive: Boolean poolFunded: Boolean! poolId: numeric @@ -2188,8 +2188,8 @@ input GrantShip_bool_exp { name: String_comparison_exp nonce: numeric_comparison_exp owner: String_comparison_exp - pastNames: String_array_comparison_exp - pastProfileIds: String_array_comparison_exp + pastNames: _text_comparison_exp + pastProfileIds: _text_comparison_exp poolActive: Boolean_comparison_exp poolFunded: Boolean_comparison_exp poolId: numeric_comparison_exp @@ -2230,8 +2230,6 @@ input GrantShip_max_order_by { name: order_by nonce: order_by owner: order_by - pastNames: order_by - pastProfileIds: order_by poolId: order_by profileId: order_by profileMetadata_id: order_by @@ -2268,8 +2266,6 @@ input GrantShip_min_order_by { name: order_by nonce: order_by owner: order_by - pastNames: order_by - pastProfileIds: order_by poolId: order_by profileId: order_by profileMetadata_id: order_by @@ -2525,8 +2521,8 @@ input GrantShip_stream_cursor_value_input { name: String nonce: numeric owner: String - pastNames: [String!] - pastProfileIds: [String!] + pastNames: _text + pastProfileIds: _text poolActive: Boolean poolFunded: Boolean poolId: numeric @@ -3134,7 +3130,7 @@ type HatsPoster { """filter the rows returned""" where: EventPost_bool_exp ): [EventPost!]! - hatIds: [numeric!]! + hatIds: _numeric! hatsAddress: String! id: String! """An array relationship""" @@ -3161,7 +3157,7 @@ input HatsPoster_bool_exp { _or: [HatsPoster_bool_exp!] db_write_timestamp: timestamp_comparison_exp eventPosts: EventPost_bool_exp - hatIds: numeric_array_comparison_exp + hatIds: _numeric_comparison_exp hatsAddress: String_comparison_exp id: String_comparison_exp record: Record_bool_exp @@ -3204,7 +3200,7 @@ input HatsPoster_stream_cursor_input { """Initial value of the column from where the streaming should start""" input HatsPoster_stream_cursor_value_input { db_write_timestamp: timestamp - hatIds: [numeric!] + hatIds: _numeric hatsAddress: String id: String } @@ -3916,7 +3912,7 @@ input ProfileIdToAnchor_stream_cursor_value_input { columns and relationships of "ProfileMemberGroup" """ type ProfileMemberGroup { - addresses: [String!]! + addresses: _text! db_write_timestamp: timestamp id: String! role: String! @@ -3929,7 +3925,7 @@ input ProfileMemberGroup_bool_exp { _and: [ProfileMemberGroup_bool_exp!] _not: ProfileMemberGroup_bool_exp _or: [ProfileMemberGroup_bool_exp!] - addresses: String_array_comparison_exp + addresses: _text_comparison_exp db_write_timestamp: timestamp_comparison_exp id: String_comparison_exp role: String_comparison_exp @@ -3969,7 +3965,7 @@ input ProfileMemberGroup_stream_cursor_input { """Initial value of the column from where the streaming should start""" input ProfileMemberGroup_stream_cursor_value_input { - addresses: [String!] + addresses: _text db_write_timestamp: timestamp id: String role: String @@ -4006,8 +4002,8 @@ type Project { name: String! nonce: numeric! owner: String! - pastNames: [String!]! - pastProfileIds: [String!]! + pastNames: _text! + pastProfileIds: _text! profileId: String! status: Int! totalAmountReceived: numeric! @@ -4033,8 +4029,8 @@ input Project_bool_exp { name: String_comparison_exp nonce: numeric_comparison_exp owner: String_comparison_exp - pastNames: String_array_comparison_exp - pastProfileIds: String_array_comparison_exp + pastNames: _text_comparison_exp + pastProfileIds: _text_comparison_exp profileId: String_comparison_exp status: Int_comparison_exp totalAmountReceived: numeric_comparison_exp @@ -4120,8 +4116,8 @@ input Project_stream_cursor_value_input { name: String nonce: numeric owner: String - pastNames: [String!] - pastProfileIds: [String!] + pastNames: _text + pastProfileIds: _text profileId: String status: Int totalAmountReceived: numeric @@ -5046,25 +5042,6 @@ input StemModule_stream_cursor_value_input { moduleTemplate_id: String } -""" -Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. -""" -input String_array_comparison_exp { - """is the array contained in the given array value""" - _contained_in: [String!] - """does the array contain the given value""" - _contains: [String!] - _eq: [String!] - _gt: [String!] - _gte: [String!] - _in: [[String!]!] - _is_null: Boolean - _lt: [String!] - _lte: [String!] - _neq: [String!] - _nin: [[String!]!] -} - """ Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. """ @@ -5393,6 +5370,40 @@ input Update_stream_cursor_value_input { timestamp: Int } +scalar _numeric + +""" +Boolean expression to compare columns of type "_numeric". All fields are combined with logical 'AND'. +""" +input _numeric_comparison_exp { + _eq: _numeric + _gt: _numeric + _gte: _numeric + _in: [_numeric!] + _is_null: Boolean + _lt: _numeric + _lte: _numeric + _neq: _numeric + _nin: [_numeric!] +} + +scalar _text + +""" +Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. +""" +input _text_comparison_exp { + _eq: _text + _gt: _text + _gte: _text + _in: [_text!] + _is_null: Boolean + _lt: _text + _lte: _text + _neq: _text + _nin: [_text!] +} + """ columns and relationships of "chain_metadata" """ @@ -6107,25 +6118,6 @@ input json_comparison_exp { scalar numeric -""" -Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. -""" -input numeric_array_comparison_exp { - """is the array contained in the given array value""" - _contained_in: [numeric!] - """does the array contain the given value""" - _contains: [numeric!] - _eq: [numeric!] - _gt: [numeric!] - _gte: [numeric!] - _in: [[numeric!]!] - _is_null: Boolean - _lt: [numeric!] - _lte: [numeric!] - _neq: [numeric!] - _nin: [[numeric!]!] -} - """ Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. """ diff --git a/src/.graphclient/sources/grant-ships/types.ts b/src/.graphclient/sources/grant-ships/types.ts index bd6ae929..e971acfb 100644 --- a/src/.graphclient/sources/grant-ships/types.ts +++ b/src/.graphclient/sources/grant-ships/types.ts @@ -16,6 +16,8 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; + _numeric: any; + _text: any; contract_type: any; entity_type: any; event_type: any; @@ -769,7 +771,7 @@ export type EventPost_variance_order_by = { /** columns and relationships of "FactoryEventsSummary" */ export type FactoryEventsSummary = { address: Scalars['String']; - admins: Array; + admins: Scalars['_text']; contestBuiltCount: Scalars['numeric']; contestCloneCount: Scalars['numeric']; contestTemplateCount: Scalars['numeric']; @@ -785,7 +787,7 @@ export type FactoryEventsSummary_bool_exp = { _not?: InputMaybe; _or?: InputMaybe>; address?: InputMaybe; - admins?: InputMaybe; + admins?: InputMaybe<_text_comparison_exp>; contestBuiltCount?: InputMaybe; contestCloneCount?: InputMaybe; contestTemplateCount?: InputMaybe; @@ -840,7 +842,7 @@ export type FactoryEventsSummary_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type FactoryEventsSummary_stream_cursor_value_input = { address?: InputMaybe; - admins?: InputMaybe>; + admins?: InputMaybe; contestBuiltCount?: InputMaybe; contestCloneCount?: InputMaybe; contestTemplateCount?: InputMaybe; @@ -1864,8 +1866,8 @@ export type GrantShip = { name: Scalars['String']; nonce: Scalars['numeric']; owner: Scalars['String']; - pastNames: Array; - pastProfileIds: Array; + pastNames: Scalars['_text']; + pastProfileIds: Scalars['_text']; poolActive?: Maybe; poolFunded: Scalars['Boolean']; poolId?: Maybe; @@ -1965,8 +1967,8 @@ export type GrantShip_bool_exp = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; + pastNames?: InputMaybe<_text_comparison_exp>; + pastProfileIds?: InputMaybe<_text_comparison_exp>; poolActive?: InputMaybe; poolFunded?: InputMaybe; poolId?: InputMaybe; @@ -2005,8 +2007,6 @@ export type GrantShip_max_order_by = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; poolId?: InputMaybe; profileId?: InputMaybe; profileMetadata_id?: InputMaybe; @@ -2041,8 +2041,6 @@ export type GrantShip_min_order_by = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; poolId?: InputMaybe; profileId?: InputMaybe; profileMetadata_id?: InputMaybe; @@ -2287,8 +2285,8 @@ export type GrantShip_stream_cursor_value_input = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe>; - pastProfileIds?: InputMaybe>; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; poolActive?: InputMaybe; poolFunded?: InputMaybe; poolId?: InputMaybe; @@ -2826,7 +2824,7 @@ export type HatsPoster = { db_write_timestamp?: Maybe; /** An array relationship */ eventPosts: Array; - hatIds: Array; + hatIds: Scalars['_numeric']; hatsAddress: Scalars['String']; id: Scalars['String']; /** An array relationship */ @@ -2860,7 +2858,7 @@ export type HatsPoster_bool_exp = { _or?: InputMaybe>; db_write_timestamp?: InputMaybe; eventPosts?: InputMaybe; - hatIds?: InputMaybe; + hatIds?: InputMaybe<_numeric_comparison_exp>; hatsAddress?: InputMaybe; id?: InputMaybe; record?: InputMaybe; @@ -2898,7 +2896,7 @@ export type HatsPoster_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type HatsPoster_stream_cursor_value_input = { db_write_timestamp?: InputMaybe; - hatIds?: InputMaybe>; + hatIds?: InputMaybe; hatsAddress?: InputMaybe; id?: InputMaybe; }; @@ -3516,7 +3514,7 @@ export type ProfileIdToAnchor_stream_cursor_value_input = { /** columns and relationships of "ProfileMemberGroup" */ export type ProfileMemberGroup = { - addresses: Array; + addresses: Scalars['_text']; db_write_timestamp?: Maybe; id: Scalars['String']; role: Scalars['String']; @@ -3527,7 +3525,7 @@ export type ProfileMemberGroup_bool_exp = { _and?: InputMaybe>; _not?: InputMaybe; _or?: InputMaybe>; - addresses?: InputMaybe; + addresses?: InputMaybe<_text_comparison_exp>; db_write_timestamp?: InputMaybe; id?: InputMaybe; role?: InputMaybe; @@ -3562,7 +3560,7 @@ export type ProfileMemberGroup_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type ProfileMemberGroup_stream_cursor_value_input = { - addresses?: InputMaybe>; + addresses?: InputMaybe; db_write_timestamp?: InputMaybe; id?: InputMaybe; role?: InputMaybe; @@ -3586,8 +3584,8 @@ export type Project = { name: Scalars['String']; nonce: Scalars['numeric']; owner: Scalars['String']; - pastNames: Array; - pastProfileIds: Array; + pastNames: Scalars['_text']; + pastProfileIds: Scalars['_text']; profileId: Scalars['String']; status: Scalars['Int']; totalAmountReceived: Scalars['numeric']; @@ -3621,8 +3619,8 @@ export type Project_bool_exp = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; + pastNames?: InputMaybe<_text_comparison_exp>; + pastProfileIds?: InputMaybe<_text_comparison_exp>; profileId?: InputMaybe; status?: InputMaybe; totalAmountReceived?: InputMaybe; @@ -3703,8 +3701,8 @@ export type Project_stream_cursor_value_input = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe>; - pastProfileIds?: InputMaybe>; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; profileId?: InputMaybe; status?: InputMaybe; totalAmountReceived?: InputMaybe; @@ -4499,23 +4497,6 @@ export type StemModule_stream_cursor_value_input = { moduleTemplate_id?: InputMaybe; }; -/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ -export type String_array_comparison_exp = { - /** is the array contained in the given array value */ - _contained_in?: InputMaybe>; - /** does the array contain the given value */ - _contains?: InputMaybe>; - _eq?: InputMaybe>; - _gt?: InputMaybe>; - _gte?: InputMaybe>; - _in?: InputMaybe>>; - _is_null?: InputMaybe; - _lt?: InputMaybe>; - _lte?: InputMaybe>; - _neq?: InputMaybe>; - _nin?: InputMaybe>>; -}; - /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ export type String_comparison_exp = { _eq?: InputMaybe; @@ -4807,6 +4788,32 @@ export type Update_stream_cursor_value_input = { timestamp?: InputMaybe; }; +/** Boolean expression to compare columns of type "_numeric". All fields are combined with logical 'AND'. */ +export type _numeric_comparison_exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + +/** Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. */ +export type _text_comparison_exp = { + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; +}; + /** columns and relationships of "chain_metadata" */ export type chain_metadata = { block_height: Scalars['Int']; @@ -5444,23 +5451,6 @@ export type json_comparison_exp = { _nin?: InputMaybe>; }; -/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ -export type numeric_array_comparison_exp = { - /** is the array contained in the given array value */ - _contained_in?: InputMaybe>; - /** does the array contain the given value */ - _contains?: InputMaybe>; - _eq?: InputMaybe>; - _gt?: InputMaybe>; - _gte?: InputMaybe>; - _in?: InputMaybe>>; - _is_null?: InputMaybe; - _lt?: InputMaybe>; - _lte?: InputMaybe>; - _neq?: InputMaybe>; - _nin?: InputMaybe>>; -}; - /** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ export type numeric_comparison_exp = { _eq?: InputMaybe; diff --git a/src/components/grant/GrantCard.tsx b/src/components/grant/GrantCard.tsx index 30a37bea..9ea69d0f 100644 --- a/src/components/grant/GrantCard.tsx +++ b/src/components/grant/GrantCard.tsx @@ -1,5 +1,6 @@ import { Avatar, + Box, Group, Paper, Text, @@ -7,8 +8,21 @@ import { useMantineTheme, } from '@mantine/core'; import { GrantStatus } from '../../types/common'; -import { IconCheck } from '@tabler/icons-react'; +import { + IconCheck, + IconChecks, + IconFileCheck, + IconFileDescription, + IconFilePlus, + IconFileX, + IconPennant, + IconPennantOff, + IconRoute, + IconRouteX, + IconShieldX, +} from '@tabler/icons-react'; import { Link } from 'react-router-dom'; +import { ReactNode } from 'react'; export const GrantCard = ({ avatarUrls, @@ -16,12 +30,18 @@ export const GrantCard = ({ isActive, linkUrl, status, + hasPending, + hasRejected, + allCompleted, }: { linkUrl: string; isActive: boolean; avatarUrls: string[]; label: string; status: GrantStatus; + hasPending: boolean; + hasRejected: boolean; + allCompleted: boolean; }) => { const theme = useMantineTheme(); @@ -33,22 +53,159 @@ export const GrantCard = ({ component={Link} to={linkUrl} > - - - {avatarUrls.map((url) => ( - - ))} - - - {label} - - - - + + + + {avatarUrls.map((url) => ( + + ))} + + + {label} + + + + + + ); }; + +const GrantStatusIndicator = ({ + status, + hasPending, + hasRejected, + allCompleted, +}: { + status: GrantStatus; + hasPending: boolean; + hasRejected: boolean; + allCompleted: boolean; +}) => { + const theme = useMantineTheme(); + + if (status === GrantStatus.ProjectInitiated) + return ( + } /> + ); + if (status === GrantStatus.ShipInitiated) { + return ( + } /> + ); + } + if (status === GrantStatus.ApplicationSubmitted) { + return ( + } + /> + ); + } + if (status === GrantStatus.ApplicationRejected) { + return ( + } + /> + ); + } + if (status === GrantStatus.ApplicationApproved) { + return ( + } + /> + ); + } + if (status === GrantStatus.MilestonesSubmitted) { + return ( + } + /> + ); + } + if (status === GrantStatus.MilestonesRejected) { + return ( + } + /> + ); + } + + if (status === GrantStatus.MilestonesApproved) { + return ( + } + /> + ); + } + if (status === GrantStatus.FacilitatorRejected) { + return ( + } + /> + ); + } + + if (status === GrantStatus.Allocated) { + if (hasPending) { + return ( + } + /> + ); + } + if (hasRejected) { + return ( + } + /> + ); + } + + // state to tell project that the milestone has been approved + return ( + } /> + ); + } + + if (status === GrantStatus.AllMilestonesComplete) { + return ( + } + /> + ); + } + + if (status === GrantStatus.Completed) { + return ( + } /> + ); + } +}; + +const StatusIndicator = ({ text, icon }: { text: string; icon: ReactNode }) => { + return ( + + {text} + {icon} + + ); +}; diff --git a/src/components/grant/MilestonesDrawer.tsx b/src/components/grant/MilestonesDrawer.tsx index 010ad293..b5afc51d 100644 --- a/src/components/grant/MilestonesDrawer.tsx +++ b/src/components/grant/MilestonesDrawer.tsx @@ -7,7 +7,6 @@ import { NumberInput, Stack, Text, - TextInput, Textarea, useMantineTheme, } from '@mantine/core'; diff --git a/src/graphql/newQueries/getShipByHatId.graphql b/src/graphql/newQueries/getShipByHatId.graphql index ec9399a5..65b4e15e 100644 --- a/src/graphql/newQueries/getShipByHatId.graphql +++ b/src/graphql/newQueries/getShipByHatId.graphql @@ -1,5 +1,7 @@ -query getShipIdByHatId($hatId: String!) { - GrantShip(where: { hatId: { _eq: $hatId } }) { +query getShipIdByHatId($hatId: String!, $gameId: String!) { + GrantShip( + where: { hatId: { _eq: $hatId }, gameManager_id: { _eq: $gameId } } + ) { id } } diff --git a/src/pages/Grant.tsx b/src/pages/Grant.tsx index 65b40857..ab671b15 100644 --- a/src/pages/Grant.tsx +++ b/src/pages/Grant.tsx @@ -1,13 +1,5 @@ import { MainSection, PageTitle } from '../layout/Sections'; -import { - Button, - Center, - Flex, - SegmentedControl, - Stack, - Text, - useMantineTheme, -} from '@mantine/core'; +import { Center, Flex, SegmentedControl, useMantineTheme } from '@mantine/core'; import { useBreakpoints } from '../hooks/useBreakpoint'; import { Route, @@ -19,26 +11,13 @@ import { import { IconFileDescription, IconGitCommit, - IconPencil, IconPennant, - IconPlus, - IconRoute, } from '@tabler/icons-react'; -import { Player } from '../types/ui'; import { TopSection } from '../components/grant/TopSection'; import { GrantContextProvider } from '../contexts/GrantContext'; import { useGrant } from '../hooks/useGrant'; import { GrantTimeline } from '../components/grant/GrantTimeline'; -import { PostGrantDrawer } from '../components/grant/PostGrantDrawer'; -import { useDisclosure } from '@mantine/hooks'; -import { ApplicationDrawer } from '../components/grant/ApplicationDrawer'; -import { GameStatus, GrantStatus } from '../types/common'; -import { MilestonesDrawer } from '../components/grant/MilestonesDrawer'; import { useUserData } from '../hooks/useUserState'; -import { FacilitatorApprovalDrawer } from '../components/grant/FacilitatorApprovalDrawer'; -import { PageDrawer } from '../components/PageDrawer'; -import { SubmitMilestoneDrawer } from '../components/grant/SubmitMilestoneDrawer'; -import { formatEther, parseEther, weiUnits } from 'viem'; import { ProjectActions } from '../components/grant/ProjectActions'; import { FacilitatorActions } from '../components/grant/FacilitatorActions'; import { ShipActions } from '../components/grant/ShipActions'; diff --git a/src/pages/Project.tsx b/src/pages/Project.tsx index e72fca19..7e852741 100644 --- a/src/pages/Project.tsx +++ b/src/pages/Project.tsx @@ -381,6 +381,9 @@ export const Project = () => { label={`Grant with ${grant.ship.name}`} isActive={grant.status >= GrantStatus.Allocated} status={grant.status} + hasPending={grant.hasPendingMilestones} + hasRejected={grant.hasRejectedMilestones} + allCompleted={grant.allMilestonesApproved} /> ))} diff --git a/src/pages/Ship.tsx b/src/pages/Ship.tsx index 8c0f9e97..3ac1ab6b 100644 --- a/src/pages/Ship.tsx +++ b/src/pages/Ship.tsx @@ -293,6 +293,9 @@ export const Ship = () => { {grants?.map((grant) => ( { const { getShipIdByHatId } = getBuiltGraphSDK({}); const result = await getShipIdByHatId({ hatId: isOperator.hatId.toString(), + gameId: GAME_MANAGER.ADDRESS, }); const shipAddress = result?.GrantShip?.[0]?.id; From 0e31fddd6bbe046b5b287c3cdce17c3ea5884d8e Mon Sep 17 00:00:00 2001 From: jordan Date: Thu, 8 Aug 2024 11:33:29 -0700 Subject: [PATCH 2/2] fix query endpoint --- .graphclientrc.yml | 4 +- src/.graphclient/index.ts | 146 +- src/.graphclient/schema.graphql | 118 +- .../grant-ships/introspectionSchema.ts | 1208 +++++++++++------ .../sources/grant-ships/schema.graphql | 118 +- src/.graphclient/sources/grant-ships/types.ts | 108 +- 6 files changed, 1026 insertions(+), 676 deletions(-) diff --git a/.graphclientrc.yml b/.graphclientrc.yml index b49da495..a505b50d 100644 --- a/.graphclientrc.yml +++ b/.graphclientrc.yml @@ -2,8 +2,8 @@ sources: - name: grant-ships handler: graphql: - # endpoint: https://indexer.bigdevenergy.link/e09c75f/v1/graphql - endpoint: http://localhost:8080/v1/graphql + endpoint: https://indexer.bigdevenergy.link/e09c75f/v1/graphql + # endpoint: http://localhost:8080/v1/graphql # - name: gs-voting # handler: # graphql: diff --git a/src/.graphclient/index.ts b/src/.graphclient/index.ts index 3c293608..510863f4 100644 --- a/src/.graphclient/index.ts +++ b/src/.graphclient/index.ts @@ -38,8 +38,6 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; - _numeric: any; - _text: any; contract_type: any; entity_type: any; event_type: any; @@ -793,7 +791,7 @@ export type EventPost_variance_order_by = { /** columns and relationships of "FactoryEventsSummary" */ export type FactoryEventsSummary = { address: Scalars['String']; - admins: Scalars['_text']; + admins: Array; contestBuiltCount: Scalars['numeric']; contestCloneCount: Scalars['numeric']; contestTemplateCount: Scalars['numeric']; @@ -809,7 +807,7 @@ export type FactoryEventsSummary_bool_exp = { _not?: InputMaybe; _or?: InputMaybe>; address?: InputMaybe; - admins?: InputMaybe<_text_comparison_exp>; + admins?: InputMaybe; contestBuiltCount?: InputMaybe; contestCloneCount?: InputMaybe; contestTemplateCount?: InputMaybe; @@ -864,7 +862,7 @@ export type FactoryEventsSummary_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type FactoryEventsSummary_stream_cursor_value_input = { address?: InputMaybe; - admins?: InputMaybe; + admins?: InputMaybe>; contestBuiltCount?: InputMaybe; contestCloneCount?: InputMaybe; contestTemplateCount?: InputMaybe; @@ -1888,8 +1886,8 @@ export type GrantShip = { name: Scalars['String']; nonce: Scalars['numeric']; owner: Scalars['String']; - pastNames: Scalars['_text']; - pastProfileIds: Scalars['_text']; + pastNames: Array; + pastProfileIds: Array; poolActive?: Maybe; poolFunded: Scalars['Boolean']; poolId?: Maybe; @@ -1989,8 +1987,8 @@ export type GrantShip_bool_exp = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe<_text_comparison_exp>; - pastProfileIds?: InputMaybe<_text_comparison_exp>; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; poolActive?: InputMaybe; poolFunded?: InputMaybe; poolId?: InputMaybe; @@ -2029,6 +2027,8 @@ export type GrantShip_max_order_by = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; poolId?: InputMaybe; profileId?: InputMaybe; profileMetadata_id?: InputMaybe; @@ -2063,6 +2063,8 @@ export type GrantShip_min_order_by = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; poolId?: InputMaybe; profileId?: InputMaybe; profileMetadata_id?: InputMaybe; @@ -2307,8 +2309,8 @@ export type GrantShip_stream_cursor_value_input = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; + pastNames?: InputMaybe>; + pastProfileIds?: InputMaybe>; poolActive?: InputMaybe; poolFunded?: InputMaybe; poolId?: InputMaybe; @@ -2846,7 +2848,7 @@ export type HatsPoster = { db_write_timestamp?: Maybe; /** An array relationship */ eventPosts: Array; - hatIds: Scalars['_numeric']; + hatIds: Array; hatsAddress: Scalars['String']; id: Scalars['String']; /** An array relationship */ @@ -2880,7 +2882,7 @@ export type HatsPoster_bool_exp = { _or?: InputMaybe>; db_write_timestamp?: InputMaybe; eventPosts?: InputMaybe; - hatIds?: InputMaybe<_numeric_comparison_exp>; + hatIds?: InputMaybe; hatsAddress?: InputMaybe; id?: InputMaybe; record?: InputMaybe; @@ -2918,7 +2920,7 @@ export type HatsPoster_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type HatsPoster_stream_cursor_value_input = { db_write_timestamp?: InputMaybe; - hatIds?: InputMaybe; + hatIds?: InputMaybe>; hatsAddress?: InputMaybe; id?: InputMaybe; }; @@ -3536,7 +3538,7 @@ export type ProfileIdToAnchor_stream_cursor_value_input = { /** columns and relationships of "ProfileMemberGroup" */ export type ProfileMemberGroup = { - addresses: Scalars['_text']; + addresses: Array; db_write_timestamp?: Maybe; id: Scalars['String']; role: Scalars['String']; @@ -3547,7 +3549,7 @@ export type ProfileMemberGroup_bool_exp = { _and?: InputMaybe>; _not?: InputMaybe; _or?: InputMaybe>; - addresses?: InputMaybe<_text_comparison_exp>; + addresses?: InputMaybe; db_write_timestamp?: InputMaybe; id?: InputMaybe; role?: InputMaybe; @@ -3582,7 +3584,7 @@ export type ProfileMemberGroup_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type ProfileMemberGroup_stream_cursor_value_input = { - addresses?: InputMaybe; + addresses?: InputMaybe>; db_write_timestamp?: InputMaybe; id?: InputMaybe; role?: InputMaybe; @@ -3606,8 +3608,8 @@ export type Project = { name: Scalars['String']; nonce: Scalars['numeric']; owner: Scalars['String']; - pastNames: Scalars['_text']; - pastProfileIds: Scalars['_text']; + pastNames: Array; + pastProfileIds: Array; profileId: Scalars['String']; status: Scalars['Int']; totalAmountReceived: Scalars['numeric']; @@ -3641,8 +3643,8 @@ export type Project_bool_exp = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe<_text_comparison_exp>; - pastProfileIds?: InputMaybe<_text_comparison_exp>; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; profileId?: InputMaybe; status?: InputMaybe; totalAmountReceived?: InputMaybe; @@ -3723,8 +3725,8 @@ export type Project_stream_cursor_value_input = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; + pastNames?: InputMaybe>; + pastProfileIds?: InputMaybe>; profileId?: InputMaybe; status?: InputMaybe; totalAmountReceived?: InputMaybe; @@ -4519,6 +4521,23 @@ export type StemModule_stream_cursor_value_input = { moduleTemplate_id?: InputMaybe; }; +/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ +export type String_array_comparison_exp = { + /** is the array contained in the given array value */ + _contained_in?: InputMaybe>; + /** does the array contain the given value */ + _contains?: InputMaybe>; + _eq?: InputMaybe>; + _gt?: InputMaybe>; + _gte?: InputMaybe>; + _in?: InputMaybe>>; + _is_null?: InputMaybe; + _lt?: InputMaybe>; + _lte?: InputMaybe>; + _neq?: InputMaybe>; + _nin?: InputMaybe>>; +}; + /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ export type String_comparison_exp = { _eq?: InputMaybe; @@ -4810,32 +4829,6 @@ export type Update_stream_cursor_value_input = { timestamp?: InputMaybe; }; -/** Boolean expression to compare columns of type "_numeric". All fields are combined with logical 'AND'. */ -export type _numeric_comparison_exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. */ -export type _text_comparison_exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - /** columns and relationships of "chain_metadata" */ export type chain_metadata = { block_height: Scalars['Int']; @@ -5473,6 +5466,23 @@ export type json_comparison_exp = { _nin?: InputMaybe>; }; +/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ +export type numeric_array_comparison_exp = { + /** is the array contained in the given array value */ + _contained_in?: InputMaybe>; + /** does the array contain the given value */ + _contains?: InputMaybe>; + _eq?: InputMaybe>; + _gt?: InputMaybe>; + _gte?: InputMaybe>; + _in?: InputMaybe>>; + _is_null?: InputMaybe; + _lt?: InputMaybe>; + _lte?: InputMaybe>; + _neq?: InputMaybe>; + _nin?: InputMaybe>>; +}; + /** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ export type numeric_comparison_exp = { _eq?: InputMaybe; @@ -8256,6 +8266,7 @@ export type ResolversTypes = ResolversObject<{ StemModule_stream_cursor_input: StemModule_stream_cursor_input; StemModule_stream_cursor_value_input: StemModule_stream_cursor_value_input; String: ResolverTypeWrapper; + String_array_comparison_exp: String_array_comparison_exp; String_comparison_exp: String_comparison_exp; TVParams: ResolverTypeWrapper; TVParams_bool_exp: TVParams_bool_exp; @@ -8275,10 +8286,6 @@ export type ResolversTypes = ResolversObject<{ Update_select_column: Update_select_column; Update_stream_cursor_input: Update_stream_cursor_input; Update_stream_cursor_value_input: Update_stream_cursor_value_input; - _numeric: ResolverTypeWrapper; - _numeric_comparison_exp: _numeric_comparison_exp; - _text: ResolverTypeWrapper; - _text_comparison_exp: _text_comparison_exp; chain_metadata: ResolverTypeWrapper; chain_metadata_bool_exp: chain_metadata_bool_exp; chain_metadata_order_by: chain_metadata_order_by; @@ -8331,6 +8338,7 @@ export type ResolversTypes = ResolversObject<{ json: ResolverTypeWrapper; json_comparison_exp: json_comparison_exp; numeric: ResolverTypeWrapper; + numeric_array_comparison_exp: numeric_array_comparison_exp; numeric_comparison_exp: numeric_comparison_exp; order_by: order_by; persisted_state: ResolverTypeWrapper; @@ -8650,6 +8658,7 @@ export type ResolversParentTypes = ResolversObject<{ StemModule_stream_cursor_input: StemModule_stream_cursor_input; StemModule_stream_cursor_value_input: StemModule_stream_cursor_value_input; String: Scalars['String']; + String_array_comparison_exp: String_array_comparison_exp; String_comparison_exp: String_comparison_exp; TVParams: TVParams; TVParams_bool_exp: TVParams_bool_exp; @@ -8666,10 +8675,6 @@ export type ResolversParentTypes = ResolversObject<{ Update_order_by: Update_order_by; Update_stream_cursor_input: Update_stream_cursor_input; Update_stream_cursor_value_input: Update_stream_cursor_value_input; - _numeric: Scalars['_numeric']; - _numeric_comparison_exp: _numeric_comparison_exp; - _text: Scalars['_text']; - _text_comparison_exp: _text_comparison_exp; chain_metadata: chain_metadata; chain_metadata_bool_exp: chain_metadata_bool_exp; chain_metadata_order_by: chain_metadata_order_by; @@ -8716,6 +8721,7 @@ export type ResolversParentTypes = ResolversObject<{ json: Scalars['json']; json_comparison_exp: json_comparison_exp; numeric: Scalars['numeric']; + numeric_array_comparison_exp: numeric_array_comparison_exp; numeric_comparison_exp: numeric_comparison_exp; persisted_state: persisted_state; persisted_state_bool_exp: persisted_state_bool_exp; @@ -8829,7 +8835,7 @@ export type EventPostResolvers = ResolversObject<{ address?: Resolver; - admins?: Resolver; + admins?: Resolver, ParentType, ContextType>; contestBuiltCount?: Resolver; contestCloneCount?: Resolver; contestTemplateCount?: Resolver; @@ -9021,8 +9027,8 @@ export type GrantShipResolvers; nonce?: Resolver; owner?: Resolver; - pastNames?: Resolver; - pastProfileIds?: Resolver; + pastNames?: Resolver, ParentType, ContextType>; + pastProfileIds?: Resolver, ParentType, ContextType>; poolActive?: Resolver, ParentType, ContextType>; poolFunded?: Resolver; poolId?: Resolver, ParentType, ContextType>; @@ -9073,7 +9079,7 @@ export type HALParamsResolvers = ResolversObject<{ db_write_timestamp?: Resolver, ParentType, ContextType>; eventPosts?: Resolver, ParentType, ContextType, Partial>; - hatIds?: Resolver; + hatIds?: Resolver, ParentType, ContextType>; hatsAddress?: Resolver; id?: Resolver; record?: Resolver, ParentType, ContextType, Partial>; @@ -9138,7 +9144,7 @@ export type ProfileIdToAnchorResolvers; export type ProfileMemberGroupResolvers = ResolversObject<{ - addresses?: Resolver; + addresses?: Resolver, ParentType, ContextType>; db_write_timestamp?: Resolver, ParentType, ContextType>; id?: Resolver; role?: Resolver; @@ -9159,8 +9165,8 @@ export type ProjectResolvers; nonce?: Resolver; owner?: Resolver; - pastNames?: Resolver; - pastProfileIds?: Resolver; + pastNames?: Resolver, ParentType, ContextType>; + pastProfileIds?: Resolver, ParentType, ContextType>; profileId?: Resolver; status?: Resolver; totalAmountReceived?: Resolver; @@ -9291,14 +9297,6 @@ export type UpdateResolvers; }>; -export interface _numericScalarConfig extends GraphQLScalarTypeConfig { - name: '_numeric'; -} - -export interface _textScalarConfig extends GraphQLScalarTypeConfig { - name: '_text'; -} - export type chain_metadataResolvers = ResolversObject<{ block_height?: Resolver; chain_id?: Resolver; @@ -9696,8 +9694,6 @@ export type Resolvers = ResolversObject<{ TVParams?: TVParamsResolvers; Transaction?: TransactionResolvers; Update?: UpdateResolvers; - _numeric?: GraphQLScalarType; - _text?: GraphQLScalarType; chain_metadata?: chain_metadataResolvers; contract_type?: GraphQLScalarType; dynamic_contract_registry?: dynamic_contract_registryResolvers; @@ -9766,7 +9762,7 @@ const grantShipsTransforms = []; const additionalTypeDefs = [] as any[]; const grantShipsHandler = new GraphqlHandler({ name: "grant-ships", - config: {"endpoint":"http://localhost:8080/v1/graphql"}, + config: {"endpoint":"https://indexer.bigdevenergy.link/e09c75f/v1/graphql"}, baseDir, cache, pubsub, diff --git a/src/.graphclient/schema.graphql b/src/.graphclient/schema.graphql index 23d44e90..4e8f6393 100644 --- a/src/.graphclient/schema.graphql +++ b/src/.graphclient/schema.graphql @@ -866,7 +866,7 @@ columns and relationships of "FactoryEventsSummary" """ type FactoryEventsSummary { address: String! - admins: _text! + admins: [String!]! contestBuiltCount: numeric! contestCloneCount: numeric! contestTemplateCount: numeric! @@ -884,7 +884,7 @@ input FactoryEventsSummary_bool_exp { _not: FactoryEventsSummary_bool_exp _or: [FactoryEventsSummary_bool_exp!] address: String_comparison_exp - admins: _text_comparison_exp + admins: String_array_comparison_exp contestBuiltCount: numeric_comparison_exp contestCloneCount: numeric_comparison_exp contestTemplateCount: numeric_comparison_exp @@ -944,7 +944,7 @@ input FactoryEventsSummary_stream_cursor_input { """Initial value of the column from where the streaming should start""" input FactoryEventsSummary_stream_cursor_value_input { address: String - admins: _text + admins: [String!] contestBuiltCount: numeric contestCloneCount: numeric contestTemplateCount: numeric @@ -2091,8 +2091,8 @@ type GrantShip { name: String! nonce: numeric! owner: String! - pastNames: _text! - pastProfileIds: _text! + pastNames: [String!]! + pastProfileIds: [String!]! poolActive: Boolean poolFunded: Boolean! poolId: numeric @@ -2188,8 +2188,8 @@ input GrantShip_bool_exp { name: String_comparison_exp nonce: numeric_comparison_exp owner: String_comparison_exp - pastNames: _text_comparison_exp - pastProfileIds: _text_comparison_exp + pastNames: String_array_comparison_exp + pastProfileIds: String_array_comparison_exp poolActive: Boolean_comparison_exp poolFunded: Boolean_comparison_exp poolId: numeric_comparison_exp @@ -2230,6 +2230,8 @@ input GrantShip_max_order_by { name: order_by nonce: order_by owner: order_by + pastNames: order_by + pastProfileIds: order_by poolId: order_by profileId: order_by profileMetadata_id: order_by @@ -2266,6 +2268,8 @@ input GrantShip_min_order_by { name: order_by nonce: order_by owner: order_by + pastNames: order_by + pastProfileIds: order_by poolId: order_by profileId: order_by profileMetadata_id: order_by @@ -2521,8 +2525,8 @@ input GrantShip_stream_cursor_value_input { name: String nonce: numeric owner: String - pastNames: _text - pastProfileIds: _text + pastNames: [String!] + pastProfileIds: [String!] poolActive: Boolean poolFunded: Boolean poolId: numeric @@ -3130,7 +3134,7 @@ type HatsPoster { """filter the rows returned""" where: EventPost_bool_exp ): [EventPost!]! - hatIds: _numeric! + hatIds: [numeric!]! hatsAddress: String! id: String! """An array relationship""" @@ -3157,7 +3161,7 @@ input HatsPoster_bool_exp { _or: [HatsPoster_bool_exp!] db_write_timestamp: timestamp_comparison_exp eventPosts: EventPost_bool_exp - hatIds: _numeric_comparison_exp + hatIds: numeric_array_comparison_exp hatsAddress: String_comparison_exp id: String_comparison_exp record: Record_bool_exp @@ -3200,7 +3204,7 @@ input HatsPoster_stream_cursor_input { """Initial value of the column from where the streaming should start""" input HatsPoster_stream_cursor_value_input { db_write_timestamp: timestamp - hatIds: _numeric + hatIds: [numeric!] hatsAddress: String id: String } @@ -3912,7 +3916,7 @@ input ProfileIdToAnchor_stream_cursor_value_input { columns and relationships of "ProfileMemberGroup" """ type ProfileMemberGroup { - addresses: _text! + addresses: [String!]! db_write_timestamp: timestamp id: String! role: String! @@ -3925,7 +3929,7 @@ input ProfileMemberGroup_bool_exp { _and: [ProfileMemberGroup_bool_exp!] _not: ProfileMemberGroup_bool_exp _or: [ProfileMemberGroup_bool_exp!] - addresses: _text_comparison_exp + addresses: String_array_comparison_exp db_write_timestamp: timestamp_comparison_exp id: String_comparison_exp role: String_comparison_exp @@ -3965,7 +3969,7 @@ input ProfileMemberGroup_stream_cursor_input { """Initial value of the column from where the streaming should start""" input ProfileMemberGroup_stream_cursor_value_input { - addresses: _text + addresses: [String!] db_write_timestamp: timestamp id: String role: String @@ -4002,8 +4006,8 @@ type Project { name: String! nonce: numeric! owner: String! - pastNames: _text! - pastProfileIds: _text! + pastNames: [String!]! + pastProfileIds: [String!]! profileId: String! status: Int! totalAmountReceived: numeric! @@ -4029,8 +4033,8 @@ input Project_bool_exp { name: String_comparison_exp nonce: numeric_comparison_exp owner: String_comparison_exp - pastNames: _text_comparison_exp - pastProfileIds: _text_comparison_exp + pastNames: String_array_comparison_exp + pastProfileIds: String_array_comparison_exp profileId: String_comparison_exp status: Int_comparison_exp totalAmountReceived: numeric_comparison_exp @@ -4116,8 +4120,8 @@ input Project_stream_cursor_value_input { name: String nonce: numeric owner: String - pastNames: _text - pastProfileIds: _text + pastNames: [String!] + pastProfileIds: [String!] profileId: String status: Int totalAmountReceived: numeric @@ -5042,6 +5046,25 @@ input StemModule_stream_cursor_value_input { moduleTemplate_id: String } +""" +Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. +""" +input String_array_comparison_exp { + """is the array contained in the given array value""" + _contained_in: [String!] + """does the array contain the given value""" + _contains: [String!] + _eq: [String!] + _gt: [String!] + _gte: [String!] + _in: [[String!]!] + _is_null: Boolean + _lt: [String!] + _lte: [String!] + _neq: [String!] + _nin: [[String!]!] +} + """ Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. """ @@ -5370,40 +5393,6 @@ input Update_stream_cursor_value_input { timestamp: Int } -scalar _numeric - -""" -Boolean expression to compare columns of type "_numeric". All fields are combined with logical 'AND'. -""" -input _numeric_comparison_exp { - _eq: _numeric - _gt: _numeric - _gte: _numeric - _in: [_numeric!] - _is_null: Boolean - _lt: _numeric - _lte: _numeric - _neq: _numeric - _nin: [_numeric!] -} - -scalar _text - -""" -Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. -""" -input _text_comparison_exp { - _eq: _text - _gt: _text - _gte: _text - _in: [_text!] - _is_null: Boolean - _lt: _text - _lte: _text - _neq: _text - _nin: [_text!] -} - """ columns and relationships of "chain_metadata" """ @@ -6118,6 +6107,25 @@ input json_comparison_exp { scalar numeric +""" +Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. +""" +input numeric_array_comparison_exp { + """is the array contained in the given array value""" + _contained_in: [numeric!] + """does the array contain the given value""" + _contains: [numeric!] + _eq: [numeric!] + _gt: [numeric!] + _gte: [numeric!] + _in: [[numeric!]!] + _is_null: Boolean + _lt: [numeric!] + _lte: [numeric!] + _neq: [numeric!] + _nin: [[numeric!]!] +} + """ Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. """ diff --git a/src/.graphclient/sources/grant-ships/introspectionSchema.ts b/src/.graphclient/sources/grant-ships/introspectionSchema.ts index 1a7c4309..a14fe1cd 100644 --- a/src/.graphclient/sources/grant-ships/introspectionSchema.ts +++ b/src/.graphclient/sources/grant-ships/introspectionSchema.ts @@ -7689,10 +7689,16 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } } }, @@ -7926,7 +7932,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "_text_comparison_exp" + "value": "String_array_comparison_exp" } }, "directives": [] @@ -8413,10 +8419,16 @@ const schemaAST = { "value": "admins" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } }, "directives": [] @@ -19704,10 +19716,16 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } } }, @@ -19723,10 +19741,16 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } } }, @@ -20988,7 +21012,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "_text_comparison_exp" + "value": "String_array_comparison_exp" } }, "directives": [] @@ -21003,7 +21027,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "_text_comparison_exp" + "value": "String_array_comparison_exp" } }, "directives": [] @@ -21533,6 +21557,36 @@ const schemaAST = { }, "directives": [] }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "pastNames" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "order_by" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "pastProfileIds" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "order_by" + } + }, + "directives": [] + }, { "kind": "InputValueDefinition", "name": { @@ -21998,6 +22052,36 @@ const schemaAST = { }, "directives": [] }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "pastNames" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "order_by" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "pastProfileIds" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "order_by" + } + }, + "directives": [] + }, { "kind": "InputValueDefinition", "name": { @@ -24634,10 +24718,16 @@ const schemaAST = { "value": "pastNames" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } }, "directives": [] @@ -24649,10 +24739,16 @@ const schemaAST = { "value": "pastProfileIds" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } }, "directives": [] @@ -30761,10 +30857,16 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_numeric" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } } } }, @@ -31064,7 +31166,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "_numeric_comparison_exp" + "value": "numeric_array_comparison_exp" } }, "directives": [] @@ -31381,10 +31483,16 @@ const schemaAST = { "value": "hatIds" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_numeric" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } } }, "directives": [] @@ -37784,10 +37892,16 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } } }, @@ -37930,7 +38044,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "_text_comparison_exp" + "value": "String_array_comparison_exp" } }, "directives": [] @@ -38202,10 +38316,16 @@ const schemaAST = { "value": "addresses" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } }, "directives": [] @@ -38649,10 +38769,16 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } } }, @@ -38668,10 +38794,16 @@ const schemaAST = { "type": { "kind": "NonNullType", "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } } }, @@ -39012,7 +39144,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "_text_comparison_exp" + "value": "String_array_comparison_exp" } }, "directives": [] @@ -39027,7 +39159,7 @@ const schemaAST = { "kind": "NamedType", "name": { "kind": "Name", - "value": "_text_comparison_exp" + "value": "String_array_comparison_exp" } }, "directives": [] @@ -39802,10 +39934,16 @@ const schemaAST = { "value": "pastNames" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } }, "directives": [] @@ -39817,10 +39955,16 @@ const schemaAST = { "value": "pastProfileIds" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } }, "directives": [] @@ -47689,35 +47833,57 @@ const schemaAST = { }, "name": { "kind": "Name", - "value": "String_comparison_exp" + "value": "String_array_comparison_exp" }, "fields": [ { "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "is the array contained in the given array value", + "block": true + }, "name": { "kind": "Name", - "value": "_eq" + "value": "_contained_in" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } }, "directives": [] }, { "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "does the array contain the given value", + "block": true + }, "name": { "kind": "Name", - "value": "_gt" + "value": "_contains" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } }, "directives": [] @@ -47726,33 +47892,40 @@ const schemaAST = { "kind": "InputValueDefinition", "name": { "kind": "Name", - "value": "_gte" + "value": "_eq" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } }, "directives": [] }, { "kind": "InputValueDefinition", - "description": { - "kind": "StringValue", - "value": "does the column match the given case-insensitive pattern", - "block": true - }, "name": { "kind": "Name", - "value": "_ilike" + "value": "_gt" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } } }, "directives": [] @@ -47761,7 +47934,7 @@ const schemaAST = { "kind": "InputValueDefinition", "name": { "kind": "Name", - "value": "_in" + "value": "_gte" }, "type": { "kind": "ListType", @@ -47780,20 +47953,253 @@ const schemaAST = { }, { "kind": "InputValueDefinition", - "description": { - "kind": "StringValue", - "value": "does the column match the given POSIX regular expression, case insensitive", - "block": true - }, "name": { "kind": "Name", - "value": "_iregex" + "value": "_in" }, "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "String" + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_is_null" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Boolean" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_lt" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_lte" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_neq" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_nin" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + } + } + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "description": { + "kind": "StringValue", + "value": "Boolean expression to compare columns of type \"String\". All fields are combined with logical 'AND'.", + "block": true + }, + "name": { + "kind": "Name", + "value": "String_comparison_exp" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_eq" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "does the column match the given case-insensitive pattern", + "block": true + }, + "name": { + "kind": "Name", + "value": "_ilike" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "does the column match the given POSIX regular expression, case insensitive", + "block": true + }, + "name": { + "kind": "Name", + "value": "_iregex" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" } }, "directives": [] @@ -50740,346 +51146,6 @@ const schemaAST = { ], "directives": [] }, - { - "kind": "ScalarTypeDefinition", - "name": { - "kind": "Name", - "value": "_numeric" - }, - "directives": [] - }, - { - "kind": "InputObjectTypeDefinition", - "description": { - "kind": "StringValue", - "value": "Boolean expression to compare columns of type \"_numeric\". All fields are combined with logical 'AND'.", - "block": true - }, - "name": { - "kind": "Name", - "value": "_numeric_comparison_exp" - }, - "fields": [ - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_eq" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_numeric" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_gt" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_numeric" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_gte" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_numeric" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_in" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_numeric" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_is_null" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "Boolean" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_lt" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_numeric" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_lte" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_numeric" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_neq" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_numeric" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_nin" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_numeric" - } - } - } - }, - "directives": [] - } - ], - "directives": [] - }, - { - "kind": "ScalarTypeDefinition", - "name": { - "kind": "Name", - "value": "_text" - }, - "directives": [] - }, - { - "kind": "InputObjectTypeDefinition", - "description": { - "kind": "StringValue", - "value": "Boolean expression to compare columns of type \"_text\". All fields are combined with logical 'AND'.", - "block": true - }, - "name": { - "kind": "Name", - "value": "_text_comparison_exp" - }, - "fields": [ - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_eq" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_gt" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_gte" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_in" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" - } - } - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_is_null" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "Boolean" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_lt" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_lte" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_neq" - }, - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" - } - }, - "directives": [] - }, - { - "kind": "InputValueDefinition", - "name": { - "kind": "Name", - "value": "_nin" - }, - "type": { - "kind": "ListType", - "type": { - "kind": "NonNullType", - "type": { - "kind": "NamedType", - "name": { - "kind": "Name", - "value": "_text" - } - } - } - }, - "directives": [] - } - ], - "directives": [] - }, { "kind": "ObjectTypeDefinition", "description": { @@ -57847,6 +57913,268 @@ const schemaAST = { }, "directives": [] }, + { + "kind": "InputObjectTypeDefinition", + "description": { + "kind": "StringValue", + "value": "Boolean expression to compare columns of type \"numeric\". All fields are combined with logical 'AND'.", + "block": true + }, + "name": { + "kind": "Name", + "value": "numeric_array_comparison_exp" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "is the array contained in the given array value", + "block": true + }, + "name": { + "kind": "Name", + "value": "_contained_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "does the array contain the given value", + "block": true + }, + "name": { + "kind": "Name", + "value": "_contains" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_eq" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_gt" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_gte" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_is_null" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Boolean" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_lt" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_lte" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_neq" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "_nin" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "numeric" + } + } + } + } + } + }, + "directives": [] + } + ], + "directives": [] + }, { "kind": "InputObjectTypeDefinition", "description": { diff --git a/src/.graphclient/sources/grant-ships/schema.graphql b/src/.graphclient/sources/grant-ships/schema.graphql index 23d44e90..4e8f6393 100644 --- a/src/.graphclient/sources/grant-ships/schema.graphql +++ b/src/.graphclient/sources/grant-ships/schema.graphql @@ -866,7 +866,7 @@ columns and relationships of "FactoryEventsSummary" """ type FactoryEventsSummary { address: String! - admins: _text! + admins: [String!]! contestBuiltCount: numeric! contestCloneCount: numeric! contestTemplateCount: numeric! @@ -884,7 +884,7 @@ input FactoryEventsSummary_bool_exp { _not: FactoryEventsSummary_bool_exp _or: [FactoryEventsSummary_bool_exp!] address: String_comparison_exp - admins: _text_comparison_exp + admins: String_array_comparison_exp contestBuiltCount: numeric_comparison_exp contestCloneCount: numeric_comparison_exp contestTemplateCount: numeric_comparison_exp @@ -944,7 +944,7 @@ input FactoryEventsSummary_stream_cursor_input { """Initial value of the column from where the streaming should start""" input FactoryEventsSummary_stream_cursor_value_input { address: String - admins: _text + admins: [String!] contestBuiltCount: numeric contestCloneCount: numeric contestTemplateCount: numeric @@ -2091,8 +2091,8 @@ type GrantShip { name: String! nonce: numeric! owner: String! - pastNames: _text! - pastProfileIds: _text! + pastNames: [String!]! + pastProfileIds: [String!]! poolActive: Boolean poolFunded: Boolean! poolId: numeric @@ -2188,8 +2188,8 @@ input GrantShip_bool_exp { name: String_comparison_exp nonce: numeric_comparison_exp owner: String_comparison_exp - pastNames: _text_comparison_exp - pastProfileIds: _text_comparison_exp + pastNames: String_array_comparison_exp + pastProfileIds: String_array_comparison_exp poolActive: Boolean_comparison_exp poolFunded: Boolean_comparison_exp poolId: numeric_comparison_exp @@ -2230,6 +2230,8 @@ input GrantShip_max_order_by { name: order_by nonce: order_by owner: order_by + pastNames: order_by + pastProfileIds: order_by poolId: order_by profileId: order_by profileMetadata_id: order_by @@ -2266,6 +2268,8 @@ input GrantShip_min_order_by { name: order_by nonce: order_by owner: order_by + pastNames: order_by + pastProfileIds: order_by poolId: order_by profileId: order_by profileMetadata_id: order_by @@ -2521,8 +2525,8 @@ input GrantShip_stream_cursor_value_input { name: String nonce: numeric owner: String - pastNames: _text - pastProfileIds: _text + pastNames: [String!] + pastProfileIds: [String!] poolActive: Boolean poolFunded: Boolean poolId: numeric @@ -3130,7 +3134,7 @@ type HatsPoster { """filter the rows returned""" where: EventPost_bool_exp ): [EventPost!]! - hatIds: _numeric! + hatIds: [numeric!]! hatsAddress: String! id: String! """An array relationship""" @@ -3157,7 +3161,7 @@ input HatsPoster_bool_exp { _or: [HatsPoster_bool_exp!] db_write_timestamp: timestamp_comparison_exp eventPosts: EventPost_bool_exp - hatIds: _numeric_comparison_exp + hatIds: numeric_array_comparison_exp hatsAddress: String_comparison_exp id: String_comparison_exp record: Record_bool_exp @@ -3200,7 +3204,7 @@ input HatsPoster_stream_cursor_input { """Initial value of the column from where the streaming should start""" input HatsPoster_stream_cursor_value_input { db_write_timestamp: timestamp - hatIds: _numeric + hatIds: [numeric!] hatsAddress: String id: String } @@ -3912,7 +3916,7 @@ input ProfileIdToAnchor_stream_cursor_value_input { columns and relationships of "ProfileMemberGroup" """ type ProfileMemberGroup { - addresses: _text! + addresses: [String!]! db_write_timestamp: timestamp id: String! role: String! @@ -3925,7 +3929,7 @@ input ProfileMemberGroup_bool_exp { _and: [ProfileMemberGroup_bool_exp!] _not: ProfileMemberGroup_bool_exp _or: [ProfileMemberGroup_bool_exp!] - addresses: _text_comparison_exp + addresses: String_array_comparison_exp db_write_timestamp: timestamp_comparison_exp id: String_comparison_exp role: String_comparison_exp @@ -3965,7 +3969,7 @@ input ProfileMemberGroup_stream_cursor_input { """Initial value of the column from where the streaming should start""" input ProfileMemberGroup_stream_cursor_value_input { - addresses: _text + addresses: [String!] db_write_timestamp: timestamp id: String role: String @@ -4002,8 +4006,8 @@ type Project { name: String! nonce: numeric! owner: String! - pastNames: _text! - pastProfileIds: _text! + pastNames: [String!]! + pastProfileIds: [String!]! profileId: String! status: Int! totalAmountReceived: numeric! @@ -4029,8 +4033,8 @@ input Project_bool_exp { name: String_comparison_exp nonce: numeric_comparison_exp owner: String_comparison_exp - pastNames: _text_comparison_exp - pastProfileIds: _text_comparison_exp + pastNames: String_array_comparison_exp + pastProfileIds: String_array_comparison_exp profileId: String_comparison_exp status: Int_comparison_exp totalAmountReceived: numeric_comparison_exp @@ -4116,8 +4120,8 @@ input Project_stream_cursor_value_input { name: String nonce: numeric owner: String - pastNames: _text - pastProfileIds: _text + pastNames: [String!] + pastProfileIds: [String!] profileId: String status: Int totalAmountReceived: numeric @@ -5042,6 +5046,25 @@ input StemModule_stream_cursor_value_input { moduleTemplate_id: String } +""" +Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. +""" +input String_array_comparison_exp { + """is the array contained in the given array value""" + _contained_in: [String!] + """does the array contain the given value""" + _contains: [String!] + _eq: [String!] + _gt: [String!] + _gte: [String!] + _in: [[String!]!] + _is_null: Boolean + _lt: [String!] + _lte: [String!] + _neq: [String!] + _nin: [[String!]!] +} + """ Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. """ @@ -5370,40 +5393,6 @@ input Update_stream_cursor_value_input { timestamp: Int } -scalar _numeric - -""" -Boolean expression to compare columns of type "_numeric". All fields are combined with logical 'AND'. -""" -input _numeric_comparison_exp { - _eq: _numeric - _gt: _numeric - _gte: _numeric - _in: [_numeric!] - _is_null: Boolean - _lt: _numeric - _lte: _numeric - _neq: _numeric - _nin: [_numeric!] -} - -scalar _text - -""" -Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. -""" -input _text_comparison_exp { - _eq: _text - _gt: _text - _gte: _text - _in: [_text!] - _is_null: Boolean - _lt: _text - _lte: _text - _neq: _text - _nin: [_text!] -} - """ columns and relationships of "chain_metadata" """ @@ -6118,6 +6107,25 @@ input json_comparison_exp { scalar numeric +""" +Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. +""" +input numeric_array_comparison_exp { + """is the array contained in the given array value""" + _contained_in: [numeric!] + """does the array contain the given value""" + _contains: [numeric!] + _eq: [numeric!] + _gt: [numeric!] + _gte: [numeric!] + _in: [[numeric!]!] + _is_null: Boolean + _lt: [numeric!] + _lte: [numeric!] + _neq: [numeric!] + _nin: [[numeric!]!] +} + """ Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. """ diff --git a/src/.graphclient/sources/grant-ships/types.ts b/src/.graphclient/sources/grant-ships/types.ts index e971acfb..bd6ae929 100644 --- a/src/.graphclient/sources/grant-ships/types.ts +++ b/src/.graphclient/sources/grant-ships/types.ts @@ -16,8 +16,6 @@ export type Scalars = { Boolean: boolean; Int: number; Float: number; - _numeric: any; - _text: any; contract_type: any; entity_type: any; event_type: any; @@ -771,7 +769,7 @@ export type EventPost_variance_order_by = { /** columns and relationships of "FactoryEventsSummary" */ export type FactoryEventsSummary = { address: Scalars['String']; - admins: Scalars['_text']; + admins: Array; contestBuiltCount: Scalars['numeric']; contestCloneCount: Scalars['numeric']; contestTemplateCount: Scalars['numeric']; @@ -787,7 +785,7 @@ export type FactoryEventsSummary_bool_exp = { _not?: InputMaybe; _or?: InputMaybe>; address?: InputMaybe; - admins?: InputMaybe<_text_comparison_exp>; + admins?: InputMaybe; contestBuiltCount?: InputMaybe; contestCloneCount?: InputMaybe; contestTemplateCount?: InputMaybe; @@ -842,7 +840,7 @@ export type FactoryEventsSummary_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type FactoryEventsSummary_stream_cursor_value_input = { address?: InputMaybe; - admins?: InputMaybe; + admins?: InputMaybe>; contestBuiltCount?: InputMaybe; contestCloneCount?: InputMaybe; contestTemplateCount?: InputMaybe; @@ -1866,8 +1864,8 @@ export type GrantShip = { name: Scalars['String']; nonce: Scalars['numeric']; owner: Scalars['String']; - pastNames: Scalars['_text']; - pastProfileIds: Scalars['_text']; + pastNames: Array; + pastProfileIds: Array; poolActive?: Maybe; poolFunded: Scalars['Boolean']; poolId?: Maybe; @@ -1967,8 +1965,8 @@ export type GrantShip_bool_exp = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe<_text_comparison_exp>; - pastProfileIds?: InputMaybe<_text_comparison_exp>; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; poolActive?: InputMaybe; poolFunded?: InputMaybe; poolId?: InputMaybe; @@ -2007,6 +2005,8 @@ export type GrantShip_max_order_by = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; poolId?: InputMaybe; profileId?: InputMaybe; profileMetadata_id?: InputMaybe; @@ -2041,6 +2041,8 @@ export type GrantShip_min_order_by = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; poolId?: InputMaybe; profileId?: InputMaybe; profileMetadata_id?: InputMaybe; @@ -2285,8 +2287,8 @@ export type GrantShip_stream_cursor_value_input = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; + pastNames?: InputMaybe>; + pastProfileIds?: InputMaybe>; poolActive?: InputMaybe; poolFunded?: InputMaybe; poolId?: InputMaybe; @@ -2824,7 +2826,7 @@ export type HatsPoster = { db_write_timestamp?: Maybe; /** An array relationship */ eventPosts: Array; - hatIds: Scalars['_numeric']; + hatIds: Array; hatsAddress: Scalars['String']; id: Scalars['String']; /** An array relationship */ @@ -2858,7 +2860,7 @@ export type HatsPoster_bool_exp = { _or?: InputMaybe>; db_write_timestamp?: InputMaybe; eventPosts?: InputMaybe; - hatIds?: InputMaybe<_numeric_comparison_exp>; + hatIds?: InputMaybe; hatsAddress?: InputMaybe; id?: InputMaybe; record?: InputMaybe; @@ -2896,7 +2898,7 @@ export type HatsPoster_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type HatsPoster_stream_cursor_value_input = { db_write_timestamp?: InputMaybe; - hatIds?: InputMaybe; + hatIds?: InputMaybe>; hatsAddress?: InputMaybe; id?: InputMaybe; }; @@ -3514,7 +3516,7 @@ export type ProfileIdToAnchor_stream_cursor_value_input = { /** columns and relationships of "ProfileMemberGroup" */ export type ProfileMemberGroup = { - addresses: Scalars['_text']; + addresses: Array; db_write_timestamp?: Maybe; id: Scalars['String']; role: Scalars['String']; @@ -3525,7 +3527,7 @@ export type ProfileMemberGroup_bool_exp = { _and?: InputMaybe>; _not?: InputMaybe; _or?: InputMaybe>; - addresses?: InputMaybe<_text_comparison_exp>; + addresses?: InputMaybe; db_write_timestamp?: InputMaybe; id?: InputMaybe; role?: InputMaybe; @@ -3560,7 +3562,7 @@ export type ProfileMemberGroup_stream_cursor_input = { /** Initial value of the column from where the streaming should start */ export type ProfileMemberGroup_stream_cursor_value_input = { - addresses?: InputMaybe; + addresses?: InputMaybe>; db_write_timestamp?: InputMaybe; id?: InputMaybe; role?: InputMaybe; @@ -3584,8 +3586,8 @@ export type Project = { name: Scalars['String']; nonce: Scalars['numeric']; owner: Scalars['String']; - pastNames: Scalars['_text']; - pastProfileIds: Scalars['_text']; + pastNames: Array; + pastProfileIds: Array; profileId: Scalars['String']; status: Scalars['Int']; totalAmountReceived: Scalars['numeric']; @@ -3619,8 +3621,8 @@ export type Project_bool_exp = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe<_text_comparison_exp>; - pastProfileIds?: InputMaybe<_text_comparison_exp>; + pastNames?: InputMaybe; + pastProfileIds?: InputMaybe; profileId?: InputMaybe; status?: InputMaybe; totalAmountReceived?: InputMaybe; @@ -3701,8 +3703,8 @@ export type Project_stream_cursor_value_input = { name?: InputMaybe; nonce?: InputMaybe; owner?: InputMaybe; - pastNames?: InputMaybe; - pastProfileIds?: InputMaybe; + pastNames?: InputMaybe>; + pastProfileIds?: InputMaybe>; profileId?: InputMaybe; status?: InputMaybe; totalAmountReceived?: InputMaybe; @@ -4497,6 +4499,23 @@ export type StemModule_stream_cursor_value_input = { moduleTemplate_id?: InputMaybe; }; +/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ +export type String_array_comparison_exp = { + /** is the array contained in the given array value */ + _contained_in?: InputMaybe>; + /** does the array contain the given value */ + _contains?: InputMaybe>; + _eq?: InputMaybe>; + _gt?: InputMaybe>; + _gte?: InputMaybe>; + _in?: InputMaybe>>; + _is_null?: InputMaybe; + _lt?: InputMaybe>; + _lte?: InputMaybe>; + _neq?: InputMaybe>; + _nin?: InputMaybe>>; +}; + /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ export type String_comparison_exp = { _eq?: InputMaybe; @@ -4788,32 +4807,6 @@ export type Update_stream_cursor_value_input = { timestamp?: InputMaybe; }; -/** Boolean expression to compare columns of type "_numeric". All fields are combined with logical 'AND'. */ -export type _numeric_comparison_exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - -/** Boolean expression to compare columns of type "_text". All fields are combined with logical 'AND'. */ -export type _text_comparison_exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; -}; - /** columns and relationships of "chain_metadata" */ export type chain_metadata = { block_height: Scalars['Int']; @@ -5451,6 +5444,23 @@ export type json_comparison_exp = { _nin?: InputMaybe>; }; +/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ +export type numeric_array_comparison_exp = { + /** is the array contained in the given array value */ + _contained_in?: InputMaybe>; + /** does the array contain the given value */ + _contains?: InputMaybe>; + _eq?: InputMaybe>; + _gt?: InputMaybe>; + _gte?: InputMaybe>; + _in?: InputMaybe>>; + _is_null?: InputMaybe; + _lt?: InputMaybe>; + _lte?: InputMaybe>; + _neq?: InputMaybe>; + _nin?: InputMaybe>>; +}; + /** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */ export type numeric_comparison_exp = { _eq?: InputMaybe;