diff --git a/packages/twenty-front/codegen-metadata.cjs b/packages/twenty-front/codegen-metadata.cjs index 9f3aeb4bf..5f4150073 100644 --- a/packages/twenty-front/codegen-metadata.cjs +++ b/packages/twenty-front/codegen-metadata.cjs @@ -5,20 +5,43 @@ module.exports = { (process.env.REACT_APP_SERVER_BASE_URL ?? 'http://localhost:3000') + '/metadata', documents: [ - './src/modules/databases/graphql/**/*.ts', - './src/modules/object-metadata/graphql/*.ts', - './src/modules/settings/serverless-functions/graphql/**/*.ts', - './src/modules/object-record/graphql/*.tsx', - './src/modules/metadata/graphql/*.ts', + './src/modules/auth/graphql/**/*.{ts,tsx}', + './src/modules/users/graphql/**/*.{ts,tsx}', + + './src/modules/workspace/graphql/**/*.{ts,tsx}', + './src/modules/workspace-member/graphql/**/*.{ts,tsx}', + './src/modules/workspace-invitation/graphql/**/*.{ts,tsx}', + + './src/modules/billing/graphql/**/*.{ts,tsx}', + './src/modules/settings/**/graphql/**/*.{ts,tsx}', + + './src/modules/databases/graphql/**/*.{ts,tsx}', + './src/modules/workflow/**/graphql/**/*.{ts,tsx}', + './src/modules/analytics/graphql/**/*.{ts,tsx}', + './src/modules/object-metadata/graphql/**/*.{ts,tsx}', + './src/modules/attachments/graphql/**/*.{ts,tsx}', + './src/modules/onboarding/graphql/**/*.{ts,tsx}', + + '!./src/**/*.test.{ts,tsx}', + '!./src/**/*.stories.{ts,tsx}', + '!./src/**/__mocks__/*.ts', ], overwrite: true, generates: { - './src/generated-metadata/': { - preset: 'client', - presetConfig: { - fragmentMasking: false, - }, + './src/generated-metadata/graphql.ts': { + plugins: [ + 'typescript', + 'typescript-operations', + 'typescript-react-apollo', + ], config: { + skipTypename: false, + withHooks: true, + withHOC: false, + withComponent: false, + scalars: { + DateTime: 'string', + }, namingConvention: { enumValues: 'keep' }, }, }, diff --git a/packages/twenty-front/codegen.cjs b/packages/twenty-front/codegen.cjs index 80b74d6a2..b1d3d0c4e 100644 --- a/packages/twenty-front/codegen.cjs +++ b/packages/twenty-front/codegen.cjs @@ -5,20 +5,27 @@ module.exports = { (process.env.REACT_APP_SERVER_BASE_URL ?? 'http://localhost:3000') + '/graphql', documents: [ - '!./src/modules/databases/**', - '!./src/modules/object-metadata/**', - '!./src/modules/object-record/**', - '!./src/modules/settings/serverless-functions/**', - '!./src/modules/settings/accounts/hooks/**', - './src/modules/**/*.tsx', - './src/modules/**/*.ts', - '!./src/**/*.test.tsx', - '!./src/**/*.stories.tsx', + './src/modules/activities/graphql/**/*.{ts,tsx}', + './src/modules/companies/graphql/**/*.{ts,tsx}', + './src/modules/people/graphql/**/*.{ts,tsx}', + './src/modules/opportunities/graphql/**/*.{ts,tsx}', + + './src/modules/search/graphql/**/*.{ts,tsx}', + './src/modules/views/graphql/**/*.{ts,tsx}', + './src/modules/favorites/graphql/**/*.{ts,tsx}', + './src/modules/spreadsheet-import/graphql/**/*.{ts,tsx}', + './src/modules/command-menu/graphql/**/*.{ts,tsx}', + + './src/modules/prefetch/graphql/**/*.{ts,tsx}', + './src/modules/subscription/graphql/**/*.{ts,tsx}', + + '!./src/**/*.test.{ts,tsx}', + '!./src/**/*.stories.{ts,tsx}', '!./src/**/__mocks__/*.ts', ], overwrite: true, generates: { - './src/generated/graphql.tsx': { + './src/generated/graphql.ts': { plugins: [ 'typescript', 'typescript-operations', diff --git a/packages/twenty-front/src/generated-metadata/gql.ts b/packages/twenty-front/src/generated-metadata/gql.ts deleted file mode 100644 index d08157cb0..000000000 --- a/packages/twenty-front/src/generated-metadata/gql.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* eslint-disable */ -import * as types from './graphql'; -import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; - -/** - * Map of all GraphQL operations in the project. - * - * This map has several performance disadvantages: - * 1. It is not tree-shakeable, so it will include all operations in the project. - * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle. - * 3. It does not support dead code elimination, so it will add unused operations. - * - * Therefore it is highly recommended to use the babel or swc plugin for production. - */ -const documents = { - "\n fragment RemoteServerFields on RemoteServer {\n id\n createdAt\n foreignDataWrapperId\n foreignDataWrapperOptions\n foreignDataWrapperType\n userMappingOptions {\n user\n }\n updatedAt\n schema\n label\n }\n": types.RemoteServerFieldsFragmentDoc, - "\n fragment RemoteTableFields on RemoteTable {\n id\n name\n schema\n status\n schemaPendingUpdates\n }\n": types.RemoteTableFieldsFragmentDoc, - "\n \n mutation createServer($input: CreateRemoteServerInput!) {\n createOneRemoteServer(input: $input) {\n ...RemoteServerFields\n }\n }\n": types.CreateServerDocument, - "\n mutation deleteServer($input: RemoteServerIdInput!) {\n deleteOneRemoteServer(input: $input) {\n id\n }\n }\n": types.DeleteServerDocument, - "\n \n mutation syncRemoteTable($input: RemoteTableInput!) {\n syncRemoteTable(input: $input) {\n ...RemoteTableFields\n }\n }\n": types.SyncRemoteTableDocument, - "\n \n mutation syncRemoteTableSchemaChanges($input: RemoteTableInput!) {\n syncRemoteTableSchemaChanges(input: $input) {\n ...RemoteTableFields\n }\n }\n": types.SyncRemoteTableSchemaChangesDocument, - "\n \n mutation unsyncRemoteTable($input: RemoteTableInput!) {\n unsyncRemoteTable(input: $input) {\n ...RemoteTableFields\n }\n }\n": types.UnsyncRemoteTableDocument, - "\n \n mutation updateServer($input: UpdateRemoteServerInput!) {\n updateOneRemoteServer(input: $input) {\n ...RemoteServerFields\n }\n }\n": types.UpdateServerDocument, - "\n \n query GetManyDatabaseConnections($input: RemoteServerTypeInput!) {\n findManyRemoteServersByType(input: $input) {\n ...RemoteServerFields\n }\n }\n": types.GetManyDatabaseConnectionsDocument, - "\n \n query GetManyRemoteTables($input: FindManyRemoteTablesInput!) {\n findDistantTablesWithStatus(input: $input) {\n ...RemoteTableFields\n }\n }\n": types.GetManyRemoteTablesDocument, - "\n \n query GetOneDatabaseConnection($input: RemoteServerIdInput!) {\n findOneRemoteServerById(input: $input) {\n ...RemoteServerFields\n }\n }\n": types.GetOneDatabaseConnectionDocument, - "\n mutation CreateOneObjectMetadataItem($input: CreateOneObjectInput!) {\n createOneObject(input: $input) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n isSearchable\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n isLabelSyncedWithName\n }\n }\n": types.CreateOneObjectMetadataItemDocument, - "\n mutation CreateOneFieldMetadataItem($input: CreateOneFieldMetadataInput!) {\n createOneField(input: $input) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n defaultValue\n options\n isLabelSyncedWithName\n }\n }\n": types.CreateOneFieldMetadataItemDocument, - "\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n isLabelSyncedWithName\n }\n }\n": types.UpdateOneFieldMetadataItemDocument, - "\n mutation UpdateOneObjectMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateObjectPayload!\n ) {\n updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n isSearchable\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n isLabelSyncedWithName\n }\n }\n": types.UpdateOneObjectMetadataItemDocument, - "\n mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n isSearchable\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n isLabelSyncedWithName\n }\n }\n": types.DeleteOneObjectMetadataItemDocument, - "\n mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n }\n }\n": types.DeleteOneFieldMetadataItemDocument, - "\n query ObjectMetadataItems {\n objects(paging: { first: 1000 }) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n shortcut\n isLabelSyncedWithName\n isSearchable\n duplicateCriteria\n indexMetadataList {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadataList {\n id\n fieldMetadataId\n createdAt\n updatedAt\n order\n }\n }\n fieldsList {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n isLabelSyncedWithName\n relation {\n type\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n": types.ObjectMetadataItemsDocument, - "\n fragment ServerlessFunctionFields on ServerlessFunction {\n id\n name\n description\n runtime\n timeoutSeconds\n latestVersion\n latestVersionInputSchema\n publishedVersions\n createdAt\n updatedAt\n }\n": types.ServerlessFunctionFieldsFragmentDoc, - "\n \n mutation CreateOneServerlessFunctionItem(\n $input: CreateServerlessFunctionInput!\n ) {\n createOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n": types.CreateOneServerlessFunctionItemDocument, - "\n \n mutation DeleteOneServerlessFunction($input: ServerlessFunctionIdInput!) {\n deleteOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n": types.DeleteOneServerlessFunctionDocument, - "\n mutation ExecuteOneServerlessFunction(\n $input: ExecuteServerlessFunctionInput!\n ) {\n executeOneServerlessFunction(input: $input) {\n data\n logs\n duration\n status\n error\n }\n }\n": types.ExecuteOneServerlessFunctionDocument, - "\n \n mutation PublishOneServerlessFunction(\n $input: PublishServerlessFunctionInput!\n ) {\n publishServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n": types.PublishOneServerlessFunctionDocument, - "\n \n mutation UpdateOneServerlessFunction($input: UpdateServerlessFunctionInput!) {\n updateOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n": types.UpdateOneServerlessFunctionDocument, - "\n query FindManyAvailablePackages($input: ServerlessFunctionIdInput!) {\n getAvailablePackages(input: $input)\n }\n": types.FindManyAvailablePackagesDocument, - "\n \n query GetManyServerlessFunctions {\n findManyServerlessFunctions {\n ...ServerlessFunctionFields\n }\n }\n": types.GetManyServerlessFunctionsDocument, - "\n \n query GetOneServerlessFunction($input: ServerlessFunctionIdInput!) {\n findOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n": types.GetOneServerlessFunctionDocument, - "\n query FindOneServerlessFunctionSourceCode(\n $input: GetServerlessFunctionSourceCodeInput!\n ) {\n getServerlessFunctionSourceCode(input: $input)\n }\n": types.FindOneServerlessFunctionSourceCodeDocument, -}; - -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - * - * - * @example - * ```ts - * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`); - * ``` - * - * The query argument is unknown! - * Please regenerate the types. - */ -export function graphql(source: string): unknown; - -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n fragment RemoteServerFields on RemoteServer {\n id\n createdAt\n foreignDataWrapperId\n foreignDataWrapperOptions\n foreignDataWrapperType\n userMappingOptions {\n user\n }\n updatedAt\n schema\n label\n }\n"): (typeof documents)["\n fragment RemoteServerFields on RemoteServer {\n id\n createdAt\n foreignDataWrapperId\n foreignDataWrapperOptions\n foreignDataWrapperType\n userMappingOptions {\n user\n }\n updatedAt\n schema\n label\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n fragment RemoteTableFields on RemoteTable {\n id\n name\n schema\n status\n schemaPendingUpdates\n }\n"): (typeof documents)["\n fragment RemoteTableFields on RemoteTable {\n id\n name\n schema\n status\n schemaPendingUpdates\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n mutation createServer($input: CreateRemoteServerInput!) {\n createOneRemoteServer(input: $input) {\n ...RemoteServerFields\n }\n }\n"): (typeof documents)["\n \n mutation createServer($input: CreateRemoteServerInput!) {\n createOneRemoteServer(input: $input) {\n ...RemoteServerFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n mutation deleteServer($input: RemoteServerIdInput!) {\n deleteOneRemoteServer(input: $input) {\n id\n }\n }\n"): (typeof documents)["\n mutation deleteServer($input: RemoteServerIdInput!) {\n deleteOneRemoteServer(input: $input) {\n id\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n mutation syncRemoteTable($input: RemoteTableInput!) {\n syncRemoteTable(input: $input) {\n ...RemoteTableFields\n }\n }\n"): (typeof documents)["\n \n mutation syncRemoteTable($input: RemoteTableInput!) {\n syncRemoteTable(input: $input) {\n ...RemoteTableFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n mutation syncRemoteTableSchemaChanges($input: RemoteTableInput!) {\n syncRemoteTableSchemaChanges(input: $input) {\n ...RemoteTableFields\n }\n }\n"): (typeof documents)["\n \n mutation syncRemoteTableSchemaChanges($input: RemoteTableInput!) {\n syncRemoteTableSchemaChanges(input: $input) {\n ...RemoteTableFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n mutation unsyncRemoteTable($input: RemoteTableInput!) {\n unsyncRemoteTable(input: $input) {\n ...RemoteTableFields\n }\n }\n"): (typeof documents)["\n \n mutation unsyncRemoteTable($input: RemoteTableInput!) {\n unsyncRemoteTable(input: $input) {\n ...RemoteTableFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n mutation updateServer($input: UpdateRemoteServerInput!) {\n updateOneRemoteServer(input: $input) {\n ...RemoteServerFields\n }\n }\n"): (typeof documents)["\n \n mutation updateServer($input: UpdateRemoteServerInput!) {\n updateOneRemoteServer(input: $input) {\n ...RemoteServerFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n query GetManyDatabaseConnections($input: RemoteServerTypeInput!) {\n findManyRemoteServersByType(input: $input) {\n ...RemoteServerFields\n }\n }\n"): (typeof documents)["\n \n query GetManyDatabaseConnections($input: RemoteServerTypeInput!) {\n findManyRemoteServersByType(input: $input) {\n ...RemoteServerFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n query GetManyRemoteTables($input: FindManyRemoteTablesInput!) {\n findDistantTablesWithStatus(input: $input) {\n ...RemoteTableFields\n }\n }\n"): (typeof documents)["\n \n query GetManyRemoteTables($input: FindManyRemoteTablesInput!) {\n findDistantTablesWithStatus(input: $input) {\n ...RemoteTableFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n query GetOneDatabaseConnection($input: RemoteServerIdInput!) {\n findOneRemoteServerById(input: $input) {\n ...RemoteServerFields\n }\n }\n"): (typeof documents)["\n \n query GetOneDatabaseConnection($input: RemoteServerIdInput!) {\n findOneRemoteServerById(input: $input) {\n ...RemoteServerFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n mutation CreateOneObjectMetadataItem($input: CreateOneObjectInput!) {\n createOneObject(input: $input) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n isSearchable\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n isLabelSyncedWithName\n }\n }\n"): (typeof documents)["\n mutation CreateOneObjectMetadataItem($input: CreateOneObjectInput!) {\n createOneObject(input: $input) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n isSearchable\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n isLabelSyncedWithName\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n mutation CreateOneFieldMetadataItem($input: CreateOneFieldMetadataInput!) {\n createOneField(input: $input) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n defaultValue\n options\n isLabelSyncedWithName\n }\n }\n"): (typeof documents)["\n mutation CreateOneFieldMetadataItem($input: CreateOneFieldMetadataInput!) {\n createOneField(input: $input) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n defaultValue\n options\n isLabelSyncedWithName\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n isLabelSyncedWithName\n }\n }\n"): (typeof documents)["\n mutation UpdateOneFieldMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateFieldInput!\n ) {\n updateOneField(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n isLabelSyncedWithName\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n mutation UpdateOneObjectMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateObjectPayload!\n ) {\n updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n isSearchable\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n isLabelSyncedWithName\n }\n }\n"): (typeof documents)["\n mutation UpdateOneObjectMetadataItem(\n $idToUpdate: UUID!\n $updatePayload: UpdateObjectPayload!\n ) {\n updateOneObject(input: { id: $idToUpdate, update: $updatePayload }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n isSearchable\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n isLabelSyncedWithName\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n isSearchable\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n isLabelSyncedWithName\n }\n }\n"): (typeof documents)["\n mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n isSearchable\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n isLabelSyncedWithName\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n }\n }\n"): (typeof documents)["\n mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n query ObjectMetadataItems {\n objects(paging: { first: 1000 }) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n shortcut\n isLabelSyncedWithName\n isSearchable\n duplicateCriteria\n indexMetadataList {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadataList {\n id\n fieldMetadataId\n createdAt\n updatedAt\n order\n }\n }\n fieldsList {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n isLabelSyncedWithName\n relation {\n type\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"): (typeof documents)["\n query ObjectMetadataItems {\n objects(paging: { first: 1000 }) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n shortcut\n isLabelSyncedWithName\n isSearchable\n duplicateCriteria\n indexMetadataList {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadataList {\n id\n fieldMetadataId\n createdAt\n updatedAt\n order\n }\n }\n fieldsList {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n isLabelSyncedWithName\n relation {\n type\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n fragment ServerlessFunctionFields on ServerlessFunction {\n id\n name\n description\n runtime\n timeoutSeconds\n latestVersion\n latestVersionInputSchema\n publishedVersions\n createdAt\n updatedAt\n }\n"): (typeof documents)["\n fragment ServerlessFunctionFields on ServerlessFunction {\n id\n name\n description\n runtime\n timeoutSeconds\n latestVersion\n latestVersionInputSchema\n publishedVersions\n createdAt\n updatedAt\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n mutation CreateOneServerlessFunctionItem(\n $input: CreateServerlessFunctionInput!\n ) {\n createOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n"): (typeof documents)["\n \n mutation CreateOneServerlessFunctionItem(\n $input: CreateServerlessFunctionInput!\n ) {\n createOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n mutation DeleteOneServerlessFunction($input: ServerlessFunctionIdInput!) {\n deleteOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n"): (typeof documents)["\n \n mutation DeleteOneServerlessFunction($input: ServerlessFunctionIdInput!) {\n deleteOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n mutation ExecuteOneServerlessFunction(\n $input: ExecuteServerlessFunctionInput!\n ) {\n executeOneServerlessFunction(input: $input) {\n data\n logs\n duration\n status\n error\n }\n }\n"): (typeof documents)["\n mutation ExecuteOneServerlessFunction(\n $input: ExecuteServerlessFunctionInput!\n ) {\n executeOneServerlessFunction(input: $input) {\n data\n logs\n duration\n status\n error\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n mutation PublishOneServerlessFunction(\n $input: PublishServerlessFunctionInput!\n ) {\n publishServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n"): (typeof documents)["\n \n mutation PublishOneServerlessFunction(\n $input: PublishServerlessFunctionInput!\n ) {\n publishServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n mutation UpdateOneServerlessFunction($input: UpdateServerlessFunctionInput!) {\n updateOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n"): (typeof documents)["\n \n mutation UpdateOneServerlessFunction($input: UpdateServerlessFunctionInput!) {\n updateOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n query FindManyAvailablePackages($input: ServerlessFunctionIdInput!) {\n getAvailablePackages(input: $input)\n }\n"): (typeof documents)["\n query FindManyAvailablePackages($input: ServerlessFunctionIdInput!) {\n getAvailablePackages(input: $input)\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n query GetManyServerlessFunctions {\n findManyServerlessFunctions {\n ...ServerlessFunctionFields\n }\n }\n"): (typeof documents)["\n \n query GetManyServerlessFunctions {\n findManyServerlessFunctions {\n ...ServerlessFunctionFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n \n query GetOneServerlessFunction($input: ServerlessFunctionIdInput!) {\n findOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n"): (typeof documents)["\n \n query GetOneServerlessFunction($input: ServerlessFunctionIdInput!) {\n findOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n"]; -/** - * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function graphql(source: "\n query FindOneServerlessFunctionSourceCode(\n $input: GetServerlessFunctionSourceCodeInput!\n ) {\n getServerlessFunctionSourceCode(input: $input)\n }\n"): (typeof documents)["\n query FindOneServerlessFunctionSourceCode(\n $input: GetServerlessFunctionSourceCodeInput!\n ) {\n getServerlessFunctionSourceCode(input: $input)\n }\n"]; - -export function graphql(source: string) { - return (documents as any)[source] ?? {}; -} - -export type DocumentType> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never; \ No newline at end of file diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts index 8a3d0cac8..c23a8fcab 100644 --- a/packages/twenty-front/src/generated-metadata/graphql.ts +++ b/packages/twenty-front/src/generated-metadata/graphql.ts @@ -1,50 +1,42 @@ -/* eslint-disable */ -import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; +import { gql } from '@apollo/client'; +import * as Apollo from '@apollo/client'; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; -export type MakeEmpty = { [_ in K]?: never }; -export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string; } - String: { input: string; output: string; } - Boolean: { input: boolean; output: boolean; } - Int: { input: number; output: number; } - Float: { input: number; output: number; } - /** Cursor for paging through collections */ - ConnectionCursor: { input: any; output: any; } - /** Date custom scalar type */ - Date: { input: any; output: any; } - /** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */ - DateTime: { input: any; output: any; } - /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSON: { input: any; output: any; } - /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSONObject: { input: any; output: any; } - /** A UUID scalar type */ - UUID: { input: any; output: any; } - /** The `Upload` scalar type represents a file upload. */ - Upload: { input: any; output: any; } + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + ConnectionCursor: any; + Date: any; + DateTime: string; + JSON: any; + JSONObject: any; + UUID: any; + Upload: any; }; export type AccountType = { - type: Scalars['String']['input']; + type: Scalars['String']; }; export type ActivateWorkspaceInput = { - displayName?: InputMaybe; + displayName?: InputMaybe; }; export type AdminPanelHealthServiceData = { __typename?: 'AdminPanelHealthServiceData'; - description: Scalars['String']['output']; - details?: Maybe; - errorMessage?: Maybe; - id: Scalars['String']['output']; - label: Scalars['String']['output']; + description: Scalars['String']; + details?: Maybe; + errorMessage?: Maybe; + id: Scalars['String']; + label: Scalars['String']; queues?: Maybe>; status: AdminPanelHealthServiceStatus; }; @@ -56,33 +48,33 @@ export enum AdminPanelHealthServiceStatus { export type AdminPanelWorkerQueueHealth = { __typename?: 'AdminPanelWorkerQueueHealth'; - id: Scalars['String']['output']; - queueName: Scalars['String']['output']; + id: Scalars['String']; + queueName: Scalars['String']; status: AdminPanelHealthServiceStatus; }; export type Agent = { __typename?: 'Agent'; - createdAt: Scalars['DateTime']['output']; - description?: Maybe; - id: Scalars['UUID']['output']; - modelId: Scalars['String']['output']; - name: Scalars['String']['output']; - prompt: Scalars['String']['output']; - responseFormat?: Maybe; - roleId?: Maybe; - updatedAt: Scalars['DateTime']['output']; + createdAt: Scalars['DateTime']; + description?: Maybe; + id: Scalars['UUID']; + modelId: Scalars['String']; + name: Scalars['String']; + prompt: Scalars['String']; + responseFormat?: Maybe; + roleId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type AgentIdInput = { /** The id of the agent. */ - id: Scalars['UUID']['input']; + id: Scalars['UUID']; }; export type Analytics = { __typename?: 'Analytics'; /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']['output']; + success: Scalars['Boolean']; }; export enum AnalyticsType { @@ -92,52 +84,52 @@ export enum AnalyticsType { export type ApiConfig = { __typename?: 'ApiConfig'; - mutationMaximumAffectedRecords: Scalars['Float']['output']; + mutationMaximumAffectedRecords: Scalars['Float']; }; export type ApiKeyToken = { __typename?: 'ApiKeyToken'; - token: Scalars['String']['output']; + token: Scalars['String']; }; export type AppToken = { __typename?: 'AppToken'; - createdAt: Scalars['DateTime']['output']; - expiresAt: Scalars['DateTime']['output']; - id: Scalars['UUID']['output']; - type: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + createdAt: Scalars['DateTime']; + expiresAt: Scalars['DateTime']; + id: Scalars['UUID']; + type: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AppTokenEdge = { __typename?: 'AppTokenEdge'; /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']['output']; + cursor: Scalars['ConnectionCursor']; /** The node containing the AppToken */ node: AppToken; }; export type ApprovedAccessDomain = { __typename?: 'ApprovedAccessDomain'; - createdAt: Scalars['DateTime']['output']; - domain: Scalars['String']['output']; - id: Scalars['UUID']['output']; - isValidated: Scalars['Boolean']['output']; + createdAt: Scalars['DateTime']; + domain: Scalars['String']; + id: Scalars['UUID']; + isValidated: Scalars['Boolean']; }; export type AuthProviders = { __typename?: 'AuthProviders'; - google: Scalars['Boolean']['output']; - magicLink: Scalars['Boolean']['output']; - microsoft: Scalars['Boolean']['output']; - password: Scalars['Boolean']['output']; + google: Scalars['Boolean']; + magicLink: Scalars['Boolean']; + microsoft: Scalars['Boolean']; + password: Scalars['Boolean']; sso: Array; }; export type AuthToken = { __typename?: 'AuthToken'; - expiresAt: Scalars['DateTime']['output']; - token: Scalars['String']['output']; + expiresAt: Scalars['DateTime']; + token: Scalars['String']; }; export type AuthTokenPair = { @@ -153,17 +145,17 @@ export type AuthTokens = { export type AuthorizeApp = { __typename?: 'AuthorizeApp'; - redirectUrl: Scalars['String']['output']; + redirectUrl: Scalars['String']; }; export type AvailableWorkspace = { __typename?: 'AvailableWorkspace'; - displayName?: Maybe; - id: Scalars['String']['output']; - inviteHash?: Maybe; - loginToken?: Maybe; - logo?: Maybe; - personalInviteToken?: Maybe; + displayName?: Maybe; + id: Scalars['String']; + inviteHash?: Maybe; + loginToken?: Maybe; + logo?: Maybe; + personalInviteToken?: Maybe; sso: Array; workspaceUrls: WorkspaceUrls; }; @@ -182,29 +174,29 @@ export type AvailableWorkspacesAndAccessTokensOutput = { export type Billing = { __typename?: 'Billing'; - billingUrl?: Maybe; - isBillingEnabled: Scalars['Boolean']['output']; + billingUrl?: Maybe; + isBillingEnabled: Scalars['Boolean']; trialPeriods: Array; }; export type BillingEndTrialPeriodOutput = { __typename?: 'BillingEndTrialPeriodOutput'; /** Boolean that confirms if a payment method was found */ - hasPaymentMethod: Scalars['Boolean']['output']; + hasPaymentMethod: Scalars['Boolean']; /** Updated subscription status */ status?: Maybe; }; export type BillingMeteredProductUsageOutput = { __typename?: 'BillingMeteredProductUsageOutput'; - freeTierQuantity: Scalars['Float']['output']; - freeTrialQuantity: Scalars['Float']['output']; - periodEnd: Scalars['DateTime']['output']; - periodStart: Scalars['DateTime']['output']; + freeTierQuantity: Scalars['Float']; + freeTrialQuantity: Scalars['Float']; + periodEnd: Scalars['DateTime']; + periodStart: Scalars['DateTime']; productKey: BillingProductKey; - totalCostCents: Scalars['Float']['output']; - unitPriceCents: Scalars['Float']['output']; - usageQuantity: Scalars['Float']['output']; + totalCostCents: Scalars['Float']; + unitPriceCents: Scalars['Float']; + usageQuantity: Scalars['Float']; }; /** The different billing plans available */ @@ -225,24 +217,24 @@ export type BillingPriceLicensedDto = { __typename?: 'BillingPriceLicensedDTO'; priceUsageType: BillingUsageType; recurringInterval: SubscriptionInterval; - stripePriceId: Scalars['String']['output']; - unitAmount: Scalars['Float']['output']; + stripePriceId: Scalars['String']; + unitAmount: Scalars['Float']; }; export type BillingPriceMeteredDto = { __typename?: 'BillingPriceMeteredDTO'; priceUsageType: BillingUsageType; recurringInterval: SubscriptionInterval; - stripePriceId: Scalars['String']['output']; + stripePriceId: Scalars['String']; tiers?: Maybe>; tiersMode?: Maybe; }; export type BillingPriceTierDto = { __typename?: 'BillingPriceTierDTO'; - flatAmount?: Maybe; - unitAmount?: Maybe; - upTo?: Maybe; + flatAmount?: Maybe; + unitAmount?: Maybe; + upTo?: Maybe; }; /** The different billing price tiers modes */ @@ -255,10 +247,10 @@ export type BillingPriceUnionDto = BillingPriceLicensedDto | BillingPriceMetered export type BillingProduct = { __typename?: 'BillingProduct'; - description: Scalars['String']['output']; - images?: Maybe>; + description: Scalars['String']; + images?: Maybe>; metadata: BillingProductMetadata; - name: Scalars['String']['output']; + name: Scalars['String']; prices?: Maybe>; }; @@ -277,36 +269,36 @@ export type BillingProductMetadata = { export type BillingSessionOutput = { __typename?: 'BillingSessionOutput'; - url?: Maybe; + url?: Maybe; }; export type BillingSubscription = { __typename?: 'BillingSubscription'; billingSubscriptionItems?: Maybe>; - id: Scalars['UUID']['output']; + id: Scalars['UUID']; interval?: Maybe; - metadata: Scalars['JSON']['output']; + metadata: Scalars['JSON']; status: SubscriptionStatus; }; export type BillingSubscriptionItem = { __typename?: 'BillingSubscriptionItem'; billingProduct?: Maybe; - hasReachedCurrentPeriodCap: Scalars['Boolean']['output']; - id: Scalars['UUID']['output']; - quantity?: Maybe; + hasReachedCurrentPeriodCap: Scalars['Boolean']; + id: Scalars['UUID']; + quantity?: Maybe; }; export type BillingTrialPeriodDto = { __typename?: 'BillingTrialPeriodDTO'; - duration: Scalars['Float']['output']; - isCreditCardRequired: Scalars['Boolean']['output']; + duration: Scalars['Float']; + isCreditCardRequired: Scalars['Boolean']; }; export type BillingUpdateOutput = { __typename?: 'BillingUpdateOutput'; /** Boolean that confirms query was successful */ - success: Scalars['Boolean']['output']; + success: Scalars['Boolean']; }; export enum BillingUsageType { @@ -315,8 +307,8 @@ export enum BillingUsageType { } export type BooleanFieldComparison = { - is?: InputMaybe; - isNot?: InputMaybe; + is?: InputMaybe; + isNot?: InputMaybe; }; export enum CalendarChannelVisibility { @@ -327,7 +319,7 @@ export enum CalendarChannelVisibility { export type Captcha = { __typename?: 'Captcha'; provider?: Maybe; - siteKey?: Maybe; + siteKey?: Maybe; }; export enum CaptchaDriverType { @@ -337,23 +329,23 @@ export enum CaptchaDriverType { export type CheckUserExistOutput = { __typename?: 'CheckUserExistOutput'; - availableWorkspacesCount: Scalars['Float']['output']; - exists: Scalars['Boolean']['output']; - isEmailVerified: Scalars['Boolean']['output']; + availableWorkspacesCount: Scalars['Float']; + exists: Scalars['Boolean']; + isEmailVerified: Scalars['Boolean']; }; export type ClientAiModelConfig = { __typename?: 'ClientAIModelConfig'; - inputCostPer1kTokensInCredits: Scalars['Float']['output']; - label: Scalars['String']['output']; - modelId: Scalars['String']['output']; - outputCostPer1kTokensInCredits: Scalars['Float']['output']; + inputCostPer1kTokensInCredits: Scalars['Float']; + label: Scalars['String']; + modelId: Scalars['String']; + outputCostPer1kTokensInCredits: Scalars['Float']; provider: ModelProvider; }; export type ComputeStepOutputSchemaInput = { /** Step JSON format */ - step: Scalars['JSON']['input']; + step: Scalars['JSON']; }; export enum ConfigSource { @@ -364,14 +356,14 @@ export enum ConfigSource { export type ConfigVariable = { __typename?: 'ConfigVariable'; - description: Scalars['String']['output']; - isEnvOnly: Scalars['Boolean']['output']; - isSensitive: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - options?: Maybe; + description: Scalars['String']; + isEnvOnly: Scalars['Boolean']; + isSensitive: Scalars['Boolean']; + name: Scalars['String']; + options?: Maybe; source: ConfigSource; type: ConfigVariableType; - value?: Maybe; + value?: Maybe; }; export enum ConfigVariableType { @@ -406,8 +398,8 @@ export enum ConfigVariablesGroup { export type ConfigVariablesGroupData = { __typename?: 'ConfigVariablesGroupData'; - description: Scalars['String']['output']; - isHiddenOnLoad: Scalars['Boolean']['output']; + description: Scalars['String']; + isHiddenOnLoad: Scalars['Boolean']; name: ConfigVariablesGroup; variables: Array; }; @@ -419,86 +411,86 @@ export type ConfigVariablesOutput = { export type ConnectedImapSmtpCaldavAccount = { __typename?: 'ConnectedImapSmtpCaldavAccount'; - accountOwnerId: Scalars['String']['output']; + accountOwnerId: Scalars['String']; connectionParameters?: Maybe; - handle: Scalars['String']['output']; - id: Scalars['String']['output']; - provider: Scalars['String']['output']; + handle: Scalars['String']; + id: Scalars['String']; + provider: Scalars['String']; }; export type ConnectionParameters = { - host: Scalars['String']['input']; - password: Scalars['String']['input']; - port: Scalars['Float']['input']; - secure?: InputMaybe; - username: Scalars['String']['input']; + host: Scalars['String']; + password: Scalars['String']; + port: Scalars['Float']; + secure?: InputMaybe; + username: Scalars['String']; }; export type ConnectionParametersOutput = { __typename?: 'ConnectionParametersOutput'; - host: Scalars['String']['output']; - password: Scalars['String']['output']; - port: Scalars['Float']['output']; - secure?: Maybe; - username: Scalars['String']['output']; + host: Scalars['String']; + password: Scalars['String']; + port: Scalars['Float']; + secure?: Maybe; + username: Scalars['String']; }; export type CreateAgentInput = { - description?: InputMaybe; - modelId: Scalars['String']['input']; - name: Scalars['String']['input']; - prompt: Scalars['String']['input']; - responseFormat?: InputMaybe; + description?: InputMaybe; + modelId: Scalars['String']; + name: Scalars['String']; + prompt: Scalars['String']; + responseFormat?: InputMaybe; }; export type CreateAppTokenInput = { - expiresAt: Scalars['DateTime']['input']; + expiresAt: Scalars['DateTime']; }; export type CreateApprovedAccessDomainInput = { - domain: Scalars['String']['input']; - email: Scalars['String']['input']; + domain: Scalars['String']; + email: Scalars['String']; }; export type CreateDraftFromWorkflowVersionInput = { /** Workflow ID */ - workflowId: Scalars['String']['input']; + workflowId: Scalars['String']; /** Workflow version ID */ - workflowVersionIdToCopy: Scalars['String']['input']; + workflowVersionIdToCopy: Scalars['String']; }; export type CreateFieldInput = { - defaultValue?: InputMaybe; - description?: InputMaybe; - icon?: InputMaybe; - isActive?: InputMaybe; - isCustom?: InputMaybe; - isLabelSyncedWithName?: InputMaybe; - isNullable?: InputMaybe; - isRemoteCreation?: InputMaybe; - isSystem?: InputMaybe; - isUnique?: InputMaybe; - label: Scalars['String']['input']; - name: Scalars['String']['input']; - objectMetadataId: Scalars['String']['input']; - options?: InputMaybe; - relationCreationPayload?: InputMaybe; - settings?: InputMaybe; + defaultValue?: InputMaybe; + description?: InputMaybe; + icon?: InputMaybe; + isActive?: InputMaybe; + isCustom?: InputMaybe; + isLabelSyncedWithName?: InputMaybe; + isNullable?: InputMaybe; + isRemoteCreation?: InputMaybe; + isSystem?: InputMaybe; + isUnique?: InputMaybe; + label: Scalars['String']; + name: Scalars['String']; + objectMetadataId: Scalars['String']; + options?: InputMaybe; + relationCreationPayload?: InputMaybe; + settings?: InputMaybe; type: FieldMetadataType; }; export type CreateObjectInput = { - description?: InputMaybe; - icon?: InputMaybe; - isLabelSyncedWithName?: InputMaybe; - isRemote?: InputMaybe; - labelPlural: Scalars['String']['input']; - labelSingular: Scalars['String']['input']; - namePlural: Scalars['String']['input']; - nameSingular: Scalars['String']['input']; - primaryKeyColumnType?: InputMaybe; - primaryKeyFieldMetadataSettings?: InputMaybe; - shortcut?: InputMaybe; + description?: InputMaybe; + icon?: InputMaybe; + isLabelSyncedWithName?: InputMaybe; + isRemote?: InputMaybe; + labelPlural: Scalars['String']; + labelSingular: Scalars['String']; + namePlural: Scalars['String']; + nameSingular: Scalars['String']; + primaryKeyColumnType?: InputMaybe; + primaryKeyFieldMetadataSettings?: InputMaybe; + shortcut?: InputMaybe; }; export type CreateOneAppTokenInput = { @@ -517,66 +509,66 @@ export type CreateOneObjectInput = { }; export type CreateRemoteServerInput = { - foreignDataWrapperOptions: Scalars['JSON']['input']; - foreignDataWrapperType: Scalars['String']['input']; - label: Scalars['String']['input']; - schema?: InputMaybe; + foreignDataWrapperOptions: Scalars['JSON']; + foreignDataWrapperType: Scalars['String']; + label: Scalars['String']; + schema?: InputMaybe; userMappingOptions?: InputMaybe; }; export type CreateRoleInput = { - canDestroyAllObjectRecords?: InputMaybe; - canReadAllObjectRecords?: InputMaybe; - canSoftDeleteAllObjectRecords?: InputMaybe; - canUpdateAllObjectRecords?: InputMaybe; - canUpdateAllSettings?: InputMaybe; - description?: InputMaybe; - icon?: InputMaybe; - id?: InputMaybe; - label: Scalars['String']['input']; + canDestroyAllObjectRecords?: InputMaybe; + canReadAllObjectRecords?: InputMaybe; + canSoftDeleteAllObjectRecords?: InputMaybe; + canUpdateAllObjectRecords?: InputMaybe; + canUpdateAllSettings?: InputMaybe; + description?: InputMaybe; + icon?: InputMaybe; + id?: InputMaybe; + label: Scalars['String']; }; export type CreateServerlessFunctionInput = { - description?: InputMaybe; - name: Scalars['String']['input']; - timeoutSeconds?: InputMaybe; + description?: InputMaybe; + name: Scalars['String']; + timeoutSeconds?: InputMaybe; }; export type CreateWorkflowVersionStepInput = { /** Next step ID */ - nextStepId?: InputMaybe; + nextStepId?: InputMaybe; /** Parent step ID */ - parentStepId?: InputMaybe; + parentStepId?: InputMaybe; /** New step type */ - stepType: Scalars['String']['input']; + stepType: Scalars['String']; /** Workflow version ID */ - workflowVersionId: Scalars['String']['input']; + workflowVersionId: Scalars['String']; }; export type CursorPaging = { /** Paginate after opaque cursor */ - after?: InputMaybe; + after?: InputMaybe; /** Paginate before opaque cursor */ - before?: InputMaybe; + before?: InputMaybe; /** Paginate first */ - first?: InputMaybe; + first?: InputMaybe; /** Paginate last */ - last?: InputMaybe; + last?: InputMaybe; }; export type CustomDomainRecord = { __typename?: 'CustomDomainRecord'; - key: Scalars['String']['output']; - status: Scalars['String']['output']; - type: Scalars['String']['output']; - validationType: Scalars['String']['output']; - value: Scalars['String']['output']; + key: Scalars['String']; + status: Scalars['String']; + type: Scalars['String']; + validationType: Scalars['String']; + value: Scalars['String']; }; export type CustomDomainValidRecords = { __typename?: 'CustomDomainValidRecords'; - customDomain: Scalars['String']['output']; - id: Scalars['String']['output']; + customDomain: Scalars['String']; + id: Scalars['String']; records: Array; }; @@ -590,53 +582,53 @@ export enum DatabaseEventAction { } export type DateFilter = { - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; is?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - neq?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + neq?: InputMaybe; }; export type DeleteApprovedAccessDomainInput = { - id: Scalars['String']['input']; + id: Scalars['String']; }; export type DeleteOneFieldInput = { /** The id of the field to delete. */ - id: Scalars['UUID']['input']; + id: Scalars['UUID']; }; export type DeleteOneObjectInput = { /** The id of the record to delete. */ - id: Scalars['UUID']['input']; + id: Scalars['UUID']; }; export type DeleteSsoInput = { - identityProviderId: Scalars['String']['input']; + identityProviderId: Scalars['String']; }; export type DeleteSsoOutput = { __typename?: 'DeleteSsoOutput'; - identityProviderId: Scalars['String']['output']; + identityProviderId: Scalars['String']; }; export type DeleteWorkflowVersionStepInput = { /** Step to delete ID */ - stepId: Scalars['String']['input']; + stepId: Scalars['String']; /** Workflow version ID */ - workflowVersionId: Scalars['String']['input']; + workflowVersionId: Scalars['String']; }; export type DeletedWorkspaceMember = { __typename?: 'DeletedWorkspaceMember'; - avatarUrl?: Maybe; - id: Scalars['UUID']['output']; + avatarUrl?: Maybe; + id: Scalars['UUID']; name: FullName; - userEmail: Scalars['String']['output']; - userWorkspaceId?: Maybe; + userEmail: Scalars['String']; + userWorkspaceId?: Maybe; }; /** Schema update on a table */ @@ -648,15 +640,15 @@ export enum DistantTableUpdate { } export type EditSsoInput = { - id: Scalars['String']['input']; + id: Scalars['String']; status: SsoIdentityProviderStatus; }; export type EditSsoOutput = { __typename?: 'EditSsoOutput'; - id: Scalars['String']['output']; - issuer: Scalars['String']['output']; - name: Scalars['String']['output']; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; status: SsoIdentityProviderStatus; type: IdentityProviderType; }; @@ -664,30 +656,30 @@ export type EditSsoOutput = { export type EmailPasswordResetLink = { __typename?: 'EmailPasswordResetLink'; /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']['output']; + success: Scalars['Boolean']; }; export type ExecuteServerlessFunctionInput = { /** Id of the serverless function to execute */ - id: Scalars['UUID']['input']; + id: Scalars['UUID']; /** Payload in JSON format */ - payload: Scalars['JSON']['input']; + payload: Scalars['JSON']; /** Version of the serverless function to execute */ - version?: Scalars['String']['input']; + version?: Scalars['String']; }; export type FeatureFlag = { __typename?: 'FeatureFlag'; - id: Scalars['UUID']['output']; + id: Scalars['UUID']; key: FeatureFlagKey; - value: Scalars['Boolean']['output']; - workspaceId: Scalars['String']['output']; + value: Scalars['Boolean']; + workspaceId: Scalars['String']; }; export type FeatureFlagDto = { __typename?: 'FeatureFlagDTO'; key: FeatureFlagKey; - value: Scalars['Boolean']['output']; + value: Scalars['Boolean']; }; export enum FeatureFlagKey { @@ -703,26 +695,26 @@ export enum FeatureFlagKey { export type Field = { __typename?: 'Field'; - createdAt: Scalars['DateTime']['output']; - defaultValue?: Maybe; - description?: Maybe; - icon?: Maybe; - id: Scalars['UUID']['output']; - isActive?: Maybe; - isCustom?: Maybe; - isLabelSyncedWithName?: Maybe; - isNullable?: Maybe; - isSystem?: Maybe; - isUnique?: Maybe; - label: Scalars['String']['output']; - name: Scalars['String']['output']; + createdAt: Scalars['DateTime']; + defaultValue?: Maybe; + description?: Maybe; + icon?: Maybe; + id: Scalars['UUID']; + isActive?: Maybe; + isCustom?: Maybe; + isLabelSyncedWithName?: Maybe; + isNullable?: Maybe; + isSystem?: Maybe; + isUnique?: Maybe; + label: Scalars['String']; + name: Scalars['String']; object?: Maybe; - options?: Maybe; + options?: Maybe; relation?: Maybe; - settings?: Maybe; + settings?: Maybe; standardOverrides?: Maybe; type: FieldMetadataType; - updatedAt: Scalars['DateTime']['output']; + updatedAt: Scalars['DateTime']; }; export type FieldConnection = { @@ -736,7 +728,7 @@ export type FieldConnection = { export type FieldEdge = { __typename?: 'FieldEdge'; /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']['output']; + cursor: Scalars['ConnectionCursor']; /** The node containing the Field */ node: Field; }; @@ -793,9 +785,9 @@ export enum FilterIs { export type FindAvailableSsoidpOutput = { __typename?: 'FindAvailableSSOIDPOutput'; - id: Scalars['String']['output']; - issuer: Scalars['String']['output']; - name: Scalars['String']['output']; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; status: SsoIdentityProviderStatus; type: IdentityProviderType; workspace: WorkspaceNameAndId; @@ -803,27 +795,27 @@ export type FindAvailableSsoidpOutput = { export type FindManyRemoteTablesInput = { /** The id of the remote server. */ - id: Scalars['ID']['input']; + id: Scalars['ID']; /** Indicates if pending schema updates status should be computed. */ - shouldFetchPendingSchemaUpdates?: InputMaybe; + shouldFetchPendingSchemaUpdates?: InputMaybe; }; export type FullName = { __typename?: 'FullName'; - firstName: Scalars['String']['output']; - lastName: Scalars['String']['output']; + firstName: Scalars['String']; + lastName: Scalars['String']; }; export type GetAuthorizationUrlForSsoInput = { - identityProviderId: Scalars['String']['input']; - workspaceInviteHash?: InputMaybe; + identityProviderId: Scalars['String']; + workspaceInviteHash?: InputMaybe; }; export type GetAuthorizationUrlForSsoOutput = { __typename?: 'GetAuthorizationUrlForSSOOutput'; - authorizationURL: Scalars['String']['output']; - id: Scalars['String']['output']; - type: Scalars['String']['output']; + authorizationURL: Scalars['String']; + id: Scalars['String']; + type: Scalars['String']; }; export type GetLoginTokenFromEmailVerificationTokenOutput = { @@ -834,9 +826,9 @@ export type GetLoginTokenFromEmailVerificationTokenOutput = { export type GetServerlessFunctionSourceCodeInput = { /** The id of the function. */ - id: Scalars['ID']['input']; + id: Scalars['ID']; /** The version of the function */ - version?: Scalars['String']['input']; + version?: Scalars['String']; }; export enum HealthIndicatorId { @@ -861,7 +853,7 @@ export type ImapSmtpCaldavConnectionParameters = { export type ImapSmtpCaldavConnectionSuccess = { __typename?: 'ImapSmtpCaldavConnectionSuccess'; - success: Scalars['Boolean']['output']; + success: Scalars['Boolean']; }; export type ImpersonateOutput = { @@ -872,17 +864,17 @@ export type ImpersonateOutput = { export type Index = { __typename?: 'Index'; - createdAt: Scalars['DateTime']['output']; - id: Scalars['UUID']['output']; + createdAt: Scalars['DateTime']; + id: Scalars['UUID']; indexFieldMetadataList: Array; indexFieldMetadatas: IndexIndexFieldMetadatasConnection; indexType: IndexType; - indexWhereClause?: Maybe; - isCustom?: Maybe; - isUnique: Scalars['Boolean']['output']; - name: Scalars['String']['output']; + indexWhereClause?: Maybe; + isCustom?: Maybe; + isUnique: Scalars['Boolean']; + name: Scalars['String']; objectMetadata: IndexObjectMetadataConnection; - updatedAt: Scalars['DateTime']['output']; + updatedAt: Scalars['DateTime']; }; @@ -908,24 +900,24 @@ export type IndexConnection = { export type IndexEdge = { __typename?: 'IndexEdge'; /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']['output']; + cursor: Scalars['ConnectionCursor']; /** The node containing the Index */ node: Index; }; export type IndexField = { __typename?: 'IndexField'; - createdAt: Scalars['DateTime']['output']; - fieldMetadataId: Scalars['UUID']['output']; - id: Scalars['UUID']['output']; - order: Scalars['Float']['output']; - updatedAt: Scalars['DateTime']['output']; + createdAt: Scalars['DateTime']; + fieldMetadataId: Scalars['UUID']; + id: Scalars['UUID']; + order: Scalars['Float']; + updatedAt: Scalars['DateTime']; }; export type IndexFieldEdge = { __typename?: 'IndexFieldEdge'; /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']['output']; + cursor: Scalars['ConnectionCursor']; /** The node containing the IndexField */ node: IndexField; }; @@ -969,19 +961,19 @@ export enum IndexType { export type InvalidatePassword = { __typename?: 'InvalidatePassword'; /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']['output']; + success: Scalars['Boolean']; }; export type LinkMetadata = { __typename?: 'LinkMetadata'; - label: Scalars['String']['output']; - url: Scalars['String']['output']; + label: Scalars['String']; + url: Scalars['String']; }; export type LinksMetadata = { __typename?: 'LinksMetadata'; - primaryLinkLabel: Scalars['String']['output']; - primaryLinkUrl: Scalars['String']['output']; + primaryLinkLabel: Scalars['String']; + primaryLinkUrl: Scalars['String']; secondaryLinks?: Maybe>; }; @@ -1003,15 +995,15 @@ export enum ModelProvider { export type Mutation = { __typename?: 'Mutation'; - activateWorkflowVersion: Scalars['Boolean']['output']; + activateWorkflowVersion: Scalars['Boolean']; activateWorkspace: Workspace; - assignRoleToAgent: Scalars['Boolean']['output']; + assignRoleToAgent: Scalars['Boolean']; authorizeApp: AuthorizeApp; checkCustomDomainValidRecords?: Maybe; checkoutSession: BillingSessionOutput; - computeStepOutputSchema: Scalars['JSON']['output']; + computeStepOutputSchema: Scalars['JSON']; createApprovedAccessDomain: ApprovedAccessDomain; - createDatabaseConfigVariable: Scalars['Boolean']['output']; + createDatabaseConfigVariable: Scalars['Boolean']; createDraftFromWorkflowVersion: WorkflowVersion; createOIDCIdentityProvider: SetupSsoOutput; createObjectEvent: Analytics; @@ -1024,20 +1016,20 @@ export type Mutation = { createOneServerlessFunction: ServerlessFunction; createSAMLIdentityProvider: SetupSsoOutput; createWorkflowVersionStep: WorkflowAction; - deactivateWorkflowVersion: Scalars['Boolean']['output']; - deleteApprovedAccessDomain: Scalars['Boolean']['output']; + deactivateWorkflowVersion: Scalars['Boolean']; + deleteApprovedAccessDomain: Scalars['Boolean']; deleteCurrentWorkspace: Workspace; - deleteDatabaseConfigVariable: Scalars['Boolean']['output']; + deleteDatabaseConfigVariable: Scalars['Boolean']; deleteOneAgent: Agent; deleteOneField: Field; deleteOneObject: Object; deleteOneRemoteServer: RemoteServer; - deleteOneRole: Scalars['String']['output']; + deleteOneRole: Scalars['String']; deleteOneServerlessFunction: ServerlessFunction; deleteSSOIdentityProvider: DeleteSsoOutput; deleteUser: User; deleteWorkflowVersionStep: WorkflowAction; - deleteWorkspaceInvitation: Scalars['String']['output']; + deleteWorkspaceInvitation: Scalars['String']; disablePostgresProxy: PostgresCredentials; editSSOIdentityProvider: EditSsoOutput; emailPasswordResetLink: EmailPasswordResetLink; @@ -1052,7 +1044,7 @@ export type Mutation = { getLoginTokenFromEmailVerificationToken: GetLoginTokenFromEmailVerificationTokenOutput; impersonate: ImpersonateOutput; publishServerlessFunction: ServerlessFunction; - removeRoleFromAgent: Scalars['Boolean']['output']; + removeRoleFromAgent: Scalars['Boolean']; renewToken: AuthTokens; resendEmailVerificationToken: ResendEmailVerificationTokenOutput; resendWorkspaceInvitation: SendInvitationsOutput; @@ -1065,14 +1057,14 @@ export type Mutation = { signUpInWorkspace: SignUpOutput; skipBookOnboardingStep: OnboardingStepSuccess; skipSyncEmailOnboardingStep: OnboardingStepSuccess; - submitFormStep: Scalars['Boolean']['output']; + submitFormStep: Scalars['Boolean']; switchToEnterprisePlan: BillingUpdateOutput; switchToYearlyInterval: BillingUpdateOutput; syncRemoteTable: RemoteTable; syncRemoteTableSchemaChanges: RemoteTable; trackAnalytics: Analytics; unsyncRemoteTable: RemoteTable; - updateDatabaseConfigVariable: Scalars['Boolean']['output']; + updateDatabaseConfigVariable: Scalars['Boolean']; updateLabPublicFeatureFlag: FeatureFlagDto; updateOneAgent: Agent; updateOneField: Field; @@ -1084,7 +1076,7 @@ export type Mutation = { updateWorkflowRunStep: WorkflowAction; updateWorkflowVersionStep: WorkflowAction; updateWorkspace: Workspace; - updateWorkspaceFeatureFlag: Scalars['Boolean']['output']; + updateWorkspaceFeatureFlag: Scalars['Boolean']; updateWorkspaceMemberRole: WorkspaceMember; uploadFile: SignedFileDto; uploadImage: SignedFileDto; @@ -1098,7 +1090,7 @@ export type Mutation = { export type MutationActivateWorkflowVersionArgs = { - workflowVersionId: Scalars['String']['input']; + workflowVersionId: Scalars['String']; }; @@ -1108,23 +1100,23 @@ export type MutationActivateWorkspaceArgs = { export type MutationAssignRoleToAgentArgs = { - agentId: Scalars['UUID']['input']; - roleId: Scalars['UUID']['input']; + agentId: Scalars['UUID']; + roleId: Scalars['UUID']; }; export type MutationAuthorizeAppArgs = { - clientId: Scalars['String']['input']; - codeChallenge?: InputMaybe; - redirectUrl: Scalars['String']['input']; + clientId: Scalars['String']; + codeChallenge?: InputMaybe; + redirectUrl: Scalars['String']; }; export type MutationCheckoutSessionArgs = { plan?: BillingPlanKey; recurringInterval: SubscriptionInterval; - requirePaymentMethod?: Scalars['Boolean']['input']; - successUrlPath?: InputMaybe; + requirePaymentMethod?: Scalars['Boolean']; + successUrlPath?: InputMaybe; }; @@ -1139,8 +1131,8 @@ export type MutationCreateApprovedAccessDomainArgs = { export type MutationCreateDatabaseConfigVariableArgs = { - key: Scalars['String']['input']; - value: Scalars['JSON']['input']; + key: Scalars['String']; + value: Scalars['JSON']; }; @@ -1155,10 +1147,10 @@ export type MutationCreateOidcIdentityProviderArgs = { export type MutationCreateObjectEventArgs = { - event: Scalars['String']['input']; - objectMetadataId: Scalars['String']['input']; - properties?: InputMaybe; - recordId: Scalars['String']['input']; + event: Scalars['String']; + objectMetadataId: Scalars['String']; + properties?: InputMaybe; + recordId: Scalars['String']; }; @@ -1208,7 +1200,7 @@ export type MutationCreateWorkflowVersionStepArgs = { export type MutationDeactivateWorkflowVersionArgs = { - workflowVersionId: Scalars['String']['input']; + workflowVersionId: Scalars['String']; }; @@ -1218,7 +1210,7 @@ export type MutationDeleteApprovedAccessDomainArgs = { export type MutationDeleteDatabaseConfigVariableArgs = { - key: Scalars['String']['input']; + key: Scalars['String']; }; @@ -1243,7 +1235,7 @@ export type MutationDeleteOneRemoteServerArgs = { export type MutationDeleteOneRoleArgs = { - roleId: Scalars['String']['input']; + roleId: Scalars['String']; }; @@ -1263,7 +1255,7 @@ export type MutationDeleteWorkflowVersionStepArgs = { export type MutationDeleteWorkspaceInvitationArgs = { - appTokenId: Scalars['String']['input']; + appTokenId: Scalars['String']; }; @@ -1273,8 +1265,8 @@ export type MutationEditSsoIdentityProviderArgs = { export type MutationEmailPasswordResetLinkArgs = { - email: Scalars['String']['input']; - workspaceId: Scalars['String']['input']; + email: Scalars['String']; + workspaceId: Scalars['String']; }; @@ -1284,14 +1276,14 @@ export type MutationExecuteOneServerlessFunctionArgs = { export type MutationGenerateApiKeyTokenArgs = { - apiKeyId: Scalars['String']['input']; - expiresAt: Scalars['String']['input']; + apiKeyId: Scalars['String']; + expiresAt: Scalars['String']; }; export type MutationGetAuthTokensFromLoginTokenArgs = { - loginToken: Scalars['String']['input']; - origin: Scalars['String']['input']; + loginToken: Scalars['String']; + origin: Scalars['String']; }; @@ -1301,24 +1293,24 @@ export type MutationGetAuthorizationUrlForSsoArgs = { export type MutationGetLoginTokenFromCredentialsArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']['input']; - origin: Scalars['String']['input']; - password: Scalars['String']['input']; + captchaToken?: InputMaybe; + email: Scalars['String']; + origin: Scalars['String']; + password: Scalars['String']; }; export type MutationGetLoginTokenFromEmailVerificationTokenArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']['input']; - emailVerificationToken: Scalars['String']['input']; - origin: Scalars['String']['input']; + captchaToken?: InputMaybe; + email: Scalars['String']; + emailVerificationToken: Scalars['String']; + origin: Scalars['String']; }; export type MutationImpersonateArgs = { - userId: Scalars['String']['input']; - workspaceId: Scalars['String']['input']; + userId: Scalars['String']; + workspaceId: Scalars['String']; }; @@ -1328,23 +1320,23 @@ export type MutationPublishServerlessFunctionArgs = { export type MutationRemoveRoleFromAgentArgs = { - agentId: Scalars['UUID']['input']; + agentId: Scalars['UUID']; }; export type MutationRenewTokenArgs = { - appToken: Scalars['String']['input']; + appToken: Scalars['String']; }; export type MutationResendEmailVerificationTokenArgs = { - email: Scalars['String']['input']; - origin: Scalars['String']['input']; + email: Scalars['String']; + origin: Scalars['String']; }; export type MutationResendWorkspaceInvitationArgs = { - appTokenId: Scalars['String']['input']; + appTokenId: Scalars['String']; }; @@ -1354,42 +1346,42 @@ export type MutationRunWorkflowVersionArgs = { export type MutationSaveImapSmtpCaldavArgs = { - accountOwnerId: Scalars['String']['input']; + accountOwnerId: Scalars['String']; accountType: AccountType; connectionParameters: ConnectionParameters; - handle: Scalars['String']['input']; - id?: InputMaybe; + handle: Scalars['String']; + id?: InputMaybe; }; export type MutationSendInvitationsArgs = { - emails: Array; + emails: Array; }; export type MutationSignInArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']['input']; - password: Scalars['String']['input']; + captchaToken?: InputMaybe; + email: Scalars['String']; + password: Scalars['String']; }; export type MutationSignUpArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']['input']; - password: Scalars['String']['input']; + captchaToken?: InputMaybe; + email: Scalars['String']; + password: Scalars['String']; }; export type MutationSignUpInWorkspaceArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']['input']; - locale?: InputMaybe; - password: Scalars['String']['input']; - verifyEmailNextPath?: InputMaybe; - workspaceId?: InputMaybe; - workspaceInviteHash?: InputMaybe; - workspacePersonalInviteToken?: InputMaybe; + captchaToken?: InputMaybe; + email: Scalars['String']; + locale?: InputMaybe; + password: Scalars['String']; + verifyEmailNextPath?: InputMaybe; + workspaceId?: InputMaybe; + workspaceInviteHash?: InputMaybe; + workspacePersonalInviteToken?: InputMaybe; }; @@ -1409,9 +1401,9 @@ export type MutationSyncRemoteTableSchemaChangesArgs = { export type MutationTrackAnalyticsArgs = { - event?: InputMaybe; - name?: InputMaybe; - properties?: InputMaybe; + event?: InputMaybe; + name?: InputMaybe; + properties?: InputMaybe; type: AnalyticsType; }; @@ -1422,8 +1414,8 @@ export type MutationUnsyncRemoteTableArgs = { export type MutationUpdateDatabaseConfigVariableArgs = { - key: Scalars['String']['input']; - value: Scalars['JSON']['input']; + key: Scalars['String']; + value: Scalars['JSON']; }; @@ -1463,8 +1455,8 @@ export type MutationUpdateOneServerlessFunctionArgs = { export type MutationUpdatePasswordViaResetTokenArgs = { - newPassword: Scalars['String']['input']; - passwordResetToken: Scalars['String']['input']; + newPassword: Scalars['String']; + passwordResetToken: Scalars['String']; }; @@ -1484,37 +1476,37 @@ export type MutationUpdateWorkspaceArgs = { export type MutationUpdateWorkspaceFeatureFlagArgs = { - featureFlag: Scalars['String']['input']; - value: Scalars['Boolean']['input']; - workspaceId: Scalars['String']['input']; + featureFlag: Scalars['String']; + value: Scalars['Boolean']; + workspaceId: Scalars['String']; }; export type MutationUpdateWorkspaceMemberRoleArgs = { - roleId: Scalars['String']['input']; - workspaceMemberId: Scalars['String']['input']; + roleId: Scalars['String']; + workspaceMemberId: Scalars['String']; }; export type MutationUploadFileArgs = { - file: Scalars['Upload']['input']; + file: Scalars['Upload']; fileFolder?: InputMaybe; }; export type MutationUploadImageArgs = { - file: Scalars['Upload']['input']; + file: Scalars['Upload']; fileFolder?: InputMaybe; }; export type MutationUploadProfilePictureArgs = { - file: Scalars['Upload']['input']; + file: Scalars['Upload']; }; export type MutationUploadWorkspaceLogoArgs = { - file: Scalars['Upload']['input']; + file: Scalars['Upload']; }; @@ -1529,7 +1521,7 @@ export type MutationUpsertSettingPermissionsArgs = { export type MutationUserLookupAdminPanelArgs = { - userIdentifier: Scalars['String']['input']; + userIdentifier: Scalars['String']; }; @@ -1539,31 +1531,31 @@ export type MutationValidateApprovedAccessDomainArgs = { export type Object = { __typename?: 'Object'; - createdAt: Scalars['DateTime']['output']; - dataSourceId: Scalars['String']['output']; - description?: Maybe; - duplicateCriteria?: Maybe>>; + createdAt: Scalars['DateTime']; + dataSourceId: Scalars['String']; + description?: Maybe; + duplicateCriteria?: Maybe>>; fields: ObjectFieldsConnection; fieldsList: Array; - icon?: Maybe; - id: Scalars['UUID']['output']; - imageIdentifierFieldMetadataId?: Maybe; + icon?: Maybe; + id: Scalars['UUID']; + imageIdentifierFieldMetadataId?: Maybe; indexMetadataList: Array; indexMetadatas: ObjectIndexMetadatasConnection; - isActive: Scalars['Boolean']['output']; - isCustom: Scalars['Boolean']['output']; - isLabelSyncedWithName: Scalars['Boolean']['output']; - isRemote: Scalars['Boolean']['output']; - isSearchable: Scalars['Boolean']['output']; - isSystem: Scalars['Boolean']['output']; - labelIdentifierFieldMetadataId?: Maybe; - labelPlural: Scalars['String']['output']; - labelSingular: Scalars['String']['output']; - namePlural: Scalars['String']['output']; - nameSingular: Scalars['String']['output']; - shortcut?: Maybe; + isActive: Scalars['Boolean']; + isCustom: Scalars['Boolean']; + isLabelSyncedWithName: Scalars['Boolean']; + isRemote: Scalars['Boolean']; + isSearchable: Scalars['Boolean']; + isSystem: Scalars['Boolean']; + labelIdentifierFieldMetadataId?: Maybe; + labelPlural: Scalars['String']; + labelSingular: Scalars['String']; + namePlural: Scalars['String']; + nameSingular: Scalars['String']; + shortcut?: Maybe; standardOverrides?: Maybe; - updatedAt: Scalars['DateTime']['output']; + updatedAt: Scalars['DateTime']; }; @@ -1589,7 +1581,7 @@ export type ObjectConnection = { export type ObjectEdge = { __typename?: 'ObjectEdge'; /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']['output']; + cursor: Scalars['ConnectionCursor']; /** The node containing the Object */ node: Object; }; @@ -1623,19 +1615,19 @@ export type ObjectIndexMetadatasConnection = { export type ObjectPermission = { __typename?: 'ObjectPermission'; - canDestroyObjectRecords?: Maybe; - canReadObjectRecords?: Maybe; - canSoftDeleteObjectRecords?: Maybe; - canUpdateObjectRecords?: Maybe; - objectMetadataId: Scalars['String']['output']; + canDestroyObjectRecords?: Maybe; + canReadObjectRecords?: Maybe; + canSoftDeleteObjectRecords?: Maybe; + canUpdateObjectRecords?: Maybe; + objectMetadataId: Scalars['String']; }; export type ObjectPermissionInput = { - canDestroyObjectRecords?: InputMaybe; - canReadObjectRecords?: InputMaybe; - canSoftDeleteObjectRecords?: InputMaybe; - canUpdateObjectRecords?: InputMaybe; - objectMetadataId: Scalars['String']['input']; + canDestroyObjectRecords?: InputMaybe; + canReadObjectRecords?: InputMaybe; + canSoftDeleteObjectRecords?: InputMaybe; + canUpdateObjectRecords?: InputMaybe; + objectMetadataId: Scalars['String']; }; export type ObjectRecordFilterInput = { @@ -1650,26 +1642,26 @@ export type ObjectRecordFilterInput = { export type ObjectStandardOverrides = { __typename?: 'ObjectStandardOverrides'; - description?: Maybe; - icon?: Maybe; - labelPlural?: Maybe; - labelSingular?: Maybe; - translations?: Maybe; + description?: Maybe; + icon?: Maybe; + labelPlural?: Maybe; + labelSingular?: Maybe; + translations?: Maybe; }; export type OnDbEventDto = { __typename?: 'OnDbEventDTO'; action: DatabaseEventAction; - eventDate: Scalars['DateTime']['output']; - objectNameSingular: Scalars['String']['output']; - record: Scalars['JSON']['output']; - updatedFields?: Maybe>; + eventDate: Scalars['DateTime']; + objectNameSingular: Scalars['String']; + record: Scalars['JSON']; + updatedFields?: Maybe>; }; export type OnDbEventInput = { action?: InputMaybe; - objectNameSingular?: InputMaybe; - recordId?: InputMaybe; + objectNameSingular?: InputMaybe; + recordId?: InputMaybe; }; /** Onboarding status */ @@ -1686,19 +1678,19 @@ export enum OnboardingStatus { export type OnboardingStepSuccess = { __typename?: 'OnboardingStepSuccess'; /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']['output']; + success: Scalars['Boolean']; }; export type PageInfo = { __typename?: 'PageInfo'; /** The cursor of the last returned record. */ - endCursor?: Maybe; + endCursor?: Maybe; /** true if paging forward and there are more records. */ - hasNextPage?: Maybe; + hasNextPage?: Maybe; /** true if paging backwards and there are more records. */ - hasPreviousPage?: Maybe; + hasPreviousPage?: Maybe; /** The cursor of the first returned record. */ - startCursor?: Maybe; + startCursor?: Maybe; }; export enum PermissionsOnAllObjectRecords { @@ -1710,10 +1702,10 @@ export enum PermissionsOnAllObjectRecords { export type PostgresCredentials = { __typename?: 'PostgresCredentials'; - id: Scalars['UUID']['output']; - password: Scalars['String']['output']; - user: Scalars['String']['output']; - workspaceId: Scalars['String']['output']; + id: Scalars['UUID']; + password: Scalars['String']; + user: Scalars['String']; + workspaceId: Scalars['String']; }; export type PublicFeatureFlag = { @@ -1724,23 +1716,23 @@ export type PublicFeatureFlag = { export type PublicFeatureFlagMetadata = { __typename?: 'PublicFeatureFlagMetadata'; - description: Scalars['String']['output']; - imagePath: Scalars['String']['output']; - label: Scalars['String']['output']; + description: Scalars['String']; + imagePath: Scalars['String']; + label: Scalars['String']; }; export type PublicWorkspaceDataOutput = { __typename?: 'PublicWorkspaceDataOutput'; authProviders: AuthProviders; - displayName?: Maybe; - id: Scalars['String']['output']; - logo?: Maybe; + displayName?: Maybe; + id: Scalars['String']; + logo?: Maybe; workspaceUrls: WorkspaceUrls; }; export type PublishServerlessFunctionInput = { /** The id of the function. */ - id: Scalars['ID']['input']; + id: Scalars['ID']; }; export type Query = { @@ -1762,7 +1754,7 @@ export type Query = { findWorkspaceFromInviteHash: Workspace; findWorkspaceInvitations: Array; getApprovedAccessDomains: Array; - getAvailablePackages: Scalars['JSON']['output']; + getAvailablePackages: Scalars['JSON']; getConfigVariablesGrouped: ConfigVariablesOutput; getConnectedImapSmtpCaldavAccount: ConnectedImapSmtpCaldavAccount; getDatabaseConfigVariable: ConfigVariable; @@ -1773,7 +1765,7 @@ export type Query = { getQueueMetrics: QueueMetricsData; getRoles: Array; getSSOIdentityProviders: Array; - getServerlessFunctionSourceCode?: Maybe; + getServerlessFunctionSourceCode?: Maybe; getSystemHealthStatus: SystemHealth; getTimelineCalendarEventsFromCompanyId: TimelineCalendarEventsWithTotal; getTimelineCalendarEventsFromPersonId: TimelineCalendarEventsWithTotal; @@ -1791,23 +1783,23 @@ export type Query = { export type QueryBillingPortalSessionArgs = { - returnUrlPath?: InputMaybe; + returnUrlPath?: InputMaybe; }; export type QueryCheckUserExistsArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']['input']; + captchaToken?: InputMaybe; + email: Scalars['String']; }; export type QueryCheckWorkspaceInviteHashIsValidArgs = { - inviteHash: Scalars['String']['input']; + inviteHash: Scalars['String']; }; export type QueryFieldArgs = { - id: Scalars['UUID']['input']; + id: Scalars['UUID']; }; @@ -1843,7 +1835,7 @@ export type QueryFindOneServerlessFunctionArgs = { export type QueryFindWorkspaceFromInviteHashArgs = { - inviteHash: Scalars['String']['input']; + inviteHash: Scalars['String']; }; @@ -1853,12 +1845,12 @@ export type QueryGetAvailablePackagesArgs = { export type QueryGetConnectedImapSmtpCaldavAccountArgs = { - id: Scalars['String']['input']; + id: Scalars['String']; }; export type QueryGetDatabaseConfigVariableArgs = { - key: Scalars['String']['input']; + key: Scalars['String']; }; @@ -1868,12 +1860,12 @@ export type QueryGetIndicatorHealthStatusArgs = { export type QueryGetPublicWorkspaceDataByDomainArgs = { - origin?: InputMaybe; + origin?: InputMaybe; }; export type QueryGetQueueMetricsArgs = { - queueName: Scalars['String']['input']; + queueName: Scalars['String']; timeRange?: InputMaybe; }; @@ -1884,35 +1876,35 @@ export type QueryGetServerlessFunctionSourceCodeArgs = { export type QueryGetTimelineCalendarEventsFromCompanyIdArgs = { - companyId: Scalars['UUID']['input']; - page: Scalars['Int']['input']; - pageSize: Scalars['Int']['input']; + companyId: Scalars['UUID']; + page: Scalars['Int']; + pageSize: Scalars['Int']; }; export type QueryGetTimelineCalendarEventsFromPersonIdArgs = { - page: Scalars['Int']['input']; - pageSize: Scalars['Int']['input']; - personId: Scalars['UUID']['input']; + page: Scalars['Int']; + pageSize: Scalars['Int']; + personId: Scalars['UUID']; }; export type QueryGetTimelineThreadsFromCompanyIdArgs = { - companyId: Scalars['UUID']['input']; - page: Scalars['Int']['input']; - pageSize: Scalars['Int']['input']; + companyId: Scalars['UUID']; + page: Scalars['Int']; + pageSize: Scalars['Int']; }; export type QueryGetTimelineThreadsFromPersonIdArgs = { - page: Scalars['Int']['input']; - pageSize: Scalars['Int']['input']; - personId: Scalars['UUID']['input']; + page: Scalars['Int']; + pageSize: Scalars['Int']; + personId: Scalars['UUID']; }; export type QueryIndexArgs = { - id: Scalars['UUID']['input']; + id: Scalars['UUID']; }; @@ -1923,7 +1915,7 @@ export type QueryIndexMetadatasArgs = { export type QueryObjectArgs = { - id: Scalars['UUID']['input']; + id: Scalars['UUID']; }; @@ -1934,38 +1926,38 @@ export type QueryObjectsArgs = { export type QuerySearchArgs = { - after?: InputMaybe; - excludedObjectNameSingulars?: InputMaybe>; + after?: InputMaybe; + excludedObjectNameSingulars?: InputMaybe>; filter?: InputMaybe; - includedObjectNameSingulars?: InputMaybe>; - limit: Scalars['Int']['input']; - searchInput: Scalars['String']['input']; + includedObjectNameSingulars?: InputMaybe>; + limit: Scalars['Int']; + searchInput: Scalars['String']; }; export type QueryValidatePasswordResetTokenArgs = { - passwordResetToken: Scalars['String']['input']; + passwordResetToken: Scalars['String']; }; export type QueueMetricsData = { __typename?: 'QueueMetricsData'; data: Array; details?: Maybe; - queueName: Scalars['String']['output']; + queueName: Scalars['String']; timeRange: QueueMetricsTimeRange; - workers: Scalars['Float']['output']; + workers: Scalars['Float']; }; export type QueueMetricsDataPoint = { __typename?: 'QueueMetricsDataPoint'; - x: Scalars['Float']['output']; - y: Scalars['Float']['output']; + x: Scalars['Float']; + y: Scalars['Float']; }; export type QueueMetricsSeries = { __typename?: 'QueueMetricsSeries'; data: Array; - id: Scalars['String']['output']; + id: Scalars['String']; }; export enum QueueMetricsTimeRange { @@ -1993,38 +1985,38 @@ export enum RelationType { export type RemoteServer = { __typename?: 'RemoteServer'; - createdAt: Scalars['DateTime']['output']; - foreignDataWrapperId: Scalars['ID']['output']; - foreignDataWrapperOptions?: Maybe; - foreignDataWrapperType: Scalars['String']['output']; - id: Scalars['ID']['output']; - label: Scalars['String']['output']; - schema?: Maybe; - updatedAt: Scalars['DateTime']['output']; + createdAt: Scalars['DateTime']; + foreignDataWrapperId: Scalars['ID']; + foreignDataWrapperOptions?: Maybe; + foreignDataWrapperType: Scalars['String']; + id: Scalars['ID']; + label: Scalars['String']; + schema?: Maybe; + updatedAt: Scalars['DateTime']; userMappingOptions?: Maybe; }; export type RemoteServerIdInput = { /** The id of the record. */ - id: Scalars['ID']['input']; + id: Scalars['ID']; }; export type RemoteServerTypeInput = { - foreignDataWrapperType: Scalars['String']['input']; + foreignDataWrapperType: Scalars['String']; }; export type RemoteTable = { __typename?: 'RemoteTable'; - id?: Maybe; - name: Scalars['String']['output']; - schema?: Maybe; + id?: Maybe; + name: Scalars['String']; + schema?: Maybe; schemaPendingUpdates?: Maybe>; status: RemoteTableStatus; }; export type RemoteTableInput = { - name: Scalars['String']['input']; - remoteServerId: Scalars['ID']['input']; + name: Scalars['String']; + remoteServerId: Scalars['ID']; }; /** Status of the table */ @@ -2035,21 +2027,21 @@ export enum RemoteTableStatus { export type ResendEmailVerificationTokenOutput = { __typename?: 'ResendEmailVerificationTokenOutput'; - success: Scalars['Boolean']['output']; + success: Scalars['Boolean']; }; export type Role = { __typename?: 'Role'; - canDestroyAllObjectRecords: Scalars['Boolean']['output']; - canReadAllObjectRecords: Scalars['Boolean']['output']; - canSoftDeleteAllObjectRecords: Scalars['Boolean']['output']; - canUpdateAllObjectRecords: Scalars['Boolean']['output']; - canUpdateAllSettings: Scalars['Boolean']['output']; - description?: Maybe; - icon?: Maybe; - id: Scalars['String']['output']; - isEditable: Scalars['Boolean']['output']; - label: Scalars['String']['output']; + canDestroyAllObjectRecords: Scalars['Boolean']; + canReadAllObjectRecords: Scalars['Boolean']; + canSoftDeleteAllObjectRecords: Scalars['Boolean']; + canUpdateAllObjectRecords: Scalars['Boolean']; + canUpdateAllSettings: Scalars['Boolean']; + description?: Maybe; + icon?: Maybe; + id: Scalars['String']; + isEditable: Scalars['Boolean']; + label: Scalars['String']; objectPermissions?: Maybe>; settingPermissions?: Maybe>; workspaceMembers: Array; @@ -2057,27 +2049,27 @@ export type Role = { export type RunWorkflowVersionInput = { /** Execution result in JSON format */ - payload?: InputMaybe; + payload?: InputMaybe; /** Workflow run ID */ - workflowRunId?: InputMaybe; + workflowRunId?: InputMaybe; /** Workflow version ID */ - workflowVersionId: Scalars['String']['input']; + workflowVersionId: Scalars['String']; }; export type SsoConnection = { __typename?: 'SSOConnection'; - id: Scalars['String']['output']; - issuer: Scalars['String']['output']; - name: Scalars['String']['output']; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; status: SsoIdentityProviderStatus; type: IdentityProviderType; }; export type SsoIdentityProvider = { __typename?: 'SSOIdentityProvider'; - id: Scalars['String']['output']; - issuer: Scalars['String']['output']; - name: Scalars['String']['output']; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; status: SsoIdentityProviderStatus; type: IdentityProviderType; }; @@ -2090,12 +2082,12 @@ export enum SsoIdentityProviderStatus { export type SearchRecord = { __typename?: 'SearchRecord'; - imageUrl?: Maybe; - label: Scalars['String']['output']; - objectNameSingular: Scalars['String']['output']; - recordId: Scalars['String']['output']; - tsRank: Scalars['Float']['output']; - tsRankCD: Scalars['Float']['output']; + imageUrl?: Maybe; + label: Scalars['String']; + objectNameSingular: Scalars['String']; + recordId: Scalars['String']; + tsRank: Scalars['Float']; + tsRankCD: Scalars['Float']; }; export type SearchResultConnection = { @@ -2106,55 +2098,55 @@ export type SearchResultConnection = { export type SearchResultEdge = { __typename?: 'SearchResultEdge'; - cursor: Scalars['String']['output']; + cursor: Scalars['String']; node: SearchRecord; }; export type SearchResultPageInfo = { __typename?: 'SearchResultPageInfo'; - endCursor?: Maybe; - hasNextPage: Scalars['Boolean']['output']; + endCursor?: Maybe; + hasNextPage: Scalars['Boolean']; }; export type SendInvitationsOutput = { __typename?: 'SendInvitationsOutput'; - errors: Array; + errors: Array; result: Array; /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']['output']; + success: Scalars['Boolean']; }; export type Sentry = { __typename?: 'Sentry'; - dsn?: Maybe; - environment?: Maybe; - release?: Maybe; + dsn?: Maybe; + environment?: Maybe; + release?: Maybe; }; export type ServerlessFunction = { __typename?: 'ServerlessFunction'; - createdAt: Scalars['DateTime']['output']; - description?: Maybe; - id: Scalars['UUID']['output']; - latestVersion?: Maybe; - latestVersionInputSchema?: Maybe; - name: Scalars['String']['output']; - publishedVersions: Array; - runtime: Scalars['String']['output']; - timeoutSeconds: Scalars['Float']['output']; - updatedAt: Scalars['DateTime']['output']; + createdAt: Scalars['DateTime']; + description?: Maybe; + id: Scalars['UUID']; + latestVersion?: Maybe; + latestVersionInputSchema?: Maybe; + name: Scalars['String']; + publishedVersions: Array; + runtime: Scalars['String']; + timeoutSeconds: Scalars['Float']; + updatedAt: Scalars['DateTime']; }; export type ServerlessFunctionExecutionResult = { __typename?: 'ServerlessFunctionExecutionResult'; /** Execution result in JSON format */ - data?: Maybe; + data?: Maybe; /** Execution duration in milliseconds */ - duration: Scalars['Float']['output']; + duration: Scalars['Float']; /** Execution error in JSON format */ - error?: Maybe; + error?: Maybe; /** Execution Logs */ - logs: Scalars['String']['output']; + logs: Scalars['String']; /** Execution status */ status: ServerlessFunctionExecutionStatus; }; @@ -2168,13 +2160,13 @@ export enum ServerlessFunctionExecutionStatus { export type ServerlessFunctionIdInput = { /** The id of the function. */ - id: Scalars['ID']['input']; + id: Scalars['ID']; }; export type SettingPermission = { __typename?: 'SettingPermission'; - id: Scalars['String']['output']; - roleId: Scalars['String']['output']; + id: Scalars['String']; + roleId: Scalars['String']; setting: SettingPermissionType; }; @@ -2190,26 +2182,26 @@ export enum SettingPermissionType { } export type SetupOidcSsoInput = { - clientID: Scalars['String']['input']; - clientSecret: Scalars['String']['input']; - issuer: Scalars['String']['input']; - name: Scalars['String']['input']; + clientID: Scalars['String']; + clientSecret: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; }; export type SetupSamlSsoInput = { - certificate: Scalars['String']['input']; - fingerprint?: InputMaybe; - id: Scalars['String']['input']; - issuer: Scalars['String']['input']; - name: Scalars['String']['input']; - ssoURL: Scalars['String']['input']; + certificate: Scalars['String']; + fingerprint?: InputMaybe; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; + ssoURL: Scalars['String']; }; export type SetupSsoOutput = { __typename?: 'SetupSsoOutput'; - id: Scalars['String']['output']; - issuer: Scalars['String']['output']; - name: Scalars['String']['output']; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; status: SsoIdentityProviderStatus; type: IdentityProviderType; }; @@ -2222,25 +2214,25 @@ export type SignUpOutput = { export type SignedFileDto = { __typename?: 'SignedFileDTO'; - path: Scalars['String']['output']; - token: Scalars['String']['output']; + path: Scalars['String']; + token: Scalars['String']; }; export type StandardOverrides = { __typename?: 'StandardOverrides'; - description?: Maybe; - icon?: Maybe; - label?: Maybe; - translations?: Maybe; + description?: Maybe; + icon?: Maybe; + label?: Maybe; + translations?: Maybe; }; export type SubmitFormStepInput = { /** Form response in JSON format */ - response: Scalars['JSON']['input']; + response: Scalars['JSON']; /** Workflow version ID */ - stepId: Scalars['String']['input']; + stepId: Scalars['String']; /** Workflow run ID */ - workflowRunId: Scalars['String']['input']; + workflowRunId: Scalars['String']; }; export type Subscription = { @@ -2274,7 +2266,7 @@ export enum SubscriptionStatus { export type Support = { __typename?: 'Support'; supportDriver: SupportDriver; - supportFrontChatId?: Maybe; + supportFrontChatId?: Maybe; }; export enum SupportDriver { @@ -2290,72 +2282,72 @@ export type SystemHealth = { export type SystemHealthService = { __typename?: 'SystemHealthService'; id: HealthIndicatorId; - label: Scalars['String']['output']; + label: Scalars['String']; status: AdminPanelHealthServiceStatus; }; export type TimelineCalendarEvent = { __typename?: 'TimelineCalendarEvent'; conferenceLink: LinksMetadata; - conferenceSolution: Scalars['String']['output']; - description: Scalars['String']['output']; - endsAt: Scalars['DateTime']['output']; - id: Scalars['UUID']['output']; - isCanceled: Scalars['Boolean']['output']; - isFullDay: Scalars['Boolean']['output']; - location: Scalars['String']['output']; + conferenceSolution: Scalars['String']; + description: Scalars['String']; + endsAt: Scalars['DateTime']; + id: Scalars['UUID']; + isCanceled: Scalars['Boolean']; + isFullDay: Scalars['Boolean']; + location: Scalars['String']; participants: Array; - startsAt: Scalars['DateTime']['output']; - title: Scalars['String']['output']; + startsAt: Scalars['DateTime']; + title: Scalars['String']; visibility: CalendarChannelVisibility; }; export type TimelineCalendarEventParticipant = { __typename?: 'TimelineCalendarEventParticipant'; - avatarUrl: Scalars['String']['output']; - displayName: Scalars['String']['output']; - firstName: Scalars['String']['output']; - handle: Scalars['String']['output']; - lastName: Scalars['String']['output']; - personId?: Maybe; - workspaceMemberId?: Maybe; + avatarUrl: Scalars['String']; + displayName: Scalars['String']; + firstName: Scalars['String']; + handle: Scalars['String']; + lastName: Scalars['String']; + personId?: Maybe; + workspaceMemberId?: Maybe; }; export type TimelineCalendarEventsWithTotal = { __typename?: 'TimelineCalendarEventsWithTotal'; timelineCalendarEvents: Array; - totalNumberOfCalendarEvents: Scalars['Int']['output']; + totalNumberOfCalendarEvents: Scalars['Int']; }; export type TimelineThread = { __typename?: 'TimelineThread'; firstParticipant: TimelineThreadParticipant; - id: Scalars['UUID']['output']; - lastMessageBody: Scalars['String']['output']; - lastMessageReceivedAt: Scalars['DateTime']['output']; + id: Scalars['UUID']; + lastMessageBody: Scalars['String']; + lastMessageReceivedAt: Scalars['DateTime']; lastTwoParticipants: Array; - numberOfMessagesInThread: Scalars['Float']['output']; - participantCount: Scalars['Float']['output']; - read: Scalars['Boolean']['output']; - subject: Scalars['String']['output']; + numberOfMessagesInThread: Scalars['Float']; + participantCount: Scalars['Float']; + read: Scalars['Boolean']; + subject: Scalars['String']; visibility: MessageChannelVisibility; }; export type TimelineThreadParticipant = { __typename?: 'TimelineThreadParticipant'; - avatarUrl: Scalars['String']['output']; - displayName: Scalars['String']['output']; - firstName: Scalars['String']['output']; - handle: Scalars['String']['output']; - lastName: Scalars['String']['output']; - personId?: Maybe; - workspaceMemberId?: Maybe; + avatarUrl: Scalars['String']; + displayName: Scalars['String']; + firstName: Scalars['String']; + handle: Scalars['String']; + lastName: Scalars['String']; + personId?: Maybe; + workspaceMemberId?: Maybe; }; export type TimelineThreadsWithTotal = { __typename?: 'TimelineThreadsWithTotal'; timelineThreads: Array; - totalNumberOfThreads: Scalars['Int']['output']; + totalNumberOfThreads: Scalars['Int']; }; export type TransientToken = { @@ -2364,184 +2356,184 @@ export type TransientToken = { }; export type UuidFilter = { - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; is?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - neq?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + neq?: InputMaybe; }; export type UuidFilterComparison = { - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - iLike?: InputMaybe; - in?: InputMaybe>; - is?: InputMaybe; - isNot?: InputMaybe; - like?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - neq?: InputMaybe; - notILike?: InputMaybe; - notIn?: InputMaybe>; - notLike?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + iLike?: InputMaybe; + in?: InputMaybe>; + is?: InputMaybe; + isNot?: InputMaybe; + like?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + neq?: InputMaybe; + notILike?: InputMaybe; + notIn?: InputMaybe>; + notLike?: InputMaybe; }; export type UpdateAgentInput = { - description?: InputMaybe; - id: Scalars['UUID']['input']; - modelId: Scalars['String']['input']; - name: Scalars['String']['input']; - prompt: Scalars['String']['input']; - responseFormat?: InputMaybe; + description?: InputMaybe; + id: Scalars['UUID']; + modelId: Scalars['String']; + name: Scalars['String']; + prompt: Scalars['String']; + responseFormat?: InputMaybe; }; export type UpdateFieldInput = { - defaultValue?: InputMaybe; - description?: InputMaybe; - icon?: InputMaybe; - isActive?: InputMaybe; - isLabelSyncedWithName?: InputMaybe; - isNullable?: InputMaybe; - isSystem?: InputMaybe; - isUnique?: InputMaybe; - label?: InputMaybe; - name?: InputMaybe; - options?: InputMaybe; - settings?: InputMaybe; + defaultValue?: InputMaybe; + description?: InputMaybe; + icon?: InputMaybe; + isActive?: InputMaybe; + isLabelSyncedWithName?: InputMaybe; + isNullable?: InputMaybe; + isSystem?: InputMaybe; + isUnique?: InputMaybe; + label?: InputMaybe; + name?: InputMaybe; + options?: InputMaybe; + settings?: InputMaybe; }; export type UpdateLabPublicFeatureFlagInput = { - publicFeatureFlag: Scalars['String']['input']; - value: Scalars['Boolean']['input']; + publicFeatureFlag: Scalars['String']; + value: Scalars['Boolean']; }; export type UpdateObjectPayload = { - description?: InputMaybe; - icon?: InputMaybe; - imageIdentifierFieldMetadataId?: InputMaybe; - isActive?: InputMaybe; - isLabelSyncedWithName?: InputMaybe; - labelIdentifierFieldMetadataId?: InputMaybe; - labelPlural?: InputMaybe; - labelSingular?: InputMaybe; - namePlural?: InputMaybe; - nameSingular?: InputMaybe; - shortcut?: InputMaybe; + description?: InputMaybe; + icon?: InputMaybe; + imageIdentifierFieldMetadataId?: InputMaybe; + isActive?: InputMaybe; + isLabelSyncedWithName?: InputMaybe; + labelIdentifierFieldMetadataId?: InputMaybe; + labelPlural?: InputMaybe; + labelSingular?: InputMaybe; + namePlural?: InputMaybe; + nameSingular?: InputMaybe; + shortcut?: InputMaybe; }; export type UpdateOneFieldMetadataInput = { /** The id of the record to update */ - id: Scalars['UUID']['input']; + id: Scalars['UUID']; /** The record to update */ update: UpdateFieldInput; }; export type UpdateOneObjectInput = { /** The id of the object to update */ - id: Scalars['UUID']['input']; + id: Scalars['UUID']; update: UpdateObjectPayload; }; export type UpdateRemoteServerInput = { - foreignDataWrapperOptions?: InputMaybe; - id: Scalars['String']['input']; - label?: InputMaybe; - schema?: InputMaybe; + foreignDataWrapperOptions?: InputMaybe; + id: Scalars['String']; + label?: InputMaybe; + schema?: InputMaybe; userMappingOptions?: InputMaybe; }; export type UpdateRoleInput = { /** The id of the role to update */ - id: Scalars['UUID']['input']; + id: Scalars['UUID']; update: UpdateRolePayload; }; export type UpdateRolePayload = { - canDestroyAllObjectRecords?: InputMaybe; - canReadAllObjectRecords?: InputMaybe; - canSoftDeleteAllObjectRecords?: InputMaybe; - canUpdateAllObjectRecords?: InputMaybe; - canUpdateAllSettings?: InputMaybe; - description?: InputMaybe; - icon?: InputMaybe; - label?: InputMaybe; + canDestroyAllObjectRecords?: InputMaybe; + canReadAllObjectRecords?: InputMaybe; + canSoftDeleteAllObjectRecords?: InputMaybe; + canUpdateAllObjectRecords?: InputMaybe; + canUpdateAllSettings?: InputMaybe; + description?: InputMaybe; + icon?: InputMaybe; + label?: InputMaybe; }; export type UpdateServerlessFunctionInput = { - code: Scalars['JSON']['input']; - description?: InputMaybe; + code: Scalars['JSON']; + description?: InputMaybe; /** Id of the serverless function to execute */ - id: Scalars['UUID']['input']; - name: Scalars['String']['input']; - timeoutSeconds?: InputMaybe; + id: Scalars['UUID']; + name: Scalars['String']; + timeoutSeconds?: InputMaybe; }; export type UpdateWorkflowRunStepInput = { /** Step to update in JSON format */ - step: Scalars['JSON']['input']; + step: Scalars['JSON']; /** Workflow run ID */ - workflowRunId: Scalars['String']['input']; + workflowRunId: Scalars['String']; }; export type UpdateWorkflowVersionStepInput = { /** Step to update in JSON format */ - step: Scalars['JSON']['input']; + step: Scalars['JSON']; /** Workflow version ID */ - workflowVersionId: Scalars['String']['input']; + workflowVersionId: Scalars['String']; }; export type UpdateWorkspaceInput = { - allowImpersonation?: InputMaybe; - customDomain?: InputMaybe; - defaultRoleId?: InputMaybe; - displayName?: InputMaybe; - inviteHash?: InputMaybe; - isGoogleAuthEnabled?: InputMaybe; - isMicrosoftAuthEnabled?: InputMaybe; - isPasswordAuthEnabled?: InputMaybe; - isPublicInviteLinkEnabled?: InputMaybe; - logo?: InputMaybe; - subdomain?: InputMaybe; + allowImpersonation?: InputMaybe; + customDomain?: InputMaybe; + defaultRoleId?: InputMaybe; + displayName?: InputMaybe; + inviteHash?: InputMaybe; + isGoogleAuthEnabled?: InputMaybe; + isMicrosoftAuthEnabled?: InputMaybe; + isPasswordAuthEnabled?: InputMaybe; + isPublicInviteLinkEnabled?: InputMaybe; + logo?: InputMaybe; + subdomain?: InputMaybe; }; export type UpsertObjectPermissionsInput = { objectPermissions: Array; - roleId: Scalars['String']['input']; + roleId: Scalars['String']; }; export type UpsertSettingPermissionsInput = { - roleId: Scalars['String']['input']; + roleId: Scalars['String']; settingPermissionKeys: Array; }; export type User = { __typename?: 'User'; availableWorkspaces: AvailableWorkspaces; - canAccessFullAdminPanel: Scalars['Boolean']['output']; - canImpersonate: Scalars['Boolean']['output']; - createdAt: Scalars['DateTime']['output']; + canAccessFullAdminPanel: Scalars['Boolean']; + canImpersonate: Scalars['Boolean']; + createdAt: Scalars['DateTime']; currentUserWorkspace?: Maybe; currentWorkspace?: Maybe; - defaultAvatarUrl?: Maybe; - deletedAt?: Maybe; + defaultAvatarUrl?: Maybe; + deletedAt?: Maybe; deletedWorkspaceMembers?: Maybe>; - disabled?: Maybe; - email: Scalars['String']['output']; - firstName: Scalars['String']['output']; - id: Scalars['UUID']['output']; - isEmailVerified: Scalars['Boolean']['output']; - lastName: Scalars['String']['output']; - locale: Scalars['String']['output']; + disabled?: Maybe; + email: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['UUID']; + isEmailVerified: Scalars['Boolean']; + lastName: Scalars['String']; + locale: Scalars['String']; onboardingStatus?: Maybe; - passwordHash?: Maybe; - supportUserHash?: Maybe; - updatedAt: Scalars['DateTime']['output']; - userVars?: Maybe; + passwordHash?: Maybe; + supportUserHash?: Maybe; + updatedAt: Scalars['DateTime']; + userVars?: Maybe; workspaceMember?: Maybe; workspaceMembers?: Maybe>; workspaces: Array; @@ -2550,17 +2542,17 @@ export type User = { export type UserEdge = { __typename?: 'UserEdge'; /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']['output']; + cursor: Scalars['ConnectionCursor']; /** The node containing the User */ node: User; }; export type UserInfo = { __typename?: 'UserInfo'; - email: Scalars['String']['output']; - firstName?: Maybe; - id: Scalars['String']['output']; - lastName?: Maybe; + email: Scalars['String']; + firstName?: Maybe; + id: Scalars['String']; + lastName?: Maybe; }; export type UserLookup = { @@ -2570,113 +2562,113 @@ export type UserLookup = { }; export type UserMappingOptions = { - password?: InputMaybe; - user?: InputMaybe; + password?: InputMaybe; + user?: InputMaybe; }; export type UserMappingOptionsUpdateInput = { - password?: InputMaybe; - user?: InputMaybe; + password?: InputMaybe; + user?: InputMaybe; }; export type UserMappingOptionsUser = { __typename?: 'UserMappingOptionsUser'; - user?: Maybe; + user?: Maybe; }; export type UserWorkspace = { __typename?: 'UserWorkspace'; - createdAt: Scalars['DateTime']['output']; - deletedAt?: Maybe; - id: Scalars['UUID']['output']; + createdAt: Scalars['DateTime']; + deletedAt?: Maybe; + id: Scalars['UUID']; objectPermissions?: Maybe>; /** @deprecated Use objectPermissions instead */ objectRecordsPermissions?: Maybe>; settingsPermissions?: Maybe>; - updatedAt: Scalars['DateTime']['output']; + updatedAt: Scalars['DateTime']; user: User; - userId: Scalars['String']['output']; + userId: Scalars['String']; workspace?: Maybe; - workspaceId: Scalars['String']['output']; + workspaceId: Scalars['String']; }; export type ValidateApprovedAccessDomainInput = { - approvedAccessDomainId: Scalars['String']['input']; - validationToken: Scalars['String']['input']; + approvedAccessDomainId: Scalars['String']; + validationToken: Scalars['String']; }; export type ValidatePasswordResetToken = { __typename?: 'ValidatePasswordResetToken'; - email: Scalars['String']['output']; - id: Scalars['String']['output']; + email: Scalars['String']; + id: Scalars['String']; }; export type VersionInfo = { __typename?: 'VersionInfo'; - currentVersion?: Maybe; - latestVersion: Scalars['String']['output']; + currentVersion?: Maybe; + latestVersion: Scalars['String']; }; export type WorkerQueueMetrics = { __typename?: 'WorkerQueueMetrics'; - active: Scalars['Float']['output']; - completed: Scalars['Float']['output']; - completedData?: Maybe>; - delayed: Scalars['Float']['output']; - failed: Scalars['Float']['output']; - failedData?: Maybe>; - failureRate: Scalars['Float']['output']; - waiting: Scalars['Float']['output']; + active: Scalars['Float']; + completed: Scalars['Float']; + completedData?: Maybe>; + delayed: Scalars['Float']; + failed: Scalars['Float']; + failedData?: Maybe>; + failureRate: Scalars['Float']; + waiting: Scalars['Float']; }; export type WorkflowAction = { __typename?: 'WorkflowAction'; - id: Scalars['UUID']['output']; - name: Scalars['String']['output']; - nextStepIds?: Maybe>; - settings: Scalars['JSON']['output']; - type: Scalars['String']['output']; - valid: Scalars['Boolean']['output']; + id: Scalars['UUID']; + name: Scalars['String']; + nextStepIds?: Maybe>; + settings: Scalars['JSON']; + type: Scalars['String']; + valid: Scalars['Boolean']; }; export type WorkflowRun = { __typename?: 'WorkflowRun'; - workflowRunId: Scalars['UUID']['output']; + workflowRunId: Scalars['UUID']; }; export type WorkflowVersion = { __typename?: 'WorkflowVersion'; - id: Scalars['UUID']['output']; + id: Scalars['UUID']; }; export type Workspace = { __typename?: 'Workspace'; activationStatus: WorkspaceActivationStatus; - allowImpersonation: Scalars['Boolean']['output']; + allowImpersonation: Scalars['Boolean']; billingSubscriptions: Array; - createdAt: Scalars['DateTime']['output']; + createdAt: Scalars['DateTime']; currentBillingSubscription?: Maybe; - customDomain?: Maybe; - databaseSchema: Scalars['String']['output']; - databaseUrl: Scalars['String']['output']; + customDomain?: Maybe; + databaseSchema: Scalars['String']; + databaseUrl: Scalars['String']; defaultRole?: Maybe; - deletedAt?: Maybe; - displayName?: Maybe; + deletedAt?: Maybe; + displayName?: Maybe; featureFlags?: Maybe>; - hasValidEnterpriseKey: Scalars['Boolean']['output']; - id: Scalars['UUID']['output']; - inviteHash?: Maybe; - isCustomDomainEnabled: Scalars['Boolean']['output']; - isGoogleAuthEnabled: Scalars['Boolean']['output']; - isMicrosoftAuthEnabled: Scalars['Boolean']['output']; - isPasswordAuthEnabled: Scalars['Boolean']['output']; - isPublicInviteLinkEnabled: Scalars['Boolean']['output']; - logo?: Maybe; - metadataVersion: Scalars['Float']['output']; - subdomain: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; - version?: Maybe; - workspaceMembersCount?: Maybe; + hasValidEnterpriseKey: Scalars['Boolean']; + id: Scalars['UUID']; + inviteHash?: Maybe; + isCustomDomainEnabled: Scalars['Boolean']; + isGoogleAuthEnabled: Scalars['Boolean']; + isMicrosoftAuthEnabled: Scalars['Boolean']; + isPasswordAuthEnabled: Scalars['Boolean']; + isPublicInviteLinkEnabled: Scalars['Boolean']; + logo?: Maybe; + metadataVersion: Scalars['Float']; + subdomain: Scalars['String']; + updatedAt: Scalars['DateTime']; + version?: Maybe; + workspaceMembersCount?: Maybe; workspaceUrls: WorkspaceUrls; }; @@ -2691,47 +2683,47 @@ export enum WorkspaceActivationStatus { export type WorkspaceEdge = { __typename?: 'WorkspaceEdge'; /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']['output']; + cursor: Scalars['ConnectionCursor']; /** The node containing the Workspace */ node: Workspace; }; export type WorkspaceInfo = { __typename?: 'WorkspaceInfo'; - allowImpersonation: Scalars['Boolean']['output']; + allowImpersonation: Scalars['Boolean']; featureFlags: Array; - id: Scalars['String']['output']; - logo?: Maybe; - name: Scalars['String']['output']; - totalUsers: Scalars['Float']['output']; + id: Scalars['String']; + logo?: Maybe; + name: Scalars['String']; + totalUsers: Scalars['Float']; users: Array; }; export type WorkspaceInvitation = { __typename?: 'WorkspaceInvitation'; - email: Scalars['String']['output']; - expiresAt: Scalars['DateTime']['output']; - id: Scalars['UUID']['output']; + email: Scalars['String']; + expiresAt: Scalars['DateTime']; + id: Scalars['UUID']; }; export type WorkspaceInviteHashValid = { __typename?: 'WorkspaceInviteHashValid'; - isValid: Scalars['Boolean']['output']; + isValid: Scalars['Boolean']; }; export type WorkspaceMember = { __typename?: 'WorkspaceMember'; - avatarUrl?: Maybe; - colorScheme: Scalars['String']['output']; + avatarUrl?: Maybe; + colorScheme: Scalars['String']; dateFormat?: Maybe; - id: Scalars['UUID']['output']; - locale?: Maybe; + id: Scalars['UUID']; + locale?: Maybe; name: FullName; roles?: Maybe>; timeFormat?: Maybe; - timeZone?: Maybe; - userEmail: Scalars['String']['output']; - userWorkspaceId?: Maybe; + timeZone?: Maybe; + userEmail: Scalars['String']; + userWorkspaceId?: Maybe; }; /** Date format as Month first, Day first, Year first or system as default */ @@ -2751,23 +2743,256 @@ export enum WorkspaceMemberTimeFormatEnum { export type WorkspaceNameAndId = { __typename?: 'WorkspaceNameAndId'; - displayName?: Maybe; - id: Scalars['String']['output']; + displayName?: Maybe; + id: Scalars['String']; }; export type WorkspaceUrls = { __typename?: 'WorkspaceUrls'; - customUrl?: Maybe; - subdomainUrl: Scalars['String']['output']; + customUrl?: Maybe; + subdomainUrl: Scalars['String']; }; export type WorkspaceUrlsAndId = { __typename?: 'WorkspaceUrlsAndId'; - id: Scalars['String']['output']; + id: Scalars['String']; workspaceUrls: WorkspaceUrls; }; -export type RemoteServerFieldsFragment = { __typename?: 'RemoteServer', id: string, createdAt: any, foreignDataWrapperId: string, foreignDataWrapperOptions?: any | null, foreignDataWrapperType: string, updatedAt: any, schema?: string | null, label: string, userMappingOptions?: { __typename?: 'UserMappingOptionsUser', user?: string | null } | null }; +export type TrackAnalyticsMutationVariables = Exact<{ + type: AnalyticsType; + event?: InputMaybe; + name?: InputMaybe; + properties?: InputMaybe; +}>; + + +export type TrackAnalyticsMutation = { __typename?: 'Mutation', trackAnalytics: { __typename?: 'Analytics', success: boolean } }; + +export type UploadFileMutationVariables = Exact<{ + file: Scalars['Upload']; + fileFolder?: InputMaybe; +}>; + + +export type UploadFileMutation = { __typename?: 'Mutation', uploadFile: { __typename?: 'SignedFileDTO', path: string, token: string } }; + +export type UploadImageMutationVariables = Exact<{ + file: Scalars['Upload']; + fileFolder?: InputMaybe; +}>; + + +export type UploadImageMutation = { __typename?: 'Mutation', uploadImage: { __typename?: 'SignedFileDTO', path: string, token: string } }; + +export type AuthTokenFragmentFragment = { __typename?: 'AuthToken', token: string, expiresAt: string }; + +export type AuthTokensFragmentFragment = { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } }; + +export type AvailableWorkspaceFragmentFragment = { __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }; + +export type AvailableWorkspacesFragmentFragment = { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> }; + +export type AvailableSsoIdentityProvidersFragmentFragment = { __typename?: 'FindAvailableSSOIDPOutput', id: string, issuer: string, name: string, status: SsoIdentityProviderStatus, workspace: { __typename?: 'WorkspaceNameAndId', id: string, displayName?: string | null } }; + +export type AuthorizeAppMutationVariables = Exact<{ + clientId: Scalars['String']; + codeChallenge: Scalars['String']; + redirectUrl: Scalars['String']; +}>; + + +export type AuthorizeAppMutation = { __typename?: 'Mutation', authorizeApp: { __typename?: 'AuthorizeApp', redirectUrl: string } }; + +export type EmailPasswordResetLinkMutationVariables = Exact<{ + email: Scalars['String']; + workspaceId: Scalars['String']; +}>; + + +export type EmailPasswordResetLinkMutation = { __typename?: 'Mutation', emailPasswordResetLink: { __typename?: 'EmailPasswordResetLink', success: boolean } }; + +export type GenerateApiKeyTokenMutationVariables = Exact<{ + apiKeyId: Scalars['String']; + expiresAt: Scalars['String']; +}>; + + +export type GenerateApiKeyTokenMutation = { __typename?: 'Mutation', generateApiKeyToken: { __typename?: 'ApiKeyToken', token: string } }; + +export type GenerateTransientTokenMutationVariables = Exact<{ [key: string]: never; }>; + + +export type GenerateTransientTokenMutation = { __typename?: 'Mutation', generateTransientToken: { __typename?: 'TransientToken', transientToken: { __typename?: 'AuthToken', token: string } } }; + +export type GetAuthTokensFromLoginTokenMutationVariables = Exact<{ + loginToken: Scalars['String']; + origin: Scalars['String']; +}>; + + +export type GetAuthTokensFromLoginTokenMutation = { __typename?: 'Mutation', getAuthTokensFromLoginToken: { __typename?: 'AuthTokens', tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; + +export type GetAuthorizationUrlForSsoMutationVariables = Exact<{ + input: GetAuthorizationUrlForSsoInput; +}>; + + +export type GetAuthorizationUrlForSsoMutation = { __typename?: 'Mutation', getAuthorizationUrlForSSO: { __typename?: 'GetAuthorizationUrlForSSOOutput', id: string, type: string, authorizationURL: string } }; + +export type GetLoginTokenFromCredentialsMutationVariables = Exact<{ + email: Scalars['String']; + password: Scalars['String']; + captchaToken?: InputMaybe; + origin: Scalars['String']; +}>; + + +export type GetLoginTokenFromCredentialsMutation = { __typename?: 'Mutation', getLoginTokenFromCredentials: { __typename?: 'LoginToken', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } }; + +export type GetLoginTokenFromEmailVerificationTokenMutationVariables = Exact<{ + emailVerificationToken: Scalars['String']; + email: Scalars['String']; + captchaToken?: InputMaybe; + origin: Scalars['String']; +}>; + + +export type GetLoginTokenFromEmailVerificationTokenMutation = { __typename?: 'Mutation', getLoginTokenFromEmailVerificationToken: { __typename?: 'GetLoginTokenFromEmailVerificationTokenOutput', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null } } }; + +export type ImpersonateMutationVariables = Exact<{ + userId: Scalars['String']; + workspaceId: Scalars['String']; +}>; + + +export type ImpersonateMutation = { __typename?: 'Mutation', impersonate: { __typename?: 'ImpersonateOutput', workspace: { __typename?: 'WorkspaceUrlsAndId', id: string, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null } }, loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } }; + +export type RenewTokenMutationVariables = Exact<{ + appToken: Scalars['String']; +}>; + + +export type RenewTokenMutation = { __typename?: 'Mutation', renewToken: { __typename?: 'AuthTokens', tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; + +export type ResendEmailVerificationTokenMutationVariables = Exact<{ + email: Scalars['String']; + origin: Scalars['String']; +}>; + + +export type ResendEmailVerificationTokenMutation = { __typename?: 'Mutation', resendEmailVerificationToken: { __typename?: 'ResendEmailVerificationTokenOutput', success: boolean } }; + +export type SignInMutationVariables = Exact<{ + email: Scalars['String']; + password: Scalars['String']; + captchaToken?: InputMaybe; +}>; + + +export type SignInMutation = { __typename?: 'Mutation', signIn: { __typename?: 'AvailableWorkspacesAndAccessTokensOutput', availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; + +export type SignUpMutationVariables = Exact<{ + email: Scalars['String']; + password: Scalars['String']; + captchaToken?: InputMaybe; +}>; + + +export type SignUpMutation = { __typename?: 'Mutation', signUp: { __typename?: 'AvailableWorkspacesAndAccessTokensOutput', availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; + +export type SignUpInNewWorkspaceMutationVariables = Exact<{ [key: string]: never; }>; + + +export type SignUpInNewWorkspaceMutation = { __typename?: 'Mutation', signUpInNewWorkspace: { __typename?: 'SignUpOutput', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, workspace: { __typename?: 'WorkspaceUrlsAndId', id: string, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null } } } }; + +export type SignUpInWorkspaceMutationVariables = Exact<{ + email: Scalars['String']; + password: Scalars['String']; + workspaceInviteHash?: InputMaybe; + workspacePersonalInviteToken?: InputMaybe; + captchaToken?: InputMaybe; + workspaceId?: InputMaybe; + locale?: InputMaybe; + verifyEmailNextPath?: InputMaybe; +}>; + + +export type SignUpInWorkspaceMutation = { __typename?: 'Mutation', signUpInWorkspace: { __typename?: 'SignUpOutput', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, workspace: { __typename?: 'WorkspaceUrlsAndId', id: string, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null } } } }; + +export type UpdatePasswordViaResetTokenMutationVariables = Exact<{ + token: Scalars['String']; + newPassword: Scalars['String']; +}>; + + +export type UpdatePasswordViaResetTokenMutation = { __typename?: 'Mutation', updatePasswordViaResetToken: { __typename?: 'InvalidatePassword', success: boolean } }; + +export type CheckUserExistsQueryVariables = Exact<{ + email: Scalars['String']; + captchaToken?: InputMaybe; +}>; + + +export type CheckUserExistsQuery = { __typename?: 'Query', checkUserExists: { __typename?: 'CheckUserExistOutput', exists: boolean, availableWorkspacesCount: number, isEmailVerified: boolean } }; + +export type GetPublicWorkspaceDataByDomainQueryVariables = Exact<{ + origin: Scalars['String']; +}>; + + +export type GetPublicWorkspaceDataByDomainQuery = { __typename?: 'Query', getPublicWorkspaceDataByDomain: { __typename?: 'PublicWorkspaceDataOutput', id: string, logo?: string | null, displayName?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, authProviders: { __typename?: 'AuthProviders', google: boolean, magicLink: boolean, password: boolean, microsoft: boolean, sso: Array<{ __typename?: 'SSOIdentityProvider', id: string, name: string, type: IdentityProviderType, status: SsoIdentityProviderStatus, issuer: string }> } } }; + +export type ValidatePasswordResetTokenQueryVariables = Exact<{ + token: Scalars['String']; +}>; + + +export type ValidatePasswordResetTokenQuery = { __typename?: 'Query', validatePasswordResetToken: { __typename?: 'ValidatePasswordResetToken', id: string, email: string } }; + +export type CheckoutSessionMutationVariables = Exact<{ + recurringInterval: SubscriptionInterval; + successUrlPath?: InputMaybe; + plan: BillingPlanKey; + requirePaymentMethod: Scalars['Boolean']; +}>; + + +export type CheckoutSessionMutation = { __typename?: 'Mutation', checkoutSession: { __typename?: 'BillingSessionOutput', url?: string | null } }; + +export type EndSubscriptionTrialPeriodMutationVariables = Exact<{ [key: string]: never; }>; + + +export type EndSubscriptionTrialPeriodMutation = { __typename?: 'Mutation', endSubscriptionTrialPeriod: { __typename?: 'BillingEndTrialPeriodOutput', status?: SubscriptionStatus | null, hasPaymentMethod: boolean } }; + +export type SwitchSubscriptionToEnterprisePlanMutationVariables = Exact<{ [key: string]: never; }>; + + +export type SwitchSubscriptionToEnterprisePlanMutation = { __typename?: 'Mutation', switchToEnterprisePlan: { __typename?: 'BillingUpdateOutput', success: boolean } }; + +export type SwitchSubscriptionToYearlyIntervalMutationVariables = Exact<{ [key: string]: never; }>; + + +export type SwitchSubscriptionToYearlyIntervalMutation = { __typename?: 'Mutation', switchToYearlyInterval: { __typename?: 'BillingUpdateOutput', success: boolean } }; + +export type BillingBaseProductPricesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type BillingBaseProductPricesQuery = { __typename?: 'Query', plans: Array<{ __typename?: 'BillingPlanOutput', planKey: BillingPlanKey, baseProduct: { __typename?: 'BillingProduct', name: string, prices?: Array<{ __typename?: 'BillingPriceLicensedDTO', unitAmount: number, stripePriceId: string, recurringInterval: SubscriptionInterval } | { __typename?: 'BillingPriceMeteredDTO' }> | null } }> }; + +export type BillingPortalSessionQueryVariables = Exact<{ + returnUrlPath?: InputMaybe; +}>; + + +export type BillingPortalSessionQuery = { __typename?: 'Query', billingPortalSession: { __typename?: 'BillingSessionOutput', url?: string | null } }; + +export type GetMeteredProductsUsageQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetMeteredProductsUsageQuery = { __typename?: 'Query', getMeteredProductsUsage: Array<{ __typename?: 'BillingMeteredProductUsageOutput', productKey: BillingProductKey, usageQuantity: number, freeTierQuantity: number, freeTrialQuantity: number, unitPriceCents: number, totalCostCents: number }> }; + +export type RemoteServerFieldsFragment = { __typename?: 'RemoteServer', id: string, createdAt: string, foreignDataWrapperId: string, foreignDataWrapperOptions?: any | null, foreignDataWrapperType: string, updatedAt: string, schema?: string | null, label: string, userMappingOptions?: { __typename?: 'UserMappingOptionsUser', user?: string | null } | null }; export type RemoteTableFieldsFragment = { __typename?: 'RemoteTable', id?: any | null, name: string, schema?: string | null, status: RemoteTableStatus, schemaPendingUpdates?: Array | null }; @@ -2776,7 +3001,7 @@ export type CreateServerMutationVariables = Exact<{ }>; -export type CreateServerMutation = { __typename?: 'Mutation', createOneRemoteServer: { __typename?: 'RemoteServer', id: string, createdAt: any, foreignDataWrapperId: string, foreignDataWrapperOptions?: any | null, foreignDataWrapperType: string, updatedAt: any, schema?: string | null, label: string, userMappingOptions?: { __typename?: 'UserMappingOptionsUser', user?: string | null } | null } }; +export type CreateServerMutation = { __typename?: 'Mutation', createOneRemoteServer: { __typename?: 'RemoteServer', id: string, createdAt: string, foreignDataWrapperId: string, foreignDataWrapperOptions?: any | null, foreignDataWrapperType: string, updatedAt: string, schema?: string | null, label: string, userMappingOptions?: { __typename?: 'UserMappingOptionsUser', user?: string | null } | null } }; export type DeleteServerMutationVariables = Exact<{ input: RemoteServerIdInput; @@ -2811,14 +3036,14 @@ export type UpdateServerMutationVariables = Exact<{ }>; -export type UpdateServerMutation = { __typename?: 'Mutation', updateOneRemoteServer: { __typename?: 'RemoteServer', id: string, createdAt: any, foreignDataWrapperId: string, foreignDataWrapperOptions?: any | null, foreignDataWrapperType: string, updatedAt: any, schema?: string | null, label: string, userMappingOptions?: { __typename?: 'UserMappingOptionsUser', user?: string | null } | null } }; +export type UpdateServerMutation = { __typename?: 'Mutation', updateOneRemoteServer: { __typename?: 'RemoteServer', id: string, createdAt: string, foreignDataWrapperId: string, foreignDataWrapperOptions?: any | null, foreignDataWrapperType: string, updatedAt: string, schema?: string | null, label: string, userMappingOptions?: { __typename?: 'UserMappingOptionsUser', user?: string | null } | null } }; export type GetManyDatabaseConnectionsQueryVariables = Exact<{ input: RemoteServerTypeInput; }>; -export type GetManyDatabaseConnectionsQuery = { __typename?: 'Query', findManyRemoteServersByType: Array<{ __typename?: 'RemoteServer', id: string, createdAt: any, foreignDataWrapperId: string, foreignDataWrapperOptions?: any | null, foreignDataWrapperType: string, updatedAt: any, schema?: string | null, label: string, userMappingOptions?: { __typename?: 'UserMappingOptionsUser', user?: string | null } | null }> }; +export type GetManyDatabaseConnectionsQuery = { __typename?: 'Query', findManyRemoteServersByType: Array<{ __typename?: 'RemoteServer', id: string, createdAt: string, foreignDataWrapperId: string, foreignDataWrapperOptions?: any | null, foreignDataWrapperType: string, updatedAt: string, schema?: string | null, label: string, userMappingOptions?: { __typename?: 'UserMappingOptionsUser', user?: string | null } | null }> }; export type GetManyRemoteTablesQueryVariables = Exact<{ input: FindManyRemoteTablesInput; @@ -2832,72 +3057,296 @@ export type GetOneDatabaseConnectionQueryVariables = Exact<{ }>; -export type GetOneDatabaseConnectionQuery = { __typename?: 'Query', findOneRemoteServerById: { __typename?: 'RemoteServer', id: string, createdAt: any, foreignDataWrapperId: string, foreignDataWrapperOptions?: any | null, foreignDataWrapperType: string, updatedAt: any, schema?: string | null, label: string, userMappingOptions?: { __typename?: 'UserMappingOptionsUser', user?: string | null } | null } }; +export type GetOneDatabaseConnectionQuery = { __typename?: 'Query', findOneRemoteServerById: { __typename?: 'RemoteServer', id: string, createdAt: string, foreignDataWrapperId: string, foreignDataWrapperOptions?: any | null, foreignDataWrapperType: string, updatedAt: string, schema?: string | null, label: string, userMappingOptions?: { __typename?: 'UserMappingOptionsUser', user?: string | null } | null } }; export type CreateOneObjectMetadataItemMutationVariables = Exact<{ input: CreateOneObjectInput; }>; -export type CreateOneObjectMetadataItemMutation = { __typename?: 'Mutation', createOneObject: { __typename?: 'Object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isActive: boolean, isSearchable: boolean, createdAt: any, updatedAt: any, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, isLabelSyncedWithName: boolean } }; +export type CreateOneObjectMetadataItemMutation = { __typename?: 'Mutation', createOneObject: { __typename?: 'Object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isActive: boolean, isSearchable: boolean, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, isLabelSyncedWithName: boolean } }; export type CreateOneFieldMetadataItemMutationVariables = Exact<{ input: CreateOneFieldMetadataInput; }>; -export type CreateOneFieldMetadataItemMutation = { __typename?: 'Mutation', createOneField: { __typename?: 'Field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isNullable?: boolean | null, createdAt: any, updatedAt: any, settings?: any | null, defaultValue?: any | null, options?: any | null, isLabelSyncedWithName?: boolean | null } }; +export type CreateOneFieldMetadataItemMutation = { __typename?: 'Mutation', createOneField: { __typename?: 'Field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isNullable?: boolean | null, createdAt: string, updatedAt: string, settings?: any | null, defaultValue?: any | null, options?: any | null, isLabelSyncedWithName?: boolean | null } }; export type UpdateOneFieldMetadataItemMutationVariables = Exact<{ - idToUpdate: Scalars['UUID']['input']; + idToUpdate: Scalars['UUID']; updatePayload: UpdateFieldInput; }>; -export type UpdateOneFieldMetadataItemMutation = { __typename?: 'Mutation', updateOneField: { __typename?: 'Field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isNullable?: boolean | null, createdAt: any, updatedAt: any, settings?: any | null, isLabelSyncedWithName?: boolean | null } }; +export type UpdateOneFieldMetadataItemMutation = { __typename?: 'Mutation', updateOneField: { __typename?: 'Field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isNullable?: boolean | null, createdAt: string, updatedAt: string, settings?: any | null, isLabelSyncedWithName?: boolean | null } }; export type UpdateOneObjectMetadataItemMutationVariables = Exact<{ - idToUpdate: Scalars['UUID']['input']; + idToUpdate: Scalars['UUID']; updatePayload: UpdateObjectPayload; }>; -export type UpdateOneObjectMetadataItemMutation = { __typename?: 'Mutation', updateOneObject: { __typename?: 'Object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isActive: boolean, isSearchable: boolean, createdAt: any, updatedAt: any, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, isLabelSyncedWithName: boolean } }; +export type UpdateOneObjectMetadataItemMutation = { __typename?: 'Mutation', updateOneObject: { __typename?: 'Object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isActive: boolean, isSearchable: boolean, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, isLabelSyncedWithName: boolean } }; export type DeleteOneObjectMetadataItemMutationVariables = Exact<{ - idToDelete: Scalars['UUID']['input']; + idToDelete: Scalars['UUID']; }>; -export type DeleteOneObjectMetadataItemMutation = { __typename?: 'Mutation', deleteOneObject: { __typename?: 'Object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isActive: boolean, isSearchable: boolean, createdAt: any, updatedAt: any, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, isLabelSyncedWithName: boolean } }; +export type DeleteOneObjectMetadataItemMutation = { __typename?: 'Mutation', deleteOneObject: { __typename?: 'Object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isActive: boolean, isSearchable: boolean, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, isLabelSyncedWithName: boolean } }; export type DeleteOneFieldMetadataItemMutationVariables = Exact<{ - idToDelete: Scalars['UUID']['input']; + idToDelete: Scalars['UUID']; }>; -export type DeleteOneFieldMetadataItemMutation = { __typename?: 'Mutation', deleteOneField: { __typename?: 'Field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isNullable?: boolean | null, createdAt: any, updatedAt: any, settings?: any | null } }; +export type DeleteOneFieldMetadataItemMutation = { __typename?: 'Mutation', deleteOneField: { __typename?: 'Field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isNullable?: boolean | null, createdAt: string, updatedAt: string, settings?: any | null } }; export type ObjectMetadataItemsQueryVariables = Exact<{ [key: string]: never; }>; -export type ObjectMetadataItemsQuery = { __typename?: 'Query', objects: { __typename?: 'ObjectConnection', edges: Array<{ __typename?: 'ObjectEdge', node: { __typename?: 'Object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isRemote: boolean, isActive: boolean, isSystem: boolean, createdAt: any, updatedAt: any, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, shortcut?: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, duplicateCriteria?: Array> | null, indexMetadataList: Array<{ __typename?: 'Index', id: any, createdAt: any, updatedAt: any, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: any, fieldMetadataId: any, createdAt: any, updatedAt: any, order: number }> }>, fieldsList: Array<{ __typename?: 'Field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isSystem?: boolean | null, isNullable?: boolean | null, isUnique?: boolean | null, createdAt: any, updatedAt: any, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName?: boolean | null, relation?: { __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: any, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: any, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: any, name: string }, targetFieldMetadata: { __typename?: 'Field', id: any, name: string } } | null }> } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } }; +export type ObjectMetadataItemsQuery = { __typename?: 'Query', objects: { __typename?: 'ObjectConnection', edges: Array<{ __typename?: 'ObjectEdge', node: { __typename?: 'Object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isRemote: boolean, isActive: boolean, isSystem: boolean, createdAt: string, updatedAt: string, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, shortcut?: string | null, isLabelSyncedWithName: boolean, isSearchable: boolean, duplicateCriteria?: Array> | null, indexMetadataList: Array<{ __typename?: 'Index', id: any, createdAt: string, updatedAt: string, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, indexFieldMetadataList: Array<{ __typename?: 'IndexField', id: any, fieldMetadataId: any, createdAt: string, updatedAt: string, order: number }> }>, fieldsList: Array<{ __typename?: 'Field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isSystem?: boolean | null, isNullable?: boolean | null, isUnique?: boolean | null, createdAt: string, updatedAt: string, defaultValue?: any | null, options?: any | null, settings?: any | null, isLabelSyncedWithName?: boolean | null, relation?: { __typename?: 'Relation', type: RelationType, sourceObjectMetadata: { __typename?: 'Object', id: any, nameSingular: string, namePlural: string }, targetObjectMetadata: { __typename?: 'Object', id: any, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'Field', id: any, name: string }, targetFieldMetadata: { __typename?: 'Field', id: any, name: string } } | null }> } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } }; -export type ServerlessFunctionFieldsFragment = { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: any, updatedAt: any }; +export type SkipBookOnboardingStepMutationVariables = Exact<{ [key: string]: never; }>; + + +export type SkipBookOnboardingStepMutation = { __typename?: 'Mutation', skipBookOnboardingStep: { __typename?: 'OnboardingStepSuccess', success: boolean } }; + +export type SkipSyncEmailOnboardingStepMutationVariables = Exact<{ [key: string]: never; }>; + + +export type SkipSyncEmailOnboardingStepMutation = { __typename?: 'Mutation', skipSyncEmailOnboardingStep: { __typename?: 'OnboardingStepSuccess', success: boolean } }; + +export type SaveImapSmtpCaldavMutationVariables = Exact<{ + accountOwnerId: Scalars['String']; + handle: Scalars['String']; + accountType: AccountType; + connectionParameters: ConnectionParameters; + id?: InputMaybe; +}>; + + +export type SaveImapSmtpCaldavMutation = { __typename?: 'Mutation', saveImapSmtpCaldav: { __typename?: 'ImapSmtpCaldavConnectionSuccess', success: boolean } }; + +export type GetConnectedImapSmtpCaldavAccountQueryVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type GetConnectedImapSmtpCaldavAccountQuery = { __typename?: 'Query', getConnectedImapSmtpCaldavAccount: { __typename?: 'ConnectedImapSmtpCaldavAccount', id: string, handle: string, provider: string, accountOwnerId: string, connectionParameters?: { __typename?: 'ImapSmtpCaldavConnectionParameters', IMAP?: { __typename?: 'ConnectionParametersOutput', host: string, port: number, secure?: boolean | null, username: string, password: string } | null, SMTP?: { __typename?: 'ConnectionParametersOutput', host: string, port: number, secure?: boolean | null, username: string, password: string } | null, CALDAV?: { __typename?: 'ConnectionParametersOutput', host: string, port: number, secure?: boolean | null, username: string, password: string } | null } | null } }; + +export type CreateDatabaseConfigVariableMutationVariables = Exact<{ + key: Scalars['String']; + value: Scalars['JSON']; +}>; + + +export type CreateDatabaseConfigVariableMutation = { __typename?: 'Mutation', createDatabaseConfigVariable: boolean }; + +export type DeleteDatabaseConfigVariableMutationVariables = Exact<{ + key: Scalars['String']; +}>; + + +export type DeleteDatabaseConfigVariableMutation = { __typename?: 'Mutation', deleteDatabaseConfigVariable: boolean }; + +export type UpdateDatabaseConfigVariableMutationVariables = Exact<{ + key: Scalars['String']; + value: Scalars['JSON']; +}>; + + +export type UpdateDatabaseConfigVariableMutation = { __typename?: 'Mutation', updateDatabaseConfigVariable: boolean }; + +export type GetConfigVariablesGroupedQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetConfigVariablesGroupedQuery = { __typename?: 'Query', getConfigVariablesGrouped: { __typename?: 'ConfigVariablesOutput', groups: Array<{ __typename?: 'ConfigVariablesGroupData', name: ConfigVariablesGroup, description: string, isHiddenOnLoad: boolean, variables: Array<{ __typename?: 'ConfigVariable', name: string, description: string, value?: any | null, isSensitive: boolean, isEnvOnly: boolean, type: ConfigVariableType, options?: any | null, source: ConfigSource }> }> } }; + +export type GetDatabaseConfigVariableQueryVariables = Exact<{ + key: Scalars['String']; +}>; + + +export type GetDatabaseConfigVariableQuery = { __typename?: 'Query', getDatabaseConfigVariable: { __typename?: 'ConfigVariable', name: string, description: string, value?: any | null, isSensitive: boolean, isEnvOnly: boolean, type: ConfigVariableType, options?: any | null, source: ConfigSource } }; + +export type UpdateWorkspaceFeatureFlagMutationVariables = Exact<{ + workspaceId: Scalars['String']; + featureFlag: Scalars['String']; + value: Scalars['Boolean']; +}>; + + +export type UpdateWorkspaceFeatureFlagMutation = { __typename?: 'Mutation', updateWorkspaceFeatureFlag: boolean }; + +export type UserLookupAdminPanelMutationVariables = Exact<{ + userIdentifier: Scalars['String']; +}>; + + +export type UserLookupAdminPanelMutation = { __typename?: 'Mutation', userLookupAdminPanel: { __typename?: 'UserLookup', user: { __typename?: 'UserInfo', id: string, email: string, firstName?: string | null, lastName?: string | null }, workspaces: Array<{ __typename?: 'WorkspaceInfo', id: string, name: string, logo?: string | null, totalUsers: number, allowImpersonation: boolean, users: Array<{ __typename?: 'UserInfo', id: string, email: string, firstName?: string | null, lastName?: string | null }>, featureFlags: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> }> } }; + +export type GetVersionInfoQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetVersionInfoQuery = { __typename?: 'Query', versionInfo: { __typename?: 'VersionInfo', currentVersion?: string | null, latestVersion: string } }; + +export type GetIndicatorHealthStatusQueryVariables = Exact<{ + indicatorId: HealthIndicatorId; +}>; + + +export type GetIndicatorHealthStatusQuery = { __typename?: 'Query', getIndicatorHealthStatus: { __typename?: 'AdminPanelHealthServiceData', id: string, label: string, description: string, status: AdminPanelHealthServiceStatus, errorMessage?: string | null, details?: string | null, queues?: Array<{ __typename?: 'AdminPanelWorkerQueueHealth', id: string, queueName: string, status: AdminPanelHealthServiceStatus }> | null } }; + +export type GetQueueMetricsQueryVariables = Exact<{ + queueName: Scalars['String']; + timeRange?: InputMaybe; +}>; + + +export type GetQueueMetricsQuery = { __typename?: 'Query', getQueueMetrics: { __typename?: 'QueueMetricsData', queueName: string, timeRange: QueueMetricsTimeRange, workers: number, details?: { __typename?: 'WorkerQueueMetrics', failed: number, completed: number, waiting: number, active: number, delayed: number, failureRate: number } | null, data: Array<{ __typename?: 'QueueMetricsSeries', id: string, data: Array<{ __typename?: 'QueueMetricsDataPoint', x: number, y: number }> }> } }; + +export type GetSystemHealthStatusQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetSystemHealthStatusQuery = { __typename?: 'Query', getSystemHealthStatus: { __typename?: 'SystemHealth', services: Array<{ __typename?: 'SystemHealthService', id: HealthIndicatorId, label: string, status: AdminPanelHealthServiceStatus }> } }; + +export type UpdateLabPublicFeatureFlagMutationVariables = Exact<{ + input: UpdateLabPublicFeatureFlagInput; +}>; + + +export type UpdateLabPublicFeatureFlagMutation = { __typename?: 'Mutation', updateLabPublicFeatureFlag: { __typename?: 'FeatureFlagDTO', key: FeatureFlagKey, value: boolean } }; + +export type ObjectPermissionFragmentFragment = { __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }; + +export type RoleFragmentFragment = { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean }; + +export type SettingPermissionFragmentFragment = { __typename?: 'SettingPermission', id: string, setting: SettingPermissionType, roleId: string }; + +export type CreateOneRoleMutationVariables = Exact<{ + createRoleInput: CreateRoleInput; +}>; + + +export type CreateOneRoleMutation = { __typename?: 'Mutation', createOneRole: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean } }; + +export type DeleteOneRoleMutationVariables = Exact<{ + roleId: Scalars['String']; +}>; + + +export type DeleteOneRoleMutation = { __typename?: 'Mutation', deleteOneRole: string }; + +export type UpdateOneRoleMutationVariables = Exact<{ + updateRoleInput: UpdateRoleInput; +}>; + + +export type UpdateOneRoleMutation = { __typename?: 'Mutation', updateOneRole: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean } }; + +export type UpdateWorkspaceMemberRoleMutationVariables = Exact<{ + workspaceMemberId: Scalars['String']; + roleId: Scalars['String']; +}>; + + +export type UpdateWorkspaceMemberRoleMutation = { __typename?: 'Mutation', updateWorkspaceMemberRole: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, roles?: Array<{ __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean }> | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } }; + +export type UpsertObjectPermissionsMutationVariables = Exact<{ + upsertObjectPermissionsInput: UpsertObjectPermissionsInput; +}>; + + +export type UpsertObjectPermissionsMutation = { __typename?: 'Mutation', upsertObjectPermissions: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> }; + +export type UpsertSettingPermissionsMutationVariables = Exact<{ + upsertSettingPermissionsInput: UpsertSettingPermissionsInput; +}>; + + +export type UpsertSettingPermissionsMutation = { __typename?: 'Mutation', upsertSettingPermissions: Array<{ __typename?: 'SettingPermission', id: string, setting: SettingPermissionType, roleId: string }> }; + +export type GetRolesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetRolesQuery = { __typename?: 'Query', getRoles: Array<{ __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, workspaceMembers: Array<{ __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }>, settingPermissions?: Array<{ __typename?: 'SettingPermission', id: string, setting: SettingPermissionType, roleId: string }> | null, objectPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null }> }; + +export type CreateApprovedAccessDomainMutationVariables = Exact<{ + input: CreateApprovedAccessDomainInput; +}>; + + +export type CreateApprovedAccessDomainMutation = { __typename?: 'Mutation', createApprovedAccessDomain: { __typename?: 'ApprovedAccessDomain', id: any, domain: string, isValidated: boolean, createdAt: string } }; + +export type CreateOidcIdentityProviderMutationVariables = Exact<{ + input: SetupOidcSsoInput; +}>; + + +export type CreateOidcIdentityProviderMutation = { __typename?: 'Mutation', createOIDCIdentityProvider: { __typename?: 'SetupSsoOutput', id: string, type: IdentityProviderType, issuer: string, name: string, status: SsoIdentityProviderStatus } }; + +export type CreateSamlIdentityProviderMutationVariables = Exact<{ + input: SetupSamlSsoInput; +}>; + + +export type CreateSamlIdentityProviderMutation = { __typename?: 'Mutation', createSAMLIdentityProvider: { __typename?: 'SetupSsoOutput', id: string, type: IdentityProviderType, issuer: string, name: string, status: SsoIdentityProviderStatus } }; + +export type DeleteApprovedAccessDomainMutationVariables = Exact<{ + input: DeleteApprovedAccessDomainInput; +}>; + + +export type DeleteApprovedAccessDomainMutation = { __typename?: 'Mutation', deleteApprovedAccessDomain: boolean }; + +export type DeleteSsoIdentityProviderMutationVariables = Exact<{ + input: DeleteSsoInput; +}>; + + +export type DeleteSsoIdentityProviderMutation = { __typename?: 'Mutation', deleteSSOIdentityProvider: { __typename?: 'DeleteSsoOutput', identityProviderId: string } }; + +export type EditSsoIdentityProviderMutationVariables = Exact<{ + input: EditSsoInput; +}>; + + +export type EditSsoIdentityProviderMutation = { __typename?: 'Mutation', editSSOIdentityProvider: { __typename?: 'EditSsoOutput', id: string, type: IdentityProviderType, issuer: string, name: string, status: SsoIdentityProviderStatus } }; + +export type ValidateApprovedAccessDomainMutationVariables = Exact<{ + input: ValidateApprovedAccessDomainInput; +}>; + + +export type ValidateApprovedAccessDomainMutation = { __typename?: 'Mutation', validateApprovedAccessDomain: { __typename?: 'ApprovedAccessDomain', id: any, isValidated: boolean, domain: string, createdAt: string } }; + +export type GetApprovedAccessDomainsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetApprovedAccessDomainsQuery = { __typename?: 'Query', getApprovedAccessDomains: Array<{ __typename?: 'ApprovedAccessDomain', id: any, createdAt: string, domain: string, isValidated: boolean }> }; + +export type GetSsoIdentityProvidersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetSsoIdentityProvidersQuery = { __typename?: 'Query', getSSOIdentityProviders: Array<{ __typename?: 'FindAvailableSSOIDPOutput', type: IdentityProviderType, id: string, name: string, issuer: string, status: SsoIdentityProviderStatus }> }; + +export type ServerlessFunctionFieldsFragment = { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: string, updatedAt: string }; export type CreateOneServerlessFunctionItemMutationVariables = Exact<{ input: CreateServerlessFunctionInput; }>; -export type CreateOneServerlessFunctionItemMutation = { __typename?: 'Mutation', createOneServerlessFunction: { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: any, updatedAt: any } }; +export type CreateOneServerlessFunctionItemMutation = { __typename?: 'Mutation', createOneServerlessFunction: { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: string, updatedAt: string } }; export type DeleteOneServerlessFunctionMutationVariables = Exact<{ input: ServerlessFunctionIdInput; }>; -export type DeleteOneServerlessFunctionMutation = { __typename?: 'Mutation', deleteOneServerlessFunction: { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: any, updatedAt: any } }; +export type DeleteOneServerlessFunctionMutation = { __typename?: 'Mutation', deleteOneServerlessFunction: { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: string, updatedAt: string } }; export type ExecuteOneServerlessFunctionMutationVariables = Exact<{ input: ExecuteServerlessFunctionInput; @@ -2911,14 +3360,14 @@ export type PublishOneServerlessFunctionMutationVariables = Exact<{ }>; -export type PublishOneServerlessFunctionMutation = { __typename?: 'Mutation', publishServerlessFunction: { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: any, updatedAt: any } }; +export type PublishOneServerlessFunctionMutation = { __typename?: 'Mutation', publishServerlessFunction: { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: string, updatedAt: string } }; export type UpdateOneServerlessFunctionMutationVariables = Exact<{ input: UpdateServerlessFunctionInput; }>; -export type UpdateOneServerlessFunctionMutation = { __typename?: 'Mutation', updateOneServerlessFunction: { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: any, updatedAt: any } }; +export type UpdateOneServerlessFunctionMutation = { __typename?: 'Mutation', updateOneServerlessFunction: { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: string, updatedAt: string } }; export type FindManyAvailablePackagesQueryVariables = Exact<{ input: ServerlessFunctionIdInput; @@ -2930,14 +3379,14 @@ export type FindManyAvailablePackagesQuery = { __typename?: 'Query', getAvailabl export type GetManyServerlessFunctionsQueryVariables = Exact<{ [key: string]: never; }>; -export type GetManyServerlessFunctionsQuery = { __typename?: 'Query', findManyServerlessFunctions: Array<{ __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: any, updatedAt: any }> }; +export type GetManyServerlessFunctionsQuery = { __typename?: 'Query', findManyServerlessFunctions: Array<{ __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: string, updatedAt: string }> }; export type GetOneServerlessFunctionQueryVariables = Exact<{ input: ServerlessFunctionIdInput; }>; -export type GetOneServerlessFunctionQuery = { __typename?: 'Query', findOneServerlessFunction: { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: any, updatedAt: any } }; +export type GetOneServerlessFunctionQuery = { __typename?: 'Query', findOneServerlessFunction: { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array, createdAt: string, updatedAt: string } }; export type FindOneServerlessFunctionSourceCodeQueryVariables = Exact<{ input: GetServerlessFunctionSourceCodeInput; @@ -2946,31 +3395,4751 @@ export type FindOneServerlessFunctionSourceCodeQueryVariables = Exact<{ export type FindOneServerlessFunctionSourceCodeQuery = { __typename?: 'Query', getServerlessFunctionSourceCode?: any | null }; -export const RemoteServerFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RemoteServerFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteServer"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperOptions"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperType"}},{"kind":"Field","name":{"kind":"Name","value":"userMappingOptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]} as unknown as DocumentNode; -export const RemoteTableFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RemoteTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteTable"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"schemaPendingUpdates"}}]}}]} as unknown as DocumentNode; -export const ServerlessFunctionFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersionInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"publishedVersions"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; -export const CreateServerDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"createServer"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateRemoteServerInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneRemoteServer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RemoteServerFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RemoteServerFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteServer"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperOptions"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperType"}},{"kind":"Field","name":{"kind":"Name","value":"userMappingOptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]} as unknown as DocumentNode; -export const DeleteServerDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"deleteServer"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteServerIdInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneRemoteServer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const SyncRemoteTableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"syncRemoteTable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteTableInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"syncRemoteTable"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RemoteTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RemoteTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteTable"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"schemaPendingUpdates"}}]}}]} as unknown as DocumentNode; -export const SyncRemoteTableSchemaChangesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"syncRemoteTableSchemaChanges"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteTableInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"syncRemoteTableSchemaChanges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RemoteTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RemoteTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteTable"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"schemaPendingUpdates"}}]}}]} as unknown as DocumentNode; -export const UnsyncRemoteTableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"unsyncRemoteTable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteTableInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"unsyncRemoteTable"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RemoteTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RemoteTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteTable"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"schemaPendingUpdates"}}]}}]} as unknown as DocumentNode; -export const UpdateServerDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"updateServer"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateRemoteServerInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneRemoteServer"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RemoteServerFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RemoteServerFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteServer"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperOptions"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperType"}},{"kind":"Field","name":{"kind":"Name","value":"userMappingOptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]} as unknown as DocumentNode; -export const GetManyDatabaseConnectionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetManyDatabaseConnections"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteServerTypeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyRemoteServersByType"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RemoteServerFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RemoteServerFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteServer"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperOptions"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperType"}},{"kind":"Field","name":{"kind":"Name","value":"userMappingOptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]} as unknown as DocumentNode; -export const GetManyRemoteTablesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetManyRemoteTables"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FindManyRemoteTablesInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findDistantTablesWithStatus"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RemoteTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RemoteTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteTable"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"schemaPendingUpdates"}}]}}]} as unknown as DocumentNode; -export const GetOneDatabaseConnectionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetOneDatabaseConnection"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteServerIdInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneRemoteServerById"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"RemoteServerFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"RemoteServerFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RemoteServer"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperOptions"}},{"kind":"Field","name":{"kind":"Name","value":"foreignDataWrapperType"}},{"kind":"Field","name":{"kind":"Name","value":"userMappingOptions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]} as unknown as DocumentNode; -export const CreateOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateOneObjectInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneObject"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}}]}}]}}]} as unknown as DocumentNode; -export const CreateOneFieldMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneFieldMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateOneFieldMetadataInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}}]}}]}}]} as unknown as DocumentNode; -export const UpdateOneFieldMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneFieldMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateFieldInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"update"},"value":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}}]}}]}}]} as unknown as DocumentNode; -export const UpdateOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateObjectPayload"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneObject"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToUpdate"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"update"},"value":{"kind":"Variable","name":{"kind":"Name","value":"updatePayload"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}}]}}]}}]} as unknown as DocumentNode; -export const DeleteOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneObject"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}}]}}]}}]} as unknown as DocumentNode; -export const DeleteOneFieldMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneFieldMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}}]}}]}}]} as unknown as DocumentNode; -export const ObjectMetadataItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectMetadataItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"shortcut"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"isSearchable"}},{"kind":"Field","name":{"kind":"Name","value":"duplicateCriteria"}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadataList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fieldsList"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"isLabelSyncedWithName"}},{"kind":"Field","name":{"kind":"Name","value":"relation"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}}]} as unknown as DocumentNode; -export const CreateOneServerlessFunctionItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneServerlessFunctionItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateServerlessFunctionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerlessFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersionInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"publishedVersions"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; -export const DeleteOneServerlessFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneServerlessFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunctionIdInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerlessFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersionInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"publishedVersions"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; -export const ExecuteOneServerlessFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ExecuteOneServerlessFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ExecuteServerlessFunctionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"executeOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"logs"}},{"kind":"Field","name":{"kind":"Name","value":"duration"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"error"}}]}}]}}]} as unknown as DocumentNode; -export const PublishOneServerlessFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"PublishOneServerlessFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PublishServerlessFunctionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"publishServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerlessFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersionInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"publishedVersions"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; -export const UpdateOneServerlessFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOneServerlessFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateServerlessFunctionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerlessFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersionInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"publishedVersions"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; -export const FindManyAvailablePackagesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyAvailablePackages"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunctionIdInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getAvailablePackages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode; -export const GetManyServerlessFunctionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetManyServerlessFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findManyServerlessFunctions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerlessFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersionInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"publishedVersions"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; -export const GetOneServerlessFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetOneServerlessFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunctionIdInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerlessFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"timeoutSeconds"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersionInputSchema"}},{"kind":"Field","name":{"kind":"Name","value":"publishedVersions"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; -export const FindOneServerlessFunctionSourceCodeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOneServerlessFunctionSourceCode"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"GetServerlessFunctionSourceCodeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getServerlessFunctionSourceCode"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode; \ No newline at end of file +export type UserQueryFragmentFragment = { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: any, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', settingsPermissions?: Array | null, objectRecordsPermissions?: Array | null, objectPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, subdomain: string, hasValidEnterpriseKey: boolean, customDomain?: string | null, isCustomDomainEnabled: boolean, metadataVersion: number, workspaceMembersCount?: number | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlagDTO', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: any, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, billingProduct?: { __typename?: 'BillingProduct', name: string, description: string, metadata: { __typename?: 'BillingProductMetadata', planKey: BillingPlanKey, priceUsageBased: BillingUsageType, productKey: BillingProductKey } } | null }> | null } | null, billingSubscriptions: Array<{ __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, metadata: any }>, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean } | null } | null, availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> } }; + +export type WorkspaceUrlsFragmentFragment = { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }; + +export type DeleteUserAccountMutationVariables = Exact<{ [key: string]: never; }>; + + +export type DeleteUserAccountMutation = { __typename?: 'Mutation', deleteUser: { __typename?: 'User', id: any } }; + +export type UploadProfilePictureMutationVariables = Exact<{ + file: Scalars['Upload']; +}>; + + +export type UploadProfilePictureMutation = { __typename?: 'Mutation', uploadProfilePicture: { __typename?: 'SignedFileDTO', path: string, token: string } }; + +export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: any, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', settingsPermissions?: Array | null, objectRecordsPermissions?: Array | null, objectPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, subdomain: string, hasValidEnterpriseKey: boolean, customDomain?: string | null, isCustomDomainEnabled: boolean, metadataVersion: number, workspaceMembersCount?: number | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlagDTO', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: any, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, billingProduct?: { __typename?: 'BillingProduct', name: string, description: string, metadata: { __typename?: 'BillingProductMetadata', planKey: BillingPlanKey, priceUsageBased: BillingUsageType, productKey: BillingProductKey } } | null }> | null } | null, billingSubscriptions: Array<{ __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, metadata: any }>, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean } | null } | null, availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> } } }; + +export type ActivateWorkflowVersionMutationVariables = Exact<{ + workflowVersionId: Scalars['String']; +}>; + + +export type ActivateWorkflowVersionMutation = { __typename?: 'Mutation', activateWorkflowVersion: boolean }; + +export type ComputeStepOutputSchemaMutationVariables = Exact<{ + input: ComputeStepOutputSchemaInput; +}>; + + +export type ComputeStepOutputSchemaMutation = { __typename?: 'Mutation', computeStepOutputSchema: any }; + +export type CreateDraftFromWorkflowVersionMutationVariables = Exact<{ + input: CreateDraftFromWorkflowVersionInput; +}>; + + +export type CreateDraftFromWorkflowVersionMutation = { __typename?: 'Mutation', createDraftFromWorkflowVersion: { __typename?: 'WorkflowVersion', id: any } }; + +export type CreateWorkflowVersionStepMutationVariables = Exact<{ + input: CreateWorkflowVersionStepInput; +}>; + + +export type CreateWorkflowVersionStepMutation = { __typename?: 'Mutation', createWorkflowVersionStep: { __typename?: 'WorkflowAction', id: any, name: string, type: string, settings: any, valid: boolean, nextStepIds?: Array | null } }; + +export type DeactivateWorkflowVersionMutationVariables = Exact<{ + workflowVersionId: Scalars['String']; +}>; + + +export type DeactivateWorkflowVersionMutation = { __typename?: 'Mutation', deactivateWorkflowVersion: boolean }; + +export type DeleteWorkflowVersionStepMutationVariables = Exact<{ + input: DeleteWorkflowVersionStepInput; +}>; + + +export type DeleteWorkflowVersionStepMutation = { __typename?: 'Mutation', deleteWorkflowVersionStep: { __typename?: 'WorkflowAction', id: any, name: string, type: string, settings: any, valid: boolean, nextStepIds?: Array | null } }; + +export type RunWorkflowVersionMutationVariables = Exact<{ + input: RunWorkflowVersionInput; +}>; + + +export type RunWorkflowVersionMutation = { __typename?: 'Mutation', runWorkflowVersion: { __typename?: 'WorkflowRun', workflowRunId: any } }; + +export type UpdateWorkflowRunStepMutationVariables = Exact<{ + input: UpdateWorkflowRunStepInput; +}>; + + +export type UpdateWorkflowRunStepMutation = { __typename?: 'Mutation', updateWorkflowRunStep: { __typename?: 'WorkflowAction', id: any, name: string, type: string, settings: any, valid: boolean, nextStepIds?: Array | null } }; + +export type UpdateWorkflowVersionStepMutationVariables = Exact<{ + input: UpdateWorkflowVersionStepInput; +}>; + + +export type UpdateWorkflowVersionStepMutation = { __typename?: 'Mutation', updateWorkflowVersionStep: { __typename?: 'WorkflowAction', id: any, name: string, type: string, settings: any, valid: boolean, nextStepIds?: Array | null } }; + +export type AssignRoleToAgentMutationVariables = Exact<{ + agentId: Scalars['UUID']; + roleId: Scalars['UUID']; +}>; + + +export type AssignRoleToAgentMutation = { __typename?: 'Mutation', assignRoleToAgent: boolean }; + +export type RemoveRoleFromAgentMutationVariables = Exact<{ + agentId: Scalars['UUID']; +}>; + + +export type RemoveRoleFromAgentMutation = { __typename?: 'Mutation', removeRoleFromAgent: boolean }; + +export type UpdateOneAgentMutationVariables = Exact<{ + input: UpdateAgentInput; +}>; + + +export type UpdateOneAgentMutation = { __typename?: 'Mutation', updateOneAgent: { __typename?: 'Agent', id: any, name: string, description?: string | null, prompt: string, modelId: string, responseFormat?: any | null } }; + +export type FindOneAgentQueryVariables = Exact<{ + id: Scalars['UUID']; +}>; + + +export type FindOneAgentQuery = { __typename?: 'Query', findOneAgent: { __typename?: 'Agent', id: any, name: string, description?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: any | null } }; + +export type SubmitFormStepMutationVariables = Exact<{ + input: SubmitFormStepInput; +}>; + + +export type SubmitFormStepMutation = { __typename?: 'Mutation', submitFormStep: boolean }; + +export type DeleteWorkspaceInvitationMutationVariables = Exact<{ + appTokenId: Scalars['String']; +}>; + + +export type DeleteWorkspaceInvitationMutation = { __typename?: 'Mutation', deleteWorkspaceInvitation: string }; + +export type ResendWorkspaceInvitationMutationVariables = Exact<{ + appTokenId: Scalars['String']; +}>; + + +export type ResendWorkspaceInvitationMutation = { __typename?: 'Mutation', resendWorkspaceInvitation: { __typename?: 'SendInvitationsOutput', success: boolean, errors: Array, result: Array<{ __typename?: 'WorkspaceInvitation', id: any, email: string, expiresAt: string }> } }; + +export type SendInvitationsMutationVariables = Exact<{ + emails: Array | Scalars['String']; +}>; + + +export type SendInvitationsMutation = { __typename?: 'Mutation', sendInvitations: { __typename?: 'SendInvitationsOutput', success: boolean, errors: Array, result: Array<{ __typename?: 'WorkspaceInvitation', id: any, email: string, expiresAt: string }> } }; + +export type GetWorkspaceInvitationsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetWorkspaceInvitationsQuery = { __typename?: 'Query', findWorkspaceInvitations: Array<{ __typename?: 'WorkspaceInvitation', id: any, email: string, expiresAt: string }> }; + +export type DeletedWorkspaceMemberQueryFragmentFragment = { __typename?: 'DeletedWorkspaceMember', id: any, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }; + +export type WorkspaceMemberQueryFragmentFragment = { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }; + +export type ActivateWorkspaceMutationVariables = Exact<{ + input: ActivateWorkspaceInput; +}>; + + +export type ActivateWorkspaceMutation = { __typename?: 'Mutation', activateWorkspace: { __typename?: 'Workspace', id: any } }; + +export type DeleteCurrentWorkspaceMutationVariables = Exact<{ [key: string]: never; }>; + + +export type DeleteCurrentWorkspaceMutation = { __typename?: 'Mutation', deleteCurrentWorkspace: { __typename?: 'Workspace', id: any } }; + +export type UpdateWorkspaceMutationVariables = Exact<{ + input: UpdateWorkspaceInput; +}>; + + +export type UpdateWorkspaceMutation = { __typename?: 'Mutation', updateWorkspace: { __typename?: 'Workspace', id: any, customDomain?: string | null, subdomain: string, displayName?: string | null, logo?: string | null, allowImpersonation: boolean, isPublicInviteLinkEnabled: boolean, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean } | null } }; + +export type UploadWorkspaceLogoMutationVariables = Exact<{ + file: Scalars['Upload']; +}>; + + +export type UploadWorkspaceLogoMutation = { __typename?: 'Mutation', uploadWorkspaceLogo: { __typename?: 'SignedFileDTO', path: string, token: string } }; + +export type CheckCustomDomainValidRecordsMutationVariables = Exact<{ [key: string]: never; }>; + + +export type CheckCustomDomainValidRecordsMutation = { __typename?: 'Mutation', checkCustomDomainValidRecords?: { __typename?: 'CustomDomainValidRecords', id: string, customDomain: string, records: Array<{ __typename?: 'CustomDomainRecord', type: string, key: string, value: string, validationType: string, status: string }> } | null }; + +export type GetWorkspaceFromInviteHashQueryVariables = Exact<{ + inviteHash: Scalars['String']; +}>; + + +export type GetWorkspaceFromInviteHashQuery = { __typename?: 'Query', findWorkspaceFromInviteHash: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, allowImpersonation: boolean } }; + +export const AuthTokenFragmentFragmentDoc = gql` + fragment AuthTokenFragment on AuthToken { + token + expiresAt +} + `; +export const AuthTokensFragmentFragmentDoc = gql` + fragment AuthTokensFragment on AuthTokenPair { + accessToken { + ...AuthTokenFragment + } + refreshToken { + ...AuthTokenFragment + } +} + ${AuthTokenFragmentFragmentDoc}`; +export const AvailableSsoIdentityProvidersFragmentFragmentDoc = gql` + fragment AvailableSSOIdentityProvidersFragment on FindAvailableSSOIDPOutput { + id + issuer + name + status + workspace { + id + displayName + } +} + `; +export const RemoteServerFieldsFragmentDoc = gql` + fragment RemoteServerFields on RemoteServer { + id + createdAt + foreignDataWrapperId + foreignDataWrapperOptions + foreignDataWrapperType + userMappingOptions { + user + } + updatedAt + schema + label +} + `; +export const RemoteTableFieldsFragmentDoc = gql` + fragment RemoteTableFields on RemoteTable { + id + name + schema + status + schemaPendingUpdates +} + `; +export const SettingPermissionFragmentFragmentDoc = gql` + fragment SettingPermissionFragment on SettingPermission { + id + setting + roleId +} + `; +export const ServerlessFunctionFieldsFragmentDoc = gql` + fragment ServerlessFunctionFields on ServerlessFunction { + id + name + description + runtime + timeoutSeconds + latestVersion + latestVersionInputSchema + publishedVersions + createdAt + updatedAt +} + `; +export const WorkspaceMemberQueryFragmentFragmentDoc = gql` + fragment WorkspaceMemberQueryFragment on WorkspaceMember { + id + name { + firstName + lastName + } + colorScheme + avatarUrl + locale + userEmail + timeZone + dateFormat + timeFormat +} + `; +export const DeletedWorkspaceMemberQueryFragmentFragmentDoc = gql` + fragment DeletedWorkspaceMemberQueryFragment on DeletedWorkspaceMember { + id + name { + firstName + lastName + } + avatarUrl + userEmail +} + `; +export const ObjectPermissionFragmentFragmentDoc = gql` + fragment ObjectPermissionFragment on ObjectPermission { + objectMetadataId + canReadObjectRecords + canUpdateObjectRecords + canSoftDeleteObjectRecords + canDestroyObjectRecords +} + `; +export const WorkspaceUrlsFragmentFragmentDoc = gql` + fragment WorkspaceUrlsFragment on WorkspaceUrls { + subdomainUrl + customUrl +} + `; +export const RoleFragmentFragmentDoc = gql` + fragment RoleFragment on Role { + id + label + description + icon + canUpdateAllSettings + isEditable + canReadAllObjectRecords + canUpdateAllObjectRecords + canSoftDeleteAllObjectRecords + canDestroyAllObjectRecords +} + `; +export const AvailableWorkspaceFragmentFragmentDoc = gql` + fragment AvailableWorkspaceFragment on AvailableWorkspace { + id + displayName + loginToken + inviteHash + personalInviteToken + workspaceUrls { + subdomainUrl + customUrl + } + logo + sso { + type + id + issuer + name + status + } +} + `; +export const AvailableWorkspacesFragmentFragmentDoc = gql` + fragment AvailableWorkspacesFragment on AvailableWorkspaces { + availableWorkspacesForSignIn { + ...AvailableWorkspaceFragment + } + availableWorkspacesForSignUp { + ...AvailableWorkspaceFragment + } +} + ${AvailableWorkspaceFragmentFragmentDoc}`; +export const UserQueryFragmentFragmentDoc = gql` + fragment UserQueryFragment on User { + id + firstName + lastName + email + canAccessFullAdminPanel + canImpersonate + supportUserHash + onboardingStatus + workspaceMember { + ...WorkspaceMemberQueryFragment + } + workspaceMembers { + ...WorkspaceMemberQueryFragment + } + deletedWorkspaceMembers { + ...DeletedWorkspaceMemberQueryFragment + } + currentUserWorkspace { + settingsPermissions + objectRecordsPermissions + objectPermissions { + ...ObjectPermissionFragment + } + } + currentWorkspace { + id + displayName + logo + inviteHash + allowImpersonation + activationStatus + isPublicInviteLinkEnabled + isGoogleAuthEnabled + isMicrosoftAuthEnabled + isPasswordAuthEnabled + subdomain + hasValidEnterpriseKey + customDomain + isCustomDomainEnabled + workspaceUrls { + ...WorkspaceUrlsFragment + } + featureFlags { + key + value + } + metadataVersion + currentBillingSubscription { + id + status + interval + metadata + billingSubscriptionItems { + id + hasReachedCurrentPeriodCap + quantity + billingProduct { + name + description + metadata { + planKey + priceUsageBased + productKey + } + } + } + } + billingSubscriptions { + id + status + metadata + } + workspaceMembersCount + defaultRole { + ...RoleFragment + } + } + availableWorkspaces { + ...AvailableWorkspacesFragment + } + userVars +} + ${WorkspaceMemberQueryFragmentFragmentDoc} +${DeletedWorkspaceMemberQueryFragmentFragmentDoc} +${ObjectPermissionFragmentFragmentDoc} +${WorkspaceUrlsFragmentFragmentDoc} +${RoleFragmentFragmentDoc} +${AvailableWorkspacesFragmentFragmentDoc}`; +export const TrackAnalyticsDocument = gql` + mutation TrackAnalytics($type: AnalyticsType!, $event: String, $name: String, $properties: JSON) { + trackAnalytics(type: $type, event: $event, name: $name, properties: $properties) { + success + } +} + `; +export type TrackAnalyticsMutationFn = Apollo.MutationFunction; + +/** + * __useTrackAnalyticsMutation__ + * + * To run a mutation, you first call `useTrackAnalyticsMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useTrackAnalyticsMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [trackAnalyticsMutation, { data, loading, error }] = useTrackAnalyticsMutation({ + * variables: { + * type: // value for 'type' + * event: // value for 'event' + * name: // value for 'name' + * properties: // value for 'properties' + * }, + * }); + */ +export function useTrackAnalyticsMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(TrackAnalyticsDocument, options); + } +export type TrackAnalyticsMutationHookResult = ReturnType; +export type TrackAnalyticsMutationResult = Apollo.MutationResult; +export type TrackAnalyticsMutationOptions = Apollo.BaseMutationOptions; +export const UploadFileDocument = gql` + mutation uploadFile($file: Upload!, $fileFolder: FileFolder) { + uploadFile(file: $file, fileFolder: $fileFolder) { + path + token + } +} + `; +export type UploadFileMutationFn = Apollo.MutationFunction; + +/** + * __useUploadFileMutation__ + * + * To run a mutation, you first call `useUploadFileMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUploadFileMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [uploadFileMutation, { data, loading, error }] = useUploadFileMutation({ + * variables: { + * file: // value for 'file' + * fileFolder: // value for 'fileFolder' + * }, + * }); + */ +export function useUploadFileMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UploadFileDocument, options); + } +export type UploadFileMutationHookResult = ReturnType; +export type UploadFileMutationResult = Apollo.MutationResult; +export type UploadFileMutationOptions = Apollo.BaseMutationOptions; +export const UploadImageDocument = gql` + mutation uploadImage($file: Upload!, $fileFolder: FileFolder) { + uploadImage(file: $file, fileFolder: $fileFolder) { + path + token + } +} + `; +export type UploadImageMutationFn = Apollo.MutationFunction; + +/** + * __useUploadImageMutation__ + * + * To run a mutation, you first call `useUploadImageMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUploadImageMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [uploadImageMutation, { data, loading, error }] = useUploadImageMutation({ + * variables: { + * file: // value for 'file' + * fileFolder: // value for 'fileFolder' + * }, + * }); + */ +export function useUploadImageMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UploadImageDocument, options); + } +export type UploadImageMutationHookResult = ReturnType; +export type UploadImageMutationResult = Apollo.MutationResult; +export type UploadImageMutationOptions = Apollo.BaseMutationOptions; +export const AuthorizeAppDocument = gql` + mutation authorizeApp($clientId: String!, $codeChallenge: String!, $redirectUrl: String!) { + authorizeApp( + clientId: $clientId + codeChallenge: $codeChallenge + redirectUrl: $redirectUrl + ) { + redirectUrl + } +} + `; +export type AuthorizeAppMutationFn = Apollo.MutationFunction; + +/** + * __useAuthorizeAppMutation__ + * + * To run a mutation, you first call `useAuthorizeAppMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAuthorizeAppMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [authorizeAppMutation, { data, loading, error }] = useAuthorizeAppMutation({ + * variables: { + * clientId: // value for 'clientId' + * codeChallenge: // value for 'codeChallenge' + * redirectUrl: // value for 'redirectUrl' + * }, + * }); + */ +export function useAuthorizeAppMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(AuthorizeAppDocument, options); + } +export type AuthorizeAppMutationHookResult = ReturnType; +export type AuthorizeAppMutationResult = Apollo.MutationResult; +export type AuthorizeAppMutationOptions = Apollo.BaseMutationOptions; +export const EmailPasswordResetLinkDocument = gql` + mutation EmailPasswordResetLink($email: String!, $workspaceId: String!) { + emailPasswordResetLink(email: $email, workspaceId: $workspaceId) { + success + } +} + `; +export type EmailPasswordResetLinkMutationFn = Apollo.MutationFunction; + +/** + * __useEmailPasswordResetLinkMutation__ + * + * To run a mutation, you first call `useEmailPasswordResetLinkMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useEmailPasswordResetLinkMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [emailPasswordResetLinkMutation, { data, loading, error }] = useEmailPasswordResetLinkMutation({ + * variables: { + * email: // value for 'email' + * workspaceId: // value for 'workspaceId' + * }, + * }); + */ +export function useEmailPasswordResetLinkMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(EmailPasswordResetLinkDocument, options); + } +export type EmailPasswordResetLinkMutationHookResult = ReturnType; +export type EmailPasswordResetLinkMutationResult = Apollo.MutationResult; +export type EmailPasswordResetLinkMutationOptions = Apollo.BaseMutationOptions; +export const GenerateApiKeyTokenDocument = gql` + mutation GenerateApiKeyToken($apiKeyId: String!, $expiresAt: String!) { + generateApiKeyToken(apiKeyId: $apiKeyId, expiresAt: $expiresAt) { + token + } +} + `; +export type GenerateApiKeyTokenMutationFn = Apollo.MutationFunction; + +/** + * __useGenerateApiKeyTokenMutation__ + * + * To run a mutation, you first call `useGenerateApiKeyTokenMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useGenerateApiKeyTokenMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [generateApiKeyTokenMutation, { data, loading, error }] = useGenerateApiKeyTokenMutation({ + * variables: { + * apiKeyId: // value for 'apiKeyId' + * expiresAt: // value for 'expiresAt' + * }, + * }); + */ +export function useGenerateApiKeyTokenMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(GenerateApiKeyTokenDocument, options); + } +export type GenerateApiKeyTokenMutationHookResult = ReturnType; +export type GenerateApiKeyTokenMutationResult = Apollo.MutationResult; +export type GenerateApiKeyTokenMutationOptions = Apollo.BaseMutationOptions; +export const GenerateTransientTokenDocument = gql` + mutation generateTransientToken { + generateTransientToken { + transientToken { + token + } + } +} + `; +export type GenerateTransientTokenMutationFn = Apollo.MutationFunction; + +/** + * __useGenerateTransientTokenMutation__ + * + * To run a mutation, you first call `useGenerateTransientTokenMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useGenerateTransientTokenMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [generateTransientTokenMutation, { data, loading, error }] = useGenerateTransientTokenMutation({ + * variables: { + * }, + * }); + */ +export function useGenerateTransientTokenMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(GenerateTransientTokenDocument, options); + } +export type GenerateTransientTokenMutationHookResult = ReturnType; +export type GenerateTransientTokenMutationResult = Apollo.MutationResult; +export type GenerateTransientTokenMutationOptions = Apollo.BaseMutationOptions; +export const GetAuthTokensFromLoginTokenDocument = gql` + mutation GetAuthTokensFromLoginToken($loginToken: String!, $origin: String!) { + getAuthTokensFromLoginToken(loginToken: $loginToken, origin: $origin) { + tokens { + ...AuthTokensFragment + } + } +} + ${AuthTokensFragmentFragmentDoc}`; +export type GetAuthTokensFromLoginTokenMutationFn = Apollo.MutationFunction; + +/** + * __useGetAuthTokensFromLoginTokenMutation__ + * + * To run a mutation, you first call `useGetAuthTokensFromLoginTokenMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useGetAuthTokensFromLoginTokenMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [getAuthTokensFromLoginTokenMutation, { data, loading, error }] = useGetAuthTokensFromLoginTokenMutation({ + * variables: { + * loginToken: // value for 'loginToken' + * origin: // value for 'origin' + * }, + * }); + */ +export function useGetAuthTokensFromLoginTokenMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(GetAuthTokensFromLoginTokenDocument, options); + } +export type GetAuthTokensFromLoginTokenMutationHookResult = ReturnType; +export type GetAuthTokensFromLoginTokenMutationResult = Apollo.MutationResult; +export type GetAuthTokensFromLoginTokenMutationOptions = Apollo.BaseMutationOptions; +export const GetAuthorizationUrlForSsoDocument = gql` + mutation GetAuthorizationUrlForSSO($input: GetAuthorizationUrlForSSOInput!) { + getAuthorizationUrlForSSO(input: $input) { + id + type + authorizationURL + } +} + `; +export type GetAuthorizationUrlForSsoMutationFn = Apollo.MutationFunction; + +/** + * __useGetAuthorizationUrlForSsoMutation__ + * + * To run a mutation, you first call `useGetAuthorizationUrlForSsoMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useGetAuthorizationUrlForSsoMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [getAuthorizationUrlForSsoMutation, { data, loading, error }] = useGetAuthorizationUrlForSsoMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useGetAuthorizationUrlForSsoMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(GetAuthorizationUrlForSsoDocument, options); + } +export type GetAuthorizationUrlForSsoMutationHookResult = ReturnType; +export type GetAuthorizationUrlForSsoMutationResult = Apollo.MutationResult; +export type GetAuthorizationUrlForSsoMutationOptions = Apollo.BaseMutationOptions; +export const GetLoginTokenFromCredentialsDocument = gql` + mutation GetLoginTokenFromCredentials($email: String!, $password: String!, $captchaToken: String, $origin: String!) { + getLoginTokenFromCredentials( + email: $email + password: $password + captchaToken: $captchaToken + origin: $origin + ) { + loginToken { + ...AuthTokenFragment + } + } +} + ${AuthTokenFragmentFragmentDoc}`; +export type GetLoginTokenFromCredentialsMutationFn = Apollo.MutationFunction; + +/** + * __useGetLoginTokenFromCredentialsMutation__ + * + * To run a mutation, you first call `useGetLoginTokenFromCredentialsMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useGetLoginTokenFromCredentialsMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [getLoginTokenFromCredentialsMutation, { data, loading, error }] = useGetLoginTokenFromCredentialsMutation({ + * variables: { + * email: // value for 'email' + * password: // value for 'password' + * captchaToken: // value for 'captchaToken' + * origin: // value for 'origin' + * }, + * }); + */ +export function useGetLoginTokenFromCredentialsMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(GetLoginTokenFromCredentialsDocument, options); + } +export type GetLoginTokenFromCredentialsMutationHookResult = ReturnType; +export type GetLoginTokenFromCredentialsMutationResult = Apollo.MutationResult; +export type GetLoginTokenFromCredentialsMutationOptions = Apollo.BaseMutationOptions; +export const GetLoginTokenFromEmailVerificationTokenDocument = gql` + mutation GetLoginTokenFromEmailVerificationToken($emailVerificationToken: String!, $email: String!, $captchaToken: String, $origin: String!) { + getLoginTokenFromEmailVerificationToken( + emailVerificationToken: $emailVerificationToken + email: $email + captchaToken: $captchaToken + origin: $origin + ) { + loginToken { + ...AuthTokenFragment + } + workspaceUrls { + ...WorkspaceUrlsFragment + } + } +} + ${AuthTokenFragmentFragmentDoc} +${WorkspaceUrlsFragmentFragmentDoc}`; +export type GetLoginTokenFromEmailVerificationTokenMutationFn = Apollo.MutationFunction; + +/** + * __useGetLoginTokenFromEmailVerificationTokenMutation__ + * + * To run a mutation, you first call `useGetLoginTokenFromEmailVerificationTokenMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useGetLoginTokenFromEmailVerificationTokenMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [getLoginTokenFromEmailVerificationTokenMutation, { data, loading, error }] = useGetLoginTokenFromEmailVerificationTokenMutation({ + * variables: { + * emailVerificationToken: // value for 'emailVerificationToken' + * email: // value for 'email' + * captchaToken: // value for 'captchaToken' + * origin: // value for 'origin' + * }, + * }); + */ +export function useGetLoginTokenFromEmailVerificationTokenMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(GetLoginTokenFromEmailVerificationTokenDocument, options); + } +export type GetLoginTokenFromEmailVerificationTokenMutationHookResult = ReturnType; +export type GetLoginTokenFromEmailVerificationTokenMutationResult = Apollo.MutationResult; +export type GetLoginTokenFromEmailVerificationTokenMutationOptions = Apollo.BaseMutationOptions; +export const ImpersonateDocument = gql` + mutation Impersonate($userId: String!, $workspaceId: String!) { + impersonate(userId: $userId, workspaceId: $workspaceId) { + workspace { + workspaceUrls { + ...WorkspaceUrlsFragment + } + id + } + loginToken { + ...AuthTokenFragment + } + } +} + ${WorkspaceUrlsFragmentFragmentDoc} +${AuthTokenFragmentFragmentDoc}`; +export type ImpersonateMutationFn = Apollo.MutationFunction; + +/** + * __useImpersonateMutation__ + * + * To run a mutation, you first call `useImpersonateMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useImpersonateMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [impersonateMutation, { data, loading, error }] = useImpersonateMutation({ + * variables: { + * userId: // value for 'userId' + * workspaceId: // value for 'workspaceId' + * }, + * }); + */ +export function useImpersonateMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(ImpersonateDocument, options); + } +export type ImpersonateMutationHookResult = ReturnType; +export type ImpersonateMutationResult = Apollo.MutationResult; +export type ImpersonateMutationOptions = Apollo.BaseMutationOptions; +export const RenewTokenDocument = gql` + mutation RenewToken($appToken: String!) { + renewToken(appToken: $appToken) { + tokens { + ...AuthTokensFragment + } + } +} + ${AuthTokensFragmentFragmentDoc}`; +export type RenewTokenMutationFn = Apollo.MutationFunction; + +/** + * __useRenewTokenMutation__ + * + * To run a mutation, you first call `useRenewTokenMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useRenewTokenMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [renewTokenMutation, { data, loading, error }] = useRenewTokenMutation({ + * variables: { + * appToken: // value for 'appToken' + * }, + * }); + */ +export function useRenewTokenMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(RenewTokenDocument, options); + } +export type RenewTokenMutationHookResult = ReturnType; +export type RenewTokenMutationResult = Apollo.MutationResult; +export type RenewTokenMutationOptions = Apollo.BaseMutationOptions; +export const ResendEmailVerificationTokenDocument = gql` + mutation ResendEmailVerificationToken($email: String!, $origin: String!) { + resendEmailVerificationToken(email: $email, origin: $origin) { + success + } +} + `; +export type ResendEmailVerificationTokenMutationFn = Apollo.MutationFunction; + +/** + * __useResendEmailVerificationTokenMutation__ + * + * To run a mutation, you first call `useResendEmailVerificationTokenMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useResendEmailVerificationTokenMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [resendEmailVerificationTokenMutation, { data, loading, error }] = useResendEmailVerificationTokenMutation({ + * variables: { + * email: // value for 'email' + * origin: // value for 'origin' + * }, + * }); + */ +export function useResendEmailVerificationTokenMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(ResendEmailVerificationTokenDocument, options); + } +export type ResendEmailVerificationTokenMutationHookResult = ReturnType; +export type ResendEmailVerificationTokenMutationResult = Apollo.MutationResult; +export type ResendEmailVerificationTokenMutationOptions = Apollo.BaseMutationOptions; +export const SignInDocument = gql` + mutation SignIn($email: String!, $password: String!, $captchaToken: String) { + signIn(email: $email, password: $password, captchaToken: $captchaToken) { + availableWorkspaces { + ...AvailableWorkspacesFragment + } + tokens { + ...AuthTokensFragment + } + } +} + ${AvailableWorkspacesFragmentFragmentDoc} +${AuthTokensFragmentFragmentDoc}`; +export type SignInMutationFn = Apollo.MutationFunction; + +/** + * __useSignInMutation__ + * + * To run a mutation, you first call `useSignInMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSignInMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [signInMutation, { data, loading, error }] = useSignInMutation({ + * variables: { + * email: // value for 'email' + * password: // value for 'password' + * captchaToken: // value for 'captchaToken' + * }, + * }); + */ +export function useSignInMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SignInDocument, options); + } +export type SignInMutationHookResult = ReturnType; +export type SignInMutationResult = Apollo.MutationResult; +export type SignInMutationOptions = Apollo.BaseMutationOptions; +export const SignUpDocument = gql` + mutation SignUp($email: String!, $password: String!, $captchaToken: String) { + signUp(email: $email, password: $password, captchaToken: $captchaToken) { + availableWorkspaces { + ...AvailableWorkspacesFragment + } + tokens { + ...AuthTokensFragment + } + } +} + ${AvailableWorkspacesFragmentFragmentDoc} +${AuthTokensFragmentFragmentDoc}`; +export type SignUpMutationFn = Apollo.MutationFunction; + +/** + * __useSignUpMutation__ + * + * To run a mutation, you first call `useSignUpMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSignUpMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [signUpMutation, { data, loading, error }] = useSignUpMutation({ + * variables: { + * email: // value for 'email' + * password: // value for 'password' + * captchaToken: // value for 'captchaToken' + * }, + * }); + */ +export function useSignUpMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SignUpDocument, options); + } +export type SignUpMutationHookResult = ReturnType; +export type SignUpMutationResult = Apollo.MutationResult; +export type SignUpMutationOptions = Apollo.BaseMutationOptions; +export const SignUpInNewWorkspaceDocument = gql` + mutation SignUpInNewWorkspace { + signUpInNewWorkspace { + loginToken { + ...AuthTokenFragment + } + workspace { + id + workspaceUrls { + ...WorkspaceUrlsFragment + } + } + } +} + ${AuthTokenFragmentFragmentDoc} +${WorkspaceUrlsFragmentFragmentDoc}`; +export type SignUpInNewWorkspaceMutationFn = Apollo.MutationFunction; + +/** + * __useSignUpInNewWorkspaceMutation__ + * + * To run a mutation, you first call `useSignUpInNewWorkspaceMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSignUpInNewWorkspaceMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [signUpInNewWorkspaceMutation, { data, loading, error }] = useSignUpInNewWorkspaceMutation({ + * variables: { + * }, + * }); + */ +export function useSignUpInNewWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SignUpInNewWorkspaceDocument, options); + } +export type SignUpInNewWorkspaceMutationHookResult = ReturnType; +export type SignUpInNewWorkspaceMutationResult = Apollo.MutationResult; +export type SignUpInNewWorkspaceMutationOptions = Apollo.BaseMutationOptions; +export const SignUpInWorkspaceDocument = gql` + mutation SignUpInWorkspace($email: String!, $password: String!, $workspaceInviteHash: String, $workspacePersonalInviteToken: String = null, $captchaToken: String, $workspaceId: String, $locale: String, $verifyEmailNextPath: String) { + signUpInWorkspace( + email: $email + password: $password + workspaceInviteHash: $workspaceInviteHash + workspacePersonalInviteToken: $workspacePersonalInviteToken + captchaToken: $captchaToken + workspaceId: $workspaceId + locale: $locale + verifyEmailNextPath: $verifyEmailNextPath + ) { + loginToken { + ...AuthTokenFragment + } + workspace { + id + workspaceUrls { + subdomainUrl + customUrl + } + } + } +} + ${AuthTokenFragmentFragmentDoc}`; +export type SignUpInWorkspaceMutationFn = Apollo.MutationFunction; + +/** + * __useSignUpInWorkspaceMutation__ + * + * To run a mutation, you first call `useSignUpInWorkspaceMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSignUpInWorkspaceMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [signUpInWorkspaceMutation, { data, loading, error }] = useSignUpInWorkspaceMutation({ + * variables: { + * email: // value for 'email' + * password: // value for 'password' + * workspaceInviteHash: // value for 'workspaceInviteHash' + * workspacePersonalInviteToken: // value for 'workspacePersonalInviteToken' + * captchaToken: // value for 'captchaToken' + * workspaceId: // value for 'workspaceId' + * locale: // value for 'locale' + * verifyEmailNextPath: // value for 'verifyEmailNextPath' + * }, + * }); + */ +export function useSignUpInWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SignUpInWorkspaceDocument, options); + } +export type SignUpInWorkspaceMutationHookResult = ReturnType; +export type SignUpInWorkspaceMutationResult = Apollo.MutationResult; +export type SignUpInWorkspaceMutationOptions = Apollo.BaseMutationOptions; +export const UpdatePasswordViaResetTokenDocument = gql` + mutation UpdatePasswordViaResetToken($token: String!, $newPassword: String!) { + updatePasswordViaResetToken( + passwordResetToken: $token + newPassword: $newPassword + ) { + success + } +} + `; +export type UpdatePasswordViaResetTokenMutationFn = Apollo.MutationFunction; + +/** + * __useUpdatePasswordViaResetTokenMutation__ + * + * To run a mutation, you first call `useUpdatePasswordViaResetTokenMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdatePasswordViaResetTokenMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updatePasswordViaResetTokenMutation, { data, loading, error }] = useUpdatePasswordViaResetTokenMutation({ + * variables: { + * token: // value for 'token' + * newPassword: // value for 'newPassword' + * }, + * }); + */ +export function useUpdatePasswordViaResetTokenMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdatePasswordViaResetTokenDocument, options); + } +export type UpdatePasswordViaResetTokenMutationHookResult = ReturnType; +export type UpdatePasswordViaResetTokenMutationResult = Apollo.MutationResult; +export type UpdatePasswordViaResetTokenMutationOptions = Apollo.BaseMutationOptions; +export const CheckUserExistsDocument = gql` + query CheckUserExists($email: String!, $captchaToken: String) { + checkUserExists(email: $email, captchaToken: $captchaToken) { + exists + availableWorkspacesCount + isEmailVerified + } +} + `; + +/** + * __useCheckUserExistsQuery__ + * + * To run a query within a React component, call `useCheckUserExistsQuery` and pass it any options that fit your needs. + * When your component renders, `useCheckUserExistsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useCheckUserExistsQuery({ + * variables: { + * email: // value for 'email' + * captchaToken: // value for 'captchaToken' + * }, + * }); + */ +export function useCheckUserExistsQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(CheckUserExistsDocument, options); + } +export function useCheckUserExistsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(CheckUserExistsDocument, options); + } +export type CheckUserExistsQueryHookResult = ReturnType; +export type CheckUserExistsLazyQueryHookResult = ReturnType; +export type CheckUserExistsQueryResult = Apollo.QueryResult; +export const GetPublicWorkspaceDataByDomainDocument = gql` + query GetPublicWorkspaceDataByDomain($origin: String!) { + getPublicWorkspaceDataByDomain(origin: $origin) { + id + logo + displayName + workspaceUrls { + ...WorkspaceUrlsFragment + } + authProviders { + sso { + id + name + type + status + issuer + } + google + magicLink + password + microsoft + } + } +} + ${WorkspaceUrlsFragmentFragmentDoc}`; + +/** + * __useGetPublicWorkspaceDataByDomainQuery__ + * + * To run a query within a React component, call `useGetPublicWorkspaceDataByDomainQuery` and pass it any options that fit your needs. + * When your component renders, `useGetPublicWorkspaceDataByDomainQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetPublicWorkspaceDataByDomainQuery({ + * variables: { + * origin: // value for 'origin' + * }, + * }); + */ +export function useGetPublicWorkspaceDataByDomainQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetPublicWorkspaceDataByDomainDocument, options); + } +export function useGetPublicWorkspaceDataByDomainLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetPublicWorkspaceDataByDomainDocument, options); + } +export type GetPublicWorkspaceDataByDomainQueryHookResult = ReturnType; +export type GetPublicWorkspaceDataByDomainLazyQueryHookResult = ReturnType; +export type GetPublicWorkspaceDataByDomainQueryResult = Apollo.QueryResult; +export const ValidatePasswordResetTokenDocument = gql` + query ValidatePasswordResetToken($token: String!) { + validatePasswordResetToken(passwordResetToken: $token) { + id + email + } +} + `; + +/** + * __useValidatePasswordResetTokenQuery__ + * + * To run a query within a React component, call `useValidatePasswordResetTokenQuery` and pass it any options that fit your needs. + * When your component renders, `useValidatePasswordResetTokenQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useValidatePasswordResetTokenQuery({ + * variables: { + * token: // value for 'token' + * }, + * }); + */ +export function useValidatePasswordResetTokenQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(ValidatePasswordResetTokenDocument, options); + } +export function useValidatePasswordResetTokenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(ValidatePasswordResetTokenDocument, options); + } +export type ValidatePasswordResetTokenQueryHookResult = ReturnType; +export type ValidatePasswordResetTokenLazyQueryHookResult = ReturnType; +export type ValidatePasswordResetTokenQueryResult = Apollo.QueryResult; +export const CheckoutSessionDocument = gql` + mutation CheckoutSession($recurringInterval: SubscriptionInterval!, $successUrlPath: String, $plan: BillingPlanKey!, $requirePaymentMethod: Boolean!) { + checkoutSession( + recurringInterval: $recurringInterval + successUrlPath: $successUrlPath + plan: $plan + requirePaymentMethod: $requirePaymentMethod + ) { + url + } +} + `; +export type CheckoutSessionMutationFn = Apollo.MutationFunction; + +/** + * __useCheckoutSessionMutation__ + * + * To run a mutation, you first call `useCheckoutSessionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCheckoutSessionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [checkoutSessionMutation, { data, loading, error }] = useCheckoutSessionMutation({ + * variables: { + * recurringInterval: // value for 'recurringInterval' + * successUrlPath: // value for 'successUrlPath' + * plan: // value for 'plan' + * requirePaymentMethod: // value for 'requirePaymentMethod' + * }, + * }); + */ +export function useCheckoutSessionMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CheckoutSessionDocument, options); + } +export type CheckoutSessionMutationHookResult = ReturnType; +export type CheckoutSessionMutationResult = Apollo.MutationResult; +export type CheckoutSessionMutationOptions = Apollo.BaseMutationOptions; +export const EndSubscriptionTrialPeriodDocument = gql` + mutation EndSubscriptionTrialPeriod { + endSubscriptionTrialPeriod { + status + hasPaymentMethod + } +} + `; +export type EndSubscriptionTrialPeriodMutationFn = Apollo.MutationFunction; + +/** + * __useEndSubscriptionTrialPeriodMutation__ + * + * To run a mutation, you first call `useEndSubscriptionTrialPeriodMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useEndSubscriptionTrialPeriodMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [endSubscriptionTrialPeriodMutation, { data, loading, error }] = useEndSubscriptionTrialPeriodMutation({ + * variables: { + * }, + * }); + */ +export function useEndSubscriptionTrialPeriodMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(EndSubscriptionTrialPeriodDocument, options); + } +export type EndSubscriptionTrialPeriodMutationHookResult = ReturnType; +export type EndSubscriptionTrialPeriodMutationResult = Apollo.MutationResult; +export type EndSubscriptionTrialPeriodMutationOptions = Apollo.BaseMutationOptions; +export const SwitchSubscriptionToEnterprisePlanDocument = gql` + mutation SwitchSubscriptionToEnterprisePlan { + switchToEnterprisePlan { + success + } +} + `; +export type SwitchSubscriptionToEnterprisePlanMutationFn = Apollo.MutationFunction; + +/** + * __useSwitchSubscriptionToEnterprisePlanMutation__ + * + * To run a mutation, you first call `useSwitchSubscriptionToEnterprisePlanMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSwitchSubscriptionToEnterprisePlanMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [switchSubscriptionToEnterprisePlanMutation, { data, loading, error }] = useSwitchSubscriptionToEnterprisePlanMutation({ + * variables: { + * }, + * }); + */ +export function useSwitchSubscriptionToEnterprisePlanMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SwitchSubscriptionToEnterprisePlanDocument, options); + } +export type SwitchSubscriptionToEnterprisePlanMutationHookResult = ReturnType; +export type SwitchSubscriptionToEnterprisePlanMutationResult = Apollo.MutationResult; +export type SwitchSubscriptionToEnterprisePlanMutationOptions = Apollo.BaseMutationOptions; +export const SwitchSubscriptionToYearlyIntervalDocument = gql` + mutation SwitchSubscriptionToYearlyInterval { + switchToYearlyInterval { + success + } +} + `; +export type SwitchSubscriptionToYearlyIntervalMutationFn = Apollo.MutationFunction; + +/** + * __useSwitchSubscriptionToYearlyIntervalMutation__ + * + * To run a mutation, you first call `useSwitchSubscriptionToYearlyIntervalMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSwitchSubscriptionToYearlyIntervalMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [switchSubscriptionToYearlyIntervalMutation, { data, loading, error }] = useSwitchSubscriptionToYearlyIntervalMutation({ + * variables: { + * }, + * }); + */ +export function useSwitchSubscriptionToYearlyIntervalMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SwitchSubscriptionToYearlyIntervalDocument, options); + } +export type SwitchSubscriptionToYearlyIntervalMutationHookResult = ReturnType; +export type SwitchSubscriptionToYearlyIntervalMutationResult = Apollo.MutationResult; +export type SwitchSubscriptionToYearlyIntervalMutationOptions = Apollo.BaseMutationOptions; +export const BillingBaseProductPricesDocument = gql` + query billingBaseProductPrices { + plans { + planKey + baseProduct { + name + prices { + ... on BillingPriceLicensedDTO { + unitAmount + stripePriceId + recurringInterval + } + } + } + } +} + `; + +/** + * __useBillingBaseProductPricesQuery__ + * + * To run a query within a React component, call `useBillingBaseProductPricesQuery` and pass it any options that fit your needs. + * When your component renders, `useBillingBaseProductPricesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useBillingBaseProductPricesQuery({ + * variables: { + * }, + * }); + */ +export function useBillingBaseProductPricesQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(BillingBaseProductPricesDocument, options); + } +export function useBillingBaseProductPricesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(BillingBaseProductPricesDocument, options); + } +export type BillingBaseProductPricesQueryHookResult = ReturnType; +export type BillingBaseProductPricesLazyQueryHookResult = ReturnType; +export type BillingBaseProductPricesQueryResult = Apollo.QueryResult; +export const BillingPortalSessionDocument = gql` + query BillingPortalSession($returnUrlPath: String) { + billingPortalSession(returnUrlPath: $returnUrlPath) { + url + } +} + `; + +/** + * __useBillingPortalSessionQuery__ + * + * To run a query within a React component, call `useBillingPortalSessionQuery` and pass it any options that fit your needs. + * When your component renders, `useBillingPortalSessionQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useBillingPortalSessionQuery({ + * variables: { + * returnUrlPath: // value for 'returnUrlPath' + * }, + * }); + */ +export function useBillingPortalSessionQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(BillingPortalSessionDocument, options); + } +export function useBillingPortalSessionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(BillingPortalSessionDocument, options); + } +export type BillingPortalSessionQueryHookResult = ReturnType; +export type BillingPortalSessionLazyQueryHookResult = ReturnType; +export type BillingPortalSessionQueryResult = Apollo.QueryResult; +export const GetMeteredProductsUsageDocument = gql` + query GetMeteredProductsUsage { + getMeteredProductsUsage { + productKey + usageQuantity + freeTierQuantity + freeTrialQuantity + unitPriceCents + totalCostCents + } +} + `; + +/** + * __useGetMeteredProductsUsageQuery__ + * + * To run a query within a React component, call `useGetMeteredProductsUsageQuery` and pass it any options that fit your needs. + * When your component renders, `useGetMeteredProductsUsageQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetMeteredProductsUsageQuery({ + * variables: { + * }, + * }); + */ +export function useGetMeteredProductsUsageQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetMeteredProductsUsageDocument, options); + } +export function useGetMeteredProductsUsageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetMeteredProductsUsageDocument, options); + } +export type GetMeteredProductsUsageQueryHookResult = ReturnType; +export type GetMeteredProductsUsageLazyQueryHookResult = ReturnType; +export type GetMeteredProductsUsageQueryResult = Apollo.QueryResult; +export const CreateServerDocument = gql` + mutation createServer($input: CreateRemoteServerInput!) { + createOneRemoteServer(input: $input) { + ...RemoteServerFields + } +} + ${RemoteServerFieldsFragmentDoc}`; +export type CreateServerMutationFn = Apollo.MutationFunction; + +/** + * __useCreateServerMutation__ + * + * To run a mutation, you first call `useCreateServerMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateServerMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createServerMutation, { data, loading, error }] = useCreateServerMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useCreateServerMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateServerDocument, options); + } +export type CreateServerMutationHookResult = ReturnType; +export type CreateServerMutationResult = Apollo.MutationResult; +export type CreateServerMutationOptions = Apollo.BaseMutationOptions; +export const DeleteServerDocument = gql` + mutation deleteServer($input: RemoteServerIdInput!) { + deleteOneRemoteServer(input: $input) { + id + } +} + `; +export type DeleteServerMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteServerMutation__ + * + * To run a mutation, you first call `useDeleteServerMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteServerMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteServerMutation, { data, loading, error }] = useDeleteServerMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useDeleteServerMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteServerDocument, options); + } +export type DeleteServerMutationHookResult = ReturnType; +export type DeleteServerMutationResult = Apollo.MutationResult; +export type DeleteServerMutationOptions = Apollo.BaseMutationOptions; +export const SyncRemoteTableDocument = gql` + mutation syncRemoteTable($input: RemoteTableInput!) { + syncRemoteTable(input: $input) { + ...RemoteTableFields + } +} + ${RemoteTableFieldsFragmentDoc}`; +export type SyncRemoteTableMutationFn = Apollo.MutationFunction; + +/** + * __useSyncRemoteTableMutation__ + * + * To run a mutation, you first call `useSyncRemoteTableMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSyncRemoteTableMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [syncRemoteTableMutation, { data, loading, error }] = useSyncRemoteTableMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useSyncRemoteTableMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SyncRemoteTableDocument, options); + } +export type SyncRemoteTableMutationHookResult = ReturnType; +export type SyncRemoteTableMutationResult = Apollo.MutationResult; +export type SyncRemoteTableMutationOptions = Apollo.BaseMutationOptions; +export const SyncRemoteTableSchemaChangesDocument = gql` + mutation syncRemoteTableSchemaChanges($input: RemoteTableInput!) { + syncRemoteTableSchemaChanges(input: $input) { + ...RemoteTableFields + } +} + ${RemoteTableFieldsFragmentDoc}`; +export type SyncRemoteTableSchemaChangesMutationFn = Apollo.MutationFunction; + +/** + * __useSyncRemoteTableSchemaChangesMutation__ + * + * To run a mutation, you first call `useSyncRemoteTableSchemaChangesMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSyncRemoteTableSchemaChangesMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [syncRemoteTableSchemaChangesMutation, { data, loading, error }] = useSyncRemoteTableSchemaChangesMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useSyncRemoteTableSchemaChangesMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SyncRemoteTableSchemaChangesDocument, options); + } +export type SyncRemoteTableSchemaChangesMutationHookResult = ReturnType; +export type SyncRemoteTableSchemaChangesMutationResult = Apollo.MutationResult; +export type SyncRemoteTableSchemaChangesMutationOptions = Apollo.BaseMutationOptions; +export const UnsyncRemoteTableDocument = gql` + mutation unsyncRemoteTable($input: RemoteTableInput!) { + unsyncRemoteTable(input: $input) { + ...RemoteTableFields + } +} + ${RemoteTableFieldsFragmentDoc}`; +export type UnsyncRemoteTableMutationFn = Apollo.MutationFunction; + +/** + * __useUnsyncRemoteTableMutation__ + * + * To run a mutation, you first call `useUnsyncRemoteTableMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUnsyncRemoteTableMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [unsyncRemoteTableMutation, { data, loading, error }] = useUnsyncRemoteTableMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useUnsyncRemoteTableMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UnsyncRemoteTableDocument, options); + } +export type UnsyncRemoteTableMutationHookResult = ReturnType; +export type UnsyncRemoteTableMutationResult = Apollo.MutationResult; +export type UnsyncRemoteTableMutationOptions = Apollo.BaseMutationOptions; +export const UpdateServerDocument = gql` + mutation updateServer($input: UpdateRemoteServerInput!) { + updateOneRemoteServer(input: $input) { + ...RemoteServerFields + } +} + ${RemoteServerFieldsFragmentDoc}`; +export type UpdateServerMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateServerMutation__ + * + * To run a mutation, you first call `useUpdateServerMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateServerMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateServerMutation, { data, loading, error }] = useUpdateServerMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useUpdateServerMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateServerDocument, options); + } +export type UpdateServerMutationHookResult = ReturnType; +export type UpdateServerMutationResult = Apollo.MutationResult; +export type UpdateServerMutationOptions = Apollo.BaseMutationOptions; +export const GetManyDatabaseConnectionsDocument = gql` + query GetManyDatabaseConnections($input: RemoteServerTypeInput!) { + findManyRemoteServersByType(input: $input) { + ...RemoteServerFields + } +} + ${RemoteServerFieldsFragmentDoc}`; + +/** + * __useGetManyDatabaseConnectionsQuery__ + * + * To run a query within a React component, call `useGetManyDatabaseConnectionsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetManyDatabaseConnectionsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetManyDatabaseConnectionsQuery({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useGetManyDatabaseConnectionsQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetManyDatabaseConnectionsDocument, options); + } +export function useGetManyDatabaseConnectionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetManyDatabaseConnectionsDocument, options); + } +export type GetManyDatabaseConnectionsQueryHookResult = ReturnType; +export type GetManyDatabaseConnectionsLazyQueryHookResult = ReturnType; +export type GetManyDatabaseConnectionsQueryResult = Apollo.QueryResult; +export const GetManyRemoteTablesDocument = gql` + query GetManyRemoteTables($input: FindManyRemoteTablesInput!) { + findDistantTablesWithStatus(input: $input) { + ...RemoteTableFields + } +} + ${RemoteTableFieldsFragmentDoc}`; + +/** + * __useGetManyRemoteTablesQuery__ + * + * To run a query within a React component, call `useGetManyRemoteTablesQuery` and pass it any options that fit your needs. + * When your component renders, `useGetManyRemoteTablesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetManyRemoteTablesQuery({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useGetManyRemoteTablesQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetManyRemoteTablesDocument, options); + } +export function useGetManyRemoteTablesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetManyRemoteTablesDocument, options); + } +export type GetManyRemoteTablesQueryHookResult = ReturnType; +export type GetManyRemoteTablesLazyQueryHookResult = ReturnType; +export type GetManyRemoteTablesQueryResult = Apollo.QueryResult; +export const GetOneDatabaseConnectionDocument = gql` + query GetOneDatabaseConnection($input: RemoteServerIdInput!) { + findOneRemoteServerById(input: $input) { + ...RemoteServerFields + } +} + ${RemoteServerFieldsFragmentDoc}`; + +/** + * __useGetOneDatabaseConnectionQuery__ + * + * To run a query within a React component, call `useGetOneDatabaseConnectionQuery` and pass it any options that fit your needs. + * When your component renders, `useGetOneDatabaseConnectionQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetOneDatabaseConnectionQuery({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useGetOneDatabaseConnectionQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetOneDatabaseConnectionDocument, options); + } +export function useGetOneDatabaseConnectionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetOneDatabaseConnectionDocument, options); + } +export type GetOneDatabaseConnectionQueryHookResult = ReturnType; +export type GetOneDatabaseConnectionLazyQueryHookResult = ReturnType; +export type GetOneDatabaseConnectionQueryResult = Apollo.QueryResult; +export const CreateOneObjectMetadataItemDocument = gql` + mutation CreateOneObjectMetadataItem($input: CreateOneObjectInput!) { + createOneObject(input: $input) { + id + dataSourceId + nameSingular + namePlural + labelSingular + labelPlural + description + icon + isCustom + isActive + isSearchable + createdAt + updatedAt + labelIdentifierFieldMetadataId + imageIdentifierFieldMetadataId + isLabelSyncedWithName + } +} + `; +export type CreateOneObjectMetadataItemMutationFn = Apollo.MutationFunction; + +/** + * __useCreateOneObjectMetadataItemMutation__ + * + * To run a mutation, you first call `useCreateOneObjectMetadataItemMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateOneObjectMetadataItemMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createOneObjectMetadataItemMutation, { data, loading, error }] = useCreateOneObjectMetadataItemMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useCreateOneObjectMetadataItemMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateOneObjectMetadataItemDocument, options); + } +export type CreateOneObjectMetadataItemMutationHookResult = ReturnType; +export type CreateOneObjectMetadataItemMutationResult = Apollo.MutationResult; +export type CreateOneObjectMetadataItemMutationOptions = Apollo.BaseMutationOptions; +export const CreateOneFieldMetadataItemDocument = gql` + mutation CreateOneFieldMetadataItem($input: CreateOneFieldMetadataInput!) { + createOneField(input: $input) { + id + type + name + label + description + icon + isCustom + isActive + isNullable + createdAt + updatedAt + settings + defaultValue + options + isLabelSyncedWithName + } +} + `; +export type CreateOneFieldMetadataItemMutationFn = Apollo.MutationFunction; + +/** + * __useCreateOneFieldMetadataItemMutation__ + * + * To run a mutation, you first call `useCreateOneFieldMetadataItemMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateOneFieldMetadataItemMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createOneFieldMetadataItemMutation, { data, loading, error }] = useCreateOneFieldMetadataItemMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useCreateOneFieldMetadataItemMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateOneFieldMetadataItemDocument, options); + } +export type CreateOneFieldMetadataItemMutationHookResult = ReturnType; +export type CreateOneFieldMetadataItemMutationResult = Apollo.MutationResult; +export type CreateOneFieldMetadataItemMutationOptions = Apollo.BaseMutationOptions; +export const UpdateOneFieldMetadataItemDocument = gql` + mutation UpdateOneFieldMetadataItem($idToUpdate: UUID!, $updatePayload: UpdateFieldInput!) { + updateOneField(input: {id: $idToUpdate, update: $updatePayload}) { + id + type + name + label + description + icon + isCustom + isActive + isNullable + createdAt + updatedAt + settings + isLabelSyncedWithName + } +} + `; +export type UpdateOneFieldMetadataItemMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateOneFieldMetadataItemMutation__ + * + * To run a mutation, you first call `useUpdateOneFieldMetadataItemMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateOneFieldMetadataItemMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateOneFieldMetadataItemMutation, { data, loading, error }] = useUpdateOneFieldMetadataItemMutation({ + * variables: { + * idToUpdate: // value for 'idToUpdate' + * updatePayload: // value for 'updatePayload' + * }, + * }); + */ +export function useUpdateOneFieldMetadataItemMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateOneFieldMetadataItemDocument, options); + } +export type UpdateOneFieldMetadataItemMutationHookResult = ReturnType; +export type UpdateOneFieldMetadataItemMutationResult = Apollo.MutationResult; +export type UpdateOneFieldMetadataItemMutationOptions = Apollo.BaseMutationOptions; +export const UpdateOneObjectMetadataItemDocument = gql` + mutation UpdateOneObjectMetadataItem($idToUpdate: UUID!, $updatePayload: UpdateObjectPayload!) { + updateOneObject(input: {id: $idToUpdate, update: $updatePayload}) { + id + dataSourceId + nameSingular + namePlural + labelSingular + labelPlural + description + icon + isCustom + isActive + isSearchable + createdAt + updatedAt + labelIdentifierFieldMetadataId + imageIdentifierFieldMetadataId + isLabelSyncedWithName + } +} + `; +export type UpdateOneObjectMetadataItemMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateOneObjectMetadataItemMutation__ + * + * To run a mutation, you first call `useUpdateOneObjectMetadataItemMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateOneObjectMetadataItemMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateOneObjectMetadataItemMutation, { data, loading, error }] = useUpdateOneObjectMetadataItemMutation({ + * variables: { + * idToUpdate: // value for 'idToUpdate' + * updatePayload: // value for 'updatePayload' + * }, + * }); + */ +export function useUpdateOneObjectMetadataItemMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateOneObjectMetadataItemDocument, options); + } +export type UpdateOneObjectMetadataItemMutationHookResult = ReturnType; +export type UpdateOneObjectMetadataItemMutationResult = Apollo.MutationResult; +export type UpdateOneObjectMetadataItemMutationOptions = Apollo.BaseMutationOptions; +export const DeleteOneObjectMetadataItemDocument = gql` + mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) { + deleteOneObject(input: {id: $idToDelete}) { + id + dataSourceId + nameSingular + namePlural + labelSingular + labelPlural + description + icon + isCustom + isActive + isSearchable + createdAt + updatedAt + labelIdentifierFieldMetadataId + imageIdentifierFieldMetadataId + isLabelSyncedWithName + } +} + `; +export type DeleteOneObjectMetadataItemMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteOneObjectMetadataItemMutation__ + * + * To run a mutation, you first call `useDeleteOneObjectMetadataItemMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteOneObjectMetadataItemMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteOneObjectMetadataItemMutation, { data, loading, error }] = useDeleteOneObjectMetadataItemMutation({ + * variables: { + * idToDelete: // value for 'idToDelete' + * }, + * }); + */ +export function useDeleteOneObjectMetadataItemMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteOneObjectMetadataItemDocument, options); + } +export type DeleteOneObjectMetadataItemMutationHookResult = ReturnType; +export type DeleteOneObjectMetadataItemMutationResult = Apollo.MutationResult; +export type DeleteOneObjectMetadataItemMutationOptions = Apollo.BaseMutationOptions; +export const DeleteOneFieldMetadataItemDocument = gql` + mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) { + deleteOneField(input: {id: $idToDelete}) { + id + type + name + label + description + icon + isCustom + isActive + isNullable + createdAt + updatedAt + settings + } +} + `; +export type DeleteOneFieldMetadataItemMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteOneFieldMetadataItemMutation__ + * + * To run a mutation, you first call `useDeleteOneFieldMetadataItemMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteOneFieldMetadataItemMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteOneFieldMetadataItemMutation, { data, loading, error }] = useDeleteOneFieldMetadataItemMutation({ + * variables: { + * idToDelete: // value for 'idToDelete' + * }, + * }); + */ +export function useDeleteOneFieldMetadataItemMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteOneFieldMetadataItemDocument, options); + } +export type DeleteOneFieldMetadataItemMutationHookResult = ReturnType; +export type DeleteOneFieldMetadataItemMutationResult = Apollo.MutationResult; +export type DeleteOneFieldMetadataItemMutationOptions = Apollo.BaseMutationOptions; +export const ObjectMetadataItemsDocument = gql` + query ObjectMetadataItems { + objects(paging: {first: 1000}) { + edges { + node { + id + dataSourceId + nameSingular + namePlural + labelSingular + labelPlural + description + icon + isCustom + isRemote + isActive + isSystem + createdAt + updatedAt + labelIdentifierFieldMetadataId + imageIdentifierFieldMetadataId + shortcut + isLabelSyncedWithName + isSearchable + duplicateCriteria + indexMetadataList { + id + createdAt + updatedAt + name + indexWhereClause + indexType + isUnique + indexFieldMetadataList { + id + fieldMetadataId + createdAt + updatedAt + order + } + } + fieldsList { + id + type + name + label + description + icon + isCustom + isActive + isSystem + isNullable + isUnique + createdAt + updatedAt + defaultValue + options + settings + isLabelSyncedWithName + relation { + type + sourceObjectMetadata { + id + nameSingular + namePlural + } + targetObjectMetadata { + id + nameSingular + namePlural + } + sourceFieldMetadata { + id + name + } + targetFieldMetadata { + id + name + } + } + } + } + } + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + } +} + `; + +/** + * __useObjectMetadataItemsQuery__ + * + * To run a query within a React component, call `useObjectMetadataItemsQuery` and pass it any options that fit your needs. + * When your component renders, `useObjectMetadataItemsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useObjectMetadataItemsQuery({ + * variables: { + * }, + * }); + */ +export function useObjectMetadataItemsQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(ObjectMetadataItemsDocument, options); + } +export function useObjectMetadataItemsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(ObjectMetadataItemsDocument, options); + } +export type ObjectMetadataItemsQueryHookResult = ReturnType; +export type ObjectMetadataItemsLazyQueryHookResult = ReturnType; +export type ObjectMetadataItemsQueryResult = Apollo.QueryResult; +export const SkipBookOnboardingStepDocument = gql` + mutation SkipBookOnboardingStep { + skipBookOnboardingStep { + success + } +} + `; +export type SkipBookOnboardingStepMutationFn = Apollo.MutationFunction; + +/** + * __useSkipBookOnboardingStepMutation__ + * + * To run a mutation, you first call `useSkipBookOnboardingStepMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSkipBookOnboardingStepMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [skipBookOnboardingStepMutation, { data, loading, error }] = useSkipBookOnboardingStepMutation({ + * variables: { + * }, + * }); + */ +export function useSkipBookOnboardingStepMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SkipBookOnboardingStepDocument, options); + } +export type SkipBookOnboardingStepMutationHookResult = ReturnType; +export type SkipBookOnboardingStepMutationResult = Apollo.MutationResult; +export type SkipBookOnboardingStepMutationOptions = Apollo.BaseMutationOptions; +export const SkipSyncEmailOnboardingStepDocument = gql` + mutation SkipSyncEmailOnboardingStep { + skipSyncEmailOnboardingStep { + success + } +} + `; +export type SkipSyncEmailOnboardingStepMutationFn = Apollo.MutationFunction; + +/** + * __useSkipSyncEmailOnboardingStepMutation__ + * + * To run a mutation, you first call `useSkipSyncEmailOnboardingStepMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSkipSyncEmailOnboardingStepMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [skipSyncEmailOnboardingStepMutation, { data, loading, error }] = useSkipSyncEmailOnboardingStepMutation({ + * variables: { + * }, + * }); + */ +export function useSkipSyncEmailOnboardingStepMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SkipSyncEmailOnboardingStepDocument, options); + } +export type SkipSyncEmailOnboardingStepMutationHookResult = ReturnType; +export type SkipSyncEmailOnboardingStepMutationResult = Apollo.MutationResult; +export type SkipSyncEmailOnboardingStepMutationOptions = Apollo.BaseMutationOptions; +export const SaveImapSmtpCaldavDocument = gql` + mutation SaveImapSmtpCaldav($accountOwnerId: String!, $handle: String!, $accountType: AccountType!, $connectionParameters: ConnectionParameters!, $id: String) { + saveImapSmtpCaldav( + accountOwnerId: $accountOwnerId + handle: $handle + accountType: $accountType + connectionParameters: $connectionParameters + id: $id + ) { + success + } +} + `; +export type SaveImapSmtpCaldavMutationFn = Apollo.MutationFunction; + +/** + * __useSaveImapSmtpCaldavMutation__ + * + * To run a mutation, you first call `useSaveImapSmtpCaldavMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSaveImapSmtpCaldavMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [saveImapSmtpCaldavMutation, { data, loading, error }] = useSaveImapSmtpCaldavMutation({ + * variables: { + * accountOwnerId: // value for 'accountOwnerId' + * handle: // value for 'handle' + * accountType: // value for 'accountType' + * connectionParameters: // value for 'connectionParameters' + * id: // value for 'id' + * }, + * }); + */ +export function useSaveImapSmtpCaldavMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SaveImapSmtpCaldavDocument, options); + } +export type SaveImapSmtpCaldavMutationHookResult = ReturnType; +export type SaveImapSmtpCaldavMutationResult = Apollo.MutationResult; +export type SaveImapSmtpCaldavMutationOptions = Apollo.BaseMutationOptions; +export const GetConnectedImapSmtpCaldavAccountDocument = gql` + query GetConnectedImapSmtpCaldavAccount($id: String!) { + getConnectedImapSmtpCaldavAccount(id: $id) { + id + handle + provider + accountOwnerId + connectionParameters { + IMAP { + host + port + secure + username + password + } + SMTP { + host + port + secure + username + password + } + CALDAV { + host + port + secure + username + password + } + } + } +} + `; + +/** + * __useGetConnectedImapSmtpCaldavAccountQuery__ + * + * To run a query within a React component, call `useGetConnectedImapSmtpCaldavAccountQuery` and pass it any options that fit your needs. + * When your component renders, `useGetConnectedImapSmtpCaldavAccountQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetConnectedImapSmtpCaldavAccountQuery({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useGetConnectedImapSmtpCaldavAccountQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetConnectedImapSmtpCaldavAccountDocument, options); + } +export function useGetConnectedImapSmtpCaldavAccountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetConnectedImapSmtpCaldavAccountDocument, options); + } +export type GetConnectedImapSmtpCaldavAccountQueryHookResult = ReturnType; +export type GetConnectedImapSmtpCaldavAccountLazyQueryHookResult = ReturnType; +export type GetConnectedImapSmtpCaldavAccountQueryResult = Apollo.QueryResult; +export const CreateDatabaseConfigVariableDocument = gql` + mutation CreateDatabaseConfigVariable($key: String!, $value: JSON!) { + createDatabaseConfigVariable(key: $key, value: $value) +} + `; +export type CreateDatabaseConfigVariableMutationFn = Apollo.MutationFunction; + +/** + * __useCreateDatabaseConfigVariableMutation__ + * + * To run a mutation, you first call `useCreateDatabaseConfigVariableMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateDatabaseConfigVariableMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createDatabaseConfigVariableMutation, { data, loading, error }] = useCreateDatabaseConfigVariableMutation({ + * variables: { + * key: // value for 'key' + * value: // value for 'value' + * }, + * }); + */ +export function useCreateDatabaseConfigVariableMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateDatabaseConfigVariableDocument, options); + } +export type CreateDatabaseConfigVariableMutationHookResult = ReturnType; +export type CreateDatabaseConfigVariableMutationResult = Apollo.MutationResult; +export type CreateDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions; +export const DeleteDatabaseConfigVariableDocument = gql` + mutation DeleteDatabaseConfigVariable($key: String!) { + deleteDatabaseConfigVariable(key: $key) +} + `; +export type DeleteDatabaseConfigVariableMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteDatabaseConfigVariableMutation__ + * + * To run a mutation, you first call `useDeleteDatabaseConfigVariableMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteDatabaseConfigVariableMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteDatabaseConfigVariableMutation, { data, loading, error }] = useDeleteDatabaseConfigVariableMutation({ + * variables: { + * key: // value for 'key' + * }, + * }); + */ +export function useDeleteDatabaseConfigVariableMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteDatabaseConfigVariableDocument, options); + } +export type DeleteDatabaseConfigVariableMutationHookResult = ReturnType; +export type DeleteDatabaseConfigVariableMutationResult = Apollo.MutationResult; +export type DeleteDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions; +export const UpdateDatabaseConfigVariableDocument = gql` + mutation UpdateDatabaseConfigVariable($key: String!, $value: JSON!) { + updateDatabaseConfigVariable(key: $key, value: $value) +} + `; +export type UpdateDatabaseConfigVariableMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateDatabaseConfigVariableMutation__ + * + * To run a mutation, you first call `useUpdateDatabaseConfigVariableMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateDatabaseConfigVariableMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateDatabaseConfigVariableMutation, { data, loading, error }] = useUpdateDatabaseConfigVariableMutation({ + * variables: { + * key: // value for 'key' + * value: // value for 'value' + * }, + * }); + */ +export function useUpdateDatabaseConfigVariableMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateDatabaseConfigVariableDocument, options); + } +export type UpdateDatabaseConfigVariableMutationHookResult = ReturnType; +export type UpdateDatabaseConfigVariableMutationResult = Apollo.MutationResult; +export type UpdateDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions; +export const GetConfigVariablesGroupedDocument = gql` + query GetConfigVariablesGrouped { + getConfigVariablesGrouped { + groups { + name + description + isHiddenOnLoad + variables { + name + description + value + isSensitive + isEnvOnly + type + options + source + } + } + } +} + `; + +/** + * __useGetConfigVariablesGroupedQuery__ + * + * To run a query within a React component, call `useGetConfigVariablesGroupedQuery` and pass it any options that fit your needs. + * When your component renders, `useGetConfigVariablesGroupedQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetConfigVariablesGroupedQuery({ + * variables: { + * }, + * }); + */ +export function useGetConfigVariablesGroupedQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetConfigVariablesGroupedDocument, options); + } +export function useGetConfigVariablesGroupedLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetConfigVariablesGroupedDocument, options); + } +export type GetConfigVariablesGroupedQueryHookResult = ReturnType; +export type GetConfigVariablesGroupedLazyQueryHookResult = ReturnType; +export type GetConfigVariablesGroupedQueryResult = Apollo.QueryResult; +export const GetDatabaseConfigVariableDocument = gql` + query GetDatabaseConfigVariable($key: String!) { + getDatabaseConfigVariable(key: $key) { + name + description + value + isSensitive + isEnvOnly + type + options + source + } +} + `; + +/** + * __useGetDatabaseConfigVariableQuery__ + * + * To run a query within a React component, call `useGetDatabaseConfigVariableQuery` and pass it any options that fit your needs. + * When your component renders, `useGetDatabaseConfigVariableQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetDatabaseConfigVariableQuery({ + * variables: { + * key: // value for 'key' + * }, + * }); + */ +export function useGetDatabaseConfigVariableQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetDatabaseConfigVariableDocument, options); + } +export function useGetDatabaseConfigVariableLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetDatabaseConfigVariableDocument, options); + } +export type GetDatabaseConfigVariableQueryHookResult = ReturnType; +export type GetDatabaseConfigVariableLazyQueryHookResult = ReturnType; +export type GetDatabaseConfigVariableQueryResult = Apollo.QueryResult; +export const UpdateWorkspaceFeatureFlagDocument = gql` + mutation UpdateWorkspaceFeatureFlag($workspaceId: String!, $featureFlag: String!, $value: Boolean!) { + updateWorkspaceFeatureFlag( + workspaceId: $workspaceId + featureFlag: $featureFlag + value: $value + ) +} + `; +export type UpdateWorkspaceFeatureFlagMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateWorkspaceFeatureFlagMutation__ + * + * To run a mutation, you first call `useUpdateWorkspaceFeatureFlagMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateWorkspaceFeatureFlagMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateWorkspaceFeatureFlagMutation, { data, loading, error }] = useUpdateWorkspaceFeatureFlagMutation({ + * variables: { + * workspaceId: // value for 'workspaceId' + * featureFlag: // value for 'featureFlag' + * value: // value for 'value' + * }, + * }); + */ +export function useUpdateWorkspaceFeatureFlagMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateWorkspaceFeatureFlagDocument, options); + } +export type UpdateWorkspaceFeatureFlagMutationHookResult = ReturnType; +export type UpdateWorkspaceFeatureFlagMutationResult = Apollo.MutationResult; +export type UpdateWorkspaceFeatureFlagMutationOptions = Apollo.BaseMutationOptions; +export const UserLookupAdminPanelDocument = gql` + mutation UserLookupAdminPanel($userIdentifier: String!) { + userLookupAdminPanel(userIdentifier: $userIdentifier) { + user { + id + email + firstName + lastName + } + workspaces { + id + name + logo + totalUsers + allowImpersonation + users { + id + email + firstName + lastName + } + featureFlags { + key + value + } + } + } +} + `; +export type UserLookupAdminPanelMutationFn = Apollo.MutationFunction; + +/** + * __useUserLookupAdminPanelMutation__ + * + * To run a mutation, you first call `useUserLookupAdminPanelMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUserLookupAdminPanelMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [userLookupAdminPanelMutation, { data, loading, error }] = useUserLookupAdminPanelMutation({ + * variables: { + * userIdentifier: // value for 'userIdentifier' + * }, + * }); + */ +export function useUserLookupAdminPanelMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UserLookupAdminPanelDocument, options); + } +export type UserLookupAdminPanelMutationHookResult = ReturnType; +export type UserLookupAdminPanelMutationResult = Apollo.MutationResult; +export type UserLookupAdminPanelMutationOptions = Apollo.BaseMutationOptions; +export const GetVersionInfoDocument = gql` + query GetVersionInfo { + versionInfo { + currentVersion + latestVersion + } +} + `; + +/** + * __useGetVersionInfoQuery__ + * + * To run a query within a React component, call `useGetVersionInfoQuery` and pass it any options that fit your needs. + * When your component renders, `useGetVersionInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetVersionInfoQuery({ + * variables: { + * }, + * }); + */ +export function useGetVersionInfoQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetVersionInfoDocument, options); + } +export function useGetVersionInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetVersionInfoDocument, options); + } +export type GetVersionInfoQueryHookResult = ReturnType; +export type GetVersionInfoLazyQueryHookResult = ReturnType; +export type GetVersionInfoQueryResult = Apollo.QueryResult; +export const GetIndicatorHealthStatusDocument = gql` + query GetIndicatorHealthStatus($indicatorId: HealthIndicatorId!) { + getIndicatorHealthStatus(indicatorId: $indicatorId) { + id + label + description + status + errorMessage + details + queues { + id + queueName + status + } + } +} + `; + +/** + * __useGetIndicatorHealthStatusQuery__ + * + * To run a query within a React component, call `useGetIndicatorHealthStatusQuery` and pass it any options that fit your needs. + * When your component renders, `useGetIndicatorHealthStatusQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetIndicatorHealthStatusQuery({ + * variables: { + * indicatorId: // value for 'indicatorId' + * }, + * }); + */ +export function useGetIndicatorHealthStatusQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetIndicatorHealthStatusDocument, options); + } +export function useGetIndicatorHealthStatusLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetIndicatorHealthStatusDocument, options); + } +export type GetIndicatorHealthStatusQueryHookResult = ReturnType; +export type GetIndicatorHealthStatusLazyQueryHookResult = ReturnType; +export type GetIndicatorHealthStatusQueryResult = Apollo.QueryResult; +export const GetQueueMetricsDocument = gql` + query GetQueueMetrics($queueName: String!, $timeRange: QueueMetricsTimeRange) { + getQueueMetrics(queueName: $queueName, timeRange: $timeRange) { + queueName + timeRange + workers + details { + failed + completed + waiting + active + delayed + failureRate + } + data { + id + data { + x + y + } + } + } +} + `; + +/** + * __useGetQueueMetricsQuery__ + * + * To run a query within a React component, call `useGetQueueMetricsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetQueueMetricsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetQueueMetricsQuery({ + * variables: { + * queueName: // value for 'queueName' + * timeRange: // value for 'timeRange' + * }, + * }); + */ +export function useGetQueueMetricsQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetQueueMetricsDocument, options); + } +export function useGetQueueMetricsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetQueueMetricsDocument, options); + } +export type GetQueueMetricsQueryHookResult = ReturnType; +export type GetQueueMetricsLazyQueryHookResult = ReturnType; +export type GetQueueMetricsQueryResult = Apollo.QueryResult; +export const GetSystemHealthStatusDocument = gql` + query GetSystemHealthStatus { + getSystemHealthStatus { + services { + id + label + status + } + } +} + `; + +/** + * __useGetSystemHealthStatusQuery__ + * + * To run a query within a React component, call `useGetSystemHealthStatusQuery` and pass it any options that fit your needs. + * When your component renders, `useGetSystemHealthStatusQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetSystemHealthStatusQuery({ + * variables: { + * }, + * }); + */ +export function useGetSystemHealthStatusQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetSystemHealthStatusDocument, options); + } +export function useGetSystemHealthStatusLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetSystemHealthStatusDocument, options); + } +export type GetSystemHealthStatusQueryHookResult = ReturnType; +export type GetSystemHealthStatusLazyQueryHookResult = ReturnType; +export type GetSystemHealthStatusQueryResult = Apollo.QueryResult; +export const UpdateLabPublicFeatureFlagDocument = gql` + mutation UpdateLabPublicFeatureFlag($input: UpdateLabPublicFeatureFlagInput!) { + updateLabPublicFeatureFlag(input: $input) { + key + value + } +} + `; +export type UpdateLabPublicFeatureFlagMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateLabPublicFeatureFlagMutation__ + * + * To run a mutation, you first call `useUpdateLabPublicFeatureFlagMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateLabPublicFeatureFlagMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateLabPublicFeatureFlagMutation, { data, loading, error }] = useUpdateLabPublicFeatureFlagMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useUpdateLabPublicFeatureFlagMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateLabPublicFeatureFlagDocument, options); + } +export type UpdateLabPublicFeatureFlagMutationHookResult = ReturnType; +export type UpdateLabPublicFeatureFlagMutationResult = Apollo.MutationResult; +export type UpdateLabPublicFeatureFlagMutationOptions = Apollo.BaseMutationOptions; +export const CreateOneRoleDocument = gql` + mutation CreateOneRole($createRoleInput: CreateRoleInput!) { + createOneRole(createRoleInput: $createRoleInput) { + ...RoleFragment + } +} + ${RoleFragmentFragmentDoc}`; +export type CreateOneRoleMutationFn = Apollo.MutationFunction; + +/** + * __useCreateOneRoleMutation__ + * + * To run a mutation, you first call `useCreateOneRoleMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateOneRoleMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createOneRoleMutation, { data, loading, error }] = useCreateOneRoleMutation({ + * variables: { + * createRoleInput: // value for 'createRoleInput' + * }, + * }); + */ +export function useCreateOneRoleMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateOneRoleDocument, options); + } +export type CreateOneRoleMutationHookResult = ReturnType; +export type CreateOneRoleMutationResult = Apollo.MutationResult; +export type CreateOneRoleMutationOptions = Apollo.BaseMutationOptions; +export const DeleteOneRoleDocument = gql` + mutation DeleteOneRole($roleId: String!) { + deleteOneRole(roleId: $roleId) +} + `; +export type DeleteOneRoleMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteOneRoleMutation__ + * + * To run a mutation, you first call `useDeleteOneRoleMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteOneRoleMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteOneRoleMutation, { data, loading, error }] = useDeleteOneRoleMutation({ + * variables: { + * roleId: // value for 'roleId' + * }, + * }); + */ +export function useDeleteOneRoleMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteOneRoleDocument, options); + } +export type DeleteOneRoleMutationHookResult = ReturnType; +export type DeleteOneRoleMutationResult = Apollo.MutationResult; +export type DeleteOneRoleMutationOptions = Apollo.BaseMutationOptions; +export const UpdateOneRoleDocument = gql` + mutation UpdateOneRole($updateRoleInput: UpdateRoleInput!) { + updateOneRole(updateRoleInput: $updateRoleInput) { + ...RoleFragment + } +} + ${RoleFragmentFragmentDoc}`; +export type UpdateOneRoleMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateOneRoleMutation__ + * + * To run a mutation, you first call `useUpdateOneRoleMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateOneRoleMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateOneRoleMutation, { data, loading, error }] = useUpdateOneRoleMutation({ + * variables: { + * updateRoleInput: // value for 'updateRoleInput' + * }, + * }); + */ +export function useUpdateOneRoleMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateOneRoleDocument, options); + } +export type UpdateOneRoleMutationHookResult = ReturnType; +export type UpdateOneRoleMutationResult = Apollo.MutationResult; +export type UpdateOneRoleMutationOptions = Apollo.BaseMutationOptions; +export const UpdateWorkspaceMemberRoleDocument = gql` + mutation UpdateWorkspaceMemberRole($workspaceMemberId: String!, $roleId: String!) { + updateWorkspaceMemberRole( + workspaceMemberId: $workspaceMemberId + roleId: $roleId + ) { + ...WorkspaceMemberQueryFragment + roles { + ...RoleFragment + } + } +} + ${WorkspaceMemberQueryFragmentFragmentDoc} +${RoleFragmentFragmentDoc}`; +export type UpdateWorkspaceMemberRoleMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateWorkspaceMemberRoleMutation__ + * + * To run a mutation, you first call `useUpdateWorkspaceMemberRoleMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateWorkspaceMemberRoleMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateWorkspaceMemberRoleMutation, { data, loading, error }] = useUpdateWorkspaceMemberRoleMutation({ + * variables: { + * workspaceMemberId: // value for 'workspaceMemberId' + * roleId: // value for 'roleId' + * }, + * }); + */ +export function useUpdateWorkspaceMemberRoleMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateWorkspaceMemberRoleDocument, options); + } +export type UpdateWorkspaceMemberRoleMutationHookResult = ReturnType; +export type UpdateWorkspaceMemberRoleMutationResult = Apollo.MutationResult; +export type UpdateWorkspaceMemberRoleMutationOptions = Apollo.BaseMutationOptions; +export const UpsertObjectPermissionsDocument = gql` + mutation UpsertObjectPermissions($upsertObjectPermissionsInput: UpsertObjectPermissionsInput!) { + upsertObjectPermissions( + upsertObjectPermissionsInput: $upsertObjectPermissionsInput + ) { + ...ObjectPermissionFragment + } +} + ${ObjectPermissionFragmentFragmentDoc}`; +export type UpsertObjectPermissionsMutationFn = Apollo.MutationFunction; + +/** + * __useUpsertObjectPermissionsMutation__ + * + * To run a mutation, you first call `useUpsertObjectPermissionsMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpsertObjectPermissionsMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [upsertObjectPermissionsMutation, { data, loading, error }] = useUpsertObjectPermissionsMutation({ + * variables: { + * upsertObjectPermissionsInput: // value for 'upsertObjectPermissionsInput' + * }, + * }); + */ +export function useUpsertObjectPermissionsMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpsertObjectPermissionsDocument, options); + } +export type UpsertObjectPermissionsMutationHookResult = ReturnType; +export type UpsertObjectPermissionsMutationResult = Apollo.MutationResult; +export type UpsertObjectPermissionsMutationOptions = Apollo.BaseMutationOptions; +export const UpsertSettingPermissionsDocument = gql` + mutation UpsertSettingPermissions($upsertSettingPermissionsInput: UpsertSettingPermissionsInput!) { + upsertSettingPermissions( + upsertSettingPermissionsInput: $upsertSettingPermissionsInput + ) { + ...SettingPermissionFragment + } +} + ${SettingPermissionFragmentFragmentDoc}`; +export type UpsertSettingPermissionsMutationFn = Apollo.MutationFunction; + +/** + * __useUpsertSettingPermissionsMutation__ + * + * To run a mutation, you first call `useUpsertSettingPermissionsMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpsertSettingPermissionsMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [upsertSettingPermissionsMutation, { data, loading, error }] = useUpsertSettingPermissionsMutation({ + * variables: { + * upsertSettingPermissionsInput: // value for 'upsertSettingPermissionsInput' + * }, + * }); + */ +export function useUpsertSettingPermissionsMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpsertSettingPermissionsDocument, options); + } +export type UpsertSettingPermissionsMutationHookResult = ReturnType; +export type UpsertSettingPermissionsMutationResult = Apollo.MutationResult; +export type UpsertSettingPermissionsMutationOptions = Apollo.BaseMutationOptions; +export const GetRolesDocument = gql` + query GetRoles { + getRoles { + ...RoleFragment + workspaceMembers { + ...WorkspaceMemberQueryFragment + } + settingPermissions { + ...SettingPermissionFragment + } + objectPermissions { + ...ObjectPermissionFragment + } + } +} + ${RoleFragmentFragmentDoc} +${WorkspaceMemberQueryFragmentFragmentDoc} +${SettingPermissionFragmentFragmentDoc} +${ObjectPermissionFragmentFragmentDoc}`; + +/** + * __useGetRolesQuery__ + * + * To run a query within a React component, call `useGetRolesQuery` and pass it any options that fit your needs. + * When your component renders, `useGetRolesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetRolesQuery({ + * variables: { + * }, + * }); + */ +export function useGetRolesQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetRolesDocument, options); + } +export function useGetRolesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetRolesDocument, options); + } +export type GetRolesQueryHookResult = ReturnType; +export type GetRolesLazyQueryHookResult = ReturnType; +export type GetRolesQueryResult = Apollo.QueryResult; +export const CreateApprovedAccessDomainDocument = gql` + mutation CreateApprovedAccessDomain($input: CreateApprovedAccessDomainInput!) { + createApprovedAccessDomain(input: $input) { + id + domain + isValidated + createdAt + } +} + `; +export type CreateApprovedAccessDomainMutationFn = Apollo.MutationFunction; + +/** + * __useCreateApprovedAccessDomainMutation__ + * + * To run a mutation, you first call `useCreateApprovedAccessDomainMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateApprovedAccessDomainMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createApprovedAccessDomainMutation, { data, loading, error }] = useCreateApprovedAccessDomainMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useCreateApprovedAccessDomainMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateApprovedAccessDomainDocument, options); + } +export type CreateApprovedAccessDomainMutationHookResult = ReturnType; +export type CreateApprovedAccessDomainMutationResult = Apollo.MutationResult; +export type CreateApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions; +export const CreateOidcIdentityProviderDocument = gql` + mutation CreateOIDCIdentityProvider($input: SetupOIDCSsoInput!) { + createOIDCIdentityProvider(input: $input) { + id + type + issuer + name + status + } +} + `; +export type CreateOidcIdentityProviderMutationFn = Apollo.MutationFunction; + +/** + * __useCreateOidcIdentityProviderMutation__ + * + * To run a mutation, you first call `useCreateOidcIdentityProviderMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateOidcIdentityProviderMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createOidcIdentityProviderMutation, { data, loading, error }] = useCreateOidcIdentityProviderMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useCreateOidcIdentityProviderMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateOidcIdentityProviderDocument, options); + } +export type CreateOidcIdentityProviderMutationHookResult = ReturnType; +export type CreateOidcIdentityProviderMutationResult = Apollo.MutationResult; +export type CreateOidcIdentityProviderMutationOptions = Apollo.BaseMutationOptions; +export const CreateSamlIdentityProviderDocument = gql` + mutation CreateSAMLIdentityProvider($input: SetupSAMLSsoInput!) { + createSAMLIdentityProvider(input: $input) { + id + type + issuer + name + status + } +} + `; +export type CreateSamlIdentityProviderMutationFn = Apollo.MutationFunction; + +/** + * __useCreateSamlIdentityProviderMutation__ + * + * To run a mutation, you first call `useCreateSamlIdentityProviderMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateSamlIdentityProviderMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createSamlIdentityProviderMutation, { data, loading, error }] = useCreateSamlIdentityProviderMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useCreateSamlIdentityProviderMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateSamlIdentityProviderDocument, options); + } +export type CreateSamlIdentityProviderMutationHookResult = ReturnType; +export type CreateSamlIdentityProviderMutationResult = Apollo.MutationResult; +export type CreateSamlIdentityProviderMutationOptions = Apollo.BaseMutationOptions; +export const DeleteApprovedAccessDomainDocument = gql` + mutation DeleteApprovedAccessDomain($input: DeleteApprovedAccessDomainInput!) { + deleteApprovedAccessDomain(input: $input) +} + `; +export type DeleteApprovedAccessDomainMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteApprovedAccessDomainMutation__ + * + * To run a mutation, you first call `useDeleteApprovedAccessDomainMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteApprovedAccessDomainMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteApprovedAccessDomainMutation, { data, loading, error }] = useDeleteApprovedAccessDomainMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useDeleteApprovedAccessDomainMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteApprovedAccessDomainDocument, options); + } +export type DeleteApprovedAccessDomainMutationHookResult = ReturnType; +export type DeleteApprovedAccessDomainMutationResult = Apollo.MutationResult; +export type DeleteApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions; +export const DeleteSsoIdentityProviderDocument = gql` + mutation DeleteSSOIdentityProvider($input: DeleteSsoInput!) { + deleteSSOIdentityProvider(input: $input) { + identityProviderId + } +} + `; +export type DeleteSsoIdentityProviderMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteSsoIdentityProviderMutation__ + * + * To run a mutation, you first call `useDeleteSsoIdentityProviderMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteSsoIdentityProviderMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteSsoIdentityProviderMutation, { data, loading, error }] = useDeleteSsoIdentityProviderMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useDeleteSsoIdentityProviderMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteSsoIdentityProviderDocument, options); + } +export type DeleteSsoIdentityProviderMutationHookResult = ReturnType; +export type DeleteSsoIdentityProviderMutationResult = Apollo.MutationResult; +export type DeleteSsoIdentityProviderMutationOptions = Apollo.BaseMutationOptions; +export const EditSsoIdentityProviderDocument = gql` + mutation EditSSOIdentityProvider($input: EditSsoInput!) { + editSSOIdentityProvider(input: $input) { + id + type + issuer + name + status + } +} + `; +export type EditSsoIdentityProviderMutationFn = Apollo.MutationFunction; + +/** + * __useEditSsoIdentityProviderMutation__ + * + * To run a mutation, you first call `useEditSsoIdentityProviderMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useEditSsoIdentityProviderMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [editSsoIdentityProviderMutation, { data, loading, error }] = useEditSsoIdentityProviderMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useEditSsoIdentityProviderMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(EditSsoIdentityProviderDocument, options); + } +export type EditSsoIdentityProviderMutationHookResult = ReturnType; +export type EditSsoIdentityProviderMutationResult = Apollo.MutationResult; +export type EditSsoIdentityProviderMutationOptions = Apollo.BaseMutationOptions; +export const ValidateApprovedAccessDomainDocument = gql` + mutation ValidateApprovedAccessDomain($input: ValidateApprovedAccessDomainInput!) { + validateApprovedAccessDomain(input: $input) { + id + isValidated + domain + createdAt + } +} + `; +export type ValidateApprovedAccessDomainMutationFn = Apollo.MutationFunction; + +/** + * __useValidateApprovedAccessDomainMutation__ + * + * To run a mutation, you first call `useValidateApprovedAccessDomainMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useValidateApprovedAccessDomainMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [validateApprovedAccessDomainMutation, { data, loading, error }] = useValidateApprovedAccessDomainMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useValidateApprovedAccessDomainMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(ValidateApprovedAccessDomainDocument, options); + } +export type ValidateApprovedAccessDomainMutationHookResult = ReturnType; +export type ValidateApprovedAccessDomainMutationResult = Apollo.MutationResult; +export type ValidateApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions; +export const GetApprovedAccessDomainsDocument = gql` + query GetApprovedAccessDomains { + getApprovedAccessDomains { + id + createdAt + domain + isValidated + } +} + `; + +/** + * __useGetApprovedAccessDomainsQuery__ + * + * To run a query within a React component, call `useGetApprovedAccessDomainsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetApprovedAccessDomainsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetApprovedAccessDomainsQuery({ + * variables: { + * }, + * }); + */ +export function useGetApprovedAccessDomainsQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetApprovedAccessDomainsDocument, options); + } +export function useGetApprovedAccessDomainsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetApprovedAccessDomainsDocument, options); + } +export type GetApprovedAccessDomainsQueryHookResult = ReturnType; +export type GetApprovedAccessDomainsLazyQueryHookResult = ReturnType; +export type GetApprovedAccessDomainsQueryResult = Apollo.QueryResult; +export const GetSsoIdentityProvidersDocument = gql` + query GetSSOIdentityProviders { + getSSOIdentityProviders { + type + id + name + issuer + status + } +} + `; + +/** + * __useGetSsoIdentityProvidersQuery__ + * + * To run a query within a React component, call `useGetSsoIdentityProvidersQuery` and pass it any options that fit your needs. + * When your component renders, `useGetSsoIdentityProvidersQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetSsoIdentityProvidersQuery({ + * variables: { + * }, + * }); + */ +export function useGetSsoIdentityProvidersQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetSsoIdentityProvidersDocument, options); + } +export function useGetSsoIdentityProvidersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetSsoIdentityProvidersDocument, options); + } +export type GetSsoIdentityProvidersQueryHookResult = ReturnType; +export type GetSsoIdentityProvidersLazyQueryHookResult = ReturnType; +export type GetSsoIdentityProvidersQueryResult = Apollo.QueryResult; +export const CreateOneServerlessFunctionItemDocument = gql` + mutation CreateOneServerlessFunctionItem($input: CreateServerlessFunctionInput!) { + createOneServerlessFunction(input: $input) { + ...ServerlessFunctionFields + } +} + ${ServerlessFunctionFieldsFragmentDoc}`; +export type CreateOneServerlessFunctionItemMutationFn = Apollo.MutationFunction; + +/** + * __useCreateOneServerlessFunctionItemMutation__ + * + * To run a mutation, you first call `useCreateOneServerlessFunctionItemMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateOneServerlessFunctionItemMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createOneServerlessFunctionItemMutation, { data, loading, error }] = useCreateOneServerlessFunctionItemMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useCreateOneServerlessFunctionItemMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateOneServerlessFunctionItemDocument, options); + } +export type CreateOneServerlessFunctionItemMutationHookResult = ReturnType; +export type CreateOneServerlessFunctionItemMutationResult = Apollo.MutationResult; +export type CreateOneServerlessFunctionItemMutationOptions = Apollo.BaseMutationOptions; +export const DeleteOneServerlessFunctionDocument = gql` + mutation DeleteOneServerlessFunction($input: ServerlessFunctionIdInput!) { + deleteOneServerlessFunction(input: $input) { + ...ServerlessFunctionFields + } +} + ${ServerlessFunctionFieldsFragmentDoc}`; +export type DeleteOneServerlessFunctionMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteOneServerlessFunctionMutation__ + * + * To run a mutation, you first call `useDeleteOneServerlessFunctionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteOneServerlessFunctionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteOneServerlessFunctionMutation, { data, loading, error }] = useDeleteOneServerlessFunctionMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useDeleteOneServerlessFunctionMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteOneServerlessFunctionDocument, options); + } +export type DeleteOneServerlessFunctionMutationHookResult = ReturnType; +export type DeleteOneServerlessFunctionMutationResult = Apollo.MutationResult; +export type DeleteOneServerlessFunctionMutationOptions = Apollo.BaseMutationOptions; +export const ExecuteOneServerlessFunctionDocument = gql` + mutation ExecuteOneServerlessFunction($input: ExecuteServerlessFunctionInput!) { + executeOneServerlessFunction(input: $input) { + data + logs + duration + status + error + } +} + `; +export type ExecuteOneServerlessFunctionMutationFn = Apollo.MutationFunction; + +/** + * __useExecuteOneServerlessFunctionMutation__ + * + * To run a mutation, you first call `useExecuteOneServerlessFunctionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useExecuteOneServerlessFunctionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [executeOneServerlessFunctionMutation, { data, loading, error }] = useExecuteOneServerlessFunctionMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useExecuteOneServerlessFunctionMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(ExecuteOneServerlessFunctionDocument, options); + } +export type ExecuteOneServerlessFunctionMutationHookResult = ReturnType; +export type ExecuteOneServerlessFunctionMutationResult = Apollo.MutationResult; +export type ExecuteOneServerlessFunctionMutationOptions = Apollo.BaseMutationOptions; +export const PublishOneServerlessFunctionDocument = gql` + mutation PublishOneServerlessFunction($input: PublishServerlessFunctionInput!) { + publishServerlessFunction(input: $input) { + ...ServerlessFunctionFields + } +} + ${ServerlessFunctionFieldsFragmentDoc}`; +export type PublishOneServerlessFunctionMutationFn = Apollo.MutationFunction; + +/** + * __usePublishOneServerlessFunctionMutation__ + * + * To run a mutation, you first call `usePublishOneServerlessFunctionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `usePublishOneServerlessFunctionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [publishOneServerlessFunctionMutation, { data, loading, error }] = usePublishOneServerlessFunctionMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function usePublishOneServerlessFunctionMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(PublishOneServerlessFunctionDocument, options); + } +export type PublishOneServerlessFunctionMutationHookResult = ReturnType; +export type PublishOneServerlessFunctionMutationResult = Apollo.MutationResult; +export type PublishOneServerlessFunctionMutationOptions = Apollo.BaseMutationOptions; +export const UpdateOneServerlessFunctionDocument = gql` + mutation UpdateOneServerlessFunction($input: UpdateServerlessFunctionInput!) { + updateOneServerlessFunction(input: $input) { + ...ServerlessFunctionFields + } +} + ${ServerlessFunctionFieldsFragmentDoc}`; +export type UpdateOneServerlessFunctionMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateOneServerlessFunctionMutation__ + * + * To run a mutation, you first call `useUpdateOneServerlessFunctionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateOneServerlessFunctionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateOneServerlessFunctionMutation, { data, loading, error }] = useUpdateOneServerlessFunctionMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useUpdateOneServerlessFunctionMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateOneServerlessFunctionDocument, options); + } +export type UpdateOneServerlessFunctionMutationHookResult = ReturnType; +export type UpdateOneServerlessFunctionMutationResult = Apollo.MutationResult; +export type UpdateOneServerlessFunctionMutationOptions = Apollo.BaseMutationOptions; +export const FindManyAvailablePackagesDocument = gql` + query FindManyAvailablePackages($input: ServerlessFunctionIdInput!) { + getAvailablePackages(input: $input) +} + `; + +/** + * __useFindManyAvailablePackagesQuery__ + * + * To run a query within a React component, call `useFindManyAvailablePackagesQuery` and pass it any options that fit your needs. + * When your component renders, `useFindManyAvailablePackagesQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFindManyAvailablePackagesQuery({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useFindManyAvailablePackagesQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(FindManyAvailablePackagesDocument, options); + } +export function useFindManyAvailablePackagesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(FindManyAvailablePackagesDocument, options); + } +export type FindManyAvailablePackagesQueryHookResult = ReturnType; +export type FindManyAvailablePackagesLazyQueryHookResult = ReturnType; +export type FindManyAvailablePackagesQueryResult = Apollo.QueryResult; +export const GetManyServerlessFunctionsDocument = gql` + query GetManyServerlessFunctions { + findManyServerlessFunctions { + ...ServerlessFunctionFields + } +} + ${ServerlessFunctionFieldsFragmentDoc}`; + +/** + * __useGetManyServerlessFunctionsQuery__ + * + * To run a query within a React component, call `useGetManyServerlessFunctionsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetManyServerlessFunctionsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetManyServerlessFunctionsQuery({ + * variables: { + * }, + * }); + */ +export function useGetManyServerlessFunctionsQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetManyServerlessFunctionsDocument, options); + } +export function useGetManyServerlessFunctionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetManyServerlessFunctionsDocument, options); + } +export type GetManyServerlessFunctionsQueryHookResult = ReturnType; +export type GetManyServerlessFunctionsLazyQueryHookResult = ReturnType; +export type GetManyServerlessFunctionsQueryResult = Apollo.QueryResult; +export const GetOneServerlessFunctionDocument = gql` + query GetOneServerlessFunction($input: ServerlessFunctionIdInput!) { + findOneServerlessFunction(input: $input) { + ...ServerlessFunctionFields + } +} + ${ServerlessFunctionFieldsFragmentDoc}`; + +/** + * __useGetOneServerlessFunctionQuery__ + * + * To run a query within a React component, call `useGetOneServerlessFunctionQuery` and pass it any options that fit your needs. + * When your component renders, `useGetOneServerlessFunctionQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetOneServerlessFunctionQuery({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useGetOneServerlessFunctionQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetOneServerlessFunctionDocument, options); + } +export function useGetOneServerlessFunctionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetOneServerlessFunctionDocument, options); + } +export type GetOneServerlessFunctionQueryHookResult = ReturnType; +export type GetOneServerlessFunctionLazyQueryHookResult = ReturnType; +export type GetOneServerlessFunctionQueryResult = Apollo.QueryResult; +export const FindOneServerlessFunctionSourceCodeDocument = gql` + query FindOneServerlessFunctionSourceCode($input: GetServerlessFunctionSourceCodeInput!) { + getServerlessFunctionSourceCode(input: $input) +} + `; + +/** + * __useFindOneServerlessFunctionSourceCodeQuery__ + * + * To run a query within a React component, call `useFindOneServerlessFunctionSourceCodeQuery` and pass it any options that fit your needs. + * When your component renders, `useFindOneServerlessFunctionSourceCodeQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFindOneServerlessFunctionSourceCodeQuery({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useFindOneServerlessFunctionSourceCodeQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(FindOneServerlessFunctionSourceCodeDocument, options); + } +export function useFindOneServerlessFunctionSourceCodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(FindOneServerlessFunctionSourceCodeDocument, options); + } +export type FindOneServerlessFunctionSourceCodeQueryHookResult = ReturnType; +export type FindOneServerlessFunctionSourceCodeLazyQueryHookResult = ReturnType; +export type FindOneServerlessFunctionSourceCodeQueryResult = Apollo.QueryResult; +export const DeleteUserAccountDocument = gql` + mutation DeleteUserAccount { + deleteUser { + id + } +} + `; +export type DeleteUserAccountMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteUserAccountMutation__ + * + * To run a mutation, you first call `useDeleteUserAccountMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteUserAccountMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteUserAccountMutation, { data, loading, error }] = useDeleteUserAccountMutation({ + * variables: { + * }, + * }); + */ +export function useDeleteUserAccountMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteUserAccountDocument, options); + } +export type DeleteUserAccountMutationHookResult = ReturnType; +export type DeleteUserAccountMutationResult = Apollo.MutationResult; +export type DeleteUserAccountMutationOptions = Apollo.BaseMutationOptions; +export const UploadProfilePictureDocument = gql` + mutation UploadProfilePicture($file: Upload!) { + uploadProfilePicture(file: $file) { + path + token + } +} + `; +export type UploadProfilePictureMutationFn = Apollo.MutationFunction; + +/** + * __useUploadProfilePictureMutation__ + * + * To run a mutation, you first call `useUploadProfilePictureMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUploadProfilePictureMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [uploadProfilePictureMutation, { data, loading, error }] = useUploadProfilePictureMutation({ + * variables: { + * file: // value for 'file' + * }, + * }); + */ +export function useUploadProfilePictureMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UploadProfilePictureDocument, options); + } +export type UploadProfilePictureMutationHookResult = ReturnType; +export type UploadProfilePictureMutationResult = Apollo.MutationResult; +export type UploadProfilePictureMutationOptions = Apollo.BaseMutationOptions; +export const GetCurrentUserDocument = gql` + query GetCurrentUser { + currentUser { + ...UserQueryFragment + } +} + ${UserQueryFragmentFragmentDoc}`; + +/** + * __useGetCurrentUserQuery__ + * + * To run a query within a React component, call `useGetCurrentUserQuery` and pass it any options that fit your needs. + * When your component renders, `useGetCurrentUserQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetCurrentUserQuery({ + * variables: { + * }, + * }); + */ +export function useGetCurrentUserQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetCurrentUserDocument, options); + } +export function useGetCurrentUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetCurrentUserDocument, options); + } +export type GetCurrentUserQueryHookResult = ReturnType; +export type GetCurrentUserLazyQueryHookResult = ReturnType; +export type GetCurrentUserQueryResult = Apollo.QueryResult; +export const ActivateWorkflowVersionDocument = gql` + mutation ActivateWorkflowVersion($workflowVersionId: String!) { + activateWorkflowVersion(workflowVersionId: $workflowVersionId) +} + `; +export type ActivateWorkflowVersionMutationFn = Apollo.MutationFunction; + +/** + * __useActivateWorkflowVersionMutation__ + * + * To run a mutation, you first call `useActivateWorkflowVersionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useActivateWorkflowVersionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [activateWorkflowVersionMutation, { data, loading, error }] = useActivateWorkflowVersionMutation({ + * variables: { + * workflowVersionId: // value for 'workflowVersionId' + * }, + * }); + */ +export function useActivateWorkflowVersionMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(ActivateWorkflowVersionDocument, options); + } +export type ActivateWorkflowVersionMutationHookResult = ReturnType; +export type ActivateWorkflowVersionMutationResult = Apollo.MutationResult; +export type ActivateWorkflowVersionMutationOptions = Apollo.BaseMutationOptions; +export const ComputeStepOutputSchemaDocument = gql` + mutation ComputeStepOutputSchema($input: ComputeStepOutputSchemaInput!) { + computeStepOutputSchema(input: $input) +} + `; +export type ComputeStepOutputSchemaMutationFn = Apollo.MutationFunction; + +/** + * __useComputeStepOutputSchemaMutation__ + * + * To run a mutation, you first call `useComputeStepOutputSchemaMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useComputeStepOutputSchemaMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [computeStepOutputSchemaMutation, { data, loading, error }] = useComputeStepOutputSchemaMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useComputeStepOutputSchemaMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(ComputeStepOutputSchemaDocument, options); + } +export type ComputeStepOutputSchemaMutationHookResult = ReturnType; +export type ComputeStepOutputSchemaMutationResult = Apollo.MutationResult; +export type ComputeStepOutputSchemaMutationOptions = Apollo.BaseMutationOptions; +export const CreateDraftFromWorkflowVersionDocument = gql` + mutation CreateDraftFromWorkflowVersion($input: CreateDraftFromWorkflowVersionInput!) { + createDraftFromWorkflowVersion(input: $input) { + id + } +} + `; +export type CreateDraftFromWorkflowVersionMutationFn = Apollo.MutationFunction; + +/** + * __useCreateDraftFromWorkflowVersionMutation__ + * + * To run a mutation, you first call `useCreateDraftFromWorkflowVersionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateDraftFromWorkflowVersionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createDraftFromWorkflowVersionMutation, { data, loading, error }] = useCreateDraftFromWorkflowVersionMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useCreateDraftFromWorkflowVersionMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateDraftFromWorkflowVersionDocument, options); + } +export type CreateDraftFromWorkflowVersionMutationHookResult = ReturnType; +export type CreateDraftFromWorkflowVersionMutationResult = Apollo.MutationResult; +export type CreateDraftFromWorkflowVersionMutationOptions = Apollo.BaseMutationOptions; +export const CreateWorkflowVersionStepDocument = gql` + mutation CreateWorkflowVersionStep($input: CreateWorkflowVersionStepInput!) { + createWorkflowVersionStep(input: $input) { + id + name + type + settings + valid + nextStepIds + } +} + `; +export type CreateWorkflowVersionStepMutationFn = Apollo.MutationFunction; + +/** + * __useCreateWorkflowVersionStepMutation__ + * + * To run a mutation, you first call `useCreateWorkflowVersionStepMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateWorkflowVersionStepMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [createWorkflowVersionStepMutation, { data, loading, error }] = useCreateWorkflowVersionStepMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useCreateWorkflowVersionStepMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CreateWorkflowVersionStepDocument, options); + } +export type CreateWorkflowVersionStepMutationHookResult = ReturnType; +export type CreateWorkflowVersionStepMutationResult = Apollo.MutationResult; +export type CreateWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions; +export const DeactivateWorkflowVersionDocument = gql` + mutation DeactivateWorkflowVersion($workflowVersionId: String!) { + deactivateWorkflowVersion(workflowVersionId: $workflowVersionId) +} + `; +export type DeactivateWorkflowVersionMutationFn = Apollo.MutationFunction; + +/** + * __useDeactivateWorkflowVersionMutation__ + * + * To run a mutation, you first call `useDeactivateWorkflowVersionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeactivateWorkflowVersionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deactivateWorkflowVersionMutation, { data, loading, error }] = useDeactivateWorkflowVersionMutation({ + * variables: { + * workflowVersionId: // value for 'workflowVersionId' + * }, + * }); + */ +export function useDeactivateWorkflowVersionMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeactivateWorkflowVersionDocument, options); + } +export type DeactivateWorkflowVersionMutationHookResult = ReturnType; +export type DeactivateWorkflowVersionMutationResult = Apollo.MutationResult; +export type DeactivateWorkflowVersionMutationOptions = Apollo.BaseMutationOptions; +export const DeleteWorkflowVersionStepDocument = gql` + mutation DeleteWorkflowVersionStep($input: DeleteWorkflowVersionStepInput!) { + deleteWorkflowVersionStep(input: $input) { + id + name + type + settings + valid + nextStepIds + } +} + `; +export type DeleteWorkflowVersionStepMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteWorkflowVersionStepMutation__ + * + * To run a mutation, you first call `useDeleteWorkflowVersionStepMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteWorkflowVersionStepMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteWorkflowVersionStepMutation, { data, loading, error }] = useDeleteWorkflowVersionStepMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useDeleteWorkflowVersionStepMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteWorkflowVersionStepDocument, options); + } +export type DeleteWorkflowVersionStepMutationHookResult = ReturnType; +export type DeleteWorkflowVersionStepMutationResult = Apollo.MutationResult; +export type DeleteWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions; +export const RunWorkflowVersionDocument = gql` + mutation RunWorkflowVersion($input: RunWorkflowVersionInput!) { + runWorkflowVersion(input: $input) { + workflowRunId + } +} + `; +export type RunWorkflowVersionMutationFn = Apollo.MutationFunction; + +/** + * __useRunWorkflowVersionMutation__ + * + * To run a mutation, you first call `useRunWorkflowVersionMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useRunWorkflowVersionMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [runWorkflowVersionMutation, { data, loading, error }] = useRunWorkflowVersionMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useRunWorkflowVersionMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(RunWorkflowVersionDocument, options); + } +export type RunWorkflowVersionMutationHookResult = ReturnType; +export type RunWorkflowVersionMutationResult = Apollo.MutationResult; +export type RunWorkflowVersionMutationOptions = Apollo.BaseMutationOptions; +export const UpdateWorkflowRunStepDocument = gql` + mutation UpdateWorkflowRunStep($input: UpdateWorkflowRunStepInput!) { + updateWorkflowRunStep(input: $input) { + id + name + type + settings + valid + nextStepIds + } +} + `; +export type UpdateWorkflowRunStepMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateWorkflowRunStepMutation__ + * + * To run a mutation, you first call `useUpdateWorkflowRunStepMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateWorkflowRunStepMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateWorkflowRunStepMutation, { data, loading, error }] = useUpdateWorkflowRunStepMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useUpdateWorkflowRunStepMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateWorkflowRunStepDocument, options); + } +export type UpdateWorkflowRunStepMutationHookResult = ReturnType; +export type UpdateWorkflowRunStepMutationResult = Apollo.MutationResult; +export type UpdateWorkflowRunStepMutationOptions = Apollo.BaseMutationOptions; +export const UpdateWorkflowVersionStepDocument = gql` + mutation UpdateWorkflowVersionStep($input: UpdateWorkflowVersionStepInput!) { + updateWorkflowVersionStep(input: $input) { + id + name + type + settings + valid + nextStepIds + } +} + `; +export type UpdateWorkflowVersionStepMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateWorkflowVersionStepMutation__ + * + * To run a mutation, you first call `useUpdateWorkflowVersionStepMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateWorkflowVersionStepMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateWorkflowVersionStepMutation, { data, loading, error }] = useUpdateWorkflowVersionStepMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useUpdateWorkflowVersionStepMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateWorkflowVersionStepDocument, options); + } +export type UpdateWorkflowVersionStepMutationHookResult = ReturnType; +export type UpdateWorkflowVersionStepMutationResult = Apollo.MutationResult; +export type UpdateWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions; +export const AssignRoleToAgentDocument = gql` + mutation AssignRoleToAgent($agentId: UUID!, $roleId: UUID!) { + assignRoleToAgent(agentId: $agentId, roleId: $roleId) +} + `; +export type AssignRoleToAgentMutationFn = Apollo.MutationFunction; + +/** + * __useAssignRoleToAgentMutation__ + * + * To run a mutation, you first call `useAssignRoleToAgentMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useAssignRoleToAgentMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [assignRoleToAgentMutation, { data, loading, error }] = useAssignRoleToAgentMutation({ + * variables: { + * agentId: // value for 'agentId' + * roleId: // value for 'roleId' + * }, + * }); + */ +export function useAssignRoleToAgentMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(AssignRoleToAgentDocument, options); + } +export type AssignRoleToAgentMutationHookResult = ReturnType; +export type AssignRoleToAgentMutationResult = Apollo.MutationResult; +export type AssignRoleToAgentMutationOptions = Apollo.BaseMutationOptions; +export const RemoveRoleFromAgentDocument = gql` + mutation RemoveRoleFromAgent($agentId: UUID!) { + removeRoleFromAgent(agentId: $agentId) +} + `; +export type RemoveRoleFromAgentMutationFn = Apollo.MutationFunction; + +/** + * __useRemoveRoleFromAgentMutation__ + * + * To run a mutation, you first call `useRemoveRoleFromAgentMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useRemoveRoleFromAgentMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [removeRoleFromAgentMutation, { data, loading, error }] = useRemoveRoleFromAgentMutation({ + * variables: { + * agentId: // value for 'agentId' + * }, + * }); + */ +export function useRemoveRoleFromAgentMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(RemoveRoleFromAgentDocument, options); + } +export type RemoveRoleFromAgentMutationHookResult = ReturnType; +export type RemoveRoleFromAgentMutationResult = Apollo.MutationResult; +export type RemoveRoleFromAgentMutationOptions = Apollo.BaseMutationOptions; +export const UpdateOneAgentDocument = gql` + mutation UpdateOneAgent($input: UpdateAgentInput!) { + updateOneAgent(input: $input) { + id + name + description + prompt + modelId + responseFormat + } +} + `; +export type UpdateOneAgentMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateOneAgentMutation__ + * + * To run a mutation, you first call `useUpdateOneAgentMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateOneAgentMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateOneAgentMutation, { data, loading, error }] = useUpdateOneAgentMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useUpdateOneAgentMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateOneAgentDocument, options); + } +export type UpdateOneAgentMutationHookResult = ReturnType; +export type UpdateOneAgentMutationResult = Apollo.MutationResult; +export type UpdateOneAgentMutationOptions = Apollo.BaseMutationOptions; +export const FindOneAgentDocument = gql` + query FindOneAgent($id: UUID!) { + findOneAgent(input: {id: $id}) { + id + name + description + prompt + modelId + responseFormat + roleId + } +} + `; + +/** + * __useFindOneAgentQuery__ + * + * To run a query within a React component, call `useFindOneAgentQuery` and pass it any options that fit your needs. + * When your component renders, `useFindOneAgentQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useFindOneAgentQuery({ + * variables: { + * id: // value for 'id' + * }, + * }); + */ +export function useFindOneAgentQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(FindOneAgentDocument, options); + } +export function useFindOneAgentLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(FindOneAgentDocument, options); + } +export type FindOneAgentQueryHookResult = ReturnType; +export type FindOneAgentLazyQueryHookResult = ReturnType; +export type FindOneAgentQueryResult = Apollo.QueryResult; +export const SubmitFormStepDocument = gql` + mutation SubmitFormStep($input: SubmitFormStepInput!) { + submitFormStep(input: $input) +} + `; +export type SubmitFormStepMutationFn = Apollo.MutationFunction; + +/** + * __useSubmitFormStepMutation__ + * + * To run a mutation, you first call `useSubmitFormStepMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSubmitFormStepMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [submitFormStepMutation, { data, loading, error }] = useSubmitFormStepMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useSubmitFormStepMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SubmitFormStepDocument, options); + } +export type SubmitFormStepMutationHookResult = ReturnType; +export type SubmitFormStepMutationResult = Apollo.MutationResult; +export type SubmitFormStepMutationOptions = Apollo.BaseMutationOptions; +export const DeleteWorkspaceInvitationDocument = gql` + mutation DeleteWorkspaceInvitation($appTokenId: String!) { + deleteWorkspaceInvitation(appTokenId: $appTokenId) +} + `; +export type DeleteWorkspaceInvitationMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteWorkspaceInvitationMutation__ + * + * To run a mutation, you first call `useDeleteWorkspaceInvitationMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteWorkspaceInvitationMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteWorkspaceInvitationMutation, { data, loading, error }] = useDeleteWorkspaceInvitationMutation({ + * variables: { + * appTokenId: // value for 'appTokenId' + * }, + * }); + */ +export function useDeleteWorkspaceInvitationMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteWorkspaceInvitationDocument, options); + } +export type DeleteWorkspaceInvitationMutationHookResult = ReturnType; +export type DeleteWorkspaceInvitationMutationResult = Apollo.MutationResult; +export type DeleteWorkspaceInvitationMutationOptions = Apollo.BaseMutationOptions; +export const ResendWorkspaceInvitationDocument = gql` + mutation ResendWorkspaceInvitation($appTokenId: String!) { + resendWorkspaceInvitation(appTokenId: $appTokenId) { + success + errors + result { + ... on WorkspaceInvitation { + id + email + expiresAt + } + } + } +} + `; +export type ResendWorkspaceInvitationMutationFn = Apollo.MutationFunction; + +/** + * __useResendWorkspaceInvitationMutation__ + * + * To run a mutation, you first call `useResendWorkspaceInvitationMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useResendWorkspaceInvitationMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [resendWorkspaceInvitationMutation, { data, loading, error }] = useResendWorkspaceInvitationMutation({ + * variables: { + * appTokenId: // value for 'appTokenId' + * }, + * }); + */ +export function useResendWorkspaceInvitationMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(ResendWorkspaceInvitationDocument, options); + } +export type ResendWorkspaceInvitationMutationHookResult = ReturnType; +export type ResendWorkspaceInvitationMutationResult = Apollo.MutationResult; +export type ResendWorkspaceInvitationMutationOptions = Apollo.BaseMutationOptions; +export const SendInvitationsDocument = gql` + mutation SendInvitations($emails: [String!]!) { + sendInvitations(emails: $emails) { + success + errors + result { + ... on WorkspaceInvitation { + id + email + expiresAt + } + } + } +} + `; +export type SendInvitationsMutationFn = Apollo.MutationFunction; + +/** + * __useSendInvitationsMutation__ + * + * To run a mutation, you first call `useSendInvitationsMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useSendInvitationsMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [sendInvitationsMutation, { data, loading, error }] = useSendInvitationsMutation({ + * variables: { + * emails: // value for 'emails' + * }, + * }); + */ +export function useSendInvitationsMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(SendInvitationsDocument, options); + } +export type SendInvitationsMutationHookResult = ReturnType; +export type SendInvitationsMutationResult = Apollo.MutationResult; +export type SendInvitationsMutationOptions = Apollo.BaseMutationOptions; +export const GetWorkspaceInvitationsDocument = gql` + query GetWorkspaceInvitations { + findWorkspaceInvitations { + id + email + expiresAt + } +} + `; + +/** + * __useGetWorkspaceInvitationsQuery__ + * + * To run a query within a React component, call `useGetWorkspaceInvitationsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetWorkspaceInvitationsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetWorkspaceInvitationsQuery({ + * variables: { + * }, + * }); + */ +export function useGetWorkspaceInvitationsQuery(baseOptions?: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetWorkspaceInvitationsDocument, options); + } +export function useGetWorkspaceInvitationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetWorkspaceInvitationsDocument, options); + } +export type GetWorkspaceInvitationsQueryHookResult = ReturnType; +export type GetWorkspaceInvitationsLazyQueryHookResult = ReturnType; +export type GetWorkspaceInvitationsQueryResult = Apollo.QueryResult; +export const ActivateWorkspaceDocument = gql` + mutation ActivateWorkspace($input: ActivateWorkspaceInput!) { + activateWorkspace(data: $input) { + id + } +} + `; +export type ActivateWorkspaceMutationFn = Apollo.MutationFunction; + +/** + * __useActivateWorkspaceMutation__ + * + * To run a mutation, you first call `useActivateWorkspaceMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useActivateWorkspaceMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [activateWorkspaceMutation, { data, loading, error }] = useActivateWorkspaceMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useActivateWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(ActivateWorkspaceDocument, options); + } +export type ActivateWorkspaceMutationHookResult = ReturnType; +export type ActivateWorkspaceMutationResult = Apollo.MutationResult; +export type ActivateWorkspaceMutationOptions = Apollo.BaseMutationOptions; +export const DeleteCurrentWorkspaceDocument = gql` + mutation DeleteCurrentWorkspace { + deleteCurrentWorkspace { + id + } +} + `; +export type DeleteCurrentWorkspaceMutationFn = Apollo.MutationFunction; + +/** + * __useDeleteCurrentWorkspaceMutation__ + * + * To run a mutation, you first call `useDeleteCurrentWorkspaceMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteCurrentWorkspaceMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [deleteCurrentWorkspaceMutation, { data, loading, error }] = useDeleteCurrentWorkspaceMutation({ + * variables: { + * }, + * }); + */ +export function useDeleteCurrentWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(DeleteCurrentWorkspaceDocument, options); + } +export type DeleteCurrentWorkspaceMutationHookResult = ReturnType; +export type DeleteCurrentWorkspaceMutationResult = Apollo.MutationResult; +export type DeleteCurrentWorkspaceMutationOptions = Apollo.BaseMutationOptions; +export const UpdateWorkspaceDocument = gql` + mutation UpdateWorkspace($input: UpdateWorkspaceInput!) { + updateWorkspace(data: $input) { + id + customDomain + subdomain + displayName + logo + allowImpersonation + isPublicInviteLinkEnabled + isGoogleAuthEnabled + isMicrosoftAuthEnabled + isPasswordAuthEnabled + defaultRole { + ...RoleFragment + } + } +} + ${RoleFragmentFragmentDoc}`; +export type UpdateWorkspaceMutationFn = Apollo.MutationFunction; + +/** + * __useUpdateWorkspaceMutation__ + * + * To run a mutation, you first call `useUpdateWorkspaceMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateWorkspaceMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [updateWorkspaceMutation, { data, loading, error }] = useUpdateWorkspaceMutation({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useUpdateWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UpdateWorkspaceDocument, options); + } +export type UpdateWorkspaceMutationHookResult = ReturnType; +export type UpdateWorkspaceMutationResult = Apollo.MutationResult; +export type UpdateWorkspaceMutationOptions = Apollo.BaseMutationOptions; +export const UploadWorkspaceLogoDocument = gql` + mutation UploadWorkspaceLogo($file: Upload!) { + uploadWorkspaceLogo(file: $file) { + path + token + } +} + `; +export type UploadWorkspaceLogoMutationFn = Apollo.MutationFunction; + +/** + * __useUploadWorkspaceLogoMutation__ + * + * To run a mutation, you first call `useUploadWorkspaceLogoMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUploadWorkspaceLogoMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [uploadWorkspaceLogoMutation, { data, loading, error }] = useUploadWorkspaceLogoMutation({ + * variables: { + * file: // value for 'file' + * }, + * }); + */ +export function useUploadWorkspaceLogoMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(UploadWorkspaceLogoDocument, options); + } +export type UploadWorkspaceLogoMutationHookResult = ReturnType; +export type UploadWorkspaceLogoMutationResult = Apollo.MutationResult; +export type UploadWorkspaceLogoMutationOptions = Apollo.BaseMutationOptions; +export const CheckCustomDomainValidRecordsDocument = gql` + mutation CheckCustomDomainValidRecords { + checkCustomDomainValidRecords { + id + customDomain + records { + type + key + value + validationType + status + } + } +} + `; +export type CheckCustomDomainValidRecordsMutationFn = Apollo.MutationFunction; + +/** + * __useCheckCustomDomainValidRecordsMutation__ + * + * To run a mutation, you first call `useCheckCustomDomainValidRecordsMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCheckCustomDomainValidRecordsMutation` returns a tuple that includes: + * - A mutate function that you can call at any time to execute the mutation + * - An object with fields that represent the current status of the mutation's execution + * + * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; + * + * @example + * const [checkCustomDomainValidRecordsMutation, { data, loading, error }] = useCheckCustomDomainValidRecordsMutation({ + * variables: { + * }, + * }); + */ +export function useCheckCustomDomainValidRecordsMutation(baseOptions?: Apollo.MutationHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useMutation(CheckCustomDomainValidRecordsDocument, options); + } +export type CheckCustomDomainValidRecordsMutationHookResult = ReturnType; +export type CheckCustomDomainValidRecordsMutationResult = Apollo.MutationResult; +export type CheckCustomDomainValidRecordsMutationOptions = Apollo.BaseMutationOptions; +export const GetWorkspaceFromInviteHashDocument = gql` + query GetWorkspaceFromInviteHash($inviteHash: String!) { + findWorkspaceFromInviteHash(inviteHash: $inviteHash) { + id + displayName + logo + allowImpersonation + } +} + `; + +/** + * __useGetWorkspaceFromInviteHashQuery__ + * + * To run a query within a React component, call `useGetWorkspaceFromInviteHashQuery` and pass it any options that fit your needs. + * When your component renders, `useGetWorkspaceFromInviteHashQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetWorkspaceFromInviteHashQuery({ + * variables: { + * inviteHash: // value for 'inviteHash' + * }, + * }); + */ +export function useGetWorkspaceFromInviteHashQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(GetWorkspaceFromInviteHashDocument, options); + } +export function useGetWorkspaceFromInviteHashLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(GetWorkspaceFromInviteHashDocument, options); + } +export type GetWorkspaceFromInviteHashQueryHookResult = ReturnType; +export type GetWorkspaceFromInviteHashLazyQueryHookResult = ReturnType; +export type GetWorkspaceFromInviteHashQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/packages/twenty-front/src/generated-metadata/index.ts b/packages/twenty-front/src/generated-metadata/index.ts deleted file mode 100644 index af7839936..000000000 --- a/packages/twenty-front/src/generated-metadata/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./gql"; \ No newline at end of file diff --git a/packages/twenty-front/src/generated/graphql.ts b/packages/twenty-front/src/generated/graphql.ts new file mode 100644 index 000000000..e1f224b91 --- /dev/null +++ b/packages/twenty-front/src/generated/graphql.ts @@ -0,0 +1,2704 @@ +import { gql } from '@apollo/client'; +import * as Apollo from '@apollo/client'; +export type Maybe = T | null; +export type InputMaybe = Maybe; +export type Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +const defaultOptions = {} as const; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + ConnectionCursor: any; + Date: any; + DateTime: string; + JSON: any; + JSONObject: any; + UUID: any; + Upload: any; +}; + +export type AccountType = { + type: Scalars['String']; +}; + +export type ActivateWorkspaceInput = { + displayName?: InputMaybe; +}; + +export type AdminPanelHealthServiceData = { + __typename?: 'AdminPanelHealthServiceData'; + description: Scalars['String']; + details?: Maybe; + errorMessage?: Maybe; + id: Scalars['String']; + label: Scalars['String']; + queues?: Maybe>; + status: AdminPanelHealthServiceStatus; +}; + +export enum AdminPanelHealthServiceStatus { + OPERATIONAL = 'OPERATIONAL', + OUTAGE = 'OUTAGE' +} + +export type AdminPanelWorkerQueueHealth = { + __typename?: 'AdminPanelWorkerQueueHealth'; + id: Scalars['String']; + queueName: Scalars['String']; + status: AdminPanelHealthServiceStatus; +}; + +export type Agent = { + __typename?: 'Agent'; + createdAt: Scalars['DateTime']; + description?: Maybe; + id: Scalars['UUID']; + modelId: Scalars['String']; + name: Scalars['String']; + prompt: Scalars['String']; + responseFormat?: Maybe; + roleId?: Maybe; + updatedAt: Scalars['DateTime']; +}; + +export type AgentIdInput = { + /** The id of the agent. */ + id: Scalars['UUID']; +}; + +export type Analytics = { + __typename?: 'Analytics'; + /** Boolean that confirms query was dispatched */ + success: Scalars['Boolean']; +}; + +export enum AnalyticsType { + PAGEVIEW = 'PAGEVIEW', + TRACK = 'TRACK' +} + +export type ApiConfig = { + __typename?: 'ApiConfig'; + mutationMaximumAffectedRecords: Scalars['Float']; +}; + +export type ApiKeyToken = { + __typename?: 'ApiKeyToken'; + token: Scalars['String']; +}; + +export type AppToken = { + __typename?: 'AppToken'; + createdAt: Scalars['DateTime']; + expiresAt: Scalars['DateTime']; + id: Scalars['UUID']; + type: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; + +export type AppTokenEdge = { + __typename?: 'AppTokenEdge'; + /** Cursor for this node. */ + cursor: Scalars['ConnectionCursor']; + /** The node containing the AppToken */ + node: AppToken; +}; + +export type ApprovedAccessDomain = { + __typename?: 'ApprovedAccessDomain'; + createdAt: Scalars['DateTime']; + domain: Scalars['String']; + id: Scalars['UUID']; + isValidated: Scalars['Boolean']; +}; + +export type AuthProviders = { + __typename?: 'AuthProviders'; + google: Scalars['Boolean']; + magicLink: Scalars['Boolean']; + microsoft: Scalars['Boolean']; + password: Scalars['Boolean']; + sso: Array; +}; + +export type AuthToken = { + __typename?: 'AuthToken'; + expiresAt: Scalars['DateTime']; + token: Scalars['String']; +}; + +export type AuthTokenPair = { + __typename?: 'AuthTokenPair'; + accessToken: AuthToken; + refreshToken: AuthToken; +}; + +export type AuthTokens = { + __typename?: 'AuthTokens'; + tokens: AuthTokenPair; +}; + +export type AuthorizeApp = { + __typename?: 'AuthorizeApp'; + redirectUrl: Scalars['String']; +}; + +export type AvailableWorkspace = { + __typename?: 'AvailableWorkspace'; + displayName?: Maybe; + id: Scalars['String']; + inviteHash?: Maybe; + loginToken?: Maybe; + logo?: Maybe; + personalInviteToken?: Maybe; + sso: Array; + workspaceUrls: WorkspaceUrls; +}; + +export type AvailableWorkspaces = { + __typename?: 'AvailableWorkspaces'; + availableWorkspacesForSignIn: Array; + availableWorkspacesForSignUp: Array; +}; + +export type AvailableWorkspacesAndAccessTokensOutput = { + __typename?: 'AvailableWorkspacesAndAccessTokensOutput'; + availableWorkspaces: AvailableWorkspaces; + tokens: AuthTokenPair; +}; + +export type Billing = { + __typename?: 'Billing'; + billingUrl?: Maybe; + isBillingEnabled: Scalars['Boolean']; + trialPeriods: Array; +}; + +export type BillingEndTrialPeriodOutput = { + __typename?: 'BillingEndTrialPeriodOutput'; + /** Boolean that confirms if a payment method was found */ + hasPaymentMethod: Scalars['Boolean']; + /** Updated subscription status */ + status?: Maybe; +}; + +export type BillingMeteredProductUsageOutput = { + __typename?: 'BillingMeteredProductUsageOutput'; + freeTierQuantity: Scalars['Float']; + freeTrialQuantity: Scalars['Float']; + periodEnd: Scalars['DateTime']; + periodStart: Scalars['DateTime']; + productKey: BillingProductKey; + totalCostCents: Scalars['Float']; + unitPriceCents: Scalars['Float']; + usageQuantity: Scalars['Float']; +}; + +/** The different billing plans available */ +export enum BillingPlanKey { + ENTERPRISE = 'ENTERPRISE', + PRO = 'PRO' +} + +export type BillingPlanOutput = { + __typename?: 'BillingPlanOutput'; + baseProduct: BillingProduct; + meteredProducts: Array; + otherLicensedProducts: Array; + planKey: BillingPlanKey; +}; + +export type BillingPriceLicensedDto = { + __typename?: 'BillingPriceLicensedDTO'; + priceUsageType: BillingUsageType; + recurringInterval: SubscriptionInterval; + stripePriceId: Scalars['String']; + unitAmount: Scalars['Float']; +}; + +export type BillingPriceMeteredDto = { + __typename?: 'BillingPriceMeteredDTO'; + priceUsageType: BillingUsageType; + recurringInterval: SubscriptionInterval; + stripePriceId: Scalars['String']; + tiers?: Maybe>; + tiersMode?: Maybe; +}; + +export type BillingPriceTierDto = { + __typename?: 'BillingPriceTierDTO'; + flatAmount?: Maybe; + unitAmount?: Maybe; + upTo?: Maybe; +}; + +/** The different billing price tiers modes */ +export enum BillingPriceTiersMode { + GRADUATED = 'GRADUATED', + VOLUME = 'VOLUME' +} + +export type BillingPriceUnionDto = BillingPriceLicensedDto | BillingPriceMeteredDto; + +export type BillingProduct = { + __typename?: 'BillingProduct'; + description: Scalars['String']; + images?: Maybe>; + metadata: BillingProductMetadata; + name: Scalars['String']; + prices?: Maybe>; +}; + +/** The different billing products available */ +export enum BillingProductKey { + BASE_PRODUCT = 'BASE_PRODUCT', + WORKFLOW_NODE_EXECUTION = 'WORKFLOW_NODE_EXECUTION' +} + +export type BillingProductMetadata = { + __typename?: 'BillingProductMetadata'; + planKey: BillingPlanKey; + priceUsageBased: BillingUsageType; + productKey: BillingProductKey; +}; + +export type BillingSessionOutput = { + __typename?: 'BillingSessionOutput'; + url?: Maybe; +}; + +export type BillingSubscription = { + __typename?: 'BillingSubscription'; + billingSubscriptionItems?: Maybe>; + id: Scalars['UUID']; + interval?: Maybe; + metadata: Scalars['JSON']; + status: SubscriptionStatus; +}; + +export type BillingSubscriptionItem = { + __typename?: 'BillingSubscriptionItem'; + billingProduct?: Maybe; + hasReachedCurrentPeriodCap: Scalars['Boolean']; + id: Scalars['UUID']; + quantity?: Maybe; +}; + +export type BillingTrialPeriodDto = { + __typename?: 'BillingTrialPeriodDTO'; + duration: Scalars['Float']; + isCreditCardRequired: Scalars['Boolean']; +}; + +export type BillingUpdateOutput = { + __typename?: 'BillingUpdateOutput'; + /** Boolean that confirms query was successful */ + success: Scalars['Boolean']; +}; + +export enum BillingUsageType { + LICENSED = 'LICENSED', + METERED = 'METERED' +} + +export type BooleanFieldComparison = { + is?: InputMaybe; + isNot?: InputMaybe; +}; + +export enum CalendarChannelVisibility { + METADATA = 'METADATA', + SHARE_EVERYTHING = 'SHARE_EVERYTHING' +} + +export type Captcha = { + __typename?: 'Captcha'; + provider?: Maybe; + siteKey?: Maybe; +}; + +export enum CaptchaDriverType { + GOOGLE_RECAPTCHA = 'GOOGLE_RECAPTCHA', + TURNSTILE = 'TURNSTILE' +} + +export type CheckUserExistOutput = { + __typename?: 'CheckUserExistOutput'; + availableWorkspacesCount: Scalars['Float']; + exists: Scalars['Boolean']; + isEmailVerified: Scalars['Boolean']; +}; + +export type ClientAiModelConfig = { + __typename?: 'ClientAIModelConfig'; + inputCostPer1kTokensInCredits: Scalars['Float']; + label: Scalars['String']; + modelId: Scalars['String']; + outputCostPer1kTokensInCredits: Scalars['Float']; + provider: ModelProvider; +}; + +export type ComputeStepOutputSchemaInput = { + /** Step JSON format */ + step: Scalars['JSON']; +}; + +export enum ConfigSource { + DATABASE = 'DATABASE', + DEFAULT = 'DEFAULT', + ENVIRONMENT = 'ENVIRONMENT' +} + +export type ConfigVariable = { + __typename?: 'ConfigVariable'; + description: Scalars['String']; + isEnvOnly: Scalars['Boolean']; + isSensitive: Scalars['Boolean']; + name: Scalars['String']; + options?: Maybe; + source: ConfigSource; + type: ConfigVariableType; + value?: Maybe; +}; + +export enum ConfigVariableType { + ARRAY = 'ARRAY', + BOOLEAN = 'BOOLEAN', + ENUM = 'ENUM', + NUMBER = 'NUMBER', + STRING = 'STRING' +} + +export enum ConfigVariablesGroup { + AnalyticsConfig = 'AnalyticsConfig', + BillingConfig = 'BillingConfig', + CaptchaConfig = 'CaptchaConfig', + CloudflareConfig = 'CloudflareConfig', + EmailSettings = 'EmailSettings', + ExceptionHandler = 'ExceptionHandler', + GoogleAuth = 'GoogleAuth', + LLM = 'LLM', + Logging = 'Logging', + Metering = 'Metering', + MicrosoftAuth = 'MicrosoftAuth', + Other = 'Other', + RateLimiting = 'RateLimiting', + SSL = 'SSL', + ServerConfig = 'ServerConfig', + ServerlessConfig = 'ServerlessConfig', + StorageConfig = 'StorageConfig', + SupportChatConfig = 'SupportChatConfig', + TokensDuration = 'TokensDuration' +} + +export type ConfigVariablesGroupData = { + __typename?: 'ConfigVariablesGroupData'; + description: Scalars['String']; + isHiddenOnLoad: Scalars['Boolean']; + name: ConfigVariablesGroup; + variables: Array; +}; + +export type ConfigVariablesOutput = { + __typename?: 'ConfigVariablesOutput'; + groups: Array; +}; + +export type ConnectedImapSmtpCaldavAccount = { + __typename?: 'ConnectedImapSmtpCaldavAccount'; + accountOwnerId: Scalars['String']; + connectionParameters?: Maybe; + handle: Scalars['String']; + id: Scalars['String']; + provider: Scalars['String']; +}; + +export type ConnectionParameters = { + host: Scalars['String']; + password: Scalars['String']; + port: Scalars['Float']; + secure?: InputMaybe; + username: Scalars['String']; +}; + +export type ConnectionParametersOutput = { + __typename?: 'ConnectionParametersOutput'; + host: Scalars['String']; + password: Scalars['String']; + port: Scalars['Float']; + secure?: Maybe; + username: Scalars['String']; +}; + +export type CreateAgentInput = { + description?: InputMaybe; + modelId: Scalars['String']; + name: Scalars['String']; + prompt: Scalars['String']; + responseFormat?: InputMaybe; +}; + +export type CreateApprovedAccessDomainInput = { + domain: Scalars['String']; + email: Scalars['String']; +}; + +export type CreateDraftFromWorkflowVersionInput = { + /** Workflow ID */ + workflowId: Scalars['String']; + /** Workflow version ID */ + workflowVersionIdToCopy: Scalars['String']; +}; + +export type CreateFieldInput = { + defaultValue?: InputMaybe; + description?: InputMaybe; + icon?: InputMaybe; + isActive?: InputMaybe; + isCustom?: InputMaybe; + isLabelSyncedWithName?: InputMaybe; + isNullable?: InputMaybe; + isRemoteCreation?: InputMaybe; + isSystem?: InputMaybe; + isUnique?: InputMaybe; + label: Scalars['String']; + name: Scalars['String']; + objectMetadataId: Scalars['String']; + options?: InputMaybe; + relationCreationPayload?: InputMaybe; + settings?: InputMaybe; + type: FieldMetadataType; +}; + +export type CreateOneFieldMetadataInput = { + /** The record to create */ + field: CreateFieldInput; +}; + +export type CreateRoleInput = { + canDestroyAllObjectRecords?: InputMaybe; + canReadAllObjectRecords?: InputMaybe; + canSoftDeleteAllObjectRecords?: InputMaybe; + canUpdateAllObjectRecords?: InputMaybe; + canUpdateAllSettings?: InputMaybe; + description?: InputMaybe; + icon?: InputMaybe; + id?: InputMaybe; + label: Scalars['String']; +}; + +export type CreateServerlessFunctionInput = { + description?: InputMaybe; + name: Scalars['String']; + timeoutSeconds?: InputMaybe; +}; + +export type CreateWorkflowVersionStepInput = { + /** Next step ID */ + nextStepId?: InputMaybe; + /** Parent step ID */ + parentStepId?: InputMaybe; + /** New step type */ + stepType: Scalars['String']; + /** Workflow version ID */ + workflowVersionId: Scalars['String']; +}; + +export type CursorPaging = { + /** Paginate after opaque cursor */ + after?: InputMaybe; + /** Paginate before opaque cursor */ + before?: InputMaybe; + /** Paginate first */ + first?: InputMaybe; + /** Paginate last */ + last?: InputMaybe; +}; + +export type CustomDomainRecord = { + __typename?: 'CustomDomainRecord'; + key: Scalars['String']; + status: Scalars['String']; + type: Scalars['String']; + validationType: Scalars['String']; + value: Scalars['String']; +}; + +export type CustomDomainValidRecords = { + __typename?: 'CustomDomainValidRecords'; + customDomain: Scalars['String']; + id: Scalars['String']; + records: Array; +}; + +/** Database Event Action */ +export enum DatabaseEventAction { + CREATED = 'CREATED', + DELETED = 'DELETED', + DESTROYED = 'DESTROYED', + RESTORED = 'RESTORED', + UPDATED = 'UPDATED' +} + +export type DateFilter = { + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + is?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + neq?: InputMaybe; +}; + +export type DeleteApprovedAccessDomainInput = { + id: Scalars['String']; +}; + +export type DeleteOneFieldInput = { + /** The id of the field to delete. */ + id: Scalars['UUID']; +}; + +export type DeleteOneObjectInput = { + /** The id of the record to delete. */ + id: Scalars['UUID']; +}; + +export type DeleteSsoInput = { + identityProviderId: Scalars['String']; +}; + +export type DeleteSsoOutput = { + __typename?: 'DeleteSsoOutput'; + identityProviderId: Scalars['String']; +}; + +export type DeleteWorkflowVersionStepInput = { + /** Step to delete ID */ + stepId: Scalars['String']; + /** Workflow version ID */ + workflowVersionId: Scalars['String']; +}; + +export type DeletedWorkspaceMember = { + __typename?: 'DeletedWorkspaceMember'; + avatarUrl?: Maybe; + id: Scalars['UUID']; + name: FullName; + userEmail: Scalars['String']; + userWorkspaceId?: Maybe; +}; + +/** Schema update on a table */ +export enum DistantTableUpdate { + COLUMNS_ADDED = 'COLUMNS_ADDED', + COLUMNS_DELETED = 'COLUMNS_DELETED', + COLUMNS_TYPE_CHANGED = 'COLUMNS_TYPE_CHANGED', + TABLE_DELETED = 'TABLE_DELETED' +} + +export type EditSsoInput = { + id: Scalars['String']; + status: SsoIdentityProviderStatus; +}; + +export type EditSsoOutput = { + __typename?: 'EditSsoOutput'; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; + status: SsoIdentityProviderStatus; + type: IdentityProviderType; +}; + +export type EmailPasswordResetLink = { + __typename?: 'EmailPasswordResetLink'; + /** Boolean that confirms query was dispatched */ + success: Scalars['Boolean']; +}; + +export type ExecuteServerlessFunctionInput = { + /** Id of the serverless function to execute */ + id: Scalars['UUID']; + /** Payload in JSON format */ + payload: Scalars['JSON']; + /** Version of the serverless function to execute */ + version?: Scalars['String']; +}; + +export type FeatureFlag = { + __typename?: 'FeatureFlag'; + id: Scalars['UUID']; + key: FeatureFlagKey; + value: Scalars['Boolean']; + workspaceId: Scalars['String']; +}; + +export type FeatureFlagDto = { + __typename?: 'FeatureFlagDTO'; + key: FeatureFlagKey; + value: Scalars['Boolean']; +}; + +export enum FeatureFlagKey { + IS_AIRTABLE_INTEGRATION_ENABLED = 'IS_AIRTABLE_INTEGRATION_ENABLED', + IS_AI_ENABLED = 'IS_AI_ENABLED', + IS_IMAP_ENABLED = 'IS_IMAP_ENABLED', + IS_JSON_FILTER_ENABLED = 'IS_JSON_FILTER_ENABLED', + IS_POSTGRESQL_INTEGRATION_ENABLED = 'IS_POSTGRESQL_INTEGRATION_ENABLED', + IS_STRIPE_INTEGRATION_ENABLED = 'IS_STRIPE_INTEGRATION_ENABLED', + IS_UNIQUE_INDEXES_ENABLED = 'IS_UNIQUE_INDEXES_ENABLED', + IS_WORKFLOW_FILTERING_ENABLED = 'IS_WORKFLOW_FILTERING_ENABLED' +} + +export type Field = { + __typename?: 'Field'; + createdAt: Scalars['DateTime']; + defaultValue?: Maybe; + description?: Maybe; + icon?: Maybe; + id: Scalars['UUID']; + isActive?: Maybe; + isCustom?: Maybe; + isLabelSyncedWithName?: Maybe; + isNullable?: Maybe; + isSystem?: Maybe; + isUnique?: Maybe; + label: Scalars['String']; + name: Scalars['String']; + object?: Maybe; + options?: Maybe; + relation?: Maybe; + settings?: Maybe; + standardOverrides?: Maybe; + type: FieldMetadataType; + updatedAt: Scalars['DateTime']; +}; + +export type FieldConnection = { + __typename?: 'FieldConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + +export type FieldEdge = { + __typename?: 'FieldEdge'; + /** Cursor for this node. */ + cursor: Scalars['ConnectionCursor']; + /** The node containing the Field */ + node: Field; +}; + +export type FieldFilter = { + and?: InputMaybe>; + id?: InputMaybe; + isActive?: InputMaybe; + isCustom?: InputMaybe; + isSystem?: InputMaybe; + or?: InputMaybe>; +}; + +/** Type of the field */ +export enum FieldMetadataType { + ACTOR = 'ACTOR', + ADDRESS = 'ADDRESS', + ARRAY = 'ARRAY', + BOOLEAN = 'BOOLEAN', + CURRENCY = 'CURRENCY', + DATE = 'DATE', + DATE_TIME = 'DATE_TIME', + EMAILS = 'EMAILS', + FULL_NAME = 'FULL_NAME', + LINKS = 'LINKS', + MULTI_SELECT = 'MULTI_SELECT', + NUMBER = 'NUMBER', + NUMERIC = 'NUMERIC', + PHONES = 'PHONES', + POSITION = 'POSITION', + RATING = 'RATING', + RAW_JSON = 'RAW_JSON', + RELATION = 'RELATION', + RICH_TEXT = 'RICH_TEXT', + RICH_TEXT_V2 = 'RICH_TEXT_V2', + SELECT = 'SELECT', + TEXT = 'TEXT', + TS_VECTOR = 'TS_VECTOR', + UUID = 'UUID' +} + +export enum FileFolder { + Attachment = 'Attachment', + PersonPicture = 'PersonPicture', + ProfilePicture = 'ProfilePicture', + ServerlessFunction = 'ServerlessFunction', + WorkspaceLogo = 'WorkspaceLogo' +} + +export enum FilterIs { + NotNull = 'NotNull', + Null = 'Null' +} + +export type FindAvailableSsoidpOutput = { + __typename?: 'FindAvailableSSOIDPOutput'; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; + status: SsoIdentityProviderStatus; + type: IdentityProviderType; + workspace: WorkspaceNameAndId; +}; + +export type FullName = { + __typename?: 'FullName'; + firstName: Scalars['String']; + lastName: Scalars['String']; +}; + +export type GetAuthorizationUrlForSsoInput = { + identityProviderId: Scalars['String']; + workspaceInviteHash?: InputMaybe; +}; + +export type GetAuthorizationUrlForSsoOutput = { + __typename?: 'GetAuthorizationUrlForSSOOutput'; + authorizationURL: Scalars['String']; + id: Scalars['String']; + type: Scalars['String']; +}; + +export type GetLoginTokenFromEmailVerificationTokenOutput = { + __typename?: 'GetLoginTokenFromEmailVerificationTokenOutput'; + loginToken: AuthToken; + workspaceUrls: WorkspaceUrls; +}; + +export type GetServerlessFunctionSourceCodeInput = { + /** The id of the function. */ + id: Scalars['ID']; + /** The version of the function */ + version?: Scalars['String']; +}; + +export enum HealthIndicatorId { + app = 'app', + connectedAccount = 'connectedAccount', + database = 'database', + redis = 'redis', + worker = 'worker' +} + +export enum IdentityProviderType { + OIDC = 'OIDC', + SAML = 'SAML' +} + +export type ImapSmtpCaldavConnectionParameters = { + __typename?: 'ImapSmtpCaldavConnectionParameters'; + CALDAV?: Maybe; + IMAP?: Maybe; + SMTP?: Maybe; +}; + +export type ImapSmtpCaldavConnectionSuccess = { + __typename?: 'ImapSmtpCaldavConnectionSuccess'; + success: Scalars['Boolean']; +}; + +export type ImpersonateOutput = { + __typename?: 'ImpersonateOutput'; + loginToken: AuthToken; + workspace: WorkspaceUrlsAndId; +}; + +export type Index = { + __typename?: 'Index'; + createdAt: Scalars['DateTime']; + id: Scalars['UUID']; + indexFieldMetadataList: Array; + indexFieldMetadatas: IndexIndexFieldMetadatasConnection; + indexType: IndexType; + indexWhereClause?: Maybe; + isCustom?: Maybe; + isUnique: Scalars['Boolean']; + name: Scalars['String']; + objectMetadata: IndexObjectMetadataConnection; + updatedAt: Scalars['DateTime']; +}; + + +export type IndexIndexFieldMetadatasArgs = { + filter?: IndexFieldFilter; + paging?: CursorPaging; +}; + + +export type IndexObjectMetadataArgs = { + filter?: ObjectFilter; + paging?: CursorPaging; +}; + +export type IndexConnection = { + __typename?: 'IndexConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + +export type IndexEdge = { + __typename?: 'IndexEdge'; + /** Cursor for this node. */ + cursor: Scalars['ConnectionCursor']; + /** The node containing the Index */ + node: Index; +}; + +export type IndexField = { + __typename?: 'IndexField'; + createdAt: Scalars['DateTime']; + fieldMetadataId: Scalars['UUID']; + id: Scalars['UUID']; + order: Scalars['Float']; + updatedAt: Scalars['DateTime']; +}; + +export type IndexFieldEdge = { + __typename?: 'IndexFieldEdge'; + /** Cursor for this node. */ + cursor: Scalars['ConnectionCursor']; + /** The node containing the IndexField */ + node: IndexField; +}; + +export type IndexFieldFilter = { + and?: InputMaybe>; + fieldMetadataId?: InputMaybe; + id?: InputMaybe; + or?: InputMaybe>; +}; + +export type IndexFilter = { + and?: InputMaybe>; + id?: InputMaybe; + isCustom?: InputMaybe; + or?: InputMaybe>; +}; + +export type IndexIndexFieldMetadatasConnection = { + __typename?: 'IndexIndexFieldMetadatasConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + +export type IndexObjectMetadataConnection = { + __typename?: 'IndexObjectMetadataConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + +/** Type of the index */ +export enum IndexType { + BTREE = 'BTREE', + GIN = 'GIN' +} + +export type InvalidatePassword = { + __typename?: 'InvalidatePassword'; + /** Boolean that confirms query was dispatched */ + success: Scalars['Boolean']; +}; + +export type LinkMetadata = { + __typename?: 'LinkMetadata'; + label: Scalars['String']; + url: Scalars['String']; +}; + +export type LinksMetadata = { + __typename?: 'LinksMetadata'; + primaryLinkLabel: Scalars['String']; + primaryLinkUrl: Scalars['String']; + secondaryLinks?: Maybe>; +}; + +export type LoginToken = { + __typename?: 'LoginToken'; + loginToken: AuthToken; +}; + +export enum MessageChannelVisibility { + METADATA = 'METADATA', + SHARE_EVERYTHING = 'SHARE_EVERYTHING', + SUBJECT = 'SUBJECT' +} + +export enum ModelProvider { + ANTHROPIC = 'ANTHROPIC', + OPENAI = 'OPENAI' +} + +export type Mutation = { + __typename?: 'Mutation'; + activateWorkflowVersion: Scalars['Boolean']; + activateWorkspace: Workspace; + assignRoleToAgent: Scalars['Boolean']; + authorizeApp: AuthorizeApp; + checkCustomDomainValidRecords?: Maybe; + checkoutSession: BillingSessionOutput; + computeStepOutputSchema: Scalars['JSON']; + createApprovedAccessDomain: ApprovedAccessDomain; + createDatabaseConfigVariable: Scalars['Boolean']; + createDraftFromWorkflowVersion: WorkflowVersion; + createOIDCIdentityProvider: SetupSsoOutput; + createObjectEvent: Analytics; + createOneAgent: Agent; + createOneAppToken: AppToken; + createOneField: Field; + createOneObject: Object; + createOneRole: Role; + createOneServerlessFunction: ServerlessFunction; + createSAMLIdentityProvider: SetupSsoOutput; + createWorkflowVersionStep: WorkflowAction; + deactivateWorkflowVersion: Scalars['Boolean']; + deleteApprovedAccessDomain: Scalars['Boolean']; + deleteCurrentWorkspace: Workspace; + deleteDatabaseConfigVariable: Scalars['Boolean']; + deleteOneAgent: Agent; + deleteOneField: Field; + deleteOneObject: Object; + deleteOneRole: Scalars['String']; + deleteOneServerlessFunction: ServerlessFunction; + deleteSSOIdentityProvider: DeleteSsoOutput; + deleteUser: User; + deleteWorkflowVersionStep: WorkflowAction; + deleteWorkspaceInvitation: Scalars['String']; + disablePostgresProxy: PostgresCredentials; + editSSOIdentityProvider: EditSsoOutput; + emailPasswordResetLink: EmailPasswordResetLink; + enablePostgresProxy: PostgresCredentials; + endSubscriptionTrialPeriod: BillingEndTrialPeriodOutput; + executeOneServerlessFunction: ServerlessFunctionExecutionResult; + generateApiKeyToken: ApiKeyToken; + generateTransientToken: TransientToken; + getAuthTokensFromLoginToken: AuthTokens; + getAuthorizationUrlForSSO: GetAuthorizationUrlForSsoOutput; + getLoginTokenFromCredentials: LoginToken; + getLoginTokenFromEmailVerificationToken: GetLoginTokenFromEmailVerificationTokenOutput; + impersonate: ImpersonateOutput; + publishServerlessFunction: ServerlessFunction; + removeRoleFromAgent: Scalars['Boolean']; + renewToken: AuthTokens; + resendEmailVerificationToken: ResendEmailVerificationTokenOutput; + resendWorkspaceInvitation: SendInvitationsOutput; + runWorkflowVersion: WorkflowRun; + saveImapSmtpCaldav: ImapSmtpCaldavConnectionSuccess; + sendInvitations: SendInvitationsOutput; + signIn: AvailableWorkspacesAndAccessTokensOutput; + signUp: AvailableWorkspacesAndAccessTokensOutput; + signUpInNewWorkspace: SignUpOutput; + signUpInWorkspace: SignUpOutput; + skipBookOnboardingStep: OnboardingStepSuccess; + skipSyncEmailOnboardingStep: OnboardingStepSuccess; + submitFormStep: Scalars['Boolean']; + switchToEnterprisePlan: BillingUpdateOutput; + switchToYearlyInterval: BillingUpdateOutput; + trackAnalytics: Analytics; + updateDatabaseConfigVariable: Scalars['Boolean']; + updateLabPublicFeatureFlag: FeatureFlagDto; + updateOneAgent: Agent; + updateOneField: Field; + updateOneObject: Object; + updateOneRole: Role; + updateOneServerlessFunction: ServerlessFunction; + updatePasswordViaResetToken: InvalidatePassword; + updateWorkflowRunStep: WorkflowAction; + updateWorkflowVersionStep: WorkflowAction; + updateWorkspace: Workspace; + updateWorkspaceFeatureFlag: Scalars['Boolean']; + updateWorkspaceMemberRole: WorkspaceMember; + uploadFile: SignedFileDto; + uploadImage: SignedFileDto; + uploadProfilePicture: SignedFileDto; + uploadWorkspaceLogo: SignedFileDto; + upsertObjectPermissions: Array; + upsertSettingPermissions: Array; + userLookupAdminPanel: UserLookup; + validateApprovedAccessDomain: ApprovedAccessDomain; +}; + + +export type MutationActivateWorkflowVersionArgs = { + workflowVersionId: Scalars['String']; +}; + + +export type MutationActivateWorkspaceArgs = { + data: ActivateWorkspaceInput; +}; + + +export type MutationAssignRoleToAgentArgs = { + agentId: Scalars['UUID']; + roleId: Scalars['UUID']; +}; + + +export type MutationAuthorizeAppArgs = { + clientId: Scalars['String']; + codeChallenge?: InputMaybe; + redirectUrl: Scalars['String']; +}; + + +export type MutationCheckoutSessionArgs = { + plan?: BillingPlanKey; + recurringInterval: SubscriptionInterval; + requirePaymentMethod?: Scalars['Boolean']; + successUrlPath?: InputMaybe; +}; + + +export type MutationComputeStepOutputSchemaArgs = { + input: ComputeStepOutputSchemaInput; +}; + + +export type MutationCreateApprovedAccessDomainArgs = { + input: CreateApprovedAccessDomainInput; +}; + + +export type MutationCreateDatabaseConfigVariableArgs = { + key: Scalars['String']; + value: Scalars['JSON']; +}; + + +export type MutationCreateDraftFromWorkflowVersionArgs = { + input: CreateDraftFromWorkflowVersionInput; +}; + + +export type MutationCreateOidcIdentityProviderArgs = { + input: SetupOidcSsoInput; +}; + + +export type MutationCreateObjectEventArgs = { + event: Scalars['String']; + objectMetadataId: Scalars['String']; + properties?: InputMaybe; + recordId: Scalars['String']; +}; + + +export type MutationCreateOneAgentArgs = { + input: CreateAgentInput; +}; + + +export type MutationCreateOneFieldArgs = { + input: CreateOneFieldMetadataInput; +}; + + +export type MutationCreateOneRoleArgs = { + createRoleInput: CreateRoleInput; +}; + + +export type MutationCreateOneServerlessFunctionArgs = { + input: CreateServerlessFunctionInput; +}; + + +export type MutationCreateSamlIdentityProviderArgs = { + input: SetupSamlSsoInput; +}; + + +export type MutationCreateWorkflowVersionStepArgs = { + input: CreateWorkflowVersionStepInput; +}; + + +export type MutationDeactivateWorkflowVersionArgs = { + workflowVersionId: Scalars['String']; +}; + + +export type MutationDeleteApprovedAccessDomainArgs = { + input: DeleteApprovedAccessDomainInput; +}; + + +export type MutationDeleteDatabaseConfigVariableArgs = { + key: Scalars['String']; +}; + + +export type MutationDeleteOneAgentArgs = { + input: AgentIdInput; +}; + + +export type MutationDeleteOneFieldArgs = { + input: DeleteOneFieldInput; +}; + + +export type MutationDeleteOneObjectArgs = { + input: DeleteOneObjectInput; +}; + + +export type MutationDeleteOneRoleArgs = { + roleId: Scalars['String']; +}; + + +export type MutationDeleteOneServerlessFunctionArgs = { + input: ServerlessFunctionIdInput; +}; + + +export type MutationDeleteSsoIdentityProviderArgs = { + input: DeleteSsoInput; +}; + + +export type MutationDeleteWorkflowVersionStepArgs = { + input: DeleteWorkflowVersionStepInput; +}; + + +export type MutationDeleteWorkspaceInvitationArgs = { + appTokenId: Scalars['String']; +}; + + +export type MutationEditSsoIdentityProviderArgs = { + input: EditSsoInput; +}; + + +export type MutationEmailPasswordResetLinkArgs = { + email: Scalars['String']; + workspaceId: Scalars['String']; +}; + + +export type MutationExecuteOneServerlessFunctionArgs = { + input: ExecuteServerlessFunctionInput; +}; + + +export type MutationGenerateApiKeyTokenArgs = { + apiKeyId: Scalars['String']; + expiresAt: Scalars['String']; +}; + + +export type MutationGetAuthTokensFromLoginTokenArgs = { + loginToken: Scalars['String']; + origin: Scalars['String']; +}; + + +export type MutationGetAuthorizationUrlForSsoArgs = { + input: GetAuthorizationUrlForSsoInput; +}; + + +export type MutationGetLoginTokenFromCredentialsArgs = { + captchaToken?: InputMaybe; + email: Scalars['String']; + origin: Scalars['String']; + password: Scalars['String']; +}; + + +export type MutationGetLoginTokenFromEmailVerificationTokenArgs = { + captchaToken?: InputMaybe; + email: Scalars['String']; + emailVerificationToken: Scalars['String']; + origin: Scalars['String']; +}; + + +export type MutationImpersonateArgs = { + userId: Scalars['String']; + workspaceId: Scalars['String']; +}; + + +export type MutationPublishServerlessFunctionArgs = { + input: PublishServerlessFunctionInput; +}; + + +export type MutationRemoveRoleFromAgentArgs = { + agentId: Scalars['UUID']; +}; + + +export type MutationRenewTokenArgs = { + appToken: Scalars['String']; +}; + + +export type MutationResendEmailVerificationTokenArgs = { + email: Scalars['String']; + origin: Scalars['String']; +}; + + +export type MutationResendWorkspaceInvitationArgs = { + appTokenId: Scalars['String']; +}; + + +export type MutationRunWorkflowVersionArgs = { + input: RunWorkflowVersionInput; +}; + + +export type MutationSaveImapSmtpCaldavArgs = { + accountOwnerId: Scalars['String']; + accountType: AccountType; + connectionParameters: ConnectionParameters; + handle: Scalars['String']; + id?: InputMaybe; +}; + + +export type MutationSendInvitationsArgs = { + emails: Array; +}; + + +export type MutationSignInArgs = { + captchaToken?: InputMaybe; + email: Scalars['String']; + password: Scalars['String']; +}; + + +export type MutationSignUpArgs = { + captchaToken?: InputMaybe; + email: Scalars['String']; + password: Scalars['String']; +}; + + +export type MutationSignUpInWorkspaceArgs = { + captchaToken?: InputMaybe; + email: Scalars['String']; + locale?: InputMaybe; + password: Scalars['String']; + verifyEmailNextPath?: InputMaybe; + workspaceId?: InputMaybe; + workspaceInviteHash?: InputMaybe; + workspacePersonalInviteToken?: InputMaybe; +}; + + +export type MutationSubmitFormStepArgs = { + input: SubmitFormStepInput; +}; + + +export type MutationTrackAnalyticsArgs = { + event?: InputMaybe; + name?: InputMaybe; + properties?: InputMaybe; + type: AnalyticsType; +}; + + +export type MutationUpdateDatabaseConfigVariableArgs = { + key: Scalars['String']; + value: Scalars['JSON']; +}; + + +export type MutationUpdateLabPublicFeatureFlagArgs = { + input: UpdateLabPublicFeatureFlagInput; +}; + + +export type MutationUpdateOneAgentArgs = { + input: UpdateAgentInput; +}; + + +export type MutationUpdateOneFieldArgs = { + input: UpdateOneFieldMetadataInput; +}; + + +export type MutationUpdateOneObjectArgs = { + input: UpdateOneObjectInput; +}; + + +export type MutationUpdateOneRoleArgs = { + updateRoleInput: UpdateRoleInput; +}; + + +export type MutationUpdateOneServerlessFunctionArgs = { + input: UpdateServerlessFunctionInput; +}; + + +export type MutationUpdatePasswordViaResetTokenArgs = { + newPassword: Scalars['String']; + passwordResetToken: Scalars['String']; +}; + + +export type MutationUpdateWorkflowRunStepArgs = { + input: UpdateWorkflowRunStepInput; +}; + + +export type MutationUpdateWorkflowVersionStepArgs = { + input: UpdateWorkflowVersionStepInput; +}; + + +export type MutationUpdateWorkspaceArgs = { + data: UpdateWorkspaceInput; +}; + + +export type MutationUpdateWorkspaceFeatureFlagArgs = { + featureFlag: Scalars['String']; + value: Scalars['Boolean']; + workspaceId: Scalars['String']; +}; + + +export type MutationUpdateWorkspaceMemberRoleArgs = { + roleId: Scalars['String']; + workspaceMemberId: Scalars['String']; +}; + + +export type MutationUploadFileArgs = { + file: Scalars['Upload']; + fileFolder?: InputMaybe; +}; + + +export type MutationUploadImageArgs = { + file: Scalars['Upload']; + fileFolder?: InputMaybe; +}; + + +export type MutationUploadProfilePictureArgs = { + file: Scalars['Upload']; +}; + + +export type MutationUploadWorkspaceLogoArgs = { + file: Scalars['Upload']; +}; + + +export type MutationUpsertObjectPermissionsArgs = { + upsertObjectPermissionsInput: UpsertObjectPermissionsInput; +}; + + +export type MutationUpsertSettingPermissionsArgs = { + upsertSettingPermissionsInput: UpsertSettingPermissionsInput; +}; + + +export type MutationUserLookupAdminPanelArgs = { + userIdentifier: Scalars['String']; +}; + + +export type MutationValidateApprovedAccessDomainArgs = { + input: ValidateApprovedAccessDomainInput; +}; + +export type Object = { + __typename?: 'Object'; + createdAt: Scalars['DateTime']; + dataSourceId: Scalars['String']; + description?: Maybe; + duplicateCriteria?: Maybe>>; + fields: ObjectFieldsConnection; + fieldsList: Array; + icon?: Maybe; + id: Scalars['UUID']; + imageIdentifierFieldMetadataId?: Maybe; + indexMetadataList: Array; + indexMetadatas: ObjectIndexMetadatasConnection; + isActive: Scalars['Boolean']; + isCustom: Scalars['Boolean']; + isLabelSyncedWithName: Scalars['Boolean']; + isRemote: Scalars['Boolean']; + isSearchable: Scalars['Boolean']; + isSystem: Scalars['Boolean']; + labelIdentifierFieldMetadataId?: Maybe; + labelPlural: Scalars['String']; + labelSingular: Scalars['String']; + namePlural: Scalars['String']; + nameSingular: Scalars['String']; + shortcut?: Maybe; + standardOverrides?: Maybe; + updatedAt: Scalars['DateTime']; +}; + + +export type ObjectFieldsArgs = { + filter?: FieldFilter; + paging?: CursorPaging; +}; + + +export type ObjectIndexMetadatasArgs = { + filter?: IndexFilter; + paging?: CursorPaging; +}; + +export type ObjectConnection = { + __typename?: 'ObjectConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + +export type ObjectEdge = { + __typename?: 'ObjectEdge'; + /** Cursor for this node. */ + cursor: Scalars['ConnectionCursor']; + /** The node containing the Object */ + node: Object; +}; + +export type ObjectFieldsConnection = { + __typename?: 'ObjectFieldsConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + +export type ObjectFilter = { + and?: InputMaybe>; + id?: InputMaybe; + isActive?: InputMaybe; + isCustom?: InputMaybe; + isRemote?: InputMaybe; + isSearchable?: InputMaybe; + isSystem?: InputMaybe; + or?: InputMaybe>; +}; + +export type ObjectIndexMetadatasConnection = { + __typename?: 'ObjectIndexMetadatasConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + +export type ObjectPermission = { + __typename?: 'ObjectPermission'; + canDestroyObjectRecords?: Maybe; + canReadObjectRecords?: Maybe; + canSoftDeleteObjectRecords?: Maybe; + canUpdateObjectRecords?: Maybe; + objectMetadataId: Scalars['String']; +}; + +export type ObjectPermissionInput = { + canDestroyObjectRecords?: InputMaybe; + canReadObjectRecords?: InputMaybe; + canSoftDeleteObjectRecords?: InputMaybe; + canUpdateObjectRecords?: InputMaybe; + objectMetadataId: Scalars['String']; +}; + +export type ObjectRecordFilterInput = { + and?: InputMaybe>; + createdAt?: InputMaybe; + deletedAt?: InputMaybe; + id?: InputMaybe; + not?: InputMaybe; + or?: InputMaybe>; + updatedAt?: InputMaybe; +}; + +export type ObjectStandardOverrides = { + __typename?: 'ObjectStandardOverrides'; + description?: Maybe; + icon?: Maybe; + labelPlural?: Maybe; + labelSingular?: Maybe; + translations?: Maybe; +}; + +export type OnDbEventDto = { + __typename?: 'OnDbEventDTO'; + action: DatabaseEventAction; + eventDate: Scalars['DateTime']; + objectNameSingular: Scalars['String']; + record: Scalars['JSON']; + updatedFields?: Maybe>; +}; + +export type OnDbEventInput = { + action?: InputMaybe; + objectNameSingular?: InputMaybe; + recordId?: InputMaybe; +}; + +/** Onboarding status */ +export enum OnboardingStatus { + BOOK_ONBOARDING = 'BOOK_ONBOARDING', + COMPLETED = 'COMPLETED', + INVITE_TEAM = 'INVITE_TEAM', + PLAN_REQUIRED = 'PLAN_REQUIRED', + PROFILE_CREATION = 'PROFILE_CREATION', + SYNC_EMAIL = 'SYNC_EMAIL', + WORKSPACE_ACTIVATION = 'WORKSPACE_ACTIVATION' +} + +export type OnboardingStepSuccess = { + __typename?: 'OnboardingStepSuccess'; + /** Boolean that confirms query was dispatched */ + success: Scalars['Boolean']; +}; + +export type PageInfo = { + __typename?: 'PageInfo'; + /** The cursor of the last returned record. */ + endCursor?: Maybe; + /** true if paging forward and there are more records. */ + hasNextPage?: Maybe; + /** true if paging backwards and there are more records. */ + hasPreviousPage?: Maybe; + /** The cursor of the first returned record. */ + startCursor?: Maybe; +}; + +export enum PermissionsOnAllObjectRecords { + DESTROY_ALL_OBJECT_RECORDS = 'DESTROY_ALL_OBJECT_RECORDS', + READ_ALL_OBJECT_RECORDS = 'READ_ALL_OBJECT_RECORDS', + SOFT_DELETE_ALL_OBJECT_RECORDS = 'SOFT_DELETE_ALL_OBJECT_RECORDS', + UPDATE_ALL_OBJECT_RECORDS = 'UPDATE_ALL_OBJECT_RECORDS' +} + +export type PostgresCredentials = { + __typename?: 'PostgresCredentials'; + id: Scalars['UUID']; + password: Scalars['String']; + user: Scalars['String']; + workspaceId: Scalars['String']; +}; + +export type PublicFeatureFlag = { + __typename?: 'PublicFeatureFlag'; + key: FeatureFlagKey; + metadata: PublicFeatureFlagMetadata; +}; + +export type PublicFeatureFlagMetadata = { + __typename?: 'PublicFeatureFlagMetadata'; + description: Scalars['String']; + imagePath: Scalars['String']; + label: Scalars['String']; +}; + +export type PublicWorkspaceDataOutput = { + __typename?: 'PublicWorkspaceDataOutput'; + authProviders: AuthProviders; + displayName?: Maybe; + id: Scalars['String']; + logo?: Maybe; + workspaceUrls: WorkspaceUrls; +}; + +export type PublishServerlessFunctionInput = { + /** The id of the function. */ + id: Scalars['ID']; +}; + +export type Query = { + __typename?: 'Query'; + billingPortalSession: BillingSessionOutput; + checkUserExists: CheckUserExistOutput; + checkWorkspaceInviteHashIsValid: WorkspaceInviteHashValid; + currentUser: User; + currentWorkspace: Workspace; + field: Field; + fields: FieldConnection; + findManyAgents: Array; + findManyServerlessFunctions: Array; + findOneAgent: Agent; + findOneServerlessFunction: ServerlessFunction; + findWorkspaceFromInviteHash: Workspace; + findWorkspaceInvitations: Array; + getApprovedAccessDomains: Array; + getAvailablePackages: Scalars['JSON']; + getConfigVariablesGrouped: ConfigVariablesOutput; + getConnectedImapSmtpCaldavAccount: ConnectedImapSmtpCaldavAccount; + getDatabaseConfigVariable: ConfigVariable; + getIndicatorHealthStatus: AdminPanelHealthServiceData; + getMeteredProductsUsage: Array; + getPostgresCredentials?: Maybe; + getPublicWorkspaceDataByDomain: PublicWorkspaceDataOutput; + getQueueMetrics: QueueMetricsData; + getRoles: Array; + getSSOIdentityProviders: Array; + getServerlessFunctionSourceCode?: Maybe; + getSystemHealthStatus: SystemHealth; + getTimelineCalendarEventsFromCompanyId: TimelineCalendarEventsWithTotal; + getTimelineCalendarEventsFromPersonId: TimelineCalendarEventsWithTotal; + getTimelineThreadsFromCompanyId: TimelineThreadsWithTotal; + getTimelineThreadsFromPersonId: TimelineThreadsWithTotal; + index: Index; + indexMetadatas: IndexConnection; + object: Object; + objects: ObjectConnection; + plans: Array; + search: SearchResultConnection; + validatePasswordResetToken: ValidatePasswordResetToken; + versionInfo: VersionInfo; +}; + + +export type QueryBillingPortalSessionArgs = { + returnUrlPath?: InputMaybe; +}; + + +export type QueryCheckUserExistsArgs = { + captchaToken?: InputMaybe; + email: Scalars['String']; +}; + + +export type QueryCheckWorkspaceInviteHashIsValidArgs = { + inviteHash: Scalars['String']; +}; + + +export type QueryFindOneAgentArgs = { + input: AgentIdInput; +}; + + +export type QueryFindOneServerlessFunctionArgs = { + input: ServerlessFunctionIdInput; +}; + + +export type QueryFindWorkspaceFromInviteHashArgs = { + inviteHash: Scalars['String']; +}; + + +export type QueryGetAvailablePackagesArgs = { + input: ServerlessFunctionIdInput; +}; + + +export type QueryGetConnectedImapSmtpCaldavAccountArgs = { + id: Scalars['String']; +}; + + +export type QueryGetDatabaseConfigVariableArgs = { + key: Scalars['String']; +}; + + +export type QueryGetIndicatorHealthStatusArgs = { + indicatorId: HealthIndicatorId; +}; + + +export type QueryGetPublicWorkspaceDataByDomainArgs = { + origin?: InputMaybe; +}; + + +export type QueryGetQueueMetricsArgs = { + queueName: Scalars['String']; + timeRange?: InputMaybe; +}; + + +export type QueryGetServerlessFunctionSourceCodeArgs = { + input: GetServerlessFunctionSourceCodeInput; +}; + + +export type QueryGetTimelineCalendarEventsFromCompanyIdArgs = { + companyId: Scalars['UUID']; + page: Scalars['Int']; + pageSize: Scalars['Int']; +}; + + +export type QueryGetTimelineCalendarEventsFromPersonIdArgs = { + page: Scalars['Int']; + pageSize: Scalars['Int']; + personId: Scalars['UUID']; +}; + + +export type QueryGetTimelineThreadsFromCompanyIdArgs = { + companyId: Scalars['UUID']; + page: Scalars['Int']; + pageSize: Scalars['Int']; +}; + + +export type QueryGetTimelineThreadsFromPersonIdArgs = { + page: Scalars['Int']; + pageSize: Scalars['Int']; + personId: Scalars['UUID']; +}; + + +export type QuerySearchArgs = { + after?: InputMaybe; + excludedObjectNameSingulars?: InputMaybe>; + filter?: InputMaybe; + includedObjectNameSingulars?: InputMaybe>; + limit: Scalars['Int']; + searchInput: Scalars['String']; +}; + + +export type QueryValidatePasswordResetTokenArgs = { + passwordResetToken: Scalars['String']; +}; + +export type QueueMetricsData = { + __typename?: 'QueueMetricsData'; + data: Array; + details?: Maybe; + queueName: Scalars['String']; + timeRange: QueueMetricsTimeRange; + workers: Scalars['Float']; +}; + +export type QueueMetricsDataPoint = { + __typename?: 'QueueMetricsDataPoint'; + x: Scalars['Float']; + y: Scalars['Float']; +}; + +export type QueueMetricsSeries = { + __typename?: 'QueueMetricsSeries'; + data: Array; + id: Scalars['String']; +}; + +export enum QueueMetricsTimeRange { + FourHours = 'FourHours', + OneDay = 'OneDay', + OneHour = 'OneHour', + SevenDays = 'SevenDays', + TwelveHours = 'TwelveHours' +} + +export type Relation = { + __typename?: 'Relation'; + sourceFieldMetadata: Field; + sourceObjectMetadata: Object; + targetFieldMetadata: Field; + targetObjectMetadata: Object; + type: RelationType; +}; + +/** Relation type */ +export enum RelationType { + MANY_TO_ONE = 'MANY_TO_ONE', + ONE_TO_MANY = 'ONE_TO_MANY' +} + +export type RemoteServer = { + __typename?: 'RemoteServer'; + createdAt: Scalars['DateTime']; + foreignDataWrapperId: Scalars['ID']; + foreignDataWrapperOptions?: Maybe; + foreignDataWrapperType: Scalars['String']; + id: Scalars['ID']; + label: Scalars['String']; + schema?: Maybe; + updatedAt: Scalars['DateTime']; + userMappingOptions?: Maybe; +}; + +export type RemoteTable = { + __typename?: 'RemoteTable'; + id?: Maybe; + name: Scalars['String']; + schema?: Maybe; + schemaPendingUpdates?: Maybe>; + status: RemoteTableStatus; +}; + +/** Status of the table */ +export enum RemoteTableStatus { + NOT_SYNCED = 'NOT_SYNCED', + SYNCED = 'SYNCED' +} + +export type ResendEmailVerificationTokenOutput = { + __typename?: 'ResendEmailVerificationTokenOutput'; + success: Scalars['Boolean']; +}; + +export type Role = { + __typename?: 'Role'; + canDestroyAllObjectRecords: Scalars['Boolean']; + canReadAllObjectRecords: Scalars['Boolean']; + canSoftDeleteAllObjectRecords: Scalars['Boolean']; + canUpdateAllObjectRecords: Scalars['Boolean']; + canUpdateAllSettings: Scalars['Boolean']; + description?: Maybe; + icon?: Maybe; + id: Scalars['String']; + isEditable: Scalars['Boolean']; + label: Scalars['String']; + objectPermissions?: Maybe>; + settingPermissions?: Maybe>; + workspaceMembers: Array; +}; + +export type RunWorkflowVersionInput = { + /** Execution result in JSON format */ + payload?: InputMaybe; + /** Workflow run ID */ + workflowRunId?: InputMaybe; + /** Workflow version ID */ + workflowVersionId: Scalars['String']; +}; + +export type SsoConnection = { + __typename?: 'SSOConnection'; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; + status: SsoIdentityProviderStatus; + type: IdentityProviderType; +}; + +export type SsoIdentityProvider = { + __typename?: 'SSOIdentityProvider'; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; + status: SsoIdentityProviderStatus; + type: IdentityProviderType; +}; + +export enum SsoIdentityProviderStatus { + Active = 'Active', + Error = 'Error', + Inactive = 'Inactive' +} + +export type SearchRecord = { + __typename?: 'SearchRecord'; + imageUrl?: Maybe; + label: Scalars['String']; + objectNameSingular: Scalars['String']; + recordId: Scalars['String']; + tsRank: Scalars['Float']; + tsRankCD: Scalars['Float']; +}; + +export type SearchResultConnection = { + __typename?: 'SearchResultConnection'; + edges: Array; + pageInfo: SearchResultPageInfo; +}; + +export type SearchResultEdge = { + __typename?: 'SearchResultEdge'; + cursor: Scalars['String']; + node: SearchRecord; +}; + +export type SearchResultPageInfo = { + __typename?: 'SearchResultPageInfo'; + endCursor?: Maybe; + hasNextPage: Scalars['Boolean']; +}; + +export type SendInvitationsOutput = { + __typename?: 'SendInvitationsOutput'; + errors: Array; + result: Array; + /** Boolean that confirms query was dispatched */ + success: Scalars['Boolean']; +}; + +export type Sentry = { + __typename?: 'Sentry'; + dsn?: Maybe; + environment?: Maybe; + release?: Maybe; +}; + +export type ServerlessFunction = { + __typename?: 'ServerlessFunction'; + createdAt: Scalars['DateTime']; + description?: Maybe; + id: Scalars['UUID']; + latestVersion?: Maybe; + latestVersionInputSchema?: Maybe; + name: Scalars['String']; + publishedVersions: Array; + runtime: Scalars['String']; + timeoutSeconds: Scalars['Float']; + updatedAt: Scalars['DateTime']; +}; + +export type ServerlessFunctionExecutionResult = { + __typename?: 'ServerlessFunctionExecutionResult'; + /** Execution result in JSON format */ + data?: Maybe; + /** Execution duration in milliseconds */ + duration: Scalars['Float']; + /** Execution error in JSON format */ + error?: Maybe; + /** Execution Logs */ + logs: Scalars['String']; + /** Execution status */ + status: ServerlessFunctionExecutionStatus; +}; + +/** Status of the serverless function execution */ +export enum ServerlessFunctionExecutionStatus { + ERROR = 'ERROR', + IDLE = 'IDLE', + SUCCESS = 'SUCCESS' +} + +export type ServerlessFunctionIdInput = { + /** The id of the function. */ + id: Scalars['ID']; +}; + +export type SettingPermission = { + __typename?: 'SettingPermission'; + id: Scalars['String']; + roleId: Scalars['String']; + setting: SettingPermissionType; +}; + +export enum SettingPermissionType { + ADMIN_PANEL = 'ADMIN_PANEL', + API_KEYS_AND_WEBHOOKS = 'API_KEYS_AND_WEBHOOKS', + DATA_MODEL = 'DATA_MODEL', + ROLES = 'ROLES', + SECURITY = 'SECURITY', + WORKFLOWS = 'WORKFLOWS', + WORKSPACE = 'WORKSPACE', + WORKSPACE_MEMBERS = 'WORKSPACE_MEMBERS' +} + +export type SetupOidcSsoInput = { + clientID: Scalars['String']; + clientSecret: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; +}; + +export type SetupSamlSsoInput = { + certificate: Scalars['String']; + fingerprint?: InputMaybe; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; + ssoURL: Scalars['String']; +}; + +export type SetupSsoOutput = { + __typename?: 'SetupSsoOutput'; + id: Scalars['String']; + issuer: Scalars['String']; + name: Scalars['String']; + status: SsoIdentityProviderStatus; + type: IdentityProviderType; +}; + +export type SignUpOutput = { + __typename?: 'SignUpOutput'; + loginToken: AuthToken; + workspace: WorkspaceUrlsAndId; +}; + +export type SignedFileDto = { + __typename?: 'SignedFileDTO'; + path: Scalars['String']; + token: Scalars['String']; +}; + +export type StandardOverrides = { + __typename?: 'StandardOverrides'; + description?: Maybe; + icon?: Maybe; + label?: Maybe; + translations?: Maybe; +}; + +export type SubmitFormStepInput = { + /** Form response in JSON format */ + response: Scalars['JSON']; + /** Workflow version ID */ + stepId: Scalars['String']; + /** Workflow run ID */ + workflowRunId: Scalars['String']; +}; + +export type Subscription = { + __typename?: 'Subscription'; + onDbEvent: OnDbEventDto; +}; + + +export type SubscriptionOnDbEventArgs = { + input: OnDbEventInput; +}; + +export enum SubscriptionInterval { + Day = 'Day', + Month = 'Month', + Week = 'Week', + Year = 'Year' +} + +export enum SubscriptionStatus { + Active = 'Active', + Canceled = 'Canceled', + Incomplete = 'Incomplete', + IncompleteExpired = 'IncompleteExpired', + PastDue = 'PastDue', + Paused = 'Paused', + Trialing = 'Trialing', + Unpaid = 'Unpaid' +} + +export type Support = { + __typename?: 'Support'; + supportDriver: SupportDriver; + supportFrontChatId?: Maybe; +}; + +export enum SupportDriver { + FRONT = 'FRONT', + NONE = 'NONE' +} + +export type SystemHealth = { + __typename?: 'SystemHealth'; + services: Array; +}; + +export type SystemHealthService = { + __typename?: 'SystemHealthService'; + id: HealthIndicatorId; + label: Scalars['String']; + status: AdminPanelHealthServiceStatus; +}; + +export type TimelineCalendarEvent = { + __typename?: 'TimelineCalendarEvent'; + conferenceLink: LinksMetadata; + conferenceSolution: Scalars['String']; + description: Scalars['String']; + endsAt: Scalars['DateTime']; + id: Scalars['UUID']; + isCanceled: Scalars['Boolean']; + isFullDay: Scalars['Boolean']; + location: Scalars['String']; + participants: Array; + startsAt: Scalars['DateTime']; + title: Scalars['String']; + visibility: CalendarChannelVisibility; +}; + +export type TimelineCalendarEventParticipant = { + __typename?: 'TimelineCalendarEventParticipant'; + avatarUrl: Scalars['String']; + displayName: Scalars['String']; + firstName: Scalars['String']; + handle: Scalars['String']; + lastName: Scalars['String']; + personId?: Maybe; + workspaceMemberId?: Maybe; +}; + +export type TimelineCalendarEventsWithTotal = { + __typename?: 'TimelineCalendarEventsWithTotal'; + timelineCalendarEvents: Array; + totalNumberOfCalendarEvents: Scalars['Int']; +}; + +export type TimelineThread = { + __typename?: 'TimelineThread'; + firstParticipant: TimelineThreadParticipant; + id: Scalars['UUID']; + lastMessageBody: Scalars['String']; + lastMessageReceivedAt: Scalars['DateTime']; + lastTwoParticipants: Array; + numberOfMessagesInThread: Scalars['Float']; + participantCount: Scalars['Float']; + read: Scalars['Boolean']; + subject: Scalars['String']; + visibility: MessageChannelVisibility; +}; + +export type TimelineThreadParticipant = { + __typename?: 'TimelineThreadParticipant'; + avatarUrl: Scalars['String']; + displayName: Scalars['String']; + firstName: Scalars['String']; + handle: Scalars['String']; + lastName: Scalars['String']; + personId?: Maybe; + workspaceMemberId?: Maybe; +}; + +export type TimelineThreadsWithTotal = { + __typename?: 'TimelineThreadsWithTotal'; + timelineThreads: Array; + totalNumberOfThreads: Scalars['Int']; +}; + +export type TransientToken = { + __typename?: 'TransientToken'; + transientToken: AuthToken; +}; + +export type UuidFilter = { + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + in?: InputMaybe>; + is?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + neq?: InputMaybe; +}; + +export type UuidFilterComparison = { + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + iLike?: InputMaybe; + in?: InputMaybe>; + is?: InputMaybe; + isNot?: InputMaybe; + like?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; + neq?: InputMaybe; + notILike?: InputMaybe; + notIn?: InputMaybe>; + notLike?: InputMaybe; +}; + +export type UpdateAgentInput = { + description?: InputMaybe; + id: Scalars['UUID']; + modelId: Scalars['String']; + name: Scalars['String']; + prompt: Scalars['String']; + responseFormat?: InputMaybe; +}; + +export type UpdateFieldInput = { + defaultValue?: InputMaybe; + description?: InputMaybe; + icon?: InputMaybe; + isActive?: InputMaybe; + isLabelSyncedWithName?: InputMaybe; + isNullable?: InputMaybe; + isSystem?: InputMaybe; + isUnique?: InputMaybe; + label?: InputMaybe; + name?: InputMaybe; + options?: InputMaybe; + settings?: InputMaybe; +}; + +export type UpdateLabPublicFeatureFlagInput = { + publicFeatureFlag: Scalars['String']; + value: Scalars['Boolean']; +}; + +export type UpdateObjectPayload = { + description?: InputMaybe; + icon?: InputMaybe; + imageIdentifierFieldMetadataId?: InputMaybe; + isActive?: InputMaybe; + isLabelSyncedWithName?: InputMaybe; + labelIdentifierFieldMetadataId?: InputMaybe; + labelPlural?: InputMaybe; + labelSingular?: InputMaybe; + namePlural?: InputMaybe; + nameSingular?: InputMaybe; + shortcut?: InputMaybe; +}; + +export type UpdateOneFieldMetadataInput = { + /** The id of the record to update */ + id: Scalars['UUID']; + /** The record to update */ + update: UpdateFieldInput; +}; + +export type UpdateOneObjectInput = { + /** The id of the object to update */ + id: Scalars['UUID']; + update: UpdateObjectPayload; +}; + +export type UpdateRoleInput = { + /** The id of the role to update */ + id: Scalars['UUID']; + update: UpdateRolePayload; +}; + +export type UpdateRolePayload = { + canDestroyAllObjectRecords?: InputMaybe; + canReadAllObjectRecords?: InputMaybe; + canSoftDeleteAllObjectRecords?: InputMaybe; + canUpdateAllObjectRecords?: InputMaybe; + canUpdateAllSettings?: InputMaybe; + description?: InputMaybe; + icon?: InputMaybe; + label?: InputMaybe; +}; + +export type UpdateServerlessFunctionInput = { + code: Scalars['JSON']; + description?: InputMaybe; + /** Id of the serverless function to execute */ + id: Scalars['UUID']; + name: Scalars['String']; + timeoutSeconds?: InputMaybe; +}; + +export type UpdateWorkflowRunStepInput = { + /** Step to update in JSON format */ + step: Scalars['JSON']; + /** Workflow run ID */ + workflowRunId: Scalars['String']; +}; + +export type UpdateWorkflowVersionStepInput = { + /** Step to update in JSON format */ + step: Scalars['JSON']; + /** Workflow version ID */ + workflowVersionId: Scalars['String']; +}; + +export type UpdateWorkspaceInput = { + allowImpersonation?: InputMaybe; + customDomain?: InputMaybe; + defaultRoleId?: InputMaybe; + displayName?: InputMaybe; + inviteHash?: InputMaybe; + isGoogleAuthEnabled?: InputMaybe; + isMicrosoftAuthEnabled?: InputMaybe; + isPasswordAuthEnabled?: InputMaybe; + isPublicInviteLinkEnabled?: InputMaybe; + logo?: InputMaybe; + subdomain?: InputMaybe; +}; + +export type UpsertObjectPermissionsInput = { + objectPermissions: Array; + roleId: Scalars['String']; +}; + +export type UpsertSettingPermissionsInput = { + roleId: Scalars['String']; + settingPermissionKeys: Array; +}; + +export type User = { + __typename?: 'User'; + availableWorkspaces: AvailableWorkspaces; + canAccessFullAdminPanel: Scalars['Boolean']; + canImpersonate: Scalars['Boolean']; + createdAt: Scalars['DateTime']; + currentUserWorkspace?: Maybe; + currentWorkspace?: Maybe; + defaultAvatarUrl?: Maybe; + deletedAt?: Maybe; + deletedWorkspaceMembers?: Maybe>; + disabled?: Maybe; + email: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['UUID']; + isEmailVerified: Scalars['Boolean']; + lastName: Scalars['String']; + locale: Scalars['String']; + onboardingStatus?: Maybe; + passwordHash?: Maybe; + supportUserHash?: Maybe; + updatedAt: Scalars['DateTime']; + userVars?: Maybe; + workspaceMember?: Maybe; + workspaceMembers?: Maybe>; + workspaces: Array; +}; + +export type UserEdge = { + __typename?: 'UserEdge'; + /** Cursor for this node. */ + cursor: Scalars['ConnectionCursor']; + /** The node containing the User */ + node: User; +}; + +export type UserInfo = { + __typename?: 'UserInfo'; + email: Scalars['String']; + firstName?: Maybe; + id: Scalars['String']; + lastName?: Maybe; +}; + +export type UserLookup = { + __typename?: 'UserLookup'; + user: UserInfo; + workspaces: Array; +}; + +export type UserMappingOptionsUser = { + __typename?: 'UserMappingOptionsUser'; + user?: Maybe; +}; + +export type UserWorkspace = { + __typename?: 'UserWorkspace'; + createdAt: Scalars['DateTime']; + deletedAt?: Maybe; + id: Scalars['UUID']; + objectPermissions?: Maybe>; + /** @deprecated Use objectPermissions instead */ + objectRecordsPermissions?: Maybe>; + settingsPermissions?: Maybe>; + updatedAt: Scalars['DateTime']; + user: User; + userId: Scalars['String']; + workspace?: Maybe; + workspaceId: Scalars['String']; +}; + +export type ValidateApprovedAccessDomainInput = { + approvedAccessDomainId: Scalars['String']; + validationToken: Scalars['String']; +}; + +export type ValidatePasswordResetToken = { + __typename?: 'ValidatePasswordResetToken'; + email: Scalars['String']; + id: Scalars['String']; +}; + +export type VersionInfo = { + __typename?: 'VersionInfo'; + currentVersion?: Maybe; + latestVersion: Scalars['String']; +}; + +export type WorkerQueueMetrics = { + __typename?: 'WorkerQueueMetrics'; + active: Scalars['Float']; + completed: Scalars['Float']; + completedData?: Maybe>; + delayed: Scalars['Float']; + failed: Scalars['Float']; + failedData?: Maybe>; + failureRate: Scalars['Float']; + waiting: Scalars['Float']; +}; + +export type WorkflowAction = { + __typename?: 'WorkflowAction'; + id: Scalars['UUID']; + name: Scalars['String']; + nextStepIds?: Maybe>; + settings: Scalars['JSON']; + type: Scalars['String']; + valid: Scalars['Boolean']; +}; + +export type WorkflowRun = { + __typename?: 'WorkflowRun'; + workflowRunId: Scalars['UUID']; +}; + +export type WorkflowVersion = { + __typename?: 'WorkflowVersion'; + id: Scalars['UUID']; +}; + +export type Workspace = { + __typename?: 'Workspace'; + activationStatus: WorkspaceActivationStatus; + allowImpersonation: Scalars['Boolean']; + billingSubscriptions: Array; + createdAt: Scalars['DateTime']; + currentBillingSubscription?: Maybe; + customDomain?: Maybe; + databaseSchema: Scalars['String']; + databaseUrl: Scalars['String']; + defaultRole?: Maybe; + deletedAt?: Maybe; + displayName?: Maybe; + featureFlags?: Maybe>; + hasValidEnterpriseKey: Scalars['Boolean']; + id: Scalars['UUID']; + inviteHash?: Maybe; + isCustomDomainEnabled: Scalars['Boolean']; + isGoogleAuthEnabled: Scalars['Boolean']; + isMicrosoftAuthEnabled: Scalars['Boolean']; + isPasswordAuthEnabled: Scalars['Boolean']; + isPublicInviteLinkEnabled: Scalars['Boolean']; + logo?: Maybe; + metadataVersion: Scalars['Float']; + subdomain: Scalars['String']; + updatedAt: Scalars['DateTime']; + version?: Maybe; + workspaceMembersCount?: Maybe; + workspaceUrls: WorkspaceUrls; +}; + +export enum WorkspaceActivationStatus { + ACTIVE = 'ACTIVE', + INACTIVE = 'INACTIVE', + ONGOING_CREATION = 'ONGOING_CREATION', + PENDING_CREATION = 'PENDING_CREATION', + SUSPENDED = 'SUSPENDED' +} + +export type WorkspaceEdge = { + __typename?: 'WorkspaceEdge'; + /** Cursor for this node. */ + cursor: Scalars['ConnectionCursor']; + /** The node containing the Workspace */ + node: Workspace; +}; + +export type WorkspaceInfo = { + __typename?: 'WorkspaceInfo'; + allowImpersonation: Scalars['Boolean']; + featureFlags: Array; + id: Scalars['String']; + logo?: Maybe; + name: Scalars['String']; + totalUsers: Scalars['Float']; + users: Array; +}; + +export type WorkspaceInvitation = { + __typename?: 'WorkspaceInvitation'; + email: Scalars['String']; + expiresAt: Scalars['DateTime']; + id: Scalars['UUID']; +}; + +export type WorkspaceInviteHashValid = { + __typename?: 'WorkspaceInviteHashValid'; + isValid: Scalars['Boolean']; +}; + +export type WorkspaceMember = { + __typename?: 'WorkspaceMember'; + avatarUrl?: Maybe; + colorScheme: Scalars['String']; + dateFormat?: Maybe; + id: Scalars['UUID']; + locale?: Maybe; + name: FullName; + roles?: Maybe>; + timeFormat?: Maybe; + timeZone?: Maybe; + userEmail: Scalars['String']; + userWorkspaceId?: Maybe; +}; + +/** Date format as Month first, Day first, Year first or system as default */ +export enum WorkspaceMemberDateFormatEnum { + DAY_FIRST = 'DAY_FIRST', + MONTH_FIRST = 'MONTH_FIRST', + SYSTEM = 'SYSTEM', + YEAR_FIRST = 'YEAR_FIRST' +} + +/** Time time as Military, Standard or system as default */ +export enum WorkspaceMemberTimeFormatEnum { + HOUR_12 = 'HOUR_12', + HOUR_24 = 'HOUR_24', + SYSTEM = 'SYSTEM' +} + +export type WorkspaceNameAndId = { + __typename?: 'WorkspaceNameAndId'; + displayName?: Maybe; + id: Scalars['String']; +}; + +export type WorkspaceUrls = { + __typename?: 'WorkspaceUrls'; + customUrl?: Maybe; + subdomainUrl: Scalars['String']; +}; + +export type WorkspaceUrlsAndId = { + __typename?: 'WorkspaceUrlsAndId'; + id: Scalars['String']; + workspaceUrls: WorkspaceUrls; +}; + +export type SearchQueryVariables = Exact<{ + searchInput: Scalars['String']; + limit: Scalars['Int']; + after?: InputMaybe; + excludedObjectNameSingulars?: InputMaybe | Scalars['String']>; + includedObjectNameSingulars?: InputMaybe | Scalars['String']>; + filter?: InputMaybe; +}>; + + +export type SearchQuery = { __typename?: 'Query', search: { __typename?: 'SearchResultConnection', edges: Array<{ __typename?: 'SearchResultEdge', cursor: string, node: { __typename?: 'SearchRecord', recordId: string, objectNameSingular: string, label: string, imageUrl?: string | null, tsRankCD: number, tsRank: number } }>, pageInfo: { __typename?: 'SearchResultPageInfo', hasNextPage: boolean, endCursor?: string | null } } }; + +export type OnDbEventSubscriptionVariables = Exact<{ + input: OnDbEventInput; +}>; + + +export type OnDbEventSubscription = { __typename?: 'Subscription', onDbEvent: { __typename?: 'OnDbEventDTO', eventDate: string, action: DatabaseEventAction, objectNameSingular: string, updatedFields?: Array | null, record: any } }; + + +export const SearchDocument = gql` + query Search($searchInput: String!, $limit: Int!, $after: String, $excludedObjectNameSingulars: [String!], $includedObjectNameSingulars: [String!], $filter: ObjectRecordFilterInput) { + search( + searchInput: $searchInput + limit: $limit + after: $after + excludedObjectNameSingulars: $excludedObjectNameSingulars + includedObjectNameSingulars: $includedObjectNameSingulars + filter: $filter + ) { + edges { + node { + recordId + objectNameSingular + label + imageUrl + tsRankCD + tsRank + } + cursor + } + pageInfo { + hasNextPage + endCursor + } + } +} + `; + +/** + * __useSearchQuery__ + * + * To run a query within a React component, call `useSearchQuery` and pass it any options that fit your needs. + * When your component renders, `useSearchQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useSearchQuery({ + * variables: { + * searchInput: // value for 'searchInput' + * limit: // value for 'limit' + * after: // value for 'after' + * excludedObjectNameSingulars: // value for 'excludedObjectNameSingulars' + * includedObjectNameSingulars: // value for 'includedObjectNameSingulars' + * filter: // value for 'filter' + * }, + * }); + */ +export function useSearchQuery(baseOptions: Apollo.QueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useQuery(SearchDocument, options); + } +export function useSearchLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useLazyQuery(SearchDocument, options); + } +export type SearchQueryHookResult = ReturnType; +export type SearchLazyQueryHookResult = ReturnType; +export type SearchQueryResult = Apollo.QueryResult; +export const OnDbEventDocument = gql` + subscription OnDbEvent($input: OnDbEventInput!) { + onDbEvent(input: $input) { + eventDate + action + objectNameSingular + updatedFields + record + } +} + `; + +/** + * __useOnDbEventSubscription__ + * + * To run a query within a React component, call `useOnDbEventSubscription` and pass it any options that fit your needs. + * When your component renders, `useOnDbEventSubscription` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useOnDbEventSubscription({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useOnDbEventSubscription(baseOptions: Apollo.SubscriptionHookOptions) { + const options = {...defaultOptions, ...baseOptions} + return Apollo.useSubscription(OnDbEventDocument, options); + } +export type OnDbEventSubscriptionHookResult = ReturnType; +export type OnDbEventSubscriptionResult = Apollo.SubscriptionResult; \ No newline at end of file diff --git a/packages/twenty-front/src/generated/graphql.tsx b/packages/twenty-front/src/generated/graphql.tsx deleted file mode 100644 index 468951424..000000000 --- a/packages/twenty-front/src/generated/graphql.tsx +++ /dev/null @@ -1,7145 +0,0 @@ -import { gql } from '@apollo/client'; -import * as Apollo from '@apollo/client'; -export type Maybe = T | null; -export type InputMaybe = Maybe; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; -const defaultOptions = {} as const; -/** All built-in and custom scalars, mapped to their actual values */ -export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - ConnectionCursor: any; - Date: any; - DateTime: string; - JSON: any; - JSONObject: any; - UUID: any; - Upload: any; -}; - -export type AccountType = { - type: Scalars['String']; -}; - -export type ActivateWorkspaceInput = { - displayName?: InputMaybe; -}; - -export type AdminPanelHealthServiceData = { - __typename?: 'AdminPanelHealthServiceData'; - description: Scalars['String']; - details?: Maybe; - errorMessage?: Maybe; - id: Scalars['String']; - label: Scalars['String']; - queues?: Maybe>; - status: AdminPanelHealthServiceStatus; -}; - -export enum AdminPanelHealthServiceStatus { - OPERATIONAL = 'OPERATIONAL', - OUTAGE = 'OUTAGE' -} - -export type AdminPanelWorkerQueueHealth = { - __typename?: 'AdminPanelWorkerQueueHealth'; - id: Scalars['String']; - queueName: Scalars['String']; - status: AdminPanelHealthServiceStatus; -}; - -export type Agent = { - __typename?: 'Agent'; - createdAt: Scalars['DateTime']; - description?: Maybe; - id: Scalars['UUID']; - modelId: Scalars['String']; - name: Scalars['String']; - prompt: Scalars['String']; - responseFormat?: Maybe; - roleId?: Maybe; - updatedAt: Scalars['DateTime']; -}; - -export type AgentIdInput = { - /** The id of the agent. */ - id: Scalars['UUID']; -}; - -export type Analytics = { - __typename?: 'Analytics'; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - -export enum AnalyticsType { - PAGEVIEW = 'PAGEVIEW', - TRACK = 'TRACK' -} - -export type ApiConfig = { - __typename?: 'ApiConfig'; - mutationMaximumAffectedRecords: Scalars['Float']; -}; - -export type ApiKeyToken = { - __typename?: 'ApiKeyToken'; - token: Scalars['String']; -}; - -export type AppToken = { - __typename?: 'AppToken'; - createdAt: Scalars['DateTime']; - expiresAt: Scalars['DateTime']; - id: Scalars['UUID']; - type: Scalars['String']; - updatedAt: Scalars['DateTime']; -}; - -export type AppTokenEdge = { - __typename?: 'AppTokenEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the AppToken */ - node: AppToken; -}; - -export type ApprovedAccessDomain = { - __typename?: 'ApprovedAccessDomain'; - createdAt: Scalars['DateTime']; - domain: Scalars['String']; - id: Scalars['UUID']; - isValidated: Scalars['Boolean']; -}; - -export type AuthProviders = { - __typename?: 'AuthProviders'; - google: Scalars['Boolean']; - magicLink: Scalars['Boolean']; - microsoft: Scalars['Boolean']; - password: Scalars['Boolean']; - sso: Array; -}; - -export type AuthToken = { - __typename?: 'AuthToken'; - expiresAt: Scalars['DateTime']; - token: Scalars['String']; -}; - -export type AuthTokenPair = { - __typename?: 'AuthTokenPair'; - accessToken: AuthToken; - refreshToken: AuthToken; -}; - -export type AuthTokens = { - __typename?: 'AuthTokens'; - tokens: AuthTokenPair; -}; - -export type AuthorizeApp = { - __typename?: 'AuthorizeApp'; - redirectUrl: Scalars['String']; -}; - -export type AvailableWorkspace = { - __typename?: 'AvailableWorkspace'; - displayName?: Maybe; - id: Scalars['String']; - inviteHash?: Maybe; - loginToken?: Maybe; - logo?: Maybe; - personalInviteToken?: Maybe; - sso: Array; - workspaceUrls: WorkspaceUrls; -}; - -export type AvailableWorkspaces = { - __typename?: 'AvailableWorkspaces'; - availableWorkspacesForSignIn: Array; - availableWorkspacesForSignUp: Array; -}; - -export type AvailableWorkspacesAndAccessTokensOutput = { - __typename?: 'AvailableWorkspacesAndAccessTokensOutput'; - availableWorkspaces: AvailableWorkspaces; - tokens: AuthTokenPair; -}; - -export type Billing = { - __typename?: 'Billing'; - billingUrl?: Maybe; - isBillingEnabled: Scalars['Boolean']; - trialPeriods: Array; -}; - -export type BillingEndTrialPeriodOutput = { - __typename?: 'BillingEndTrialPeriodOutput'; - /** Boolean that confirms if a payment method was found */ - hasPaymentMethod: Scalars['Boolean']; - /** Updated subscription status */ - status?: Maybe; -}; - -export type BillingMeteredProductUsageOutput = { - __typename?: 'BillingMeteredProductUsageOutput'; - freeTierQuantity: Scalars['Float']; - freeTrialQuantity: Scalars['Float']; - periodEnd: Scalars['DateTime']; - periodStart: Scalars['DateTime']; - productKey: BillingProductKey; - totalCostCents: Scalars['Float']; - unitPriceCents: Scalars['Float']; - usageQuantity: Scalars['Float']; -}; - -/** The different billing plans available */ -export enum BillingPlanKey { - ENTERPRISE = 'ENTERPRISE', - PRO = 'PRO' -} - -export type BillingPlanOutput = { - __typename?: 'BillingPlanOutput'; - baseProduct: BillingProduct; - meteredProducts: Array; - otherLicensedProducts: Array; - planKey: BillingPlanKey; -}; - -export type BillingPriceLicensedDto = { - __typename?: 'BillingPriceLicensedDTO'; - priceUsageType: BillingUsageType; - recurringInterval: SubscriptionInterval; - stripePriceId: Scalars['String']; - unitAmount: Scalars['Float']; -}; - -export type BillingPriceMeteredDto = { - __typename?: 'BillingPriceMeteredDTO'; - priceUsageType: BillingUsageType; - recurringInterval: SubscriptionInterval; - stripePriceId: Scalars['String']; - tiers?: Maybe>; - tiersMode?: Maybe; -}; - -export type BillingPriceTierDto = { - __typename?: 'BillingPriceTierDTO'; - flatAmount?: Maybe; - unitAmount?: Maybe; - upTo?: Maybe; -}; - -/** The different billing price tiers modes */ -export enum BillingPriceTiersMode { - GRADUATED = 'GRADUATED', - VOLUME = 'VOLUME' -} - -export type BillingPriceUnionDto = BillingPriceLicensedDto | BillingPriceMeteredDto; - -export type BillingProduct = { - __typename?: 'BillingProduct'; - description: Scalars['String']; - images?: Maybe>; - metadata: BillingProductMetadata; - name: Scalars['String']; - prices?: Maybe>; -}; - -/** The different billing products available */ -export enum BillingProductKey { - BASE_PRODUCT = 'BASE_PRODUCT', - WORKFLOW_NODE_EXECUTION = 'WORKFLOW_NODE_EXECUTION' -} - -export type BillingProductMetadata = { - __typename?: 'BillingProductMetadata'; - planKey: BillingPlanKey; - priceUsageBased: BillingUsageType; - productKey: BillingProductKey; -}; - -export type BillingSessionOutput = { - __typename?: 'BillingSessionOutput'; - url?: Maybe; -}; - -export type BillingSubscription = { - __typename?: 'BillingSubscription'; - billingSubscriptionItems?: Maybe>; - id: Scalars['UUID']; - interval?: Maybe; - metadata: Scalars['JSON']; - status: SubscriptionStatus; -}; - -export type BillingSubscriptionItem = { - __typename?: 'BillingSubscriptionItem'; - billingProduct?: Maybe; - hasReachedCurrentPeriodCap: Scalars['Boolean']; - id: Scalars['UUID']; - quantity?: Maybe; -}; - -export type BillingTrialPeriodDto = { - __typename?: 'BillingTrialPeriodDTO'; - duration: Scalars['Float']; - isCreditCardRequired: Scalars['Boolean']; -}; - -export type BillingUpdateOutput = { - __typename?: 'BillingUpdateOutput'; - /** Boolean that confirms query was successful */ - success: Scalars['Boolean']; -}; - -export enum BillingUsageType { - LICENSED = 'LICENSED', - METERED = 'METERED' -} - -export type BooleanFieldComparison = { - is?: InputMaybe; - isNot?: InputMaybe; -}; - -export enum CalendarChannelVisibility { - METADATA = 'METADATA', - SHARE_EVERYTHING = 'SHARE_EVERYTHING' -} - -export type Captcha = { - __typename?: 'Captcha'; - provider?: Maybe; - siteKey?: Maybe; -}; - -export enum CaptchaDriverType { - GOOGLE_RECAPTCHA = 'GOOGLE_RECAPTCHA', - TURNSTILE = 'TURNSTILE' -} - -export type CheckUserExistOutput = { - __typename?: 'CheckUserExistOutput'; - availableWorkspacesCount: Scalars['Float']; - exists: Scalars['Boolean']; - isEmailVerified: Scalars['Boolean']; -}; - -export type ClientAiModelConfig = { - __typename?: 'ClientAIModelConfig'; - inputCostPer1kTokensInCredits: Scalars['Float']; - label: Scalars['String']; - modelId: Scalars['String']; - outputCostPer1kTokensInCredits: Scalars['Float']; - provider: ModelProvider; -}; - -export type ComputeStepOutputSchemaInput = { - /** Step JSON format */ - step: Scalars['JSON']; -}; - -export enum ConfigSource { - DATABASE = 'DATABASE', - DEFAULT = 'DEFAULT', - ENVIRONMENT = 'ENVIRONMENT' -} - -export type ConfigVariable = { - __typename?: 'ConfigVariable'; - description: Scalars['String']; - isEnvOnly: Scalars['Boolean']; - isSensitive: Scalars['Boolean']; - name: Scalars['String']; - options?: Maybe; - source: ConfigSource; - type: ConfigVariableType; - value?: Maybe; -}; - -export enum ConfigVariableType { - ARRAY = 'ARRAY', - BOOLEAN = 'BOOLEAN', - ENUM = 'ENUM', - NUMBER = 'NUMBER', - STRING = 'STRING' -} - -export enum ConfigVariablesGroup { - AnalyticsConfig = 'AnalyticsConfig', - BillingConfig = 'BillingConfig', - CaptchaConfig = 'CaptchaConfig', - CloudflareConfig = 'CloudflareConfig', - EmailSettings = 'EmailSettings', - ExceptionHandler = 'ExceptionHandler', - GoogleAuth = 'GoogleAuth', - LLM = 'LLM', - Logging = 'Logging', - Metering = 'Metering', - MicrosoftAuth = 'MicrosoftAuth', - Other = 'Other', - RateLimiting = 'RateLimiting', - SSL = 'SSL', - ServerConfig = 'ServerConfig', - ServerlessConfig = 'ServerlessConfig', - StorageConfig = 'StorageConfig', - SupportChatConfig = 'SupportChatConfig', - TokensDuration = 'TokensDuration' -} - -export type ConfigVariablesGroupData = { - __typename?: 'ConfigVariablesGroupData'; - description: Scalars['String']; - isHiddenOnLoad: Scalars['Boolean']; - name: ConfigVariablesGroup; - variables: Array; -}; - -export type ConfigVariablesOutput = { - __typename?: 'ConfigVariablesOutput'; - groups: Array; -}; - -export type ConnectedImapSmtpCaldavAccount = { - __typename?: 'ConnectedImapSmtpCaldavAccount'; - accountOwnerId: Scalars['String']; - connectionParameters?: Maybe; - handle: Scalars['String']; - id: Scalars['String']; - provider: Scalars['String']; -}; - -export type ConnectionParameters = { - host: Scalars['String']; - password: Scalars['String']; - port: Scalars['Float']; - secure?: InputMaybe; - username: Scalars['String']; -}; - -export type ConnectionParametersOutput = { - __typename?: 'ConnectionParametersOutput'; - host: Scalars['String']; - password: Scalars['String']; - port: Scalars['Float']; - secure?: Maybe; - username: Scalars['String']; -}; - -export type CreateAgentInput = { - description?: InputMaybe; - modelId: Scalars['String']; - name: Scalars['String']; - prompt: Scalars['String']; - responseFormat?: InputMaybe; -}; - -export type CreateApprovedAccessDomainInput = { - domain: Scalars['String']; - email: Scalars['String']; -}; - -export type CreateDraftFromWorkflowVersionInput = { - /** Workflow ID */ - workflowId: Scalars['String']; - /** Workflow version ID */ - workflowVersionIdToCopy: Scalars['String']; -}; - -export type CreateFieldInput = { - defaultValue?: InputMaybe; - description?: InputMaybe; - icon?: InputMaybe; - isActive?: InputMaybe; - isCustom?: InputMaybe; - isLabelSyncedWithName?: InputMaybe; - isNullable?: InputMaybe; - isRemoteCreation?: InputMaybe; - isSystem?: InputMaybe; - isUnique?: InputMaybe; - label: Scalars['String']; - name: Scalars['String']; - objectMetadataId: Scalars['String']; - options?: InputMaybe; - relationCreationPayload?: InputMaybe; - settings?: InputMaybe; - type: FieldMetadataType; -}; - -export type CreateOneFieldMetadataInput = { - /** The record to create */ - field: CreateFieldInput; -}; - -export type CreateRoleInput = { - canDestroyAllObjectRecords?: InputMaybe; - canReadAllObjectRecords?: InputMaybe; - canSoftDeleteAllObjectRecords?: InputMaybe; - canUpdateAllObjectRecords?: InputMaybe; - canUpdateAllSettings?: InputMaybe; - description?: InputMaybe; - icon?: InputMaybe; - id?: InputMaybe; - label: Scalars['String']; -}; - -export type CreateServerlessFunctionInput = { - description?: InputMaybe; - name: Scalars['String']; - timeoutSeconds?: InputMaybe; -}; - -export type CreateWorkflowVersionStepInput = { - /** Next step ID */ - nextStepId?: InputMaybe; - /** Parent step ID */ - parentStepId?: InputMaybe; - /** New step type */ - stepType: Scalars['String']; - /** Workflow version ID */ - workflowVersionId: Scalars['String']; -}; - -export type CursorPaging = { - /** Paginate after opaque cursor */ - after?: InputMaybe; - /** Paginate before opaque cursor */ - before?: InputMaybe; - /** Paginate first */ - first?: InputMaybe; - /** Paginate last */ - last?: InputMaybe; -}; - -export type CustomDomainRecord = { - __typename?: 'CustomDomainRecord'; - key: Scalars['String']; - status: Scalars['String']; - type: Scalars['String']; - validationType: Scalars['String']; - value: Scalars['String']; -}; - -export type CustomDomainValidRecords = { - __typename?: 'CustomDomainValidRecords'; - customDomain: Scalars['String']; - id: Scalars['String']; - records: Array; -}; - -/** Database Event Action */ -export enum DatabaseEventAction { - CREATED = 'CREATED', - DELETED = 'DELETED', - DESTROYED = 'DESTROYED', - RESTORED = 'RESTORED', - UPDATED = 'UPDATED' -} - -export type DateFilter = { - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - is?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - neq?: InputMaybe; -}; - -export type DeleteApprovedAccessDomainInput = { - id: Scalars['String']; -}; - -export type DeleteOneFieldInput = { - /** The id of the field to delete. */ - id: Scalars['UUID']; -}; - -export type DeleteOneObjectInput = { - /** The id of the record to delete. */ - id: Scalars['UUID']; -}; - -export type DeleteSsoInput = { - identityProviderId: Scalars['String']; -}; - -export type DeleteSsoOutput = { - __typename?: 'DeleteSsoOutput'; - identityProviderId: Scalars['String']; -}; - -export type DeleteWorkflowVersionStepInput = { - /** Step to delete ID */ - stepId: Scalars['String']; - /** Workflow version ID */ - workflowVersionId: Scalars['String']; -}; - -export type DeletedWorkspaceMember = { - __typename?: 'DeletedWorkspaceMember'; - avatarUrl?: Maybe; - id: Scalars['UUID']; - name: FullName; - userEmail: Scalars['String']; - userWorkspaceId?: Maybe; -}; - -/** Schema update on a table */ -export enum DistantTableUpdate { - COLUMNS_ADDED = 'COLUMNS_ADDED', - COLUMNS_DELETED = 'COLUMNS_DELETED', - COLUMNS_TYPE_CHANGED = 'COLUMNS_TYPE_CHANGED', - TABLE_DELETED = 'TABLE_DELETED' -} - -export type EditSsoInput = { - id: Scalars['String']; - status: SsoIdentityProviderStatus; -}; - -export type EditSsoOutput = { - __typename?: 'EditSsoOutput'; - id: Scalars['String']; - issuer: Scalars['String']; - name: Scalars['String']; - status: SsoIdentityProviderStatus; - type: IdentityProviderType; -}; - -export type EmailPasswordResetLink = { - __typename?: 'EmailPasswordResetLink'; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - -export type ExecuteServerlessFunctionInput = { - /** Id of the serverless function to execute */ - id: Scalars['UUID']; - /** Payload in JSON format */ - payload: Scalars['JSON']; - /** Version of the serverless function to execute */ - version?: Scalars['String']; -}; - -export type FeatureFlag = { - __typename?: 'FeatureFlag'; - id: Scalars['UUID']; - key: FeatureFlagKey; - value: Scalars['Boolean']; - workspaceId: Scalars['String']; -}; - -export type FeatureFlagDto = { - __typename?: 'FeatureFlagDTO'; - key: FeatureFlagKey; - value: Scalars['Boolean']; -}; - -export enum FeatureFlagKey { - IS_AIRTABLE_INTEGRATION_ENABLED = 'IS_AIRTABLE_INTEGRATION_ENABLED', - IS_AI_ENABLED = 'IS_AI_ENABLED', - IS_IMAP_ENABLED = 'IS_IMAP_ENABLED', - IS_JSON_FILTER_ENABLED = 'IS_JSON_FILTER_ENABLED', - IS_POSTGRESQL_INTEGRATION_ENABLED = 'IS_POSTGRESQL_INTEGRATION_ENABLED', - IS_STRIPE_INTEGRATION_ENABLED = 'IS_STRIPE_INTEGRATION_ENABLED', - IS_UNIQUE_INDEXES_ENABLED = 'IS_UNIQUE_INDEXES_ENABLED', - IS_WORKFLOW_FILTERING_ENABLED = 'IS_WORKFLOW_FILTERING_ENABLED' -} - -export type Field = { - __typename?: 'Field'; - createdAt: Scalars['DateTime']; - defaultValue?: Maybe; - description?: Maybe; - icon?: Maybe; - id: Scalars['UUID']; - isActive?: Maybe; - isCustom?: Maybe; - isLabelSyncedWithName?: Maybe; - isNullable?: Maybe; - isSystem?: Maybe; - isUnique?: Maybe; - label: Scalars['String']; - name: Scalars['String']; - object?: Maybe; - options?: Maybe; - relation?: Maybe; - settings?: Maybe; - standardOverrides?: Maybe; - type: FieldMetadataType; - updatedAt: Scalars['DateTime']; -}; - -export type FieldConnection = { - __typename?: 'FieldConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type FieldEdge = { - __typename?: 'FieldEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the Field */ - node: Field; -}; - -export type FieldFilter = { - and?: InputMaybe>; - id?: InputMaybe; - isActive?: InputMaybe; - isCustom?: InputMaybe; - isSystem?: InputMaybe; - or?: InputMaybe>; -}; - -/** Type of the field */ -export enum FieldMetadataType { - ACTOR = 'ACTOR', - ADDRESS = 'ADDRESS', - ARRAY = 'ARRAY', - BOOLEAN = 'BOOLEAN', - CURRENCY = 'CURRENCY', - DATE = 'DATE', - DATE_TIME = 'DATE_TIME', - EMAILS = 'EMAILS', - FULL_NAME = 'FULL_NAME', - LINKS = 'LINKS', - MULTI_SELECT = 'MULTI_SELECT', - NUMBER = 'NUMBER', - NUMERIC = 'NUMERIC', - PHONES = 'PHONES', - POSITION = 'POSITION', - RATING = 'RATING', - RAW_JSON = 'RAW_JSON', - RELATION = 'RELATION', - RICH_TEXT = 'RICH_TEXT', - RICH_TEXT_V2 = 'RICH_TEXT_V2', - SELECT = 'SELECT', - TEXT = 'TEXT', - TS_VECTOR = 'TS_VECTOR', - UUID = 'UUID' -} - -export enum FileFolder { - Attachment = 'Attachment', - PersonPicture = 'PersonPicture', - ProfilePicture = 'ProfilePicture', - ServerlessFunction = 'ServerlessFunction', - WorkspaceLogo = 'WorkspaceLogo' -} - -export enum FilterIs { - NotNull = 'NotNull', - Null = 'Null' -} - -export type FindAvailableSsoidpOutput = { - __typename?: 'FindAvailableSSOIDPOutput'; - id: Scalars['String']; - issuer: Scalars['String']; - name: Scalars['String']; - status: SsoIdentityProviderStatus; - type: IdentityProviderType; - workspace: WorkspaceNameAndId; -}; - -export type FullName = { - __typename?: 'FullName'; - firstName: Scalars['String']; - lastName: Scalars['String']; -}; - -export type GetAuthorizationUrlForSsoInput = { - identityProviderId: Scalars['String']; - workspaceInviteHash?: InputMaybe; -}; - -export type GetAuthorizationUrlForSsoOutput = { - __typename?: 'GetAuthorizationUrlForSSOOutput'; - authorizationURL: Scalars['String']; - id: Scalars['String']; - type: Scalars['String']; -}; - -export type GetLoginTokenFromEmailVerificationTokenOutput = { - __typename?: 'GetLoginTokenFromEmailVerificationTokenOutput'; - loginToken: AuthToken; - workspaceUrls: WorkspaceUrls; -}; - -export type GetServerlessFunctionSourceCodeInput = { - /** The id of the function. */ - id: Scalars['ID']; - /** The version of the function */ - version?: Scalars['String']; -}; - -export enum HealthIndicatorId { - app = 'app', - connectedAccount = 'connectedAccount', - database = 'database', - redis = 'redis', - worker = 'worker' -} - -export enum IdentityProviderType { - OIDC = 'OIDC', - SAML = 'SAML' -} - -export type ImapSmtpCaldavConnectionParameters = { - __typename?: 'ImapSmtpCaldavConnectionParameters'; - CALDAV?: Maybe; - IMAP?: Maybe; - SMTP?: Maybe; -}; - -export type ImapSmtpCaldavConnectionSuccess = { - __typename?: 'ImapSmtpCaldavConnectionSuccess'; - success: Scalars['Boolean']; -}; - -export type ImpersonateOutput = { - __typename?: 'ImpersonateOutput'; - loginToken: AuthToken; - workspace: WorkspaceUrlsAndId; -}; - -export type Index = { - __typename?: 'Index'; - createdAt: Scalars['DateTime']; - id: Scalars['UUID']; - indexFieldMetadataList: Array; - indexFieldMetadatas: IndexIndexFieldMetadatasConnection; - indexType: IndexType; - indexWhereClause?: Maybe; - isCustom?: Maybe; - isUnique: Scalars['Boolean']; - name: Scalars['String']; - objectMetadata: IndexObjectMetadataConnection; - updatedAt: Scalars['DateTime']; -}; - - -export type IndexIndexFieldMetadatasArgs = { - filter?: IndexFieldFilter; - paging?: CursorPaging; -}; - - -export type IndexObjectMetadataArgs = { - filter?: ObjectFilter; - paging?: CursorPaging; -}; - -export type IndexConnection = { - __typename?: 'IndexConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type IndexEdge = { - __typename?: 'IndexEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the Index */ - node: Index; -}; - -export type IndexField = { - __typename?: 'IndexField'; - createdAt: Scalars['DateTime']; - fieldMetadataId: Scalars['UUID']; - id: Scalars['UUID']; - order: Scalars['Float']; - updatedAt: Scalars['DateTime']; -}; - -export type IndexFieldEdge = { - __typename?: 'IndexFieldEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the IndexField */ - node: IndexField; -}; - -export type IndexFieldFilter = { - and?: InputMaybe>; - fieldMetadataId?: InputMaybe; - id?: InputMaybe; - or?: InputMaybe>; -}; - -export type IndexFilter = { - and?: InputMaybe>; - id?: InputMaybe; - isCustom?: InputMaybe; - or?: InputMaybe>; -}; - -export type IndexIndexFieldMetadatasConnection = { - __typename?: 'IndexIndexFieldMetadatasConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type IndexObjectMetadataConnection = { - __typename?: 'IndexObjectMetadataConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -/** Type of the index */ -export enum IndexType { - BTREE = 'BTREE', - GIN = 'GIN' -} - -export type InvalidatePassword = { - __typename?: 'InvalidatePassword'; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - -export type LinkMetadata = { - __typename?: 'LinkMetadata'; - label: Scalars['String']; - url: Scalars['String']; -}; - -export type LinksMetadata = { - __typename?: 'LinksMetadata'; - primaryLinkLabel: Scalars['String']; - primaryLinkUrl: Scalars['String']; - secondaryLinks?: Maybe>; -}; - -export type LoginToken = { - __typename?: 'LoginToken'; - loginToken: AuthToken; -}; - -export enum MessageChannelVisibility { - METADATA = 'METADATA', - SHARE_EVERYTHING = 'SHARE_EVERYTHING', - SUBJECT = 'SUBJECT' -} - -export enum ModelProvider { - ANTHROPIC = 'ANTHROPIC', - OPENAI = 'OPENAI' -} - -export type Mutation = { - __typename?: 'Mutation'; - activateWorkflowVersion: Scalars['Boolean']; - activateWorkspace: Workspace; - assignRoleToAgent: Scalars['Boolean']; - authorizeApp: AuthorizeApp; - checkCustomDomainValidRecords?: Maybe; - checkoutSession: BillingSessionOutput; - computeStepOutputSchema: Scalars['JSON']; - createApprovedAccessDomain: ApprovedAccessDomain; - createDatabaseConfigVariable: Scalars['Boolean']; - createDraftFromWorkflowVersion: WorkflowVersion; - createOIDCIdentityProvider: SetupSsoOutput; - createObjectEvent: Analytics; - createOneAgent: Agent; - createOneAppToken: AppToken; - createOneField: Field; - createOneObject: Object; - createOneRole: Role; - createOneServerlessFunction: ServerlessFunction; - createSAMLIdentityProvider: SetupSsoOutput; - createWorkflowVersionStep: WorkflowAction; - deactivateWorkflowVersion: Scalars['Boolean']; - deleteApprovedAccessDomain: Scalars['Boolean']; - deleteCurrentWorkspace: Workspace; - deleteDatabaseConfigVariable: Scalars['Boolean']; - deleteOneAgent: Agent; - deleteOneField: Field; - deleteOneObject: Object; - deleteOneRole: Scalars['String']; - deleteOneServerlessFunction: ServerlessFunction; - deleteSSOIdentityProvider: DeleteSsoOutput; - deleteUser: User; - deleteWorkflowVersionStep: WorkflowAction; - deleteWorkspaceInvitation: Scalars['String']; - disablePostgresProxy: PostgresCredentials; - editSSOIdentityProvider: EditSsoOutput; - emailPasswordResetLink: EmailPasswordResetLink; - enablePostgresProxy: PostgresCredentials; - endSubscriptionTrialPeriod: BillingEndTrialPeriodOutput; - executeOneServerlessFunction: ServerlessFunctionExecutionResult; - generateApiKeyToken: ApiKeyToken; - generateTransientToken: TransientToken; - getAuthTokensFromLoginToken: AuthTokens; - getAuthorizationUrlForSSO: GetAuthorizationUrlForSsoOutput; - getLoginTokenFromCredentials: LoginToken; - getLoginTokenFromEmailVerificationToken: GetLoginTokenFromEmailVerificationTokenOutput; - impersonate: ImpersonateOutput; - publishServerlessFunction: ServerlessFunction; - removeRoleFromAgent: Scalars['Boolean']; - renewToken: AuthTokens; - resendEmailVerificationToken: ResendEmailVerificationTokenOutput; - resendWorkspaceInvitation: SendInvitationsOutput; - runWorkflowVersion: WorkflowRun; - saveImapSmtpCaldav: ImapSmtpCaldavConnectionSuccess; - sendInvitations: SendInvitationsOutput; - signIn: AvailableWorkspacesAndAccessTokensOutput; - signUp: AvailableWorkspacesAndAccessTokensOutput; - signUpInNewWorkspace: SignUpOutput; - signUpInWorkspace: SignUpOutput; - skipBookOnboardingStep: OnboardingStepSuccess; - skipSyncEmailOnboardingStep: OnboardingStepSuccess; - submitFormStep: Scalars['Boolean']; - switchToEnterprisePlan: BillingUpdateOutput; - switchToYearlyInterval: BillingUpdateOutput; - trackAnalytics: Analytics; - updateDatabaseConfigVariable: Scalars['Boolean']; - updateLabPublicFeatureFlag: FeatureFlagDto; - updateOneAgent: Agent; - updateOneField: Field; - updateOneObject: Object; - updateOneRole: Role; - updateOneServerlessFunction: ServerlessFunction; - updatePasswordViaResetToken: InvalidatePassword; - updateWorkflowRunStep: WorkflowAction; - updateWorkflowVersionStep: WorkflowAction; - updateWorkspace: Workspace; - updateWorkspaceFeatureFlag: Scalars['Boolean']; - updateWorkspaceMemberRole: WorkspaceMember; - uploadFile: SignedFileDto; - uploadImage: SignedFileDto; - uploadProfilePicture: SignedFileDto; - uploadWorkspaceLogo: SignedFileDto; - upsertObjectPermissions: Array; - upsertSettingPermissions: Array; - userLookupAdminPanel: UserLookup; - validateApprovedAccessDomain: ApprovedAccessDomain; -}; - - -export type MutationActivateWorkflowVersionArgs = { - workflowVersionId: Scalars['String']; -}; - - -export type MutationActivateWorkspaceArgs = { - data: ActivateWorkspaceInput; -}; - - -export type MutationAssignRoleToAgentArgs = { - agentId: Scalars['UUID']; - roleId: Scalars['UUID']; -}; - - -export type MutationAuthorizeAppArgs = { - clientId: Scalars['String']; - codeChallenge?: InputMaybe; - redirectUrl: Scalars['String']; -}; - - -export type MutationCheckoutSessionArgs = { - plan?: BillingPlanKey; - recurringInterval: SubscriptionInterval; - requirePaymentMethod?: Scalars['Boolean']; - successUrlPath?: InputMaybe; -}; - - -export type MutationComputeStepOutputSchemaArgs = { - input: ComputeStepOutputSchemaInput; -}; - - -export type MutationCreateApprovedAccessDomainArgs = { - input: CreateApprovedAccessDomainInput; -}; - - -export type MutationCreateDatabaseConfigVariableArgs = { - key: Scalars['String']; - value: Scalars['JSON']; -}; - - -export type MutationCreateDraftFromWorkflowVersionArgs = { - input: CreateDraftFromWorkflowVersionInput; -}; - - -export type MutationCreateOidcIdentityProviderArgs = { - input: SetupOidcSsoInput; -}; - - -export type MutationCreateObjectEventArgs = { - event: Scalars['String']; - objectMetadataId: Scalars['String']; - properties?: InputMaybe; - recordId: Scalars['String']; -}; - - -export type MutationCreateOneAgentArgs = { - input: CreateAgentInput; -}; - - -export type MutationCreateOneFieldArgs = { - input: CreateOneFieldMetadataInput; -}; - - -export type MutationCreateOneRoleArgs = { - createRoleInput: CreateRoleInput; -}; - - -export type MutationCreateOneServerlessFunctionArgs = { - input: CreateServerlessFunctionInput; -}; - - -export type MutationCreateSamlIdentityProviderArgs = { - input: SetupSamlSsoInput; -}; - - -export type MutationCreateWorkflowVersionStepArgs = { - input: CreateWorkflowVersionStepInput; -}; - - -export type MutationDeactivateWorkflowVersionArgs = { - workflowVersionId: Scalars['String']; -}; - - -export type MutationDeleteApprovedAccessDomainArgs = { - input: DeleteApprovedAccessDomainInput; -}; - - -export type MutationDeleteDatabaseConfigVariableArgs = { - key: Scalars['String']; -}; - - -export type MutationDeleteOneAgentArgs = { - input: AgentIdInput; -}; - - -export type MutationDeleteOneFieldArgs = { - input: DeleteOneFieldInput; -}; - - -export type MutationDeleteOneObjectArgs = { - input: DeleteOneObjectInput; -}; - - -export type MutationDeleteOneRoleArgs = { - roleId: Scalars['String']; -}; - - -export type MutationDeleteOneServerlessFunctionArgs = { - input: ServerlessFunctionIdInput; -}; - - -export type MutationDeleteSsoIdentityProviderArgs = { - input: DeleteSsoInput; -}; - - -export type MutationDeleteWorkflowVersionStepArgs = { - input: DeleteWorkflowVersionStepInput; -}; - - -export type MutationDeleteWorkspaceInvitationArgs = { - appTokenId: Scalars['String']; -}; - - -export type MutationEditSsoIdentityProviderArgs = { - input: EditSsoInput; -}; - - -export type MutationEmailPasswordResetLinkArgs = { - email: Scalars['String']; - workspaceId: Scalars['String']; -}; - - -export type MutationExecuteOneServerlessFunctionArgs = { - input: ExecuteServerlessFunctionInput; -}; - - -export type MutationGenerateApiKeyTokenArgs = { - apiKeyId: Scalars['String']; - expiresAt: Scalars['String']; -}; - - -export type MutationGetAuthTokensFromLoginTokenArgs = { - loginToken: Scalars['String']; - origin: Scalars['String']; -}; - - -export type MutationGetAuthorizationUrlForSsoArgs = { - input: GetAuthorizationUrlForSsoInput; -}; - - -export type MutationGetLoginTokenFromCredentialsArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']; - origin: Scalars['String']; - password: Scalars['String']; -}; - - -export type MutationGetLoginTokenFromEmailVerificationTokenArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']; - emailVerificationToken: Scalars['String']; - origin: Scalars['String']; -}; - - -export type MutationImpersonateArgs = { - userId: Scalars['String']; - workspaceId: Scalars['String']; -}; - - -export type MutationPublishServerlessFunctionArgs = { - input: PublishServerlessFunctionInput; -}; - - -export type MutationRemoveRoleFromAgentArgs = { - agentId: Scalars['UUID']; -}; - - -export type MutationRenewTokenArgs = { - appToken: Scalars['String']; -}; - - -export type MutationResendEmailVerificationTokenArgs = { - email: Scalars['String']; - origin: Scalars['String']; -}; - - -export type MutationResendWorkspaceInvitationArgs = { - appTokenId: Scalars['String']; -}; - - -export type MutationRunWorkflowVersionArgs = { - input: RunWorkflowVersionInput; -}; - - -export type MutationSaveImapSmtpCaldavArgs = { - accountOwnerId: Scalars['String']; - accountType: AccountType; - connectionParameters: ConnectionParameters; - handle: Scalars['String']; - id?: InputMaybe; -}; - - -export type MutationSendInvitationsArgs = { - emails: Array; -}; - - -export type MutationSignInArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']; - password: Scalars['String']; -}; - - -export type MutationSignUpArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']; - password: Scalars['String']; -}; - - -export type MutationSignUpInWorkspaceArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']; - locale?: InputMaybe; - password: Scalars['String']; - verifyEmailNextPath?: InputMaybe; - workspaceId?: InputMaybe; - workspaceInviteHash?: InputMaybe; - workspacePersonalInviteToken?: InputMaybe; -}; - - -export type MutationSubmitFormStepArgs = { - input: SubmitFormStepInput; -}; - - -export type MutationTrackAnalyticsArgs = { - event?: InputMaybe; - name?: InputMaybe; - properties?: InputMaybe; - type: AnalyticsType; -}; - - -export type MutationUpdateDatabaseConfigVariableArgs = { - key: Scalars['String']; - value: Scalars['JSON']; -}; - - -export type MutationUpdateLabPublicFeatureFlagArgs = { - input: UpdateLabPublicFeatureFlagInput; -}; - - -export type MutationUpdateOneAgentArgs = { - input: UpdateAgentInput; -}; - - -export type MutationUpdateOneFieldArgs = { - input: UpdateOneFieldMetadataInput; -}; - - -export type MutationUpdateOneObjectArgs = { - input: UpdateOneObjectInput; -}; - - -export type MutationUpdateOneRoleArgs = { - updateRoleInput: UpdateRoleInput; -}; - - -export type MutationUpdateOneServerlessFunctionArgs = { - input: UpdateServerlessFunctionInput; -}; - - -export type MutationUpdatePasswordViaResetTokenArgs = { - newPassword: Scalars['String']; - passwordResetToken: Scalars['String']; -}; - - -export type MutationUpdateWorkflowRunStepArgs = { - input: UpdateWorkflowRunStepInput; -}; - - -export type MutationUpdateWorkflowVersionStepArgs = { - input: UpdateWorkflowVersionStepInput; -}; - - -export type MutationUpdateWorkspaceArgs = { - data: UpdateWorkspaceInput; -}; - - -export type MutationUpdateWorkspaceFeatureFlagArgs = { - featureFlag: Scalars['String']; - value: Scalars['Boolean']; - workspaceId: Scalars['String']; -}; - - -export type MutationUpdateWorkspaceMemberRoleArgs = { - roleId: Scalars['String']; - workspaceMemberId: Scalars['String']; -}; - - -export type MutationUploadFileArgs = { - file: Scalars['Upload']; - fileFolder?: InputMaybe; -}; - - -export type MutationUploadImageArgs = { - file: Scalars['Upload']; - fileFolder?: InputMaybe; -}; - - -export type MutationUploadProfilePictureArgs = { - file: Scalars['Upload']; -}; - - -export type MutationUploadWorkspaceLogoArgs = { - file: Scalars['Upload']; -}; - - -export type MutationUpsertObjectPermissionsArgs = { - upsertObjectPermissionsInput: UpsertObjectPermissionsInput; -}; - - -export type MutationUpsertSettingPermissionsArgs = { - upsertSettingPermissionsInput: UpsertSettingPermissionsInput; -}; - - -export type MutationUserLookupAdminPanelArgs = { - userIdentifier: Scalars['String']; -}; - - -export type MutationValidateApprovedAccessDomainArgs = { - input: ValidateApprovedAccessDomainInput; -}; - -export type Object = { - __typename?: 'Object'; - createdAt: Scalars['DateTime']; - dataSourceId: Scalars['String']; - description?: Maybe; - duplicateCriteria?: Maybe>>; - fields: ObjectFieldsConnection; - fieldsList: Array; - icon?: Maybe; - id: Scalars['UUID']; - imageIdentifierFieldMetadataId?: Maybe; - indexMetadataList: Array; - indexMetadatas: ObjectIndexMetadatasConnection; - isActive: Scalars['Boolean']; - isCustom: Scalars['Boolean']; - isLabelSyncedWithName: Scalars['Boolean']; - isRemote: Scalars['Boolean']; - isSearchable: Scalars['Boolean']; - isSystem: Scalars['Boolean']; - labelIdentifierFieldMetadataId?: Maybe; - labelPlural: Scalars['String']; - labelSingular: Scalars['String']; - namePlural: Scalars['String']; - nameSingular: Scalars['String']; - shortcut?: Maybe; - standardOverrides?: Maybe; - updatedAt: Scalars['DateTime']; -}; - - -export type ObjectFieldsArgs = { - filter?: FieldFilter; - paging?: CursorPaging; -}; - - -export type ObjectIndexMetadatasArgs = { - filter?: IndexFilter; - paging?: CursorPaging; -}; - -export type ObjectConnection = { - __typename?: 'ObjectConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type ObjectEdge = { - __typename?: 'ObjectEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the Object */ - node: Object; -}; - -export type ObjectFieldsConnection = { - __typename?: 'ObjectFieldsConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type ObjectFilter = { - and?: InputMaybe>; - id?: InputMaybe; - isActive?: InputMaybe; - isCustom?: InputMaybe; - isRemote?: InputMaybe; - isSearchable?: InputMaybe; - isSystem?: InputMaybe; - or?: InputMaybe>; -}; - -export type ObjectIndexMetadatasConnection = { - __typename?: 'ObjectIndexMetadatasConnection'; - /** Array of edges. */ - edges: Array; - /** Paging information */ - pageInfo: PageInfo; -}; - -export type ObjectPermission = { - __typename?: 'ObjectPermission'; - canDestroyObjectRecords?: Maybe; - canReadObjectRecords?: Maybe; - canSoftDeleteObjectRecords?: Maybe; - canUpdateObjectRecords?: Maybe; - objectMetadataId: Scalars['String']; -}; - -export type ObjectPermissionInput = { - canDestroyObjectRecords?: InputMaybe; - canReadObjectRecords?: InputMaybe; - canSoftDeleteObjectRecords?: InputMaybe; - canUpdateObjectRecords?: InputMaybe; - objectMetadataId: Scalars['String']; -}; - -export type ObjectRecordFilterInput = { - and?: InputMaybe>; - createdAt?: InputMaybe; - deletedAt?: InputMaybe; - id?: InputMaybe; - not?: InputMaybe; - or?: InputMaybe>; - updatedAt?: InputMaybe; -}; - -export type ObjectStandardOverrides = { - __typename?: 'ObjectStandardOverrides'; - description?: Maybe; - icon?: Maybe; - labelPlural?: Maybe; - labelSingular?: Maybe; - translations?: Maybe; -}; - -export type OnDbEventDto = { - __typename?: 'OnDbEventDTO'; - action: DatabaseEventAction; - eventDate: Scalars['DateTime']; - objectNameSingular: Scalars['String']; - record: Scalars['JSON']; - updatedFields?: Maybe>; -}; - -export type OnDbEventInput = { - action?: InputMaybe; - objectNameSingular?: InputMaybe; - recordId?: InputMaybe; -}; - -/** Onboarding status */ -export enum OnboardingStatus { - BOOK_ONBOARDING = 'BOOK_ONBOARDING', - COMPLETED = 'COMPLETED', - INVITE_TEAM = 'INVITE_TEAM', - PLAN_REQUIRED = 'PLAN_REQUIRED', - PROFILE_CREATION = 'PROFILE_CREATION', - SYNC_EMAIL = 'SYNC_EMAIL', - WORKSPACE_ACTIVATION = 'WORKSPACE_ACTIVATION' -} - -export type OnboardingStepSuccess = { - __typename?: 'OnboardingStepSuccess'; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - -export type PageInfo = { - __typename?: 'PageInfo'; - /** The cursor of the last returned record. */ - endCursor?: Maybe; - /** true if paging forward and there are more records. */ - hasNextPage?: Maybe; - /** true if paging backwards and there are more records. */ - hasPreviousPage?: Maybe; - /** The cursor of the first returned record. */ - startCursor?: Maybe; -}; - -export enum PermissionsOnAllObjectRecords { - DESTROY_ALL_OBJECT_RECORDS = 'DESTROY_ALL_OBJECT_RECORDS', - READ_ALL_OBJECT_RECORDS = 'READ_ALL_OBJECT_RECORDS', - SOFT_DELETE_ALL_OBJECT_RECORDS = 'SOFT_DELETE_ALL_OBJECT_RECORDS', - UPDATE_ALL_OBJECT_RECORDS = 'UPDATE_ALL_OBJECT_RECORDS' -} - -export type PostgresCredentials = { - __typename?: 'PostgresCredentials'; - id: Scalars['UUID']; - password: Scalars['String']; - user: Scalars['String']; - workspaceId: Scalars['String']; -}; - -export type PublicFeatureFlag = { - __typename?: 'PublicFeatureFlag'; - key: FeatureFlagKey; - metadata: PublicFeatureFlagMetadata; -}; - -export type PublicFeatureFlagMetadata = { - __typename?: 'PublicFeatureFlagMetadata'; - description: Scalars['String']; - imagePath: Scalars['String']; - label: Scalars['String']; -}; - -export type PublicWorkspaceDataOutput = { - __typename?: 'PublicWorkspaceDataOutput'; - authProviders: AuthProviders; - displayName?: Maybe; - id: Scalars['String']; - logo?: Maybe; - workspaceUrls: WorkspaceUrls; -}; - -export type PublishServerlessFunctionInput = { - /** The id of the function. */ - id: Scalars['ID']; -}; - -export type Query = { - __typename?: 'Query'; - billingPortalSession: BillingSessionOutput; - checkUserExists: CheckUserExistOutput; - checkWorkspaceInviteHashIsValid: WorkspaceInviteHashValid; - currentUser: User; - currentWorkspace: Workspace; - field: Field; - fields: FieldConnection; - findManyAgents: Array; - findManyServerlessFunctions: Array; - findOneAgent: Agent; - findOneServerlessFunction: ServerlessFunction; - findWorkspaceFromInviteHash: Workspace; - findWorkspaceInvitations: Array; - getApprovedAccessDomains: Array; - getAvailablePackages: Scalars['JSON']; - getConfigVariablesGrouped: ConfigVariablesOutput; - getConnectedImapSmtpCaldavAccount: ConnectedImapSmtpCaldavAccount; - getDatabaseConfigVariable: ConfigVariable; - getIndicatorHealthStatus: AdminPanelHealthServiceData; - getMeteredProductsUsage: Array; - getPostgresCredentials?: Maybe; - getPublicWorkspaceDataByDomain: PublicWorkspaceDataOutput; - getQueueMetrics: QueueMetricsData; - getRoles: Array; - getSSOIdentityProviders: Array; - getServerlessFunctionSourceCode?: Maybe; - getSystemHealthStatus: SystemHealth; - getTimelineCalendarEventsFromCompanyId: TimelineCalendarEventsWithTotal; - getTimelineCalendarEventsFromPersonId: TimelineCalendarEventsWithTotal; - getTimelineThreadsFromCompanyId: TimelineThreadsWithTotal; - getTimelineThreadsFromPersonId: TimelineThreadsWithTotal; - index: Index; - indexMetadatas: IndexConnection; - object: Object; - objects: ObjectConnection; - plans: Array; - search: SearchResultConnection; - validatePasswordResetToken: ValidatePasswordResetToken; - versionInfo: VersionInfo; -}; - - -export type QueryBillingPortalSessionArgs = { - returnUrlPath?: InputMaybe; -}; - - -export type QueryCheckUserExistsArgs = { - captchaToken?: InputMaybe; - email: Scalars['String']; -}; - - -export type QueryCheckWorkspaceInviteHashIsValidArgs = { - inviteHash: Scalars['String']; -}; - - -export type QueryFindOneAgentArgs = { - input: AgentIdInput; -}; - - -export type QueryFindOneServerlessFunctionArgs = { - input: ServerlessFunctionIdInput; -}; - - -export type QueryFindWorkspaceFromInviteHashArgs = { - inviteHash: Scalars['String']; -}; - - -export type QueryGetAvailablePackagesArgs = { - input: ServerlessFunctionIdInput; -}; - - -export type QueryGetConnectedImapSmtpCaldavAccountArgs = { - id: Scalars['String']; -}; - - -export type QueryGetDatabaseConfigVariableArgs = { - key: Scalars['String']; -}; - - -export type QueryGetIndicatorHealthStatusArgs = { - indicatorId: HealthIndicatorId; -}; - - -export type QueryGetPublicWorkspaceDataByDomainArgs = { - origin?: InputMaybe; -}; - - -export type QueryGetQueueMetricsArgs = { - queueName: Scalars['String']; - timeRange?: InputMaybe; -}; - - -export type QueryGetServerlessFunctionSourceCodeArgs = { - input: GetServerlessFunctionSourceCodeInput; -}; - - -export type QueryGetTimelineCalendarEventsFromCompanyIdArgs = { - companyId: Scalars['UUID']; - page: Scalars['Int']; - pageSize: Scalars['Int']; -}; - - -export type QueryGetTimelineCalendarEventsFromPersonIdArgs = { - page: Scalars['Int']; - pageSize: Scalars['Int']; - personId: Scalars['UUID']; -}; - - -export type QueryGetTimelineThreadsFromCompanyIdArgs = { - companyId: Scalars['UUID']; - page: Scalars['Int']; - pageSize: Scalars['Int']; -}; - - -export type QueryGetTimelineThreadsFromPersonIdArgs = { - page: Scalars['Int']; - pageSize: Scalars['Int']; - personId: Scalars['UUID']; -}; - - -export type QuerySearchArgs = { - after?: InputMaybe; - excludedObjectNameSingulars?: InputMaybe>; - filter?: InputMaybe; - includedObjectNameSingulars?: InputMaybe>; - limit: Scalars['Int']; - searchInput: Scalars['String']; -}; - - -export type QueryValidatePasswordResetTokenArgs = { - passwordResetToken: Scalars['String']; -}; - -export type QueueMetricsData = { - __typename?: 'QueueMetricsData'; - data: Array; - details?: Maybe; - queueName: Scalars['String']; - timeRange: QueueMetricsTimeRange; - workers: Scalars['Float']; -}; - -export type QueueMetricsDataPoint = { - __typename?: 'QueueMetricsDataPoint'; - x: Scalars['Float']; - y: Scalars['Float']; -}; - -export type QueueMetricsSeries = { - __typename?: 'QueueMetricsSeries'; - data: Array; - id: Scalars['String']; -}; - -export enum QueueMetricsTimeRange { - FourHours = 'FourHours', - OneDay = 'OneDay', - OneHour = 'OneHour', - SevenDays = 'SevenDays', - TwelveHours = 'TwelveHours' -} - -export type Relation = { - __typename?: 'Relation'; - sourceFieldMetadata: Field; - sourceObjectMetadata: Object; - targetFieldMetadata: Field; - targetObjectMetadata: Object; - type: RelationType; -}; - -/** Relation type */ -export enum RelationType { - MANY_TO_ONE = 'MANY_TO_ONE', - ONE_TO_MANY = 'ONE_TO_MANY' -} - -export type RemoteServer = { - __typename?: 'RemoteServer'; - createdAt: Scalars['DateTime']; - foreignDataWrapperId: Scalars['ID']; - foreignDataWrapperOptions?: Maybe; - foreignDataWrapperType: Scalars['String']; - id: Scalars['ID']; - label: Scalars['String']; - schema?: Maybe; - updatedAt: Scalars['DateTime']; - userMappingOptions?: Maybe; -}; - -export type RemoteTable = { - __typename?: 'RemoteTable'; - id?: Maybe; - name: Scalars['String']; - schema?: Maybe; - schemaPendingUpdates?: Maybe>; - status: RemoteTableStatus; -}; - -/** Status of the table */ -export enum RemoteTableStatus { - NOT_SYNCED = 'NOT_SYNCED', - SYNCED = 'SYNCED' -} - -export type ResendEmailVerificationTokenOutput = { - __typename?: 'ResendEmailVerificationTokenOutput'; - success: Scalars['Boolean']; -}; - -export type Role = { - __typename?: 'Role'; - canDestroyAllObjectRecords: Scalars['Boolean']; - canReadAllObjectRecords: Scalars['Boolean']; - canSoftDeleteAllObjectRecords: Scalars['Boolean']; - canUpdateAllObjectRecords: Scalars['Boolean']; - canUpdateAllSettings: Scalars['Boolean']; - description?: Maybe; - icon?: Maybe; - id: Scalars['String']; - isEditable: Scalars['Boolean']; - label: Scalars['String']; - objectPermissions?: Maybe>; - settingPermissions?: Maybe>; - workspaceMembers: Array; -}; - -export type RunWorkflowVersionInput = { - /** Execution result in JSON format */ - payload?: InputMaybe; - /** Workflow run ID */ - workflowRunId?: InputMaybe; - /** Workflow version ID */ - workflowVersionId: Scalars['String']; -}; - -export type SsoConnection = { - __typename?: 'SSOConnection'; - id: Scalars['String']; - issuer: Scalars['String']; - name: Scalars['String']; - status: SsoIdentityProviderStatus; - type: IdentityProviderType; -}; - -export type SsoIdentityProvider = { - __typename?: 'SSOIdentityProvider'; - id: Scalars['String']; - issuer: Scalars['String']; - name: Scalars['String']; - status: SsoIdentityProviderStatus; - type: IdentityProviderType; -}; - -export enum SsoIdentityProviderStatus { - Active = 'Active', - Error = 'Error', - Inactive = 'Inactive' -} - -export type SearchRecord = { - __typename?: 'SearchRecord'; - imageUrl?: Maybe; - label: Scalars['String']; - objectNameSingular: Scalars['String']; - recordId: Scalars['String']; - tsRank: Scalars['Float']; - tsRankCD: Scalars['Float']; -}; - -export type SearchResultConnection = { - __typename?: 'SearchResultConnection'; - edges: Array; - pageInfo: SearchResultPageInfo; -}; - -export type SearchResultEdge = { - __typename?: 'SearchResultEdge'; - cursor: Scalars['String']; - node: SearchRecord; -}; - -export type SearchResultPageInfo = { - __typename?: 'SearchResultPageInfo'; - endCursor?: Maybe; - hasNextPage: Scalars['Boolean']; -}; - -export type SendInvitationsOutput = { - __typename?: 'SendInvitationsOutput'; - errors: Array; - result: Array; - /** Boolean that confirms query was dispatched */ - success: Scalars['Boolean']; -}; - -export type Sentry = { - __typename?: 'Sentry'; - dsn?: Maybe; - environment?: Maybe; - release?: Maybe; -}; - -export type ServerlessFunction = { - __typename?: 'ServerlessFunction'; - createdAt: Scalars['DateTime']; - description?: Maybe; - id: Scalars['UUID']; - latestVersion?: Maybe; - latestVersionInputSchema?: Maybe; - name: Scalars['String']; - publishedVersions: Array; - runtime: Scalars['String']; - timeoutSeconds: Scalars['Float']; - updatedAt: Scalars['DateTime']; -}; - -export type ServerlessFunctionExecutionResult = { - __typename?: 'ServerlessFunctionExecutionResult'; - /** Execution result in JSON format */ - data?: Maybe; - /** Execution duration in milliseconds */ - duration: Scalars['Float']; - /** Execution error in JSON format */ - error?: Maybe; - /** Execution Logs */ - logs: Scalars['String']; - /** Execution status */ - status: ServerlessFunctionExecutionStatus; -}; - -/** Status of the serverless function execution */ -export enum ServerlessFunctionExecutionStatus { - ERROR = 'ERROR', - IDLE = 'IDLE', - SUCCESS = 'SUCCESS' -} - -export type ServerlessFunctionIdInput = { - /** The id of the function. */ - id: Scalars['ID']; -}; - -export type SettingPermission = { - __typename?: 'SettingPermission'; - id: Scalars['String']; - roleId: Scalars['String']; - setting: SettingPermissionType; -}; - -export enum SettingPermissionType { - ADMIN_PANEL = 'ADMIN_PANEL', - API_KEYS_AND_WEBHOOKS = 'API_KEYS_AND_WEBHOOKS', - DATA_MODEL = 'DATA_MODEL', - ROLES = 'ROLES', - SECURITY = 'SECURITY', - WORKFLOWS = 'WORKFLOWS', - WORKSPACE = 'WORKSPACE', - WORKSPACE_MEMBERS = 'WORKSPACE_MEMBERS' -} - -export type SetupOidcSsoInput = { - clientID: Scalars['String']; - clientSecret: Scalars['String']; - issuer: Scalars['String']; - name: Scalars['String']; -}; - -export type SetupSamlSsoInput = { - certificate: Scalars['String']; - fingerprint?: InputMaybe; - id: Scalars['String']; - issuer: Scalars['String']; - name: Scalars['String']; - ssoURL: Scalars['String']; -}; - -export type SetupSsoOutput = { - __typename?: 'SetupSsoOutput'; - id: Scalars['String']; - issuer: Scalars['String']; - name: Scalars['String']; - status: SsoIdentityProviderStatus; - type: IdentityProviderType; -}; - -export type SignUpOutput = { - __typename?: 'SignUpOutput'; - loginToken: AuthToken; - workspace: WorkspaceUrlsAndId; -}; - -export type SignedFileDto = { - __typename?: 'SignedFileDTO'; - path: Scalars['String']; - token: Scalars['String']; -}; - -export type StandardOverrides = { - __typename?: 'StandardOverrides'; - description?: Maybe; - icon?: Maybe; - label?: Maybe; - translations?: Maybe; -}; - -export type SubmitFormStepInput = { - /** Form response in JSON format */ - response: Scalars['JSON']; - /** Workflow version ID */ - stepId: Scalars['String']; - /** Workflow run ID */ - workflowRunId: Scalars['String']; -}; - -export type Subscription = { - __typename?: 'Subscription'; - onDbEvent: OnDbEventDto; -}; - - -export type SubscriptionOnDbEventArgs = { - input: OnDbEventInput; -}; - -export enum SubscriptionInterval { - Day = 'Day', - Month = 'Month', - Week = 'Week', - Year = 'Year' -} - -export enum SubscriptionStatus { - Active = 'Active', - Canceled = 'Canceled', - Incomplete = 'Incomplete', - IncompleteExpired = 'IncompleteExpired', - PastDue = 'PastDue', - Paused = 'Paused', - Trialing = 'Trialing', - Unpaid = 'Unpaid' -} - -export type Support = { - __typename?: 'Support'; - supportDriver: SupportDriver; - supportFrontChatId?: Maybe; -}; - -export enum SupportDriver { - FRONT = 'FRONT', - NONE = 'NONE' -} - -export type SystemHealth = { - __typename?: 'SystemHealth'; - services: Array; -}; - -export type SystemHealthService = { - __typename?: 'SystemHealthService'; - id: HealthIndicatorId; - label: Scalars['String']; - status: AdminPanelHealthServiceStatus; -}; - -export type TimelineCalendarEvent = { - __typename?: 'TimelineCalendarEvent'; - conferenceLink: LinksMetadata; - conferenceSolution: Scalars['String']; - description: Scalars['String']; - endsAt: Scalars['DateTime']; - id: Scalars['UUID']; - isCanceled: Scalars['Boolean']; - isFullDay: Scalars['Boolean']; - location: Scalars['String']; - participants: Array; - startsAt: Scalars['DateTime']; - title: Scalars['String']; - visibility: CalendarChannelVisibility; -}; - -export type TimelineCalendarEventParticipant = { - __typename?: 'TimelineCalendarEventParticipant'; - avatarUrl: Scalars['String']; - displayName: Scalars['String']; - firstName: Scalars['String']; - handle: Scalars['String']; - lastName: Scalars['String']; - personId?: Maybe; - workspaceMemberId?: Maybe; -}; - -export type TimelineCalendarEventsWithTotal = { - __typename?: 'TimelineCalendarEventsWithTotal'; - timelineCalendarEvents: Array; - totalNumberOfCalendarEvents: Scalars['Int']; -}; - -export type TimelineThread = { - __typename?: 'TimelineThread'; - firstParticipant: TimelineThreadParticipant; - id: Scalars['UUID']; - lastMessageBody: Scalars['String']; - lastMessageReceivedAt: Scalars['DateTime']; - lastTwoParticipants: Array; - numberOfMessagesInThread: Scalars['Float']; - participantCount: Scalars['Float']; - read: Scalars['Boolean']; - subject: Scalars['String']; - visibility: MessageChannelVisibility; -}; - -export type TimelineThreadParticipant = { - __typename?: 'TimelineThreadParticipant'; - avatarUrl: Scalars['String']; - displayName: Scalars['String']; - firstName: Scalars['String']; - handle: Scalars['String']; - lastName: Scalars['String']; - personId?: Maybe; - workspaceMemberId?: Maybe; -}; - -export type TimelineThreadsWithTotal = { - __typename?: 'TimelineThreadsWithTotal'; - timelineThreads: Array; - totalNumberOfThreads: Scalars['Int']; -}; - -export type TransientToken = { - __typename?: 'TransientToken'; - transientToken: AuthToken; -}; - -export type UuidFilter = { - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - in?: InputMaybe>; - is?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - neq?: InputMaybe; -}; - -export type UuidFilterComparison = { - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - iLike?: InputMaybe; - in?: InputMaybe>; - is?: InputMaybe; - isNot?: InputMaybe; - like?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - neq?: InputMaybe; - notILike?: InputMaybe; - notIn?: InputMaybe>; - notLike?: InputMaybe; -}; - -export type UpdateAgentInput = { - description?: InputMaybe; - id: Scalars['UUID']; - modelId: Scalars['String']; - name: Scalars['String']; - prompt: Scalars['String']; - responseFormat?: InputMaybe; -}; - -export type UpdateFieldInput = { - defaultValue?: InputMaybe; - description?: InputMaybe; - icon?: InputMaybe; - isActive?: InputMaybe; - isLabelSyncedWithName?: InputMaybe; - isNullable?: InputMaybe; - isSystem?: InputMaybe; - isUnique?: InputMaybe; - label?: InputMaybe; - name?: InputMaybe; - options?: InputMaybe; - settings?: InputMaybe; -}; - -export type UpdateLabPublicFeatureFlagInput = { - publicFeatureFlag: Scalars['String']; - value: Scalars['Boolean']; -}; - -export type UpdateObjectPayload = { - description?: InputMaybe; - icon?: InputMaybe; - imageIdentifierFieldMetadataId?: InputMaybe; - isActive?: InputMaybe; - isLabelSyncedWithName?: InputMaybe; - labelIdentifierFieldMetadataId?: InputMaybe; - labelPlural?: InputMaybe; - labelSingular?: InputMaybe; - namePlural?: InputMaybe; - nameSingular?: InputMaybe; - shortcut?: InputMaybe; -}; - -export type UpdateOneFieldMetadataInput = { - /** The id of the record to update */ - id: Scalars['UUID']; - /** The record to update */ - update: UpdateFieldInput; -}; - -export type UpdateOneObjectInput = { - /** The id of the object to update */ - id: Scalars['UUID']; - update: UpdateObjectPayload; -}; - -export type UpdateRoleInput = { - /** The id of the role to update */ - id: Scalars['UUID']; - update: UpdateRolePayload; -}; - -export type UpdateRolePayload = { - canDestroyAllObjectRecords?: InputMaybe; - canReadAllObjectRecords?: InputMaybe; - canSoftDeleteAllObjectRecords?: InputMaybe; - canUpdateAllObjectRecords?: InputMaybe; - canUpdateAllSettings?: InputMaybe; - description?: InputMaybe; - icon?: InputMaybe; - label?: InputMaybe; -}; - -export type UpdateServerlessFunctionInput = { - code: Scalars['JSON']; - description?: InputMaybe; - /** Id of the serverless function to execute */ - id: Scalars['UUID']; - name: Scalars['String']; - timeoutSeconds?: InputMaybe; -}; - -export type UpdateWorkflowRunStepInput = { - /** Step to update in JSON format */ - step: Scalars['JSON']; - /** Workflow run ID */ - workflowRunId: Scalars['String']; -}; - -export type UpdateWorkflowVersionStepInput = { - /** Step to update in JSON format */ - step: Scalars['JSON']; - /** Workflow version ID */ - workflowVersionId: Scalars['String']; -}; - -export type UpdateWorkspaceInput = { - allowImpersonation?: InputMaybe; - customDomain?: InputMaybe; - defaultRoleId?: InputMaybe; - displayName?: InputMaybe; - inviteHash?: InputMaybe; - isGoogleAuthEnabled?: InputMaybe; - isMicrosoftAuthEnabled?: InputMaybe; - isPasswordAuthEnabled?: InputMaybe; - isPublicInviteLinkEnabled?: InputMaybe; - logo?: InputMaybe; - subdomain?: InputMaybe; -}; - -export type UpsertObjectPermissionsInput = { - objectPermissions: Array; - roleId: Scalars['String']; -}; - -export type UpsertSettingPermissionsInput = { - roleId: Scalars['String']; - settingPermissionKeys: Array; -}; - -export type User = { - __typename?: 'User'; - availableWorkspaces: AvailableWorkspaces; - canAccessFullAdminPanel: Scalars['Boolean']; - canImpersonate: Scalars['Boolean']; - createdAt: Scalars['DateTime']; - currentUserWorkspace?: Maybe; - currentWorkspace?: Maybe; - defaultAvatarUrl?: Maybe; - deletedAt?: Maybe; - deletedWorkspaceMembers?: Maybe>; - disabled?: Maybe; - email: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['UUID']; - isEmailVerified: Scalars['Boolean']; - lastName: Scalars['String']; - locale: Scalars['String']; - onboardingStatus?: Maybe; - passwordHash?: Maybe; - supportUserHash?: Maybe; - updatedAt: Scalars['DateTime']; - userVars?: Maybe; - workspaceMember?: Maybe; - workspaceMembers?: Maybe>; - workspaces: Array; -}; - -export type UserEdge = { - __typename?: 'UserEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the User */ - node: User; -}; - -export type UserInfo = { - __typename?: 'UserInfo'; - email: Scalars['String']; - firstName?: Maybe; - id: Scalars['String']; - lastName?: Maybe; -}; - -export type UserLookup = { - __typename?: 'UserLookup'; - user: UserInfo; - workspaces: Array; -}; - -export type UserMappingOptionsUser = { - __typename?: 'UserMappingOptionsUser'; - user?: Maybe; -}; - -export type UserWorkspace = { - __typename?: 'UserWorkspace'; - createdAt: Scalars['DateTime']; - deletedAt?: Maybe; - id: Scalars['UUID']; - objectPermissions?: Maybe>; - /** @deprecated Use objectPermissions instead */ - objectRecordsPermissions?: Maybe>; - settingsPermissions?: Maybe>; - updatedAt: Scalars['DateTime']; - user: User; - userId: Scalars['String']; - workspace?: Maybe; - workspaceId: Scalars['String']; -}; - -export type ValidateApprovedAccessDomainInput = { - approvedAccessDomainId: Scalars['String']; - validationToken: Scalars['String']; -}; - -export type ValidatePasswordResetToken = { - __typename?: 'ValidatePasswordResetToken'; - email: Scalars['String']; - id: Scalars['String']; -}; - -export type VersionInfo = { - __typename?: 'VersionInfo'; - currentVersion?: Maybe; - latestVersion: Scalars['String']; -}; - -export type WorkerQueueMetrics = { - __typename?: 'WorkerQueueMetrics'; - active: Scalars['Float']; - completed: Scalars['Float']; - completedData?: Maybe>; - delayed: Scalars['Float']; - failed: Scalars['Float']; - failedData?: Maybe>; - failureRate: Scalars['Float']; - waiting: Scalars['Float']; -}; - -export type WorkflowAction = { - __typename?: 'WorkflowAction'; - id: Scalars['UUID']; - name: Scalars['String']; - nextStepIds?: Maybe>; - settings: Scalars['JSON']; - type: Scalars['String']; - valid: Scalars['Boolean']; -}; - -export type WorkflowRun = { - __typename?: 'WorkflowRun'; - workflowRunId: Scalars['UUID']; -}; - -export type WorkflowVersion = { - __typename?: 'WorkflowVersion'; - id: Scalars['UUID']; -}; - -export type Workspace = { - __typename?: 'Workspace'; - activationStatus: WorkspaceActivationStatus; - allowImpersonation: Scalars['Boolean']; - billingSubscriptions: Array; - createdAt: Scalars['DateTime']; - currentBillingSubscription?: Maybe; - customDomain?: Maybe; - databaseSchema: Scalars['String']; - databaseUrl: Scalars['String']; - defaultRole?: Maybe; - deletedAt?: Maybe; - displayName?: Maybe; - featureFlags?: Maybe>; - hasValidEnterpriseKey: Scalars['Boolean']; - id: Scalars['UUID']; - inviteHash?: Maybe; - isCustomDomainEnabled: Scalars['Boolean']; - isGoogleAuthEnabled: Scalars['Boolean']; - isMicrosoftAuthEnabled: Scalars['Boolean']; - isPasswordAuthEnabled: Scalars['Boolean']; - isPublicInviteLinkEnabled: Scalars['Boolean']; - logo?: Maybe; - metadataVersion: Scalars['Float']; - subdomain: Scalars['String']; - updatedAt: Scalars['DateTime']; - version?: Maybe; - workspaceMembersCount?: Maybe; - workspaceUrls: WorkspaceUrls; -}; - -export enum WorkspaceActivationStatus { - ACTIVE = 'ACTIVE', - INACTIVE = 'INACTIVE', - ONGOING_CREATION = 'ONGOING_CREATION', - PENDING_CREATION = 'PENDING_CREATION', - SUSPENDED = 'SUSPENDED' -} - -export type WorkspaceEdge = { - __typename?: 'WorkspaceEdge'; - /** Cursor for this node. */ - cursor: Scalars['ConnectionCursor']; - /** The node containing the Workspace */ - node: Workspace; -}; - -export type WorkspaceInfo = { - __typename?: 'WorkspaceInfo'; - allowImpersonation: Scalars['Boolean']; - featureFlags: Array; - id: Scalars['String']; - logo?: Maybe; - name: Scalars['String']; - totalUsers: Scalars['Float']; - users: Array; -}; - -export type WorkspaceInvitation = { - __typename?: 'WorkspaceInvitation'; - email: Scalars['String']; - expiresAt: Scalars['DateTime']; - id: Scalars['UUID']; -}; - -export type WorkspaceInviteHashValid = { - __typename?: 'WorkspaceInviteHashValid'; - isValid: Scalars['Boolean']; -}; - -export type WorkspaceMember = { - __typename?: 'WorkspaceMember'; - avatarUrl?: Maybe; - colorScheme: Scalars['String']; - dateFormat?: Maybe; - id: Scalars['UUID']; - locale?: Maybe; - name: FullName; - roles?: Maybe>; - timeFormat?: Maybe; - timeZone?: Maybe; - userEmail: Scalars['String']; - userWorkspaceId?: Maybe; -}; - -/** Date format as Month first, Day first, Year first or system as default */ -export enum WorkspaceMemberDateFormatEnum { - DAY_FIRST = 'DAY_FIRST', - MONTH_FIRST = 'MONTH_FIRST', - SYSTEM = 'SYSTEM', - YEAR_FIRST = 'YEAR_FIRST' -} - -/** Time time as Military, Standard or system as default */ -export enum WorkspaceMemberTimeFormatEnum { - HOUR_12 = 'HOUR_12', - HOUR_24 = 'HOUR_24', - SYSTEM = 'SYSTEM' -} - -export type WorkspaceNameAndId = { - __typename?: 'WorkspaceNameAndId'; - displayName?: Maybe; - id: Scalars['String']; -}; - -export type WorkspaceUrls = { - __typename?: 'WorkspaceUrls'; - customUrl?: Maybe; - subdomainUrl: Scalars['String']; -}; - -export type WorkspaceUrlsAndId = { - __typename?: 'WorkspaceUrlsAndId'; - id: Scalars['String']; - workspaceUrls: WorkspaceUrls; -}; - -export type TimelineCalendarEventFragmentFragment = { __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: CalendarChannelVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }; - -export type TimelineCalendarEventParticipantFragmentFragment = { __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }; - -export type TimelineCalendarEventsWithTotalFragmentFragment = { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: CalendarChannelVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> }; - -export type GetTimelineCalendarEventsFromCompanyIdQueryVariables = Exact<{ - companyId: Scalars['UUID']; - page: Scalars['Int']; - pageSize: Scalars['Int']; -}>; - - -export type GetTimelineCalendarEventsFromCompanyIdQuery = { __typename?: 'Query', getTimelineCalendarEventsFromCompanyId: { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: CalendarChannelVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } }; - -export type GetTimelineCalendarEventsFromPersonIdQueryVariables = Exact<{ - personId: Scalars['UUID']; - page: Scalars['Int']; - pageSize: Scalars['Int']; -}>; - - -export type GetTimelineCalendarEventsFromPersonIdQuery = { __typename?: 'Query', getTimelineCalendarEventsFromPersonId: { __typename?: 'TimelineCalendarEventsWithTotal', totalNumberOfCalendarEvents: number, timelineCalendarEvents: Array<{ __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: CalendarChannelVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } }; - -export type ParticipantFragmentFragment = { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }; - -export type TimelineThreadFragmentFragment = { __typename?: 'TimelineThread', id: any, read: boolean, visibility: MessageChannelVisibility, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }; - -export type TimelineThreadsWithTotalFragmentFragment = { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: any, read: boolean, visibility: MessageChannelVisibility, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> }; - -export type GetTimelineThreadsFromCompanyIdQueryVariables = Exact<{ - companyId: Scalars['UUID']; - page: Scalars['Int']; - pageSize: Scalars['Int']; -}>; - - -export type GetTimelineThreadsFromCompanyIdQuery = { __typename?: 'Query', getTimelineThreadsFromCompanyId: { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: any, read: boolean, visibility: MessageChannelVisibility, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } }; - -export type GetTimelineThreadsFromPersonIdQueryVariables = Exact<{ - personId: Scalars['UUID']; - page: Scalars['Int']; - pageSize: Scalars['Int']; -}>; - - -export type GetTimelineThreadsFromPersonIdQuery = { __typename?: 'Query', getTimelineThreadsFromPersonId: { __typename?: 'TimelineThreadsWithTotal', totalNumberOfThreads: number, timelineThreads: Array<{ __typename?: 'TimelineThread', id: any, read: boolean, visibility: MessageChannelVisibility, lastMessageReceivedAt: string, lastMessageBody: string, subject: string, numberOfMessagesInThread: number, participantCount: number, firstParticipant: { __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }, lastTwoParticipants: Array<{ __typename?: 'TimelineThreadParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> }> } }; - -export type TrackAnalyticsMutationVariables = Exact<{ - type: AnalyticsType; - event?: InputMaybe; - name?: InputMaybe; - properties?: InputMaybe; -}>; - - -export type TrackAnalyticsMutation = { __typename?: 'Mutation', trackAnalytics: { __typename?: 'Analytics', success: boolean } }; - -export type UploadFileMutationVariables = Exact<{ - file: Scalars['Upload']; - fileFolder?: InputMaybe; -}>; - - -export type UploadFileMutation = { __typename?: 'Mutation', uploadFile: { __typename?: 'SignedFileDTO', path: string, token: string } }; - -export type UploadImageMutationVariables = Exact<{ - file: Scalars['Upload']; - fileFolder?: InputMaybe; -}>; - - -export type UploadImageMutation = { __typename?: 'Mutation', uploadImage: { __typename?: 'SignedFileDTO', path: string, token: string } }; - -export type AuthTokenFragmentFragment = { __typename?: 'AuthToken', token: string, expiresAt: string }; - -export type AuthTokensFragmentFragment = { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } }; - -export type AvailableWorkspaceFragmentFragment = { __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }; - -export type AvailableWorkspacesFragmentFragment = { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> }; - -export type AvailableSsoIdentityProvidersFragmentFragment = { __typename?: 'FindAvailableSSOIDPOutput', id: string, issuer: string, name: string, status: SsoIdentityProviderStatus, workspace: { __typename?: 'WorkspaceNameAndId', id: string, displayName?: string | null } }; - -export type AuthorizeAppMutationVariables = Exact<{ - clientId: Scalars['String']; - codeChallenge: Scalars['String']; - redirectUrl: Scalars['String']; -}>; - - -export type AuthorizeAppMutation = { __typename?: 'Mutation', authorizeApp: { __typename?: 'AuthorizeApp', redirectUrl: string } }; - -export type EmailPasswordResetLinkMutationVariables = Exact<{ - email: Scalars['String']; - workspaceId: Scalars['String']; -}>; - - -export type EmailPasswordResetLinkMutation = { __typename?: 'Mutation', emailPasswordResetLink: { __typename?: 'EmailPasswordResetLink', success: boolean } }; - -export type GenerateApiKeyTokenMutationVariables = Exact<{ - apiKeyId: Scalars['String']; - expiresAt: Scalars['String']; -}>; - - -export type GenerateApiKeyTokenMutation = { __typename?: 'Mutation', generateApiKeyToken: { __typename?: 'ApiKeyToken', token: string } }; - -export type GenerateTransientTokenMutationVariables = Exact<{ [key: string]: never; }>; - - -export type GenerateTransientTokenMutation = { __typename?: 'Mutation', generateTransientToken: { __typename?: 'TransientToken', transientToken: { __typename?: 'AuthToken', token: string } } }; - -export type GetAuthTokensFromLoginTokenMutationVariables = Exact<{ - loginToken: Scalars['String']; - origin: Scalars['String']; -}>; - - -export type GetAuthTokensFromLoginTokenMutation = { __typename?: 'Mutation', getAuthTokensFromLoginToken: { __typename?: 'AuthTokens', tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; - -export type GetAuthorizationUrlForSsoMutationVariables = Exact<{ - input: GetAuthorizationUrlForSsoInput; -}>; - - -export type GetAuthorizationUrlForSsoMutation = { __typename?: 'Mutation', getAuthorizationUrlForSSO: { __typename?: 'GetAuthorizationUrlForSSOOutput', id: string, type: string, authorizationURL: string } }; - -export type GetLoginTokenFromCredentialsMutationVariables = Exact<{ - email: Scalars['String']; - password: Scalars['String']; - captchaToken?: InputMaybe; - origin: Scalars['String']; -}>; - - -export type GetLoginTokenFromCredentialsMutation = { __typename?: 'Mutation', getLoginTokenFromCredentials: { __typename?: 'LoginToken', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } }; - -export type GetLoginTokenFromEmailVerificationTokenMutationVariables = Exact<{ - emailVerificationToken: Scalars['String']; - email: Scalars['String']; - captchaToken?: InputMaybe; - origin: Scalars['String']; -}>; - - -export type GetLoginTokenFromEmailVerificationTokenMutation = { __typename?: 'Mutation', getLoginTokenFromEmailVerificationToken: { __typename?: 'GetLoginTokenFromEmailVerificationTokenOutput', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null } } }; - -export type ImpersonateMutationVariables = Exact<{ - userId: Scalars['String']; - workspaceId: Scalars['String']; -}>; - - -export type ImpersonateMutation = { __typename?: 'Mutation', impersonate: { __typename?: 'ImpersonateOutput', workspace: { __typename?: 'WorkspaceUrlsAndId', id: string, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null } }, loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } }; - -export type RenewTokenMutationVariables = Exact<{ - appToken: Scalars['String']; -}>; - - -export type RenewTokenMutation = { __typename?: 'Mutation', renewToken: { __typename?: 'AuthTokens', tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; - -export type ResendEmailVerificationTokenMutationVariables = Exact<{ - email: Scalars['String']; - origin: Scalars['String']; -}>; - - -export type ResendEmailVerificationTokenMutation = { __typename?: 'Mutation', resendEmailVerificationToken: { __typename?: 'ResendEmailVerificationTokenOutput', success: boolean } }; - -export type SignInMutationVariables = Exact<{ - email: Scalars['String']; - password: Scalars['String']; - captchaToken?: InputMaybe; -}>; - - -export type SignInMutation = { __typename?: 'Mutation', signIn: { __typename?: 'AvailableWorkspacesAndAccessTokensOutput', availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; - -export type SignUpMutationVariables = Exact<{ - email: Scalars['String']; - password: Scalars['String']; - captchaToken?: InputMaybe; -}>; - - -export type SignUpMutation = { __typename?: 'Mutation', signUp: { __typename?: 'AvailableWorkspacesAndAccessTokensOutput', availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> }, tokens: { __typename?: 'AuthTokenPair', accessToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, refreshToken: { __typename?: 'AuthToken', token: string, expiresAt: string } } } }; - -export type SignUpInNewWorkspaceMutationVariables = Exact<{ [key: string]: never; }>; - - -export type SignUpInNewWorkspaceMutation = { __typename?: 'Mutation', signUpInNewWorkspace: { __typename?: 'SignUpOutput', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, workspace: { __typename?: 'WorkspaceUrlsAndId', id: string, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null } } } }; - -export type SignUpInWorkspaceMutationVariables = Exact<{ - email: Scalars['String']; - password: Scalars['String']; - workspaceInviteHash?: InputMaybe; - workspacePersonalInviteToken?: InputMaybe; - captchaToken?: InputMaybe; - workspaceId?: InputMaybe; - locale?: InputMaybe; - verifyEmailNextPath?: InputMaybe; -}>; - - -export type SignUpInWorkspaceMutation = { __typename?: 'Mutation', signUpInWorkspace: { __typename?: 'SignUpOutput', loginToken: { __typename?: 'AuthToken', token: string, expiresAt: string }, workspace: { __typename?: 'WorkspaceUrlsAndId', id: string, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null } } } }; - -export type UpdatePasswordViaResetTokenMutationVariables = Exact<{ - token: Scalars['String']; - newPassword: Scalars['String']; -}>; - - -export type UpdatePasswordViaResetTokenMutation = { __typename?: 'Mutation', updatePasswordViaResetToken: { __typename?: 'InvalidatePassword', success: boolean } }; - -export type CheckUserExistsQueryVariables = Exact<{ - email: Scalars['String']; - captchaToken?: InputMaybe; -}>; - - -export type CheckUserExistsQuery = { __typename?: 'Query', checkUserExists: { __typename?: 'CheckUserExistOutput', exists: boolean, availableWorkspacesCount: number, isEmailVerified: boolean } }; - -export type GetPublicWorkspaceDataByDomainQueryVariables = Exact<{ - origin: Scalars['String']; -}>; - - -export type GetPublicWorkspaceDataByDomainQuery = { __typename?: 'Query', getPublicWorkspaceDataByDomain: { __typename?: 'PublicWorkspaceDataOutput', id: string, logo?: string | null, displayName?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, authProviders: { __typename?: 'AuthProviders', google: boolean, magicLink: boolean, password: boolean, microsoft: boolean, sso: Array<{ __typename?: 'SSOIdentityProvider', id: string, name: string, type: IdentityProviderType, status: SsoIdentityProviderStatus, issuer: string }> } } }; - -export type ValidatePasswordResetTokenQueryVariables = Exact<{ - token: Scalars['String']; -}>; - - -export type ValidatePasswordResetTokenQuery = { __typename?: 'Query', validatePasswordResetToken: { __typename?: 'ValidatePasswordResetToken', id: string, email: string } }; - -export type CheckoutSessionMutationVariables = Exact<{ - recurringInterval: SubscriptionInterval; - successUrlPath?: InputMaybe; - plan: BillingPlanKey; - requirePaymentMethod: Scalars['Boolean']; -}>; - - -export type CheckoutSessionMutation = { __typename?: 'Mutation', checkoutSession: { __typename?: 'BillingSessionOutput', url?: string | null } }; - -export type EndSubscriptionTrialPeriodMutationVariables = Exact<{ [key: string]: never; }>; - - -export type EndSubscriptionTrialPeriodMutation = { __typename?: 'Mutation', endSubscriptionTrialPeriod: { __typename?: 'BillingEndTrialPeriodOutput', status?: SubscriptionStatus | null, hasPaymentMethod: boolean } }; - -export type SwitchSubscriptionToEnterprisePlanMutationVariables = Exact<{ [key: string]: never; }>; - - -export type SwitchSubscriptionToEnterprisePlanMutation = { __typename?: 'Mutation', switchToEnterprisePlan: { __typename?: 'BillingUpdateOutput', success: boolean } }; - -export type SwitchSubscriptionToYearlyIntervalMutationVariables = Exact<{ [key: string]: never; }>; - - -export type SwitchSubscriptionToYearlyIntervalMutation = { __typename?: 'Mutation', switchToYearlyInterval: { __typename?: 'BillingUpdateOutput', success: boolean } }; - -export type BillingBaseProductPricesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type BillingBaseProductPricesQuery = { __typename?: 'Query', plans: Array<{ __typename?: 'BillingPlanOutput', planKey: BillingPlanKey, baseProduct: { __typename?: 'BillingProduct', name: string, prices?: Array<{ __typename?: 'BillingPriceLicensedDTO', unitAmount: number, stripePriceId: string, recurringInterval: SubscriptionInterval } | { __typename?: 'BillingPriceMeteredDTO' }> | null } }> }; - -export type BillingPortalSessionQueryVariables = Exact<{ - returnUrlPath?: InputMaybe; -}>; - - -export type BillingPortalSessionQuery = { __typename?: 'Query', billingPortalSession: { __typename?: 'BillingSessionOutput', url?: string | null } }; - -export type GetMeteredProductsUsageQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetMeteredProductsUsageQuery = { __typename?: 'Query', getMeteredProductsUsage: Array<{ __typename?: 'BillingMeteredProductUsageOutput', productKey: BillingProductKey, usageQuantity: number, freeTierQuantity: number, freeTrialQuantity: number, unitPriceCents: number, totalCostCents: number }> }; - -export type SearchQueryVariables = Exact<{ - searchInput: Scalars['String']; - limit: Scalars['Int']; - after?: InputMaybe; - excludedObjectNameSingulars?: InputMaybe | Scalars['String']>; - includedObjectNameSingulars?: InputMaybe | Scalars['String']>; - filter?: InputMaybe; -}>; - - -export type SearchQuery = { __typename?: 'Query', search: { __typename?: 'SearchResultConnection', edges: Array<{ __typename?: 'SearchResultEdge', cursor: string, node: { __typename?: 'SearchRecord', recordId: string, objectNameSingular: string, label: string, imageUrl?: string | null, tsRankCD: number, tsRank: number } }>, pageInfo: { __typename?: 'SearchResultPageInfo', hasNextPage: boolean, endCursor?: string | null } } }; - -export type SkipBookOnboardingStepMutationVariables = Exact<{ [key: string]: never; }>; - - -export type SkipBookOnboardingStepMutation = { __typename?: 'Mutation', skipBookOnboardingStep: { __typename?: 'OnboardingStepSuccess', success: boolean } }; - -export type SkipSyncEmailOnboardingStepMutationVariables = Exact<{ [key: string]: never; }>; - - -export type SkipSyncEmailOnboardingStepMutation = { __typename?: 'Mutation', skipSyncEmailOnboardingStep: { __typename?: 'OnboardingStepSuccess', success: boolean } }; - -export type SaveImapSmtpCaldavMutationVariables = Exact<{ - accountOwnerId: Scalars['String']; - handle: Scalars['String']; - accountType: AccountType; - connectionParameters: ConnectionParameters; - id?: InputMaybe; -}>; - - -export type SaveImapSmtpCaldavMutation = { __typename?: 'Mutation', saveImapSmtpCaldav: { __typename?: 'ImapSmtpCaldavConnectionSuccess', success: boolean } }; - -export type GetConnectedImapSmtpCaldavAccountQueryVariables = Exact<{ - id: Scalars['String']; -}>; - - -export type GetConnectedImapSmtpCaldavAccountQuery = { __typename?: 'Query', getConnectedImapSmtpCaldavAccount: { __typename?: 'ConnectedImapSmtpCaldavAccount', id: string, handle: string, provider: string, accountOwnerId: string, connectionParameters?: { __typename?: 'ImapSmtpCaldavConnectionParameters', IMAP?: { __typename?: 'ConnectionParametersOutput', host: string, port: number, secure?: boolean | null, username: string, password: string } | null, SMTP?: { __typename?: 'ConnectionParametersOutput', host: string, port: number, secure?: boolean | null, username: string, password: string } | null, CALDAV?: { __typename?: 'ConnectionParametersOutput', host: string, port: number, secure?: boolean | null, username: string, password: string } | null } | null } }; - -export type CreateDatabaseConfigVariableMutationVariables = Exact<{ - key: Scalars['String']; - value: Scalars['JSON']; -}>; - - -export type CreateDatabaseConfigVariableMutation = { __typename?: 'Mutation', createDatabaseConfigVariable: boolean }; - -export type DeleteDatabaseConfigVariableMutationVariables = Exact<{ - key: Scalars['String']; -}>; - - -export type DeleteDatabaseConfigVariableMutation = { __typename?: 'Mutation', deleteDatabaseConfigVariable: boolean }; - -export type UpdateDatabaseConfigVariableMutationVariables = Exact<{ - key: Scalars['String']; - value: Scalars['JSON']; -}>; - - -export type UpdateDatabaseConfigVariableMutation = { __typename?: 'Mutation', updateDatabaseConfigVariable: boolean }; - -export type GetConfigVariablesGroupedQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetConfigVariablesGroupedQuery = { __typename?: 'Query', getConfigVariablesGrouped: { __typename?: 'ConfigVariablesOutput', groups: Array<{ __typename?: 'ConfigVariablesGroupData', name: ConfigVariablesGroup, description: string, isHiddenOnLoad: boolean, variables: Array<{ __typename?: 'ConfigVariable', name: string, description: string, value?: any | null, isSensitive: boolean, isEnvOnly: boolean, type: ConfigVariableType, options?: any | null, source: ConfigSource }> }> } }; - -export type GetDatabaseConfigVariableQueryVariables = Exact<{ - key: Scalars['String']; -}>; - - -export type GetDatabaseConfigVariableQuery = { __typename?: 'Query', getDatabaseConfigVariable: { __typename?: 'ConfigVariable', name: string, description: string, value?: any | null, isSensitive: boolean, isEnvOnly: boolean, type: ConfigVariableType, options?: any | null, source: ConfigSource } }; - -export type UpdateWorkspaceFeatureFlagMutationVariables = Exact<{ - workspaceId: Scalars['String']; - featureFlag: Scalars['String']; - value: Scalars['Boolean']; -}>; - - -export type UpdateWorkspaceFeatureFlagMutation = { __typename?: 'Mutation', updateWorkspaceFeatureFlag: boolean }; - -export type UserLookupAdminPanelMutationVariables = Exact<{ - userIdentifier: Scalars['String']; -}>; - - -export type UserLookupAdminPanelMutation = { __typename?: 'Mutation', userLookupAdminPanel: { __typename?: 'UserLookup', user: { __typename?: 'UserInfo', id: string, email: string, firstName?: string | null, lastName?: string | null }, workspaces: Array<{ __typename?: 'WorkspaceInfo', id: string, name: string, logo?: string | null, totalUsers: number, allowImpersonation: boolean, users: Array<{ __typename?: 'UserInfo', id: string, email: string, firstName?: string | null, lastName?: string | null }>, featureFlags: Array<{ __typename?: 'FeatureFlag', key: FeatureFlagKey, value: boolean }> }> } }; - -export type GetVersionInfoQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetVersionInfoQuery = { __typename?: 'Query', versionInfo: { __typename?: 'VersionInfo', currentVersion?: string | null, latestVersion: string } }; - -export type GetIndicatorHealthStatusQueryVariables = Exact<{ - indicatorId: HealthIndicatorId; -}>; - - -export type GetIndicatorHealthStatusQuery = { __typename?: 'Query', getIndicatorHealthStatus: { __typename?: 'AdminPanelHealthServiceData', id: string, label: string, description: string, status: AdminPanelHealthServiceStatus, errorMessage?: string | null, details?: string | null, queues?: Array<{ __typename?: 'AdminPanelWorkerQueueHealth', id: string, queueName: string, status: AdminPanelHealthServiceStatus }> | null } }; - -export type GetQueueMetricsQueryVariables = Exact<{ - queueName: Scalars['String']; - timeRange?: InputMaybe; -}>; - - -export type GetQueueMetricsQuery = { __typename?: 'Query', getQueueMetrics: { __typename?: 'QueueMetricsData', queueName: string, timeRange: QueueMetricsTimeRange, workers: number, details?: { __typename?: 'WorkerQueueMetrics', failed: number, completed: number, waiting: number, active: number, delayed: number, failureRate: number } | null, data: Array<{ __typename?: 'QueueMetricsSeries', id: string, data: Array<{ __typename?: 'QueueMetricsDataPoint', x: number, y: number }> }> } }; - -export type GetSystemHealthStatusQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetSystemHealthStatusQuery = { __typename?: 'Query', getSystemHealthStatus: { __typename?: 'SystemHealth', services: Array<{ __typename?: 'SystemHealthService', id: HealthIndicatorId, label: string, status: AdminPanelHealthServiceStatus }> } }; - -export type UpdateLabPublicFeatureFlagMutationVariables = Exact<{ - input: UpdateLabPublicFeatureFlagInput; -}>; - - -export type UpdateLabPublicFeatureFlagMutation = { __typename?: 'Mutation', updateLabPublicFeatureFlag: { __typename?: 'FeatureFlagDTO', key: FeatureFlagKey, value: boolean } }; - -export type ObjectPermissionFragmentFragment = { __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }; - -export type RoleFragmentFragment = { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean }; - -export type SettingPermissionFragmentFragment = { __typename?: 'SettingPermission', id: string, setting: SettingPermissionType, roleId: string }; - -export type CreateOneRoleMutationVariables = Exact<{ - createRoleInput: CreateRoleInput; -}>; - - -export type CreateOneRoleMutation = { __typename?: 'Mutation', createOneRole: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean } }; - -export type DeleteOneRoleMutationVariables = Exact<{ - roleId: Scalars['String']; -}>; - - -export type DeleteOneRoleMutation = { __typename?: 'Mutation', deleteOneRole: string }; - -export type UpdateOneRoleMutationVariables = Exact<{ - updateRoleInput: UpdateRoleInput; -}>; - - -export type UpdateOneRoleMutation = { __typename?: 'Mutation', updateOneRole: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean } }; - -export type UpdateWorkspaceMemberRoleMutationVariables = Exact<{ - workspaceMemberId: Scalars['String']; - roleId: Scalars['String']; -}>; - - -export type UpdateWorkspaceMemberRoleMutation = { __typename?: 'Mutation', updateWorkspaceMemberRole: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, roles?: Array<{ __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean }> | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } }; - -export type UpsertObjectPermissionsMutationVariables = Exact<{ - upsertObjectPermissionsInput: UpsertObjectPermissionsInput; -}>; - - -export type UpsertObjectPermissionsMutation = { __typename?: 'Mutation', upsertObjectPermissions: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> }; - -export type UpsertSettingPermissionsMutationVariables = Exact<{ - upsertSettingPermissionsInput: UpsertSettingPermissionsInput; -}>; - - -export type UpsertSettingPermissionsMutation = { __typename?: 'Mutation', upsertSettingPermissions: Array<{ __typename?: 'SettingPermission', id: string, setting: SettingPermissionType, roleId: string }> }; - -export type GetRolesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetRolesQuery = { __typename?: 'Query', getRoles: Array<{ __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean, workspaceMembers: Array<{ __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }>, settingPermissions?: Array<{ __typename?: 'SettingPermission', id: string, setting: SettingPermissionType, roleId: string }> | null, objectPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null }> }; - -export type CreateApprovedAccessDomainMutationVariables = Exact<{ - input: CreateApprovedAccessDomainInput; -}>; - - -export type CreateApprovedAccessDomainMutation = { __typename?: 'Mutation', createApprovedAccessDomain: { __typename?: 'ApprovedAccessDomain', id: any, domain: string, isValidated: boolean, createdAt: string } }; - -export type CreateOidcIdentityProviderMutationVariables = Exact<{ - input: SetupOidcSsoInput; -}>; - - -export type CreateOidcIdentityProviderMutation = { __typename?: 'Mutation', createOIDCIdentityProvider: { __typename?: 'SetupSsoOutput', id: string, type: IdentityProviderType, issuer: string, name: string, status: SsoIdentityProviderStatus } }; - -export type CreateSamlIdentityProviderMutationVariables = Exact<{ - input: SetupSamlSsoInput; -}>; - - -export type CreateSamlIdentityProviderMutation = { __typename?: 'Mutation', createSAMLIdentityProvider: { __typename?: 'SetupSsoOutput', id: string, type: IdentityProviderType, issuer: string, name: string, status: SsoIdentityProviderStatus } }; - -export type DeleteApprovedAccessDomainMutationVariables = Exact<{ - input: DeleteApprovedAccessDomainInput; -}>; - - -export type DeleteApprovedAccessDomainMutation = { __typename?: 'Mutation', deleteApprovedAccessDomain: boolean }; - -export type DeleteSsoIdentityProviderMutationVariables = Exact<{ - input: DeleteSsoInput; -}>; - - -export type DeleteSsoIdentityProviderMutation = { __typename?: 'Mutation', deleteSSOIdentityProvider: { __typename?: 'DeleteSsoOutput', identityProviderId: string } }; - -export type EditSsoIdentityProviderMutationVariables = Exact<{ - input: EditSsoInput; -}>; - - -export type EditSsoIdentityProviderMutation = { __typename?: 'Mutation', editSSOIdentityProvider: { __typename?: 'EditSsoOutput', id: string, type: IdentityProviderType, issuer: string, name: string, status: SsoIdentityProviderStatus } }; - -export type ValidateApprovedAccessDomainMutationVariables = Exact<{ - input: ValidateApprovedAccessDomainInput; -}>; - - -export type ValidateApprovedAccessDomainMutation = { __typename?: 'Mutation', validateApprovedAccessDomain: { __typename?: 'ApprovedAccessDomain', id: any, isValidated: boolean, domain: string, createdAt: string } }; - -export type GetApprovedAccessDomainsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetApprovedAccessDomainsQuery = { __typename?: 'Query', getApprovedAccessDomains: Array<{ __typename?: 'ApprovedAccessDomain', id: any, createdAt: string, domain: string, isValidated: boolean }> }; - -export type GetSsoIdentityProvidersQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetSsoIdentityProvidersQuery = { __typename?: 'Query', getSSOIdentityProviders: Array<{ __typename?: 'FindAvailableSSOIDPOutput', type: IdentityProviderType, id: string, name: string, issuer: string, status: SsoIdentityProviderStatus }> }; - -export type OnDbEventSubscriptionVariables = Exact<{ - input: OnDbEventInput; -}>; - - -export type OnDbEventSubscription = { __typename?: 'Subscription', onDbEvent: { __typename?: 'OnDbEventDTO', eventDate: string, action: DatabaseEventAction, objectNameSingular: string, updatedFields?: Array | null, record: any } }; - -export type UserQueryFragmentFragment = { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: any, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', settingsPermissions?: Array | null, objectRecordsPermissions?: Array | null, objectPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, subdomain: string, hasValidEnterpriseKey: boolean, customDomain?: string | null, isCustomDomainEnabled: boolean, metadataVersion: number, workspaceMembersCount?: number | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlagDTO', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: any, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, billingProduct?: { __typename?: 'BillingProduct', name: string, description: string, metadata: { __typename?: 'BillingProductMetadata', planKey: BillingPlanKey, priceUsageBased: BillingUsageType, productKey: BillingProductKey } } | null }> | null } | null, billingSubscriptions: Array<{ __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, metadata: any }>, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean } | null } | null, availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> } }; - -export type WorkspaceUrlsFragmentFragment = { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }; - -export type DeleteUserAccountMutationVariables = Exact<{ [key: string]: never; }>; - - -export type DeleteUserAccountMutation = { __typename?: 'Mutation', deleteUser: { __typename?: 'User', id: any } }; - -export type UploadProfilePictureMutationVariables = Exact<{ - file: Scalars['Upload']; -}>; - - -export type UploadProfilePictureMutation = { __typename?: 'Mutation', uploadProfilePicture: { __typename?: 'SignedFileDTO', path: string, token: string } }; - -export type GetCurrentUserQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetCurrentUserQuery = { __typename?: 'Query', currentUser: { __typename?: 'User', id: any, firstName: string, lastName: string, email: string, canAccessFullAdminPanel: boolean, canImpersonate: boolean, supportUserHash?: string | null, onboardingStatus?: OnboardingStatus | null, userVars?: any | null, workspaceMember?: { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } } | null, workspaceMembers?: Array<{ __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, deletedWorkspaceMembers?: Array<{ __typename?: 'DeletedWorkspaceMember', id: any, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }> | null, currentUserWorkspace?: { __typename?: 'UserWorkspace', settingsPermissions?: Array | null, objectRecordsPermissions?: Array | null, objectPermissions?: Array<{ __typename?: 'ObjectPermission', objectMetadataId: string, canReadObjectRecords?: boolean | null, canUpdateObjectRecords?: boolean | null, canSoftDeleteObjectRecords?: boolean | null, canDestroyObjectRecords?: boolean | null }> | null } | null, currentWorkspace?: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, inviteHash?: string | null, allowImpersonation: boolean, activationStatus: WorkspaceActivationStatus, isPublicInviteLinkEnabled: boolean, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, subdomain: string, hasValidEnterpriseKey: boolean, customDomain?: string | null, isCustomDomainEnabled: boolean, metadataVersion: number, workspaceMembersCount?: number | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, featureFlags?: Array<{ __typename?: 'FeatureFlagDTO', key: FeatureFlagKey, value: boolean }> | null, currentBillingSubscription?: { __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, interval?: SubscriptionInterval | null, metadata: any, billingSubscriptionItems?: Array<{ __typename?: 'BillingSubscriptionItem', id: any, hasReachedCurrentPeriodCap: boolean, quantity?: number | null, billingProduct?: { __typename?: 'BillingProduct', name: string, description: string, metadata: { __typename?: 'BillingProductMetadata', planKey: BillingPlanKey, priceUsageBased: BillingUsageType, productKey: BillingProductKey } } | null }> | null } | null, billingSubscriptions: Array<{ __typename?: 'BillingSubscription', id: any, status: SubscriptionStatus, metadata: any }>, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean } | null } | null, availableWorkspaces: { __typename?: 'AvailableWorkspaces', availableWorkspacesForSignIn: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }>, availableWorkspacesForSignUp: Array<{ __typename?: 'AvailableWorkspace', id: string, displayName?: string | null, loginToken?: string | null, inviteHash?: string | null, personalInviteToken?: string | null, logo?: string | null, workspaceUrls: { __typename?: 'WorkspaceUrls', subdomainUrl: string, customUrl?: string | null }, sso: Array<{ __typename?: 'SSOConnection', type: IdentityProviderType, id: string, issuer: string, name: string, status: SsoIdentityProviderStatus }> }> } } }; - -export type ActivateWorkflowVersionMutationVariables = Exact<{ - workflowVersionId: Scalars['String']; -}>; - - -export type ActivateWorkflowVersionMutation = { __typename?: 'Mutation', activateWorkflowVersion: boolean }; - -export type ComputeStepOutputSchemaMutationVariables = Exact<{ - input: ComputeStepOutputSchemaInput; -}>; - - -export type ComputeStepOutputSchemaMutation = { __typename?: 'Mutation', computeStepOutputSchema: any }; - -export type CreateDraftFromWorkflowVersionMutationVariables = Exact<{ - input: CreateDraftFromWorkflowVersionInput; -}>; - - -export type CreateDraftFromWorkflowVersionMutation = { __typename?: 'Mutation', createDraftFromWorkflowVersion: { __typename?: 'WorkflowVersion', id: any } }; - -export type CreateWorkflowVersionStepMutationVariables = Exact<{ - input: CreateWorkflowVersionStepInput; -}>; - - -export type CreateWorkflowVersionStepMutation = { __typename?: 'Mutation', createWorkflowVersionStep: { __typename?: 'WorkflowAction', id: any, name: string, type: string, settings: any, valid: boolean, nextStepIds?: Array | null } }; - -export type DeactivateWorkflowVersionMutationVariables = Exact<{ - workflowVersionId: Scalars['String']; -}>; - - -export type DeactivateWorkflowVersionMutation = { __typename?: 'Mutation', deactivateWorkflowVersion: boolean }; - -export type DeleteWorkflowVersionStepMutationVariables = Exact<{ - input: DeleteWorkflowVersionStepInput; -}>; - - -export type DeleteWorkflowVersionStepMutation = { __typename?: 'Mutation', deleteWorkflowVersionStep: { __typename?: 'WorkflowAction', id: any, name: string, type: string, settings: any, valid: boolean, nextStepIds?: Array | null } }; - -export type RunWorkflowVersionMutationVariables = Exact<{ - input: RunWorkflowVersionInput; -}>; - - -export type RunWorkflowVersionMutation = { __typename?: 'Mutation', runWorkflowVersion: { __typename?: 'WorkflowRun', workflowRunId: any } }; - -export type UpdateWorkflowRunStepMutationVariables = Exact<{ - input: UpdateWorkflowRunStepInput; -}>; - - -export type UpdateWorkflowRunStepMutation = { __typename?: 'Mutation', updateWorkflowRunStep: { __typename?: 'WorkflowAction', id: any, name: string, type: string, settings: any, valid: boolean, nextStepIds?: Array | null } }; - -export type UpdateWorkflowVersionStepMutationVariables = Exact<{ - input: UpdateWorkflowVersionStepInput; -}>; - - -export type UpdateWorkflowVersionStepMutation = { __typename?: 'Mutation', updateWorkflowVersionStep: { __typename?: 'WorkflowAction', id: any, name: string, type: string, settings: any, valid: boolean, nextStepIds?: Array | null } }; - -export type AssignRoleToAgentMutationVariables = Exact<{ - agentId: Scalars['UUID']; - roleId: Scalars['UUID']; -}>; - - -export type AssignRoleToAgentMutation = { __typename?: 'Mutation', assignRoleToAgent: boolean }; - -export type RemoveRoleFromAgentMutationVariables = Exact<{ - agentId: Scalars['UUID']; -}>; - - -export type RemoveRoleFromAgentMutation = { __typename?: 'Mutation', removeRoleFromAgent: boolean }; - -export type UpdateOneAgentMutationVariables = Exact<{ - input: UpdateAgentInput; -}>; - - -export type UpdateOneAgentMutation = { __typename?: 'Mutation', updateOneAgent: { __typename?: 'Agent', id: any, name: string, description?: string | null, prompt: string, modelId: string, responseFormat?: any | null } }; - -export type FindOneAgentQueryVariables = Exact<{ - id: Scalars['UUID']; -}>; - - -export type FindOneAgentQuery = { __typename?: 'Query', findOneAgent: { __typename?: 'Agent', id: any, name: string, description?: string | null, prompt: string, modelId: string, responseFormat?: any | null, roleId?: any | null } }; - -export type SubmitFormStepMutationVariables = Exact<{ - input: SubmitFormStepInput; -}>; - - -export type SubmitFormStepMutation = { __typename?: 'Mutation', submitFormStep: boolean }; - -export type DeleteWorkspaceInvitationMutationVariables = Exact<{ - appTokenId: Scalars['String']; -}>; - - -export type DeleteWorkspaceInvitationMutation = { __typename?: 'Mutation', deleteWorkspaceInvitation: string }; - -export type ResendWorkspaceInvitationMutationVariables = Exact<{ - appTokenId: Scalars['String']; -}>; - - -export type ResendWorkspaceInvitationMutation = { __typename?: 'Mutation', resendWorkspaceInvitation: { __typename?: 'SendInvitationsOutput', success: boolean, errors: Array, result: Array<{ __typename?: 'WorkspaceInvitation', id: any, email: string, expiresAt: string }> } }; - -export type SendInvitationsMutationVariables = Exact<{ - emails: Array | Scalars['String']; -}>; - - -export type SendInvitationsMutation = { __typename?: 'Mutation', sendInvitations: { __typename?: 'SendInvitationsOutput', success: boolean, errors: Array, result: Array<{ __typename?: 'WorkspaceInvitation', id: any, email: string, expiresAt: string }> } }; - -export type GetWorkspaceInvitationsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetWorkspaceInvitationsQuery = { __typename?: 'Query', findWorkspaceInvitations: Array<{ __typename?: 'WorkspaceInvitation', id: any, email: string, expiresAt: string }> }; - -export type DeletedWorkspaceMemberQueryFragmentFragment = { __typename?: 'DeletedWorkspaceMember', id: any, avatarUrl?: string | null, userEmail: string, name: { __typename?: 'FullName', firstName: string, lastName: string } }; - -export type WorkspaceMemberQueryFragmentFragment = { __typename?: 'WorkspaceMember', id: any, colorScheme: string, avatarUrl?: string | null, locale?: string | null, userEmail: string, timeZone?: string | null, dateFormat?: WorkspaceMemberDateFormatEnum | null, timeFormat?: WorkspaceMemberTimeFormatEnum | null, name: { __typename?: 'FullName', firstName: string, lastName: string } }; - -export type ActivateWorkspaceMutationVariables = Exact<{ - input: ActivateWorkspaceInput; -}>; - - -export type ActivateWorkspaceMutation = { __typename?: 'Mutation', activateWorkspace: { __typename?: 'Workspace', id: any } }; - -export type DeleteCurrentWorkspaceMutationVariables = Exact<{ [key: string]: never; }>; - - -export type DeleteCurrentWorkspaceMutation = { __typename?: 'Mutation', deleteCurrentWorkspace: { __typename?: 'Workspace', id: any } }; - -export type UpdateWorkspaceMutationVariables = Exact<{ - input: UpdateWorkspaceInput; -}>; - - -export type UpdateWorkspaceMutation = { __typename?: 'Mutation', updateWorkspace: { __typename?: 'Workspace', id: any, customDomain?: string | null, subdomain: string, displayName?: string | null, logo?: string | null, allowImpersonation: boolean, isPublicInviteLinkEnabled: boolean, isGoogleAuthEnabled: boolean, isMicrosoftAuthEnabled: boolean, isPasswordAuthEnabled: boolean, defaultRole?: { __typename?: 'Role', id: string, label: string, description?: string | null, icon?: string | null, canUpdateAllSettings: boolean, isEditable: boolean, canReadAllObjectRecords: boolean, canUpdateAllObjectRecords: boolean, canSoftDeleteAllObjectRecords: boolean, canDestroyAllObjectRecords: boolean } | null } }; - -export type UploadWorkspaceLogoMutationVariables = Exact<{ - file: Scalars['Upload']; -}>; - - -export type UploadWorkspaceLogoMutation = { __typename?: 'Mutation', uploadWorkspaceLogo: { __typename?: 'SignedFileDTO', path: string, token: string } }; - -export type CheckCustomDomainValidRecordsMutationVariables = Exact<{ [key: string]: never; }>; - - -export type CheckCustomDomainValidRecordsMutation = { __typename?: 'Mutation', checkCustomDomainValidRecords?: { __typename?: 'CustomDomainValidRecords', id: string, customDomain: string, records: Array<{ __typename?: 'CustomDomainRecord', type: string, key: string, value: string, validationType: string, status: string }> } | null }; - -export type GetWorkspaceFromInviteHashQueryVariables = Exact<{ - inviteHash: Scalars['String']; -}>; - - -export type GetWorkspaceFromInviteHashQuery = { __typename?: 'Query', findWorkspaceFromInviteHash: { __typename?: 'Workspace', id: any, displayName?: string | null, logo?: string | null, allowImpersonation: boolean } }; - -export const TimelineCalendarEventParticipantFragmentFragmentDoc = gql` - fragment TimelineCalendarEventParticipantFragment on TimelineCalendarEventParticipant { - personId - workspaceMemberId - firstName - lastName - displayName - avatarUrl - handle -} - `; -export const TimelineCalendarEventFragmentFragmentDoc = gql` - fragment TimelineCalendarEventFragment on TimelineCalendarEvent { - id - title - description - location - startsAt - endsAt - isFullDay - visibility - participants { - ...TimelineCalendarEventParticipantFragment - } -} - ${TimelineCalendarEventParticipantFragmentFragmentDoc}`; -export const TimelineCalendarEventsWithTotalFragmentFragmentDoc = gql` - fragment TimelineCalendarEventsWithTotalFragment on TimelineCalendarEventsWithTotal { - totalNumberOfCalendarEvents - timelineCalendarEvents { - ...TimelineCalendarEventFragment - } -} - ${TimelineCalendarEventFragmentFragmentDoc}`; -export const ParticipantFragmentFragmentDoc = gql` - fragment ParticipantFragment on TimelineThreadParticipant { - personId - workspaceMemberId - firstName - lastName - displayName - avatarUrl - handle -} - `; -export const TimelineThreadFragmentFragmentDoc = gql` - fragment TimelineThreadFragment on TimelineThread { - id - read - visibility - firstParticipant { - ...ParticipantFragment - } - lastTwoParticipants { - ...ParticipantFragment - } - lastMessageReceivedAt - lastMessageBody - subject - numberOfMessagesInThread - participantCount -} - ${ParticipantFragmentFragmentDoc}`; -export const TimelineThreadsWithTotalFragmentFragmentDoc = gql` - fragment TimelineThreadsWithTotalFragment on TimelineThreadsWithTotal { - totalNumberOfThreads - timelineThreads { - ...TimelineThreadFragment - } -} - ${TimelineThreadFragmentFragmentDoc}`; -export const AuthTokenFragmentFragmentDoc = gql` - fragment AuthTokenFragment on AuthToken { - token - expiresAt -} - `; -export const AuthTokensFragmentFragmentDoc = gql` - fragment AuthTokensFragment on AuthTokenPair { - accessToken { - ...AuthTokenFragment - } - refreshToken { - ...AuthTokenFragment - } -} - ${AuthTokenFragmentFragmentDoc}`; -export const AvailableSsoIdentityProvidersFragmentFragmentDoc = gql` - fragment AvailableSSOIdentityProvidersFragment on FindAvailableSSOIDPOutput { - id - issuer - name - status - workspace { - id - displayName - } -} - `; -export const SettingPermissionFragmentFragmentDoc = gql` - fragment SettingPermissionFragment on SettingPermission { - id - setting - roleId -} - `; -export const WorkspaceMemberQueryFragmentFragmentDoc = gql` - fragment WorkspaceMemberQueryFragment on WorkspaceMember { - id - name { - firstName - lastName - } - colorScheme - avatarUrl - locale - userEmail - timeZone - dateFormat - timeFormat -} - `; -export const DeletedWorkspaceMemberQueryFragmentFragmentDoc = gql` - fragment DeletedWorkspaceMemberQueryFragment on DeletedWorkspaceMember { - id - name { - firstName - lastName - } - avatarUrl - userEmail -} - `; -export const ObjectPermissionFragmentFragmentDoc = gql` - fragment ObjectPermissionFragment on ObjectPermission { - objectMetadataId - canReadObjectRecords - canUpdateObjectRecords - canSoftDeleteObjectRecords - canDestroyObjectRecords -} - `; -export const WorkspaceUrlsFragmentFragmentDoc = gql` - fragment WorkspaceUrlsFragment on WorkspaceUrls { - subdomainUrl - customUrl -} - `; -export const RoleFragmentFragmentDoc = gql` - fragment RoleFragment on Role { - id - label - description - icon - canUpdateAllSettings - isEditable - canReadAllObjectRecords - canUpdateAllObjectRecords - canSoftDeleteAllObjectRecords - canDestroyAllObjectRecords -} - `; -export const AvailableWorkspaceFragmentFragmentDoc = gql` - fragment AvailableWorkspaceFragment on AvailableWorkspace { - id - displayName - loginToken - inviteHash - personalInviteToken - workspaceUrls { - subdomainUrl - customUrl - } - logo - sso { - type - id - issuer - name - status - } -} - `; -export const AvailableWorkspacesFragmentFragmentDoc = gql` - fragment AvailableWorkspacesFragment on AvailableWorkspaces { - availableWorkspacesForSignIn { - ...AvailableWorkspaceFragment - } - availableWorkspacesForSignUp { - ...AvailableWorkspaceFragment - } -} - ${AvailableWorkspaceFragmentFragmentDoc}`; -export const UserQueryFragmentFragmentDoc = gql` - fragment UserQueryFragment on User { - id - firstName - lastName - email - canAccessFullAdminPanel - canImpersonate - supportUserHash - onboardingStatus - workspaceMember { - ...WorkspaceMemberQueryFragment - } - workspaceMembers { - ...WorkspaceMemberQueryFragment - } - deletedWorkspaceMembers { - ...DeletedWorkspaceMemberQueryFragment - } - currentUserWorkspace { - settingsPermissions - objectRecordsPermissions - objectPermissions { - ...ObjectPermissionFragment - } - } - currentWorkspace { - id - displayName - logo - inviteHash - allowImpersonation - activationStatus - isPublicInviteLinkEnabled - isGoogleAuthEnabled - isMicrosoftAuthEnabled - isPasswordAuthEnabled - subdomain - hasValidEnterpriseKey - customDomain - isCustomDomainEnabled - workspaceUrls { - ...WorkspaceUrlsFragment - } - featureFlags { - key - value - } - metadataVersion - currentBillingSubscription { - id - status - interval - metadata - billingSubscriptionItems { - id - hasReachedCurrentPeriodCap - quantity - billingProduct { - name - description - metadata { - planKey - priceUsageBased - productKey - } - } - } - } - billingSubscriptions { - id - status - metadata - } - workspaceMembersCount - defaultRole { - ...RoleFragment - } - } - availableWorkspaces { - ...AvailableWorkspacesFragment - } - userVars -} - ${WorkspaceMemberQueryFragmentFragmentDoc} -${DeletedWorkspaceMemberQueryFragmentFragmentDoc} -${ObjectPermissionFragmentFragmentDoc} -${WorkspaceUrlsFragmentFragmentDoc} -${RoleFragmentFragmentDoc} -${AvailableWorkspacesFragmentFragmentDoc}`; -export const GetTimelineCalendarEventsFromCompanyIdDocument = gql` - query GetTimelineCalendarEventsFromCompanyId($companyId: UUID!, $page: Int!, $pageSize: Int!) { - getTimelineCalendarEventsFromCompanyId( - companyId: $companyId - page: $page - pageSize: $pageSize - ) { - ...TimelineCalendarEventsWithTotalFragment - } -} - ${TimelineCalendarEventsWithTotalFragmentFragmentDoc}`; - -/** - * __useGetTimelineCalendarEventsFromCompanyIdQuery__ - * - * To run a query within a React component, call `useGetTimelineCalendarEventsFromCompanyIdQuery` and pass it any options that fit your needs. - * When your component renders, `useGetTimelineCalendarEventsFromCompanyIdQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetTimelineCalendarEventsFromCompanyIdQuery({ - * variables: { - * companyId: // value for 'companyId' - * page: // value for 'page' - * pageSize: // value for 'pageSize' - * }, - * }); - */ -export function useGetTimelineCalendarEventsFromCompanyIdQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetTimelineCalendarEventsFromCompanyIdDocument, options); - } -export function useGetTimelineCalendarEventsFromCompanyIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetTimelineCalendarEventsFromCompanyIdDocument, options); - } -export type GetTimelineCalendarEventsFromCompanyIdQueryHookResult = ReturnType; -export type GetTimelineCalendarEventsFromCompanyIdLazyQueryHookResult = ReturnType; -export type GetTimelineCalendarEventsFromCompanyIdQueryResult = Apollo.QueryResult; -export const GetTimelineCalendarEventsFromPersonIdDocument = gql` - query GetTimelineCalendarEventsFromPersonId($personId: UUID!, $page: Int!, $pageSize: Int!) { - getTimelineCalendarEventsFromPersonId( - personId: $personId - page: $page - pageSize: $pageSize - ) { - ...TimelineCalendarEventsWithTotalFragment - } -} - ${TimelineCalendarEventsWithTotalFragmentFragmentDoc}`; - -/** - * __useGetTimelineCalendarEventsFromPersonIdQuery__ - * - * To run a query within a React component, call `useGetTimelineCalendarEventsFromPersonIdQuery` and pass it any options that fit your needs. - * When your component renders, `useGetTimelineCalendarEventsFromPersonIdQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetTimelineCalendarEventsFromPersonIdQuery({ - * variables: { - * personId: // value for 'personId' - * page: // value for 'page' - * pageSize: // value for 'pageSize' - * }, - * }); - */ -export function useGetTimelineCalendarEventsFromPersonIdQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetTimelineCalendarEventsFromPersonIdDocument, options); - } -export function useGetTimelineCalendarEventsFromPersonIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetTimelineCalendarEventsFromPersonIdDocument, options); - } -export type GetTimelineCalendarEventsFromPersonIdQueryHookResult = ReturnType; -export type GetTimelineCalendarEventsFromPersonIdLazyQueryHookResult = ReturnType; -export type GetTimelineCalendarEventsFromPersonIdQueryResult = Apollo.QueryResult; -export const GetTimelineThreadsFromCompanyIdDocument = gql` - query GetTimelineThreadsFromCompanyId($companyId: UUID!, $page: Int!, $pageSize: Int!) { - getTimelineThreadsFromCompanyId( - companyId: $companyId - page: $page - pageSize: $pageSize - ) { - ...TimelineThreadsWithTotalFragment - } -} - ${TimelineThreadsWithTotalFragmentFragmentDoc}`; - -/** - * __useGetTimelineThreadsFromCompanyIdQuery__ - * - * To run a query within a React component, call `useGetTimelineThreadsFromCompanyIdQuery` and pass it any options that fit your needs. - * When your component renders, `useGetTimelineThreadsFromCompanyIdQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetTimelineThreadsFromCompanyIdQuery({ - * variables: { - * companyId: // value for 'companyId' - * page: // value for 'page' - * pageSize: // value for 'pageSize' - * }, - * }); - */ -export function useGetTimelineThreadsFromCompanyIdQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetTimelineThreadsFromCompanyIdDocument, options); - } -export function useGetTimelineThreadsFromCompanyIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetTimelineThreadsFromCompanyIdDocument, options); - } -export type GetTimelineThreadsFromCompanyIdQueryHookResult = ReturnType; -export type GetTimelineThreadsFromCompanyIdLazyQueryHookResult = ReturnType; -export type GetTimelineThreadsFromCompanyIdQueryResult = Apollo.QueryResult; -export const GetTimelineThreadsFromPersonIdDocument = gql` - query GetTimelineThreadsFromPersonId($personId: UUID!, $page: Int!, $pageSize: Int!) { - getTimelineThreadsFromPersonId( - personId: $personId - page: $page - pageSize: $pageSize - ) { - ...TimelineThreadsWithTotalFragment - } -} - ${TimelineThreadsWithTotalFragmentFragmentDoc}`; - -/** - * __useGetTimelineThreadsFromPersonIdQuery__ - * - * To run a query within a React component, call `useGetTimelineThreadsFromPersonIdQuery` and pass it any options that fit your needs. - * When your component renders, `useGetTimelineThreadsFromPersonIdQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetTimelineThreadsFromPersonIdQuery({ - * variables: { - * personId: // value for 'personId' - * page: // value for 'page' - * pageSize: // value for 'pageSize' - * }, - * }); - */ -export function useGetTimelineThreadsFromPersonIdQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetTimelineThreadsFromPersonIdDocument, options); - } -export function useGetTimelineThreadsFromPersonIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetTimelineThreadsFromPersonIdDocument, options); - } -export type GetTimelineThreadsFromPersonIdQueryHookResult = ReturnType; -export type GetTimelineThreadsFromPersonIdLazyQueryHookResult = ReturnType; -export type GetTimelineThreadsFromPersonIdQueryResult = Apollo.QueryResult; -export const TrackAnalyticsDocument = gql` - mutation TrackAnalytics($type: AnalyticsType!, $event: String, $name: String, $properties: JSON) { - trackAnalytics(type: $type, event: $event, name: $name, properties: $properties) { - success - } -} - `; -export type TrackAnalyticsMutationFn = Apollo.MutationFunction; - -/** - * __useTrackAnalyticsMutation__ - * - * To run a mutation, you first call `useTrackAnalyticsMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useTrackAnalyticsMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [trackAnalyticsMutation, { data, loading, error }] = useTrackAnalyticsMutation({ - * variables: { - * type: // value for 'type' - * event: // value for 'event' - * name: // value for 'name' - * properties: // value for 'properties' - * }, - * }); - */ -export function useTrackAnalyticsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(TrackAnalyticsDocument, options); - } -export type TrackAnalyticsMutationHookResult = ReturnType; -export type TrackAnalyticsMutationResult = Apollo.MutationResult; -export type TrackAnalyticsMutationOptions = Apollo.BaseMutationOptions; -export const UploadFileDocument = gql` - mutation uploadFile($file: Upload!, $fileFolder: FileFolder) { - uploadFile(file: $file, fileFolder: $fileFolder) { - path - token - } -} - `; -export type UploadFileMutationFn = Apollo.MutationFunction; - -/** - * __useUploadFileMutation__ - * - * To run a mutation, you first call `useUploadFileMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUploadFileMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [uploadFileMutation, { data, loading, error }] = useUploadFileMutation({ - * variables: { - * file: // value for 'file' - * fileFolder: // value for 'fileFolder' - * }, - * }); - */ -export function useUploadFileMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UploadFileDocument, options); - } -export type UploadFileMutationHookResult = ReturnType; -export type UploadFileMutationResult = Apollo.MutationResult; -export type UploadFileMutationOptions = Apollo.BaseMutationOptions; -export const UploadImageDocument = gql` - mutation uploadImage($file: Upload!, $fileFolder: FileFolder) { - uploadImage(file: $file, fileFolder: $fileFolder) { - path - token - } -} - `; -export type UploadImageMutationFn = Apollo.MutationFunction; - -/** - * __useUploadImageMutation__ - * - * To run a mutation, you first call `useUploadImageMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUploadImageMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [uploadImageMutation, { data, loading, error }] = useUploadImageMutation({ - * variables: { - * file: // value for 'file' - * fileFolder: // value for 'fileFolder' - * }, - * }); - */ -export function useUploadImageMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UploadImageDocument, options); - } -export type UploadImageMutationHookResult = ReturnType; -export type UploadImageMutationResult = Apollo.MutationResult; -export type UploadImageMutationOptions = Apollo.BaseMutationOptions; -export const AuthorizeAppDocument = gql` - mutation authorizeApp($clientId: String!, $codeChallenge: String!, $redirectUrl: String!) { - authorizeApp( - clientId: $clientId - codeChallenge: $codeChallenge - redirectUrl: $redirectUrl - ) { - redirectUrl - } -} - `; -export type AuthorizeAppMutationFn = Apollo.MutationFunction; - -/** - * __useAuthorizeAppMutation__ - * - * To run a mutation, you first call `useAuthorizeAppMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAuthorizeAppMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [authorizeAppMutation, { data, loading, error }] = useAuthorizeAppMutation({ - * variables: { - * clientId: // value for 'clientId' - * codeChallenge: // value for 'codeChallenge' - * redirectUrl: // value for 'redirectUrl' - * }, - * }); - */ -export function useAuthorizeAppMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(AuthorizeAppDocument, options); - } -export type AuthorizeAppMutationHookResult = ReturnType; -export type AuthorizeAppMutationResult = Apollo.MutationResult; -export type AuthorizeAppMutationOptions = Apollo.BaseMutationOptions; -export const EmailPasswordResetLinkDocument = gql` - mutation EmailPasswordResetLink($email: String!, $workspaceId: String!) { - emailPasswordResetLink(email: $email, workspaceId: $workspaceId) { - success - } -} - `; -export type EmailPasswordResetLinkMutationFn = Apollo.MutationFunction; - -/** - * __useEmailPasswordResetLinkMutation__ - * - * To run a mutation, you first call `useEmailPasswordResetLinkMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useEmailPasswordResetLinkMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [emailPasswordResetLinkMutation, { data, loading, error }] = useEmailPasswordResetLinkMutation({ - * variables: { - * email: // value for 'email' - * workspaceId: // value for 'workspaceId' - * }, - * }); - */ -export function useEmailPasswordResetLinkMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(EmailPasswordResetLinkDocument, options); - } -export type EmailPasswordResetLinkMutationHookResult = ReturnType; -export type EmailPasswordResetLinkMutationResult = Apollo.MutationResult; -export type EmailPasswordResetLinkMutationOptions = Apollo.BaseMutationOptions; -export const GenerateApiKeyTokenDocument = gql` - mutation GenerateApiKeyToken($apiKeyId: String!, $expiresAt: String!) { - generateApiKeyToken(apiKeyId: $apiKeyId, expiresAt: $expiresAt) { - token - } -} - `; -export type GenerateApiKeyTokenMutationFn = Apollo.MutationFunction; - -/** - * __useGenerateApiKeyTokenMutation__ - * - * To run a mutation, you first call `useGenerateApiKeyTokenMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useGenerateApiKeyTokenMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [generateApiKeyTokenMutation, { data, loading, error }] = useGenerateApiKeyTokenMutation({ - * variables: { - * apiKeyId: // value for 'apiKeyId' - * expiresAt: // value for 'expiresAt' - * }, - * }); - */ -export function useGenerateApiKeyTokenMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(GenerateApiKeyTokenDocument, options); - } -export type GenerateApiKeyTokenMutationHookResult = ReturnType; -export type GenerateApiKeyTokenMutationResult = Apollo.MutationResult; -export type GenerateApiKeyTokenMutationOptions = Apollo.BaseMutationOptions; -export const GenerateTransientTokenDocument = gql` - mutation generateTransientToken { - generateTransientToken { - transientToken { - token - } - } -} - `; -export type GenerateTransientTokenMutationFn = Apollo.MutationFunction; - -/** - * __useGenerateTransientTokenMutation__ - * - * To run a mutation, you first call `useGenerateTransientTokenMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useGenerateTransientTokenMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [generateTransientTokenMutation, { data, loading, error }] = useGenerateTransientTokenMutation({ - * variables: { - * }, - * }); - */ -export function useGenerateTransientTokenMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(GenerateTransientTokenDocument, options); - } -export type GenerateTransientTokenMutationHookResult = ReturnType; -export type GenerateTransientTokenMutationResult = Apollo.MutationResult; -export type GenerateTransientTokenMutationOptions = Apollo.BaseMutationOptions; -export const GetAuthTokensFromLoginTokenDocument = gql` - mutation GetAuthTokensFromLoginToken($loginToken: String!, $origin: String!) { - getAuthTokensFromLoginToken(loginToken: $loginToken, origin: $origin) { - tokens { - ...AuthTokensFragment - } - } -} - ${AuthTokensFragmentFragmentDoc}`; -export type GetAuthTokensFromLoginTokenMutationFn = Apollo.MutationFunction; - -/** - * __useGetAuthTokensFromLoginTokenMutation__ - * - * To run a mutation, you first call `useGetAuthTokensFromLoginTokenMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useGetAuthTokensFromLoginTokenMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [getAuthTokensFromLoginTokenMutation, { data, loading, error }] = useGetAuthTokensFromLoginTokenMutation({ - * variables: { - * loginToken: // value for 'loginToken' - * origin: // value for 'origin' - * }, - * }); - */ -export function useGetAuthTokensFromLoginTokenMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(GetAuthTokensFromLoginTokenDocument, options); - } -export type GetAuthTokensFromLoginTokenMutationHookResult = ReturnType; -export type GetAuthTokensFromLoginTokenMutationResult = Apollo.MutationResult; -export type GetAuthTokensFromLoginTokenMutationOptions = Apollo.BaseMutationOptions; -export const GetAuthorizationUrlForSsoDocument = gql` - mutation GetAuthorizationUrlForSSO($input: GetAuthorizationUrlForSSOInput!) { - getAuthorizationUrlForSSO(input: $input) { - id - type - authorizationURL - } -} - `; -export type GetAuthorizationUrlForSsoMutationFn = Apollo.MutationFunction; - -/** - * __useGetAuthorizationUrlForSsoMutation__ - * - * To run a mutation, you first call `useGetAuthorizationUrlForSsoMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useGetAuthorizationUrlForSsoMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [getAuthorizationUrlForSsoMutation, { data, loading, error }] = useGetAuthorizationUrlForSsoMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useGetAuthorizationUrlForSsoMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(GetAuthorizationUrlForSsoDocument, options); - } -export type GetAuthorizationUrlForSsoMutationHookResult = ReturnType; -export type GetAuthorizationUrlForSsoMutationResult = Apollo.MutationResult; -export type GetAuthorizationUrlForSsoMutationOptions = Apollo.BaseMutationOptions; -export const GetLoginTokenFromCredentialsDocument = gql` - mutation GetLoginTokenFromCredentials($email: String!, $password: String!, $captchaToken: String, $origin: String!) { - getLoginTokenFromCredentials( - email: $email - password: $password - captchaToken: $captchaToken - origin: $origin - ) { - loginToken { - ...AuthTokenFragment - } - } -} - ${AuthTokenFragmentFragmentDoc}`; -export type GetLoginTokenFromCredentialsMutationFn = Apollo.MutationFunction; - -/** - * __useGetLoginTokenFromCredentialsMutation__ - * - * To run a mutation, you first call `useGetLoginTokenFromCredentialsMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useGetLoginTokenFromCredentialsMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [getLoginTokenFromCredentialsMutation, { data, loading, error }] = useGetLoginTokenFromCredentialsMutation({ - * variables: { - * email: // value for 'email' - * password: // value for 'password' - * captchaToken: // value for 'captchaToken' - * origin: // value for 'origin' - * }, - * }); - */ -export function useGetLoginTokenFromCredentialsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(GetLoginTokenFromCredentialsDocument, options); - } -export type GetLoginTokenFromCredentialsMutationHookResult = ReturnType; -export type GetLoginTokenFromCredentialsMutationResult = Apollo.MutationResult; -export type GetLoginTokenFromCredentialsMutationOptions = Apollo.BaseMutationOptions; -export const GetLoginTokenFromEmailVerificationTokenDocument = gql` - mutation GetLoginTokenFromEmailVerificationToken($emailVerificationToken: String!, $email: String!, $captchaToken: String, $origin: String!) { - getLoginTokenFromEmailVerificationToken( - emailVerificationToken: $emailVerificationToken - email: $email - captchaToken: $captchaToken - origin: $origin - ) { - loginToken { - ...AuthTokenFragment - } - workspaceUrls { - ...WorkspaceUrlsFragment - } - } -} - ${AuthTokenFragmentFragmentDoc} -${WorkspaceUrlsFragmentFragmentDoc}`; -export type GetLoginTokenFromEmailVerificationTokenMutationFn = Apollo.MutationFunction; - -/** - * __useGetLoginTokenFromEmailVerificationTokenMutation__ - * - * To run a mutation, you first call `useGetLoginTokenFromEmailVerificationTokenMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useGetLoginTokenFromEmailVerificationTokenMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [getLoginTokenFromEmailVerificationTokenMutation, { data, loading, error }] = useGetLoginTokenFromEmailVerificationTokenMutation({ - * variables: { - * emailVerificationToken: // value for 'emailVerificationToken' - * email: // value for 'email' - * captchaToken: // value for 'captchaToken' - * origin: // value for 'origin' - * }, - * }); - */ -export function useGetLoginTokenFromEmailVerificationTokenMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(GetLoginTokenFromEmailVerificationTokenDocument, options); - } -export type GetLoginTokenFromEmailVerificationTokenMutationHookResult = ReturnType; -export type GetLoginTokenFromEmailVerificationTokenMutationResult = Apollo.MutationResult; -export type GetLoginTokenFromEmailVerificationTokenMutationOptions = Apollo.BaseMutationOptions; -export const ImpersonateDocument = gql` - mutation Impersonate($userId: String!, $workspaceId: String!) { - impersonate(userId: $userId, workspaceId: $workspaceId) { - workspace { - workspaceUrls { - ...WorkspaceUrlsFragment - } - id - } - loginToken { - ...AuthTokenFragment - } - } -} - ${WorkspaceUrlsFragmentFragmentDoc} -${AuthTokenFragmentFragmentDoc}`; -export type ImpersonateMutationFn = Apollo.MutationFunction; - -/** - * __useImpersonateMutation__ - * - * To run a mutation, you first call `useImpersonateMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useImpersonateMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [impersonateMutation, { data, loading, error }] = useImpersonateMutation({ - * variables: { - * userId: // value for 'userId' - * workspaceId: // value for 'workspaceId' - * }, - * }); - */ -export function useImpersonateMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ImpersonateDocument, options); - } -export type ImpersonateMutationHookResult = ReturnType; -export type ImpersonateMutationResult = Apollo.MutationResult; -export type ImpersonateMutationOptions = Apollo.BaseMutationOptions; -export const RenewTokenDocument = gql` - mutation RenewToken($appToken: String!) { - renewToken(appToken: $appToken) { - tokens { - ...AuthTokensFragment - } - } -} - ${AuthTokensFragmentFragmentDoc}`; -export type RenewTokenMutationFn = Apollo.MutationFunction; - -/** - * __useRenewTokenMutation__ - * - * To run a mutation, you first call `useRenewTokenMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useRenewTokenMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [renewTokenMutation, { data, loading, error }] = useRenewTokenMutation({ - * variables: { - * appToken: // value for 'appToken' - * }, - * }); - */ -export function useRenewTokenMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(RenewTokenDocument, options); - } -export type RenewTokenMutationHookResult = ReturnType; -export type RenewTokenMutationResult = Apollo.MutationResult; -export type RenewTokenMutationOptions = Apollo.BaseMutationOptions; -export const ResendEmailVerificationTokenDocument = gql` - mutation ResendEmailVerificationToken($email: String!, $origin: String!) { - resendEmailVerificationToken(email: $email, origin: $origin) { - success - } -} - `; -export type ResendEmailVerificationTokenMutationFn = Apollo.MutationFunction; - -/** - * __useResendEmailVerificationTokenMutation__ - * - * To run a mutation, you first call `useResendEmailVerificationTokenMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useResendEmailVerificationTokenMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [resendEmailVerificationTokenMutation, { data, loading, error }] = useResendEmailVerificationTokenMutation({ - * variables: { - * email: // value for 'email' - * origin: // value for 'origin' - * }, - * }); - */ -export function useResendEmailVerificationTokenMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ResendEmailVerificationTokenDocument, options); - } -export type ResendEmailVerificationTokenMutationHookResult = ReturnType; -export type ResendEmailVerificationTokenMutationResult = Apollo.MutationResult; -export type ResendEmailVerificationTokenMutationOptions = Apollo.BaseMutationOptions; -export const SignInDocument = gql` - mutation SignIn($email: String!, $password: String!, $captchaToken: String) { - signIn(email: $email, password: $password, captchaToken: $captchaToken) { - availableWorkspaces { - ...AvailableWorkspacesFragment - } - tokens { - ...AuthTokensFragment - } - } -} - ${AvailableWorkspacesFragmentFragmentDoc} -${AuthTokensFragmentFragmentDoc}`; -export type SignInMutationFn = Apollo.MutationFunction; - -/** - * __useSignInMutation__ - * - * To run a mutation, you first call `useSignInMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSignInMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [signInMutation, { data, loading, error }] = useSignInMutation({ - * variables: { - * email: // value for 'email' - * password: // value for 'password' - * captchaToken: // value for 'captchaToken' - * }, - * }); - */ -export function useSignInMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SignInDocument, options); - } -export type SignInMutationHookResult = ReturnType; -export type SignInMutationResult = Apollo.MutationResult; -export type SignInMutationOptions = Apollo.BaseMutationOptions; -export const SignUpDocument = gql` - mutation SignUp($email: String!, $password: String!, $captchaToken: String) { - signUp(email: $email, password: $password, captchaToken: $captchaToken) { - availableWorkspaces { - ...AvailableWorkspacesFragment - } - tokens { - ...AuthTokensFragment - } - } -} - ${AvailableWorkspacesFragmentFragmentDoc} -${AuthTokensFragmentFragmentDoc}`; -export type SignUpMutationFn = Apollo.MutationFunction; - -/** - * __useSignUpMutation__ - * - * To run a mutation, you first call `useSignUpMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSignUpMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [signUpMutation, { data, loading, error }] = useSignUpMutation({ - * variables: { - * email: // value for 'email' - * password: // value for 'password' - * captchaToken: // value for 'captchaToken' - * }, - * }); - */ -export function useSignUpMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SignUpDocument, options); - } -export type SignUpMutationHookResult = ReturnType; -export type SignUpMutationResult = Apollo.MutationResult; -export type SignUpMutationOptions = Apollo.BaseMutationOptions; -export const SignUpInNewWorkspaceDocument = gql` - mutation SignUpInNewWorkspace { - signUpInNewWorkspace { - loginToken { - ...AuthTokenFragment - } - workspace { - id - workspaceUrls { - ...WorkspaceUrlsFragment - } - } - } -} - ${AuthTokenFragmentFragmentDoc} -${WorkspaceUrlsFragmentFragmentDoc}`; -export type SignUpInNewWorkspaceMutationFn = Apollo.MutationFunction; - -/** - * __useSignUpInNewWorkspaceMutation__ - * - * To run a mutation, you first call `useSignUpInNewWorkspaceMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSignUpInNewWorkspaceMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [signUpInNewWorkspaceMutation, { data, loading, error }] = useSignUpInNewWorkspaceMutation({ - * variables: { - * }, - * }); - */ -export function useSignUpInNewWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SignUpInNewWorkspaceDocument, options); - } -export type SignUpInNewWorkspaceMutationHookResult = ReturnType; -export type SignUpInNewWorkspaceMutationResult = Apollo.MutationResult; -export type SignUpInNewWorkspaceMutationOptions = Apollo.BaseMutationOptions; -export const SignUpInWorkspaceDocument = gql` - mutation SignUpInWorkspace($email: String!, $password: String!, $workspaceInviteHash: String, $workspacePersonalInviteToken: String = null, $captchaToken: String, $workspaceId: String, $locale: String, $verifyEmailNextPath: String) { - signUpInWorkspace( - email: $email - password: $password - workspaceInviteHash: $workspaceInviteHash - workspacePersonalInviteToken: $workspacePersonalInviteToken - captchaToken: $captchaToken - workspaceId: $workspaceId - locale: $locale - verifyEmailNextPath: $verifyEmailNextPath - ) { - loginToken { - ...AuthTokenFragment - } - workspace { - id - workspaceUrls { - subdomainUrl - customUrl - } - } - } -} - ${AuthTokenFragmentFragmentDoc}`; -export type SignUpInWorkspaceMutationFn = Apollo.MutationFunction; - -/** - * __useSignUpInWorkspaceMutation__ - * - * To run a mutation, you first call `useSignUpInWorkspaceMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSignUpInWorkspaceMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [signUpInWorkspaceMutation, { data, loading, error }] = useSignUpInWorkspaceMutation({ - * variables: { - * email: // value for 'email' - * password: // value for 'password' - * workspaceInviteHash: // value for 'workspaceInviteHash' - * workspacePersonalInviteToken: // value for 'workspacePersonalInviteToken' - * captchaToken: // value for 'captchaToken' - * workspaceId: // value for 'workspaceId' - * locale: // value for 'locale' - * verifyEmailNextPath: // value for 'verifyEmailNextPath' - * }, - * }); - */ -export function useSignUpInWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SignUpInWorkspaceDocument, options); - } -export type SignUpInWorkspaceMutationHookResult = ReturnType; -export type SignUpInWorkspaceMutationResult = Apollo.MutationResult; -export type SignUpInWorkspaceMutationOptions = Apollo.BaseMutationOptions; -export const UpdatePasswordViaResetTokenDocument = gql` - mutation UpdatePasswordViaResetToken($token: String!, $newPassword: String!) { - updatePasswordViaResetToken( - passwordResetToken: $token - newPassword: $newPassword - ) { - success - } -} - `; -export type UpdatePasswordViaResetTokenMutationFn = Apollo.MutationFunction; - -/** - * __useUpdatePasswordViaResetTokenMutation__ - * - * To run a mutation, you first call `useUpdatePasswordViaResetTokenMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdatePasswordViaResetTokenMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [updatePasswordViaResetTokenMutation, { data, loading, error }] = useUpdatePasswordViaResetTokenMutation({ - * variables: { - * token: // value for 'token' - * newPassword: // value for 'newPassword' - * }, - * }); - */ -export function useUpdatePasswordViaResetTokenMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdatePasswordViaResetTokenDocument, options); - } -export type UpdatePasswordViaResetTokenMutationHookResult = ReturnType; -export type UpdatePasswordViaResetTokenMutationResult = Apollo.MutationResult; -export type UpdatePasswordViaResetTokenMutationOptions = Apollo.BaseMutationOptions; -export const CheckUserExistsDocument = gql` - query CheckUserExists($email: String!, $captchaToken: String) { - checkUserExists(email: $email, captchaToken: $captchaToken) { - exists - availableWorkspacesCount - isEmailVerified - } -} - `; - -/** - * __useCheckUserExistsQuery__ - * - * To run a query within a React component, call `useCheckUserExistsQuery` and pass it any options that fit your needs. - * When your component renders, `useCheckUserExistsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useCheckUserExistsQuery({ - * variables: { - * email: // value for 'email' - * captchaToken: // value for 'captchaToken' - * }, - * }); - */ -export function useCheckUserExistsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(CheckUserExistsDocument, options); - } -export function useCheckUserExistsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(CheckUserExistsDocument, options); - } -export type CheckUserExistsQueryHookResult = ReturnType; -export type CheckUserExistsLazyQueryHookResult = ReturnType; -export type CheckUserExistsQueryResult = Apollo.QueryResult; -export const GetPublicWorkspaceDataByDomainDocument = gql` - query GetPublicWorkspaceDataByDomain($origin: String!) { - getPublicWorkspaceDataByDomain(origin: $origin) { - id - logo - displayName - workspaceUrls { - ...WorkspaceUrlsFragment - } - authProviders { - sso { - id - name - type - status - issuer - } - google - magicLink - password - microsoft - } - } -} - ${WorkspaceUrlsFragmentFragmentDoc}`; - -/** - * __useGetPublicWorkspaceDataByDomainQuery__ - * - * To run a query within a React component, call `useGetPublicWorkspaceDataByDomainQuery` and pass it any options that fit your needs. - * When your component renders, `useGetPublicWorkspaceDataByDomainQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetPublicWorkspaceDataByDomainQuery({ - * variables: { - * origin: // value for 'origin' - * }, - * }); - */ -export function useGetPublicWorkspaceDataByDomainQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetPublicWorkspaceDataByDomainDocument, options); - } -export function useGetPublicWorkspaceDataByDomainLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetPublicWorkspaceDataByDomainDocument, options); - } -export type GetPublicWorkspaceDataByDomainQueryHookResult = ReturnType; -export type GetPublicWorkspaceDataByDomainLazyQueryHookResult = ReturnType; -export type GetPublicWorkspaceDataByDomainQueryResult = Apollo.QueryResult; -export const ValidatePasswordResetTokenDocument = gql` - query ValidatePasswordResetToken($token: String!) { - validatePasswordResetToken(passwordResetToken: $token) { - id - email - } -} - `; - -/** - * __useValidatePasswordResetTokenQuery__ - * - * To run a query within a React component, call `useValidatePasswordResetTokenQuery` and pass it any options that fit your needs. - * When your component renders, `useValidatePasswordResetTokenQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useValidatePasswordResetTokenQuery({ - * variables: { - * token: // value for 'token' - * }, - * }); - */ -export function useValidatePasswordResetTokenQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ValidatePasswordResetTokenDocument, options); - } -export function useValidatePasswordResetTokenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ValidatePasswordResetTokenDocument, options); - } -export type ValidatePasswordResetTokenQueryHookResult = ReturnType; -export type ValidatePasswordResetTokenLazyQueryHookResult = ReturnType; -export type ValidatePasswordResetTokenQueryResult = Apollo.QueryResult; -export const CheckoutSessionDocument = gql` - mutation CheckoutSession($recurringInterval: SubscriptionInterval!, $successUrlPath: String, $plan: BillingPlanKey!, $requirePaymentMethod: Boolean!) { - checkoutSession( - recurringInterval: $recurringInterval - successUrlPath: $successUrlPath - plan: $plan - requirePaymentMethod: $requirePaymentMethod - ) { - url - } -} - `; -export type CheckoutSessionMutationFn = Apollo.MutationFunction; - -/** - * __useCheckoutSessionMutation__ - * - * To run a mutation, you first call `useCheckoutSessionMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCheckoutSessionMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [checkoutSessionMutation, { data, loading, error }] = useCheckoutSessionMutation({ - * variables: { - * recurringInterval: // value for 'recurringInterval' - * successUrlPath: // value for 'successUrlPath' - * plan: // value for 'plan' - * requirePaymentMethod: // value for 'requirePaymentMethod' - * }, - * }); - */ -export function useCheckoutSessionMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CheckoutSessionDocument, options); - } -export type CheckoutSessionMutationHookResult = ReturnType; -export type CheckoutSessionMutationResult = Apollo.MutationResult; -export type CheckoutSessionMutationOptions = Apollo.BaseMutationOptions; -export const EndSubscriptionTrialPeriodDocument = gql` - mutation EndSubscriptionTrialPeriod { - endSubscriptionTrialPeriod { - status - hasPaymentMethod - } -} - `; -export type EndSubscriptionTrialPeriodMutationFn = Apollo.MutationFunction; - -/** - * __useEndSubscriptionTrialPeriodMutation__ - * - * To run a mutation, you first call `useEndSubscriptionTrialPeriodMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useEndSubscriptionTrialPeriodMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [endSubscriptionTrialPeriodMutation, { data, loading, error }] = useEndSubscriptionTrialPeriodMutation({ - * variables: { - * }, - * }); - */ -export function useEndSubscriptionTrialPeriodMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(EndSubscriptionTrialPeriodDocument, options); - } -export type EndSubscriptionTrialPeriodMutationHookResult = ReturnType; -export type EndSubscriptionTrialPeriodMutationResult = Apollo.MutationResult; -export type EndSubscriptionTrialPeriodMutationOptions = Apollo.BaseMutationOptions; -export const SwitchSubscriptionToEnterprisePlanDocument = gql` - mutation SwitchSubscriptionToEnterprisePlan { - switchToEnterprisePlan { - success - } -} - `; -export type SwitchSubscriptionToEnterprisePlanMutationFn = Apollo.MutationFunction; - -/** - * __useSwitchSubscriptionToEnterprisePlanMutation__ - * - * To run a mutation, you first call `useSwitchSubscriptionToEnterprisePlanMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSwitchSubscriptionToEnterprisePlanMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [switchSubscriptionToEnterprisePlanMutation, { data, loading, error }] = useSwitchSubscriptionToEnterprisePlanMutation({ - * variables: { - * }, - * }); - */ -export function useSwitchSubscriptionToEnterprisePlanMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SwitchSubscriptionToEnterprisePlanDocument, options); - } -export type SwitchSubscriptionToEnterprisePlanMutationHookResult = ReturnType; -export type SwitchSubscriptionToEnterprisePlanMutationResult = Apollo.MutationResult; -export type SwitchSubscriptionToEnterprisePlanMutationOptions = Apollo.BaseMutationOptions; -export const SwitchSubscriptionToYearlyIntervalDocument = gql` - mutation SwitchSubscriptionToYearlyInterval { - switchToYearlyInterval { - success - } -} - `; -export type SwitchSubscriptionToYearlyIntervalMutationFn = Apollo.MutationFunction; - -/** - * __useSwitchSubscriptionToYearlyIntervalMutation__ - * - * To run a mutation, you first call `useSwitchSubscriptionToYearlyIntervalMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSwitchSubscriptionToYearlyIntervalMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [switchSubscriptionToYearlyIntervalMutation, { data, loading, error }] = useSwitchSubscriptionToYearlyIntervalMutation({ - * variables: { - * }, - * }); - */ -export function useSwitchSubscriptionToYearlyIntervalMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SwitchSubscriptionToYearlyIntervalDocument, options); - } -export type SwitchSubscriptionToYearlyIntervalMutationHookResult = ReturnType; -export type SwitchSubscriptionToYearlyIntervalMutationResult = Apollo.MutationResult; -export type SwitchSubscriptionToYearlyIntervalMutationOptions = Apollo.BaseMutationOptions; -export const BillingBaseProductPricesDocument = gql` - query billingBaseProductPrices { - plans { - planKey - baseProduct { - name - prices { - ... on BillingPriceLicensedDTO { - unitAmount - stripePriceId - recurringInterval - } - } - } - } -} - `; - -/** - * __useBillingBaseProductPricesQuery__ - * - * To run a query within a React component, call `useBillingBaseProductPricesQuery` and pass it any options that fit your needs. - * When your component renders, `useBillingBaseProductPricesQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useBillingBaseProductPricesQuery({ - * variables: { - * }, - * }); - */ -export function useBillingBaseProductPricesQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(BillingBaseProductPricesDocument, options); - } -export function useBillingBaseProductPricesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(BillingBaseProductPricesDocument, options); - } -export type BillingBaseProductPricesQueryHookResult = ReturnType; -export type BillingBaseProductPricesLazyQueryHookResult = ReturnType; -export type BillingBaseProductPricesQueryResult = Apollo.QueryResult; -export const BillingPortalSessionDocument = gql` - query BillingPortalSession($returnUrlPath: String) { - billingPortalSession(returnUrlPath: $returnUrlPath) { - url - } -} - `; - -/** - * __useBillingPortalSessionQuery__ - * - * To run a query within a React component, call `useBillingPortalSessionQuery` and pass it any options that fit your needs. - * When your component renders, `useBillingPortalSessionQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useBillingPortalSessionQuery({ - * variables: { - * returnUrlPath: // value for 'returnUrlPath' - * }, - * }); - */ -export function useBillingPortalSessionQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(BillingPortalSessionDocument, options); - } -export function useBillingPortalSessionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(BillingPortalSessionDocument, options); - } -export type BillingPortalSessionQueryHookResult = ReturnType; -export type BillingPortalSessionLazyQueryHookResult = ReturnType; -export type BillingPortalSessionQueryResult = Apollo.QueryResult; -export const GetMeteredProductsUsageDocument = gql` - query GetMeteredProductsUsage { - getMeteredProductsUsage { - productKey - usageQuantity - freeTierQuantity - freeTrialQuantity - unitPriceCents - totalCostCents - } -} - `; - -/** - * __useGetMeteredProductsUsageQuery__ - * - * To run a query within a React component, call `useGetMeteredProductsUsageQuery` and pass it any options that fit your needs. - * When your component renders, `useGetMeteredProductsUsageQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetMeteredProductsUsageQuery({ - * variables: { - * }, - * }); - */ -export function useGetMeteredProductsUsageQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetMeteredProductsUsageDocument, options); - } -export function useGetMeteredProductsUsageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetMeteredProductsUsageDocument, options); - } -export type GetMeteredProductsUsageQueryHookResult = ReturnType; -export type GetMeteredProductsUsageLazyQueryHookResult = ReturnType; -export type GetMeteredProductsUsageQueryResult = Apollo.QueryResult; -export const SearchDocument = gql` - query Search($searchInput: String!, $limit: Int!, $after: String, $excludedObjectNameSingulars: [String!], $includedObjectNameSingulars: [String!], $filter: ObjectRecordFilterInput) { - search( - searchInput: $searchInput - limit: $limit - after: $after - excludedObjectNameSingulars: $excludedObjectNameSingulars - includedObjectNameSingulars: $includedObjectNameSingulars - filter: $filter - ) { - edges { - node { - recordId - objectNameSingular - label - imageUrl - tsRankCD - tsRank - } - cursor - } - pageInfo { - hasNextPage - endCursor - } - } -} - `; - -/** - * __useSearchQuery__ - * - * To run a query within a React component, call `useSearchQuery` and pass it any options that fit your needs. - * When your component renders, `useSearchQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useSearchQuery({ - * variables: { - * searchInput: // value for 'searchInput' - * limit: // value for 'limit' - * after: // value for 'after' - * excludedObjectNameSingulars: // value for 'excludedObjectNameSingulars' - * includedObjectNameSingulars: // value for 'includedObjectNameSingulars' - * filter: // value for 'filter' - * }, - * }); - */ -export function useSearchQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(SearchDocument, options); - } -export function useSearchLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(SearchDocument, options); - } -export type SearchQueryHookResult = ReturnType; -export type SearchLazyQueryHookResult = ReturnType; -export type SearchQueryResult = Apollo.QueryResult; -export const SkipBookOnboardingStepDocument = gql` - mutation SkipBookOnboardingStep { - skipBookOnboardingStep { - success - } -} - `; -export type SkipBookOnboardingStepMutationFn = Apollo.MutationFunction; - -/** - * __useSkipBookOnboardingStepMutation__ - * - * To run a mutation, you first call `useSkipBookOnboardingStepMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSkipBookOnboardingStepMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [skipBookOnboardingStepMutation, { data, loading, error }] = useSkipBookOnboardingStepMutation({ - * variables: { - * }, - * }); - */ -export function useSkipBookOnboardingStepMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SkipBookOnboardingStepDocument, options); - } -export type SkipBookOnboardingStepMutationHookResult = ReturnType; -export type SkipBookOnboardingStepMutationResult = Apollo.MutationResult; -export type SkipBookOnboardingStepMutationOptions = Apollo.BaseMutationOptions; -export const SkipSyncEmailOnboardingStepDocument = gql` - mutation SkipSyncEmailOnboardingStep { - skipSyncEmailOnboardingStep { - success - } -} - `; -export type SkipSyncEmailOnboardingStepMutationFn = Apollo.MutationFunction; - -/** - * __useSkipSyncEmailOnboardingStepMutation__ - * - * To run a mutation, you first call `useSkipSyncEmailOnboardingStepMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSkipSyncEmailOnboardingStepMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [skipSyncEmailOnboardingStepMutation, { data, loading, error }] = useSkipSyncEmailOnboardingStepMutation({ - * variables: { - * }, - * }); - */ -export function useSkipSyncEmailOnboardingStepMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SkipSyncEmailOnboardingStepDocument, options); - } -export type SkipSyncEmailOnboardingStepMutationHookResult = ReturnType; -export type SkipSyncEmailOnboardingStepMutationResult = Apollo.MutationResult; -export type SkipSyncEmailOnboardingStepMutationOptions = Apollo.BaseMutationOptions; -export const SaveImapSmtpCaldavDocument = gql` - mutation SaveImapSmtpCaldav($accountOwnerId: String!, $handle: String!, $accountType: AccountType!, $connectionParameters: ConnectionParameters!, $id: String) { - saveImapSmtpCaldav( - accountOwnerId: $accountOwnerId - handle: $handle - accountType: $accountType - connectionParameters: $connectionParameters - id: $id - ) { - success - } -} - `; -export type SaveImapSmtpCaldavMutationFn = Apollo.MutationFunction; - -/** - * __useSaveImapSmtpCaldavMutation__ - * - * To run a mutation, you first call `useSaveImapSmtpCaldavMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSaveImapSmtpCaldavMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [saveImapSmtpCaldavMutation, { data, loading, error }] = useSaveImapSmtpCaldavMutation({ - * variables: { - * accountOwnerId: // value for 'accountOwnerId' - * handle: // value for 'handle' - * accountType: // value for 'accountType' - * connectionParameters: // value for 'connectionParameters' - * id: // value for 'id' - * }, - * }); - */ -export function useSaveImapSmtpCaldavMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SaveImapSmtpCaldavDocument, options); - } -export type SaveImapSmtpCaldavMutationHookResult = ReturnType; -export type SaveImapSmtpCaldavMutationResult = Apollo.MutationResult; -export type SaveImapSmtpCaldavMutationOptions = Apollo.BaseMutationOptions; -export const GetConnectedImapSmtpCaldavAccountDocument = gql` - query GetConnectedImapSmtpCaldavAccount($id: String!) { - getConnectedImapSmtpCaldavAccount(id: $id) { - id - handle - provider - accountOwnerId - connectionParameters { - IMAP { - host - port - secure - username - password - } - SMTP { - host - port - secure - username - password - } - CALDAV { - host - port - secure - username - password - } - } - } -} - `; - -/** - * __useGetConnectedImapSmtpCaldavAccountQuery__ - * - * To run a query within a React component, call `useGetConnectedImapSmtpCaldavAccountQuery` and pass it any options that fit your needs. - * When your component renders, `useGetConnectedImapSmtpCaldavAccountQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetConnectedImapSmtpCaldavAccountQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useGetConnectedImapSmtpCaldavAccountQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetConnectedImapSmtpCaldavAccountDocument, options); - } -export function useGetConnectedImapSmtpCaldavAccountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetConnectedImapSmtpCaldavAccountDocument, options); - } -export type GetConnectedImapSmtpCaldavAccountQueryHookResult = ReturnType; -export type GetConnectedImapSmtpCaldavAccountLazyQueryHookResult = ReturnType; -export type GetConnectedImapSmtpCaldavAccountQueryResult = Apollo.QueryResult; -export const CreateDatabaseConfigVariableDocument = gql` - mutation CreateDatabaseConfigVariable($key: String!, $value: JSON!) { - createDatabaseConfigVariable(key: $key, value: $value) -} - `; -export type CreateDatabaseConfigVariableMutationFn = Apollo.MutationFunction; - -/** - * __useCreateDatabaseConfigVariableMutation__ - * - * To run a mutation, you first call `useCreateDatabaseConfigVariableMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateDatabaseConfigVariableMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [createDatabaseConfigVariableMutation, { data, loading, error }] = useCreateDatabaseConfigVariableMutation({ - * variables: { - * key: // value for 'key' - * value: // value for 'value' - * }, - * }); - */ -export function useCreateDatabaseConfigVariableMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateDatabaseConfigVariableDocument, options); - } -export type CreateDatabaseConfigVariableMutationHookResult = ReturnType; -export type CreateDatabaseConfigVariableMutationResult = Apollo.MutationResult; -export type CreateDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions; -export const DeleteDatabaseConfigVariableDocument = gql` - mutation DeleteDatabaseConfigVariable($key: String!) { - deleteDatabaseConfigVariable(key: $key) -} - `; -export type DeleteDatabaseConfigVariableMutationFn = Apollo.MutationFunction; - -/** - * __useDeleteDatabaseConfigVariableMutation__ - * - * To run a mutation, you first call `useDeleteDatabaseConfigVariableMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useDeleteDatabaseConfigVariableMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [deleteDatabaseConfigVariableMutation, { data, loading, error }] = useDeleteDatabaseConfigVariableMutation({ - * variables: { - * key: // value for 'key' - * }, - * }); - */ -export function useDeleteDatabaseConfigVariableMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteDatabaseConfigVariableDocument, options); - } -export type DeleteDatabaseConfigVariableMutationHookResult = ReturnType; -export type DeleteDatabaseConfigVariableMutationResult = Apollo.MutationResult; -export type DeleteDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions; -export const UpdateDatabaseConfigVariableDocument = gql` - mutation UpdateDatabaseConfigVariable($key: String!, $value: JSON!) { - updateDatabaseConfigVariable(key: $key, value: $value) -} - `; -export type UpdateDatabaseConfigVariableMutationFn = Apollo.MutationFunction; - -/** - * __useUpdateDatabaseConfigVariableMutation__ - * - * To run a mutation, you first call `useUpdateDatabaseConfigVariableMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateDatabaseConfigVariableMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [updateDatabaseConfigVariableMutation, { data, loading, error }] = useUpdateDatabaseConfigVariableMutation({ - * variables: { - * key: // value for 'key' - * value: // value for 'value' - * }, - * }); - */ -export function useUpdateDatabaseConfigVariableMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateDatabaseConfigVariableDocument, options); - } -export type UpdateDatabaseConfigVariableMutationHookResult = ReturnType; -export type UpdateDatabaseConfigVariableMutationResult = Apollo.MutationResult; -export type UpdateDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions; -export const GetConfigVariablesGroupedDocument = gql` - query GetConfigVariablesGrouped { - getConfigVariablesGrouped { - groups { - name - description - isHiddenOnLoad - variables { - name - description - value - isSensitive - isEnvOnly - type - options - source - } - } - } -} - `; - -/** - * __useGetConfigVariablesGroupedQuery__ - * - * To run a query within a React component, call `useGetConfigVariablesGroupedQuery` and pass it any options that fit your needs. - * When your component renders, `useGetConfigVariablesGroupedQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetConfigVariablesGroupedQuery({ - * variables: { - * }, - * }); - */ -export function useGetConfigVariablesGroupedQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetConfigVariablesGroupedDocument, options); - } -export function useGetConfigVariablesGroupedLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetConfigVariablesGroupedDocument, options); - } -export type GetConfigVariablesGroupedQueryHookResult = ReturnType; -export type GetConfigVariablesGroupedLazyQueryHookResult = ReturnType; -export type GetConfigVariablesGroupedQueryResult = Apollo.QueryResult; -export const GetDatabaseConfigVariableDocument = gql` - query GetDatabaseConfigVariable($key: String!) { - getDatabaseConfigVariable(key: $key) { - name - description - value - isSensitive - isEnvOnly - type - options - source - } -} - `; - -/** - * __useGetDatabaseConfigVariableQuery__ - * - * To run a query within a React component, call `useGetDatabaseConfigVariableQuery` and pass it any options that fit your needs. - * When your component renders, `useGetDatabaseConfigVariableQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetDatabaseConfigVariableQuery({ - * variables: { - * key: // value for 'key' - * }, - * }); - */ -export function useGetDatabaseConfigVariableQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetDatabaseConfigVariableDocument, options); - } -export function useGetDatabaseConfigVariableLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetDatabaseConfigVariableDocument, options); - } -export type GetDatabaseConfigVariableQueryHookResult = ReturnType; -export type GetDatabaseConfigVariableLazyQueryHookResult = ReturnType; -export type GetDatabaseConfigVariableQueryResult = Apollo.QueryResult; -export const UpdateWorkspaceFeatureFlagDocument = gql` - mutation UpdateWorkspaceFeatureFlag($workspaceId: String!, $featureFlag: String!, $value: Boolean!) { - updateWorkspaceFeatureFlag( - workspaceId: $workspaceId - featureFlag: $featureFlag - value: $value - ) -} - `; -export type UpdateWorkspaceFeatureFlagMutationFn = Apollo.MutationFunction; - -/** - * __useUpdateWorkspaceFeatureFlagMutation__ - * - * To run a mutation, you first call `useUpdateWorkspaceFeatureFlagMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateWorkspaceFeatureFlagMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [updateWorkspaceFeatureFlagMutation, { data, loading, error }] = useUpdateWorkspaceFeatureFlagMutation({ - * variables: { - * workspaceId: // value for 'workspaceId' - * featureFlag: // value for 'featureFlag' - * value: // value for 'value' - * }, - * }); - */ -export function useUpdateWorkspaceFeatureFlagMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateWorkspaceFeatureFlagDocument, options); - } -export type UpdateWorkspaceFeatureFlagMutationHookResult = ReturnType; -export type UpdateWorkspaceFeatureFlagMutationResult = Apollo.MutationResult; -export type UpdateWorkspaceFeatureFlagMutationOptions = Apollo.BaseMutationOptions; -export const UserLookupAdminPanelDocument = gql` - mutation UserLookupAdminPanel($userIdentifier: String!) { - userLookupAdminPanel(userIdentifier: $userIdentifier) { - user { - id - email - firstName - lastName - } - workspaces { - id - name - logo - totalUsers - allowImpersonation - users { - id - email - firstName - lastName - } - featureFlags { - key - value - } - } - } -} - `; -export type UserLookupAdminPanelMutationFn = Apollo.MutationFunction; - -/** - * __useUserLookupAdminPanelMutation__ - * - * To run a mutation, you first call `useUserLookupAdminPanelMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUserLookupAdminPanelMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [userLookupAdminPanelMutation, { data, loading, error }] = useUserLookupAdminPanelMutation({ - * variables: { - * userIdentifier: // value for 'userIdentifier' - * }, - * }); - */ -export function useUserLookupAdminPanelMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UserLookupAdminPanelDocument, options); - } -export type UserLookupAdminPanelMutationHookResult = ReturnType; -export type UserLookupAdminPanelMutationResult = Apollo.MutationResult; -export type UserLookupAdminPanelMutationOptions = Apollo.BaseMutationOptions; -export const GetVersionInfoDocument = gql` - query GetVersionInfo { - versionInfo { - currentVersion - latestVersion - } -} - `; - -/** - * __useGetVersionInfoQuery__ - * - * To run a query within a React component, call `useGetVersionInfoQuery` and pass it any options that fit your needs. - * When your component renders, `useGetVersionInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetVersionInfoQuery({ - * variables: { - * }, - * }); - */ -export function useGetVersionInfoQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetVersionInfoDocument, options); - } -export function useGetVersionInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetVersionInfoDocument, options); - } -export type GetVersionInfoQueryHookResult = ReturnType; -export type GetVersionInfoLazyQueryHookResult = ReturnType; -export type GetVersionInfoQueryResult = Apollo.QueryResult; -export const GetIndicatorHealthStatusDocument = gql` - query GetIndicatorHealthStatus($indicatorId: HealthIndicatorId!) { - getIndicatorHealthStatus(indicatorId: $indicatorId) { - id - label - description - status - errorMessage - details - queues { - id - queueName - status - } - } -} - `; - -/** - * __useGetIndicatorHealthStatusQuery__ - * - * To run a query within a React component, call `useGetIndicatorHealthStatusQuery` and pass it any options that fit your needs. - * When your component renders, `useGetIndicatorHealthStatusQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetIndicatorHealthStatusQuery({ - * variables: { - * indicatorId: // value for 'indicatorId' - * }, - * }); - */ -export function useGetIndicatorHealthStatusQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetIndicatorHealthStatusDocument, options); - } -export function useGetIndicatorHealthStatusLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetIndicatorHealthStatusDocument, options); - } -export type GetIndicatorHealthStatusQueryHookResult = ReturnType; -export type GetIndicatorHealthStatusLazyQueryHookResult = ReturnType; -export type GetIndicatorHealthStatusQueryResult = Apollo.QueryResult; -export const GetQueueMetricsDocument = gql` - query GetQueueMetrics($queueName: String!, $timeRange: QueueMetricsTimeRange) { - getQueueMetrics(queueName: $queueName, timeRange: $timeRange) { - queueName - timeRange - workers - details { - failed - completed - waiting - active - delayed - failureRate - } - data { - id - data { - x - y - } - } - } -} - `; - -/** - * __useGetQueueMetricsQuery__ - * - * To run a query within a React component, call `useGetQueueMetricsQuery` and pass it any options that fit your needs. - * When your component renders, `useGetQueueMetricsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetQueueMetricsQuery({ - * variables: { - * queueName: // value for 'queueName' - * timeRange: // value for 'timeRange' - * }, - * }); - */ -export function useGetQueueMetricsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetQueueMetricsDocument, options); - } -export function useGetQueueMetricsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetQueueMetricsDocument, options); - } -export type GetQueueMetricsQueryHookResult = ReturnType; -export type GetQueueMetricsLazyQueryHookResult = ReturnType; -export type GetQueueMetricsQueryResult = Apollo.QueryResult; -export const GetSystemHealthStatusDocument = gql` - query GetSystemHealthStatus { - getSystemHealthStatus { - services { - id - label - status - } - } -} - `; - -/** - * __useGetSystemHealthStatusQuery__ - * - * To run a query within a React component, call `useGetSystemHealthStatusQuery` and pass it any options that fit your needs. - * When your component renders, `useGetSystemHealthStatusQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetSystemHealthStatusQuery({ - * variables: { - * }, - * }); - */ -export function useGetSystemHealthStatusQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetSystemHealthStatusDocument, options); - } -export function useGetSystemHealthStatusLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetSystemHealthStatusDocument, options); - } -export type GetSystemHealthStatusQueryHookResult = ReturnType; -export type GetSystemHealthStatusLazyQueryHookResult = ReturnType; -export type GetSystemHealthStatusQueryResult = Apollo.QueryResult; -export const UpdateLabPublicFeatureFlagDocument = gql` - mutation UpdateLabPublicFeatureFlag($input: UpdateLabPublicFeatureFlagInput!) { - updateLabPublicFeatureFlag(input: $input) { - key - value - } -} - `; -export type UpdateLabPublicFeatureFlagMutationFn = Apollo.MutationFunction; - -/** - * __useUpdateLabPublicFeatureFlagMutation__ - * - * To run a mutation, you first call `useUpdateLabPublicFeatureFlagMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateLabPublicFeatureFlagMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [updateLabPublicFeatureFlagMutation, { data, loading, error }] = useUpdateLabPublicFeatureFlagMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useUpdateLabPublicFeatureFlagMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateLabPublicFeatureFlagDocument, options); - } -export type UpdateLabPublicFeatureFlagMutationHookResult = ReturnType; -export type UpdateLabPublicFeatureFlagMutationResult = Apollo.MutationResult; -export type UpdateLabPublicFeatureFlagMutationOptions = Apollo.BaseMutationOptions; -export const CreateOneRoleDocument = gql` - mutation CreateOneRole($createRoleInput: CreateRoleInput!) { - createOneRole(createRoleInput: $createRoleInput) { - ...RoleFragment - } -} - ${RoleFragmentFragmentDoc}`; -export type CreateOneRoleMutationFn = Apollo.MutationFunction; - -/** - * __useCreateOneRoleMutation__ - * - * To run a mutation, you first call `useCreateOneRoleMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateOneRoleMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [createOneRoleMutation, { data, loading, error }] = useCreateOneRoleMutation({ - * variables: { - * createRoleInput: // value for 'createRoleInput' - * }, - * }); - */ -export function useCreateOneRoleMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateOneRoleDocument, options); - } -export type CreateOneRoleMutationHookResult = ReturnType; -export type CreateOneRoleMutationResult = Apollo.MutationResult; -export type CreateOneRoleMutationOptions = Apollo.BaseMutationOptions; -export const DeleteOneRoleDocument = gql` - mutation DeleteOneRole($roleId: String!) { - deleteOneRole(roleId: $roleId) -} - `; -export type DeleteOneRoleMutationFn = Apollo.MutationFunction; - -/** - * __useDeleteOneRoleMutation__ - * - * To run a mutation, you first call `useDeleteOneRoleMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useDeleteOneRoleMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [deleteOneRoleMutation, { data, loading, error }] = useDeleteOneRoleMutation({ - * variables: { - * roleId: // value for 'roleId' - * }, - * }); - */ -export function useDeleteOneRoleMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteOneRoleDocument, options); - } -export type DeleteOneRoleMutationHookResult = ReturnType; -export type DeleteOneRoleMutationResult = Apollo.MutationResult; -export type DeleteOneRoleMutationOptions = Apollo.BaseMutationOptions; -export const UpdateOneRoleDocument = gql` - mutation UpdateOneRole($updateRoleInput: UpdateRoleInput!) { - updateOneRole(updateRoleInput: $updateRoleInput) { - ...RoleFragment - } -} - ${RoleFragmentFragmentDoc}`; -export type UpdateOneRoleMutationFn = Apollo.MutationFunction; - -/** - * __useUpdateOneRoleMutation__ - * - * To run a mutation, you first call `useUpdateOneRoleMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateOneRoleMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [updateOneRoleMutation, { data, loading, error }] = useUpdateOneRoleMutation({ - * variables: { - * updateRoleInput: // value for 'updateRoleInput' - * }, - * }); - */ -export function useUpdateOneRoleMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateOneRoleDocument, options); - } -export type UpdateOneRoleMutationHookResult = ReturnType; -export type UpdateOneRoleMutationResult = Apollo.MutationResult; -export type UpdateOneRoleMutationOptions = Apollo.BaseMutationOptions; -export const UpdateWorkspaceMemberRoleDocument = gql` - mutation UpdateWorkspaceMemberRole($workspaceMemberId: String!, $roleId: String!) { - updateWorkspaceMemberRole( - workspaceMemberId: $workspaceMemberId - roleId: $roleId - ) { - ...WorkspaceMemberQueryFragment - roles { - ...RoleFragment - } - } -} - ${WorkspaceMemberQueryFragmentFragmentDoc} -${RoleFragmentFragmentDoc}`; -export type UpdateWorkspaceMemberRoleMutationFn = Apollo.MutationFunction; - -/** - * __useUpdateWorkspaceMemberRoleMutation__ - * - * To run a mutation, you first call `useUpdateWorkspaceMemberRoleMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateWorkspaceMemberRoleMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [updateWorkspaceMemberRoleMutation, { data, loading, error }] = useUpdateWorkspaceMemberRoleMutation({ - * variables: { - * workspaceMemberId: // value for 'workspaceMemberId' - * roleId: // value for 'roleId' - * }, - * }); - */ -export function useUpdateWorkspaceMemberRoleMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateWorkspaceMemberRoleDocument, options); - } -export type UpdateWorkspaceMemberRoleMutationHookResult = ReturnType; -export type UpdateWorkspaceMemberRoleMutationResult = Apollo.MutationResult; -export type UpdateWorkspaceMemberRoleMutationOptions = Apollo.BaseMutationOptions; -export const UpsertObjectPermissionsDocument = gql` - mutation UpsertObjectPermissions($upsertObjectPermissionsInput: UpsertObjectPermissionsInput!) { - upsertObjectPermissions( - upsertObjectPermissionsInput: $upsertObjectPermissionsInput - ) { - ...ObjectPermissionFragment - } -} - ${ObjectPermissionFragmentFragmentDoc}`; -export type UpsertObjectPermissionsMutationFn = Apollo.MutationFunction; - -/** - * __useUpsertObjectPermissionsMutation__ - * - * To run a mutation, you first call `useUpsertObjectPermissionsMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpsertObjectPermissionsMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [upsertObjectPermissionsMutation, { data, loading, error }] = useUpsertObjectPermissionsMutation({ - * variables: { - * upsertObjectPermissionsInput: // value for 'upsertObjectPermissionsInput' - * }, - * }); - */ -export function useUpsertObjectPermissionsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpsertObjectPermissionsDocument, options); - } -export type UpsertObjectPermissionsMutationHookResult = ReturnType; -export type UpsertObjectPermissionsMutationResult = Apollo.MutationResult; -export type UpsertObjectPermissionsMutationOptions = Apollo.BaseMutationOptions; -export const UpsertSettingPermissionsDocument = gql` - mutation UpsertSettingPermissions($upsertSettingPermissionsInput: UpsertSettingPermissionsInput!) { - upsertSettingPermissions( - upsertSettingPermissionsInput: $upsertSettingPermissionsInput - ) { - ...SettingPermissionFragment - } -} - ${SettingPermissionFragmentFragmentDoc}`; -export type UpsertSettingPermissionsMutationFn = Apollo.MutationFunction; - -/** - * __useUpsertSettingPermissionsMutation__ - * - * To run a mutation, you first call `useUpsertSettingPermissionsMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpsertSettingPermissionsMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [upsertSettingPermissionsMutation, { data, loading, error }] = useUpsertSettingPermissionsMutation({ - * variables: { - * upsertSettingPermissionsInput: // value for 'upsertSettingPermissionsInput' - * }, - * }); - */ -export function useUpsertSettingPermissionsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpsertSettingPermissionsDocument, options); - } -export type UpsertSettingPermissionsMutationHookResult = ReturnType; -export type UpsertSettingPermissionsMutationResult = Apollo.MutationResult; -export type UpsertSettingPermissionsMutationOptions = Apollo.BaseMutationOptions; -export const GetRolesDocument = gql` - query GetRoles { - getRoles { - ...RoleFragment - workspaceMembers { - ...WorkspaceMemberQueryFragment - } - settingPermissions { - ...SettingPermissionFragment - } - objectPermissions { - ...ObjectPermissionFragment - } - } -} - ${RoleFragmentFragmentDoc} -${WorkspaceMemberQueryFragmentFragmentDoc} -${SettingPermissionFragmentFragmentDoc} -${ObjectPermissionFragmentFragmentDoc}`; - -/** - * __useGetRolesQuery__ - * - * To run a query within a React component, call `useGetRolesQuery` and pass it any options that fit your needs. - * When your component renders, `useGetRolesQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetRolesQuery({ - * variables: { - * }, - * }); - */ -export function useGetRolesQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetRolesDocument, options); - } -export function useGetRolesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetRolesDocument, options); - } -export type GetRolesQueryHookResult = ReturnType; -export type GetRolesLazyQueryHookResult = ReturnType; -export type GetRolesQueryResult = Apollo.QueryResult; -export const CreateApprovedAccessDomainDocument = gql` - mutation CreateApprovedAccessDomain($input: CreateApprovedAccessDomainInput!) { - createApprovedAccessDomain(input: $input) { - id - domain - isValidated - createdAt - } -} - `; -export type CreateApprovedAccessDomainMutationFn = Apollo.MutationFunction; - -/** - * __useCreateApprovedAccessDomainMutation__ - * - * To run a mutation, you first call `useCreateApprovedAccessDomainMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateApprovedAccessDomainMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [createApprovedAccessDomainMutation, { data, loading, error }] = useCreateApprovedAccessDomainMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useCreateApprovedAccessDomainMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateApprovedAccessDomainDocument, options); - } -export type CreateApprovedAccessDomainMutationHookResult = ReturnType; -export type CreateApprovedAccessDomainMutationResult = Apollo.MutationResult; -export type CreateApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions; -export const CreateOidcIdentityProviderDocument = gql` - mutation CreateOIDCIdentityProvider($input: SetupOIDCSsoInput!) { - createOIDCIdentityProvider(input: $input) { - id - type - issuer - name - status - } -} - `; -export type CreateOidcIdentityProviderMutationFn = Apollo.MutationFunction; - -/** - * __useCreateOidcIdentityProviderMutation__ - * - * To run a mutation, you first call `useCreateOidcIdentityProviderMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateOidcIdentityProviderMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [createOidcIdentityProviderMutation, { data, loading, error }] = useCreateOidcIdentityProviderMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useCreateOidcIdentityProviderMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateOidcIdentityProviderDocument, options); - } -export type CreateOidcIdentityProviderMutationHookResult = ReturnType; -export type CreateOidcIdentityProviderMutationResult = Apollo.MutationResult; -export type CreateOidcIdentityProviderMutationOptions = Apollo.BaseMutationOptions; -export const CreateSamlIdentityProviderDocument = gql` - mutation CreateSAMLIdentityProvider($input: SetupSAMLSsoInput!) { - createSAMLIdentityProvider(input: $input) { - id - type - issuer - name - status - } -} - `; -export type CreateSamlIdentityProviderMutationFn = Apollo.MutationFunction; - -/** - * __useCreateSamlIdentityProviderMutation__ - * - * To run a mutation, you first call `useCreateSamlIdentityProviderMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateSamlIdentityProviderMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [createSamlIdentityProviderMutation, { data, loading, error }] = useCreateSamlIdentityProviderMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useCreateSamlIdentityProviderMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateSamlIdentityProviderDocument, options); - } -export type CreateSamlIdentityProviderMutationHookResult = ReturnType; -export type CreateSamlIdentityProviderMutationResult = Apollo.MutationResult; -export type CreateSamlIdentityProviderMutationOptions = Apollo.BaseMutationOptions; -export const DeleteApprovedAccessDomainDocument = gql` - mutation DeleteApprovedAccessDomain($input: DeleteApprovedAccessDomainInput!) { - deleteApprovedAccessDomain(input: $input) -} - `; -export type DeleteApprovedAccessDomainMutationFn = Apollo.MutationFunction; - -/** - * __useDeleteApprovedAccessDomainMutation__ - * - * To run a mutation, you first call `useDeleteApprovedAccessDomainMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useDeleteApprovedAccessDomainMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [deleteApprovedAccessDomainMutation, { data, loading, error }] = useDeleteApprovedAccessDomainMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useDeleteApprovedAccessDomainMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteApprovedAccessDomainDocument, options); - } -export type DeleteApprovedAccessDomainMutationHookResult = ReturnType; -export type DeleteApprovedAccessDomainMutationResult = Apollo.MutationResult; -export type DeleteApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions; -export const DeleteSsoIdentityProviderDocument = gql` - mutation DeleteSSOIdentityProvider($input: DeleteSsoInput!) { - deleteSSOIdentityProvider(input: $input) { - identityProviderId - } -} - `; -export type DeleteSsoIdentityProviderMutationFn = Apollo.MutationFunction; - -/** - * __useDeleteSsoIdentityProviderMutation__ - * - * To run a mutation, you first call `useDeleteSsoIdentityProviderMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useDeleteSsoIdentityProviderMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [deleteSsoIdentityProviderMutation, { data, loading, error }] = useDeleteSsoIdentityProviderMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useDeleteSsoIdentityProviderMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteSsoIdentityProviderDocument, options); - } -export type DeleteSsoIdentityProviderMutationHookResult = ReturnType; -export type DeleteSsoIdentityProviderMutationResult = Apollo.MutationResult; -export type DeleteSsoIdentityProviderMutationOptions = Apollo.BaseMutationOptions; -export const EditSsoIdentityProviderDocument = gql` - mutation EditSSOIdentityProvider($input: EditSsoInput!) { - editSSOIdentityProvider(input: $input) { - id - type - issuer - name - status - } -} - `; -export type EditSsoIdentityProviderMutationFn = Apollo.MutationFunction; - -/** - * __useEditSsoIdentityProviderMutation__ - * - * To run a mutation, you first call `useEditSsoIdentityProviderMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useEditSsoIdentityProviderMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [editSsoIdentityProviderMutation, { data, loading, error }] = useEditSsoIdentityProviderMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useEditSsoIdentityProviderMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(EditSsoIdentityProviderDocument, options); - } -export type EditSsoIdentityProviderMutationHookResult = ReturnType; -export type EditSsoIdentityProviderMutationResult = Apollo.MutationResult; -export type EditSsoIdentityProviderMutationOptions = Apollo.BaseMutationOptions; -export const ValidateApprovedAccessDomainDocument = gql` - mutation ValidateApprovedAccessDomain($input: ValidateApprovedAccessDomainInput!) { - validateApprovedAccessDomain(input: $input) { - id - isValidated - domain - createdAt - } -} - `; -export type ValidateApprovedAccessDomainMutationFn = Apollo.MutationFunction; - -/** - * __useValidateApprovedAccessDomainMutation__ - * - * To run a mutation, you first call `useValidateApprovedAccessDomainMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useValidateApprovedAccessDomainMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [validateApprovedAccessDomainMutation, { data, loading, error }] = useValidateApprovedAccessDomainMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useValidateApprovedAccessDomainMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ValidateApprovedAccessDomainDocument, options); - } -export type ValidateApprovedAccessDomainMutationHookResult = ReturnType; -export type ValidateApprovedAccessDomainMutationResult = Apollo.MutationResult; -export type ValidateApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions; -export const GetApprovedAccessDomainsDocument = gql` - query GetApprovedAccessDomains { - getApprovedAccessDomains { - id - createdAt - domain - isValidated - } -} - `; - -/** - * __useGetApprovedAccessDomainsQuery__ - * - * To run a query within a React component, call `useGetApprovedAccessDomainsQuery` and pass it any options that fit your needs. - * When your component renders, `useGetApprovedAccessDomainsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetApprovedAccessDomainsQuery({ - * variables: { - * }, - * }); - */ -export function useGetApprovedAccessDomainsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetApprovedAccessDomainsDocument, options); - } -export function useGetApprovedAccessDomainsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetApprovedAccessDomainsDocument, options); - } -export type GetApprovedAccessDomainsQueryHookResult = ReturnType; -export type GetApprovedAccessDomainsLazyQueryHookResult = ReturnType; -export type GetApprovedAccessDomainsQueryResult = Apollo.QueryResult; -export const GetSsoIdentityProvidersDocument = gql` - query GetSSOIdentityProviders { - getSSOIdentityProviders { - type - id - name - issuer - status - } -} - `; - -/** - * __useGetSsoIdentityProvidersQuery__ - * - * To run a query within a React component, call `useGetSsoIdentityProvidersQuery` and pass it any options that fit your needs. - * When your component renders, `useGetSsoIdentityProvidersQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetSsoIdentityProvidersQuery({ - * variables: { - * }, - * }); - */ -export function useGetSsoIdentityProvidersQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetSsoIdentityProvidersDocument, options); - } -export function useGetSsoIdentityProvidersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetSsoIdentityProvidersDocument, options); - } -export type GetSsoIdentityProvidersQueryHookResult = ReturnType; -export type GetSsoIdentityProvidersLazyQueryHookResult = ReturnType; -export type GetSsoIdentityProvidersQueryResult = Apollo.QueryResult; -export const OnDbEventDocument = gql` - subscription OnDbEvent($input: OnDbEventInput!) { - onDbEvent(input: $input) { - eventDate - action - objectNameSingular - updatedFields - record - } -} - `; - -/** - * __useOnDbEventSubscription__ - * - * To run a query within a React component, call `useOnDbEventSubscription` and pass it any options that fit your needs. - * When your component renders, `useOnDbEventSubscription` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useOnDbEventSubscription({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useOnDbEventSubscription(baseOptions: Apollo.SubscriptionHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useSubscription(OnDbEventDocument, options); - } -export type OnDbEventSubscriptionHookResult = ReturnType; -export type OnDbEventSubscriptionResult = Apollo.SubscriptionResult; -export const DeleteUserAccountDocument = gql` - mutation DeleteUserAccount { - deleteUser { - id - } -} - `; -export type DeleteUserAccountMutationFn = Apollo.MutationFunction; - -/** - * __useDeleteUserAccountMutation__ - * - * To run a mutation, you first call `useDeleteUserAccountMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useDeleteUserAccountMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [deleteUserAccountMutation, { data, loading, error }] = useDeleteUserAccountMutation({ - * variables: { - * }, - * }); - */ -export function useDeleteUserAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteUserAccountDocument, options); - } -export type DeleteUserAccountMutationHookResult = ReturnType; -export type DeleteUserAccountMutationResult = Apollo.MutationResult; -export type DeleteUserAccountMutationOptions = Apollo.BaseMutationOptions; -export const UploadProfilePictureDocument = gql` - mutation UploadProfilePicture($file: Upload!) { - uploadProfilePicture(file: $file) { - path - token - } -} - `; -export type UploadProfilePictureMutationFn = Apollo.MutationFunction; - -/** - * __useUploadProfilePictureMutation__ - * - * To run a mutation, you first call `useUploadProfilePictureMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUploadProfilePictureMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [uploadProfilePictureMutation, { data, loading, error }] = useUploadProfilePictureMutation({ - * variables: { - * file: // value for 'file' - * }, - * }); - */ -export function useUploadProfilePictureMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UploadProfilePictureDocument, options); - } -export type UploadProfilePictureMutationHookResult = ReturnType; -export type UploadProfilePictureMutationResult = Apollo.MutationResult; -export type UploadProfilePictureMutationOptions = Apollo.BaseMutationOptions; -export const GetCurrentUserDocument = gql` - query GetCurrentUser { - currentUser { - ...UserQueryFragment - } -} - ${UserQueryFragmentFragmentDoc}`; - -/** - * __useGetCurrentUserQuery__ - * - * To run a query within a React component, call `useGetCurrentUserQuery` and pass it any options that fit your needs. - * When your component renders, `useGetCurrentUserQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetCurrentUserQuery({ - * variables: { - * }, - * }); - */ -export function useGetCurrentUserQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetCurrentUserDocument, options); - } -export function useGetCurrentUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetCurrentUserDocument, options); - } -export type GetCurrentUserQueryHookResult = ReturnType; -export type GetCurrentUserLazyQueryHookResult = ReturnType; -export type GetCurrentUserQueryResult = Apollo.QueryResult; -export const ActivateWorkflowVersionDocument = gql` - mutation ActivateWorkflowVersion($workflowVersionId: String!) { - activateWorkflowVersion(workflowVersionId: $workflowVersionId) -} - `; -export type ActivateWorkflowVersionMutationFn = Apollo.MutationFunction; - -/** - * __useActivateWorkflowVersionMutation__ - * - * To run a mutation, you first call `useActivateWorkflowVersionMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useActivateWorkflowVersionMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [activateWorkflowVersionMutation, { data, loading, error }] = useActivateWorkflowVersionMutation({ - * variables: { - * workflowVersionId: // value for 'workflowVersionId' - * }, - * }); - */ -export function useActivateWorkflowVersionMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ActivateWorkflowVersionDocument, options); - } -export type ActivateWorkflowVersionMutationHookResult = ReturnType; -export type ActivateWorkflowVersionMutationResult = Apollo.MutationResult; -export type ActivateWorkflowVersionMutationOptions = Apollo.BaseMutationOptions; -export const ComputeStepOutputSchemaDocument = gql` - mutation ComputeStepOutputSchema($input: ComputeStepOutputSchemaInput!) { - computeStepOutputSchema(input: $input) -} - `; -export type ComputeStepOutputSchemaMutationFn = Apollo.MutationFunction; - -/** - * __useComputeStepOutputSchemaMutation__ - * - * To run a mutation, you first call `useComputeStepOutputSchemaMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useComputeStepOutputSchemaMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [computeStepOutputSchemaMutation, { data, loading, error }] = useComputeStepOutputSchemaMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useComputeStepOutputSchemaMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ComputeStepOutputSchemaDocument, options); - } -export type ComputeStepOutputSchemaMutationHookResult = ReturnType; -export type ComputeStepOutputSchemaMutationResult = Apollo.MutationResult; -export type ComputeStepOutputSchemaMutationOptions = Apollo.BaseMutationOptions; -export const CreateDraftFromWorkflowVersionDocument = gql` - mutation CreateDraftFromWorkflowVersion($input: CreateDraftFromWorkflowVersionInput!) { - createDraftFromWorkflowVersion(input: $input) { - id - } -} - `; -export type CreateDraftFromWorkflowVersionMutationFn = Apollo.MutationFunction; - -/** - * __useCreateDraftFromWorkflowVersionMutation__ - * - * To run a mutation, you first call `useCreateDraftFromWorkflowVersionMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateDraftFromWorkflowVersionMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [createDraftFromWorkflowVersionMutation, { data, loading, error }] = useCreateDraftFromWorkflowVersionMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useCreateDraftFromWorkflowVersionMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateDraftFromWorkflowVersionDocument, options); - } -export type CreateDraftFromWorkflowVersionMutationHookResult = ReturnType; -export type CreateDraftFromWorkflowVersionMutationResult = Apollo.MutationResult; -export type CreateDraftFromWorkflowVersionMutationOptions = Apollo.BaseMutationOptions; -export const CreateWorkflowVersionStepDocument = gql` - mutation CreateWorkflowVersionStep($input: CreateWorkflowVersionStepInput!) { - createWorkflowVersionStep(input: $input) { - id - name - type - settings - valid - nextStepIds - } -} - `; -export type CreateWorkflowVersionStepMutationFn = Apollo.MutationFunction; - -/** - * __useCreateWorkflowVersionStepMutation__ - * - * To run a mutation, you first call `useCreateWorkflowVersionStepMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateWorkflowVersionStepMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [createWorkflowVersionStepMutation, { data, loading, error }] = useCreateWorkflowVersionStepMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useCreateWorkflowVersionStepMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateWorkflowVersionStepDocument, options); - } -export type CreateWorkflowVersionStepMutationHookResult = ReturnType; -export type CreateWorkflowVersionStepMutationResult = Apollo.MutationResult; -export type CreateWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions; -export const DeactivateWorkflowVersionDocument = gql` - mutation DeactivateWorkflowVersion($workflowVersionId: String!) { - deactivateWorkflowVersion(workflowVersionId: $workflowVersionId) -} - `; -export type DeactivateWorkflowVersionMutationFn = Apollo.MutationFunction; - -/** - * __useDeactivateWorkflowVersionMutation__ - * - * To run a mutation, you first call `useDeactivateWorkflowVersionMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useDeactivateWorkflowVersionMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [deactivateWorkflowVersionMutation, { data, loading, error }] = useDeactivateWorkflowVersionMutation({ - * variables: { - * workflowVersionId: // value for 'workflowVersionId' - * }, - * }); - */ -export function useDeactivateWorkflowVersionMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeactivateWorkflowVersionDocument, options); - } -export type DeactivateWorkflowVersionMutationHookResult = ReturnType; -export type DeactivateWorkflowVersionMutationResult = Apollo.MutationResult; -export type DeactivateWorkflowVersionMutationOptions = Apollo.BaseMutationOptions; -export const DeleteWorkflowVersionStepDocument = gql` - mutation DeleteWorkflowVersionStep($input: DeleteWorkflowVersionStepInput!) { - deleteWorkflowVersionStep(input: $input) { - id - name - type - settings - valid - nextStepIds - } -} - `; -export type DeleteWorkflowVersionStepMutationFn = Apollo.MutationFunction; - -/** - * __useDeleteWorkflowVersionStepMutation__ - * - * To run a mutation, you first call `useDeleteWorkflowVersionStepMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useDeleteWorkflowVersionStepMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [deleteWorkflowVersionStepMutation, { data, loading, error }] = useDeleteWorkflowVersionStepMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useDeleteWorkflowVersionStepMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteWorkflowVersionStepDocument, options); - } -export type DeleteWorkflowVersionStepMutationHookResult = ReturnType; -export type DeleteWorkflowVersionStepMutationResult = Apollo.MutationResult; -export type DeleteWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions; -export const RunWorkflowVersionDocument = gql` - mutation RunWorkflowVersion($input: RunWorkflowVersionInput!) { - runWorkflowVersion(input: $input) { - workflowRunId - } -} - `; -export type RunWorkflowVersionMutationFn = Apollo.MutationFunction; - -/** - * __useRunWorkflowVersionMutation__ - * - * To run a mutation, you first call `useRunWorkflowVersionMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useRunWorkflowVersionMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [runWorkflowVersionMutation, { data, loading, error }] = useRunWorkflowVersionMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useRunWorkflowVersionMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(RunWorkflowVersionDocument, options); - } -export type RunWorkflowVersionMutationHookResult = ReturnType; -export type RunWorkflowVersionMutationResult = Apollo.MutationResult; -export type RunWorkflowVersionMutationOptions = Apollo.BaseMutationOptions; -export const UpdateWorkflowRunStepDocument = gql` - mutation UpdateWorkflowRunStep($input: UpdateWorkflowRunStepInput!) { - updateWorkflowRunStep(input: $input) { - id - name - type - settings - valid - nextStepIds - } -} - `; -export type UpdateWorkflowRunStepMutationFn = Apollo.MutationFunction; - -/** - * __useUpdateWorkflowRunStepMutation__ - * - * To run a mutation, you first call `useUpdateWorkflowRunStepMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateWorkflowRunStepMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [updateWorkflowRunStepMutation, { data, loading, error }] = useUpdateWorkflowRunStepMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useUpdateWorkflowRunStepMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateWorkflowRunStepDocument, options); - } -export type UpdateWorkflowRunStepMutationHookResult = ReturnType; -export type UpdateWorkflowRunStepMutationResult = Apollo.MutationResult; -export type UpdateWorkflowRunStepMutationOptions = Apollo.BaseMutationOptions; -export const UpdateWorkflowVersionStepDocument = gql` - mutation UpdateWorkflowVersionStep($input: UpdateWorkflowVersionStepInput!) { - updateWorkflowVersionStep(input: $input) { - id - name - type - settings - valid - nextStepIds - } -} - `; -export type UpdateWorkflowVersionStepMutationFn = Apollo.MutationFunction; - -/** - * __useUpdateWorkflowVersionStepMutation__ - * - * To run a mutation, you first call `useUpdateWorkflowVersionStepMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateWorkflowVersionStepMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [updateWorkflowVersionStepMutation, { data, loading, error }] = useUpdateWorkflowVersionStepMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useUpdateWorkflowVersionStepMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateWorkflowVersionStepDocument, options); - } -export type UpdateWorkflowVersionStepMutationHookResult = ReturnType; -export type UpdateWorkflowVersionStepMutationResult = Apollo.MutationResult; -export type UpdateWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions; -export const AssignRoleToAgentDocument = gql` - mutation AssignRoleToAgent($agentId: UUID!, $roleId: UUID!) { - assignRoleToAgent(agentId: $agentId, roleId: $roleId) -} - `; -export type AssignRoleToAgentMutationFn = Apollo.MutationFunction; - -/** - * __useAssignRoleToAgentMutation__ - * - * To run a mutation, you first call `useAssignRoleToAgentMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useAssignRoleToAgentMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [assignRoleToAgentMutation, { data, loading, error }] = useAssignRoleToAgentMutation({ - * variables: { - * agentId: // value for 'agentId' - * roleId: // value for 'roleId' - * }, - * }); - */ -export function useAssignRoleToAgentMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(AssignRoleToAgentDocument, options); - } -export type AssignRoleToAgentMutationHookResult = ReturnType; -export type AssignRoleToAgentMutationResult = Apollo.MutationResult; -export type AssignRoleToAgentMutationOptions = Apollo.BaseMutationOptions; -export const RemoveRoleFromAgentDocument = gql` - mutation RemoveRoleFromAgent($agentId: UUID!) { - removeRoleFromAgent(agentId: $agentId) -} - `; -export type RemoveRoleFromAgentMutationFn = Apollo.MutationFunction; - -/** - * __useRemoveRoleFromAgentMutation__ - * - * To run a mutation, you first call `useRemoveRoleFromAgentMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useRemoveRoleFromAgentMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [removeRoleFromAgentMutation, { data, loading, error }] = useRemoveRoleFromAgentMutation({ - * variables: { - * agentId: // value for 'agentId' - * }, - * }); - */ -export function useRemoveRoleFromAgentMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(RemoveRoleFromAgentDocument, options); - } -export type RemoveRoleFromAgentMutationHookResult = ReturnType; -export type RemoveRoleFromAgentMutationResult = Apollo.MutationResult; -export type RemoveRoleFromAgentMutationOptions = Apollo.BaseMutationOptions; -export const UpdateOneAgentDocument = gql` - mutation UpdateOneAgent($input: UpdateAgentInput!) { - updateOneAgent(input: $input) { - id - name - description - prompt - modelId - responseFormat - } -} - `; -export type UpdateOneAgentMutationFn = Apollo.MutationFunction; - -/** - * __useUpdateOneAgentMutation__ - * - * To run a mutation, you first call `useUpdateOneAgentMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateOneAgentMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [updateOneAgentMutation, { data, loading, error }] = useUpdateOneAgentMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useUpdateOneAgentMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateOneAgentDocument, options); - } -export type UpdateOneAgentMutationHookResult = ReturnType; -export type UpdateOneAgentMutationResult = Apollo.MutationResult; -export type UpdateOneAgentMutationOptions = Apollo.BaseMutationOptions; -export const FindOneAgentDocument = gql` - query FindOneAgent($id: UUID!) { - findOneAgent(input: {id: $id}) { - id - name - description - prompt - modelId - responseFormat - roleId - } -} - `; - -/** - * __useFindOneAgentQuery__ - * - * To run a query within a React component, call `useFindOneAgentQuery` and pass it any options that fit your needs. - * When your component renders, `useFindOneAgentQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useFindOneAgentQuery({ - * variables: { - * id: // value for 'id' - * }, - * }); - */ -export function useFindOneAgentQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(FindOneAgentDocument, options); - } -export function useFindOneAgentLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(FindOneAgentDocument, options); - } -export type FindOneAgentQueryHookResult = ReturnType; -export type FindOneAgentLazyQueryHookResult = ReturnType; -export type FindOneAgentQueryResult = Apollo.QueryResult; -export const SubmitFormStepDocument = gql` - mutation SubmitFormStep($input: SubmitFormStepInput!) { - submitFormStep(input: $input) -} - `; -export type SubmitFormStepMutationFn = Apollo.MutationFunction; - -/** - * __useSubmitFormStepMutation__ - * - * To run a mutation, you first call `useSubmitFormStepMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSubmitFormStepMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [submitFormStepMutation, { data, loading, error }] = useSubmitFormStepMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useSubmitFormStepMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SubmitFormStepDocument, options); - } -export type SubmitFormStepMutationHookResult = ReturnType; -export type SubmitFormStepMutationResult = Apollo.MutationResult; -export type SubmitFormStepMutationOptions = Apollo.BaseMutationOptions; -export const DeleteWorkspaceInvitationDocument = gql` - mutation DeleteWorkspaceInvitation($appTokenId: String!) { - deleteWorkspaceInvitation(appTokenId: $appTokenId) -} - `; -export type DeleteWorkspaceInvitationMutationFn = Apollo.MutationFunction; - -/** - * __useDeleteWorkspaceInvitationMutation__ - * - * To run a mutation, you first call `useDeleteWorkspaceInvitationMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useDeleteWorkspaceInvitationMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [deleteWorkspaceInvitationMutation, { data, loading, error }] = useDeleteWorkspaceInvitationMutation({ - * variables: { - * appTokenId: // value for 'appTokenId' - * }, - * }); - */ -export function useDeleteWorkspaceInvitationMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteWorkspaceInvitationDocument, options); - } -export type DeleteWorkspaceInvitationMutationHookResult = ReturnType; -export type DeleteWorkspaceInvitationMutationResult = Apollo.MutationResult; -export type DeleteWorkspaceInvitationMutationOptions = Apollo.BaseMutationOptions; -export const ResendWorkspaceInvitationDocument = gql` - mutation ResendWorkspaceInvitation($appTokenId: String!) { - resendWorkspaceInvitation(appTokenId: $appTokenId) { - success - errors - result { - ... on WorkspaceInvitation { - id - email - expiresAt - } - } - } -} - `; -export type ResendWorkspaceInvitationMutationFn = Apollo.MutationFunction; - -/** - * __useResendWorkspaceInvitationMutation__ - * - * To run a mutation, you first call `useResendWorkspaceInvitationMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useResendWorkspaceInvitationMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [resendWorkspaceInvitationMutation, { data, loading, error }] = useResendWorkspaceInvitationMutation({ - * variables: { - * appTokenId: // value for 'appTokenId' - * }, - * }); - */ -export function useResendWorkspaceInvitationMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ResendWorkspaceInvitationDocument, options); - } -export type ResendWorkspaceInvitationMutationHookResult = ReturnType; -export type ResendWorkspaceInvitationMutationResult = Apollo.MutationResult; -export type ResendWorkspaceInvitationMutationOptions = Apollo.BaseMutationOptions; -export const SendInvitationsDocument = gql` - mutation SendInvitations($emails: [String!]!) { - sendInvitations(emails: $emails) { - success - errors - result { - ... on WorkspaceInvitation { - id - email - expiresAt - } - } - } -} - `; -export type SendInvitationsMutationFn = Apollo.MutationFunction; - -/** - * __useSendInvitationsMutation__ - * - * To run a mutation, you first call `useSendInvitationsMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useSendInvitationsMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [sendInvitationsMutation, { data, loading, error }] = useSendInvitationsMutation({ - * variables: { - * emails: // value for 'emails' - * }, - * }); - */ -export function useSendInvitationsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SendInvitationsDocument, options); - } -export type SendInvitationsMutationHookResult = ReturnType; -export type SendInvitationsMutationResult = Apollo.MutationResult; -export type SendInvitationsMutationOptions = Apollo.BaseMutationOptions; -export const GetWorkspaceInvitationsDocument = gql` - query GetWorkspaceInvitations { - findWorkspaceInvitations { - id - email - expiresAt - } -} - `; - -/** - * __useGetWorkspaceInvitationsQuery__ - * - * To run a query within a React component, call `useGetWorkspaceInvitationsQuery` and pass it any options that fit your needs. - * When your component renders, `useGetWorkspaceInvitationsQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetWorkspaceInvitationsQuery({ - * variables: { - * }, - * }); - */ -export function useGetWorkspaceInvitationsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetWorkspaceInvitationsDocument, options); - } -export function useGetWorkspaceInvitationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetWorkspaceInvitationsDocument, options); - } -export type GetWorkspaceInvitationsQueryHookResult = ReturnType; -export type GetWorkspaceInvitationsLazyQueryHookResult = ReturnType; -export type GetWorkspaceInvitationsQueryResult = Apollo.QueryResult; -export const ActivateWorkspaceDocument = gql` - mutation ActivateWorkspace($input: ActivateWorkspaceInput!) { - activateWorkspace(data: $input) { - id - } -} - `; -export type ActivateWorkspaceMutationFn = Apollo.MutationFunction; - -/** - * __useActivateWorkspaceMutation__ - * - * To run a mutation, you first call `useActivateWorkspaceMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useActivateWorkspaceMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [activateWorkspaceMutation, { data, loading, error }] = useActivateWorkspaceMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useActivateWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ActivateWorkspaceDocument, options); - } -export type ActivateWorkspaceMutationHookResult = ReturnType; -export type ActivateWorkspaceMutationResult = Apollo.MutationResult; -export type ActivateWorkspaceMutationOptions = Apollo.BaseMutationOptions; -export const DeleteCurrentWorkspaceDocument = gql` - mutation DeleteCurrentWorkspace { - deleteCurrentWorkspace { - id - } -} - `; -export type DeleteCurrentWorkspaceMutationFn = Apollo.MutationFunction; - -/** - * __useDeleteCurrentWorkspaceMutation__ - * - * To run a mutation, you first call `useDeleteCurrentWorkspaceMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useDeleteCurrentWorkspaceMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [deleteCurrentWorkspaceMutation, { data, loading, error }] = useDeleteCurrentWorkspaceMutation({ - * variables: { - * }, - * }); - */ -export function useDeleteCurrentWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteCurrentWorkspaceDocument, options); - } -export type DeleteCurrentWorkspaceMutationHookResult = ReturnType; -export type DeleteCurrentWorkspaceMutationResult = Apollo.MutationResult; -export type DeleteCurrentWorkspaceMutationOptions = Apollo.BaseMutationOptions; -export const UpdateWorkspaceDocument = gql` - mutation UpdateWorkspace($input: UpdateWorkspaceInput!) { - updateWorkspace(data: $input) { - id - customDomain - subdomain - displayName - logo - allowImpersonation - isPublicInviteLinkEnabled - isGoogleAuthEnabled - isMicrosoftAuthEnabled - isPasswordAuthEnabled - defaultRole { - ...RoleFragment - } - } -} - ${RoleFragmentFragmentDoc}`; -export type UpdateWorkspaceMutationFn = Apollo.MutationFunction; - -/** - * __useUpdateWorkspaceMutation__ - * - * To run a mutation, you first call `useUpdateWorkspaceMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateWorkspaceMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [updateWorkspaceMutation, { data, loading, error }] = useUpdateWorkspaceMutation({ - * variables: { - * input: // value for 'input' - * }, - * }); - */ -export function useUpdateWorkspaceMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateWorkspaceDocument, options); - } -export type UpdateWorkspaceMutationHookResult = ReturnType; -export type UpdateWorkspaceMutationResult = Apollo.MutationResult; -export type UpdateWorkspaceMutationOptions = Apollo.BaseMutationOptions; -export const UploadWorkspaceLogoDocument = gql` - mutation UploadWorkspaceLogo($file: Upload!) { - uploadWorkspaceLogo(file: $file) { - path - token - } -} - `; -export type UploadWorkspaceLogoMutationFn = Apollo.MutationFunction; - -/** - * __useUploadWorkspaceLogoMutation__ - * - * To run a mutation, you first call `useUploadWorkspaceLogoMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUploadWorkspaceLogoMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [uploadWorkspaceLogoMutation, { data, loading, error }] = useUploadWorkspaceLogoMutation({ - * variables: { - * file: // value for 'file' - * }, - * }); - */ -export function useUploadWorkspaceLogoMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UploadWorkspaceLogoDocument, options); - } -export type UploadWorkspaceLogoMutationHookResult = ReturnType; -export type UploadWorkspaceLogoMutationResult = Apollo.MutationResult; -export type UploadWorkspaceLogoMutationOptions = Apollo.BaseMutationOptions; -export const CheckCustomDomainValidRecordsDocument = gql` - mutation CheckCustomDomainValidRecords { - checkCustomDomainValidRecords { - id - customDomain - records { - type - key - value - validationType - status - } - } -} - `; -export type CheckCustomDomainValidRecordsMutationFn = Apollo.MutationFunction; - -/** - * __useCheckCustomDomainValidRecordsMutation__ - * - * To run a mutation, you first call `useCheckCustomDomainValidRecordsMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCheckCustomDomainValidRecordsMutation` returns a tuple that includes: - * - A mutate function that you can call at any time to execute the mutation - * - An object with fields that represent the current status of the mutation's execution - * - * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; - * - * @example - * const [checkCustomDomainValidRecordsMutation, { data, loading, error }] = useCheckCustomDomainValidRecordsMutation({ - * variables: { - * }, - * }); - */ -export function useCheckCustomDomainValidRecordsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CheckCustomDomainValidRecordsDocument, options); - } -export type CheckCustomDomainValidRecordsMutationHookResult = ReturnType; -export type CheckCustomDomainValidRecordsMutationResult = Apollo.MutationResult; -export type CheckCustomDomainValidRecordsMutationOptions = Apollo.BaseMutationOptions; -export const GetWorkspaceFromInviteHashDocument = gql` - query GetWorkspaceFromInviteHash($inviteHash: String!) { - findWorkspaceFromInviteHash(inviteHash: $inviteHash) { - id - displayName - logo - allowImpersonation - } -} - `; - -/** - * __useGetWorkspaceFromInviteHashQuery__ - * - * To run a query within a React component, call `useGetWorkspaceFromInviteHashQuery` and pass it any options that fit your needs. - * When your component renders, `useGetWorkspaceFromInviteHashQuery` returns an object from Apollo Client that contains loading, error, and data properties - * you can use to render your UI. - * - * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; - * - * @example - * const { data, loading, error } = useGetWorkspaceFromInviteHashQuery({ - * variables: { - * inviteHash: // value for 'inviteHash' - * }, - * }); - */ -export function useGetWorkspaceFromInviteHashQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetWorkspaceFromInviteHashDocument, options); - } -export function useGetWorkspaceFromInviteHashLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetWorkspaceFromInviteHashDocument, options); - } -export type GetWorkspaceFromInviteHashQueryHookResult = ReturnType; -export type GetWorkspaceFromInviteHashLazyQueryHookResult = ReturnType; -export type GetWorkspaceFromInviteHashQueryResult = Apollo.QueryResult; \ No newline at end of file diff --git a/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx b/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx index f88ce9444..84f64995b 100644 --- a/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx +++ b/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx @@ -1,4 +1,3 @@ -import { useApolloClient } from '@apollo/client'; import { useCallback, useMemo } from 'react'; import { useRecoilCallback, useRecoilState, useRecoilValue } from 'recoil'; import { v4 } from 'uuid'; @@ -29,6 +28,7 @@ import { getActivityAttachmentPathsToRestore } from '@/activities/utils/getActiv import { commandMenuPageState } from '@/command-menu/states/commandMenuPageState'; import { CommandMenuHotkeyScope } from '@/command-menu/types/CommandMenuHotkeyScope'; import { CommandMenuPages } from '@/command-menu/types/CommandMenuPages'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useDeleteManyRecords } from '@/object-record/hooks/useDeleteManyRecords'; import { useLazyFetchAllRecords } from '@/object-record/hooks/useLazyFetchAllRecords'; import { useRestoreManyRecords } from '@/object-record/hooks/useRestoreManyRecords'; @@ -59,7 +59,7 @@ export const ActivityRichTextEditor = ({ }: ActivityRichTextEditorProps) => { const [activityInStore] = useRecoilState(recordStoreFamilyState(activityId)); - const cache = useApolloClient().cache; + const cache = useApolloCoreClient().cache; const activity = activityInStore as Task | Note | null; const { objectMetadataItem: objectMetadataItemActivity } = diff --git a/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx b/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx index 5a408b25c..fa1a99a80 100644 --- a/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx +++ b/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx @@ -5,14 +5,19 @@ import { getFileType } from '@/activities/files/utils/getFileType'; import { ActivityTargetableObject } from '@/activities/types/ActivityTargetableEntity'; import { getActivityTargetObjectFieldIdName } from '@/activities/utils/getActivityTargetObjectFieldIdName'; import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { useCreateOneRecord } from '@/object-record/hooks/useCreateOneRecord'; -import { FileFolder, useUploadFileMutation } from '~/generated/graphql'; import { isDefined } from 'twenty-shared/utils'; +import { + FileFolder, + useUploadFileMutation, +} from '~/generated-metadata/graphql'; export const useUploadAttachmentFile = () => { const currentWorkspaceMember = useRecoilValue(currentWorkspaceMemberState); - const [uploadFile] = useUploadFileMutation(); + const coreClient = useApolloCoreClient(); + const [uploadFile] = useUploadFileMutation({ client: coreClient }); const { createOneRecord: createOneAttachment } = useCreateOneRecord({ diff --git a/packages/twenty-front/src/modules/activities/hooks/useCreateActivityInDB.ts b/packages/twenty-front/src/modules/activities/hooks/useCreateActivityInDB.ts index 4278ef7cf..69a1a0f97 100644 --- a/packages/twenty-front/src/modules/activities/hooks/useCreateActivityInDB.ts +++ b/packages/twenty-front/src/modules/activities/hooks/useCreateActivityInDB.ts @@ -1,6 +1,7 @@ import { isNonEmptyArray } from '@sniptt/guards'; import { ActivityForEditor } from '@/activities/types/ActivityForEditor'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -9,7 +10,6 @@ import { modifyRecordFromCache } from '@/object-record/cache/utils/modifyRecordF import { useCreateManyRecords } from '@/object-record/hooks/useCreateManyRecords'; import { useCreateOneRecord } from '@/object-record/hooks/useCreateOneRecord'; import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState'; -import { useApolloClient } from '@apollo/client'; import { createOneActivityOperationSignatureFactory } from '@/activities/graphql/operation-signatures/factories/createOneActivityOperationSignatureFactory'; import { NoteTarget } from '@/activities/types/NoteTarget'; @@ -55,7 +55,7 @@ export const useCreateActivityInDB = ({ objectNameSingular: activityObjectNameSingular, }); - const cache = useApolloClient().cache; + const cache = useApolloCoreClient().cache; const createActivityInDB = useRecoilCallback( ({ set }) => diff --git a/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts b/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts index 4f057c7b7..261cdba48 100644 --- a/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts +++ b/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts @@ -1,11 +1,10 @@ -import { useApolloClient } from '@apollo/client'; - import { findActivitiesOperationSignatureFactory } from '@/activities/graphql/operation-signatures/factories/findActivitiesOperationSignatureFactory'; import { ActivityTargetableObject } from '@/activities/types/ActivityTargetableEntity'; import { Note } from '@/activities/types/Note'; import { NoteTarget } from '@/activities/types/NoteTarget'; import { Task } from '@/activities/types/Task'; import { TaskTarget } from '@/activities/types/TaskTarget'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -31,7 +30,7 @@ export const usePrepareFindManyActivitiesQuery = ({ objectNameSingular: activityObjectNameSingular, }); - const cache = useApolloClient().cache; + const cache = useApolloCoreClient().cache; const { objectMetadataItems } = useObjectMetadataItems(); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); diff --git a/packages/twenty-front/src/modules/analytics/hooks/useEventTracker.ts b/packages/twenty-front/src/modules/analytics/hooks/useEventTracker.ts index a12fa61ec..525e7a275 100644 --- a/packages/twenty-front/src/modules/analytics/hooks/useEventTracker.ts +++ b/packages/twenty-front/src/modules/analytics/hooks/useEventTracker.ts @@ -4,7 +4,7 @@ import { AnalyticsType, MutationTrackAnalyticsArgs, useTrackAnalyticsMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const ANALYTICS_COOKIE_NAME = 'analyticsCookie'; export const getSessionId = (): string => { diff --git a/packages/twenty-front/src/modules/apollo/components/ApolloProvider.tsx b/packages/twenty-front/src/modules/apollo/components/ApolloProvider.tsx index 0de8afedd..b263900a6 100644 --- a/packages/twenty-front/src/modules/apollo/components/ApolloProvider.tsx +++ b/packages/twenty-front/src/modules/apollo/components/ApolloProvider.tsx @@ -1,8 +1,9 @@ import { ApolloProvider as ApolloProviderBase } from '@apollo/client'; import { useApolloFactory } from '@/apollo/hooks/useApolloFactory'; -import { useRequestFreshCaptchaToken } from '@/captcha/hooks/useRequestFreshCaptchaToken'; import { createCaptchaRefreshLink } from '@/apollo/utils/captchaRefreshLink'; +import { useRequestFreshCaptchaToken } from '@/captcha/hooks/useRequestFreshCaptchaToken'; +import { REACT_APP_SERVER_BASE_URL } from '~/config'; export const ApolloProvider = ({ children }: React.PropsWithChildren) => { const { requestFreshCaptchaToken } = useRequestFreshCaptchaToken(); @@ -10,6 +11,7 @@ export const ApolloProvider = ({ children }: React.PropsWithChildren) => { const captchaRefreshLink = createCaptchaRefreshLink(requestFreshCaptchaToken); const apolloClient = useApolloFactory({ + uri: `${REACT_APP_SERVER_BASE_URL}/metadata`, connectToDevTools: true, extraLinks: [captchaRefreshLink], }); diff --git a/packages/twenty-front/src/modules/app/components/AppRouterProviders.tsx b/packages/twenty-front/src/modules/app/components/AppRouterProviders.tsx index 3ebca4b84..35d6abc16 100644 --- a/packages/twenty-front/src/modules/app/components/AppRouterProviders.tsx +++ b/packages/twenty-front/src/modules/app/components/AppRouterProviders.tsx @@ -10,7 +10,7 @@ import { ClientConfigProviderEffect } from '@/client-config/components/ClientCon import { MainContextStoreProvider } from '@/context-store/components/MainContextStoreProvider'; import { ErrorMessageEffect } from '@/error-handler/components/ErrorMessageEffect'; import { PromiseRejectionEffect } from '@/error-handler/components/PromiseRejectionEffect'; -import { ApolloMetadataClientProvider } from '@/object-metadata/components/ApolloMetadataClientProvider'; +import { ApolloCoreProvider } from '@/object-metadata/components/ApolloCoreProvider'; import { ObjectMetadataItemsLoadEffect } from '@/object-metadata/components/ObjectMetadataItemsLoadEffect'; import { ObjectMetadataItemsProvider } from '@/object-metadata/components/ObjectMetadataItemsProvider'; import { PrefetchDataProvider } from '@/prefetch/components/PrefetchDataProvider'; @@ -44,7 +44,7 @@ export const AppRouterProviders = () => { - + @@ -67,7 +67,7 @@ export const AppRouterProviders = () => { - + diff --git a/packages/twenty-front/src/modules/auth/hooks/__mocks__/useAuth.ts b/packages/twenty-front/src/modules/auth/hooks/__mocks__/useAuth.ts index 4d5c8bd8b..8833fadda 100644 --- a/packages/twenty-front/src/modules/auth/hooks/__mocks__/useAuth.ts +++ b/packages/twenty-front/src/modules/auth/hooks/__mocks__/useAuth.ts @@ -4,7 +4,7 @@ import { GetLoginTokenFromCredentialsDocument, SignUpDocument, SignUpInWorkspaceDocument, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const queries = { getLoginTokenFromCredentials: GetLoginTokenFromCredentialsDocument, diff --git a/packages/twenty-front/src/modules/auth/hooks/useAuth.ts b/packages/twenty-front/src/modules/auth/hooks/useAuth.ts index 1bfae46b9..2bf9f12f8 100644 --- a/packages/twenty-front/src/modules/auth/hooks/useAuth.ts +++ b/packages/twenty-front/src/modules/auth/hooks/useAuth.ts @@ -23,10 +23,10 @@ import { useGetCurrentUserLazyQuery, useGetLoginTokenFromCredentialsMutation, useGetLoginTokenFromEmailVerificationTokenMutation, - useSignUpMutation, useSignInMutation, useSignUpInWorkspaceMutation, -} from '~/generated/graphql'; + useSignUpMutation, +} from '~/generated-metadata/graphql'; import { currentWorkspaceMembersState } from '@/auth/states/currentWorkspaceMembersStates'; import { isDeveloperDefaultSignInPrefilledState } from '@/client-config/states/isDeveloperDefaultSignInPrefilledState'; @@ -41,6 +41,8 @@ import { getTimeFormatFromWorkspaceTimeFormat } from '@/localization/utils/getTi import { currentUserState } from '../states/currentUserState'; import { tokenPairState } from '../states/tokenPairState'; +import { useSignUpInNewWorkspace } from '@/auth/sign-in-up/hooks/useSignUpInNewWorkspace'; +import { availableWorkspacesState } from '@/auth/states/availableWorkspacesState'; import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState'; import { isCurrentUserLoadedState } from '@/auth/states/isCurrentUserLoadedState'; import { @@ -49,6 +51,11 @@ import { } from '@/auth/states/signInUpStepState'; import { workspacePublicDataState } from '@/auth/states/workspacePublicDataState'; import { BillingCheckoutSession } from '@/auth/types/billingCheckoutSession.type'; +import { + countAvailableWorkspaces, + getFirstAvailableWorkspaces, +} from '@/auth/utils/availableWorkspacesUtils'; +import { useRequestFreshCaptchaToken } from '@/captcha/hooks/useRequestFreshCaptchaToken'; import { apiConfigState } from '@/client-config/states/apiConfigState'; import { captchaState } from '@/client-config/states/captchaState'; import { isEmailVerificationRequiredState } from '@/client-config/states/isEmailVerificationRequiredState'; @@ -70,13 +77,6 @@ import { iconsState } from 'twenty-ui/display'; import { cookieStorage } from '~/utils/cookie-storage'; import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; import { dynamicActivate } from '~/utils/i18n/dynamicActivate'; -import { availableWorkspacesState } from '@/auth/states/availableWorkspacesState'; -import { useSignUpInNewWorkspace } from '@/auth/sign-in-up/hooks/useSignUpInNewWorkspace'; -import { - countAvailableWorkspaces, - getFirstAvailableWorkspaces, -} from '@/auth/utils/availableWorkspacesUtils'; -import { useRequestFreshCaptchaToken } from '@/captcha/hooks/useRequestFreshCaptchaToken'; export const useAuth = () => { const setTokenPair = useSetRecoilState(tokenPairState); diff --git a/packages/twenty-front/src/modules/auth/services/AuthService.ts b/packages/twenty-front/src/modules/auth/services/AuthService.ts index 68a57704f..7826f52c8 100644 --- a/packages/twenty-front/src/modules/auth/services/AuthService.ts +++ b/packages/twenty-front/src/modules/auth/services/AuthService.ts @@ -7,14 +7,14 @@ import { } from '@apollo/client'; import { loggerLink } from '@/apollo/utils/loggerLink'; +import { isDefined } from 'twenty-shared/utils'; import { AuthTokenPair, RenewTokenDocument, RenewTokenMutation, RenewTokenMutationVariables, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; -import { isDefined } from 'twenty-shared/utils'; const logger = loggerLink(() => 'Twenty-Refresh'); diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useHandleResetPassword.test.ts b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useHandleResetPassword.test.ts index 7e4592e74..40fbdfe83 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useHandleResetPassword.test.ts +++ b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useHandleResetPassword.test.ts @@ -4,19 +4,19 @@ import { act, renderHook } from '@testing-library/react'; import { RecoilRoot } from 'recoil'; import { useHandleResetPassword } from '@/auth/sign-in-up/hooks/useHandleResetPassword'; +import { workspacePublicDataState } from '@/auth/states/workspacePublicDataState'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; +import { SOURCE_LOCALE } from 'twenty-shared/translations'; import { PublicWorkspaceDataOutput, useEmailPasswordResetLinkMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { dynamicActivate } from '~/utils/i18n/dynamicActivate'; -import { workspacePublicDataState } from '@/auth/states/workspacePublicDataState'; -import { SOURCE_LOCALE } from 'twenty-shared/translations'; // Mocks jest.mock('@/ui/feedback/snack-bar-manager/hooks/useSnackBar'); -jest.mock('~/generated/graphql'); +jest.mock('~/generated-metadata/graphql'); dynamicActivate(SOURCE_LOCALE); diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useHandleResendEmailVerificationToken.ts b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useHandleResendEmailVerificationToken.ts index 6b50d85ec..757b84995 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useHandleResendEmailVerificationToken.ts +++ b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useHandleResendEmailVerificationToken.ts @@ -4,7 +4,7 @@ import { useOrigin } from '@/domain-manager/hooks/useOrigin'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import { t } from '@lingui/core/macro'; -import { useResendEmailVerificationTokenMutation } from '~/generated/graphql'; +import { useResendEmailVerificationTokenMutation } from '~/generated-metadata/graphql'; export const useHandleResendEmailVerificationToken = () => { const { enqueueSnackBar } = useSnackBar(); diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useHandleResetPassword.ts b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useHandleResetPassword.ts index 8e080143a..b14c244dd 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useHandleResetPassword.ts +++ b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useHandleResetPassword.ts @@ -1,12 +1,12 @@ import { useCallback } from 'react'; +import { currentUserState } from '@/auth/states/currentUserState'; +import { workspacePublicDataState } from '@/auth/states/workspacePublicDataState'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import { useLingui } from '@lingui/react/macro'; -import { useEmailPasswordResetLinkMutation } from '~/generated/graphql'; -import { workspacePublicDataState } from '@/auth/states/workspacePublicDataState'; import { useRecoilValue } from 'recoil'; -import { currentUserState } from '@/auth/states/currentUserState'; +import { useEmailPasswordResetLinkMutation } from '~/generated-metadata/graphql'; export const useHandleResetPassword = () => { const { enqueueSnackBar } = useSnackBar(); diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignUpInNewWorkspace.ts b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignUpInNewWorkspace.ts index c41af9fce..17690aaaf 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignUpInNewWorkspace.ts +++ b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignUpInNewWorkspace.ts @@ -1,9 +1,9 @@ -import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; -import { AppPath } from '@/types/AppPath'; -import { useSignUpInNewWorkspaceMutation } from '~/generated/graphql'; import { useRedirectToWorkspaceDomain } from '@/domain-manager/hooks/useRedirectToWorkspaceDomain'; +import { AppPath } from '@/types/AppPath'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; +import { useSignUpInNewWorkspaceMutation } from '~/generated-metadata/graphql'; +import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; export const useSignUpInNewWorkspace = () => { const { redirectToWorkspaceDomain } = useRedirectToWorkspaceDomain(); diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useWorkspaceFromInviteHash.ts b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useWorkspaceFromInviteHash.ts index 60aea7a99..ab524e037 100644 --- a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useWorkspaceFromInviteHash.ts +++ b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useWorkspaceFromInviteHash.ts @@ -9,7 +9,7 @@ import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import { AppPath } from '@/types/AppPath'; import { isDefined } from 'twenty-shared/utils'; -import { useGetWorkspaceFromInviteHashQuery } from '~/generated/graphql'; +import { useGetWorkspaceFromInviteHashQuery } from '~/generated-metadata/graphql'; import { useNavigateApp } from '~/hooks/useNavigateApp'; export const useWorkspaceFromInviteHash = () => { diff --git a/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx b/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx index c5f17ff42..a0920586b 100644 --- a/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx +++ b/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx @@ -1,17 +1,27 @@ import { SubscriptionInfoContainer } from '@/billing/components/SubscriptionInfoContainer'; import { SubscriptionInfoRowContainer } from '@/billing/components/SubscriptionInfoRowContainer'; +import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; +import { formatMonthlyPrices } from '@/billing/utils/formatMonthlyPrices'; +import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; +import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; +import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModal'; +import { useModal } from '@/ui/layout/modal/hooks/useModal'; +import { useSubscriptionStatus } from '@/workspace/hooks/useSubscriptionStatus'; +import styled from '@emotion/styled'; +import { useLingui } from '@lingui/react/macro'; +import { useRecoilState } from 'recoil'; +import { isDefined } from 'twenty-shared/utils'; +import { Tag } from 'twenty-ui/components'; import { H2Title, + IconArrowUp, IconCalendarEvent, IconTag, IconUsers, - IconArrowUp, } from 'twenty-ui/display'; import { Button } from 'twenty-ui/input'; import { Section } from 'twenty-ui/layout'; -import styled from '@emotion/styled'; -import { useLingui } from '@lingui/react/macro'; import { BillingPlanKey, BillingPlanOutput, @@ -21,17 +31,7 @@ import { useBillingBaseProductPricesQuery, useSwitchSubscriptionToEnterprisePlanMutation, useSwitchSubscriptionToYearlyIntervalMutation, -} from '~/generated/graphql'; -import { useRecoilState } from 'recoil'; -import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; -import { Tag } from 'twenty-ui/components'; -import { useModal } from '@/ui/layout/modal/hooks/useModal'; -import { useSubscriptionStatus } from '@/workspace/hooks/useSubscriptionStatus'; -import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModal'; -import { formatMonthlyPrices } from '@/billing/utils/formatMonthlyPrices'; -import { isDefined } from 'twenty-shared/utils'; -import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; -import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; +} from '~/generated-metadata/graphql'; const SWITCH_BILLING_INTERVAL_MODAL_ID = 'switch-billing-interval-modal'; diff --git a/packages/twenty-front/src/modules/billing/hooks/useEndSubscriptionTrialPeriod.ts b/packages/twenty-front/src/modules/billing/hooks/useEndSubscriptionTrialPeriod.ts index cd1f7f3d2..473cdf4f3 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useEndSubscriptionTrialPeriod.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useEndSubscriptionTrialPeriod.ts @@ -5,7 +5,7 @@ import { t } from '@lingui/core/macro'; import { useState } from 'react'; import { useRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { useEndSubscriptionTrialPeriodMutation } from '~/generated/graphql'; +import { useEndSubscriptionTrialPeriodMutation } from '~/generated-metadata/graphql'; export const useEndSubscriptionTrialPeriod = () => { const { enqueueSnackBar } = useSnackBar(); diff --git a/packages/twenty-front/src/modules/billing/hooks/useGetWorkflowNodeExecutionUsage.ts b/packages/twenty-front/src/modules/billing/hooks/useGetWorkflowNodeExecutionUsage.ts index 9fe194ec3..606561414 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useGetWorkflowNodeExecutionUsage.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useGetWorkflowNodeExecutionUsage.ts @@ -3,7 +3,7 @@ import { BillingProductKey, SubscriptionStatus, useGetMeteredProductsUsageQuery, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useGetWorkflowNodeExecutionUsage = () => { const subscriptionStatus = useSubscriptionStatus(); diff --git a/packages/twenty-front/src/modules/billing/hooks/useHandleCheckoutSession.ts b/packages/twenty-front/src/modules/billing/hooks/useHandleCheckoutSession.ts index db10b8f3c..6d9ab61f0 100644 --- a/packages/twenty-front/src/modules/billing/hooks/useHandleCheckoutSession.ts +++ b/packages/twenty-front/src/modules/billing/hooks/useHandleCheckoutSession.ts @@ -1,3 +1,4 @@ +import { useRedirect } from '@/domain-manager/hooks/useRedirect'; import { SettingsPath } from '@/types/SettingsPath'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; @@ -5,10 +6,9 @@ import { useState } from 'react'; import { BillingPlanKey, SubscriptionInterval, + useCheckoutSessionMutation, } from '~/generated-metadata/graphql'; -import { useCheckoutSessionMutation } from '~/generated/graphql'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; -import { useRedirect } from '@/domain-manager/hooks/useRedirect'; export const useHandleCheckoutSession = ({ recurringInterval, diff --git a/packages/twenty-front/src/modules/command-menu/components/CommandMenuContextChipRecordSetterEffect.tsx b/packages/twenty-front/src/modules/command-menu/components/CommandMenuContextChipRecordSetterEffect.tsx index d98e7e4e1..8ae24efb7 100644 --- a/packages/twenty-front/src/modules/command-menu/components/CommandMenuContextChipRecordSetterEffect.tsx +++ b/packages/twenty-front/src/modules/command-menu/components/CommandMenuContextChipRecordSetterEffect.tsx @@ -1,10 +1,10 @@ import { commandMenuNavigationMorphItemByPageState } from '@/command-menu/states/commandMenuNavigationMorphItemsState'; import { commandMenuNavigationRecordsState } from '@/command-menu/states/commandMenuNavigationRecordsState'; import { commandMenuNavigationStackState } from '@/command-menu/states/commandMenuNavigationStackState'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; import { getRecordFromCache } from '@/object-record/cache/utils/getRecordFromCache'; import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions'; -import { useApolloClient } from '@apollo/client'; import { useEffect } from 'react'; import { useRecoilValue, useSetRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; @@ -25,7 +25,7 @@ export const CommandMenuContextChipRecordSetterEffect = () => { commandMenuNavigationStackState, ); - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); useEffect(() => { if (commandMenuNavigationStack.length > 1) { @@ -45,7 +45,7 @@ export const CommandMenuContextChipRecordSetterEffect = () => { const record = getRecordFromCache({ recordId: morphItem.recordId, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItems, objectMetadataItem, objectPermissionsByObjectMetadataId, @@ -65,7 +65,7 @@ export const CommandMenuContextChipRecordSetterEffect = () => { setCommandMenuNavigationRecords(records); } }, [ - apolloClient.cache, + apolloCoreClient.cache, commandMenuNavigationMorphItemByPage, commandMenuNavigationStack, commandMenuNavigationStack.length, diff --git a/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuSearchRecords.tsx b/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuSearchRecords.tsx index 137317653..31ca94ffe 100644 --- a/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuSearchRecords.tsx +++ b/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuSearchRecords.tsx @@ -7,6 +7,7 @@ import { useOpenRecordInCommandMenu } from '@/command-menu/hooks/useOpenRecordIn import { commandMenuSearchState } from '@/command-menu/states/commandMenuSearchState'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions'; import { AppPath } from '@/types/AppPath'; import { t } from '@lingui/core/macro'; @@ -19,6 +20,7 @@ import { useSearchQuery } from '~/generated/graphql'; export const useCommandMenuSearchRecords = () => { const commandMenuSearch = useRecoilValue(commandMenuSearchState); + const coreClient = useApolloCoreClient(); const [deferredCommandMenuSearch] = useDebounce(commandMenuSearch, 300); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); @@ -36,6 +38,7 @@ export const useCommandMenuSearchRecords = () => { }, [objectMetadataItems, objectPermissionsByObjectMetadataId]); const { data: searchData, loading } = useSearchQuery({ + client: coreClient, variables: { searchInput: deferredCommandMenuSearch ?? '', limit: MAX_SEARCH_RESULTS, diff --git a/packages/twenty-front/src/modules/databases/hooks/useCreateOneDatabaseConnection.ts b/packages/twenty-front/src/modules/databases/hooks/useCreateOneDatabaseConnection.ts index dc01f5641..d90146baa 100644 --- a/packages/twenty-front/src/modules/databases/hooks/useCreateOneDatabaseConnection.ts +++ b/packages/twenty-front/src/modules/databases/hooks/useCreateOneDatabaseConnection.ts @@ -2,7 +2,7 @@ import { useMutation } from '@apollo/client'; import { CREATE_ONE_DATABASE_CONNECTION } from '@/databases/graphql/mutations/createOneDatabaseConnection'; import { GET_MANY_DATABASE_CONNECTIONS } from '@/databases/graphql/queries/findManyDatabaseConnections'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { CreateRemoteServerInput, CreateServerMutation, @@ -11,7 +11,7 @@ import { import { isDefined } from 'twenty-shared/utils'; export const useCreateOneDatabaseConnection = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const [mutate] = useMutation< CreateServerMutation, diff --git a/packages/twenty-front/src/modules/databases/hooks/useDeleteOneDatabaseConnection.ts b/packages/twenty-front/src/modules/databases/hooks/useDeleteOneDatabaseConnection.ts index cc10c9d2e..5489aa2a5 100644 --- a/packages/twenty-front/src/modules/databases/hooks/useDeleteOneDatabaseConnection.ts +++ b/packages/twenty-front/src/modules/databases/hooks/useDeleteOneDatabaseConnection.ts @@ -3,7 +3,7 @@ import { getOperationName } from '@apollo/client/utilities'; import { DELETE_ONE_DATABASE_CONNECTION } from '@/databases/graphql/mutations/deleteOneDatabaseConnection'; import { GET_MANY_DATABASE_CONNECTIONS } from '@/databases/graphql/queries/findManyDatabaseConnections'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { DeleteServerMutation, DeleteServerMutationVariables, @@ -11,7 +11,7 @@ import { } from '~/generated-metadata/graphql'; export const useDeleteOneDatabaseConnection = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const [mutate] = useMutation< DeleteServerMutation, diff --git a/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnection.ts b/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnection.ts index ed8ee1cbb..27d92a78e 100644 --- a/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnection.ts +++ b/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnection.ts @@ -2,7 +2,7 @@ import { useQuery, WatchQueryFetchPolicy } from '@apollo/client'; import { GET_ONE_DATABASE_CONNECTION } from '@/databases/graphql/queries/findOneDatabaseConnection'; import { getForeignDataWrapperType } from '@/databases/utils/getForeignDataWrapperType'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { GetOneDatabaseConnectionQuery, GetOneDatabaseConnectionQueryVariables, @@ -21,7 +21,7 @@ export const useGetDatabaseConnection = ({ skip, fetchPolicy, }: UseGetDatabaseConnectionParams) => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const foreignDataWrapperType = getForeignDataWrapperType(databaseKey); const fetchPolicyOption = fetchPolicy ? { fetchPolicy: fetchPolicy } : {}; diff --git a/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnectionTables.ts b/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnectionTables.ts index b5da7e1ea..6c6e6de33 100644 --- a/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnectionTables.ts +++ b/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnectionTables.ts @@ -1,7 +1,7 @@ import { useQuery, WatchQueryFetchPolicy } from '@apollo/client'; import { GET_MANY_REMOTE_TABLES } from '@/databases/graphql/queries/findManyRemoteTables'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { GetManyRemoteTablesQuery, GetManyRemoteTablesQueryVariables, @@ -20,7 +20,7 @@ export const useGetDatabaseConnectionTables = ({ shouldFetchPendingSchemaUpdates, fetchPolicy, }: UseGetDatabaseConnectionTablesParams) => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const fetchPolicyOption = fetchPolicy ? { fetchPolicy: fetchPolicy } : {}; diff --git a/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnections.ts b/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnections.ts index 979249183..c32b42a68 100644 --- a/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnections.ts +++ b/packages/twenty-front/src/modules/databases/hooks/useGetDatabaseConnections.ts @@ -2,7 +2,7 @@ import { useQuery } from '@apollo/client'; import { GET_MANY_DATABASE_CONNECTIONS } from '@/databases/graphql/queries/findManyDatabaseConnections'; import { getForeignDataWrapperType } from '@/databases/utils/getForeignDataWrapperType'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { GetManyDatabaseConnectionsQuery, GetManyDatabaseConnectionsQueryVariables, @@ -17,7 +17,7 @@ export const useGetDatabaseConnections = ({ databaseKey, skip, }: UseGetDatabaseConnectionsParams) => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const foreignDataWrapperType = getForeignDataWrapperType(databaseKey); const { data } = useQuery< diff --git a/packages/twenty-front/src/modules/databases/hooks/useSyncRemoteTable.ts b/packages/twenty-front/src/modules/databases/hooks/useSyncRemoteTable.ts index c3b67d445..f6136db8c 100644 --- a/packages/twenty-front/src/modules/databases/hooks/useSyncRemoteTable.ts +++ b/packages/twenty-front/src/modules/databases/hooks/useSyncRemoteTable.ts @@ -3,7 +3,7 @@ import { useCallback } from 'react'; import { SYNC_REMOTE_TABLE } from '@/databases/graphql/mutations/syncRemoteTable'; import { modifyRemoteTableFromCache } from '@/databases/utils/modifyRemoteTableFromCache'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useFindManyObjectMetadataItems } from '@/object-metadata/hooks/useFindManyObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { useFindManyRecordsQuery } from '@/object-record/hooks/useFindManyRecordsQuery'; @@ -15,7 +15,7 @@ import { import { isDefined } from 'twenty-shared/utils'; export const useSyncRemoteTable = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const apolloClient = useApolloClient(); const { refetch: refetchObjectMetadataItems } = diff --git a/packages/twenty-front/src/modules/databases/hooks/useSyncRemoteTableSchemaChanges.ts b/packages/twenty-front/src/modules/databases/hooks/useSyncRemoteTableSchemaChanges.ts index 70bf67d65..688cfbdc0 100644 --- a/packages/twenty-front/src/modules/databases/hooks/useSyncRemoteTableSchemaChanges.ts +++ b/packages/twenty-front/src/modules/databases/hooks/useSyncRemoteTableSchemaChanges.ts @@ -3,7 +3,7 @@ import { useCallback } from 'react'; import { SYNC_REMOTE_TABLE_SCHEMA_CHANGES } from '@/databases/graphql/mutations/syncRemoteTableSchemaChanges'; import { modifyRemoteTableFromCache } from '@/databases/utils/modifyRemoteTableFromCache'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useFindManyObjectMetadataItems } from '@/object-metadata/hooks/useFindManyObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { useFindManyRecordsQuery } from '@/object-record/hooks/useFindManyRecordsQuery'; @@ -15,7 +15,7 @@ import { import { isDefined } from 'twenty-shared/utils'; export const useSyncRemoteTableSchemaChanges = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const apolloClient = useApolloClient(); const { refetch: refetchObjectMetadataItems } = diff --git a/packages/twenty-front/src/modules/databases/hooks/useUnsyncRemoteTable.ts b/packages/twenty-front/src/modules/databases/hooks/useUnsyncRemoteTable.ts index 423afa960..01ca10bb5 100644 --- a/packages/twenty-front/src/modules/databases/hooks/useUnsyncRemoteTable.ts +++ b/packages/twenty-front/src/modules/databases/hooks/useUnsyncRemoteTable.ts @@ -3,7 +3,7 @@ import { useCallback } from 'react'; import { UNSYNC_REMOTE_TABLE } from '@/databases/graphql/mutations/unsyncRemoteTable'; import { modifyRemoteTableFromCache } from '@/databases/utils/modifyRemoteTableFromCache'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useFindManyObjectMetadataItems } from '@/object-metadata/hooks/useFindManyObjectMetadataItems'; import { RemoteTableInput, @@ -13,7 +13,7 @@ import { import { isDefined } from 'twenty-shared/utils'; export const useUnsyncRemoteTable = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const { refetch: refetchObjectMetadataItems } = useFindManyObjectMetadataItems(); diff --git a/packages/twenty-front/src/modules/databases/hooks/useUpdateOneDatabaseConnection.ts b/packages/twenty-front/src/modules/databases/hooks/useUpdateOneDatabaseConnection.ts index 4fcc930a2..d318cee34 100644 --- a/packages/twenty-front/src/modules/databases/hooks/useUpdateOneDatabaseConnection.ts +++ b/packages/twenty-front/src/modules/databases/hooks/useUpdateOneDatabaseConnection.ts @@ -1,7 +1,7 @@ import { useMutation } from '@apollo/client'; import { UPDATE_ONE_DATABASE_CONNECTION } from '@/databases/graphql/mutations/updateOneDatabaseConnection'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { UpdateRemoteServerInput, UpdateServerMutation, @@ -9,7 +9,7 @@ import { } from '~/generated-metadata/graphql'; export const useUpdateOneDatabaseConnection = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const [mutate] = useMutation< UpdateServerMutation, diff --git a/packages/twenty-front/src/modules/domain-manager/hooks/useGetPublicWorkspaceDataByDomain.ts b/packages/twenty-front/src/modules/domain-manager/hooks/useGetPublicWorkspaceDataByDomain.ts index 201149ff2..69643e952 100644 --- a/packages/twenty-front/src/modules/domain-manager/hooks/useGetPublicWorkspaceDataByDomain.ts +++ b/packages/twenty-front/src/modules/domain-manager/hooks/useGetPublicWorkspaceDataByDomain.ts @@ -7,7 +7,7 @@ import { useRedirectToDefaultDomain } from '@/domain-manager/hooks/useRedirectTo import { workspaceAuthProvidersState } from '@/workspace/states/workspaceAuthProvidersState'; import { useRecoilValue, useSetRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { useGetPublicWorkspaceDataByDomainQuery } from '~/generated/graphql'; +import { useGetPublicWorkspaceDataByDomainQuery } from '~/generated-metadata/graphql'; export const useGetPublicWorkspaceDataByDomain = () => { const { isDefaultDomain } = useIsCurrentLocationOnDefaultDomain(); diff --git a/packages/twenty-front/src/modules/information-banner/components/billing/InformationBannerBillingSubscriptionPaused.tsx b/packages/twenty-front/src/modules/information-banner/components/billing/InformationBannerBillingSubscriptionPaused.tsx index 0b5622f02..0f81ac190 100644 --- a/packages/twenty-front/src/modules/information-banner/components/billing/InformationBannerBillingSubscriptionPaused.tsx +++ b/packages/twenty-front/src/modules/information-banner/components/billing/InformationBannerBillingSubscriptionPaused.tsx @@ -7,7 +7,7 @@ import { isDefined } from 'twenty-shared/utils'; import { SettingPermissionType, useBillingPortalSessionQuery, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; export const InformationBannerBillingSubscriptionPaused = () => { diff --git a/packages/twenty-front/src/modules/information-banner/components/billing/InformationBannerFailPaymentInfo.tsx b/packages/twenty-front/src/modules/information-banner/components/billing/InformationBannerFailPaymentInfo.tsx index 2c5dbb72c..78f2aeae9 100644 --- a/packages/twenty-front/src/modules/information-banner/components/billing/InformationBannerFailPaymentInfo.tsx +++ b/packages/twenty-front/src/modules/information-banner/components/billing/InformationBannerFailPaymentInfo.tsx @@ -7,7 +7,7 @@ import { isDefined } from 'twenty-shared/utils'; import { SettingPermissionType, useBillingPortalSessionQuery, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; export const InformationBannerFailPaymentInfo = () => { diff --git a/packages/twenty-front/src/modules/object-metadata/components/ApolloCoreProvider.tsx b/packages/twenty-front/src/modules/object-metadata/components/ApolloCoreProvider.tsx new file mode 100644 index 000000000..d616697ef --- /dev/null +++ b/packages/twenty-front/src/modules/object-metadata/components/ApolloCoreProvider.tsx @@ -0,0 +1,21 @@ +import { useApolloFactory } from '@/apollo/hooks/useApolloFactory'; +import { REACT_APP_SERVER_BASE_URL } from '~/config'; + +import { ApolloCoreClientContext } from '../contexts/ApolloCoreClientContext'; + +export const ApolloCoreProvider = ({ + children, +}: { + children: React.ReactNode; +}) => { + const apolloCoreClient = useApolloFactory({ + uri: `${REACT_APP_SERVER_BASE_URL}/graphql`, + connectToDevTools: true, // @Felix I am not sure if this is correct, should be false? + }); + + return ( + + {children} + + ); +}; diff --git a/packages/twenty-front/src/modules/object-metadata/components/ApolloMetadataClientProvider.tsx b/packages/twenty-front/src/modules/object-metadata/components/ApolloMetadataClientProvider.tsx deleted file mode 100644 index 1afe800df..000000000 --- a/packages/twenty-front/src/modules/object-metadata/components/ApolloMetadataClientProvider.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { useApolloFactory } from '@/apollo/hooks/useApolloFactory'; -import { REACT_APP_SERVER_BASE_URL } from '~/config'; - -import { ApolloMetadataClientContext } from '../contexts/ApolloClientMetadataContext'; - -export const ApolloMetadataClientProvider = ({ - children, -}: { - children: React.ReactNode; -}) => { - const apolloMetadataClient = useApolloFactory({ - uri: `${REACT_APP_SERVER_BASE_URL}/metadata`, - connectToDevTools: false, - }); - - return ( - - {children} - - ); -}; diff --git a/packages/twenty-front/src/modules/object-metadata/contexts/ApolloClientMetadataContext.ts b/packages/twenty-front/src/modules/object-metadata/contexts/ApolloCoreClientContext.ts similarity index 80% rename from packages/twenty-front/src/modules/object-metadata/contexts/ApolloClientMetadataContext.ts rename to packages/twenty-front/src/modules/object-metadata/contexts/ApolloCoreClientContext.ts index f7f14a581..dac25a36e 100644 --- a/packages/twenty-front/src/modules/object-metadata/contexts/ApolloClientMetadataContext.ts +++ b/packages/twenty-front/src/modules/object-metadata/contexts/ApolloCoreClientContext.ts @@ -1,5 +1,5 @@ import { createContext } from 'react'; import { ApolloClient, NormalizedCacheObject } from '@apollo/client'; -export const ApolloMetadataClientContext = +export const ApolloCoreClientContext = createContext | null>(null); diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/ApolloCoreClientMockedProvider.tsx b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/ApolloCoreClientMockedProvider.tsx new file mode 100644 index 000000000..0d195a040 --- /dev/null +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/ApolloCoreClientMockedProvider.tsx @@ -0,0 +1,16 @@ +import { ReactNode } from 'react'; + +import { ApolloCoreClientContext } from '@/object-metadata/contexts/ApolloCoreClientContext'; +import { mockedApolloCoreClient } from '~/testing/mockedApolloCoreClient'; + +export const ApolloCoreClientMockedProvider = ({ + children, +}: { + children: ReactNode; +}) => { + return ( + + {mockedApolloCoreClient ? children : ''} + + ); +}; diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/ApolloMetadataClientMockedProvider.tsx b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/ApolloMetadataClientMockedProvider.tsx deleted file mode 100644 index 782a605c4..000000000 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/ApolloMetadataClientMockedProvider.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { ReactNode } from 'react'; - -import { ApolloMetadataClientContext } from '@/object-metadata/contexts/ApolloClientMetadataContext'; -import { mockedMetadataApolloClient } from '~/testing/mockedMetadataApolloClient'; - -export const ApolloMetadataClientMockedProvider = ({ - children, -}: { - children: ReactNode; -}) => { - return ( - - {mockedMetadataApolloClient ? children : ''} - - ); -}; diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx index 29f15b1cf..d4c6a02ae 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useFieldMetadataItem.test.tsx @@ -3,7 +3,7 @@ import { act } from 'react'; import { useFieldMetadataItem } from '@/object-metadata/hooks/useFieldMetadataItem'; import { FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; -import { FieldMetadataType, RelationType } from '~/generated/graphql'; +import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; import { diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useApolloCoreClient.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useApolloCoreClient.ts new file mode 100644 index 000000000..6ebc0988d --- /dev/null +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useApolloCoreClient.ts @@ -0,0 +1,18 @@ +import { ApolloCoreClientContext } from '@/object-metadata/contexts/ApolloCoreClientContext'; +import { useApolloClient } from '@apollo/client'; +import { useContext } from 'react'; + +export const useApolloCoreClient = () => { + const apolloCoreClient = useContext(ApolloCoreClientContext); + const apolloClient = useApolloClient(); + + if (process.env.NODE_ENV === 'test') { + return apolloClient; + } + + if (!apolloCoreClient) { + throw new Error('ApolloCoreClient not found'); + } + + return apolloCoreClient; +}; diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useApolloMetadataClient.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useApolloMetadataClient.ts deleted file mode 100644 index 2a75b39dd..000000000 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useApolloMetadataClient.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { ApolloMetadataClientContext } from '@/object-metadata/contexts/ApolloClientMetadataContext'; -import { useApolloClient } from '@apollo/client'; -import { useContext } from 'react'; - -export const useApolloMetadataClient = () => { - const apolloMetadataClient = useContext(ApolloMetadataClientContext); - const apolloClient = useApolloClient(); - - if (process.env.NODE_ENV === 'test') { - return apolloClient; - } - - if (!apolloMetadataClient) { - throw new Error('ApolloMetadataClient not found'); - } - - return apolloMetadataClient; -}; diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useCreateOneFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useCreateOneFieldMetadataItem.ts index 42e40ec0d..c27647bc7 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useCreateOneFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useCreateOneFieldMetadataItem.ts @@ -9,19 +9,15 @@ import { import { CREATE_ONE_FIELD_METADATA_ITEM } from '../graphql/mutations'; import { useRefreshObjectMetadataItems } from '@/object-metadata/hooks/useRefreshObjectMetadataItem'; -import { useApolloMetadataClient } from './useApolloMetadataClient'; export const useCreateOneFieldMetadataItem = () => { - const apolloMetadataClient = useApolloMetadataClient(); const { refreshObjectMetadataItems } = useRefreshObjectMetadataItems('network-only'); const [mutate] = useMutation< CreateOneFieldMetadataItemMutation, CreateOneFieldMetadataItemMutationVariables - >(CREATE_ONE_FIELD_METADATA_ITEM, { - client: apolloMetadataClient, - }); + >(CREATE_ONE_FIELD_METADATA_ITEM); const createOneFieldMetadataItem = async (input: CreateFieldInput) => { const result = await mutate({ diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useCreateOneObjectMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useCreateOneObjectMetadataItem.ts index 935897ab3..a7b42d664 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useCreateOneObjectMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useCreateOneObjectMetadataItem.ts @@ -10,21 +10,17 @@ import { CREATE_ONE_OBJECT_METADATA_ITEM } from '../graphql/mutations'; import { useRefreshObjectMetadataItems } from '@/object-metadata/hooks/useRefreshObjectMetadataItem'; import { useRefreshCachedViews } from '@/views/hooks/useRefreshViews'; -import { useApolloMetadataClient } from './useApolloMetadataClient'; export const useCreateOneObjectMetadataItem = () => { const { refreshCachedViews } = useRefreshCachedViews(); - const apolloMetadataClient = useApolloMetadataClient(); const { refreshObjectMetadataItems } = useRefreshObjectMetadataItems('network-only'); const [mutate] = useMutation< CreateOneObjectMetadataItemMutation, CreateOneObjectMetadataItemMutationVariables - >(CREATE_ONE_OBJECT_METADATA_ITEM, { - client: apolloMetadataClient, - }); + >(CREATE_ONE_OBJECT_METADATA_ITEM); const createOneObjectMetadataItem = async (input: CreateObjectInput) => { const createdObjectMetadata = await mutate({ diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useDeleteOneFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useDeleteOneFieldMetadataItem.ts index 335fd7024..281196303 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useDeleteOneFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useDeleteOneFieldMetadataItem.ts @@ -10,17 +10,12 @@ import { recordIndexKanbanAggregateOperationState } from '@/object-record/record import { AggregateOperations } from '@/object-record/record-table/constants/AggregateOperations'; import { useRecoilState } from 'recoil'; import { DELETE_ONE_FIELD_METADATA_ITEM } from '../graphql/mutations'; -import { useApolloMetadataClient } from './useApolloMetadataClient'; export const useDeleteOneFieldMetadataItem = () => { - const apolloMetadataClient = useApolloMetadataClient(); - const [mutate] = useMutation< DeleteOneFieldMetadataItemMutation, DeleteOneFieldMetadataItemMutationVariables - >(DELETE_ONE_FIELD_METADATA_ITEM, { - client: apolloMetadataClient, - }); + >(DELETE_ONE_FIELD_METADATA_ITEM); const { refreshObjectMetadataItems } = useRefreshObjectMetadataItems('network-only'); diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useDeleteOneObjectMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useDeleteOneObjectMetadataItem.ts index 0cd3bbe94..828b46663 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useDeleteOneObjectMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useDeleteOneObjectMetadataItem.ts @@ -8,17 +8,12 @@ import { import { DELETE_ONE_OBJECT_METADATA_ITEM } from '../graphql/mutations'; import { useRefreshObjectMetadataItems } from '@/object-metadata/hooks/useRefreshObjectMetadataItem'; -import { useApolloMetadataClient } from './useApolloMetadataClient'; export const useDeleteOneObjectMetadataItem = () => { - const apolloMetadataClient = useApolloMetadataClient(); - const [mutate] = useMutation< DeleteOneObjectMetadataItemMutation, DeleteOneObjectMetadataItemMutationVariables - >(DELETE_ONE_OBJECT_METADATA_ITEM, { - client: apolloMetadataClient, - }); + >(DELETE_ONE_OBJECT_METADATA_ITEM); const { refreshObjectMetadataItems } = useRefreshObjectMetadataItems('network-only'); diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useFindManyObjectMetadataItems.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useFindManyObjectMetadataItems.ts index c0ec27705..e04be1085 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useFindManyObjectMetadataItems.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useFindManyObjectMetadataItems.ts @@ -12,23 +12,18 @@ import { logError } from '~/utils/logError'; import { FIND_MANY_OBJECT_METADATA_ITEMS } from '../graphql/queries'; import { mapPaginatedObjectMetadataItemsToObjectMetadataItems } from '../utils/mapPaginatedObjectMetadataItemsToObjectMetadataItems'; -import { useApolloMetadataClient } from './useApolloMetadataClient'; - export const useFindManyObjectMetadataItems = ({ skip, }: { skip?: boolean; } = {}) => { - const apolloMetadataClient = useApolloMetadataClient(); - const { enqueueSnackBar } = useSnackBar(); const { data, loading, error, refetch } = useQuery< ObjectMetadataItemsQuery, ObjectMetadataItemsQueryVariables >(FIND_MANY_OBJECT_METADATA_ITEMS, { - client: apolloMetadataClient ?? undefined, - skip: skip || !apolloMetadataClient, + skip, onError: (error) => { logError('useFindManyObjectMetadataItems error : ' + error); enqueueSnackBar(`${error.message}`, { diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useRefreshObjectMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useRefreshObjectMetadataItem.ts index bd6620d16..41362a3e3 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useRefreshObjectMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useRefreshObjectMetadataItem.ts @@ -1,10 +1,9 @@ import { FIND_MANY_OBJECT_METADATA_ITEMS } from '@/object-metadata/graphql/queries'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; import { isAppWaitingForFreshObjectMetadataState } from '@/object-metadata/states/isAppWaitingForFreshObjectMetadataState'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { mapPaginatedObjectMetadataItemsToObjectMetadataItems } from '@/object-metadata/utils/mapPaginatedObjectMetadataItemsToObjectMetadataItems'; -import { FetchPolicy } from '@apollo/client'; +import { FetchPolicy, useApolloClient } from '@apollo/client'; import { useRecoilCallback } from 'recoil'; import { ObjectMetadataItemsQuery } from '~/generated-metadata/graphql'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; @@ -12,7 +11,7 @@ import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; export const useRefreshObjectMetadataItems = ( fetchPolicy: FetchPolicy = 'network-only', ) => { - const client = useApolloMetadataClient(); + const client = useApolloClient(); const refreshObjectMetadataItems = async () => { const result = await client.query({ diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts index 0691ec89b..78aeaa0df 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneFieldMetadataItem.ts @@ -18,10 +18,8 @@ import { getRecordsFromRecordConnection } from '@/object-record/cache/utils/getR import { RecordGqlConnection } from '@/object-record/graphql/types/RecordGqlConnection'; import { useSetRecordGroups } from '@/object-record/record-group/hooks/useSetRecordGroups'; import { isDefined } from 'twenty-shared/utils'; -import { useApolloMetadataClient } from './useApolloMetadataClient'; export const useUpdateOneFieldMetadataItem = () => { - const apolloMetadataClient = useApolloMetadataClient(); const apolloClient = useApolloClient(); const { refreshObjectMetadataItems } = useRefreshObjectMetadataItems('network-only'); @@ -48,9 +46,7 @@ export const useUpdateOneFieldMetadataItem = () => { const [mutate] = useMutation< UpdateOneFieldMetadataItemMutation, UpdateOneFieldMetadataItemMutationVariables - >(UPDATE_ONE_FIELD_METADATA_ITEM, { - client: apolloMetadataClient ?? undefined, - }); + >(UPDATE_ONE_FIELD_METADATA_ITEM); const updateOneFieldMetadataItem = async ({ objectMetadataId, diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneObjectMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneObjectMetadataItem.ts index 0c91fa230..41c0b04ea 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneObjectMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useUpdateOneObjectMetadataItem.ts @@ -9,18 +9,13 @@ import { import { UPDATE_ONE_OBJECT_METADATA_ITEM } from '../graphql/mutations'; import { useRefreshObjectMetadataItems } from '@/object-metadata/hooks/useRefreshObjectMetadataItem'; -import { useApolloMetadataClient } from './useApolloMetadataClient'; // TODO: Slice the Apollo store synchronously in the update function instead of subscribing, so we can use update after read in the same function call export const useUpdateOneObjectMetadataItem = () => { - const apolloClientMetadata = useApolloMetadataClient(); - const [mutate, { loading }] = useMutation< UpdateOneObjectMetadataItemMutation, UpdateOneObjectMetadataItemMutationVariables - >(UPDATE_ONE_OBJECT_METADATA_ITEM, { - client: apolloClientMetadata ?? undefined, - }); + >(UPDATE_ONE_OBJECT_METADATA_ITEM); const { refreshObjectMetadataItems } = useRefreshObjectMetadataItems('network-only'); diff --git a/packages/twenty-front/src/modules/object-record/cache/hooks/useCreateOneRecordInCache.ts b/packages/twenty-front/src/modules/object-record/cache/hooks/useCreateOneRecordInCache.ts index ac39c71b9..0318e33d5 100644 --- a/packages/twenty-front/src/modules/object-record/cache/hooks/useCreateOneRecordInCache.ts +++ b/packages/twenty-front/src/modules/object-record/cache/hooks/useCreateOneRecordInCache.ts @@ -1,7 +1,7 @@ -import { useApolloClient } from '@apollo/client'; import gql from 'graphql-tag'; import { useRecoilValue } from 'recoil'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { mapObjectMetadataToGraphQLQuery } from '@/object-metadata/utils/mapObjectMetadataToGraphQLQuery'; @@ -24,7 +24,7 @@ export const useCreateOneRecordInCache = ({ const objectMetadataItems = useRecoilValue(objectMetadataItemsState); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); return (record: ObjectRecord) => { const prefilledRecord = prefillRecord({ @@ -60,7 +60,7 @@ export const useCreateOneRecordInCache = ({ ...recordToCreateWithNestedConnections, }; - apolloClient.writeFragment({ + apolloCoreClient.writeFragment({ id: `${capitalize(objectMetadataItem.nameSingular)}:${record.id}`, fragment, data: cachedObjectRecord, diff --git a/packages/twenty-front/src/modules/object-record/cache/hooks/useDeleteRecordFromCache.ts b/packages/twenty-front/src/modules/object-record/cache/hooks/useDeleteRecordFromCache.ts index 90105c700..9e4554e90 100644 --- a/packages/twenty-front/src/modules/object-record/cache/hooks/useDeleteRecordFromCache.ts +++ b/packages/twenty-front/src/modules/object-record/cache/hooks/useDeleteRecordFromCache.ts @@ -1,5 +1,4 @@ -import { useApolloClient } from '@apollo/client'; - +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { deleteRecordFromCache } from '@/object-record/cache/utils/deleteRecordFromCache'; @@ -10,7 +9,7 @@ export const useDeleteRecordFromCache = ({ }: { objectNameSingular: string; }) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, @@ -23,7 +22,7 @@ export const useDeleteRecordFromCache = ({ objectMetadataItem, objectMetadataItems, recordToDestroy, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, }); }; }; diff --git a/packages/twenty-front/src/modules/object-record/cache/hooks/useGetRecordFromCache.ts b/packages/twenty-front/src/modules/object-record/cache/hooks/useGetRecordFromCache.ts index 3f6dd782b..b788c679f 100644 --- a/packages/twenty-front/src/modules/object-record/cache/hooks/useGetRecordFromCache.ts +++ b/packages/twenty-front/src/modules/object-record/cache/hooks/useGetRecordFromCache.ts @@ -1,7 +1,7 @@ -import { useApolloClient } from '@apollo/client'; import { useCallback } from 'react'; import { useRecoilValue } from 'recoil'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; import { getRecordFromCache } from '@/object-record/cache/utils/getRecordFromCache'; @@ -27,12 +27,12 @@ export const useGetRecordFromCache = ({ const objectMetadataItems = useRecoilValue(objectMetadataItemsState); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); return useCallback( ( recordId: string, - cache = apolloClient.cache, + cache = apolloCoreClient.cache, ) => { return getRecordFromCache({ cache, @@ -44,7 +44,7 @@ export const useGetRecordFromCache = ({ }); }, [ - apolloClient.cache, + apolloCoreClient.cache, objectMetadataItems, objectMetadataItem, appliedRecordGqlFields, diff --git a/packages/twenty-front/src/modules/object-record/cache/hooks/useReadFindManyRecordsQueryInCache.ts b/packages/twenty-front/src/modules/object-record/cache/hooks/useReadFindManyRecordsQueryInCache.ts index 04b42e22b..0cde12c20 100644 --- a/packages/twenty-front/src/modules/object-record/cache/hooks/useReadFindManyRecordsQueryInCache.ts +++ b/packages/twenty-front/src/modules/object-record/cache/hooks/useReadFindManyRecordsQueryInCache.ts @@ -1,5 +1,4 @@ -import { useApolloClient } from '@apollo/client'; - +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { getRecordsFromRecordConnection } from '@/object-record/cache/utils/getRecordsFromRecordConnection'; @@ -15,7 +14,7 @@ export const useReadFindManyRecordsQueryInCache = ({ }: { objectMetadataItem: ObjectMetadataItem; }) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItems } = useObjectMetadataItems(); @@ -38,7 +37,7 @@ export const useReadFindManyRecordsQueryInCache = ({ }); const existingRecordsQueryResult = - apolloClient.readQuery({ + apolloCoreClient.readQuery({ query: findManyRecordsQueryForCacheRead, variables: queryVariables, }); diff --git a/packages/twenty-front/src/modules/object-record/cache/hooks/useUpsertFindManyRecordsQueryInCache.ts b/packages/twenty-front/src/modules/object-record/cache/hooks/useUpsertFindManyRecordsQueryInCache.ts index adec68766..4677eb8a3 100644 --- a/packages/twenty-front/src/modules/object-record/cache/hooks/useUpsertFindManyRecordsQueryInCache.ts +++ b/packages/twenty-front/src/modules/object-record/cache/hooks/useUpsertFindManyRecordsQueryInCache.ts @@ -1,6 +1,6 @@ -import { useApolloClient } from '@apollo/client'; import { useRecoilValue } from 'recoil'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { getRecordConnectionFromRecords } from '@/object-record/cache/utils/getRecordConnectionFromRecords'; @@ -14,7 +14,7 @@ export const useUpsertFindManyRecordsQueryInCache = ({ }: { objectMetadataItem: ObjectMetadataItem; }) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const objectMetadataItems = useRecoilValue(objectMetadataItemsState); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); @@ -48,7 +48,7 @@ export const useUpsertFindManyRecordsQueryInCache = ({ computeReferences, }); - apolloClient.writeQuery({ + apolloCoreClient.writeQuery({ query: findManyRecordsQueryForCacheOverwrite, variables: queryVariables, data: { diff --git a/packages/twenty-front/src/modules/object-record/cache/hooks/useUpsertFindOneRecordQueryInCache.ts b/packages/twenty-front/src/modules/object-record/cache/hooks/useUpsertFindOneRecordQueryInCache.ts index 5a8d28b32..a112a943b 100644 --- a/packages/twenty-front/src/modules/object-record/cache/hooks/useUpsertFindOneRecordQueryInCache.ts +++ b/packages/twenty-front/src/modules/object-record/cache/hooks/useUpsertFindOneRecordQueryInCache.ts @@ -1,5 +1,4 @@ -import { useApolloClient } from '@apollo/client'; - +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { useFindOneRecordQuery } from '@/object-record/hooks/useFindOneRecordQuery'; import { ObjectRecord } from '@/object-record/types/ObjectRecord'; @@ -13,7 +12,7 @@ export const useUpsertFindOneRecordQueryInCache = ({ recordGqlFields: Record; withSoftDeleted?: boolean; }) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { findOneRecordQuery } = useFindOneRecordQuery({ objectNameSingular: objectMetadataItem.nameSingular, @@ -30,7 +29,7 @@ export const useUpsertFindOneRecordQueryInCache = ({ objectRecordId: string; objectRecordToOverwrite: T; }) => { - apolloClient.writeQuery({ + apolloCoreClient.writeQuery({ query: findOneRecordQuery, variables: { objectRecordId }, data: { diff --git a/packages/twenty-front/src/modules/object-record/graphql/utils/generateDepthOneWithoutRelationsRecordGqlFields.ts b/packages/twenty-front/src/modules/object-record/graphql/utils/generateDepthOneWithoutRelationsRecordGqlFields.ts index ff656176d..5757793c4 100644 --- a/packages/twenty-front/src/modules/object-record/graphql/utils/generateDepthOneWithoutRelationsRecordGqlFields.ts +++ b/packages/twenty-front/src/modules/object-record/graphql/utils/generateDepthOneWithoutRelationsRecordGqlFields.ts @@ -1,5 +1,5 @@ import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; type GenerateDepthOneWithoutRelationsRecordGqlFields = { objectMetadataItem: ObjectMetadataItem; diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useAggregateRecordsQuery.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useAggregateRecordsQuery.test.tsx index 041c8ba19..46841ed39 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useAggregateRecordsQuery.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useAggregateRecordsQuery.test.tsx @@ -5,7 +5,8 @@ import { useAggregateRecordsQuery } from '@/object-record/hooks/useAggregateReco import { AggregateOperations } from '@/object-record/record-table/constants/AggregateOperations'; import { generateAggregateQuery } from '@/object-record/utils/generateAggregateQuery'; import { renderHook } from '@testing-library/react'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; +import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; jest.mock('@/object-metadata/hooks/useObjectMetadataItem'); jest.mock('@/object-record/utils/generateAggregateQuery'); @@ -50,6 +51,10 @@ const mockObjectMetadataItem: ObjectMetadataItem = { isSystem: false, }; +const Wrapper = getJestMetadataAndApolloMocksWrapper({ + apolloMocks: [], +}); + describe('useAggregateRecordsQuery', () => { beforeEach(() => { jest.clearAllMocks(); @@ -67,13 +72,15 @@ describe('useAggregateRecordsQuery', () => { }); it('should handle simple count operation', () => { - const { result } = renderHook(() => - useAggregateRecordsQuery({ - objectNameSingular: 'company', - recordGqlFieldsAggregate: { - name: [AggregateOperations.COUNT], - }, - }), + const { result } = renderHook( + () => + useAggregateRecordsQuery({ + objectNameSingular: 'company', + recordGqlFieldsAggregate: { + name: [AggregateOperations.COUNT], + }, + }), + { wrapper: Wrapper }, ); expect(result.current.gqlFieldToFieldMap).toEqual({ @@ -88,13 +95,15 @@ describe('useAggregateRecordsQuery', () => { }); it('should handle field aggregation', () => { - const { result } = renderHook(() => - useAggregateRecordsQuery({ - objectNameSingular: 'company', - recordGqlFieldsAggregate: { - amount: [AggregateOperations.SUM], - }, - }), + const { result } = renderHook( + () => + useAggregateRecordsQuery({ + objectNameSingular: 'company', + recordGqlFieldsAggregate: { + amount: [AggregateOperations.SUM], + }, + }), + { wrapper: Wrapper }, ); expect(result.current.gqlFieldToFieldMap).toEqual({ @@ -111,26 +120,30 @@ describe('useAggregateRecordsQuery', () => { it('should throw error for invalid aggregation operation', () => { expect(() => - renderHook(() => - useAggregateRecordsQuery({ - objectNameSingular: 'company', - recordGqlFieldsAggregate: { - name: [AggregateOperations.SUM], - }, - }), + renderHook( + () => + useAggregateRecordsQuery({ + objectNameSingular: 'company', + recordGqlFieldsAggregate: { + name: [AggregateOperations.SUM], + }, + }), + { wrapper: Wrapper }, ), ).toThrow(); }); it('should handle multiple aggregations', () => { - const { result } = renderHook(() => - useAggregateRecordsQuery({ - objectNameSingular: 'company', - recordGqlFieldsAggregate: { - amount: [AggregateOperations.SUM], - name: [AggregateOperations.COUNT], - }, - }), + const { result } = renderHook( + () => + useAggregateRecordsQuery({ + objectNameSingular: 'company', + recordGqlFieldsAggregate: { + amount: [AggregateOperations.SUM], + name: [AggregateOperations.COUNT], + }, + }), + { wrapper: Wrapper }, ); expect(result.current.gqlFieldToFieldMap).toHaveProperty('sumAmount'); diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useRefetchAggregateQueries.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useRefetchAggregateQueries.test.tsx index 9b54ad301..c99bc51c7 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useRefetchAggregateQueries.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useRefetchAggregateQueries.test.tsx @@ -1,10 +1,10 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useRefetchAggregateQueries } from '@/object-record/hooks/useRefetchAggregateQueries'; import { getAggregateQueryName } from '@/object-record/utils/getAggregateQueryName'; -import { useApolloClient } from '@apollo/client'; import { renderHook } from '@testing-library/react'; -jest.mock('@apollo/client', () => ({ - useApolloClient: jest.fn(), +jest.mock('@/object-metadata/hooks/useApolloCoreClient', () => ({ + useApolloCoreClient: jest.fn(), })); describe('useRefetchAggregateQueries', () => { @@ -15,7 +15,7 @@ describe('useRefetchAggregateQueries', () => { beforeEach(() => { jest.clearAllMocks(); - (useApolloClient as jest.Mock).mockReturnValue(mockApolloClient); + (useApolloCoreClient as jest.Mock).mockReturnValue(mockApolloClient); }); it('should refetch queries', async () => { diff --git a/packages/twenty-front/src/modules/object-record/hooks/useAggregateRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useAggregateRecords.ts index 451888014..14f09a3ef 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useAggregateRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useAggregateRecords.ts @@ -1,5 +1,6 @@ import { useQuery } from '@apollo/client'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { RecordGqlFieldsAggregate } from '@/object-record/graphql/types/RecordGqlFieldsAggregate'; import { RecordGqlOperationFilter } from '@/object-record/graphql/types/RecordGqlOperationFilter'; @@ -31,6 +32,8 @@ export const useAggregateRecords = ({ objectNameSingular, }); + const apolloCoreClient = useApolloCoreClient(); + const { aggregateQuery, gqlFieldToFieldMap } = useAggregateRecordsQuery({ objectNameSingular, recordGqlFieldsAggregate, @@ -49,6 +52,7 @@ export const useAggregateRecords = ({ variables: { filter, }, + client: apolloCoreClient, }, ); diff --git a/packages/twenty-front/src/modules/object-record/hooks/useAggregateRecordsQuery.ts b/packages/twenty-front/src/modules/object-record/hooks/useAggregateRecordsQuery.ts index 694e7ce4c..a9dd2b54d 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useAggregateRecordsQuery.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useAggregateRecordsQuery.ts @@ -1,3 +1,4 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { RecordGqlFields } from '@/object-record/graphql/types/RecordGqlFields'; import { RecordGqlFieldsAggregate } from '@/object-record/graphql/types/RecordGqlFieldsAggregate'; @@ -25,6 +26,7 @@ export const useAggregateRecordsQuery = ({ objectNameSingular, }); + const apolloCoreClient = useApolloCoreClient(); const availableAggregations = useMemo( () => getAvailableAggregationsFromObjectFields(objectMetadataItem.fields), [objectMetadataItem.fields], @@ -49,6 +51,9 @@ export const useAggregateRecordsQuery = ({ recordGqlFields[fieldToQuery] = true; }); }, + { + client: apolloCoreClient, + }, ); const aggregateQuery = generateAggregateQuery({ diff --git a/packages/twenty-front/src/modules/object-record/hooks/useAttachRelatedRecordFromRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/useAttachRelatedRecordFromRecord.ts index b2fe1ce58..6e62bd4a5 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useAttachRelatedRecordFromRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useAttachRelatedRecordFromRecord.ts @@ -1,6 +1,5 @@ -import { useApolloClient } from '@apollo/client'; - import { CustomError } from '@/error-handler/CustomError'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { useGetRecordFromCache } from '@/object-record/cache/hooks/useGetRecordFromCache'; @@ -20,7 +19,7 @@ export const useAttachRelatedRecordFromRecord = ({ recordObjectNameSingular, fieldNameOnRecordObject, }: useAttachRelatedRecordFromRecordProps) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular: recordObjectNameSingular, @@ -98,7 +97,7 @@ export const useAttachRelatedRecordFromRecord = ({ updateRecordFromCache({ objectMetadataItems, objectMetadataItem: relatedObjectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: { ...cachedRelatedRecord, [fieldOnRelatedObject]: previousRecord, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useCreateManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useCreateManyRecords.ts index d3c175ca9..65079afad 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useCreateManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useCreateManyRecords.ts @@ -1,9 +1,9 @@ -import { useApolloClient } from '@apollo/client'; import { v4 } from 'uuid'; import { triggerCreateRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerCreateRecordsOptimisticEffect'; import { triggerDestroyRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerDestroyRecordsOptimisticEffect'; import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { hasObjectMetadataItemFieldCreatedBy } from '@/object-metadata/utils/hasObjectMetadataItemFieldCreatedBy'; @@ -49,7 +49,7 @@ export const useCreateManyRecords = < shouldMatchRootQueryFilter, shouldRefetchAggregateQueries = true, }: useCreateManyRecordsProps) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, @@ -120,7 +120,7 @@ export const useCreateManyRecords = < if (shouldDoOptimisticEffect) { const optimisticRecordInput = { ...computeOptimisticRecordFromInput({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, objectMetadataItems, currentWorkspaceMember: currentWorkspaceMember, @@ -158,7 +158,7 @@ export const useCreateManyRecords = < .filter(isDefined); triggerCreateRecordsOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, recordsToCreate: recordNodeCreatedInCache, objectMetadataItems, @@ -171,7 +171,7 @@ export const useCreateManyRecords = < objectMetadataItem.namePlural, ); - const createdObjects = await apolloClient + const createdObjects = await apolloCoreClient .mutate({ mutation: createManyRecordsMutation, variables: { @@ -204,13 +204,13 @@ export const useCreateManyRecords = < deleteRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, recordToDestroy, }); }); triggerDestroyRecordsOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, recordsToDestroy: recordsCreatedInCache, objectMetadataItems, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useCreateOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/useCreateOneRecord.ts index fb3a3e480..b55828800 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useCreateOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useCreateOneRecord.ts @@ -1,10 +1,10 @@ -import { useApolloClient } from '@apollo/client'; import { useState } from 'react'; import { v4 } from 'uuid'; import { triggerCreateRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerCreateRecordsOptimisticEffect'; import { triggerDestroyRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerDestroyRecordsOptimisticEffect'; import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { useCreateOneRecordInCache } from '@/object-record/cache/hooks/useCreateOneRecordInCache'; @@ -39,7 +39,7 @@ export const useCreateOneRecord = < skipPostOptimisticEffect = false, shouldMatchRootQueryFilter, }: useCreateOneRecordProps) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const [loading, setLoading] = useState(false); const { objectMetadataItem } = useObjectMetadataItem({ @@ -83,7 +83,7 @@ export const useCreateOneRecord = < }; const optimisticRecordInput = computeOptimisticRecordFromInput({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, currentWorkspaceMember: currentWorkspaceMember, objectMetadataItem, objectMetadataItems, @@ -111,7 +111,7 @@ export const useCreateOneRecord = < if (skipPostOptimisticEffect === false && optimisticRecordNode !== null) { triggerCreateRecordsOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, recordsToCreate: [optimisticRecordNode], objectMetadataItems, @@ -124,7 +124,7 @@ export const useCreateOneRecord = < const mutationResponseField = getCreateOneRecordMutationResponseField(objectNameSingular); - const createdObject = await apolloClient + const createdObject = await apolloCoreClient .mutate({ mutation: createOneRecordMutation, variables: { @@ -155,12 +155,12 @@ export const useCreateOneRecord = < deleteRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, recordToDestroy: recordCreatedInCache, }); triggerDestroyRecordsOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, recordsToDestroy: [recordCreatedInCache], objectMetadataItems, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts index a773ed54b..e267f39d3 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts @@ -1,7 +1,6 @@ -import { useApolloClient } from '@apollo/client'; - import { triggerUpdateRecordOptimisticEffectByBatch } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffectByBatch'; import { apiConfigState } from '@/client-config/states/apiConfigState'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { useGetRecordFromCache } from '@/object-record/cache/hooks/useGetRecordFromCache'; @@ -38,7 +37,7 @@ export const useDeleteManyRecords = ({ const mutationPageSize = apiConfig?.mutationMaximumAffectedRecords ?? DEFAULT_MUTATION_BATCH_SIZE; - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, @@ -79,7 +78,9 @@ export const useDeleteManyRecords = ({ ); const cachedRecords = batchedIdsToDelete - .map((idToDelete) => getRecordFromCache(idToDelete, apolloClient.cache)) + .map((idToDelete) => + getRecordFromCache(idToDelete, apolloCoreClient.cache), + ) .filter(isDefined); const currentTimestamp = new Date().toISOString(); if (!skipOptimisticEffect) { @@ -113,7 +114,7 @@ export const useDeleteManyRecords = ({ updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: computedOptimisticRecord, recordGqlFields, objectPermissionsByObjectMetadataId, @@ -125,7 +126,7 @@ export const useDeleteManyRecords = ({ }); triggerUpdateRecordOptimisticEffectByBatch({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, currentRecords: cachedRecordsNode, updatedRecords: computedOptimisticRecordsNode, @@ -133,7 +134,7 @@ export const useDeleteManyRecords = ({ }); } - const deletedRecordsResponse = await apolloClient + const deletedRecordsResponse = await apolloCoreClient .mutate>({ mutation: deleteManyRecordsMutation, variables: { @@ -155,7 +156,7 @@ export const useDeleteManyRecords = ({ updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: { ...cachedRecord, deletedAt: null }, recordGqlFields, objectPermissionsByObjectMetadataId, @@ -195,7 +196,7 @@ export const useDeleteManyRecords = ({ }); triggerUpdateRecordOptimisticEffectByBatch({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, currentRecords: computedOptimisticRecordsNode, updatedRecords: cachedRecordsNode, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useDeleteOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/useDeleteOneRecord.ts index 2ff65b620..a1bc98f36 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useDeleteOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useDeleteOneRecord.ts @@ -1,7 +1,7 @@ -import { useApolloClient } from '@apollo/client'; import { useCallback } from 'react'; import { triggerUpdateRecordOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffect'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { useGetRecordFromCache } from '@/object-record/cache/hooks/useGetRecordFromCache'; @@ -23,7 +23,7 @@ type useDeleteOneRecordProps = { export const useDeleteOneRecord = ({ objectNameSingular, }: useDeleteOneRecordProps) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, @@ -48,7 +48,10 @@ export const useDeleteOneRecord = ({ const deleteOneRecord = useCallback( async (idToDelete: string) => { - const cachedRecord = getRecordFromCache(idToDelete, apolloClient.cache); + const cachedRecord = getRecordFromCache( + idToDelete, + apolloCoreClient.cache, + ); const cachedRecordNode = getRecordNodeFromRecord({ record: cachedRecord, objectMetadataItem, @@ -82,14 +85,14 @@ export const useDeleteOneRecord = ({ updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: computedOptimisticRecord, recordGqlFields, objectPermissionsByObjectMetadataId, }); triggerUpdateRecordOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, currentRecord: cachedRecordNode, updatedRecord: optimisticRecordNode, @@ -97,7 +100,7 @@ export const useDeleteOneRecord = ({ }); } - const deletedRecord = await apolloClient + const deletedRecord = await apolloCoreClient .mutate({ mutation: deleteOneRecordMutation, variables: { @@ -129,7 +132,7 @@ export const useDeleteOneRecord = ({ updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: { ...cachedRecord, deletedAt: null, @@ -139,7 +142,7 @@ export const useDeleteOneRecord = ({ }); triggerUpdateRecordOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, currentRecord: optimisticRecordNode, updatedRecord: cachedRecordNode, @@ -153,7 +156,7 @@ export const useDeleteOneRecord = ({ return deletedRecord.data?.[mutationResponseField] ?? null; }, [ - apolloClient, + apolloCoreClient, deleteOneRecordMutation, getRecordFromCache, mutationResponseField, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts index 534e469a4..f74c23242 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts @@ -1,8 +1,7 @@ -import { useApolloClient } from '@apollo/client'; - import { triggerCreateRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerCreateRecordsOptimisticEffect'; import { triggerDestroyRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerDestroyRecordsOptimisticEffect'; import { apiConfigState } from '@/client-config/states/apiConfigState'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { useGetRecordFromCache } from '@/object-record/cache/hooks/useGetRecordFromCache'; @@ -35,7 +34,7 @@ export const useDestroyManyRecords = ({ const mutationPageSize = apiConfig?.mutationMaximumAffectedRecords ?? DEFAULT_MUTATION_BATCH_SIZE; - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, @@ -75,10 +74,10 @@ export const useDestroyManyRecords = ({ ); const cachedRecords = batchedIdToDestroy - .map((recordId) => getRecordFromCache(recordId, apolloClient.cache)) + .map((recordId) => getRecordFromCache(recordId, apolloCoreClient.cache)) .filter(isDefined); - const destroyedRecordsResponse = await apolloClient + const destroyedRecordsResponse = await apolloCoreClient .mutate>({ mutation: destroyManyRecordsMutation, variables: { @@ -117,7 +116,7 @@ export const useDestroyManyRecords = ({ .catch((error: Error) => { if (cachedRecords.length > 0 && !skipOptimisticEffect) { triggerCreateRecordsOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, recordsToCreate: cachedRecords, objectMetadataItems, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useDestroyOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/useDestroyOneRecord.ts index d58268b84..556b4a19b 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useDestroyOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useDestroyOneRecord.ts @@ -1,8 +1,8 @@ -import { useApolloClient } from '@apollo/client'; import { useCallback } from 'react'; import { triggerCreateRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerCreateRecordsOptimisticEffect'; import { triggerDestroyRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerDestroyRecordsOptimisticEffect'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { useGetRecordFromCache } from '@/object-record/cache/hooks/useGetRecordFromCache'; @@ -19,7 +19,7 @@ type useDestroyOneRecordProps = { export const useDestroyOneRecord = ({ objectNameSingular, }: useDestroyOneRecordProps) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, @@ -40,10 +40,10 @@ export const useDestroyOneRecord = ({ async (idToDestroy: string) => { const originalRecord = getRecordFromCache( idToDestroy, - apolloClient.cache, + apolloCoreClient.cache, ); - const deletedRecord = await apolloClient + const deletedRecord = await apolloCoreClient .mutate({ mutation: destroyOneRecordMutation, variables: { idToDestroy }, @@ -70,7 +70,7 @@ export const useDestroyOneRecord = ({ .catch((error: Error) => { if (isDefined(originalRecord)) { triggerCreateRecordsOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, recordsToCreate: [originalRecord], objectMetadataItems, @@ -84,7 +84,7 @@ export const useDestroyOneRecord = ({ return deletedRecord.data?.[mutationResponseField] ?? null; }, [ - apolloClient, + apolloCoreClient, destroyOneRecordMutation, getRecordFromCache, mutationResponseField, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useDetachRelatedRecordFromRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/useDetachRelatedRecordFromRecord.ts index 1f6213c3e..b667aa22f 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useDetachRelatedRecordFromRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useDetachRelatedRecordFromRecord.ts @@ -1,5 +1,6 @@ -import { Reference, useApolloClient } from '@apollo/client'; +import { Reference } from '@apollo/client'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { getRefName } from '@/object-record/cache/utils/getRefName'; import { modifyRecordFromCache } from '@/object-record/cache/utils/modifyRecordFromCache'; @@ -14,7 +15,7 @@ export const useDetachRelatedRecordFromRecord = ({ recordObjectNameSingular, fieldNameOnRecordObject, }: useDetachRelatedRecordFromRecordProps) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular: recordObjectNameSingular, @@ -49,7 +50,7 @@ export const useDetachRelatedRecordFromRecord = ({ }) => { modifyRecordFromCache({ objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, fieldModifiers: { [fieldNameOnRecordObject]: ( fieldNameOnRecordObjectConnection, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useFetchMoreRecordsWithPagination.ts b/packages/twenty-front/src/modules/object-record/hooks/useFetchMoreRecordsWithPagination.ts index 802afe9eb..47401f65a 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useFetchMoreRecordsWithPagination.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useFetchMoreRecordsWithPagination.ts @@ -24,6 +24,7 @@ import { OnFindManyRecordsCompleted } from '@/object-record/types/OnFindManyReco import { filterUniqueRecordEdgesByCursor } from '@/object-record/utils/filterUniqueRecordEdgesByCursor'; import { getQueryIdentifier } from '@/object-record/utils/getQueryIdentifier'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { capitalize, isDefined } from 'twenty-shared/utils'; import { cursorFamilyState } from '../states/cursorFamilyState'; import { hasNextPageFamilyState } from '../states/hasNextPageFamilyState'; @@ -76,6 +77,8 @@ export const useFetchMoreRecordsWithPagination = < objectMetadataItem, onCompleted, }: UseFindManyRecordsStateParams) => { + const apolloCoreClient = useApolloCoreClient(); + const queryIdentifier = getQueryIdentifier({ objectNameSingular, filter, @@ -121,6 +124,7 @@ export const useFetchMoreRecordsWithPagination = < lastCursor: isNonEmptyString(lastCursorLocal) ? lastCursorLocal : undefined, + client: apolloCoreClient, }, updateQuery: (prev, { fetchMoreResult }) => { const previousEdges = @@ -203,6 +207,7 @@ export const useFetchMoreRecordsWithPagination = < onCompleted, handleFindManyRecordsError, queryIdentifier, + apolloCoreClient, ], ); diff --git a/packages/twenty-front/src/modules/object-record/hooks/useFindDuplicateRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useFindDuplicateRecords.ts index 05dda142e..60965fe60 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useFindDuplicateRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useFindDuplicateRecords.ts @@ -1,6 +1,7 @@ import { useQuery } from '@apollo/client'; import { useMemo } from 'react'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { ObjectMetadataItemIdentifier } from '@/object-metadata/types/ObjectMetadataItemIdentifier'; import { getRecordsFromRecordConnection } from '@/object-record/cache/utils/getRecordsFromRecordConnection'; @@ -25,6 +26,8 @@ export const useFindDuplicateRecords = ({ }) => { const findDuplicateQueryStateIdentifier = objectNameSingular; + const apolloCoreClient = useApolloCoreClient(); + const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, }); @@ -47,6 +50,7 @@ export const useFindDuplicateRecords = ({ variables: { ids: objectRecordIds, }, + client: apolloCoreClient, onCompleted: (data) => { onCompleted?.(data[queryResponseField]); }, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useFindManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useFindManyRecords.ts index fd644dae0..5f229a9b7 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useFindManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useFindManyRecords.ts @@ -1,5 +1,6 @@ import { useQuery, WatchQueryFetchPolicy } from '@apollo/client'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { ObjectMetadataItemIdentifier } from '@/object-metadata/types/ObjectMetadataItemIdentifier'; import { RecordGqlOperationFindManyResult } from '@/object-record/graphql/types/RecordGqlOperationFindManyResult'; @@ -40,7 +41,7 @@ export const useFindManyRecords = ({ const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, }); - + const apolloCoreClient = useApolloCoreClient(); const { findManyRecordsQuery } = useFindManyRecordsQuery({ objectNameSingular, recordGqlFields, @@ -94,6 +95,7 @@ export const useFindManyRecords = ({ fetchPolicy: fetchPolicy, onCompleted: handleFindManyRecordsCompleted, onError: handleFindManyRecordsError, + client: apolloCoreClient, }); const { fetchMoreRecords, records, hasNextPage } = diff --git a/packages/twenty-front/src/modules/object-record/hooks/useFindOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/useFindOneRecord.ts index 808f7e193..8b3311395 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useFindOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useFindOneRecord.ts @@ -1,6 +1,7 @@ import { useQuery } from '@apollo/client'; import { useMemo } from 'react'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { ObjectMetadataItemIdentifier } from '@/object-metadata/types/ObjectMetadataItemIdentifier'; import { getRecordFromRecordNode } from '@/object-record/cache/utils/getRecordFromRecordNode'; @@ -30,6 +31,8 @@ export const useFindOneRecord = ({ objectNameSingular, }); + const apolloCoreClient = useApolloCoreClient(); + const computedRecordGqlFields = recordGqlFields ?? generateDepthOneRecordGqlFields({ objectMetadataItem }); @@ -50,6 +53,7 @@ export const useFindOneRecord = ({ }>(findOneRecordQuery, { skip: !objectMetadataItem || !objectRecordId || skip || !hasReadPermission, variables: { objectRecordId }, + client: apolloCoreClient, onCompleted: (data) => { const recordWithoutConnection = getRecordFromRecordNode({ recordNode: { ...data[objectNameSingular] }, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useLazyFindManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useLazyFindManyRecords.ts index 47978a216..b89d5a07c 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useLazyFindManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useLazyFindManyRecords.ts @@ -1,6 +1,7 @@ import { useLazyQuery } from '@apollo/client'; import { useRecoilCallback } from 'recoil'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { getRecordsFromRecordConnection } from '@/object-record/cache/utils/getRecordsFromRecordConnection'; import { RecordGqlOperationFindManyResult } from '@/object-record/graphql/types/RecordGqlOperationFindManyResult'; @@ -31,6 +32,8 @@ export const useLazyFindManyRecords = ({ objectNameSingular, }); + const apolloCoreClient = useApolloCoreClient(); + const { findManyRecordsQuery } = useFindManyRecordsQuery({ objectNameSingular, recordGqlFields, @@ -68,6 +71,7 @@ export const useLazyFindManyRecords = ({ fetchPolicy: 'cache-first', onCompleted: handleFindManyRecordsCompleted, onError: handleFindManyRecordsError, + client: apolloCoreClient, }); const { fetchMoreRecordsLazy } = useLazyFetchMoreRecordsWithPagination({ diff --git a/packages/twenty-front/src/modules/object-record/hooks/useLazyFindOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/useLazyFindOneRecord.ts index a05dbe4cc..9fe4d4390 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useLazyFindOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useLazyFindOneRecord.ts @@ -1,5 +1,6 @@ import { useLazyQuery, WatchQueryFetchPolicy } from '@apollo/client'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { ObjectMetadataItemIdentifier } from '@/object-metadata/types/ObjectMetadataItemIdentifier'; import { getRecordFromRecordNode } from '@/object-record/cache/utils/getRecordFromRecordNode'; @@ -29,6 +30,8 @@ export const useLazyFindOneRecord = ({ objectNameSingular, }); + const apolloCoreClient = useApolloCoreClient(); + const { findOneRecordQuery } = useFindOneRecordQuery({ objectNameSingular, recordGqlFields: @@ -48,6 +51,7 @@ export const useLazyFindOneRecord = ({ await findOneRecord({ variables: { objectRecordId }, fetchPolicy, + client: apolloCoreClient, onCompleted: (data) => { const record = getRecordFromRecordNode({ recordNode: data[objectNameSingular], diff --git a/packages/twenty-front/src/modules/object-record/hooks/useObjectRecordSearchRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useObjectRecordSearchRecords.ts index 44398ed22..57ac9e244 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useObjectRecordSearchRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useObjectRecordSearchRecords.ts @@ -1,5 +1,6 @@ import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; import { MAX_SEARCH_RESULTS } from '@/command-menu/constants/MaxSearchResults'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { ObjectMetadataItemIdentifier } from '@/object-metadata/types/ObjectMetadataItemIdentifier'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; @@ -33,6 +34,8 @@ export const useObjectRecordSearchRecords = ({ objectNameSingular, }); + const apolloCoreClient = useApolloCoreClient(); + const { enqueueSnackBar } = useSnackBar(); const { data, loading, error, previousData } = useSearchQuery({ @@ -48,6 +51,7 @@ export const useObjectRecordSearchRecords = ({ includedObjectNameSingulars: [objectNameSingular], }, fetchPolicy: fetchPolicy, + client: apolloCoreClient, onError: (error) => { logError( `useSearchRecords for "${objectMetadataItem.namePlural}" error : ` + diff --git a/packages/twenty-front/src/modules/object-record/hooks/useRefetchAggregateQueries.ts b/packages/twenty-front/src/modules/object-record/hooks/useRefetchAggregateQueries.ts index 8176af7a7..ff4129729 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useRefetchAggregateQueries.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useRefetchAggregateQueries.ts @@ -1,17 +1,17 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { getAggregateQueryName } from '@/object-record/utils/getAggregateQueryName'; -import { useApolloClient } from '@apollo/client'; export const useRefetchAggregateQueries = ({ objectMetadataNamePlural, }: { objectMetadataNamePlural: string; }) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const refetchAggregateQueries = async () => { const queryName = getAggregateQueryName(objectMetadataNamePlural); - await apolloClient.refetchQueries({ + await apolloCoreClient.refetchQueries({ include: [queryName], }); }; diff --git a/packages/twenty-front/src/modules/object-record/hooks/useRestoreManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useRestoreManyRecords.ts index 8b023dc3f..eab1d6f9a 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useRestoreManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useRestoreManyRecords.ts @@ -1,7 +1,6 @@ -import { useApolloClient } from '@apollo/client'; - import { triggerUpdateRecordOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffect'; import { apiConfigState } from '@/client-config/states/apiConfigState'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { useGetRecordFromCache } from '@/object-record/cache/hooks/useGetRecordFromCache'; @@ -36,7 +35,7 @@ export const useRestoreManyRecords = ({ const mutationPageSize = apiConfig?.mutationMaximumAffectedRecords ?? DEFAULT_MUTATION_BATCH_SIZE; - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, @@ -73,7 +72,7 @@ export const useRestoreManyRecords = ({ const cachedRecords = batchedIdsToRestore .map((idToRestore) => - getRecordFromCache(idToRestore, apolloClient.cache), + getRecordFromCache(idToRestore, apolloCoreClient.cache), ) .filter(isDefined); @@ -109,13 +108,13 @@ export const useRestoreManyRecords = ({ updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: computedOptimisticRecord, recordGqlFields, objectPermissionsByObjectMetadataId, }); triggerUpdateRecordOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, currentRecord: cachedRecordWithConnection, updatedRecord: optimisticRecordWithConnection, @@ -125,7 +124,7 @@ export const useRestoreManyRecords = ({ }); } - const restoredRecordsResponse = await apolloClient + const restoredRecordsResponse = await apolloCoreClient .mutate({ mutation: restoreManyRecordsMutation, variables: { @@ -168,14 +167,14 @@ export const useRestoreManyRecords = ({ updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: cachedRecord, recordGqlFields, objectPermissionsByObjectMetadataId, }); triggerUpdateRecordOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, currentRecord: optimisticRecordWithConnection, updatedRecord: cachedRecordWithConnection, diff --git a/packages/twenty-front/src/modules/object-record/hooks/useUpdateOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/useUpdateOneRecord.ts index ef2794a4e..c7e601cf8 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useUpdateOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useUpdateOneRecord.ts @@ -1,7 +1,6 @@ -import { useApolloClient } from '@apollo/client'; - import { triggerUpdateRecordOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffect'; import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { useGetRecordFromCache } from '@/object-record/cache/hooks/useGetRecordFromCache'; @@ -37,7 +36,7 @@ export const useUpdateOneRecord = < objectNameSingular, recordGqlFields, }: useUpdateOneRecordProps) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, @@ -75,7 +74,7 @@ export const useUpdateOneRecord = < objectMetadataItem, currentWorkspaceMember: currentWorkspaceMember, recordInput: updateOneRecordInput, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItems, objectPermissionsByObjectMetadataId, }); @@ -118,14 +117,14 @@ export const useUpdateOneRecord = < updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: computedOptimisticRecord, recordGqlFields, objectPermissionsByObjectMetadataId, }); triggerUpdateRecordOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, currentRecord: cachedRecordWithConnection, updatedRecord: optimisticRecordWithConnection, @@ -142,7 +141,7 @@ export const useUpdateOneRecord = < recordInput: updateOneRecordInput, }), }; - const updatedRecord = await apolloClient + const updatedRecord = await apolloCoreClient .mutate({ mutation: updateOneRecordMutation, variables: { @@ -185,7 +184,7 @@ export const useUpdateOneRecord = < updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: { ...cachedRecord, ...buildRecordFromKeysWithSameValue( @@ -198,7 +197,7 @@ export const useUpdateOneRecord = < }); triggerUpdateRecordOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, currentRecord: optimisticRecordWithConnection, updatedRecord: cachedRecordWithConnection, diff --git a/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/useCombinedFindManyRecords.ts b/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/useCombinedFindManyRecords.ts index 2d9774763..c4c105121 100644 --- a/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/useCombinedFindManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/useCombinedFindManyRecords.ts @@ -1,5 +1,6 @@ import { useQuery } from '@apollo/client'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { getRecordsFromRecordConnection } from '@/object-record/cache/utils/getRecordsFromRecordConnection'; import { EMPTY_QUERY } from '@/object-record/constants/EmptyQuery'; import { RecordGqlOperationSignature } from '@/object-record/graphql/types/RecordGqlOperationSignature'; @@ -18,6 +19,8 @@ export const useCombinedFindManyRecords = ({ operationSignatures, }); + const apolloCoreClient = useApolloCoreClient(); + const queryVariables = generateCombinedFindManyRecordsQueryVariables({ operationSignatures, }); @@ -27,6 +30,7 @@ export const useCombinedFindManyRecords = ({ { skip, variables: queryVariables, + client: apolloCoreClient, }, ); diff --git a/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/useCombinedGetTotalCount.ts b/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/useCombinedGetTotalCount.ts index c9bd9072b..64e4d3934 100644 --- a/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/useCombinedGetTotalCount.ts +++ b/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/useCombinedGetTotalCount.ts @@ -1,5 +1,6 @@ import { useQuery } from '@apollo/client'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { EMPTY_QUERY } from '@/object-record/constants/EmptyQuery'; import { RecordGqlOperationSignature } from '@/object-record/graphql/types/RecordGqlOperationSignature'; @@ -24,6 +25,7 @@ export const useCombinedGetTotalCount = ({ }) satisfies RecordGqlOperationSignature, ); + const apolloCoreClient = useApolloCoreClient(); const findManyQuery = useGenerateCombinedFindManyRecordsQuery({ operationSignatures, }); @@ -32,6 +34,7 @@ export const useCombinedGetTotalCount = ({ findManyQuery ?? EMPTY_QUERY, { skip, + client: apolloCoreClient, }, ); diff --git a/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/usePerformCombinedFindManyRecords.ts b/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/usePerformCombinedFindManyRecords.ts index 04a80f679..ca8b54774 100644 --- a/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/usePerformCombinedFindManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/multiple-objects/hooks/usePerformCombinedFindManyRecords.ts @@ -1,6 +1,7 @@ -import { ApolloClient, gql, useApolloClient } from '@apollo/client'; +import { ApolloClient, gql } from '@apollo/client'; import { isUndefined } from '@sniptt/guards'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { mapObjectMetadataToGraphQLQuery } from '@/object-metadata/utils/mapObjectMetadataToGraphQLQuery'; @@ -16,7 +17,7 @@ import { useRecoilValue } from 'recoil'; import { capitalize } from 'twenty-shared/utils'; export const usePerformCombinedFindManyRecords = () => { - const client = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const objectMetadataItems = useRecoilValue(objectMetadataItemsState); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); @@ -121,7 +122,7 @@ export const usePerformCombinedFindManyRecords = () => { operationSignatures: RecordGqlOperationSignature[]; client?: ApolloClient; }) => { - const apolloClient = customClient || client; + const apolloClient = customClient || apolloCoreClient; const findManyQuery = generateCombinedFindManyRecordsQuery( operationSignatures, diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/__tests__/useExportProcessRecordsForCSV.test.ts b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/__tests__/useExportProcessRecordsForCSV.test.ts index fd88ff368..b9461af41 100644 --- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/__tests__/useExportProcessRecordsForCSV.test.ts +++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/__tests__/useExportProcessRecordsForCSV.test.ts @@ -1,7 +1,7 @@ import { useExportProcessRecordsForCSV } from '@/object-record/object-options-dropdown/hooks/useExportProcessRecordsForCSV'; import { renderHook } from '@testing-library/react'; import { act } from 'react'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; jest.mock('@/object-metadata/hooks/useObjectMetadataItem', () => ({ useObjectMetadataItem: jest.fn(() => ({ diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/__tests__/useSearchRecordGroupField.test.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/__tests__/useSearchRecordGroupField.test.tsx index 5b9fa8650..ed3600cc9 100644 --- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/__tests__/useSearchRecordGroupField.test.tsx +++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/__tests__/useSearchRecordGroupField.test.tsx @@ -4,7 +4,7 @@ import { ViewComponentInstanceContext } from '@/views/states/contexts/ViewCompon import { renderHook } from '@testing-library/react'; import { act } from 'react'; import { RecoilRoot } from 'recoil'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; describe('useSearchRecordGroupField', () => { const renderWithContext = (contextValue: any) => diff --git a/packages/twenty-front/src/modules/object-record/record-board/record-board-column/utils/__tests__/computeAggregateValueAndLabel.test.ts b/packages/twenty-front/src/modules/object-record/record-board/record-board-column/utils/__tests__/computeAggregateValueAndLabel.test.ts index 5eabc0787..67dc134f1 100644 --- a/packages/twenty-front/src/modules/object-record/record-board/record-board-column/utils/__tests__/computeAggregateValueAndLabel.test.ts +++ b/packages/twenty-front/src/modules/object-record/record-board/record-board-column/utils/__tests__/computeAggregateValueAndLabel.test.ts @@ -7,7 +7,7 @@ import { computeAggregateValueAndLabel } from '@/object-record/record-board/reco import { AggregateOperations } from '@/object-record/record-table/constants/AggregateOperations'; import { DateAggregateOperations } from '@/object-record/record-table/constants/DateAggregateOperations'; import { enUS } from 'date-fns/locale'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; const MOCK_FIELD_ID = '7d2d7b5e-7b3e-4b4a-8b0a-7b3e4b4a8b0a'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useMultiSelectField.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useMultiSelectField.ts index 19e580c87..07fe386fe 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useMultiSelectField.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useMultiSelectField.ts @@ -9,7 +9,7 @@ import { assertFieldMetadata } from '@/object-record/record-field/types/guards/a import { isFieldMultiSelect } from '@/object-record/record-field/types/guards/isFieldMultiSelect'; import { isFieldMultiSelectValue } from '@/object-record/record-field/types/guards/isFieldMultiSelectValue'; import { recordStoreFamilySelector } from '@/object-record/record-store/states/selectors/recordStoreFamilySelector'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; export const useMultiSelectField = () => { const { recordId, fieldDefinition } = useContext(FieldContext); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useSelectField.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useSelectField.ts index 90008beda..99c63cbdf 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useSelectField.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useSelectField.ts @@ -4,7 +4,7 @@ import { useRecoilState, useRecoilValue } from 'recoil'; import { usePersistField } from '@/object-record/record-field/hooks/usePersistField'; import { useRecordFieldInput } from '@/object-record/record-field/hooks/useRecordFieldInput'; import { recordStoreFamilySelector } from '@/object-record/record-store/states/selectors/recordStoreFamilySelector'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { FieldContext } from '../../contexts/FieldContext'; import { FieldSelectValue } from '../../types/FieldMetadata'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/BooleanFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/BooleanFieldInput.stories.tsx index 4e60fa5ec..950ba0355 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/BooleanFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/BooleanFieldInput.stories.tsx @@ -4,7 +4,7 @@ import { useEffect } from 'react'; import { useSetRecoilState } from 'recoil'; import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/states/contexts/RecordFieldComponentInstanceContext'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/DateTimeFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/DateTimeFieldInput.stories.tsx index b592bb968..cc17cdb6f 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/DateTimeFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/DateTimeFieldInput.stories.tsx @@ -3,7 +3,7 @@ import { expect, fn, userEvent, within } from '@storybook/test'; import { useEffect } from 'react'; import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/states/contexts/RecordFieldComponentInstanceContext'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/NumberFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/NumberFieldInput.stories.tsx index b042f0fc0..5300866e6 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/NumberFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/NumberFieldInput.stories.tsx @@ -3,7 +3,7 @@ import { expect, fn, userEvent, waitFor, within } from '@storybook/test'; import { useEffect, useState } from 'react'; import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/RichTextFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/RichTextFieldInput.stories.tsx index 16a7ddf03..c97b7ae7d 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/RichTextFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/RichTextFieldInput.stories.tsx @@ -7,7 +7,7 @@ import { RecordFieldComponentInstanceContext } from '@/object-record/record-fiel import { DEFAULT_CELL_SCOPE } from '@/object-record/record-table/record-table-cell/hooks/useOpenRecordTableCellV2'; import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope'; import { Decorator, Meta, StoryObj } from '@storybook/react'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/TextFieldInput.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/TextFieldInput.stories.tsx index ff2f1a734..615f62155 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/TextFieldInput.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/__stories__/TextFieldInput.stories.tsx @@ -7,7 +7,7 @@ import { FieldContext } from '@/object-record/record-field/contexts/FieldContext import { RecordFieldComponentInstanceContext } from '@/object-record/record-field/states/contexts/RecordFieldComponentInstanceContext'; import { DEFAULT_CELL_SCOPE } from '@/object-record/record-table/record-table-cell/hooks/useOpenRecordTableCellV2'; import { Decorator, Meta, StoryObj } from '@storybook/react'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { useTextField } from '../../../hooks/useTextField'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/hooks/useAddNewRecordAndOpenRightDrawer.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/hooks/useAddNewRecordAndOpenRightDrawer.ts index 852f12abf..f6c52bce4 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/hooks/useAddNewRecordAndOpenRightDrawer.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/hooks/useAddNewRecordAndOpenRightDrawer.ts @@ -3,6 +3,7 @@ import { v4 } from 'uuid'; import { SEARCH_QUERY } from '@/command-menu/graphql/queries/search'; import { useOpenRecordInCommandMenu } from '@/command-menu/hooks/useOpenRecordInCommandMenu'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { getLabelIdentifierFieldMetadataItem } from '@/object-metadata/utils/getLabelIdentifierFieldMetadataItem'; @@ -10,7 +11,6 @@ import { useCreateOneRecord } from '@/object-record/hooks/useCreateOneRecord'; import { useUpdateOneRecord } from '@/object-record/hooks/useUpdateOneRecord'; import { viewableRecordIdState } from '@/object-record/record-right-drawer/states/viewableRecordIdState'; import { viewableRecordNameSingularState } from '@/object-record/record-right-drawer/states/viewableRecordNameSingularState'; -import { useApolloClient } from '@apollo/client'; import { getOperationName } from '@apollo/client/utilities'; import { isDefined } from 'twenty-shared/utils'; import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql'; @@ -45,7 +45,7 @@ export const useAddNewRecordAndOpenRightDrawer = ({ const { openRecordInCommandMenu } = useOpenRecordInCommandMenu(); - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); if ( relationObjectMetadataNameSingular === 'workspaceMember' || @@ -109,7 +109,7 @@ export const useAddNewRecordAndOpenRightDrawer = ({ setViewableRecordId(newRecordId); setViewableRecordNameSingular(relationObjectMetadataNameSingular); - apolloClient.refetchQueries({ + apolloCoreClient.refetchQueries({ include: [getOperationName(SEARCH_QUERY) ?? ''], }); diff --git a/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldSelect.ts b/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldSelect.ts index 470e52fe1..c2ec80823 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldSelect.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldSelect.ts @@ -1,4 +1,4 @@ -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { FieldDefinition } from '../FieldDefinition'; import { FieldMetadata, FieldSelectMetadata } from '../FieldMetadata'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/utils/__tests__/isFieldValueEmpty.test.ts b/packages/twenty-front/src/modules/object-record/record-field/utils/__tests__/isFieldValueEmpty.test.ts index b62dc80b1..5b8b43178 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/utils/__tests__/isFieldValueEmpty.test.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/utils/__tests__/isFieldValueEmpty.test.ts @@ -8,7 +8,7 @@ import { } from '@/object-record/record-field/__mocks__/fieldDefinitions'; import { FieldDefinition } from '@/object-record/record-field/types/FieldDefinition'; import { FieldCurrencyMetadata } from '@/object-record/record-field/types/FieldMetadata'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { isFieldValueEmpty } from '../isFieldValueEmpty'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/utils/__tests__/isFieldValueReadOnly.test.ts b/packages/twenty-front/src/modules/object-record/record-field/utils/__tests__/isFieldValueReadOnly.test.ts index f17112e71..f5395cf42 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/utils/__tests__/isFieldValueReadOnly.test.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/utils/__tests__/isFieldValueReadOnly.test.ts @@ -1,6 +1,6 @@ import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { isFieldValueReadOnly } from '@/object-record/record-field/utils/isFieldValueReadOnly'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; describe('isFieldValueReadOnly', () => { it('should return true if record is read only', () => { diff --git a/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useRemoveRecordFilter.test.tsx b/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useRemoveRecordFilter.test.tsx index cd778c190..663f67862 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useRemoveRecordFilter.test.tsx +++ b/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useRemoveRecordFilter.test.tsx @@ -5,7 +5,7 @@ import { RecordFilter } from '@/object-record/record-filter/types/RecordFilter'; import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2'; import { ViewFilterOperand } from '@/views/types/ViewFilterOperand'; import { act } from 'react'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; import { useRemoveRecordFilter } from '../useRemoveRecordFilter'; import { useUpsertRecordFilter } from '../useUpsertRecordFilter'; diff --git a/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useUpsertRecordFilter.test.tsx b/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useUpsertRecordFilter.test.tsx index 00e6b0be0..262641e9e 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useUpsertRecordFilter.test.tsx +++ b/packages/twenty-front/src/modules/object-record/record-filter/hooks/__tests__/useUpsertRecordFilter.test.tsx @@ -5,7 +5,7 @@ import { currentRecordFiltersComponentState } from '@/object-record/record-filte import { RecordFilter } from '@/object-record/record-filter/types/RecordFilter'; import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2'; import { ViewFilterOperand } from '@/views/types/ViewFilterOperand'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; import { useUpsertRecordFilter } from '../useUpsertRecordFilter'; diff --git a/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts b/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts index 838268ef3..71d85e9bd 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts +++ b/packages/twenty-front/src/modules/object-record/record-filter/utils/__tests__/computeViewRecordGqlOperationFilter.test.ts @@ -4,7 +4,7 @@ import { RecordFilterOperand } from '@/object-record/record-filter/types/RecordF import { RecordFilterValueDependencies } from '@/object-record/record-filter/types/RecordFilterValueDependencies'; import { computeRecordGqlOperationFilter } from '@/object-record/record-filter/utils/computeRecordGqlOperationFilter'; import { ViewFilterOperand } from '@/views/types/ViewFilterOperand'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { getCompaniesMock } from '~/testing/mock-data/companies'; import { generatedMockObjectMetadataItems } from '~/testing/mock-data/generatedMockObjectMetadataItems'; diff --git a/packages/twenty-front/src/modules/object-record/record-index/export/hooks/useExportRecords.ts b/packages/twenty-front/src/modules/object-record/record-index/export/hooks/useExportRecords.ts index 3db1e131c..890022662 100644 --- a/packages/twenty-front/src/modules/object-record/record-index/export/hooks/useExportRecords.ts +++ b/packages/twenty-front/src/modules/object-record/record-index/export/hooks/useExportRecords.ts @@ -16,8 +16,7 @@ import { escapeCSVValue } from '@/spreadsheet-import/utils/escapeCSVValue'; import { t } from '@lingui/core/macro'; import { saveAs } from 'file-saver'; import { isDefined } from 'twenty-shared/utils'; -import { RelationType } from '~/generated-metadata/graphql'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql'; import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; type GenerateExportOptions = { diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts index c3e82d9e7..b30dfc8d5 100644 --- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts +++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts @@ -1,4 +1,5 @@ import { SEARCH_QUERY } from '@/command-menu/graphql/queries/search'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions'; import { usePerformCombinedFindManyRecords } from '@/object-record/multiple-objects/hooks/usePerformCombinedFindManyRecords'; @@ -9,7 +10,7 @@ import { multipleRecordPickerSearchFilterComponentState } from '@/object-record/ import { multipleRecordPickerSearchableObjectMetadataItemsComponentState } from '@/object-record/record-picker/multiple-record-picker/states/multipleRecordPickerSearchableObjectMetadataItemsComponentState'; import { searchRecordStoreComponentFamilyState } from '@/object-record/record-picker/multiple-record-picker/states/searchRecordStoreComponentFamilyState'; import { RecordPickerPickableMorphItem } from '@/object-record/record-picker/types/RecordPickerPickableMorphItem'; -import { ApolloClient, useApolloClient } from '@apollo/client'; +import { ApolloClient } from '@apollo/client'; import { isNonEmptyArray } from '@sniptt/guards'; import { useRecoilCallback } from 'recoil'; import { capitalize, isDefined } from 'twenty-shared/utils'; @@ -19,7 +20,7 @@ import { SearchResultEdge } from '~/generated/graphql'; const MULTIPLE_RECORD_PICKER_PAGE_SIZE = 30; export const useMultipleRecordPickerPerformSearch = () => { - const client = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { performCombinedFindManyRecords } = usePerformCombinedFindManyRecords(); @@ -112,7 +113,7 @@ export const useMultipleRecordPickerPerformSearch = () => { searchRecordsExcludingPickedRecords, pageInfo, ] = await performSearchQueries({ - client, + client: apolloCoreClient, searchFilter, searchableObjectMetadataItems: filteredSearchableObjectMetadataItems, pickedRecordIds: selectedPickableMorphItems.map( @@ -368,7 +369,7 @@ export const useMultipleRecordPickerPerformSearch = () => { ); }, [ - client, + apolloCoreClient, performCombinedFindManyRecords, objectPermissionsByObjectMetadataId, ], diff --git a/packages/twenty-front/src/modules/object-record/record-show/components/FieldsCard.tsx b/packages/twenty-front/src/modules/object-record/record-show/components/FieldsCard.tsx index db838e382..cdd8c4553 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/components/FieldsCard.tsx +++ b/packages/twenty-front/src/modules/object-record/record-show/components/FieldsCard.tsx @@ -21,7 +21,7 @@ import { RecordDetailRelationSection } from '@/object-record/record-show/record- import { getRecordFieldInputId } from '@/object-record/utils/getRecordFieldInputId'; import { isFieldCellSupported } from '@/object-record/utils/isFieldCellSupported'; import { useIsInRightDrawerOrThrow } from '@/ui/layout/right-drawer/contexts/RightDrawerContext'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; type FieldsCardProps = { objectNameSingular: string; diff --git a/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx b/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx index 4538a6569..b736bf272 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx +++ b/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx @@ -13,7 +13,7 @@ import { ShowPageSummaryCard } from '@/ui/layout/show-page/components/ShowPageSu import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile'; import { useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; type SummaryCardProps = { objectNameSingular: string; diff --git a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordIdsFromFindManyCacheRootQuery.ts b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordIdsFromFindManyCacheRootQuery.ts index 522c8112f..6a473c792 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordIdsFromFindManyCacheRootQuery.ts +++ b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordIdsFromFindManyCacheRootQuery.ts @@ -1,5 +1,5 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { RecordGqlRefEdge } from '@/object-record/cache/types/RecordGqlRefEdge'; -import { useApolloClient } from '@apollo/client'; import { createApolloStoreFieldName } from '~/utils/createApolloStoreFieldName'; export const useRecordIdsFromFindManyCacheRootQuery = ({ @@ -12,14 +12,14 @@ export const useRecordIdsFromFindManyCacheRootQuery = ({ orderBy: any; }; }) => { - const apollo = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const testsFieldNameOnRootQuery = createApolloStoreFieldName({ fieldName: objectNamePlural, fieldVariables: fieldVariables, }); - const extractedCache = apollo.cache.extract() as any; + const extractedCache = apolloCoreClient.cache.extract() as any; const recordIdsInCache: string[] = extractedCache?.['ROOT_QUERY']?.[testsFieldNameOnRootQuery]?.edges?.map( diff --git a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowContainerActions.ts b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowContainerActions.ts index 996a9830b..a91d965c4 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowContainerActions.ts +++ b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowContainerActions.ts @@ -3,8 +3,10 @@ import { RecordUpdateHook, RecordUpdateHookParams, } from '@/object-record/record-field/contexts/FieldContext'; -import { FileFolder } from '~/generated-metadata/graphql'; -import { useUploadImageMutation } from '~/generated/graphql'; +import { + FileFolder, + useUploadImageMutation, +} from '~/generated-metadata/graphql'; import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; interface UseRecordShowContainerActionsProps { diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/__mocks__/cell.ts b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/__mocks__/cell.ts index dfd458d6b..37809cda4 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/__mocks__/cell.ts +++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/__mocks__/cell.ts @@ -1,7 +1,7 @@ import { RecordTableCellContextValue } from '@/object-record/record-table/contexts/RecordTableCellContext'; import { RecordTableRowContextValue } from '@/object-record/record-table/contexts/RecordTableRowContext'; import { RecordTableRowDraggableContextValue } from '@/object-record/record-table/contexts/RecordTableRowDraggableContext'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; export const recordTableRowContextValue: RecordTableRowContextValue = { rowIndex: 2, diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/utils/getAvailableAggregateOperationsForFieldMetadataType.ts b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/utils/getAvailableAggregateOperationsForFieldMetadataType.ts index d56600ae4..f6646f414 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/utils/getAvailableAggregateOperationsForFieldMetadataType.ts +++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-footer/utils/getAvailableAggregateOperationsForFieldMetadataType.ts @@ -4,7 +4,7 @@ import { ExtendedAggregateOperations } from '@/object-record/record-table/types/ import { AggregateOperationsOmittingStandardOperations } from '@/object-record/types/AggregateOperationsOmittingStandardOperations'; import { isFieldTypeValidForAggregateOperation } from '@/object-record/utils/isFieldTypeValidForAggregateOperation'; import { isDefined } from 'twenty-shared/utils'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; export const getAvailableAggregateOperationsForFieldMetadataType = ({ fieldMetadataType, diff --git a/packages/twenty-front/src/modules/object-record/utils/__tests__/getAvailableFieldsIdsForAggregationFromObjectFields.test.ts b/packages/twenty-front/src/modules/object-record/utils/__tests__/getAvailableFieldsIdsForAggregationFromObjectFields.test.ts index 18b87d6e9..600ae32c6 100644 --- a/packages/twenty-front/src/modules/object-record/utils/__tests__/getAvailableFieldsIdsForAggregationFromObjectFields.test.ts +++ b/packages/twenty-front/src/modules/object-record/utils/__tests__/getAvailableFieldsIdsForAggregationFromObjectFields.test.ts @@ -4,7 +4,7 @@ import { COUNT_AGGREGATE_OPERATION_OPTIONS } from '@/object-record/record-table/ import { NON_STANDARD_AGGREGATE_OPERATION_OPTIONS } from '@/object-record/record-table/record-table-footer/constants/nonStandardAggregateOperationsOptions'; import { PERCENT_AGGREGATE_OPERATION_OPTIONS } from '@/object-record/record-table/record-table-footer/constants/percentAggregateOperationOptions'; import { getAvailableFieldsIdsForAggregationFromObjectFields } from '@/object-record/utils/getAvailableFieldsIdsForAggregationFromObjectFields'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; const AMOUNT_FIELD_ID = '7d2d7b5e-7b3e-4b4a-8b0a-7b3e4b4a8b0a'; const PRICE_FIELD_ID = '9d2d7b5e-7b3e-4b4a-8b0a-7b3e4b4a8b0b'; diff --git a/packages/twenty-front/src/modules/object-record/utils/__tests__/isFieldTypeValidForAggregateOperation.test.ts b/packages/twenty-front/src/modules/object-record/utils/__tests__/isFieldTypeValidForAggregateOperation.test.ts index d9fb5dd6c..c8ba3a43f 100644 --- a/packages/twenty-front/src/modules/object-record/utils/__tests__/isFieldTypeValidForAggregateOperation.test.ts +++ b/packages/twenty-front/src/modules/object-record/utils/__tests__/isFieldTypeValidForAggregateOperation.test.ts @@ -1,7 +1,7 @@ import { AggregateOperations } from '@/object-record/record-table/constants/AggregateOperations'; import { AggregateOperationsOmittingStandardOperations } from '@/object-record/types/AggregateOperationsOmittingStandardOperations'; import { isFieldTypeValidForAggregateOperation } from '@/object-record/utils/isFieldTypeValidForAggregateOperation'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; describe('isFieldTypeValidForAggregateOperation', () => { it('should return true for valid field types and operations', () => { diff --git a/packages/twenty-front/src/modules/object-record/utils/computeOptimisticRecordFromInput.ts b/packages/twenty-front/src/modules/object-record/utils/computeOptimisticRecordFromInput.ts index 526e7ea6a..b4d609572 100644 --- a/packages/twenty-front/src/modules/object-record/utils/computeOptimisticRecordFromInput.ts +++ b/packages/twenty-front/src/modules/object-record/utils/computeOptimisticRecordFromInput.ts @@ -15,8 +15,7 @@ import { ObjectRecord } from '@/object-record/types/ObjectRecord'; import { buildOptimisticActorFieldValueFromCurrentWorkspaceMember } from '@/object-record/utils/buildOptimisticActorFieldValueFromCurrentWorkspaceMember'; import { getForeignKeyNameFromRelationFieldName } from '@/object-record/utils/getForeignKeyNameFromRelationFieldName'; import { isDefined } from 'twenty-shared/utils'; -import { RelationType } from '~/generated-metadata/graphql'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql'; type ComputeOptimisticCacheRecordInputArgs = { objectMetadataItem: ObjectMetadataItem; diff --git a/packages/twenty-front/src/modules/object-record/utils/sanitizeRecordInput.ts b/packages/twenty-front/src/modules/object-record/utils/sanitizeRecordInput.ts index 5d9fa0f25..7cfd395c2 100644 --- a/packages/twenty-front/src/modules/object-record/utils/sanitizeRecordInput.ts +++ b/packages/twenty-front/src/modules/object-record/utils/sanitizeRecordInput.ts @@ -2,8 +2,7 @@ import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { ObjectRecord } from '@/object-record/types/ObjectRecord'; import { isSystemSearchVectorField } from '@/object-record/utils/isSystemSearchVectorField'; import { isDefined } from 'twenty-shared/utils'; -import { RelationType } from '~/generated-metadata/graphql'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql'; export const sanitizeRecordInput = ({ objectMetadataItem, diff --git a/packages/twenty-front/src/modules/settings/accounts/hooks/useConnectedImapSmtpCaldavAccount.ts b/packages/twenty-front/src/modules/settings/accounts/hooks/useConnectedImapSmtpCaldavAccount.ts index 1a2d85f00..f30bff7e1 100644 --- a/packages/twenty-front/src/modules/settings/accounts/hooks/useConnectedImapSmtpCaldavAccount.ts +++ b/packages/twenty-front/src/modules/settings/accounts/hooks/useConnectedImapSmtpCaldavAccount.ts @@ -1,4 +1,4 @@ -import { useGetConnectedImapSmtpCaldavAccountQuery } from '~/generated/graphql'; +import { useGetConnectedImapSmtpCaldavAccountQuery } from '~/generated-metadata/graphql'; export const useConnectedImapSmtpCaldavAccount = ( connectedAccountId: string | undefined, diff --git a/packages/twenty-front/src/modules/settings/accounts/hooks/useImapConnectionForm.ts b/packages/twenty-front/src/modules/settings/accounts/hooks/useImapConnectionForm.ts index 30785ca04..5cb8c73a2 100644 --- a/packages/twenty-front/src/modules/settings/accounts/hooks/useImapConnectionForm.ts +++ b/packages/twenty-front/src/modules/settings/accounts/hooks/useImapConnectionForm.ts @@ -10,7 +10,7 @@ import { useLingui } from '@lingui/react/macro'; import { ConnectionParameters, useSaveImapSmtpCaldavMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; import { currentWorkspaceMemberState } from '~/modules/auth/states/currentWorkspaceMemberState'; import { currentWorkspaceState } from '~/modules/auth/states/currentWorkspaceState'; diff --git a/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts b/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts index 4a3945650..c2ca03667 100644 --- a/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts +++ b/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts @@ -9,7 +9,7 @@ import { CalendarChannelVisibility, MessageChannelVisibility, useGenerateTransientTokenMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; const getProviderUrl = (provider: ConnectedAccountProvider) => { switch (provider) { diff --git a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminGeneral.tsx b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminGeneral.tsx index 18acf954e..d9dfe4ca6 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminGeneral.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminGeneral.tsx @@ -12,7 +12,7 @@ import { isNonEmptyString } from '@sniptt/guards'; import { useState } from 'react'; import { useRecoilState, useRecoilValue } from 'recoil'; import { REACT_APP_SERVER_BASE_URL } from '~/config'; -import { useUserLookupAdminPanelMutation } from '~/generated/graphql'; +import { useUserLookupAdminPanelMutation } from '~/generated-metadata/graphql'; import { currentUserState } from '@/auth/states/currentUserState'; import { SettingsAdminTableCard } from '@/settings/admin-panel/components/SettingsAdminTableCard'; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx index aded804d0..5a9a15b58 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminVersionContainer.tsx @@ -2,7 +2,7 @@ import { SettingsAdminTableCard } from '@/settings/admin-panel/components/Settin import { SettingsAdminVersionDisplay } from '@/settings/admin-panel/components/SettingsAdminVersionDisplay'; import { t } from '@lingui/core/macro'; import { IconCircleDot, IconStatusChange } from 'twenty-ui/display'; -import { useGetVersionInfoQuery } from '~/generated/graphql'; +import { useGetVersionInfoQuery } from '~/generated-metadata/graphql'; export const SettingsAdminVersionContainer = () => { const { data, loading } = useGetVersionInfoQuery(); diff --git a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceContent.tsx b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceContent.tsx index 0dd1db164..a85a098a6 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceContent.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/components/SettingsAdminWorkspaceContent.tsx @@ -36,7 +36,7 @@ import { FeatureFlagKey, useImpersonateMutation, useUpdateWorkspaceFeatureFlagMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; type SettingsAdminWorkspaceContentProps = { activeWorkspace: WorkspaceInfo | undefined; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariables.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariables.tsx index 0ebf08165..b835868ec 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariables.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariables.tsx @@ -13,7 +13,7 @@ import { Section } from 'twenty-ui/layout'; import { ConfigSource, useGetConfigVariablesGroupedQuery, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { ConfigVariableSearchInput } from './ConfigVariableSearchInput'; const StyledControlsContainer = styled.div` diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/hooks/useConfigVariableActions.ts b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/hooks/useConfigVariableActions.ts index 87e1c92ed..7d43dbaa3 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/hooks/useConfigVariableActions.ts +++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/hooks/useConfigVariableActions.ts @@ -10,7 +10,7 @@ import { useCreateDatabaseConfigVariableMutation, useDeleteDatabaseConfigVariableMutation, useUpdateDatabaseConfigVariableMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useConfigVariableActions = (variableName: string) => { const { t } = useLingui(); diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/hooks/useConfigVariableForm.ts b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/hooks/useConfigVariableForm.ts index a044e5830..501c99c30 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/hooks/useConfigVariableForm.ts +++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/hooks/useConfigVariableForm.ts @@ -3,7 +3,7 @@ import { useForm } from 'react-hook-form'; import { ConfigVariableValue } from 'twenty-shared/types'; import { z } from 'zod'; -import { ConfigVariable } from '~/generated/graphql'; +import { ConfigVariable } from '~/generated-metadata/graphql'; type FormValues = { value: ConfigVariableValue; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/ConnectedAccountHealthStatus.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/ConnectedAccountHealthStatus.tsx index 7abb4a163..ebb465741 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/ConnectedAccountHealthStatus.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/ConnectedAccountHealthStatus.tsx @@ -3,7 +3,7 @@ import { SettingsAdminIndicatorHealthContext } from '@/settings/admin-panel/heal import styled from '@emotion/styled'; import { t } from '@lingui/core/macro'; import { useContext } from 'react'; -import { AdminPanelHealthServiceStatus } from '~/generated/graphql'; +import { AdminPanelHealthServiceStatus } from '~/generated-metadata/graphql'; const StyledErrorMessage = styled.div` color: ${({ theme }) => theme.color.red}; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/JsonDataIndicatorHealthStatus.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/JsonDataIndicatorHealthStatus.tsx index bc033aa15..fbaf6a813 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/JsonDataIndicatorHealthStatus.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/JsonDataIndicatorHealthStatus.tsx @@ -4,7 +4,7 @@ import { useLingui } from '@lingui/react/macro'; import { useContext } from 'react'; import { JsonTree } from 'twenty-ui/json-visualizer'; import { Section } from 'twenty-ui/layout'; -import { AdminPanelHealthServiceStatus } from '~/generated/graphql'; +import { AdminPanelHealthServiceStatus } from '~/generated-metadata/graphql'; import { useCopyToClipboard } from '~/hooks/useCopyToClipboard'; const StyledDetailsContainer = styled.div` diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatus.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatus.tsx index a5cff9afb..2928bafa0 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatus.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatus.tsx @@ -1,9 +1,9 @@ import { SettingsAdminTabSkeletonLoader } from '@/settings/admin-panel/components/SettingsAdminTabSkeletonLoader'; import { SettingsHealthStatusListCard } from '@/settings/admin-panel/health-status/components/SettingsHealthStatusListCard'; import { t } from '@lingui/core/macro'; -import { useGetSystemHealthStatusQuery } from '~/generated/graphql'; import { H2Title } from 'twenty-ui/display'; import { Section } from 'twenty-ui/layout'; +import { useGetSystemHealthStatusQuery } from '~/generated-metadata/graphql'; export const SettingsAdminHealthStatus = () => { const { data, loading: loadingHealthStatus } = useGetSystemHealthStatusQuery({ diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatusRightContainer.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatusRightContainer.tsx index 81ec6fb64..0058477cc 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatusRightContainer.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminHealthStatusRightContainer.tsx @@ -1,5 +1,5 @@ -import { AdminPanelHealthServiceStatus } from '~/generated/graphql'; import { Status } from 'twenty-ui/display'; +import { AdminPanelHealthServiceStatus } from '~/generated-metadata/graphql'; export const SettingsAdminHealthStatusRightContainer = ({ status, diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsHealthStatusListCard.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsHealthStatusListCard.tsx index c2d4a03cd..0dc34621f 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsHealthStatusListCard.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsHealthStatusListCard.tsx @@ -1,9 +1,6 @@ import { SettingsListCard } from '@/settings/components/SettingsListCard'; import { SettingsPath } from '@/types/SettingsPath'; import { useTheme } from '@emotion/react'; -import { HealthIndicatorId, SystemHealthService } from '~/generated/graphql'; -import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; -import { SettingsAdminHealthStatusRightContainer } from './SettingsAdminHealthStatusRightContainer'; import { IconAppWindow, IconComponent, @@ -12,6 +9,12 @@ import { IconTool, IconUserCircle, } from 'twenty-ui/display'; +import { + HealthIndicatorId, + SystemHealthService, +} from '~/generated-metadata/graphql'; +import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; +import { SettingsAdminHealthStatusRightContainer } from './SettingsAdminHealthStatusRightContainer'; const HealthStatusIcons: { [k in HealthIndicatorId]: IconComponent } = { [HealthIndicatorId.database]: IconDatabase, diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerHealthStatus.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerHealthStatus.tsx index 53e8acad0..c6be22dbc 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerHealthStatus.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerHealthStatus.tsx @@ -2,7 +2,7 @@ import { WorkerQueueMetricsSection } from '@/settings/admin-panel/health-status/ import styled from '@emotion/styled'; import { t } from '@lingui/core/macro'; import { useContext } from 'react'; -import { AdminPanelHealthServiceStatus } from '~/generated/graphql'; +import { AdminPanelHealthServiceStatus } from '~/generated-metadata/graphql'; import { SettingsAdminIndicatorHealthContext } from '../contexts/SettingsAdminIndicatorHealthContext'; const StyledErrorMessage = styled.div` diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerMetricsGraph.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerMetricsGraph.tsx index b3e08595b..efad4bd64 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerMetricsGraph.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerMetricsGraph.tsx @@ -9,7 +9,7 @@ import { ResponsiveLine } from '@nivo/line'; import { QueueMetricsTimeRange, useGetQueueMetricsQuery, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; const StyledGraphContainer = styled.div` background-color: ${({ theme }) => theme.background.secondary}; diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerQueueMetricsSection.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerQueueMetricsSection.tsx index c1ce3a068..0d7d47bdf 100644 --- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerQueueMetricsSection.tsx +++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/WorkerQueueMetricsSection.tsx @@ -8,7 +8,7 @@ import { Section } from 'twenty-ui/layout'; import { AdminPanelWorkerQueueHealth, QueueMetricsTimeRange, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { WorkerMetricsGraph } from './WorkerMetricsGraph'; type WorkerQueueMetricsSectionProps = { diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/preview/hooks/__tests__/useFieldPreviewValue.test.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/preview/hooks/__tests__/useFieldPreviewValue.test.tsx index 3997720a0..bb926d661 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/preview/hooks/__tests__/useFieldPreviewValue.test.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/preview/hooks/__tests__/useFieldPreviewValue.test.tsx @@ -1,7 +1,7 @@ import { renderHook } from '@testing-library/react'; import { FieldMetadataItemOption } from '@/object-metadata/types/FieldMetadataItem'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; import { generatedMockObjectMetadataItems } from '~/testing/mock-data/generatedMockObjectMetadataItems'; diff --git a/packages/twenty-front/src/modules/settings/data-model/graph-overview/components/SettingsDataModelOverviewObject.tsx b/packages/twenty-front/src/modules/settings/data-model/graph-overview/components/SettingsDataModelOverviewObject.tsx index 835e99e54..37c3df3f6 100644 --- a/packages/twenty-front/src/modules/settings/data-model/graph-overview/components/SettingsDataModelOverviewObject.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/graph-overview/components/SettingsDataModelOverviewObject.tsx @@ -8,15 +8,15 @@ import { useFindManyRecords } from '@/object-record/hooks/useFindManyRecords'; import { ObjectFieldRow } from '@/settings/data-model/graph-overview/components/SettingsDataModelOverviewField'; import { SettingsDataModelObjectTypeTag } from '@/settings/data-model/objects/components/SettingsDataModelObjectTypeTag'; import { getObjectTypeLabel } from '@/settings/data-model/utils/getObjectTypeLabel'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { ObjectFieldRowWithoutRelation } from '@/settings/data-model/graph-overview/components/SettingsDataModelOverviewFieldWithoutRelation'; import { SettingsPath } from '@/types/SettingsPath'; import '@xyflow/react/dist/style.css'; import { useState } from 'react'; -import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; import { capitalize } from 'twenty-shared/utils'; import { IconChevronDown, IconChevronUp, useIcons } from 'twenty-ui/display'; +import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; type SettingsDataModelOverviewObjectNode = Node; type SettingsDataModelOverviewObjectProps = diff --git a/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/isSelectOptionDefaultValue.test.ts b/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/isSelectOptionDefaultValue.test.ts index 87447322f..c69c7fd44 100644 --- a/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/isSelectOptionDefaultValue.test.ts +++ b/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/isSelectOptionDefaultValue.test.ts @@ -1,4 +1,4 @@ -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { isSelectOptionDefaultValue } from '../isSelectOptionDefaultValue'; diff --git a/packages/twenty-front/src/modules/settings/lab/hooks/useLabPublicFeatureFlags.ts b/packages/twenty-front/src/modules/settings/lab/hooks/useLabPublicFeatureFlags.ts index ccee9fc9c..547dc8a16 100644 --- a/packages/twenty-front/src/modules/settings/lab/hooks/useLabPublicFeatureFlags.ts +++ b/packages/twenty-front/src/modules/settings/lab/hooks/useLabPublicFeatureFlags.ts @@ -6,7 +6,7 @@ import { isDefined } from 'twenty-shared/utils'; import { FeatureFlagKey, useUpdateLabPublicFeatureFlagMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useLabPublicFeatureFlags = () => { const [error, setError] = useState(null); diff --git a/packages/twenty-front/src/modules/settings/profile/components/DeleteAccount.tsx b/packages/twenty-front/src/modules/settings/profile/components/DeleteAccount.tsx index 11e9e1e08..4bb942f52 100644 --- a/packages/twenty-front/src/modules/settings/profile/components/DeleteAccount.tsx +++ b/packages/twenty-front/src/modules/settings/profile/components/DeleteAccount.tsx @@ -7,7 +7,7 @@ import { useModal } from '@/ui/layout/modal/hooks/useModal'; import { useLingui } from '@lingui/react/macro'; import { H2Title } from 'twenty-ui/display'; import { Button } from 'twenty-ui/input'; -import { useDeleteUserAccountMutation } from '~/generated/graphql'; +import { useDeleteUserAccountMutation } from '~/generated-metadata/graphql'; const DELETE_ACCOUNT_MODAL_ID = 'delete-account-modal'; export const DeleteAccount = () => { diff --git a/packages/twenty-front/src/modules/settings/profile/components/DeleteWorkspace.tsx b/packages/twenty-front/src/modules/settings/profile/components/DeleteWorkspace.tsx index 2645d747f..b4759ee95 100644 --- a/packages/twenty-front/src/modules/settings/profile/components/DeleteWorkspace.tsx +++ b/packages/twenty-front/src/modules/settings/profile/components/DeleteWorkspace.tsx @@ -7,7 +7,7 @@ import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModa import { useModal } from '@/ui/layout/modal/hooks/useModal'; import { H2Title, IconTrash } from 'twenty-ui/display'; import { Button } from 'twenty-ui/input'; -import { useDeleteCurrentWorkspaceMutation } from '~/generated/graphql'; +import { useDeleteCurrentWorkspaceMutation } from '~/generated-metadata/graphql'; const DELETE_WORKSPACE_MODAL_ID = 'delete-workspace-modal'; diff --git a/packages/twenty-front/src/modules/settings/profile/components/ProfilePictureUploader.tsx b/packages/twenty-front/src/modules/settings/profile/components/ProfilePictureUploader.tsx index 08e4bf173..071ec5c46 100644 --- a/packages/twenty-front/src/modules/settings/profile/components/ProfilePictureUploader.tsx +++ b/packages/twenty-front/src/modules/settings/profile/components/ProfilePictureUploader.tsx @@ -6,7 +6,7 @@ import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSi import { useUpdateOneRecord } from '@/object-record/hooks/useUpdateOneRecord'; import { ImageInput } from '@/ui/input/components/ImageInput'; import { buildSignedPath, isDefined } from 'twenty-shared/utils'; -import { useUploadProfilePictureMutation } from '~/generated/graphql'; +import { useUploadProfilePictureMutation } from '~/generated-metadata/graphql'; import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; export const ProfilePictureUploader = () => { diff --git a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx index 0414689ba..e09b065be 100644 --- a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx +++ b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesDefaultRole.tsx @@ -13,7 +13,7 @@ import { Role, UpdateWorkspaceMutation, useUpdateWorkspaceMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; type SettingsRoleDefaultRoleProps = { roles: Role[]; diff --git a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesQueryEffect.tsx b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesQueryEffect.tsx index c519d1212..bee0af671 100644 --- a/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesQueryEffect.tsx +++ b/packages/twenty-front/src/modules/settings/roles/components/SettingsRolesQueryEffect.tsx @@ -6,7 +6,7 @@ import { getSnapshotValue } from '@/ui/utilities/recoil-scope/utils/getSnapshotV import { useEffect } from 'react'; import { useRecoilCallback, useSetRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; -import { Role, useGetRolesQuery } from '~/generated/graphql'; +import { Role, useGetRolesQuery } from '~/generated-metadata/graphql'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; export const SettingsRolesQueryEffect = () => { diff --git a/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateWorkspaceMemberRole.ts b/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateWorkspaceMemberRole.ts index 7e07f8426..f680b592c 100644 --- a/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateWorkspaceMemberRole.ts +++ b/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateWorkspaceMemberRole.ts @@ -4,7 +4,7 @@ import { useRecoilState, useSetRecoilState } from 'recoil'; import { useUpdateWorkspaceMemberRoleMutation, WorkspaceMember, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; type AddWorkspaceMemberToRoleAndUpdateStateParams = { workspaceMemberId: string; diff --git a/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleSettingsDeleteRoleConfirmationModal.tsx b/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleSettingsDeleteRoleConfirmationModal.tsx index fe967f564..0b5f2a4f4 100644 --- a/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleSettingsDeleteRoleConfirmationModal.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleSettingsDeleteRoleConfirmationModal.tsx @@ -3,7 +3,7 @@ import { SettingsRoleSettingsDeleteRoleConfirmationModalSubtitle } from '@/setti import { SettingsPath } from '@/types/SettingsPath'; import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModal'; import { t } from '@lingui/core/macro'; -import { useDeleteOneRoleMutation } from '~/generated/graphql'; +import { useDeleteOneRoleMutation } from '~/generated-metadata/graphql'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; type SettingsRoleSettingsDeleteRoleConfirmationModalProps = { diff --git a/packages/twenty-front/src/modules/settings/roles/role/components/SettingsRole.tsx b/packages/twenty-front/src/modules/settings/roles/role/components/SettingsRole.tsx index bbf639640..41c5365bf 100644 --- a/packages/twenty-front/src/modules/settings/roles/role/components/SettingsRole.tsx +++ b/packages/twenty-front/src/modules/settings/roles/role/components/SettingsRole.tsx @@ -30,7 +30,7 @@ import { useUpdateOneRoleMutation, useUpsertObjectPermissionsMutation, useUpsertSettingPermissionsMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; import { getDirtyFields } from '~/utils/getDirtyFields'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; diff --git a/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersListCard.tsx b/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersListCard.tsx index 39dd222e7..034337f4c 100644 --- a/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersListCard.tsx +++ b/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersListCard.tsx @@ -14,9 +14,9 @@ import isPropValid from '@emotion/is-prop-valid'; import styled from '@emotion/styled'; import { useLingui } from '@lingui/react/macro'; import { useRecoilState, useRecoilValue } from 'recoil'; -import { useGetSsoIdentityProvidersQuery } from '~/generated/graphql'; -import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; import { IconKey } from 'twenty-ui/display'; +import { useGetSsoIdentityProvidersQuery } from '~/generated-metadata/graphql'; +import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; const StyledLink = styled(Link, { shouldForwardProp: (prop) => isPropValid(prop) && prop !== 'isDisabled', diff --git a/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx b/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx index 1a41cfc91..3d86a7c7f 100644 --- a/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx +++ b/packages/twenty-front/src/modules/settings/security/components/SettingsSecurityAuthProvidersOptionsList.tsx @@ -7,17 +7,19 @@ import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import styled from '@emotion/styled'; import { useLingui } from '@lingui/react/macro'; import { useRecoilState, useRecoilValue } from 'recoil'; -import { AuthProviders } from '~/generated-metadata/graphql'; -import { useUpdateWorkspaceMutation } from '~/generated/graphql'; -import { capitalize } from 'twenty-shared/utils'; import { ConnectedAccountProvider } from 'twenty-shared/types'; -import { Card } from 'twenty-ui/layout'; +import { capitalize } from 'twenty-shared/utils'; import { IconGoogle, IconLink, IconMicrosoft, IconPassword, } from 'twenty-ui/display'; +import { Card } from 'twenty-ui/layout'; +import { + AuthProviders, + useUpdateWorkspaceMutation, +} from '~/generated-metadata/graphql'; const StyledSettingsSecurityOptionsList = styled.div` display: flex; diff --git a/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsApprovedAccessDomainsListCard.tsx b/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsApprovedAccessDomainsListCard.tsx index 237e080ba..a03102834 100644 --- a/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsApprovedAccessDomainsListCard.tsx +++ b/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsApprovedAccessDomainsListCard.tsx @@ -3,19 +3,19 @@ import { Link, useNavigate } from 'react-router-dom'; import { SettingsPath } from '@/types/SettingsPath'; import { SettingsCard } from '@/settings/components/SettingsCard'; +import { SettingsListCard } from '@/settings/components/SettingsListCard'; +import { SettingsSecurityApprovedAccessDomainRowDropdownMenu } from '@/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainRowDropdownMenu'; +import { SettingsSecurityApprovedAccessDomainValidationEffect } from '@/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainValidationEffect'; +import { approvedAccessDomainsState } from '@/settings/security/states/ApprovedAccessDomainsState'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import styled from '@emotion/styled'; import { useLingui } from '@lingui/react/macro'; import { useRecoilState } from 'recoil'; -import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; -import { SettingsListCard } from '@/settings/components/SettingsListCard'; -import { approvedAccessDomainsState } from '@/settings/security/states/ApprovedAccessDomainsState'; -import { SettingsSecurityApprovedAccessDomainRowDropdownMenu } from '@/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainRowDropdownMenu'; -import { SettingsSecurityApprovedAccessDomainValidationEffect } from '@/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainValidationEffect'; -import { useGetApprovedAccessDomainsQuery } from '~/generated/graphql'; -import { beautifyPastDateRelativeToNow } from '~/utils/date-utils'; import { IconAt, IconMailCog, Status } from 'twenty-ui/display'; +import { useGetApprovedAccessDomainsQuery } from '~/generated-metadata/graphql'; +import { beautifyPastDateRelativeToNow } from '~/utils/date-utils'; +import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; const StyledLink = styled(Link)` text-decoration: none; diff --git a/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainRowDropdownMenu.tsx b/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainRowDropdownMenu.tsx index 12bab789a..32bad7548 100644 --- a/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainRowDropdownMenu.tsx +++ b/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainRowDropdownMenu.tsx @@ -10,7 +10,7 @@ import { isDefined } from 'twenty-shared/utils'; import { IconDotsVertical, IconTrash } from 'twenty-ui/display'; import { LightIconButton } from 'twenty-ui/input'; import { MenuItem } from 'twenty-ui/navigation'; -import { useDeleteApprovedAccessDomainMutation } from '~/generated/graphql'; +import { useDeleteApprovedAccessDomainMutation } from '~/generated-metadata/graphql'; type SettingsSecurityApprovedAccessDomainRowDropdownMenuProps = { approvedAccessDomain: UnwrapRecoilValue[0]; diff --git a/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainValidationEffect.tsx b/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainValidationEffect.tsx index 6c133900e..b6af7f56f 100644 --- a/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainValidationEffect.tsx +++ b/packages/twenty-front/src/modules/settings/security/components/approvedAccessDomains/SettingsSecurityApprovedAccessDomainValidationEffect.tsx @@ -1,9 +1,9 @@ -import { useEffect } from 'react'; -import { useValidateApprovedAccessDomainMutation } from '~/generated/graphql'; -import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; -import { useSearchParams } from 'react-router-dom'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; +import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; +import { useEffect } from 'react'; +import { useSearchParams } from 'react-router-dom'; import { isDefined } from 'twenty-shared/utils'; +import { useValidateApprovedAccessDomainMutation } from '~/generated-metadata/graphql'; export const SettingsSecurityApprovedAccessDomainValidationEffect = () => { const [validateApprovedAccessDomainMutation] = diff --git a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx index 50b71e727..62f7e3b4b 100644 --- a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx +++ b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx @@ -1,22 +1,21 @@ /* @license Enterprise */ import { renderHook } from '@testing-library/react'; -import { ReactNode } from 'react'; -import { RecoilRoot } from 'recoil'; import { useCreateSSOIdentityProvider } from '@/settings/security/hooks/useCreateSSOIdentityProvider'; +import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; const mutationOIDCCallSpy = jest.fn(); const mutationSAMLCallSpy = jest.fn(); -jest.mock('~/generated/graphql', () => ({ +jest.mock('~/generated-metadata/graphql', () => ({ useCreateOidcIdentityProviderMutation: () => [mutationOIDCCallSpy], useCreateSamlIdentityProviderMutation: () => [mutationSAMLCallSpy], })); -const Wrapper = ({ children }: { children: ReactNode }) => ( - {children} -); +const Wrapper = getJestMetadataAndApolloMocksWrapper({ + apolloMocks: [], +}); describe('useCreateSSOIdentityProvider', () => { afterEach(() => { diff --git a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx index 48b5e1019..415d549fe 100644 --- a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx +++ b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx @@ -1,20 +1,19 @@ /* @license Enterprise */ import { renderHook } from '@testing-library/react'; -import { ReactNode } from 'react'; -import { RecoilRoot } from 'recoil'; import { useDeleteSSOIdentityProvider } from '@/settings/security/hooks/useDeleteSSOIdentityProvider'; +import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; const mutationDeleteSSOIDPCallSpy = jest.fn(); -jest.mock('~/generated/graphql', () => ({ +jest.mock('~/generated-metadata/graphql', () => ({ useDeleteSsoIdentityProviderMutation: () => [mutationDeleteSSOIDPCallSpy], })); -const Wrapper = ({ children }: { children: ReactNode }) => ( - {children} -); +const Wrapper = getJestMetadataAndApolloMocksWrapper({ + apolloMocks: [], +}); describe('useDeleteSsoIdentityProvider', () => { afterEach(() => { @@ -22,10 +21,11 @@ describe('useDeleteSsoIdentityProvider', () => { }); it('delete SSO identity provider', async () => { + const params = { identityProviderId: 'test' }; renderHook( () => { const { deleteSSOIdentityProvider } = useDeleteSSOIdentityProvider(); - deleteSSOIdentityProvider({ identityProviderId: 'test' }); + deleteSSOIdentityProvider(params); }, { wrapper: Wrapper }, ); @@ -33,7 +33,7 @@ describe('useDeleteSsoIdentityProvider', () => { expect(mutationDeleteSSOIDPCallSpy).toHaveBeenCalledWith({ onCompleted: expect.any(Function), variables: { - input: { identityProviderId: 'test' }, + input: params, }, }); }); diff --git a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx index f253f10cb..d0cc98d8f 100644 --- a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx +++ b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx @@ -1,25 +1,24 @@ /* @license Enterprise */ import { renderHook } from '@testing-library/react'; -import { ReactNode } from 'react'; -import { RecoilRoot } from 'recoil'; import { useUpdateSSOIdentityProvider } from '@/settings/security/hooks/useUpdateSSOIdentityProvider'; import { SsoIdentityProviderStatus } from '~/generated/graphql'; +import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; const mutationEditSSOIDPCallSpy = jest.fn(); -jest.mock('~/generated/graphql', () => { - const actual = jest.requireActual('~/generated/graphql'); +jest.mock('~/generated-metadata/graphql', () => { + const actual = jest.requireActual('~/generated-metadata/graphql'); return { + ...actual, useEditSsoIdentityProviderMutation: () => [mutationEditSSOIDPCallSpy], - SsoIdentityProviderStatus: actual.SsoIdentityProviderStatus, }; }); -const Wrapper = ({ children }: { children: ReactNode }) => ( - {children} -); +const Wrapper = getJestMetadataAndApolloMocksWrapper({ + apolloMocks: [], +}); describe('useEditSsoIdentityProvider', () => { afterEach(() => { diff --git a/packages/twenty-front/src/modules/settings/security/hooks/useCreateSSOIdentityProvider.ts b/packages/twenty-front/src/modules/settings/security/hooks/useCreateSSOIdentityProvider.ts index 85736f96a..0b51bb173 100644 --- a/packages/twenty-front/src/modules/settings/security/hooks/useCreateSSOIdentityProvider.ts +++ b/packages/twenty-front/src/modules/settings/security/hooks/useCreateSSOIdentityProvider.ts @@ -7,7 +7,7 @@ import { CreateSamlIdentityProviderMutationVariables, useCreateOidcIdentityProviderMutation, useCreateSamlIdentityProviderMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useCreateSSOIdentityProvider = () => { const [createOidcIdentityProviderMutation] = diff --git a/packages/twenty-front/src/modules/settings/security/hooks/useDeleteSSOIdentityProvider.ts b/packages/twenty-front/src/modules/settings/security/hooks/useDeleteSSOIdentityProvider.ts index 71f72164d..217e020e1 100644 --- a/packages/twenty-front/src/modules/settings/security/hooks/useDeleteSSOIdentityProvider.ts +++ b/packages/twenty-front/src/modules/settings/security/hooks/useDeleteSSOIdentityProvider.ts @@ -5,7 +5,7 @@ import { useSetRecoilState } from 'recoil'; import { DeleteSsoIdentityProviderMutationVariables, useDeleteSsoIdentityProviderMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useDeleteSSOIdentityProvider = () => { const [deleteSsoIdentityProviderMutation] = diff --git a/packages/twenty-front/src/modules/settings/security/hooks/useUpdateSSOIdentityProvider.ts b/packages/twenty-front/src/modules/settings/security/hooks/useUpdateSSOIdentityProvider.ts index 5a3058e55..3dcbe40a3 100644 --- a/packages/twenty-front/src/modules/settings/security/hooks/useUpdateSSOIdentityProvider.ts +++ b/packages/twenty-front/src/modules/settings/security/hooks/useUpdateSSOIdentityProvider.ts @@ -5,7 +5,7 @@ import { useSetRecoilState } from 'recoil'; import { EditSsoIdentityProviderMutationVariables, useEditSsoIdentityProviderMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useUpdateSSOIdentityProvider = () => { const [editSsoIdentityProviderMutation] = diff --git a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useCreateOneServerlessFunction.ts b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useCreateOneServerlessFunction.ts index 5627feea7..cf86d12e8 100644 --- a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useCreateOneServerlessFunction.ts +++ b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useCreateOneServerlessFunction.ts @@ -1,6 +1,6 @@ import { useMutation } from '@apollo/client'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { CREATE_ONE_SERVERLESS_FUNCTION } from '@/settings/serverless-functions/graphql/mutations/createOneServerlessFunction'; import { FIND_MANY_SERVERLESS_FUNCTIONS } from '@/settings/serverless-functions/graphql/queries/findManyServerlessFunctions'; import { getOperationName } from '@apollo/client/utilities'; @@ -11,7 +11,7 @@ import { } from '~/generated-metadata/graphql'; export const useCreateOneServerlessFunction = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const [mutate] = useMutation< CreateOneServerlessFunctionItemMutation, CreateOneServerlessFunctionItemMutationVariables diff --git a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useDeleteOneServerlessFunction.ts b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useDeleteOneServerlessFunction.ts index 1c3afaf03..4d4e85ce3 100644 --- a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useDeleteOneServerlessFunction.ts +++ b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useDeleteOneServerlessFunction.ts @@ -1,4 +1,4 @@ -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { DELETE_ONE_SERVERLESS_FUNCTION } from '@/settings/serverless-functions/graphql/mutations/deleteOneServerlessFunction'; import { FIND_ONE_SERVERLESS_FUNCTION_SOURCE_CODE } from '@/settings/serverless-functions/graphql/queries/findOneServerlessFunctionSourceCode'; import { useMutation } from '@apollo/client'; @@ -10,7 +10,7 @@ import { } from '~/generated-metadata/graphql'; export const useDeleteOneServerlessFunction = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const [mutate] = useMutation< DeleteOneServerlessFunctionMutation, DeleteOneServerlessFunctionMutationVariables diff --git a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useExecuteOneServerlessFunction.ts b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useExecuteOneServerlessFunction.ts index 4b69a953e..edc7aebf1 100644 --- a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useExecuteOneServerlessFunction.ts +++ b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useExecuteOneServerlessFunction.ts @@ -1,4 +1,4 @@ -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { EXECUTE_ONE_SERVERLESS_FUNCTION } from '@/settings/serverless-functions/graphql/mutations/executeOneServerlessFunction'; import { useMutation } from '@apollo/client'; import { @@ -8,7 +8,7 @@ import { } from '~/generated-metadata/graphql'; export const useExecuteOneServerlessFunction = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const [mutate] = useMutation< ExecuteOneServerlessFunctionMutation, ExecuteOneServerlessFunctionMutationVariables diff --git a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetAvailablePackages.ts b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetAvailablePackages.ts index cd4659a30..09ea235ea 100644 --- a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetAvailablePackages.ts +++ b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetAvailablePackages.ts @@ -1,4 +1,4 @@ -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useQuery } from '@apollo/client'; import { FIND_MANY_AVAILABLE_PACKAGES } from '@/settings/serverless-functions/graphql/queries/findManyAvailablePackages'; import { @@ -8,7 +8,7 @@ import { } from '~/generated-metadata/graphql'; export const useGetAvailablePackages = (input: ServerlessFunctionIdInput) => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const { data } = useQuery< FindManyAvailablePackagesQuery, FindManyAvailablePackagesQueryVariables diff --git a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetManyServerlessFunctions.ts b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetManyServerlessFunctions.ts index 46226987f..feb6fc4ab 100644 --- a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetManyServerlessFunctions.ts +++ b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetManyServerlessFunctions.ts @@ -1,4 +1,4 @@ -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { FIND_MANY_SERVERLESS_FUNCTIONS } from '@/settings/serverless-functions/graphql/queries/findManyServerlessFunctions'; import { useQuery } from '@apollo/client'; import { @@ -7,7 +7,7 @@ import { } from '~/generated-metadata/graphql'; export const useGetManyServerlessFunctions = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const { data, loading, error } = useQuery< GetManyServerlessFunctionsQuery, diff --git a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetOneServerlessFunction.ts b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetOneServerlessFunction.ts index 1aeda466d..078878fd0 100644 --- a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetOneServerlessFunction.ts +++ b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetOneServerlessFunction.ts @@ -1,5 +1,5 @@ import { useQuery } from '@apollo/client'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { FIND_ONE_SERVERLESS_FUNCTION } from '@/settings/serverless-functions/graphql/queries/findOneServerlessFunction'; import { ServerlessFunctionIdInput, @@ -10,7 +10,7 @@ import { export const useGetOneServerlessFunction = ( input: ServerlessFunctionIdInput, ) => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const { data } = useQuery< GetOneServerlessFunctionQuery, GetOneServerlessFunctionQueryVariables diff --git a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetOneServerlessFunctionSourceCode.ts b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetOneServerlessFunctionSourceCode.ts index 82d2b78b0..733e97591 100644 --- a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetOneServerlessFunctionSourceCode.ts +++ b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useGetOneServerlessFunctionSourceCode.ts @@ -1,5 +1,5 @@ import { useQuery } from '@apollo/client'; -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { FIND_ONE_SERVERLESS_FUNCTION_SOURCE_CODE } from '@/settings/serverless-functions/graphql/queries/findOneServerlessFunctionSourceCode'; import { FindOneServerlessFunctionSourceCodeQuery, @@ -15,7 +15,7 @@ export const useGetOneServerlessFunctionSourceCode = ({ version: string; onCompleted?: (data: FindOneServerlessFunctionSourceCodeQuery) => void; }) => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const { data, loading } = useQuery< FindOneServerlessFunctionSourceCodeQuery, FindOneServerlessFunctionSourceCodeQueryVariables diff --git a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/usePublishOneServerlessFunction.ts b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/usePublishOneServerlessFunction.ts index 364eefd75..8b692a163 100644 --- a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/usePublishOneServerlessFunction.ts +++ b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/usePublishOneServerlessFunction.ts @@ -1,4 +1,4 @@ -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { PUBLISH_ONE_SERVERLESS_FUNCTION } from '@/settings/serverless-functions/graphql/mutations/publishOneServerlessFunction'; import { FIND_ONE_SERVERLESS_FUNCTION_SOURCE_CODE } from '@/settings/serverless-functions/graphql/queries/findOneServerlessFunctionSourceCode'; import { useMutation } from '@apollo/client'; @@ -10,7 +10,7 @@ import { } from '~/generated-metadata/graphql'; export const usePublishOneServerlessFunction = () => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const [mutate] = useMutation< PublishOneServerlessFunctionMutation, PublishOneServerlessFunctionMutationVariables diff --git a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useUpdateOneServerlessFunction.ts b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useUpdateOneServerlessFunction.ts index 6680c0474..e6a2017fe 100644 --- a/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useUpdateOneServerlessFunction.ts +++ b/packages/twenty-front/src/modules/settings/serverless-functions/hooks/useUpdateOneServerlessFunction.ts @@ -1,4 +1,4 @@ -import { useApolloMetadataClient } from '@/object-metadata/hooks/useApolloMetadataClient'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { UPDATE_ONE_SERVERLESS_FUNCTION } from '@/settings/serverless-functions/graphql/mutations/updateOneServerlessFunction'; import { useMutation } from '@apollo/client'; import { @@ -12,7 +12,7 @@ import { FIND_ONE_SERVERLESS_FUNCTION_SOURCE_CODE } from '@/settings/serverless- export const useUpdateOneServerlessFunction = ( serverlessFunctionId: string, ) => { - const apolloMetadataClient = useApolloMetadataClient(); + const apolloMetadataClient = useApolloCoreClient(); const [mutate] = useMutation< UpdateOneServerlessFunctionMutation, UpdateOneServerlessFunctionMutationVariables diff --git a/packages/twenty-front/src/modules/settings/workspace/components/NameField.tsx b/packages/twenty-front/src/modules/settings/workspace/components/NameField.tsx index d42d0ac7e..27696edb3 100644 --- a/packages/twenty-front/src/modules/settings/workspace/components/NameField.tsx +++ b/packages/twenty-front/src/modules/settings/workspace/components/NameField.tsx @@ -7,10 +7,10 @@ import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { TextInput } from '@/ui/input/components/TextInput'; import { useLingui } from '@lingui/react/macro'; import isEmpty from 'lodash.isempty'; -import { useUpdateWorkspaceMutation } from '~/generated/graphql'; +import { isDefined } from 'twenty-shared/utils'; +import { useUpdateWorkspaceMutation } from '~/generated-metadata/graphql'; import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; import { logError } from '~/utils/logError'; -import { isDefined } from 'twenty-shared/utils'; const StyledComboInputContainer = styled.div` display: flex; diff --git a/packages/twenty-front/src/modules/settings/workspace/components/ToggleImpersonate.tsx b/packages/twenty-front/src/modules/settings/workspace/components/ToggleImpersonate.tsx index 946b7bd7e..c88d01eba 100644 --- a/packages/twenty-front/src/modules/settings/workspace/components/ToggleImpersonate.tsx +++ b/packages/twenty-front/src/modules/settings/workspace/components/ToggleImpersonate.tsx @@ -5,9 +5,9 @@ import { SettingsOptionCardContentToggle } from '@/settings/components/SettingsO import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import { t } from '@lingui/core/macro'; -import { useUpdateWorkspaceMutation } from '~/generated/graphql'; -import { Card } from 'twenty-ui/layout'; import { IconLifebuoy } from 'twenty-ui/display'; +import { Card } from 'twenty-ui/layout'; +import { useUpdateWorkspaceMutation } from '~/generated-metadata/graphql'; export const ToggleImpersonate = () => { const { enqueueSnackBar } = useSnackBar(); diff --git a/packages/twenty-front/src/modules/settings/workspace/components/WorkspaceLogoUploader.tsx b/packages/twenty-front/src/modules/settings/workspace/components/WorkspaceLogoUploader.tsx index dec1b233a..a8aa87392 100644 --- a/packages/twenty-front/src/modules/settings/workspace/components/WorkspaceLogoUploader.tsx +++ b/packages/twenty-front/src/modules/settings/workspace/components/WorkspaceLogoUploader.tsx @@ -5,7 +5,7 @@ import { ImageInput } from '@/ui/input/components/ImageInput'; import { useUpdateWorkspaceMutation, useUploadWorkspaceLogoMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; import { buildSignedPath } from 'twenty-shared/utils'; diff --git a/packages/twenty-front/src/modules/subscription/components/ListenUpdatesEffect.tsx b/packages/twenty-front/src/modules/subscription/components/ListenUpdatesEffect.tsx index c125541b5..377b2974e 100644 --- a/packages/twenty-front/src/modules/subscription/components/ListenUpdatesEffect.tsx +++ b/packages/twenty-front/src/modules/subscription/components/ListenUpdatesEffect.tsx @@ -1,4 +1,5 @@ import { triggerUpdateRecordOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffect'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { useGetRecordFromCache } from '@/object-record/cache/hooks/useGetRecordFromCache'; @@ -10,7 +11,6 @@ import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState'; import { ObjectRecord } from '@/object-record/types/ObjectRecord'; import { useOnDbEvent } from '@/subscription/hooks/useOnDbEvent'; -import { useApolloClient } from '@apollo/client'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { DatabaseEventAction } from '~/generated/graphql'; @@ -26,7 +26,7 @@ export const ListenRecordUpdatesEffect = ({ recordId, listenedFields, }: ListenRecordUpdatesEffectProps) => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular, @@ -76,14 +76,14 @@ export const ListenRecordUpdatesEffect = ({ updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: computedOptimisticRecord, recordGqlFields: computedRecordGqlFields, objectPermissionsByObjectMetadataId, }); triggerUpdateRecordOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, currentRecord: cachedRecordNode, updatedRecord: updatedRecord, diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/MultiWorkspaceDropdownDefaultComponents.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/MultiWorkspaceDropdownDefaultComponents.tsx index 8351c5741..64bf94f6c 100644 --- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/MultiWorkspaceDropdownDefaultComponents.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/MultiWorkspaceDropdownDefaultComponents.tsx @@ -40,7 +40,7 @@ import { import { AvailableWorkspace, useSignUpInNewWorkspaceMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; diff --git a/packages/twenty-front/src/modules/users/components/UserProviderEffect.tsx b/packages/twenty-front/src/modules/users/components/UserProviderEffect.tsx index 7e472fd61..0ac38c34f 100644 --- a/packages/twenty-front/src/modules/users/components/UserProviderEffect.tsx +++ b/packages/twenty-front/src/modules/users/components/UserProviderEffect.tsx @@ -1,6 +1,7 @@ import { useRecoilCallback, useRecoilState, useSetRecoilState } from 'recoil'; import { useIsLogged } from '@/auth/hooks/useIsLogged'; +import { availableWorkspacesState } from '@/auth/states/availableWorkspacesState'; import { currentUserState } from '@/auth/states/currentUserState'; import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState'; import { currentWorkspaceDeletedMembersState } from '@/auth/states/currentWorkspaceDeletedMembersStates'; @@ -24,12 +25,13 @@ import { useEffect } from 'react'; import { useLocation } from 'react-router-dom'; import { APP_LOCALES, SOURCE_LOCALE } from 'twenty-shared/translations'; import { isDefined } from 'twenty-shared/utils'; -import { WorkspaceMember } from '~/generated-metadata/graphql'; -import { useGetCurrentUserQuery } from '~/generated/graphql'; +import { + useGetCurrentUserQuery, + WorkspaceMember, +} from '~/generated-metadata/graphql'; import { dateLocaleState } from '~/localization/states/dateLocaleState'; import { dynamicActivate } from '~/utils/i18n/dynamicActivate'; import { isMatchingLocation } from '~/utils/isMatchingLocation'; -import { availableWorkspacesState } from '@/auth/states/availableWorkspacesState'; export const UserProviderEffect = () => { const location = useLocation(); diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFieldRecords.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFieldRecords.ts index db1a8e24e..f6e3d8ce5 100644 --- a/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFieldRecords.ts +++ b/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFieldRecords.ts @@ -1,9 +1,9 @@ -import { useApolloClient } from '@apollo/client'; import { useCallback } from 'react'; import { v4 } from 'uuid'; import { triggerCreateRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerCreateRecordsOptimisticEffect'; import { triggerUpdateRecordOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffect'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -35,14 +35,14 @@ export const usePersistViewFieldRecords = () => { const { objectMetadataItems } = useObjectMetadataItems(); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const createViewFieldRecords = useCallback( (viewFieldsToCreate: ViewField[], view: GraphQLView) => { if (!viewFieldsToCreate.length) return; return Promise.all( viewFieldsToCreate.map((viewField) => - apolloClient.mutate({ + apolloCoreClient.mutate({ mutation: createOneRecordMutation, variables: { input: { @@ -71,7 +71,7 @@ export const usePersistViewFieldRecords = () => { ); }, [ - apolloClient, + apolloCoreClient, createOneRecordMutation, objectMetadataItem, objectMetadataItems, @@ -85,7 +85,7 @@ export const usePersistViewFieldRecords = () => { return Promise.all( viewFieldsToUpdate.map((viewField) => - apolloClient.mutate({ + apolloCoreClient.mutate({ mutation: updateOneRecordMutation, variables: { idToUpdate: viewField.id, @@ -119,7 +119,7 @@ export const usePersistViewFieldRecords = () => { ); }, [ - apolloClient, + apolloCoreClient, getRecordFromCache, objectMetadataItem, objectMetadataItems, diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFilterGroupRecords.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFilterGroupRecords.ts index 4b3a63e33..3dbb6368c 100644 --- a/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFilterGroupRecords.ts +++ b/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFilterGroupRecords.ts @@ -1,9 +1,9 @@ -import { useApolloClient } from '@apollo/client'; import { useCallback } from 'react'; import { triggerCreateRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerCreateRecordsOptimisticEffect'; import { triggerDestroyRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerDestroyRecordsOptimisticEffect'; import { triggerUpdateRecordOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffect'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -39,11 +39,11 @@ export const usePersistViewFilterGroupRecords = () => { const { objectMetadataItems } = useObjectMetadataItems(); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const createViewFilterGroupRecord = useCallback( async (viewFilterGroup: ViewFilterGroup, view: GraphQLView) => { - const result = await apolloClient.mutate<{ + const result = await apolloCoreClient.mutate<{ createViewFilterGroup: ViewFilterGroup; }>({ mutation: createOneRecordMutation, @@ -78,7 +78,7 @@ export const usePersistViewFilterGroupRecords = () => { return { newRecordId: result.data.createViewFilterGroup.id }; }, [ - apolloClient, + apolloCoreClient, createOneRecordMutation, objectMetadataItem, objectMetadataItems, @@ -129,7 +129,7 @@ export const usePersistViewFilterGroupRecords = () => { if (!viewFilterGroupsToUpdate.length) return; return Promise.all( viewFilterGroupsToUpdate.map((viewFilterGroup) => - apolloClient.mutate<{ updateViewFilterGroup: ViewFilterGroup }>({ + apolloCoreClient.mutate<{ updateViewFilterGroup: ViewFilterGroup }>({ mutation: updateOneRecordMutation, variables: { idToUpdate: viewFilterGroup.id, @@ -164,7 +164,7 @@ export const usePersistViewFilterGroupRecords = () => { ); }, [ - apolloClient, + apolloCoreClient, getRecordFromCache, objectMetadataItem, objectMetadataItems, @@ -177,7 +177,7 @@ export const usePersistViewFilterGroupRecords = () => { if (!viewFilterGroupIdsToDelete.length) return; return Promise.all( viewFilterGroupIdsToDelete.map((viewFilterGroupId) => - apolloClient.mutate<{ destroyViewFilterGroup: ViewFilterGroup }>({ + apolloCoreClient.mutate<{ destroyViewFilterGroup: ViewFilterGroup }>({ mutation: destroyOneRecordMutation, variables: { idToDestroy: viewFilterGroupId, @@ -201,7 +201,7 @@ export const usePersistViewFilterGroupRecords = () => { ); }, [ - apolloClient, + apolloCoreClient, destroyOneRecordMutation, getRecordFromCache, objectMetadataItem, diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFilterRecords.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFilterRecords.ts index 4878496c3..0d26fa41c 100644 --- a/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFilterRecords.ts +++ b/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewFilterRecords.ts @@ -1,9 +1,9 @@ -import { useApolloClient } from '@apollo/client'; import { useCallback } from 'react'; import { triggerCreateRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerCreateRecordsOptimisticEffect'; import { triggerDestroyRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerDestroyRecordsOptimisticEffect'; import { triggerUpdateRecordOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffect'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -39,7 +39,7 @@ export const usePersistViewFilterRecords = () => { const { objectMetadataItems } = useObjectMetadataItems(); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const createViewFilterRecords = useCallback( (viewFiltersToCreate: ViewFilter[], view: GraphQLView) => { @@ -47,7 +47,7 @@ export const usePersistViewFilterRecords = () => { return Promise.all( viewFiltersToCreate.map((viewFilter) => - apolloClient.mutate({ + apolloCoreClient.mutate({ mutation: createOneRecordMutation, variables: { input: { @@ -79,7 +79,7 @@ export const usePersistViewFilterRecords = () => { ); }, [ - apolloClient, + apolloCoreClient, createOneRecordMutation, objectMetadataItem, objectMetadataItems, @@ -92,7 +92,7 @@ export const usePersistViewFilterRecords = () => { if (!viewFiltersToUpdate.length) return; return Promise.all( viewFiltersToUpdate.map((viewFilter) => - apolloClient.mutate({ + apolloCoreClient.mutate({ mutation: updateOneRecordMutation, variables: { idToUpdate: viewFilter.id, @@ -128,7 +128,7 @@ export const usePersistViewFilterRecords = () => { ); }, [ - apolloClient, + apolloCoreClient, getRecordFromCache, objectMetadataItem, objectMetadataItems, @@ -141,7 +141,7 @@ export const usePersistViewFilterRecords = () => { if (!viewFilterIdsToDelete.length) return; return Promise.all( viewFilterIdsToDelete.map((viewFilterId) => - apolloClient.mutate({ + apolloCoreClient.mutate({ mutation: destroyOneRecordMutation, variables: { idToDestroy: viewFilterId, @@ -168,7 +168,7 @@ export const usePersistViewFilterRecords = () => { ); }, [ - apolloClient, + apolloCoreClient, destroyOneRecordMutation, getRecordFromCache, objectMetadataItem, diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewGroupRecords.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewGroupRecords.ts index 98668fab1..44292472e 100644 --- a/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewGroupRecords.ts +++ b/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewGroupRecords.ts @@ -1,18 +1,18 @@ import { useCallback } from 'react'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { useCreateManyRecords } from '@/object-record/hooks/useCreateManyRecords'; import { useDestroyManyRecords } from '@/object-record/hooks/useDestroyManyRecords'; import { useUpdateOneRecordMutation } from '@/object-record/hooks/useUpdateOneRecordMutation'; import { ViewGroup } from '@/views/types/ViewGroup'; -import { useApolloClient } from '@apollo/client'; type CreateViewGroupRecordsArgs = { viewGroupsToCreate: ViewGroup[]; viewId: string; }; export const usePersistViewGroupRecords = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { createManyRecords } = useCreateManyRecords({ objectNameSingular: CoreObjectNameSingular.ViewGroup, @@ -46,7 +46,7 @@ export const usePersistViewGroupRecords = () => { if (!viewGroupsToUpdate.length) return; const mutationPromises = viewGroupsToUpdate.map((viewGroup) => - apolloClient.mutate<{ updateViewGroup: ViewGroup }>({ + apolloCoreClient.mutate<{ updateViewGroup: ViewGroup }>({ mutation: updateOneRecordMutation, variables: { idToUpdate: viewGroup.id, @@ -69,8 +69,8 @@ export const usePersistViewGroupRecords = () => { if (!record) return; - apolloClient.cache.modify({ - id: apolloClient.cache.identify({ + apolloCoreClient.cache.modify({ + id: apolloCoreClient.cache.identify({ __typename: 'ViewGroup', id: record.id, }), @@ -81,7 +81,7 @@ export const usePersistViewGroupRecords = () => { }); }); }, - [apolloClient, updateOneRecordMutation], + [apolloCoreClient, updateOneRecordMutation], ); const deleteViewGroupRecords = useCallback( diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewSortRecords.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewSortRecords.ts index b34915b70..00a69562f 100644 --- a/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewSortRecords.ts +++ b/packages/twenty-front/src/modules/views/hooks/internal/usePersistViewSortRecords.ts @@ -1,9 +1,9 @@ -import { useApolloClient } from '@apollo/client'; import { useCallback } from 'react'; import { triggerCreateRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerCreateRecordsOptimisticEffect'; import { triggerDestroyRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerDestroyRecordsOptimisticEffect'; import { triggerUpdateRecordOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffect'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -39,14 +39,14 @@ export const usePersistViewSortRecords = () => { const { objectMetadataItems } = useObjectMetadataItems(); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const createViewSortRecords = useCallback( (viewSortsToCreate: ViewSort[], view: GraphQLView) => { if (!viewSortsToCreate.length) return; return Promise.all( viewSortsToCreate.map((viewSort) => - apolloClient.mutate({ + apolloCoreClient.mutate({ mutation: createOneRecordMutation, variables: { input: { @@ -73,7 +73,7 @@ export const usePersistViewSortRecords = () => { ); }, [ - apolloClient, + apolloCoreClient, createOneRecordMutation, objectMetadataItem, objectMetadataItems, @@ -86,7 +86,7 @@ export const usePersistViewSortRecords = () => { if (!viewSortsToUpdate.length) return; return Promise.all( viewSortsToUpdate.map((viewSort) => - apolloClient.mutate({ + apolloCoreClient.mutate({ mutation: updateOneRecordMutation, variables: { idToUpdate: viewSort.id, @@ -117,7 +117,7 @@ export const usePersistViewSortRecords = () => { ); }, [ - apolloClient, + apolloCoreClient, getRecordFromCache, objectMetadataItem, objectMetadataItems, @@ -130,7 +130,7 @@ export const usePersistViewSortRecords = () => { if (!viewSortIdsToDelete.length) return; return Promise.all( viewSortIdsToDelete.map((viewSortId) => - apolloClient.mutate({ + apolloCoreClient.mutate({ mutation: destroyOneRecordMutation, variables: { idToDestroy: viewSortId, @@ -157,7 +157,7 @@ export const usePersistViewSortRecords = () => { ); }, [ - apolloClient, + apolloCoreClient, destroyOneRecordMutation, getRecordFromCache, objectMetadataItem, diff --git a/packages/twenty-front/src/modules/views/hooks/internal/useViewFromQueryParams.ts b/packages/twenty-front/src/modules/views/hooks/internal/useViewFromQueryParams.ts index d079f7d4d..46d04eeab 100644 --- a/packages/twenty-front/src/modules/views/hooks/internal/useViewFromQueryParams.ts +++ b/packages/twenty-front/src/modules/views/hooks/internal/useViewFromQueryParams.ts @@ -1,4 +1,3 @@ -import { useApolloClient } from '@apollo/client'; import { isNonEmptyString, isObject } from '@sniptt/guards'; import qs from 'qs'; import { useMemo } from 'react'; @@ -6,6 +5,7 @@ import { useParams, useSearchParams } from 'react-router-dom'; import { useRecoilCallback, useRecoilValue } from 'recoil'; import z from 'zod'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectNameSingularFromPlural } from '@/object-metadata/hooks/useObjectNameSingularFromPlural'; import { objectMetadataItemFamilySelector } from '@/object-metadata/states/objectMetadataItemFamilySelector'; @@ -34,7 +34,7 @@ const filterQueryParamsSchema = z.object({ export type FilterQueryParams = z.infer; export const useViewFromQueryParams = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const [searchParams] = useSearchParams(); const { objectNamePlural = '' } = useParams(); const { objectNameSingular } = useObjectNameSingularFromPlural({ @@ -118,7 +118,7 @@ export const useViewFromQueryParams = () => { (Array.isArray(filterValueFromURL) || satisfiesRelationFilterSchema) ) { - const queryResult = await apolloClient.query< + const queryResult = await apolloCoreClient.query< Record >({ query: generateFindManyRecordsQuery({ @@ -180,7 +180,7 @@ export const useViewFromQueryParams = () => { ).filter(isDefined); }, [ - apolloClient, + apolloCoreClient, filterQueryParams, hasFiltersQueryParams, objectMetadataItem.fields, diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/mapBoardFieldDefinitionsToViewFields.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/mapBoardFieldDefinitionsToViewFields.test.ts index bca759b20..512e9bfc8 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/mapBoardFieldDefinitionsToViewFields.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/mapBoardFieldDefinitionsToViewFields.test.ts @@ -1,7 +1,7 @@ import { RecordBoardFieldDefinition } from '@/object-record/record-board/types/RecordBoardFieldDefinition'; import { FieldMetadata } from '@/object-record/record-field/types/FieldMetadata'; import { mapBoardFieldDefinitionsToViewFields } from '@/views/utils/mapBoardFieldDefinitionsToViewFields'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; describe('mapBoardFieldDefinitionsToViewFields', () => { it('should map board field definitions to view fields', () => { diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts index 48650ca2f..11fcf1708 100644 --- a/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts +++ b/packages/twenty-front/src/modules/views/utils/__tests__/viewMapFunctions.test.ts @@ -11,7 +11,7 @@ import { mapViewFieldsToColumnDefinitions } from '@/views/utils/mapViewFieldsToC import { mapViewFiltersToFilters } from '@/views/utils/mapViewFiltersToFilters'; import { mapViewSortsToSorts } from '@/views/utils/mapViewSortsToSorts'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; const baseFieldMetadataItem = { id: '05731f68-6e7a-4903-8374-c0b6a9063482', diff --git a/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowFieldsMultiSelect.stories.ts b/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowFieldsMultiSelect.stories.ts index 665cc4387..8da6673a3 100644 --- a/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowFieldsMultiSelect.stories.ts +++ b/packages/twenty-front/src/modules/workflow/components/__stories__/WorkflowFieldsMultiSelect.stories.ts @@ -2,7 +2,7 @@ import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { expect } from '@storybook/jest'; import type { Meta, StoryObj } from '@storybook/react'; import { within } from '@storybook/testing-library'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; import { WorkflowFieldsMultiSelect } from '../WorkflowEditUpdateEventFieldsMultiSelect'; const meta: Meta = { diff --git a/packages/twenty-front/src/modules/workflow/hooks/__tests__/useComputeStepOutputSchema.test.ts b/packages/twenty-front/src/modules/workflow/hooks/__tests__/useComputeStepOutputSchema.test.ts index c13f4c1b8..87e1b4422 100644 --- a/packages/twenty-front/src/modules/workflow/hooks/__tests__/useComputeStepOutputSchema.test.ts +++ b/packages/twenty-front/src/modules/workflow/hooks/__tests__/useComputeStepOutputSchema.test.ts @@ -3,10 +3,9 @@ import { renderHook } from '@testing-library/react'; import { ComputeStepOutputSchemaInput } from '~/generated/graphql'; import { useComputeStepOutputSchema } from '../useComputeStepOutputSchema'; -jest.mock('@apollo/client', () => ({ - ...jest.requireActual('@apollo/client'), - useMutation: jest.fn(), - useApolloClient: () => ({}), +jest.mock('@apollo/client'); +jest.mock('@/object-metadata/hooks/useApolloCoreClient', () => ({ + useApolloCoreClient: () => ({}), })); describe('useComputeStepOutputSchema', () => { diff --git a/packages/twenty-front/src/modules/workflow/hooks/useActivateWorkflowVersion.ts b/packages/twenty-front/src/modules/workflow/hooks/useActivateWorkflowVersion.ts index 7febbead0..466732285 100644 --- a/packages/twenty-front/src/modules/workflow/hooks/useActivateWorkflowVersion.ts +++ b/packages/twenty-front/src/modules/workflow/hooks/useActivateWorkflowVersion.ts @@ -1,24 +1,25 @@ -import { useApolloClient, useMutation } from '@apollo/client'; +import { useMutation } from '@apollo/client'; import { triggerUpdateRecordOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffect'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { modifyRecordFromCache } from '@/object-record/cache/utils/modifyRecordFromCache'; import { ACTIVATE_WORKFLOW_VERSION } from '@/workflow/graphql/mutations/activateWorkflowVersion'; import { WorkflowVersion } from '@/workflow/types/Workflow'; +import { isDefined } from 'twenty-shared/utils'; import { ActivateWorkflowVersionMutation, ActivateWorkflowVersionMutationVariables, -} from '~/generated/graphql'; -import { isDefined } from 'twenty-shared/utils'; +} from '~/generated-metadata/graphql'; export const useActivateWorkflowVersion = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const [mutate] = useMutation< ActivateWorkflowVersionMutation, ActivateWorkflowVersionMutationVariables >(ACTIVATE_WORKFLOW_VERSION, { - client: apolloClient, + client: apolloCoreClient, }); const { objectMetadataItem: objectMetadataItemWorkflowVersion } = @@ -39,7 +40,7 @@ export const useActivateWorkflowVersion = () => { }, update: () => { modifyRecordFromCache({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, recordId: workflowVersionId, objectMetadataItem: objectMetadataItemWorkflowVersion, fieldModifiers: { @@ -47,7 +48,7 @@ export const useActivateWorkflowVersion = () => { }, }); - const cacheSnapshot = apolloClient.cache.extract(); + const cacheSnapshot = apolloCoreClient.cache.extract(); const allWorkflowVersions: Array = Object.values( cacheSnapshot, ).filter( @@ -67,7 +68,7 @@ export const useActivateWorkflowVersion = () => { if (isDefined(newlyActiveWorkflowVersion)) { triggerUpdateRecordOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem: objectMetadataItemWorkflowVersion, currentRecord: newlyActiveWorkflowVersion, updatedRecord: { @@ -79,8 +80,8 @@ export const useActivateWorkflowVersion = () => { } for (const workflowVersion of previousActiveWorkflowVersions) { - apolloClient.cache.modify({ - id: apolloClient.cache.identify(workflowVersion), + apolloCoreClient.cache.modify({ + id: apolloCoreClient.cache.identify(workflowVersion), fields: { status: () => { return workflowVersion.id !== workflowVersionId && @@ -92,7 +93,7 @@ export const useActivateWorkflowVersion = () => { }); triggerUpdateRecordOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem: objectMetadataItemWorkflowVersion, currentRecord: workflowVersion, updatedRecord: { diff --git a/packages/twenty-front/src/modules/workflow/hooks/useComputeStepOutputSchema.ts b/packages/twenty-front/src/modules/workflow/hooks/useComputeStepOutputSchema.ts index e632b5ad3..9ad61389a 100644 --- a/packages/twenty-front/src/modules/workflow/hooks/useComputeStepOutputSchema.ts +++ b/packages/twenty-front/src/modules/workflow/hooks/useComputeStepOutputSchema.ts @@ -1,18 +1,19 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { COMPUTE_STEP_OUTPUT_SCHEMA } from '@/workflow/graphql/mutations/computeStepOutputSchema'; -import { useApolloClient, useMutation } from '@apollo/client'; +import { useMutation } from '@apollo/client'; import { ComputeStepOutputSchemaInput, ComputeStepOutputSchemaMutation, ComputeStepOutputSchemaMutationVariables, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useComputeStepOutputSchema = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const [mutate] = useMutation< ComputeStepOutputSchemaMutation, ComputeStepOutputSchemaMutationVariables >(COMPUTE_STEP_OUTPUT_SCHEMA, { - client: apolloClient, + client: apolloCoreClient, }); const computeStepOutputSchema = async ( diff --git a/packages/twenty-front/src/modules/workflow/hooks/useCreateDraftFromWorkflowVersion.ts b/packages/twenty-front/src/modules/workflow/hooks/useCreateDraftFromWorkflowVersion.ts index 97cab36a6..a4a6dd4af 100644 --- a/packages/twenty-front/src/modules/workflow/hooks/useCreateDraftFromWorkflowVersion.ts +++ b/packages/twenty-front/src/modules/workflow/hooks/useCreateDraftFromWorkflowVersion.ts @@ -1,16 +1,16 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { useFindManyRecordsQuery } from '@/object-record/hooks/useFindManyRecordsQuery'; -import { useApolloClient } from '@apollo/client'; import { CreateDraftFromWorkflowVersionInput, useCreateDraftFromWorkflowVersionMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useCreateDraftFromWorkflowVersion = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const [mutate] = useCreateDraftFromWorkflowVersionMutation({ - client: apolloClient, + client: apolloCoreClient, }); const { findManyRecordsQuery: findManyWorkflowsQuery } = diff --git a/packages/twenty-front/src/modules/workflow/hooks/useDeactivateWorkflowVersion.ts b/packages/twenty-front/src/modules/workflow/hooks/useDeactivateWorkflowVersion.ts index 147aa582d..85c1310e9 100644 --- a/packages/twenty-front/src/modules/workflow/hooks/useDeactivateWorkflowVersion.ts +++ b/packages/twenty-front/src/modules/workflow/hooks/useDeactivateWorkflowVersion.ts @@ -1,24 +1,25 @@ -import { useApolloClient, useMutation } from '@apollo/client'; +import { useMutation } from '@apollo/client'; import { triggerUpdateRecordOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerUpdateRecordOptimisticEffect'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { modifyRecordFromCache } from '@/object-record/cache/utils/modifyRecordFromCache'; import { DEACTIVATE_WORKFLOW_VERSION } from '@/workflow/graphql/mutations/deactivateWorkflowVersion'; import { WorkflowVersion } from '@/workflow/types/Workflow'; +import { isDefined } from 'twenty-shared/utils'; import { DeactivateWorkflowVersionMutation, DeactivateWorkflowVersionMutationVariables, -} from '~/generated/graphql'; -import { isDefined } from 'twenty-shared/utils'; +} from '~/generated-metadata/graphql'; export const useDeactivateWorkflowVersion = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const [mutate] = useMutation< DeactivateWorkflowVersionMutation, DeactivateWorkflowVersionMutationVariables >(DEACTIVATE_WORKFLOW_VERSION, { - client: apolloClient, + client: apolloCoreClient, }); const { objectMetadataItem: objectMetadataItemWorkflowVersion } = @@ -37,7 +38,7 @@ export const useDeactivateWorkflowVersion = () => { }, update: () => { modifyRecordFromCache({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, recordId: workflowVersionId, objectMetadataItem: objectMetadataItemWorkflowVersion, fieldModifiers: { @@ -45,7 +46,7 @@ export const useDeactivateWorkflowVersion = () => { }, }); - const cacheSnapshot = apolloClient.cache.extract(); + const cacheSnapshot = apolloCoreClient.cache.extract(); const workflowVersion: WorkflowVersion | undefined = Object.values( cacheSnapshot, ).find( @@ -59,7 +60,7 @@ export const useDeactivateWorkflowVersion = () => { } triggerUpdateRecordOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem: objectMetadataItemWorkflowVersion, currentRecord: workflowVersion, updatedRecord: { diff --git a/packages/twenty-front/src/modules/workflow/hooks/useDeleteOneWorkflowVersion.ts b/packages/twenty-front/src/modules/workflow/hooks/useDeleteOneWorkflowVersion.ts index 8843be3d1..2b56a4fc7 100644 --- a/packages/twenty-front/src/modules/workflow/hooks/useDeleteOneWorkflowVersion.ts +++ b/packages/twenty-front/src/modules/workflow/hooks/useDeleteOneWorkflowVersion.ts @@ -1,12 +1,12 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { useGetRecordFromCache } from '@/object-record/cache/hooks/useGetRecordFromCache'; import { useDeleteOneRecord } from '@/object-record/hooks/useDeleteOneRecord'; import { Workflow, WorkflowVersion } from '@/workflow/types/Workflow'; -import { useApolloClient } from '@apollo/client'; import { isDefined } from 'twenty-shared/utils'; export const useDeleteOneWorkflowVersion = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { deleteOneRecord } = useDeleteOneRecord({ objectNameSingular: CoreObjectNameSingular.WorkflowVersion, }); @@ -39,8 +39,8 @@ export const useDeleteOneWorkflowVersion = () => { return; } - apolloClient.cache.modify({ - id: apolloClient.cache.identify(cachedWorkflow), + apolloCoreClient.cache.modify({ + id: apolloCoreClient.cache.identify(cachedWorkflow), fields: { versions: () => { return cachedWorkflow.versions.filter( diff --git a/packages/twenty-front/src/modules/workflow/hooks/useDeleteWorkflowVersionStep.ts b/packages/twenty-front/src/modules/workflow/hooks/useDeleteWorkflowVersionStep.ts index 2d6d324eb..20a5f81fe 100644 --- a/packages/twenty-front/src/modules/workflow/hooks/useDeleteWorkflowVersionStep.ts +++ b/packages/twenty-front/src/modules/workflow/hooks/useDeleteWorkflowVersionStep.ts @@ -1,3 +1,4 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -6,17 +7,17 @@ import { updateRecordFromCache } from '@/object-record/cache/utils/updateRecordF import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions'; import { DELETE_WORKFLOW_VERSION_STEP } from '@/workflow/graphql/mutations/deleteWorkflowVersionStep'; import { WorkflowVersion } from '@/workflow/types/Workflow'; -import { useApolloClient, useMutation } from '@apollo/client'; +import { useMutation } from '@apollo/client'; import { isDefined } from 'twenty-shared/utils'; import { DeleteWorkflowVersionStepInput, DeleteWorkflowVersionStepMutation, DeleteWorkflowVersionStepMutationVariables, WorkflowAction, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useDeleteWorkflowVersionStep = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItems } = useObjectMetadataItems(); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); const { objectMetadataItem } = useObjectMetadataItem({ @@ -29,7 +30,7 @@ export const useDeleteWorkflowVersionStep = () => { DeleteWorkflowVersionStepMutation, DeleteWorkflowVersionStepMutationVariables >(DELETE_WORKFLOW_VERSION_STEP, { - client: apolloClient, + client: apolloCoreClient, }); const deleteWorkflowVersionStep = async ( input: DeleteWorkflowVersionStepInput, @@ -80,7 +81,7 @@ export const useDeleteWorkflowVersionStep = () => { updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: newCachedRecord, recordGqlFields, objectPermissionsByObjectMetadataId, diff --git a/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowRunOpeningInCommandMenuSideEffects.ts b/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowRunOpeningInCommandMenuSideEffects.ts index 0eecd38e7..4a263bb72 100644 --- a/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowRunOpeningInCommandMenuSideEffects.ts +++ b/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowRunOpeningInCommandMenuSideEffects.ts @@ -1,4 +1,5 @@ import { useWorkflowCommandMenu } from '@/command-menu/hooks/useWorkflowCommandMenu'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { getRecordFromCache } from '@/object-record/cache/utils/getRecordFromCache'; @@ -13,13 +14,12 @@ import { workflowRunDiagramAutomaticallyOpenedStepsComponentState } from '@/work import { workflowSelectedNodeComponentState } from '@/workflow/workflow-diagram/states/workflowSelectedNodeComponentState'; import { generateWorkflowRunDiagram } from '@/workflow/workflow-diagram/utils/generateWorkflowRunDiagram'; import { getWorkflowNodeIconKey } from '@/workflow/workflow-diagram/utils/getWorkflowNodeIconKey'; -import { useApolloClient } from '@apollo/client'; import { useRecoilCallback } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { useIcons } from 'twenty-ui/display'; export const useRunWorkflowRunOpeningInCommandMenuSideEffects = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { openWorkflowRunViewStepInCommandMenu } = useWorkflowCommandMenu(); const { getIcon } = useIcons(); @@ -41,7 +41,7 @@ export const useRunWorkflowRunOpeningInCommandMenuSideEffects = () => { const workflowRunRecord = getRecordFromCache({ objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, recordId, objectMetadataItems, objectPermissionsByObjectMetadataId, @@ -117,7 +117,7 @@ export const useRunWorkflowRunOpeningInCommandMenuSideEffects = () => { }); }, [ - apolloClient.cache, + apolloCoreClient.cache, getIcon, openWorkflowRunViewStepInCommandMenu, objectPermissionsByObjectMetadataId, diff --git a/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowVersion.tsx b/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowVersion.tsx index f0310e9f1..235b71f31 100644 --- a/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowVersion.tsx +++ b/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowVersion.tsx @@ -1,6 +1,7 @@ import { triggerCreateRecordsOptimisticEffect } from '@/apollo/optimistic-effect/utils/triggerCreateRecordsOptimisticEffect'; import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState'; import { useOpenRecordInCommandMenu } from '@/command-menu/hooks/useOpenRecordInCommandMenu'; +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -15,17 +16,17 @@ import { computeOptimisticCreateRecordBaseRecordInput } from '@/object-record/ut import { computeOptimisticRecordFromInput } from '@/object-record/utils/computeOptimisticRecordFromInput'; import { RUN_WORKFLOW_VERSION } from '@/workflow/graphql/mutations/runWorkflowVersion'; import { WorkflowRun } from '@/workflow/types/Workflow'; -import { useApolloClient, useMutation } from '@apollo/client'; +import { useMutation } from '@apollo/client'; import { useRecoilCallback, useRecoilValue } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { v4 } from 'uuid'; import { RunWorkflowVersionMutation, RunWorkflowVersionMutationVariables, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useRunWorkflowVersion = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular: CoreObjectNameSingular.WorkflowRun, @@ -42,7 +43,7 @@ export const useRunWorkflowVersion = () => { RunWorkflowVersionMutation, RunWorkflowVersionMutationVariables >(RUN_WORKFLOW_VERSION, { - client: apolloClient, + client: apolloCoreClient, }); const computedRecordGqlFields = generateDepthOneRecordGqlFields({ @@ -87,7 +88,7 @@ export const useRunWorkflowVersion = () => { }; const optimisticRecordInput = computeOptimisticRecordFromInput({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, currentWorkspaceMember: currentWorkspaceMember, objectMetadataItem, objectMetadataItems, @@ -122,7 +123,7 @@ export const useRunWorkflowVersion = () => { }); triggerCreateRecordsOptimisticEffect({ - cache: apolloClient.cache, + cache: apolloCoreClient.cache, objectMetadataItem, recordsToCreate: [recordNodeCreatedInCache], objectMetadataItems, diff --git a/packages/twenty-front/src/modules/workflow/types/InputSchema.ts b/packages/twenty-front/src/modules/workflow/types/InputSchema.ts index 4be9bc092..e758d5d83 100644 --- a/packages/twenty-front/src/modules/workflow/types/InputSchema.ts +++ b/packages/twenty-front/src/modules/workflow/types/InputSchema.ts @@ -1,4 +1,4 @@ -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; export type InputSchemaPropertyType = | 'string' diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useCreateWorkflowVersionStep.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useCreateWorkflowVersionStep.ts index db256ca18..95d3d0fba 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useCreateWorkflowVersionStep.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useCreateWorkflowVersionStep.ts @@ -1,3 +1,4 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -6,16 +7,16 @@ import { updateRecordFromCache } from '@/object-record/cache/utils/updateRecordF import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions'; import { CREATE_WORKFLOW_VERSION_STEP } from '@/workflow/graphql/mutations/createWorkflowVersionStep'; import { WorkflowVersion } from '@/workflow/types/Workflow'; -import { useApolloClient, useMutation } from '@apollo/client'; +import { useMutation } from '@apollo/client'; import { isDefined } from 'twenty-shared/utils'; import { CreateWorkflowVersionStepInput, CreateWorkflowVersionStepMutation, CreateWorkflowVersionStepMutationVariables, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useCreateWorkflowVersionStep = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItems } = useObjectMetadataItems(); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); const { objectMetadataItem } = useObjectMetadataItem({ @@ -28,7 +29,7 @@ export const useCreateWorkflowVersionStep = () => { CreateWorkflowVersionStepMutation, CreateWorkflowVersionStepMutationVariables >(CREATE_WORKFLOW_VERSION_STEP, { - client: apolloClient, + client: apolloCoreClient, }); const createWorkflowVersionStep = async ( input: CreateWorkflowVersionStepInput, @@ -83,7 +84,7 @@ export const useCreateWorkflowVersionStep = () => { updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: newCachedRecord, recordGqlFields, objectPermissionsByObjectMetadataId, diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useUpdateWorkflowRunStep.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useUpdateWorkflowRunStep.ts index 632e937d2..e06964766 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useUpdateWorkflowRunStep.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useUpdateWorkflowRunStep.ts @@ -1,3 +1,4 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -6,17 +7,17 @@ import { updateRecordFromCache } from '@/object-record/cache/utils/updateRecordF import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions'; import { UPDATE_WORKFLOW_RUN_STEP } from '@/workflow/graphql/mutations/updateWorkflowRunStep'; import { WorkflowRun } from '@/workflow/types/Workflow'; -import { useApolloClient, useMutation } from '@apollo/client'; +import { useMutation } from '@apollo/client'; import { isDefined } from 'twenty-shared/utils'; import { UpdateWorkflowRunStepInput, UpdateWorkflowRunStepMutation, UpdateWorkflowRunStepMutationVariables, WorkflowAction, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useUpdateWorkflowRunStep = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItems } = useObjectMetadataItems(); const { objectMetadataItem } = useObjectMetadataItem({ objectNameSingular: CoreObjectNameSingular.WorkflowRun, @@ -26,7 +27,7 @@ export const useUpdateWorkflowRunStep = () => { UpdateWorkflowRunStepMutation, UpdateWorkflowRunStepMutationVariables >(UPDATE_WORKFLOW_RUN_STEP, { - client: apolloClient, + client: apolloCoreClient, }); const getRecordFromCache = useGetRecordFromCache({ @@ -75,7 +76,7 @@ export const useUpdateWorkflowRunStep = () => { updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: newCachedRecord, recordGqlFields, objectPermissionsByObjectMetadataId, diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useUpdateWorkflowVersionStep.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useUpdateWorkflowVersionStep.ts index 7a9fa10a3..ce108aec3 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useUpdateWorkflowVersionStep.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/hooks/useUpdateWorkflowVersionStep.ts @@ -1,3 +1,4 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -6,17 +7,17 @@ import { updateRecordFromCache } from '@/object-record/cache/utils/updateRecordF import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions'; import { UPDATE_WORKFLOW_VERSION_STEP } from '@/workflow/graphql/mutations/updateWorkflowVersionStep'; import { WorkflowVersion } from '@/workflow/types/Workflow'; -import { useApolloClient, useMutation } from '@apollo/client'; +import { useMutation } from '@apollo/client'; import { isDefined } from 'twenty-shared/utils'; import { UpdateWorkflowVersionStepInput, UpdateWorkflowVersionStepMutation, UpdateWorkflowVersionStepMutationVariables, WorkflowAction, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useUpdateWorkflowVersionStep = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const { objectMetadataItems } = useObjectMetadataItems(); const { objectPermissionsByObjectMetadataId } = useObjectPermissions(); @@ -30,7 +31,7 @@ export const useUpdateWorkflowVersionStep = () => { UpdateWorkflowVersionStepMutation, UpdateWorkflowVersionStepMutationVariables >(UPDATE_WORKFLOW_VERSION_STEP, { - client: apolloClient, + client: apolloCoreClient, }); const updateWorkflowVersionStep = async ( @@ -65,7 +66,7 @@ export const useUpdateWorkflowVersionStep = () => { updateRecordFromCache({ objectMetadataItems, objectMetadataItem, - cache: apolloClient.cache, + cache: apolloCoreClient.cache, record: newCachedRecord, recordGqlFields, objectPermissionsByObjectMetadataId, diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useAgentRoleAssignment.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useAgentRoleAssignment.ts index f65235627..3689a692f 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useAgentRoleAssignment.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useAgentRoleAssignment.ts @@ -5,7 +5,7 @@ import { useFindOneAgentQuery, useGetRolesQuery, useRemoveRoleFromAgentMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useAgentRoleAssignment = (agentId: string) => { const [workflowAiAgentSelectedRole, setWorkflowAiAgentSelectedRole] = diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useAgentUpdateFormState.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useAgentUpdateFormState.ts index e8c23d8f8..7b18beeb1 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useAgentUpdateFormState.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/hooks/useAgentUpdateFormState.ts @@ -2,7 +2,7 @@ import { useMutation } from '@apollo/client'; import { useState } from 'react'; import { isDefined } from 'twenty-shared/utils'; import { useDebouncedCallback } from 'use-debounce'; -import { useFindOneAgentQuery } from '~/generated/graphql'; +import { useFindOneAgentQuery } from '~/generated-metadata/graphql'; import { UPDATE_ONE_AGENT } from '../graphql/mutations/updateOneAgent'; type AgentFormValues = { diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/hooks/useSubmitFormStep.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/hooks/useSubmitFormStep.ts index 0d17c93b7..a91532872 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/hooks/useSubmitFormStep.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/form-action/hooks/useSubmitFormStep.ts @@ -1,20 +1,21 @@ +import { useApolloCoreClient } from '@/object-metadata/hooks/useApolloCoreClient'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; import { useFindOneRecordQuery } from '@/object-record/hooks/useFindOneRecordQuery'; import { SUBMIT_FORM_STEP } from '@/workflow/workflow-steps/workflow-actions/form-action/graphql/mutations/submitFormStep'; -import { useApolloClient, useMutation } from '@apollo/client'; +import { useMutation } from '@apollo/client'; import { SubmitFormStepInput, SubmitFormStepMutation, SubmitFormStepMutationVariables, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; export const useSubmitFormStep = () => { - const apolloClient = useApolloClient(); + const apolloCoreClient = useApolloCoreClient(); const [mutate] = useMutation< SubmitFormStepMutation, SubmitFormStepMutationVariables >(SUBMIT_FORM_STEP, { - client: apolloClient, + client: apolloCoreClient, }); const { findOneRecordQuery: findOneWorkflowRunQuery } = useFindOneRecordQuery( diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/shouldDisplayFormField.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/shouldDisplayFormField.ts index 7e2115da6..71160db10 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/shouldDisplayFormField.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/utils/shouldDisplayFormField.ts @@ -1,7 +1,7 @@ import { CustomError } from '@/error-handler/CustomError'; import { FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem'; import { WorkflowActionType } from '@/workflow/types/Workflow'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; const COMMON_DISPLAYABLE_FIELD_TYPES = [ FieldMetadataType.TEXT, diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/__tests__/searchVariableThroughOutputSchema.test.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/__tests__/searchVariableThroughOutputSchema.test.ts index 6ea3f5912..5d5c9f214 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/__tests__/searchVariableThroughOutputSchema.test.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/__tests__/searchVariableThroughOutputSchema.test.ts @@ -1,6 +1,6 @@ import { StepOutputSchema } from '@/workflow/workflow-variables/types/StepOutputSchema'; import { searchVariableThroughOutputSchema } from '@/workflow/workflow-variables/utils/searchVariableThroughOutputSchema'; -import { FieldMetadataType } from '~/generated/graphql'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; describe('searchVariableThroughOutputSchema', () => { describe('step tests', () => { diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx index a14f17012..d467643ba 100644 --- a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx +++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx @@ -1,17 +1,16 @@ -import { renderHook } from '@testing-library/react'; -import { ReactNode } from 'react'; -import { RecoilRoot } from 'recoil'; import { useCreateWorkspaceInvitation } from '@/workspace-invitation/hooks/useCreateWorkspaceInvitation'; +import { renderHook } from '@testing-library/react'; +import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; const mutationSendInvitationsCallSpy = jest.fn(); -jest.mock('~/generated/graphql', () => ({ +jest.mock('~/generated-metadata/graphql', () => ({ useSendInvitationsMutation: () => [mutationSendInvitationsCallSpy], })); -const Wrapper = ({ children }: { children: ReactNode }) => ( - {children} -); +const Wrapper = getJestMetadataAndApolloMocksWrapper({ + apolloMocks: [], +}); describe('useCreateWorkspaceInvitation', () => { afterEach(() => { @@ -19,18 +18,18 @@ describe('useCreateWorkspaceInvitation', () => { }); it('Send invitations', async () => { - const invitationParams = { emails: ['test@twenty.com'] }; + const params = { emails: ['test@test.com'] }; renderHook( () => { const { sendInvitation } = useCreateWorkspaceInvitation(); - sendInvitation(invitationParams); + sendInvitation(params); }, { wrapper: Wrapper }, ); expect(mutationSendInvitationsCallSpy).toHaveBeenCalledWith({ onCompleted: expect.any(Function), - variables: invitationParams, + variables: params, }); }); }); diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx index 5075d7225..11d10c29e 100644 --- a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx +++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx @@ -1,19 +1,18 @@ -import { renderHook } from '@testing-library/react'; -import { ReactNode } from 'react'; -import { RecoilRoot } from 'recoil'; import { useDeleteWorkspaceInvitation } from '@/workspace-invitation/hooks/useDeleteWorkspaceInvitation'; +import { renderHook } from '@testing-library/react'; +import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; -const mutationDeleteWorspaceInvitationCallSpy = jest.fn(); +const mutationDeleteWorkspaceInvitationCallSpy = jest.fn(); -jest.mock('~/generated/graphql', () => ({ +jest.mock('~/generated-metadata/graphql', () => ({ useDeleteWorkspaceInvitationMutation: () => [ - mutationDeleteWorspaceInvitationCallSpy, + mutationDeleteWorkspaceInvitationCallSpy, ], })); -const Wrapper = ({ children }: { children: ReactNode }) => ( - {children} -); +const Wrapper = getJestMetadataAndApolloMocksWrapper({ + apolloMocks: [], +}); describe('useDeleteWorkspaceInvitation', () => { afterEach(() => { @@ -30,7 +29,7 @@ describe('useDeleteWorkspaceInvitation', () => { { wrapper: Wrapper }, ); - expect(mutationDeleteWorspaceInvitationCallSpy).toHaveBeenCalledWith({ + expect(mutationDeleteWorkspaceInvitationCallSpy).toHaveBeenCalledWith({ onCompleted: expect.any(Function), variables: params, }); diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx index 97456ca39..677845952 100644 --- a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx +++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx @@ -1,19 +1,18 @@ -import { renderHook } from '@testing-library/react'; -import { ReactNode } from 'react'; -import { RecoilRoot } from 'recoil'; import { useResendWorkspaceInvitation } from '@/workspace-invitation/hooks/useResendWorkspaceInvitation'; +import { renderHook } from '@testing-library/react'; +import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper'; const mutationResendWorspaceInvitationCallSpy = jest.fn(); -jest.mock('~/generated/graphql', () => ({ +jest.mock('~/generated-metadata/graphql', () => ({ useResendWorkspaceInvitationMutation: () => [ mutationResendWorspaceInvitationCallSpy, ], })); -const Wrapper = ({ children }: { children: ReactNode }) => ( - {children} -); +const Wrapper = getJestMetadataAndApolloMocksWrapper({ + apolloMocks: [], +}); describe('useResendWorkspaceInvitation', () => { afterEach(() => { diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/useCreateWorkspaceInvitation.ts b/packages/twenty-front/src/modules/workspace-invitation/hooks/useCreateWorkspaceInvitation.ts index 5ee4a97fb..6e2776eba 100644 --- a/packages/twenty-front/src/modules/workspace-invitation/hooks/useCreateWorkspaceInvitation.ts +++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/useCreateWorkspaceInvitation.ts @@ -1,8 +1,8 @@ import { useSetRecoilState } from 'recoil'; import { - useSendInvitationsMutation, SendInvitationsMutationVariables, -} from '~/generated/graphql'; + useSendInvitationsMutation, +} from '~/generated-metadata/graphql'; import { workspaceInvitationsState } from '../states/workspaceInvitationsStates'; export const useCreateWorkspaceInvitation = () => { diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/useDeleteWorkspaceInvitation.ts b/packages/twenty-front/src/modules/workspace-invitation/hooks/useDeleteWorkspaceInvitation.ts index 5731548c1..601f53064 100644 --- a/packages/twenty-front/src/modules/workspace-invitation/hooks/useDeleteWorkspaceInvitation.ts +++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/useDeleteWorkspaceInvitation.ts @@ -2,7 +2,7 @@ import { useSetRecoilState } from 'recoil'; import { DeleteWorkspaceInvitationMutationVariables, useDeleteWorkspaceInvitationMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { workspaceInvitationsState } from '../states/workspaceInvitationsStates'; export const useDeleteWorkspaceInvitation = () => { diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/useResendWorkspaceInvitation.ts b/packages/twenty-front/src/modules/workspace-invitation/hooks/useResendWorkspaceInvitation.ts index acda3cffd..5d47167f5 100644 --- a/packages/twenty-front/src/modules/workspace-invitation/hooks/useResendWorkspaceInvitation.ts +++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/useResendWorkspaceInvitation.ts @@ -2,7 +2,7 @@ import { useSetRecoilState } from 'recoil'; import { ResendWorkspaceInvitationMutationVariables, useResendWorkspaceInvitationMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { workspaceInvitationsState } from '../states/workspaceInvitationsStates'; export const useResendWorkspaceInvitation = () => { diff --git a/packages/twenty-front/src/pages/auth/Authorize.tsx b/packages/twenty-front/src/pages/auth/Authorize.tsx index 8c696a920..b57fdd233 100644 --- a/packages/twenty-front/src/pages/auth/Authorize.tsx +++ b/packages/twenty-front/src/pages/auth/Authorize.tsx @@ -8,7 +8,7 @@ import { useLingui } from '@lingui/react/macro'; import { isDefined } from 'twenty-shared/utils'; import { MainButton } from 'twenty-ui/input'; import { UndecoratedLink } from 'twenty-ui/navigation'; -import { useAuthorizeAppMutation } from '~/generated/graphql'; +import { useAuthorizeAppMutation } from '~/generated-metadata/graphql'; import { useNavigateApp } from '~/hooks/useNavigateApp'; type App = { id: string; name: string; logo: string }; diff --git a/packages/twenty-front/src/pages/auth/PasswordReset.tsx b/packages/twenty-front/src/pages/auth/PasswordReset.tsx index 140816929..6e9400670 100644 --- a/packages/twenty-front/src/pages/auth/PasswordReset.tsx +++ b/packages/twenty-front/src/pages/auth/PasswordReset.tsx @@ -28,7 +28,7 @@ import { z } from 'zod'; import { useUpdatePasswordViaResetTokenMutation, useValidatePasswordResetTokenQuery, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { useNavigateApp } from '~/hooks/useNavigateApp'; import { logError } from '~/utils/logError'; diff --git a/packages/twenty-front/src/pages/auth/__stories__/PasswordReset.stories.tsx b/packages/twenty-front/src/pages/auth/__stories__/PasswordReset.stories.tsx index f21276361..4ad62cf71 100644 --- a/packages/twenty-front/src/pages/auth/__stories__/PasswordReset.stories.tsx +++ b/packages/twenty-front/src/pages/auth/__stories__/PasswordReset.stories.tsx @@ -7,7 +7,7 @@ import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { OnboardingStatus, ValidatePasswordResetTokenDocument, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { PasswordReset } from '~/pages/auth/PasswordReset'; import { PageDecorator, diff --git a/packages/twenty-front/src/pages/onboarding/BookCall.tsx b/packages/twenty-front/src/pages/onboarding/BookCall.tsx index a5324206f..2c6d16d53 100644 --- a/packages/twenty-front/src/pages/onboarding/BookCall.tsx +++ b/packages/twenty-front/src/pages/onboarding/BookCall.tsx @@ -17,7 +17,7 @@ import { useIsMobile } from 'twenty-ui/utilities'; import { OnboardingStatus, useSkipBookOnboardingStepMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; const StyledModalFooter = styled(Modal.Footer)` height: auto; diff --git a/packages/twenty-front/src/pages/onboarding/BookCallDecision.tsx b/packages/twenty-front/src/pages/onboarding/BookCallDecision.tsx index 792e9ac10..039d4d158 100644 --- a/packages/twenty-front/src/pages/onboarding/BookCallDecision.tsx +++ b/packages/twenty-front/src/pages/onboarding/BookCallDecision.tsx @@ -7,7 +7,7 @@ import styled from '@emotion/styled'; import { Trans, useLingui } from '@lingui/react/macro'; import { Link } from 'react-router-dom'; import { LightButton, MainButton } from 'twenty-ui/input'; -import { useSkipBookOnboardingStepMutation } from '~/generated/graphql'; +import { useSkipBookOnboardingStepMutation } from '~/generated-metadata/graphql'; const StyledCoverImage = styled.img` border-radius: ${({ theme }) => theme.border.radius.sm}; diff --git a/packages/twenty-front/src/pages/onboarding/ChooseYourPlan.tsx b/packages/twenty-front/src/pages/onboarding/ChooseYourPlan.tsx index c231c85e4..347511f5f 100644 --- a/packages/twenty-front/src/pages/onboarding/ChooseYourPlan.tsx +++ b/packages/twenty-front/src/pages/onboarding/ChooseYourPlan.tsx @@ -27,7 +27,7 @@ import { BillingPlanKey, BillingPriceLicensedDto, useBillingBaseProductPricesQuery, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; const StyledSubscriptionContainer = styled.div<{ withLongerMarginBottom: boolean; diff --git a/packages/twenty-front/src/pages/onboarding/CreateWorkspace.tsx b/packages/twenty-front/src/pages/onboarding/CreateWorkspace.tsx index f9da03417..3b8fc8c3d 100644 --- a/packages/twenty-front/src/pages/onboarding/CreateWorkspace.tsx +++ b/packages/twenty-front/src/pages/onboarding/CreateWorkspace.tsx @@ -25,7 +25,7 @@ import { isDefined } from 'twenty-shared/utils'; import { H2Title } from 'twenty-ui/display'; import { Loader } from 'twenty-ui/feedback'; import { MainButton } from 'twenty-ui/input'; -import { useActivateWorkspaceMutation } from '~/generated/graphql'; +import { useActivateWorkspaceMutation } from '~/generated-metadata/graphql'; const StyledContentContainer = styled.div` width: 100%; diff --git a/packages/twenty-front/src/pages/onboarding/PaymentSuccess.tsx b/packages/twenty-front/src/pages/onboarding/PaymentSuccess.tsx index 4847e2563..75e225d53 100644 --- a/packages/twenty-front/src/pages/onboarding/PaymentSuccess.tsx +++ b/packages/twenty-front/src/pages/onboarding/PaymentSuccess.tsx @@ -13,7 +13,7 @@ import { IconCheck } from 'twenty-ui/display'; import { Loader } from 'twenty-ui/feedback'; import { MainButton } from 'twenty-ui/input'; import { AnimatedEaseIn } from 'twenty-ui/utilities'; -import { useGetCurrentUserLazyQuery } from '~/generated/graphql'; +import { useGetCurrentUserLazyQuery } from '~/generated-metadata/graphql'; import { useNavigateApp } from '~/hooks/useNavigateApp'; const StyledModalContent = styled(Modal.Content)` diff --git a/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx b/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx index a47f62b21..5fb8bc508 100644 --- a/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx +++ b/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx @@ -26,7 +26,7 @@ import { CalendarChannelVisibility, MessageChannelVisibility, useSkipSyncEmailOnboardingStepMutation, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; const StyledSyncEmailsContainer = styled.div` display: flex; diff --git a/packages/twenty-front/src/pages/settings/SettingsBilling.tsx b/packages/twenty-front/src/pages/settings/SettingsBilling.tsx index 6cd1678bb..b6efe4814 100644 --- a/packages/twenty-front/src/pages/settings/SettingsBilling.tsx +++ b/packages/twenty-front/src/pages/settings/SettingsBilling.tsx @@ -3,6 +3,7 @@ import { useRecoilValue } from 'recoil'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { SettingsBillingMonthlyCreditsSection } from '@/billing/components/SettingsBillingMonthlyCreditsSection'; +import { SettingsBillingSubscriptionInfo } from '@/billing/components/SettingsBillingSubscriptionInfo'; import { useRedirect } from '@/domain-manager/hooks/useRedirect'; import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer'; import { SettingsPath } from '@/types/SettingsPath'; @@ -15,9 +16,8 @@ import { Section } from 'twenty-ui/layout'; import { SubscriptionStatus, useBillingPortalSessionQuery, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; -import { SettingsBillingSubscriptionInfo } from '@/billing/components/SettingsBillingSubscriptionInfo'; export const SettingsBilling = () => { const { t } = useLingui(); diff --git a/packages/twenty-front/src/pages/settings/SettingsWorkspaceMembers.tsx b/packages/twenty-front/src/pages/settings/SettingsWorkspaceMembers.tsx index ad671d5da..c7b593652 100644 --- a/packages/twenty-front/src/pages/settings/SettingsWorkspaceMembers.tsx +++ b/packages/twenty-front/src/pages/settings/SettingsWorkspaceMembers.tsx @@ -38,7 +38,7 @@ import { } from 'twenty-ui/display'; import { IconButton } from 'twenty-ui/input'; import { Section } from 'twenty-ui/layout'; -import { useGetWorkspaceInvitationsQuery } from '~/generated/graphql'; +import { useGetWorkspaceInvitationsQuery } from '~/generated-metadata/graphql'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; import { TableCell } from '../../modules/ui/layout/table/components/TableCell'; import { TableRow } from '../../modules/ui/layout/table/components/TableRow'; diff --git a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminConfigVariableDetails.tsx b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminConfigVariableDetails.tsx index dc02f27f6..7b4e97318 100644 --- a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminConfigVariableDetails.tsx +++ b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminConfigVariableDetails.tsx @@ -22,7 +22,7 @@ import { Button } from 'twenty-ui/input'; import { ConfigSource, useGetDatabaseConfigVariableQuery, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; const StyledForm = styled(Form)` display: flex; diff --git a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminIndicatorHealthStatus.tsx b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminIndicatorHealthStatus.tsx index 47e8f6def..7640af04d 100644 --- a/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminIndicatorHealthStatus.tsx +++ b/packages/twenty-front/src/pages/settings/admin-panel/SettingsAdminIndicatorHealthStatus.tsx @@ -8,14 +8,14 @@ import { SubMenuTopBarContainer } from '@/ui/layout/page/components/SubMenuTopBa import styled from '@emotion/styled'; import { useLingui } from '@lingui/react/macro'; import { useParams } from 'react-router-dom'; +import { H2Title, H3Title } from 'twenty-ui/display'; +import { Section } from 'twenty-ui/layout'; import { AdminPanelHealthServiceStatus, HealthIndicatorId, useGetIndicatorHealthStatusQuery, -} from '~/generated/graphql'; +} from '~/generated-metadata/graphql'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; -import { H2Title, H3Title } from 'twenty-ui/display'; -import { Section } from 'twenty-ui/layout'; const StyledTitleContainer = styled.div` align-items: center; diff --git a/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx b/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx index ce5fd7b58..d6406281e 100644 --- a/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx +++ b/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx @@ -27,7 +27,7 @@ import { Trans, useLingui } from '@lingui/react/macro'; import { H2Title, IconRepeat, IconTrash } from 'twenty-ui/display'; import { Button } from 'twenty-ui/input'; import { Section } from 'twenty-ui/layout'; -import { useGenerateApiKeyTokenMutation } from '~/generated/graphql'; +import { useGenerateApiKeyTokenMutation } from '~/generated-metadata/graphql'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; diff --git a/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeysNew.tsx b/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeysNew.tsx index 34f681f20..7e417d23c 100644 --- a/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeysNew.tsx +++ b/packages/twenty-front/src/pages/settings/developers/api-keys/SettingsDevelopersApiKeysNew.tsx @@ -18,7 +18,7 @@ import { Key } from 'ts-key-enum'; import { isDefined } from 'twenty-shared/utils'; import { H2Title } from 'twenty-ui/display'; import { Section } from 'twenty-ui/layout'; -import { useGenerateApiKeyTokenMutation } from '~/generated/graphql'; +import { useGenerateApiKeyTokenMutation } from '~/generated-metadata/graphql'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; diff --git a/packages/twenty-front/src/pages/settings/security/SettingsSecurityApprovedAccessDomain.tsx b/packages/twenty-front/src/pages/settings/security/SettingsSecurityApprovedAccessDomain.tsx index e62e9ee30..a20cb3456 100644 --- a/packages/twenty-front/src/pages/settings/security/SettingsSecurityApprovedAccessDomain.tsx +++ b/packages/twenty-front/src/pages/settings/security/SettingsSecurityApprovedAccessDomain.tsx @@ -11,7 +11,7 @@ import { Controller, useForm } from 'react-hook-form'; import { H2Title } from 'twenty-ui/display'; import { Section } from 'twenty-ui/layout'; import { z } from 'zod'; -import { useCreateApprovedAccessDomainMutation } from '~/generated/graphql'; +import { useCreateApprovedAccessDomainMutation } from '~/generated-metadata/graphql'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; import { getSettingsPath } from '~/utils/navigation/getSettingsPath'; diff --git a/packages/twenty-front/src/pages/settings/workspace/SettingsDomain.tsx b/packages/twenty-front/src/pages/settings/workspace/SettingsDomain.tsx index 20565e006..6328489a2 100644 --- a/packages/twenty-front/src/pages/settings/workspace/SettingsDomain.tsx +++ b/packages/twenty-front/src/pages/settings/workspace/SettingsDomain.tsx @@ -18,7 +18,7 @@ import { FormProvider, useForm } from 'react-hook-form'; import { useRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; import { z } from 'zod'; -import { useUpdateWorkspaceMutation } from '~/generated/graphql'; +import { useUpdateWorkspaceMutation } from '~/generated-metadata/graphql'; import { useNavigateSettings } from '~/hooks/useNavigateSettings'; import { SettingsCustomDomain } from '~/pages/settings/workspace/SettingsCustomDomain'; import { SettingsSubdomain } from '~/pages/settings/workspace/SettingsSubdomain'; diff --git a/packages/twenty-front/src/pages/settings/workspace/hooks/useCheckCustomDomainValidRecords.ts b/packages/twenty-front/src/pages/settings/workspace/hooks/useCheckCustomDomainValidRecords.ts index 51f43a4c1..611e30e90 100644 --- a/packages/twenty-front/src/pages/settings/workspace/hooks/useCheckCustomDomainValidRecords.ts +++ b/packages/twenty-front/src/pages/settings/workspace/hooks/useCheckCustomDomainValidRecords.ts @@ -1,5 +1,5 @@ import { customDomainRecordsState } from '~/pages/settings/workspace/states/customDomainRecordsState'; -import { useCheckCustomDomainValidRecordsMutation } from '~/generated/graphql'; +import { useCheckCustomDomainValidRecordsMutation } from '~/generated-metadata/graphql'; import { useSetRecoilState } from 'recoil'; import { isDefined } from 'twenty-shared/utils'; diff --git a/packages/twenty-front/src/testing/decorators/PageDecorator.tsx b/packages/twenty-front/src/testing/decorators/PageDecorator.tsx index 9f13c586a..ed3ed18e2 100644 --- a/packages/twenty-front/src/testing/decorators/PageDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/PageDecorator.tsx @@ -12,7 +12,7 @@ import { import { RecoilRoot } from 'recoil'; import { ClientConfigProviderEffect } from '@/client-config/components/ClientConfigProviderEffect'; -import { ApolloMetadataClientMockedProvider } from '@/object-metadata/hooks/__mocks__/ApolloMetadataClientMockedProvider'; +import { ApolloCoreClientMockedProvider } from '@/object-metadata/hooks/__mocks__/ApolloCoreClientMockedProvider'; import { SnackBarProviderScope } from '@/ui/feedback/snack-bar-manager/scopes/SnackBarProviderScope'; import { DefaultLayout } from '@/ui/layout/page/components/DefaultLayout'; import { UserProviderEffect } from '@/users/components/UserProviderEffect'; @@ -87,7 +87,7 @@ const Providers = () => { - + @@ -120,7 +120,7 @@ const Providers = () => { - + diff --git a/packages/twenty-front/src/testing/decorators/RootDecorator.tsx b/packages/twenty-front/src/testing/decorators/RootDecorator.tsx index 5afdc2f00..6d11e909c 100644 --- a/packages/twenty-front/src/testing/decorators/RootDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/RootDecorator.tsx @@ -2,7 +2,7 @@ import { ApolloProvider } from '@apollo/client'; import { Decorator } from '@storybook/react'; import { RecoilRoot } from 'recoil'; -import { ApolloMetadataClientMockedProvider } from '@/object-metadata/hooks/__mocks__/ApolloMetadataClientMockedProvider'; +import { ApolloCoreClientMockedProvider } from '@/object-metadata/hooks/__mocks__/ApolloCoreClientMockedProvider'; import { InitializeHotkeyStorybookHookEffect } from '../InitializeHotkeyStorybookHook'; import { mockedApolloClient } from '../mockedApolloClient'; @@ -15,12 +15,12 @@ export const RootDecorator: Decorator = (Story, context) => { return ( - + {!disableHotkeyInitialization && ( )} - + ); diff --git a/packages/twenty-front/src/testing/mock-data/publicWorkspaceDataBySubdomain.ts b/packages/twenty-front/src/testing/mock-data/publicWorkspaceDataBySubdomain.ts index 04ae15b96..01e3f5c3f 100644 --- a/packages/twenty-front/src/testing/mock-data/publicWorkspaceDataBySubdomain.ts +++ b/packages/twenty-front/src/testing/mock-data/publicWorkspaceDataBySubdomain.ts @@ -1,4 +1,4 @@ -import { GetPublicWorkspaceDataByDomainQuery } from '~/generated/graphql'; +import { GetPublicWorkspaceDataByDomainQuery } from '~/generated-metadata/graphql'; export const mockedPublicWorkspaceDataBySubdomain: GetPublicWorkspaceDataByDomainQuery['getPublicWorkspaceDataByDomain'] = { diff --git a/packages/twenty-front/src/testing/mockedApolloClient.ts b/packages/twenty-front/src/testing/mockedApolloClient.ts index cb8d4f0b7..e2b788198 100644 --- a/packages/twenty-front/src/testing/mockedApolloClient.ts +++ b/packages/twenty-front/src/testing/mockedApolloClient.ts @@ -1,6 +1,6 @@ import { ApolloClient, InMemoryCache } from '@apollo/client'; export const mockedApolloClient = new ApolloClient({ - uri: process.env.REACT_APP_SERVER_BASE_URL + '/graphql', + uri: process.env.REACT_APP_SERVER_BASE_URL + '/metadata', cache: new InMemoryCache(), }); diff --git a/packages/twenty-front/src/testing/mockedApolloCoreClient.ts b/packages/twenty-front/src/testing/mockedApolloCoreClient.ts new file mode 100644 index 000000000..5a10aef43 --- /dev/null +++ b/packages/twenty-front/src/testing/mockedApolloCoreClient.ts @@ -0,0 +1,6 @@ +import { ApolloClient, InMemoryCache } from '@apollo/client'; + +export const mockedApolloCoreClient = new ApolloClient({ + uri: process.env.REACT_APP_SERVER_BASE_URL + '/graphql', + cache: new InMemoryCache(), +}); diff --git a/packages/twenty-front/src/testing/mockedMetadataApolloClient.ts b/packages/twenty-front/src/testing/mockedMetadataApolloClient.ts deleted file mode 100644 index 43c2107f0..000000000 --- a/packages/twenty-front/src/testing/mockedMetadataApolloClient.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ApolloClient, InMemoryCache } from '@apollo/client'; - -export const mockedMetadataApolloClient = new ApolloClient({ - uri: process.env.REACT_APP_SERVER_BASE_URL + '/metadata', - cache: new InMemoryCache(), -});