From 0cc772bc0de3dad421fe0303838d2e29583d8c25 Mon Sep 17 00:00:00 2001 From: cheikhgwane Date: Tue, 24 Jan 2023 09:31:20 +0000 Subject: [PATCH] fix(Team) : update graphql schema --- schema.graphql | 514 +++++++++++++++++++- src/features/TeamMembersTable.tsx | 2 +- src/libs/graphql.ts | 762 +++++++++++++++++++++++++++--- src/pages/teams/[teamId].tsx | 2 +- 4 files changed, 1197 insertions(+), 83 deletions(-) diff --git a/schema.graphql b/schema.graphql index 93a7333..54968ba 100644 --- a/schema.graphql +++ b/schema.graphql @@ -1,3 +1,5 @@ +directive @loginRequired(withoutTwoFactor: Boolean) on FIELD_DEFINITION + """Exposes a URL that specifies the behaviour of this scalar.""" directive @specifiedBy( """The URL that specifies the behaviour of this scalar.""" @@ -319,6 +321,31 @@ type AccessmodZonalStatistics implements AccessmodAnalysis & AccessmodOwnership zonalStatisticsGeo: AccessmodFileset } +type Activity { + description: String! + occurredAt: DateTime! + url: URL! + status: ActivityStatus! +} + +enum ActivityStatus { + SUCCESS + PENDING + RUNNING + ERROR + UNKNOWN +} + +input AddPipelineOutputInput { + output_type: String! + output_uri: String! +} + +type AddPipelineOutputResult { + success: Boolean! + errors: [PipelineError!]! +} + enum ApproveAccessmodAccessRequestError { INVALID } @@ -338,7 +365,7 @@ type Avatar { } type CatalogEntry { - id: String! + id: UUID! name: String! description: String countries: [Country!]! @@ -356,7 +383,7 @@ type CatalogEntry { } type CatalogEntryType { - id: String! + id: UUID! app: String! model: String! name: String! @@ -586,7 +613,7 @@ enum CreateMembershipError { input CreateMembershipInput { userEmail: String! - teamId: String! + teamId: UUID! role: MembershipRole! } @@ -596,6 +623,18 @@ type CreateMembershipResult { errors: [CreateMembershipError!]! } +input CreatePipelineInput { + name: String! + entrypoint: String! + parameters: JSON! +} + +type CreatePipelineResult { + success: Boolean! + errors: [PipelineError!]! + pipeline: Pipeline +} + enum CreateTeamError { PERMISSION_DENIED NAME_DUPLICATE @@ -611,8 +650,24 @@ type CreateTeamResult { errors: [CreateTeamError!]! } +enum CreateWorkspaceError { + PERMISSION_DENIED +} + +input CreateWorkspaceInput { + name: String! + description: String + countries: [CountryInput!] +} + +type CreateWorkspaceResult { + success: Boolean! + errors: [CreateWorkspaceError!]! + workspace: Workspace +} + type DAG { - id: String! + id: UUID! label: String! tags: [Tag!]! formCode: String @@ -634,7 +689,7 @@ type DAGPage { } type DAGRun { - id: String! + id: UUID! label: String externalId: String externalUrl: URL @@ -694,7 +749,7 @@ type DAGTemplate { } type Datasource { - id: String! + id: UUID! name: String! } @@ -793,7 +848,7 @@ enum DeleteMembershipError { } input DeleteMembershipInput { - id: String! + id: UUID! } type DeleteMembershipResult { @@ -801,13 +856,22 @@ type DeleteMembershipResult { errors: [DeleteMembershipError!]! } +input DeletePipelineInput { + id: UUID! +} + +type DeletePipelineResult { + success: Boolean! + errors: [PipelineError!]! +} + enum DeleteTeamError { NOT_FOUND PERMISSION_DENIED } input DeleteTeamInput { - id: String! + id: UUID! } type DeleteTeamResult { @@ -815,6 +879,34 @@ type DeleteTeamResult { errors: [DeleteTeamError!]! } +enum DeleteWorkspaceError { + PERMISSION_DENIED + NOT_FOUND +} + +input DeleteWorkspaceInput { + id: String! +} + +enum DeleteWorkspaceMemberError { + MEMBERSHIP_NOT_FOUND + PERMISSION_DENIED +} + +input DeleteWorkspaceMemberInput { + membershipId: UUID! +} + +type DeleteWorkspaceMemberResult { + success: Boolean! + errors: [DeleteWorkspaceMemberError!]! +} + +type DeleteWorkspaceResult { + success: Boolean! + errors: [DeleteWorkspaceError!]! +} + enum DenyAccessmodAccessRequestError { INVALID } @@ -850,11 +942,87 @@ type DHIS2Instance { url: String } +enum DisableTwoFactorError { + INVALID_OTP + NOT_ENABLED +} + +input DisableTwoFactorInput { + token: String! +} + +type DisableTwoFactorResult { + success: Boolean! + errors: [DisableTwoFactorError!] +} + +enum EnableTwoFactorError { + ALREADY_ENABLED + EMAIL_MISMATCH +} + +input EnableTwoFactorInput { + email: String +} + +type EnableTwoFactorResult { + success: Boolean! + errors: [EnableTwoFactorError!] +} + +type ExternalDashboard { + id: UUID! + name: String! + url: URL! + pictureUrl: URL! + createdAt: DateTime! + updatedAt: DateTime! + description: String + countries: [Country!]! + tags: [Tag!]! +} + +type ExternalDashboardPage { + items: [ExternalDashboard!]! + pageNumber: Int! + totalPages: Int! + totalItems: Int! +} + type FeatureFlag { code: String! config: JSON! } +enum GenerateChallengeError { + DEVICE_NOT_FOUND + CHALLENGE_ERROR +} + +type GenerateChallengeResult { + success: Boolean! + errors: [GenerateChallengeError!] +} + +input InviteWorkspaceMemberInput { + workspaceId: UUID! + userEmail: String! + role: WorkspaceMembershipRole! +} + +type InviteWorkspaceMemberResult { + success: Boolean! + errors: [InviteWorkspaceMembershipError!]! + workspaceMembership: WorkspaceMembership +} + +enum InviteWorkspaceMembershipError { + ALREADY_EXISTS + PERMISSION_DENIED + USER_NOT_FOUND + WORKSPACE_NOT_FOUND +} + scalar JSON enum LaunchAccessmodAnalysisError { @@ -871,25 +1039,43 @@ type LaunchAccessmodAnalysisResult { errors: [LaunchAccessmodAnalysisError!]! } +enum LoginError { + OTP_REQUIRED + INVALID_CREDENTIALS + INVALID_OTP +} + input LoginInput { email: String! password: String! + token: String } type LoginResult { success: Boolean! - me: Me + errors: [LoginError!] } type LogoutResult { success: Boolean! } +input LogPipelineMessageInput { + priority: MessagePriority! + message: String! +} + +type LogPipelineMessageResult { + success: Boolean! + errors: [PipelineError!]! +} + type Me { user: User features: [FeatureFlag!]! authorizedActions: [MeAuthorizedActions!]! @deprecated(reason: "authorizedActions is deprecated. Use permissions instead.") permissions: MePermissions! + hasTwoFactorEnabled: Boolean! } enum MeAuthorizedActions { @@ -901,7 +1087,7 @@ enum MeAuthorizedActions { } type Membership { - id: String! + id: UUID! user: User! team: Team! authorizedActions: [MembershipAuthorizedActions!]! @deprecated(reason: "authorizedActions is deprecated. Use permissions instead.") @@ -940,6 +1126,15 @@ type MePermissions { createCollection: Boolean! createAccessmodProject: Boolean! manageAccessmodAccessRequests: Boolean! + createWorkspace: Boolean! +} + +enum MessagePriority { + DEBUG + INFO + WARNING + ERROR + CRITICAL } scalar MovingSpeeds @@ -949,6 +1144,10 @@ type Mutation { logout: LogoutResult! resetPassword(input: ResetPasswordInput!): ResetPasswordResult! setPassword(input: SetPasswordInput!): SetPasswordResult! + verifyToken(input: VerifyTokenInput!): VerifyTokenResult! + generateChallenge: GenerateChallengeResult! + enableTwoFactor(input: EnableTwoFactorInput): EnableTwoFactorResult! + disableTwoFactor(input: DisableTwoFactorInput): DisableTwoFactorResult! createTeam(input: CreateTeamInput!): CreateTeamResult! updateTeam(input: UpdateTeamInput!): UpdateTeamResult! deleteTeam(input: DeleteTeamInput!): DeleteTeamResult! @@ -986,10 +1185,25 @@ type Mutation { requestAccessmodAccess(input: RequestAccessmodAccessInput!): RequestAccessmodAccessInputResult! approveAccessmodAccessRequest(input: ApproveAccessmodAccessRequestInput!): ApproveAccessmodAccessRequestResult! denyAccessmodAccessRequest(input: DenyAccessmodAccessRequestInput!): DenyAccessmodAccessRequestResult! + updateExternalDashboard(input: UpdateExternalDashboardInput!): UpdateExternalDashboardResult! + createPipeline(input: CreatePipelineInput): CreatePipelineResult! + deletePipeline(input: DeletePipelineInput): DeletePipelineResult! + runPipeline(input: RunPipelineInput): RunPipelineResult! + pipelineToken(input: PipelineTokenInput): PipelineTokenResult! + uploadPipeline(input: UploadPipelineInput): UploadPipelineResult! + logPipelineMessage(input: LogPipelineMessageInput): LogPipelineMessageResult! + updatePipelineProgress(input: UpdatePipelineProgressInput): UpdatePipelineProgressResult! + addPipelineOutput(input: AddPipelineOutputInput): AddPipelineOutputResult! + createWorkspace(input: CreateWorkspaceInput!): CreateWorkspaceResult! + updateWorkspace(input: UpdateWorkspaceInput!): UpdateWorkspaceResult! + deleteWorkspace(input: DeleteWorkspaceInput!): DeleteWorkspaceResult! + inviteWorkspaceMember(input: InviteWorkspaceMemberInput!): InviteWorkspaceMemberResult! + updateWorkspaceMember(input: UpdateWorkspaceMemberInput!): UpdateWorkspaceMemberResult! + deleteWorkspaceMember(input: DeleteWorkspaceMemberInput!): DeleteWorkspaceMemberResult! } type Organization { - id: String! + id: UUID! name: String! type: String! url: String! @@ -997,7 +1211,7 @@ type Organization { } input OrganizationInput { - id: String! + id: UUID! name: String type: String url: String @@ -1010,6 +1224,102 @@ enum PermissionMode { VIEWER } +type Pipeline { + id: UUID! + name: String! + entrypoint: String! + parameters: JSON! + config: String! + schedule: String + user: User + runs(page: Int, perPage: Int, orderBy: PipelineRunOrderBy): PipelineRunPage! +} + +enum PipelineError { + PIPELINE_NOT_FOUND + PIPELINE_VERSION_NOT_FOUND + INVALID_CONFIG + PIPELINE_ALREADY_COMPLETED +} + +type PipelineRun { + id: UUID! + run_id: UUID! + user: User + pipeline: Pipeline! + version: PipelineVersion! + config: String! + status: PipelineRunStatus! + executionDate: DateTime + duration: Int + progress: Int! + triggerMode: PipelineRunTrigger + messages: [PipelineRunMessage!]! + logs: String + outputs: [PipelineRunOutput!]! + code: String! +} + +type PipelineRunMessage { + message: String! + priority: MessagePriority! + timestamp: DateTime +} + +enum PipelineRunOrderBy { + EXECUTION_DATE_DESC + EXECUTION_DATE_ASC +} + +type PipelineRunOutput { + title: String! + uri: String! +} + +type PipelineRunPage { + items: [PipelineRun!]! + pageNumber: Int! + totalPages: Int! + totalItems: Int! +} + +enum PipelineRunStatus { + success + running + failed + queued +} + +enum PipelineRunTrigger { + SCHEDULED + MANUAL +} + +type PipelinesPage { + items: [Pipeline!]! + pageNumber: Int! + totalPages: Int! + totalItems: Int! +} + +input PipelineTokenInput { + name: String! +} + +type PipelineTokenResult { + success: Boolean! + errors: [PipelineError!]! + token: String +} + +type PipelineVersion { + id: UUID! + user: User + pipeline: Pipeline! + number: Int! + zipfile: String! +} + input PrepareAccessmodFileDownloadInput { fileId: String! } @@ -1049,17 +1359,17 @@ type PrepareDownloadURLResult { } type Query { - search(query: String, page: Int, perPage: Int, datasourceIds: [String!], types: [String!]): SearchQueryResult! + search(query: String, page: Int, perPage: Int, datasourceIds: [UUID!], types: [String!]): SearchQueryResult! catalog(path: String, page: Int, perPage: Int): CatalogPage! me: Me! - team(id: String!): Team + team(id: UUID!): Team teams(term: String, page: Int, perPage: Int): TeamPage! organizations: [Organization!]! collection(id: String!): Collection collections(page: Int, perPage: Int): CollectionPage! dags(page: Int, perPage: Int): DAGPage! - dag(id: String!): DAG - dagRun(id: String!): DAGRun + dag(id: UUID!): DAG + dagRun(id: UUID!): DAGRun accessmodProject(id: String): AccessmodProject accessmodProjects(term: String, countries: [String!], teams: [String!], page: Int, perPage: Int, orderBy: AccessmodProjectOrder): AccessmodProjectPage! accessmodFileset(id: String): AccessmodFileset @@ -1072,6 +1382,17 @@ type Query { country(code: String, alpha3: String): Country boundaries(country_code: String!, level: String!): [WHOBoundary!]! countries: [Country!]! + externalDashboards(page: Int, perPage: Int): ExternalDashboardPage! + externalDashboard(id: UUID!): ExternalDashboard + notebooksUrl: URL! + totalNotebooks: Int! + lastActivities: [Activity!]! + pipelines(page: Int, perPage: Int): PipelinesPage! + pipeline(id: UUID, name: String): Pipeline + pipelineRun(id: UUID!): PipelineRun + pipelineRunCode(id: UUID): String + workspace(id: UUID!): Workspace + workspaces(page: Int, perPage: Int): WorkspacePage! } enum RequestAccessmodAccessError { @@ -1106,7 +1427,7 @@ enum RunDAGError { } input RunDAGInput { - dagId: String! + dagId: UUID! config: JSON! } @@ -1117,6 +1438,18 @@ type RunDAGResult { dag: DAG } +input RunPipelineInput { + id: UUID! + version: Int + config: String +} + +type RunPipelineResult { + success: Boolean! + errors: [PipelineError!]! + run: PipelineRun +} + type S3Bucket { id: String! name: String! @@ -1171,7 +1504,7 @@ enum SetDAGRunFavoriteError { } input SetDAGRunFavoriteInput { - id: String! + id: UUID! label: String isFavorite: Boolean! } @@ -1211,7 +1544,7 @@ type Tag { } type Team { - id: String! + id: UUID! name: String! memberships(page: Int, perPage: Int): MembershipPage! authorizedActions: [TeamAuthorizedActions!]! @deprecated(reason: "authorizedActions is deprecated. Use permissions instead.") @@ -1371,7 +1704,7 @@ enum UpdateDAGError { } input UpdateDAGInput { - id: String! + id: UUID! label: String description: String schedule: String @@ -1384,6 +1717,24 @@ type UpdateDAGResult { dag: DAG } +enum UpdateExternalDashboardError { + INVALID + NOT_FOUND +} + +input UpdateExternalDashboardInput { + id: UUID! + description: String + name: String + countries: [CountryInput!] +} + +type UpdateExternalDashboardResult { + success: Boolean! + errors: [UpdateExternalDashboardError!]! + externalDashboard: ExternalDashboard +} + enum UpdateMembershipError { PERMISSION_DENIED NOT_FOUND @@ -1391,7 +1742,7 @@ enum UpdateMembershipError { } input UpdateMembershipInput { - id: String! + id: UUID! role: MembershipRole! } @@ -1401,6 +1752,15 @@ type UpdateMembershipResult { errors: [UpdateMembershipError!]! } +input UpdatePipelineProgressInput { + percent: Int! +} + +type UpdatePipelineProgressResult { + success: Boolean! + errors: [PipelineError!]! +} + enum UpdateTeamError { NOT_FOUND PERMISSION_DENIED @@ -1408,7 +1768,7 @@ enum UpdateTeamError { } input UpdateTeamInput { - id: String! + id: UUID! name: String } @@ -1418,10 +1778,56 @@ type UpdateTeamResult { errors: [UpdateTeamError!]! } +enum UpdateWorkspaceError { + PERMISSION_DENIED + NOT_FOUND + INVALID +} + +input UpdateWorkspaceInput { + id: UUID! + name: String + description: String + countries: [CountryInput!] +} + +enum UpdateWorkspaceMemberError { + MEMBERSHIP_NOT_FOUND + PERMISSION_DENIED +} + +input UpdateWorkspaceMemberInput { + membershipId: UUID! + role: WorkspaceMembershipRole! +} + +type UpdateWorkspaceMemberResult { + success: Boolean! + errors: [UpdateWorkspaceMemberError!]! + workspaceMembership: WorkspaceMembership +} + +type UpdateWorkspaceResult { + success: Boolean! + errors: [UpdateWorkspaceError!]! + workspace: Workspace +} + +input UploadPipelineInput { + name: String! + zipfile: String! +} + +type UploadPipelineResult { + success: Boolean! + version: Int + errors: [PipelineError!]! +} + scalar URL type User { - id: String! + id: UUID! email: String! firstName: String lastName: String @@ -1431,6 +1837,21 @@ type User { lastLogin: DateTime } +scalar UUID + +enum VerifyTokenError { + INVALID_OTP_OR_DEVICE +} + +input VerifyTokenInput { + token: String! +} + +type VerifyTokenResult { + success: Boolean! + errors: [VerifyTokenError!] +} + type WHOBoundary { id: String! name: String! @@ -1451,3 +1872,50 @@ type WHORegion { name: String! } +type Workspace { + id: UUID! + name: String! + description: String + members(page: Int, perPage: Int): WorkspaceMembershipPage! + permissions: WorkspacePermissions! + countries: [Country!]! + createdAt: DateTime! + updatedAt: DateTime + createdBy: User! +} + +type WorkspaceMembership { + id: UUID! + user: User! + workspace: Workspace! + role: WorkspaceMembershipRole! + createdAt: DateTime! + updatedAt: DateTime +} + +type WorkspaceMembershipPage { + pageNumber: Int! + totalPages: Int! + totalItems: Int! + items: [WorkspaceMembership!]! +} + +enum WorkspaceMembershipRole { + ADMIN + EDITOR + VIEWER +} + +type WorkspacePage { + pageNumber: Int! + totalPages: Int! + totalItems: Int! + items: [Workspace!]! +} + +type WorkspacePermissions { + update: Boolean! + delete: Boolean! + manageMembers: Boolean! +} + diff --git a/src/features/TeamMembersTable.tsx b/src/features/TeamMembersTable.tsx index 24d3d47..6044cc4 100644 --- a/src/features/TeamMembersTable.tsx +++ b/src/features/TeamMembersTable.tsx @@ -141,7 +141,7 @@ TeamMembersTable.prefetch = async ( ) => { await client.query({ query: gql` - query TeamMembersTable($teamId: String!) { + query TeamMembersTable($teamId: UUID!) { team(id: $teamId) { memberships(page: 1, perPage: 10) { totalItems diff --git a/src/libs/graphql.ts b/src/libs/graphql.ts index 0906b34..c1b1559 100644 --- a/src/libs/graphql.ts +++ b/src/libs/graphql.ts @@ -22,6 +22,7 @@ export type Scalars = { StackPriorities: any; TimeThresholds: any; URL: any; + UUID: any; }; export type AccessmodAccessRequest = { @@ -361,6 +362,33 @@ export type AccessmodZonalStatistics = AccessmodAnalysis & AccessmodOwnership & zonalStatisticsTable?: Maybe; }; +export type Activity = { + __typename?: 'Activity'; + description: Scalars['String']; + occurredAt: Scalars['DateTime']; + status: ActivityStatus; + url: Scalars['URL']; +}; + +export enum ActivityStatus { + Error = 'ERROR', + Pending = 'PENDING', + Running = 'RUNNING', + Success = 'SUCCESS', + Unknown = 'UNKNOWN' +} + +export type AddPipelineOutputInput = { + output_type: Scalars['String']; + output_uri: Scalars['String']; +}; + +export type AddPipelineOutputResult = { + __typename?: 'AddPipelineOutputResult'; + errors: Array; + success: Scalars['Boolean']; +}; + export enum ApproveAccessmodAccessRequestError { Invalid = 'INVALID' } @@ -391,7 +419,7 @@ export type CatalogEntry = { externalName?: Maybe; externalSubtype?: Maybe; externalType?: Maybe; - id: Scalars['String']; + id: Scalars['UUID']; lastSyncedAt?: Maybe; name: Scalars['String']; objectId: Scalars['String']; @@ -403,7 +431,7 @@ export type CatalogEntry = { export type CatalogEntryType = { __typename?: 'CatalogEntryType'; app: Scalars['String']; - id: Scalars['String']; + id: Scalars['UUID']; model: Scalars['String']; name: Scalars['String']; }; @@ -655,7 +683,7 @@ export enum CreateMembershipError { export type CreateMembershipInput = { role: MembershipRole; - teamId: Scalars['String']; + teamId: Scalars['UUID']; userEmail: Scalars['String']; }; @@ -666,6 +694,19 @@ export type CreateMembershipResult = { success: Scalars['Boolean']; }; +export type CreatePipelineInput = { + entrypoint: Scalars['String']; + name: Scalars['String']; + parameters: Scalars['JSON']; +}; + +export type CreatePipelineResult = { + __typename?: 'CreatePipelineResult'; + errors: Array; + pipeline?: Maybe; + success: Scalars['Boolean']; +}; + export enum CreateTeamError { NameDuplicate = 'NAME_DUPLICATE', PermissionDenied = 'PERMISSION_DENIED' @@ -682,6 +723,23 @@ export type CreateTeamResult = { team?: Maybe; }; +export enum CreateWorkspaceError { + PermissionDenied = 'PERMISSION_DENIED' +} + +export type CreateWorkspaceInput = { + countries?: InputMaybe>; + description?: InputMaybe; + name: Scalars['String']; +}; + +export type CreateWorkspaceResult = { + __typename?: 'CreateWorkspaceResult'; + errors: Array; + success: Scalars['Boolean']; + workspace?: Maybe; +}; + export type Dag = { __typename?: 'DAG'; countries: Array; @@ -689,7 +747,7 @@ export type Dag = { externalId: Scalars['String']; externalUrl?: Maybe; formCode?: Maybe; - id: Scalars['String']; + id: Scalars['UUID']; label: Scalars['String']; runs: DagRunPage; schedule?: Maybe; @@ -720,7 +778,7 @@ export type DagRun = { executionDate?: Maybe; externalId?: Maybe; externalUrl?: Maybe; - id: Scalars['String']; + id: Scalars['UUID']; isFavorite: Scalars['Boolean']; label?: Maybe; lastRefreshedAt?: Maybe; @@ -805,7 +863,7 @@ export type Dhis2Instance = { export type Datasource = { __typename?: 'Datasource'; - id: Scalars['String']; + id: Scalars['UUID']; name: Scalars['String']; }; @@ -906,7 +964,7 @@ export enum DeleteMembershipError { } export type DeleteMembershipInput = { - id: Scalars['String']; + id: Scalars['UUID']; }; export type DeleteMembershipResult = { @@ -915,13 +973,23 @@ export type DeleteMembershipResult = { success: Scalars['Boolean']; }; +export type DeletePipelineInput = { + id: Scalars['UUID']; +}; + +export type DeletePipelineResult = { + __typename?: 'DeletePipelineResult'; + errors: Array; + success: Scalars['Boolean']; +}; + export enum DeleteTeamError { NotFound = 'NOT_FOUND', PermissionDenied = 'PERMISSION_DENIED' } export type DeleteTeamInput = { - id: Scalars['String']; + id: Scalars['UUID']; }; export type DeleteTeamResult = { @@ -930,6 +998,36 @@ export type DeleteTeamResult = { success: Scalars['Boolean']; }; +export enum DeleteWorkspaceError { + NotFound = 'NOT_FOUND', + PermissionDenied = 'PERMISSION_DENIED' +} + +export type DeleteWorkspaceInput = { + id: Scalars['String']; +}; + +export enum DeleteWorkspaceMemberError { + MembershipNotFound = 'MEMBERSHIP_NOT_FOUND', + PermissionDenied = 'PERMISSION_DENIED' +} + +export type DeleteWorkspaceMemberInput = { + membershipId: Scalars['UUID']; +}; + +export type DeleteWorkspaceMemberResult = { + __typename?: 'DeleteWorkspaceMemberResult'; + errors: Array; + success: Scalars['Boolean']; +}; + +export type DeleteWorkspaceResult = { + __typename?: 'DeleteWorkspaceResult'; + errors: Array; + success: Scalars['Boolean']; +}; + export enum DenyAccessmodAccessRequestError { Invalid = 'INVALID' } @@ -944,12 +1042,94 @@ export type DenyAccessmodAccessRequestResult = { success: Scalars['Boolean']; }; +export enum DisableTwoFactorError { + InvalidOtp = 'INVALID_OTP', + NotEnabled = 'NOT_ENABLED' +} + +export type DisableTwoFactorInput = { + token: Scalars['String']; +}; + +export type DisableTwoFactorResult = { + __typename?: 'DisableTwoFactorResult'; + errors?: Maybe>; + success: Scalars['Boolean']; +}; + +export enum EnableTwoFactorError { + AlreadyEnabled = 'ALREADY_ENABLED', + EmailMismatch = 'EMAIL_MISMATCH' +} + +export type EnableTwoFactorInput = { + email?: InputMaybe; +}; + +export type EnableTwoFactorResult = { + __typename?: 'EnableTwoFactorResult'; + errors?: Maybe>; + success: Scalars['Boolean']; +}; + +export type ExternalDashboard = { + __typename?: 'ExternalDashboard'; + countries: Array; + createdAt: Scalars['DateTime']; + description?: Maybe; + id: Scalars['UUID']; + name: Scalars['String']; + pictureUrl: Scalars['URL']; + tags: Array; + updatedAt: Scalars['DateTime']; + url: Scalars['URL']; +}; + +export type ExternalDashboardPage = { + __typename?: 'ExternalDashboardPage'; + items: Array; + pageNumber: Scalars['Int']; + totalItems: Scalars['Int']; + totalPages: Scalars['Int']; +}; + export type FeatureFlag = { __typename?: 'FeatureFlag'; code: Scalars['String']; config: Scalars['JSON']; }; +export enum GenerateChallengeError { + ChallengeError = 'CHALLENGE_ERROR', + DeviceNotFound = 'DEVICE_NOT_FOUND' +} + +export type GenerateChallengeResult = { + __typename?: 'GenerateChallengeResult'; + errors?: Maybe>; + success: Scalars['Boolean']; +}; + +export type InviteWorkspaceMemberInput = { + role: WorkspaceMembershipRole; + userEmail: Scalars['String']; + workspaceId: Scalars['UUID']; +}; + +export type InviteWorkspaceMemberResult = { + __typename?: 'InviteWorkspaceMemberResult'; + errors: Array; + success: Scalars['Boolean']; + workspaceMembership?: Maybe; +}; + +export enum InviteWorkspaceMembershipError { + AlreadyExists = 'ALREADY_EXISTS', + PermissionDenied = 'PERMISSION_DENIED', + UserNotFound = 'USER_NOT_FOUND', + WorkspaceNotFound = 'WORKSPACE_NOT_FOUND' +} + export enum LaunchAccessmodAnalysisError { LaunchFailed = 'LAUNCH_FAILED' } @@ -965,14 +1145,32 @@ export type LaunchAccessmodAnalysisResult = { success: Scalars['Boolean']; }; +export type LogPipelineMessageInput = { + message: Scalars['String']; + priority: MessagePriority; +}; + +export type LogPipelineMessageResult = { + __typename?: 'LogPipelineMessageResult'; + errors: Array; + success: Scalars['Boolean']; +}; + +export enum LoginError { + InvalidCredentials = 'INVALID_CREDENTIALS', + InvalidOtp = 'INVALID_OTP', + OtpRequired = 'OTP_REQUIRED' +} + export type LoginInput = { email: Scalars['String']; password: Scalars['String']; + token?: InputMaybe; }; export type LoginResult = { __typename?: 'LoginResult'; - me?: Maybe; + errors?: Maybe>; success: Scalars['Boolean']; }; @@ -986,6 +1184,7 @@ export type Me = { /** @deprecated authorizedActions is deprecated. Use permissions instead. */ authorizedActions: Array; features: Array; + hasTwoFactorEnabled: Scalars['Boolean']; permissions: MePermissions; user?: Maybe; }; @@ -1004,6 +1203,7 @@ export type MePermissions = { createAccessmodProject: Scalars['Boolean']; createCollection: Scalars['Boolean']; createTeam: Scalars['Boolean']; + createWorkspace: Scalars['Boolean']; manageAccessmodAccessRequests: Scalars['Boolean']; superUser: Scalars['Boolean']; }; @@ -1013,7 +1213,7 @@ export type Membership = { /** @deprecated authorizedActions is deprecated. Use permissions instead. */ authorizedActions: Array; createdAt: Scalars['DateTime']; - id: Scalars['String']; + id: Scalars['UUID']; permissions: MembershipPermissions; role: MembershipRole; team: Team; @@ -1045,8 +1245,17 @@ export enum MembershipRole { Regular = 'REGULAR' } +export enum MessagePriority { + Critical = 'CRITICAL', + Debug = 'DEBUG', + Error = 'ERROR', + Info = 'INFO', + Warning = 'WARNING' +} + export type Mutation = { __typename?: 'Mutation'; + addPipelineOutput: AddPipelineOutputResult; approveAccessmodAccessRequest: ApproveAccessmodAccessRequestResult; createAccessmodAccessibilityAnalysis: CreateAccessmodAccessibilityAnalysisResult; createAccessmodFile: CreateAccessmodFileResult; @@ -1057,7 +1266,9 @@ export type Mutation = { createCollection: CreateCollectionResult; createCollectionElement: CreateCollectionElementResult; createMembership: CreateMembershipResult; + createPipeline: CreatePipelineResult; createTeam: CreateTeamResult; + createWorkspace: CreateWorkspaceResult; deleteAccessmodAnalysis: DeleteAccessmodAnalysisResult; deleteAccessmodFileset: DeleteAccessmodFilesetResult; deleteAccessmodProject: DeleteAccessmodProjectResult; @@ -1065,11 +1276,20 @@ export type Mutation = { deleteCollection: DeleteCollectionResult; deleteCollectionElement: DeleteCollectionElementResult; deleteMembership: DeleteMembershipResult; + deletePipeline: DeletePipelineResult; deleteTeam: DeleteTeamResult; + deleteWorkspace: DeleteWorkspaceResult; + deleteWorkspaceMember: DeleteWorkspaceMemberResult; denyAccessmodAccessRequest: DenyAccessmodAccessRequestResult; + disableTwoFactor: DisableTwoFactorResult; + enableTwoFactor: EnableTwoFactorResult; + generateChallenge: GenerateChallengeResult; + inviteWorkspaceMember: InviteWorkspaceMemberResult; launchAccessmodAnalysis: LaunchAccessmodAnalysisResult; + logPipelineMessage: LogPipelineMessageResult; login: LoginResult; logout: LogoutResult; + pipelineToken: PipelineTokenResult; prepareAccessmodFileDownload: PrepareAccessmodFileDownloadResult; prepareAccessmodFileUpload: PrepareAccessmodFileUploadResult; prepareAccessmodFilesetVisualizationDownload: PrepareAccessmodFilesetVisualizationDownloadResult; @@ -1077,6 +1297,7 @@ export type Mutation = { requestAccessmodAccess: RequestAccessmodAccessInputResult; resetPassword: ResetPasswordResult; runDAG: RunDagResult; + runPipeline: RunPipelineResult; setDAGRunFavorite?: Maybe; setPassword: SetPasswordResult; updateAccessmodAccessibilityAnalysis: UpdateAccessmodAccessibilityAnalysisResult; @@ -1086,8 +1307,19 @@ export type Mutation = { updateAccessmodZonalStatistics: UpdateAccessmodZonalStatisticsResult; updateCollection: UpdateCollectionResult; updateDAG: UpdateDagResult; + updateExternalDashboard: UpdateExternalDashboardResult; updateMembership: UpdateMembershipResult; + updatePipelineProgress: UpdatePipelineProgressResult; updateTeam: UpdateTeamResult; + updateWorkspace: UpdateWorkspaceResult; + updateWorkspaceMember: UpdateWorkspaceMemberResult; + uploadPipeline: UploadPipelineResult; + verifyToken: VerifyTokenResult; +}; + + +export type MutationAddPipelineOutputArgs = { + input?: InputMaybe; }; @@ -1141,11 +1373,21 @@ export type MutationCreateMembershipArgs = { }; +export type MutationCreatePipelineArgs = { + input?: InputMaybe; +}; + + export type MutationCreateTeamArgs = { input: CreateTeamInput; }; +export type MutationCreateWorkspaceArgs = { + input: CreateWorkspaceInput; +}; + + export type MutationDeleteAccessmodAnalysisArgs = { input?: InputMaybe; }; @@ -1181,26 +1423,66 @@ export type MutationDeleteMembershipArgs = { }; +export type MutationDeletePipelineArgs = { + input?: InputMaybe; +}; + + export type MutationDeleteTeamArgs = { input: DeleteTeamInput; }; +export type MutationDeleteWorkspaceArgs = { + input: DeleteWorkspaceInput; +}; + + +export type MutationDeleteWorkspaceMemberArgs = { + input: DeleteWorkspaceMemberInput; +}; + + export type MutationDenyAccessmodAccessRequestArgs = { input: DenyAccessmodAccessRequestInput; }; +export type MutationDisableTwoFactorArgs = { + input?: InputMaybe; +}; + + +export type MutationEnableTwoFactorArgs = { + input?: InputMaybe; +}; + + +export type MutationInviteWorkspaceMemberArgs = { + input: InviteWorkspaceMemberInput; +}; + + export type MutationLaunchAccessmodAnalysisArgs = { input?: InputMaybe; }; +export type MutationLogPipelineMessageArgs = { + input?: InputMaybe; +}; + + export type MutationLoginArgs = { input: LoginInput; }; +export type MutationPipelineTokenArgs = { + input?: InputMaybe; +}; + + export type MutationPrepareAccessmodFileDownloadArgs = { input: PrepareAccessmodFileDownloadInput; }; @@ -1236,6 +1518,11 @@ export type MutationRunDagArgs = { }; +export type MutationRunPipelineArgs = { + input?: InputMaybe; +}; + + export type MutationSetDagRunFavoriteArgs = { input: SetDagRunFavoriteInput; }; @@ -1281,19 +1568,49 @@ export type MutationUpdateDagArgs = { }; +export type MutationUpdateExternalDashboardArgs = { + input: UpdateExternalDashboardInput; +}; + + export type MutationUpdateMembershipArgs = { input: UpdateMembershipInput; }; +export type MutationUpdatePipelineProgressArgs = { + input?: InputMaybe; +}; + + export type MutationUpdateTeamArgs = { input: UpdateTeamInput; }; + +export type MutationUpdateWorkspaceArgs = { + input: UpdateWorkspaceInput; +}; + + +export type MutationUpdateWorkspaceMemberArgs = { + input: UpdateWorkspaceMemberInput; +}; + + +export type MutationUploadPipelineArgs = { + input?: InputMaybe; +}; + + +export type MutationVerifyTokenArgs = { + input: VerifyTokenInput; +}; + export type Organization = { __typename?: 'Organization'; contactInfo: Scalars['String']; - id: Scalars['String']; + id: Scalars['UUID']; name: Scalars['String']; type: Scalars['String']; url: Scalars['String']; @@ -1301,7 +1618,7 @@ export type Organization = { export type OrganizationInput = { contactInfo?: InputMaybe; - id: Scalars['String']; + id: Scalars['UUID']; name?: InputMaybe; type?: InputMaybe; url?: InputMaybe; @@ -1313,6 +1630,117 @@ export enum PermissionMode { Viewer = 'VIEWER' } +export type Pipeline = { + __typename?: 'Pipeline'; + config: Scalars['String']; + entrypoint: Scalars['String']; + id: Scalars['UUID']; + name: Scalars['String']; + parameters: Scalars['JSON']; + runs: PipelineRunPage; + schedule?: Maybe; + user?: Maybe; +}; + + +export type PipelineRunsArgs = { + orderBy?: InputMaybe; + page?: InputMaybe; + perPage?: InputMaybe; +}; + +export enum PipelineError { + InvalidConfig = 'INVALID_CONFIG', + PipelineAlreadyCompleted = 'PIPELINE_ALREADY_COMPLETED', + PipelineNotFound = 'PIPELINE_NOT_FOUND', + PipelineVersionNotFound = 'PIPELINE_VERSION_NOT_FOUND' +} + +export type PipelineRun = { + __typename?: 'PipelineRun'; + code: Scalars['String']; + config: Scalars['String']; + duration?: Maybe; + executionDate?: Maybe; + id: Scalars['UUID']; + logs?: Maybe; + messages: Array; + outputs: Array; + pipeline: Pipeline; + progress: Scalars['Int']; + run_id: Scalars['UUID']; + status: PipelineRunStatus; + triggerMode?: Maybe; + user?: Maybe; + version: PipelineVersion; +}; + +export type PipelineRunMessage = { + __typename?: 'PipelineRunMessage'; + message: Scalars['String']; + priority: MessagePriority; + timestamp?: Maybe; +}; + +export enum PipelineRunOrderBy { + ExecutionDateAsc = 'EXECUTION_DATE_ASC', + ExecutionDateDesc = 'EXECUTION_DATE_DESC' +} + +export type PipelineRunOutput = { + __typename?: 'PipelineRunOutput'; + title: Scalars['String']; + uri: Scalars['String']; +}; + +export type PipelineRunPage = { + __typename?: 'PipelineRunPage'; + items: Array; + pageNumber: Scalars['Int']; + totalItems: Scalars['Int']; + totalPages: Scalars['Int']; +}; + +export enum PipelineRunStatus { + Failed = 'failed', + Queued = 'queued', + Running = 'running', + Success = 'success' +} + +export enum PipelineRunTrigger { + Manual = 'MANUAL', + Scheduled = 'SCHEDULED' +} + +export type PipelineTokenInput = { + name: Scalars['String']; +}; + +export type PipelineTokenResult = { + __typename?: 'PipelineTokenResult'; + errors: Array; + success: Scalars['Boolean']; + token?: Maybe; +}; + +export type PipelineVersion = { + __typename?: 'PipelineVersion'; + id: Scalars['UUID']; + number: Scalars['Int']; + pipeline: Pipeline; + user?: Maybe; + zipfile: Scalars['String']; +}; + +export type PipelinesPage = { + __typename?: 'PipelinesPage'; + items: Array; + pageNumber: Scalars['Int']; + totalItems: Scalars['Int']; + totalPages: Scalars['Int']; +}; + export type PrepareAccessmodFileDownloadInput = { fileId: Scalars['String']; }; @@ -1375,11 +1803,22 @@ export type Query = { dag?: Maybe; dagRun?: Maybe; dags: DagPage; + externalDashboard?: Maybe; + externalDashboards: ExternalDashboardPage; + lastActivities: Array; me: Me; + notebooksUrl: Scalars['URL']; organizations: Array; + pipeline?: Maybe; + pipelineRun?: Maybe; + pipelineRunCode?: Maybe; + pipelines: PipelinesPage; search: SearchQueryResult; team?: Maybe; teams: TeamPage; + totalNotebooks: Scalars['Int']; + workspace?: Maybe; + workspaces: WorkspacePage; }; @@ -1467,12 +1906,12 @@ export type QueryCountryArgs = { export type QueryDagArgs = { - id: Scalars['String']; + id: Scalars['UUID']; }; export type QueryDagRunArgs = { - id: Scalars['String']; + id: Scalars['UUID']; }; @@ -1482,8 +1921,41 @@ export type QueryDagsArgs = { }; +export type QueryExternalDashboardArgs = { + id: Scalars['UUID']; +}; + + +export type QueryExternalDashboardsArgs = { + page?: InputMaybe; + perPage?: InputMaybe; +}; + + +export type QueryPipelineArgs = { + id?: InputMaybe; + name?: InputMaybe; +}; + + +export type QueryPipelineRunArgs = { + id: Scalars['UUID']; +}; + + +export type QueryPipelineRunCodeArgs = { + id?: InputMaybe; +}; + + +export type QueryPipelinesArgs = { + page?: InputMaybe; + perPage?: InputMaybe; +}; + + export type QuerySearchArgs = { - datasourceIds?: InputMaybe>; + datasourceIds?: InputMaybe>; page?: InputMaybe; perPage?: InputMaybe; query?: InputMaybe; @@ -1492,7 +1964,7 @@ export type QuerySearchArgs = { export type QueryTeamArgs = { - id: Scalars['String']; + id: Scalars['UUID']; }; @@ -1502,6 +1974,17 @@ export type QueryTeamsArgs = { term?: InputMaybe; }; + +export type QueryWorkspaceArgs = { + id: Scalars['UUID']; +}; + + +export type QueryWorkspacesArgs = { + page?: InputMaybe; + perPage?: InputMaybe; +}; + export enum RequestAccessmodAccessError { AlreadyExists = 'ALREADY_EXISTS', Invalid = 'INVALID', @@ -1537,7 +2020,7 @@ export enum RunDagError { export type RunDagInput = { config: Scalars['JSON']; - dagId: Scalars['String']; + dagId: Scalars['UUID']; }; export type RunDagResult = { @@ -1548,6 +2031,19 @@ export type RunDagResult = { success: Scalars['Boolean']; }; +export type RunPipelineInput = { + config?: InputMaybe; + id: Scalars['UUID']; + version?: InputMaybe; +}; + +export type RunPipelineResult = { + __typename?: 'RunPipelineResult'; + errors: Array; + run?: Maybe; + success: Scalars['Boolean']; +}; + export type S3Bucket = { __typename?: 'S3Bucket'; createdAt: Scalars['DateTime']; @@ -1608,7 +2104,7 @@ export enum SetDagRunFavoriteError { } export type SetDagRunFavoriteInput = { - id: Scalars['String']; + id: Scalars['UUID']; isFavorite: Scalars['Boolean']; label?: InputMaybe; }; @@ -1651,7 +2147,7 @@ export type Team = { /** @deprecated authorizedActions is deprecated. Use permissions instead. */ authorizedActions: Array; createdAt: Scalars['DateTime']; - id: Scalars['String']; + id: Scalars['UUID']; memberships: MembershipPage; name: Scalars['String']; permissions: TeamPermissions; @@ -1823,7 +2319,7 @@ export enum UpdateDagError { export type UpdateDagInput = { countries?: InputMaybe>; description?: InputMaybe; - id: Scalars['String']; + id: Scalars['UUID']; label?: InputMaybe; schedule?: InputMaybe; }; @@ -1835,6 +2331,25 @@ export type UpdateDagResult = { success: Scalars['Boolean']; }; +export enum UpdateExternalDashboardError { + Invalid = 'INVALID', + NotFound = 'NOT_FOUND' +} + +export type UpdateExternalDashboardInput = { + countries?: InputMaybe>; + description?: InputMaybe; + id: Scalars['UUID']; + name?: InputMaybe; +}; + +export type UpdateExternalDashboardResult = { + __typename?: 'UpdateExternalDashboardResult'; + errors: Array; + externalDashboard?: Maybe; + success: Scalars['Boolean']; +}; + export enum UpdateMembershipError { InvalidRole = 'INVALID_ROLE', NotFound = 'NOT_FOUND', @@ -1842,7 +2357,7 @@ export enum UpdateMembershipError { } export type UpdateMembershipInput = { - id: Scalars['String']; + id: Scalars['UUID']; role: MembershipRole; }; @@ -1853,6 +2368,16 @@ export type UpdateMembershipResult = { success: Scalars['Boolean']; }; +export type UpdatePipelineProgressInput = { + percent: Scalars['Int']; +}; + +export type UpdatePipelineProgressResult = { + __typename?: 'UpdatePipelineProgressResult'; + errors: Array; + success: Scalars['Boolean']; +}; + export enum UpdateTeamError { NameDuplicate = 'NAME_DUPLICATE', NotFound = 'NOT_FOUND', @@ -1860,7 +2385,7 @@ export enum UpdateTeamError { } export type UpdateTeamInput = { - id: Scalars['String']; + id: Scalars['UUID']; name?: InputMaybe; }; @@ -1871,6 +2396,55 @@ export type UpdateTeamResult = { team?: Maybe; }; +export enum UpdateWorkspaceError { + Invalid = 'INVALID', + NotFound = 'NOT_FOUND', + PermissionDenied = 'PERMISSION_DENIED' +} + +export type UpdateWorkspaceInput = { + countries?: InputMaybe>; + description?: InputMaybe; + id: Scalars['UUID']; + name?: InputMaybe; +}; + +export enum UpdateWorkspaceMemberError { + MembershipNotFound = 'MEMBERSHIP_NOT_FOUND', + PermissionDenied = 'PERMISSION_DENIED' +} + +export type UpdateWorkspaceMemberInput = { + membershipId: Scalars['UUID']; + role: WorkspaceMembershipRole; +}; + +export type UpdateWorkspaceMemberResult = { + __typename?: 'UpdateWorkspaceMemberResult'; + errors: Array; + success: Scalars['Boolean']; + workspaceMembership?: Maybe; +}; + +export type UpdateWorkspaceResult = { + __typename?: 'UpdateWorkspaceResult'; + errors: Array; + success: Scalars['Boolean']; + workspace?: Maybe; +}; + +export type UploadPipelineInput = { + name: Scalars['String']; + zipfile: Scalars['String']; +}; + +export type UploadPipelineResult = { + __typename?: 'UploadPipelineResult'; + errors: Array; + success: Scalars['Boolean']; + version?: Maybe; +}; + export type User = { __typename?: 'User'; avatar: Avatar; @@ -1878,11 +2452,25 @@ export type User = { displayName: Scalars['String']; email: Scalars['String']; firstName?: Maybe; - id: Scalars['String']; + id: Scalars['UUID']; lastLogin?: Maybe; lastName?: Maybe; }; +export enum VerifyTokenError { + InvalidOtpOrDevice = 'INVALID_OTP_OR_DEVICE' +} + +export type VerifyTokenInput = { + token: Scalars['String']; +}; + +export type VerifyTokenResult = { + __typename?: 'VerifyTokenResult'; + errors?: Maybe>; + success: Scalars['Boolean']; +}; + export type WhoBoundary = { __typename?: 'WHOBoundary'; administrative_level: Scalars['Int']; @@ -1906,12 +2494,70 @@ export type WhoRegion = { name: Scalars['String']; }; +export type Workspace = { + __typename?: 'Workspace'; + countries: Array; + createdAt: Scalars['DateTime']; + createdBy: User; + description?: Maybe; + id: Scalars['UUID']; + members: WorkspaceMembershipPage; + name: Scalars['String']; + permissions: WorkspacePermissions; + updatedAt?: Maybe; +}; + + +export type WorkspaceMembersArgs = { + page?: InputMaybe; + perPage?: InputMaybe; +}; + +export type WorkspaceMembership = { + __typename?: 'WorkspaceMembership'; + createdAt: Scalars['DateTime']; + id: Scalars['UUID']; + role: WorkspaceMembershipRole; + updatedAt?: Maybe; + user: User; + workspace: Workspace; +}; + +export type WorkspaceMembershipPage = { + __typename?: 'WorkspaceMembershipPage'; + items: Array; + pageNumber: Scalars['Int']; + totalItems: Scalars['Int']; + totalPages: Scalars['Int']; +}; + +export enum WorkspaceMembershipRole { + Admin = 'ADMIN', + Editor = 'EDITOR', + Viewer = 'VIEWER' +} + +export type WorkspacePage = { + __typename?: 'WorkspacePage'; + items: Array; + pageNumber: Scalars['Int']; + totalItems: Scalars['Int']; + totalPages: Scalars['Int']; +}; + +export type WorkspacePermissions = { + __typename?: 'WorkspacePermissions'; + delete: Scalars['Boolean']; + manageMembers: Scalars['Boolean']; + update: Scalars['Boolean']; +}; + export type HeaderQueryVariables = Exact<{ [key: string]: never; }>; -export type HeaderQuery = { __typename?: 'Query', me: { __typename?: 'Me', permissions: { __typename?: 'MePermissions', createAccessmodProject: boolean, manageAccessmodAccessRequests: boolean }, user?: { __typename?: 'User', avatar: { __typename?: 'Avatar', initials: string, color: string } } | null }, teams: { __typename?: 'TeamPage', items: Array<{ __typename?: 'Team', id: string, name: string }> }, projects: { __typename?: 'AccessmodProjectPage', items: Array<{ __typename?: 'AccessmodProject', id: string, name: string }> } }; +export type HeaderQuery = { __typename?: 'Query', me: { __typename?: 'Me', permissions: { __typename?: 'MePermissions', createAccessmodProject: boolean, manageAccessmodAccessRequests: boolean }, user?: { __typename?: 'User', avatar: { __typename?: 'Avatar', initials: string, color: string } } | null }, teams: { __typename?: 'TeamPage', items: Array<{ __typename?: 'Team', id: any, name: string }> }, projects: { __typename?: 'AccessmodProjectPage', items: Array<{ __typename?: 'AccessmodProject', id: string, name: string }> } }; -export type Navbar_NavbarFragment = { __typename?: 'Query', teams: { __typename?: 'TeamPage', items: Array<{ __typename?: 'Team', id: string, name: string }> }, projects: { __typename?: 'AccessmodProjectPage', items: Array<{ __typename?: 'AccessmodProject', id: string, name: string }> } }; +export type Navbar_NavbarFragment = { __typename?: 'Query', teams: { __typename?: 'TeamPage', items: Array<{ __typename?: 'Team', id: any, name: string }> }, projects: { __typename?: 'AccessmodProjectPage', items: Array<{ __typename?: 'AccessmodProject', id: string, name: string }> } }; export type UserMenu_MeFragment = { __typename?: 'Me', permissions: { __typename?: 'MePermissions', manageAccessmodAccessRequests: boolean }, user?: { __typename?: 'User', avatar: { __typename?: 'Avatar', initials: string, color: string } } | null }; @@ -1931,27 +2577,27 @@ export type CreateMembershipMutationVariables = Exact<{ export type CreateMembershipMutation = { __typename?: 'Mutation', createMembership: { __typename?: 'CreateMembershipResult', success: boolean, errors: Array } }; -export type InviteTeamMemberDialog_TeamFragment = { __typename?: 'Team', id: string, name: string }; +export type InviteTeamMemberDialog_TeamFragment = { __typename?: 'Team', id: any, name: string }; -export type InviteTeamMemberTrigger_TeamFragment = { __typename?: 'Team', id: string, name: string, permissions: { __typename?: 'TeamPermissions', createMembership: boolean } }; +export type InviteTeamMemberTrigger_TeamFragment = { __typename?: 'Team', id: any, name: string, permissions: { __typename?: 'TeamPermissions', createMembership: boolean } }; export type UpdateMembershipMutationVariables = Exact<{ input: UpdateMembershipInput; }>; -export type UpdateMembershipMutation = { __typename?: 'Mutation', updateMembership: { __typename?: 'UpdateMembershipResult', success: boolean, errors: Array, membership?: { __typename?: 'Membership', id: string, role: MembershipRole } | null } }; +export type UpdateMembershipMutation = { __typename?: 'Mutation', updateMembership: { __typename?: 'UpdateMembershipResult', success: boolean, errors: Array, membership?: { __typename?: 'Membership', id: any, role: MembershipRole } | null } }; -export type TeamMembersTable_TeamFragment = { __typename?: 'Team', id: string }; +export type TeamMembersTable_TeamFragment = { __typename?: 'Team', id: any }; export type TeamMembersTableQueryVariables = Exact<{ - teamId: Scalars['String']; + teamId: Scalars['UUID']; }>; -export type TeamMembersTableQuery = { __typename?: 'Query', team?: { __typename?: 'Team', memberships: { __typename?: 'MembershipPage', totalItems: number, totalPages: number, pageNumber: number, items: Array<{ __typename?: 'Membership', id: string, createdAt: any, updatedAt: any, role: MembershipRole, permissions: { __typename?: 'MembershipPermissions', update: boolean, delete: boolean }, user: { __typename?: 'User', firstName?: string | null, lastName?: string | null, displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } }, team: { __typename?: 'Team', id: string, name: string } }> } } | null }; +export type TeamMembersTableQuery = { __typename?: 'Query', team?: { __typename?: 'Team', memberships: { __typename?: 'MembershipPage', totalItems: number, totalPages: number, pageNumber: number, items: Array<{ __typename?: 'Membership', id: any, createdAt: any, updatedAt: any, role: MembershipRole, permissions: { __typename?: 'MembershipPermissions', update: boolean, delete: boolean }, user: { __typename?: 'User', firstName?: string | null, lastName?: string | null, displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } }, team: { __typename?: 'Team', id: any, name: string } }> } } | null }; -export type User_UserFragment = { __typename?: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } }; +export type User_UserFragment = { __typename?: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } }; export type ApproveAccessRequestMutationVariables = Exact<{ input: ApproveAccessmodAccessRequestInput; @@ -2142,7 +2788,7 @@ export type ChangeProjectOwnershipMutationVariables = Exact<{ export type ChangeProjectOwnershipMutation = { __typename?: 'Mutation', createAccessmodProjectMember: { __typename?: 'CreateAccessmodProjectMemberResult', success: boolean, errors: Array, member?: { __typename?: 'AccessmodProjectMember', id: string } | null } }; -export type ChangeProjectOwnerDialog_ProjectFragment = { __typename?: 'AccessmodProject', id: string, owner?: { __typename: 'Team', id: string, name: string } | { __typename: 'User' } | null }; +export type ChangeProjectOwnerDialog_ProjectFragment = { __typename?: 'AccessmodProject', id: string, owner?: { __typename: 'Team', id: any, name: string } | { __typename: 'User' } | null }; export type CreateProjectMutationVariables = Exact<{ input: CreateAccessmodProjectInput; @@ -2176,7 +2822,7 @@ export type UpdateProjectMutation = { __typename?: 'Mutation', updateAccessmodPr export type EditProjectFormBlock_ProjectFragment = { __typename?: 'AccessmodProject', id: string }; -export type ProjectActionsMenu_ProjectFragment = { __typename?: 'AccessmodProject', id: string, name: string, permissions: { __typename?: 'AccessmodProjectPermissions', createPermission: boolean, delete: boolean }, owner?: { __typename: 'Team', id: string, name: string } | { __typename: 'User' } | null }; +export type ProjectActionsMenu_ProjectFragment = { __typename?: 'AccessmodProject', id: string, name: string, permissions: { __typename?: 'AccessmodProjectPermissions', createPermission: boolean, delete: boolean }, owner?: { __typename: 'Team', id: any, name: string } | { __typename: 'User' } | null }; export type DeleteAnalysisMutationVariables = Exact<{ input?: InputMaybe; @@ -2194,7 +2840,7 @@ export type ProjectAnalysesTableQueryVariables = Exact<{ }>; -export type ProjectAnalysesTableQuery = { __typename?: 'Query', analyses: { __typename?: 'AccessmodAnalysisPage', pageNumber: number, totalPages: number, totalItems: number, items: Array<{ __typename: 'AccessmodAccessibilityAnalysis', id: string, type: AccessmodAnalysisType, name: string, createdAt: any, status: AccessmodAnalysisStatus, author: { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } } | { __typename: 'AccessmodGeographicCoverageAnalysis', id: string, type: AccessmodAnalysisType, name: string, createdAt: any, status: AccessmodAnalysisStatus, author: { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } } | { __typename: 'AccessmodZonalStatistics', id: string, type: AccessmodAnalysisType, name: string, createdAt: any, status: AccessmodAnalysisStatus, author: { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } }> } }; +export type ProjectAnalysesTableQuery = { __typename?: 'Query', analyses: { __typename?: 'AccessmodAnalysisPage', pageNumber: number, totalPages: number, totalItems: number, items: Array<{ __typename: 'AccessmodAccessibilityAnalysis', id: string, type: AccessmodAnalysisType, name: string, createdAt: any, status: AccessmodAnalysisStatus, author: { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } } } | { __typename: 'AccessmodGeographicCoverageAnalysis', id: string, type: AccessmodAnalysisType, name: string, createdAt: any, status: AccessmodAnalysisStatus, author: { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } } } | { __typename: 'AccessmodZonalStatistics', id: string, type: AccessmodAnalysisType, name: string, createdAt: any, status: AccessmodAnalysisStatus, author: { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } } }> } }; export type ProjectCard_ProjectFragment = { __typename?: 'AccessmodProject', id: string, name: string, spatialResolution: number, description: string, updatedAt: any, members: Array<{ __typename?: 'AccessmodProjectMember', mode: PermissionMode, user?: { __typename?: 'User', firstName?: string | null, lastName?: string | null, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null, team?: { __typename?: 'Team', name: string } | null }>, country: { __typename?: 'Country', name: string, flag: string, code: string } }; @@ -2206,7 +2852,7 @@ export type ProjectDatasetsTableQueryVariables = Exact<{ }>; -export type ProjectDatasetsTableQuery = { __typename?: 'Query', accessmodFilesets: { __typename?: 'AccessmodFilesetPage', pageNumber: number, totalPages: number, totalItems: number, items: Array<{ __typename?: 'AccessmodFileset', id: string, name: string, status: AccessmodFilesetStatus, createdAt: any, role: { __typename?: 'AccessmodFilesetRole', name: string, id: string, format: AccessmodFilesetFormat }, author: { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } }, permissions: { __typename?: 'AccessmodFilesetPermissions', delete: boolean } }> } }; +export type ProjectDatasetsTableQuery = { __typename?: 'Query', accessmodFilesets: { __typename?: 'AccessmodFilesetPage', pageNumber: number, totalPages: number, totalItems: number, items: Array<{ __typename?: 'AccessmodFileset', id: string, name: string, status: AccessmodFilesetStatus, createdAt: any, role: { __typename?: 'AccessmodFilesetRole', name: string, id: string, format: AccessmodFilesetFormat }, author: { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } }, permissions: { __typename?: 'AccessmodFilesetPermissions', delete: boolean } }> } }; export type ProjectDatasetsTable_ProjectFragment = { __typename?: 'AccessmodProject', id: string, name: string }; @@ -2224,7 +2870,7 @@ export type DeleteMembershipMutationVariables = Exact<{ export type DeleteMembershipMutation = { __typename?: 'Mutation', deleteMembership: { __typename?: 'DeleteMembershipResult', success: boolean, errors: Array } }; -export type DeleteMembershipTrigger_MembershipFragment = { __typename?: 'Membership', id: string, permissions: { __typename?: 'MembershipPermissions', delete: boolean }, user: { __typename?: 'User', firstName?: string | null, lastName?: string | null }, team: { __typename?: 'Team', id: string, name: string } }; +export type DeleteMembershipTrigger_MembershipFragment = { __typename?: 'Membership', id: any, permissions: { __typename?: 'MembershipPermissions', delete: boolean }, user: { __typename?: 'User', firstName?: string | null, lastName?: string | null }, team: { __typename?: 'Team', id: any, name: string } }; export type DeleteTeamMutationVariables = Exact<{ input: DeleteTeamInput; @@ -2233,29 +2879,29 @@ export type DeleteTeamMutationVariables = Exact<{ export type DeleteTeamMutation = { __typename?: 'Mutation', deleteTeam: { __typename?: 'DeleteTeamResult', success: boolean, errors: Array } }; -export type DeleteTeamTrigger_TeamFragment = { __typename?: 'Team', id: string, name: string, permissions: { __typename?: 'TeamPermissions', delete: boolean } }; +export type DeleteTeamTrigger_TeamFragment = { __typename?: 'Team', id: any, name: string, permissions: { __typename?: 'TeamPermissions', delete: boolean } }; -export type EditTeamTrigger_TeamFragment = { __typename?: 'Team', id: string, name: string }; +export type EditTeamTrigger_TeamFragment = { __typename?: 'Team', id: any, name: string }; -export type Team_TeamFragment = { __typename?: 'Team', id: string, name: string }; +export type Team_TeamFragment = { __typename?: 'Team', id: any, name: string }; -export type TeamActionsMenu_TeamFragment = { __typename?: 'Team', id: string, name: string, permissions: { __typename?: 'TeamPermissions', update: boolean, delete: boolean } }; +export type TeamActionsMenu_TeamFragment = { __typename?: 'Team', id: any, name: string, permissions: { __typename?: 'TeamPermissions', update: boolean, delete: boolean } }; export type CreateTeamMutationVariables = Exact<{ input: CreateTeamInput; }>; -export type CreateTeamMutation = { __typename?: 'Mutation', result: { __typename?: 'CreateTeamResult', success: boolean, errors: Array, team?: { __typename?: 'Team', id: string } | null } }; +export type CreateTeamMutation = { __typename?: 'Mutation', result: { __typename?: 'CreateTeamResult', success: boolean, errors: Array, team?: { __typename?: 'Team', id: any } | null } }; export type UpdateTeamMutationVariables = Exact<{ input: UpdateTeamInput; }>; -export type UpdateTeamMutation = { __typename?: 'Mutation', result: { __typename?: 'UpdateTeamResult', success: boolean, errors: Array, team?: { __typename?: 'Team', id: string, name: string } | null } }; +export type UpdateTeamMutation = { __typename?: 'Mutation', result: { __typename?: 'UpdateTeamResult', success: boolean, errors: Array, team?: { __typename?: 'Team', id: any, name: string } | null } }; -export type TeamFormDialog_TeamFragment = { __typename?: 'Team', id: string, name: string }; +export type TeamFormDialog_TeamFragment = { __typename?: 'Team', id: any, name: string }; export type TeamPickerQueryVariables = Exact<{ page?: InputMaybe; @@ -2264,9 +2910,9 @@ export type TeamPickerQueryVariables = Exact<{ }>; -export type TeamPickerQuery = { __typename?: 'Query', teams: { __typename?: 'TeamPage', totalItems: number, items: Array<{ __typename?: 'Team', id: string, name: string }> } }; +export type TeamPickerQuery = { __typename?: 'Query', teams: { __typename?: 'TeamPage', totalItems: number, items: Array<{ __typename?: 'Team', id: any, name: string }> } }; -export type TeamProjectsTable_TeamFragment = { __typename?: 'Team', id: string }; +export type TeamProjectsTable_TeamFragment = { __typename?: 'Team', id: any }; export type TeamProjectsTableQueryVariables = Exact<{ page?: Scalars['Int']; @@ -2275,7 +2921,7 @@ export type TeamProjectsTableQueryVariables = Exact<{ }>; -export type TeamProjectsTableQuery = { __typename?: 'Query', projects: { __typename?: 'AccessmodProjectPage', totalPages: number, totalItems: number, items: Array<{ __typename?: 'AccessmodProject', id: string, name: string, createdAt: any, owner?: { __typename: 'Team', id: string, name: string } | { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null }> } }; +export type TeamProjectsTableQuery = { __typename?: 'Query', projects: { __typename?: 'AccessmodProjectPage', totalPages: number, totalItems: number, items: Array<{ __typename?: 'AccessmodProject', id: string, name: string, createdAt: any, owner?: { __typename: 'Team', id: any, name: string } | { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null }> } }; export type UseDatasetWatcherQueryVariables = Exact<{ id: Scalars['String']; @@ -2308,7 +2954,7 @@ export type LaunchAccessmodAnalysisMutation = { __typename?: 'Mutation', launchA export type MeQueryVariables = Exact<{ [key: string]: never; }>; -export type MeQuery = { __typename?: 'Query', me: { __typename?: 'Me', user?: { __typename?: 'User', email: string, id: string, firstName?: string | null, lastName?: string | null, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null } }; +export type MeQuery = { __typename?: 'Query', me: { __typename?: 'Me', user?: { __typename?: 'User', email: string, id: any, firstName?: string | null, lastName?: string | null, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null } }; export type LogoutMutationVariables = Exact<{ [key: string]: never; }>; @@ -2377,7 +3023,7 @@ export type SetPasswordMutation = { __typename?: 'Mutation', setPassword: { __ty export type SettingsPageQueryVariables = Exact<{ [key: string]: never; }>; -export type SettingsPageQuery = { __typename?: 'Query', me: { __typename?: 'Me', user?: { __typename?: 'User', id: string, email: string, firstName?: string | null, lastName?: string | null } | null } }; +export type SettingsPageQuery = { __typename?: 'Query', me: { __typename?: 'Me', user?: { __typename?: 'User', id: any, email: string, firstName?: string | null, lastName?: string | null } | null } }; export type RequestAccessMutationVariables = Exact<{ input: RequestAccessmodAccessInput; @@ -2407,7 +3053,7 @@ export type AnalysisDetailPageQueryVariables = Exact<{ }>; -export type AnalysisDetailPageQuery = { __typename?: 'Query', project?: { __typename?: 'AccessmodProject', id: string, name: string } | null, analysis?: { __typename: 'AccessmodAccessibilityAnalysis', id: string, name: string, type: AccessmodAnalysisType, createdAt: any, updatedAt: any, status: AccessmodAnalysisStatus, algorithm?: AccessmodAccessibilityAnalysisAlgorithm | null, stackPriorities?: any | null, movingSpeeds?: any | null, knightMove?: boolean | null, maxTravelTime?: number | null, invertDirection?: boolean | null, waterAllTouched?: boolean | null, owner?: { __typename: 'Team', id: string, name: string } | { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null, permissions: { __typename?: 'AccessmodAnalysisPermissions', update: boolean, delete: boolean, run: boolean }, travelTimes?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, frictionSurface?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, landCover?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, transportNetwork?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, water?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, barrier?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, stack?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, dem?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, healthFacilities?: { __typename?: 'AccessmodFileset', id: string, name: string } | null } | { __typename: 'AccessmodGeographicCoverageAnalysis', id: string, name: string, type: AccessmodAnalysisType, createdAt: any, updatedAt: any, status: AccessmodAnalysisStatus, owner?: { __typename: 'Team', id: string, name: string } | { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null, permissions: { __typename?: 'AccessmodAnalysisPermissions', update: boolean, delete: boolean, run: boolean } } | { __typename: 'AccessmodZonalStatistics', id: string, name: string, type: AccessmodAnalysisType, createdAt: any, updatedAt: any, status: AccessmodAnalysisStatus, timeThresholds?: any | null, owner?: { __typename: 'Team', id: string, name: string } | { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null, permissions: { __typename?: 'AccessmodAnalysisPermissions', update: boolean, delete: boolean, run: boolean }, zonalStatisticsTable?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, zonalStatisticsGeo?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, population?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, travelTimes?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, boundaries?: { __typename?: 'AccessmodFileset', name: string, id: string } | null } | null }; +export type AnalysisDetailPageQuery = { __typename?: 'Query', project?: { __typename?: 'AccessmodProject', id: string, name: string } | null, analysis?: { __typename: 'AccessmodAccessibilityAnalysis', id: string, name: string, type: AccessmodAnalysisType, createdAt: any, updatedAt: any, status: AccessmodAnalysisStatus, algorithm?: AccessmodAccessibilityAnalysisAlgorithm | null, stackPriorities?: any | null, movingSpeeds?: any | null, knightMove?: boolean | null, maxTravelTime?: number | null, invertDirection?: boolean | null, waterAllTouched?: boolean | null, owner?: { __typename: 'Team', id: any, name: string } | { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null, permissions: { __typename?: 'AccessmodAnalysisPermissions', update: boolean, delete: boolean, run: boolean }, travelTimes?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, frictionSurface?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, landCover?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, transportNetwork?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, water?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, barrier?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, stack?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, dem?: { __typename?: 'AccessmodFileset', id: string, name: string } | null, healthFacilities?: { __typename?: 'AccessmodFileset', id: string, name: string } | null } | { __typename: 'AccessmodGeographicCoverageAnalysis', id: string, name: string, type: AccessmodAnalysisType, createdAt: any, updatedAt: any, status: AccessmodAnalysisStatus, owner?: { __typename: 'Team', id: any, name: string } | { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null, permissions: { __typename?: 'AccessmodAnalysisPermissions', update: boolean, delete: boolean, run: boolean } } | { __typename: 'AccessmodZonalStatistics', id: string, name: string, type: AccessmodAnalysisType, createdAt: any, updatedAt: any, status: AccessmodAnalysisStatus, timeThresholds?: any | null, owner?: { __typename: 'Team', id: any, name: string } | { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null, permissions: { __typename?: 'AccessmodAnalysisPermissions', update: boolean, delete: boolean, run: boolean }, zonalStatisticsTable?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, zonalStatisticsGeo?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, population?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, travelTimes?: { __typename?: 'AccessmodFileset', name: string, id: string } | null, boundaries?: { __typename?: 'AccessmodFileset', name: string, id: string } | null } | null }; export type ProjectAnalysesPageQueryVariables = Exact<{ id: Scalars['String']; @@ -2422,7 +3068,7 @@ export type DatasetDetailPageQueryVariables = Exact<{ }>; -export type DatasetDetailPageQuery = { __typename?: 'Query', project?: { __typename?: 'AccessmodProject', id: string, name: string } | null, dataset?: { __typename: 'AccessmodFileset', id: string, name: string, metadata: any, status: AccessmodFilesetStatus, createdAt: any, updatedAt: any, mode: AccessmodFilesetMode, role: { __typename?: 'AccessmodFilesetRole', id: string, name: string, format: AccessmodFilesetFormat, code: AccessmodFilesetRoleCode }, owner?: { __typename: 'Team', id: string, name: string } | { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null, files: Array<{ __typename?: 'AccessmodFile', id: string, name: string, mimeType: string }>, permissions: { __typename?: 'AccessmodFilesetPermissions', delete: boolean, update: boolean } } | null }; +export type DatasetDetailPageQuery = { __typename?: 'Query', project?: { __typename?: 'AccessmodProject', id: string, name: string } | null, dataset?: { __typename: 'AccessmodFileset', id: string, name: string, metadata: any, status: AccessmodFilesetStatus, createdAt: any, updatedAt: any, mode: AccessmodFilesetMode, role: { __typename?: 'AccessmodFilesetRole', id: string, name: string, format: AccessmodFilesetFormat, code: AccessmodFilesetRoleCode }, owner?: { __typename: 'Team', id: any, name: string } | { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null, files: Array<{ __typename?: 'AccessmodFile', id: string, name: string, mimeType: string }>, permissions: { __typename?: 'AccessmodFilesetPermissions', delete: boolean, update: boolean } } | null }; export type ProjectDatasetsPageQueryVariables = Exact<{ id: Scalars['String']; @@ -2431,14 +3077,14 @@ export type ProjectDatasetsPageQueryVariables = Exact<{ export type ProjectDatasetsPageQuery = { __typename?: 'Query', accessmodProject?: { __typename?: 'AccessmodProject', id: string, name: string, permissions: { __typename?: 'AccessmodProjectPermissions', createFileset: boolean } } | null }; -export type ProjectPage_ProjectFragment = { __typename?: 'AccessmodProject', id: string, name: string, crs: number, description: string, createdAt: any, updatedAt: any, spatialResolution: number, permissions: { __typename?: 'AccessmodProjectPermissions', createPermission: boolean, update: boolean, createAnalysis: boolean, createFileset: boolean, delete: boolean }, country: { __typename?: 'Country', name: string, code: string, flag: string }, author: { __typename?: 'User', email: string, displayName: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } }, owner?: { __typename: 'Team', id: string, name: string } | { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null }; +export type ProjectPage_ProjectFragment = { __typename?: 'AccessmodProject', id: string, name: string, crs: number, description: string, createdAt: any, updatedAt: any, spatialResolution: number, permissions: { __typename?: 'AccessmodProjectPermissions', createPermission: boolean, update: boolean, createAnalysis: boolean, createFileset: boolean, delete: boolean }, country: { __typename?: 'Country', name: string, code: string, flag: string }, author: { __typename?: 'User', email: string, displayName: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } }, owner?: { __typename: 'Team', id: any, name: string } | { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null }; export type ProjectPageQueryVariables = Exact<{ id: Scalars['String']; }>; -export type ProjectPageQuery = { __typename?: 'Query', project?: { __typename?: 'AccessmodProject', id: string, name: string, crs: number, description: string, createdAt: any, updatedAt: any, spatialResolution: number, permissions: { __typename?: 'AccessmodProjectPermissions', createPermission: boolean, update: boolean, createAnalysis: boolean, createFileset: boolean, delete: boolean }, country: { __typename?: 'Country', name: string, code: string, flag: string }, author: { __typename?: 'User', email: string, displayName: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } }, owner?: { __typename: 'Team', id: string, name: string } | { __typename: 'User', displayName: string, email: string, id: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null } | null }; +export type ProjectPageQuery = { __typename?: 'Query', project?: { __typename?: 'AccessmodProject', id: string, name: string, crs: number, description: string, createdAt: any, updatedAt: any, spatialResolution: number, permissions: { __typename?: 'AccessmodProjectPermissions', createPermission: boolean, update: boolean, createAnalysis: boolean, createFileset: boolean, delete: boolean }, country: { __typename?: 'Country', name: string, code: string, flag: string }, author: { __typename?: 'User', email: string, displayName: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } }, owner?: { __typename: 'Team', id: any, name: string } | { __typename: 'User', displayName: string, email: string, id: any, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null } | null }; export type ProjectsPageQueryVariables = Exact<{ term?: InputMaybe; @@ -2452,11 +3098,11 @@ export type ProjectsPageQueryVariables = Exact<{ export type ProjectsPageQuery = { __typename?: 'Query', accessmodProjects: { __typename?: 'AccessmodProjectPage', pageNumber: number, totalPages: number, totalItems: number, items: Array<{ __typename: 'AccessmodProject', id: string, name: string, spatialResolution: number, description: string, updatedAt: any, members: Array<{ __typename?: 'AccessmodProjectMember', mode: PermissionMode, user?: { __typename?: 'User', firstName?: string | null, lastName?: string | null, avatar: { __typename?: 'Avatar', initials: string, color: string } } | null, team?: { __typename?: 'Team', name: string } | null }>, country: { __typename?: 'Country', name: string, flag: string, code: string } }> } }; export type TeamPageQueryVariables = Exact<{ - id: Scalars['String']; + id: Scalars['UUID']; }>; -export type TeamPageQuery = { __typename?: 'Query', team?: { __typename?: 'Team', id: string, name: string, createdAt: any, permissions: { __typename?: 'TeamPermissions', createMembership: boolean, update: boolean, delete: boolean } } | null }; +export type TeamPageQuery = { __typename?: 'Query', team?: { __typename?: 'Team', id: any, name: string, createdAt: any, permissions: { __typename?: 'TeamPermissions', createMembership: boolean, update: boolean, delete: boolean } } | null }; export type TeamsPageQueryVariables = Exact<{ page?: InputMaybe; @@ -2464,7 +3110,7 @@ export type TeamsPageQueryVariables = Exact<{ }>; -export type TeamsPageQuery = { __typename?: 'Query', me: { __typename?: 'Me', permissions: { __typename?: 'MePermissions', createTeam: boolean } }, teams: { __typename?: 'TeamPage', pageNumber: number, totalPages: number, totalItems: number, items: Array<{ __typename: 'Team', name: string, id: string, memberships: { __typename?: 'MembershipPage', totalItems: number, items: Array<{ __typename?: 'Membership', role: MembershipRole, user: { __typename?: 'User', id: string, email: string, firstName?: string | null, lastName?: string | null, displayName: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } }> } }> } }; +export type TeamsPageQuery = { __typename?: 'Query', me: { __typename?: 'Me', permissions: { __typename?: 'MePermissions', createTeam: boolean } }, teams: { __typename?: 'TeamPage', pageNumber: number, totalPages: number, totalItems: number, items: Array<{ __typename: 'Team', name: string, id: any, memberships: { __typename?: 'MembershipPage', totalItems: number, items: Array<{ __typename?: 'Membership', role: MembershipRole, user: { __typename?: 'User', id: any, email: string, firstName?: string | null, lastName?: string | null, displayName: string, avatar: { __typename?: 'Avatar', initials: string, color: string } } }> } }> } }; export const Navbar_NavbarFragmentDoc = gql` fragment Navbar_navbar on Query { @@ -3288,7 +3934,7 @@ export type UpdateMembershipMutationHookResult = ReturnType; export type UpdateMembershipMutationOptions = Apollo.BaseMutationOptions; export const TeamMembersTableDocument = gql` - query TeamMembersTable($teamId: String!) { + query TeamMembersTable($teamId: UUID!) { team(id: $teamId) { memberships(page: 1, perPage: 10) { totalItems @@ -5425,7 +6071,7 @@ export type ProjectsPageQueryHookResult = ReturnType; export type ProjectsPageQueryResult = Apollo.QueryResult; export const TeamPageDocument = gql` - query TeamPage($id: String!) { + query TeamPage($id: UUID!) { team(id: $id) { id name diff --git a/src/pages/teams/[teamId].tsx b/src/pages/teams/[teamId].tsx index f4130c4..70f7f20 100644 --- a/src/pages/teams/[teamId].tsx +++ b/src/pages/teams/[teamId].tsx @@ -95,7 +95,7 @@ export const getServerSideProps = createGetServerSideProps({ await client.query({ query: gql` - query TeamPage($id: String!) { + query TeamPage($id: UUID!) { team(id: $id) { id name