From 75fd430149a4c11e29c05c0b2289f52ec2eadca1 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Wed, 17 Apr 2024 16:24:04 +0200 Subject: [PATCH] Increase storybook pages coverage (#4885) On FE: - refreshing metadata mocks - updating jest tests - fixing storybook pages coverage - fixing storybook modules coverage --- packages/twenty-front/.eslintrc.cjs | 1 + packages/twenty-front/nyc.config.cjs | 4 +- .../src/__stories__/App.stories.tsx | 66 +- .../states/currentWorkspaceMemberState.ts | 2 +- .../modules/auth/utils/getOnboardingStatus.ts | 2 +- .../src/modules/companies/types/Company.ts | 1 + .../AppNavigationDrawer.stories.tsx | 4 + .../ObjectMetadataNavItems.stories.tsx | 2 + .../objectMetadataItemSchema.test.ts | 2 +- .../__mocks__/fieldDefinitions.ts | 34 +- .../DateTimeFieldInput.stories.tsx | 32 +- .../RecordDetailRelationSection.tsx | 1 + .../RecordDetailRelationSection.stories.tsx | 4 +- .../__tests__/useEntitySelectSearch.test.tsx | 29 +- .../src/modules/people/types/Person.ts | 1 + ...DataModelFieldSettingsFormCard.stories.tsx | 8 +- ...tingsDataModelFieldPreviewCard.stories.tsx | 8 +- .../hooks/__tests__/useFieldPreview.test.tsx | 2 +- ...ttingsDataModelObjectAboutForm.stories.tsx | 2 +- .../getFieldDefaultPreviewValue.test.ts | 48 +- .../getFieldPreviewValueFromRecord.test.ts | 61 +- .../date/components/MonthAndYearDropdown.tsx | 6 +- .../__stories__/DatePicker.stories.tsx | 9 +- .../views/hooks/__tests__/useViewBar.test.tsx | 54 - .../workspace-member/types/WorkspaceMember.ts | 1 + .../__stories__/ChooseYourPlan.stories.tsx | 75 + .../__stories__/PasswordReset.stories.tsx | 19 +- .../__stories__/NotFound.stories.tsx | 2 + .../__stories__/SettingsBilling.stories.tsx | 11 +- .../SettingsAccountsCalendars.stories.tsx | 11 +- ...tingsAccountsCalendarsSettings.stories.tsx | 33 +- .../SettingsObjectEdit.stories.tsx | 2 +- .../SettingsDevelopers.stories.tsx | 6 +- .../SettingsIntegrationDatabase.stories.tsx | 11 +- ...sIntegrationDatabaseConnection.stories.tsx | 12 +- ...tegrationNewDatabaseConnection.stories.tsx | 11 +- .../pages/tasks/__stories__/Tasks.stories.tsx | 15 +- .../decorators/HelmetProviderDecorator.tsx | 10 + .../src/testing/decorators/PageDecorator.tsx | 12 + .../twenty-front/src/testing/graphqlMocks.ts | 4 +- .../src/testing/mock-data/activities.ts | 18 +- .../src/testing/mock-data/companies.ts | 8 + .../src/testing/mock-data/config.ts | 12 +- .../standard-metadata-query-result.ts | 13057 ++++++++++++++++ .../src/testing/mock-data/metadata.ts | 7286 +-------- .../src/testing/mock-data/users.ts | 34 +- 46 files changed, 13679 insertions(+), 7354 deletions(-) delete mode 100644 packages/twenty-front/src/modules/views/hooks/__tests__/useViewBar.test.tsx create mode 100644 packages/twenty-front/src/pages/auth/__stories__/ChooseYourPlan.stories.tsx create mode 100644 packages/twenty-front/src/testing/decorators/HelmetProviderDecorator.tsx create mode 100644 packages/twenty-front/src/testing/mock-data/generated/standard-metadata-query-result.ts diff --git a/packages/twenty-front/.eslintrc.cjs b/packages/twenty-front/.eslintrc.cjs index b6e293abcb..df4daf7633 100644 --- a/packages/twenty-front/.eslintrc.cjs +++ b/packages/twenty-front/.eslintrc.cjs @@ -5,6 +5,7 @@ module.exports = { 'node_modules', 'mockServiceWorker.js', '**/generated*/*', + '**/generated/standard-metadata-query-result.ts', 'tsup.config.ts', 'build', 'coverage', diff --git a/packages/twenty-front/nyc.config.cjs b/packages/twenty-front/nyc.config.cjs index 5afd740ac9..1f50135268 100644 --- a/packages/twenty-front/nyc.config.cjs +++ b/packages/twenty-front/nyc.config.cjs @@ -14,8 +14,8 @@ const modulesCoverage = { }; const pagesCoverage = { - statements: 55, - lines: 55, + statements: 60, + lines: 60, functions: 45, exclude: ['src/generated/**/*', 'src/modules/**/*', 'src/**/*.ts'], }; diff --git a/packages/twenty-front/src/__stories__/App.stories.tsx b/packages/twenty-front/src/__stories__/App.stories.tsx index 4ac0c1a6be..d933a0a7bf 100644 --- a/packages/twenty-front/src/__stories__/App.stories.tsx +++ b/packages/twenty-front/src/__stories__/App.stories.tsx @@ -1,14 +1,23 @@ import { HelmetProvider } from 'react-helmet-async'; +import { getOperationName } from '@apollo/client/utilities'; import { Meta, StoryObj } from '@storybook/react'; +import { graphql, HttpResponse } from 'msw'; +import { IconsProvider } from 'twenty-ui'; import { ClientConfigProvider } from '@/client-config/components/ClientConfigProvider'; +import { ClientConfigProviderEffect } from '@/client-config/components/ClientConfigProviderEffect'; import { ObjectMetadataItemsProvider } from '@/object-metadata/components/ObjectMetadataItemsProvider'; +import { SnackBarProvider } from '@/ui/feedback/snack-bar-manager/components/SnackBarProvider'; import { SnackBarProviderScope } from '@/ui/feedback/snack-bar-manager/scopes/SnackBarProviderScope'; +import { AppThemeProvider } from '@/ui/theme/components/AppThemeProvider'; import { UserProvider } from '@/users/components/UserProvider'; +import { UserProviderEffect } from '@/users/components/UserProviderEffect'; +import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { App } from '~/App'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { FullHeightStorybookLayout } from '~/testing/FullHeightStorybookLayout'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { mockedUsersData } from '~/testing/mock-data/users'; const meta: Meta = { title: 'App/App', @@ -16,19 +25,33 @@ const meta: Meta = { decorators: [ MemoryRouterDecorator, (Story) => ( - - - - - + <> + + + + + + - + + + + + + + + + + + + + - - - - - + + + + + ), ], parameters: { @@ -43,8 +66,25 @@ export const Default: Story = {}; export const DarkMode: Story = { parameters: { - theming: { - themeOverride: 'dark', + msw: { + handlers: [ + ...graphqlMocks.handlers.filter((handler) => { + return (handler.info as any).operationName !== 'GetCurrentUser'; + }), + graphql.query(getOperationName(GET_CURRENT_USER) ?? '', () => { + return HttpResponse.json({ + data: { + currentUser: { + ...mockedUsersData[0], + workspaceMember: { + ...mockedUsersData[0].workspaceMember, + colorScheme: 'Dark', + }, + }, + }, + }); + }), + ], }, }, }; diff --git a/packages/twenty-front/src/modules/auth/states/currentWorkspaceMemberState.ts b/packages/twenty-front/src/modules/auth/states/currentWorkspaceMemberState.ts index 37140a4501..c471ab583b 100644 --- a/packages/twenty-front/src/modules/auth/states/currentWorkspaceMemberState.ts +++ b/packages/twenty-front/src/modules/auth/states/currentWorkspaceMemberState.ts @@ -4,7 +4,7 @@ import { WorkspaceMember } from '@/workspace-member/types/WorkspaceMember'; export const currentWorkspaceMemberState = createState | null>({ key: 'currentWorkspaceMemberState', defaultValue: null, diff --git a/packages/twenty-front/src/modules/auth/utils/getOnboardingStatus.ts b/packages/twenty-front/src/modules/auth/utils/getOnboardingStatus.ts index 1f12af76b2..a88ba60ba3 100644 --- a/packages/twenty-front/src/modules/auth/utils/getOnboardingStatus.ts +++ b/packages/twenty-front/src/modules/auth/utils/getOnboardingStatus.ts @@ -22,7 +22,7 @@ export const getOnboardingStatus = ({ isLoggedIn: boolean; currentWorkspaceMember: Omit< WorkspaceMember, - 'createdAt' | 'updatedAt' | 'userId' | 'userEmail' + 'createdAt' | 'updatedAt' | 'userId' | 'userEmail' | '__typename' > | null; currentWorkspace: CurrentWorkspace | null; isBillingEnabled?: boolean; diff --git a/packages/twenty-front/src/modules/companies/types/Company.ts b/packages/twenty-front/src/modules/companies/types/Company.ts index e346d44912..f6fa70de63 100644 --- a/packages/twenty-front/src/modules/companies/types/Company.ts +++ b/packages/twenty-front/src/modules/companies/types/Company.ts @@ -1,4 +1,5 @@ export type Company = { + __typename: 'Company'; id: string; createdAt: string; updatedAt: string; diff --git a/packages/twenty-front/src/modules/navigation/components/__stories__/AppNavigationDrawer.stories.tsx b/packages/twenty-front/src/modules/navigation/components/__stories__/AppNavigationDrawer.stories.tsx index e267c7e24a..53acfde422 100644 --- a/packages/twenty-front/src/modules/navigation/components/__stories__/AppNavigationDrawer.stories.tsx +++ b/packages/twenty-front/src/modules/navigation/components/__stories__/AppNavigationDrawer.stories.tsx @@ -7,6 +7,8 @@ import { currentMobileNavigationDrawerState } from '@/navigation/states/currentM import { AppPath } from '@/types/AppPath'; import { isNavigationDrawerOpenState } from '@/ui/navigation/states/isNavigationDrawerOpenState'; import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile'; +import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator'; +import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { @@ -50,6 +52,8 @@ type StoryArgs = AppNavigationDrawerProps & { const meta: Meta = { title: 'Modules/Navigation/AppNavigationDrawer', decorators: [ + IconsProviderDecorator, + ObjectMetadataItemsDecorator, (Story, { args }) => ( diff --git a/packages/twenty-front/src/modules/object-metadata/components/__stories__/ObjectMetadataNavItems.stories.tsx b/packages/twenty-front/src/modules/object-metadata/components/__stories__/ObjectMetadataNavItems.stories.tsx index 5d97e61db0..6efdf175bb 100644 --- a/packages/twenty-front/src/modules/object-metadata/components/__stories__/ObjectMetadataNavItems.stories.tsx +++ b/packages/twenty-front/src/modules/object-metadata/components/__stories__/ObjectMetadataNavItems.stories.tsx @@ -4,6 +4,7 @@ import { within } from '@storybook/test'; import { ComponentWithRecoilScopeDecorator } from '~/testing/decorators/ComponentWithRecoilScopeDecorator'; import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; +import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; @@ -14,6 +15,7 @@ const meta: Meta = { title: 'Modules/ObjectMetadata/ObjectMetadataNavItems', component: ObjectMetadataNavItems, decorators: [ + IconsProviderDecorator, ObjectMetadataItemsDecorator, ComponentWithRouterDecorator, ComponentWithRecoilScopeDecorator, diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/__tests__/objectMetadataItemSchema.test.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/__tests__/objectMetadataItemSchema.test.ts index 48db789805..95e1773e62 100644 --- a/packages/twenty-front/src/modules/object-metadata/validation-schemas/__tests__/objectMetadataItemSchema.test.ts +++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/__tests__/objectMetadataItemSchema.test.ts @@ -1,7 +1,7 @@ import { SafeParseSuccess } from 'zod'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; -import { mockedCompanyObjectMetadataItem } from '@/object-record/record-field/__mocks__/fieldDefinitions'; +import { mockedCompanyObjectMetadataItem } from '~/testing/mock-data/metadata'; import { objectMetadataItemSchema } from '../objectMetadataItemSchema'; diff --git a/packages/twenty-front/src/modules/object-record/record-field/__mocks__/fieldDefinitions.ts b/packages/twenty-front/src/modules/object-record/record-field/__mocks__/fieldDefinitions.ts index 4a85b26f24..337afbf0be 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/__mocks__/fieldDefinitions.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/__mocks__/fieldDefinitions.ts @@ -7,41 +7,27 @@ import { FieldSelectMetadata, FieldTextMetadata, } from '@/object-record/record-field/types/FieldMetadata'; +import { type } from 'os'; import { FieldMetadataType } from '~/generated-metadata/graphql'; -import { - mockedCompaniesMetadata, - mockedCustomMetadata, - mockedPeopleMetadata, -} from '~/testing/mock-data/metadata'; +import { mockedCompanyObjectMetadataItem, mockedPersonObjectMetadataItem } from '~/testing/mock-data/metadata'; +; export const fieldMetadataId = 'fieldMetadataId'; -export const mockedPersonObjectMetadataItem = { - ...mockedPeopleMetadata.node, - fields: mockedPeopleMetadata.node.fields.edges.map(({ node }) => node), -}; - -export const mockedCompanyObjectMetadataItem = { - ...mockedCompaniesMetadata.node, - fields: mockedCompaniesMetadata.node.fields.edges.map(({ node }) => node), -}; - -export const mockedCustomObjectMetadataItem = { - ...mockedCustomMetadata.node, - fields: mockedCustomMetadata.node.fields.edges.map(({ node }) => node), -}; export const textfieldDefinition: FieldDefinition = { fieldMetadataId, label: 'User Name', iconName: 'User', + defaultValue: '', type: FieldMetadataType.Text, metadata: { placeHolder: 'John Doe', fieldName: 'userName' }, }; -const relationFieldMetadataItem = mockedPersonObjectMetadataItem.fields.find( +const relationFieldMetadataItem = mockedPersonObjectMetadataItem.fields?.find( ({ name }) => name === 'company', ); + export const relationFieldDefinition = formatFieldMetadataItemAsFieldDefinition( { field: relationFieldMetadataItem!, @@ -54,6 +40,7 @@ export const selectFieldDefinition: FieldDefinition = { label: 'Account Owner', iconName: 'iconName', type: FieldMetadataType.Select, + defaultValue: null, metadata: { fieldName: 'accountOwner', options: [{ label: 'Elon Musk', color: 'blue', value: 'userId' }], @@ -65,6 +52,7 @@ export const fullNameFieldDefinition: FieldDefinition = { label: 'Display Name', iconName: 'profile', type: FieldMetadataType.FullName, + defaultValue: { firstName: '', lastName: '' }, metadata: { fieldName: 'displayName', placeHolder: 'Mr Miagi', @@ -76,13 +64,14 @@ export const linkFieldDefinition: FieldDefinition = { label: 'LinkedIn URL', iconName: 'url', type: FieldMetadataType.Link, + defaultValue: { label: '', url: ''}, metadata: { fieldName: 'linkedInURL', placeHolder: 'https://linkedin.com/user', }, }; -const phoneFieldMetadataItem = mockedPersonObjectMetadataItem.fields.find( +const phoneFieldMetadataItem = mockedPersonObjectMetadataItem.fields?.find( ({ name }) => name === 'phone', ); export const phoneFieldDefinition = formatFieldMetadataItemAsFieldDefinition({ @@ -95,12 +84,13 @@ export const ratingfieldDefinition: FieldDefinition = { label: 'Rating', iconName: 'iconName', type: FieldMetadataType.Rating, + defaultValue: null, metadata: { fieldName: 'rating', }, }; -const booleanFieldMetadataItem = mockedCompanyObjectMetadataItem.fields.find( +const booleanFieldMetadataItem = mockedCompanyObjectMetadataItem.fields?.find( ({ name }) => name === 'idealCustomerProfile', ); export const booleanFieldDefinition = formatFieldMetadataItemAsFieldDefinition({ 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 28bd5948fb..8414266dff 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 @@ -24,6 +24,29 @@ const DateFieldValueSetterEffect = ({ value }: { value: Date }) => { return <>; }; +type DateFieldValueGaterProps = Pick< + DateTimeFieldInputProps, + 'onEscape' | 'onEnter' | 'onClickOutside' +>; + +const DateFieldValueGater = ({ + onEscape, + onEnter, + onClickOutside, +}: DateFieldValueGaterProps) => { + const { fieldValue } = useDateTimeField(); + + return ( + fieldValue && ( + + ) + ); +}; + type DateFieldInputWithContextProps = DateTimeFieldInputProps & { value: Date; entityId?: string; @@ -47,6 +70,7 @@ const DateFieldInputWithContext = ({ - ; export const Default: Story = { play: async ({ canvasElement }) => { const canvas = within(canvasElement); - const div = await canvas.findByText('Feb 1, 2022'); + const div = await canvas.findByText('February - 2022'); - await expect(div.innerText).toContain('Feb 1, 2022'); + await expect(div.innerText).toContain('February - 2022'); }, }; @@ -125,7 +149,7 @@ export const Escape: Story = { play: async () => { await expect(escapeJestFn).toHaveBeenCalledTimes(0); - await userEvent.keyboard('{esc}'); + await userEvent.keyboard('{escape}'); await expect(escapeJestFn).toHaveBeenCalledTimes(1); }, diff --git a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx index 7a3252e7d8..9a4909e3dd 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx +++ b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx @@ -62,6 +62,7 @@ export const RecordDetailRelationSection = () => { fieldValue && isToOneObject ? [fieldValue as ObjectRecord] : (fieldValue as ObjectRecord[]) ?? []; + const relationRecordIds = relationRecords.map(({ id }) => id); const dropdownId = `record-field-card-relation-picker-${fieldDefinition.label}`; diff --git a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/__stories__/RecordDetailRelationSection.stories.tsx b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/__stories__/RecordDetailRelationSection.stories.tsx index 7dbec81456..5f06f7593e 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/__stories__/RecordDetailRelationSection.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/__stories__/RecordDetailRelationSection.stories.tsx @@ -2,7 +2,6 @@ import { Meta, StoryObj } from '@storybook/react'; import { ComponentDecorator } from 'twenty-ui'; import { formatFieldMetadataItemAsFieldDefinition } from '@/object-metadata/utils/formatFieldMetadataItemAsFieldDefinition'; -import { mockedCompanyObjectMetadataItem } from '@/object-record/record-field/__mocks__/fieldDefinitions'; import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; @@ -10,6 +9,7 @@ import { RecordStoreDecorator } from '~/testing/decorators/RecordStoreDecorator' import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; import { mockedCompaniesData } from '~/testing/mock-data/companies'; +import { mockedCompanyObjectMetadataItem } from '~/testing/mock-data/metadata'; import { mockedPeopleData } from '~/testing/mock-data/people'; import { RecordDetailRelationSection } from '../RecordDetailRelationSection'; @@ -59,7 +59,7 @@ export const WithRecords: Story = { records: [ { ...mockedCompaniesData[0], - people: { edges: mockedPeopleData.map((person) => ({ node: person })) }, + people: mockedPeopleData, }, ...mockedPeopleData, ], diff --git a/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useEntitySelectSearch.test.tsx b/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useEntitySelectSearch.test.tsx index f738620bc0..caccdb5276 100644 --- a/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useEntitySelectSearch.test.tsx +++ b/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useEntitySelectSearch.test.tsx @@ -1,7 +1,8 @@ import { ChangeEvent } from 'react'; import { act, renderHook } from '@testing-library/react'; -import { RecoilRoot } from 'recoil'; +import { RecoilRoot, useRecoilValue } from 'recoil'; +import { useRelationPickerScopedStates } from '@/object-record/relation-picker/hooks/internal/useRelationPickerScopedStates'; import { useEntitySelectSearch } from '@/object-record/relation-picker/hooks/useEntitySelectSearch'; import { RelationPickerScopeInternalContext } from '@/object-record/relation-picker/scopes/scope-internal-context/RelationPickerScopeInternalContext'; @@ -14,16 +15,32 @@ const Wrapper = ({ children }: { children: React.ReactNode }) => ( describe('useEntitySelectSearch', () => { it('should update searchFilter after change event', async () => { - const { result } = renderHook(() => useEntitySelectSearch(), { - wrapper: Wrapper, - }); + const { result } = renderHook( + () => { + const entitySelectSearchHook = useEntitySelectSearch({ + relationPickerScopeId: 'relation-picker', + }); + const relationPickerScopedStatesHook = useRelationPickerScopedStates({ + relationPickerScopedId: 'relation-picker', + }); + const internallyStoredFilter = useRecoilValue( + relationPickerScopedStatesHook.relationPickerSearchFilterState, + ); + return { entitySelectSearchHook, internallyStoredFilter }; + }, + { + wrapper: Wrapper, + }, + ); + const filter = 'value'; act(() => { - result.current.handleSearchFilterChange({ + result.current.entitySelectSearchHook.handleSearchFilterChange({ currentTarget: { value: filter }, } as ChangeEvent); }); - expect(result.current.searchFilter).toBe(filter); + + expect(result.current.internallyStoredFilter).toBe(filter); }); }); diff --git a/packages/twenty-front/src/modules/people/types/Person.ts b/packages/twenty-front/src/modules/people/types/Person.ts index 3048495fa1..fd5b75ad84 100644 --- a/packages/twenty-front/src/modules/people/types/Person.ts +++ b/packages/twenty-front/src/modules/people/types/Person.ts @@ -1,4 +1,5 @@ export type Person = { + __typename: 'Person'; id: string; createdAt: string; updatedAt: string; diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldSettingsFormCard.stories.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldSettingsFormCard.stories.tsx index 84bedd658c..e0f2d99553 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldSettingsFormCard.stories.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/components/__stories__/SettingsDataModelFieldSettingsFormCard.stories.tsx @@ -2,10 +2,6 @@ import { Meta, StoryObj } from '@storybook/react'; import { fn } from '@storybook/test'; import { ComponentDecorator } from 'twenty-ui'; -import { - mockedCompanyObjectMetadataItem, - mockedPersonObjectMetadataItem, -} from '@/object-record/record-field/__mocks__/fieldDefinitions'; import { fieldMetadataFormDefaultValues } from '@/settings/data-model/fields/forms/hooks/useFieldMetadataForm'; import { FieldMetadataType, @@ -15,6 +11,10 @@ import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorato import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { + mockedCompanyObjectMetadataItem, + mockedPersonObjectMetadataItem, +} from '~/testing/mock-data/metadata'; import { SettingsDataModelFieldSettingsFormCard } from '../SettingsDataModelFieldSettingsFormCard'; diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/__stories__/SettingsDataModelFieldPreviewCard.stories.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/__stories__/SettingsDataModelFieldPreviewCard.stories.tsx index caa9a66220..23876715c9 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/__stories__/SettingsDataModelFieldPreviewCard.stories.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/preview/components/__stories__/SettingsDataModelFieldPreviewCard.stories.tsx @@ -1,15 +1,15 @@ import { Meta, StoryObj } from '@storybook/react'; import { ComponentDecorator } from 'twenty-ui'; -import { - mockedCompanyObjectMetadataItem, - mockedPersonObjectMetadataItem, -} from '@/object-record/record-field/__mocks__/fieldDefinitions'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { + mockedCompanyObjectMetadataItem, + mockedPersonObjectMetadataItem, +} from '~/testing/mock-data/metadata'; import { SettingsDataModelFieldPreviewCard } from '../SettingsDataModelFieldPreviewCard'; diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/preview/hooks/__tests__/useFieldPreview.test.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/preview/hooks/__tests__/useFieldPreview.test.tsx index 8866c5f826..d0200b2ca2 100644 --- a/packages/twenty-front/src/modules/settings/data-model/fields/preview/hooks/__tests__/useFieldPreview.test.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/fields/preview/hooks/__tests__/useFieldPreview.test.tsx @@ -3,8 +3,8 @@ import { MockedProvider } from '@apollo/client/testing'; import { renderHook } from '@testing-library/react'; import { RecoilRoot } from 'recoil'; -import { mockedCompanyObjectMetadataItem } from '@/object-record/record-field/__mocks__/fieldDefinitions'; import { SnackBarProviderScope } from '@/ui/feedback/snack-bar-manager/scopes/SnackBarProviderScope'; +import { mockedCompanyObjectMetadataItem } from '~/testing/mock-data/metadata'; import { useFieldPreview } from '../useFieldPreview'; diff --git a/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/__stories__/SettingsDataModelObjectAboutForm.stories.tsx b/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/__stories__/SettingsDataModelObjectAboutForm.stories.tsx index 75fe343da6..4345f59229 100644 --- a/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/__stories__/SettingsDataModelObjectAboutForm.stories.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/objects/forms/components/__stories__/SettingsDataModelObjectAboutForm.stories.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled'; import { Meta, StoryObj } from '@storybook/react'; import { ComponentDecorator } from 'twenty-ui'; -import { mockedCompanyObjectMetadataItem } from '@/object-record/record-field/__mocks__/fieldDefinitions'; import { FormProviderDecorator } from '~/testing/decorators/FormProviderDecorator'; import { IconsProviderDecorator } from '~/testing/decorators/IconsProviderDecorator'; +import { mockedCompanyObjectMetadataItem } from '~/testing/mock-data/metadata'; import { SettingsDataModelObjectAboutForm } from '../SettingsDataModelObjectAboutForm'; diff --git a/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/getFieldDefaultPreviewValue.test.ts b/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/getFieldDefaultPreviewValue.test.ts index 41579bfc94..da48abd82c 100644 --- a/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/getFieldDefaultPreviewValue.test.ts +++ b/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/getFieldDefaultPreviewValue.test.ts @@ -1,9 +1,10 @@ import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; +import { SettingsObjectFieldSelectFormValues } from '@/settings/data-model/components/SettingsObjectFieldSelectForm'; import { mockedCompanyObjectMetadataItem, + mockedOpportunityObjectMetadataItem, mockedPersonObjectMetadataItem, -} from '@/object-record/record-field/__mocks__/fieldDefinitions'; -import { SettingsObjectFieldSelectFormValues } from '@/settings/data-model/components/SettingsObjectFieldSelectForm'; +} from '~/testing/mock-data/metadata'; import { getFieldDefaultPreviewValue } from '../getFieldDefaultPreviewValue'; @@ -11,23 +12,12 @@ describe('getFieldDefaultPreviewValue', () => { describe('SELECT field', () => { it('returns the default select option', () => { // Given - const objectMetadataItem = mockedCompanyObjectMetadataItem; - const fieldMetadataItem = mockedCompanyObjectMetadataItem.fields.find( - ({ name }) => name === 'industry', + const objectMetadataItem = mockedOpportunityObjectMetadataItem; + const fieldMetadataItem = mockedOpportunityObjectMetadataItem.fields.find( + ({ name }) => name === 'stage', )!; - const selectOptions: SettingsObjectFieldSelectFormValues = [ - { - color: 'purple', - label: '🏭 Industry', - value: 'INDUSTRY', - }, - { - color: 'pink', - isDefault: true, - label: '💊 Health', - value: 'HEALTH', - }, - ]; + const selectOptions: SettingsObjectFieldSelectFormValues = + fieldMetadataItem.options ?? []; // When const result = getFieldDefaultPreviewValue({ @@ -37,27 +27,17 @@ describe('getFieldDefaultPreviewValue', () => { }); // Then - expect(result).toEqual(selectOptions[1].value); + expect(result).toEqual(selectOptions[0].value); }); it('returns the first select option if no default option was found', () => { // Given - const objectMetadataItem = mockedCompanyObjectMetadataItem; - const fieldMetadataItem = mockedCompanyObjectMetadataItem.fields.find( - ({ name }) => name === 'industry', + const objectMetadataItem = mockedOpportunityObjectMetadataItem; + const fieldMetadataItem = mockedOpportunityObjectMetadataItem.fields.find( + ({ name }) => name === 'stage', )!; - const selectOptions: SettingsObjectFieldSelectFormValues = [ - { - color: 'purple' as const, - label: '🏭 Industry', - value: 'INDUSTRY', - }, - { - color: 'pink' as const, - label: '💊 Health', - value: 'HEALTH', - }, - ]; + const selectOptions: SettingsObjectFieldSelectFormValues = + fieldMetadataItem.options ?? []; // When const result = getFieldDefaultPreviewValue({ diff --git a/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/getFieldPreviewValueFromRecord.test.ts b/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/getFieldPreviewValueFromRecord.test.ts index 12e6915292..7411d1bd87 100644 --- a/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/getFieldPreviewValueFromRecord.test.ts +++ b/packages/twenty-front/src/modules/settings/data-model/utils/__tests__/getFieldPreviewValueFromRecord.test.ts @@ -1,9 +1,10 @@ -import { - mockedCompanyObjectMetadataItem, - mockedPersonObjectMetadataItem, -} from '@/object-record/record-field/__mocks__/fieldDefinitions'; import { ObjectRecord } from '@/object-record/types/ObjectRecord'; import { SettingsObjectFieldSelectFormValues } from '@/settings/data-model/components/SettingsObjectFieldSelectForm'; +import { + mockedCompanyObjectMetadataItem, + mockedOpportunityObjectMetadataItem, + mockedPersonObjectMetadataItem, +} from '~/testing/mock-data/metadata'; import { getFieldPreviewValueFromRecord } from '../getFieldPreviewValueFromRecord'; @@ -11,28 +12,12 @@ describe('getFieldPreviewValueFromRecord', () => { describe('SELECT field', () => { it('returns the select option corresponding to the record field value', () => { // Given - const record: ObjectRecord = { id: '', industry: 'GREEN_TECH' }; - const fieldMetadataItem = mockedCompanyObjectMetadataItem.fields.find( - ({ name }) => name === 'industry', + const record: ObjectRecord = { id: '', stage: 'MEETING' }; + const fieldMetadataItem = mockedOpportunityObjectMetadataItem.fields.find( + ({ name }) => name === 'stage', )!; - const selectOptions: SettingsObjectFieldSelectFormValues = [ - { - color: 'purple', - label: '🏭 Industry', - value: 'INDUSTRY', - }, - { - color: 'pink', - isDefault: true, - label: '💊 Health', - value: 'HEALTH', - }, - { - color: 'turquoise', - label: '🌿 Green tech', - value: 'GREEN_TECH', - }, - ]; + const selectOptions: SettingsObjectFieldSelectFormValues = + fieldMetadataItem.options ?? []; // When const result = getFieldPreviewValueFromRecord({ @@ -47,28 +32,12 @@ describe('getFieldPreviewValueFromRecord', () => { it('returns undefined if the select option was not found', () => { // Given - const record: ObjectRecord = { id: '', industry: 'MOBILITY' }; - const fieldMetadataItem = mockedCompanyObjectMetadataItem.fields.find( - ({ name }) => name === 'industry', + const record: ObjectRecord = { id: '', industry: 'DOES_NOT_EXIST' }; + const fieldMetadataItem = mockedOpportunityObjectMetadataItem.fields.find( + ({ name }) => name === 'stage', )!; - const selectOptions: SettingsObjectFieldSelectFormValues = [ - { - color: 'purple', - label: '🏭 Industry', - value: 'INDUSTRY', - }, - { - color: 'pink', - isDefault: true, - label: '💊 Health', - value: 'HEALTH', - }, - { - color: 'turquoise', - label: '🌿 Green tech', - value: 'GREEN_TECH', - }, - ]; + const selectOptions: SettingsObjectFieldSelectFormValues = + fieldMetadataItem.options ?? []; // When const result = getFieldPreviewValueFromRecord({ diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/MonthAndYearDropdown.tsx b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/MonthAndYearDropdown.tsx index a07b65eb51..25aeecb76c 100644 --- a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/MonthAndYearDropdown.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/MonthAndYearDropdown.tsx @@ -60,7 +60,11 @@ export const MonthAndYearDropdown = ({ }} dropdownPlacement="bottom-start" clickableComponent={ - + } dropdownComponents={ diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/__stories__/DatePicker.stories.tsx b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/__stories__/DatePicker.stories.tsx index 220a6abc38..8b79d17d5a 100644 --- a/packages/twenty-front/src/modules/ui/input/components/internal/date/components/__stories__/DatePicker.stories.tsx +++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/components/__stories__/DatePicker.stories.tsx @@ -23,11 +23,16 @@ export const WithOpenMonthSelect: Story = { play: async ({ canvasElement }) => { const canvas = within(canvasElement); - const monthSelect = canvas.getByText('January'); + const monthAndYearButton = await canvas.findByTestId( + 'month-and-year-dropdown', + ); + + await userEvent.click(monthAndYearButton); + + const monthSelect = await canvas.findByText('January'); await userEvent.click(monthSelect); - expect(canvas.getAllByText('January')).toHaveLength(2); [ 'February', 'March', diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useViewBar.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useViewBar.test.tsx deleted file mode 100644 index 1906765f63..0000000000 --- a/packages/twenty-front/src/modules/views/hooks/__tests__/useViewBar.test.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { MemoryRouter } from 'react-router-dom'; -import { MockedProvider } from '@apollo/client/testing'; -import { RecoilRoot } from 'recoil'; -import { v4 as uuidv4 } from 'uuid'; - -import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; -import { generateDeleteOneRecordMutation } from '@/object-record/utils/generateDeleteOneRecordMutation'; -import { ViewScope } from '@/views/scopes/ViewScope'; - -const mockedUuid = 'mocked-uuid'; -jest.mock('uuid'); - -(uuidv4 as jest.Mock).mockReturnValue(mockedUuid); - -const mocks = [ - { - request: { - query: generateDeleteOneRecordMutation({ - objectMetadataItem: { nameSingular: 'view' } as ObjectMetadataItem, - }), - variables: { idToDelete: mockedUuid }, - }, - result: jest.fn(() => ({ - data: { deleteView: { id: '' } }, - })), - }, -]; - -const Wrapper = ({ children }: { children: React.ReactNode }) => ( - - - - {}}> - {children} - - - - -); - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -const _renderHookConfig = { - wrapper: Wrapper, -}; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -const _viewBarId = 'viewBarTestId'; - -describe('useViewBar', () => { - it('should set and get current view Id', () => {}); -}); diff --git a/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts b/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts index 4f8b8adcad..fffbc97e90 100644 --- a/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts +++ b/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts @@ -1,6 +1,7 @@ export type ColorScheme = 'Dark' | 'Light' | 'System'; export type WorkspaceMember = { + __typename: 'WorkspaceMember'; id: string; name: { firstName: string; diff --git a/packages/twenty-front/src/pages/auth/__stories__/ChooseYourPlan.stories.tsx b/packages/twenty-front/src/pages/auth/__stories__/ChooseYourPlan.stories.tsx new file mode 100644 index 0000000000..b0c92f84e2 --- /dev/null +++ b/packages/twenty-front/src/pages/auth/__stories__/ChooseYourPlan.stories.tsx @@ -0,0 +1,75 @@ +import { getOperationName } from '@apollo/client/utilities'; +import { Meta, StoryObj } from '@storybook/react'; +import { within } from '@storybook/testing-library'; +import { graphql, HttpResponse } from 'msw'; + +import { AppPath } from '@/types/AppPath'; +import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; +import { + PageDecorator, + PageDecoratorArgs, +} from '~/testing/decorators/PageDecorator'; +import { graphqlMocks } from '~/testing/graphqlMocks'; +import { mockedOnboardingUsersData } from '~/testing/mock-data/users'; +import { sleep } from '~/testing/sleep'; + +import { ChooseYourPlan } from '../ChooseYourPlan'; + +const meta: Meta = { + title: 'Pages/Auth/ChooseYourPlan', + component: ChooseYourPlan, + decorators: [PageDecorator], + args: { routePath: AppPath.PlanRequired }, + parameters: { + msw: { + handlers: [ + graphql.query(getOperationName(GET_CURRENT_USER) ?? '', () => { + return HttpResponse.json({ + data: { + currentUser: mockedOnboardingUsersData[0], + }, + }); + }), + graphql.query('GetProductPrices', () => { + return HttpResponse.json({ + data: { + getProductPrices: { + __typename: 'ProductPricesEntity', + productPrices: [ + { + __typename: 'ProductPriceEntity', + created: 1699860608, + recurringInterval: 'month', + stripePriceId: 'monthly8usd', + unitAmount: 900, + }, + { + __typename: 'ProductPriceEntity', + created: 1701874964, + recurringInterval: 'year', + stripePriceId: 'priceId', + unitAmount: 9000, + }, + ], + }, + }, + }); + }), + graphqlMocks.handlers, + ], + }, + }, +}; + +export default meta; + +export type Story = StoryObj; + +export const Default: Story = { + play: async ({ canvasElement }) => { + const canvas = within(canvasElement); + sleep(100); + + await canvas.findByText('Choose your Plan'); + }, +}; 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 4205007b76..234b06e795 100644 --- a/packages/twenty-front/src/pages/auth/__stories__/PasswordReset.stories.tsx +++ b/packages/twenty-front/src/pages/auth/__stories__/PasswordReset.stories.tsx @@ -4,6 +4,7 @@ import { within } from '@storybook/test'; import { graphql, HttpResponse } from 'msw'; import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; +import { ValidatePasswordResetTokenDocument } from '~/generated/graphql'; import { PasswordReset } from '~/pages/auth/PasswordReset'; import { PageDecorator, @@ -16,10 +17,26 @@ const meta: Meta = { title: 'Pages/Auth/PasswordReset', component: PasswordReset, decorators: [PageDecorator], - args: { routePath: '/reset-password/resetToken' }, + args: { + routePath: '/reset-password/:passwordResetToken', + routeParams: { ':passwordResetToken': 'MOCKED_TOKEN' }, + }, parameters: { msw: { handlers: [ + graphql.query( + getOperationName(ValidatePasswordResetTokenDocument) ?? '', + () => { + return HttpResponse.json({ + data: { + validatePasswordResetToken: { + id: mockedOnboardingUsersData[0].id, + email: mockedOnboardingUsersData[0].email, + }, + }, + }); + }, + ), graphql.query(getOperationName(GET_CURRENT_USER) ?? '', () => { return HttpResponse.json({ data: { diff --git a/packages/twenty-front/src/pages/not-found/__stories__/NotFound.stories.tsx b/packages/twenty-front/src/pages/not-found/__stories__/NotFound.stories.tsx index 08ece6bf3b..246726e0be 100644 --- a/packages/twenty-front/src/pages/not-found/__stories__/NotFound.stories.tsx +++ b/packages/twenty-front/src/pages/not-found/__stories__/NotFound.stories.tsx @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/react'; import { within } from '@storybook/test'; import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator'; +import { HelmetProviderDecorator } from '~/testing/decorators/HelmetProviderDecorator'; import { PageDecoratorArgs } from '~/testing/decorators/PageDecorator'; import { RelationPickerDecorator } from '~/testing/decorators/RelationPickerDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; @@ -12,6 +13,7 @@ const meta: Meta = { title: 'Pages/NotFound/Default', component: NotFound, decorators: [ + HelmetProviderDecorator, ComponentWithRouterDecorator, SnackBarDecorator, RelationPickerDecorator, diff --git a/packages/twenty-front/src/pages/settings/__stories__/SettingsBilling.stories.tsx b/packages/twenty-front/src/pages/settings/__stories__/SettingsBilling.stories.tsx index 6c22deade5..6be6ad9fb7 100644 --- a/packages/twenty-front/src/pages/settings/__stories__/SettingsBilling.stories.tsx +++ b/packages/twenty-front/src/pages/settings/__stories__/SettingsBilling.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryObj } from '@storybook/react'; +import { within } from '@storybook/test'; import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath'; import { SettingsPath } from '@/types/SettingsPath'; @@ -7,6 +8,7 @@ import { PageDecoratorArgs, } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { sleep } from '~/testing/sleep'; import { SettingsBilling } from '../SettingsBilling'; @@ -24,4 +26,11 @@ export default meta; export type Story = StoryObj; -export const Default: Story = {}; +export const Default: Story = { + play: async ({ canvasElement }) => { + const canvas = within(canvasElement); + sleep(1000); + + await canvas.findByRole('button', { name: 'View billing details' }); + }, +}; diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx index 6b636ea4fb..e53cef2cb5 100644 --- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx +++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendars.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryObj } from '@storybook/react'; +import { within } from '@storybook/test'; import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath'; import { SettingsPath } from '@/types/SettingsPath'; @@ -7,6 +8,7 @@ import { PageDecoratorArgs, } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { sleep } from '~/testing/sleep'; import { SettingsAccountsCalendars } from '../SettingsAccountsCalendars'; @@ -27,4 +29,11 @@ export default meta; export type Story = StoryObj; -export const Default: Story = {}; +export const Default: Story = { + play: async ({ canvasElement }) => { + const canvas = within(canvasElement); + sleep(100); + + await canvas.findByText('Calendar settings'); + }, +}; diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendarsSettings.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendarsSettings.stories.tsx index f49e59a26a..c88b24cb34 100644 --- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendarsSettings.stories.tsx +++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccountsCalendarsSettings.stories.tsx @@ -1,4 +1,6 @@ import { Meta, StoryObj } from '@storybook/react'; +import { within } from '@storybook/test'; +import { graphql, HttpResponse } from 'msw'; import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath'; import { SettingsPath } from '@/types/SettingsPath'; @@ -8,6 +10,7 @@ import { } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; import { mockedConnectedAccounts } from '~/testing/mock-data/accounts'; +import { sleep } from '~/testing/sleep'; import { SettingsAccountsCalendarsSettings } from '../SettingsAccountsCalendarsSettings'; @@ -21,7 +24,26 @@ const meta: Meta = { }, parameters: { layout: 'fullscreen', - msw: graphqlMocks, + msw: { + handlers: [ + ...graphqlMocks.handlers, + graphql.query('FindOneCalendarChannel', () => { + return HttpResponse.json({ + data: { + calendarChannel: { + edges: [], + pageInfo: { + hasNextPage: false, + hasPreviousPage: false, + startCursor: null, + endCursor: null, + }, + }, + }, + }); + }), + ], + }, }, }; @@ -29,4 +51,11 @@ export default meta; export type Story = StoryObj; -export const Default: Story = {}; +export const Default: Story = { + play: async ({ canvasElement }) => { + const canvas = within(canvasElement); + sleep(100); + + await canvas.findByText('Event visibility'); + }, +}; diff --git a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectEdit.stories.tsx b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectEdit.stories.tsx index 53d274da2f..0e7d926d34 100644 --- a/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectEdit.stories.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/__stories__/SettingsObjectEdit.stories.tsx @@ -34,6 +34,6 @@ export const StandardObject: Story = { export const CustomObject: Story = { args: { - routeParams: { ':objectSlug': 'workspaces' }, + routeParams: { ':objectSlug': 'listings' }, }, }; diff --git a/packages/twenty-front/src/pages/settings/developers/__stories__/SettingsDevelopers.stories.tsx b/packages/twenty-front/src/pages/settings/developers/__stories__/SettingsDevelopers.stories.tsx index 80c140b430..dcc2c25810 100644 --- a/packages/twenty-front/src/pages/settings/developers/__stories__/SettingsDevelopers.stories.tsx +++ b/packages/twenty-front/src/pages/settings/developers/__stories__/SettingsDevelopers.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryObj } from '@storybook/react'; +import { within } from '@storybook/test'; import { SettingsDevelopers } from '~/pages/settings/developers/SettingsDevelopers'; import { @@ -23,7 +24,10 @@ export default meta; export type Story = StoryObj; export const Default: Story = { - play: async () => { + play: async ({ canvasElement }) => { + const canvas = within(canvasElement); await sleep(100); + + await canvas.findByText('API keys'); }, }; diff --git a/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationDatabase.stories.tsx b/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationDatabase.stories.tsx index 1114e3c75c..be0983ca22 100644 --- a/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationDatabase.stories.tsx +++ b/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationDatabase.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryObj } from '@storybook/react'; +import { within } from '@storybook/test'; import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath'; import { SettingsPath } from '@/types/SettingsPath'; @@ -8,6 +9,7 @@ import { PageDecoratorArgs, } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { sleep } from '~/testing/sleep'; const meta: Meta = { title: 'Pages/Settings/Integrations/SettingsIntegrationDatabase', @@ -26,4 +28,11 @@ export default meta; export type Story = StoryObj; -export const Default: Story = {}; +export const Default: Story = { + play: async ({ canvasElement }) => { + const canvas = within(canvasElement); + sleep(1000); + + await canvas.findByText('PostgreSQL database'); + }, +}; diff --git a/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationDatabaseConnection.stories.tsx b/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationDatabaseConnection.stories.tsx index f5377534be..f72710d7cf 100644 --- a/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationDatabaseConnection.stories.tsx +++ b/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationDatabaseConnection.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryObj } from '@storybook/react'; +import { within } from '@storybook/test'; import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath'; import { SettingsPath } from '@/types/SettingsPath'; @@ -8,6 +9,7 @@ import { PageDecoratorArgs, } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { sleep } from '~/testing/sleep'; const meta: Meta = { title: 'Pages/Settings/Integrations/SettingsIntegrationDatabaseConnection', @@ -29,4 +31,12 @@ export default meta; export type Story = StoryObj; -export const Default: Story = {}; +export const Default: Story = { + play: async ({ canvasElement }) => { + within(canvasElement); + sleep(1000); + + // Todo: Implement mocks in graphqlMocks for databaseConnection + // await canvas.findByText('Tables'); + }, +}; diff --git a/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationNewDatabaseConnection.stories.tsx b/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationNewDatabaseConnection.stories.tsx index aa98b1a9dd..96f5f88f26 100644 --- a/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationNewDatabaseConnection.stories.tsx +++ b/packages/twenty-front/src/pages/settings/integrations/__stories__/SettingsIntegrationNewDatabaseConnection.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryObj } from '@storybook/react'; +import { within } from '@storybook/test'; import { SettingsIntegrationNewDatabaseConnection } from '~/pages/settings/integrations/SettingsIntegrationNewDatabaseConnection'; import { @@ -6,6 +7,7 @@ import { PageDecoratorArgs, } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { sleep } from '~/testing/sleep'; const meta: Meta = { title: 'Pages/Settings/Integrations/SettingsIntegrationNewDatabaseConnection', @@ -24,4 +26,11 @@ export default meta; export type Story = StoryObj; -export const Default: Story = {}; +export const Default: Story = { + play: async ({ canvasElement }) => { + const canvas = within(canvasElement); + sleep(100); + + await canvas.findByText('Connect a new database'); + }, +}; diff --git a/packages/twenty-front/src/pages/tasks/__stories__/Tasks.stories.tsx b/packages/twenty-front/src/pages/tasks/__stories__/Tasks.stories.tsx index f4657c3501..3cef9ef7ed 100644 --- a/packages/twenty-front/src/pages/tasks/__stories__/Tasks.stories.tsx +++ b/packages/twenty-front/src/pages/tasks/__stories__/Tasks.stories.tsx @@ -1,4 +1,5 @@ import { Meta, StoryObj } from '@storybook/react'; +import { graphql, HttpResponse } from 'msw'; import { AppPath } from '@/types/AppPath'; import { @@ -6,6 +7,7 @@ import { PageDecoratorArgs, } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { mockedWorkspaceMemberData } from '~/testing/mock-data/users'; import { sleep } from '~/testing/sleep'; import { Tasks } from '../Tasks'; @@ -16,7 +18,18 @@ const meta: Meta = { decorators: [PageDecorator], args: { routePath: AppPath.TasksPage }, parameters: { - msw: graphqlMocks, + msw: { + handlers: [ + graphql.query('FindOneWorkspaceMember', () => { + return HttpResponse.json({ + data: { + workspaceMember: mockedWorkspaceMemberData, + }, + }); + }), + graphqlMocks.handlers, + ], + }, }, }; diff --git a/packages/twenty-front/src/testing/decorators/HelmetProviderDecorator.tsx b/packages/twenty-front/src/testing/decorators/HelmetProviderDecorator.tsx new file mode 100644 index 0000000000..25aea74c36 --- /dev/null +++ b/packages/twenty-front/src/testing/decorators/HelmetProviderDecorator.tsx @@ -0,0 +1,10 @@ +import { HelmetProvider } from 'react-helmet-async'; +import { Decorator } from '@storybook/react'; + +export const HelmetProviderDecorator: Decorator = (Story) => { + return ( + + + + ); +}; diff --git a/packages/twenty-front/src/testing/decorators/PageDecorator.tsx b/packages/twenty-front/src/testing/decorators/PageDecorator.tsx index 90a17d2dc1..1692ac4919 100644 --- a/packages/twenty-front/src/testing/decorators/PageDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/PageDecorator.tsx @@ -1,12 +1,15 @@ import { HelmetProvider } from 'react-helmet-async'; import { MemoryRouter, Route, Routes } from 'react-router-dom'; import { ApolloProvider } from '@apollo/client'; +import { loadDevMessages } from '@apollo/client/dev'; import { Decorator } from '@storybook/react'; import { RecoilRoot } from 'recoil'; +import { ClientConfigProviderEffect } from '@/client-config/components/ClientConfigProviderEffect'; import { ObjectMetadataItemsProvider } from '@/object-metadata/components/ObjectMetadataItemsProvider'; import { ApolloMetadataClientMockedProvider } from '@/object-metadata/hooks/__mocks__/ApolloMetadataClientProvider'; import { SnackBarProviderScope } from '@/ui/feedback/snack-bar-manager/scopes/SnackBarProviderScope'; +import { UserProviderEffect } from '@/users/components/UserProviderEffect'; import { ClientConfigProvider } from '~/modules/client-config/components/ClientConfigProvider'; import { DefaultLayout } from '~/modules/ui/layout/page/DefaultLayout'; import { UserProvider } from '~/modules/users/components/UserProvider'; @@ -32,14 +35,23 @@ const computeLocation = (routePath: string, routeParams: RouteParams) => { }; }; +const ApolloStorybookDevLogEffect = () => { + loadDevMessages(); + + return <>; +}; + export const PageDecorator: Decorator<{ routePath: string; routeParams: RouteParams; }> = (Story, { args }) => ( + + + { return HttpResponse.json({ - data: { objects: mockedObjectMetadataItems }, + data: mockedObjectMetadataItemsQueryResult, }); }, ), diff --git a/packages/twenty-front/src/testing/mock-data/activities.ts b/packages/twenty-front/src/testing/mock-data/activities.ts index db6a7670db..5f2b454043 100644 --- a/packages/twenty-front/src/testing/mock-data/activities.ts +++ b/packages/twenty-front/src/testing/mock-data/activities.ts @@ -35,14 +35,18 @@ type MockedActivity = Pick< | 'companyId' | 'targetObjectNameSingular' > & { - activity: Pick; - person?: Pick | null; - company?: Pick | null; + activity: Pick; + person?: Pick | null; + company?: Pick< + Company, + 'id' | 'name' | 'domainName' | '__typename' + > | null; } >; }; const workspaceMember: WorkspaceMember = { + __typename: 'WorkspaceMember', id: '374fe3a5-df1e-4119-afe0-2a62a2ba481e', name: { firstName: 'Charles', @@ -103,6 +107,7 @@ export const mockedActivities: Array = [ personId: null, companyId: '89bb825c-171e-4bcc-9cf7-43448d6fb280', company: { + __typename: 'Company', id: '89bb825c-171e-4bcc-9cf7-43448d6fb280', name: 'Airbnb', domainName: 'airbnb.com', @@ -110,6 +115,7 @@ export const mockedActivities: Array = [ person: null, activityId: '89bb825c-171e-4bcc-9cf7-43448d6fb230', activity: { + __typename: 'Activity', id: '89bb825c-171e-4bcc-9cf7-43448d6fb230', createdAt: '2023-04-26T10:12:42.33625+00:00', updatedAt: '2023-04-26T10:23:42.33625+00:00', @@ -124,6 +130,7 @@ export const mockedActivities: Array = [ personId: null, companyId: 'b396e6b9-dc5c-4643-bcff-61b6cf7523ae', company: { + __typename: 'Company', id: '89bb825c-171e-4bcc-9cf7-43448d6fb278', name: 'Aircall', domainName: 'aircall.io', @@ -131,6 +138,7 @@ export const mockedActivities: Array = [ person: null, activityId: 'b396e6b9-dc5c-4643-bcff-61b6cf7523ae', activity: { + __typename: 'Activity', id: '89bb825c-171e-4bcc-9cf7-43448d6fb231', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), @@ -166,6 +174,7 @@ export const mockedActivities: Array = [ targetObjectNameSingular: 'person', personId: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', // Alexandre person: { + __typename: 'Person', id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', name: { firstName: 'Alexandre', @@ -177,6 +186,7 @@ export const mockedActivities: Array = [ companyId: null, activityId: '89bb825c-171e-4bcc-9cf7-43448d6fb278a', activity: { + __typename: 'Activity', id: '89bb825c-171e-4bcc-9cf7-43448d6fb278a', createdAt: '2023-04-26T10:12:42.33625+00:00', updatedAt: '2023-04-26T10:23:42.33625+00:00', @@ -192,6 +202,7 @@ export const mockedActivities: Array = [ targetObjectNameSingular: 'person', company: null, person: { + __typename: 'Person', id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6d', name: { firstName: 'Jean', @@ -201,6 +212,7 @@ export const mockedActivities: Array = [ }, activityId: '89bb825c-171e-4bcc-9cf7-43448d6fb278a', activity: { + __typename: 'Activity', id: '89bb825c-171e-4bcc-9cf7-43448d6fb278a', createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), diff --git a/packages/twenty-front/src/testing/mock-data/companies.ts b/packages/twenty-front/src/testing/mock-data/companies.ts index 0e779ab3cd..492ba0eece 100644 --- a/packages/twenty-front/src/testing/mock-data/companies.ts +++ b/packages/twenty-front/src/testing/mock-data/companies.ts @@ -11,6 +11,7 @@ type MockedCompany = Omit & { export const mockedCompaniesData: Array = [ { + __typename: 'Company', id: '89bb825c-171e-4bcc-9cf7-43448d6fb278', domainName: 'airbnb.com', name: 'Airbnb', @@ -31,6 +32,7 @@ export const mockedCompaniesData: Array = [ Favorite: null, accountOwnerId: mockedUsersData[0].id, accountOwner: { + __typename: 'WorkspaceMember', name: { firstName: 'Charles', lastName: 'Test', @@ -46,6 +48,7 @@ export const mockedCompaniesData: Array = [ }, }, { + __typename: 'Company', id: 'b396e6b9-dc5c-4643-bcff-61b6cf7523ae', domainName: 'aircall.io', name: 'Aircall', @@ -68,6 +71,7 @@ export const mockedCompaniesData: Array = [ Favorite: null, }, { + __typename: 'Company', id: 'a674fa6c-1455-4c57-afaf-dd5dc086361d', domainName: 'algolia.com', name: 'Algolia', @@ -90,6 +94,7 @@ export const mockedCompaniesData: Array = [ accountOwnerId: null, }, { + __typename: 'Company', id: 'b1cfd51b-a831-455f-ba07-4e30671e1dc3', domainName: 'apple.com', name: 'Apple', @@ -112,6 +117,7 @@ export const mockedCompaniesData: Array = [ accountOwnerId: null, }, { + __typename: 'Company', id: '5c21e19e-e049-4393-8c09-3e3f8fb09ecb', domainName: 'qonto.com', name: 'Qonto', @@ -134,6 +140,7 @@ export const mockedCompaniesData: Array = [ accountOwnerId: null, }, { + __typename: 'Company', id: '9d162de6-cfbf-4156-a790-e39854dcd4eb', domainName: 'facebook.com', name: 'Facebook', @@ -156,6 +163,7 @@ export const mockedCompaniesData: Array = [ accountOwnerId: null, }, { + __typename: 'Company', id: '9d162de6-cfbf-4156-a790-e39854dcd4ef', domainName: 'sequoia.com', name: 'Sequoia', diff --git a/packages/twenty-front/src/testing/mock-data/config.ts b/packages/twenty-front/src/testing/mock-data/config.ts index 7b1db13645..0cdef85a6e 100644 --- a/packages/twenty-front/src/testing/mock-data/config.ts +++ b/packages/twenty-front/src/testing/mock-data/config.ts @@ -1,8 +1,8 @@ -export const mockedClientConfig = { +import { ClientConfig } from '~/generated-metadata/graphql'; + +export const mockedClientConfig: ClientConfig = { signInPrefilled: true, signUpDisabled: false, - dataModelSettingsEnabled: true, - developersSettingsEnabled: true, debugMode: false, authProviders: { google: true, @@ -20,6 +20,12 @@ export const mockedClientConfig = { supportFrontChatId: null, __typename: 'Support', }, + sentry: { + dsn: 'MOCKED_DSN', + release: 'MOCKED_RELEASE', + environment: 'MOCKED_ENVIRONMENT', + __typename: 'Sentry', + }, billing: { isBillingEnabled: true, billingUrl: '', diff --git a/packages/twenty-front/src/testing/mock-data/generated/standard-metadata-query-result.ts b/packages/twenty-front/src/testing/mock-data/generated/standard-metadata-query-result.ts new file mode 100644 index 0000000000..7933fdc557 --- /dev/null +++ b/packages/twenty-front/src/testing/mock-data/generated/standard-metadata-query-result.ts @@ -0,0 +1,13057 @@ +import { + ObjectEdge, + ObjectMetadataItemsQuery, +} from '~/generated-metadata/graphql'; + +// This file is not designed to be manually edited. +// It's an extract from the dev seeded environment metadata call +// TODO: automate the generation of this file +export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = { + __typename: 'Query', + objects: { + __typename: 'ObjectConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjI3', + }, + edges: [ + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'efa1addc-a9cb-4789-b99e-a060fa84f987', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'view', + namePlural: 'views', + labelSingular: 'View', + labelPlural: 'Views', + description: '(System) Views', + icon: 'IconLayoutCollage', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEz', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ea83af89-be10-49af-a605-10c3392ae007', + type: 'RELATION', + name: 'viewFields', + label: 'View Fields', + description: 'View Fields', + icon: 'IconTag', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'efa1addc-a9cb-4789-b99e-a060fa84f987', + nameSingular: 'view', + namePlural: 'views', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'ea83af89-be10-49af-a605-10c3392ae007', + name: 'viewFields', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'dba899da-7d88-41ac-b70e-5ea612ab4b2e', + nameSingular: 'viewField', + namePlural: 'viewFields', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'c9607ed7-168d-4743-a56a-689ffcfffe98', + name: 'view', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'c5cdbacd-2489-4409-be9e-bb4cb38f6ddd', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'c9607ed7-168d-4743-a56a-689ffcfffe98', + toObjectMetadata: { + __typename: 'object', + id: 'dba899da-7d88-41ac-b70e-5ea612ab4b2e', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'viewField', + namePlural: 'viewFields', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5e054149-2d41-4591-b968-8fdf0afcbc79', + type: 'RELATION', + name: 'viewFilters', + label: 'View Filters', + description: 'View Filters', + icon: 'IconFilterBolt', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'efa1addc-a9cb-4789-b99e-a060fa84f987', + nameSingular: 'view', + namePlural: 'views', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '5e054149-2d41-4591-b968-8fdf0afcbc79', + name: 'viewFilters', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'e216a94e-b3ea-4421-b501-948d8a902878', + nameSingular: 'viewFilter', + namePlural: 'viewFilters', + }, + targetFieldMetadata: { + __typename: 'field', + id: '6ce40790-295a-4aac-a65e-9ae863ba1d90', + name: 'view', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '4c2b4383-93f8-4996-b870-bc2acf330537', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '6ce40790-295a-4aac-a65e-9ae863ba1d90', + toObjectMetadata: { + __typename: 'object', + id: 'e216a94e-b3ea-4421-b501-948d8a902878', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'viewFilter', + namePlural: 'viewFilters', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c5384d2a-9ec3-4e1b-b93f-86f53f122169', + type: 'UUID', + name: 'objectMetadataId', + label: 'Object Metadata Id', + description: 'View target object', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '405aa0c6-ce96-4597-8b61-2271020fde11', + type: 'RELATION', + name: 'viewSorts', + label: 'View Sorts', + description: 'View Sorts', + icon: 'IconArrowsSort', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'efa1addc-a9cb-4789-b99e-a060fa84f987', + nameSingular: 'view', + namePlural: 'views', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '405aa0c6-ce96-4597-8b61-2271020fde11', + name: 'viewSorts', + }, + targetObjectMetadata: { + __typename: 'object', + id: '06ed4d2c-3ae8-4b0f-895c-de30676d9c46', + nameSingular: 'viewSort', + namePlural: 'viewSorts', + }, + targetFieldMetadata: { + __typename: 'field', + id: '5ab02c12-acdd-4663-b913-78c25dd7f199', + name: 'view', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '44bff5e3-29ae-4a3a-a9d8-bae4981bff33', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '5ab02c12-acdd-4663-b913-78c25dd7f199', + toObjectMetadata: { + __typename: 'object', + id: '06ed4d2c-3ae8-4b0f-895c-de30676d9c46', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'viewSort', + namePlural: 'viewSorts', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'bb4d96be-e4d9-47a9-812d-fcdfb063ebf3', + type: 'POSITION', + name: 'position', + label: 'Position', + description: 'View position', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ae488050-d4b5-4439-8811-88a637fcf1ce', + type: 'TEXT', + name: 'icon', + label: 'Icon', + description: 'View icon', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '497379ca-f058-44e3-a5fb-fcb0b2bfd281', + type: 'BOOLEAN', + name: 'isCompact', + label: 'Compact View', + description: 'Describes if the view is in compact mode', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: false, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a57563df-2d34-4a14-b6c6-bbfd1f88717d', + type: 'TEXT', + name: 'kanbanFieldMetadataId', + label: 'kanbanfieldMetadataId', + description: 'View Kanban column field', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '9f92809b-d5e8-4ab8-bdda-b6e48967929e', + type: 'SELECT', + name: 'key', + label: 'Key', + description: 'View key', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'INDEX'", + options: [ + { + id: 'cc8309e9-0421-4689-9367-d0361f518ec9', + color: 'red', + label: 'Index', + value: 'INDEX', + position: 0, + }, + ], + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '76ba4ce0-3577-48b2-b526-89bb58ed8ee1', + type: 'TEXT', + name: 'type', + label: 'Type', + description: 'View type', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'table'", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f20c68aa-3930-41c4-9f79-45dceda506df', + type: 'TEXT', + name: 'name', + label: 'Name', + description: 'View name', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a3ef848d-660a-4aef-9cd4-5baf25ce36ed', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '92f3e27c-041d-45b2-b2bd-46db2b1aec3f', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8d7987eb-99e8-4e54-a86c-86b3bd07d2be', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'ef1ce364-0ffc-4436-95b5-40c99ce51b49', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageChannelMessageAssociation', + namePlural: 'messageChannelMessageAssociations', + labelSingular: 'Message Channel Message Association', + labelPlural: 'Message Channel Message Associations', + description: 'Message Synced with a Message Channel', + icon: 'IconMessage', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEw', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '3ccc1495-a81f-4360-9759-ee148e1421b8', + type: 'UUID', + name: 'messageChannelId', + label: 'Message Channel Id id (foreign key)', + description: 'Message Channel Id id foreign key', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '4d42264e-8baa-4299-8d6c-f0047bd92d56', + type: 'TEXT', + name: 'messageThreadExternalId', + label: 'Thread External Id', + description: 'Thread id from the messaging provider', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '49bbc13b-36e7-4347-9296-eed0a0d5a6a9', + type: 'TEXT', + name: 'messageExternalId', + label: 'Message External Id', + description: 'Message id from the messaging provider', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd99cc1b4-4874-4c78-bcfe-0908c0a51466', + type: 'RELATION', + name: 'messageThread', + label: 'Message Thread Id', + description: 'Message Thread Id', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'ef1ce364-0ffc-4436-95b5-40c99ce51b49', + nameSingular: 'messageChannelMessageAssociation', + namePlural: 'messageChannelMessageAssociations', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'd99cc1b4-4874-4c78-bcfe-0908c0a51466', + name: 'messageThread', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'b3f8207f-0b88-44ef-981d-a7ead80dff46', + nameSingular: 'messageThread', + namePlural: 'messageThreads', + }, + targetFieldMetadata: { + __typename: 'field', + id: '442b3224-f4c6-49b8-979e-693606a22875', + name: 'messageChannelMessageAssociations', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '549e03f3-97b3-4bf9-a23f-243fcda40f6f', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '442b3224-f4c6-49b8-979e-693606a22875', + fromObjectMetadata: { + __typename: 'object', + id: 'b3f8207f-0b88-44ef-981d-a7ead80dff46', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageThread', + namePlural: 'messageThreads', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '9c47a2d7-6893-4d15-9f8a-5dd684ca912f', + type: 'UUID', + name: 'messageId', + label: 'Message Id id (foreign key)', + description: 'Message Id id foreign key', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c42c20e7-beca-4b4b-8d40-c95072952aff', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '3a173536-9956-4089-8753-a4be5b12c934', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd4906a0e-8c1e-4dc5-81ee-09ca1c42e7c4', + type: 'UUID', + name: 'messageThreadId', + label: 'Message Thread Id id (foreign key)', + description: 'Message Thread Id id foreign key', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '9eb31623-2733-4530-9b49-aaa879ad475d', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '29a3af93-a6b9-464f-bc83-84fd2abf2054', + type: 'RELATION', + name: 'message', + label: 'Message Id', + description: 'Message Id', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'ef1ce364-0ffc-4436-95b5-40c99ce51b49', + nameSingular: 'messageChannelMessageAssociation', + namePlural: 'messageChannelMessageAssociations', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '29a3af93-a6b9-464f-bc83-84fd2abf2054', + name: 'message', + }, + targetObjectMetadata: { + __typename: 'object', + id: '3a7ae3ad-fa9a-4ae4-8a01-dd656a1afc9d', + nameSingular: 'message', + namePlural: 'messages', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'ae82a0a0-d928-499a-a6b1-ad46006452b0', + name: 'messageChannelMessageAssociations', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '94cb665d-b973-4276-bf55-656e08d79736', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'ae82a0a0-d928-499a-a6b1-ad46006452b0', + fromObjectMetadata: { + __typename: 'object', + id: '3a7ae3ad-fa9a-4ae4-8a01-dd656a1afc9d', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'message', + namePlural: 'messages', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8b39502b-7400-480f-aff3-fa010bdbf50c', + type: 'RELATION', + name: 'messageChannel', + label: 'Message Channel Id', + description: 'Message Channel Id', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'ef1ce364-0ffc-4436-95b5-40c99ce51b49', + nameSingular: 'messageChannelMessageAssociation', + namePlural: 'messageChannelMessageAssociations', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '8b39502b-7400-480f-aff3-fa010bdbf50c', + name: 'messageChannel', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8bef276b-342c-4088-9448-752fc8efd426', + nameSingular: 'messageChannel', + namePlural: 'messageChannels', + }, + targetFieldMetadata: { + __typename: 'field', + id: '1cbbd683-b426-4509-9557-54671e6f0447', + name: 'messageChannelMessageAssociations', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'b103a006-841d-4c39-b3b6-9385eb1cedfa', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '1cbbd683-b426-4509-9557-54671e6f0447', + fromObjectMetadata: { + __typename: 'object', + id: '8bef276b-342c-4088-9448-752fc8efd426', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageChannel', + namePlural: 'messageChannels', + isSystem: true, + }, + }, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'ed696d77-9b3c-4589-99a2-1f03f9a4ba5b', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'blocklist', + namePlural: 'blocklists', + labelSingular: 'Blocklist', + labelPlural: 'Blocklists', + description: 'Blocklist', + icon: 'IconForbid2', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjU=', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0a1a9628-472f-4fc1-b5b7-2a6a76eb75f7', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '3ed68d76-dc49-4437-a3da-c3f4fd106641', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '694deb5a-ff12-4a79-8588-de714da8c74b', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0b04e28c-a133-4844-b03c-bf811c00d101', + type: 'TEXT', + name: 'handle', + label: 'Handle', + description: 'Handle', + icon: 'IconAt', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'dad00e51-1012-4874-99bc-1c5d178d5df8', + type: 'UUID', + name: 'workspaceMemberId', + label: 'WorkspaceMember id (foreign key)', + description: 'WorkspaceMember id foreign key', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5d578b49-324e-43a3-a10a-512c5606d29b', + type: 'RELATION', + name: 'workspaceMember', + label: 'WorkspaceMember', + description: 'WorkspaceMember', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'ed696d77-9b3c-4589-99a2-1f03f9a4ba5b', + nameSingular: 'blocklist', + namePlural: 'blocklists', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '5d578b49-324e-43a3-a10a-512c5606d29b', + name: 'workspaceMember', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'ca7a26f0-84f3-4215-a3a1-6967961de3c4', + name: 'blocklist', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '3e9e97f8-a2a4-4f90-a6a0-721fb1e66334', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'ca7a26f0-84f3-4215-a3a1-6967961de3c4', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'e9777897-9a5e-4c92-aa4f-555b10a39cc3', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageParticipant', + namePlural: 'messageParticipants', + labelSingular: 'Message Participant', + labelPlural: 'Message Participants', + description: 'Message Participants', + icon: 'IconUserCircle', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEx', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e863b224-08fc-4241-8b77-eb24e14844dc', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '372d5559-abc9-43c8-aa89-62d95e384c5a', + type: 'RELATION', + name: 'message', + label: 'Message', + description: 'Message', + icon: 'IconMessage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'e9777897-9a5e-4c92-aa4f-555b10a39cc3', + nameSingular: 'messageParticipant', + namePlural: 'messageParticipants', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '372d5559-abc9-43c8-aa89-62d95e384c5a', + name: 'message', + }, + targetObjectMetadata: { + __typename: 'object', + id: '3a7ae3ad-fa9a-4ae4-8a01-dd656a1afc9d', + nameSingular: 'message', + namePlural: 'messages', + }, + targetFieldMetadata: { + __typename: 'field', + id: '12099cb8-ee26-4ce7-836c-73230c94c3e8', + name: 'messageParticipants', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '16a649f3-94b9-456e-ad2a-70dcd16c9516', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '12099cb8-ee26-4ce7-836c-73230c94c3e8', + fromObjectMetadata: { + __typename: 'object', + id: '3a7ae3ad-fa9a-4ae4-8a01-dd656a1afc9d', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'message', + namePlural: 'messages', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1168f1f2-ae9a-4669-a517-d0f785102c5e', + type: 'TEXT', + name: 'displayName', + label: 'Display Name', + description: 'Display Name', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '415de672-a5a6-4d11-b123-ce921849db37', + type: 'TEXT', + name: 'handle', + label: 'Handle', + description: 'Handle', + icon: 'IconAt', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '836f7097-cb64-452d-84a8-139972c9041d', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '66ff1cd4-a364-4ac0-ad58-72de0c425530', + type: 'UUID', + name: 'workspaceMemberId', + label: 'Workspace Member id (foreign key)', + description: 'Workspace member id foreign key', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '770b5c8f-8d05-4168-9355-8ac21f850175', + type: 'UUID', + name: 'messageId', + label: 'Message id (foreign key)', + description: 'Message id foreign key', + icon: 'IconMessage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '02b1656e-251d-4229-b86a-de621678bd96', + type: 'RELATION', + name: 'person', + label: 'Person', + description: 'Person', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'e9777897-9a5e-4c92-aa4f-555b10a39cc3', + nameSingular: 'messageParticipant', + namePlural: 'messageParticipants', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '02b1656e-251d-4229-b86a-de621678bd96', + name: 'person', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + targetFieldMetadata: { + __typename: 'field', + id: '776f05e8-fe39-47c7-861e-586361299462', + name: 'messageParticipants', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '5a766df3-68b4-4772-ab77-bfcc61bfbaf5', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '776f05e8-fe39-47c7-861e-586361299462', + fromObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'person', + namePlural: 'people', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '767c63d9-0e2b-4e27-b70b-98a5abac2af1', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5347bc0d-f881-4d85-a12d-efa6ff87390c', + type: 'SELECT', + name: 'role', + label: 'Role', + description: 'Role', + icon: 'IconAt', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'from'", + options: [ + { + id: '42447b80-c957-4508-a2f5-f29641ea1869', + color: 'green', + label: 'From', + value: 'from', + position: 0, + }, + { + id: '5ece6f75-a65b-441f-beda-fa4396da98b4', + color: 'blue', + label: 'To', + value: 'to', + position: 1, + }, + { + id: '3db19ee3-b0cc-4197-a37d-fd61be794066', + color: 'orange', + label: 'Cc', + value: 'cc', + position: 2, + }, + { + id: '0b8a9bee-02f7-4c42-9dc2-4bc4499a2662', + color: 'red', + label: 'Bcc', + value: 'bcc', + position: 3, + }, + ], + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd96db94f-cffa-494b-9551-4d639d47cee3', + type: 'RELATION', + name: 'workspaceMember', + label: 'Workspace Member', + description: 'Workspace member', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'e9777897-9a5e-4c92-aa4f-555b10a39cc3', + nameSingular: 'messageParticipant', + namePlural: 'messageParticipants', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'd96db94f-cffa-494b-9551-4d639d47cee3', + name: 'workspaceMember', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: '67044674-2477-44b4-a7a2-fba9add0e9ce', + name: 'messageParticipants', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'a67bb487-2239-4073-ac05-8e2df6446185', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '67044674-2477-44b4-a7a2-fba9add0e9ce', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fd4ac7e5-fc90-4760-8a47-44d084c850df', + type: 'UUID', + name: 'personId', + label: 'Person id (foreign key)', + description: 'Person id foreign key', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'event', + namePlural: 'events', + labelSingular: 'Event', + labelPlural: 'Events', + description: 'An event', + icon: 'IconJson', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjE0', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '728b91ef-bda8-4d47-80a7-36e64f659ea7', + type: 'RELATION', + name: 'person', + label: 'Person', + description: 'Event person', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + nameSingular: 'event', + namePlural: 'events', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '728b91ef-bda8-4d47-80a7-36e64f659ea7', + name: 'person', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + targetFieldMetadata: { + __typename: 'field', + id: '62332d09-84c5-4959-af41-f1e9cc22ec8d', + name: 'events', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'd9f82315-17dd-4991-9713-ca99455383e5', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '62332d09-84c5-4959-af41-f1e9cc22ec8d', + fromObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'person', + namePlural: 'people', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '9d375ab4-b01f-48b0-af43-bd00c572a910', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '315ef974-9ed8-44ee-9e8d-c29cd58a44fb', + type: 'UUID', + name: 'listingId', + label: 'Listing ID (foreign key)', + description: 'Event Listing id foreign key', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:51:28.716Z', + updatedAt: '2024-04-08T12:51:28.716Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'bcfa8dd3-080a-43f1-ab82-7b6a5b81a64c', + type: 'RELATION', + name: 'opportunity', + label: 'Opportunity', + description: 'Events opportunity', + icon: 'IconTargetArrow', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + nameSingular: 'event', + namePlural: 'events', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'bcfa8dd3-080a-43f1-ab82-7b6a5b81a64c', + name: 'opportunity', + }, + targetObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'a16e97e2-2d9f-45f7-85bf-c6cc78de9175', + name: 'events', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'ac4bf17f-3e8f-4f90-bf23-ddb8ff4e9063', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'a16e97e2-2d9f-45f7-85bf-c6cc78de9175', + fromObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'opportunity', + namePlural: 'opportunities', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ec278a15-9720-4fee-b2f8-2dc0e7082fd9', + type: 'RAW_JSON', + name: 'properties', + label: 'Event details', + description: 'Json value for event details', + icon: 'IconListDetails', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5bbfcfa7-0680-448a-a9dd-a9e4ce18f8a6', + type: 'TEXT', + name: 'name', + label: 'Event name', + description: 'Event name/type', + icon: 'IconAbc', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fb7474da-3b2e-4c91-82e7-fd27cea92e46', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1d60077d-c9ce-4363-adf4-4772a1790799', + type: 'UUID', + name: 'workspaceMemberId', + label: 'Workspace Member id (foreign key)', + description: 'Event workspace member id foreign key', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e8998178-223e-42a8-9978-a72a4477c8d4', + type: 'RELATION', + name: 'workspaceMember', + label: 'Workspace Member', + description: 'Event workspace member', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + nameSingular: 'event', + namePlural: 'events', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'e8998178-223e-42a8-9978-a72a4477c8d4', + name: 'workspaceMember', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'a06ac5ca-493e-413e-a305-0812deeaab85', + name: 'events', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '6bec3a65-b7eb-4597-96fe-26b10088d2fc', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'a06ac5ca-493e-413e-a305-0812deeaab85', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0b949086-3424-4379-a60f-0d6c55edf26d', + type: 'UUID', + name: 'companyId', + label: 'Company id (foreign key)', + description: 'Event company id foreign key', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ce52caf5-ead9-4cb7-bf6b-908df315c9d2', + type: 'UUID', + name: 'opportunityId', + label: 'Opportunity id (foreign key)', + description: 'Events opportunity id foreign key', + icon: 'IconTargetArrow', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1771a632-cc73-4706-8ee7-abe3fb67a5e6', + type: 'UUID', + name: 'personId', + label: 'Person id (foreign key)', + description: 'Event person id foreign key', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '889a2fbc-c966-4c79-a763-9b1f2c8ad467', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '439ddfe9-1a1d-4992-9bd0-3c7b965e05d5', + type: 'RELATION', + name: 'listing', + label: 'Listing', + description: 'Event Listing', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:51:28.716Z', + updatedAt: '2024-04-08T12:51:28.716Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + nameSingular: 'event', + namePlural: 'events', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '439ddfe9-1a1d-4992-9bd0-3c7b965e05d5', + name: 'listing', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'bfff2fe1-f45e-4cb4-bd9e-9d68dfe9af7e', + name: 'events', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '2c17a017-0dd4-4623-b7dc-63187f0eef12', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'bfff2fe1-f45e-4cb4-bd9e-9d68dfe9af7e', + fromObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'listing', + namePlural: 'listings', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '155c7d0c-1974-426a-a072-6cee0424d71c', + type: 'RELATION', + name: 'company', + label: 'Company', + description: 'Event company', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + nameSingular: 'event', + namePlural: 'events', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '155c7d0c-1974-426a-a072-6cee0424d71c', + name: 'company', + }, + targetObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + targetFieldMetadata: { + __typename: 'field', + id: '29f251c2-fd6f-4fa7-a55b-80e6481f4ba9', + name: 'events', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'ad0eb66d-e558-465d-b148-cc0cf3db3b95', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '29f251c2-fd6f-4fa7-a55b-80e6481f4ba9', + fromObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'company', + namePlural: 'companies', + isSystem: false, + }, + }, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'e216a94e-b3ea-4421-b501-948d8a902878', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'viewFilter', + namePlural: 'viewFilters', + labelSingular: 'View Filter', + labelPlural: 'View Filters', + description: '(System) View Filters', + icon: 'IconFilterBolt', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjg=', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd5f9207d-baf6-41e6-932d-b9d059cb94c6', + type: 'UUID', + name: 'viewId', + label: 'View id (foreign key)', + description: 'View Filter related view id foreign key', + icon: 'IconLayoutCollage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2dca6b6e-00a3-4271-b51f-145b3872e154', + type: 'TEXT', + name: 'operand', + label: 'Operand', + description: 'View Filter operand', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'Contains'", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fc0463f0-648a-44ae-9ebf-84289a8ce592', + type: 'TEXT', + name: 'displayValue', + label: 'Display Value', + description: 'View Filter Display Value', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '7ab7e2cc-e863-4dcd-bf60-bcd3f7cf6d74', + type: 'UUID', + name: 'fieldMetadataId', + label: 'Field Metadata Id', + description: 'View Filter target field', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '6ce40790-295a-4aac-a65e-9ae863ba1d90', + type: 'RELATION', + name: 'view', + label: 'View', + description: 'View Filter related view', + icon: 'IconLayoutCollage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'e216a94e-b3ea-4421-b501-948d8a902878', + nameSingular: 'viewFilter', + namePlural: 'viewFilters', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '6ce40790-295a-4aac-a65e-9ae863ba1d90', + name: 'view', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'efa1addc-a9cb-4789-b99e-a060fa84f987', + nameSingular: 'view', + namePlural: 'views', + }, + targetFieldMetadata: { + __typename: 'field', + id: '5e054149-2d41-4591-b968-8fdf0afcbc79', + name: 'viewFilters', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '4c2b4383-93f8-4996-b870-bc2acf330537', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '5e054149-2d41-4591-b968-8fdf0afcbc79', + fromObjectMetadata: { + __typename: 'object', + id: 'efa1addc-a9cb-4789-b99e-a060fa84f987', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'view', + namePlural: 'views', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f02054a1-e29f-4130-a9c7-00e2dea3aa0c', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '26bae21d-d3cd-43dc-969c-74c7a87a9a24', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a9d677ce-52c6-4b9e-a870-1bc4d86363be', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2fcdf97c-d21c-4f3c-bffd-d6e8a2e4f67f', + type: 'TEXT', + name: 'value', + label: 'Value', + description: 'View Filter value', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'dba899da-7d88-41ac-b70e-5ea612ab4b2e', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'viewField', + namePlural: 'viewFields', + labelSingular: 'View Field', + labelPlural: 'View Fields', + description: '(System) View Fields', + icon: 'IconTag', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjg=', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '039886df-8b4f-4e1c-bd3d-c88d45d400dd', + type: 'NUMBER', + name: 'size', + label: 'Size', + description: 'View Field size', + icon: 'IconEye', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 0, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c9607ed7-168d-4743-a56a-689ffcfffe98', + type: 'RELATION', + name: 'view', + label: 'View', + description: 'View Field related view', + icon: 'IconLayoutCollage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'dba899da-7d88-41ac-b70e-5ea612ab4b2e', + nameSingular: 'viewField', + namePlural: 'viewFields', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'c9607ed7-168d-4743-a56a-689ffcfffe98', + name: 'view', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'efa1addc-a9cb-4789-b99e-a060fa84f987', + nameSingular: 'view', + namePlural: 'views', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'ea83af89-be10-49af-a605-10c3392ae007', + name: 'viewFields', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'c5cdbacd-2489-4409-be9e-bb4cb38f6ddd', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'ea83af89-be10-49af-a605-10c3392ae007', + fromObjectMetadata: { + __typename: 'object', + id: 'efa1addc-a9cb-4789-b99e-a060fa84f987', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'view', + namePlural: 'views', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8dcae458-248e-4499-a09e-6c9d508b094b', + type: 'UUID', + name: 'viewId', + label: 'View id (foreign key)', + description: 'View Field related view id foreign key', + icon: 'IconLayoutCollage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e0e588e2-f862-4aa4-8f72-9324addaf2f5', + type: 'NUMBER', + name: 'position', + label: 'Position', + description: 'View Field position', + icon: 'IconList', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 0, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'cd92f36f-eb89-432e-bb64-65ef6196b9d5', + type: 'BOOLEAN', + name: 'isVisible', + label: 'Visible', + description: 'View Field visibility', + icon: 'IconEye', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: true, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f566a745-14e7-41d0-b408-943794b27ea6', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '6fb24cf5-735a-458d-9f4e-f625f1139a7c', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1daa9f85-7521-4d3d-bc6f-0bc627fdcb6e', + type: 'UUID', + name: 'fieldMetadataId', + label: 'Field Metadata Id', + description: 'View Field target field', + icon: 'IconTag', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fc206184-8ae3-4290-b148-863d107986ac', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'd398ff30-85e0-45ab-a62a-ba2d775ce186', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarChannel', + namePlural: 'calendarChannels', + labelSingular: 'Calendar Channel', + labelPlural: 'Calendar Channels', + description: 'Calendar Channels', + icon: 'IconCalendar', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEw', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e32193cc-6104-47c8-b5dd-3a1409ca8415', + type: 'UUID', + name: 'connectedAccountId', + label: 'Connected Account id (foreign key)', + description: 'Connected Account id foreign key', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fefbe526-b75b-494e-a06a-e89d6790cc3b', + type: 'RELATION', + name: 'connectedAccount', + label: 'Connected Account', + description: 'Connected Account', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'd398ff30-85e0-45ab-a62a-ba2d775ce186', + nameSingular: 'calendarChannel', + namePlural: 'calendarChannels', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'fefbe526-b75b-494e-a06a-e89d6790cc3b', + name: 'connectedAccount', + }, + targetObjectMetadata: { + __typename: 'object', + id: '184958e2-9434-453c-98be-7ca4311cc77e', + nameSingular: 'connectedAccount', + namePlural: 'connectedAccounts', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'fc92c00d-e5ff-4982-965e-514ee30bcf1c', + name: 'calendarChannels', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'cab6d0bd-c3fb-46dc-af6f-de28e4689dd0', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'fc92c00d-e5ff-4982-965e-514ee30bcf1c', + fromObjectMetadata: { + __typename: 'object', + id: '184958e2-9434-453c-98be-7ca4311cc77e', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'connectedAccount', + namePlural: 'connectedAccounts', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c5c6557d-0072-4498-a04a-1ec57b797bc8', + type: 'BOOLEAN', + name: 'isContactAutoCreationEnabled', + label: 'Is Contact Auto Creation Enabled', + description: 'Is Contact Auto Creation Enabled', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: true, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '179ed906-cc28-4f7a-a9f3-387b4e3b6de6', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5823bb64-7653-4651-a185-4fbbe4d55a59', + type: 'BOOLEAN', + name: 'isSyncEnabled', + label: 'Is Sync Enabled', + description: 'Is Sync Enabled', + icon: 'IconRefresh', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: true, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '99ec57f5-6afa-46cd-8409-1ae65b1eafeb', + type: 'SELECT', + name: 'visibility', + label: 'Visibility', + description: 'Visibility', + icon: 'IconEyeglass', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'SHARE_EVERYTHING'", + options: [ + { + id: 'b60eeb97-c67b-4d01-b647-1143d58ed49f', + color: 'green', + label: 'Metadata', + value: 'METADATA', + position: 0, + }, + { + id: '7064c804-deb0-4f65-b7d6-3fe4df9a474c', + color: 'orange', + label: 'Share Everything', + value: 'SHARE_EVERYTHING', + position: 1, + }, + ], + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b763b528-15ab-4eea-9540-74349fa59c1d', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '60c518d0-c6ec-4b37-8bac-129e1442f390', + type: 'RELATION', + name: 'calendarChannelEventAssociations', + label: 'Calendar Channel Event Associations', + description: 'Calendar Channel Event Associations', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'd398ff30-85e0-45ab-a62a-ba2d775ce186', + nameSingular: 'calendarChannel', + namePlural: 'calendarChannels', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '60c518d0-c6ec-4b37-8bac-129e1442f390', + name: 'calendarChannelEventAssociations', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'b3b3b148-eb5f-4457-87e0-2f40f363c390', + nameSingular: 'calendarChannelEventAssociation', + namePlural: 'calendarChannelEventAssociations', + }, + targetFieldMetadata: { + __typename: 'field', + id: '9b6e136f-3c9e-4c4b-92f8-a50291eb21f8', + name: 'calendarChannel', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '56260075-0a16-452a-ace1-65648fb299fe', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '9b6e136f-3c9e-4c4b-92f8-a50291eb21f8', + toObjectMetadata: { + __typename: 'object', + id: 'b3b3b148-eb5f-4457-87e0-2f40f363c390', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarChannelEventAssociation', + namePlural: 'calendarChannelEventAssociations', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b79c792c-1cd3-4586-89f6-52f0d7b2446a', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '4a9b4548-6477-4375-8e4b-ced5e4aae5a9', + type: 'TEXT', + name: 'handle', + label: 'Handle', + description: 'Handle', + icon: 'IconAt', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c4bf0f31-65df-47f9-ab61-6bd699bc0a86', + type: 'TEXT', + name: 'syncCursor', + label: 'Sync Cursor', + description: + 'Sync Cursor. Used for syncing events from the calendar provider', + icon: 'IconReload', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'person', + namePlural: 'people', + labelSingular: 'Person', + labelPlural: 'People', + description: 'A person', + icon: 'IconUser', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjIw', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f5e39bd8-7978-4f65-9f2d-6ec224742451', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b802682c-3f9d-4f86-856b-a8e91048ae02', + type: 'RELATION', + name: 'calendarEventParticipants', + label: 'Calendar Event Participants', + description: 'Calendar Event Participants', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'b802682c-3f9d-4f86-856b-a8e91048ae02', + name: 'calendarEventParticipants', + }, + targetObjectMetadata: { + __typename: 'object', + id: '151b651a-12a7-4edd-9179-e7abc292d996', + nameSingular: 'calendarEventParticipant', + namePlural: 'calendarEventParticipants', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'e9fb5ddb-4231-46c3-971f-0dfb321641b8', + name: 'person', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'eda707cd-b61d-4fda-933c-9eb5e17333d9', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'e9fb5ddb-4231-46c3-971f-0dfb321641b8', + toObjectMetadata: { + __typename: 'object', + id: '151b651a-12a7-4edd-9179-e7abc292d996', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarEventParticipant', + namePlural: 'calendarEventParticipants', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '7ada51cb-58be-42cd-86df-16c3f2bb8b58', + type: 'TEXT', + name: 'phone', + label: 'Phone', + description: 'Contact’s phone number', + icon: 'IconPhone', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '3eb1d6b2-e274-4f43-982f-5c93da72da4f', + type: 'TEXT', + name: 'avatarUrl', + label: 'Avatar', + description: 'Contact’s avatar', + icon: 'IconFileUpload', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '483d8221-01cd-4d70-83f7-f3d1b60c5575', + type: 'RELATION', + name: 'activityTargets', + label: 'Activities', + description: 'Activities tied to the contact', + icon: 'IconCheckbox', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '483d8221-01cd-4d70-83f7-f3d1b60c5575', + name: 'activityTargets', + }, + targetObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + }, + targetFieldMetadata: { + __typename: 'field', + id: '5bb6652c-6eba-4c1a-b6e5-aae3ca46b132', + name: 'person', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '2d449c2a-7988-4b17-adfa-f362d44564bb', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '5bb6652c-6eba-4c1a-b6e5-aae3ca46b132', + toObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '429c071c-0fdf-4534-8122-0d0ca1a4fe58', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '3124eb41-1cd9-485b-a188-8c5af3facb6d', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c12b7c1d-3f56-4e40-8c7e-1b01b2c95022', + type: 'UUID', + name: 'companyId', + label: 'Company id (foreign key)', + description: 'Contact’s company id foreign key', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8bcf41c8-a6ff-4694-9141-9fc2035e5719', + type: 'POSITION', + name: 'position', + label: 'Position', + description: 'Person record Position', + icon: 'IconHierarchy2', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e1ef2ed4-082b-4347-93bd-9afabc57cdb6', + type: 'EMAIL', + name: 'email', + label: 'Email', + description: 'Contact’s Email', + icon: 'IconMail', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5bf9cc64-c0ba-43e0-b1f9-f7cd086c048b', + type: 'LINK', + name: 'xLink', + label: 'X', + description: 'Contact’s X/Twitter account', + icon: 'IconBrandX', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: { + url: "''", + label: "''", + }, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f3b72b3d-1243-4da3-9535-004f5fda3a3e', + type: 'TEXT', + name: 'city', + label: 'City', + description: 'Contact’s city', + icon: 'IconMap', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '17a9cee7-7f68-42bb-abd0-50932466f901', + type: 'RELATION', + name: 'favorites', + label: 'Favorites', + description: 'Favorites linked to the contact', + icon: 'IconHeart', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '17a9cee7-7f68-42bb-abd0-50932466f901', + name: 'favorites', + }, + targetObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + nameSingular: 'favorite', + namePlural: 'favorites', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'd737cd4a-4032-476d-a594-1952ba7883b2', + name: 'person', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'e0c1854d-d8a7-4936-a27c-265a09a635d4', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'd737cd4a-4032-476d-a594-1952ba7883b2', + toObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'favorite', + namePlural: 'favorites', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'de45c3eb-6243-47ed-81d7-64b6e28255ce', + type: 'TEXT', + name: 'jobTitle', + label: 'Job Title', + description: 'Contact’s job title', + icon: 'IconBriefcase', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '776f05e8-fe39-47c7-861e-586361299462', + type: 'RELATION', + name: 'messageParticipants', + label: 'Message Participants', + description: 'Message Participants', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '776f05e8-fe39-47c7-861e-586361299462', + name: 'messageParticipants', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'e9777897-9a5e-4c92-aa4f-555b10a39cc3', + nameSingular: 'messageParticipant', + namePlural: 'messageParticipants', + }, + targetFieldMetadata: { + __typename: 'field', + id: '02b1656e-251d-4229-b86a-de621678bd96', + name: 'person', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '5a766df3-68b4-4772-ab77-bfcc61bfbaf5', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '02b1656e-251d-4229-b86a-de621678bd96', + toObjectMetadata: { + __typename: 'object', + id: 'e9777897-9a5e-4c92-aa4f-555b10a39cc3', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageParticipant', + namePlural: 'messageParticipants', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fae2489f-7f59-4385-bec8-9d3f4044d1da', + type: 'RELATION', + name: 'attachments', + label: 'Attachments', + description: 'Attachments linked to the contact.', + icon: 'IconFileImport', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'fae2489f-7f59-4385-bec8-9d3f4044d1da', + name: 'attachments', + }, + targetObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'ef4c93f7-b0fb-40a5-932b-2db0f4fe2271', + name: 'person', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'c10de251-b748-4c5d-8dfa-51cbd82f75dc', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'ef4c93f7-b0fb-40a5-932b-2db0f4fe2271', + toObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'attachment', + namePlural: 'attachments', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '62332d09-84c5-4959-af41-f1e9cc22ec8d', + type: 'RELATION', + name: 'events', + label: 'Events', + description: 'Events linked to the company', + icon: 'IconTimelineEvent', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '62332d09-84c5-4959-af41-f1e9cc22ec8d', + name: 'events', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + nameSingular: 'event', + namePlural: 'events', + }, + targetFieldMetadata: { + __typename: 'field', + id: '728b91ef-bda8-4d47-80a7-36e64f659ea7', + name: 'person', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'd9f82315-17dd-4991-9713-ca99455383e5', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '728b91ef-bda8-4d47-80a7-36e64f659ea7', + toObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'event', + namePlural: 'events', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0506894e-bbc5-4415-a979-c5296b53e4db', + type: 'FULL_NAME', + name: 'name', + label: 'Name', + description: 'Contact’s name', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: { + lastName: "''", + firstName: "''", + }, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c624bade-5070-4155-bd0c-8704fb2cdf8b', + type: 'RELATION', + name: 'company', + label: 'Company', + description: 'Contact’s company', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'c624bade-5070-4155-bd0c-8704fb2cdf8b', + name: 'company', + }, + targetObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + targetFieldMetadata: { + __typename: 'field', + id: '6be4ff53-c65b-4955-9f86-935dd953154d', + name: 'people', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '9b2b32d2-9864-4dd6-9f3f-700525313393', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '6be4ff53-c65b-4955-9f86-935dd953154d', + fromObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'company', + namePlural: 'companies', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '867aefab-52f8-4109-886d-b0f2301f7749', + type: 'LINK', + name: 'linkedinLink', + label: 'Linkedin', + description: 'Contact’s Linkedin account', + icon: 'IconBrandLinkedin', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: { + url: "''", + label: "''", + }, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c2897c17-90a9-487b-a358-579c14cdd862', + type: 'RELATION', + name: 'pointOfContactForOpportunities', + label: 'POC for Opportunities', + description: 'Point of Contact for Opportunities', + icon: 'IconTargetArrow', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'c2897c17-90a9-487b-a358-579c14cdd862', + name: 'pointOfContactForOpportunities', + }, + targetObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + targetFieldMetadata: { + __typename: 'field', + id: '4a6abf2d-56dd-44e4-a52f-048d05b8bee5', + name: 'pointOfContact', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '47ed427f-20b2-454b-acef-39bc5ff2535e', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '4a6abf2d-56dd-44e4-a52f-048d05b8bee5', + toObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'opportunity', + namePlural: 'opportunities', + isSystem: false, + }, + }, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'listing', + namePlural: 'listings', + labelSingular: 'Listing', + labelPlural: 'Listings', + description: null, + icon: 'IconListNumbers', + isCustom: true, + isRemote: false, + isActive: true, + isSystem: false, + createdAt: '2024-04-08T12:51:28.705Z', + updatedAt: '2024-04-08T12:51:28.705Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEx', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'bfff2fe1-f45e-4cb4-bd9e-9d68dfe9af7e', + type: 'RELATION', + name: 'events', + label: 'Events', + description: 'Events tied to the Listing', + icon: 'IconFileImport', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:51:28.716Z', + updatedAt: '2024-04-08T12:51:28.716Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'bfff2fe1-f45e-4cb4-bd9e-9d68dfe9af7e', + name: 'events', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + nameSingular: 'event', + namePlural: 'events', + }, + targetFieldMetadata: { + __typename: 'field', + id: '439ddfe9-1a1d-4992-9bd0-3c7b965e05d5', + name: 'listing', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '2c17a017-0dd4-4623-b7dc-63187f0eef12', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '439ddfe9-1a1d-4992-9bd0-3c7b965e05d5', + toObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'event', + namePlural: 'events', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '98ca7ac0-c41a-4f39-a3ab-6b4fad98a73a', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:51:28.705Z', + updatedAt: '2024-04-08T12:51:28.705Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8d619227-e268-435a-8a86-58db3f8e61e7', + type: 'UUID', + name: 'cId', + label: 'C Foreign Key', + description: null, + icon: null, + isCustom: true, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:54:56.499Z', + updatedAt: '2024-04-08T12:54:56.499Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2629a000-8bee-443d-9379-1c89a597df21', + type: 'RELATION', + name: 'activityTargets', + label: 'Activities', + description: 'Activities tied to the Listing', + icon: 'IconCheckbox', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:51:28.722Z', + updatedAt: '2024-04-08T12:51:28.722Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '2629a000-8bee-443d-9379-1c89a597df21', + name: 'activityTargets', + }, + targetObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'b407e872-8151-4bef-8277-0df5f638153d', + name: 'listing', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'c73fedc6-1a38-48d6-830f-bdfc92991506', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'b407e872-8151-4bef-8277-0df5f638153d', + toObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '178e9a07-cd88-47c0-8faf-cbd3918ba8b0', + type: 'RELATION', + name: 'c', + label: 'C', + description: null, + icon: 'IconBuildingSkyscraper', + isCustom: true, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:54:56.499Z', + updatedAt: '2024-04-08T12:54:56.499Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '178e9a07-cd88-47c0-8faf-cbd3918ba8b0', + name: 'c', + }, + targetObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'fc6a4a82-f80f-4aad-85e3-b2ae9b8fb26b', + name: 'listings', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '35414edf-0c44-4500-95cc-ae6694ef9947', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'fc6a4a82-f80f-4aad-85e3-b2ae9b8fb26b', + fromObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'company', + namePlural: 'companies', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8691fd1b-ecdb-4c7e-b7fb-fc7069c69dbd', + type: 'POSITION', + name: 'position', + label: 'Position', + description: 'Position', + icon: 'IconHierarchy2', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:51:28.705Z', + updatedAt: '2024-04-08T12:51:28.705Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ff20f9f0-f081-436b-8526-d7b2b3c80c92', + type: 'RELATION', + name: 'company', + label: 'Company', + description: null, + icon: 'IconUsers', + isCustom: true, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:51:58.429Z', + updatedAt: '2024-04-08T12:51:58.429Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'ff20f9f0-f081-436b-8526-d7b2b3c80c92', + name: 'company', + }, + targetObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + targetFieldMetadata: { + __typename: 'field', + id: '3a78ab26-7c4b-498a-b839-92b38223a3d5', + name: 'listing', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '06dd3af4-7dc0-4599-9d99-3ea637fd672b', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '3a78ab26-7c4b-498a-b839-92b38223a3d5', + toObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'company', + namePlural: 'companies', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '15ef13ed-8594-497e-9816-1cb89cf796af', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:51:28.705Z', + updatedAt: '2024-04-08T12:51:28.705Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '78ab1b0d-e6b7-4c45-ac46-decdcf913b23', + type: 'RELATION', + name: 'favorites', + label: 'Favorites', + description: 'Favorites tied to the Listing', + icon: 'IconHeart', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:51:28.726Z', + updatedAt: '2024-04-08T12:51:28.726Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '78ab1b0d-e6b7-4c45-ac46-decdcf913b23', + name: 'favorites', + }, + targetObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + nameSingular: 'favorite', + namePlural: 'favorites', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'd94f1f82-1aab-441c-b6ff-6ec2f561921d', + name: 'listing', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'e0602824-706f-4d5c-b1ac-6a3a83c01100', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'd94f1f82-1aab-441c-b6ff-6ec2f561921d', + toObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'favorite', + namePlural: 'favorites', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2ff71d84-b6b4-4ab3-931a-ecf737cf575c', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:51:28.705Z', + updatedAt: '2024-04-08T12:51:28.705Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a19d48b1-889e-4e6c-ad5a-a5707e92f8bf', + type: 'RELATION', + name: 'attachments', + label: 'Attachments', + description: 'Attachments tied to the Listing', + icon: 'IconFileImport', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:51:28.729Z', + updatedAt: '2024-04-08T12:51:28.729Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'a19d48b1-889e-4e6c-ad5a-a5707e92f8bf', + name: 'attachments', + }, + targetObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + targetFieldMetadata: { + __typename: 'field', + id: '7c18721a-75dd-419b-a9eb-73ea84a5be85', + name: 'listing', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '2ba1eae0-a1cf-4976-997e-0f2250d20ba8', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '7c18721a-75dd-419b-a9eb-73ea84a5be85', + toObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'attachment', + namePlural: 'attachments', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '60f1e1ad-f56e-4e07-97a6-281e89ff69fd', + type: 'TEXT', + name: 'name', + label: 'Name', + description: 'Name', + icon: 'IconAbc', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:51:28.705Z', + updatedAt: '2024-04-08T12:51:28.705Z', + defaultValue: "'Untitled'", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'bb7ce2d2-b795-4df3-9873-36b4129ab809', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'apiKey', + namePlural: 'apiKeys', + labelSingular: 'Api Key', + labelPlural: 'Api Keys', + description: 'An api key', + icon: 'IconRobot', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjU=', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ee39abdc-26dd-47b8-b77f-210dda4676f8', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c32baa1b-fe5f-403f-892c-06215a25e584', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b19f9212-e580-4325-b333-47306b3bf490', + type: 'DATE_TIME', + name: 'expiresAt', + label: 'Expiration date', + description: 'ApiKey expiration date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '4d650804-328d-411b-b241-88c68eed90bd', + type: 'TEXT', + name: 'name', + label: 'Name', + description: 'ApiKey name', + icon: 'IconLink', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e3768e87-2024-4f2d-a279-d62f8093866f', + type: 'DATE_TIME', + name: 'revokedAt', + label: 'Revocation date', + description: 'ApiKey revocation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '9be4be3b-6e20-43ad-9f46-aa79bb1650f2', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'b3f8207f-0b88-44ef-981d-a7ead80dff46', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageThread', + namePlural: 'messageThreads', + labelSingular: 'Message Thread', + labelPlural: 'Message Threads', + description: 'Message Thread', + icon: 'IconMessage', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjQ=', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '77da807c-10c9-4084-b396-25bbfb371ef4', + type: 'RELATION', + name: 'messages', + label: 'Messages', + description: 'Messages from the thread.', + icon: 'IconMessage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'b3f8207f-0b88-44ef-981d-a7ead80dff46', + nameSingular: 'messageThread', + namePlural: 'messageThreads', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '77da807c-10c9-4084-b396-25bbfb371ef4', + name: 'messages', + }, + targetObjectMetadata: { + __typename: 'object', + id: '3a7ae3ad-fa9a-4ae4-8a01-dd656a1afc9d', + nameSingular: 'message', + namePlural: 'messages', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'c9807e13-e48b-4ccb-8f2f-2289a351a86b', + name: 'messageThread', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '8fbd9c8a-6999-4ecb-bc4f-0f67d10866bb', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'c9807e13-e48b-4ccb-8f2f-2289a351a86b', + toObjectMetadata: { + __typename: 'object', + id: '3a7ae3ad-fa9a-4ae4-8a01-dd656a1afc9d', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'message', + namePlural: 'messages', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a12532cd-8ffa-4327-95c7-c3b9615d22b0', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0cc7e3c1-50eb-44e9-a181-b8d3073bcc1c', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c9c6d79b-c7cf-44c5-8017-0eb0df6c9cb6', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '442b3224-f4c6-49b8-979e-693606a22875', + type: 'RELATION', + name: 'messageChannelMessageAssociations', + label: 'Message Channel Association', + description: 'Messages from the channel.', + icon: 'IconMessage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'b3f8207f-0b88-44ef-981d-a7ead80dff46', + nameSingular: 'messageThread', + namePlural: 'messageThreads', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '442b3224-f4c6-49b8-979e-693606a22875', + name: 'messageChannelMessageAssociations', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'ef1ce364-0ffc-4436-95b5-40c99ce51b49', + nameSingular: 'messageChannelMessageAssociation', + namePlural: 'messageChannelMessageAssociations', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'd99cc1b4-4874-4c78-bcfe-0908c0a51466', + name: 'messageThread', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '549e03f3-97b3-4bf9-a23f-243fcda40f6f', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'd99cc1b4-4874-4c78-bcfe-0908c0a51466', + toObjectMetadata: { + __typename: 'object', + id: 'ef1ce364-0ffc-4436-95b5-40c99ce51b49', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageChannelMessageAssociation', + namePlural: 'messageChannelMessageAssociations', + isSystem: true, + }, + }, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'b3b3b148-eb5f-4457-87e0-2f40f363c390', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarChannelEventAssociation', + namePlural: 'calendarChannelEventAssociations', + labelSingular: 'Calendar Channel Event Association', + labelPlural: 'Calendar Channel Event Associations', + description: 'Calendar Channel Event Associations', + icon: 'IconCalendar', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjc=', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ae9aa21a-40eb-44a7-b828-c6e67e4cfbe9', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a09fe05b-7443-45bd-8c67-6b90d78ea784', + type: 'UUID', + name: 'calendarChannelId', + label: 'Channel ID id (foreign key)', + description: 'Channel ID id foreign key', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '9b6e136f-3c9e-4c4b-92f8-a50291eb21f8', + type: 'RELATION', + name: 'calendarChannel', + label: 'Channel ID', + description: 'Channel ID', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'b3b3b148-eb5f-4457-87e0-2f40f363c390', + nameSingular: 'calendarChannelEventAssociation', + namePlural: 'calendarChannelEventAssociations', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '9b6e136f-3c9e-4c4b-92f8-a50291eb21f8', + name: 'calendarChannel', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'd398ff30-85e0-45ab-a62a-ba2d775ce186', + nameSingular: 'calendarChannel', + namePlural: 'calendarChannels', + }, + targetFieldMetadata: { + __typename: 'field', + id: '60c518d0-c6ec-4b37-8bac-129e1442f390', + name: 'calendarChannelEventAssociations', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '56260075-0a16-452a-ace1-65648fb299fe', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '60c518d0-c6ec-4b37-8bac-129e1442f390', + fromObjectMetadata: { + __typename: 'object', + id: 'd398ff30-85e0-45ab-a62a-ba2d775ce186', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarChannel', + namePlural: 'calendarChannels', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2579cd08-ae11-4fa0-90a2-5f40cc7dd20d', + type: 'UUID', + name: 'calendarEventId', + label: 'Event ID id (foreign key)', + description: 'Event ID id foreign key', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2ef8a91a-8f4a-4d01-b365-a09132a281d7', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e5080b5c-c264-48bb-9ff7-441127c6c331', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1c40e6e9-437b-47fc-84bf-57d4a8a0513d', + type: 'RELATION', + name: 'calendarEvent', + label: 'Event ID', + description: 'Event ID', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'b3b3b148-eb5f-4457-87e0-2f40f363c390', + nameSingular: 'calendarChannelEventAssociation', + namePlural: 'calendarChannelEventAssociations', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '1c40e6e9-437b-47fc-84bf-57d4a8a0513d', + name: 'calendarEvent', + }, + targetObjectMetadata: { + __typename: 'object', + id: '56cb9f6b-1aae-4cba-85ed-fff37b1e3c25', + nameSingular: 'calendarEvent', + namePlural: 'calendarEvents', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'b2be8cfa-97dc-4482-bad2-b8576b4090e7', + name: 'calendarChannelEventAssociations', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '3caf1987-2c71-49b2-8f92-5065339d66af', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'b2be8cfa-97dc-4482-bad2-b8576b4090e7', + fromObjectMetadata: { + __typename: 'object', + id: '56cb9f6b-1aae-4cba-85ed-fff37b1e3c25', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarEvent', + namePlural: 'calendarEvents', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1defb4a1-717b-4293-977e-c9db04c76063', + type: 'TEXT', + name: 'eventExternalId', + label: 'Event external ID', + description: 'Event external ID', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activity', + namePlural: 'activities', + labelSingular: 'Activity', + labelPlural: 'Activities', + description: 'An activity', + icon: 'IconCheckbox', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjE1', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f19a61a4-aa63-4a68-a5b1-a1cb10183198', + type: 'DATE_TIME', + name: 'dueAt', + label: 'Due Date', + description: 'Activity due date', + icon: 'IconCalendarEvent', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f54661da-2ada-4179-82aa-5dcbbfde553c', + type: 'RELATION', + name: 'author', + label: 'Author', + description: 'Activity author', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + nameSingular: 'activity', + namePlural: 'activities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'f54661da-2ada-4179-82aa-5dcbbfde553c', + name: 'author', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: '79c3c3b7-b71c-47c0-a6ca-93ebf9842932', + name: 'authoredActivities', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'b0783352-803c-44d4-b195-c6697eaa35af', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '79c3c3b7-b71c-47c0-a6ca-93ebf9842932', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f650a683-4ce3-4c1f-bdc1-09b73d88d0df', + type: 'DATE_TIME', + name: 'completedAt', + label: 'Completion Date', + description: 'Activity completion date', + icon: 'IconCheck', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '66ae87fb-4cb8-4df7-bc5d-77d1a42e3726', + type: 'UUID', + name: 'assigneeId', + label: 'Assignee id (foreign key)', + description: 'Activity assignee id foreign key', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5f4ea983-40a2-4377-a9ec-4bdfc52b0941', + type: 'RELATION', + name: 'comments', + label: 'Comments', + description: 'Activity comments', + icon: 'IconComment', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + nameSingular: 'activity', + namePlural: 'activities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '5f4ea983-40a2-4377-a9ec-4bdfc52b0941', + name: 'comments', + }, + targetObjectMetadata: { + __typename: 'object', + id: '31c20827-624f-4559-aa97-0e85d744367e', + nameSingular: 'comment', + namePlural: 'comments', + }, + targetFieldMetadata: { + __typename: 'field', + id: '56919379-c98d-4a84-9f6a-accddd892620', + name: 'activity', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'b782c321-0f72-4f2a-b420-af020a2095d1', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '56919379-c98d-4a84-9f6a-accddd892620', + toObjectMetadata: { + __typename: 'object', + id: '31c20827-624f-4559-aa97-0e85d744367e', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'comment', + namePlural: 'comments', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'cdd78500-4f06-4d15-9628-1690503e2b05', + type: 'UUID', + name: 'authorId', + label: 'Author id (foreign key)', + description: 'Activity author id foreign key', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c3509593-8b5d-4d3e-8d3d-93dfd4882864', + type: 'DATE_TIME', + name: 'reminderAt', + label: 'Reminder Date', + description: 'Activity reminder date', + icon: 'IconCalendarEvent', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '50b1c013-d292-4440-b95c-866156cb3e50', + type: 'RELATION', + name: 'attachments', + label: 'Attachments', + description: 'Activity attachments', + icon: 'IconFileImport', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + nameSingular: 'activity', + namePlural: 'activities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '50b1c013-d292-4440-b95c-866156cb3e50', + name: 'attachments', + }, + targetObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + targetFieldMetadata: { + __typename: 'field', + id: '80f9f757-fdf4-4c1a-ade8-4dcd8063eda0', + name: 'activity', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'b773b6fe-d987-43e2-a611-d6ca73ebd8bf', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '80f9f757-fdf4-4c1a-ade8-4dcd8063eda0', + toObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'attachment', + namePlural: 'attachments', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '3e4dbb96-f276-44b6-93f7-e1d2ddc23019', + type: 'TEXT', + name: 'type', + label: 'Type', + description: 'Activity type', + icon: 'IconCheckbox', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'Note'", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '946beaa4-8816-4019-bd33-28c8463bfeaa', + type: 'RELATION', + name: 'activityTargets', + label: 'Targets', + description: 'Activity targets', + icon: 'IconCheckbox', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + nameSingular: 'activity', + namePlural: 'activities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '946beaa4-8816-4019-bd33-28c8463bfeaa', + name: 'activityTargets', + }, + targetObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'c2ba4efb-604d-4c2f-8a03-0b569b47b55d', + name: 'activity', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '8660a1ec-c72e-442c-81e3-da290931fbab', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'c2ba4efb-604d-4c2f-8a03-0b569b47b55d', + toObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b859a716-03d6-4f01-ade2-26e8a97f2b13', + type: 'TEXT', + name: 'title', + label: 'Title', + description: 'Activity title', + icon: 'IconNotes', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fbba51f0-314f-4ddd-a0bb-50e0d6580a20', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f116cefb-2fbe-426b-aaca-025447ff9eee', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e06f97cc-af81-46ef-8f9a-081be9365ee8', + type: 'TEXT', + name: 'body', + label: 'Body', + description: 'Activity body', + icon: 'IconList', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '928a0879-7a43-4161-a39a-1b439b4b1e25', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '16e12150-bca4-4d81-b0d3-87fc7e5ef7a4', + type: 'RELATION', + name: 'assignee', + label: 'Assignee', + description: 'Activity assignee', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + nameSingular: 'activity', + namePlural: 'activities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '16e12150-bca4-4d81-b0d3-87fc7e5ef7a4', + name: 'assignee', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: '59abd17e-faa3-4527-94ee-6aa54c1ebae0', + name: 'assignedActivities', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '5eec3fa0-e260-47af-8ca8-bd2089573ef3', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '59abd17e-faa3-4527-94ee-6aa54c1ebae0', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + labelSingular: 'Workspace Member', + labelPlural: 'Workspace Members', + description: 'A workspace member', + icon: 'IconUserCircle', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjE5', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0c3b7acd-97c3-49d4-8b0e-cf307f81b74b', + type: 'TEXT', + name: 'locale', + label: 'Language', + description: 'Preferred language', + icon: 'IconLanguage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'en'", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fc3cfebb-722e-42dd-9646-e9f9f07dc152', + type: 'RELATION', + name: 'connectedAccounts', + label: 'Connected accounts', + description: 'Connected accounts', + icon: 'IconAt', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'fc3cfebb-722e-42dd-9646-e9f9f07dc152', + name: 'connectedAccounts', + }, + targetObjectMetadata: { + __typename: 'object', + id: '184958e2-9434-453c-98be-7ca4311cc77e', + nameSingular: 'connectedAccount', + namePlural: 'connectedAccounts', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'cff5f362-1299-4e44-bcf5-49bb0d2d611b', + name: 'accountOwner', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'c7060c9e-9cb7-420e-a82f-1eabaee52c06', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'cff5f362-1299-4e44-bcf5-49bb0d2d611b', + toObjectMetadata: { + __typename: 'object', + id: '184958e2-9434-453c-98be-7ca4311cc77e', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'connectedAccount', + namePlural: 'connectedAccounts', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '505669cf-d7ed-47d9-90f4-516da3acdee8', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '04492087-5469-4052-982e-3de6c1528219', + type: 'TEXT', + name: 'userEmail', + label: 'User Email', + description: 'Related user email address', + icon: 'IconMail', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '79c3c3b7-b71c-47c0-a6ca-93ebf9842932', + type: 'RELATION', + name: 'authoredActivities', + label: 'Authored activities', + description: 'Activities created by the workspace member', + icon: 'IconCheckbox', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '79c3c3b7-b71c-47c0-a6ca-93ebf9842932', + name: 'authoredActivities', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + nameSingular: 'activity', + namePlural: 'activities', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'f54661da-2ada-4179-82aa-5dcbbfde553c', + name: 'author', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'b0783352-803c-44d4-b195-c6697eaa35af', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'f54661da-2ada-4179-82aa-5dcbbfde553c', + toObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activity', + namePlural: 'activities', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c1eeca93-2341-4685-8b72-68b8954c8120', + type: 'TEXT', + name: 'colorScheme', + label: 'Color Scheme', + description: 'Preferred color scheme', + icon: 'IconColorSwatch', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'Light'", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c779912d-8393-44fd-94cf-f8701daccad1', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '25d15af0-e186-42d4-b245-f0a2d3c89d09', + type: 'FULL_NAME', + name: 'name', + label: 'Name', + description: 'Workspace member name', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: { + lastName: "''", + firstName: "''", + }, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '20577261-01ca-43ae-a6c8-d558dce6c0ee', + type: 'RELATION', + name: 'accountOwnerForCompanies', + label: 'Account Owner For Companies', + description: 'Account owner for companies', + icon: 'IconBriefcase', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '20577261-01ca-43ae-a6c8-d558dce6c0ee', + name: 'accountOwnerForCompanies', + }, + targetObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'f1bbe372-b283-4061-b7b4-5a5039196b8c', + name: 'accountOwner', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '91ed8064-e2cc-4130-9cb9-c5dc7ddee302', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'f1bbe372-b283-4061-b7b4-5a5039196b8c', + toObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'company', + namePlural: 'companies', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '605cc521-9640-49bd-b2c2-c5aa6c588b90', + type: 'RELATION', + name: 'authoredAttachments', + label: 'Authored attachments', + description: 'Attachments created by the workspace member', + icon: 'IconFileImport', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '605cc521-9640-49bd-b2c2-c5aa6c588b90', + name: 'authoredAttachments', + }, + targetObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'd65234a9-f3a7-4985-93fb-52b1ee7517fb', + name: 'author', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '5afb80d4-d66d-49fa-b036-35656dbd7eb9', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'd65234a9-f3a7-4985-93fb-52b1ee7517fb', + toObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'attachment', + namePlural: 'attachments', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '67044674-2477-44b4-a7a2-fba9add0e9ce', + type: 'RELATION', + name: 'messageParticipants', + label: 'Message Participants', + description: 'Message Participants', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '67044674-2477-44b4-a7a2-fba9add0e9ce', + name: 'messageParticipants', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'e9777897-9a5e-4c92-aa4f-555b10a39cc3', + nameSingular: 'messageParticipant', + namePlural: 'messageParticipants', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'd96db94f-cffa-494b-9551-4d639d47cee3', + name: 'workspaceMember', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'a67bb487-2239-4073-ac05-8e2df6446185', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'd96db94f-cffa-494b-9551-4d639d47cee3', + toObjectMetadata: { + __typename: 'object', + id: 'e9777897-9a5e-4c92-aa4f-555b10a39cc3', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageParticipant', + namePlural: 'messageParticipants', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '78b1e375-3ed2-49bc-8d3a-ca784ebe4013', + type: 'UUID', + name: 'userId', + label: 'User Id', + description: 'Associated User Id', + icon: 'IconCircleUsers', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '59abd17e-faa3-4527-94ee-6aa54c1ebae0', + type: 'RELATION', + name: 'assignedActivities', + label: 'Assigned activities', + description: 'Activities assigned to the workspace member', + icon: 'IconCheckbox', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '59abd17e-faa3-4527-94ee-6aa54c1ebae0', + name: 'assignedActivities', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + nameSingular: 'activity', + namePlural: 'activities', + }, + targetFieldMetadata: { + __typename: 'field', + id: '16e12150-bca4-4d81-b0d3-87fc7e5ef7a4', + name: 'assignee', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '5eec3fa0-e260-47af-8ca8-bd2089573ef3', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '16e12150-bca4-4d81-b0d3-87fc7e5ef7a4', + toObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activity', + namePlural: 'activities', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a06ac5ca-493e-413e-a305-0812deeaab85', + type: 'RELATION', + name: 'events', + label: 'Events', + description: 'Events linked to the workspace member', + icon: 'IconTimelineEvent', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'a06ac5ca-493e-413e-a305-0812deeaab85', + name: 'events', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + nameSingular: 'event', + namePlural: 'events', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'e8998178-223e-42a8-9978-a72a4477c8d4', + name: 'workspaceMember', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '6bec3a65-b7eb-4597-96fe-26b10088d2fc', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'e8998178-223e-42a8-9978-a72a4477c8d4', + toObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'event', + namePlural: 'events', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'aee6daaa-a9e3-4f1a-a4dc-aa34c57cef7f', + type: 'RELATION', + name: 'calendarEventParticipants', + label: 'Calendar Event Participants', + description: 'Calendar Event Participants', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'aee6daaa-a9e3-4f1a-a4dc-aa34c57cef7f', + name: 'calendarEventParticipants', + }, + targetObjectMetadata: { + __typename: 'object', + id: '151b651a-12a7-4edd-9179-e7abc292d996', + nameSingular: 'calendarEventParticipant', + namePlural: 'calendarEventParticipants', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'c0705e9a-d868-45ee-83b7-6055ca6ac1a8', + name: 'workspaceMember', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '9e9890bd-ead6-44f2-8f09-46d27f09f607', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'c0705e9a-d868-45ee-83b7-6055ca6ac1a8', + toObjectMetadata: { + __typename: 'object', + id: '151b651a-12a7-4edd-9179-e7abc292d996', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarEventParticipant', + namePlural: 'calendarEventParticipants', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '25ce4b37-a597-4f1c-a2bc-72558170ddc5', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ca7a26f0-84f3-4215-a3a1-6967961de3c4', + type: 'RELATION', + name: 'blocklist', + label: 'Blocklist', + description: 'Blocklisted handles', + icon: 'IconForbid2', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'ca7a26f0-84f3-4215-a3a1-6967961de3c4', + name: 'blocklist', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'ed696d77-9b3c-4589-99a2-1f03f9a4ba5b', + nameSingular: 'blocklist', + namePlural: 'blocklists', + }, + targetFieldMetadata: { + __typename: 'field', + id: '5d578b49-324e-43a3-a10a-512c5606d29b', + name: 'workspaceMember', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '3e9e97f8-a2a4-4f90-a6a0-721fb1e66334', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '5d578b49-324e-43a3-a10a-512c5606d29b', + toObjectMetadata: { + __typename: 'object', + id: 'ed696d77-9b3c-4589-99a2-1f03f9a4ba5b', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'blocklist', + namePlural: 'blocklists', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b0c16f48-0752-46da-b5d8-59f35c7c1ea0', + type: 'TEXT', + name: 'avatarUrl', + label: 'Avatar Url', + description: 'Workspace member avatar', + icon: 'IconFileUpload', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '28419ee0-5f10-4130-ad39-31fe4fc4ae62', + type: 'RELATION', + name: 'favorites', + label: 'Favorites', + description: 'Favorites linked to the workspace member', + icon: 'IconHeart', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '28419ee0-5f10-4130-ad39-31fe4fc4ae62', + name: 'favorites', + }, + targetObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + nameSingular: 'favorite', + namePlural: 'favorites', + }, + targetFieldMetadata: { + __typename: 'field', + id: '8813fd75-e0d8-4a65-abd9-186dcbe9f1a7', + name: 'workspaceMember', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '859f61ab-5d4d-404d-b5e4-b3a7cec4325e', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '8813fd75-e0d8-4a65-abd9-186dcbe9f1a7', + toObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'favorite', + namePlural: 'favorites', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '9ea86ae6-c26b-4ea0-b207-820b3ebf7110', + type: 'RELATION', + name: 'authoredComments', + label: 'Authored comments', + description: 'Authored comments', + icon: 'IconComment', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '9ea86ae6-c26b-4ea0-b207-820b3ebf7110', + name: 'authoredComments', + }, + targetObjectMetadata: { + __typename: 'object', + id: '31c20827-624f-4559-aa97-0e85d744367e', + nameSingular: 'comment', + namePlural: 'comments', + }, + targetFieldMetadata: { + __typename: 'field', + id: '70073404-9690-4b2d-b2b7-e823ab279d74', + name: 'author', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '58fb8589-6e7c-477c-b9ac-5e68bfa99ea2', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '70073404-9690-4b2d-b2b7-e823ab279d74', + toObjectMetadata: { + __typename: 'object', + id: '31c20827-624f-4559-aa97-0e85d744367e', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'comment', + namePlural: 'comments', + isSystem: true, + }, + }, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '8bef276b-342c-4088-9448-752fc8efd426', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageChannel', + namePlural: 'messageChannels', + labelSingular: 'Message Channel', + labelPlural: 'Message Channels', + description: 'Message Channels', + icon: 'IconMessage', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEz', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2d67b389-f431-4371-bf47-fc2bd8a1ed4d', + type: 'TEXT', + name: 'handle', + label: 'Handle', + description: 'Handle', + icon: 'IconAt', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'bfd8b430-a1d9-4fc7-82d7-a6ad2d62f1cc', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1cbbd683-b426-4509-9557-54671e6f0447', + type: 'RELATION', + name: 'messageChannelMessageAssociations', + label: 'Message Channel Association', + description: 'Messages from the channel.', + icon: 'IconMessage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '8bef276b-342c-4088-9448-752fc8efd426', + nameSingular: 'messageChannel', + namePlural: 'messageChannels', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '1cbbd683-b426-4509-9557-54671e6f0447', + name: 'messageChannelMessageAssociations', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'ef1ce364-0ffc-4436-95b5-40c99ce51b49', + nameSingular: 'messageChannelMessageAssociation', + namePlural: 'messageChannelMessageAssociations', + }, + targetFieldMetadata: { + __typename: 'field', + id: '8b39502b-7400-480f-aff3-fa010bdbf50c', + name: 'messageChannel', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'b103a006-841d-4c39-b3b6-9385eb1cedfa', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '8b39502b-7400-480f-aff3-fa010bdbf50c', + toObjectMetadata: { + __typename: 'object', + id: 'ef1ce364-0ffc-4436-95b5-40c99ce51b49', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageChannelMessageAssociation', + namePlural: 'messageChannelMessageAssociations', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '83abe056-d8a7-42a8-a4a1-dbb9bc425a16', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '24147b01-4394-4aee-92a4-5f6b5073704f', + type: 'DATE_TIME', + name: 'ongoingSyncStartedAt', + label: 'Ongoing sync started at', + description: 'Ongoing sync started at', + icon: 'IconHistory', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b914db46-eea0-496c-ba56-1209b3fd9537', + type: 'RELATION', + name: 'connectedAccount', + label: 'Connected Account', + description: 'Connected Account', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '8bef276b-342c-4088-9448-752fc8efd426', + nameSingular: 'messageChannel', + namePlural: 'messageChannels', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'b914db46-eea0-496c-ba56-1209b3fd9537', + name: 'connectedAccount', + }, + targetObjectMetadata: { + __typename: 'object', + id: '184958e2-9434-453c-98be-7ca4311cc77e', + nameSingular: 'connectedAccount', + namePlural: 'connectedAccounts', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'c68fb8af-ad36-439c-8c9d-799ba4cf4169', + name: 'messageChannels', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '0ca8dd47-2a20-4950-bf82-8fd4eafd6d0d', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'c68fb8af-ad36-439c-8c9d-799ba4cf4169', + fromObjectMetadata: { + __typename: 'object', + id: '184958e2-9434-453c-98be-7ca4311cc77e', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'connectedAccount', + namePlural: 'connectedAccounts', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fac6ab3a-74f7-4689-9c87-ac59135abf68', + type: 'TEXT', + name: 'syncCursor', + label: 'Last sync cursor', + description: 'Last sync cursor', + icon: 'IconHistory', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '49a08dc5-5a71-4ce2-ab74-928148673749', + type: 'UUID', + name: 'connectedAccountId', + label: 'Connected Account id (foreign key)', + description: 'Connected Account id foreign key', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '46d65d0a-39d1-4e2e-aac4-8cf649a10341', + type: 'SELECT', + name: 'visibility', + label: 'Visibility', + description: 'Visibility', + icon: 'IconEyeglass', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'share_everything'", + options: [ + { + id: '112e7633-0451-4f7e-bc79-f988b78fabb8', + color: 'green', + label: 'Metadata', + value: 'metadata', + position: 0, + }, + { + id: '148143c4-882d-4c94-b8db-ead6f4581ab1', + color: 'blue', + label: 'Subject', + value: 'subject', + position: 1, + }, + { + id: '9bf90844-93cf-4c0a-95e9-02f7d5fa397f', + color: 'orange', + label: 'Share Everything', + value: 'share_everything', + position: 2, + }, + ], + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '12abab4f-b463-4d87-95c9-b17459ce593d', + type: 'SELECT', + name: 'type', + label: 'Type', + description: 'Channel Type', + icon: 'IconMessage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'email'", + options: [ + { + id: '91b95c0d-da1e-485f-a480-70cc71e492bf', + color: 'green', + label: 'Email', + value: 'email', + position: 0, + }, + { + id: '8f9de411-a21b-404c-b5b4-7fe2515958b0', + color: 'blue', + label: 'SMS', + value: 'sms', + position: 1, + }, + ], + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'bad2e356-4abb-4b01-8214-ebd721c5d971', + type: 'BOOLEAN', + name: 'isContactAutoCreationEnabled', + label: 'Is Contact Auto Creation Enabled', + description: 'Is Contact Auto Creation Enabled', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: true, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5375647b-8bf8-422f-b0b0-b6e0fa9b7843', + type: 'DATE_TIME', + name: 'syncedAt', + label: 'Last sync date', + description: 'Last sync date', + icon: 'IconHistory', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f88b51c6-bd64-4e21-a3f8-2bc694f7e8a4', + type: 'SELECT', + name: 'syncStatus', + label: 'Last sync status', + description: 'Last sync status', + icon: 'IconHistory', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: [ + { + id: '852a7ac5-e6e8-4c4d-a6da-7462d025cbf7', + color: 'blue', + label: 'Pending', + value: 'PENDING', + position: 0, + }, + { + id: 'fb11b3c7-4efd-44e3-bd57-505038d0f809', + color: 'yellow', + label: 'Ongoing', + value: 'ONGOING', + position: 1, + }, + { + id: 'ef7d78c7-5049-49d1-8a6f-bc345c7dae67', + color: 'green', + label: 'Succeeded', + value: 'SUCCEEDED', + position: 2, + }, + { + id: 'f5f17226-4244-4ede-b734-e4c1108b569a', + color: 'red', + label: 'Failed', + value: 'FAILED', + position: 3, + }, + ], + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ee974a00-4aa5-497a-8219-fadd7578fbc5', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'attachment', + namePlural: 'attachments', + labelSingular: 'Attachment', + labelPlural: 'Attachments', + description: 'An attachment', + icon: 'IconFileImport', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjE3', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '80f9f757-fdf4-4c1a-ade8-4dcd8063eda0', + type: 'RELATION', + name: 'activity', + label: 'Activity', + description: 'Attachment activity', + icon: 'IconNotes', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '80f9f757-fdf4-4c1a-ade8-4dcd8063eda0', + name: 'activity', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + nameSingular: 'activity', + namePlural: 'activities', + }, + targetFieldMetadata: { + __typename: 'field', + id: '50b1c013-d292-4440-b95c-866156cb3e50', + name: 'attachments', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'b773b6fe-d987-43e2-a611-d6ca73ebd8bf', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '50b1c013-d292-4440-b95c-866156cb3e50', + fromObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activity', + namePlural: 'activities', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '4bc1a76e-0fec-433d-8a35-3b0297d395fb', + type: 'UUID', + name: 'opportunityId', + label: 'Opportunity id (foreign key)', + description: 'Attachment opportunity id foreign key', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0181aae2-1683-453a-b858-fe5260bb19e6', + type: 'RELATION', + name: 'company', + label: 'Company', + description: 'Attachment company', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '0181aae2-1683-453a-b858-fe5260bb19e6', + name: 'company', + }, + targetObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + targetFieldMetadata: { + __typename: 'field', + id: '8f7912c8-8dc7-40ca-8625-b6d0ec2dc1f4', + name: 'attachments', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '76108795-7b26-4b28-958d-e49b3121880f', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '8f7912c8-8dc7-40ca-8625-b6d0ec2dc1f4', + fromObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'company', + namePlural: 'companies', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '97d60d26-b9d8-45f0-b585-daf7c7311722', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a2c48db3-f1e8-416a-bc89-ad4447735f83', + type: 'UUID', + name: 'companyId', + label: 'Company id (foreign key)', + description: 'Attachment company id foreign key', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '40770d58-2f91-47f7-8c1d-f5f83f1d29cf', + type: 'UUID', + name: 'personId', + label: 'Person id (foreign key)', + description: 'Attachment person id foreign key', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '21a2983c-799d-4a16-94d4-6f63946718c5', + type: 'UUID', + name: 'listingId', + label: 'Listing ID (foreign key)', + description: 'Attachment Listing id foreign key', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:51:28.729Z', + updatedAt: '2024-04-08T12:51:28.729Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '528427e3-e988-44b3-9b3f-fa47a9e64ca6', + type: 'RELATION', + name: 'opportunity', + label: 'Opportunity', + description: 'Attachment opportunity', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '528427e3-e988-44b3-9b3f-fa47a9e64ca6', + name: 'opportunity', + }, + targetObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + targetFieldMetadata: { + __typename: 'field', + id: '2c2077f0-2efc-4569-b2d9-44c8583a2a58', + name: 'attachments', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '8d09bfb5-aef9-4adf-9f6a-3ba89e7475cd', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '2c2077f0-2efc-4569-b2d9-44c8583a2a58', + fromObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'opportunity', + namePlural: 'opportunities', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ef4c93f7-b0fb-40a5-932b-2db0f4fe2271', + type: 'RELATION', + name: 'person', + label: 'Person', + description: 'Attachment person', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'ef4c93f7-b0fb-40a5-932b-2db0f4fe2271', + name: 'person', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'fae2489f-7f59-4385-bec8-9d3f4044d1da', + name: 'attachments', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'c10de251-b748-4c5d-8dfa-51cbd82f75dc', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'fae2489f-7f59-4385-bec8-9d3f4044d1da', + fromObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'person', + namePlural: 'people', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '7927cf69-7c79-46c2-b43a-5b1bb98b41c0', + type: 'TEXT', + name: 'fullPath', + label: 'Full path', + description: 'Attachment full path', + icon: 'IconLink', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '31cbdd99-1496-4310-8d6f-ed0030947451', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f5108d93-497b-4605-ab69-1c214fb9bc48', + type: 'UUID', + name: 'authorId', + label: 'Author id (foreign key)', + description: 'Attachment author id foreign key', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '9f9fed5a-0015-4dea-9a93-e7cef9792ca3', + type: 'UUID', + name: 'activityId', + label: 'Activity id (foreign key)', + description: 'Attachment activity id foreign key', + icon: 'IconNotes', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2b6bf6cd-0bab-4c21-b4e8-83a362f34cf3', + type: 'TEXT', + name: 'name', + label: 'Name', + description: 'Attachment name', + icon: 'IconFileUpload', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ef938eb9-60ac-42f3-bd25-12cfc2ad2e99', + type: 'TEXT', + name: 'type', + label: 'Type', + description: 'Attachment type', + icon: 'IconList', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd65234a9-f3a7-4985-93fb-52b1ee7517fb', + type: 'RELATION', + name: 'author', + label: 'Author', + description: 'Attachment author', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'd65234a9-f3a7-4985-93fb-52b1ee7517fb', + name: 'author', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: '605cc521-9640-49bd-b2c2-c5aa6c588b90', + name: 'authoredAttachments', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '5afb80d4-d66d-49fa-b036-35656dbd7eb9', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '605cc521-9640-49bd-b2c2-c5aa6c588b90', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '7c18721a-75dd-419b-a9eb-73ea84a5be85', + type: 'RELATION', + name: 'listing', + label: 'Listing', + description: 'Attachment Listing', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:51:28.729Z', + updatedAt: '2024-04-08T12:51:28.729Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '7c18721a-75dd-419b-a9eb-73ea84a5be85', + name: 'listing', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'a19d48b1-889e-4e6c-ad5a-a5707e92f8bf', + name: 'attachments', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '2ba1eae0-a1cf-4976-997e-0f2250d20ba8', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'a19d48b1-889e-4e6c-ad5a-a5707e92f8bf', + fromObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'listing', + namePlural: 'listings', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '7b7bdb38-ebc6-4e79-9024-bbb7a3a67c1b', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'opportunity', + namePlural: 'opportunities', + labelSingular: 'Opportunity', + labelPlural: 'Opportunities', + description: 'An opportunity', + icon: 'IconTargetArrow', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjE2', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '4a6abf2d-56dd-44e4-a52f-048d05b8bee5', + type: 'RELATION', + name: 'pointOfContact', + label: 'Point of Contact', + description: 'Opportunity point of contact', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '4a6abf2d-56dd-44e4-a52f-048d05b8bee5', + name: 'pointOfContact', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'c2897c17-90a9-487b-a358-579c14cdd862', + name: 'pointOfContactForOpportunities', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '47ed427f-20b2-454b-acef-39bc5ff2535e', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'c2897c17-90a9-487b-a358-579c14cdd862', + fromObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'person', + namePlural: 'people', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2c2077f0-2efc-4569-b2d9-44c8583a2a58', + type: 'RELATION', + name: 'attachments', + label: 'Attachments', + description: 'Attachments linked to the opportunity.', + icon: 'IconFileImport', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '2c2077f0-2efc-4569-b2d9-44c8583a2a58', + name: 'attachments', + }, + targetObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + targetFieldMetadata: { + __typename: 'field', + id: '528427e3-e988-44b3-9b3f-fa47a9e64ca6', + name: 'opportunity', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '8d09bfb5-aef9-4adf-9f6a-3ba89e7475cd', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '528427e3-e988-44b3-9b3f-fa47a9e64ca6', + toObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'attachment', + namePlural: 'attachments', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fca33094-0d78-4e6d-8c5e-e970d98f1e1c', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a16e97e2-2d9f-45f7-85bf-c6cc78de9175', + type: 'RELATION', + name: 'events', + label: 'Events', + description: 'Events linked to the opportunity.', + icon: 'IconTimelineEvent', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'a16e97e2-2d9f-45f7-85bf-c6cc78de9175', + name: 'events', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + nameSingular: 'event', + namePlural: 'events', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'bcfa8dd3-080a-43f1-ab82-7b6a5b81a64c', + name: 'opportunity', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'ac4bf17f-3e8f-4f90-bf23-ddb8ff4e9063', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'bcfa8dd3-080a-43f1-ab82-7b6a5b81a64c', + toObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'event', + namePlural: 'events', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'be148e1f-256c-4ea8-a016-c25cbd6ec841', + type: 'RELATION', + name: 'company', + label: 'Company', + description: 'Opportunity company', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'be148e1f-256c-4ea8-a016-c25cbd6ec841', + name: 'company', + }, + targetObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'efba6645-b939-4751-bd55-a2fa787997aa', + name: 'opportunities', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'd6f3f2a6-ac78-4451-aa00-9dffd75413e1', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'efba6645-b939-4751-bd55-a2fa787997aa', + fromObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'company', + namePlural: 'companies', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f9223d20-5eed-41ff-8e31-f25e2df8151d', + type: 'TEXT', + name: 'probability', + label: 'Probability', + description: 'Opportunity probability', + icon: 'IconProgressCheck', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'0'", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c2f4c761-c6e0-40e6-bd68-b9616ac1214c', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd61da288-7a71-47d5-ba6a-7700356e9a3a', + type: 'RELATION', + name: 'favorites', + label: 'Favorites', + description: 'Favorites linked to the opportunity', + icon: 'IconHeart', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'd61da288-7a71-47d5-ba6a-7700356e9a3a', + name: 'favorites', + }, + targetObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + nameSingular: 'favorite', + namePlural: 'favorites', + }, + targetFieldMetadata: { + __typename: 'field', + id: '32ae5023-12c5-4a3a-8ec0-3f024eae8377', + name: 'opportunity', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'f5da2c34-7a8c-47a3-b262-7c44e9f6fd28', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '32ae5023-12c5-4a3a-8ec0-3f024eae8377', + toObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'favorite', + namePlural: 'favorites', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '4d80df11-1191-467f-ada8-05f83468dae2', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '4f09330e-1a85-4eb9-82df-c47e79d68c38', + type: 'UUID', + name: 'pointOfContactId', + label: 'Point of Contact id (foreign key)', + description: 'Opportunity point of contact id foreign key', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a276b810-e620-48b8-9575-ceca50d6d825', + type: 'POSITION', + name: 'position', + label: 'Position', + description: 'Opportunity record position', + icon: 'IconHierarchy2', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '854e2f30-9004-4e6e-9169-ccb65e4dfd82', + type: 'CURRENCY', + name: 'amount', + label: 'Amount', + description: 'Opportunity amount', + icon: 'IconCurrencyDollar', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: { + amountMicros: null, + currencyCode: "''", + }, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '19b05964-036d-4094-a4db-bda92a2f2162', + type: 'SELECT', + name: 'stage', + label: 'Stage', + description: 'Opportunity stage', + icon: 'IconProgressCheck', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'NEW'", + options: [ + { + id: '79acd111-9dc5-4972-9910-27e201bde17b', + color: 'red', + label: 'New', + value: 'NEW', + position: 0, + }, + { + id: '20d41856-ec96-41d7-8531-0f9ce7c33bdb', + color: 'purple', + label: 'Screening', + value: 'SCREENING', + position: 1, + }, + { + id: 'd007b774-b62e-4765-969e-378d0216f187', + color: 'sky', + label: 'Meeting', + value: 'MEETING', + position: 2, + }, + { + id: '43937fb6-d34a-48d5-bef2-28fae8f7fbc1', + color: 'turquoise', + label: 'Proposal', + value: 'PROPOSAL', + position: 3, + }, + { + id: '0276042b-124d-4f65-b665-e2e4b899d21a', + color: 'yellow', + label: 'Customer', + value: 'CUSTOMER', + position: 4, + }, + ], + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '6d85ad85-d707-4642-9fbd-b125d9458d26', + type: 'DATE_TIME', + name: 'closeDate', + label: 'Close date', + description: 'Opportunity close date', + icon: 'IconCalendarEvent', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '62f1371a-d4da-49b4-9e59-7d9d691ede83', + type: 'UUID', + name: 'companyId', + label: 'Company id (foreign key)', + description: 'Opportunity company id foreign key', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c59e1a3c-3849-4210-a4ee-c09a5bebe434', + type: 'TEXT', + name: 'name', + label: 'Name', + description: 'The opportunity name', + icon: 'IconTargetArrow', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'adc8f6dd-aee1-492f-a715-7dd02bdfb5f5', + type: 'RELATION', + name: 'activityTargets', + label: 'Activities', + description: 'Activities tied to the opportunity', + icon: 'IconCheckbox', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'adc8f6dd-aee1-492f-a715-7dd02bdfb5f5', + name: 'activityTargets', + }, + targetObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + }, + targetFieldMetadata: { + __typename: 'field', + id: '48714e13-1203-424e-8bfa-0f2baff626e7', + name: 'opportunity', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '1842e867-107a-4544-93e0-249298a8edbf', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '48714e13-1203-424e-8bfa-0f2baff626e7', + toObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + isSystem: true, + }, + }, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '56cb9f6b-1aae-4cba-85ed-fff37b1e3c25', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarEvent', + namePlural: 'calendarEvents', + labelSingular: 'Calendar event', + labelPlural: 'Calendar events', + description: 'Calendar events', + icon: 'IconCalendar', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjE3', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '51d90847-7bf8-4e66-af59-4dbee84c0953', + type: 'TEXT', + name: 'conferenceSolution', + label: 'Conference Solution', + description: 'Conference Solution', + icon: 'IconScreenShare', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a21b5983-a26c-42cf-a68f-322278eb3420', + type: 'TEXT', + name: 'description', + label: 'Description', + description: 'Description', + icon: 'IconFileDescription', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '98dd25a4-8912-4e5d-9373-0a896f7dfda1', + type: 'DATE_TIME', + name: 'externalUpdatedAt', + label: 'Update DateTime', + description: 'Update DateTime', + icon: 'IconCalendarCog', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2ae56492-083e-4ca9-8e7c-b6bc6548c830', + type: 'BOOLEAN', + name: 'isCanceled', + label: 'Is canceled', + description: 'Is canceled', + icon: 'IconCalendarCancel', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a5a16bf4-aff6-4008-bcca-e2441df71b96', + type: 'TEXT', + name: 'iCalUID', + label: 'iCal UID', + description: 'iCal UID', + icon: 'IconKey', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '87b36790-10ac-40ce-b309-c8033c0aa083', + type: 'RELATION', + name: 'eventParticipants', + label: 'Event Participants', + description: 'Event Participants', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '56cb9f6b-1aae-4cba-85ed-fff37b1e3c25', + nameSingular: 'calendarEvent', + namePlural: 'calendarEvents', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '87b36790-10ac-40ce-b309-c8033c0aa083', + name: 'eventParticipants', + }, + targetObjectMetadata: { + __typename: 'object', + id: '151b651a-12a7-4edd-9179-e7abc292d996', + nameSingular: 'calendarEventParticipant', + namePlural: 'calendarEventParticipants', + }, + targetFieldMetadata: { + __typename: 'field', + id: '58906c98-2b5a-41bf-bc22-0b4df50e24dd', + name: 'calendarEvent', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '43adaf3e-ec13-477e-9b95-3775d11166b1', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '58906c98-2b5a-41bf-bc22-0b4df50e24dd', + toObjectMetadata: { + __typename: 'object', + id: '151b651a-12a7-4edd-9179-e7abc292d996', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarEventParticipant', + namePlural: 'calendarEventParticipants', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '44457302-ca60-438b-84b4-fa653cc606e2', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'cac6b5e3-ac9c-4df0-9e9a-767f38dc888b', + type: 'TEXT', + name: 'location', + label: 'Location', + description: 'Location', + icon: 'IconMapPin', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '39e80598-42c1-453c-b204-ab0cfd52ba55', + type: 'DATE_TIME', + name: 'endsAt', + label: 'End Date', + description: 'End Date', + icon: 'IconCalendarClock', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a719dc7c-aec9-4fa6-9957-c896953be324', + type: 'DATE_TIME', + name: 'startsAt', + label: 'Start Date', + description: 'Start Date', + icon: 'IconCalendarClock', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a47b96ea-0416-49bd-94e8-55cdb2738bff', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b2be8cfa-97dc-4482-bad2-b8576b4090e7', + type: 'RELATION', + name: 'calendarChannelEventAssociations', + label: 'Calendar Channel Event Associations', + description: 'Calendar Channel Event Associations', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '56cb9f6b-1aae-4cba-85ed-fff37b1e3c25', + nameSingular: 'calendarEvent', + namePlural: 'calendarEvents', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'b2be8cfa-97dc-4482-bad2-b8576b4090e7', + name: 'calendarChannelEventAssociations', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'b3b3b148-eb5f-4457-87e0-2f40f363c390', + nameSingular: 'calendarChannelEventAssociation', + namePlural: 'calendarChannelEventAssociations', + }, + targetFieldMetadata: { + __typename: 'field', + id: '1c40e6e9-437b-47fc-84bf-57d4a8a0513d', + name: 'calendarEvent', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '3caf1987-2c71-49b2-8f92-5065339d66af', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '1c40e6e9-437b-47fc-84bf-57d4a8a0513d', + toObjectMetadata: { + __typename: 'object', + id: 'b3b3b148-eb5f-4457-87e0-2f40f363c390', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarChannelEventAssociation', + namePlural: 'calendarChannelEventAssociations', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '64e1750a-0955-433d-8f7f-52d412d3a55b', + type: 'LINK', + name: 'conferenceLink', + label: 'Meet Link', + description: 'Meet Link', + icon: 'IconLink', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: { + url: "''", + label: "''", + }, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '266b42df-7ea4-4198-aff1-7146a34a3ee7', + type: 'BOOLEAN', + name: 'isFullDay', + label: 'Is Full Day', + description: 'Is Full Day', + icon: 'Icon24Hours', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '12aa4ad3-45b7-4ca7-b87e-942e4a077aad', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ec811f9e-6539-41e8-8c23-296af37ea29e', + type: 'DATE_TIME', + name: 'externalCreatedAt', + label: 'Creation DateTime', + description: 'Creation DateTime', + icon: 'IconCalendarPlus', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '74b99529-a709-4b2b-9be1-8e4eadfca14e', + type: 'TEXT', + name: 'title', + label: 'Title', + description: 'Title', + icon: 'IconH1', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a1824c60-e3a3-4be9-bd85-4d65e7369c6c', + type: 'TEXT', + name: 'recurringEventExternalId', + label: 'Recurring Event ID', + description: 'Recurring Event ID', + icon: 'IconHistory', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '513f43c3-4083-4ca8-94a7-a3f6889ca8f5', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'webhook', + namePlural: 'webhooks', + labelSingular: 'Webhook', + labelPlural: 'Webhooks', + description: 'A webhook', + icon: 'IconRobot', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjQ=', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b1fcc37b-356f-425d-96aa-df8b7a3cf259', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '2791a32e-f27b-417b-bad8-0957f20bfdfc', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a67941ca-05b8-47f3-a5f0-2376c68f970a', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '648c5a15-f21f-4b3f-abae-f87cf086289d', + type: 'TEXT', + name: 'operation', + label: 'Operation', + description: 'Webhook operation', + icon: 'IconCheckbox', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8898b523-83ba-4d2c-bf67-39c43d9e806f', + type: 'TEXT', + name: 'targetUrl', + label: 'Target Url', + description: 'Webhook target url', + icon: 'IconLink', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '3a7ae3ad-fa9a-4ae4-8a01-dd656a1afc9d', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'message', + namePlural: 'messages', + labelSingular: 'Message', + labelPlural: 'Messages', + description: 'Message', + icon: 'IconMessage', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEx', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '479f0660-1b6e-49a4-a46d-be58faea1c30', + type: 'DATE_TIME', + name: 'receivedAt', + label: 'Received At', + description: 'The date the message was received', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ae82a0a0-d928-499a-a6b1-ad46006452b0', + type: 'RELATION', + name: 'messageChannelMessageAssociations', + label: 'Message Channel Association', + description: 'Messages from the channel.', + icon: 'IconMessage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '3a7ae3ad-fa9a-4ae4-8a01-dd656a1afc9d', + nameSingular: 'message', + namePlural: 'messages', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'ae82a0a0-d928-499a-a6b1-ad46006452b0', + name: 'messageChannelMessageAssociations', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'ef1ce364-0ffc-4436-95b5-40c99ce51b49', + nameSingular: 'messageChannelMessageAssociation', + namePlural: 'messageChannelMessageAssociations', + }, + targetFieldMetadata: { + __typename: 'field', + id: '29a3af93-a6b9-464f-bc83-84fd2abf2054', + name: 'message', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '94cb665d-b973-4276-bf55-656e08d79736', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '29a3af93-a6b9-464f-bc83-84fd2abf2054', + toObjectMetadata: { + __typename: 'object', + id: 'ef1ce364-0ffc-4436-95b5-40c99ce51b49', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageChannelMessageAssociation', + namePlural: 'messageChannelMessageAssociations', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '43be6d59-b5bb-465b-8771-f82457ff5dce', + type: 'UUID', + name: 'messageThreadId', + label: 'Message Thread Id id (foreign key)', + description: 'Message Thread Id id foreign key', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ee041833-e4c7-4766-b8e3-a7151c505b9d', + type: 'TEXT', + name: 'headerMessageId', + label: 'Header message Id', + description: 'Message id from the message header', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b8ff58c9-7414-450f-999e-a9f0867f30b1', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b2c00ac2-ce04-4552-b71b-acfa8403af25', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '12099cb8-ee26-4ce7-836c-73230c94c3e8', + type: 'RELATION', + name: 'messageParticipants', + label: 'Message Participants', + description: 'Message Participants', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '3a7ae3ad-fa9a-4ae4-8a01-dd656a1afc9d', + nameSingular: 'message', + namePlural: 'messages', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '12099cb8-ee26-4ce7-836c-73230c94c3e8', + name: 'messageParticipants', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'e9777897-9a5e-4c92-aa4f-555b10a39cc3', + nameSingular: 'messageParticipant', + namePlural: 'messageParticipants', + }, + targetFieldMetadata: { + __typename: 'field', + id: '372d5559-abc9-43c8-aa89-62d95e384c5a', + name: 'message', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '16a649f3-94b9-456e-ad2a-70dcd16c9516', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '372d5559-abc9-43c8-aa89-62d95e384c5a', + toObjectMetadata: { + __typename: 'object', + id: 'e9777897-9a5e-4c92-aa4f-555b10a39cc3', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageParticipant', + namePlural: 'messageParticipants', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0baefb8e-1961-4aee-8d42-7040a94a18d6', + type: 'TEXT', + name: 'text', + label: 'Text', + description: 'Text', + icon: 'IconMessage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c9807e13-e48b-4ccb-8f2f-2289a351a86b', + type: 'RELATION', + name: 'messageThread', + label: 'Message Thread Id', + description: 'Message Thread Id', + icon: 'IconHash', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '3a7ae3ad-fa9a-4ae4-8a01-dd656a1afc9d', + nameSingular: 'message', + namePlural: 'messages', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'c9807e13-e48b-4ccb-8f2f-2289a351a86b', + name: 'messageThread', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'b3f8207f-0b88-44ef-981d-a7ead80dff46', + nameSingular: 'messageThread', + namePlural: 'messageThreads', + }, + targetFieldMetadata: { + __typename: 'field', + id: '77da807c-10c9-4084-b396-25bbfb371ef4', + name: 'messages', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '8fbd9c8a-6999-4ecb-bc4f-0f67d10866bb', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '77da807c-10c9-4084-b396-25bbfb371ef4', + fromObjectMetadata: { + __typename: 'object', + id: 'b3f8207f-0b88-44ef-981d-a7ead80dff46', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageThread', + namePlural: 'messageThreads', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f49020f0-55dd-4f4b-bbb5-17243dd31e8e', + type: 'SELECT', + name: 'direction', + label: 'Direction', + description: 'Message Direction', + icon: 'IconDirection', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'incoming'", + options: [ + { + id: 'd859aa96-50e7-4aa3-bbeb-23eeb20009b7', + color: 'green', + label: 'Incoming', + value: 'incoming', + position: 0, + }, + { + id: '31c61fa5-fd21-4103-a65f-b39fde04c8b4', + color: 'blue', + label: 'Outgoing', + value: 'outgoing', + position: 1, + }, + ], + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8b07a904-a985-4731-a1ae-1501540fa034', + type: 'TEXT', + name: 'subject', + label: 'Subject', + description: 'Subject', + icon: 'IconMessage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '70f601c1-ef84-416e-86cf-b625580d9951', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '31c20827-624f-4559-aa97-0e85d744367e', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'comment', + namePlural: 'comments', + labelSingular: 'Comment', + labelPlural: 'Comments', + description: 'A comment', + icon: 'IconMessageCircle', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjc=', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '25343509-ad60-4131-b880-28475e9b5806', + type: 'TEXT', + name: 'body', + label: 'Body', + description: 'Comment body', + icon: 'IconLink', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a847d0fb-330e-4cd1-b5cc-e41eb066f097', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8cb54fbf-7d62-47af-8684-7d3300e88ff0', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '70073404-9690-4b2d-b2b7-e823ab279d74', + type: 'RELATION', + name: 'author', + label: 'Author', + description: 'Comment author', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '31c20827-624f-4559-aa97-0e85d744367e', + nameSingular: 'comment', + namePlural: 'comments', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '70073404-9690-4b2d-b2b7-e823ab279d74', + name: 'author', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: '9ea86ae6-c26b-4ea0-b207-820b3ebf7110', + name: 'authoredComments', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '58fb8589-6e7c-477c-b9ac-5e68bfa99ea2', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '9ea86ae6-c26b-4ea0-b207-820b3ebf7110', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a1381a14-2de4-4bb4-935d-6f4282f8147a', + type: 'UUID', + name: 'activityId', + label: 'Activity id (foreign key)', + description: 'Comment activity id foreign key', + icon: 'IconNotes', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '01b36d5d-a32b-43ad-99ed-ee385e8e9dbb', + type: 'UUID', + name: 'authorId', + label: 'Author id (foreign key)', + description: 'Comment author id foreign key', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '30925f21-d244-4ada-86a5-1fdc21f3e6ee', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '56919379-c98d-4a84-9f6a-accddd892620', + type: 'RELATION', + name: 'activity', + label: 'Activity', + description: 'Comment activity', + icon: 'IconNotes', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '31c20827-624f-4559-aa97-0e85d744367e', + nameSingular: 'comment', + namePlural: 'comments', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '56919379-c98d-4a84-9f6a-accddd892620', + name: 'activity', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + nameSingular: 'activity', + namePlural: 'activities', + }, + targetFieldMetadata: { + __typename: 'field', + id: '5f4ea983-40a2-4377-a9ec-4bdfc52b0941', + name: 'comments', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'b782c321-0f72-4f2a-b420-af020a2095d1', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '5f4ea983-40a2-4377-a9ec-4bdfc52b0941', + fromObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activity', + namePlural: 'activities', + isSystem: true, + }, + }, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'company', + namePlural: 'companies', + labelSingular: 'Company', + labelPlural: 'Companies', + description: 'A company', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjIy', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'efba6645-b939-4751-bd55-a2fa787997aa', + type: 'RELATION', + name: 'opportunities', + label: 'Opportunities', + description: 'Opportunities linked to the company.', + icon: 'IconTargetArrow', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'efba6645-b939-4751-bd55-a2fa787997aa', + name: 'opportunities', + }, + targetObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'be148e1f-256c-4ea8-a016-c25cbd6ec841', + name: 'company', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'd6f3f2a6-ac78-4451-aa00-9dffd75413e1', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'be148e1f-256c-4ea8-a016-c25cbd6ec841', + toObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'opportunity', + namePlural: 'opportunities', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '770291d8-aa11-42e7-9b60-89d265d2f51d', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '3500a80f-b0a8-45b1-8ca7-3d6b1ed45d3c', + type: 'RELATION', + name: 'activityTargets', + label: 'Activities', + description: 'Activities tied to the company', + icon: 'IconCheckbox', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '3500a80f-b0a8-45b1-8ca7-3d6b1ed45d3c', + name: 'activityTargets', + }, + targetObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + }, + targetFieldMetadata: { + __typename: 'field', + id: '038d194c-ba8c-4ff8-aeaa-846558e420c2', + name: 'company', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'c10efd06-e408-4560-bf12-62f9d8267a22', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '038d194c-ba8c-4ff8-aeaa-846558e420c2', + toObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a1be182c-810c-4319-955d-f1657692fdce', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd8e0f8b9-707d-4a18-b5fb-55a3a0513f00', + type: 'TEXT', + name: 'name', + label: 'Name', + description: 'The company name', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '6be4ff53-c65b-4955-9f86-935dd953154d', + type: 'RELATION', + name: 'people', + label: 'People', + description: 'People linked to the company.', + icon: 'IconUsers', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '6be4ff53-c65b-4955-9f86-935dd953154d', + name: 'people', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'c624bade-5070-4155-bd0c-8704fb2cdf8b', + name: 'company', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '9b2b32d2-9864-4dd6-9f3f-700525313393', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'c624bade-5070-4155-bd0c-8704fb2cdf8b', + toObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'person', + namePlural: 'people', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'af98447d-ed1e-407b-8e47-a9ef72bae4d0', + type: 'UUID', + name: 'listingId', + label: 'Listing Foreign Key', + description: null, + icon: null, + isCustom: true, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:51:58.429Z', + updatedAt: '2024-04-08T12:51:58.429Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'f1bbe372-b283-4061-b7b4-5a5039196b8c', + type: 'RELATION', + name: 'accountOwner', + label: 'Account Owner', + description: + 'Your team member responsible for managing the company account', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'f1bbe372-b283-4061-b7b4-5a5039196b8c', + name: 'accountOwner', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: '20577261-01ca-43ae-a6c8-d558dce6c0ee', + name: 'accountOwnerForCompanies', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '91ed8064-e2cc-4130-9cb9-c5dc7ddee302', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '20577261-01ca-43ae-a6c8-d558dce6c0ee', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '399c9e0a-8f95-4a10-b6e8-d95a682caefa', + type: 'POSITION', + name: 'position', + label: 'Position', + description: 'Company record position', + icon: 'IconHierarchy2', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8f7912c8-8dc7-40ca-8625-b6d0ec2dc1f4', + type: 'RELATION', + name: 'attachments', + label: 'Attachments', + description: 'Attachments linked to the company.', + icon: 'IconFileImport', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '8f7912c8-8dc7-40ca-8625-b6d0ec2dc1f4', + name: 'attachments', + }, + targetObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + nameSingular: 'attachment', + namePlural: 'attachments', + }, + targetFieldMetadata: { + __typename: 'field', + id: '0181aae2-1683-453a-b858-fe5260bb19e6', + name: 'company', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '76108795-7b26-4b28-958d-e49b3121880f', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '0181aae2-1683-453a-b858-fe5260bb19e6', + toObjectMetadata: { + __typename: 'object', + id: '71c84d79-88e3-4f6e-858e-e0baa7318af5', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'attachment', + namePlural: 'attachments', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '086f49b1-d56b-4019-9153-c3db1d7978f4', + type: 'TEXT', + name: 'domainName', + label: 'Domain Name', + description: + 'The company website URL. We use this url to fetch the company icon', + icon: 'IconLink', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ee339baa-56f3-4365-b8c6-8abbe7935636', + type: 'CURRENCY', + name: 'annualRecurringRevenue', + label: 'ARR', + description: + 'Annual Recurring Revenue: The actual or estimated annual revenue of the company', + icon: 'IconMoneybag', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: { + amountMicros: null, + currencyCode: "''", + }, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5519bc53-4da8-4ca6-9de2-8c999dbf6f7e', + type: 'UUID', + name: 'accountOwnerId', + label: 'Account Owner id (foreign key)', + description: + 'Your team member responsible for managing the company account id foreign key', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd828a7fb-10da-40e4-a63e-ab118822fac1', + type: 'TEXT', + name: 'address', + label: 'Address', + description: 'The company address', + icon: 'IconMap', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fc6a4a82-f80f-4aad-85e3-b2ae9b8fb26b', + type: 'RELATION', + name: 'listings', + label: 'Listings', + description: null, + icon: 'IconUsers', + isCustom: true, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:54:56.499Z', + updatedAt: '2024-04-08T12:54:56.499Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'fc6a4a82-f80f-4aad-85e3-b2ae9b8fb26b', + name: 'listings', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + targetFieldMetadata: { + __typename: 'field', + id: '178e9a07-cd88-47c0-8faf-cbd3918ba8b0', + name: 'c', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '35414edf-0c44-4500-95cc-ae6694ef9947', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '178e9a07-cd88-47c0-8faf-cbd3918ba8b0', + toObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'listing', + namePlural: 'listings', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '29f251c2-fd6f-4fa7-a55b-80e6481f4ba9', + type: 'RELATION', + name: 'events', + label: 'Events', + description: 'Events linked to the company', + icon: 'IconIconTimelineEvent', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '29f251c2-fd6f-4fa7-a55b-80e6481f4ba9', + name: 'events', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + nameSingular: 'event', + namePlural: 'events', + }, + targetFieldMetadata: { + __typename: 'field', + id: '155c7d0c-1974-426a-a072-6cee0424d71c', + name: 'company', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'ad0eb66d-e558-465d-b148-cc0cf3db3b95', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: '155c7d0c-1974-426a-a072-6cee0424d71c', + toObjectMetadata: { + __typename: 'object', + id: 'e5064557-17d7-4118-8a2b-a2faba15fc02', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'event', + namePlural: 'events', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '3a78ab26-7c4b-498a-b839-92b38223a3d5', + type: 'RELATION', + name: 'listing', + label: 'Listing', + description: null, + icon: 'IconListNumbers', + isCustom: true, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:51:58.429Z', + updatedAt: '2024-04-08T12:51:58.429Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '3a78ab26-7c4b-498a-b839-92b38223a3d5', + name: 'listing', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'ff20f9f0-f081-436b-8526-d7b2b3c80c92', + name: 'company', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '06dd3af4-7dc0-4599-9d99-3ea637fd672b', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'ff20f9f0-f081-436b-8526-d7b2b3c80c92', + fromObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'listing', + namePlural: 'listings', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '63523553-6b7b-4b0f-a877-45917e352e3d', + type: 'LINK', + name: 'linkedinLink', + label: 'Linkedin', + description: 'The company Linkedin account', + icon: 'IconBrandLinkedin', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: { + url: "''", + label: "''", + }, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '58c59bb5-ef51-400b-b95f-e536075e938c', + type: 'LINK', + name: 'xLink', + label: 'X', + description: 'The company Twitter/X account', + icon: 'IconBrandX', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: { + url: "''", + label: "''", + }, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0283509a-382f-4425-8a72-27c40ddc243d', + type: 'BOOLEAN', + name: 'idealCustomerProfile', + label: 'ICP', + description: + 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you', + icon: 'IconTarget', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: false, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1579d027-2443-42a3-97e5-c3e6e81abe5c', + type: 'RELATION', + name: 'favorites', + label: 'Favorites', + description: 'Favorites linked to the company', + icon: 'IconHeart', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '1579d027-2443-42a3-97e5-c3e6e81abe5c', + name: 'favorites', + }, + targetObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + nameSingular: 'favorite', + namePlural: 'favorites', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'dd203027-190c-471c-8e16-da0260b6274c', + name: 'company', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'faa88528-2847-4ffc-9e90-df997dbdb443', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'dd203027-190c-471c-8e16-da0260b6274c', + toObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'favorite', + namePlural: 'favorites', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1ade9f1d-dcdc-4dfe-a619-a1a01da96bb3', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd17926a3-ced6-43cf-a319-bcc0848b498e', + type: 'NUMBER', + name: 'employees', + label: 'Employees', + description: 'Number of employees in the company', + icon: 'IconUsers', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '184958e2-9434-453c-98be-7ca4311cc77e', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'connectedAccount', + namePlural: 'connectedAccounts', + labelSingular: 'Connected Account', + labelPlural: 'Connected Accounts', + description: 'A connected account', + icon: 'IconAt', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEy', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '88e1c2f8-a9cb-4ba3-9605-3671ffc6e103', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c3af15a5-d15e-4d08-a165-512778470a62', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a88a4c97-8cb4-45d3-a617-1ea9838d3647', + type: 'TEXT', + name: 'lastSyncHistoryId', + label: 'Last sync history ID', + description: 'Last sync history ID', + icon: 'IconHistory', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd3f2a520-0274-4fb3-953f-258101f7b9f4', + type: 'TEXT', + name: 'accessToken', + label: 'Access Token', + description: 'Messaging provider access token', + icon: 'IconKey', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e9edc1c6-8809-4369-8fb1-dbbd380df7a5', + type: 'UUID', + name: 'accountOwnerId', + label: 'Account Owner id (foreign key)', + description: 'Account Owner id foreign key', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '98d8af99-e129-4ae8-8bfa-dd377718d87e', + type: 'DATE_TIME', + name: 'authFailedAt', + label: 'Auth failed at', + description: 'Auth failed at', + icon: 'IconX', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd4ab2ad6-b08e-48fb-9a38-df3eeb2d1a40', + type: 'TEXT', + name: 'handle', + label: 'handle', + description: + 'The account handle (email, username, phone number, etc.)', + icon: 'IconMail', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e6bbac4f-c261-49e1-86f9-cb61f7ef6eb0', + type: 'TEXT', + name: 'provider', + label: 'provider', + description: 'The account provider', + icon: 'IconSettings', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '01b85639-909a-4337-96f7-b93dfdb964fe', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'cff5f362-1299-4e44-bcf5-49bb0d2d611b', + type: 'RELATION', + name: 'accountOwner', + label: 'Account Owner', + description: 'Account Owner', + icon: 'IconUserCircle', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '184958e2-9434-453c-98be-7ca4311cc77e', + nameSingular: 'connectedAccount', + namePlural: 'connectedAccounts', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'cff5f362-1299-4e44-bcf5-49bb0d2d611b', + name: 'accountOwner', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'fc3cfebb-722e-42dd-9646-e9f9f07dc152', + name: 'connectedAccounts', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'c7060c9e-9cb7-420e-a82f-1eabaee52c06', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'fc3cfebb-722e-42dd-9646-e9f9f07dc152', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fc92c00d-e5ff-4982-965e-514ee30bcf1c', + type: 'RELATION', + name: 'calendarChannels', + label: 'Calendar Channel', + description: 'Calendar Channel', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '184958e2-9434-453c-98be-7ca4311cc77e', + nameSingular: 'connectedAccount', + namePlural: 'connectedAccounts', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'fc92c00d-e5ff-4982-965e-514ee30bcf1c', + name: 'calendarChannels', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'd398ff30-85e0-45ab-a62a-ba2d775ce186', + nameSingular: 'calendarChannel', + namePlural: 'calendarChannels', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'fefbe526-b75b-494e-a06a-e89d6790cc3b', + name: 'connectedAccount', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: 'cab6d0bd-c3fb-46dc-af6f-de28e4689dd0', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'fefbe526-b75b-494e-a06a-e89d6790cc3b', + toObjectMetadata: { + __typename: 'object', + id: 'd398ff30-85e0-45ab-a62a-ba2d775ce186', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarChannel', + namePlural: 'calendarChannels', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '085c8a6b-31b5-4bd9-a193-8dd5c73c426b', + type: 'TEXT', + name: 'refreshToken', + label: 'Refresh Token', + description: 'Messaging provider refresh token', + icon: 'IconKey', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c68fb8af-ad36-439c-8c9d-799ba4cf4169', + type: 'RELATION', + name: 'messageChannels', + label: 'Message Channel', + description: 'Message Channel', + icon: 'IconMessage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { + __typename: 'object', + id: '184958e2-9434-453c-98be-7ca4311cc77e', + nameSingular: 'connectedAccount', + namePlural: 'connectedAccounts', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'c68fb8af-ad36-439c-8c9d-799ba4cf4169', + name: 'messageChannels', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8bef276b-342c-4088-9448-752fc8efd426', + nameSingular: 'messageChannel', + namePlural: 'messageChannels', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'b914db46-eea0-496c-ba56-1209b3fd9537', + name: 'connectedAccount', + }, + }, + toRelationMetadata: null, + fromRelationMetadata: { + __typename: 'relation', + id: '0ca8dd47-2a20-4950-bf82-8fd4eafd6d0d', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'b914db46-eea0-496c-ba56-1209b3fd9537', + toObjectMetadata: { + __typename: 'object', + id: '8bef276b-342c-4088-9448-752fc8efd426', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'messageChannel', + namePlural: 'messageChannels', + isSystem: true, + }, + }, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '151b651a-12a7-4edd-9179-e7abc292d996', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarEventParticipant', + namePlural: 'calendarEventParticipants', + labelSingular: 'Calendar event participant', + labelPlural: 'Calendar event participants', + description: 'Calendar event participants', + icon: 'IconCalendar', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEy', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '9a8d46c9-a957-4e75-8d00-12872b3fd29b', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a5aa1016-d4fb-4abc-bb0d-c65c8ef07751', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '472122e5-abad-41f9-baee-ded52b95f23a', + type: 'TEXT', + name: 'handle', + label: 'Handle', + description: 'Handle', + icon: 'IconMail', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5fc9279f-ac58-40e5-a2fc-5890ddc23bc7', + type: 'SELECT', + name: 'responseStatus', + label: 'Response Status', + description: 'Response Status', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'NEEDS_ACTION'", + options: [ + { + id: 'dd82a26c-6a7e-4b4c-a62f-49a3fe1ae9ea', + color: 'orange', + label: 'Needs Action', + value: 'NEEDS_ACTION', + position: 0, + }, + { + id: '98f816f0-59c3-438c-b0c6-24d017f8a8d3', + color: 'red', + label: 'Declined', + value: 'DECLINED', + position: 1, + }, + { + id: '8a0838e8-da13-48e7-aa19-25ed3ba3c22f', + color: 'yellow', + label: 'Tentative', + value: 'TENTATIVE', + position: 2, + }, + { + id: 'af20c798-12d5-4b98-acbc-e85df84817f9', + color: 'green', + label: 'Accepted', + value: 'ACCEPTED', + position: 3, + }, + ], + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '6f4e5661-277f-45a1-ac19-61fe082b6d59', + type: 'TEXT', + name: 'displayName', + label: 'Display Name', + description: 'Display Name', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a3d589db-aada-4980-8589-1e6af13292c3', + type: 'BOOLEAN', + name: 'isOrganizer', + label: 'Is Organizer', + description: 'Is Organizer', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: false, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b6bc0ac1-a106-4ff6-9c6c-e79f1aea0de5', + type: 'UUID', + name: 'calendarEventId', + label: 'Event ID id (foreign key)', + description: 'Event ID id foreign key', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c0705e9a-d868-45ee-83b7-6055ca6ac1a8', + type: 'RELATION', + name: 'workspaceMember', + label: 'Workspace Member', + description: 'Workspace Member', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '151b651a-12a7-4edd-9179-e7abc292d996', + nameSingular: 'calendarEventParticipant', + namePlural: 'calendarEventParticipants', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'c0705e9a-d868-45ee-83b7-6055ca6ac1a8', + name: 'workspaceMember', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'aee6daaa-a9e3-4f1a-a4dc-aa34c57cef7f', + name: 'calendarEventParticipants', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '9e9890bd-ead6-44f2-8f09-46d27f09f607', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'aee6daaa-a9e3-4f1a-a4dc-aa34c57cef7f', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e9fb5ddb-4231-46c3-971f-0dfb321641b8', + type: 'RELATION', + name: 'person', + label: 'Person', + description: 'Person', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '151b651a-12a7-4edd-9179-e7abc292d996', + nameSingular: 'calendarEventParticipant', + namePlural: 'calendarEventParticipants', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'e9fb5ddb-4231-46c3-971f-0dfb321641b8', + name: 'person', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'b802682c-3f9d-4f86-856b-a8e91048ae02', + name: 'calendarEventParticipants', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'eda707cd-b61d-4fda-933c-9eb5e17333d9', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'b802682c-3f9d-4f86-856b-a8e91048ae02', + fromObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'person', + namePlural: 'people', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1feb6de5-f8e7-449c-8f59-95130358c541', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '58906c98-2b5a-41bf-bc22-0b4df50e24dd', + type: 'RELATION', + name: 'calendarEvent', + label: 'Event ID', + description: 'Event ID', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '151b651a-12a7-4edd-9179-e7abc292d996', + nameSingular: 'calendarEventParticipant', + namePlural: 'calendarEventParticipants', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '58906c98-2b5a-41bf-bc22-0b4df50e24dd', + name: 'calendarEvent', + }, + targetObjectMetadata: { + __typename: 'object', + id: '56cb9f6b-1aae-4cba-85ed-fff37b1e3c25', + nameSingular: 'calendarEvent', + namePlural: 'calendarEvents', + }, + targetFieldMetadata: { + __typename: 'field', + id: '87b36790-10ac-40ce-b309-c8033c0aa083', + name: 'eventParticipants', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '43adaf3e-ec13-477e-9b95-3775d11166b1', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '87b36790-10ac-40ce-b309-c8033c0aa083', + fromObjectMetadata: { + __typename: 'object', + id: '56cb9f6b-1aae-4cba-85ed-fff37b1e3c25', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'calendarEvent', + namePlural: 'calendarEvents', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '03b22ba4-a27c-4bec-929d-c29cf5ed73a4', + type: 'UUID', + name: 'personId', + label: 'Person id (foreign key)', + description: 'Person id foreign key', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '400c23b4-43c5-4f17-80eb-647a60761992', + type: 'UUID', + name: 'workspaceMemberId', + label: 'Workspace Member id (foreign key)', + description: 'Workspace Member id foreign key', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + labelSingular: 'Activity Target', + labelPlural: 'Activity Targets', + description: 'An activity target', + icon: 'IconCheckbox', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEy', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '7ebcc78a-b65d-4a11-b38b-1d9d6a07b9b7', + type: 'UUID', + name: 'listingId', + label: 'Listing ID (foreign key)', + description: 'ActivityTarget Listing id foreign key', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:51:28.722Z', + updatedAt: '2024-04-08T12:51:28.722Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c2ba4efb-604d-4c2f-8a03-0b569b47b55d', + type: 'RELATION', + name: 'activity', + label: 'Activity', + description: 'ActivityTarget activity', + icon: 'IconNotes', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'c2ba4efb-604d-4c2f-8a03-0b569b47b55d', + name: 'activity', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + nameSingular: 'activity', + namePlural: 'activities', + }, + targetFieldMetadata: { + __typename: 'field', + id: '946beaa4-8816-4019-bd33-28c8463bfeaa', + name: 'activityTargets', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '8660a1ec-c72e-442c-81e3-da290931fbab', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '946beaa4-8816-4019-bd33-28c8463bfeaa', + fromObjectMetadata: { + __typename: 'object', + id: 'b09664c4-a413-4d1f-949e-2a67f1ec649f', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'activity', + namePlural: 'activities', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'c1fbf199-f736-41ee-8e09-63176fe2f980', + type: 'UUID', + name: 'activityId', + label: 'Activity id (foreign key)', + description: 'ActivityTarget activity id foreign key', + icon: 'IconNotes', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5bb6652c-6eba-4c1a-b6e5-aae3ca46b132', + type: 'RELATION', + name: 'person', + label: 'Person', + description: 'ActivityTarget person', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '5bb6652c-6eba-4c1a-b6e5-aae3ca46b132', + name: 'person', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + targetFieldMetadata: { + __typename: 'field', + id: '483d8221-01cd-4d70-83f7-f3d1b60c5575', + name: 'activityTargets', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '2d449c2a-7988-4b17-adfa-f362d44564bb', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '483d8221-01cd-4d70-83f7-f3d1b60c5575', + fromObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'person', + namePlural: 'people', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '01d640d1-a484-4e96-8816-43c07a76a747', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'ce67b1a5-9c8b-44d7-a052-9a6a88e36818', + type: 'UUID', + name: 'opportunityId', + label: 'Opportunity id (foreign key)', + description: 'ActivityTarget opportunity id foreign key', + icon: 'IconTargetArrow', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b32cedef-1675-4106-b26a-1035807e2657', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '038d194c-ba8c-4ff8-aeaa-846558e420c2', + type: 'RELATION', + name: 'company', + label: 'Company', + description: 'ActivityTarget company', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '038d194c-ba8c-4ff8-aeaa-846558e420c2', + name: 'company', + }, + targetObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + targetFieldMetadata: { + __typename: 'field', + id: '3500a80f-b0a8-45b1-8ca7-3d6b1ed45d3c', + name: 'activityTargets', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'c10efd06-e408-4560-bf12-62f9d8267a22', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '3500a80f-b0a8-45b1-8ca7-3d6b1ed45d3c', + fromObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'company', + namePlural: 'companies', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '6f033aeb-02d4-4154-8684-390884c86405', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '48714e13-1203-424e-8bfa-0f2baff626e7', + type: 'RELATION', + name: 'opportunity', + label: 'Opportunity', + description: 'ActivityTarget opportunity', + icon: 'IconTargetArrow', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '48714e13-1203-424e-8bfa-0f2baff626e7', + name: 'opportunity', + }, + targetObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'adc8f6dd-aee1-492f-a715-7dd02bdfb5f5', + name: 'activityTargets', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '1842e867-107a-4544-93e0-249298a8edbf', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'adc8f6dd-aee1-492f-a715-7dd02bdfb5f5', + fromObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'opportunity', + namePlural: 'opportunities', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b407e872-8151-4bef-8277-0df5f638153d', + type: 'RELATION', + name: 'listing', + label: 'Listing', + description: 'ActivityTarget Listing', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:51:28.722Z', + updatedAt: '2024-04-08T12:51:28.722Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '0f07873b-1b6d-408e-88ed-797767ebb2a4', + nameSingular: 'activityTarget', + namePlural: 'activityTargets', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'b407e872-8151-4bef-8277-0df5f638153d', + name: 'listing', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + targetFieldMetadata: { + __typename: 'field', + id: '2629a000-8bee-443d-9379-1c89a597df21', + name: 'activityTargets', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'c73fedc6-1a38-48d6-830f-bdfc92991506', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '2629a000-8bee-443d-9379-1c89a597df21', + fromObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'listing', + namePlural: 'listings', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '56061f3e-e05a-4a0c-8527-ef98ad052c59', + type: 'UUID', + name: 'companyId', + label: 'Company id (foreign key)', + description: 'ActivityTarget company id foreign key', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '7949e7ad-a269-4b2e-85d3-6457765fa940', + type: 'UUID', + name: 'personId', + label: 'Person id (foreign key)', + description: 'ActivityTarget person id foreign key', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '06ed4d2c-3ae8-4b0f-895c-de30676d9c46', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'viewSort', + namePlural: 'viewSorts', + labelSingular: 'View Sort', + labelPlural: 'View Sorts', + description: '(System) View Sorts', + icon: 'IconArrowsSort', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjY=', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5ab02c12-acdd-4663-b913-78c25dd7f199', + type: 'RELATION', + name: 'view', + label: 'View', + description: 'View Sort related view', + icon: 'IconLayoutCollage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '06ed4d2c-3ae8-4b0f-895c-de30676d9c46', + nameSingular: 'viewSort', + namePlural: 'viewSorts', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '5ab02c12-acdd-4663-b913-78c25dd7f199', + name: 'view', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'efa1addc-a9cb-4789-b99e-a060fa84f987', + nameSingular: 'view', + namePlural: 'views', + }, + targetFieldMetadata: { + __typename: 'field', + id: '405aa0c6-ce96-4597-8b61-2271020fde11', + name: 'viewSorts', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: '44bff5e3-29ae-4a3a-a9d8-bae4981bff33', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '405aa0c6-ce96-4597-8b61-2271020fde11', + fromObjectMetadata: { + __typename: 'object', + id: 'efa1addc-a9cb-4789-b99e-a060fa84f987', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'view', + namePlural: 'views', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'a92bf297-dac9-434b-b14d-cd849d7fb81b', + type: 'UUID', + name: 'fieldMetadataId', + label: 'Field Metadata Id', + description: 'View Sort target field', + icon: 'IconTag', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '5df49403-402e-42f9-adac-ca9211bf1a38', + type: 'TEXT', + name: 'direction', + label: 'Direction', + description: 'View Sort direction', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "'asc'", + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '7e724009-f914-4ae8-8cbb-8e2f8be1e783', + type: 'UUID', + name: 'viewId', + label: 'View id (foreign key)', + description: 'View Sort related view id foreign key', + icon: 'IconLayoutCollage', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1096ea71-550a-4958-acbe-a6393edc9f81', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0c8deb2e-f832-4618-82ac-eaa108b1b5ec', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '00016b5d-1be6-4c9b-b02a-d372d2d6bc60', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + ], + }, + }, + }, + { + __typename: 'objectEdge', + node: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'favorite', + namePlural: 'favorites', + labelSingular: 'Favorite', + labelPlural: 'Favorites', + description: 'A favorite', + icon: 'IconHeart', + isCustom: false, + isRemote: false, + isActive: true, + isSystem: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + labelIdentifierFieldMetadataId: null, + imageIdentifierFieldMetadataId: null, + fields: { + __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEz', + }, + edges: [ + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'da9e2c6c-3a23-4c10-84f4-229b8c8eb125', + type: 'NUMBER', + name: 'position', + label: 'Position', + description: 'Favorite position', + icon: 'IconList', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 0, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'b5bae675-6ad6-4320-b0f7-a3e5e2ca5474', + type: 'UUID', + name: 'opportunityId', + label: 'Opportunity id (foreign key)', + description: 'Favorite opportunity id foreign key', + icon: 'IconTargetArrow', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd94f1f82-1aab-441c-b6ff-6ec2f561921d', + type: 'RELATION', + name: 'listing', + label: 'Listing', + description: 'Favorite Listing', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: false, + isNullable: true, + createdAt: '2024-04-08T12:51:28.726Z', + updatedAt: '2024-04-08T12:51:28.726Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + nameSingular: 'favorite', + namePlural: 'favorites', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'd94f1f82-1aab-441c-b6ff-6ec2f561921d', + name: 'listing', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + nameSingular: 'listing', + namePlural: 'listings', + }, + targetFieldMetadata: { + __typename: 'field', + id: '78ab1b0d-e6b7-4c45-ac46-decdcf913b23', + name: 'favorites', + }, + }, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'e0602824-706f-4d5c-b1ac-6a3a83c01100', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '78ab1b0d-e6b7-4c45-ac46-decdcf913b23', + fromObjectMetadata: { + __typename: 'object', + id: 'c58aa98d-ab8a-4d7d-84d8-8d44f403cb2b', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'listing', + namePlural: 'listings', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'fbf23311-1077-4b1d-9687-def4fe52227a', + type: 'UUID', + name: 'companyId', + label: 'Company id (foreign key)', + description: 'Favorite company id foreign key', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '3ae40673-5d47-4c7c-9233-cfb141ad30d5', + type: 'UUID', + name: 'workspaceMemberId', + label: 'Workspace Member id (foreign key)', + description: 'Favorite workspace member id foreign key', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'd737cd4a-4032-476d-a594-1952ba7883b2', + type: 'RELATION', + name: 'person', + label: 'Person', + description: 'Favorite person', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'e0c1854d-d8a7-4936-a27c-265a09a635d4', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '17a9cee7-7f68-42bb-abd0-50932466f901', + fromObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'person', + namePlural: 'people', + isSystem: false, + }, + }, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + nameSingular: 'favorite', + namePlural: 'favorites', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'd737cd4a-4032-476d-a594-1952ba7883b2', + name: 'person', + }, + targetObjectMetadata: { + __typename: 'object', + id: 'c5be9551-fa87-4d5c-8017-ef72251c5194', + nameSingular: 'person', + namePlural: 'people', + }, + targetFieldMetadata: { + __typename: 'field', + id: '17a9cee7-7f68-42bb-abd0-50932466f901', + name: 'favorites', + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '93500808-3a1f-4b7d-ad07-edee6976016f', + type: 'UUID', + name: 'listingId', + label: 'Listing ID (foreign key)', + description: 'Favorite Listing id foreign key', + icon: null, + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:51:28.726Z', + updatedAt: '2024-04-08T12:51:28.726Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '32ae5023-12c5-4a3a-8ec0-3f024eae8377', + type: 'RELATION', + name: 'opportunity', + label: 'Opportunity', + description: 'Favorite opportunity', + icon: 'IconTargetArrow', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + fromRelationMetadata: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + nameSingular: 'favorite', + namePlural: 'favorites', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '32ae5023-12c5-4a3a-8ec0-3f024eae8377', + name: 'opportunity', + }, + targetObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + nameSingular: 'opportunity', + namePlural: 'opportunities', + }, + targetFieldMetadata: { + __typename: 'field', + id: 'd61da288-7a71-47d5-ba6a-7700356e9a3a', + name: 'favorites', + }, + }, + toRelationMetadata: { + __typename: 'relation', + id: 'f5da2c34-7a8c-47a3-b262-7c44e9f6fd28', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: 'd61da288-7a71-47d5-ba6a-7700356e9a3a', + fromObjectMetadata: { + __typename: 'object', + id: '69aca779-9ce1-41fe-b0f9-b7e697af84e1', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'opportunity', + namePlural: 'opportunities', + isSystem: false, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'e00ceb17-446d-490d-b204-c90bfddf97bb', + type: 'DATE_TIME', + name: 'updatedAt', + label: 'Update date', + description: 'Update date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8813fd75-e0d8-4a65-abd9-186dcbe9f1a7', + type: 'RELATION', + name: 'workspaceMember', + label: 'Workspace Member', + description: 'Favorite workspace member', + icon: 'IconCircleUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + fromRelationMetadata: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + nameSingular: 'favorite', + namePlural: 'favorites', + }, + sourceFieldMetadata: { + __typename: 'field', + id: '8813fd75-e0d8-4a65-abd9-186dcbe9f1a7', + name: 'workspaceMember', + }, + targetObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + }, + targetFieldMetadata: { + __typename: 'field', + id: '28419ee0-5f10-4130-ad39-31fe4fc4ae62', + name: 'favorites', + }, + }, + toRelationMetadata: { + __typename: 'relation', + id: '859f61ab-5d4d-404d-b5e4-b3a7cec4325e', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '28419ee0-5f10-4130-ad39-31fe4fc4ae62', + fromObjectMetadata: { + __typename: 'object', + id: '8d68cb28-d11a-4fc9-819e-d154c6d05edd', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'workspaceMember', + namePlural: 'workspaceMembers', + isSystem: true, + }, + }, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '1e3d58ce-72d5-46c5-aa96-76ab49e614c1', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '21f5674b-2893-46be-8789-690b2695da1c', + type: 'DATE_TIME', + name: 'createdAt', + label: 'Creation date', + description: 'Creation date', + icon: 'IconCalendar', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '0f2725f4-af46-4992-bf53-a91f298e5a26', + type: 'UUID', + name: 'personId', + label: 'Person id (foreign key)', + description: 'Favorite person id foreign key', + icon: 'IconUser', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: 'dd203027-190c-471c-8e16-da0260b6274c', + type: 'RELATION', + name: 'company', + label: 'Company', + description: 'Favorite company', + icon: 'IconBuildingSkyscraper', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: true, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + fromRelationMetadata: null, + toRelationMetadata: { + __typename: 'relation', + id: 'faa88528-2847-4ffc-9e90-df997dbdb443', + relationType: 'ONE_TO_MANY', + fromFieldMetadataId: '1579d027-2443-42a3-97e5-c3e6e81abe5c', + fromObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'company', + namePlural: 'companies', + isSystem: false, + }, + }, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'MANY_TO_ONE', + sourceObjectMetadata: { + __typename: 'object', + id: '056fb7ce-33e6-45c8-9389-0455432e88d7', + nameSingular: 'favorite', + namePlural: 'favorites', + }, + sourceFieldMetadata: { + __typename: 'field', + id: 'dd203027-190c-471c-8e16-da0260b6274c', + name: 'company', + }, + targetObjectMetadata: { + __typename: 'object', + id: '28755ee8-fa7b-4413-b453-4a98e84b237a', + nameSingular: 'company', + namePlural: 'companies', + }, + targetFieldMetadata: { + __typename: 'field', + id: '1579d027-2443-42a3-97e5-c3e6e81abe5c', + name: 'favorites', + }, + }, + }, + }, + ], + }, + }, + }, + ] as ObjectEdge[], + }, +} as ObjectMetadataItemsQuery; diff --git a/packages/twenty-front/src/testing/mock-data/metadata.ts b/packages/twenty-front/src/testing/mock-data/metadata.ts index 1d844d43a6..1917489ad8 100644 --- a/packages/twenty-front/src/testing/mock-data/metadata.ts +++ b/packages/twenty-front/src/testing/mock-data/metadata.ts @@ -1,1238 +1,167 @@ +import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; +import { mapPaginatedObjectMetadataItemsToObjectMetadataItems } from '@/object-metadata/utils/mapPaginatedObjectMetadataItemsToObjectMetadataItems'; import { - FieldMetadataType, ObjectEdge, - RelationMetadataType, + ObjectMetadataItemsQuery, } from '~/generated-metadata/graphql'; +import { mockedStandardObjectMetadataQueryResult } from '~/testing/mock-data/generated/standard-metadata-query-result'; -export const mockedPeopleMetadata = { - cursor: '', +const customObjectMetadataItemEdge: ObjectEdge = { __typename: 'objectEdge', node: { __typename: 'object', - id: '251787a4-9e47-4251-aaea-ea83f74cee80', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'person', - namePlural: 'people', - labelSingular: 'Person', - labelPlural: 'People', - description: 'A person', - icon: 'IconUser', - isCustom: false, + id: 'efa1addc-a9cb-4789-b99e-a060fa84f982', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'myCustom', + namePlural: 'myCustoms', + labelSingular: 'My Custom', + labelPlural: 'My Customs', + description: 'A custom object example', + icon: 'IconLayoutCollage', + isCustom: true, isRemote: false, isActive: true, isSystem: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', labelIdentifierFieldMetadataId: null, imageIdentifierFieldMetadataId: null, fields: { __typename: 'ObjectFieldsConnection', + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + hasPreviousPage: false, + startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', + endCursor: 'YXJyYXljb25uZWN0aW9uOjEz', + }, edges: [ { __typename: 'fieldEdge', - cursor: '', node: { __typename: 'field', - id: '273867e0-1bc7-499f-92d6-a4ec49425138', - type: FieldMetadataType.Link, - name: 'linkedinLink', - label: 'Linkedin', - description: 'Contact’s Linkedin account', - icon: 'IconBrandLinkedin', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dbdd6cad-20a9-4caa-8965-d1e02d7ab380', - type: FieldMetadataType.Relation, - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the contact', - icon: 'IconHeart', + id: 'ea83af89-be10-49af-a605-10c3392ae007', + type: 'RELATION', + name: 'companies', + label: 'Companies', + description: 'A custom Relation example', + icon: 'IconTag', isCustom: false, isActive: true, isSystem: true, isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'b3d452bc-e683-4dc6-86ec-37766ea8b30c', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: null, + options: null, + relationDefinition: { + __typename: 'RelationDefinition', + direction: 'ONE_TO_MANY', + sourceObjectMetadata: { __typename: 'object', - id: '59683254-31b8-4d3c-82ab-d936a56beb48', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'favorite', - namePlural: 'favorites', - isSystem: false, + id: 'efa1addc-a9cb-4789-b99e-a060fa84f982', + nameSingular: 'myCustom', + namePlural: 'myCustoms', }, - toFieldMetadataId: 'a0e7e269-d28c-49c6-8fe3-e89acef1cbf3', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'c606dfb1-a24c-4f9b-b626-0df1c845e6e8', - type: FieldMetadataType.Relation, - name: 'messageParticipants', - label: 'Message Participants', - description: 'Message Participants', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'fcc9ed16-2fa4-4809-8a1d-01ce0c481130', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'dd41deae-84d5-4a66-8947-260b0c72677c', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'messageParticipant', - namePlural: 'messageParticipants', - isSystem: false, + sourceFieldMetadata: { + __typename: 'field', + id: 'ea83af89-be10-49af-a605-10c3392ae007', + name: 'companies', }, - toFieldMetadataId: '88ab56e5-828e-4fb2-a37c-314b8803f361', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '586d0acc-f68b-4f08-aea9-410d88f351aa', - type: FieldMetadataType.Relation, - name: 'opportunities', - label: 'Opportunities', - description: 'Opportunities linked to the contact.', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'e63587c4-c565-4f77-9b8c-a639ae366dea', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { + targetObjectMetadata: { __typename: 'object', - id: '941ad274-2d26-4e90-94d9-5e446aa5b91e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'opportunity', - namePlural: 'opportunities', - isSystem: false, - }, - toFieldMetadataId: '48067b53-f99f-4700-bf3a-6569d1646b21', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '8f830af2-bac2-4c97-95bf-bc2336523200', - type: FieldMetadataType.Text, - name: 'jobTitle', - label: 'Job Title', - description: 'Contact’s job title', - icon: 'IconBriefcase', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '669ac2ca-a16e-4b82-8d86-0fe2f55ab01b', - type: FieldMetadataType.FullName, - name: 'name', - label: 'Name', - description: 'Contact’s name', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - lastName: '', - firstName: '', - }, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '92ee0bc9-5010-4153-ab93-6c269ff370c4', - type: FieldMetadataType.Text, - name: 'avatarUrl', - label: 'Avatar', - description: 'Contact’s avatar', - icon: 'IconFileUpload', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2766f41a-1f8f-413f-88a3-1e3fec0e1821', - type: FieldMetadataType.Relation, - name: 'pointOfContactForOpportunities', - label: 'POC for Opportunities', - description: 'Point of Contact for Opportunities', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '5b6296d8-8557-4a3c-a963-109a5888b3b3', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '941ad274-2d26-4e90-94d9-5e446aa5b91e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'opportunity', - namePlural: 'opportunities', - isSystem: false, - }, - toFieldMetadataId: '6510e80d-546a-4a27-9346-06590c81f068', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '7861e85d-826d-413e-8bd4-da3493a79898', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '10dda10c-8797-4a7b-a8ee-6123eadc4423', - type: FieldMetadataType.Uuid, - name: 'companyId', - label: 'Company id (foreign key)', - description: 'Contact’s company id foreign key', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '2f1238a1-de77-40a7-a698-0912f8daf4e8', - type: FieldMetadataType.Text, - name: 'phone', - label: 'Phone', - description: 'Contact’s phone number', - icon: 'IconPhone', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ee0ce363-c3b4-4638-ab88-660566e3016f', - type: FieldMetadataType.Relation, - name: 'company', - label: 'Company', - description: 'Contact’s company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'ccf90524-24b0-4b9a-bb01-b904c4f1328e', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '2a603764-1a2f-4043-bbfa-dea375391fad', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', + id: 'dba899da-7d88-41ac-b70e-5ea612ab4b2e', nameSingular: 'company', namePlural: 'companies', - isSystem: false, }, - fromFieldMetadataId: 'd991026f-54af-4411-a913-28b39403c24f', + targetFieldMetadata: { + __typename: 'field', + id: 'c9607ed7-168d-4743-a56a-689ffcfffe98', + name: 'myCustom', + }, }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '7db4da02-bcea-4f0e-bb5d-cf702e9529cc', - type: FieldMetadataType.Text, - name: 'city', - label: 'City', - description: 'Contact’s city', - icon: 'IconMap', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, toRelationMetadata: null, - options: [], - defaultValue: { - value: '', + fromRelationMetadata: { + __typename: 'relation', + id: 'c5cdbacd-2489-4409-be9e-bb4cb38f6ddd', + relationType: 'ONE_TO_MANY', + toFieldMetadataId: 'c9607ed7-168d-4743-a56a-689ffcfffe98', + toObjectMetadata: { + __typename: 'object', + id: 'dba899da-7d88-41ac-b70e-5ea612ab4b2e', + dataSourceId: 'd36e6a2d-28bc-459d-afd5-fe18e4405729', + nameSingular: 'viewField', + namePlural: 'viewFields', + isSystem: true, + }, }, }, }, { __typename: 'fieldEdge', - cursor: '', node: { __typename: 'field', - id: '5a751ba4-5097-4fa8-acd1-5fe164368233', - type: FieldMetadataType.Link, - name: 'xLink', - label: 'X', - description: 'Contact’s X/Twitter account', - icon: 'IconBrandX', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '8f0adf02-281a-42db-ad73-37d0d62416e0', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, + id: 'c5384d2a-9ec3-4e1b-b93f-86f53f122169', + type: 'UUID', + name: 'objectMetadataId', + label: 'Object Metadata Id', + description: 'View target object', icon: null, isCustom: false, isActive: true, isSystem: true, isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '0eb1a396-06a5-4b6a-8003-82e6839a2afb', - type: FieldMetadataType.Relation, - name: 'attachments', - label: 'Attachments', - description: 'Attachments linked to the contact.', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'a65ae523-9786-4064-8f42-346ce8055345', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'e25b094b-c6a9-4f56-856b-3c3072c33adf', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'attachment', - namePlural: 'attachments', - isSystem: false, - }, - toFieldMetadataId: 'cb2bac7e-0db7-4f10-95f2-d8d122cad29c', - }, - toRelationMetadata: null, - options: [], + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '17692850-3850-4e3a-824a-03aa199847f6', - type: FieldMetadataType.Relation, - name: 'activityTargets', - label: 'Activities', - description: 'Activities tied to the contact', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '6100b5ae-72b3-4a02-94e9-d923c7a78d92', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'b0327d82-d8a3-4e1d-9b4b-dfbff04d951a', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - isSystem: false, - }, - toFieldMetadataId: 'e6508bb6-0dfd-417a-b0f4-d84bc1f44883', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '5ecd8da2-7578-4ca9-9f59-45889ac608fa', - type: FieldMetadataType.Email, - name: 'email', - label: 'Email', - description: 'Contact’s Email', - icon: 'IconMail', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', + options: null, + relationDefinition: null, fromRelationMetadata: null, toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '63d42400-5bf0-4978-811a-f161f72c834c', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE4', - }, - totalCount: 19, - }, - }, -} as ObjectEdge; - -export const mockedCompaniesMetadata = { - __typename: 'objectEdge', - cursor: '', - node: { - __typename: 'object', - id: '2a603764-1a2f-4043-bbfa-dea375391fad', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'company', - namePlural: 'companies', - labelSingular: 'Company', - labelPlural: 'Companies', - description: 'A company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: 'c03b0e35-b095-42b6-b10f-3e04ef9adf8e', - type: FieldMetadataType.Link, - name: 'linkedinLink', - label: 'Linkedin', - description: 'The company Linkedin account', - icon: 'IconBrandLinkedin', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: 'aaf9520e-7723-418d-a464-42cf41db5b0e', - type: FieldMetadataType.Number, - name: 'employees', - label: 'Employees', - description: 'Number of employees in the company', - icon: 'IconUsers', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: 'ea8a043d-58c8-4b13-a041-74fb31c79e42', - type: FieldMetadataType.Text, - name: 'domainName', - label: 'Domain Name', - description: - 'The company website URL. We use this url to fetch the company icon', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, }, }, { __typename: 'fieldEdge', node: { __typename: 'field', - id: '775870d6-16c1-4c94-9b58-c88bdca489e8', - type: FieldMetadataType.Relation, - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the company', - icon: 'IconHeart', + id: 'bb4d96be-e4d9-47a9-812d-fcdfb063ebf3', + type: 'POSITION', + name: 'position', + label: 'Position', + description: 'View position', + icon: null, isCustom: false, isActive: true, isSystem: true, isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '4df88275-6b23-4bd4-b7a7-0893d366d8e0', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '59683254-31b8-4d3c-82ab-d936a56beb48', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - toFieldMetadataId: 'dcd5343e-98db-4cf7-aded-2c9c0da0a220', - }, - toRelationMetadata: null, - options: [], + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', defaultValue: null, + options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, }, }, { __typename: 'fieldEdge', - cursor: '', node: { __typename: 'field', - id: '1987f9fb-1f75-42a6-93e2-652811855f5b', - type: FieldMetadataType.Text, + id: 'f20c68aa-3930-41c4-9f79-45dceda506df', + type: 'TEXT', name: 'name', label: 'Name', - description: 'The company name', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '4ab25246-cf21-4265-9241-885111814e25', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '72268a05-1ac6-4b4c-b0f1-91dc82aa1f57', - type: FieldMetadataType.Uuid, - name: 'accountOwnerId', - label: 'Account Owner id (foreign key)', - description: - 'Your team member responsible for managing the company account id foreign key', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: 'e51b0291-33e5-401e-b595-3940a28bc5ce', - type: FieldMetadataType.Link, - name: 'xLink', - label: 'X', - description: 'The company Twitter/X account', - icon: 'IconBrandX', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'de0dace0-f7f8-4317-95e8-f80f6f72c7e4', - type: FieldMetadataType.Relation, - name: 'accountOwner', - label: 'Account Owner', - description: - 'Your team member responsible for managing the company account', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'b6d74797-0a27-449e-8f7b-26f94de4f707', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'bdc465d2-f9a8-4ec2-8f3d-50dd2ad4021e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - isSystem: true, - }, - fromFieldMetadataId: 'f1c10310-ab4f-484b-bd03-f5f3890e964e', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '6c9e87b5-e554-48f6-b6a8-3fce9ab9328b', - type: FieldMetadataType.Boolean, - name: 'idealCustomerProfile', - label: 'ICP', - description: - 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you', - icon: 'IconTarget', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '67500175-d2d8-4b84-a6c6-4b0a0a5cca23', - type: FieldMetadataType.Relation, - name: 'attachments', - label: 'Attachments', - description: 'Attachments linked to the company.', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '857f84a7-9934-4b3c-a7c6-3d1db427df73', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'e25b094b-c6a9-4f56-856b-3c3072c33adf', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'attachment', - namePlural: 'attachments', - isSystem: true, - }, - toFieldMetadataId: '6e103463-aee5-4be3-af12-52cacd566c3a', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: 'ed7fb62c-5e1a-4f35-82ff-5c59efc28edb', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: 'a5109540-d918-4f33-b80c-235a5816d44b', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, + description: 'Custom name', icon: null, isCustom: false, isActive: true, isSystem: true, isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '6b50c2a4-85b5-41ff-a774-8331ad7b3b61', - type: FieldMetadataType.Currency, - name: 'annualRecurringRevenue', - label: 'ARR', - description: - 'Annual Recurring Revenue: The actual or estimated annual revenue of the company', - icon: 'IconMoneybag', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '00b695d6-e0c6-4029-9932-817b19ae0380', - type: FieldMetadataType.Relation, - name: 'opportunities', - label: 'Opportunities', - description: 'Opportunities linked to the company.', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'afe2078f-6c52-45ef-bb2e-f43b0ee28ecc', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '941ad274-2d26-4e90-94d9-5e446aa5b91e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'opportunity', - namePlural: 'opportunities', - isSystem: true, - }, - toFieldMetadataId: '70b02b3a-8077-4ce1-ab8b-c5e854c31b13', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: 'aec12544-a9e8-464f-b7f7-b6f1ce3faebe', - type: FieldMetadataType.Text, - name: 'address', - label: 'Address', - description: 'The company address', - icon: 'IconMap', - isCustom: true, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'd991026f-54af-4411-a913-28b39403c24f', - type: FieldMetadataType.Relation, - name: 'people', - label: 'People', - description: 'People linked to the company.', - icon: 'IconUsers', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'ccf90524-24b0-4b9a-bb01-b904c4f1328e', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '251787a4-9e47-4251-aaea-ea83f74cee80', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'person', - namePlural: 'people', - isSystem: true, - }, - toFieldMetadataId: 'ee0ce363-c3b4-4638-ab88-660566e3016f', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '9a1a00ee-1595-4b00-8a33-fefb02e25c98', - type: FieldMetadataType.Relation, - name: 'activityTargets', - label: 'Activities', - description: 'Activities tied to the company', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '49028648-0380-481d-b6ba-004193f83e97', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'b0327d82-d8a3-4e1d-9b4b-dfbff04d951a', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - isSystem: true, - }, - toFieldMetadataId: 'd9ea410b-2441-44ef-85da-03650aad5818', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - cursor: '', - node: { - __typename: 'field', - id: '726f398f-7007-49f9-8b03-f71813c9fcf2', - type: FieldMetadataType.Select, - name: 'industry', - label: 'Industry', - description: 'The industry the company is involved in', - icon: 'IconUsers', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-20T12:25:25.057Z', - updatedAt: '2023-12-20T12:25:25.057Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [ - { - id: '9ecaa155-cb8a-4840-8c28-a308d4fdc35d', - color: 'pink', - label: '💊 Health', - position: 0, - value: 'HEALTH', - }, - { - id: '75287708-8bb6-4c69-8951-a622b2935ac7', - color: 'purple', - label: '🏭 Industry', - position: 1, - value: 'INDUSTRY', - }, - { - id: 'f8694cf8-c673-49ab-b758-b369de8584ec', - color: 'sky', - label: '🤖 SaaS', - position: 2, - value: 'SAAS', - }, - { - id: '3fd92580-1549-4cc0-b0b3-3a03bcffa7d0', - color: 'turquoise', - label: '🌿 Green tech', - position: 3, - value: 'GREEN_TECH', - }, - { - id: '9b4a1271-c515-4440-b450-78eb7ca05975', - color: 'yellow', - label: '🚲 Mobility', - position: 4, - value: 'MOBILITY', - }, - { - id: 'c80f4670-e8a5-4488-88b3-97a1b46f5940', - color: 'green', - label: '🌏 NGO', - position: 5, - value: 'NGO', - }, - ], - defaultValue: 'HEALTH', - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE3', - }, - totalCount: 18, - }, - }, -} as ObjectEdge; - -const mockedCalendarEventsMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'dd77da2e-bc12-4443-b323-097656d720fc', - dataSourceId: 'fa94b810-e848-490c-a5f7-24a1ee5bfaa6', - nameSingular: 'calendarEvent', - namePlural: 'calendarEvents', - labelSingular: 'Calendar event', - labelPlural: 'Calendar events', - description: 'Calendar events', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE3', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '6fee09b1-a964-4b34-b239-a38d91b137f1', - type: 'DATE_TIME', - name: 'endsAt', - label: 'End DateTime', - description: 'End DateTime', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: null, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: "''", options: null, + relationDefinition: null, fromRelationMetadata: null, toRelationMetadata: null, }, @@ -1241,380 +170,7 @@ const mockedCalendarEventsMetadata = { __typename: 'fieldEdge', node: { __typename: 'field', - id: '071d3b2a-9168-45bb-9a83-e840eb707d14', - type: FieldMetadataType.Link, - name: 'conferenceLink', - label: 'Conference Link', - description: 'Conference Link', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: { - label: 'https://zoom.us', - value: 'https://zoom.us', - }, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dce09597-dde3-462b-8a8b-d0bae238df2b', - type: 'RELATION', - name: 'calendarChannelEventAssociations', - label: 'Calendar Channel Event Associations', - description: 'Calendar Channel Event Associations', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: null, - options: null, - toRelationMetadata: null, - fromRelationMetadata: { - __typename: 'relation', - id: 'f4950160-aabd-44a3-b369-37b03b8f9ac6', - relationType: 'ONE_TO_MANY', - toFieldMetadataId: '8b4cd1d9-cd30-40c5-a01c-0d468443a704', - toObjectMetadata: { - __typename: 'object', - id: '7dd1f608-7696-43d1-8b5e-c95ea78b1e7a', - dataSourceId: 'fa94b810-e848-490c-a5f7-24a1ee5bfaa6', - nameSingular: 'calendarChannelEventAssociation', - namePlural: 'calendarChannelEventAssociations', - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ad4c78c7-1353-4f31-b2bf-57d97c528d4a', - type: 'TEXT', - name: 'iCalUID', - label: 'iCal UID', - description: 'iCal UID', - icon: 'IconKey', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: { - value: '', - }, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '65a99333-4cd9-44af-94cc-e19a479ecc1e', - type: 'TEXT', - name: 'title', - label: 'Title', - description: 'Title', - icon: 'IconH1', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: { - value: '', - }, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'd9cd21f2-7401-4873-b19c-3c9d7ed8bee2', - type: 'TEXT', - name: 'recurringEventExternalId', - label: 'Recurring Event ID', - description: 'Recurring Event ID', - icon: 'IconHistory', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: { - value: '', - }, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '38f3297b-fe2e-434f-867b-963ed2c75ee0', - type: 'DATE_TIME', - name: 'externalCreatedAt', - label: 'Creation DateTime', - description: 'Creation DateTime', - icon: 'IconCalendarPlus', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: null, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '5232193e-6016-4f13-bdcd-95478dfe8e4a', - type: 'TEXT', - name: 'location', - label: 'Location', - description: 'Location', - icon: 'IconMapPin', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: { - value: '', - }, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'bb49e0cc-72e6-4bc5-8bae-75e7b4f6cd53', - type: 'DATE_TIME', - name: 'startsAt', - label: 'Start DateTime', - description: 'Start DateTime', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: null, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '07880d2d-4f08-458f-be0b-876402d2a769', - type: 'RELATION', - name: 'calendarEventParticipants', - label: 'Event Participants', - description: 'Event Participants', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: null, - options: null, - toRelationMetadata: null, - fromRelationMetadata: { - __typename: 'relation', - id: '6ca76ccc-bdb1-4357-809e-66149e54474b', - relationType: 'ONE_TO_MANY', - toFieldMetadataId: '2ad8bb23-68f5-4a77-b23f-cac8db34a5f0', - toObjectMetadata: { - __typename: 'object', - id: '4adb1b1a-9643-4d1c-a2a0-b1b02ae192ad', - dataSourceId: 'fa94b810-e848-490c-a5f7-24a1ee5bfaa6', - nameSingular: 'calendarEventParticipant', - namePlural: 'calendarEventParticipants', - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '0d348548-f8a8-4669-872e-43ef01e3d93b', - type: 'DATE_TIME', - name: 'externalUpdatedAt', - label: 'Update DateTime', - description: 'Update DateTime', - icon: 'IconCalendarCog', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: null, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '37d357eb-fc04-4b5c-a633-345b677d2c87', - type: 'TEXT', - name: 'description', - label: 'Description', - description: 'Description', - icon: 'IconFileDescription', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: { - value: '', - }, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '3d14da78-db95-403e-bb2f-06ed076574cb', - type: 'TEXT', - name: 'conferenceSolution', - label: 'Conference Solution', - description: 'Conference Solution', - icon: 'IconScreenShare', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: { - value: '', - }, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '847a63f7-0614-4491-b445-c67269868c93', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: { - type: 'uuid', - }, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '1d7a9a99-b6ef-4fae-abcd-60bba4d4cf5b', - type: 'BOOLEAN', - name: 'isFullDay', - label: 'Is Full Day', - description: 'Is Full Day', - icon: 'Icon24Hours', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: null, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '91058295-2974-4924-937a-2e6dec4b3b01', - type: 'BOOLEAN', - name: 'isCanceled', - label: 'Is canceled', - description: 'Is canceled', - icon: 'IconCalendarCancel', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: null, - options: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'b93abe19-6228-4971-9ef0-4e38ef5ed314', + id: 'a3ef848d-660a-4aef-9cd4-5baf25ce36ed', type: 'DATE_TIME', name: 'createdAt', label: 'Creation date', @@ -1624,12 +180,11 @@ const mockedCalendarEventsMetadata = { isActive: true, isSystem: true, isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: { - type: 'now', - }, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', options: null, + relationDefinition: null, fromRelationMetadata: null, toRelationMetadata: null, }, @@ -1638,7 +193,7 @@ const mockedCalendarEventsMetadata = { __typename: 'fieldEdge', node: { __typename: 'field', - id: 'f8b1abe7-8d26-4502-ac15-6f49c5112bb0', + id: '92f3e27c-041d-45b2-b2bd-46db2b1aec3f', type: 'DATE_TIME', name: 'updatedAt', label: 'Update date', @@ -1648,12 +203,34 @@ const mockedCalendarEventsMetadata = { isActive: true, isSystem: true, isNullable: false, - createdAt: '2024-03-15T13:39:09.965Z', - updatedAt: '2024-03-15T13:39:09.965Z', - defaultValue: { - type: 'now', - }, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'now', options: null, + relationDefinition: null, + fromRelationMetadata: null, + toRelationMetadata: null, + }, + }, + { + __typename: 'fieldEdge', + node: { + __typename: 'field', + id: '8d7987eb-99e8-4e54-a86c-86b3bd07d2be', + type: 'UUID', + name: 'id', + label: 'Id', + description: 'Id', + icon: 'Icon123', + isCustom: false, + isActive: true, + isSystem: true, + isNullable: false, + createdAt: '2024-04-08T12:48:49.538Z', + updatedAt: '2024-04-08T12:48:49.538Z', + defaultValue: 'uuid', + options: null, + relationDefinition: null, fromRelationMetadata: null, toRelationMetadata: null, }, @@ -1663,5596 +240,35 @@ const mockedCalendarEventsMetadata = { }, } as ObjectEdge; -export const mockedActivityTargetsMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'b0327d82-d8a3-4e1d-9b4b-dfbff04d951a', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - labelSingular: 'Activity Target', - labelPlural: 'Activity Targets', - description: 'An activity target', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '55d3c728-fd31-4012-a7f1-f90571f9f7eb', - type: FieldMetadataType.Uuid, - name: 'activityId', - label: 'Activity id (foreign key)', - description: 'ActivityTarget activity id foreign key', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '1d8071b7-06bd-4c34-94cc-05cd7d672945', - type: FieldMetadataType.Uuid, - name: 'personId', - label: 'Person id (foreign key)', - description: 'ActivityTarget person id foreign key', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'd9ea410b-2441-44ef-85da-03650aad5818', - type: FieldMetadataType.Relation, - name: 'company', - label: 'Company', - description: 'ActivityTarget company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '49028648-0380-481d-b6ba-004193f83e97', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '2a603764-1a2f-4043-bbfa-dea375391fad', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'company', - namePlural: 'companies', - isSystem: true, - }, - fromFieldMetadataId: '9a1a00ee-1595-4b00-8a33-fefb02e25c98', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '9de09afd-3a18-46dc-8be8-01c6972738c6', - type: FieldMetadataType.Uuid, - name: 'companyId', - label: 'Company id (foreign key)', - description: 'ActivityTarget company id foreign key', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'd9c9707b-17c3-4bfd-a786-f7f4289b977a', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2aded974-bfa4-4ba4-b4c9-91346ac2762b', - type: FieldMetadataType.Relation, - name: 'activity', - label: 'Activity', - description: 'ActivityTarget activity', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'a47ced1e-6070-4b11-b5ab-1a3d2268d8a2', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'c8682a80-0b92-4d0e-9405-53ab7e8b225f', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'activity', - namePlural: 'activities', - isSystem: true, - }, - fromFieldMetadataId: '63bf5a31-2b3c-47ca-bb75-f1efb053ec58', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'e6508bb6-0dfd-417a-b0f4-d84bc1f44883', - type: FieldMetadataType.Relation, - name: 'person', - label: 'Person', - description: 'ActivityTarget person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '6100b5ae-72b3-4a02-94e9-d923c7a78d92', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '251787a4-9e47-4251-aaea-ea83f74cee80', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'person', - namePlural: 'people', - isSystem: true, - }, - fromFieldMetadataId: '17692850-3850-4e3a-824a-03aa199847f6', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dc80d52d-31ea-4a72-bb9a-482ed86b6bc5', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '5e8876b8-4492-4a35-ae57-da3bc725e9f1', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjg=', - }, - totalCount: 9, - }, +export const mockedObjectMetadataItemsQueryResult = { + ...mockedStandardObjectMetadataQueryResult, + objects: { + ...mockedStandardObjectMetadataQueryResult.objects, + edges: [ + ...mockedStandardObjectMetadataQueryResult.objects.edges, + customObjectMetadataItemEdge, + ], }, -}; +} as ObjectMetadataItemsQuery; -export const mockedFavoritesMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '59683254-31b8-4d3c-82ab-d936a56beb48', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'favorite', - namePlural: 'favorites', - labelSingular: 'Favorite', - labelPlural: 'Favorites', - description: 'A favorite', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'a63cbf75-68a5-4e80-8dff-b26982070afe', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '7ff19811-b2fe-428e-89e1-7c2ab79d6ba4', - type: FieldMetadataType.Number, - name: 'position', - label: 'Position', - description: 'Favorite position', - icon: 'IconList', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 0, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '818f4137-f4eb-4899-aed9-c59f7924a0ad', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'e9bab8b3-7a1b-4184-b66b-4a9d744b285f', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'a0e7e269-d28c-49c6-8fe3-e89acef1cbf3', - type: FieldMetadataType.Relation, - name: 'person', - label: 'Person', - description: 'Favorite person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'b3d452bc-e683-4dc6-86ec-37766ea8b30c', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '251787a4-9e47-4251-aaea-ea83f74cee80', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'person', - namePlural: 'people', - isSystem: true, - }, - fromFieldMetadataId: 'dbdd6cad-20a9-4caa-8965-d1e02d7ab380', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '39655326-9472-4552-a96c-934192e7b6b1', - type: FieldMetadataType.Uuid, - name: 'workspaceMemberId', - label: 'Workspace Member id (foreign key)', - description: 'Favorite workspace member id foreign key', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dcd5343e-98db-4cf7-aded-2c9c0da0a220', - type: FieldMetadataType.Relation, - name: 'company', - label: 'Company', - description: 'Favorite company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '4df88275-6b23-4bd4-b7a7-0893d366d8e0', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '2a603764-1a2f-4043-bbfa-dea375391fad', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'company', - namePlural: 'companies', - isSystem: true, - }, - fromFieldMetadataId: '775870d6-16c1-4c94-9b58-c88bdca489e8', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '46f6b12a-b720-4f64-9637-85e9b3b660ac', - type: FieldMetadataType.Uuid, - name: 'companyId', - label: 'Company id (foreign key)', - description: 'Favorite company id foreign key', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '9b9b9be4-34ee-4ed2-9ecf-772a619584ef', - type: FieldMetadataType.Uuid, - name: 'personId', - label: 'Person id (foreign key)', - description: 'Favorite person id foreign key', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'efc8bec2-de4a-4d67-9187-31394bb35119', - type: FieldMetadataType.Relation, - name: 'workspaceMember', - label: 'Workspace Member', - description: 'Favorite workspace member', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '4e7e4ec6-2543-47c0-87cc-0c394e98271e', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'bdc465d2-f9a8-4ec2-8f3d-50dd2ad4021e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - isSystem: true, - }, - fromFieldMetadataId: 'da7c9f08-5de0-4807-96d4-018ff7072d15', - }, - defaultValue: null, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjk=', - }, - totalCount: 10, - }, - }, -}; +export const mockedObjectMetadataItems = + mapPaginatedObjectMetadataItemsToObjectMetadataItems({ + pagedObjectMetadataItems: mockedObjectMetadataItemsQueryResult, + }); -export const mockedMessageParticipantsMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'dd41deae-84d5-4a66-8947-260b0c72677c', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'messageParticipant', - namePlural: 'messageParticipants', - labelSingular: 'Message Participant', - labelPlural: 'Message Participants', - description: 'Message Participants', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '37369429-26fb-4521-963c-1aa17d1a65f2', - type: FieldMetadataType.Uuid, - name: 'personId', - label: 'Person id (foreign key)', - description: 'Person id foreign key', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '22883ca2-34e2-40ab-9e7b-fde5836cb5d2', - type: FieldMetadataType.Relation, - name: 'workspaceMember', - label: 'Workspace Member', - description: 'Workspace member', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'ffcedbc0-adb7-4f74-83bb-ff7e3c270183', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'bdc465d2-f9a8-4ec2-8f3d-50dd2ad4021e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - isSystem: true, - }, - fromFieldMetadataId: 'f13cce91-5f98-4eb0-8c6e-c1cf41ad168f', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '5791f58e-b4f9-4415-a604-88155073a24a', - type: FieldMetadataType.Text, - name: 'displayName', - label: 'Display Name', - description: 'Display Name', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '0f5d742d-103c-46fb-845e-26320ec57391', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '5ac3d613-474d-4cc3-b01b-f0ff4772004f', - type: FieldMetadataType.Uuid, - name: 'messageId', - label: 'Message id (foreign key)', - description: 'Message id foreign key', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '88ab56e5-828e-4fb2-a37c-314b8803f361', - type: FieldMetadataType.Relation, - name: 'person', - label: 'Person', - description: 'Person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'fcc9ed16-2fa4-4809-8a1d-01ce0c481130', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '251787a4-9e47-4251-aaea-ea83f74cee80', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'person', - namePlural: 'people', - isSystem: true, - }, - fromFieldMetadataId: 'c606dfb1-a24c-4f9b-b626-0df1c845e6e8', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '663612f4-7eb8-4b21-886e-730f3b047ee7', - type: FieldMetadataType.Relation, - name: 'message', - label: 'Message', - description: 'Message', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '020d2fe4-33c3-4fe1-a2cc-35a23d73d046', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '6f4cd2fa-2e6f-41be-a2cc-98e497a1d2f5', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'message', - namePlural: 'message', - isSystem: true, - }, - fromFieldMetadataId: '9c58971b-4e40-4f49-b125-ff014f909744', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '501a7d34-f158-4b13-b26d-f04d966a2012', - type: FieldMetadataType.Text, - name: 'role', - label: 'Role', - description: 'Role', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 'from', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'f6c7f0fd-77a7-4d64-8b6a-e495a3cad2db', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'fbdb9c94-d18f-43f8-a214-d6e87782c177', - type: FieldMetadataType.Uuid, - name: 'workspaceMemberId', - label: 'Workspace Member id (foreign key)', - description: 'Workspace member id foreign key', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '1f3c5781-fdd0-4c75-9b90-7486583830f8', - type: FieldMetadataType.Text, - name: 'handle', - label: 'Handle', - description: 'Handle', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '9df1cbaf-1b9f-462a-a341-cefbb8a05fcd', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEx', - }, - totalCount: 12, - }, - }, -}; +export const mockedCompanyObjectMetadataItem = mockedObjectMetadataItems?.find( + (object) => object.nameSingular === 'company', +) as ObjectMetadataItem; -export const mockedActivitiesMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'c8682a80-0b92-4d0e-9405-53ab7e8b225f', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'activity', - namePlural: 'activities', - labelSingular: 'Activity', - labelPlural: 'Activities', - description: 'An activity', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '64744680-c85f-45ca-ba74-55986558d58f', - type: FieldMetadataType.DateTime, - name: 'reminderAt', - label: 'Reminder Date', - description: 'Activity reminder date', - icon: 'IconCalendarEvent', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ee8f3269-ad40-4ee8-9989-4b6978ddb487', - type: FieldMetadataType.Text, - name: 'title', - label: 'Title', - description: 'Activity title', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ce7bdaf6-445c-472a-b069-34fe73ac849c', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'f47a1319-bdec-4d9e-8179-17cb9df81dd6', - type: FieldMetadataType.Relation, - name: 'comments', - label: 'Comments', - description: 'Activity comments', - icon: 'IconComment', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'f4a1e4f4-8a26-4c7d-8973-6fdbc816fc6d', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '5f5658c9-a4c8-4463-b8ba-66fb3a1efacc', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'comment', - namePlural: 'comments', - isSystem: true, - }, - toFieldMetadataId: '1309d13f-9945-4f8b-99e8-371fbb51b99d', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'a6bd62f1-3e4c-4be0-ab64-0e7248d7d9eb', - type: FieldMetadataType.Relation, - name: 'assignee', - label: 'Assignee', - description: 'Acitivity assignee', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '0de81eae-1ffb-4cb5-b081-ab18d5641d50', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'bdc465d2-f9a8-4ec2-8f3d-50dd2ad4021e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - isSystem: true, - }, - fromFieldMetadataId: '9a722ce5-1721-4406-a695-4a207f6f50c7', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '5ba12c78-4e7d-422d-821a-a647b959689b', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '763c2a4a-e7ba-445f-9ecd-6d1d20c8b408', - type: FieldMetadataType.Relation, - name: 'attachments', - label: 'Attachments', - description: 'Activity attachments', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'a45591f3-8a30-49d0-92b3-59c4110dfee7', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'e25b094b-c6a9-4f56-856b-3c3072c33adf', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'attachment', - namePlural: 'attachments', - isSystem: true, - }, - toFieldMetadataId: 'd8ce8a44-872e-482e-ac9d-87f6637f5776', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '87b74ce7-8029-4b36-8b2f-6e565b65429a', - type: FieldMetadataType.Text, - name: 'type', - label: 'Type', - description: 'Activity type', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 'Note', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '3cea79b3-4419-4872-b1e3-6ab7623fb918', - type: FieldMetadataType.Text, - name: 'body', - label: 'Body', - description: 'Activity body', - icon: 'IconList', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '4c652e71-ec1d-418f-b102-26e56d1d0c03', - type: FieldMetadataType.Uuid, - name: 'assigneeId', - label: 'Assignee id (foreign key)', - description: 'Acitivity assignee id foreign key', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '3cdd5fbe-8e16-493d-9638-425af94f313e', - type: FieldMetadataType.DateTime, - name: 'completedAt', - label: 'Completion Date', - description: 'Activity completion date', - icon: 'IconCheck', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'c40dd76b-da9d-48aa-af28-4d42f2ac1dea', - type: FieldMetadataType.DateTime, - name: 'dueAt', - label: 'Due Date', - description: 'Activity due date', - icon: 'IconCalendarEvent', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '63bf5a31-2b3c-47ca-bb75-f1efb053ec58', - type: FieldMetadataType.Relation, - name: 'activityTargets', - label: 'Targets', - description: 'Activity targets', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'a47ced1e-6070-4b11-b5ab-1a3d2268d8a2', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'b0327d82-d8a3-4e1d-9b4b-dfbff04d951a', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - isSystem: true, - }, - toFieldMetadataId: '2aded974-bfa4-4ba4-b4c9-91346ac2762b', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '46782ee3-181c-484b-9aa9-27e57b61cc81', - type: FieldMetadataType.Relation, - name: 'author', - label: 'Author', - description: 'Activity author', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '519a92c5-8b0a-4a85-b0bc-be8d1607da5a', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'bdc465d2-f9a8-4ec2-8f3d-50dd2ad4021e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - isSystem: true, - }, - fromFieldMetadataId: '4d91396b-99ff-486f-aa23-aa90bfca4aff', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'fa996207-da7a-43e0-ba7d-406e5146e03f', - type: FieldMetadataType.Uuid, - name: 'authorId', - label: 'Author id (foreign key)', - description: 'Activity author id foreign key', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dd65a576-a91b-4865-aae8-287e64d6a192', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE1', - }, - totalCount: 16, - }, - }, -}; +export const mockedPersonObjectMetadataItem = mockedObjectMetadataItems?.find( + (object) => object.nameSingular === 'person', +) as ObjectMetadataItem; -export const mockedAttachmentsMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'e25b094b-c6a9-4f56-856b-3c3072c33adf', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'attachment', - namePlural: 'attachments', - labelSingular: 'Attachment', - labelPlural: 'Attachments', - description: 'An attachment', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'c0d56fea-22a3-42e6-b715-f0bc07dafe4c', - type: FieldMetadataType.Uuid, - name: 'authorId', - label: 'Author id (foreign key)', - description: 'Attachment author id foreign key', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '78bcb420-9281-4eeb-8eb6-b2f3047acc09', - type: FieldMetadataType.Relation, - name: 'author', - label: 'Author', - description: 'Attachment author', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '2d64b1ba-c7c2-4d96-bba3-ae2f7c2be7bc', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'bdc465d2-f9a8-4ec2-8f3d-50dd2ad4021e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - isSystem: true, - }, - fromFieldMetadataId: 'dbd81b2e-f282-4846-970a-d9fbf1ab0f67', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '1ce97b92-8efa-4260-bd96-efe207182424', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'a121231f-4264-49b4-afff-04db4021d484', - type: FieldMetadataType.Text, - name: 'name', - label: 'Name', - description: 'Attachment name', - icon: 'IconFileUpload', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, +export const mockedCustomObjectMetadataItem = mockedObjectMetadataItems?.find( + (object) => object.nameSingular === 'myCustom', +) as ObjectMetadataItem; - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'f6edc5fd-601d-4576-8828-d749ed6e0dde', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '26fda4b8-c242-429c-9139-1ced619244d1', - type: FieldMetadataType.Uuid, - name: 'personId', - label: 'Person id (foreign key)', - description: 'Attachment person id foreign key', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '6e103463-aee5-4be3-af12-52cacd566c3a', - type: FieldMetadataType.Relation, - name: 'company', - label: 'Company', - description: 'Attachment company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '857f84a7-9934-4b3c-a7c6-3d1db427df73', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '2a603764-1a2f-4043-bbfa-dea375391fad', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'company', - namePlural: 'companies', - isSystem: true, - }, - fromFieldMetadataId: '67500175-d2d8-4b84-a6c6-4b0a0a5cca23', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'e4a17720-25f2-42ca-8f26-2557e1d2d31c', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ae6f3e07-7858-4999-93a0-557fe2ee5f0e', - type: FieldMetadataType.Uuid, - name: 'companyId', - label: 'Company id (foreign key)', - description: 'Attachment company id foreign key', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'f550d5cb-7e06-47b0-9e50-c5ad68beb0f6', - type: FieldMetadataType.Uuid, - name: 'activityId', - label: 'Activity id (foreign key)', - description: 'Attachment activity id foreign key', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ba8f371a-238f-4bb1-9099-275f60281d22', - type: FieldMetadataType.Text, - name: 'fullPath', - label: 'Full path', - description: 'Attachment full path', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'cb2bac7e-0db7-4f10-95f2-d8d122cad29c', - type: FieldMetadataType.Relation, - name: 'person', - label: 'Person', - description: 'Attachment person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'a65ae523-9786-4064-8f42-346ce8055345', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '251787a4-9e47-4251-aaea-ea83f74cee80', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'person', - namePlural: 'people', - isSystem: true, - }, - fromFieldMetadataId: '0eb1a396-06a5-4b6a-8003-82e6839a2afb', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ab9ec58a-d20c-48e0-b5ca-7050810fdb2d', - type: FieldMetadataType.Text, - name: 'type', - label: 'Type', - description: 'Attachment type', - icon: 'IconList', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'd8ce8a44-872e-482e-ac9d-87f6637f5776', - type: FieldMetadataType.Relation, - name: 'activity', - label: 'Activity', - description: 'Attachment activity', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'a45591f3-8a30-49d0-92b3-59c4110dfee7', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'c8682a80-0b92-4d0e-9405-53ab7e8b225f', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'activity', - namePlural: 'activities', - isSystem: true, - }, - fromFieldMetadataId: '763c2a4a-e7ba-445f-9ecd-6d1d20c8b408', - }, - defaultValue: null, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEz', - }, - totalCount: 14, - }, - }, -}; - -export const mockedWorkspaceMembersMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'bdc465d2-f9a8-4ec2-8f3d-50dd2ad4021e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - labelSingular: 'Workspace Member', - labelPlural: 'Workspace Members', - description: 'A workspace member', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2f6a7242-efd0-4cb8-8d54-d298df37690d', - type: FieldMetadataType.Text, - name: 'locale', - label: 'Language', - description: 'Preferred language', - icon: 'IconLanguage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 'en', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'f13cce91-5f98-4eb0-8c6e-c1cf41ad168f', - type: FieldMetadataType.Relation, - name: 'messageParticipants', - label: 'Message Participants', - description: 'Message Participants', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'ffcedbc0-adb7-4f74-83bb-ff7e3c270183', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'dd41deae-84d5-4a66-8947-260b0c72677c', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'messageParticipant', - namePlural: 'messageParticipants', - isSystem: true, - }, - toFieldMetadataId: '22883ca2-34e2-40ab-9e7b-fde5836cb5d2', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dcfbc338-ef39-42f6-9712-128d5efe2c04', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '4d91396b-99ff-486f-aa23-aa90bfca4aff', - type: FieldMetadataType.Relation, - name: 'authoredActivities', - label: 'Authored activities', - description: 'Activities created by the workspace member', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '519a92c5-8b0a-4a85-b0bc-be8d1607da5a', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'c8682a80-0b92-4d0e-9405-53ab7e8b225f', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'activity', - namePlural: 'activities', - isSystem: true, - }, - toFieldMetadataId: '46782ee3-181c-484b-9aa9-27e57b61cc81', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ccb7f96a-fd64-49a4-b5c3-e9cceb436dbd', - type: FieldMetadataType.FullName, - name: 'name', - label: 'Name', - description: 'Workspace member name', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - lastName: '', - firstName: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'da7c9f08-5de0-4807-96d4-018ff7072d15', - type: FieldMetadataType.Relation, - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the workspace member', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '4e7e4ec6-2543-47c0-87cc-0c394e98271e', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '59683254-31b8-4d3c-82ab-d936a56beb48', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'favorite', - namePlural: 'favorites', - isSystem: true, - }, - toFieldMetadataId: 'efc8bec2-de4a-4d67-9187-31394bb35119', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ed36d8bc-dcbd-4d4a-8b18-02e04b13fbf7', - type: FieldMetadataType.Text, - name: 'colorScheme', - label: 'Color Scheme', - description: 'Preferred color scheme', - icon: 'IconColorSwatch', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 'Light', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '099a5f31-0b9a-4d1a-81dc-811f0f1f0b33', - type: FieldMetadataType.Relation, - name: 'authoredComments', - label: 'Authored comments', - description: 'Authored comments', - icon: 'IconComment', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '8e2a5be9-ff83-4106-bfe0-0877423559d0', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '5f5658c9-a4c8-4463-b8ba-66fb3a1efacc', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'comment', - namePlural: 'comments', - isSystem: true, - }, - toFieldMetadataId: 'e2c01385-7707-49e0-835c-facbf8a6e4a9', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '016b24b5-cd59-48fa-81ce-ba13670ce7d2', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2c8bb89a-c60c-49bf-81ce-7074ac41caf5', - type: FieldMetadataType.Relation, - name: 'connectedAccounts', - label: 'Connected accounts', - description: 'Connected accounts', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '7fd3bdb5-e043-495d-82b1-d75c22b70bac', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '539d1682-9999-43dc-94c1-7ad52640ac7d', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'connectedAccount', - namePlural: 'connectedAccounts', - isSystem: true, - }, - toFieldMetadataId: '912a9a56-4e00-4cd2-8908-b0d113c9f615', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'f1c10310-ab4f-484b-bd03-f5f3890e964e', - type: FieldMetadataType.Relation, - name: 'accountOwnerForCompanies', - label: 'Account Owner For Companies', - description: 'Account owner for companies', - icon: 'IconBriefcase', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: 'b6d74797-0a27-449e-8f7b-26f94de4f707', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '2a603764-1a2f-4043-bbfa-dea375391fad', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'company', - namePlural: 'companies', - isSystem: true, - }, - toFieldMetadataId: 'de0dace0-f7f8-4317-95e8-f80f6f72c7e4', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '318a3e81-5b82-4c2d-8487-f3b8d5be9096', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '14b83650-bfd2-4810-be57-4d532697051a', - type: FieldMetadataType.Uuid, - name: 'userId', - label: 'User Id', - description: 'Associated User Id', - icon: 'IconCircleUsers', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'e208d831-5ab7-4382-971a-2314ab2ef139', - type: FieldMetadataType.Text, - name: 'avatarUrl', - label: 'Avatar Url', - description: 'Workspace member avatar', - icon: 'IconFileUpload', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dbd81b2e-f282-4846-970a-d9fbf1ab0f67', - type: FieldMetadataType.Relation, - name: 'authoredAttachments', - label: 'Authored attachments', - description: 'Attachments created by the workspace member', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '2d64b1ba-c7c2-4d96-bba3-ae2f7c2be7bc', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'e25b094b-c6a9-4f56-856b-3c3072c33adf', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'attachment', - namePlural: 'attachments', - isSystem: true, - }, - toFieldMetadataId: '78bcb420-9281-4eeb-8eb6-b2f3047acc09', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '9a722ce5-1721-4406-a695-4a207f6f50c7', - type: FieldMetadataType.Relation, - name: 'assignedActivities', - label: 'Assigned activities', - description: 'Activities assigned to the workspace member', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '0de81eae-1ffb-4cb5-b081-ab18d5641d50', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'c8682a80-0b92-4d0e-9405-53ab7e8b225f', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'activity', - namePlural: 'activities', - isSystem: true, - }, - toFieldMetadataId: 'a6bd62f1-3e4c-4be0-ab64-0e7248d7d9eb', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE1', - }, - totalCount: 16, - }, - }, -}; - -export const mockedWebhooksMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'cf24395f-3f89-4edd-b1d6-9c696cc8cb04', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'webhook', - namePlural: 'webhooks', - labelSingular: 'Webhook', - labelPlural: 'Webhooks', - description: 'A webhook', - icon: 'IconRobot', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ed41012d-df17-4752-8e79-04adaa513164', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'bff23b96-0a20-42ba-bdce-fbc72c97f31f', - type: FieldMetadataType.Text, - name: 'targetUrl', - label: 'Target Url', - description: 'Webhook target url', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'db25a5ad-8149-4d27-9e02-01f374c8d1b4', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'efcdbbd3-fd10-4b1e-88df-92d3c6dc50da', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'bb357656-272c-413c-bdd9-9aff9c7a17bf', - type: FieldMetadataType.Text, - name: 'operation', - label: 'Operation', - description: 'Webhook operation', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjQ=', - }, - totalCount: 5, - }, - }, -}; - -export const mockedMessagesMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '6f4cd2fa-2e6f-41be-a2cc-98e497a1d2f5', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'message', - namePlural: 'message', - labelSingular: 'Message', - labelPlural: 'Messages', - description: 'Message', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2ea89a33-045e-4231-9c25-0eef7ff419c0', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '4a57cd16-1b56-4d0a-a09e-7ce2840c0412', - type: FieldMetadataType.Text, - name: 'headerMessageId', - label: 'Header message Id', - description: 'Message id from the message header', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '9699f1af-50a2-43f7-9b72-32a64ca5496a', - type: FieldMetadataType.Text, - name: 'body', - label: 'Body', - description: 'Body', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ed57984a-2d5f-4e1a-a61f-18cbbc75cbd0', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '0c98eb7f-6db3-43d3-84d8-3c46a384ac5e', - type: FieldMetadataType.Relation, - name: 'messageThread', - label: 'Message Thread Id', - description: 'Message Thread Id', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '5ea18f96-cfb4-45af-b716-d09bfb4bb282', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'a8162839-fbd1-4a37-998b-f4a2714020d1', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'messageThread', - namePlural: 'messageThreads', - isSystem: true, - }, - fromFieldMetadataId: '0d3c8828-2edb-4658-bd95-d01e4d102696', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '86e6e65a-2d43-47a3-8d39-e88ed6b5aad8', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '9c58971b-4e40-4f49-b125-ff014f909744', - type: FieldMetadataType.Relation, - name: 'messageParticipants', - label: 'Message Participants', - description: 'Message Participants', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '020d2fe4-33c3-4fe1-a2cc-35a23d73d046', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'dd41deae-84d5-4a66-8947-260b0c72677c', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'messageParticipant', - namePlural: 'messageParticipants', - isSystem: true, - }, - toFieldMetadataId: '663612f4-7eb8-4b21-886e-730f3b047ee7', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dbed6e60-ca97-488d-bb02-2f65f3ff73dd', - type: FieldMetadataType.Text, - name: 'externalId', - label: 'External Id', - description: 'Message id from the messaging provider', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'c15dc3af-1cbd-488a-a207-3715ab28c9e3', - type: FieldMetadataType.Text, - name: 'direction', - label: 'Direction', - description: 'Direction', - icon: 'IconDirection', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 'incoming', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '3ef72ad1-5292-4c23-83bf-7db622b59d19', - type: FieldMetadataType.Uuid, - name: 'messageThreadId', - label: 'Message Thread Id id (foreign key)', - description: 'Message Thread Id id foreign key', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'b167f44d-07b0-4750-8878-1fdbe9b4bec9', - type: FieldMetadataType.Text, - name: 'subject', - label: 'Subject', - description: 'Subject', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEw', - }, - totalCount: 11, - }, - }, -}; - -export const mockedOpportunitiesMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '941ad274-2d26-4e90-94d9-5e446aa5b91e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'opportunity', - namePlural: 'opportunities', - labelSingular: 'Opportunity', - labelPlural: 'Opportunities', - description: 'An opportunity', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '6510e80d-546a-4a27-9346-06590c81f068', - type: FieldMetadataType.Relation, - name: 'pointOfContact', - label: 'Point of Contact', - description: 'Opportunity point of contact', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '5b6296d8-8557-4a3c-a963-109a5888b3b3', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '251787a4-9e47-4251-aaea-ea83f74cee80', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'person', - namePlural: 'people', - isSystem: true, - }, - fromFieldMetadataId: '2766f41a-1f8f-413f-88a3-1e3fec0e1821', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '48067b53-f99f-4700-bf3a-6569d1646b21', - type: FieldMetadataType.Relation, - name: 'person', - label: 'Person', - description: 'Opportunity person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'e63587c4-c565-4f77-9b8c-a639ae366dea', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '251787a4-9e47-4251-aaea-ea83f74cee80', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'person', - namePlural: 'people', - isSystem: true, - }, - fromFieldMetadataId: '586d0acc-f68b-4f08-aea9-410d88f351aa', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2bb053ec-1abf-4bf8-af01-acfbc0f78953', - type: FieldMetadataType.Uuid, - name: 'companyId', - label: 'Company id (foreign key)', - description: 'Opportunity company id foreign key', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2aabeef9-7a6b-41a0-a80e-f3c0047c6920', - type: FieldMetadataType.Currency, - name: 'amount', - label: 'Amount', - description: 'Opportunity amount', - icon: 'IconCurrencyDollar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'ba1df486-c07e-460a-92bc-5aa7e72dbbf1', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2dc6e877-d4d5-4ab2-9368-4e0a9bab6157', - type: FieldMetadataType.Uuid, - name: 'pointOfContactId', - label: 'Point of Contact id (foreign key)', - description: 'Opportunity point of contact id foreign key', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'b8226269-3631-4ca2-a2f3-50bd1046d7d2', - type: FieldMetadataType.Text, - name: 'probability', - label: 'Probability', - description: 'Opportunity probability', - icon: 'IconProgressCheck', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '0', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '085b69d5-6dd5-445d-871f-7f963f82d949', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '306da353-c580-451c-bf6f-8b80c230c545', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '70b02b3a-8077-4ce1-ab8b-c5e854c31b13', - type: FieldMetadataType.Relation, - name: 'company', - label: 'Company', - description: 'Opportunity company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'afe2078f-6c52-45ef-bb2e-f43b0ee28ecc', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '2a603764-1a2f-4043-bbfa-dea375391fad', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'company', - namePlural: 'companies', - isSystem: true, - }, - fromFieldMetadataId: '00b695d6-e0c6-4029-9932-817b19ae0380', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '22ce66e0-35fa-48a4-ae8a-4fefdde9500d', - type: FieldMetadataType.Uuid, - name: 'personId', - label: 'Person id (foreign key)', - description: 'Opportunity person id foreign key', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'd1db261a-73ca-4546-a0d0-c2110826c030', - type: FieldMetadataType.DateTime, - name: 'closeDate', - label: 'Close date', - description: 'Opportunity close date', - icon: 'IconCalendarEvent', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEz', - }, - totalCount: 14, - }, - }, -}; - -export const mockedAPIKeysMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'd5c37777-3450-4e30-80a2-66853331ca99', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'apiKey', - namePlural: 'apiKeys', - labelSingular: 'Api Key', - labelPlural: 'Api Keys', - description: 'An api key', - icon: 'IconRobot', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'bdda452a-c123-4fa3-8543-d04c2c43836f', - type: FieldMetadataType.DateTime, - name: 'revokedAt', - label: 'Revocation date', - description: 'ApiKey revocation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dd217f48-d1bf-4451-9b8d-e06feb7365f9', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '3fd655ef-3dc6-4edf-84cf-3f398150412b', - type: FieldMetadataType.DateTime, - name: 'expiresAt', - label: 'Expiration date', - description: 'ApiKey expiration date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '5f404704-d084-420e-a2bf-ab3108da12ae', - type: FieldMetadataType.Text, - name: 'name', - label: 'Name', - description: 'ApiKey name', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '948db156-f5de-4ddf-ad95-34fabc7cb273', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2204f9d1-274d-4bd5-be9c-3598da520df0', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjU=', - }, - totalCount: 6, - }, - }, -}; - -export const mockedCustomMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'd5c37777-3450-4e30-80a2-66853331ca90', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'myCustom', - namePlural: 'myCustoms', - labelSingular: 'My Custom', - labelPlural: 'My Customs', - description: 'A custom object example', - icon: 'IconRobot', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'bdda452a-c123-4fa3-8543-d04c2c43836f', - type: FieldMetadataType.DateTime, - name: 'revokedAt', - label: 'Revocation date', - description: 'ApiKey revocation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dd217f48-d1bf-4451-9b8d-e06feb7365f9', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '3fd655ef-3dc6-4edf-84cf-3f398150412b', - type: FieldMetadataType.DateTime, - name: 'expiresAt', - label: 'Expiration date', - description: 'ApiKey expiration date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '5f404704-d084-420e-a2bf-ab3108da12ae', - type: FieldMetadataType.Text, - name: 'name', - label: 'Name', - description: 'ApiKey name', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '948db156-f5de-4ddf-ad95-34fabc7cb273', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2204f9d1-274d-4bd5-be9c-3598da520df0', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjU=', - }, - totalCount: 6, - }, - }, -}; - -export const mockedComments = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '5f5658c9-a4c8-4463-b8ba-66fb3a1efacc', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'comment', - namePlural: 'comments', - labelSingular: 'Comment', - labelPlural: 'Comments', - description: 'A comment', - icon: 'IconMessageCircle', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '041ee9d8-f3b7-418d-b9b6-b295817515a6', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '1309d13f-9945-4f8b-99e8-371fbb51b99d', - type: FieldMetadataType.Relation, - name: 'activity', - label: 'Activity', - description: 'Comment activity', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: 'f4a1e4f4-8a26-4c7d-8973-6fdbc816fc6d', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'c8682a80-0b92-4d0e-9405-53ab7e8b225f', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'activity', - namePlural: 'activities', - isSystem: true, - }, - fromFieldMetadataId: 'f47a1319-bdec-4d9e-8179-17cb9df81dd6', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '56a98ada-9a34-48d2-abb4-67c8eb1af7ab', - type: FieldMetadataType.Text, - name: 'body', - label: 'Body', - description: 'Comment body', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '18f0a3c3-60f2-44ed-8338-9f1a36fcec63', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '0cba4da0-9dc9-43e1-964e-813c0c96f396', - type: FieldMetadataType.Uuid, - name: 'authorId', - label: 'Author id (foreign key)', - description: 'Comment author id foreign key', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '539d818a-1d68-4e5d-94c3-439a17a8a25e', - type: FieldMetadataType.Uuid, - name: 'activityId', - label: 'Activity id (foreign key)', - description: 'Comment activity id foreign key', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '31828911-06a3-48d3-9f96-95d403c282f0', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'e2c01385-7707-49e0-835c-facbf8a6e4a9', - type: FieldMetadataType.Relation, - name: 'author', - label: 'Author', - description: 'Comment author', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '8e2a5be9-ff83-4106-bfe0-0877423559d0', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'bdc465d2-f9a8-4ec2-8f3d-50dd2ad4021e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - isSystem: true, - }, - fromFieldMetadataId: '099a5f31-0b9a-4d1a-81dc-811f0f1f0b33', - }, - defaultValue: null, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjc=', - }, - totalCount: 8, - }, - }, -}; - -export const mockedMessageThreads = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'a8162839-fbd1-4a37-998b-f4a2714020d1', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'messageThread', - namePlural: 'messageThreads', - - labelSingular: 'Message Thread', - labelPlural: 'Message Threads', - description: 'Message Thread', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '1a56aa47-2549-4548-8ed3-cdcb06766430', - type: FieldMetadataType.Text, - name: 'externalId', - label: 'External Id', - description: 'Thread id from the messaging provider', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '8aaf7a27-88d4-4ad3-98ce-cb2c14b1f17f', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'bd65743c-8d13-4e99-82cd-b1d3f365d0c4', - type: FieldMetadataType.Relation, - name: 'messageChannel', - label: 'Message Channel Id', - description: 'Message Channel Id', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '179ef8b5-41f8-4d0f-98b6-30d487431354', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'a7088839-1354-45c5-93db-d1dc0a17a4b0', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'messageChannel', - namePlural: 'messageChannels', - isSystem: true, - }, - fromFieldMetadataId: 'db09596c-c968-41de-95ba-ae8d3c36fc00', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '0d3c8828-2edb-4658-bd95-d01e4d102696', - type: FieldMetadataType.Relation, - name: 'messages', - label: 'Messages', - description: 'Messages from the thread.', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '5ea18f96-cfb4-45af-b716-d09bfb4bb282', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '6f4cd2fa-2e6f-41be-a2cc-98e497a1d2f5', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'message', - namePlural: 'message', - isSystem: true, - }, - toFieldMetadataId: '0c98eb7f-6db3-43d3-84d8-3c46a384ac5e', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '68ed1fad-af5f-414b-8e51-1e82f3862edd', - type: FieldMetadataType.Text, - name: 'subject', - label: 'Subject', - description: 'Subject', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '6d69c800-9750-424a-ab1c-3501fd13f9e8', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'dcf4ec4a-7d64-456e-b682-42903604d56f', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '1cf2b8d8-23fa-4f99-b0ee-f02ef6df5aa3', - type: FieldMetadataType.Text, - name: 'visibility', - label: 'Visibility', - description: 'Visibility', - icon: 'IconEyeglass', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 'default', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'cf4b8230-1b00-4fe8-ac1a-7786e950d00c', - type: FieldMetadataType.Uuid, - name: 'messageChannelId', - label: 'Message Channel Id id (foreign key)', - description: 'Message Channel Id id foreign key', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjg=', - }, - totalCount: 9, - }, - }, -}; - -export const mockedMessageChannelsMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'a7088839-1354-45c5-93db-d1dc0a17a4b0', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'messageChannel', - namePlural: 'messageChannels', - labelSingular: 'Message Channel', - labelPlural: 'Message Channels', - description: 'Message Channels', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '44744cbd-2066-496c-8bb8-e3dd29cfe42c', - type: FieldMetadataType.Text, - name: 'visibility', - label: 'Visibility', - description: 'Visibility', - icon: 'IconEyeglass', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 'metadata', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'db09596c-c968-41de-95ba-ae8d3c36fc00', - type: FieldMetadataType.Relation, - name: 'messageThreads', - label: 'Message Threads', - description: 'Threads from the channel.', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '179ef8b5-41f8-4d0f-98b6-30d487431354', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'a8162839-fbd1-4a37-998b-f4a2714020d1', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'messageThread', - namePlural: 'messageThreads', - isSystem: true, - }, - toFieldMetadataId: 'bd65743c-8d13-4e99-82cd-b1d3f365d0c4', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '68fee565-c541-4356-bcaa-b85791e2ad76', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'afd3e543-00de-4fa4-9451-fd94dde9885b', - type: FieldMetadataType.Text, - name: 'type', - label: 'Type', - description: 'Type', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'd9e6b266-a1fa-4da9-b73f-c5432863a4c9', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'de960b13-1353-4201-b577-e684141cdb01', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '1ee38bde-c912-44aa-b5d5-de2b49b8fd85', - type: FieldMetadataType.Uuid, - name: 'connectedAccountId', - label: 'Connected Account id (foreign key)', - description: 'Connected Account id foreign key', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '504eac1b-5186-48dd-8136-3bb236455b13', - type: FieldMetadataType.Text, - name: 'handle', - label: 'Handle', - description: 'Handle', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '14fcf47f-b60e-4dc8-80a0-df6e16f513ac', - type: FieldMetadataType.Relation, - name: 'connectedAccount', - label: 'Connected Account', - description: 'Connected Account', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '4a2d8c75-3d39-4860-9373-2bc7faf35feb', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '539d1682-9999-43dc-94c1-7ad52640ac7d', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'connectedAccount', - namePlural: 'connectedAccounts', - isSystem: true, - }, - fromFieldMetadataId: '6cb6a33d-6eb1-4bba-b1f8-a1d3f40c9158', - }, - defaultValue: null, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjg=', - }, - totalCount: 9, - }, - }, -}; - -export const mockedConnectedAccountsMetadata = { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '539d1682-9999-43dc-94c1-7ad52640ac7d', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'connectedAccount', - namePlural: 'connectedAccounts', - labelSingular: 'Connected Account', - labelPlural: 'Connected Accounts', - description: 'A connected account', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'f3a558db-f935-44ee-9cf6-70d55d72d45f', - type: FieldMetadataType.Text, - name: 'handle', - label: 'handle', - description: - 'The account handle (email, username, phone number, etc.)', - icon: 'IconMail', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'f8e1de81-a11b-4346-a964-599fb49ee3bc', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'c60d4c3f-0cd7-4e92-9a7f-ae3a77f4a0ad', - type: FieldMetadataType.Text, - name: 'accessToken', - label: 'Access Token', - description: 'Messaging provider access token', - icon: 'IconKey', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '6cb6a33d-6eb1-4bba-b1f8-a1d3f40c9158', - type: FieldMetadataType.Relation, - name: 'messageChannels', - label: 'Message Channel', - description: 'Message Channel', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '4a2d8c75-3d39-4860-9373-2bc7faf35feb', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'a7088839-1354-45c5-93db-d1dc0a17a4b0', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'messageChannel', - namePlural: 'messageChannels', - isSystem: true, - }, - toFieldMetadataId: '14fcf47f-b60e-4dc8-80a0-df6e16f513ac', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'd50a4e5e-555d-4a2d-9609-1f1e502c92fe', - type: FieldMetadataType.Text, - name: 'refreshToken', - label: 'Refresh Token', - description: 'Messaging provider refresh token', - icon: 'IconKey', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '912a9a56-4e00-4cd2-8908-b0d113c9f615', - type: FieldMetadataType.Relation, - name: 'accountOwner', - label: 'Account Owner', - description: 'Account Owner', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - options: [], - toRelationMetadata: { - __typename: 'relation', - id: '7fd3bdb5-e043-495d-82b1-d75c22b70bac', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: 'bdc465d2-f9a8-4ec2-8f3d-50dd2ad4021e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - isSystem: true, - }, - fromFieldMetadataId: '2c8bb89a-c60c-49bf-81ce-7074ac41caf5', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '74d6f4ec-b8a6-467d-b212-28821cd67591', - type: FieldMetadataType.Text, - name: 'provider', - label: 'provider', - description: 'The account provider', - icon: 'IconSettings', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '0facb6d5-6e9e-4a3a-96f0-5343707bfdb3', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'c05cd42e-e6b9-41ac-bd09-253e6036c964', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'af5be9ca-6f69-45f8-ad6f-787beea6bb05', - type: FieldMetadataType.Uuid, - name: 'accountOwnerId', - label: 'Account Owner id (foreign key)', - description: 'Account Owner id foreign key', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjk=', - }, - totalCount: 10, - }, - }, -}; - -export const mockedObjectMetadataItems = { - edges: [ - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'eda22943-ffd5-4524-a8c4-ffc65edbf152', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'viewFilter', - namePlural: 'viewFilters', - labelSingular: 'View Filter', - labelPlural: 'View Filters', - description: '(System) View Filters', - icon: 'IconFilterBolt', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'e99cb806-f707-454b-99a3-b1521337f891', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'd90df531-be28-4ca3-92d4-d660bbad1b12', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '5c24c599-34c5-4efe-adc6-e066be7ad20e', - type: FieldMetadataType.Relation, - name: 'view', - label: 'View', - description: 'View Filter related view', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: { - __typename: 'relation', - id: '1ac6a89a-7a45-441f-b9a6-848f9aaa0833', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '98ee2e85-7510-49f9-848e-c1a21acdc664', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'view', - namePlural: 'views', - isSystem: true, - }, - fromFieldMetadataId: '5c1342d5-199c-4746-8d3a-60d17a09d187', - }, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '83b506e3-e211-4d8e-bc00-3d1ca5fc9acf', - type: FieldMetadataType.Text, - name: 'operand', - label: 'Operand', - description: 'View Filter operand', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 'Contains', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '028f1b4c-f127-4141-bf57-c47f685e7553', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'fb48b84b-62cb-4846-ab5e-e48fa034f848', - type: FieldMetadataType.Uuid, - name: 'viewId', - label: 'View id (foreign key)', - description: 'View Filter related view id foreign key', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '32a978a4-8ce5-491f-acc8-c3f4612c810e', - type: FieldMetadataType.Text, - name: 'displayValue', - label: 'Display Value', - description: 'View Filter Display Value', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2fd8dbd6-6378-4905-bd22-6ec12b387e1c', - type: FieldMetadataType.Text, - name: 'value', - label: 'Value', - description: 'View Filter value', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '2d467958-3869-400e-a65b-63ab0232dd2b', - type: FieldMetadataType.Uuid, - name: 'fieldMetadataId', - label: 'Field Metadata Id', - description: 'View Filter target field', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjg=', - }, - totalCount: 9, - }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '98ee2e85-7510-49f9-848e-c1a21acdc664', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'view', - namePlural: 'views', - labelSingular: 'View', - labelPlural: 'Views', - description: '(System) Views', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '4ee74e9c-9c7a-4d18-81a2-83f007dd4614', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '58aa8432-7109-42b2-8b85-7745fef42b9e', - type: FieldMetadataType.Relation, - name: 'viewFields', - label: 'View Fields', - description: 'View Fields', - icon: 'IconTag', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '1ba54f4e-6e09-40a8-bc02-65b5ece7dafc', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '07c68965-1479-4e44-91ca-3e45784e9337', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'viewField', - namePlural: 'viewFields', - isSystem: true, - }, - toFieldMetadataId: '7c7866c9-4bf0-4f3b-89b6-5b889858a895', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '1fc13345-82fd-4e70-934b-4fa4b03ffd64', - type: FieldMetadataType.Text, - name: 'name', - label: 'Name', - description: 'View name', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: '', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '803e8f8b-1e14-4d8d-b449-87bfdc3807ca', - type: FieldMetadataType.Uuid, - name: 'objectMetadataId', - label: 'Object Metadata Id', - description: 'View target object', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'caa56736-cc74-4922-9ac1-eb99ca31d9d6', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '5c1342d5-199c-4746-8d3a-60d17a09d187', - type: FieldMetadataType.Relation, - name: 'viewFilters', - label: 'View Filters', - description: 'View Filters', - icon: 'IconFilterBolt', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '1ac6a89a-7a45-441f-b9a6-848f9aaa0833', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: 'eda22943-ffd5-4524-a8c4-ffc65edbf152', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'viewFilter', - namePlural: 'viewFilters', - isSystem: true, - }, - toFieldMetadataId: '5c24c599-34c5-4efe-adc6-e066be7ad20e', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '8b930e70-e1f0-4656-93ba-8e720cd45062', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'bdbecafb-972e-43f4-9296-c5a59bad449d', - type: FieldMetadataType.Relation, - name: 'viewSorts', - label: 'View Sorts', - description: 'View Sorts', - icon: 'IconArrowsSort', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: { - __typename: 'relation', - id: '22a37761-f528-4a9b-8194-1fed1df69019', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - __typename: 'object', - id: '0591699b-2304-4f81-8c32-543693c5ae4e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'viewSort', - namePlural: 'viewSorts', - isSystem: true, - }, - toFieldMetadataId: 'bff11820-ffa2-4283-80b3-3777583f6f97', - }, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '3546f837-5b46-449a-a127-e73d3849352d', - type: FieldMetadataType.Text, - name: 'type', - label: 'Type', - description: 'View type', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 'table', - }, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjg=', - }, - totalCount: 9, - }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '07c68965-1479-4e44-91ca-3e45784e9337', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'viewField', - namePlural: 'viewFields', - labelSingular: 'View Field', - labelPlural: 'View Fields', - description: '(System) View Fields', - icon: 'IconTag', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'e73c3bd2-3c2e-48dc-92b9-6e217ff27c05', - type: FieldMetadataType.Number, - name: 'size', - label: 'Size', - description: 'View Field size', - icon: 'IconEye', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 0, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '9e066f59-5fbb-451b-9788-0f8560f224c9', - type: FieldMetadataType.Uuid, - name: 'fieldMetadataId', - label: 'Field Metadata Id', - description: 'View Field target field', - icon: 'IconTag', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '1034c249-d94a-40d8-a28c-966fd3c1a2fc', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'b5ec1333-8f24-4f75-a603-147b98eb9ce3', - type: FieldMetadataType.Number, - name: 'position', - label: 'Position', - description: 'View Field position', - icon: 'IconList', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 0, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '3160b24b-37b9-4072-89e0-1d189b7089c7', - type: FieldMetadataType.Boolean, - name: 'isVisible', - label: 'Visible', - description: 'View Field visibility', - icon: 'IconEye', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: true, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '7c7866c9-4bf0-4f3b-89b6-5b889858a895', - type: FieldMetadataType.Relation, - name: 'view', - label: 'View', - description: 'View Field related view', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: { - options: [], - __typename: 'relation', - id: '1ba54f4e-6e09-40a8-bc02-65b5ece7dafc', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '98ee2e85-7510-49f9-848e-c1a21acdc664', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'view', - namePlural: 'views', - isSystem: true, - }, - fromFieldMetadataId: '58aa8432-7109-42b2-8b85-7745fef42b9e', - }, - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'f033cd69-d43f-42d0-bdd8-7000dd97fb86', - type: FieldMetadataType.Uuid, - name: 'viewId', - label: 'View id (foreign key)', - description: 'View Field related view id foreign key', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '590769a6-fd78-4b38-99b7-317ee231e002', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '4ecfdfa2-14bb-44f0-9557-052b3a350c33', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjg=', - }, - totalCount: 9, - }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '0591699b-2304-4f81-8c32-543693c5ae4e', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'viewSort', - namePlural: 'viewSorts', - labelSingular: 'View Sort', - labelPlural: 'View Sorts', - description: '(System) View Sorts', - icon: 'IconArrowsSort', - isCustom: false, - isActive: true, - isSystem: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'a6e7a588-4f86-4d68-ab71-2c7bf1833c40', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '281526dd-aa6a-4419-8ee9-ae643f481bf5', - type: FieldMetadataType.Text, - name: 'direction', - label: 'Direction', - description: 'View Sort direction', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - value: 'asc', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '08ff332d-72d6-4dc8-a466-bdc396a948cd', - type: FieldMetadataType.Uuid, - name: 'viewId', - label: 'View id (foreign key)', - description: 'View Sort related view id foreign key', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'a823ec90-fbc1-4be7-803b-5d79937e2278', - type: FieldMetadataType.Uuid, - name: 'fieldMetadataId', - label: 'Field Metadata Id', - description: 'View Sort target field', - icon: 'IconTag', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '22f8022c-809a-4e7e-8e15-155e5ae5a40c', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: 'now', - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: '481db089-dd64-4acd-b514-e627f134c8ee', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: null, - options: [], - defaultValue: { - type: FieldMetadataType.Uuid, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - id: 'bff11820-ffa2-4283-80b3-3777583f6f97', - type: FieldMetadataType.Relation, - name: 'view', - label: 'View', - description: 'View Sort related view', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-15T15:29:39.070Z', - updatedAt: '2023-12-15T15:29:39.070Z', - fromRelationMetadata: null, - toRelationMetadata: { - options: [], - __typename: 'relation', - id: '22a37761-f528-4a9b-8194-1fed1df69019', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - __typename: 'object', - id: '98ee2e85-7510-49f9-848e-c1a21acdc664', - dataSourceId: 'cabbcaa6-05d6-41f4-920f-9144172a4f08', - nameSingular: 'view', - namePlural: 'views', - isSystem: true, - }, - fromFieldMetadataId: 'bdbecafb-972e-43f4-9296-c5a59bad449d', - }, - defaultValue: null, - }, - }, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjY=', - }, - totalCount: 7, - }, - }, - }, - mockedWebhooksMetadata, - mockedPeopleMetadata, - mockedCompaniesMetadata, - mockedActivityTargetsMetadata, - mockedActivitiesMetadata, - mockedFavoritesMetadata, - mockedWorkspaceMembersMetadata, - mockedOpportunitiesMetadata, - mockedAPIKeysMetadata, - mockedConnectedAccountsMetadata, - mockedMessageChannelsMetadata, - mockedWebhooksMetadata, - mockedCalendarEventsMetadata, - mockedAttachmentsMetadata, - mockedMessageParticipantsMetadata, - mockedCustomMetadata, - ], - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjk=', - }, - totalCount: 19, -}; +export const mockedOpportunityObjectMetadataItem = + mockedObjectMetadataItems?.find( + (object) => object.nameSingular === 'opportunity', + ) as ObjectMetadataItem; diff --git a/packages/twenty-front/src/testing/mock-data/users.ts b/packages/twenty-front/src/testing/mock-data/users.ts index 83b51c55fc..f3e1238f12 100644 --- a/packages/twenty-front/src/testing/mock-data/users.ts +++ b/packages/twenty-front/src/testing/mock-data/users.ts @@ -14,6 +14,7 @@ type MockedUser = Pick< workspaceMember: WorkspaceMember | null; locale: string; defaultWorkspace: Workspace; + workspaces: Array<{ workspace: Workspace }>; }; export const avatarUrl = @@ -30,12 +31,39 @@ export const mockDefaultWorkspace: Workspace = { allowImpersonation: true, subscriptionStatus: 'active', activationStatus: 'active', - featureFlags: [], + featureFlags: [ + { + id: '1492de61-5018-4368-8923-4f1eeaf988c4', + key: 'IS_AIRTABLE_INTEGRATION_ENABLED', + value: true, + workspaceId: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6w', + }, + { + id: '1492de61-5018-4368-8923-4f1eeaf988c5', + key: 'IS_POSTGRESQL_INTEGRATION_ENABLED', + value: true, + workspaceId: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6w', + }, + { + id: '1492de61-5018-4368-8923-4f1eeaf988c6', + key: 'IS_CALENDER_ENABLED', + value: true, + workspaceId: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6w', + }, + ], createdAt: '2023-04-26T10:23:42.33625+00:00', updatedAt: '2023-04-26T10:23:42.33625+00:00', + currentCacheVersion: '1', + currentBillingSubscription: { + __typename: 'BillingSubscription', + id: '7efbc3f7-6e5e-4128-957e-8d86808cdf6a', + interval: 'month', + status: 'active', + }, }; export const mockedWorkspaceMemberData: WorkspaceMember = { + __typename: 'WorkspaceMember', id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', colorScheme: 'Light', avatarUrl, @@ -63,6 +91,7 @@ export const mockedUsersData: Array = [ workspaceMember: mockedWorkspaceMemberData, defaultWorkspace: mockDefaultWorkspace, locale: 'en', + workspaces: [{ workspace: mockDefaultWorkspace }], }, { id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6c', @@ -84,6 +113,7 @@ export const mockedUsersData: Array = [ }, defaultWorkspace: mockDefaultWorkspace, locale: 'en', + workspaces: [{ workspace: mockDefaultWorkspace }], }, ]; @@ -109,6 +139,7 @@ export const mockedOnboardingUsersData: Array = [ }, defaultWorkspace: mockDefaultWorkspace, locale: 'en', + workspaces: [{ workspace: mockDefaultWorkspace }], }, { id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6d', @@ -123,5 +154,6 @@ export const mockedOnboardingUsersData: Array = [ activationStatus: 'inactive', }, locale: 'en', + workspaces: [{ workspace: mockDefaultWorkspace }], }, ];