Skip to content

The open alternative to Salesforce, designed for AI.

Separate system operations from core objects in GraphQL endpoints (#12977)

nitind2ddd6f473b4
diff --git a/packages/twenty-front/codegen-metadata.cjs b/packages/twenty-front/codegen-metadata.cjs
index 9f3aeb4bf89..5f4150073be 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 80b74d6a204..b1d3d0c4e22 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 d08157cb0e4..00000000000
--- 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<any, any>> = 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 8a3d0cac84f..c23a8fcab51 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> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
-export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
-export type Incremental<T> = 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<Scalars['String']['input']>;
+ displayName?: InputMaybe<Scalars['String']>;
};
export type AdminPanelHealthServiceData = {
__typename?: 'AdminPanelHealthServiceData';
- description: Scalars['String']['output'];
- details?: Maybe<Scalars['String']['output']>;
- errorMessage?: Maybe<Scalars['String']['output']>;
- id: Scalars['String']['output'];
- label: Scalars['String']['output'];
+ description: Scalars['String'];
+ details?: Maybe<Scalars['String']>;
+ errorMessage?: Maybe<Scalars['String']>;
+ id: Scalars['String'];
+ label: Scalars['String'];
queues?: Maybe<Array<AdminPanelWorkerQueueHealth>>;
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<Scalars['String']['output']>;
- id: Scalars['UUID']['output'];
- modelId: Scalars['String']['output'];
- name: Scalars['String']['output'];
- prompt: Scalars['String']['output'];
- responseFormat?: Maybe<Scalars['JSON']['output']>;
- roleId?: Maybe<Scalars['UUID']['output']>;
- updatedAt: Scalars['DateTime']['output'];
+ createdAt: Scalars['DateTime'];
+ description?: Maybe<Scalars['String']>;
+ id: Scalars['UUID'];
+ modelId: Scalars['String'];
+ name: Scalars['String'];
+ prompt: Scalars['String'];
+ responseFormat?: Maybe<Scalars['JSON']>;
+ roleId?: Maybe<Scalars['UUID']>;
+ 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<SsoIdentityProvider>;
};
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<Scalars['String']['output']>;
- id: Scalars['String']['output'];
- inviteHash?: Maybe<Scalars['String']['output']>;
- loginToken?: Maybe<Scalars['String']['output']>;
- logo?: Maybe<Scalars['String']['output']>;
- personalInviteToken?: Maybe<Scalars['String']['output']>;
+ displayName?: Maybe<Scalars['String']>;
+ id: Scalars['String'];
+ inviteHash?: Maybe<Scalars['String']>;
+ loginToken?: Maybe<Scalars['String']>;
+ logo?: Maybe<Scalars['String']>;
+ personalInviteToken?: Maybe<Scalars['String']>;
sso: Array<SsoConnection>;
workspaceUrls: WorkspaceUrls;
};
@@ -182,29 +174,29 @@ export type AvailableWorkspacesAndAccessTokensOutput = {
export type Billing = {
__typename?: 'Billing';
- billingUrl?: Maybe<Scalars['String']['output']>;
- isBillingEnabled: Scalars['Boolean']['output'];
+ billingUrl?: Maybe<Scalars['String']>;
+ isBillingEnabled: Scalars['Boolean'];
trialPeriods: Array<BillingTrialPeriodDto>;
};
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<SubscriptionStatus>;
};
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<Array<BillingPriceTierDto>>;
tiersMode?: Maybe<BillingPriceTiersMode>;
};
export type BillingPriceTierDto = {
__typename?: 'BillingPriceTierDTO';
- flatAmount?: Maybe<Scalars['Float']['output']>;
- unitAmount?: Maybe<Scalars['Float']['output']>;
- upTo?: Maybe<Scalars['Float']['output']>;
+ flatAmount?: Maybe<Scalars['Float']>;
+ unitAmount?: Maybe<Scalars['Float']>;
+ upTo?: Maybe<Scalars['Float']>;
};
/** 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<Array<Scalars['String']['output']>>;
+ description: Scalars['String'];
+ images?: Maybe<Array<Scalars['String']>>;
metadata: BillingProductMetadata;
- name: Scalars['String']['output'];
+ name: Scalars['String'];
prices?: Maybe<Array<BillingPriceUnionDto>>;
};
@@ -277,36 +269,36 @@ export type BillingProductMetadata = {
export type BillingSessionOutput = {
__typename?: 'BillingSessionOutput';
- url?: Maybe<Scalars['String']['output']>;
+ url?: Maybe<Scalars['String']>;
};
export type BillingSubscription = {
__typename?: 'BillingSubscription';
billingSubscriptionItems?: Maybe<Array<BillingSubscriptionItem>>;
- id: Scalars['UUID']['output'];
+ id: Scalars['UUID'];
interval?: Maybe<SubscriptionInterval>;
- metadata: Scalars['JSON']['output'];
+ metadata: Scalars['JSON'];
status: SubscriptionStatus;
};
export type BillingSubscriptionItem = {
__typename?: 'BillingSubscriptionItem';
billingProduct?: Maybe<BillingProduct>;
- hasReachedCurrentPeriodCap: Scalars['Boolean']['output'];
- id: Scalars['UUID']['output'];
- quantity?: Maybe<Scalars['Float']['output']>;
+ hasReachedCurrentPeriodCap: Scalars['Boolean'];
+ id: Scalars['UUID'];
+ quantity?: Maybe<Scalars['Float']>;
};
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<Scalars['Boolean']['input']>;
- isNot?: InputMaybe<Scalars['Boolean']['input']>;
+ is?: InputMaybe<Scalars['Boolean']>;
+ isNot?: InputMaybe<Scalars['Boolean']>;
};
export enum CalendarChannelVisibility {
@@ -327,7 +319,7 @@ export enum CalendarChannelVisibility {
export type Captcha = {
__typename?: 'Captcha';
provider?: Maybe<CaptchaDriverType>;
- siteKey?: Maybe<Scalars['String']['output']>;
+ siteKey?: Maybe<Scalars['String']>;
};
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<Scalars['JSON']['output']>;
+ description: Scalars['String'];
+ isEnvOnly: Scalars['Boolean'];
+ isSensitive: Scalars['Boolean'];
+ name: Scalars['String'];
+ options?: Maybe<Scalars['JSON']>;
source: ConfigSource;
type: ConfigVariableType;
- value?: Maybe<Scalars['JSON']['output']>;
+ value?: Maybe<Scalars['JSON']>;
};
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<ConfigVariable>;
};
@@ -419,86 +411,86 @@ export type ConfigVariablesOutput = {
export type ConnectedImapSmtpCaldavAccount = {
__typename?: 'ConnectedImapSmtpCaldavAccount';
- accountOwnerId: Scalars['String']['output'];
+ accountOwnerId: Scalars['String'];
connectionParameters?: Maybe<ImapSmtpCaldavConnectionParameters>;
- 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<Scalars['Boolean']['input']>;
- username: Scalars['String']['input'];
+ host: Scalars['String'];
+ password: Scalars['String'];
+ port: Scalars['Float'];
+ secure?: InputMaybe<Scalars['Boolean']>;
+ username: Scalars['String'];
};
export type ConnectionParametersOutput = {
__typename?: 'ConnectionParametersOutput';
- host: Scalars['String']['output'];
- password: Scalars['String']['output'];
- port: Scalars['Float']['output'];
- secure?: Maybe<Scalars['Boolean']['output']>;
- username: Scalars['String']['output'];
+ host: Scalars['String'];
+ password: Scalars['String'];
+ port: Scalars['Float'];
+ secure?: Maybe<Scalars['Boolean']>;
+ username: Scalars['String'];
};
export type CreateAgentInput = {
- description?: InputMaybe<Scalars['String']['input']>;
- modelId: Scalars['String']['input'];
- name: Scalars['String']['input'];
- prompt: Scalars['String']['input'];
- responseFormat?: InputMaybe<Scalars['JSON']['input']>;
+ description?: InputMaybe<Scalars['String']>;
+ modelId: Scalars['String'];
+ name: Scalars['String'];
+ prompt: Scalars['String'];
+ responseFormat?: InputMaybe<Scalars['JSON']>;
};
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<Scalars['JSON']['input']>;
- description?: InputMaybe<Scalars['String']['input']>;
- icon?: InputMaybe<Scalars['String']['input']>;
- isActive?: InputMaybe<Scalars['Boolean']['input']>;
- isCustom?: InputMaybe<Scalars['Boolean']['input']>;
- isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']['input']>;
- isNullable?: InputMaybe<Scalars['Boolean']['input']>;
- isRemoteCreation?: InputMaybe<Scalars['Boolean']['input']>;
- isSystem?: InputMaybe<Scalars['Boolean']['input']>;
- isUnique?: InputMaybe<Scalars['Boolean']['input']>;
- label: Scalars['String']['input'];
- name: Scalars['String']['input'];
- objectMetadataId: Scalars['String']['input'];
- options?: InputMaybe<Scalars['JSON']['input']>;
- relationCreationPayload?: InputMaybe<Scalars['JSON']['input']>;
- settings?: InputMaybe<Scalars['JSON']['input']>;
+ defaultValue?: InputMaybe<Scalars['JSON']>;
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ isActive?: InputMaybe<Scalars['Boolean']>;
+ isCustom?: InputMaybe<Scalars['Boolean']>;
+ isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']>;
+ isNullable?: InputMaybe<Scalars['Boolean']>;
+ isRemoteCreation?: InputMaybe<Scalars['Boolean']>;
+ isSystem?: InputMaybe<Scalars['Boolean']>;
+ isUnique?: InputMaybe<Scalars['Boolean']>;
+ label: Scalars['String'];
+ name: Scalars['String'];
+ objectMetadataId: Scalars['String'];
+ options?: InputMaybe<Scalars['JSON']>;
+ relationCreationPayload?: InputMaybe<Scalars['JSON']>;
+ settings?: InputMaybe<Scalars['JSON']>;
type: FieldMetadataType;
};
export type CreateObjectInput = {
- description?: InputMaybe<Scalars['String']['input']>;
- icon?: InputMaybe<Scalars['String']['input']>;
- isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']['input']>;
- isRemote?: InputMaybe<Scalars['Boolean']['input']>;
- labelPlural: Scalars['String']['input'];
- labelSingular: Scalars['String']['input'];
- namePlural: Scalars['String']['input'];
- nameSingular: Scalars['String']['input'];
- primaryKeyColumnType?: InputMaybe<Scalars['String']['input']>;
- primaryKeyFieldMetadataSettings?: InputMaybe<Scalars['JSON']['input']>;
- shortcut?: InputMaybe<Scalars['String']['input']>;
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']>;
+ isRemote?: InputMaybe<Scalars['Boolean']>;
+ labelPlural: Scalars['String'];
+ labelSingular: Scalars['String'];
+ namePlural: Scalars['String'];
+ nameSingular: Scalars['String'];
+ primaryKeyColumnType?: InputMaybe<Scalars['String']>;
+ primaryKeyFieldMetadataSettings?: InputMaybe<Scalars['JSON']>;
+ shortcut?: InputMaybe<Scalars['String']>;
};
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<Scalars['String']['input']>;
+ foreignDataWrapperOptions: Scalars['JSON'];
+ foreignDataWrapperType: Scalars['String'];
+ label: Scalars['String'];
+ schema?: InputMaybe<Scalars['String']>;
userMappingOptions?: InputMaybe<UserMappingOptions>;
};
export type CreateRoleInput = {
- canDestroyAllObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canReadAllObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canSoftDeleteAllObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canUpdateAllObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canUpdateAllSettings?: InputMaybe<Scalars['Boolean']['input']>;
- description?: InputMaybe<Scalars['String']['input']>;
- icon?: InputMaybe<Scalars['String']['input']>;
- id?: InputMaybe<Scalars['String']['input']>;
- label: Scalars['String']['input'];
+ canDestroyAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canReadAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canSoftDeleteAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canUpdateAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canUpdateAllSettings?: InputMaybe<Scalars['Boolean']>;
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ id?: InputMaybe<Scalars['String']>;
+ label: Scalars['String'];
};
export type CreateServerlessFunctionInput = {
- description?: InputMaybe<Scalars['String']['input']>;
- name: Scalars['String']['input'];
- timeoutSeconds?: InputMaybe<Scalars['Float']['input']>;
+ description?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ timeoutSeconds?: InputMaybe<Scalars['Float']>;
};
export type CreateWorkflowVersionStepInput = {
/** Next step ID */
- nextStepId?: InputMaybe<Scalars['String']['input']>;
+ nextStepId?: InputMaybe<Scalars['String']>;
/** Parent step ID */
- parentStepId?: InputMaybe<Scalars['String']['input']>;
+ parentStepId?: InputMaybe<Scalars['String']>;
/** 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<Scalars['ConnectionCursor']['input']>;
+ after?: InputMaybe<Scalars['ConnectionCursor']>;
/** Paginate before opaque cursor */
- before?: InputMaybe<Scalars['ConnectionCursor']['input']>;
+ before?: InputMaybe<Scalars['ConnectionCursor']>;
/** Paginate first */
- first?: InputMaybe<Scalars['Int']['input']>;
+ first?: InputMaybe<Scalars['Int']>;
/** Paginate last */
- last?: InputMaybe<Scalars['Int']['input']>;
+ last?: InputMaybe<Scalars['Int']>;
};
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<CustomDomainRecord>;
};
@@ -590,53 +582,53 @@ export enum DatabaseEventAction {
}
export type DateFilter = {
- eq?: InputMaybe<Scalars['Date']['input']>;
- gt?: InputMaybe<Scalars['Date']['input']>;
- gte?: InputMaybe<Scalars['Date']['input']>;
- in?: InputMaybe<Array<Scalars['Date']['input']>>;
+ eq?: InputMaybe<Scalars['Date']>;
+ gt?: InputMaybe<Scalars['Date']>;
+ gte?: InputMaybe<Scalars['Date']>;
+ in?: InputMaybe<Array<Scalars['Date']>>;
is?: InputMaybe<FilterIs>;
- lt?: InputMaybe<Scalars['Date']['input']>;
- lte?: InputMaybe<Scalars['Date']['input']>;
- neq?: InputMaybe<Scalars['Date']['input']>;
+ lt?: InputMaybe<Scalars['Date']>;
+ lte?: InputMaybe<Scalars['Date']>;
+ neq?: InputMaybe<Scalars['Date']>;
};
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<Scalars['String']['output']>;
- id: Scalars['UUID']['output'];
+ avatarUrl?: Maybe<Scalars['String']>;
+ id: Scalars['UUID'];
name: FullName;
- userEmail: Scalars['String']['output'];
- userWorkspaceId?: Maybe<Scalars['String']['output']>;
+ userEmail: Scalars['String'];
+ userWorkspaceId?: Maybe<Scalars['String']>;
};
/** 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<Scalars['JSON']['output']>;
- description?: Maybe<Scalars['String']['output']>;
- icon?: Maybe<Scalars['String']['output']>;
- id: Scalars['UUID']['output'];
- isActive?: Maybe<Scalars['Boolean']['output']>;
- isCustom?: Maybe<Scalars['Boolean']['output']>;
- isLabelSyncedWithName?: Maybe<Scalars['Boolean']['output']>;
- isNullable?: Maybe<Scalars['Boolean']['output']>;
- isSystem?: Maybe<Scalars['Boolean']['output']>;
- isUnique?: Maybe<Scalars['Boolean']['output']>;
- label: Scalars['String']['output'];
- name: Scalars['String']['output'];
+ createdAt: Scalars['DateTime'];
+ defaultValue?: Maybe<Scalars['JSON']>;
+ description?: Maybe<Scalars['String']>;
+ icon?: Maybe<Scalars['String']>;
+ id: Scalars['UUID'];
+ isActive?: Maybe<Scalars['Boolean']>;
+ isCustom?: Maybe<Scalars['Boolean']>;
+ isLabelSyncedWithName?: Maybe<Scalars['Boolean']>;
+ isNullable?: Maybe<Scalars['Boolean']>;
+ isSystem?: Maybe<Scalars['Boolean']>;
+ isUnique?: Maybe<Scalars['Boolean']>;
+ label: Scalars['String'];
+ name: Scalars['String'];
object?: Maybe<Object>;
- options?: Maybe<Scalars['JSON']['output']>;
+ options?: Maybe<Scalars['JSON']>;
relation?: Maybe<Relation>;
- settings?: Maybe<Scalars['JSON']['output']>;
+ settings?: Maybe<Scalars['JSON']>;
standardOverrides?: Maybe<StandardOverrides>;
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<Scalars['Boolean']['input']>;
+ shouldFetchPendingSchemaUpdates?: InputMaybe<Scalars['Boolean']>;
};
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<Scalars['String']['input']>;
+ identityProviderId: Scalars['String'];
+ workspaceInviteHash?: InputMaybe<Scalars['String']>;
};
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<IndexField>;
indexFieldMetadatas: IndexIndexFieldMetadatasConnection;
indexType: IndexType;
- indexWhereClause?: Maybe<Scalars['String']['output']>;
- isCustom?: Maybe<Scalars['Boolean']['output']>;
- isUnique: Scalars['Boolean']['output'];
- name: Scalars['String']['output'];
+ indexWhereClause?: Maybe<Scalars['String']>;
+ isCustom?: Maybe<Scalars['Boolean']>;
+ 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<Array<LinkMetadata>>;
};
@@ -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<CustomDomainValidRecords>;
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<Scalars['String']['input']>;
- redirectUrl: Scalars['String']['input'];
+ clientId: Scalars['String'];
+ codeChallenge?: InputMaybe<Scalars['String']>;
+ redirectUrl: Scalars['String'];
};
export type MutationCheckoutSessionArgs = {
plan?: BillingPlanKey;
recurringInterval: SubscriptionInterval;
- requirePaymentMethod?: Scalars['Boolean']['input'];
- successUrlPath?: InputMaybe<Scalars['String']['input']>;
+ requirePaymentMethod?: Scalars['Boolean'];
+ successUrlPath?: InputMaybe<Scalars['String']>;
};
@@ -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<Scalars['JSON']['input']>;
- recordId: Scalars['String']['input'];
+ event: Scalars['String'];
+ objectMetadataId: Scalars['String'];
+ properties?: InputMaybe<Scalars['JSON']>;
+ 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<Scalars['String']['input']>;
- email: Scalars['String']['input'];
- origin: Scalars['String']['input'];
- password: Scalars['String']['input'];
+ captchaToken?: InputMaybe<Scalars['String']>;
+ email: Scalars['String'];
+ origin: Scalars['String'];
+ password: Scalars['String'];
};
export type MutationGetLoginTokenFromEmailVerificationTokenArgs = {
- captchaToken?: InputMaybe<Scalars['String']['input']>;
- email: Scalars['String']['input'];
- emailVerificationToken: Scalars['String']['input'];
- origin: Scalars['String']['input'];
+ captchaToken?: InputMaybe<Scalars['String']>;
+ 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<Scalars['String']['input']>;
+ handle: Scalars['String'];
+ id?: InputMaybe<Scalars['String']>;
};
export type MutationSendInvitationsArgs = {
- emails: Array<Scalars['String']['input']>;
+ emails: Array<Scalars['String']>;
};
export type MutationSignInArgs = {
- captchaToken?: InputMaybe<Scalars['String']['input']>;
- email: Scalars['String']['input'];
- password: Scalars['String']['input'];
+ captchaToken?: InputMaybe<Scalars['String']>;
+ email: Scalars['String'];
+ password: Scalars['String'];
};
export type MutationSignUpArgs = {
- captchaToken?: InputMaybe<Scalars['String']['input']>;
- email: Scalars['String']['input'];
- password: Scalars['String']['input'];
+ captchaToken?: InputMaybe<Scalars['String']>;
+ email: Scalars['String'];
+ password: Scalars['String'];
};
export type MutationSignUpInWorkspaceArgs = {
- captchaToken?: InputMaybe<Scalars['String']['input']>;
- email: Scalars['String']['input'];
- locale?: InputMaybe<Scalars['String']['input']>;
- password: Scalars['String']['input'];
- verifyEmailNextPath?: InputMaybe<Scalars['String']['input']>;
- workspaceId?: InputMaybe<Scalars['String']['input']>;
- workspaceInviteHash?: InputMaybe<Scalars['String']['input']>;
- workspacePersonalInviteToken?: InputMaybe<Scalars['String']['input']>;
+ captchaToken?: InputMaybe<Scalars['String']>;
+ email: Scalars['String'];
+ locale?: InputMaybe<Scalars['String']>;
+ password: Scalars['String'];
+ verifyEmailNextPath?: InputMaybe<Scalars['String']>;
+ workspaceId?: InputMaybe<Scalars['String']>;
+ workspaceInviteHash?: InputMaybe<Scalars['String']>;
+ workspacePersonalInviteToken?: InputMaybe<Scalars['String']>;
};
@@ -1409,9 +1401,9 @@ export type MutationSyncRemoteTableSchemaChangesArgs = {
export type MutationTrackAnalyticsArgs = {
- event?: InputMaybe<Scalars['String']['input']>;
- name?: InputMaybe<Scalars['String']['input']>;
- properties?: InputMaybe<Scalars['JSON']['input']>;
+ event?: InputMaybe<Scalars['String']>;
+ name?: InputMaybe<Scalars['String']>;
+ properties?: InputMaybe<Scalars['JSON']>;
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<FileFolder>;
};
export type MutationUploadImageArgs = {
- file: Scalars['Upload']['input'];
+ file: Scalars['Upload'];
fileFolder?: InputMaybe<FileFolder>;
};
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<Scalars['String']['output']>;
- duplicateCriteria?: Maybe<Array<Array<Scalars['String']['output']>>>;
+ createdAt: Scalars['DateTime'];
+ dataSourceId: Scalars['String'];
+ description?: Maybe<Scalars['String']>;
+ duplicateCriteria?: Maybe<Array<Array<Scalars['String']>>>;
fields: ObjectFieldsConnection;
fieldsList: Array<Field>;
- icon?: Maybe<Scalars['String']['output']>;
- id: Scalars['UUID']['output'];
- imageIdentifierFieldMetadataId?: Maybe<Scalars['String']['output']>;
+ icon?: Maybe<Scalars['String']>;
+ id: Scalars['UUID'];
+ imageIdentifierFieldMetadataId?: Maybe<Scalars['String']>;
indexMetadataList: Array<Index>;
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<Scalars['String']['output']>;
- labelPlural: Scalars['String']['output'];
- labelSingular: Scalars['String']['output'];
- namePlural: Scalars['String']['output'];
- nameSingular: Scalars['String']['output'];
- shortcut?: Maybe<Scalars['String']['output']>;
+ isActive: Scalars['Boolean'];
+ isCustom: Scalars['Boolean'];
+ isLabelSyncedWithName: Scalars['Boolean'];
+ isRemote: Scalars['Boolean'];
+ isSearchable: Scalars['Boolean'];
+ isSystem: Scalars['Boolean'];
+ labelIdentifierFieldMetadataId?: Maybe<Scalars['String']>;
+ labelPlural: Scalars['String'];
+ labelSingular: Scalars['String'];
+ namePlural: Scalars['String'];
+ nameSingular: Scalars['String'];
+ shortcut?: Maybe<Scalars['String']>;
standardOverrides?: Maybe<ObjectStandardOverrides>;
- 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<Scalars['Boolean']['output']>;
- canReadObjectRecords?: Maybe<Scalars['Boolean']['output']>;
- canSoftDeleteObjectRecords?: Maybe<Scalars['Boolean']['output']>;
- canUpdateObjectRecords?: Maybe<Scalars['Boolean']['output']>;
- objectMetadataId: Scalars['String']['output'];
+ canDestroyObjectRecords?: Maybe<Scalars['Boolean']>;
+ canReadObjectRecords?: Maybe<Scalars['Boolean']>;
+ canSoftDeleteObjectRecords?: Maybe<Scalars['Boolean']>;
+ canUpdateObjectRecords?: Maybe<Scalars['Boolean']>;
+ objectMetadataId: Scalars['String'];
};
export type ObjectPermissionInput = {
- canDestroyObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canReadObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canSoftDeleteObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canUpdateObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- objectMetadataId: Scalars['String']['input'];
+ canDestroyObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canReadObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canSoftDeleteObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canUpdateObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ objectMetadataId: Scalars['String'];
};
export type ObjectRecordFilterInput = {
@@ -1650,26 +1642,26 @@ export type ObjectRecordFilterInput = {
export type ObjectStandardOverrides = {
__typename?: 'ObjectStandardOverrides';
- description?: Maybe<Scalars['String']['output']>;
- icon?: Maybe<Scalars['String']['output']>;
- labelPlural?: Maybe<Scalars['String']['output']>;
- labelSingular?: Maybe<Scalars['String']['output']>;
- translations?: Maybe<Scalars['JSON']['output']>;
+ description?: Maybe<Scalars['String']>;
+ icon?: Maybe<Scalars['String']>;
+ labelPlural?: Maybe<Scalars['String']>;
+ labelSingular?: Maybe<Scalars['String']>;
+ translations?: Maybe<Scalars['JSON']>;
};
export type OnDbEventDto = {
__typename?: 'OnDbEventDTO';
action: DatabaseEventAction;
- eventDate: Scalars['DateTime']['output'];
- objectNameSingular: Scalars['String']['output'];
- record: Scalars['JSON']['output'];
- updatedFields?: Maybe<Array<Scalars['String']['output']>>;
+ eventDate: Scalars['DateTime'];
+ objectNameSingular: Scalars['String'];
+ record: Scalars['JSON'];
+ updatedFields?: Maybe<Array<Scalars['String']>>;
};
export type OnDbEventInput = {
action?: InputMaybe<DatabaseEventAction>;
- objectNameSingular?: InputMaybe<Scalars['String']['input']>;
- recordId?: InputMaybe<Scalars['String']['input']>;
+ objectNameSingular?: InputMaybe<Scalars['String']>;
+ recordId?: InputMaybe<Scalars['String']>;
};
/** 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<Scalars['ConnectionCursor']['output']>;
+ endCursor?: Maybe<Scalars['ConnectionCursor']>;
/** true if paging forward and there are more records. */
- hasNextPage?: Maybe<Scalars['Boolean']['output']>;
+ hasNextPage?: Maybe<Scalars['Boolean']>;
/** true if paging backwards and there are more records. */
- hasPreviousPage?: Maybe<Scalars['Boolean']['output']>;
+ hasPreviousPage?: Maybe<Scalars['Boolean']>;
/** The cursor of the first returned record. */
- startCursor?: Maybe<Scalars['ConnectionCursor']['output']>;
+ startCursor?: Maybe<Scalars['ConnectionCursor']>;
};
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<Scalars['String']['output']>;
- id: Scalars['String']['output'];
- logo?: Maybe<Scalars['String']['output']>;
+ displayName?: Maybe<Scalars['String']>;
+ id: Scalars['String'];
+ logo?: Maybe<Scalars['String']>;
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<WorkspaceInvitation>;
getApprovedAccessDomains: Array<ApprovedAccessDomain>;
- getAvailablePackages: Scalars['JSON']['output'];
+ getAvailablePackages: Scalars['JSON'];
getConfigVariablesGrouped: ConfigVariablesOutput;
getConnectedImapSmtpCaldavAccount: ConnectedImapSmtpCaldavAccount;
getDatabaseConfigVariable: ConfigVariable;
@@ -1773,7 +1765,7 @@ export type Query = {
getQueueMetrics: QueueMetricsData;
getRoles: Array<Role>;
getSSOIdentityProviders: Array<FindAvailableSsoidpOutput>;
- getServerlessFunctionSourceCode?: Maybe<Scalars['JSON']['output']>;
+ getServerlessFunctionSourceCode?: Maybe<Scalars['JSON']>;
getSystemHealthStatus: SystemHealth;
getTimelineCalendarEventsFromCompanyId: TimelineCalendarEventsWithTotal;
getTimelineCalendarEventsFromPersonId: TimelineCalendarEventsWithTotal;
@@ -1791,23 +1783,23 @@ export type Query = {
export type QueryBillingPortalSessionArgs = {
- returnUrlPath?: InputMaybe<Scalars['String']['input']>;
+ returnUrlPath?: InputMaybe<Scalars['String']>;
};
export type QueryCheckUserExistsArgs = {
- captchaToken?: InputMaybe<Scalars['String']['input']>;
- email: Scalars['String']['input'];
+ captchaToken?: InputMaybe<Scalars['String']>;
+ 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<Scalars['String']['input']>;
+ origin?: InputMaybe<Scalars['String']>;
};
export type QueryGetQueueMetricsArgs = {
- queueName: Scalars['String']['input'];
+ queueName: Scalars['String'];
timeRange?: InputMaybe<QueueMetricsTimeRange>;
};
@@ -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<Scalars['String']['input']>;
- excludedObjectNameSingulars?: InputMaybe<Array<Scalars['String']['input']>>;
+ after?: InputMaybe<Scalars['String']>;
+ excludedObjectNameSingulars?: InputMaybe<Array<Scalars['String']>>;
filter?: InputMaybe<ObjectRecordFilterInput>;
- includedObjectNameSingulars?: InputMaybe<Array<Scalars['String']['input']>>;
- limit: Scalars['Int']['input'];
- searchInput: Scalars['String']['input'];
+ includedObjectNameSingulars?: InputMaybe<Array<Scalars['String']>>;
+ limit: Scalars['Int'];
+ searchInput: Scalars['String'];
};
export type QueryValidatePasswordResetTokenArgs = {
- passwordResetToken: Scalars['String']['input'];
+ passwordResetToken: Scalars['String'];
};
export type QueueMetricsData = {
__typename?: 'QueueMetricsData';
data: Array<QueueMetricsSeries>;
details?: Maybe<WorkerQueueMetrics>;
- 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<QueueMetricsDataPoint>;
- 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<Scalars['JSON']['output']>;
- foreignDataWrapperType: Scalars['String']['output'];
- id: Scalars['ID']['output'];
- label: Scalars['String']['output'];
- schema?: Maybe<Scalars['String']['output']>;
- updatedAt: Scalars['DateTime']['output'];
+ createdAt: Scalars['DateTime'];
+ foreignDataWrapperId: Scalars['ID'];
+ foreignDataWrapperOptions?: Maybe<Scalars['JSON']>;
+ foreignDataWrapperType: Scalars['String'];
+ id: Scalars['ID'];
+ label: Scalars['String'];
+ schema?: Maybe<Scalars['String']>;
+ updatedAt: Scalars['DateTime'];
userMappingOptions?: Maybe<UserMappingOptionsUser>;
};
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<Scalars['UUID']['output']>;
- name: Scalars['String']['output'];
- schema?: Maybe<Scalars['String']['output']>;
+ id?: Maybe<Scalars['UUID']>;
+ name: Scalars['String'];
+ schema?: Maybe<Scalars['String']>;
schemaPendingUpdates?: Maybe<Array<DistantTableUpdate>>;
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<Scalars['String']['output']>;
- icon?: Maybe<Scalars['String']['output']>;
- 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<Scalars['String']>;
+ icon?: Maybe<Scalars['String']>;
+ id: Scalars['String'];
+ isEditable: Scalars['Boolean'];
+ label: Scalars['String'];
objectPermissions?: Maybe<Array<ObjectPermission>>;
settingPermissions?: Maybe<Array<SettingPermission>>;
workspaceMembers: Array<WorkspaceMember>;
@@ -2057,27 +2049,27 @@ export type Role = {
export type RunWorkflowVersionInput = {
/** Execution result in JSON format */
- payload?: InputMaybe<Scalars['JSON']['input']>;
+ payload?: InputMaybe<Scalars['JSON']>;
/** Workflow run ID */
- workflowRunId?: InputMaybe<Scalars['String']['input']>;
+ workflowRunId?: InputMaybe<Scalars['String']>;
/** 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<Scalars['String']['output']>;
- label: Scalars['String']['output'];
- objectNameSingular: Scalars['String']['output'];
- recordId: Scalars['String']['output'];
- tsRank: Scalars['Float']['output'];
- tsRankCD: Scalars['Float']['output'];
+ imageUrl?: Maybe<Scalars['String']>;
+ 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<Scalars['String']['output']>;
- hasNextPage: Scalars['Boolean']['output'];
+ endCursor?: Maybe<Scalars['String']>;
+ hasNextPage: Scalars['Boolean'];
};
export type SendInvitationsOutput = {
__typename?: 'SendInvitationsOutput';
- errors: Array<Scalars['String']['output']>;
+ errors: Array<Scalars['String']>;
result: Array<WorkspaceInvitation>;
/** Boolean that confirms query was dispatched */
- success: Scalars['Boolean']['output'];
+ success: Scalars['Boolean'];
};
export type Sentry = {
__typename?: 'Sentry';
- dsn?: Maybe<Scalars['String']['output']>;
- environment?: Maybe<Scalars['String']['output']>;
- release?: Maybe<Scalars['String']['output']>;
+ dsn?: Maybe<Scalars['String']>;
+ environment?: Maybe<Scalars['String']>;
+ release?: Maybe<Scalars['String']>;
};
export type ServerlessFunction = {
__typename?: 'ServerlessFunction';
- createdAt: Scalars['DateTime']['output'];
- description?: Maybe<Scalars['String']['output']>;
- id: Scalars['UUID']['output'];
- latestVersion?: Maybe<Scalars['String']['output']>;
- latestVersionInputSchema?: Maybe<Scalars['JSON']['output']>;
- name: Scalars['String']['output'];
- publishedVersions: Array<Scalars['String']['output']>;
- runtime: Scalars['String']['output'];
- timeoutSeconds: Scalars['Float']['output'];
- updatedAt: Scalars['DateTime']['output'];
+ createdAt: Scalars['DateTime'];
+ description?: Maybe<Scalars['String']>;
+ id: Scalars['UUID'];
+ latestVersion?: Maybe<Scalars['String']>;
+ latestVersionInputSchema?: Maybe<Scalars['JSON']>;
+ name: Scalars['String'];
+ publishedVersions: Array<Scalars['String']>;
+ runtime: Scalars['String'];
+ timeoutSeconds: Scalars['Float'];
+ updatedAt: Scalars['DateTime'];
};
export type ServerlessFunctionExecutionResult = {
__typename?: 'ServerlessFunctionExecutionResult';
/** Execution result in JSON format */
- data?: Maybe<Scalars['JSON']['output']>;
+ data?: Maybe<Scalars['JSON']>;
/** Execution duration in milliseconds */
- duration: Scalars['Float']['output'];
+ duration: Scalars['Float'];
/** Execution error in JSON format */
- error?: Maybe<Scalars['JSON']['output']>;
+ error?: Maybe<Scalars['JSON']>;
/** 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<Scalars['String']['input']>;
- id: Scalars['String']['input'];
- issuer: Scalars['String']['input'];
- name: Scalars['String']['input'];
- ssoURL: Scalars['String']['input'];
+ certificate: Scalars['String'];
+ fingerprint?: InputMaybe<Scalars['String']>;
+ 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<Scalars['String']['output']>;
- icon?: Maybe<Scalars['String']['output']>;
- label?: Maybe<Scalars['String']['output']>;
- translations?: Maybe<Scalars['JSON']['output']>;
+ description?: Maybe<Scalars['String']>;
+ icon?: Maybe<Scalars['String']>;
+ label?: Maybe<Scalars['String']>;
+ translations?: Maybe<Scalars['JSON']>;
};
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<Scalars['String']['output']>;
+ supportFrontChatId?: Maybe<Scalars['String']>;
};
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<TimelineCalendarEventParticipant>;
- 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<Scalars['UUID']['output']>;
- workspaceMemberId?: Maybe<Scalars['UUID']['output']>;
+ avatarUrl: Scalars['String'];
+ displayName: Scalars['String'];
+ firstName: Scalars['String'];
+ handle: Scalars['String'];
+ lastName: Scalars['String'];
+ personId?: Maybe<Scalars['UUID']>;
+ workspaceMemberId?: Maybe<Scalars['UUID']>;
};
export type TimelineCalendarEventsWithTotal = {
__typename?: 'TimelineCalendarEventsWithTotal';
timelineCalendarEvents: Array<TimelineCalendarEvent>;
- 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<TimelineThreadParticipant>;
- 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<Scalars['UUID']['output']>;
- workspaceMemberId?: Maybe<Scalars['UUID']['output']>;
+ avatarUrl: Scalars['String'];
+ displayName: Scalars['String'];
+ firstName: Scalars['String'];
+ handle: Scalars['String'];
+ lastName: Scalars['String'];
+ personId?: Maybe<Scalars['UUID']>;
+ workspaceMemberId?: Maybe<Scalars['UUID']>;
};
export type TimelineThreadsWithTotal = {
__typename?: 'TimelineThreadsWithTotal';
timelineThreads: Array<TimelineThread>;
- totalNumberOfThreads: Scalars['Int']['output'];
+ totalNumberOfThreads: Scalars['Int'];
};
export type TransientToken = {
@@ -2364,184 +2356,184 @@ export type TransientToken = {
};
export type UuidFilter = {
- eq?: InputMaybe<Scalars['UUID']['input']>;
- gt?: InputMaybe<Scalars['UUID']['input']>;
- gte?: InputMaybe<Scalars['UUID']['input']>;
- in?: InputMaybe<Array<Scalars['UUID']['input']>>;
+ eq?: InputMaybe<Scalars['UUID']>;
+ gt?: InputMaybe<Scalars['UUID']>;
+ gte?: InputMaybe<Scalars['UUID']>;
+ in?: InputMaybe<Array<Scalars['UUID']>>;
is?: InputMaybe<FilterIs>;
- lt?: InputMaybe<Scalars['UUID']['input']>;
- lte?: InputMaybe<Scalars['UUID']['input']>;
- neq?: InputMaybe<Scalars['UUID']['input']>;
+ lt?: InputMaybe<Scalars['UUID']>;
+ lte?: InputMaybe<Scalars['UUID']>;
+ neq?: InputMaybe<Scalars['UUID']>;
};
export type UuidFilterComparison = {
- eq?: InputMaybe<Scalars['UUID']['input']>;
- gt?: InputMaybe<Scalars['UUID']['input']>;
- gte?: InputMaybe<Scalars['UUID']['input']>;
- iLike?: InputMaybe<Scalars['UUID']['input']>;
- in?: InputMaybe<Array<Scalars['UUID']['input']>>;
- is?: InputMaybe<Scalars['Boolean']['input']>;
- isNot?: InputMaybe<Scalars['Boolean']['input']>;
- like?: InputMaybe<Scalars['UUID']['input']>;
- lt?: InputMaybe<Scalars['UUID']['input']>;
- lte?: InputMaybe<Scalars['UUID']['input']>;
- neq?: InputMaybe<Scalars['UUID']['input']>;
- notILike?: InputMaybe<Scalars['UUID']['input']>;
- notIn?: InputMaybe<Array<Scalars['UUID']['input']>>;
- notLike?: InputMaybe<Scalars['UUID']['input']>;
+ eq?: InputMaybe<Scalars['UUID']>;
+ gt?: InputMaybe<Scalars['UUID']>;
+ gte?: InputMaybe<Scalars['UUID']>;
+ iLike?: InputMaybe<Scalars['UUID']>;
+ in?: InputMaybe<Array<Scalars['UUID']>>;
+ is?: InputMaybe<Scalars['Boolean']>;
+ isNot?: InputMaybe<Scalars['Boolean']>;
+ like?: InputMaybe<Scalars['UUID']>;
+ lt?: InputMaybe<Scalars['UUID']>;
+ lte?: InputMaybe<Scalars['UUID']>;
+ neq?: InputMaybe<Scalars['UUID']>;
+ notILike?: InputMaybe<Scalars['UUID']>;
+ notIn?: InputMaybe<Array<Scalars['UUID']>>;
+ notLike?: InputMaybe<Scalars['UUID']>;
};
export type UpdateAgentInput = {
- description?: InputMaybe<Scalars['String']['input']>;
- id: Scalars['UUID']['input'];
- modelId: Scalars['String']['input'];
- name: Scalars['String']['input'];
- prompt: Scalars['String']['input'];
- responseFormat?: InputMaybe<Scalars['JSON']['input']>;
+ description?: InputMaybe<Scalars['String']>;
+ id: Scalars['UUID'];
+ modelId: Scalars['String'];
+ name: Scalars['String'];
+ prompt: Scalars['String'];
+ responseFormat?: InputMaybe<Scalars['JSON']>;
};
export type UpdateFieldInput = {
- defaultValue?: InputMaybe<Scalars['JSON']['input']>;
- description?: InputMaybe<Scalars['String']['input']>;
- icon?: InputMaybe<Scalars['String']['input']>;
- isActive?: InputMaybe<Scalars['Boolean']['input']>;
- isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']['input']>;
- isNullable?: InputMaybe<Scalars['Boolean']['input']>;
- isSystem?: InputMaybe<Scalars['Boolean']['input']>;
- isUnique?: InputMaybe<Scalars['Boolean']['input']>;
- label?: InputMaybe<Scalars['String']['input']>;
- name?: InputMaybe<Scalars['String']['input']>;
- options?: InputMaybe<Scalars['JSON']['input']>;
- settings?: InputMaybe<Scalars['JSON']['input']>;
+ defaultValue?: InputMaybe<Scalars['JSON']>;
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ isActive?: InputMaybe<Scalars['Boolean']>;
+ isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']>;
+ isNullable?: InputMaybe<Scalars['Boolean']>;
+ isSystem?: InputMaybe<Scalars['Boolean']>;
+ isUnique?: InputMaybe<Scalars['Boolean']>;
+ label?: InputMaybe<Scalars['String']>;
+ name?: InputMaybe<Scalars['String']>;
+ options?: InputMaybe<Scalars['JSON']>;
+ settings?: InputMaybe<Scalars['JSON']>;
};
export type UpdateLabPublicFeatureFlagInput = {
- publicFeatureFlag: Scalars['String']['input'];
- value: Scalars['Boolean']['input'];
+ publicFeatureFlag: Scalars['String'];
+ value: Scalars['Boolean'];
};
export type UpdateObjectPayload = {
- description?: InputMaybe<Scalars['String']['input']>;
- icon?: InputMaybe<Scalars['String']['input']>;
- imageIdentifierFieldMetadataId?: InputMaybe<Scalars['String']['input']>;
- isActive?: InputMaybe<Scalars['Boolean']['input']>;
- isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']['input']>;
- labelIdentifierFieldMetadataId?: InputMaybe<Scalars['String']['input']>;
- labelPlural?: InputMaybe<Scalars['String']['input']>;
- labelSingular?: InputMaybe<Scalars['String']['input']>;
- namePlural?: InputMaybe<Scalars['String']['input']>;
- nameSingular?: InputMaybe<Scalars['String']['input']>;
- shortcut?: InputMaybe<Scalars['String']['input']>;
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ imageIdentifierFieldMetadataId?: InputMaybe<Scalars['String']>;
+ isActive?: InputMaybe<Scalars['Boolean']>;
+ isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']>;
+ labelIdentifierFieldMetadataId?: InputMaybe<Scalars['String']>;
+ labelPlural?: InputMaybe<Scalars['String']>;
+ labelSingular?: InputMaybe<Scalars['String']>;
+ namePlural?: InputMaybe<Scalars['String']>;
+ nameSingular?: InputMaybe<Scalars['String']>;
+ shortcut?: InputMaybe<Scalars['String']>;
};
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<Scalars['JSON']['input']>;
- id: Scalars['String']['input'];
- label?: InputMaybe<Scalars['String']['input']>;
- schema?: InputMaybe<Scalars['String']['input']>;
+ foreignDataWrapperOptions?: InputMaybe<Scalars['JSON']>;
+ id: Scalars['String'];
+ label?: InputMaybe<Scalars['String']>;
+ schema?: InputMaybe<Scalars['String']>;
userMappingOptions?: InputMaybe<UserMappingOptionsUpdateInput>;
};
export type UpdateRoleInput = {
/** The id of the role to update */
- id: Scalars['UUID']['input'];
+ id: Scalars['UUID'];
update: UpdateRolePayload;
};
export type UpdateRolePayload = {
- canDestroyAllObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canReadAllObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canSoftDeleteAllObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canUpdateAllObjectRecords?: InputMaybe<Scalars['Boolean']['input']>;
- canUpdateAllSettings?: InputMaybe<Scalars['Boolean']['input']>;
- description?: InputMaybe<Scalars['String']['input']>;
- icon?: InputMaybe<Scalars['String']['input']>;
- label?: InputMaybe<Scalars['String']['input']>;
+ canDestroyAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canReadAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canSoftDeleteAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canUpdateAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canUpdateAllSettings?: InputMaybe<Scalars['Boolean']>;
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ label?: InputMaybe<Scalars['String']>;
};
export type UpdateServerlessFunctionInput = {
- code: Scalars['JSON']['input'];
- description?: InputMaybe<Scalars['String']['input']>;
+ code: Scalars['JSON'];
+ description?: InputMaybe<Scalars['String']>;
/** Id of the serverless function to execute */
- id: Scalars['UUID']['input'];
- name: Scalars['String']['input'];
- timeoutSeconds?: InputMaybe<Scalars['Float']['input']>;
+ id: Scalars['UUID'];
+ name: Scalars['String'];
+ timeoutSeconds?: InputMaybe<Scalars['Float']>;
};
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<Scalars['Boolean']['input']>;
- customDomain?: InputMaybe<Scalars['String']['input']>;
- defaultRoleId?: InputMaybe<Scalars['String']['input']>;
- displayName?: InputMaybe<Scalars['String']['input']>;
- inviteHash?: InputMaybe<Scalars['String']['input']>;
- isGoogleAuthEnabled?: InputMaybe<Scalars['Boolean']['input']>;
- isMicrosoftAuthEnabled?: InputMaybe<Scalars['Boolean']['input']>;
- isPasswordAuthEnabled?: InputMaybe<Scalars['Boolean']['input']>;
- isPublicInviteLinkEnabled?: InputMaybe<Scalars['Boolean']['input']>;
- logo?: InputMaybe<Scalars['String']['input']>;
- subdomain?: InputMaybe<Scalars['String']['input']>;
+ allowImpersonation?: InputMaybe<Scalars['Boolean']>;
+ customDomain?: InputMaybe<Scalars['String']>;
+ defaultRoleId?: InputMaybe<Scalars['String']>;
+ displayName?: InputMaybe<Scalars['String']>;
+ inviteHash?: InputMaybe<Scalars['String']>;
+ isGoogleAuthEnabled?: InputMaybe<Scalars['Boolean']>;
+ isMicrosoftAuthEnabled?: InputMaybe<Scalars['Boolean']>;
+ isPasswordAuthEnabled?: InputMaybe<Scalars['Boolean']>;
+ isPublicInviteLinkEnabled?: InputMaybe<Scalars['Boolean']>;
+ logo?: InputMaybe<Scalars['String']>;
+ subdomain?: InputMaybe<Scalars['String']>;
};
export type UpsertObjectPermissionsInput = {
objectPermissions: Array<ObjectPermissionInput>;
- roleId: Scalars['String']['input'];
+ roleId: Scalars['String'];
};
export type UpsertSettingPermissionsInput = {
- roleId: Scalars['String']['input'];
+ roleId: Scalars['String'];
settingPermissionKeys: Array<SettingPermissionType>;
};
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<UserWorkspace>;
currentWorkspace?: Maybe<Workspace>;
- defaultAvatarUrl?: Maybe<Scalars['String']['output']>;
- deletedAt?: Maybe<Scalars['DateTime']['output']>;
+ defaultAvatarUrl?: Maybe<Scalars['String']>;
+ deletedAt?: Maybe<Scalars['DateTime']>;
deletedWorkspaceMembers?: Maybe<Array<DeletedWorkspaceMember>>;
- disabled?: Maybe<Scalars['Boolean']['output']>;
- 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<Scalars['Boolean']>;
+ email: Scalars['String'];
+ firstName: Scalars['String'];
+ id: Scalars['UUID'];
+ isEmailVerified: Scalars['Boolean'];
+ lastName: Scalars['String'];
+ locale: Scalars['String'];
onboardingStatus?: Maybe<OnboardingStatus>;
- passwordHash?: Maybe<Scalars['String']['output']>;
- supportUserHash?: Maybe<Scalars['String']['output']>;
- updatedAt: Scalars['DateTime']['output'];
- userVars?: Maybe<Scalars['JSONObject']['output']>;
+ passwordHash?: Maybe<Scalars['String']>;
+ supportUserHash?: Maybe<Scalars['String']>;
+ updatedAt: Scalars['DateTime'];
+ userVars?: Maybe<Scalars['JSONObject']>;
workspaceMember?: Maybe<WorkspaceMember>;
workspaceMembers?: Maybe<Array<WorkspaceMember>>;
workspaces: Array<UserWorkspace>;
@@ -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<Scalars['String']['output']>;
- id: Scalars['String']['output'];
- lastName?: Maybe<Scalars['String']['output']>;
+ email: Scalars['String'];
+ firstName?: Maybe<Scalars['String']>;
+ id: Scalars['String'];
+ lastName?: Maybe<Scalars['String']>;
};
export type UserLookup = {
@@ -2570,113 +2562,113 @@ export type UserLookup = {
};
export type UserMappingOptions = {
- password?: InputMaybe<Scalars['String']['input']>;
- user?: InputMaybe<Scalars['String']['input']>;
+ password?: InputMaybe<Scalars['String']>;
+ user?: InputMaybe<Scalars['String']>;
};
export type UserMappingOptionsUpdateInput = {
- password?: InputMaybe<Scalars['String']['input']>;
- user?: InputMaybe<Scalars['String']['input']>;
+ password?: InputMaybe<Scalars['String']>;
+ user?: InputMaybe<Scalars['String']>;
};
export type UserMappingOptionsUser = {
__typename?: 'UserMappingOptionsUser';
- user?: Maybe<Scalars['String']['output']>;
+ user?: Maybe<Scalars['String']>;
};
export type UserWorkspace = {
__typename?: 'UserWorkspace';
- createdAt: Scalars['DateTime']['output'];
- deletedAt?: Maybe<Scalars['DateTime']['output']>;
- id: Scalars['UUID']['output'];
+ createdAt: Scalars['DateTime'];
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ id: Scalars['UUID'];
objectPermissions?: Maybe<Array<ObjectPermission>>;
/** @deprecated Use objectPermissions instead */
objectRecordsPermissions?: Maybe<Array<PermissionsOnAllObjectRecords>>;
settingsPermissions?: Maybe<Array<SettingPermissionType>>;
- updatedAt: Scalars['DateTime']['output'];
+ updatedAt: Scalars['DateTime'];
user: User;
- userId: Scalars['String']['output'];
+ userId: Scalars['String'];
workspace?: Maybe<Workspace>;
- 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<Scalars['String']['output']>;
- latestVersion: Scalars['String']['output'];
+ currentVersion?: Maybe<Scalars['String']>;
+ latestVersion: Scalars['String'];
};
export type WorkerQueueMetrics = {
__typename?: 'WorkerQueueMetrics';
- active: Scalars['Float']['output'];
- completed: Scalars['Float']['output'];
- completedData?: Maybe<Array<Scalars['Float']['output']>>;
- delayed: Scalars['Float']['output'];
- failed: Scalars['Float']['output'];
- failedData?: Maybe<Array<Scalars['Float']['output']>>;
- failureRate: Scalars['Float']['output'];
- waiting: Scalars['Float']['output'];
+ active: Scalars['Float'];
+ completed: Scalars['Float'];
+ completedData?: Maybe<Array<Scalars['Float']>>;
+ delayed: Scalars['Float'];
+ failed: Scalars['Float'];
+ failedData?: Maybe<Array<Scalars['Float']>>;
+ failureRate: Scalars['Float'];
+ waiting: Scalars['Float'];
};
export type WorkflowAction = {
__typename?: 'WorkflowAction';
- id: Scalars['UUID']['output'];
- name: Scalars['String']['output'];
- nextStepIds?: Maybe<Array<Scalars['UUID']['output']>>;
- settings: Scalars['JSON']['output'];
- type: Scalars['String']['output'];
- valid: Scalars['Boolean']['output'];
+ id: Scalars['UUID'];
+ name: Scalars['String'];
+ nextStepIds?: Maybe<Array<Scalars['UUID']>>;
+ 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<BillingSubscription>;
- createdAt: Scalars['DateTime']['output'];
+ createdAt: Scalars['DateTime'];
currentBillingSubscription?: Maybe<BillingSubscription>;
- customDomain?: Maybe<Scalars['String']['output']>;
- databaseSchema: Scalars['String']['output'];
- databaseUrl: Scalars['String']['output'];
+ customDomain?: Maybe<Scalars['String']>;
+ databaseSchema: Scalars['String'];
+ databaseUrl: Scalars['String'];
defaultRole?: Maybe<Role>;
- deletedAt?: Maybe<Scalars['DateTime']['output']>;
- displayName?: Maybe<Scalars['String']['output']>;
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ displayName?: Maybe<Scalars['String']>;
featureFlags?: Maybe<Array<FeatureFlagDto>>;
- hasValidEnterpriseKey: Scalars['Boolean']['output'];
- id: Scalars['UUID']['output'];
- inviteHash?: Maybe<Scalars['String']['output']>;
- isCustomDomainEnabled: Scalars['Boolean']['output'];
- isGoogleAuthEnabled: Scalars['Boolean']['output'];
- isMicrosoftAuthEnabled: Scalars['Boolean']['output'];
- isPasswordAuthEnabled: Scalars['Boolean']['output'];
- isPublicInviteLinkEnabled: Scalars['Boolean']['output'];
- logo?: Maybe<Scalars['String']['output']>;
- metadataVersion: Scalars['Float']['output'];
- subdomain: Scalars['String']['output'];
- updatedAt: Scalars['DateTime']['output'];
- version?: Maybe<Scalars['String']['output']>;
- workspaceMembersCount?: Maybe<Scalars['Float']['output']>;
+ hasValidEnterpriseKey: Scalars['Boolean'];
+ id: Scalars['UUID'];
+ inviteHash?: Maybe<Scalars['String']>;
+ isCustomDomainEnabled: Scalars['Boolean'];
+ isGoogleAuthEnabled: Scalars['Boolean'];
+ isMicrosoftAuthEnabled: Scalars['Boolean'];
+ isPasswordAuthEnabled: Scalars['Boolean'];
+ isPublicInviteLinkEnabled: Scalars['Boolean'];
+ logo?: Maybe<Scalars['String']>;
+ metadataVersion: Scalars['Float'];
+ subdomain: Scalars['String'];
+ updatedAt: Scalars['DateTime'];
+ version?: Maybe<Scalars['String']>;
+ workspaceMembersCount?: Maybe<Scalars['Float']>;
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<FeatureFlag>;
- id: Scalars['String']['output'];
- logo?: Maybe<Scalars['String']['output']>;
- name: Scalars['String']['output'];
- totalUsers: Scalars['Float']['output'];
+ id: Scalars['String'];
+ logo?: Maybe<Scalars['String']>;
+ name: Scalars['String'];
+ totalUsers: Scalars['Float'];
users: Array<UserInfo>;
};
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<Scalars['String']['output']>;
- colorScheme: Scalars['String']['output'];
+ avatarUrl?: Maybe<Scalars['String']>;
+ colorScheme: Scalars['String'];
dateFormat?: Maybe<WorkspaceMemberDateFormatEnum>;
- id: Scalars['UUID']['output'];
- locale?: Maybe<Scalars['String']['output']>;
+ id: Scalars['UUID'];
+ locale?: Maybe<Scalars['String']>;
name: FullName;
roles?: Maybe<Array<Role>>;
timeFormat?: Maybe<WorkspaceMemberTimeFormatEnum>;
- timeZone?: Maybe<Scalars['String']['output']>;
- userEmail: Scalars['String']['output'];
- userWorkspaceId?: Maybe<Scalars['String']['output']>;
+ timeZone?: Maybe<Scalars['String']>;
+ userEmail: Scalars['String'];
+ userWorkspaceId?: Maybe<Scalars['String']>;
};
/** 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<Scalars['String']['output']>;
- id: Scalars['String']['output'];
+ displayName?: Maybe<Scalars['String']>;
+ id: Scalars['String'];
};
export type WorkspaceUrls = {
__typename?: 'WorkspaceUrls';
- customUrl?: Maybe<Scalars['String']['output']>;
- subdomainUrl: Scalars['String']['output'];
+ customUrl?: Maybe<Scalars['String']>;
+ 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<Scalars['String']>;
+ name?: InputMaybe<Scalars['String']>;
+ properties?: InputMaybe<Scalars['JSON']>;
+}>;
+
+
+export type TrackAnalyticsMutation = { __typename?: 'Mutation', trackAnalytics: { __typename?: 'Analytics', success: boolean } };
+
+export type UploadFileMutationVariables = Exact<{
+ file: Scalars['Upload'];
+ fileFolder?: InputMaybe<FileFolder>;
+}>;
+
+
+export type UploadFileMutation = { __typename?: 'Mutation', uploadFile: { __typename?: 'SignedFileDTO', path: string, token: string } };
+
+export type UploadImageMutationVariables = Exact<{
+ file: Scalars['Upload'];
+ fileFolder?: InputMaybe<FileFolder>;
+}>;
+
+
+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<Scalars['String']>;
+ 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<Scalars['String']>;
+ 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<Scalars['String']>;
+}>;
+
+
+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<Scalars['String']>;
+}>;
+
+
+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<Scalars['String']>;
+ workspacePersonalInviteToken?: InputMaybe<Scalars['String']>;
+ captchaToken?: InputMaybe<Scalars['String']>;
+ workspaceId?: InputMaybe<Scalars['String']>;
+ locale?: InputMaybe<Scalars['String']>;
+ verifyEmailNextPath?: InputMaybe<Scalars['String']>;
+}>;
+
+
+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<Scalars['String']>;
+}>;
+
+
+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<Scalars['String']>;
+ 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<Scalars['String']>;
+}>;
+
+
+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<DistantTableUpdate> | 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<Array<string>> | 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<Array<string>> | 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 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<Scalars['String']>;
+}>;
+
+
+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<QueueMetricsTimeRange>;
+}>;
+
+
+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 ServerlessFunctionFieldsFragment = { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, timeoutSeconds: number, latestVersion?: string | null, latestVersionInputSchema?: any | null, publishedVersions: Array<string>, createdAt: any, updatedAt: any };
+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<string>, 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<string>, 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<string>, 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<string>, 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<string>, 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<string>, 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<string>, 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<string>, 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<string>, 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<string>, 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<string>, 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<string>, 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<string>, 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<RemoteServerFieldsFragment, unknown>;
-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<RemoteTableFieldsFragment, unknown>;
-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<ServerlessFunctionFieldsFragment, unknown>;
-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<CreateServerMutation, CreateServerMutationVariables>;
-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<DeleteServerMutation, DeleteServerMutationVariables>;
-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<SyncRemoteTableMutation, SyncRemoteTableMutationVariables>;
-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<SyncRemoteTableSchemaChangesMutation, SyncRemoteTableSchemaChangesMutationVariables>;
-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<UnsyncRemoteTableMutation, UnsyncRemoteTableMutationVariables>;
-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<UpdateServerMutation, UpdateServerMutationVariables>;
-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<GetManyDatabaseConnectionsQuery, GetManyDatabaseConnectionsQueryVariables>;
-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<GetManyRemoteTablesQuery, GetManyRemoteTablesQueryVariables>;
-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<GetOneDatabaseConnectionQuery, GetOneDatabaseConnectionQueryVariables>;
-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<CreateOneObjectMetadataItemMutation, CreateOneObjectMetadataItemMutationVariables>;
-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<CreateOneFieldMetadataItemMutation, CreateOneFieldMetadataItemMutationVariables>;
-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<UpdateOneFieldMetadataItemMutation, UpdateOneFieldMetadataItemMutationVariables>;
-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<UpdateOneObjectMetadataItemMutation, UpdateOneObjectMetadataItemMutationVariables>;
-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<DeleteOneObjectMetadataItemMutation, DeleteOneObjectMetadataItemMutationVariables>;
-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<DeleteOneFieldMetadataItemMutation, DeleteOneFieldMetadataItemMutationVariables>;
-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<ObjectMetadataItemsQuery, ObjectMetadataItemsQueryVariables>;
-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<CreateOneServerlessFunctionItemMutation, CreateOneServerlessFunctionItemMutationVariables>;
-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<DeleteOneServerlessFunctionMutation, DeleteOneServerlessFunctionMutationVariables>;
-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<ExecuteOneServerlessFunctionMutation, ExecuteOneServerlessFunctionMutationVariables>;
-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<PublishOneServerlessFunctionMutation, PublishOneServerlessFunctionMutationVariables>;
-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<UpdateOneServerlessFunctionMutation, UpdateOneServerlessFunctionMutationVariables>;
-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<FindManyAvailablePackagesQuery, FindManyAvailablePackagesQueryVariables>;
-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<GetManyServerlessFunctionsQuery, GetManyServerlessFunctionsQueryVariables>;
-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<GetOneServerlessFunctionQuery, GetOneServerlessFunctionQueryVariables>;
-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<FindOneServerlessFunctionSourceCodeQuery, FindOneServerlessFunctionSourceCodeQueryVariables>;
\ 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<SettingPermissionType> | null, objectRecordsPermissions?: Array<PermissionsOnAllObjectRecords> | 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<SettingPermissionType> | null, objectRecordsPermissions?: Array<PermissionsOnAllObjectRecords> | 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<any> | 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<any> | 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<any> | 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<any> | 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<string>, result: Array<{ __typename?: 'WorkspaceInvitation', id: any, email: string, expiresAt: string }> } };
+
+export type SendInvitationsMutationVariables = Exact<{
+ emails: Array<Scalars['String']> | Scalars['String'];
+}>;
+
+
+export type SendInvitationsMutation = { __typename?: 'Mutation', sendInvitations: { __typename?: 'SendInvitationsOutput', success: boolean, errors: Array<string>, 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<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>;
+
+/**
+ * __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<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>(TrackAnalyticsDocument, options);
+ }
+export type TrackAnalyticsMutationHookResult = ReturnType<typeof useTrackAnalyticsMutation>;
+export type TrackAnalyticsMutationResult = Apollo.MutationResult<TrackAnalyticsMutation>;
+export type TrackAnalyticsMutationOptions = Apollo.BaseMutationOptions<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>;
+export const UploadFileDocument = gql`
+ mutation uploadFile($file: Upload!, $fileFolder: FileFolder) {
+ uploadFile(file: $file, fileFolder: $fileFolder) {
+ path
+ token
+ }
+}
+ `;
+export type UploadFileMutationFn = Apollo.MutationFunction<UploadFileMutation, UploadFileMutationVariables>;
+
+/**
+ * __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<UploadFileMutation, UploadFileMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UploadFileMutation, UploadFileMutationVariables>(UploadFileDocument, options);
+ }
+export type UploadFileMutationHookResult = ReturnType<typeof useUploadFileMutation>;
+export type UploadFileMutationResult = Apollo.MutationResult<UploadFileMutation>;
+export type UploadFileMutationOptions = Apollo.BaseMutationOptions<UploadFileMutation, UploadFileMutationVariables>;
+export const UploadImageDocument = gql`
+ mutation uploadImage($file: Upload!, $fileFolder: FileFolder) {
+ uploadImage(file: $file, fileFolder: $fileFolder) {
+ path
+ token
+ }
+}
+ `;
+export type UploadImageMutationFn = Apollo.MutationFunction<UploadImageMutation, UploadImageMutationVariables>;
+
+/**
+ * __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<UploadImageMutation, UploadImageMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UploadImageMutation, UploadImageMutationVariables>(UploadImageDocument, options);
+ }
+export type UploadImageMutationHookResult = ReturnType<typeof useUploadImageMutation>;
+export type UploadImageMutationResult = Apollo.MutationResult<UploadImageMutation>;
+export type UploadImageMutationOptions = Apollo.BaseMutationOptions<UploadImageMutation, UploadImageMutationVariables>;
+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<AuthorizeAppMutation, AuthorizeAppMutationVariables>;
+
+/**
+ * __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<AuthorizeAppMutation, AuthorizeAppMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<AuthorizeAppMutation, AuthorizeAppMutationVariables>(AuthorizeAppDocument, options);
+ }
+export type AuthorizeAppMutationHookResult = ReturnType<typeof useAuthorizeAppMutation>;
+export type AuthorizeAppMutationResult = Apollo.MutationResult<AuthorizeAppMutation>;
+export type AuthorizeAppMutationOptions = Apollo.BaseMutationOptions<AuthorizeAppMutation, AuthorizeAppMutationVariables>;
+export const EmailPasswordResetLinkDocument = gql`
+ mutation EmailPasswordResetLink($email: String!, $workspaceId: String!) {
+ emailPasswordResetLink(email: $email, workspaceId: $workspaceId) {
+ success
+ }
+}
+ `;
+export type EmailPasswordResetLinkMutationFn = Apollo.MutationFunction<EmailPasswordResetLinkMutation, EmailPasswordResetLinkMutationVariables>;
+
+/**
+ * __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<EmailPasswordResetLinkMutation, EmailPasswordResetLinkMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<EmailPasswordResetLinkMutation, EmailPasswordResetLinkMutationVariables>(EmailPasswordResetLinkDocument, options);
+ }
+export type EmailPasswordResetLinkMutationHookResult = ReturnType<typeof useEmailPasswordResetLinkMutation>;
+export type EmailPasswordResetLinkMutationResult = Apollo.MutationResult<EmailPasswordResetLinkMutation>;
+export type EmailPasswordResetLinkMutationOptions = Apollo.BaseMutationOptions<EmailPasswordResetLinkMutation, EmailPasswordResetLinkMutationVariables>;
+export const GenerateApiKeyTokenDocument = gql`
+ mutation GenerateApiKeyToken($apiKeyId: String!, $expiresAt: String!) {
+ generateApiKeyToken(apiKeyId: $apiKeyId, expiresAt: $expiresAt) {
+ token
+ }
+}
+ `;
+export type GenerateApiKeyTokenMutationFn = Apollo.MutationFunction<GenerateApiKeyTokenMutation, GenerateApiKeyTokenMutationVariables>;
+
+/**
+ * __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<GenerateApiKeyTokenMutation, GenerateApiKeyTokenMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<GenerateApiKeyTokenMutation, GenerateApiKeyTokenMutationVariables>(GenerateApiKeyTokenDocument, options);
+ }
+export type GenerateApiKeyTokenMutationHookResult = ReturnType<typeof useGenerateApiKeyTokenMutation>;
+export type GenerateApiKeyTokenMutationResult = Apollo.MutationResult<GenerateApiKeyTokenMutation>;
+export type GenerateApiKeyTokenMutationOptions = Apollo.BaseMutationOptions<GenerateApiKeyTokenMutation, GenerateApiKeyTokenMutationVariables>;
+export const GenerateTransientTokenDocument = gql`
+ mutation generateTransientToken {
+ generateTransientToken {
+ transientToken {
+ token
+ }
+ }
+}
+ `;
+export type GenerateTransientTokenMutationFn = Apollo.MutationFunction<GenerateTransientTokenMutation, GenerateTransientTokenMutationVariables>;
+
+/**
+ * __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<GenerateTransientTokenMutation, GenerateTransientTokenMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<GenerateTransientTokenMutation, GenerateTransientTokenMutationVariables>(GenerateTransientTokenDocument, options);
+ }
+export type GenerateTransientTokenMutationHookResult = ReturnType<typeof useGenerateTransientTokenMutation>;
+export type GenerateTransientTokenMutationResult = Apollo.MutationResult<GenerateTransientTokenMutation>;
+export type GenerateTransientTokenMutationOptions = Apollo.BaseMutationOptions<GenerateTransientTokenMutation, GenerateTransientTokenMutationVariables>;
+export const GetAuthTokensFromLoginTokenDocument = gql`
+ mutation GetAuthTokensFromLoginToken($loginToken: String!, $origin: String!) {
+ getAuthTokensFromLoginToken(loginToken: $loginToken, origin: $origin) {
+ tokens {
+ ...AuthTokensFragment
+ }
+ }
+}
+ ${AuthTokensFragmentFragmentDoc}`;
+export type GetAuthTokensFromLoginTokenMutationFn = Apollo.MutationFunction<GetAuthTokensFromLoginTokenMutation, GetAuthTokensFromLoginTokenMutationVariables>;
+
+/**
+ * __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<GetAuthTokensFromLoginTokenMutation, GetAuthTokensFromLoginTokenMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<GetAuthTokensFromLoginTokenMutation, GetAuthTokensFromLoginTokenMutationVariables>(GetAuthTokensFromLoginTokenDocument, options);
+ }
+export type GetAuthTokensFromLoginTokenMutationHookResult = ReturnType<typeof useGetAuthTokensFromLoginTokenMutation>;
+export type GetAuthTokensFromLoginTokenMutationResult = Apollo.MutationResult<GetAuthTokensFromLoginTokenMutation>;
+export type GetAuthTokensFromLoginTokenMutationOptions = Apollo.BaseMutationOptions<GetAuthTokensFromLoginTokenMutation, GetAuthTokensFromLoginTokenMutationVariables>;
+export const GetAuthorizationUrlForSsoDocument = gql`
+ mutation GetAuthorizationUrlForSSO($input: GetAuthorizationUrlForSSOInput!) {
+ getAuthorizationUrlForSSO(input: $input) {
+ id
+ type
+ authorizationURL
+ }
+}
+ `;
+export type GetAuthorizationUrlForSsoMutationFn = Apollo.MutationFunction<GetAuthorizationUrlForSsoMutation, GetAuthorizationUrlForSsoMutationVariables>;
+
+/**
+ * __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<GetAuthorizationUrlForSsoMutation, GetAuthorizationUrlForSsoMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<GetAuthorizationUrlForSsoMutation, GetAuthorizationUrlForSsoMutationVariables>(GetAuthorizationUrlForSsoDocument, options);
+ }
+export type GetAuthorizationUrlForSsoMutationHookResult = ReturnType<typeof useGetAuthorizationUrlForSsoMutation>;
+export type GetAuthorizationUrlForSsoMutationResult = Apollo.MutationResult<GetAuthorizationUrlForSsoMutation>;
+export type GetAuthorizationUrlForSsoMutationOptions = Apollo.BaseMutationOptions<GetAuthorizationUrlForSsoMutation, GetAuthorizationUrlForSsoMutationVariables>;
+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<GetLoginTokenFromCredentialsMutation, GetLoginTokenFromCredentialsMutationVariables>;
+
+/**
+ * __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<GetLoginTokenFromCredentialsMutation, GetLoginTokenFromCredentialsMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<GetLoginTokenFromCredentialsMutation, GetLoginTokenFromCredentialsMutationVariables>(GetLoginTokenFromCredentialsDocument, options);
+ }
+export type GetLoginTokenFromCredentialsMutationHookResult = ReturnType<typeof useGetLoginTokenFromCredentialsMutation>;
+export type GetLoginTokenFromCredentialsMutationResult = Apollo.MutationResult<GetLoginTokenFromCredentialsMutation>;
+export type GetLoginTokenFromCredentialsMutationOptions = Apollo.BaseMutationOptions<GetLoginTokenFromCredentialsMutation, GetLoginTokenFromCredentialsMutationVariables>;
+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<GetLoginTokenFromEmailVerificationTokenMutation, GetLoginTokenFromEmailVerificationTokenMutationVariables>;
+
+/**
+ * __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<GetLoginTokenFromEmailVerificationTokenMutation, GetLoginTokenFromEmailVerificationTokenMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<GetLoginTokenFromEmailVerificationTokenMutation, GetLoginTokenFromEmailVerificationTokenMutationVariables>(GetLoginTokenFromEmailVerificationTokenDocument, options);
+ }
+export type GetLoginTokenFromEmailVerificationTokenMutationHookResult = ReturnType<typeof useGetLoginTokenFromEmailVerificationTokenMutation>;
+export type GetLoginTokenFromEmailVerificationTokenMutationResult = Apollo.MutationResult<GetLoginTokenFromEmailVerificationTokenMutation>;
+export type GetLoginTokenFromEmailVerificationTokenMutationOptions = Apollo.BaseMutationOptions<GetLoginTokenFromEmailVerificationTokenMutation, GetLoginTokenFromEmailVerificationTokenMutationVariables>;
+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<ImpersonateMutation, ImpersonateMutationVariables>;
+
+/**
+ * __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<ImpersonateMutation, ImpersonateMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<ImpersonateMutation, ImpersonateMutationVariables>(ImpersonateDocument, options);
+ }
+export type ImpersonateMutationHookResult = ReturnType<typeof useImpersonateMutation>;
+export type ImpersonateMutationResult = Apollo.MutationResult<ImpersonateMutation>;
+export type ImpersonateMutationOptions = Apollo.BaseMutationOptions<ImpersonateMutation, ImpersonateMutationVariables>;
+export const RenewTokenDocument = gql`
+ mutation RenewToken($appToken: String!) {
+ renewToken(appToken: $appToken) {
+ tokens {
+ ...AuthTokensFragment
+ }
+ }
+}
+ ${AuthTokensFragmentFragmentDoc}`;
+export type RenewTokenMutationFn = Apollo.MutationFunction<RenewTokenMutation, RenewTokenMutationVariables>;
+
+/**
+ * __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<RenewTokenMutation, RenewTokenMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<RenewTokenMutation, RenewTokenMutationVariables>(RenewTokenDocument, options);
+ }
+export type RenewTokenMutationHookResult = ReturnType<typeof useRenewTokenMutation>;
+export type RenewTokenMutationResult = Apollo.MutationResult<RenewTokenMutation>;
+export type RenewTokenMutationOptions = Apollo.BaseMutationOptions<RenewTokenMutation, RenewTokenMutationVariables>;
+export const ResendEmailVerificationTokenDocument = gql`
+ mutation ResendEmailVerificationToken($email: String!, $origin: String!) {
+ resendEmailVerificationToken(email: $email, origin: $origin) {
+ success
+ }
+}
+ `;
+export type ResendEmailVerificationTokenMutationFn = Apollo.MutationFunction<ResendEmailVerificationTokenMutation, ResendEmailVerificationTokenMutationVariables>;
+
+/**
+ * __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<ResendEmailVerificationTokenMutation, ResendEmailVerificationTokenMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<ResendEmailVerificationTokenMutation, ResendEmailVerificationTokenMutationVariables>(ResendEmailVerificationTokenDocument, options);
+ }
+export type ResendEmailVerificationTokenMutationHookResult = ReturnType<typeof useResendEmailVerificationTokenMutation>;
+export type ResendEmailVerificationTokenMutationResult = Apollo.MutationResult<ResendEmailVerificationTokenMutation>;
+export type ResendEmailVerificationTokenMutationOptions = Apollo.BaseMutationOptions<ResendEmailVerificationTokenMutation, ResendEmailVerificationTokenMutationVariables>;
+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<SignInMutation, SignInMutationVariables>;
+
+/**
+ * __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<SignInMutation, SignInMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SignInMutation, SignInMutationVariables>(SignInDocument, options);
+ }
+export type SignInMutationHookResult = ReturnType<typeof useSignInMutation>;
+export type SignInMutationResult = Apollo.MutationResult<SignInMutation>;
+export type SignInMutationOptions = Apollo.BaseMutationOptions<SignInMutation, SignInMutationVariables>;
+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<SignUpMutation, SignUpMutationVariables>;
+
+/**
+ * __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<SignUpMutation, SignUpMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SignUpMutation, SignUpMutationVariables>(SignUpDocument, options);
+ }
+export type SignUpMutationHookResult = ReturnType<typeof useSignUpMutation>;
+export type SignUpMutationResult = Apollo.MutationResult<SignUpMutation>;
+export type SignUpMutationOptions = Apollo.BaseMutationOptions<SignUpMutation, SignUpMutationVariables>;
+export const SignUpInNewWorkspaceDocument = gql`
+ mutation SignUpInNewWorkspace {
+ signUpInNewWorkspace {
+ loginToken {
+ ...AuthTokenFragment
+ }
+ workspace {
+ id
+ workspaceUrls {
+ ...WorkspaceUrlsFragment
+ }
+ }
+ }
+}
+ ${AuthTokenFragmentFragmentDoc}
+${WorkspaceUrlsFragmentFragmentDoc}`;
+export type SignUpInNewWorkspaceMutationFn = Apollo.MutationFunction<SignUpInNewWorkspaceMutation, SignUpInNewWorkspaceMutationVariables>;
+
+/**
+ * __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<SignUpInNewWorkspaceMutation, SignUpInNewWorkspaceMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SignUpInNewWorkspaceMutation, SignUpInNewWorkspaceMutationVariables>(SignUpInNewWorkspaceDocument, options);
+ }
+export type SignUpInNewWorkspaceMutationHookResult = ReturnType<typeof useSignUpInNewWorkspaceMutation>;
+export type SignUpInNewWorkspaceMutationResult = Apollo.MutationResult<SignUpInNewWorkspaceMutation>;
+export type SignUpInNewWorkspaceMutationOptions = Apollo.BaseMutationOptions<SignUpInNewWorkspaceMutation, SignUpInNewWorkspaceMutationVariables>;
+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<SignUpInWorkspaceMutation, SignUpInWorkspaceMutationVariables>;
+
+/**
+ * __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<SignUpInWorkspaceMutation, SignUpInWorkspaceMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SignUpInWorkspaceMutation, SignUpInWorkspaceMutationVariables>(SignUpInWorkspaceDocument, options);
+ }
+export type SignUpInWorkspaceMutationHookResult = ReturnType<typeof useSignUpInWorkspaceMutation>;
+export type SignUpInWorkspaceMutationResult = Apollo.MutationResult<SignUpInWorkspaceMutation>;
+export type SignUpInWorkspaceMutationOptions = Apollo.BaseMutationOptions<SignUpInWorkspaceMutation, SignUpInWorkspaceMutationVariables>;
+export const UpdatePasswordViaResetTokenDocument = gql`
+ mutation UpdatePasswordViaResetToken($token: String!, $newPassword: String!) {
+ updatePasswordViaResetToken(
+ passwordResetToken: $token
+ newPassword: $newPassword
+ ) {
+ success
+ }
+}
+ `;
+export type UpdatePasswordViaResetTokenMutationFn = Apollo.MutationFunction<UpdatePasswordViaResetTokenMutation, UpdatePasswordViaResetTokenMutationVariables>;
+
+/**
+ * __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<UpdatePasswordViaResetTokenMutation, UpdatePasswordViaResetTokenMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdatePasswordViaResetTokenMutation, UpdatePasswordViaResetTokenMutationVariables>(UpdatePasswordViaResetTokenDocument, options);
+ }
+export type UpdatePasswordViaResetTokenMutationHookResult = ReturnType<typeof useUpdatePasswordViaResetTokenMutation>;
+export type UpdatePasswordViaResetTokenMutationResult = Apollo.MutationResult<UpdatePasswordViaResetTokenMutation>;
+export type UpdatePasswordViaResetTokenMutationOptions = Apollo.BaseMutationOptions<UpdatePasswordViaResetTokenMutation, UpdatePasswordViaResetTokenMutationVariables>;
+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<CheckUserExistsQuery, CheckUserExistsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<CheckUserExistsQuery, CheckUserExistsQueryVariables>(CheckUserExistsDocument, options);
+ }
+export function useCheckUserExistsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CheckUserExistsQuery, CheckUserExistsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<CheckUserExistsQuery, CheckUserExistsQueryVariables>(CheckUserExistsDocument, options);
+ }
+export type CheckUserExistsQueryHookResult = ReturnType<typeof useCheckUserExistsQuery>;
+export type CheckUserExistsLazyQueryHookResult = ReturnType<typeof useCheckUserExistsLazyQuery>;
+export type CheckUserExistsQueryResult = Apollo.QueryResult<CheckUserExistsQuery, CheckUserExistsQueryVariables>;
+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<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>(GetPublicWorkspaceDataByDomainDocument, options);
+ }
+export function useGetPublicWorkspaceDataByDomainLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>(GetPublicWorkspaceDataByDomainDocument, options);
+ }
+export type GetPublicWorkspaceDataByDomainQueryHookResult = ReturnType<typeof useGetPublicWorkspaceDataByDomainQuery>;
+export type GetPublicWorkspaceDataByDomainLazyQueryHookResult = ReturnType<typeof useGetPublicWorkspaceDataByDomainLazyQuery>;
+export type GetPublicWorkspaceDataByDomainQueryResult = Apollo.QueryResult<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>;
+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<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>(ValidatePasswordResetTokenDocument, options);
+ }
+export function useValidatePasswordResetTokenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>(ValidatePasswordResetTokenDocument, options);
+ }
+export type ValidatePasswordResetTokenQueryHookResult = ReturnType<typeof useValidatePasswordResetTokenQuery>;
+export type ValidatePasswordResetTokenLazyQueryHookResult = ReturnType<typeof useValidatePasswordResetTokenLazyQuery>;
+export type ValidatePasswordResetTokenQueryResult = Apollo.QueryResult<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>;
+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<CheckoutSessionMutation, CheckoutSessionMutationVariables>;
+
+/**
+ * __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<CheckoutSessionMutation, CheckoutSessionMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CheckoutSessionMutation, CheckoutSessionMutationVariables>(CheckoutSessionDocument, options);
+ }
+export type CheckoutSessionMutationHookResult = ReturnType<typeof useCheckoutSessionMutation>;
+export type CheckoutSessionMutationResult = Apollo.MutationResult<CheckoutSessionMutation>;
+export type CheckoutSessionMutationOptions = Apollo.BaseMutationOptions<CheckoutSessionMutation, CheckoutSessionMutationVariables>;
+export const EndSubscriptionTrialPeriodDocument = gql`
+ mutation EndSubscriptionTrialPeriod {
+ endSubscriptionTrialPeriod {
+ status
+ hasPaymentMethod
+ }
+}
+ `;
+export type EndSubscriptionTrialPeriodMutationFn = Apollo.MutationFunction<EndSubscriptionTrialPeriodMutation, EndSubscriptionTrialPeriodMutationVariables>;
+
+/**
+ * __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<EndSubscriptionTrialPeriodMutation, EndSubscriptionTrialPeriodMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<EndSubscriptionTrialPeriodMutation, EndSubscriptionTrialPeriodMutationVariables>(EndSubscriptionTrialPeriodDocument, options);
+ }
+export type EndSubscriptionTrialPeriodMutationHookResult = ReturnType<typeof useEndSubscriptionTrialPeriodMutation>;
+export type EndSubscriptionTrialPeriodMutationResult = Apollo.MutationResult<EndSubscriptionTrialPeriodMutation>;
+export type EndSubscriptionTrialPeriodMutationOptions = Apollo.BaseMutationOptions<EndSubscriptionTrialPeriodMutation, EndSubscriptionTrialPeriodMutationVariables>;
+export const SwitchSubscriptionToEnterprisePlanDocument = gql`
+ mutation SwitchSubscriptionToEnterprisePlan {
+ switchToEnterprisePlan {
+ success
+ }
+}
+ `;
+export type SwitchSubscriptionToEnterprisePlanMutationFn = Apollo.MutationFunction<SwitchSubscriptionToEnterprisePlanMutation, SwitchSubscriptionToEnterprisePlanMutationVariables>;
+
+/**
+ * __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<SwitchSubscriptionToEnterprisePlanMutation, SwitchSubscriptionToEnterprisePlanMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SwitchSubscriptionToEnterprisePlanMutation, SwitchSubscriptionToEnterprisePlanMutationVariables>(SwitchSubscriptionToEnterprisePlanDocument, options);
+ }
+export type SwitchSubscriptionToEnterprisePlanMutationHookResult = ReturnType<typeof useSwitchSubscriptionToEnterprisePlanMutation>;
+export type SwitchSubscriptionToEnterprisePlanMutationResult = Apollo.MutationResult<SwitchSubscriptionToEnterprisePlanMutation>;
+export type SwitchSubscriptionToEnterprisePlanMutationOptions = Apollo.BaseMutationOptions<SwitchSubscriptionToEnterprisePlanMutation, SwitchSubscriptionToEnterprisePlanMutationVariables>;
+export const SwitchSubscriptionToYearlyIntervalDocument = gql`
+ mutation SwitchSubscriptionToYearlyInterval {
+ switchToYearlyInterval {
+ success
+ }
+}
+ `;
+export type SwitchSubscriptionToYearlyIntervalMutationFn = Apollo.MutationFunction<SwitchSubscriptionToYearlyIntervalMutation, SwitchSubscriptionToYearlyIntervalMutationVariables>;
+
+/**
+ * __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<SwitchSubscriptionToYearlyIntervalMutation, SwitchSubscriptionToYearlyIntervalMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SwitchSubscriptionToYearlyIntervalMutation, SwitchSubscriptionToYearlyIntervalMutationVariables>(SwitchSubscriptionToYearlyIntervalDocument, options);
+ }
+export type SwitchSubscriptionToYearlyIntervalMutationHookResult = ReturnType<typeof useSwitchSubscriptionToYearlyIntervalMutation>;
+export type SwitchSubscriptionToYearlyIntervalMutationResult = Apollo.MutationResult<SwitchSubscriptionToYearlyIntervalMutation>;
+export type SwitchSubscriptionToYearlyIntervalMutationOptions = Apollo.BaseMutationOptions<SwitchSubscriptionToYearlyIntervalMutation, SwitchSubscriptionToYearlyIntervalMutationVariables>;
+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<BillingBaseProductPricesQuery, BillingBaseProductPricesQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<BillingBaseProductPricesQuery, BillingBaseProductPricesQueryVariables>(BillingBaseProductPricesDocument, options);
+ }
+export function useBillingBaseProductPricesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BillingBaseProductPricesQuery, BillingBaseProductPricesQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<BillingBaseProductPricesQuery, BillingBaseProductPricesQueryVariables>(BillingBaseProductPricesDocument, options);
+ }
+export type BillingBaseProductPricesQueryHookResult = ReturnType<typeof useBillingBaseProductPricesQuery>;
+export type BillingBaseProductPricesLazyQueryHookResult = ReturnType<typeof useBillingBaseProductPricesLazyQuery>;
+export type BillingBaseProductPricesQueryResult = Apollo.QueryResult<BillingBaseProductPricesQuery, BillingBaseProductPricesQueryVariables>;
+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<BillingPortalSessionQuery, BillingPortalSessionQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<BillingPortalSessionQuery, BillingPortalSessionQueryVariables>(BillingPortalSessionDocument, options);
+ }
+export function useBillingPortalSessionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BillingPortalSessionQuery, BillingPortalSessionQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<BillingPortalSessionQuery, BillingPortalSessionQueryVariables>(BillingPortalSessionDocument, options);
+ }
+export type BillingPortalSessionQueryHookResult = ReturnType<typeof useBillingPortalSessionQuery>;
+export type BillingPortalSessionLazyQueryHookResult = ReturnType<typeof useBillingPortalSessionLazyQuery>;
+export type BillingPortalSessionQueryResult = Apollo.QueryResult<BillingPortalSessionQuery, BillingPortalSessionQueryVariables>;
+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<GetMeteredProductsUsageQuery, GetMeteredProductsUsageQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetMeteredProductsUsageQuery, GetMeteredProductsUsageQueryVariables>(GetMeteredProductsUsageDocument, options);
+ }
+export function useGetMeteredProductsUsageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetMeteredProductsUsageQuery, GetMeteredProductsUsageQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetMeteredProductsUsageQuery, GetMeteredProductsUsageQueryVariables>(GetMeteredProductsUsageDocument, options);
+ }
+export type GetMeteredProductsUsageQueryHookResult = ReturnType<typeof useGetMeteredProductsUsageQuery>;
+export type GetMeteredProductsUsageLazyQueryHookResult = ReturnType<typeof useGetMeteredProductsUsageLazyQuery>;
+export type GetMeteredProductsUsageQueryResult = Apollo.QueryResult<GetMeteredProductsUsageQuery, GetMeteredProductsUsageQueryVariables>;
+export const CreateServerDocument = gql`
+ mutation createServer($input: CreateRemoteServerInput!) {
+ createOneRemoteServer(input: $input) {
+ ...RemoteServerFields
+ }
+}
+ ${RemoteServerFieldsFragmentDoc}`;
+export type CreateServerMutationFn = Apollo.MutationFunction<CreateServerMutation, CreateServerMutationVariables>;
+
+/**
+ * __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<CreateServerMutation, CreateServerMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateServerMutation, CreateServerMutationVariables>(CreateServerDocument, options);
+ }
+export type CreateServerMutationHookResult = ReturnType<typeof useCreateServerMutation>;
+export type CreateServerMutationResult = Apollo.MutationResult<CreateServerMutation>;
+export type CreateServerMutationOptions = Apollo.BaseMutationOptions<CreateServerMutation, CreateServerMutationVariables>;
+export const DeleteServerDocument = gql`
+ mutation deleteServer($input: RemoteServerIdInput!) {
+ deleteOneRemoteServer(input: $input) {
+ id
+ }
+}
+ `;
+export type DeleteServerMutationFn = Apollo.MutationFunction<DeleteServerMutation, DeleteServerMutationVariables>;
+
+/**
+ * __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<DeleteServerMutation, DeleteServerMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteServerMutation, DeleteServerMutationVariables>(DeleteServerDocument, options);
+ }
+export type DeleteServerMutationHookResult = ReturnType<typeof useDeleteServerMutation>;
+export type DeleteServerMutationResult = Apollo.MutationResult<DeleteServerMutation>;
+export type DeleteServerMutationOptions = Apollo.BaseMutationOptions<DeleteServerMutation, DeleteServerMutationVariables>;
+export const SyncRemoteTableDocument = gql`
+ mutation syncRemoteTable($input: RemoteTableInput!) {
+ syncRemoteTable(input: $input) {
+ ...RemoteTableFields
+ }
+}
+ ${RemoteTableFieldsFragmentDoc}`;
+export type SyncRemoteTableMutationFn = Apollo.MutationFunction<SyncRemoteTableMutation, SyncRemoteTableMutationVariables>;
+
+/**
+ * __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<SyncRemoteTableMutation, SyncRemoteTableMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SyncRemoteTableMutation, SyncRemoteTableMutationVariables>(SyncRemoteTableDocument, options);
+ }
+export type SyncRemoteTableMutationHookResult = ReturnType<typeof useSyncRemoteTableMutation>;
+export type SyncRemoteTableMutationResult = Apollo.MutationResult<SyncRemoteTableMutation>;
+export type SyncRemoteTableMutationOptions = Apollo.BaseMutationOptions<SyncRemoteTableMutation, SyncRemoteTableMutationVariables>;
+export const SyncRemoteTableSchemaChangesDocument = gql`
+ mutation syncRemoteTableSchemaChanges($input: RemoteTableInput!) {
+ syncRemoteTableSchemaChanges(input: $input) {
+ ...RemoteTableFields
+ }
+}
+ ${RemoteTableFieldsFragmentDoc}`;
+export type SyncRemoteTableSchemaChangesMutationFn = Apollo.MutationFunction<SyncRemoteTableSchemaChangesMutation, SyncRemoteTableSchemaChangesMutationVariables>;
+
+/**
+ * __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<SyncRemoteTableSchemaChangesMutation, SyncRemoteTableSchemaChangesMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SyncRemoteTableSchemaChangesMutation, SyncRemoteTableSchemaChangesMutationVariables>(SyncRemoteTableSchemaChangesDocument, options);
+ }
+export type SyncRemoteTableSchemaChangesMutationHookResult = ReturnType<typeof useSyncRemoteTableSchemaChangesMutation>;
+export type SyncRemoteTableSchemaChangesMutationResult = Apollo.MutationResult<SyncRemoteTableSchemaChangesMutation>;
+export type SyncRemoteTableSchemaChangesMutationOptions = Apollo.BaseMutationOptions<SyncRemoteTableSchemaChangesMutation, SyncRemoteTableSchemaChangesMutationVariables>;
+export const UnsyncRemoteTableDocument = gql`
+ mutation unsyncRemoteTable($input: RemoteTableInput!) {
+ unsyncRemoteTable(input: $input) {
+ ...RemoteTableFields
+ }
+}
+ ${RemoteTableFieldsFragmentDoc}`;
+export type UnsyncRemoteTableMutationFn = Apollo.MutationFunction<UnsyncRemoteTableMutation, UnsyncRemoteTableMutationVariables>;
+
+/**
+ * __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<UnsyncRemoteTableMutation, UnsyncRemoteTableMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UnsyncRemoteTableMutation, UnsyncRemoteTableMutationVariables>(UnsyncRemoteTableDocument, options);
+ }
+export type UnsyncRemoteTableMutationHookResult = ReturnType<typeof useUnsyncRemoteTableMutation>;
+export type UnsyncRemoteTableMutationResult = Apollo.MutationResult<UnsyncRemoteTableMutation>;
+export type UnsyncRemoteTableMutationOptions = Apollo.BaseMutationOptions<UnsyncRemoteTableMutation, UnsyncRemoteTableMutationVariables>;
+export const UpdateServerDocument = gql`
+ mutation updateServer($input: UpdateRemoteServerInput!) {
+ updateOneRemoteServer(input: $input) {
+ ...RemoteServerFields
+ }
+}
+ ${RemoteServerFieldsFragmentDoc}`;
+export type UpdateServerMutationFn = Apollo.MutationFunction<UpdateServerMutation, UpdateServerMutationVariables>;
+
+/**
+ * __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<UpdateServerMutation, UpdateServerMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateServerMutation, UpdateServerMutationVariables>(UpdateServerDocument, options);
+ }
+export type UpdateServerMutationHookResult = ReturnType<typeof useUpdateServerMutation>;
+export type UpdateServerMutationResult = Apollo.MutationResult<UpdateServerMutation>;
+export type UpdateServerMutationOptions = Apollo.BaseMutationOptions<UpdateServerMutation, UpdateServerMutationVariables>;
+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<GetManyDatabaseConnectionsQuery, GetManyDatabaseConnectionsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetManyDatabaseConnectionsQuery, GetManyDatabaseConnectionsQueryVariables>(GetManyDatabaseConnectionsDocument, options);
+ }
+export function useGetManyDatabaseConnectionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetManyDatabaseConnectionsQuery, GetManyDatabaseConnectionsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetManyDatabaseConnectionsQuery, GetManyDatabaseConnectionsQueryVariables>(GetManyDatabaseConnectionsDocument, options);
+ }
+export type GetManyDatabaseConnectionsQueryHookResult = ReturnType<typeof useGetManyDatabaseConnectionsQuery>;
+export type GetManyDatabaseConnectionsLazyQueryHookResult = ReturnType<typeof useGetManyDatabaseConnectionsLazyQuery>;
+export type GetManyDatabaseConnectionsQueryResult = Apollo.QueryResult<GetManyDatabaseConnectionsQuery, GetManyDatabaseConnectionsQueryVariables>;
+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<GetManyRemoteTablesQuery, GetManyRemoteTablesQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetManyRemoteTablesQuery, GetManyRemoteTablesQueryVariables>(GetManyRemoteTablesDocument, options);
+ }
+export function useGetManyRemoteTablesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetManyRemoteTablesQuery, GetManyRemoteTablesQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetManyRemoteTablesQuery, GetManyRemoteTablesQueryVariables>(GetManyRemoteTablesDocument, options);
+ }
+export type GetManyRemoteTablesQueryHookResult = ReturnType<typeof useGetManyRemoteTablesQuery>;
+export type GetManyRemoteTablesLazyQueryHookResult = ReturnType<typeof useGetManyRemoteTablesLazyQuery>;
+export type GetManyRemoteTablesQueryResult = Apollo.QueryResult<GetManyRemoteTablesQuery, GetManyRemoteTablesQueryVariables>;
+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<GetOneDatabaseConnectionQuery, GetOneDatabaseConnectionQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetOneDatabaseConnectionQuery, GetOneDatabaseConnectionQueryVariables>(GetOneDatabaseConnectionDocument, options);
+ }
+export function useGetOneDatabaseConnectionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetOneDatabaseConnectionQuery, GetOneDatabaseConnectionQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetOneDatabaseConnectionQuery, GetOneDatabaseConnectionQueryVariables>(GetOneDatabaseConnectionDocument, options);
+ }
+export type GetOneDatabaseConnectionQueryHookResult = ReturnType<typeof useGetOneDatabaseConnectionQuery>;
+export type GetOneDatabaseConnectionLazyQueryHookResult = ReturnType<typeof useGetOneDatabaseConnectionLazyQuery>;
+export type GetOneDatabaseConnectionQueryResult = Apollo.QueryResult<GetOneDatabaseConnectionQuery, GetOneDatabaseConnectionQueryVariables>;
+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<CreateOneObjectMetadataItemMutation, CreateOneObjectMetadataItemMutationVariables>;
+
+/**
+ * __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<CreateOneObjectMetadataItemMutation, CreateOneObjectMetadataItemMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateOneObjectMetadataItemMutation, CreateOneObjectMetadataItemMutationVariables>(CreateOneObjectMetadataItemDocument, options);
+ }
+export type CreateOneObjectMetadataItemMutationHookResult = ReturnType<typeof useCreateOneObjectMetadataItemMutation>;
+export type CreateOneObjectMetadataItemMutationResult = Apollo.MutationResult<CreateOneObjectMetadataItemMutation>;
+export type CreateOneObjectMetadataItemMutationOptions = Apollo.BaseMutationOptions<CreateOneObjectMetadataItemMutation, CreateOneObjectMetadataItemMutationVariables>;
+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<CreateOneFieldMetadataItemMutation, CreateOneFieldMetadataItemMutationVariables>;
+
+/**
+ * __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<CreateOneFieldMetadataItemMutation, CreateOneFieldMetadataItemMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateOneFieldMetadataItemMutation, CreateOneFieldMetadataItemMutationVariables>(CreateOneFieldMetadataItemDocument, options);
+ }
+export type CreateOneFieldMetadataItemMutationHookResult = ReturnType<typeof useCreateOneFieldMetadataItemMutation>;
+export type CreateOneFieldMetadataItemMutationResult = Apollo.MutationResult<CreateOneFieldMetadataItemMutation>;
+export type CreateOneFieldMetadataItemMutationOptions = Apollo.BaseMutationOptions<CreateOneFieldMetadataItemMutation, CreateOneFieldMetadataItemMutationVariables>;
+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<UpdateOneFieldMetadataItemMutation, UpdateOneFieldMetadataItemMutationVariables>;
+
+/**
+ * __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<UpdateOneFieldMetadataItemMutation, UpdateOneFieldMetadataItemMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateOneFieldMetadataItemMutation, UpdateOneFieldMetadataItemMutationVariables>(UpdateOneFieldMetadataItemDocument, options);
+ }
+export type UpdateOneFieldMetadataItemMutationHookResult = ReturnType<typeof useUpdateOneFieldMetadataItemMutation>;
+export type UpdateOneFieldMetadataItemMutationResult = Apollo.MutationResult<UpdateOneFieldMetadataItemMutation>;
+export type UpdateOneFieldMetadataItemMutationOptions = Apollo.BaseMutationOptions<UpdateOneFieldMetadataItemMutation, UpdateOneFieldMetadataItemMutationVariables>;
+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<UpdateOneObjectMetadataItemMutation, UpdateOneObjectMetadataItemMutationVariables>;
+
+/**
+ * __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<UpdateOneObjectMetadataItemMutation, UpdateOneObjectMetadataItemMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateOneObjectMetadataItemMutation, UpdateOneObjectMetadataItemMutationVariables>(UpdateOneObjectMetadataItemDocument, options);
+ }
+export type UpdateOneObjectMetadataItemMutationHookResult = ReturnType<typeof useUpdateOneObjectMetadataItemMutation>;
+export type UpdateOneObjectMetadataItemMutationResult = Apollo.MutationResult<UpdateOneObjectMetadataItemMutation>;
+export type UpdateOneObjectMetadataItemMutationOptions = Apollo.BaseMutationOptions<UpdateOneObjectMetadataItemMutation, UpdateOneObjectMetadataItemMutationVariables>;
+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<DeleteOneObjectMetadataItemMutation, DeleteOneObjectMetadataItemMutationVariables>;
+
+/**
+ * __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<DeleteOneObjectMetadataItemMutation, DeleteOneObjectMetadataItemMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteOneObjectMetadataItemMutation, DeleteOneObjectMetadataItemMutationVariables>(DeleteOneObjectMetadataItemDocument, options);
+ }
+export type DeleteOneObjectMetadataItemMutationHookResult = ReturnType<typeof useDeleteOneObjectMetadataItemMutation>;
+export type DeleteOneObjectMetadataItemMutationResult = Apollo.MutationResult<DeleteOneObjectMetadataItemMutation>;
+export type DeleteOneObjectMetadataItemMutationOptions = Apollo.BaseMutationOptions<DeleteOneObjectMetadataItemMutation, DeleteOneObjectMetadataItemMutationVariables>;
+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<DeleteOneFieldMetadataItemMutation, DeleteOneFieldMetadataItemMutationVariables>;
+
+/**
+ * __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<DeleteOneFieldMetadataItemMutation, DeleteOneFieldMetadataItemMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteOneFieldMetadataItemMutation, DeleteOneFieldMetadataItemMutationVariables>(DeleteOneFieldMetadataItemDocument, options);
+ }
+export type DeleteOneFieldMetadataItemMutationHookResult = ReturnType<typeof useDeleteOneFieldMetadataItemMutation>;
+export type DeleteOneFieldMetadataItemMutationResult = Apollo.MutationResult<DeleteOneFieldMetadataItemMutation>;
+export type DeleteOneFieldMetadataItemMutationOptions = Apollo.BaseMutationOptions<DeleteOneFieldMetadataItemMutation, DeleteOneFieldMetadataItemMutationVariables>;
+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<ObjectMetadataItemsQuery, ObjectMetadataItemsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<ObjectMetadataItemsQuery, ObjectMetadataItemsQueryVariables>(ObjectMetadataItemsDocument, options);
+ }
+export function useObjectMetadataItemsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ObjectMetadataItemsQuery, ObjectMetadataItemsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<ObjectMetadataItemsQuery, ObjectMetadataItemsQueryVariables>(ObjectMetadataItemsDocument, options);
+ }
+export type ObjectMetadataItemsQueryHookResult = ReturnType<typeof useObjectMetadataItemsQuery>;
+export type ObjectMetadataItemsLazyQueryHookResult = ReturnType<typeof useObjectMetadataItemsLazyQuery>;
+export type ObjectMetadataItemsQueryResult = Apollo.QueryResult<ObjectMetadataItemsQuery, ObjectMetadataItemsQueryVariables>;
+export const SkipBookOnboardingStepDocument = gql`
+ mutation SkipBookOnboardingStep {
+ skipBookOnboardingStep {
+ success
+ }
+}
+ `;
+export type SkipBookOnboardingStepMutationFn = Apollo.MutationFunction<SkipBookOnboardingStepMutation, SkipBookOnboardingStepMutationVariables>;
+
+/**
+ * __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<SkipBookOnboardingStepMutation, SkipBookOnboardingStepMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SkipBookOnboardingStepMutation, SkipBookOnboardingStepMutationVariables>(SkipBookOnboardingStepDocument, options);
+ }
+export type SkipBookOnboardingStepMutationHookResult = ReturnType<typeof useSkipBookOnboardingStepMutation>;
+export type SkipBookOnboardingStepMutationResult = Apollo.MutationResult<SkipBookOnboardingStepMutation>;
+export type SkipBookOnboardingStepMutationOptions = Apollo.BaseMutationOptions<SkipBookOnboardingStepMutation, SkipBookOnboardingStepMutationVariables>;
+export const SkipSyncEmailOnboardingStepDocument = gql`
+ mutation SkipSyncEmailOnboardingStep {
+ skipSyncEmailOnboardingStep {
+ success
+ }
+}
+ `;
+export type SkipSyncEmailOnboardingStepMutationFn = Apollo.MutationFunction<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>;
+
+/**
+ * __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<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>(SkipSyncEmailOnboardingStepDocument, options);
+ }
+export type SkipSyncEmailOnboardingStepMutationHookResult = ReturnType<typeof useSkipSyncEmailOnboardingStepMutation>;
+export type SkipSyncEmailOnboardingStepMutationResult = Apollo.MutationResult<SkipSyncEmailOnboardingStepMutation>;
+export type SkipSyncEmailOnboardingStepMutationOptions = Apollo.BaseMutationOptions<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>;
+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<SaveImapSmtpCaldavMutation, SaveImapSmtpCaldavMutationVariables>;
+
+/**
+ * __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<SaveImapSmtpCaldavMutation, SaveImapSmtpCaldavMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SaveImapSmtpCaldavMutation, SaveImapSmtpCaldavMutationVariables>(SaveImapSmtpCaldavDocument, options);
+ }
+export type SaveImapSmtpCaldavMutationHookResult = ReturnType<typeof useSaveImapSmtpCaldavMutation>;
+export type SaveImapSmtpCaldavMutationResult = Apollo.MutationResult<SaveImapSmtpCaldavMutation>;
+export type SaveImapSmtpCaldavMutationOptions = Apollo.BaseMutationOptions<SaveImapSmtpCaldavMutation, SaveImapSmtpCaldavMutationVariables>;
+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<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>(GetConnectedImapSmtpCaldavAccountDocument, options);
+ }
+export function useGetConnectedImapSmtpCaldavAccountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>(GetConnectedImapSmtpCaldavAccountDocument, options);
+ }
+export type GetConnectedImapSmtpCaldavAccountQueryHookResult = ReturnType<typeof useGetConnectedImapSmtpCaldavAccountQuery>;
+export type GetConnectedImapSmtpCaldavAccountLazyQueryHookResult = ReturnType<typeof useGetConnectedImapSmtpCaldavAccountLazyQuery>;
+export type GetConnectedImapSmtpCaldavAccountQueryResult = Apollo.QueryResult<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>;
+export const CreateDatabaseConfigVariableDocument = gql`
+ mutation CreateDatabaseConfigVariable($key: String!, $value: JSON!) {
+ createDatabaseConfigVariable(key: $key, value: $value)
+}
+ `;
+export type CreateDatabaseConfigVariableMutationFn = Apollo.MutationFunction<CreateDatabaseConfigVariableMutation, CreateDatabaseConfigVariableMutationVariables>;
+
+/**
+ * __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<CreateDatabaseConfigVariableMutation, CreateDatabaseConfigVariableMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateDatabaseConfigVariableMutation, CreateDatabaseConfigVariableMutationVariables>(CreateDatabaseConfigVariableDocument, options);
+ }
+export type CreateDatabaseConfigVariableMutationHookResult = ReturnType<typeof useCreateDatabaseConfigVariableMutation>;
+export type CreateDatabaseConfigVariableMutationResult = Apollo.MutationResult<CreateDatabaseConfigVariableMutation>;
+export type CreateDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions<CreateDatabaseConfigVariableMutation, CreateDatabaseConfigVariableMutationVariables>;
+export const DeleteDatabaseConfigVariableDocument = gql`
+ mutation DeleteDatabaseConfigVariable($key: String!) {
+ deleteDatabaseConfigVariable(key: $key)
+}
+ `;
+export type DeleteDatabaseConfigVariableMutationFn = Apollo.MutationFunction<DeleteDatabaseConfigVariableMutation, DeleteDatabaseConfigVariableMutationVariables>;
+
+/**
+ * __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<DeleteDatabaseConfigVariableMutation, DeleteDatabaseConfigVariableMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteDatabaseConfigVariableMutation, DeleteDatabaseConfigVariableMutationVariables>(DeleteDatabaseConfigVariableDocument, options);
+ }
+export type DeleteDatabaseConfigVariableMutationHookResult = ReturnType<typeof useDeleteDatabaseConfigVariableMutation>;
+export type DeleteDatabaseConfigVariableMutationResult = Apollo.MutationResult<DeleteDatabaseConfigVariableMutation>;
+export type DeleteDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions<DeleteDatabaseConfigVariableMutation, DeleteDatabaseConfigVariableMutationVariables>;
+export const UpdateDatabaseConfigVariableDocument = gql`
+ mutation UpdateDatabaseConfigVariable($key: String!, $value: JSON!) {
+ updateDatabaseConfigVariable(key: $key, value: $value)
+}
+ `;
+export type UpdateDatabaseConfigVariableMutationFn = Apollo.MutationFunction<UpdateDatabaseConfigVariableMutation, UpdateDatabaseConfigVariableMutationVariables>;
+
+/**
+ * __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<UpdateDatabaseConfigVariableMutation, UpdateDatabaseConfigVariableMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateDatabaseConfigVariableMutation, UpdateDatabaseConfigVariableMutationVariables>(UpdateDatabaseConfigVariableDocument, options);
+ }
+export type UpdateDatabaseConfigVariableMutationHookResult = ReturnType<typeof useUpdateDatabaseConfigVariableMutation>;
+export type UpdateDatabaseConfigVariableMutationResult = Apollo.MutationResult<UpdateDatabaseConfigVariableMutation>;
+export type UpdateDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions<UpdateDatabaseConfigVariableMutation, UpdateDatabaseConfigVariableMutationVariables>;
+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<GetConfigVariablesGroupedQuery, GetConfigVariablesGroupedQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetConfigVariablesGroupedQuery, GetConfigVariablesGroupedQueryVariables>(GetConfigVariablesGroupedDocument, options);
+ }
+export function useGetConfigVariablesGroupedLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetConfigVariablesGroupedQuery, GetConfigVariablesGroupedQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetConfigVariablesGroupedQuery, GetConfigVariablesGroupedQueryVariables>(GetConfigVariablesGroupedDocument, options);
+ }
+export type GetConfigVariablesGroupedQueryHookResult = ReturnType<typeof useGetConfigVariablesGroupedQuery>;
+export type GetConfigVariablesGroupedLazyQueryHookResult = ReturnType<typeof useGetConfigVariablesGroupedLazyQuery>;
+export type GetConfigVariablesGroupedQueryResult = Apollo.QueryResult<GetConfigVariablesGroupedQuery, GetConfigVariablesGroupedQueryVariables>;
+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<GetDatabaseConfigVariableQuery, GetDatabaseConfigVariableQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetDatabaseConfigVariableQuery, GetDatabaseConfigVariableQueryVariables>(GetDatabaseConfigVariableDocument, options);
+ }
+export function useGetDatabaseConfigVariableLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetDatabaseConfigVariableQuery, GetDatabaseConfigVariableQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetDatabaseConfigVariableQuery, GetDatabaseConfigVariableQueryVariables>(GetDatabaseConfigVariableDocument, options);
+ }
+export type GetDatabaseConfigVariableQueryHookResult = ReturnType<typeof useGetDatabaseConfigVariableQuery>;
+export type GetDatabaseConfigVariableLazyQueryHookResult = ReturnType<typeof useGetDatabaseConfigVariableLazyQuery>;
+export type GetDatabaseConfigVariableQueryResult = Apollo.QueryResult<GetDatabaseConfigVariableQuery, GetDatabaseConfigVariableQueryVariables>;
+export const UpdateWorkspaceFeatureFlagDocument = gql`
+ mutation UpdateWorkspaceFeatureFlag($workspaceId: String!, $featureFlag: String!, $value: Boolean!) {
+ updateWorkspaceFeatureFlag(
+ workspaceId: $workspaceId
+ featureFlag: $featureFlag
+ value: $value
+ )
+}
+ `;
+export type UpdateWorkspaceFeatureFlagMutationFn = Apollo.MutationFunction<UpdateWorkspaceFeatureFlagMutation, UpdateWorkspaceFeatureFlagMutationVariables>;
+
+/**
+ * __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<UpdateWorkspaceFeatureFlagMutation, UpdateWorkspaceFeatureFlagMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateWorkspaceFeatureFlagMutation, UpdateWorkspaceFeatureFlagMutationVariables>(UpdateWorkspaceFeatureFlagDocument, options);
+ }
+export type UpdateWorkspaceFeatureFlagMutationHookResult = ReturnType<typeof useUpdateWorkspaceFeatureFlagMutation>;
+export type UpdateWorkspaceFeatureFlagMutationResult = Apollo.MutationResult<UpdateWorkspaceFeatureFlagMutation>;
+export type UpdateWorkspaceFeatureFlagMutationOptions = Apollo.BaseMutationOptions<UpdateWorkspaceFeatureFlagMutation, UpdateWorkspaceFeatureFlagMutationVariables>;
+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<UserLookupAdminPanelMutation, UserLookupAdminPanelMutationVariables>;
+
+/**
+ * __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<UserLookupAdminPanelMutation, UserLookupAdminPanelMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UserLookupAdminPanelMutation, UserLookupAdminPanelMutationVariables>(UserLookupAdminPanelDocument, options);
+ }
+export type UserLookupAdminPanelMutationHookResult = ReturnType<typeof useUserLookupAdminPanelMutation>;
+export type UserLookupAdminPanelMutationResult = Apollo.MutationResult<UserLookupAdminPanelMutation>;
+export type UserLookupAdminPanelMutationOptions = Apollo.BaseMutationOptions<UserLookupAdminPanelMutation, UserLookupAdminPanelMutationVariables>;
+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<GetVersionInfoQuery, GetVersionInfoQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetVersionInfoQuery, GetVersionInfoQueryVariables>(GetVersionInfoDocument, options);
+ }
+export function useGetVersionInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetVersionInfoQuery, GetVersionInfoQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetVersionInfoQuery, GetVersionInfoQueryVariables>(GetVersionInfoDocument, options);
+ }
+export type GetVersionInfoQueryHookResult = ReturnType<typeof useGetVersionInfoQuery>;
+export type GetVersionInfoLazyQueryHookResult = ReturnType<typeof useGetVersionInfoLazyQuery>;
+export type GetVersionInfoQueryResult = Apollo.QueryResult<GetVersionInfoQuery, GetVersionInfoQueryVariables>;
+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<GetIndicatorHealthStatusQuery, GetIndicatorHealthStatusQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetIndicatorHealthStatusQuery, GetIndicatorHealthStatusQueryVariables>(GetIndicatorHealthStatusDocument, options);
+ }
+export function useGetIndicatorHealthStatusLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetIndicatorHealthStatusQuery, GetIndicatorHealthStatusQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetIndicatorHealthStatusQuery, GetIndicatorHealthStatusQueryVariables>(GetIndicatorHealthStatusDocument, options);
+ }
+export type GetIndicatorHealthStatusQueryHookResult = ReturnType<typeof useGetIndicatorHealthStatusQuery>;
+export type GetIndicatorHealthStatusLazyQueryHookResult = ReturnType<typeof useGetIndicatorHealthStatusLazyQuery>;
+export type GetIndicatorHealthStatusQueryResult = Apollo.QueryResult<GetIndicatorHealthStatusQuery, GetIndicatorHealthStatusQueryVariables>;
+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<GetQueueMetricsQuery, GetQueueMetricsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetQueueMetricsQuery, GetQueueMetricsQueryVariables>(GetQueueMetricsDocument, options);
+ }
+export function useGetQueueMetricsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetQueueMetricsQuery, GetQueueMetricsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetQueueMetricsQuery, GetQueueMetricsQueryVariables>(GetQueueMetricsDocument, options);
+ }
+export type GetQueueMetricsQueryHookResult = ReturnType<typeof useGetQueueMetricsQuery>;
+export type GetQueueMetricsLazyQueryHookResult = ReturnType<typeof useGetQueueMetricsLazyQuery>;
+export type GetQueueMetricsQueryResult = Apollo.QueryResult<GetQueueMetricsQuery, GetQueueMetricsQueryVariables>;
+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<GetSystemHealthStatusQuery, GetSystemHealthStatusQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetSystemHealthStatusQuery, GetSystemHealthStatusQueryVariables>(GetSystemHealthStatusDocument, options);
+ }
+export function useGetSystemHealthStatusLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetSystemHealthStatusQuery, GetSystemHealthStatusQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetSystemHealthStatusQuery, GetSystemHealthStatusQueryVariables>(GetSystemHealthStatusDocument, options);
+ }
+export type GetSystemHealthStatusQueryHookResult = ReturnType<typeof useGetSystemHealthStatusQuery>;
+export type GetSystemHealthStatusLazyQueryHookResult = ReturnType<typeof useGetSystemHealthStatusLazyQuery>;
+export type GetSystemHealthStatusQueryResult = Apollo.QueryResult<GetSystemHealthStatusQuery, GetSystemHealthStatusQueryVariables>;
+export const UpdateLabPublicFeatureFlagDocument = gql`
+ mutation UpdateLabPublicFeatureFlag($input: UpdateLabPublicFeatureFlagInput!) {
+ updateLabPublicFeatureFlag(input: $input) {
+ key
+ value
+ }
+}
+ `;
+export type UpdateLabPublicFeatureFlagMutationFn = Apollo.MutationFunction<UpdateLabPublicFeatureFlagMutation, UpdateLabPublicFeatureFlagMutationVariables>;
+
+/**
+ * __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<UpdateLabPublicFeatureFlagMutation, UpdateLabPublicFeatureFlagMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateLabPublicFeatureFlagMutation, UpdateLabPublicFeatureFlagMutationVariables>(UpdateLabPublicFeatureFlagDocument, options);
+ }
+export type UpdateLabPublicFeatureFlagMutationHookResult = ReturnType<typeof useUpdateLabPublicFeatureFlagMutation>;
+export type UpdateLabPublicFeatureFlagMutationResult = Apollo.MutationResult<UpdateLabPublicFeatureFlagMutation>;
+export type UpdateLabPublicFeatureFlagMutationOptions = Apollo.BaseMutationOptions<UpdateLabPublicFeatureFlagMutation, UpdateLabPublicFeatureFlagMutationVariables>;
+export const CreateOneRoleDocument = gql`
+ mutation CreateOneRole($createRoleInput: CreateRoleInput!) {
+ createOneRole(createRoleInput: $createRoleInput) {
+ ...RoleFragment
+ }
+}
+ ${RoleFragmentFragmentDoc}`;
+export type CreateOneRoleMutationFn = Apollo.MutationFunction<CreateOneRoleMutation, CreateOneRoleMutationVariables>;
+
+/**
+ * __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<CreateOneRoleMutation, CreateOneRoleMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateOneRoleMutation, CreateOneRoleMutationVariables>(CreateOneRoleDocument, options);
+ }
+export type CreateOneRoleMutationHookResult = ReturnType<typeof useCreateOneRoleMutation>;
+export type CreateOneRoleMutationResult = Apollo.MutationResult<CreateOneRoleMutation>;
+export type CreateOneRoleMutationOptions = Apollo.BaseMutationOptions<CreateOneRoleMutation, CreateOneRoleMutationVariables>;
+export const DeleteOneRoleDocument = gql`
+ mutation DeleteOneRole($roleId: String!) {
+ deleteOneRole(roleId: $roleId)
+}
+ `;
+export type DeleteOneRoleMutationFn = Apollo.MutationFunction<DeleteOneRoleMutation, DeleteOneRoleMutationVariables>;
+
+/**
+ * __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<DeleteOneRoleMutation, DeleteOneRoleMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteOneRoleMutation, DeleteOneRoleMutationVariables>(DeleteOneRoleDocument, options);
+ }
+export type DeleteOneRoleMutationHookResult = ReturnType<typeof useDeleteOneRoleMutation>;
+export type DeleteOneRoleMutationResult = Apollo.MutationResult<DeleteOneRoleMutation>;
+export type DeleteOneRoleMutationOptions = Apollo.BaseMutationOptions<DeleteOneRoleMutation, DeleteOneRoleMutationVariables>;
+export const UpdateOneRoleDocument = gql`
+ mutation UpdateOneRole($updateRoleInput: UpdateRoleInput!) {
+ updateOneRole(updateRoleInput: $updateRoleInput) {
+ ...RoleFragment
+ }
+}
+ ${RoleFragmentFragmentDoc}`;
+export type UpdateOneRoleMutationFn = Apollo.MutationFunction<UpdateOneRoleMutation, UpdateOneRoleMutationVariables>;
+
+/**
+ * __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<UpdateOneRoleMutation, UpdateOneRoleMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateOneRoleMutation, UpdateOneRoleMutationVariables>(UpdateOneRoleDocument, options);
+ }
+export type UpdateOneRoleMutationHookResult = ReturnType<typeof useUpdateOneRoleMutation>;
+export type UpdateOneRoleMutationResult = Apollo.MutationResult<UpdateOneRoleMutation>;
+export type UpdateOneRoleMutationOptions = Apollo.BaseMutationOptions<UpdateOneRoleMutation, UpdateOneRoleMutationVariables>;
+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<UpdateWorkspaceMemberRoleMutation, UpdateWorkspaceMemberRoleMutationVariables>;
+
+/**
+ * __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<UpdateWorkspaceMemberRoleMutation, UpdateWorkspaceMemberRoleMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateWorkspaceMemberRoleMutation, UpdateWorkspaceMemberRoleMutationVariables>(UpdateWorkspaceMemberRoleDocument, options);
+ }
+export type UpdateWorkspaceMemberRoleMutationHookResult = ReturnType<typeof useUpdateWorkspaceMemberRoleMutation>;
+export type UpdateWorkspaceMemberRoleMutationResult = Apollo.MutationResult<UpdateWorkspaceMemberRoleMutation>;
+export type UpdateWorkspaceMemberRoleMutationOptions = Apollo.BaseMutationOptions<UpdateWorkspaceMemberRoleMutation, UpdateWorkspaceMemberRoleMutationVariables>;
+export const UpsertObjectPermissionsDocument = gql`
+ mutation UpsertObjectPermissions($upsertObjectPermissionsInput: UpsertObjectPermissionsInput!) {
+ upsertObjectPermissions(
+ upsertObjectPermissionsInput: $upsertObjectPermissionsInput
+ ) {
+ ...ObjectPermissionFragment
+ }
+}
+ ${ObjectPermissionFragmentFragmentDoc}`;
+export type UpsertObjectPermissionsMutationFn = Apollo.MutationFunction<UpsertObjectPermissionsMutation, UpsertObjectPermissionsMutationVariables>;
+
+/**
+ * __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<UpsertObjectPermissionsMutation, UpsertObjectPermissionsMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpsertObjectPermissionsMutation, UpsertObjectPermissionsMutationVariables>(UpsertObjectPermissionsDocument, options);
+ }
+export type UpsertObjectPermissionsMutationHookResult = ReturnType<typeof useUpsertObjectPermissionsMutation>;
+export type UpsertObjectPermissionsMutationResult = Apollo.MutationResult<UpsertObjectPermissionsMutation>;
+export type UpsertObjectPermissionsMutationOptions = Apollo.BaseMutationOptions<UpsertObjectPermissionsMutation, UpsertObjectPermissionsMutationVariables>;
+export const UpsertSettingPermissionsDocument = gql`
+ mutation UpsertSettingPermissions($upsertSettingPermissionsInput: UpsertSettingPermissionsInput!) {
+ upsertSettingPermissions(
+ upsertSettingPermissionsInput: $upsertSettingPermissionsInput
+ ) {
+ ...SettingPermissionFragment
+ }
+}
+ ${SettingPermissionFragmentFragmentDoc}`;
+export type UpsertSettingPermissionsMutationFn = Apollo.MutationFunction<UpsertSettingPermissionsMutation, UpsertSettingPermissionsMutationVariables>;
+
+/**
+ * __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<UpsertSettingPermissionsMutation, UpsertSettingPermissionsMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpsertSettingPermissionsMutation, UpsertSettingPermissionsMutationVariables>(UpsertSettingPermissionsDocument, options);
+ }
+export type UpsertSettingPermissionsMutationHookResult = ReturnType<typeof useUpsertSettingPermissionsMutation>;
+export type UpsertSettingPermissionsMutationResult = Apollo.MutationResult<UpsertSettingPermissionsMutation>;
+export type UpsertSettingPermissionsMutationOptions = Apollo.BaseMutationOptions<UpsertSettingPermissionsMutation, UpsertSettingPermissionsMutationVariables>;
+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<GetRolesQuery, GetRolesQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetRolesQuery, GetRolesQueryVariables>(GetRolesDocument, options);
+ }
+export function useGetRolesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetRolesQuery, GetRolesQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetRolesQuery, GetRolesQueryVariables>(GetRolesDocument, options);
+ }
+export type GetRolesQueryHookResult = ReturnType<typeof useGetRolesQuery>;
+export type GetRolesLazyQueryHookResult = ReturnType<typeof useGetRolesLazyQuery>;
+export type GetRolesQueryResult = Apollo.QueryResult<GetRolesQuery, GetRolesQueryVariables>;
+export const CreateApprovedAccessDomainDocument = gql`
+ mutation CreateApprovedAccessDomain($input: CreateApprovedAccessDomainInput!) {
+ createApprovedAccessDomain(input: $input) {
+ id
+ domain
+ isValidated
+ createdAt
+ }
+}
+ `;
+export type CreateApprovedAccessDomainMutationFn = Apollo.MutationFunction<CreateApprovedAccessDomainMutation, CreateApprovedAccessDomainMutationVariables>;
+
+/**
+ * __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<CreateApprovedAccessDomainMutation, CreateApprovedAccessDomainMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateApprovedAccessDomainMutation, CreateApprovedAccessDomainMutationVariables>(CreateApprovedAccessDomainDocument, options);
+ }
+export type CreateApprovedAccessDomainMutationHookResult = ReturnType<typeof useCreateApprovedAccessDomainMutation>;
+export type CreateApprovedAccessDomainMutationResult = Apollo.MutationResult<CreateApprovedAccessDomainMutation>;
+export type CreateApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions<CreateApprovedAccessDomainMutation, CreateApprovedAccessDomainMutationVariables>;
+export const CreateOidcIdentityProviderDocument = gql`
+ mutation CreateOIDCIdentityProvider($input: SetupOIDCSsoInput!) {
+ createOIDCIdentityProvider(input: $input) {
+ id
+ type
+ issuer
+ name
+ status
+ }
+}
+ `;
+export type CreateOidcIdentityProviderMutationFn = Apollo.MutationFunction<CreateOidcIdentityProviderMutation, CreateOidcIdentityProviderMutationVariables>;
+
+/**
+ * __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<CreateOidcIdentityProviderMutation, CreateOidcIdentityProviderMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateOidcIdentityProviderMutation, CreateOidcIdentityProviderMutationVariables>(CreateOidcIdentityProviderDocument, options);
+ }
+export type CreateOidcIdentityProviderMutationHookResult = ReturnType<typeof useCreateOidcIdentityProviderMutation>;
+export type CreateOidcIdentityProviderMutationResult = Apollo.MutationResult<CreateOidcIdentityProviderMutation>;
+export type CreateOidcIdentityProviderMutationOptions = Apollo.BaseMutationOptions<CreateOidcIdentityProviderMutation, CreateOidcIdentityProviderMutationVariables>;
+export const CreateSamlIdentityProviderDocument = gql`
+ mutation CreateSAMLIdentityProvider($input: SetupSAMLSsoInput!) {
+ createSAMLIdentityProvider(input: $input) {
+ id
+ type
+ issuer
+ name
+ status
+ }
+}
+ `;
+export type CreateSamlIdentityProviderMutationFn = Apollo.MutationFunction<CreateSamlIdentityProviderMutation, CreateSamlIdentityProviderMutationVariables>;
+
+/**
+ * __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<CreateSamlIdentityProviderMutation, CreateSamlIdentityProviderMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateSamlIdentityProviderMutation, CreateSamlIdentityProviderMutationVariables>(CreateSamlIdentityProviderDocument, options);
+ }
+export type CreateSamlIdentityProviderMutationHookResult = ReturnType<typeof useCreateSamlIdentityProviderMutation>;
+export type CreateSamlIdentityProviderMutationResult = Apollo.MutationResult<CreateSamlIdentityProviderMutation>;
+export type CreateSamlIdentityProviderMutationOptions = Apollo.BaseMutationOptions<CreateSamlIdentityProviderMutation, CreateSamlIdentityProviderMutationVariables>;
+export const DeleteApprovedAccessDomainDocument = gql`
+ mutation DeleteApprovedAccessDomain($input: DeleteApprovedAccessDomainInput!) {
+ deleteApprovedAccessDomain(input: $input)
+}
+ `;
+export type DeleteApprovedAccessDomainMutationFn = Apollo.MutationFunction<DeleteApprovedAccessDomainMutation, DeleteApprovedAccessDomainMutationVariables>;
+
+/**
+ * __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<DeleteApprovedAccessDomainMutation, DeleteApprovedAccessDomainMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteApprovedAccessDomainMutation, DeleteApprovedAccessDomainMutationVariables>(DeleteApprovedAccessDomainDocument, options);
+ }
+export type DeleteApprovedAccessDomainMutationHookResult = ReturnType<typeof useDeleteApprovedAccessDomainMutation>;
+export type DeleteApprovedAccessDomainMutationResult = Apollo.MutationResult<DeleteApprovedAccessDomainMutation>;
+export type DeleteApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions<DeleteApprovedAccessDomainMutation, DeleteApprovedAccessDomainMutationVariables>;
+export const DeleteSsoIdentityProviderDocument = gql`
+ mutation DeleteSSOIdentityProvider($input: DeleteSsoInput!) {
+ deleteSSOIdentityProvider(input: $input) {
+ identityProviderId
+ }
+}
+ `;
+export type DeleteSsoIdentityProviderMutationFn = Apollo.MutationFunction<DeleteSsoIdentityProviderMutation, DeleteSsoIdentityProviderMutationVariables>;
+
+/**
+ * __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<DeleteSsoIdentityProviderMutation, DeleteSsoIdentityProviderMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteSsoIdentityProviderMutation, DeleteSsoIdentityProviderMutationVariables>(DeleteSsoIdentityProviderDocument, options);
+ }
+export type DeleteSsoIdentityProviderMutationHookResult = ReturnType<typeof useDeleteSsoIdentityProviderMutation>;
+export type DeleteSsoIdentityProviderMutationResult = Apollo.MutationResult<DeleteSsoIdentityProviderMutation>;
+export type DeleteSsoIdentityProviderMutationOptions = Apollo.BaseMutationOptions<DeleteSsoIdentityProviderMutation, DeleteSsoIdentityProviderMutationVariables>;
+export const EditSsoIdentityProviderDocument = gql`
+ mutation EditSSOIdentityProvider($input: EditSsoInput!) {
+ editSSOIdentityProvider(input: $input) {
+ id
+ type
+ issuer
+ name
+ status
+ }
+}
+ `;
+export type EditSsoIdentityProviderMutationFn = Apollo.MutationFunction<EditSsoIdentityProviderMutation, EditSsoIdentityProviderMutationVariables>;
+
+/**
+ * __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<EditSsoIdentityProviderMutation, EditSsoIdentityProviderMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<EditSsoIdentityProviderMutation, EditSsoIdentityProviderMutationVariables>(EditSsoIdentityProviderDocument, options);
+ }
+export type EditSsoIdentityProviderMutationHookResult = ReturnType<typeof useEditSsoIdentityProviderMutation>;
+export type EditSsoIdentityProviderMutationResult = Apollo.MutationResult<EditSsoIdentityProviderMutation>;
+export type EditSsoIdentityProviderMutationOptions = Apollo.BaseMutationOptions<EditSsoIdentityProviderMutation, EditSsoIdentityProviderMutationVariables>;
+export const ValidateApprovedAccessDomainDocument = gql`
+ mutation ValidateApprovedAccessDomain($input: ValidateApprovedAccessDomainInput!) {
+ validateApprovedAccessDomain(input: $input) {
+ id
+ isValidated
+ domain
+ createdAt
+ }
+}
+ `;
+export type ValidateApprovedAccessDomainMutationFn = Apollo.MutationFunction<ValidateApprovedAccessDomainMutation, ValidateApprovedAccessDomainMutationVariables>;
+
+/**
+ * __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<ValidateApprovedAccessDomainMutation, ValidateApprovedAccessDomainMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<ValidateApprovedAccessDomainMutation, ValidateApprovedAccessDomainMutationVariables>(ValidateApprovedAccessDomainDocument, options);
+ }
+export type ValidateApprovedAccessDomainMutationHookResult = ReturnType<typeof useValidateApprovedAccessDomainMutation>;
+export type ValidateApprovedAccessDomainMutationResult = Apollo.MutationResult<ValidateApprovedAccessDomainMutation>;
+export type ValidateApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions<ValidateApprovedAccessDomainMutation, ValidateApprovedAccessDomainMutationVariables>;
+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<GetApprovedAccessDomainsQuery, GetApprovedAccessDomainsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetApprovedAccessDomainsQuery, GetApprovedAccessDomainsQueryVariables>(GetApprovedAccessDomainsDocument, options);
+ }
+export function useGetApprovedAccessDomainsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetApprovedAccessDomainsQuery, GetApprovedAccessDomainsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetApprovedAccessDomainsQuery, GetApprovedAccessDomainsQueryVariables>(GetApprovedAccessDomainsDocument, options);
+ }
+export type GetApprovedAccessDomainsQueryHookResult = ReturnType<typeof useGetApprovedAccessDomainsQuery>;
+export type GetApprovedAccessDomainsLazyQueryHookResult = ReturnType<typeof useGetApprovedAccessDomainsLazyQuery>;
+export type GetApprovedAccessDomainsQueryResult = Apollo.QueryResult<GetApprovedAccessDomainsQuery, GetApprovedAccessDomainsQueryVariables>;
+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<GetSsoIdentityProvidersQuery, GetSsoIdentityProvidersQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetSsoIdentityProvidersQuery, GetSsoIdentityProvidersQueryVariables>(GetSsoIdentityProvidersDocument, options);
+ }
+export function useGetSsoIdentityProvidersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetSsoIdentityProvidersQuery, GetSsoIdentityProvidersQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetSsoIdentityProvidersQuery, GetSsoIdentityProvidersQueryVariables>(GetSsoIdentityProvidersDocument, options);
+ }
+export type GetSsoIdentityProvidersQueryHookResult = ReturnType<typeof useGetSsoIdentityProvidersQuery>;
+export type GetSsoIdentityProvidersLazyQueryHookResult = ReturnType<typeof useGetSsoIdentityProvidersLazyQuery>;
+export type GetSsoIdentityProvidersQueryResult = Apollo.QueryResult<GetSsoIdentityProvidersQuery, GetSsoIdentityProvidersQueryVariables>;
+export const CreateOneServerlessFunctionItemDocument = gql`
+ mutation CreateOneServerlessFunctionItem($input: CreateServerlessFunctionInput!) {
+ createOneServerlessFunction(input: $input) {
+ ...ServerlessFunctionFields
+ }
+}
+ ${ServerlessFunctionFieldsFragmentDoc}`;
+export type CreateOneServerlessFunctionItemMutationFn = Apollo.MutationFunction<CreateOneServerlessFunctionItemMutation, CreateOneServerlessFunctionItemMutationVariables>;
+
+/**
+ * __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<CreateOneServerlessFunctionItemMutation, CreateOneServerlessFunctionItemMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateOneServerlessFunctionItemMutation, CreateOneServerlessFunctionItemMutationVariables>(CreateOneServerlessFunctionItemDocument, options);
+ }
+export type CreateOneServerlessFunctionItemMutationHookResult = ReturnType<typeof useCreateOneServerlessFunctionItemMutation>;
+export type CreateOneServerlessFunctionItemMutationResult = Apollo.MutationResult<CreateOneServerlessFunctionItemMutation>;
+export type CreateOneServerlessFunctionItemMutationOptions = Apollo.BaseMutationOptions<CreateOneServerlessFunctionItemMutation, CreateOneServerlessFunctionItemMutationVariables>;
+export const DeleteOneServerlessFunctionDocument = gql`
+ mutation DeleteOneServerlessFunction($input: ServerlessFunctionIdInput!) {
+ deleteOneServerlessFunction(input: $input) {
+ ...ServerlessFunctionFields
+ }
+}
+ ${ServerlessFunctionFieldsFragmentDoc}`;
+export type DeleteOneServerlessFunctionMutationFn = Apollo.MutationFunction<DeleteOneServerlessFunctionMutation, DeleteOneServerlessFunctionMutationVariables>;
+
+/**
+ * __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<DeleteOneServerlessFunctionMutation, DeleteOneServerlessFunctionMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteOneServerlessFunctionMutation, DeleteOneServerlessFunctionMutationVariables>(DeleteOneServerlessFunctionDocument, options);
+ }
+export type DeleteOneServerlessFunctionMutationHookResult = ReturnType<typeof useDeleteOneServerlessFunctionMutation>;
+export type DeleteOneServerlessFunctionMutationResult = Apollo.MutationResult<DeleteOneServerlessFunctionMutation>;
+export type DeleteOneServerlessFunctionMutationOptions = Apollo.BaseMutationOptions<DeleteOneServerlessFunctionMutation, DeleteOneServerlessFunctionMutationVariables>;
+export const ExecuteOneServerlessFunctionDocument = gql`
+ mutation ExecuteOneServerlessFunction($input: ExecuteServerlessFunctionInput!) {
+ executeOneServerlessFunction(input: $input) {
+ data
+ logs
+ duration
+ status
+ error
+ }
+}
+ `;
+export type ExecuteOneServerlessFunctionMutationFn = Apollo.MutationFunction<ExecuteOneServerlessFunctionMutation, ExecuteOneServerlessFunctionMutationVariables>;
+
+/**
+ * __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<ExecuteOneServerlessFunctionMutation, ExecuteOneServerlessFunctionMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<ExecuteOneServerlessFunctionMutation, ExecuteOneServerlessFunctionMutationVariables>(ExecuteOneServerlessFunctionDocument, options);
+ }
+export type ExecuteOneServerlessFunctionMutationHookResult = ReturnType<typeof useExecuteOneServerlessFunctionMutation>;
+export type ExecuteOneServerlessFunctionMutationResult = Apollo.MutationResult<ExecuteOneServerlessFunctionMutation>;
+export type ExecuteOneServerlessFunctionMutationOptions = Apollo.BaseMutationOptions<ExecuteOneServerlessFunctionMutation, ExecuteOneServerlessFunctionMutationVariables>;
+export const PublishOneServerlessFunctionDocument = gql`
+ mutation PublishOneServerlessFunction($input: PublishServerlessFunctionInput!) {
+ publishServerlessFunction(input: $input) {
+ ...ServerlessFunctionFields
+ }
+}
+ ${ServerlessFunctionFieldsFragmentDoc}`;
+export type PublishOneServerlessFunctionMutationFn = Apollo.MutationFunction<PublishOneServerlessFunctionMutation, PublishOneServerlessFunctionMutationVariables>;
+
+/**
+ * __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<PublishOneServerlessFunctionMutation, PublishOneServerlessFunctionMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<PublishOneServerlessFunctionMutation, PublishOneServerlessFunctionMutationVariables>(PublishOneServerlessFunctionDocument, options);
+ }
+export type PublishOneServerlessFunctionMutationHookResult = ReturnType<typeof usePublishOneServerlessFunctionMutation>;
+export type PublishOneServerlessFunctionMutationResult = Apollo.MutationResult<PublishOneServerlessFunctionMutation>;
+export type PublishOneServerlessFunctionMutationOptions = Apollo.BaseMutationOptions<PublishOneServerlessFunctionMutation, PublishOneServerlessFunctionMutationVariables>;
+export const UpdateOneServerlessFunctionDocument = gql`
+ mutation UpdateOneServerlessFunction($input: UpdateServerlessFunctionInput!) {
+ updateOneServerlessFunction(input: $input) {
+ ...ServerlessFunctionFields
+ }
+}
+ ${ServerlessFunctionFieldsFragmentDoc}`;
+export type UpdateOneServerlessFunctionMutationFn = Apollo.MutationFunction<UpdateOneServerlessFunctionMutation, UpdateOneServerlessFunctionMutationVariables>;
+
+/**
+ * __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<UpdateOneServerlessFunctionMutation, UpdateOneServerlessFunctionMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateOneServerlessFunctionMutation, UpdateOneServerlessFunctionMutationVariables>(UpdateOneServerlessFunctionDocument, options);
+ }
+export type UpdateOneServerlessFunctionMutationHookResult = ReturnType<typeof useUpdateOneServerlessFunctionMutation>;
+export type UpdateOneServerlessFunctionMutationResult = Apollo.MutationResult<UpdateOneServerlessFunctionMutation>;
+export type UpdateOneServerlessFunctionMutationOptions = Apollo.BaseMutationOptions<UpdateOneServerlessFunctionMutation, UpdateOneServerlessFunctionMutationVariables>;
+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<FindManyAvailablePackagesQuery, FindManyAvailablePackagesQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<FindManyAvailablePackagesQuery, FindManyAvailablePackagesQueryVariables>(FindManyAvailablePackagesDocument, options);
+ }
+export function useFindManyAvailablePackagesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<FindManyAvailablePackagesQuery, FindManyAvailablePackagesQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<FindManyAvailablePackagesQuery, FindManyAvailablePackagesQueryVariables>(FindManyAvailablePackagesDocument, options);
+ }
+export type FindManyAvailablePackagesQueryHookResult = ReturnType<typeof useFindManyAvailablePackagesQuery>;
+export type FindManyAvailablePackagesLazyQueryHookResult = ReturnType<typeof useFindManyAvailablePackagesLazyQuery>;
+export type FindManyAvailablePackagesQueryResult = Apollo.QueryResult<FindManyAvailablePackagesQuery, FindManyAvailablePackagesQueryVariables>;
+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<GetManyServerlessFunctionsQuery, GetManyServerlessFunctionsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetManyServerlessFunctionsQuery, GetManyServerlessFunctionsQueryVariables>(GetManyServerlessFunctionsDocument, options);
+ }
+export function useGetManyServerlessFunctionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetManyServerlessFunctionsQuery, GetManyServerlessFunctionsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetManyServerlessFunctionsQuery, GetManyServerlessFunctionsQueryVariables>(GetManyServerlessFunctionsDocument, options);
+ }
+export type GetManyServerlessFunctionsQueryHookResult = ReturnType<typeof useGetManyServerlessFunctionsQuery>;
+export type GetManyServerlessFunctionsLazyQueryHookResult = ReturnType<typeof useGetManyServerlessFunctionsLazyQuery>;
+export type GetManyServerlessFunctionsQueryResult = Apollo.QueryResult<GetManyServerlessFunctionsQuery, GetManyServerlessFunctionsQueryVariables>;
+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<GetOneServerlessFunctionQuery, GetOneServerlessFunctionQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetOneServerlessFunctionQuery, GetOneServerlessFunctionQueryVariables>(GetOneServerlessFunctionDocument, options);
+ }
+export function useGetOneServerlessFunctionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetOneServerlessFunctionQuery, GetOneServerlessFunctionQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetOneServerlessFunctionQuery, GetOneServerlessFunctionQueryVariables>(GetOneServerlessFunctionDocument, options);
+ }
+export type GetOneServerlessFunctionQueryHookResult = ReturnType<typeof useGetOneServerlessFunctionQuery>;
+export type GetOneServerlessFunctionLazyQueryHookResult = ReturnType<typeof useGetOneServerlessFunctionLazyQuery>;
+export type GetOneServerlessFunctionQueryResult = Apollo.QueryResult<GetOneServerlessFunctionQuery, GetOneServerlessFunctionQueryVariables>;
+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<FindOneServerlessFunctionSourceCodeQuery, FindOneServerlessFunctionSourceCodeQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<FindOneServerlessFunctionSourceCodeQuery, FindOneServerlessFunctionSourceCodeQueryVariables>(FindOneServerlessFunctionSourceCodeDocument, options);
+ }
+export function useFindOneServerlessFunctionSourceCodeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<FindOneServerlessFunctionSourceCodeQuery, FindOneServerlessFunctionSourceCodeQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<FindOneServerlessFunctionSourceCodeQuery, FindOneServerlessFunctionSourceCodeQueryVariables>(FindOneServerlessFunctionSourceCodeDocument, options);
+ }
+export type FindOneServerlessFunctionSourceCodeQueryHookResult = ReturnType<typeof useFindOneServerlessFunctionSourceCodeQuery>;
+export type FindOneServerlessFunctionSourceCodeLazyQueryHookResult = ReturnType<typeof useFindOneServerlessFunctionSourceCodeLazyQuery>;
+export type FindOneServerlessFunctionSourceCodeQueryResult = Apollo.QueryResult<FindOneServerlessFunctionSourceCodeQuery, FindOneServerlessFunctionSourceCodeQueryVariables>;
+export const DeleteUserAccountDocument = gql`
+ mutation DeleteUserAccount {
+ deleteUser {
+ id
+ }
+}
+ `;
+export type DeleteUserAccountMutationFn = Apollo.MutationFunction<DeleteUserAccountMutation, DeleteUserAccountMutationVariables>;
+
+/**
+ * __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<DeleteUserAccountMutation, DeleteUserAccountMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteUserAccountMutation, DeleteUserAccountMutationVariables>(DeleteUserAccountDocument, options);
+ }
+export type DeleteUserAccountMutationHookResult = ReturnType<typeof useDeleteUserAccountMutation>;
+export type DeleteUserAccountMutationResult = Apollo.MutationResult<DeleteUserAccountMutation>;
+export type DeleteUserAccountMutationOptions = Apollo.BaseMutationOptions<DeleteUserAccountMutation, DeleteUserAccountMutationVariables>;
+export const UploadProfilePictureDocument = gql`
+ mutation UploadProfilePicture($file: Upload!) {
+ uploadProfilePicture(file: $file) {
+ path
+ token
+ }
+}
+ `;
+export type UploadProfilePictureMutationFn = Apollo.MutationFunction<UploadProfilePictureMutation, UploadProfilePictureMutationVariables>;
+
+/**
+ * __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<UploadProfilePictureMutation, UploadProfilePictureMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UploadProfilePictureMutation, UploadProfilePictureMutationVariables>(UploadProfilePictureDocument, options);
+ }
+export type UploadProfilePictureMutationHookResult = ReturnType<typeof useUploadProfilePictureMutation>;
+export type UploadProfilePictureMutationResult = Apollo.MutationResult<UploadProfilePictureMutation>;
+export type UploadProfilePictureMutationOptions = Apollo.BaseMutationOptions<UploadProfilePictureMutation, UploadProfilePictureMutationVariables>;
+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<GetCurrentUserQuery, GetCurrentUserQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetCurrentUserQuery, GetCurrentUserQueryVariables>(GetCurrentUserDocument, options);
+ }
+export function useGetCurrentUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetCurrentUserQuery, GetCurrentUserQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetCurrentUserQuery, GetCurrentUserQueryVariables>(GetCurrentUserDocument, options);
+ }
+export type GetCurrentUserQueryHookResult = ReturnType<typeof useGetCurrentUserQuery>;
+export type GetCurrentUserLazyQueryHookResult = ReturnType<typeof useGetCurrentUserLazyQuery>;
+export type GetCurrentUserQueryResult = Apollo.QueryResult<GetCurrentUserQuery, GetCurrentUserQueryVariables>;
+export const ActivateWorkflowVersionDocument = gql`
+ mutation ActivateWorkflowVersion($workflowVersionId: String!) {
+ activateWorkflowVersion(workflowVersionId: $workflowVersionId)
+}
+ `;
+export type ActivateWorkflowVersionMutationFn = Apollo.MutationFunction<ActivateWorkflowVersionMutation, ActivateWorkflowVersionMutationVariables>;
+
+/**
+ * __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<ActivateWorkflowVersionMutation, ActivateWorkflowVersionMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<ActivateWorkflowVersionMutation, ActivateWorkflowVersionMutationVariables>(ActivateWorkflowVersionDocument, options);
+ }
+export type ActivateWorkflowVersionMutationHookResult = ReturnType<typeof useActivateWorkflowVersionMutation>;
+export type ActivateWorkflowVersionMutationResult = Apollo.MutationResult<ActivateWorkflowVersionMutation>;
+export type ActivateWorkflowVersionMutationOptions = Apollo.BaseMutationOptions<ActivateWorkflowVersionMutation, ActivateWorkflowVersionMutationVariables>;
+export const ComputeStepOutputSchemaDocument = gql`
+ mutation ComputeStepOutputSchema($input: ComputeStepOutputSchemaInput!) {
+ computeStepOutputSchema(input: $input)
+}
+ `;
+export type ComputeStepOutputSchemaMutationFn = Apollo.MutationFunction<ComputeStepOutputSchemaMutation, ComputeStepOutputSchemaMutationVariables>;
+
+/**
+ * __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<ComputeStepOutputSchemaMutation, ComputeStepOutputSchemaMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<ComputeStepOutputSchemaMutation, ComputeStepOutputSchemaMutationVariables>(ComputeStepOutputSchemaDocument, options);
+ }
+export type ComputeStepOutputSchemaMutationHookResult = ReturnType<typeof useComputeStepOutputSchemaMutation>;
+export type ComputeStepOutputSchemaMutationResult = Apollo.MutationResult<ComputeStepOutputSchemaMutation>;
+export type ComputeStepOutputSchemaMutationOptions = Apollo.BaseMutationOptions<ComputeStepOutputSchemaMutation, ComputeStepOutputSchemaMutationVariables>;
+export const CreateDraftFromWorkflowVersionDocument = gql`
+ mutation CreateDraftFromWorkflowVersion($input: CreateDraftFromWorkflowVersionInput!) {
+ createDraftFromWorkflowVersion(input: $input) {
+ id
+ }
+}
+ `;
+export type CreateDraftFromWorkflowVersionMutationFn = Apollo.MutationFunction<CreateDraftFromWorkflowVersionMutation, CreateDraftFromWorkflowVersionMutationVariables>;
+
+/**
+ * __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<CreateDraftFromWorkflowVersionMutation, CreateDraftFromWorkflowVersionMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateDraftFromWorkflowVersionMutation, CreateDraftFromWorkflowVersionMutationVariables>(CreateDraftFromWorkflowVersionDocument, options);
+ }
+export type CreateDraftFromWorkflowVersionMutationHookResult = ReturnType<typeof useCreateDraftFromWorkflowVersionMutation>;
+export type CreateDraftFromWorkflowVersionMutationResult = Apollo.MutationResult<CreateDraftFromWorkflowVersionMutation>;
+export type CreateDraftFromWorkflowVersionMutationOptions = Apollo.BaseMutationOptions<CreateDraftFromWorkflowVersionMutation, CreateDraftFromWorkflowVersionMutationVariables>;
+export const CreateWorkflowVersionStepDocument = gql`
+ mutation CreateWorkflowVersionStep($input: CreateWorkflowVersionStepInput!) {
+ createWorkflowVersionStep(input: $input) {
+ id
+ name
+ type
+ settings
+ valid
+ nextStepIds
+ }
+}
+ `;
+export type CreateWorkflowVersionStepMutationFn = Apollo.MutationFunction<CreateWorkflowVersionStepMutation, CreateWorkflowVersionStepMutationVariables>;
+
+/**
+ * __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<CreateWorkflowVersionStepMutation, CreateWorkflowVersionStepMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CreateWorkflowVersionStepMutation, CreateWorkflowVersionStepMutationVariables>(CreateWorkflowVersionStepDocument, options);
+ }
+export type CreateWorkflowVersionStepMutationHookResult = ReturnType<typeof useCreateWorkflowVersionStepMutation>;
+export type CreateWorkflowVersionStepMutationResult = Apollo.MutationResult<CreateWorkflowVersionStepMutation>;
+export type CreateWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions<CreateWorkflowVersionStepMutation, CreateWorkflowVersionStepMutationVariables>;
+export const DeactivateWorkflowVersionDocument = gql`
+ mutation DeactivateWorkflowVersion($workflowVersionId: String!) {
+ deactivateWorkflowVersion(workflowVersionId: $workflowVersionId)
+}
+ `;
+export type DeactivateWorkflowVersionMutationFn = Apollo.MutationFunction<DeactivateWorkflowVersionMutation, DeactivateWorkflowVersionMutationVariables>;
+
+/**
+ * __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<DeactivateWorkflowVersionMutation, DeactivateWorkflowVersionMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeactivateWorkflowVersionMutation, DeactivateWorkflowVersionMutationVariables>(DeactivateWorkflowVersionDocument, options);
+ }
+export type DeactivateWorkflowVersionMutationHookResult = ReturnType<typeof useDeactivateWorkflowVersionMutation>;
+export type DeactivateWorkflowVersionMutationResult = Apollo.MutationResult<DeactivateWorkflowVersionMutation>;
+export type DeactivateWorkflowVersionMutationOptions = Apollo.BaseMutationOptions<DeactivateWorkflowVersionMutation, DeactivateWorkflowVersionMutationVariables>;
+export const DeleteWorkflowVersionStepDocument = gql`
+ mutation DeleteWorkflowVersionStep($input: DeleteWorkflowVersionStepInput!) {
+ deleteWorkflowVersionStep(input: $input) {
+ id
+ name
+ type
+ settings
+ valid
+ nextStepIds
+ }
+}
+ `;
+export type DeleteWorkflowVersionStepMutationFn = Apollo.MutationFunction<DeleteWorkflowVersionStepMutation, DeleteWorkflowVersionStepMutationVariables>;
+
+/**
+ * __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<DeleteWorkflowVersionStepMutation, DeleteWorkflowVersionStepMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteWorkflowVersionStepMutation, DeleteWorkflowVersionStepMutationVariables>(DeleteWorkflowVersionStepDocument, options);
+ }
+export type DeleteWorkflowVersionStepMutationHookResult = ReturnType<typeof useDeleteWorkflowVersionStepMutation>;
+export type DeleteWorkflowVersionStepMutationResult = Apollo.MutationResult<DeleteWorkflowVersionStepMutation>;
+export type DeleteWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions<DeleteWorkflowVersionStepMutation, DeleteWorkflowVersionStepMutationVariables>;
+export const RunWorkflowVersionDocument = gql`
+ mutation RunWorkflowVersion($input: RunWorkflowVersionInput!) {
+ runWorkflowVersion(input: $input) {
+ workflowRunId
+ }
+}
+ `;
+export type RunWorkflowVersionMutationFn = Apollo.MutationFunction<RunWorkflowVersionMutation, RunWorkflowVersionMutationVariables>;
+
+/**
+ * __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<RunWorkflowVersionMutation, RunWorkflowVersionMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<RunWorkflowVersionMutation, RunWorkflowVersionMutationVariables>(RunWorkflowVersionDocument, options);
+ }
+export type RunWorkflowVersionMutationHookResult = ReturnType<typeof useRunWorkflowVersionMutation>;
+export type RunWorkflowVersionMutationResult = Apollo.MutationResult<RunWorkflowVersionMutation>;
+export type RunWorkflowVersionMutationOptions = Apollo.BaseMutationOptions<RunWorkflowVersionMutation, RunWorkflowVersionMutationVariables>;
+export const UpdateWorkflowRunStepDocument = gql`
+ mutation UpdateWorkflowRunStep($input: UpdateWorkflowRunStepInput!) {
+ updateWorkflowRunStep(input: $input) {
+ id
+ name
+ type
+ settings
+ valid
+ nextStepIds
+ }
+}
+ `;
+export type UpdateWorkflowRunStepMutationFn = Apollo.MutationFunction<UpdateWorkflowRunStepMutation, UpdateWorkflowRunStepMutationVariables>;
+
+/**
+ * __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<UpdateWorkflowRunStepMutation, UpdateWorkflowRunStepMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateWorkflowRunStepMutation, UpdateWorkflowRunStepMutationVariables>(UpdateWorkflowRunStepDocument, options);
+ }
+export type UpdateWorkflowRunStepMutationHookResult = ReturnType<typeof useUpdateWorkflowRunStepMutation>;
+export type UpdateWorkflowRunStepMutationResult = Apollo.MutationResult<UpdateWorkflowRunStepMutation>;
+export type UpdateWorkflowRunStepMutationOptions = Apollo.BaseMutationOptions<UpdateWorkflowRunStepMutation, UpdateWorkflowRunStepMutationVariables>;
+export const UpdateWorkflowVersionStepDocument = gql`
+ mutation UpdateWorkflowVersionStep($input: UpdateWorkflowVersionStepInput!) {
+ updateWorkflowVersionStep(input: $input) {
+ id
+ name
+ type
+ settings
+ valid
+ nextStepIds
+ }
+}
+ `;
+export type UpdateWorkflowVersionStepMutationFn = Apollo.MutationFunction<UpdateWorkflowVersionStepMutation, UpdateWorkflowVersionStepMutationVariables>;
+
+/**
+ * __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<UpdateWorkflowVersionStepMutation, UpdateWorkflowVersionStepMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateWorkflowVersionStepMutation, UpdateWorkflowVersionStepMutationVariables>(UpdateWorkflowVersionStepDocument, options);
+ }
+export type UpdateWorkflowVersionStepMutationHookResult = ReturnType<typeof useUpdateWorkflowVersionStepMutation>;
+export type UpdateWorkflowVersionStepMutationResult = Apollo.MutationResult<UpdateWorkflowVersionStepMutation>;
+export type UpdateWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions<UpdateWorkflowVersionStepMutation, UpdateWorkflowVersionStepMutationVariables>;
+export const AssignRoleToAgentDocument = gql`
+ mutation AssignRoleToAgent($agentId: UUID!, $roleId: UUID!) {
+ assignRoleToAgent(agentId: $agentId, roleId: $roleId)
+}
+ `;
+export type AssignRoleToAgentMutationFn = Apollo.MutationFunction<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>;
+
+/**
+ * __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<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>(AssignRoleToAgentDocument, options);
+ }
+export type AssignRoleToAgentMutationHookResult = ReturnType<typeof useAssignRoleToAgentMutation>;
+export type AssignRoleToAgentMutationResult = Apollo.MutationResult<AssignRoleToAgentMutation>;
+export type AssignRoleToAgentMutationOptions = Apollo.BaseMutationOptions<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>;
+export const RemoveRoleFromAgentDocument = gql`
+ mutation RemoveRoleFromAgent($agentId: UUID!) {
+ removeRoleFromAgent(agentId: $agentId)
+}
+ `;
+export type RemoveRoleFromAgentMutationFn = Apollo.MutationFunction<RemoveRoleFromAgentMutation, RemoveRoleFromAgentMutationVariables>;
+
+/**
+ * __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<RemoveRoleFromAgentMutation, RemoveRoleFromAgentMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<RemoveRoleFromAgentMutation, RemoveRoleFromAgentMutationVariables>(RemoveRoleFromAgentDocument, options);
+ }
+export type RemoveRoleFromAgentMutationHookResult = ReturnType<typeof useRemoveRoleFromAgentMutation>;
+export type RemoveRoleFromAgentMutationResult = Apollo.MutationResult<RemoveRoleFromAgentMutation>;
+export type RemoveRoleFromAgentMutationOptions = Apollo.BaseMutationOptions<RemoveRoleFromAgentMutation, RemoveRoleFromAgentMutationVariables>;
+export const UpdateOneAgentDocument = gql`
+ mutation UpdateOneAgent($input: UpdateAgentInput!) {
+ updateOneAgent(input: $input) {
+ id
+ name
+ description
+ prompt
+ modelId
+ responseFormat
+ }
+}
+ `;
+export type UpdateOneAgentMutationFn = Apollo.MutationFunction<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>;
+
+/**
+ * __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<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>(UpdateOneAgentDocument, options);
+ }
+export type UpdateOneAgentMutationHookResult = ReturnType<typeof useUpdateOneAgentMutation>;
+export type UpdateOneAgentMutationResult = Apollo.MutationResult<UpdateOneAgentMutation>;
+export type UpdateOneAgentMutationOptions = Apollo.BaseMutationOptions<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>;
+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<FindOneAgentQuery, FindOneAgentQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<FindOneAgentQuery, FindOneAgentQueryVariables>(FindOneAgentDocument, options);
+ }
+export function useFindOneAgentLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<FindOneAgentQuery, FindOneAgentQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<FindOneAgentQuery, FindOneAgentQueryVariables>(FindOneAgentDocument, options);
+ }
+export type FindOneAgentQueryHookResult = ReturnType<typeof useFindOneAgentQuery>;
+export type FindOneAgentLazyQueryHookResult = ReturnType<typeof useFindOneAgentLazyQuery>;
+export type FindOneAgentQueryResult = Apollo.QueryResult<FindOneAgentQuery, FindOneAgentQueryVariables>;
+export const SubmitFormStepDocument = gql`
+ mutation SubmitFormStep($input: SubmitFormStepInput!) {
+ submitFormStep(input: $input)
+}
+ `;
+export type SubmitFormStepMutationFn = Apollo.MutationFunction<SubmitFormStepMutation, SubmitFormStepMutationVariables>;
+
+/**
+ * __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<SubmitFormStepMutation, SubmitFormStepMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SubmitFormStepMutation, SubmitFormStepMutationVariables>(SubmitFormStepDocument, options);
+ }
+export type SubmitFormStepMutationHookResult = ReturnType<typeof useSubmitFormStepMutation>;
+export type SubmitFormStepMutationResult = Apollo.MutationResult<SubmitFormStepMutation>;
+export type SubmitFormStepMutationOptions = Apollo.BaseMutationOptions<SubmitFormStepMutation, SubmitFormStepMutationVariables>;
+export const DeleteWorkspaceInvitationDocument = gql`
+ mutation DeleteWorkspaceInvitation($appTokenId: String!) {
+ deleteWorkspaceInvitation(appTokenId: $appTokenId)
+}
+ `;
+export type DeleteWorkspaceInvitationMutationFn = Apollo.MutationFunction<DeleteWorkspaceInvitationMutation, DeleteWorkspaceInvitationMutationVariables>;
+
+/**
+ * __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<DeleteWorkspaceInvitationMutation, DeleteWorkspaceInvitationMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteWorkspaceInvitationMutation, DeleteWorkspaceInvitationMutationVariables>(DeleteWorkspaceInvitationDocument, options);
+ }
+export type DeleteWorkspaceInvitationMutationHookResult = ReturnType<typeof useDeleteWorkspaceInvitationMutation>;
+export type DeleteWorkspaceInvitationMutationResult = Apollo.MutationResult<DeleteWorkspaceInvitationMutation>;
+export type DeleteWorkspaceInvitationMutationOptions = Apollo.BaseMutationOptions<DeleteWorkspaceInvitationMutation, DeleteWorkspaceInvitationMutationVariables>;
+export const ResendWorkspaceInvitationDocument = gql`
+ mutation ResendWorkspaceInvitation($appTokenId: String!) {
+ resendWorkspaceInvitation(appTokenId: $appTokenId) {
+ success
+ errors
+ result {
+ ... on WorkspaceInvitation {
+ id
+ email
+ expiresAt
+ }
+ }
+ }
+}
+ `;
+export type ResendWorkspaceInvitationMutationFn = Apollo.MutationFunction<ResendWorkspaceInvitationMutation, ResendWorkspaceInvitationMutationVariables>;
+
+/**
+ * __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<ResendWorkspaceInvitationMutation, ResendWorkspaceInvitationMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<ResendWorkspaceInvitationMutation, ResendWorkspaceInvitationMutationVariables>(ResendWorkspaceInvitationDocument, options);
+ }
+export type ResendWorkspaceInvitationMutationHookResult = ReturnType<typeof useResendWorkspaceInvitationMutation>;
+export type ResendWorkspaceInvitationMutationResult = Apollo.MutationResult<ResendWorkspaceInvitationMutation>;
+export type ResendWorkspaceInvitationMutationOptions = Apollo.BaseMutationOptions<ResendWorkspaceInvitationMutation, ResendWorkspaceInvitationMutationVariables>;
+export const SendInvitationsDocument = gql`
+ mutation SendInvitations($emails: [String!]!) {
+ sendInvitations(emails: $emails) {
+ success
+ errors
+ result {
+ ... on WorkspaceInvitation {
+ id
+ email
+ expiresAt
+ }
+ }
+ }
+}
+ `;
+export type SendInvitationsMutationFn = Apollo.MutationFunction<SendInvitationsMutation, SendInvitationsMutationVariables>;
+
+/**
+ * __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<SendInvitationsMutation, SendInvitationsMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<SendInvitationsMutation, SendInvitationsMutationVariables>(SendInvitationsDocument, options);
+ }
+export type SendInvitationsMutationHookResult = ReturnType<typeof useSendInvitationsMutation>;
+export type SendInvitationsMutationResult = Apollo.MutationResult<SendInvitationsMutation>;
+export type SendInvitationsMutationOptions = Apollo.BaseMutationOptions<SendInvitationsMutation, SendInvitationsMutationVariables>;
+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<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>(GetWorkspaceInvitationsDocument, options);
+ }
+export function useGetWorkspaceInvitationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>(GetWorkspaceInvitationsDocument, options);
+ }
+export type GetWorkspaceInvitationsQueryHookResult = ReturnType<typeof useGetWorkspaceInvitationsQuery>;
+export type GetWorkspaceInvitationsLazyQueryHookResult = ReturnType<typeof useGetWorkspaceInvitationsLazyQuery>;
+export type GetWorkspaceInvitationsQueryResult = Apollo.QueryResult<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>;
+export const ActivateWorkspaceDocument = gql`
+ mutation ActivateWorkspace($input: ActivateWorkspaceInput!) {
+ activateWorkspace(data: $input) {
+ id
+ }
+}
+ `;
+export type ActivateWorkspaceMutationFn = Apollo.MutationFunction<ActivateWorkspaceMutation, ActivateWorkspaceMutationVariables>;
+
+/**
+ * __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<ActivateWorkspaceMutation, ActivateWorkspaceMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<ActivateWorkspaceMutation, ActivateWorkspaceMutationVariables>(ActivateWorkspaceDocument, options);
+ }
+export type ActivateWorkspaceMutationHookResult = ReturnType<typeof useActivateWorkspaceMutation>;
+export type ActivateWorkspaceMutationResult = Apollo.MutationResult<ActivateWorkspaceMutation>;
+export type ActivateWorkspaceMutationOptions = Apollo.BaseMutationOptions<ActivateWorkspaceMutation, ActivateWorkspaceMutationVariables>;
+export const DeleteCurrentWorkspaceDocument = gql`
+ mutation DeleteCurrentWorkspace {
+ deleteCurrentWorkspace {
+ id
+ }
+}
+ `;
+export type DeleteCurrentWorkspaceMutationFn = Apollo.MutationFunction<DeleteCurrentWorkspaceMutation, DeleteCurrentWorkspaceMutationVariables>;
+
+/**
+ * __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<DeleteCurrentWorkspaceMutation, DeleteCurrentWorkspaceMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<DeleteCurrentWorkspaceMutation, DeleteCurrentWorkspaceMutationVariables>(DeleteCurrentWorkspaceDocument, options);
+ }
+export type DeleteCurrentWorkspaceMutationHookResult = ReturnType<typeof useDeleteCurrentWorkspaceMutation>;
+export type DeleteCurrentWorkspaceMutationResult = Apollo.MutationResult<DeleteCurrentWorkspaceMutation>;
+export type DeleteCurrentWorkspaceMutationOptions = Apollo.BaseMutationOptions<DeleteCurrentWorkspaceMutation, DeleteCurrentWorkspaceMutationVariables>;
+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<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>;
+
+/**
+ * __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<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>(UpdateWorkspaceDocument, options);
+ }
+export type UpdateWorkspaceMutationHookResult = ReturnType<typeof useUpdateWorkspaceMutation>;
+export type UpdateWorkspaceMutationResult = Apollo.MutationResult<UpdateWorkspaceMutation>;
+export type UpdateWorkspaceMutationOptions = Apollo.BaseMutationOptions<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>;
+export const UploadWorkspaceLogoDocument = gql`
+ mutation UploadWorkspaceLogo($file: Upload!) {
+ uploadWorkspaceLogo(file: $file) {
+ path
+ token
+ }
+}
+ `;
+export type UploadWorkspaceLogoMutationFn = Apollo.MutationFunction<UploadWorkspaceLogoMutation, UploadWorkspaceLogoMutationVariables>;
+
+/**
+ * __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<UploadWorkspaceLogoMutation, UploadWorkspaceLogoMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<UploadWorkspaceLogoMutation, UploadWorkspaceLogoMutationVariables>(UploadWorkspaceLogoDocument, options);
+ }
+export type UploadWorkspaceLogoMutationHookResult = ReturnType<typeof useUploadWorkspaceLogoMutation>;
+export type UploadWorkspaceLogoMutationResult = Apollo.MutationResult<UploadWorkspaceLogoMutation>;
+export type UploadWorkspaceLogoMutationOptions = Apollo.BaseMutationOptions<UploadWorkspaceLogoMutation, UploadWorkspaceLogoMutationVariables>;
+export const CheckCustomDomainValidRecordsDocument = gql`
+ mutation CheckCustomDomainValidRecords {
+ checkCustomDomainValidRecords {
+ id
+ customDomain
+ records {
+ type
+ key
+ value
+ validationType
+ status
+ }
+ }
+}
+ `;
+export type CheckCustomDomainValidRecordsMutationFn = Apollo.MutationFunction<CheckCustomDomainValidRecordsMutation, CheckCustomDomainValidRecordsMutationVariables>;
+
+/**
+ * __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<CheckCustomDomainValidRecordsMutation, CheckCustomDomainValidRecordsMutationVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useMutation<CheckCustomDomainValidRecordsMutation, CheckCustomDomainValidRecordsMutationVariables>(CheckCustomDomainValidRecordsDocument, options);
+ }
+export type CheckCustomDomainValidRecordsMutationHookResult = ReturnType<typeof useCheckCustomDomainValidRecordsMutation>;
+export type CheckCustomDomainValidRecordsMutationResult = Apollo.MutationResult<CheckCustomDomainValidRecordsMutation>;
+export type CheckCustomDomainValidRecordsMutationOptions = Apollo.BaseMutationOptions<CheckCustomDomainValidRecordsMutation, CheckCustomDomainValidRecordsMutationVariables>;
+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<GetWorkspaceFromInviteHashQuery, GetWorkspaceFromInviteHashQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<GetWorkspaceFromInviteHashQuery, GetWorkspaceFromInviteHashQueryVariables>(GetWorkspaceFromInviteHashDocument, options);
+ }
+export function useGetWorkspaceFromInviteHashLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetWorkspaceFromInviteHashQuery, GetWorkspaceFromInviteHashQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<GetWorkspaceFromInviteHashQuery, GetWorkspaceFromInviteHashQueryVariables>(GetWorkspaceFromInviteHashDocument, options);
+ }
+export type GetWorkspaceFromInviteHashQueryHookResult = ReturnType<typeof useGetWorkspaceFromInviteHashQuery>;
+export type GetWorkspaceFromInviteHashLazyQueryHookResult = ReturnType<typeof useGetWorkspaceFromInviteHashLazyQuery>;
+export type GetWorkspaceFromInviteHashQueryResult = Apollo.QueryResult<GetWorkspaceFromInviteHashQuery, GetWorkspaceFromInviteHashQueryVariables>;
\ 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 af783993600..00000000000
--- 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 00000000000..e1f224b9156
--- /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> = T | null;
+export type InputMaybe<T> = Maybe<T>;
+export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
+export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
+export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
+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<Scalars['String']>;
+};
+
+export type AdminPanelHealthServiceData = {
+ __typename?: 'AdminPanelHealthServiceData';
+ description: Scalars['String'];
+ details?: Maybe<Scalars['String']>;
+ errorMessage?: Maybe<Scalars['String']>;
+ id: Scalars['String'];
+ label: Scalars['String'];
+ queues?: Maybe<Array<AdminPanelWorkerQueueHealth>>;
+ 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<Scalars['String']>;
+ id: Scalars['UUID'];
+ modelId: Scalars['String'];
+ name: Scalars['String'];
+ prompt: Scalars['String'];
+ responseFormat?: Maybe<Scalars['JSON']>;
+ roleId?: Maybe<Scalars['UUID']>;
+ 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<SsoIdentityProvider>;
+};
+
+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<Scalars['String']>;
+ id: Scalars['String'];
+ inviteHash?: Maybe<Scalars['String']>;
+ loginToken?: Maybe<Scalars['String']>;
+ logo?: Maybe<Scalars['String']>;
+ personalInviteToken?: Maybe<Scalars['String']>;
+ sso: Array<SsoConnection>;
+ workspaceUrls: WorkspaceUrls;
+};
+
+export type AvailableWorkspaces = {
+ __typename?: 'AvailableWorkspaces';
+ availableWorkspacesForSignIn: Array<AvailableWorkspace>;
+ availableWorkspacesForSignUp: Array<AvailableWorkspace>;
+};
+
+export type AvailableWorkspacesAndAccessTokensOutput = {
+ __typename?: 'AvailableWorkspacesAndAccessTokensOutput';
+ availableWorkspaces: AvailableWorkspaces;
+ tokens: AuthTokenPair;
+};
+
+export type Billing = {
+ __typename?: 'Billing';
+ billingUrl?: Maybe<Scalars['String']>;
+ isBillingEnabled: Scalars['Boolean'];
+ trialPeriods: Array<BillingTrialPeriodDto>;
+};
+
+export type BillingEndTrialPeriodOutput = {
+ __typename?: 'BillingEndTrialPeriodOutput';
+ /** Boolean that confirms if a payment method was found */
+ hasPaymentMethod: Scalars['Boolean'];
+ /** Updated subscription status */
+ status?: Maybe<SubscriptionStatus>;
+};
+
+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<BillingProduct>;
+ otherLicensedProducts: Array<BillingProduct>;
+ 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<Array<BillingPriceTierDto>>;
+ tiersMode?: Maybe<BillingPriceTiersMode>;
+};
+
+export type BillingPriceTierDto = {
+ __typename?: 'BillingPriceTierDTO';
+ flatAmount?: Maybe<Scalars['Float']>;
+ unitAmount?: Maybe<Scalars['Float']>;
+ upTo?: Maybe<Scalars['Float']>;
+};
+
+/** 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<Array<Scalars['String']>>;
+ metadata: BillingProductMetadata;
+ name: Scalars['String'];
+ prices?: Maybe<Array<BillingPriceUnionDto>>;
+};
+
+/** 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<Scalars['String']>;
+};
+
+export type BillingSubscription = {
+ __typename?: 'BillingSubscription';
+ billingSubscriptionItems?: Maybe<Array<BillingSubscriptionItem>>;
+ id: Scalars['UUID'];
+ interval?: Maybe<SubscriptionInterval>;
+ metadata: Scalars['JSON'];
+ status: SubscriptionStatus;
+};
+
+export type BillingSubscriptionItem = {
+ __typename?: 'BillingSubscriptionItem';
+ billingProduct?: Maybe<BillingProduct>;
+ hasReachedCurrentPeriodCap: Scalars['Boolean'];
+ id: Scalars['UUID'];
+ quantity?: Maybe<Scalars['Float']>;
+};
+
+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<Scalars['Boolean']>;
+ isNot?: InputMaybe<Scalars['Boolean']>;
+};
+
+export enum CalendarChannelVisibility {
+ METADATA = 'METADATA',
+ SHARE_EVERYTHING = 'SHARE_EVERYTHING'
+}
+
+export type Captcha = {
+ __typename?: 'Captcha';
+ provider?: Maybe<CaptchaDriverType>;
+ siteKey?: Maybe<Scalars['String']>;
+};
+
+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<Scalars['JSON']>;
+ source: ConfigSource;
+ type: ConfigVariableType;
+ value?: Maybe<Scalars['JSON']>;
+};
+
+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<ConfigVariable>;
+};
+
+export type ConfigVariablesOutput = {
+ __typename?: 'ConfigVariablesOutput';
+ groups: Array<ConfigVariablesGroupData>;
+};
+
+export type ConnectedImapSmtpCaldavAccount = {
+ __typename?: 'ConnectedImapSmtpCaldavAccount';
+ accountOwnerId: Scalars['String'];
+ connectionParameters?: Maybe<ImapSmtpCaldavConnectionParameters>;
+ handle: Scalars['String'];
+ id: Scalars['String'];
+ provider: Scalars['String'];
+};
+
+export type ConnectionParameters = {
+ host: Scalars['String'];
+ password: Scalars['String'];
+ port: Scalars['Float'];
+ secure?: InputMaybe<Scalars['Boolean']>;
+ username: Scalars['String'];
+};
+
+export type ConnectionParametersOutput = {
+ __typename?: 'ConnectionParametersOutput';
+ host: Scalars['String'];
+ password: Scalars['String'];
+ port: Scalars['Float'];
+ secure?: Maybe<Scalars['Boolean']>;
+ username: Scalars['String'];
+};
+
+export type CreateAgentInput = {
+ description?: InputMaybe<Scalars['String']>;
+ modelId: Scalars['String'];
+ name: Scalars['String'];
+ prompt: Scalars['String'];
+ responseFormat?: InputMaybe<Scalars['JSON']>;
+};
+
+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<Scalars['JSON']>;
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ isActive?: InputMaybe<Scalars['Boolean']>;
+ isCustom?: InputMaybe<Scalars['Boolean']>;
+ isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']>;
+ isNullable?: InputMaybe<Scalars['Boolean']>;
+ isRemoteCreation?: InputMaybe<Scalars['Boolean']>;
+ isSystem?: InputMaybe<Scalars['Boolean']>;
+ isUnique?: InputMaybe<Scalars['Boolean']>;
+ label: Scalars['String'];
+ name: Scalars['String'];
+ objectMetadataId: Scalars['String'];
+ options?: InputMaybe<Scalars['JSON']>;
+ relationCreationPayload?: InputMaybe<Scalars['JSON']>;
+ settings?: InputMaybe<Scalars['JSON']>;
+ type: FieldMetadataType;
+};
+
+export type CreateOneFieldMetadataInput = {
+ /** The record to create */
+ field: CreateFieldInput;
+};
+
+export type CreateRoleInput = {
+ canDestroyAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canReadAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canSoftDeleteAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canUpdateAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canUpdateAllSettings?: InputMaybe<Scalars['Boolean']>;
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ id?: InputMaybe<Scalars['String']>;
+ label: Scalars['String'];
+};
+
+export type CreateServerlessFunctionInput = {
+ description?: InputMaybe<Scalars['String']>;
+ name: Scalars['String'];
+ timeoutSeconds?: InputMaybe<Scalars['Float']>;
+};
+
+export type CreateWorkflowVersionStepInput = {
+ /** Next step ID */
+ nextStepId?: InputMaybe<Scalars['String']>;
+ /** Parent step ID */
+ parentStepId?: InputMaybe<Scalars['String']>;
+ /** New step type */
+ stepType: Scalars['String'];
+ /** Workflow version ID */
+ workflowVersionId: Scalars['String'];
+};
+
+export type CursorPaging = {
+ /** Paginate after opaque cursor */
+ after?: InputMaybe<Scalars['ConnectionCursor']>;
+ /** Paginate before opaque cursor */
+ before?: InputMaybe<Scalars['ConnectionCursor']>;
+ /** Paginate first */
+ first?: InputMaybe<Scalars['Int']>;
+ /** Paginate last */
+ last?: InputMaybe<Scalars['Int']>;
+};
+
+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<CustomDomainRecord>;
+};
+
+/** Database Event Action */
+export enum DatabaseEventAction {
+ CREATED = 'CREATED',
+ DELETED = 'DELETED',
+ DESTROYED = 'DESTROYED',
+ RESTORED = 'RESTORED',
+ UPDATED = 'UPDATED'
+}
+
+export type DateFilter = {
+ eq?: InputMaybe<Scalars['Date']>;
+ gt?: InputMaybe<Scalars['Date']>;
+ gte?: InputMaybe<Scalars['Date']>;
+ in?: InputMaybe<Array<Scalars['Date']>>;
+ is?: InputMaybe<FilterIs>;
+ lt?: InputMaybe<Scalars['Date']>;
+ lte?: InputMaybe<Scalars['Date']>;
+ neq?: InputMaybe<Scalars['Date']>;
+};
+
+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<Scalars['String']>;
+ id: Scalars['UUID'];
+ name: FullName;
+ userEmail: Scalars['String'];
+ userWorkspaceId?: Maybe<Scalars['String']>;
+};
+
+/** 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<Scalars['JSON']>;
+ description?: Maybe<Scalars['String']>;
+ icon?: Maybe<Scalars['String']>;
+ id: Scalars['UUID'];
+ isActive?: Maybe<Scalars['Boolean']>;
+ isCustom?: Maybe<Scalars['Boolean']>;
+ isLabelSyncedWithName?: Maybe<Scalars['Boolean']>;
+ isNullable?: Maybe<Scalars['Boolean']>;
+ isSystem?: Maybe<Scalars['Boolean']>;
+ isUnique?: Maybe<Scalars['Boolean']>;
+ label: Scalars['String'];
+ name: Scalars['String'];
+ object?: Maybe<Object>;
+ options?: Maybe<Scalars['JSON']>;
+ relation?: Maybe<Relation>;
+ settings?: Maybe<Scalars['JSON']>;
+ standardOverrides?: Maybe<StandardOverrides>;
+ type: FieldMetadataType;
+ updatedAt: Scalars['DateTime'];
+};
+
+export type FieldConnection = {
+ __typename?: 'FieldConnection';
+ /** Array of edges. */
+ edges: Array<FieldEdge>;
+ /** 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<Array<FieldFilter>>;
+ id?: InputMaybe<UuidFilterComparison>;
+ isActive?: InputMaybe<BooleanFieldComparison>;
+ isCustom?: InputMaybe<BooleanFieldComparison>;
+ isSystem?: InputMaybe<BooleanFieldComparison>;
+ or?: InputMaybe<Array<FieldFilter>>;
+};
+
+/** 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<Scalars['String']>;
+};
+
+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<ConnectionParametersOutput>;
+ IMAP?: Maybe<ConnectionParametersOutput>;
+ SMTP?: Maybe<ConnectionParametersOutput>;
+};
+
+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<IndexField>;
+ indexFieldMetadatas: IndexIndexFieldMetadatasConnection;
+ indexType: IndexType;
+ indexWhereClause?: Maybe<Scalars['String']>;
+ isCustom?: Maybe<Scalars['Boolean']>;
+ 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<IndexEdge>;
+ /** 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<Array<IndexFieldFilter>>;
+ fieldMetadataId?: InputMaybe<UuidFilterComparison>;
+ id?: InputMaybe<UuidFilterComparison>;
+ or?: InputMaybe<Array<IndexFieldFilter>>;
+};
+
+export type IndexFilter = {
+ and?: InputMaybe<Array<IndexFilter>>;
+ id?: InputMaybe<UuidFilterComparison>;
+ isCustom?: InputMaybe<BooleanFieldComparison>;
+ or?: InputMaybe<Array<IndexFilter>>;
+};
+
+export type IndexIndexFieldMetadatasConnection = {
+ __typename?: 'IndexIndexFieldMetadatasConnection';
+ /** Array of edges. */
+ edges: Array<IndexFieldEdge>;
+ /** Paging information */
+ pageInfo: PageInfo;
+};
+
+export type IndexObjectMetadataConnection = {
+ __typename?: 'IndexObjectMetadataConnection';
+ /** Array of edges. */
+ edges: Array<ObjectEdge>;
+ /** 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<Array<LinkMetadata>>;
+};
+
+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<CustomDomainValidRecords>;
+ 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<ObjectPermission>;
+ upsertSettingPermissions: Array<SettingPermission>;
+ 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<Scalars['String']>;
+ redirectUrl: Scalars['String'];
+};
+
+
+export type MutationCheckoutSessionArgs = {
+ plan?: BillingPlanKey;
+ recurringInterval: SubscriptionInterval;
+ requirePaymentMethod?: Scalars['Boolean'];
+ successUrlPath?: InputMaybe<Scalars['String']>;
+};
+
+
+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<Scalars['JSON']>;
+ 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<Scalars['String']>;
+ email: Scalars['String'];
+ origin: Scalars['String'];
+ password: Scalars['String'];
+};
+
+
+export type MutationGetLoginTokenFromEmailVerificationTokenArgs = {
+ captchaToken?: InputMaybe<Scalars['String']>;
+ 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<Scalars['String']>;
+};
+
+
+export type MutationSendInvitationsArgs = {
+ emails: Array<Scalars['String']>;
+};
+
+
+export type MutationSignInArgs = {
+ captchaToken?: InputMaybe<Scalars['String']>;
+ email: Scalars['String'];
+ password: Scalars['String'];
+};
+
+
+export type MutationSignUpArgs = {
+ captchaToken?: InputMaybe<Scalars['String']>;
+ email: Scalars['String'];
+ password: Scalars['String'];
+};
+
+
+export type MutationSignUpInWorkspaceArgs = {
+ captchaToken?: InputMaybe<Scalars['String']>;
+ email: Scalars['String'];
+ locale?: InputMaybe<Scalars['String']>;
+ password: Scalars['String'];
+ verifyEmailNextPath?: InputMaybe<Scalars['String']>;
+ workspaceId?: InputMaybe<Scalars['String']>;
+ workspaceInviteHash?: InputMaybe<Scalars['String']>;
+ workspacePersonalInviteToken?: InputMaybe<Scalars['String']>;
+};
+
+
+export type MutationSubmitFormStepArgs = {
+ input: SubmitFormStepInput;
+};
+
+
+export type MutationTrackAnalyticsArgs = {
+ event?: InputMaybe<Scalars['String']>;
+ name?: InputMaybe<Scalars['String']>;
+ properties?: InputMaybe<Scalars['JSON']>;
+ 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<FileFolder>;
+};
+
+
+export type MutationUploadImageArgs = {
+ file: Scalars['Upload'];
+ fileFolder?: InputMaybe<FileFolder>;
+};
+
+
+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<Scalars['String']>;
+ duplicateCriteria?: Maybe<Array<Array<Scalars['String']>>>;
+ fields: ObjectFieldsConnection;
+ fieldsList: Array<Field>;
+ icon?: Maybe<Scalars['String']>;
+ id: Scalars['UUID'];
+ imageIdentifierFieldMetadataId?: Maybe<Scalars['String']>;
+ indexMetadataList: Array<Index>;
+ indexMetadatas: ObjectIndexMetadatasConnection;
+ isActive: Scalars['Boolean'];
+ isCustom: Scalars['Boolean'];
+ isLabelSyncedWithName: Scalars['Boolean'];
+ isRemote: Scalars['Boolean'];
+ isSearchable: Scalars['Boolean'];
+ isSystem: Scalars['Boolean'];
+ labelIdentifierFieldMetadataId?: Maybe<Scalars['String']>;
+ labelPlural: Scalars['String'];
+ labelSingular: Scalars['String'];
+ namePlural: Scalars['String'];
+ nameSingular: Scalars['String'];
+ shortcut?: Maybe<Scalars['String']>;
+ standardOverrides?: Maybe<ObjectStandardOverrides>;
+ 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<ObjectEdge>;
+ /** 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<FieldEdge>;
+ /** Paging information */
+ pageInfo: PageInfo;
+};
+
+export type ObjectFilter = {
+ and?: InputMaybe<Array<ObjectFilter>>;
+ id?: InputMaybe<UuidFilterComparison>;
+ isActive?: InputMaybe<BooleanFieldComparison>;
+ isCustom?: InputMaybe<BooleanFieldComparison>;
+ isRemote?: InputMaybe<BooleanFieldComparison>;
+ isSearchable?: InputMaybe<BooleanFieldComparison>;
+ isSystem?: InputMaybe<BooleanFieldComparison>;
+ or?: InputMaybe<Array<ObjectFilter>>;
+};
+
+export type ObjectIndexMetadatasConnection = {
+ __typename?: 'ObjectIndexMetadatasConnection';
+ /** Array of edges. */
+ edges: Array<IndexEdge>;
+ /** Paging information */
+ pageInfo: PageInfo;
+};
+
+export type ObjectPermission = {
+ __typename?: 'ObjectPermission';
+ canDestroyObjectRecords?: Maybe<Scalars['Boolean']>;
+ canReadObjectRecords?: Maybe<Scalars['Boolean']>;
+ canSoftDeleteObjectRecords?: Maybe<Scalars['Boolean']>;
+ canUpdateObjectRecords?: Maybe<Scalars['Boolean']>;
+ objectMetadataId: Scalars['String'];
+};
+
+export type ObjectPermissionInput = {
+ canDestroyObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canReadObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canSoftDeleteObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canUpdateObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ objectMetadataId: Scalars['String'];
+};
+
+export type ObjectRecordFilterInput = {
+ and?: InputMaybe<Array<ObjectRecordFilterInput>>;
+ createdAt?: InputMaybe<DateFilter>;
+ deletedAt?: InputMaybe<DateFilter>;
+ id?: InputMaybe<UuidFilter>;
+ not?: InputMaybe<ObjectRecordFilterInput>;
+ or?: InputMaybe<Array<ObjectRecordFilterInput>>;
+ updatedAt?: InputMaybe<DateFilter>;
+};
+
+export type ObjectStandardOverrides = {
+ __typename?: 'ObjectStandardOverrides';
+ description?: Maybe<Scalars['String']>;
+ icon?: Maybe<Scalars['String']>;
+ labelPlural?: Maybe<Scalars['String']>;
+ labelSingular?: Maybe<Scalars['String']>;
+ translations?: Maybe<Scalars['JSON']>;
+};
+
+export type OnDbEventDto = {
+ __typename?: 'OnDbEventDTO';
+ action: DatabaseEventAction;
+ eventDate: Scalars['DateTime'];
+ objectNameSingular: Scalars['String'];
+ record: Scalars['JSON'];
+ updatedFields?: Maybe<Array<Scalars['String']>>;
+};
+
+export type OnDbEventInput = {
+ action?: InputMaybe<DatabaseEventAction>;
+ objectNameSingular?: InputMaybe<Scalars['String']>;
+ recordId?: InputMaybe<Scalars['String']>;
+};
+
+/** 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<Scalars['ConnectionCursor']>;
+ /** true if paging forward and there are more records. */
+ hasNextPage?: Maybe<Scalars['Boolean']>;
+ /** true if paging backwards and there are more records. */
+ hasPreviousPage?: Maybe<Scalars['Boolean']>;
+ /** The cursor of the first returned record. */
+ startCursor?: Maybe<Scalars['ConnectionCursor']>;
+};
+
+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<Scalars['String']>;
+ id: Scalars['String'];
+ logo?: Maybe<Scalars['String']>;
+ 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<Agent>;
+ findManyServerlessFunctions: Array<ServerlessFunction>;
+ findOneAgent: Agent;
+ findOneServerlessFunction: ServerlessFunction;
+ findWorkspaceFromInviteHash: Workspace;
+ findWorkspaceInvitations: Array<WorkspaceInvitation>;
+ getApprovedAccessDomains: Array<ApprovedAccessDomain>;
+ getAvailablePackages: Scalars['JSON'];
+ getConfigVariablesGrouped: ConfigVariablesOutput;
+ getConnectedImapSmtpCaldavAccount: ConnectedImapSmtpCaldavAccount;
+ getDatabaseConfigVariable: ConfigVariable;
+ getIndicatorHealthStatus: AdminPanelHealthServiceData;
+ getMeteredProductsUsage: Array<BillingMeteredProductUsageOutput>;
+ getPostgresCredentials?: Maybe<PostgresCredentials>;
+ getPublicWorkspaceDataByDomain: PublicWorkspaceDataOutput;
+ getQueueMetrics: QueueMetricsData;
+ getRoles: Array<Role>;
+ getSSOIdentityProviders: Array<FindAvailableSsoidpOutput>;
+ getServerlessFunctionSourceCode?: Maybe<Scalars['JSON']>;
+ getSystemHealthStatus: SystemHealth;
+ getTimelineCalendarEventsFromCompanyId: TimelineCalendarEventsWithTotal;
+ getTimelineCalendarEventsFromPersonId: TimelineCalendarEventsWithTotal;
+ getTimelineThreadsFromCompanyId: TimelineThreadsWithTotal;
+ getTimelineThreadsFromPersonId: TimelineThreadsWithTotal;
+ index: Index;
+ indexMetadatas: IndexConnection;
+ object: Object;
+ objects: ObjectConnection;
+ plans: Array<BillingPlanOutput>;
+ search: SearchResultConnection;
+ validatePasswordResetToken: ValidatePasswordResetToken;
+ versionInfo: VersionInfo;
+};
+
+
+export type QueryBillingPortalSessionArgs = {
+ returnUrlPath?: InputMaybe<Scalars['String']>;
+};
+
+
+export type QueryCheckUserExistsArgs = {
+ captchaToken?: InputMaybe<Scalars['String']>;
+ 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<Scalars['String']>;
+};
+
+
+export type QueryGetQueueMetricsArgs = {
+ queueName: Scalars['String'];
+ timeRange?: InputMaybe<QueueMetricsTimeRange>;
+};
+
+
+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<Scalars['String']>;
+ excludedObjectNameSingulars?: InputMaybe<Array<Scalars['String']>>;
+ filter?: InputMaybe<ObjectRecordFilterInput>;
+ includedObjectNameSingulars?: InputMaybe<Array<Scalars['String']>>;
+ limit: Scalars['Int'];
+ searchInput: Scalars['String'];
+};
+
+
+export type QueryValidatePasswordResetTokenArgs = {
+ passwordResetToken: Scalars['String'];
+};
+
+export type QueueMetricsData = {
+ __typename?: 'QueueMetricsData';
+ data: Array<QueueMetricsSeries>;
+ details?: Maybe<WorkerQueueMetrics>;
+ 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<QueueMetricsDataPoint>;
+ 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<Scalars['JSON']>;
+ foreignDataWrapperType: Scalars['String'];
+ id: Scalars['ID'];
+ label: Scalars['String'];
+ schema?: Maybe<Scalars['String']>;
+ updatedAt: Scalars['DateTime'];
+ userMappingOptions?: Maybe<UserMappingOptionsUser>;
+};
+
+export type RemoteTable = {
+ __typename?: 'RemoteTable';
+ id?: Maybe<Scalars['UUID']>;
+ name: Scalars['String'];
+ schema?: Maybe<Scalars['String']>;
+ schemaPendingUpdates?: Maybe<Array<DistantTableUpdate>>;
+ 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<Scalars['String']>;
+ icon?: Maybe<Scalars['String']>;
+ id: Scalars['String'];
+ isEditable: Scalars['Boolean'];
+ label: Scalars['String'];
+ objectPermissions?: Maybe<Array<ObjectPermission>>;
+ settingPermissions?: Maybe<Array<SettingPermission>>;
+ workspaceMembers: Array<WorkspaceMember>;
+};
+
+export type RunWorkflowVersionInput = {
+ /** Execution result in JSON format */
+ payload?: InputMaybe<Scalars['JSON']>;
+ /** Workflow run ID */
+ workflowRunId?: InputMaybe<Scalars['String']>;
+ /** 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<Scalars['String']>;
+ label: Scalars['String'];
+ objectNameSingular: Scalars['String'];
+ recordId: Scalars['String'];
+ tsRank: Scalars['Float'];
+ tsRankCD: Scalars['Float'];
+};
+
+export type SearchResultConnection = {
+ __typename?: 'SearchResultConnection';
+ edges: Array<SearchResultEdge>;
+ pageInfo: SearchResultPageInfo;
+};
+
+export type SearchResultEdge = {
+ __typename?: 'SearchResultEdge';
+ cursor: Scalars['String'];
+ node: SearchRecord;
+};
+
+export type SearchResultPageInfo = {
+ __typename?: 'SearchResultPageInfo';
+ endCursor?: Maybe<Scalars['String']>;
+ hasNextPage: Scalars['Boolean'];
+};
+
+export type SendInvitationsOutput = {
+ __typename?: 'SendInvitationsOutput';
+ errors: Array<Scalars['String']>;
+ result: Array<WorkspaceInvitation>;
+ /** Boolean that confirms query was dispatched */
+ success: Scalars['Boolean'];
+};
+
+export type Sentry = {
+ __typename?: 'Sentry';
+ dsn?: Maybe<Scalars['String']>;
+ environment?: Maybe<Scalars['String']>;
+ release?: Maybe<Scalars['String']>;
+};
+
+export type ServerlessFunction = {
+ __typename?: 'ServerlessFunction';
+ createdAt: Scalars['DateTime'];
+ description?: Maybe<Scalars['String']>;
+ id: Scalars['UUID'];
+ latestVersion?: Maybe<Scalars['String']>;
+ latestVersionInputSchema?: Maybe<Scalars['JSON']>;
+ name: Scalars['String'];
+ publishedVersions: Array<Scalars['String']>;
+ runtime: Scalars['String'];
+ timeoutSeconds: Scalars['Float'];
+ updatedAt: Scalars['DateTime'];
+};
+
+export type ServerlessFunctionExecutionResult = {
+ __typename?: 'ServerlessFunctionExecutionResult';
+ /** Execution result in JSON format */
+ data?: Maybe<Scalars['JSON']>;
+ /** Execution duration in milliseconds */
+ duration: Scalars['Float'];
+ /** Execution error in JSON format */
+ error?: Maybe<Scalars['JSON']>;
+ /** 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<Scalars['String']>;
+ 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<Scalars['String']>;
+ icon?: Maybe<Scalars['String']>;
+ label?: Maybe<Scalars['String']>;
+ translations?: Maybe<Scalars['JSON']>;
+};
+
+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<Scalars['String']>;
+};
+
+export enum SupportDriver {
+ FRONT = 'FRONT',
+ NONE = 'NONE'
+}
+
+export type SystemHealth = {
+ __typename?: 'SystemHealth';
+ services: Array<SystemHealthService>;
+};
+
+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<TimelineCalendarEventParticipant>;
+ 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<Scalars['UUID']>;
+ workspaceMemberId?: Maybe<Scalars['UUID']>;
+};
+
+export type TimelineCalendarEventsWithTotal = {
+ __typename?: 'TimelineCalendarEventsWithTotal';
+ timelineCalendarEvents: Array<TimelineCalendarEvent>;
+ totalNumberOfCalendarEvents: Scalars['Int'];
+};
+
+export type TimelineThread = {
+ __typename?: 'TimelineThread';
+ firstParticipant: TimelineThreadParticipant;
+ id: Scalars['UUID'];
+ lastMessageBody: Scalars['String'];
+ lastMessageReceivedAt: Scalars['DateTime'];
+ lastTwoParticipants: Array<TimelineThreadParticipant>;
+ 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<Scalars['UUID']>;
+ workspaceMemberId?: Maybe<Scalars['UUID']>;
+};
+
+export type TimelineThreadsWithTotal = {
+ __typename?: 'TimelineThreadsWithTotal';
+ timelineThreads: Array<TimelineThread>;
+ totalNumberOfThreads: Scalars['Int'];
+};
+
+export type TransientToken = {
+ __typename?: 'TransientToken';
+ transientToken: AuthToken;
+};
+
+export type UuidFilter = {
+ eq?: InputMaybe<Scalars['UUID']>;
+ gt?: InputMaybe<Scalars['UUID']>;
+ gte?: InputMaybe<Scalars['UUID']>;
+ in?: InputMaybe<Array<Scalars['UUID']>>;
+ is?: InputMaybe<FilterIs>;
+ lt?: InputMaybe<Scalars['UUID']>;
+ lte?: InputMaybe<Scalars['UUID']>;
+ neq?: InputMaybe<Scalars['UUID']>;
+};
+
+export type UuidFilterComparison = {
+ eq?: InputMaybe<Scalars['UUID']>;
+ gt?: InputMaybe<Scalars['UUID']>;
+ gte?: InputMaybe<Scalars['UUID']>;
+ iLike?: InputMaybe<Scalars['UUID']>;
+ in?: InputMaybe<Array<Scalars['UUID']>>;
+ is?: InputMaybe<Scalars['Boolean']>;
+ isNot?: InputMaybe<Scalars['Boolean']>;
+ like?: InputMaybe<Scalars['UUID']>;
+ lt?: InputMaybe<Scalars['UUID']>;
+ lte?: InputMaybe<Scalars['UUID']>;
+ neq?: InputMaybe<Scalars['UUID']>;
+ notILike?: InputMaybe<Scalars['UUID']>;
+ notIn?: InputMaybe<Array<Scalars['UUID']>>;
+ notLike?: InputMaybe<Scalars['UUID']>;
+};
+
+export type UpdateAgentInput = {
+ description?: InputMaybe<Scalars['String']>;
+ id: Scalars['UUID'];
+ modelId: Scalars['String'];
+ name: Scalars['String'];
+ prompt: Scalars['String'];
+ responseFormat?: InputMaybe<Scalars['JSON']>;
+};
+
+export type UpdateFieldInput = {
+ defaultValue?: InputMaybe<Scalars['JSON']>;
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ isActive?: InputMaybe<Scalars['Boolean']>;
+ isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']>;
+ isNullable?: InputMaybe<Scalars['Boolean']>;
+ isSystem?: InputMaybe<Scalars['Boolean']>;
+ isUnique?: InputMaybe<Scalars['Boolean']>;
+ label?: InputMaybe<Scalars['String']>;
+ name?: InputMaybe<Scalars['String']>;
+ options?: InputMaybe<Scalars['JSON']>;
+ settings?: InputMaybe<Scalars['JSON']>;
+};
+
+export type UpdateLabPublicFeatureFlagInput = {
+ publicFeatureFlag: Scalars['String'];
+ value: Scalars['Boolean'];
+};
+
+export type UpdateObjectPayload = {
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ imageIdentifierFieldMetadataId?: InputMaybe<Scalars['String']>;
+ isActive?: InputMaybe<Scalars['Boolean']>;
+ isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']>;
+ labelIdentifierFieldMetadataId?: InputMaybe<Scalars['String']>;
+ labelPlural?: InputMaybe<Scalars['String']>;
+ labelSingular?: InputMaybe<Scalars['String']>;
+ namePlural?: InputMaybe<Scalars['String']>;
+ nameSingular?: InputMaybe<Scalars['String']>;
+ shortcut?: InputMaybe<Scalars['String']>;
+};
+
+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<Scalars['Boolean']>;
+ canReadAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canSoftDeleteAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canUpdateAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
+ canUpdateAllSettings?: InputMaybe<Scalars['Boolean']>;
+ description?: InputMaybe<Scalars['String']>;
+ icon?: InputMaybe<Scalars['String']>;
+ label?: InputMaybe<Scalars['String']>;
+};
+
+export type UpdateServerlessFunctionInput = {
+ code: Scalars['JSON'];
+ description?: InputMaybe<Scalars['String']>;
+ /** Id of the serverless function to execute */
+ id: Scalars['UUID'];
+ name: Scalars['String'];
+ timeoutSeconds?: InputMaybe<Scalars['Float']>;
+};
+
+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<Scalars['Boolean']>;
+ customDomain?: InputMaybe<Scalars['String']>;
+ defaultRoleId?: InputMaybe<Scalars['String']>;
+ displayName?: InputMaybe<Scalars['String']>;
+ inviteHash?: InputMaybe<Scalars['String']>;
+ isGoogleAuthEnabled?: InputMaybe<Scalars['Boolean']>;
+ isMicrosoftAuthEnabled?: InputMaybe<Scalars['Boolean']>;
+ isPasswordAuthEnabled?: InputMaybe<Scalars['Boolean']>;
+ isPublicInviteLinkEnabled?: InputMaybe<Scalars['Boolean']>;
+ logo?: InputMaybe<Scalars['String']>;
+ subdomain?: InputMaybe<Scalars['String']>;
+};
+
+export type UpsertObjectPermissionsInput = {
+ objectPermissions: Array<ObjectPermissionInput>;
+ roleId: Scalars['String'];
+};
+
+export type UpsertSettingPermissionsInput = {
+ roleId: Scalars['String'];
+ settingPermissionKeys: Array<SettingPermissionType>;
+};
+
+export type User = {
+ __typename?: 'User';
+ availableWorkspaces: AvailableWorkspaces;
+ canAccessFullAdminPanel: Scalars['Boolean'];
+ canImpersonate: Scalars['Boolean'];
+ createdAt: Scalars['DateTime'];
+ currentUserWorkspace?: Maybe<UserWorkspace>;
+ currentWorkspace?: Maybe<Workspace>;
+ defaultAvatarUrl?: Maybe<Scalars['String']>;
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ deletedWorkspaceMembers?: Maybe<Array<DeletedWorkspaceMember>>;
+ disabled?: Maybe<Scalars['Boolean']>;
+ email: Scalars['String'];
+ firstName: Scalars['String'];
+ id: Scalars['UUID'];
+ isEmailVerified: Scalars['Boolean'];
+ lastName: Scalars['String'];
+ locale: Scalars['String'];
+ onboardingStatus?: Maybe<OnboardingStatus>;
+ passwordHash?: Maybe<Scalars['String']>;
+ supportUserHash?: Maybe<Scalars['String']>;
+ updatedAt: Scalars['DateTime'];
+ userVars?: Maybe<Scalars['JSONObject']>;
+ workspaceMember?: Maybe<WorkspaceMember>;
+ workspaceMembers?: Maybe<Array<WorkspaceMember>>;
+ workspaces: Array<UserWorkspace>;
+};
+
+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<Scalars['String']>;
+ id: Scalars['String'];
+ lastName?: Maybe<Scalars['String']>;
+};
+
+export type UserLookup = {
+ __typename?: 'UserLookup';
+ user: UserInfo;
+ workspaces: Array<WorkspaceInfo>;
+};
+
+export type UserMappingOptionsUser = {
+ __typename?: 'UserMappingOptionsUser';
+ user?: Maybe<Scalars['String']>;
+};
+
+export type UserWorkspace = {
+ __typename?: 'UserWorkspace';
+ createdAt: Scalars['DateTime'];
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ id: Scalars['UUID'];
+ objectPermissions?: Maybe<Array<ObjectPermission>>;
+ /** @deprecated Use objectPermissions instead */
+ objectRecordsPermissions?: Maybe<Array<PermissionsOnAllObjectRecords>>;
+ settingsPermissions?: Maybe<Array<SettingPermissionType>>;
+ updatedAt: Scalars['DateTime'];
+ user: User;
+ userId: Scalars['String'];
+ workspace?: Maybe<Workspace>;
+ 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<Scalars['String']>;
+ latestVersion: Scalars['String'];
+};
+
+export type WorkerQueueMetrics = {
+ __typename?: 'WorkerQueueMetrics';
+ active: Scalars['Float'];
+ completed: Scalars['Float'];
+ completedData?: Maybe<Array<Scalars['Float']>>;
+ delayed: Scalars['Float'];
+ failed: Scalars['Float'];
+ failedData?: Maybe<Array<Scalars['Float']>>;
+ failureRate: Scalars['Float'];
+ waiting: Scalars['Float'];
+};
+
+export type WorkflowAction = {
+ __typename?: 'WorkflowAction';
+ id: Scalars['UUID'];
+ name: Scalars['String'];
+ nextStepIds?: Maybe<Array<Scalars['UUID']>>;
+ 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<BillingSubscription>;
+ createdAt: Scalars['DateTime'];
+ currentBillingSubscription?: Maybe<BillingSubscription>;
+ customDomain?: Maybe<Scalars['String']>;
+ databaseSchema: Scalars['String'];
+ databaseUrl: Scalars['String'];
+ defaultRole?: Maybe<Role>;
+ deletedAt?: Maybe<Scalars['DateTime']>;
+ displayName?: Maybe<Scalars['String']>;
+ featureFlags?: Maybe<Array<FeatureFlagDto>>;
+ hasValidEnterpriseKey: Scalars['Boolean'];
+ id: Scalars['UUID'];
+ inviteHash?: Maybe<Scalars['String']>;
+ isCustomDomainEnabled: Scalars['Boolean'];
+ isGoogleAuthEnabled: Scalars['Boolean'];
+ isMicrosoftAuthEnabled: Scalars['Boolean'];
+ isPasswordAuthEnabled: Scalars['Boolean'];
+ isPublicInviteLinkEnabled: Scalars['Boolean'];
+ logo?: Maybe<Scalars['String']>;
+ metadataVersion: Scalars['Float'];
+ subdomain: Scalars['String'];
+ updatedAt: Scalars['DateTime'];
+ version?: Maybe<Scalars['String']>;
+ workspaceMembersCount?: Maybe<Scalars['Float']>;
+ 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<FeatureFlag>;
+ id: Scalars['String'];
+ logo?: Maybe<Scalars['String']>;
+ name: Scalars['String'];
+ totalUsers: Scalars['Float'];
+ users: Array<UserInfo>;
+};
+
+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<Scalars['String']>;
+ colorScheme: Scalars['String'];
+ dateFormat?: Maybe<WorkspaceMemberDateFormatEnum>;
+ id: Scalars['UUID'];
+ locale?: Maybe<Scalars['String']>;
+ name: FullName;
+ roles?: Maybe<Array<Role>>;
+ timeFormat?: Maybe<WorkspaceMemberTimeFormatEnum>;
+ timeZone?: Maybe<Scalars['String']>;
+ userEmail: Scalars['String'];
+ userWorkspaceId?: Maybe<Scalars['String']>;
+};
+
+/** 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<Scalars['String']>;
+ id: Scalars['String'];
+};
+
+export type WorkspaceUrls = {
+ __typename?: 'WorkspaceUrls';
+ customUrl?: Maybe<Scalars['String']>;
+ 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<Scalars['String']>;
+ excludedObjectNameSingulars?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
+ includedObjectNameSingulars?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
+ filter?: InputMaybe<ObjectRecordFilterInput>;
+}>;
+
+
+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<string> | 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<SearchQuery, SearchQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useQuery<SearchQuery, SearchQueryVariables>(SearchDocument, options);
+ }
+export function useSearchLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SearchQuery, SearchQueryVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useLazyQuery<SearchQuery, SearchQueryVariables>(SearchDocument, options);
+ }
+export type SearchQueryHookResult = ReturnType<typeof useSearchQuery>;
+export type SearchLazyQueryHookResult = ReturnType<typeof useSearchLazyQuery>;
+export type SearchQueryResult = Apollo.QueryResult<SearchQuery, SearchQueryVariables>;
+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<OnDbEventSubscription, OnDbEventSubscriptionVariables>) {
+ const options = {...defaultOptions, ...baseOptions}
+ return Apollo.useSubscription<OnDbEventSubscription, OnDbEventSubscriptionVariables>(OnDbEventDocument, options);
+ }
+export type OnDbEventSubscriptionHookResult = ReturnType<typeof useOnDbEventSubscription>;
+export type OnDbEventSubscriptionResult = Apollo.SubscriptionResult<OnDbEventSubscription>;
\ 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 468951424bb..00000000000
--- 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> = T | null;
-export type InputMaybe<T> = Maybe<T>;
-export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
-export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
-export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
-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<Scalars['String']>;
-};
-
-export type AdminPanelHealthServiceData = {
- __typename?: 'AdminPanelHealthServiceData';
- description: Scalars['String'];
- details?: Maybe<Scalars['String']>;
- errorMessage?: Maybe<Scalars['String']>;
- id: Scalars['String'];
- label: Scalars['String'];
- queues?: Maybe<Array<AdminPanelWorkerQueueHealth>>;
- 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<Scalars['String']>;
- id: Scalars['UUID'];
- modelId: Scalars['String'];
- name: Scalars['String'];
- prompt: Scalars['String'];
- responseFormat?: Maybe<Scalars['JSON']>;
- roleId?: Maybe<Scalars['UUID']>;
- 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<SsoIdentityProvider>;
-};
-
-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<Scalars['String']>;
- id: Scalars['String'];
- inviteHash?: Maybe<Scalars['String']>;
- loginToken?: Maybe<Scalars['String']>;
- logo?: Maybe<Scalars['String']>;
- personalInviteToken?: Maybe<Scalars['String']>;
- sso: Array<SsoConnection>;
- workspaceUrls: WorkspaceUrls;
-};
-
-export type AvailableWorkspaces = {
- __typename?: 'AvailableWorkspaces';
- availableWorkspacesForSignIn: Array<AvailableWorkspace>;
- availableWorkspacesForSignUp: Array<AvailableWorkspace>;
-};
-
-export type AvailableWorkspacesAndAccessTokensOutput = {
- __typename?: 'AvailableWorkspacesAndAccessTokensOutput';
- availableWorkspaces: AvailableWorkspaces;
- tokens: AuthTokenPair;
-};
-
-export type Billing = {
- __typename?: 'Billing';
- billingUrl?: Maybe<Scalars['String']>;
- isBillingEnabled: Scalars['Boolean'];
- trialPeriods: Array<BillingTrialPeriodDto>;
-};
-
-export type BillingEndTrialPeriodOutput = {
- __typename?: 'BillingEndTrialPeriodOutput';
- /** Boolean that confirms if a payment method was found */
- hasPaymentMethod: Scalars['Boolean'];
- /** Updated subscription status */
- status?: Maybe<SubscriptionStatus>;
-};
-
-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<BillingProduct>;
- otherLicensedProducts: Array<BillingProduct>;
- 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<Array<BillingPriceTierDto>>;
- tiersMode?: Maybe<BillingPriceTiersMode>;
-};
-
-export type BillingPriceTierDto = {
- __typename?: 'BillingPriceTierDTO';
- flatAmount?: Maybe<Scalars['Float']>;
- unitAmount?: Maybe<Scalars['Float']>;
- upTo?: Maybe<Scalars['Float']>;
-};
-
-/** 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<Array<Scalars['String']>>;
- metadata: BillingProductMetadata;
- name: Scalars['String'];
- prices?: Maybe<Array<BillingPriceUnionDto>>;
-};
-
-/** 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<Scalars['String']>;
-};
-
-export type BillingSubscription = {
- __typename?: 'BillingSubscription';
- billingSubscriptionItems?: Maybe<Array<BillingSubscriptionItem>>;
- id: Scalars['UUID'];
- interval?: Maybe<SubscriptionInterval>;
- metadata: Scalars['JSON'];
- status: SubscriptionStatus;
-};
-
-export type BillingSubscriptionItem = {
- __typename?: 'BillingSubscriptionItem';
- billingProduct?: Maybe<BillingProduct>;
- hasReachedCurrentPeriodCap: Scalars['Boolean'];
- id: Scalars['UUID'];
- quantity?: Maybe<Scalars['Float']>;
-};
-
-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<Scalars['Boolean']>;
- isNot?: InputMaybe<Scalars['Boolean']>;
-};
-
-export enum CalendarChannelVisibility {
- METADATA = 'METADATA',
- SHARE_EVERYTHING = 'SHARE_EVERYTHING'
-}
-
-export type Captcha = {
- __typename?: 'Captcha';
- provider?: Maybe<CaptchaDriverType>;
- siteKey?: Maybe<Scalars['String']>;
-};
-
-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<Scalars['JSON']>;
- source: ConfigSource;
- type: ConfigVariableType;
- value?: Maybe<Scalars['JSON']>;
-};
-
-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<ConfigVariable>;
-};
-
-export type ConfigVariablesOutput = {
- __typename?: 'ConfigVariablesOutput';
- groups: Array<ConfigVariablesGroupData>;
-};
-
-export type ConnectedImapSmtpCaldavAccount = {
- __typename?: 'ConnectedImapSmtpCaldavAccount';
- accountOwnerId: Scalars['String'];
- connectionParameters?: Maybe<ImapSmtpCaldavConnectionParameters>;
- handle: Scalars['String'];
- id: Scalars['String'];
- provider: Scalars['String'];
-};
-
-export type ConnectionParameters = {
- host: Scalars['String'];
- password: Scalars['String'];
- port: Scalars['Float'];
- secure?: InputMaybe<Scalars['Boolean']>;
- username: Scalars['String'];
-};
-
-export type ConnectionParametersOutput = {
- __typename?: 'ConnectionParametersOutput';
- host: Scalars['String'];
- password: Scalars['String'];
- port: Scalars['Float'];
- secure?: Maybe<Scalars['Boolean']>;
- username: Scalars['String'];
-};
-
-export type CreateAgentInput = {
- description?: InputMaybe<Scalars['String']>;
- modelId: Scalars['String'];
- name: Scalars['String'];
- prompt: Scalars['String'];
- responseFormat?: InputMaybe<Scalars['JSON']>;
-};
-
-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<Scalars['JSON']>;
- description?: InputMaybe<Scalars['String']>;
- icon?: InputMaybe<Scalars['String']>;
- isActive?: InputMaybe<Scalars['Boolean']>;
- isCustom?: InputMaybe<Scalars['Boolean']>;
- isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']>;
- isNullable?: InputMaybe<Scalars['Boolean']>;
- isRemoteCreation?: InputMaybe<Scalars['Boolean']>;
- isSystem?: InputMaybe<Scalars['Boolean']>;
- isUnique?: InputMaybe<Scalars['Boolean']>;
- label: Scalars['String'];
- name: Scalars['String'];
- objectMetadataId: Scalars['String'];
- options?: InputMaybe<Scalars['JSON']>;
- relationCreationPayload?: InputMaybe<Scalars['JSON']>;
- settings?: InputMaybe<Scalars['JSON']>;
- type: FieldMetadataType;
-};
-
-export type CreateOneFieldMetadataInput = {
- /** The record to create */
- field: CreateFieldInput;
-};
-
-export type CreateRoleInput = {
- canDestroyAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
- canReadAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
- canSoftDeleteAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
- canUpdateAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
- canUpdateAllSettings?: InputMaybe<Scalars['Boolean']>;
- description?: InputMaybe<Scalars['String']>;
- icon?: InputMaybe<Scalars['String']>;
- id?: InputMaybe<Scalars['String']>;
- label: Scalars['String'];
-};
-
-export type CreateServerlessFunctionInput = {
- description?: InputMaybe<Scalars['String']>;
- name: Scalars['String'];
- timeoutSeconds?: InputMaybe<Scalars['Float']>;
-};
-
-export type CreateWorkflowVersionStepInput = {
- /** Next step ID */
- nextStepId?: InputMaybe<Scalars['String']>;
- /** Parent step ID */
- parentStepId?: InputMaybe<Scalars['String']>;
- /** New step type */
- stepType: Scalars['String'];
- /** Workflow version ID */
- workflowVersionId: Scalars['String'];
-};
-
-export type CursorPaging = {
- /** Paginate after opaque cursor */
- after?: InputMaybe<Scalars['ConnectionCursor']>;
- /** Paginate before opaque cursor */
- before?: InputMaybe<Scalars['ConnectionCursor']>;
- /** Paginate first */
- first?: InputMaybe<Scalars['Int']>;
- /** Paginate last */
- last?: InputMaybe<Scalars['Int']>;
-};
-
-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<CustomDomainRecord>;
-};
-
-/** Database Event Action */
-export enum DatabaseEventAction {
- CREATED = 'CREATED',
- DELETED = 'DELETED',
- DESTROYED = 'DESTROYED',
- RESTORED = 'RESTORED',
- UPDATED = 'UPDATED'
-}
-
-export type DateFilter = {
- eq?: InputMaybe<Scalars['Date']>;
- gt?: InputMaybe<Scalars['Date']>;
- gte?: InputMaybe<Scalars['Date']>;
- in?: InputMaybe<Array<Scalars['Date']>>;
- is?: InputMaybe<FilterIs>;
- lt?: InputMaybe<Scalars['Date']>;
- lte?: InputMaybe<Scalars['Date']>;
- neq?: InputMaybe<Scalars['Date']>;
-};
-
-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<Scalars['String']>;
- id: Scalars['UUID'];
- name: FullName;
- userEmail: Scalars['String'];
- userWorkspaceId?: Maybe<Scalars['String']>;
-};
-
-/** 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<Scalars['JSON']>;
- description?: Maybe<Scalars['String']>;
- icon?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- isActive?: Maybe<Scalars['Boolean']>;
- isCustom?: Maybe<Scalars['Boolean']>;
- isLabelSyncedWithName?: Maybe<Scalars['Boolean']>;
- isNullable?: Maybe<Scalars['Boolean']>;
- isSystem?: Maybe<Scalars['Boolean']>;
- isUnique?: Maybe<Scalars['Boolean']>;
- label: Scalars['String'];
- name: Scalars['String'];
- object?: Maybe<Object>;
- options?: Maybe<Scalars['JSON']>;
- relation?: Maybe<Relation>;
- settings?: Maybe<Scalars['JSON']>;
- standardOverrides?: Maybe<StandardOverrides>;
- type: FieldMetadataType;
- updatedAt: Scalars['DateTime'];
-};
-
-export type FieldConnection = {
- __typename?: 'FieldConnection';
- /** Array of edges. */
- edges: Array<FieldEdge>;
- /** 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<Array<FieldFilter>>;
- id?: InputMaybe<UuidFilterComparison>;
- isActive?: InputMaybe<BooleanFieldComparison>;
- isCustom?: InputMaybe<BooleanFieldComparison>;
- isSystem?: InputMaybe<BooleanFieldComparison>;
- or?: InputMaybe<Array<FieldFilter>>;
-};
-
-/** 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<Scalars['String']>;
-};
-
-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<ConnectionParametersOutput>;
- IMAP?: Maybe<ConnectionParametersOutput>;
- SMTP?: Maybe<ConnectionParametersOutput>;
-};
-
-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<IndexField>;
- indexFieldMetadatas: IndexIndexFieldMetadatasConnection;
- indexType: IndexType;
- indexWhereClause?: Maybe<Scalars['String']>;
- isCustom?: Maybe<Scalars['Boolean']>;
- 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<IndexEdge>;
- /** 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<Array<IndexFieldFilter>>;
- fieldMetadataId?: InputMaybe<UuidFilterComparison>;
- id?: InputMaybe<UuidFilterComparison>;
- or?: InputMaybe<Array<IndexFieldFilter>>;
-};
-
-export type IndexFilter = {
- and?: InputMaybe<Array<IndexFilter>>;
- id?: InputMaybe<UuidFilterComparison>;
- isCustom?: InputMaybe<BooleanFieldComparison>;
- or?: InputMaybe<Array<IndexFilter>>;
-};
-
-export type IndexIndexFieldMetadatasConnection = {
- __typename?: 'IndexIndexFieldMetadatasConnection';
- /** Array of edges. */
- edges: Array<IndexFieldEdge>;
- /** Paging information */
- pageInfo: PageInfo;
-};
-
-export type IndexObjectMetadataConnection = {
- __typename?: 'IndexObjectMetadataConnection';
- /** Array of edges. */
- edges: Array<ObjectEdge>;
- /** 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<Array<LinkMetadata>>;
-};
-
-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<CustomDomainValidRecords>;
- 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<ObjectPermission>;
- upsertSettingPermissions: Array<SettingPermission>;
- 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<Scalars['String']>;
- redirectUrl: Scalars['String'];
-};
-
-
-export type MutationCheckoutSessionArgs = {
- plan?: BillingPlanKey;
- recurringInterval: SubscriptionInterval;
- requirePaymentMethod?: Scalars['Boolean'];
- successUrlPath?: InputMaybe<Scalars['String']>;
-};
-
-
-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<Scalars['JSON']>;
- 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<Scalars['String']>;
- email: Scalars['String'];
- origin: Scalars['String'];
- password: Scalars['String'];
-};
-
-
-export type MutationGetLoginTokenFromEmailVerificationTokenArgs = {
- captchaToken?: InputMaybe<Scalars['String']>;
- 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<Scalars['String']>;
-};
-
-
-export type MutationSendInvitationsArgs = {
- emails: Array<Scalars['String']>;
-};
-
-
-export type MutationSignInArgs = {
- captchaToken?: InputMaybe<Scalars['String']>;
- email: Scalars['String'];
- password: Scalars['String'];
-};
-
-
-export type MutationSignUpArgs = {
- captchaToken?: InputMaybe<Scalars['String']>;
- email: Scalars['String'];
- password: Scalars['String'];
-};
-
-
-export type MutationSignUpInWorkspaceArgs = {
- captchaToken?: InputMaybe<Scalars['String']>;
- email: Scalars['String'];
- locale?: InputMaybe<Scalars['String']>;
- password: Scalars['String'];
- verifyEmailNextPath?: InputMaybe<Scalars['String']>;
- workspaceId?: InputMaybe<Scalars['String']>;
- workspaceInviteHash?: InputMaybe<Scalars['String']>;
- workspacePersonalInviteToken?: InputMaybe<Scalars['String']>;
-};
-
-
-export type MutationSubmitFormStepArgs = {
- input: SubmitFormStepInput;
-};
-
-
-export type MutationTrackAnalyticsArgs = {
- event?: InputMaybe<Scalars['String']>;
- name?: InputMaybe<Scalars['String']>;
- properties?: InputMaybe<Scalars['JSON']>;
- 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<FileFolder>;
-};
-
-
-export type MutationUploadImageArgs = {
- file: Scalars['Upload'];
- fileFolder?: InputMaybe<FileFolder>;
-};
-
-
-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<Scalars['String']>;
- duplicateCriteria?: Maybe<Array<Array<Scalars['String']>>>;
- fields: ObjectFieldsConnection;
- fieldsList: Array<Field>;
- icon?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- imageIdentifierFieldMetadataId?: Maybe<Scalars['String']>;
- indexMetadataList: Array<Index>;
- indexMetadatas: ObjectIndexMetadatasConnection;
- isActive: Scalars['Boolean'];
- isCustom: Scalars['Boolean'];
- isLabelSyncedWithName: Scalars['Boolean'];
- isRemote: Scalars['Boolean'];
- isSearchable: Scalars['Boolean'];
- isSystem: Scalars['Boolean'];
- labelIdentifierFieldMetadataId?: Maybe<Scalars['String']>;
- labelPlural: Scalars['String'];
- labelSingular: Scalars['String'];
- namePlural: Scalars['String'];
- nameSingular: Scalars['String'];
- shortcut?: Maybe<Scalars['String']>;
- standardOverrides?: Maybe<ObjectStandardOverrides>;
- 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<ObjectEdge>;
- /** 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<FieldEdge>;
- /** Paging information */
- pageInfo: PageInfo;
-};
-
-export type ObjectFilter = {
- and?: InputMaybe<Array<ObjectFilter>>;
- id?: InputMaybe<UuidFilterComparison>;
- isActive?: InputMaybe<BooleanFieldComparison>;
- isCustom?: InputMaybe<BooleanFieldComparison>;
- isRemote?: InputMaybe<BooleanFieldComparison>;
- isSearchable?: InputMaybe<BooleanFieldComparison>;
- isSystem?: InputMaybe<BooleanFieldComparison>;
- or?: InputMaybe<Array<ObjectFilter>>;
-};
-
-export type ObjectIndexMetadatasConnection = {
- __typename?: 'ObjectIndexMetadatasConnection';
- /** Array of edges. */
- edges: Array<IndexEdge>;
- /** Paging information */
- pageInfo: PageInfo;
-};
-
-export type ObjectPermission = {
- __typename?: 'ObjectPermission';
- canDestroyObjectRecords?: Maybe<Scalars['Boolean']>;
- canReadObjectRecords?: Maybe<Scalars['Boolean']>;
- canSoftDeleteObjectRecords?: Maybe<Scalars['Boolean']>;
- canUpdateObjectRecords?: Maybe<Scalars['Boolean']>;
- objectMetadataId: Scalars['String'];
-};
-
-export type ObjectPermissionInput = {
- canDestroyObjectRecords?: InputMaybe<Scalars['Boolean']>;
- canReadObjectRecords?: InputMaybe<Scalars['Boolean']>;
- canSoftDeleteObjectRecords?: InputMaybe<Scalars['Boolean']>;
- canUpdateObjectRecords?: InputMaybe<Scalars['Boolean']>;
- objectMetadataId: Scalars['String'];
-};
-
-export type ObjectRecordFilterInput = {
- and?: InputMaybe<Array<ObjectRecordFilterInput>>;
- createdAt?: InputMaybe<DateFilter>;
- deletedAt?: InputMaybe<DateFilter>;
- id?: InputMaybe<UuidFilter>;
- not?: InputMaybe<ObjectRecordFilterInput>;
- or?: InputMaybe<Array<ObjectRecordFilterInput>>;
- updatedAt?: InputMaybe<DateFilter>;
-};
-
-export type ObjectStandardOverrides = {
- __typename?: 'ObjectStandardOverrides';
- description?: Maybe<Scalars['String']>;
- icon?: Maybe<Scalars['String']>;
- labelPlural?: Maybe<Scalars['String']>;
- labelSingular?: Maybe<Scalars['String']>;
- translations?: Maybe<Scalars['JSON']>;
-};
-
-export type OnDbEventDto = {
- __typename?: 'OnDbEventDTO';
- action: DatabaseEventAction;
- eventDate: Scalars['DateTime'];
- objectNameSingular: Scalars['String'];
- record: Scalars['JSON'];
- updatedFields?: Maybe<Array<Scalars['String']>>;
-};
-
-export type OnDbEventInput = {
- action?: InputMaybe<DatabaseEventAction>;
- objectNameSingular?: InputMaybe<Scalars['String']>;
- recordId?: InputMaybe<Scalars['String']>;
-};
-
-/** 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<Scalars['ConnectionCursor']>;
- /** true if paging forward and there are more records. */
- hasNextPage?: Maybe<Scalars['Boolean']>;
- /** true if paging backwards and there are more records. */
- hasPreviousPage?: Maybe<Scalars['Boolean']>;
- /** The cursor of the first returned record. */
- startCursor?: Maybe<Scalars['ConnectionCursor']>;
-};
-
-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<Scalars['String']>;
- id: Scalars['String'];
- logo?: Maybe<Scalars['String']>;
- 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<Agent>;
- findManyServerlessFunctions: Array<ServerlessFunction>;
- findOneAgent: Agent;
- findOneServerlessFunction: ServerlessFunction;
- findWorkspaceFromInviteHash: Workspace;
- findWorkspaceInvitations: Array<WorkspaceInvitation>;
- getApprovedAccessDomains: Array<ApprovedAccessDomain>;
- getAvailablePackages: Scalars['JSON'];
- getConfigVariablesGrouped: ConfigVariablesOutput;
- getConnectedImapSmtpCaldavAccount: ConnectedImapSmtpCaldavAccount;
- getDatabaseConfigVariable: ConfigVariable;
- getIndicatorHealthStatus: AdminPanelHealthServiceData;
- getMeteredProductsUsage: Array<BillingMeteredProductUsageOutput>;
- getPostgresCredentials?: Maybe<PostgresCredentials>;
- getPublicWorkspaceDataByDomain: PublicWorkspaceDataOutput;
- getQueueMetrics: QueueMetricsData;
- getRoles: Array<Role>;
- getSSOIdentityProviders: Array<FindAvailableSsoidpOutput>;
- getServerlessFunctionSourceCode?: Maybe<Scalars['JSON']>;
- getSystemHealthStatus: SystemHealth;
- getTimelineCalendarEventsFromCompanyId: TimelineCalendarEventsWithTotal;
- getTimelineCalendarEventsFromPersonId: TimelineCalendarEventsWithTotal;
- getTimelineThreadsFromCompanyId: TimelineThreadsWithTotal;
- getTimelineThreadsFromPersonId: TimelineThreadsWithTotal;
- index: Index;
- indexMetadatas: IndexConnection;
- object: Object;
- objects: ObjectConnection;
- plans: Array<BillingPlanOutput>;
- search: SearchResultConnection;
- validatePasswordResetToken: ValidatePasswordResetToken;
- versionInfo: VersionInfo;
-};
-
-
-export type QueryBillingPortalSessionArgs = {
- returnUrlPath?: InputMaybe<Scalars['String']>;
-};
-
-
-export type QueryCheckUserExistsArgs = {
- captchaToken?: InputMaybe<Scalars['String']>;
- 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<Scalars['String']>;
-};
-
-
-export type QueryGetQueueMetricsArgs = {
- queueName: Scalars['String'];
- timeRange?: InputMaybe<QueueMetricsTimeRange>;
-};
-
-
-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<Scalars['String']>;
- excludedObjectNameSingulars?: InputMaybe<Array<Scalars['String']>>;
- filter?: InputMaybe<ObjectRecordFilterInput>;
- includedObjectNameSingulars?: InputMaybe<Array<Scalars['String']>>;
- limit: Scalars['Int'];
- searchInput: Scalars['String'];
-};
-
-
-export type QueryValidatePasswordResetTokenArgs = {
- passwordResetToken: Scalars['String'];
-};
-
-export type QueueMetricsData = {
- __typename?: 'QueueMetricsData';
- data: Array<QueueMetricsSeries>;
- details?: Maybe<WorkerQueueMetrics>;
- 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<QueueMetricsDataPoint>;
- 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<Scalars['JSON']>;
- foreignDataWrapperType: Scalars['String'];
- id: Scalars['ID'];
- label: Scalars['String'];
- schema?: Maybe<Scalars['String']>;
- updatedAt: Scalars['DateTime'];
- userMappingOptions?: Maybe<UserMappingOptionsUser>;
-};
-
-export type RemoteTable = {
- __typename?: 'RemoteTable';
- id?: Maybe<Scalars['UUID']>;
- name: Scalars['String'];
- schema?: Maybe<Scalars['String']>;
- schemaPendingUpdates?: Maybe<Array<DistantTableUpdate>>;
- 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<Scalars['String']>;
- icon?: Maybe<Scalars['String']>;
- id: Scalars['String'];
- isEditable: Scalars['Boolean'];
- label: Scalars['String'];
- objectPermissions?: Maybe<Array<ObjectPermission>>;
- settingPermissions?: Maybe<Array<SettingPermission>>;
- workspaceMembers: Array<WorkspaceMember>;
-};
-
-export type RunWorkflowVersionInput = {
- /** Execution result in JSON format */
- payload?: InputMaybe<Scalars['JSON']>;
- /** Workflow run ID */
- workflowRunId?: InputMaybe<Scalars['String']>;
- /** 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<Scalars['String']>;
- label: Scalars['String'];
- objectNameSingular: Scalars['String'];
- recordId: Scalars['String'];
- tsRank: Scalars['Float'];
- tsRankCD: Scalars['Float'];
-};
-
-export type SearchResultConnection = {
- __typename?: 'SearchResultConnection';
- edges: Array<SearchResultEdge>;
- pageInfo: SearchResultPageInfo;
-};
-
-export type SearchResultEdge = {
- __typename?: 'SearchResultEdge';
- cursor: Scalars['String'];
- node: SearchRecord;
-};
-
-export type SearchResultPageInfo = {
- __typename?: 'SearchResultPageInfo';
- endCursor?: Maybe<Scalars['String']>;
- hasNextPage: Scalars['Boolean'];
-};
-
-export type SendInvitationsOutput = {
- __typename?: 'SendInvitationsOutput';
- errors: Array<Scalars['String']>;
- result: Array<WorkspaceInvitation>;
- /** Boolean that confirms query was dispatched */
- success: Scalars['Boolean'];
-};
-
-export type Sentry = {
- __typename?: 'Sentry';
- dsn?: Maybe<Scalars['String']>;
- environment?: Maybe<Scalars['String']>;
- release?: Maybe<Scalars['String']>;
-};
-
-export type ServerlessFunction = {
- __typename?: 'ServerlessFunction';
- createdAt: Scalars['DateTime'];
- description?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- latestVersion?: Maybe<Scalars['String']>;
- latestVersionInputSchema?: Maybe<Scalars['JSON']>;
- name: Scalars['String'];
- publishedVersions: Array<Scalars['String']>;
- runtime: Scalars['String'];
- timeoutSeconds: Scalars['Float'];
- updatedAt: Scalars['DateTime'];
-};
-
-export type ServerlessFunctionExecutionResult = {
- __typename?: 'ServerlessFunctionExecutionResult';
- /** Execution result in JSON format */
- data?: Maybe<Scalars['JSON']>;
- /** Execution duration in milliseconds */
- duration: Scalars['Float'];
- /** Execution error in JSON format */
- error?: Maybe<Scalars['JSON']>;
- /** 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<Scalars['String']>;
- 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<Scalars['String']>;
- icon?: Maybe<Scalars['String']>;
- label?: Maybe<Scalars['String']>;
- translations?: Maybe<Scalars['JSON']>;
-};
-
-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<Scalars['String']>;
-};
-
-export enum SupportDriver {
- FRONT = 'FRONT',
- NONE = 'NONE'
-}
-
-export type SystemHealth = {
- __typename?: 'SystemHealth';
- services: Array<SystemHealthService>;
-};
-
-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<TimelineCalendarEventParticipant>;
- 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<Scalars['UUID']>;
- workspaceMemberId?: Maybe<Scalars['UUID']>;
-};
-
-export type TimelineCalendarEventsWithTotal = {
- __typename?: 'TimelineCalendarEventsWithTotal';
- timelineCalendarEvents: Array<TimelineCalendarEvent>;
- totalNumberOfCalendarEvents: Scalars['Int'];
-};
-
-export type TimelineThread = {
- __typename?: 'TimelineThread';
- firstParticipant: TimelineThreadParticipant;
- id: Scalars['UUID'];
- lastMessageBody: Scalars['String'];
- lastMessageReceivedAt: Scalars['DateTime'];
- lastTwoParticipants: Array<TimelineThreadParticipant>;
- 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<Scalars['UUID']>;
- workspaceMemberId?: Maybe<Scalars['UUID']>;
-};
-
-export type TimelineThreadsWithTotal = {
- __typename?: 'TimelineThreadsWithTotal';
- timelineThreads: Array<TimelineThread>;
- totalNumberOfThreads: Scalars['Int'];
-};
-
-export type TransientToken = {
- __typename?: 'TransientToken';
- transientToken: AuthToken;
-};
-
-export type UuidFilter = {
- eq?: InputMaybe<Scalars['UUID']>;
- gt?: InputMaybe<Scalars['UUID']>;
- gte?: InputMaybe<Scalars['UUID']>;
- in?: InputMaybe<Array<Scalars['UUID']>>;
- is?: InputMaybe<FilterIs>;
- lt?: InputMaybe<Scalars['UUID']>;
- lte?: InputMaybe<Scalars['UUID']>;
- neq?: InputMaybe<Scalars['UUID']>;
-};
-
-export type UuidFilterComparison = {
- eq?: InputMaybe<Scalars['UUID']>;
- gt?: InputMaybe<Scalars['UUID']>;
- gte?: InputMaybe<Scalars['UUID']>;
- iLike?: InputMaybe<Scalars['UUID']>;
- in?: InputMaybe<Array<Scalars['UUID']>>;
- is?: InputMaybe<Scalars['Boolean']>;
- isNot?: InputMaybe<Scalars['Boolean']>;
- like?: InputMaybe<Scalars['UUID']>;
- lt?: InputMaybe<Scalars['UUID']>;
- lte?: InputMaybe<Scalars['UUID']>;
- neq?: InputMaybe<Scalars['UUID']>;
- notILike?: InputMaybe<Scalars['UUID']>;
- notIn?: InputMaybe<Array<Scalars['UUID']>>;
- notLike?: InputMaybe<Scalars['UUID']>;
-};
-
-export type UpdateAgentInput = {
- description?: InputMaybe<Scalars['String']>;
- id: Scalars['UUID'];
- modelId: Scalars['String'];
- name: Scalars['String'];
- prompt: Scalars['String'];
- responseFormat?: InputMaybe<Scalars['JSON']>;
-};
-
-export type UpdateFieldInput = {
- defaultValue?: InputMaybe<Scalars['JSON']>;
- description?: InputMaybe<Scalars['String']>;
- icon?: InputMaybe<Scalars['String']>;
- isActive?: InputMaybe<Scalars['Boolean']>;
- isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']>;
- isNullable?: InputMaybe<Scalars['Boolean']>;
- isSystem?: InputMaybe<Scalars['Boolean']>;
- isUnique?: InputMaybe<Scalars['Boolean']>;
- label?: InputMaybe<Scalars['String']>;
- name?: InputMaybe<Scalars['String']>;
- options?: InputMaybe<Scalars['JSON']>;
- settings?: InputMaybe<Scalars['JSON']>;
-};
-
-export type UpdateLabPublicFeatureFlagInput = {
- publicFeatureFlag: Scalars['String'];
- value: Scalars['Boolean'];
-};
-
-export type UpdateObjectPayload = {
- description?: InputMaybe<Scalars['String']>;
- icon?: InputMaybe<Scalars['String']>;
- imageIdentifierFieldMetadataId?: InputMaybe<Scalars['String']>;
- isActive?: InputMaybe<Scalars['Boolean']>;
- isLabelSyncedWithName?: InputMaybe<Scalars['Boolean']>;
- labelIdentifierFieldMetadataId?: InputMaybe<Scalars['String']>;
- labelPlural?: InputMaybe<Scalars['String']>;
- labelSingular?: InputMaybe<Scalars['String']>;
- namePlural?: InputMaybe<Scalars['String']>;
- nameSingular?: InputMaybe<Scalars['String']>;
- shortcut?: InputMaybe<Scalars['String']>;
-};
-
-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<Scalars['Boolean']>;
- canReadAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
- canSoftDeleteAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
- canUpdateAllObjectRecords?: InputMaybe<Scalars['Boolean']>;
- canUpdateAllSettings?: InputMaybe<Scalars['Boolean']>;
- description?: InputMaybe<Scalars['String']>;
- icon?: InputMaybe<Scalars['String']>;
- label?: InputMaybe<Scalars['String']>;
-};
-
-export type UpdateServerlessFunctionInput = {
- code: Scalars['JSON'];
- description?: InputMaybe<Scalars['String']>;
- /** Id of the serverless function to execute */
- id: Scalars['UUID'];
- name: Scalars['String'];
- timeoutSeconds?: InputMaybe<Scalars['Float']>;
-};
-
-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<Scalars['Boolean']>;
- customDomain?: InputMaybe<Scalars['String']>;
- defaultRoleId?: InputMaybe<Scalars['String']>;
- displayName?: InputMaybe<Scalars['String']>;
- inviteHash?: InputMaybe<Scalars['String']>;
- isGoogleAuthEnabled?: InputMaybe<Scalars['Boolean']>;
- isMicrosoftAuthEnabled?: InputMaybe<Scalars['Boolean']>;
- isPasswordAuthEnabled?: InputMaybe<Scalars['Boolean']>;
- isPublicInviteLinkEnabled?: InputMaybe<Scalars['Boolean']>;
- logo?: InputMaybe<Scalars['String']>;
- subdomain?: InputMaybe<Scalars['String']>;
-};
-
-export type UpsertObjectPermissionsInput = {
- objectPermissions: Array<ObjectPermissionInput>;
- roleId: Scalars['String'];
-};
-
-export type UpsertSettingPermissionsInput = {
- roleId: Scalars['String'];
- settingPermissionKeys: Array<SettingPermissionType>;
-};
-
-export type User = {
- __typename?: 'User';
- availableWorkspaces: AvailableWorkspaces;
- canAccessFullAdminPanel: Scalars['Boolean'];
- canImpersonate: Scalars['Boolean'];
- createdAt: Scalars['DateTime'];
- currentUserWorkspace?: Maybe<UserWorkspace>;
- currentWorkspace?: Maybe<Workspace>;
- defaultAvatarUrl?: Maybe<Scalars['String']>;
- deletedAt?: Maybe<Scalars['DateTime']>;
- deletedWorkspaceMembers?: Maybe<Array<DeletedWorkspaceMember>>;
- disabled?: Maybe<Scalars['Boolean']>;
- email: Scalars['String'];
- firstName: Scalars['String'];
- id: Scalars['UUID'];
- isEmailVerified: Scalars['Boolean'];
- lastName: Scalars['String'];
- locale: Scalars['String'];
- onboardingStatus?: Maybe<OnboardingStatus>;
- passwordHash?: Maybe<Scalars['String']>;
- supportUserHash?: Maybe<Scalars['String']>;
- updatedAt: Scalars['DateTime'];
- userVars?: Maybe<Scalars['JSONObject']>;
- workspaceMember?: Maybe<WorkspaceMember>;
- workspaceMembers?: Maybe<Array<WorkspaceMember>>;
- workspaces: Array<UserWorkspace>;
-};
-
-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<Scalars['String']>;
- id: Scalars['String'];
- lastName?: Maybe<Scalars['String']>;
-};
-
-export type UserLookup = {
- __typename?: 'UserLookup';
- user: UserInfo;
- workspaces: Array<WorkspaceInfo>;
-};
-
-export type UserMappingOptionsUser = {
- __typename?: 'UserMappingOptionsUser';
- user?: Maybe<Scalars['String']>;
-};
-
-export type UserWorkspace = {
- __typename?: 'UserWorkspace';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- id: Scalars['UUID'];
- objectPermissions?: Maybe<Array<ObjectPermission>>;
- /** @deprecated Use objectPermissions instead */
- objectRecordsPermissions?: Maybe<Array<PermissionsOnAllObjectRecords>>;
- settingsPermissions?: Maybe<Array<SettingPermissionType>>;
- updatedAt: Scalars['DateTime'];
- user: User;
- userId: Scalars['String'];
- workspace?: Maybe<Workspace>;
- 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<Scalars['String']>;
- latestVersion: Scalars['String'];
-};
-
-export type WorkerQueueMetrics = {
- __typename?: 'WorkerQueueMetrics';
- active: Scalars['Float'];
- completed: Scalars['Float'];
- completedData?: Maybe<Array<Scalars['Float']>>;
- delayed: Scalars['Float'];
- failed: Scalars['Float'];
- failedData?: Maybe<Array<Scalars['Float']>>;
- failureRate: Scalars['Float'];
- waiting: Scalars['Float'];
-};
-
-export type WorkflowAction = {
- __typename?: 'WorkflowAction';
- id: Scalars['UUID'];
- name: Scalars['String'];
- nextStepIds?: Maybe<Array<Scalars['UUID']>>;
- 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<BillingSubscription>;
- createdAt: Scalars['DateTime'];
- currentBillingSubscription?: Maybe<BillingSubscription>;
- customDomain?: Maybe<Scalars['String']>;
- databaseSchema: Scalars['String'];
- databaseUrl: Scalars['String'];
- defaultRole?: Maybe<Role>;
- deletedAt?: Maybe<Scalars['DateTime']>;
- displayName?: Maybe<Scalars['String']>;
- featureFlags?: Maybe<Array<FeatureFlagDto>>;
- hasValidEnterpriseKey: Scalars['Boolean'];
- id: Scalars['UUID'];
- inviteHash?: Maybe<Scalars['String']>;
- isCustomDomainEnabled: Scalars['Boolean'];
- isGoogleAuthEnabled: Scalars['Boolean'];
- isMicrosoftAuthEnabled: Scalars['Boolean'];
- isPasswordAuthEnabled: Scalars['Boolean'];
- isPublicInviteLinkEnabled: Scalars['Boolean'];
- logo?: Maybe<Scalars['String']>;
- metadataVersion: Scalars['Float'];
- subdomain: Scalars['String'];
- updatedAt: Scalars['DateTime'];
- version?: Maybe<Scalars['String']>;
- workspaceMembersCount?: Maybe<Scalars['Float']>;
- 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<FeatureFlag>;
- id: Scalars['String'];
- logo?: Maybe<Scalars['String']>;
- name: Scalars['String'];
- totalUsers: Scalars['Float'];
- users: Array<UserInfo>;
-};
-
-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<Scalars['String']>;
- colorScheme: Scalars['String'];
- dateFormat?: Maybe<WorkspaceMemberDateFormatEnum>;
- id: Scalars['UUID'];
- locale?: Maybe<Scalars['String']>;
- name: FullName;
- roles?: Maybe<Array<Role>>;
- timeFormat?: Maybe<WorkspaceMemberTimeFormatEnum>;
- timeZone?: Maybe<Scalars['String']>;
- userEmail: Scalars['String'];
- userWorkspaceId?: Maybe<Scalars['String']>;
-};
-
-/** 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<Scalars['String']>;
- id: Scalars['String'];
-};
-
-export type WorkspaceUrls = {
- __typename?: 'WorkspaceUrls';
- customUrl?: Maybe<Scalars['String']>;
- 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<Scalars['String']>;
- name?: InputMaybe<Scalars['String']>;
- properties?: InputMaybe<Scalars['JSON']>;
-}>;
-
-
-export type TrackAnalyticsMutation = { __typename?: 'Mutation', trackAnalytics: { __typename?: 'Analytics', success: boolean } };
-
-export type UploadFileMutationVariables = Exact<{
- file: Scalars['Upload'];
- fileFolder?: InputMaybe<FileFolder>;
-}>;
-
-
-export type UploadFileMutation = { __typename?: 'Mutation', uploadFile: { __typename?: 'SignedFileDTO', path: string, token: string } };
-
-export type UploadImageMutationVariables = Exact<{
- file: Scalars['Upload'];
- fileFolder?: InputMaybe<FileFolder>;
-}>;
-
-
-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<Scalars['String']>;
- 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<Scalars['String']>;
- 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<Scalars['String']>;
-}>;
-
-
-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<Scalars['String']>;
-}>;
-
-
-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<Scalars['String']>;
- workspacePersonalInviteToken?: InputMaybe<Scalars['String']>;
- captchaToken?: InputMaybe<Scalars['String']>;
- workspaceId?: InputMaybe<Scalars['String']>;
- locale?: InputMaybe<Scalars['String']>;
- verifyEmailNextPath?: InputMaybe<Scalars['String']>;
-}>;
-
-
-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<Scalars['String']>;
-}>;
-
-
-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<Scalars['String']>;
- 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<Scalars['String']>;
-}>;
-
-
-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<Scalars['String']>;
- excludedObjectNameSingulars?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
- includedObjectNameSingulars?: InputMaybe<Array<Scalars['String']> | Scalars['String']>;
- filter?: InputMaybe<ObjectRecordFilterInput>;
-}>;
-
-
-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<Scalars['String']>;
-}>;
-
-
-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<QueueMetricsTimeRange>;
-}>;
-
-
-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<string> | 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<SettingPermissionType> | null, objectRecordsPermissions?: Array<PermissionsOnAllObjectRecords> | 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<SettingPermissionType> | null, objectRecordsPermissions?: Array<PermissionsOnAllObjectRecords> | 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<any> | 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<any> | 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<any> | 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<any> | 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<string>, result: Array<{ __typename?: 'WorkspaceInvitation', id: any, email: string, expiresAt: string }> } };
-
-export type SendInvitationsMutationVariables = Exact<{
- emails: Array<Scalars['String']> | Scalars['String'];
-}>;
-
-
-export type SendInvitationsMutation = { __typename?: 'Mutation', sendInvitations: { __typename?: 'SendInvitationsOutput', success: boolean, errors: Array<string>, 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<GetTimelineCalendarEventsFromCompanyIdQuery, GetTimelineCalendarEventsFromCompanyIdQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetTimelineCalendarEventsFromCompanyIdQuery, GetTimelineCalendarEventsFromCompanyIdQueryVariables>(GetTimelineCalendarEventsFromCompanyIdDocument, options);
- }
-export function useGetTimelineCalendarEventsFromCompanyIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTimelineCalendarEventsFromCompanyIdQuery, GetTimelineCalendarEventsFromCompanyIdQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetTimelineCalendarEventsFromCompanyIdQuery, GetTimelineCalendarEventsFromCompanyIdQueryVariables>(GetTimelineCalendarEventsFromCompanyIdDocument, options);
- }
-export type GetTimelineCalendarEventsFromCompanyIdQueryHookResult = ReturnType<typeof useGetTimelineCalendarEventsFromCompanyIdQuery>;
-export type GetTimelineCalendarEventsFromCompanyIdLazyQueryHookResult = ReturnType<typeof useGetTimelineCalendarEventsFromCompanyIdLazyQuery>;
-export type GetTimelineCalendarEventsFromCompanyIdQueryResult = Apollo.QueryResult<GetTimelineCalendarEventsFromCompanyIdQuery, GetTimelineCalendarEventsFromCompanyIdQueryVariables>;
-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<GetTimelineCalendarEventsFromPersonIdQuery, GetTimelineCalendarEventsFromPersonIdQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetTimelineCalendarEventsFromPersonIdQuery, GetTimelineCalendarEventsFromPersonIdQueryVariables>(GetTimelineCalendarEventsFromPersonIdDocument, options);
- }
-export function useGetTimelineCalendarEventsFromPersonIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTimelineCalendarEventsFromPersonIdQuery, GetTimelineCalendarEventsFromPersonIdQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetTimelineCalendarEventsFromPersonIdQuery, GetTimelineCalendarEventsFromPersonIdQueryVariables>(GetTimelineCalendarEventsFromPersonIdDocument, options);
- }
-export type GetTimelineCalendarEventsFromPersonIdQueryHookResult = ReturnType<typeof useGetTimelineCalendarEventsFromPersonIdQuery>;
-export type GetTimelineCalendarEventsFromPersonIdLazyQueryHookResult = ReturnType<typeof useGetTimelineCalendarEventsFromPersonIdLazyQuery>;
-export type GetTimelineCalendarEventsFromPersonIdQueryResult = Apollo.QueryResult<GetTimelineCalendarEventsFromPersonIdQuery, GetTimelineCalendarEventsFromPersonIdQueryVariables>;
-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<GetTimelineThreadsFromCompanyIdQuery, GetTimelineThreadsFromCompanyIdQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetTimelineThreadsFromCompanyIdQuery, GetTimelineThreadsFromCompanyIdQueryVariables>(GetTimelineThreadsFromCompanyIdDocument, options);
- }
-export function useGetTimelineThreadsFromCompanyIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTimelineThreadsFromCompanyIdQuery, GetTimelineThreadsFromCompanyIdQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetTimelineThreadsFromCompanyIdQuery, GetTimelineThreadsFromCompanyIdQueryVariables>(GetTimelineThreadsFromCompanyIdDocument, options);
- }
-export type GetTimelineThreadsFromCompanyIdQueryHookResult = ReturnType<typeof useGetTimelineThreadsFromCompanyIdQuery>;
-export type GetTimelineThreadsFromCompanyIdLazyQueryHookResult = ReturnType<typeof useGetTimelineThreadsFromCompanyIdLazyQuery>;
-export type GetTimelineThreadsFromCompanyIdQueryResult = Apollo.QueryResult<GetTimelineThreadsFromCompanyIdQuery, GetTimelineThreadsFromCompanyIdQueryVariables>;
-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<GetTimelineThreadsFromPersonIdQuery, GetTimelineThreadsFromPersonIdQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetTimelineThreadsFromPersonIdQuery, GetTimelineThreadsFromPersonIdQueryVariables>(GetTimelineThreadsFromPersonIdDocument, options);
- }
-export function useGetTimelineThreadsFromPersonIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetTimelineThreadsFromPersonIdQuery, GetTimelineThreadsFromPersonIdQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetTimelineThreadsFromPersonIdQuery, GetTimelineThreadsFromPersonIdQueryVariables>(GetTimelineThreadsFromPersonIdDocument, options);
- }
-export type GetTimelineThreadsFromPersonIdQueryHookResult = ReturnType<typeof useGetTimelineThreadsFromPersonIdQuery>;
-export type GetTimelineThreadsFromPersonIdLazyQueryHookResult = ReturnType<typeof useGetTimelineThreadsFromPersonIdLazyQuery>;
-export type GetTimelineThreadsFromPersonIdQueryResult = Apollo.QueryResult<GetTimelineThreadsFromPersonIdQuery, GetTimelineThreadsFromPersonIdQueryVariables>;
-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<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>;
-
-/**
- * __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<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>(TrackAnalyticsDocument, options);
- }
-export type TrackAnalyticsMutationHookResult = ReturnType<typeof useTrackAnalyticsMutation>;
-export type TrackAnalyticsMutationResult = Apollo.MutationResult<TrackAnalyticsMutation>;
-export type TrackAnalyticsMutationOptions = Apollo.BaseMutationOptions<TrackAnalyticsMutation, TrackAnalyticsMutationVariables>;
-export const UploadFileDocument = gql`
- mutation uploadFile($file: Upload!, $fileFolder: FileFolder) {
- uploadFile(file: $file, fileFolder: $fileFolder) {
- path
- token
- }
-}
- `;
-export type UploadFileMutationFn = Apollo.MutationFunction<UploadFileMutation, UploadFileMutationVariables>;
-
-/**
- * __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<UploadFileMutation, UploadFileMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UploadFileMutation, UploadFileMutationVariables>(UploadFileDocument, options);
- }
-export type UploadFileMutationHookResult = ReturnType<typeof useUploadFileMutation>;
-export type UploadFileMutationResult = Apollo.MutationResult<UploadFileMutation>;
-export type UploadFileMutationOptions = Apollo.BaseMutationOptions<UploadFileMutation, UploadFileMutationVariables>;
-export const UploadImageDocument = gql`
- mutation uploadImage($file: Upload!, $fileFolder: FileFolder) {
- uploadImage(file: $file, fileFolder: $fileFolder) {
- path
- token
- }
-}
- `;
-export type UploadImageMutationFn = Apollo.MutationFunction<UploadImageMutation, UploadImageMutationVariables>;
-
-/**
- * __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<UploadImageMutation, UploadImageMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UploadImageMutation, UploadImageMutationVariables>(UploadImageDocument, options);
- }
-export type UploadImageMutationHookResult = ReturnType<typeof useUploadImageMutation>;
-export type UploadImageMutationResult = Apollo.MutationResult<UploadImageMutation>;
-export type UploadImageMutationOptions = Apollo.BaseMutationOptions<UploadImageMutation, UploadImageMutationVariables>;
-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<AuthorizeAppMutation, AuthorizeAppMutationVariables>;
-
-/**
- * __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<AuthorizeAppMutation, AuthorizeAppMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<AuthorizeAppMutation, AuthorizeAppMutationVariables>(AuthorizeAppDocument, options);
- }
-export type AuthorizeAppMutationHookResult = ReturnType<typeof useAuthorizeAppMutation>;
-export type AuthorizeAppMutationResult = Apollo.MutationResult<AuthorizeAppMutation>;
-export type AuthorizeAppMutationOptions = Apollo.BaseMutationOptions<AuthorizeAppMutation, AuthorizeAppMutationVariables>;
-export const EmailPasswordResetLinkDocument = gql`
- mutation EmailPasswordResetLink($email: String!, $workspaceId: String!) {
- emailPasswordResetLink(email: $email, workspaceId: $workspaceId) {
- success
- }
-}
- `;
-export type EmailPasswordResetLinkMutationFn = Apollo.MutationFunction<EmailPasswordResetLinkMutation, EmailPasswordResetLinkMutationVariables>;
-
-/**
- * __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<EmailPasswordResetLinkMutation, EmailPasswordResetLinkMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<EmailPasswordResetLinkMutation, EmailPasswordResetLinkMutationVariables>(EmailPasswordResetLinkDocument, options);
- }
-export type EmailPasswordResetLinkMutationHookResult = ReturnType<typeof useEmailPasswordResetLinkMutation>;
-export type EmailPasswordResetLinkMutationResult = Apollo.MutationResult<EmailPasswordResetLinkMutation>;
-export type EmailPasswordResetLinkMutationOptions = Apollo.BaseMutationOptions<EmailPasswordResetLinkMutation, EmailPasswordResetLinkMutationVariables>;
-export const GenerateApiKeyTokenDocument = gql`
- mutation GenerateApiKeyToken($apiKeyId: String!, $expiresAt: String!) {
- generateApiKeyToken(apiKeyId: $apiKeyId, expiresAt: $expiresAt) {
- token
- }
-}
- `;
-export type GenerateApiKeyTokenMutationFn = Apollo.MutationFunction<GenerateApiKeyTokenMutation, GenerateApiKeyTokenMutationVariables>;
-
-/**
- * __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<GenerateApiKeyTokenMutation, GenerateApiKeyTokenMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<GenerateApiKeyTokenMutation, GenerateApiKeyTokenMutationVariables>(GenerateApiKeyTokenDocument, options);
- }
-export type GenerateApiKeyTokenMutationHookResult = ReturnType<typeof useGenerateApiKeyTokenMutation>;
-export type GenerateApiKeyTokenMutationResult = Apollo.MutationResult<GenerateApiKeyTokenMutation>;
-export type GenerateApiKeyTokenMutationOptions = Apollo.BaseMutationOptions<GenerateApiKeyTokenMutation, GenerateApiKeyTokenMutationVariables>;
-export const GenerateTransientTokenDocument = gql`
- mutation generateTransientToken {
- generateTransientToken {
- transientToken {
- token
- }
- }
-}
- `;
-export type GenerateTransientTokenMutationFn = Apollo.MutationFunction<GenerateTransientTokenMutation, GenerateTransientTokenMutationVariables>;
-
-/**
- * __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<GenerateTransientTokenMutation, GenerateTransientTokenMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<GenerateTransientTokenMutation, GenerateTransientTokenMutationVariables>(GenerateTransientTokenDocument, options);
- }
-export type GenerateTransientTokenMutationHookResult = ReturnType<typeof useGenerateTransientTokenMutation>;
-export type GenerateTransientTokenMutationResult = Apollo.MutationResult<GenerateTransientTokenMutation>;
-export type GenerateTransientTokenMutationOptions = Apollo.BaseMutationOptions<GenerateTransientTokenMutation, GenerateTransientTokenMutationVariables>;
-export const GetAuthTokensFromLoginTokenDocument = gql`
- mutation GetAuthTokensFromLoginToken($loginToken: String!, $origin: String!) {
- getAuthTokensFromLoginToken(loginToken: $loginToken, origin: $origin) {
- tokens {
- ...AuthTokensFragment
- }
- }
-}
- ${AuthTokensFragmentFragmentDoc}`;
-export type GetAuthTokensFromLoginTokenMutationFn = Apollo.MutationFunction<GetAuthTokensFromLoginTokenMutation, GetAuthTokensFromLoginTokenMutationVariables>;
-
-/**
- * __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<GetAuthTokensFromLoginTokenMutation, GetAuthTokensFromLoginTokenMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<GetAuthTokensFromLoginTokenMutation, GetAuthTokensFromLoginTokenMutationVariables>(GetAuthTokensFromLoginTokenDocument, options);
- }
-export type GetAuthTokensFromLoginTokenMutationHookResult = ReturnType<typeof useGetAuthTokensFromLoginTokenMutation>;
-export type GetAuthTokensFromLoginTokenMutationResult = Apollo.MutationResult<GetAuthTokensFromLoginTokenMutation>;
-export type GetAuthTokensFromLoginTokenMutationOptions = Apollo.BaseMutationOptions<GetAuthTokensFromLoginTokenMutation, GetAuthTokensFromLoginTokenMutationVariables>;
-export const GetAuthorizationUrlForSsoDocument = gql`
- mutation GetAuthorizationUrlForSSO($input: GetAuthorizationUrlForSSOInput!) {
- getAuthorizationUrlForSSO(input: $input) {
- id
- type
- authorizationURL
- }
-}
- `;
-export type GetAuthorizationUrlForSsoMutationFn = Apollo.MutationFunction<GetAuthorizationUrlForSsoMutation, GetAuthorizationUrlForSsoMutationVariables>;
-
-/**
- * __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<GetAuthorizationUrlForSsoMutation, GetAuthorizationUrlForSsoMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<GetAuthorizationUrlForSsoMutation, GetAuthorizationUrlForSsoMutationVariables>(GetAuthorizationUrlForSsoDocument, options);
- }
-export type GetAuthorizationUrlForSsoMutationHookResult = ReturnType<typeof useGetAuthorizationUrlForSsoMutation>;
-export type GetAuthorizationUrlForSsoMutationResult = Apollo.MutationResult<GetAuthorizationUrlForSsoMutation>;
-export type GetAuthorizationUrlForSsoMutationOptions = Apollo.BaseMutationOptions<GetAuthorizationUrlForSsoMutation, GetAuthorizationUrlForSsoMutationVariables>;
-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<GetLoginTokenFromCredentialsMutation, GetLoginTokenFromCredentialsMutationVariables>;
-
-/**
- * __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<GetLoginTokenFromCredentialsMutation, GetLoginTokenFromCredentialsMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<GetLoginTokenFromCredentialsMutation, GetLoginTokenFromCredentialsMutationVariables>(GetLoginTokenFromCredentialsDocument, options);
- }
-export type GetLoginTokenFromCredentialsMutationHookResult = ReturnType<typeof useGetLoginTokenFromCredentialsMutation>;
-export type GetLoginTokenFromCredentialsMutationResult = Apollo.MutationResult<GetLoginTokenFromCredentialsMutation>;
-export type GetLoginTokenFromCredentialsMutationOptions = Apollo.BaseMutationOptions<GetLoginTokenFromCredentialsMutation, GetLoginTokenFromCredentialsMutationVariables>;
-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<GetLoginTokenFromEmailVerificationTokenMutation, GetLoginTokenFromEmailVerificationTokenMutationVariables>;
-
-/**
- * __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<GetLoginTokenFromEmailVerificationTokenMutation, GetLoginTokenFromEmailVerificationTokenMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<GetLoginTokenFromEmailVerificationTokenMutation, GetLoginTokenFromEmailVerificationTokenMutationVariables>(GetLoginTokenFromEmailVerificationTokenDocument, options);
- }
-export type GetLoginTokenFromEmailVerificationTokenMutationHookResult = ReturnType<typeof useGetLoginTokenFromEmailVerificationTokenMutation>;
-export type GetLoginTokenFromEmailVerificationTokenMutationResult = Apollo.MutationResult<GetLoginTokenFromEmailVerificationTokenMutation>;
-export type GetLoginTokenFromEmailVerificationTokenMutationOptions = Apollo.BaseMutationOptions<GetLoginTokenFromEmailVerificationTokenMutation, GetLoginTokenFromEmailVerificationTokenMutationVariables>;
-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<ImpersonateMutation, ImpersonateMutationVariables>;
-
-/**
- * __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<ImpersonateMutation, ImpersonateMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<ImpersonateMutation, ImpersonateMutationVariables>(ImpersonateDocument, options);
- }
-export type ImpersonateMutationHookResult = ReturnType<typeof useImpersonateMutation>;
-export type ImpersonateMutationResult = Apollo.MutationResult<ImpersonateMutation>;
-export type ImpersonateMutationOptions = Apollo.BaseMutationOptions<ImpersonateMutation, ImpersonateMutationVariables>;
-export const RenewTokenDocument = gql`
- mutation RenewToken($appToken: String!) {
- renewToken(appToken: $appToken) {
- tokens {
- ...AuthTokensFragment
- }
- }
-}
- ${AuthTokensFragmentFragmentDoc}`;
-export type RenewTokenMutationFn = Apollo.MutationFunction<RenewTokenMutation, RenewTokenMutationVariables>;
-
-/**
- * __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<RenewTokenMutation, RenewTokenMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<RenewTokenMutation, RenewTokenMutationVariables>(RenewTokenDocument, options);
- }
-export type RenewTokenMutationHookResult = ReturnType<typeof useRenewTokenMutation>;
-export type RenewTokenMutationResult = Apollo.MutationResult<RenewTokenMutation>;
-export type RenewTokenMutationOptions = Apollo.BaseMutationOptions<RenewTokenMutation, RenewTokenMutationVariables>;
-export const ResendEmailVerificationTokenDocument = gql`
- mutation ResendEmailVerificationToken($email: String!, $origin: String!) {
- resendEmailVerificationToken(email: $email, origin: $origin) {
- success
- }
-}
- `;
-export type ResendEmailVerificationTokenMutationFn = Apollo.MutationFunction<ResendEmailVerificationTokenMutation, ResendEmailVerificationTokenMutationVariables>;
-
-/**
- * __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<ResendEmailVerificationTokenMutation, ResendEmailVerificationTokenMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<ResendEmailVerificationTokenMutation, ResendEmailVerificationTokenMutationVariables>(ResendEmailVerificationTokenDocument, options);
- }
-export type ResendEmailVerificationTokenMutationHookResult = ReturnType<typeof useResendEmailVerificationTokenMutation>;
-export type ResendEmailVerificationTokenMutationResult = Apollo.MutationResult<ResendEmailVerificationTokenMutation>;
-export type ResendEmailVerificationTokenMutationOptions = Apollo.BaseMutationOptions<ResendEmailVerificationTokenMutation, ResendEmailVerificationTokenMutationVariables>;
-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<SignInMutation, SignInMutationVariables>;
-
-/**
- * __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<SignInMutation, SignInMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SignInMutation, SignInMutationVariables>(SignInDocument, options);
- }
-export type SignInMutationHookResult = ReturnType<typeof useSignInMutation>;
-export type SignInMutationResult = Apollo.MutationResult<SignInMutation>;
-export type SignInMutationOptions = Apollo.BaseMutationOptions<SignInMutation, SignInMutationVariables>;
-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<SignUpMutation, SignUpMutationVariables>;
-
-/**
- * __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<SignUpMutation, SignUpMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SignUpMutation, SignUpMutationVariables>(SignUpDocument, options);
- }
-export type SignUpMutationHookResult = ReturnType<typeof useSignUpMutation>;
-export type SignUpMutationResult = Apollo.MutationResult<SignUpMutation>;
-export type SignUpMutationOptions = Apollo.BaseMutationOptions<SignUpMutation, SignUpMutationVariables>;
-export const SignUpInNewWorkspaceDocument = gql`
- mutation SignUpInNewWorkspace {
- signUpInNewWorkspace {
- loginToken {
- ...AuthTokenFragment
- }
- workspace {
- id
- workspaceUrls {
- ...WorkspaceUrlsFragment
- }
- }
- }
-}
- ${AuthTokenFragmentFragmentDoc}
-${WorkspaceUrlsFragmentFragmentDoc}`;
-export type SignUpInNewWorkspaceMutationFn = Apollo.MutationFunction<SignUpInNewWorkspaceMutation, SignUpInNewWorkspaceMutationVariables>;
-
-/**
- * __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<SignUpInNewWorkspaceMutation, SignUpInNewWorkspaceMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SignUpInNewWorkspaceMutation, SignUpInNewWorkspaceMutationVariables>(SignUpInNewWorkspaceDocument, options);
- }
-export type SignUpInNewWorkspaceMutationHookResult = ReturnType<typeof useSignUpInNewWorkspaceMutation>;
-export type SignUpInNewWorkspaceMutationResult = Apollo.MutationResult<SignUpInNewWorkspaceMutation>;
-export type SignUpInNewWorkspaceMutationOptions = Apollo.BaseMutationOptions<SignUpInNewWorkspaceMutation, SignUpInNewWorkspaceMutationVariables>;
-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<SignUpInWorkspaceMutation, SignUpInWorkspaceMutationVariables>;
-
-/**
- * __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<SignUpInWorkspaceMutation, SignUpInWorkspaceMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SignUpInWorkspaceMutation, SignUpInWorkspaceMutationVariables>(SignUpInWorkspaceDocument, options);
- }
-export type SignUpInWorkspaceMutationHookResult = ReturnType<typeof useSignUpInWorkspaceMutation>;
-export type SignUpInWorkspaceMutationResult = Apollo.MutationResult<SignUpInWorkspaceMutation>;
-export type SignUpInWorkspaceMutationOptions = Apollo.BaseMutationOptions<SignUpInWorkspaceMutation, SignUpInWorkspaceMutationVariables>;
-export const UpdatePasswordViaResetTokenDocument = gql`
- mutation UpdatePasswordViaResetToken($token: String!, $newPassword: String!) {
- updatePasswordViaResetToken(
- passwordResetToken: $token
- newPassword: $newPassword
- ) {
- success
- }
-}
- `;
-export type UpdatePasswordViaResetTokenMutationFn = Apollo.MutationFunction<UpdatePasswordViaResetTokenMutation, UpdatePasswordViaResetTokenMutationVariables>;
-
-/**
- * __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<UpdatePasswordViaResetTokenMutation, UpdatePasswordViaResetTokenMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdatePasswordViaResetTokenMutation, UpdatePasswordViaResetTokenMutationVariables>(UpdatePasswordViaResetTokenDocument, options);
- }
-export type UpdatePasswordViaResetTokenMutationHookResult = ReturnType<typeof useUpdatePasswordViaResetTokenMutation>;
-export type UpdatePasswordViaResetTokenMutationResult = Apollo.MutationResult<UpdatePasswordViaResetTokenMutation>;
-export type UpdatePasswordViaResetTokenMutationOptions = Apollo.BaseMutationOptions<UpdatePasswordViaResetTokenMutation, UpdatePasswordViaResetTokenMutationVariables>;
-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<CheckUserExistsQuery, CheckUserExistsQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<CheckUserExistsQuery, CheckUserExistsQueryVariables>(CheckUserExistsDocument, options);
- }
-export function useCheckUserExistsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CheckUserExistsQuery, CheckUserExistsQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<CheckUserExistsQuery, CheckUserExistsQueryVariables>(CheckUserExistsDocument, options);
- }
-export type CheckUserExistsQueryHookResult = ReturnType<typeof useCheckUserExistsQuery>;
-export type CheckUserExistsLazyQueryHookResult = ReturnType<typeof useCheckUserExistsLazyQuery>;
-export type CheckUserExistsQueryResult = Apollo.QueryResult<CheckUserExistsQuery, CheckUserExistsQueryVariables>;
-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<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>(GetPublicWorkspaceDataByDomainDocument, options);
- }
-export function useGetPublicWorkspaceDataByDomainLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>(GetPublicWorkspaceDataByDomainDocument, options);
- }
-export type GetPublicWorkspaceDataByDomainQueryHookResult = ReturnType<typeof useGetPublicWorkspaceDataByDomainQuery>;
-export type GetPublicWorkspaceDataByDomainLazyQueryHookResult = ReturnType<typeof useGetPublicWorkspaceDataByDomainLazyQuery>;
-export type GetPublicWorkspaceDataByDomainQueryResult = Apollo.QueryResult<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>;
-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<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>(ValidatePasswordResetTokenDocument, options);
- }
-export function useValidatePasswordResetTokenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>(ValidatePasswordResetTokenDocument, options);
- }
-export type ValidatePasswordResetTokenQueryHookResult = ReturnType<typeof useValidatePasswordResetTokenQuery>;
-export type ValidatePasswordResetTokenLazyQueryHookResult = ReturnType<typeof useValidatePasswordResetTokenLazyQuery>;
-export type ValidatePasswordResetTokenQueryResult = Apollo.QueryResult<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>;
-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<CheckoutSessionMutation, CheckoutSessionMutationVariables>;
-
-/**
- * __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<CheckoutSessionMutation, CheckoutSessionMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CheckoutSessionMutation, CheckoutSessionMutationVariables>(CheckoutSessionDocument, options);
- }
-export type CheckoutSessionMutationHookResult = ReturnType<typeof useCheckoutSessionMutation>;
-export type CheckoutSessionMutationResult = Apollo.MutationResult<CheckoutSessionMutation>;
-export type CheckoutSessionMutationOptions = Apollo.BaseMutationOptions<CheckoutSessionMutation, CheckoutSessionMutationVariables>;
-export const EndSubscriptionTrialPeriodDocument = gql`
- mutation EndSubscriptionTrialPeriod {
- endSubscriptionTrialPeriod {
- status
- hasPaymentMethod
- }
-}
- `;
-export type EndSubscriptionTrialPeriodMutationFn = Apollo.MutationFunction<EndSubscriptionTrialPeriodMutation, EndSubscriptionTrialPeriodMutationVariables>;
-
-/**
- * __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<EndSubscriptionTrialPeriodMutation, EndSubscriptionTrialPeriodMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<EndSubscriptionTrialPeriodMutation, EndSubscriptionTrialPeriodMutationVariables>(EndSubscriptionTrialPeriodDocument, options);
- }
-export type EndSubscriptionTrialPeriodMutationHookResult = ReturnType<typeof useEndSubscriptionTrialPeriodMutation>;
-export type EndSubscriptionTrialPeriodMutationResult = Apollo.MutationResult<EndSubscriptionTrialPeriodMutation>;
-export type EndSubscriptionTrialPeriodMutationOptions = Apollo.BaseMutationOptions<EndSubscriptionTrialPeriodMutation, EndSubscriptionTrialPeriodMutationVariables>;
-export const SwitchSubscriptionToEnterprisePlanDocument = gql`
- mutation SwitchSubscriptionToEnterprisePlan {
- switchToEnterprisePlan {
- success
- }
-}
- `;
-export type SwitchSubscriptionToEnterprisePlanMutationFn = Apollo.MutationFunction<SwitchSubscriptionToEnterprisePlanMutation, SwitchSubscriptionToEnterprisePlanMutationVariables>;
-
-/**
- * __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<SwitchSubscriptionToEnterprisePlanMutation, SwitchSubscriptionToEnterprisePlanMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SwitchSubscriptionToEnterprisePlanMutation, SwitchSubscriptionToEnterprisePlanMutationVariables>(SwitchSubscriptionToEnterprisePlanDocument, options);
- }
-export type SwitchSubscriptionToEnterprisePlanMutationHookResult = ReturnType<typeof useSwitchSubscriptionToEnterprisePlanMutation>;
-export type SwitchSubscriptionToEnterprisePlanMutationResult = Apollo.MutationResult<SwitchSubscriptionToEnterprisePlanMutation>;
-export type SwitchSubscriptionToEnterprisePlanMutationOptions = Apollo.BaseMutationOptions<SwitchSubscriptionToEnterprisePlanMutation, SwitchSubscriptionToEnterprisePlanMutationVariables>;
-export const SwitchSubscriptionToYearlyIntervalDocument = gql`
- mutation SwitchSubscriptionToYearlyInterval {
- switchToYearlyInterval {
- success
- }
-}
- `;
-export type SwitchSubscriptionToYearlyIntervalMutationFn = Apollo.MutationFunction<SwitchSubscriptionToYearlyIntervalMutation, SwitchSubscriptionToYearlyIntervalMutationVariables>;
-
-/**
- * __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<SwitchSubscriptionToYearlyIntervalMutation, SwitchSubscriptionToYearlyIntervalMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SwitchSubscriptionToYearlyIntervalMutation, SwitchSubscriptionToYearlyIntervalMutationVariables>(SwitchSubscriptionToYearlyIntervalDocument, options);
- }
-export type SwitchSubscriptionToYearlyIntervalMutationHookResult = ReturnType<typeof useSwitchSubscriptionToYearlyIntervalMutation>;
-export type SwitchSubscriptionToYearlyIntervalMutationResult = Apollo.MutationResult<SwitchSubscriptionToYearlyIntervalMutation>;
-export type SwitchSubscriptionToYearlyIntervalMutationOptions = Apollo.BaseMutationOptions<SwitchSubscriptionToYearlyIntervalMutation, SwitchSubscriptionToYearlyIntervalMutationVariables>;
-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<BillingBaseProductPricesQuery, BillingBaseProductPricesQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<BillingBaseProductPricesQuery, BillingBaseProductPricesQueryVariables>(BillingBaseProductPricesDocument, options);
- }
-export function useBillingBaseProductPricesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BillingBaseProductPricesQuery, BillingBaseProductPricesQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<BillingBaseProductPricesQuery, BillingBaseProductPricesQueryVariables>(BillingBaseProductPricesDocument, options);
- }
-export type BillingBaseProductPricesQueryHookResult = ReturnType<typeof useBillingBaseProductPricesQuery>;
-export type BillingBaseProductPricesLazyQueryHookResult = ReturnType<typeof useBillingBaseProductPricesLazyQuery>;
-export type BillingBaseProductPricesQueryResult = Apollo.QueryResult<BillingBaseProductPricesQuery, BillingBaseProductPricesQueryVariables>;
-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<BillingPortalSessionQuery, BillingPortalSessionQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<BillingPortalSessionQuery, BillingPortalSessionQueryVariables>(BillingPortalSessionDocument, options);
- }
-export function useBillingPortalSessionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BillingPortalSessionQuery, BillingPortalSessionQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<BillingPortalSessionQuery, BillingPortalSessionQueryVariables>(BillingPortalSessionDocument, options);
- }
-export type BillingPortalSessionQueryHookResult = ReturnType<typeof useBillingPortalSessionQuery>;
-export type BillingPortalSessionLazyQueryHookResult = ReturnType<typeof useBillingPortalSessionLazyQuery>;
-export type BillingPortalSessionQueryResult = Apollo.QueryResult<BillingPortalSessionQuery, BillingPortalSessionQueryVariables>;
-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<GetMeteredProductsUsageQuery, GetMeteredProductsUsageQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetMeteredProductsUsageQuery, GetMeteredProductsUsageQueryVariables>(GetMeteredProductsUsageDocument, options);
- }
-export function useGetMeteredProductsUsageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetMeteredProductsUsageQuery, GetMeteredProductsUsageQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetMeteredProductsUsageQuery, GetMeteredProductsUsageQueryVariables>(GetMeteredProductsUsageDocument, options);
- }
-export type GetMeteredProductsUsageQueryHookResult = ReturnType<typeof useGetMeteredProductsUsageQuery>;
-export type GetMeteredProductsUsageLazyQueryHookResult = ReturnType<typeof useGetMeteredProductsUsageLazyQuery>;
-export type GetMeteredProductsUsageQueryResult = Apollo.QueryResult<GetMeteredProductsUsageQuery, GetMeteredProductsUsageQueryVariables>;
-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<SearchQuery, SearchQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<SearchQuery, SearchQueryVariables>(SearchDocument, options);
- }
-export function useSearchLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SearchQuery, SearchQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<SearchQuery, SearchQueryVariables>(SearchDocument, options);
- }
-export type SearchQueryHookResult = ReturnType<typeof useSearchQuery>;
-export type SearchLazyQueryHookResult = ReturnType<typeof useSearchLazyQuery>;
-export type SearchQueryResult = Apollo.QueryResult<SearchQuery, SearchQueryVariables>;
-export const SkipBookOnboardingStepDocument = gql`
- mutation SkipBookOnboardingStep {
- skipBookOnboardingStep {
- success
- }
-}
- `;
-export type SkipBookOnboardingStepMutationFn = Apollo.MutationFunction<SkipBookOnboardingStepMutation, SkipBookOnboardingStepMutationVariables>;
-
-/**
- * __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<SkipBookOnboardingStepMutation, SkipBookOnboardingStepMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SkipBookOnboardingStepMutation, SkipBookOnboardingStepMutationVariables>(SkipBookOnboardingStepDocument, options);
- }
-export type SkipBookOnboardingStepMutationHookResult = ReturnType<typeof useSkipBookOnboardingStepMutation>;
-export type SkipBookOnboardingStepMutationResult = Apollo.MutationResult<SkipBookOnboardingStepMutation>;
-export type SkipBookOnboardingStepMutationOptions = Apollo.BaseMutationOptions<SkipBookOnboardingStepMutation, SkipBookOnboardingStepMutationVariables>;
-export const SkipSyncEmailOnboardingStepDocument = gql`
- mutation SkipSyncEmailOnboardingStep {
- skipSyncEmailOnboardingStep {
- success
- }
-}
- `;
-export type SkipSyncEmailOnboardingStepMutationFn = Apollo.MutationFunction<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>;
-
-/**
- * __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<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>(SkipSyncEmailOnboardingStepDocument, options);
- }
-export type SkipSyncEmailOnboardingStepMutationHookResult = ReturnType<typeof useSkipSyncEmailOnboardingStepMutation>;
-export type SkipSyncEmailOnboardingStepMutationResult = Apollo.MutationResult<SkipSyncEmailOnboardingStepMutation>;
-export type SkipSyncEmailOnboardingStepMutationOptions = Apollo.BaseMutationOptions<SkipSyncEmailOnboardingStepMutation, SkipSyncEmailOnboardingStepMutationVariables>;
-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<SaveImapSmtpCaldavMutation, SaveImapSmtpCaldavMutationVariables>;
-
-/**
- * __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<SaveImapSmtpCaldavMutation, SaveImapSmtpCaldavMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SaveImapSmtpCaldavMutation, SaveImapSmtpCaldavMutationVariables>(SaveImapSmtpCaldavDocument, options);
- }
-export type SaveImapSmtpCaldavMutationHookResult = ReturnType<typeof useSaveImapSmtpCaldavMutation>;
-export type SaveImapSmtpCaldavMutationResult = Apollo.MutationResult<SaveImapSmtpCaldavMutation>;
-export type SaveImapSmtpCaldavMutationOptions = Apollo.BaseMutationOptions<SaveImapSmtpCaldavMutation, SaveImapSmtpCaldavMutationVariables>;
-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<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>(GetConnectedImapSmtpCaldavAccountDocument, options);
- }
-export function useGetConnectedImapSmtpCaldavAccountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>(GetConnectedImapSmtpCaldavAccountDocument, options);
- }
-export type GetConnectedImapSmtpCaldavAccountQueryHookResult = ReturnType<typeof useGetConnectedImapSmtpCaldavAccountQuery>;
-export type GetConnectedImapSmtpCaldavAccountLazyQueryHookResult = ReturnType<typeof useGetConnectedImapSmtpCaldavAccountLazyQuery>;
-export type GetConnectedImapSmtpCaldavAccountQueryResult = Apollo.QueryResult<GetConnectedImapSmtpCaldavAccountQuery, GetConnectedImapSmtpCaldavAccountQueryVariables>;
-export const CreateDatabaseConfigVariableDocument = gql`
- mutation CreateDatabaseConfigVariable($key: String!, $value: JSON!) {
- createDatabaseConfigVariable(key: $key, value: $value)
-}
- `;
-export type CreateDatabaseConfigVariableMutationFn = Apollo.MutationFunction<CreateDatabaseConfigVariableMutation, CreateDatabaseConfigVariableMutationVariables>;
-
-/**
- * __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<CreateDatabaseConfigVariableMutation, CreateDatabaseConfigVariableMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CreateDatabaseConfigVariableMutation, CreateDatabaseConfigVariableMutationVariables>(CreateDatabaseConfigVariableDocument, options);
- }
-export type CreateDatabaseConfigVariableMutationHookResult = ReturnType<typeof useCreateDatabaseConfigVariableMutation>;
-export type CreateDatabaseConfigVariableMutationResult = Apollo.MutationResult<CreateDatabaseConfigVariableMutation>;
-export type CreateDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions<CreateDatabaseConfigVariableMutation, CreateDatabaseConfigVariableMutationVariables>;
-export const DeleteDatabaseConfigVariableDocument = gql`
- mutation DeleteDatabaseConfigVariable($key: String!) {
- deleteDatabaseConfigVariable(key: $key)
-}
- `;
-export type DeleteDatabaseConfigVariableMutationFn = Apollo.MutationFunction<DeleteDatabaseConfigVariableMutation, DeleteDatabaseConfigVariableMutationVariables>;
-
-/**
- * __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<DeleteDatabaseConfigVariableMutation, DeleteDatabaseConfigVariableMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeleteDatabaseConfigVariableMutation, DeleteDatabaseConfigVariableMutationVariables>(DeleteDatabaseConfigVariableDocument, options);
- }
-export type DeleteDatabaseConfigVariableMutationHookResult = ReturnType<typeof useDeleteDatabaseConfigVariableMutation>;
-export type DeleteDatabaseConfigVariableMutationResult = Apollo.MutationResult<DeleteDatabaseConfigVariableMutation>;
-export type DeleteDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions<DeleteDatabaseConfigVariableMutation, DeleteDatabaseConfigVariableMutationVariables>;
-export const UpdateDatabaseConfigVariableDocument = gql`
- mutation UpdateDatabaseConfigVariable($key: String!, $value: JSON!) {
- updateDatabaseConfigVariable(key: $key, value: $value)
-}
- `;
-export type UpdateDatabaseConfigVariableMutationFn = Apollo.MutationFunction<UpdateDatabaseConfigVariableMutation, UpdateDatabaseConfigVariableMutationVariables>;
-
-/**
- * __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<UpdateDatabaseConfigVariableMutation, UpdateDatabaseConfigVariableMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateDatabaseConfigVariableMutation, UpdateDatabaseConfigVariableMutationVariables>(UpdateDatabaseConfigVariableDocument, options);
- }
-export type UpdateDatabaseConfigVariableMutationHookResult = ReturnType<typeof useUpdateDatabaseConfigVariableMutation>;
-export type UpdateDatabaseConfigVariableMutationResult = Apollo.MutationResult<UpdateDatabaseConfigVariableMutation>;
-export type UpdateDatabaseConfigVariableMutationOptions = Apollo.BaseMutationOptions<UpdateDatabaseConfigVariableMutation, UpdateDatabaseConfigVariableMutationVariables>;
-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<GetConfigVariablesGroupedQuery, GetConfigVariablesGroupedQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetConfigVariablesGroupedQuery, GetConfigVariablesGroupedQueryVariables>(GetConfigVariablesGroupedDocument, options);
- }
-export function useGetConfigVariablesGroupedLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetConfigVariablesGroupedQuery, GetConfigVariablesGroupedQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetConfigVariablesGroupedQuery, GetConfigVariablesGroupedQueryVariables>(GetConfigVariablesGroupedDocument, options);
- }
-export type GetConfigVariablesGroupedQueryHookResult = ReturnType<typeof useGetConfigVariablesGroupedQuery>;
-export type GetConfigVariablesGroupedLazyQueryHookResult = ReturnType<typeof useGetConfigVariablesGroupedLazyQuery>;
-export type GetConfigVariablesGroupedQueryResult = Apollo.QueryResult<GetConfigVariablesGroupedQuery, GetConfigVariablesGroupedQueryVariables>;
-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<GetDatabaseConfigVariableQuery, GetDatabaseConfigVariableQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetDatabaseConfigVariableQuery, GetDatabaseConfigVariableQueryVariables>(GetDatabaseConfigVariableDocument, options);
- }
-export function useGetDatabaseConfigVariableLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetDatabaseConfigVariableQuery, GetDatabaseConfigVariableQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetDatabaseConfigVariableQuery, GetDatabaseConfigVariableQueryVariables>(GetDatabaseConfigVariableDocument, options);
- }
-export type GetDatabaseConfigVariableQueryHookResult = ReturnType<typeof useGetDatabaseConfigVariableQuery>;
-export type GetDatabaseConfigVariableLazyQueryHookResult = ReturnType<typeof useGetDatabaseConfigVariableLazyQuery>;
-export type GetDatabaseConfigVariableQueryResult = Apollo.QueryResult<GetDatabaseConfigVariableQuery, GetDatabaseConfigVariableQueryVariables>;
-export const UpdateWorkspaceFeatureFlagDocument = gql`
- mutation UpdateWorkspaceFeatureFlag($workspaceId: String!, $featureFlag: String!, $value: Boolean!) {
- updateWorkspaceFeatureFlag(
- workspaceId: $workspaceId
- featureFlag: $featureFlag
- value: $value
- )
-}
- `;
-export type UpdateWorkspaceFeatureFlagMutationFn = Apollo.MutationFunction<UpdateWorkspaceFeatureFlagMutation, UpdateWorkspaceFeatureFlagMutationVariables>;
-
-/**
- * __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<UpdateWorkspaceFeatureFlagMutation, UpdateWorkspaceFeatureFlagMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateWorkspaceFeatureFlagMutation, UpdateWorkspaceFeatureFlagMutationVariables>(UpdateWorkspaceFeatureFlagDocument, options);
- }
-export type UpdateWorkspaceFeatureFlagMutationHookResult = ReturnType<typeof useUpdateWorkspaceFeatureFlagMutation>;
-export type UpdateWorkspaceFeatureFlagMutationResult = Apollo.MutationResult<UpdateWorkspaceFeatureFlagMutation>;
-export type UpdateWorkspaceFeatureFlagMutationOptions = Apollo.BaseMutationOptions<UpdateWorkspaceFeatureFlagMutation, UpdateWorkspaceFeatureFlagMutationVariables>;
-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<UserLookupAdminPanelMutation, UserLookupAdminPanelMutationVariables>;
-
-/**
- * __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<UserLookupAdminPanelMutation, UserLookupAdminPanelMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UserLookupAdminPanelMutation, UserLookupAdminPanelMutationVariables>(UserLookupAdminPanelDocument, options);
- }
-export type UserLookupAdminPanelMutationHookResult = ReturnType<typeof useUserLookupAdminPanelMutation>;
-export type UserLookupAdminPanelMutationResult = Apollo.MutationResult<UserLookupAdminPanelMutation>;
-export type UserLookupAdminPanelMutationOptions = Apollo.BaseMutationOptions<UserLookupAdminPanelMutation, UserLookupAdminPanelMutationVariables>;
-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<GetVersionInfoQuery, GetVersionInfoQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetVersionInfoQuery, GetVersionInfoQueryVariables>(GetVersionInfoDocument, options);
- }
-export function useGetVersionInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetVersionInfoQuery, GetVersionInfoQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetVersionInfoQuery, GetVersionInfoQueryVariables>(GetVersionInfoDocument, options);
- }
-export type GetVersionInfoQueryHookResult = ReturnType<typeof useGetVersionInfoQuery>;
-export type GetVersionInfoLazyQueryHookResult = ReturnType<typeof useGetVersionInfoLazyQuery>;
-export type GetVersionInfoQueryResult = Apollo.QueryResult<GetVersionInfoQuery, GetVersionInfoQueryVariables>;
-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<GetIndicatorHealthStatusQuery, GetIndicatorHealthStatusQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetIndicatorHealthStatusQuery, GetIndicatorHealthStatusQueryVariables>(GetIndicatorHealthStatusDocument, options);
- }
-export function useGetIndicatorHealthStatusLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetIndicatorHealthStatusQuery, GetIndicatorHealthStatusQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetIndicatorHealthStatusQuery, GetIndicatorHealthStatusQueryVariables>(GetIndicatorHealthStatusDocument, options);
- }
-export type GetIndicatorHealthStatusQueryHookResult = ReturnType<typeof useGetIndicatorHealthStatusQuery>;
-export type GetIndicatorHealthStatusLazyQueryHookResult = ReturnType<typeof useGetIndicatorHealthStatusLazyQuery>;
-export type GetIndicatorHealthStatusQueryResult = Apollo.QueryResult<GetIndicatorHealthStatusQuery, GetIndicatorHealthStatusQueryVariables>;
-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<GetQueueMetricsQuery, GetQueueMetricsQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetQueueMetricsQuery, GetQueueMetricsQueryVariables>(GetQueueMetricsDocument, options);
- }
-export function useGetQueueMetricsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetQueueMetricsQuery, GetQueueMetricsQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetQueueMetricsQuery, GetQueueMetricsQueryVariables>(GetQueueMetricsDocument, options);
- }
-export type GetQueueMetricsQueryHookResult = ReturnType<typeof useGetQueueMetricsQuery>;
-export type GetQueueMetricsLazyQueryHookResult = ReturnType<typeof useGetQueueMetricsLazyQuery>;
-export type GetQueueMetricsQueryResult = Apollo.QueryResult<GetQueueMetricsQuery, GetQueueMetricsQueryVariables>;
-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<GetSystemHealthStatusQuery, GetSystemHealthStatusQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetSystemHealthStatusQuery, GetSystemHealthStatusQueryVariables>(GetSystemHealthStatusDocument, options);
- }
-export function useGetSystemHealthStatusLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetSystemHealthStatusQuery, GetSystemHealthStatusQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetSystemHealthStatusQuery, GetSystemHealthStatusQueryVariables>(GetSystemHealthStatusDocument, options);
- }
-export type GetSystemHealthStatusQueryHookResult = ReturnType<typeof useGetSystemHealthStatusQuery>;
-export type GetSystemHealthStatusLazyQueryHookResult = ReturnType<typeof useGetSystemHealthStatusLazyQuery>;
-export type GetSystemHealthStatusQueryResult = Apollo.QueryResult<GetSystemHealthStatusQuery, GetSystemHealthStatusQueryVariables>;
-export const UpdateLabPublicFeatureFlagDocument = gql`
- mutation UpdateLabPublicFeatureFlag($input: UpdateLabPublicFeatureFlagInput!) {
- updateLabPublicFeatureFlag(input: $input) {
- key
- value
- }
-}
- `;
-export type UpdateLabPublicFeatureFlagMutationFn = Apollo.MutationFunction<UpdateLabPublicFeatureFlagMutation, UpdateLabPublicFeatureFlagMutationVariables>;
-
-/**
- * __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<UpdateLabPublicFeatureFlagMutation, UpdateLabPublicFeatureFlagMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateLabPublicFeatureFlagMutation, UpdateLabPublicFeatureFlagMutationVariables>(UpdateLabPublicFeatureFlagDocument, options);
- }
-export type UpdateLabPublicFeatureFlagMutationHookResult = ReturnType<typeof useUpdateLabPublicFeatureFlagMutation>;
-export type UpdateLabPublicFeatureFlagMutationResult = Apollo.MutationResult<UpdateLabPublicFeatureFlagMutation>;
-export type UpdateLabPublicFeatureFlagMutationOptions = Apollo.BaseMutationOptions<UpdateLabPublicFeatureFlagMutation, UpdateLabPublicFeatureFlagMutationVariables>;
-export const CreateOneRoleDocument = gql`
- mutation CreateOneRole($createRoleInput: CreateRoleInput!) {
- createOneRole(createRoleInput: $createRoleInput) {
- ...RoleFragment
- }
-}
- ${RoleFragmentFragmentDoc}`;
-export type CreateOneRoleMutationFn = Apollo.MutationFunction<CreateOneRoleMutation, CreateOneRoleMutationVariables>;
-
-/**
- * __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<CreateOneRoleMutation, CreateOneRoleMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CreateOneRoleMutation, CreateOneRoleMutationVariables>(CreateOneRoleDocument, options);
- }
-export type CreateOneRoleMutationHookResult = ReturnType<typeof useCreateOneRoleMutation>;
-export type CreateOneRoleMutationResult = Apollo.MutationResult<CreateOneRoleMutation>;
-export type CreateOneRoleMutationOptions = Apollo.BaseMutationOptions<CreateOneRoleMutation, CreateOneRoleMutationVariables>;
-export const DeleteOneRoleDocument = gql`
- mutation DeleteOneRole($roleId: String!) {
- deleteOneRole(roleId: $roleId)
-}
- `;
-export type DeleteOneRoleMutationFn = Apollo.MutationFunction<DeleteOneRoleMutation, DeleteOneRoleMutationVariables>;
-
-/**
- * __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<DeleteOneRoleMutation, DeleteOneRoleMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeleteOneRoleMutation, DeleteOneRoleMutationVariables>(DeleteOneRoleDocument, options);
- }
-export type DeleteOneRoleMutationHookResult = ReturnType<typeof useDeleteOneRoleMutation>;
-export type DeleteOneRoleMutationResult = Apollo.MutationResult<DeleteOneRoleMutation>;
-export type DeleteOneRoleMutationOptions = Apollo.BaseMutationOptions<DeleteOneRoleMutation, DeleteOneRoleMutationVariables>;
-export const UpdateOneRoleDocument = gql`
- mutation UpdateOneRole($updateRoleInput: UpdateRoleInput!) {
- updateOneRole(updateRoleInput: $updateRoleInput) {
- ...RoleFragment
- }
-}
- ${RoleFragmentFragmentDoc}`;
-export type UpdateOneRoleMutationFn = Apollo.MutationFunction<UpdateOneRoleMutation, UpdateOneRoleMutationVariables>;
-
-/**
- * __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<UpdateOneRoleMutation, UpdateOneRoleMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateOneRoleMutation, UpdateOneRoleMutationVariables>(UpdateOneRoleDocument, options);
- }
-export type UpdateOneRoleMutationHookResult = ReturnType<typeof useUpdateOneRoleMutation>;
-export type UpdateOneRoleMutationResult = Apollo.MutationResult<UpdateOneRoleMutation>;
-export type UpdateOneRoleMutationOptions = Apollo.BaseMutationOptions<UpdateOneRoleMutation, UpdateOneRoleMutationVariables>;
-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<UpdateWorkspaceMemberRoleMutation, UpdateWorkspaceMemberRoleMutationVariables>;
-
-/**
- * __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<UpdateWorkspaceMemberRoleMutation, UpdateWorkspaceMemberRoleMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateWorkspaceMemberRoleMutation, UpdateWorkspaceMemberRoleMutationVariables>(UpdateWorkspaceMemberRoleDocument, options);
- }
-export type UpdateWorkspaceMemberRoleMutationHookResult = ReturnType<typeof useUpdateWorkspaceMemberRoleMutation>;
-export type UpdateWorkspaceMemberRoleMutationResult = Apollo.MutationResult<UpdateWorkspaceMemberRoleMutation>;
-export type UpdateWorkspaceMemberRoleMutationOptions = Apollo.BaseMutationOptions<UpdateWorkspaceMemberRoleMutation, UpdateWorkspaceMemberRoleMutationVariables>;
-export const UpsertObjectPermissionsDocument = gql`
- mutation UpsertObjectPermissions($upsertObjectPermissionsInput: UpsertObjectPermissionsInput!) {
- upsertObjectPermissions(
- upsertObjectPermissionsInput: $upsertObjectPermissionsInput
- ) {
- ...ObjectPermissionFragment
- }
-}
- ${ObjectPermissionFragmentFragmentDoc}`;
-export type UpsertObjectPermissionsMutationFn = Apollo.MutationFunction<UpsertObjectPermissionsMutation, UpsertObjectPermissionsMutationVariables>;
-
-/**
- * __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<UpsertObjectPermissionsMutation, UpsertObjectPermissionsMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpsertObjectPermissionsMutation, UpsertObjectPermissionsMutationVariables>(UpsertObjectPermissionsDocument, options);
- }
-export type UpsertObjectPermissionsMutationHookResult = ReturnType<typeof useUpsertObjectPermissionsMutation>;
-export type UpsertObjectPermissionsMutationResult = Apollo.MutationResult<UpsertObjectPermissionsMutation>;
-export type UpsertObjectPermissionsMutationOptions = Apollo.BaseMutationOptions<UpsertObjectPermissionsMutation, UpsertObjectPermissionsMutationVariables>;
-export const UpsertSettingPermissionsDocument = gql`
- mutation UpsertSettingPermissions($upsertSettingPermissionsInput: UpsertSettingPermissionsInput!) {
- upsertSettingPermissions(
- upsertSettingPermissionsInput: $upsertSettingPermissionsInput
- ) {
- ...SettingPermissionFragment
- }
-}
- ${SettingPermissionFragmentFragmentDoc}`;
-export type UpsertSettingPermissionsMutationFn = Apollo.MutationFunction<UpsertSettingPermissionsMutation, UpsertSettingPermissionsMutationVariables>;
-
-/**
- * __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<UpsertSettingPermissionsMutation, UpsertSettingPermissionsMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpsertSettingPermissionsMutation, UpsertSettingPermissionsMutationVariables>(UpsertSettingPermissionsDocument, options);
- }
-export type UpsertSettingPermissionsMutationHookResult = ReturnType<typeof useUpsertSettingPermissionsMutation>;
-export type UpsertSettingPermissionsMutationResult = Apollo.MutationResult<UpsertSettingPermissionsMutation>;
-export type UpsertSettingPermissionsMutationOptions = Apollo.BaseMutationOptions<UpsertSettingPermissionsMutation, UpsertSettingPermissionsMutationVariables>;
-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<GetRolesQuery, GetRolesQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetRolesQuery, GetRolesQueryVariables>(GetRolesDocument, options);
- }
-export function useGetRolesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetRolesQuery, GetRolesQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetRolesQuery, GetRolesQueryVariables>(GetRolesDocument, options);
- }
-export type GetRolesQueryHookResult = ReturnType<typeof useGetRolesQuery>;
-export type GetRolesLazyQueryHookResult = ReturnType<typeof useGetRolesLazyQuery>;
-export type GetRolesQueryResult = Apollo.QueryResult<GetRolesQuery, GetRolesQueryVariables>;
-export const CreateApprovedAccessDomainDocument = gql`
- mutation CreateApprovedAccessDomain($input: CreateApprovedAccessDomainInput!) {
- createApprovedAccessDomain(input: $input) {
- id
- domain
- isValidated
- createdAt
- }
-}
- `;
-export type CreateApprovedAccessDomainMutationFn = Apollo.MutationFunction<CreateApprovedAccessDomainMutation, CreateApprovedAccessDomainMutationVariables>;
-
-/**
- * __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<CreateApprovedAccessDomainMutation, CreateApprovedAccessDomainMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CreateApprovedAccessDomainMutation, CreateApprovedAccessDomainMutationVariables>(CreateApprovedAccessDomainDocument, options);
- }
-export type CreateApprovedAccessDomainMutationHookResult = ReturnType<typeof useCreateApprovedAccessDomainMutation>;
-export type CreateApprovedAccessDomainMutationResult = Apollo.MutationResult<CreateApprovedAccessDomainMutation>;
-export type CreateApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions<CreateApprovedAccessDomainMutation, CreateApprovedAccessDomainMutationVariables>;
-export const CreateOidcIdentityProviderDocument = gql`
- mutation CreateOIDCIdentityProvider($input: SetupOIDCSsoInput!) {
- createOIDCIdentityProvider(input: $input) {
- id
- type
- issuer
- name
- status
- }
-}
- `;
-export type CreateOidcIdentityProviderMutationFn = Apollo.MutationFunction<CreateOidcIdentityProviderMutation, CreateOidcIdentityProviderMutationVariables>;
-
-/**
- * __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<CreateOidcIdentityProviderMutation, CreateOidcIdentityProviderMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CreateOidcIdentityProviderMutation, CreateOidcIdentityProviderMutationVariables>(CreateOidcIdentityProviderDocument, options);
- }
-export type CreateOidcIdentityProviderMutationHookResult = ReturnType<typeof useCreateOidcIdentityProviderMutation>;
-export type CreateOidcIdentityProviderMutationResult = Apollo.MutationResult<CreateOidcIdentityProviderMutation>;
-export type CreateOidcIdentityProviderMutationOptions = Apollo.BaseMutationOptions<CreateOidcIdentityProviderMutation, CreateOidcIdentityProviderMutationVariables>;
-export const CreateSamlIdentityProviderDocument = gql`
- mutation CreateSAMLIdentityProvider($input: SetupSAMLSsoInput!) {
- createSAMLIdentityProvider(input: $input) {
- id
- type
- issuer
- name
- status
- }
-}
- `;
-export type CreateSamlIdentityProviderMutationFn = Apollo.MutationFunction<CreateSamlIdentityProviderMutation, CreateSamlIdentityProviderMutationVariables>;
-
-/**
- * __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<CreateSamlIdentityProviderMutation, CreateSamlIdentityProviderMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CreateSamlIdentityProviderMutation, CreateSamlIdentityProviderMutationVariables>(CreateSamlIdentityProviderDocument, options);
- }
-export type CreateSamlIdentityProviderMutationHookResult = ReturnType<typeof useCreateSamlIdentityProviderMutation>;
-export type CreateSamlIdentityProviderMutationResult = Apollo.MutationResult<CreateSamlIdentityProviderMutation>;
-export type CreateSamlIdentityProviderMutationOptions = Apollo.BaseMutationOptions<CreateSamlIdentityProviderMutation, CreateSamlIdentityProviderMutationVariables>;
-export const DeleteApprovedAccessDomainDocument = gql`
- mutation DeleteApprovedAccessDomain($input: DeleteApprovedAccessDomainInput!) {
- deleteApprovedAccessDomain(input: $input)
-}
- `;
-export type DeleteApprovedAccessDomainMutationFn = Apollo.MutationFunction<DeleteApprovedAccessDomainMutation, DeleteApprovedAccessDomainMutationVariables>;
-
-/**
- * __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<DeleteApprovedAccessDomainMutation, DeleteApprovedAccessDomainMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeleteApprovedAccessDomainMutation, DeleteApprovedAccessDomainMutationVariables>(DeleteApprovedAccessDomainDocument, options);
- }
-export type DeleteApprovedAccessDomainMutationHookResult = ReturnType<typeof useDeleteApprovedAccessDomainMutation>;
-export type DeleteApprovedAccessDomainMutationResult = Apollo.MutationResult<DeleteApprovedAccessDomainMutation>;
-export type DeleteApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions<DeleteApprovedAccessDomainMutation, DeleteApprovedAccessDomainMutationVariables>;
-export const DeleteSsoIdentityProviderDocument = gql`
- mutation DeleteSSOIdentityProvider($input: DeleteSsoInput!) {
- deleteSSOIdentityProvider(input: $input) {
- identityProviderId
- }
-}
- `;
-export type DeleteSsoIdentityProviderMutationFn = Apollo.MutationFunction<DeleteSsoIdentityProviderMutation, DeleteSsoIdentityProviderMutationVariables>;
-
-/**
- * __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<DeleteSsoIdentityProviderMutation, DeleteSsoIdentityProviderMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeleteSsoIdentityProviderMutation, DeleteSsoIdentityProviderMutationVariables>(DeleteSsoIdentityProviderDocument, options);
- }
-export type DeleteSsoIdentityProviderMutationHookResult = ReturnType<typeof useDeleteSsoIdentityProviderMutation>;
-export type DeleteSsoIdentityProviderMutationResult = Apollo.MutationResult<DeleteSsoIdentityProviderMutation>;
-export type DeleteSsoIdentityProviderMutationOptions = Apollo.BaseMutationOptions<DeleteSsoIdentityProviderMutation, DeleteSsoIdentityProviderMutationVariables>;
-export const EditSsoIdentityProviderDocument = gql`
- mutation EditSSOIdentityProvider($input: EditSsoInput!) {
- editSSOIdentityProvider(input: $input) {
- id
- type
- issuer
- name
- status
- }
-}
- `;
-export type EditSsoIdentityProviderMutationFn = Apollo.MutationFunction<EditSsoIdentityProviderMutation, EditSsoIdentityProviderMutationVariables>;
-
-/**
- * __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<EditSsoIdentityProviderMutation, EditSsoIdentityProviderMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<EditSsoIdentityProviderMutation, EditSsoIdentityProviderMutationVariables>(EditSsoIdentityProviderDocument, options);
- }
-export type EditSsoIdentityProviderMutationHookResult = ReturnType<typeof useEditSsoIdentityProviderMutation>;
-export type EditSsoIdentityProviderMutationResult = Apollo.MutationResult<EditSsoIdentityProviderMutation>;
-export type EditSsoIdentityProviderMutationOptions = Apollo.BaseMutationOptions<EditSsoIdentityProviderMutation, EditSsoIdentityProviderMutationVariables>;
-export const ValidateApprovedAccessDomainDocument = gql`
- mutation ValidateApprovedAccessDomain($input: ValidateApprovedAccessDomainInput!) {
- validateApprovedAccessDomain(input: $input) {
- id
- isValidated
- domain
- createdAt
- }
-}
- `;
-export type ValidateApprovedAccessDomainMutationFn = Apollo.MutationFunction<ValidateApprovedAccessDomainMutation, ValidateApprovedAccessDomainMutationVariables>;
-
-/**
- * __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<ValidateApprovedAccessDomainMutation, ValidateApprovedAccessDomainMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<ValidateApprovedAccessDomainMutation, ValidateApprovedAccessDomainMutationVariables>(ValidateApprovedAccessDomainDocument, options);
- }
-export type ValidateApprovedAccessDomainMutationHookResult = ReturnType<typeof useValidateApprovedAccessDomainMutation>;
-export type ValidateApprovedAccessDomainMutationResult = Apollo.MutationResult<ValidateApprovedAccessDomainMutation>;
-export type ValidateApprovedAccessDomainMutationOptions = Apollo.BaseMutationOptions<ValidateApprovedAccessDomainMutation, ValidateApprovedAccessDomainMutationVariables>;
-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<GetApprovedAccessDomainsQuery, GetApprovedAccessDomainsQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetApprovedAccessDomainsQuery, GetApprovedAccessDomainsQueryVariables>(GetApprovedAccessDomainsDocument, options);
- }
-export function useGetApprovedAccessDomainsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetApprovedAccessDomainsQuery, GetApprovedAccessDomainsQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetApprovedAccessDomainsQuery, GetApprovedAccessDomainsQueryVariables>(GetApprovedAccessDomainsDocument, options);
- }
-export type GetApprovedAccessDomainsQueryHookResult = ReturnType<typeof useGetApprovedAccessDomainsQuery>;
-export type GetApprovedAccessDomainsLazyQueryHookResult = ReturnType<typeof useGetApprovedAccessDomainsLazyQuery>;
-export type GetApprovedAccessDomainsQueryResult = Apollo.QueryResult<GetApprovedAccessDomainsQuery, GetApprovedAccessDomainsQueryVariables>;
-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<GetSsoIdentityProvidersQuery, GetSsoIdentityProvidersQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetSsoIdentityProvidersQuery, GetSsoIdentityProvidersQueryVariables>(GetSsoIdentityProvidersDocument, options);
- }
-export function useGetSsoIdentityProvidersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetSsoIdentityProvidersQuery, GetSsoIdentityProvidersQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetSsoIdentityProvidersQuery, GetSsoIdentityProvidersQueryVariables>(GetSsoIdentityProvidersDocument, options);
- }
-export type GetSsoIdentityProvidersQueryHookResult = ReturnType<typeof useGetSsoIdentityProvidersQuery>;
-export type GetSsoIdentityProvidersLazyQueryHookResult = ReturnType<typeof useGetSsoIdentityProvidersLazyQuery>;
-export type GetSsoIdentityProvidersQueryResult = Apollo.QueryResult<GetSsoIdentityProvidersQuery, GetSsoIdentityProvidersQueryVariables>;
-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<OnDbEventSubscription, OnDbEventSubscriptionVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useSubscription<OnDbEventSubscription, OnDbEventSubscriptionVariables>(OnDbEventDocument, options);
- }
-export type OnDbEventSubscriptionHookResult = ReturnType<typeof useOnDbEventSubscription>;
-export type OnDbEventSubscriptionResult = Apollo.SubscriptionResult<OnDbEventSubscription>;
-export const DeleteUserAccountDocument = gql`
- mutation DeleteUserAccount {
- deleteUser {
- id
- }
-}
- `;
-export type DeleteUserAccountMutationFn = Apollo.MutationFunction<DeleteUserAccountMutation, DeleteUserAccountMutationVariables>;
-
-/**
- * __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<DeleteUserAccountMutation, DeleteUserAccountMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeleteUserAccountMutation, DeleteUserAccountMutationVariables>(DeleteUserAccountDocument, options);
- }
-export type DeleteUserAccountMutationHookResult = ReturnType<typeof useDeleteUserAccountMutation>;
-export type DeleteUserAccountMutationResult = Apollo.MutationResult<DeleteUserAccountMutation>;
-export type DeleteUserAccountMutationOptions = Apollo.BaseMutationOptions<DeleteUserAccountMutation, DeleteUserAccountMutationVariables>;
-export const UploadProfilePictureDocument = gql`
- mutation UploadProfilePicture($file: Upload!) {
- uploadProfilePicture(file: $file) {
- path
- token
- }
-}
- `;
-export type UploadProfilePictureMutationFn = Apollo.MutationFunction<UploadProfilePictureMutation, UploadProfilePictureMutationVariables>;
-
-/**
- * __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<UploadProfilePictureMutation, UploadProfilePictureMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UploadProfilePictureMutation, UploadProfilePictureMutationVariables>(UploadProfilePictureDocument, options);
- }
-export type UploadProfilePictureMutationHookResult = ReturnType<typeof useUploadProfilePictureMutation>;
-export type UploadProfilePictureMutationResult = Apollo.MutationResult<UploadProfilePictureMutation>;
-export type UploadProfilePictureMutationOptions = Apollo.BaseMutationOptions<UploadProfilePictureMutation, UploadProfilePictureMutationVariables>;
-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<GetCurrentUserQuery, GetCurrentUserQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetCurrentUserQuery, GetCurrentUserQueryVariables>(GetCurrentUserDocument, options);
- }
-export function useGetCurrentUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetCurrentUserQuery, GetCurrentUserQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetCurrentUserQuery, GetCurrentUserQueryVariables>(GetCurrentUserDocument, options);
- }
-export type GetCurrentUserQueryHookResult = ReturnType<typeof useGetCurrentUserQuery>;
-export type GetCurrentUserLazyQueryHookResult = ReturnType<typeof useGetCurrentUserLazyQuery>;
-export type GetCurrentUserQueryResult = Apollo.QueryResult<GetCurrentUserQuery, GetCurrentUserQueryVariables>;
-export const ActivateWorkflowVersionDocument = gql`
- mutation ActivateWorkflowVersion($workflowVersionId: String!) {
- activateWorkflowVersion(workflowVersionId: $workflowVersionId)
-}
- `;
-export type ActivateWorkflowVersionMutationFn = Apollo.MutationFunction<ActivateWorkflowVersionMutation, ActivateWorkflowVersionMutationVariables>;
-
-/**
- * __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<ActivateWorkflowVersionMutation, ActivateWorkflowVersionMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<ActivateWorkflowVersionMutation, ActivateWorkflowVersionMutationVariables>(ActivateWorkflowVersionDocument, options);
- }
-export type ActivateWorkflowVersionMutationHookResult = ReturnType<typeof useActivateWorkflowVersionMutation>;
-export type ActivateWorkflowVersionMutationResult = Apollo.MutationResult<ActivateWorkflowVersionMutation>;
-export type ActivateWorkflowVersionMutationOptions = Apollo.BaseMutationOptions<ActivateWorkflowVersionMutation, ActivateWorkflowVersionMutationVariables>;
-export const ComputeStepOutputSchemaDocument = gql`
- mutation ComputeStepOutputSchema($input: ComputeStepOutputSchemaInput!) {
- computeStepOutputSchema(input: $input)
-}
- `;
-export type ComputeStepOutputSchemaMutationFn = Apollo.MutationFunction<ComputeStepOutputSchemaMutation, ComputeStepOutputSchemaMutationVariables>;
-
-/**
- * __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<ComputeStepOutputSchemaMutation, ComputeStepOutputSchemaMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<ComputeStepOutputSchemaMutation, ComputeStepOutputSchemaMutationVariables>(ComputeStepOutputSchemaDocument, options);
- }
-export type ComputeStepOutputSchemaMutationHookResult = ReturnType<typeof useComputeStepOutputSchemaMutation>;
-export type ComputeStepOutputSchemaMutationResult = Apollo.MutationResult<ComputeStepOutputSchemaMutation>;
-export type ComputeStepOutputSchemaMutationOptions = Apollo.BaseMutationOptions<ComputeStepOutputSchemaMutation, ComputeStepOutputSchemaMutationVariables>;
-export const CreateDraftFromWorkflowVersionDocument = gql`
- mutation CreateDraftFromWorkflowVersion($input: CreateDraftFromWorkflowVersionInput!) {
- createDraftFromWorkflowVersion(input: $input) {
- id
- }
-}
- `;
-export type CreateDraftFromWorkflowVersionMutationFn = Apollo.MutationFunction<CreateDraftFromWorkflowVersionMutation, CreateDraftFromWorkflowVersionMutationVariables>;
-
-/**
- * __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<CreateDraftFromWorkflowVersionMutation, CreateDraftFromWorkflowVersionMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CreateDraftFromWorkflowVersionMutation, CreateDraftFromWorkflowVersionMutationVariables>(CreateDraftFromWorkflowVersionDocument, options);
- }
-export type CreateDraftFromWorkflowVersionMutationHookResult = ReturnType<typeof useCreateDraftFromWorkflowVersionMutation>;
-export type CreateDraftFromWorkflowVersionMutationResult = Apollo.MutationResult<CreateDraftFromWorkflowVersionMutation>;
-export type CreateDraftFromWorkflowVersionMutationOptions = Apollo.BaseMutationOptions<CreateDraftFromWorkflowVersionMutation, CreateDraftFromWorkflowVersionMutationVariables>;
-export const CreateWorkflowVersionStepDocument = gql`
- mutation CreateWorkflowVersionStep($input: CreateWorkflowVersionStepInput!) {
- createWorkflowVersionStep(input: $input) {
- id
- name
- type
- settings
- valid
- nextStepIds
- }
-}
- `;
-export type CreateWorkflowVersionStepMutationFn = Apollo.MutationFunction<CreateWorkflowVersionStepMutation, CreateWorkflowVersionStepMutationVariables>;
-
-/**
- * __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<CreateWorkflowVersionStepMutation, CreateWorkflowVersionStepMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CreateWorkflowVersionStepMutation, CreateWorkflowVersionStepMutationVariables>(CreateWorkflowVersionStepDocument, options);
- }
-export type CreateWorkflowVersionStepMutationHookResult = ReturnType<typeof useCreateWorkflowVersionStepMutation>;
-export type CreateWorkflowVersionStepMutationResult = Apollo.MutationResult<CreateWorkflowVersionStepMutation>;
-export type CreateWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions<CreateWorkflowVersionStepMutation, CreateWorkflowVersionStepMutationVariables>;
-export const DeactivateWorkflowVersionDocument = gql`
- mutation DeactivateWorkflowVersion($workflowVersionId: String!) {
- deactivateWorkflowVersion(workflowVersionId: $workflowVersionId)
-}
- `;
-export type DeactivateWorkflowVersionMutationFn = Apollo.MutationFunction<DeactivateWorkflowVersionMutation, DeactivateWorkflowVersionMutationVariables>;
-
-/**
- * __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<DeactivateWorkflowVersionMutation, DeactivateWorkflowVersionMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeactivateWorkflowVersionMutation, DeactivateWorkflowVersionMutationVariables>(DeactivateWorkflowVersionDocument, options);
- }
-export type DeactivateWorkflowVersionMutationHookResult = ReturnType<typeof useDeactivateWorkflowVersionMutation>;
-export type DeactivateWorkflowVersionMutationResult = Apollo.MutationResult<DeactivateWorkflowVersionMutation>;
-export type DeactivateWorkflowVersionMutationOptions = Apollo.BaseMutationOptions<DeactivateWorkflowVersionMutation, DeactivateWorkflowVersionMutationVariables>;
-export const DeleteWorkflowVersionStepDocument = gql`
- mutation DeleteWorkflowVersionStep($input: DeleteWorkflowVersionStepInput!) {
- deleteWorkflowVersionStep(input: $input) {
- id
- name
- type
- settings
- valid
- nextStepIds
- }
-}
- `;
-export type DeleteWorkflowVersionStepMutationFn = Apollo.MutationFunction<DeleteWorkflowVersionStepMutation, DeleteWorkflowVersionStepMutationVariables>;
-
-/**
- * __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<DeleteWorkflowVersionStepMutation, DeleteWorkflowVersionStepMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeleteWorkflowVersionStepMutation, DeleteWorkflowVersionStepMutationVariables>(DeleteWorkflowVersionStepDocument, options);
- }
-export type DeleteWorkflowVersionStepMutationHookResult = ReturnType<typeof useDeleteWorkflowVersionStepMutation>;
-export type DeleteWorkflowVersionStepMutationResult = Apollo.MutationResult<DeleteWorkflowVersionStepMutation>;
-export type DeleteWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions<DeleteWorkflowVersionStepMutation, DeleteWorkflowVersionStepMutationVariables>;
-export const RunWorkflowVersionDocument = gql`
- mutation RunWorkflowVersion($input: RunWorkflowVersionInput!) {
- runWorkflowVersion(input: $input) {
- workflowRunId
- }
-}
- `;
-export type RunWorkflowVersionMutationFn = Apollo.MutationFunction<RunWorkflowVersionMutation, RunWorkflowVersionMutationVariables>;
-
-/**
- * __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<RunWorkflowVersionMutation, RunWorkflowVersionMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<RunWorkflowVersionMutation, RunWorkflowVersionMutationVariables>(RunWorkflowVersionDocument, options);
- }
-export type RunWorkflowVersionMutationHookResult = ReturnType<typeof useRunWorkflowVersionMutation>;
-export type RunWorkflowVersionMutationResult = Apollo.MutationResult<RunWorkflowVersionMutation>;
-export type RunWorkflowVersionMutationOptions = Apollo.BaseMutationOptions<RunWorkflowVersionMutation, RunWorkflowVersionMutationVariables>;
-export const UpdateWorkflowRunStepDocument = gql`
- mutation UpdateWorkflowRunStep($input: UpdateWorkflowRunStepInput!) {
- updateWorkflowRunStep(input: $input) {
- id
- name
- type
- settings
- valid
- nextStepIds
- }
-}
- `;
-export type UpdateWorkflowRunStepMutationFn = Apollo.MutationFunction<UpdateWorkflowRunStepMutation, UpdateWorkflowRunStepMutationVariables>;
-
-/**
- * __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<UpdateWorkflowRunStepMutation, UpdateWorkflowRunStepMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateWorkflowRunStepMutation, UpdateWorkflowRunStepMutationVariables>(UpdateWorkflowRunStepDocument, options);
- }
-export type UpdateWorkflowRunStepMutationHookResult = ReturnType<typeof useUpdateWorkflowRunStepMutation>;
-export type UpdateWorkflowRunStepMutationResult = Apollo.MutationResult<UpdateWorkflowRunStepMutation>;
-export type UpdateWorkflowRunStepMutationOptions = Apollo.BaseMutationOptions<UpdateWorkflowRunStepMutation, UpdateWorkflowRunStepMutationVariables>;
-export const UpdateWorkflowVersionStepDocument = gql`
- mutation UpdateWorkflowVersionStep($input: UpdateWorkflowVersionStepInput!) {
- updateWorkflowVersionStep(input: $input) {
- id
- name
- type
- settings
- valid
- nextStepIds
- }
-}
- `;
-export type UpdateWorkflowVersionStepMutationFn = Apollo.MutationFunction<UpdateWorkflowVersionStepMutation, UpdateWorkflowVersionStepMutationVariables>;
-
-/**
- * __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<UpdateWorkflowVersionStepMutation, UpdateWorkflowVersionStepMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateWorkflowVersionStepMutation, UpdateWorkflowVersionStepMutationVariables>(UpdateWorkflowVersionStepDocument, options);
- }
-export type UpdateWorkflowVersionStepMutationHookResult = ReturnType<typeof useUpdateWorkflowVersionStepMutation>;
-export type UpdateWorkflowVersionStepMutationResult = Apollo.MutationResult<UpdateWorkflowVersionStepMutation>;
-export type UpdateWorkflowVersionStepMutationOptions = Apollo.BaseMutationOptions<UpdateWorkflowVersionStepMutation, UpdateWorkflowVersionStepMutationVariables>;
-export const AssignRoleToAgentDocument = gql`
- mutation AssignRoleToAgent($agentId: UUID!, $roleId: UUID!) {
- assignRoleToAgent(agentId: $agentId, roleId: $roleId)
-}
- `;
-export type AssignRoleToAgentMutationFn = Apollo.MutationFunction<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>;
-
-/**
- * __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<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>(AssignRoleToAgentDocument, options);
- }
-export type AssignRoleToAgentMutationHookResult = ReturnType<typeof useAssignRoleToAgentMutation>;
-export type AssignRoleToAgentMutationResult = Apollo.MutationResult<AssignRoleToAgentMutation>;
-export type AssignRoleToAgentMutationOptions = Apollo.BaseMutationOptions<AssignRoleToAgentMutation, AssignRoleToAgentMutationVariables>;
-export const RemoveRoleFromAgentDocument = gql`
- mutation RemoveRoleFromAgent($agentId: UUID!) {
- removeRoleFromAgent(agentId: $agentId)
-}
- `;
-export type RemoveRoleFromAgentMutationFn = Apollo.MutationFunction<RemoveRoleFromAgentMutation, RemoveRoleFromAgentMutationVariables>;
-
-/**
- * __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<RemoveRoleFromAgentMutation, RemoveRoleFromAgentMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<RemoveRoleFromAgentMutation, RemoveRoleFromAgentMutationVariables>(RemoveRoleFromAgentDocument, options);
- }
-export type RemoveRoleFromAgentMutationHookResult = ReturnType<typeof useRemoveRoleFromAgentMutation>;
-export type RemoveRoleFromAgentMutationResult = Apollo.MutationResult<RemoveRoleFromAgentMutation>;
-export type RemoveRoleFromAgentMutationOptions = Apollo.BaseMutationOptions<RemoveRoleFromAgentMutation, RemoveRoleFromAgentMutationVariables>;
-export const UpdateOneAgentDocument = gql`
- mutation UpdateOneAgent($input: UpdateAgentInput!) {
- updateOneAgent(input: $input) {
- id
- name
- description
- prompt
- modelId
- responseFormat
- }
-}
- `;
-export type UpdateOneAgentMutationFn = Apollo.MutationFunction<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>;
-
-/**
- * __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<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>(UpdateOneAgentDocument, options);
- }
-export type UpdateOneAgentMutationHookResult = ReturnType<typeof useUpdateOneAgentMutation>;
-export type UpdateOneAgentMutationResult = Apollo.MutationResult<UpdateOneAgentMutation>;
-export type UpdateOneAgentMutationOptions = Apollo.BaseMutationOptions<UpdateOneAgentMutation, UpdateOneAgentMutationVariables>;
-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<FindOneAgentQuery, FindOneAgentQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<FindOneAgentQuery, FindOneAgentQueryVariables>(FindOneAgentDocument, options);
- }
-export function useFindOneAgentLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<FindOneAgentQuery, FindOneAgentQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<FindOneAgentQuery, FindOneAgentQueryVariables>(FindOneAgentDocument, options);
- }
-export type FindOneAgentQueryHookResult = ReturnType<typeof useFindOneAgentQuery>;
-export type FindOneAgentLazyQueryHookResult = ReturnType<typeof useFindOneAgentLazyQuery>;
-export type FindOneAgentQueryResult = Apollo.QueryResult<FindOneAgentQuery, FindOneAgentQueryVariables>;
-export const SubmitFormStepDocument = gql`
- mutation SubmitFormStep($input: SubmitFormStepInput!) {
- submitFormStep(input: $input)
-}
- `;
-export type SubmitFormStepMutationFn = Apollo.MutationFunction<SubmitFormStepMutation, SubmitFormStepMutationVariables>;
-
-/**
- * __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<SubmitFormStepMutation, SubmitFormStepMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SubmitFormStepMutation, SubmitFormStepMutationVariables>(SubmitFormStepDocument, options);
- }
-export type SubmitFormStepMutationHookResult = ReturnType<typeof useSubmitFormStepMutation>;
-export type SubmitFormStepMutationResult = Apollo.MutationResult<SubmitFormStepMutation>;
-export type SubmitFormStepMutationOptions = Apollo.BaseMutationOptions<SubmitFormStepMutation, SubmitFormStepMutationVariables>;
-export const DeleteWorkspaceInvitationDocument = gql`
- mutation DeleteWorkspaceInvitation($appTokenId: String!) {
- deleteWorkspaceInvitation(appTokenId: $appTokenId)
-}
- `;
-export type DeleteWorkspaceInvitationMutationFn = Apollo.MutationFunction<DeleteWorkspaceInvitationMutation, DeleteWorkspaceInvitationMutationVariables>;
-
-/**
- * __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<DeleteWorkspaceInvitationMutation, DeleteWorkspaceInvitationMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeleteWorkspaceInvitationMutation, DeleteWorkspaceInvitationMutationVariables>(DeleteWorkspaceInvitationDocument, options);
- }
-export type DeleteWorkspaceInvitationMutationHookResult = ReturnType<typeof useDeleteWorkspaceInvitationMutation>;
-export type DeleteWorkspaceInvitationMutationResult = Apollo.MutationResult<DeleteWorkspaceInvitationMutation>;
-export type DeleteWorkspaceInvitationMutationOptions = Apollo.BaseMutationOptions<DeleteWorkspaceInvitationMutation, DeleteWorkspaceInvitationMutationVariables>;
-export const ResendWorkspaceInvitationDocument = gql`
- mutation ResendWorkspaceInvitation($appTokenId: String!) {
- resendWorkspaceInvitation(appTokenId: $appTokenId) {
- success
- errors
- result {
- ... on WorkspaceInvitation {
- id
- email
- expiresAt
- }
- }
- }
-}
- `;
-export type ResendWorkspaceInvitationMutationFn = Apollo.MutationFunction<ResendWorkspaceInvitationMutation, ResendWorkspaceInvitationMutationVariables>;
-
-/**
- * __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<ResendWorkspaceInvitationMutation, ResendWorkspaceInvitationMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<ResendWorkspaceInvitationMutation, ResendWorkspaceInvitationMutationVariables>(ResendWorkspaceInvitationDocument, options);
- }
-export type ResendWorkspaceInvitationMutationHookResult = ReturnType<typeof useResendWorkspaceInvitationMutation>;
-export type ResendWorkspaceInvitationMutationResult = Apollo.MutationResult<ResendWorkspaceInvitationMutation>;
-export type ResendWorkspaceInvitationMutationOptions = Apollo.BaseMutationOptions<ResendWorkspaceInvitationMutation, ResendWorkspaceInvitationMutationVariables>;
-export const SendInvitationsDocument = gql`
- mutation SendInvitations($emails: [String!]!) {
- sendInvitations(emails: $emails) {
- success
- errors
- result {
- ... on WorkspaceInvitation {
- id
- email
- expiresAt
- }
- }
- }
-}
- `;
-export type SendInvitationsMutationFn = Apollo.MutationFunction<SendInvitationsMutation, SendInvitationsMutationVariables>;
-
-/**
- * __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<SendInvitationsMutation, SendInvitationsMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<SendInvitationsMutation, SendInvitationsMutationVariables>(SendInvitationsDocument, options);
- }
-export type SendInvitationsMutationHookResult = ReturnType<typeof useSendInvitationsMutation>;
-export type SendInvitationsMutationResult = Apollo.MutationResult<SendInvitationsMutation>;
-export type SendInvitationsMutationOptions = Apollo.BaseMutationOptions<SendInvitationsMutation, SendInvitationsMutationVariables>;
-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<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>(GetWorkspaceInvitationsDocument, options);
- }
-export function useGetWorkspaceInvitationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>(GetWorkspaceInvitationsDocument, options);
- }
-export type GetWorkspaceInvitationsQueryHookResult = ReturnType<typeof useGetWorkspaceInvitationsQuery>;
-export type GetWorkspaceInvitationsLazyQueryHookResult = ReturnType<typeof useGetWorkspaceInvitationsLazyQuery>;
-export type GetWorkspaceInvitationsQueryResult = Apollo.QueryResult<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>;
-export const ActivateWorkspaceDocument = gql`
- mutation ActivateWorkspace($input: ActivateWorkspaceInput!) {
- activateWorkspace(data: $input) {
- id
- }
-}
- `;
-export type ActivateWorkspaceMutationFn = Apollo.MutationFunction<ActivateWorkspaceMutation, ActivateWorkspaceMutationVariables>;
-
-/**
- * __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<ActivateWorkspaceMutation, ActivateWorkspaceMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<ActivateWorkspaceMutation, ActivateWorkspaceMutationVariables>(ActivateWorkspaceDocument, options);
- }
-export type ActivateWorkspaceMutationHookResult = ReturnType<typeof useActivateWorkspaceMutation>;
-export type ActivateWorkspaceMutationResult = Apollo.MutationResult<ActivateWorkspaceMutation>;
-export type ActivateWorkspaceMutationOptions = Apollo.BaseMutationOptions<ActivateWorkspaceMutation, ActivateWorkspaceMutationVariables>;
-export const DeleteCurrentWorkspaceDocument = gql`
- mutation DeleteCurrentWorkspace {
- deleteCurrentWorkspace {
- id
- }
-}
- `;
-export type DeleteCurrentWorkspaceMutationFn = Apollo.MutationFunction<DeleteCurrentWorkspaceMutation, DeleteCurrentWorkspaceMutationVariables>;
-
-/**
- * __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<DeleteCurrentWorkspaceMutation, DeleteCurrentWorkspaceMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<DeleteCurrentWorkspaceMutation, DeleteCurrentWorkspaceMutationVariables>(DeleteCurrentWorkspaceDocument, options);
- }
-export type DeleteCurrentWorkspaceMutationHookResult = ReturnType<typeof useDeleteCurrentWorkspaceMutation>;
-export type DeleteCurrentWorkspaceMutationResult = Apollo.MutationResult<DeleteCurrentWorkspaceMutation>;
-export type DeleteCurrentWorkspaceMutationOptions = Apollo.BaseMutationOptions<DeleteCurrentWorkspaceMutation, DeleteCurrentWorkspaceMutationVariables>;
-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<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>;
-
-/**
- * __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<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>(UpdateWorkspaceDocument, options);
- }
-export type UpdateWorkspaceMutationHookResult = ReturnType<typeof useUpdateWorkspaceMutation>;
-export type UpdateWorkspaceMutationResult = Apollo.MutationResult<UpdateWorkspaceMutation>;
-export type UpdateWorkspaceMutationOptions = Apollo.BaseMutationOptions<UpdateWorkspaceMutation, UpdateWorkspaceMutationVariables>;
-export const UploadWorkspaceLogoDocument = gql`
- mutation UploadWorkspaceLogo($file: Upload!) {
- uploadWorkspaceLogo(file: $file) {
- path
- token
- }
-}
- `;
-export type UploadWorkspaceLogoMutationFn = Apollo.MutationFunction<UploadWorkspaceLogoMutation, UploadWorkspaceLogoMutationVariables>;
-
-/**
- * __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<UploadWorkspaceLogoMutation, UploadWorkspaceLogoMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<UploadWorkspaceLogoMutation, UploadWorkspaceLogoMutationVariables>(UploadWorkspaceLogoDocument, options);
- }
-export type UploadWorkspaceLogoMutationHookResult = ReturnType<typeof useUploadWorkspaceLogoMutation>;
-export type UploadWorkspaceLogoMutationResult = Apollo.MutationResult<UploadWorkspaceLogoMutation>;
-export type UploadWorkspaceLogoMutationOptions = Apollo.BaseMutationOptions<UploadWorkspaceLogoMutation, UploadWorkspaceLogoMutationVariables>;
-export const CheckCustomDomainValidRecordsDocument = gql`
- mutation CheckCustomDomainValidRecords {
- checkCustomDomainValidRecords {
- id
- customDomain
- records {
- type
- key
- value
- validationType
- status
- }
- }
-}
- `;
-export type CheckCustomDomainValidRecordsMutationFn = Apollo.MutationFunction<CheckCustomDomainValidRecordsMutation, CheckCustomDomainValidRecordsMutationVariables>;
-
-/**
- * __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<CheckCustomDomainValidRecordsMutation, CheckCustomDomainValidRecordsMutationVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useMutation<CheckCustomDomainValidRecordsMutation, CheckCustomDomainValidRecordsMutationVariables>(CheckCustomDomainValidRecordsDocument, options);
- }
-export type CheckCustomDomainValidRecordsMutationHookResult = ReturnType<typeof useCheckCustomDomainValidRecordsMutation>;
-export type CheckCustomDomainValidRecordsMutationResult = Apollo.MutationResult<CheckCustomDomainValidRecordsMutation>;
-export type CheckCustomDomainValidRecordsMutationOptions = Apollo.BaseMutationOptions<CheckCustomDomainValidRecordsMutation, CheckCustomDomainValidRecordsMutationVariables>;
-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<GetWorkspaceFromInviteHashQuery, GetWorkspaceFromInviteHashQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useQuery<GetWorkspaceFromInviteHashQuery, GetWorkspaceFromInviteHashQueryVariables>(GetWorkspaceFromInviteHashDocument, options);
- }
-export function useGetWorkspaceFromInviteHashLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetWorkspaceFromInviteHashQuery, GetWorkspaceFromInviteHashQueryVariables>) {
- const options = {...defaultOptions, ...baseOptions}
- return Apollo.useLazyQuery<GetWorkspaceFromInviteHashQuery, GetWorkspaceFromInviteHashQueryVariables>(GetWorkspaceFromInviteHashDocument, options);
- }
-export type GetWorkspaceFromInviteHashQueryHookResult = ReturnType<typeof useGetWorkspaceFromInviteHashQuery>;
-export type GetWorkspaceFromInviteHashLazyQueryHookResult = ReturnType<typeof useGetWorkspaceFromInviteHashLazyQuery>;
-export type GetWorkspaceFromInviteHashQueryResult = Apollo.QueryResult<GetWorkspaceFromInviteHashQuery, GetWorkspaceFromInviteHashQueryVariables>;
\ 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 f88ce944415..84f64995b63 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 5a408b25c74..fa1a99a8079 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<Attachment>({
diff --git a/packages/twenty-front/src/modules/activities/hooks/useCreateActivityInDB.ts b/packages/twenty-front/src/modules/activities/hooks/useCreateActivityInDB.ts
index 4278ef7cf1b..69a1a0f977a 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 4f057c7b79e..261cdba48c4 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 a12fa61ec28..525e7a275d0 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 0de8afedd4b..b263900a68b 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 3ebca4b8481..35d6abc16f1 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 = () => {
<ChromeExtensionSidecarProvider>
<UserProvider>
<AuthProvider>
- <ApolloMetadataClientProvider>
+ <ApolloCoreProvider>
<ObjectMetadataItemsLoadEffect />
<ObjectMetadataItemsProvider>
<PrefetchDataProvider>
@@ -67,7 +67,7 @@ export const AppRouterProviders = () => {
</PrefetchDataProvider>
<PageChangeEffect />
</ObjectMetadataItemsProvider>
- </ApolloMetadataClientProvider>
+ </ApolloCoreProvider>
</AuthProvider>
</UserProvider>
</ChromeExtensionSidecarProvider>
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 4d5c8bd8b4b..8833fadda05 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 1bfae46b96d..2bf9f12f88c 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 68a57704f28..7826f52c8b8 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 7e4592e7470..40fbdfe832e 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 6b50d85ec2a..757b849953b 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 8e080143aee..b14c244dda9 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 c41af9fce1a..17690aaafda 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 60aea7a9972..ab524e037d5 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 c5f17ff4207..a0920586bac 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 cd1f7f3d279..473cdf4f375 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 9fe194ec3db..6065614142a 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 db10b8f3c05..6d9ab61f0e5 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 d98e7e4e12d..8ae24efb78b 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 13731765397..31ca94ffe3a 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 dc01f564165..d90146baa8e 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 cc10c9d2e1b..5489aa2a527 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 ed8ee1cbba5..27d92a78e1b 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 b5da7e1eadc..6c6e6de33ea 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 979249183da..c32b42a6822 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 c3b67d44568..f6136db8c00 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 70bf67d65c3..688cfbdc0ea 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 423afa96027..01ca10bb522 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 4fcc930a283..d318cee34ef 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 201149ff264..69643e95240 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 0b5622f02fd..0f81ac1909e 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 2c5dbb72c9e..78f2aeae9da 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 00000000000..d616697ef71
--- /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 (
+ <ApolloCoreClientContext.Provider value={apolloCoreClient}>
+ {children}
+ </ApolloCoreClientContext.Provider>
+ );
+};
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 1afe800df3a..00000000000
--- 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 (
- <ApolloMetadataClientContext.Provider value={apolloMetadataClient}>
- {children}
- </ApolloMetadataClientContext.Provider>
- );
-};
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 f7f14a581e4..dac25a36eb3 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<ApolloClient<NormalizedCacheObject> | 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 00000000000..0d195a04045
--- /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 (
+ <ApolloCoreClientContext.Provider value={mockedApolloCoreClient}>
+ {mockedApolloCoreClient ? children : ''}
+ </ApolloCoreClientContext.Provider>
+ );
+};
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 782a605c4f5..00000000000
--- 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 (
- <ApolloMetadataClientContext.Provider value={mockedMetadataApolloClient}>
- {mockedMetadataApolloClient ? children : ''}
- </ApolloMetadataClientContext.Provider>
- );
-};
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 29f15b1cf79..d4c6a02aed7 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 00000000000..6ebc0988d3a
--- /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 2a75b39dd20..00000000000
--- 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 42e40ec0db7..c27647bc7a3 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 935897ab3c5..a7b42d6645d 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 335fd702494..281196303c4 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 0cd3bbe9450..828b466635e 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 c0ec27705c3..e04be1085d2 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 bd6620d16e3..41362a3e33f 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<ObjectMetadataItemsQuery>({
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 0691ec89bc1..78aeaa0df92 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 0c91fa23036..41c0b04eaf8 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 ac39c71b9ab..0318e33d522 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 = <T extends ObjectRecord>({
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 = <T extends ObjectRecord>({
...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 90105c70052..9e4554e9094 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 3f6dd782b4a..b788c679fb2 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(
<T extends ObjectRecord = ObjectRecord>(
recordId: string,
- cache = apolloClient.cache,
+ cache = apolloCoreClient.cache,
) => {
return getRecordFromCache<T>({
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 04b42e22b9d..0cde12c2054 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<RecordGqlOperationFindManyResult>({
+ apolloCoreClient.readQuery<RecordGqlOperationFindManyResult>({
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 adec68766ea..4677eb8a3da 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 5a8d28b32db..a112a943ba4 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<string, any>;
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 ff656176dea..5757793c441 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 041c8ba19cb..46841ed39e3 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 9b54ad30135..c99bc51c7da 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 45188801403..14f09a3ef30 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 = <T extends AggregateRecordsData>({
objectNameSingular,
});
+ const apolloCoreClient = useApolloCoreClient();
+
const { aggregateQuery, gqlFieldToFieldMap } = useAggregateRecordsQuery({
objectNameSingular,
recordGqlFieldsAggregate,
@@ -49,6 +52,7 @@ export const useAggregateRecords = <T extends AggregateRecordsData>({
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 694e7ce4ca0..a9dd2b54dd1 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 b2fe1ce58f5..6e62bd4a559 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 d3c175ca9e8..65079afad07 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 fb3a3e480de..b5582880088 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 a773ed54bff..e267f39d309 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<Record<string, ObjectRecord[]>>({
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 2ff65b6206a..a1bc98f36c5 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<ObjectRecord>({
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 534e469a4b1..f74c2324268 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<Record<string, ObjectRecord[]>>({
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 d58268b84c6..556b4a19b18 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 1f6213c3e08..b667aa22f3b 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 802afe9eb58..47401f65a3f 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<T>) => {
+ 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 05dda142ec1..60965fe6086 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 = <T extends ObjectRecord = ObjectRecord>({
}) => {
const findDuplicateQueryStateIdentifier = objectNameSingular;
+ const apolloCoreClient = useApolloCoreClient();
+
const { objectMetadataItem } = useObjectMetadataItem({
objectNameSingular,
});
@@ -47,6 +50,7 @@ export const useFindDuplicateRecords = <T extends ObjectRecord = ObjectRecord>({
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 fd644dae004..5f229a9b711 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 = <T extends ObjectRecord = ObjectRecord>({
const { objectMetadataItem } = useObjectMetadataItem({
objectNameSingular,
});
-
+ const apolloCoreClient = useApolloCoreClient();
const { findManyRecordsQuery } = useFindManyRecordsQuery({
objectNameSingular,
recordGqlFields,
@@ -94,6 +95,7 @@ export const useFindManyRecords = <T extends ObjectRecord = ObjectRecord>({
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 808f7e193d1..8b331139538 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 = <T extends ObjectRecord = ObjectRecord>({
objectNameSingular,
});
+ const apolloCoreClient = useApolloCoreClient();
+
const computedRecordGqlFields =
recordGqlFields ?? generateDepthOneRecordGqlFields({ objectMetadataItem });
@@ -50,6 +53,7 @@ export const useFindOneRecord = <T extends ObjectRecord = ObjectRecord>({
}>(findOneRecordQuery, {
skip: !objectMetadataItem || !objectRecordId || skip || !hasReadPermission,
variables: { objectRecordId },
+ client: apolloCoreClient,
onCompleted: (data) => {
const recordWithoutConnection = getRecordFromRecordNode<T>({
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 47978a21676..b89d5a07c74 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 = <T extends ObjectRecord = ObjectRecord>({
objectNameSingular,
});
+ const apolloCoreClient = useApolloCoreClient();
+
const { findManyRecordsQuery } = useFindManyRecordsQuery({
objectNameSingular,
recordGqlFields,
@@ -68,6 +71,7 @@ export const useLazyFindManyRecords = <T extends ObjectRecord = ObjectRecord>({
fetchPolicy: 'cache-first',
onCompleted: handleFindManyRecordsCompleted,
onError: handleFindManyRecordsError,
+ client: apolloCoreClient,
});
const { fetchMoreRecordsLazy } = useLazyFetchMoreRecordsWithPagination<T>({
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 a05dbe4ccd1..9fe4d4390c7 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 = <T extends ObjectRecord = ObjectRecord>({
objectNameSingular,
});
+ const apolloCoreClient = useApolloCoreClient();
+
const { findOneRecordQuery } = useFindOneRecordQuery({
objectNameSingular,
recordGqlFields:
@@ -48,6 +51,7 @@ export const useLazyFindOneRecord = <T extends ObjectRecord = ObjectRecord>({
await findOneRecord({
variables: { objectRecordId },
fetchPolicy,
+ client: apolloCoreClient,
onCompleted: (data) => {
const record = getRecordFromRecordNode<T>({
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 44398ed2297..57ac9e24491 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 8176af7a705..ff41297296a 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 8b023dc3f70..eab1d6f9a13 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 ef2794a4ef7..c7e601cf865 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 2d977476391..c4c10512181 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 c9bd9072b11..64e4d393465 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 04a80f679ad..ca8b547744d 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<object>;
}) => {
- 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 fd88ff36821..b9461af41c0 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 5b9fa8650a2..ed3600cc9c6 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 5eabc07878e..67dc134f16d 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 19e580c872b..07fe386fe15 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 90008beda44..99c63cbdf36 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 4e60fa5eca9..950ba035539 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 b592bb968a1..cc17cdb6f60 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 b042f0fc0f1..5300866e678 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 16a7ddf03b3..c97b7ae7d1c 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 ff2f1a73453..615f62155d4 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 852f12abf10..f6c52bce4a3 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 470e52fe173..c2ec808231b 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 b62dc80b18b..5b8b431788a 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 f17112e71c0..f5395cf42ae 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 cd778c19058..663f678627d 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 00e6b0be08f..262641e9e6e 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 838268ef392..71d85e9bde1 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 3db1e131c89..890022662dc 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 c3e82d9e702..b30dfc8d556 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 db838e38249..cdd8c45537a 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 4538a656948..b736bf272b8 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 522c8112f21..6a473c79202 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 996a9830b34..a91d965c4dd 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 dfd458d6be4..37809cda48f 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 d56600ae486..f6646f4141e 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 18b87d6e951..600ae32c693 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 d9fb5dd6c62..c8ba3a43f6e 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 526e7ea6aa0..b4d6095727f 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 5d9fa0f25f6..7cfd395c286 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 1a2d85f0046..f30bff7e12e 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 30785ca0467..5cb8c73a2d4 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 4a394565013..c2ca036675c 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 18acf954e4d..d9dfe4ca6af 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 aded804d0dc..5a9a15b588f 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 0dd1db1646e..a85a098a650 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 0ebf0816541..b835868ecee 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 87e1c92ed44..7d43dbaa33c 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 a044e5830b5..501c99c30ff 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 7abb4a163f2..ebb46574174 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 bc033aa15cf..fbaf6a8136d 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 a5cff9afb9f..2928bafa06d 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 81ec6fb64ec..0058477ccd9 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 c2d4a03cd10..0dc34621f4d 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 53e8acad068..c6be22dbc53 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 b3e08595bc4..efad4bd643d 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 c1ce3a06810..0d7d47bdfe1 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 3997720a08f..bb926d66175 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 835e99e5409..37c3df3f67f 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<ObjectMetadataItem, 'object'>;
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 87447322ff8..c69c7fd4429 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 ccee9fc9cfd..547dc8a169d 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<string | null>(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 11e9e1e08dc..4bb942f524a 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 2645d747f1d..b4759ee955c 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 08e4bf17398..071ec5c4687 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 0414689ba0b..e09b065be86 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 c519d121260..bee0af67131 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 7e07f842669..f680b592ce4 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 fe967f564d7..0b5f2a4f421 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 bbf6396408a..41c5365bf4d 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 39dd222e795..034337f4c35 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 1a41cfc919a..3d86a7c7fbc 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 237e080bac9..a03102834e9 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 12bab789a3b..32bad7548aa 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<typeof approvedAccessDomainsState>[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 6c133900ef7..b6af7f56fa8 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 { 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 { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar';
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 50b71e727b2..62f7e3b4bd6 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 }) => (
- <RecoilRoot>{children}</RecoilRoot>
-);
+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 48b5e101918..415d549fe59 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 }) => (
- <RecoilRoot>{children}</RecoilRoot>
-);
+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 f253f10cb43..d0cc98d8f87 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 }) => (
- <RecoilRoot>{children}</RecoilRoot>
-);
+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 85736f96a69..0b51bb1731b 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 71f72164d1a..217e020e11b 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 5a3058e55e9..3dcbe40a391 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 5627feea764..cf86d12e8ba 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 1c3afaf0338..4d4e85ce30a 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 4b69a953e96..edc7aebf187 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 cd4659a30e8..09ea235ea4e 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 46226987f0a..feb6fc4aba3 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 1aeda466d58..078878fd0f2 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 82d2b78b037..733e97591ef 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 364eefd75ac..8b692a163ce 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 6680c047434..e6a2017fe40 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 d42d0ac7e99..27696edb3be 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 946b7bd7e96..c88d01eba98 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 dec1b233aca..a8aa87392ab 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 c125541b515..377b2974e50 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 8351c5741a7..64bf94f6c55 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 7e472fd61c5..0ac38c34fa2 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 db1a8e24e96..f6e3d8ce539 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 4b3a63e33a0..3dbb6368c93 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 4878496c32d..0d26fa41cc8 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 98668fab18b..44292472e35 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 b34915b70b0..00a69562f93 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 d079f7d4d4b..46d04eeaba5 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<typeof filterQueryParamsSchema>;
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<string, { edges: { node: ObjectRecord }[] }>
>({
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 bca759b2010..512e9bfc81a 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 48650ca2f7b..11fcf17088b 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 665cc43875d..8da6673a38b 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<typeof WorkflowFieldsMultiSelect> = {
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 c13f4c1b847..87e1b44224a 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 7febbead062..4667322851b 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<WorkflowVersion> = 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 e632b5ad3f2..9ad61389ae1 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 97cab36a653..a4a6dd4af89 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 147aa582d4b..85c1310e919 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 8843be3d139..2b56a4fc75b 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 2d6d324eb8a..20a5f81fee5 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 0eecd38e7f5..4a263bb72df 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<WorkflowRun>({
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 f0310e9f10b..235b71f312a 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 4be9bc09242..e758d5d83b3 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 db256ca188a..95d3d0fba0f 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 632e937d214..e06964766e2 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 7a9fa10a394..ce108aec350 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 f65235627e9..3689a692f1f 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 e8c23d8f8fc..7b18beeb131 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 0d17c93b7cf..a91532872d6 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 7e2115da60a..71160db10d7 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 6ea3f59121d..5d5c9f21414 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 a14f17012d8..d467643ba46 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 }) => (
- <RecoilRoot>{children}</RecoilRoot>
-);
+const Wrapper = getJestMetadataAndApolloMocksWrapper({
+ apolloMocks: [],
+});
describe('useCreateWorkspaceInvitation', () => {
afterEach(() => {
@@ -19,18 +18,18 @@ describe('useCreateWorkspaceInvitation', () => {
});
it('Send invitations', async () => {
- const invitationParams = { emails: ['[email protected]'] };
+ const params = { emails: ['[email protected]'] };
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 5075d7225cd..11d10c29e9e 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 }) => (
- <RecoilRoot>{children}</RecoilRoot>
-);
+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 97456ca39c1..677845952ea 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 }) => (
- <RecoilRoot>{children}</RecoilRoot>
-);
+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 5ee4a97fb7c..6e2776eba03 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 5731548c1db..601f53064bf 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 acda3cffd66..5d47167f57b 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 8c696a9209e..b57fdd2330f 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 14081692960..6e940067081 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 f212763615a..4ad62cf713e 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 a5324206fd1..2c6d16d5378 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 792e9ac101f..039d4d158c1 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 c231c85e476..347511f5fe6 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 f9da0341797..3b8fc8c3d0e 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 4847e2563e8..75e225d53cc 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 a47f62b217a..5fb8bc508a5 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 6cd1678bbd6..b6efe481433 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 ad671d5da4d..c7b593652d9 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 dc02f27f632..7b4e973186b 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 47e8f6defeb..7640af04d3a 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 ce5fd7b585f..d6406281e8e 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 34f681f20b6..7e417d23cf8 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 e62e9ee3037..a20cb34561d 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 20565e0062b..6328489a254 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 51f43a4c1b0..611e30e90a6 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 9f13c586a9f..ed3ed18e2ad 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 = () => {
<UserProviderEffect />
<WorkspaceProviderEffect />
<UserProvider>
- <ApolloMetadataClientMockedProvider>
+ <ApolloCoreClientMockedProvider>
<ObjectMetadataItemsLoadEffect />
<ObjectMetadataItemsProvider>
<FullHeightStorybookLayout>
@@ -120,7 +120,7 @@ const Providers = () => {
</FullHeightStorybookLayout>
</ObjectMetadataItemsProvider>
<MainContextStoreProvider />
- </ApolloMetadataClientMockedProvider>
+ </ApolloCoreClientMockedProvider>
</UserProvider>
</ClientConfigProvider>
</I18nProvider>
diff --git a/packages/twenty-front/src/testing/decorators/RootDecorator.tsx b/packages/twenty-front/src/testing/decorators/RootDecorator.tsx
index 5afdc2f0088..6d11e909cb6 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 (
<RecoilRoot initializeState={parameters.initializeState}>
<ApolloProvider client={mockedApolloClient}>
- <ApolloMetadataClientMockedProvider>
+ <ApolloCoreClientMockedProvider>
{!disableHotkeyInitialization && (
<InitializeHotkeyStorybookHookEffect />
)}
<Story />
- </ApolloMetadataClientMockedProvider>
+ </ApolloCoreClientMockedProvider>
</ApolloProvider>
</RecoilRoot>
);
diff --git a/packages/twenty-front/src/testing/mock-data/publicWorkspaceDataBySubdomain.ts b/packages/twenty-front/src/testing/mock-data/publicWorkspaceDataBySubdomain.ts
index 04ae15b96ba..01e3f5c3f76 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 cb8d4f0b7df..e2b78819844 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 00000000000..5a10aef4355
--- /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 43c2107f011..00000000000
--- 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(),
-});