From d72741d04db7f3c7c490f35f7ebb78f663272c8a Mon Sep 17 00:00:00 2001 From: Joshua McMichael Date: Thu, 1 Aug 2024 15:06:06 -0500 Subject: [PATCH] apollo client codegen updates --- .../src/app/generated/civic.apollo-helpers.ts | 17 +- client/src/app/generated/civic.apollo.ts | 147 +++++++++--------- 2 files changed, 79 insertions(+), 85 deletions(-) diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index ee89027c4..102800a4c 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -373,33 +373,32 @@ export type BrowseTherapyEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type BrowseUserKeySpecifier = ('acceptedLicense' | 'areaOfExpertise' | 'bio' | 'countryId' | 'createdAt' | 'deleted' | 'deletedAt' | 'displayName' | 'email' | 'evidenceCount' | 'facebookProfile' | 'id' | 'lastSeenAt' | 'linkedinProfile' | 'mostRecentActivityTimestamp' | 'mostRecentOrganizationId' | 'name' | 'orcid' | 'organizations' | 'profileImagePath' | 'revisionCount' | 'role' | 'signupComplete' | 'twitterHandle' | 'updatedAt' | 'url' | 'username' | BrowseUserKeySpecifier)[]; +export type BrowseUserKeySpecifier = ('areaOfExpertise' | 'bio' | 'country' | 'displayName' | 'email' | 'events' | 'evidenceCount' | 'facebookProfile' | 'id' | 'linkedinProfile' | 'mostRecentActivityTimestamp' | 'mostRecentConflictOfInterestStatement' | 'mostRecentEvent' | 'mostRecentOrganizationId' | 'name' | 'notifications' | 'orcid' | 'organizations' | 'profileImagePath' | 'ranks' | 'revisionCount' | 'role' | 'statsHash' | 'twitterHandle' | 'url' | 'username' | BrowseUserKeySpecifier)[]; export type BrowseUserFieldPolicy = { - acceptedLicense?: FieldPolicy | FieldReadFunction, areaOfExpertise?: FieldPolicy | FieldReadFunction, bio?: FieldPolicy | FieldReadFunction, - countryId?: FieldPolicy | FieldReadFunction, - createdAt?: FieldPolicy | FieldReadFunction, - deleted?: FieldPolicy | FieldReadFunction, - deletedAt?: FieldPolicy | FieldReadFunction, + country?: FieldPolicy | FieldReadFunction, displayName?: FieldPolicy | FieldReadFunction, email?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, evidenceCount?: FieldPolicy | FieldReadFunction, facebookProfile?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, - lastSeenAt?: FieldPolicy | FieldReadFunction, linkedinProfile?: FieldPolicy | FieldReadFunction, mostRecentActivityTimestamp?: FieldPolicy | FieldReadFunction, + mostRecentConflictOfInterestStatement?: FieldPolicy | FieldReadFunction, + mostRecentEvent?: FieldPolicy | FieldReadFunction, mostRecentOrganizationId?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + notifications?: FieldPolicy | FieldReadFunction, orcid?: FieldPolicy | FieldReadFunction, organizations?: FieldPolicy | FieldReadFunction, profileImagePath?: FieldPolicy | FieldReadFunction, + ranks?: FieldPolicy | FieldReadFunction, revisionCount?: FieldPolicy | FieldReadFunction, role?: FieldPolicy | FieldReadFunction, - signupComplete?: FieldPolicy | FieldReadFunction, + statsHash?: FieldPolicy | FieldReadFunction, twitterHandle?: FieldPolicy | FieldReadFunction, - updatedAt?: FieldPolicy | FieldReadFunction, url?: FieldPolicy | FieldReadFunction, username?: FieldPolicy | FieldReadFunction }; diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index f22769d69..e64789d90 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -684,17 +684,17 @@ export type BrowseMolecularProfileEdge = { export type BrowseOrganization = { __typename: 'BrowseOrganization'; - activityCount: Scalars['Int']; + activityCount: Scalars['Int']['output']; childOrganizations: Array; - createdAt?: Maybe; - description: Scalars['String']; - id: Scalars['Int']; - memberCount: Scalars['Int']; - mostRecentActivityTimestamp?: Maybe; - name: Scalars['String']; - parentId?: Maybe; - updatedAt?: Maybe; - url: Scalars['String']; + createdAt?: Maybe; + description: Scalars['String']['output']; + id: Scalars['Int']['output']; + memberCount: Scalars['Int']['output']; + mostRecentActivityTimestamp?: Maybe; + name: Scalars['String']['output']; + parentId?: Maybe; + updatedAt?: Maybe; + url: Scalars['String']['output']; }; /** The connection type for BrowseOrganization. */ @@ -703,24 +703,24 @@ export type BrowseOrganizationConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseOrganizationEdge = { __typename: 'BrowseOrganizationEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -855,38 +855,58 @@ export type BrowseTherapyEdge = { export type BrowseUser = { __typename: 'BrowseUser'; - acceptedLicense?: Maybe; - areaOfExpertise?: Maybe; - bio?: Maybe; - countryId?: Maybe; - createdAt?: Maybe; - deleted?: Maybe; - deletedAt?: Maybe; - displayName: Scalars['String']; - email?: Maybe; - evidenceCount: Scalars['Int']; - facebookProfile?: Maybe; - id: Scalars['Int']; - lastSeenAt?: Maybe; - linkedinProfile?: Maybe; - mostRecentActivityTimestamp?: Maybe; - mostRecentOrganizationId?: Maybe; - name?: Maybe; - orcid?: Maybe; + areaOfExpertise?: Maybe; + bio?: Maybe; + country?: Maybe; + displayName: Scalars['String']['output']; + email?: Maybe; + events: EventConnection; + evidenceCount: Scalars['Int']['output']; + facebookProfile?: Maybe; + id: Scalars['Int']['output']; + linkedinProfile?: Maybe; + mostRecentActivityTimestamp?: Maybe; + mostRecentConflictOfInterestStatement?: Maybe; + mostRecentEvent?: Maybe; + mostRecentOrganizationId?: Maybe; + name?: Maybe; + /** Filterable list of notifications for the logged in user. */ + notifications?: Maybe; + orcid?: Maybe; organizations: Array; - profileImagePath?: Maybe; - revisionCount: Scalars['Int']; - role: Scalars['String']; - signupComplete?: Maybe; - twitterHandle?: Maybe; - updatedAt?: Maybe; - url?: Maybe; - username?: Maybe; + profileImagePath?: Maybe; + ranks: Ranks; + revisionCount: Scalars['Int']['output']; + role: UserRole; + statsHash: Stats; + twitterHandle?: Maybe; + url?: Maybe; + username: Scalars['String']['output']; +}; + + +export type BrowseUserEventsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + + +export type BrowseUserNotificationsArgs = { + after?: InputMaybe; + before?: InputMaybe; + eventType?: InputMaybe; + first?: InputMaybe; + includeSeen?: InputMaybe; + last?: InputMaybe; + notificationType?: InputMaybe; + subscriptionId?: InputMaybe; }; export type BrowseUserProfileImagePathArgs = { - size?: InputMaybe; + size?: InputMaybe; }; /** The connection type for BrowseUser. */ @@ -895,24 +915,24 @@ export type BrowseUserConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseUserEdge = { __typename: 'BrowseUserEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -4117,31 +4137,6 @@ export type OrganizationProfileImagePathArgs = { size?: InputMaybe; }; - -/** The connection type for Organization. */ -export type OrganizationConnection = { - __typename: 'OrganizationConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']['output']; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type OrganizationEdge = { - __typename: 'OrganizationEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - /** Filter on organization id and whether or not to include the organization's subgroups */ export type OrganizationFilter = { /** The organization ID. */ @@ -7681,9 +7676,9 @@ export type UsersBrowseQueryVariables = Exact<{ }>; -export type UsersBrowseQuery = { __typename: 'Query', users: { __typename: 'BrowseUserConnection', totalCount: number, pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'BrowseUserEdge', cursor: string, node?: { __typename: 'BrowseUser', id: number, name?: string | undefined, displayName: string, username?: string | undefined, role: string, evidenceCount: number, revisionCount: number, profileImagePath?: string | undefined, mostRecentActivityTimestamp?: any | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }> } | undefined }> } }; +export type UsersBrowseQuery = { __typename: 'Query', users: { __typename: 'BrowseUserConnection', totalCount: number, pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'BrowseUserEdge', cursor: string, node?: { __typename: 'BrowseUser', id: number, name?: string | undefined, displayName: string, username: string, role: UserRole, evidenceCount: number, revisionCount: number, profileImagePath?: string | undefined, mostRecentActivityTimestamp?: any | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }> } | undefined }> } }; -export type UserBrowseTableRowFieldsFragment = { __typename: 'BrowseUser', id: number, name?: string | undefined, displayName: string, username?: string | undefined, role: string, evidenceCount: number, revisionCount: number, profileImagePath?: string | undefined, mostRecentActivityTimestamp?: any | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }> }; +export type UserBrowseTableRowFieldsFragment = { __typename: 'BrowseUser', id: number, name?: string | undefined, displayName: string, username: string, role: UserRole, evidenceCount: number, revisionCount: number, profileImagePath?: string | undefined, mostRecentActivityTimestamp?: any | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }> }; export type VariantGroupPopoverQueryVariables = Exact<{ variantGroupId: Scalars['Int']['input']; @@ -8679,9 +8674,9 @@ export type OrganizationMembersQueryVariables = Exact<{ }>; -export type OrganizationMembersQuery = { __typename: 'Query', users: { __typename: 'BrowseUserConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined, endCursor?: string | undefined }, edges: Array<{ __typename: 'BrowseUserEdge', cursor: string, node?: { __typename: 'BrowseUser', id: number, name?: string | undefined, displayName: string, username?: string | undefined, profileImagePath?: string | undefined, role: string, url?: string | undefined, areaOfExpertise?: string | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, url: string }> } | undefined }> } }; +export type OrganizationMembersQuery = { __typename: 'Query', users: { __typename: 'BrowseUserConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined, endCursor?: string | undefined }, edges: Array<{ __typename: 'BrowseUserEdge', cursor: string, node?: { __typename: 'BrowseUser', id: number, name?: string | undefined, displayName: string, username: string, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, url: string }> } | undefined }> } }; -export type OrganizationMembersFieldsFragment = { __typename: 'BrowseUser', id: number, name?: string | undefined, displayName: string, username?: string | undefined, profileImagePath?: string | undefined, role: string, url?: string | undefined, areaOfExpertise?: string | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, url: string }> }; +export type OrganizationMembersFieldsFragment = { __typename: 'BrowseUser', id: number, name?: string | undefined, displayName: string, username: string, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, url: string }> }; export type PhenotypeDetailQueryVariables = Exact<{ phenotypeId: Scalars['Int']['input'];