diff --git a/package.json b/package.json index ac7ff68ae5..1d10ba9850 100644 --- a/package.json +++ b/package.json @@ -131,6 +131,7 @@ "lodash.upperfirst": "^4.3.1", "luxon": "^3.3.0", "microdiff": "^1.3.2", + "moize": "^6.1.6", "nest-commander": "^3.12.0", "next": "14.0.4", "next-mdx-remote": "^4.4.1", diff --git a/packages/twenty-front/.storybook/preview.tsx b/packages/twenty-front/.storybook/preview.tsx index d32e374829..f49ed56c58 100644 --- a/packages/twenty-front/.storybook/preview.tsx +++ b/packages/twenty-front/.storybook/preview.tsx @@ -3,7 +3,7 @@ import { ThemeProvider } from '@emotion/react'; import { Preview } from '@storybook/react'; import { initialize, mswDecorator } from 'msw-storybook-addon'; import { useDarkMode } from 'storybook-dark-mode'; -import { THEME_DARK, THEME_LIGHT } from 'twenty-ui'; +import { THEME_DARK, THEME_LIGHT, ThemeContextProvider } from 'twenty-ui'; import { RootDecorator } from '../src/testing/decorators/RootDecorator'; import { mockedUserJWT } from '../src/testing/mock-data/jwt'; @@ -39,7 +39,9 @@ const preview: Preview = { return ( - + + + ); }, diff --git a/packages/twenty-front/src/modules/activities/emails/components/EmailThreadPreview.tsx b/packages/twenty-front/src/modules/activities/emails/components/EmailThreadPreview.tsx index e412f4cd3f..b9daf483a2 100644 --- a/packages/twenty-front/src/modules/activities/emails/components/EmailThreadPreview.tsx +++ b/packages/twenty-front/src/modules/activities/emails/components/EmailThreadPreview.tsx @@ -9,7 +9,7 @@ import { emailThreadIdWhenEmailThreadWasClosedState } from '@/activities/emails/ import { CardContent } from '@/ui/layout/card/components/CardContent'; import { useRightDrawer } from '@/ui/layout/right-drawer/hooks/useRightDrawer'; import { MessageChannelVisibility, TimelineThread } from '~/generated/graphql'; -import { formatToHumanReadableDate } from '~/utils'; +import { formatToHumanReadableDate } from '~/utils/date-utils'; import { getImageAbsoluteURIOrBase64 } from '~/utils/image/getImageAbsoluteURIOrBase64'; const StyledCardContent = styled(CardContent)<{ diff --git a/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx b/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx index 30485c7f46..68cd89335c 100644 --- a/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx +++ b/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx @@ -14,7 +14,7 @@ import { GenericFieldContextType, } from '@/object-record/record-field/contexts/FieldContext'; import { REACT_APP_SERVER_BASE_URL } from '~/config'; -import { formatToHumanReadableDate } from '~/utils'; +import { formatToHumanReadableDate } from '~/utils/date-utils'; const StyledRow = styled.div` align-items: center; diff --git a/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx b/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx index 1ce66e1ecf..82c6c76064 100644 --- a/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx +++ b/packages/twenty-front/src/modules/command-menu/components/__stories__/CommandMenu.stories.tsx @@ -13,6 +13,8 @@ import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWith import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; +import { getCompaniesMock } from '~/testing/mock-data/companies'; +import { getPeopleMock } from '~/testing/mock-data/people'; import { mockDefaultWorkspace, mockedWorkspaceMemberData, @@ -21,6 +23,9 @@ import { sleep } from '~/testing/sleep'; import { CommandMenu } from '../CommandMenu'; +const peopleMock = getPeopleMock(); +const companiesMock = getCompaniesMock(); + const openTimeout = 50; const meta: Meta = { @@ -94,8 +99,12 @@ export const MatchingPersonCompanyActivityCreateNavigate: Story = { const searchInput = await canvas.findByPlaceholderText('Search'); await sleep(openTimeout); await userEvent.type(searchInput, 'n'); - expect(await canvas.findByText('Alexandre Prot')).toBeInTheDocument(); - expect(await canvas.findByText('Airbnb')).toBeInTheDocument(); + expect( + await canvas.findByText( + peopleMock[0].name.firstName + ' ' + peopleMock[0].name.lastName, + ), + ).toBeInTheDocument(); + expect(await canvas.findByText(companiesMock[0].name)).toBeInTheDocument(); expect(await canvas.findByText('My very first note')).toBeInTheDocument(); expect(await canvas.findByText('Create Note')).toBeInTheDocument(); expect(await canvas.findByText('Go to Companies')).toBeInTheDocument(); @@ -119,7 +128,11 @@ export const AtleastMatchingOnePerson: Story = { const searchInput = await canvas.findByPlaceholderText('Search'); await sleep(openTimeout); await userEvent.type(searchInput, 'alex'); - expect(await canvas.findByText('Alexandre Prot')).toBeInTheDocument(); + expect( + await canvas.findByText( + peopleMock[0].name.firstName + ' ' + peopleMock[0].name.lastName, + ), + ).toBeInTheDocument(); }, }; diff --git a/packages/twenty-front/src/modules/object-record/cache/utils/__tests__/getRecordNodeFromRecord.test.ts b/packages/twenty-front/src/modules/object-record/cache/utils/__tests__/getRecordNodeFromRecord.test.ts index 43267e148f..219d05f854 100644 --- a/packages/twenty-front/src/modules/object-record/cache/utils/__tests__/getRecordNodeFromRecord.test.ts +++ b/packages/twenty-front/src/modules/object-record/cache/utils/__tests__/getRecordNodeFromRecord.test.ts @@ -3,10 +3,12 @@ import { mockedObjectMetadataItems, mockedPersonObjectMetadataItem, } from '~/testing/mock-data/metadata'; -import { mockedPeopleData } from '~/testing/mock-data/people'; +import { getPeopleMock } from '~/testing/mock-data/people'; import { getRecordNodeFromRecord } from '../getRecordNodeFromRecord'; +const peopleMock = getPeopleMock(); + describe('getRecordNodeFromRecord', () => { it('computes relation records cache references by default', () => { // Given @@ -19,7 +21,7 @@ describe('getRecordNodeFromRecord', () => { name: true, company: true, }; - const record = mockedPeopleData[0]; + const record = peopleMock[0]; // When const result = getRecordNodeFromRecord({ @@ -33,12 +35,12 @@ describe('getRecordNodeFromRecord', () => { expect(result).toEqual({ __typename: 'Person', company: { - __ref: 'Company:5c21e19e-e049-4393-8c09-3e3f8fb09ecb', + __ref: `Company:${record.company.id}`, }, name: { __typename: 'FullName', - firstName: 'Alexandre', - lastName: 'Prot', + firstName: record.name.firstName, + lastName: record.name.lastName, }, }); }); @@ -54,7 +56,7 @@ describe('getRecordNodeFromRecord', () => { name: true, company: true, }; - const record = mockedPeopleData[0]; + const record = peopleMock[0]; const computeReferences = false; // When @@ -72,8 +74,8 @@ describe('getRecordNodeFromRecord', () => { company: record.company, name: { __typename: 'FullName', - firstName: 'Alexandre', - lastName: 'Prot', + firstName: record.name.firstName, + lastName: record.name.lastName, }, }); }); diff --git a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindDuplicateRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindDuplicateRecords.ts index f3b8915a42..6cc35d5070 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindDuplicateRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindDuplicateRecords.ts @@ -1,5 +1,7 @@ import { gql } from '@apollo/client'; -import { mockedPeopleData } from '~/testing/mock-data/people'; +import { getPeopleMock } from '~/testing/mock-data/people'; + +const peopleMock = getPeopleMock(); export const query = gql` query FindDuplicatePerson($id: ID!) { @@ -49,11 +51,11 @@ export const responseData = { personDuplicates: { edges: [ { - node: { ...mockedPeopleData[0], updatedAt: '' }, + node: { ...peopleMock[0], updatedAt: '' }, cursor: 'cursor1', }, { - node: { ...mockedPeopleData[1], updatedAt: '' }, + node: { ...peopleMock[1], updatedAt: '' }, cursor: 'cursor2', }, ], diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/AddressFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/AddressFieldDisplay.tsx index 5980529004..2f3162517b 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/AddressFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/AddressFieldDisplay.tsx @@ -1,8 +1,10 @@ -import { useAddressField } from '@/object-record/record-field/meta-types/hooks/useAddressField'; +import { isNonEmptyString } from '@sniptt/guards'; + +import { useAddressFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useAddressFieldDisplay'; import { TextDisplay } from '@/ui/field/display/components/TextDisplay'; export const AddressFieldDisplay = () => { - const { fieldValue } = useAddressField(); + const { fieldValue } = useAddressFieldDisplay(); const content = [ fieldValue?.addressStreet1, @@ -10,7 +12,7 @@ export const AddressFieldDisplay = () => { fieldValue?.addressCity, fieldValue?.addressCountry, ] - .filter(Boolean) + .filter(isNonEmptyString) .join(', '); return ; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/BooleanFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/BooleanFieldDisplay.tsx index 5c8dcac5e8..6e04320055 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/BooleanFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/BooleanFieldDisplay.tsx @@ -1,8 +1,8 @@ -import { useBooleanField } from '@/object-record/record-field/meta-types/hooks/useBooleanField'; +import { useBooleanFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useBooleanFieldDisplay'; import { BooleanDisplay } from '@/ui/field/display/components/BooleanDisplay'; export const BooleanFieldDisplay = () => { - const { fieldValue } = useBooleanField(); + const { fieldValue } = useBooleanFieldDisplay(); return ; }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/CurrencyFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/CurrencyFieldDisplay.tsx index 5a17caefc7..bbf110d165 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/CurrencyFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/CurrencyFieldDisplay.tsx @@ -1,9 +1,8 @@ +import { useCurrencyFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useCurrencyFieldDisplay'; import { CurrencyDisplay } from '@/ui/field/display/components/CurrencyDisplay'; -import { useCurrencyField } from '../../hooks/useCurrencyField'; - export const CurrencyFieldDisplay = () => { - const { fieldValue } = useCurrencyField(); + const { fieldValue } = useCurrencyFieldDisplay(); return ; }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/DateFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/DateFieldDisplay.tsx index 8b6cd134f5..05b88fd267 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/DateFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/DateFieldDisplay.tsx @@ -1,9 +1,8 @@ +import { useDateFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useDateFieldDisplay'; import { DateDisplay } from '@/ui/field/display/components/DateDisplay'; -import { useDateField } from '../../hooks/useDateField'; - export const DateFieldDisplay = () => { - const { fieldValue } = useDateField(); + const { fieldValue } = useDateFieldDisplay(); return ; }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/DateTimeFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/DateTimeFieldDisplay.tsx index 54f8d0ecd5..03ffc92d39 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/DateTimeFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/DateTimeFieldDisplay.tsx @@ -1,9 +1,8 @@ +import { useDateTimeFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useDateTimeFieldDisplay'; import { DateTimeDisplay } from '@/ui/field/display/components/DateTimeDisplay'; -import { useDateTimeField } from '../../hooks/useDateTimeField'; - export const DateTimeFieldDisplay = () => { - const { fieldValue } = useDateTimeField(); + const { fieldValue } = useDateTimeFieldDisplay(); return ; }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/EmailFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/EmailFieldDisplay.tsx index cd32826aff..60a7caa6e3 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/EmailFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/EmailFieldDisplay.tsx @@ -1,9 +1,8 @@ +import { useEmailFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useEmailFieldDisplay'; import { EmailDisplay } from '@/ui/field/display/components/EmailDisplay'; -import { useEmailField } from '../../hooks/useEmailField'; - export const EmailFieldDisplay = () => { - const { fieldValue } = useEmailField(); + const { fieldValue } = useEmailFieldDisplay(); return ; }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/FullNameFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/FullNameFieldDisplay.tsx index e98d43ea72..bf997feeaa 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/FullNameFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/FullNameFieldDisplay.tsx @@ -1,11 +1,13 @@ -import { useFullNameField } from '@/object-record/record-field/meta-types/hooks/useFullNameField'; +import { isNonEmptyString } from '@sniptt/guards'; + +import { useFullNameFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useFullNameFieldDisplay'; import { TextDisplay } from '@/ui/field/display/components/TextDisplay'; export const FullNameFieldDisplay = () => { - const { fieldValue } = useFullNameField(); + const { fieldValue } = useFullNameFieldDisplay(); - const content = [fieldValue.firstName, fieldValue.lastName] - .filter(Boolean) + const content = [fieldValue?.firstName, fieldValue?.lastName] + .filter(isNonEmptyString) .join(' '); return ; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/JsonFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/JsonFieldDisplay.tsx index ed06e8736d..ab2dde8d72 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/JsonFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/JsonFieldDisplay.tsx @@ -1,19 +1,15 @@ -import { useJsonField } from '@/object-record/record-field/meta-types/hooks/useJsonField'; -import { isFieldRawJsonValue } from '@/object-record/record-field/types/guards/isFieldRawJsonValue'; +import { useJsonFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useJsonFieldDisplay'; import { JsonDisplay } from '@/ui/field/display/components/JsonDisplay'; import { isDefined } from '~/utils/isDefined'; export const JsonFieldDisplay = () => { - const { fieldValue, maxWidth } = useJsonField(); + const { fieldValue, maxWidth } = useJsonFieldDisplay(); - return ( - - ); + if (!isDefined(fieldValue)) { + return <>; + } + + const value = JSON.stringify(fieldValue); + + return ; }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/LinkFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/LinkFieldDisplay.tsx index e0eeb8ac40..bb1989852f 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/LinkFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/LinkFieldDisplay.tsx @@ -1,9 +1,8 @@ +import { useLinkFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useLinkFieldDisplay'; import { LinkDisplay } from '@/ui/field/display/components/LinkDisplay'; -import { useLinkField } from '../../hooks/useLinkField'; - export const LinkFieldDisplay = () => { - const { fieldValue } = useLinkField(); + const { fieldValue } = useLinkFieldDisplay(); return ; }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/LinksFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/LinksFieldDisplay.tsx index 4b170b5a2e..4d3ecbe3e8 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/LinksFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/LinksFieldDisplay.tsx @@ -1,9 +1,9 @@ import { useFieldFocus } from '@/object-record/record-field/hooks/useFieldFocus'; -import { useLinksField } from '@/object-record/record-field/meta-types/hooks/useLinksField'; +import { useLinksFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useLinksFieldDisplay'; import { LinksDisplay } from '@/ui/field/display/components/LinksDisplay'; export const LinksFieldDisplay = () => { - const { fieldValue } = useLinksField(); + const { fieldValue } = useLinksFieldDisplay(); const { isFocused } = useFieldFocus(); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/MultiSelectFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/MultiSelectFieldDisplay.tsx index 8962d1639a..7fcc1f4eba 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/MultiSelectFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/MultiSelectFieldDisplay.tsx @@ -1,23 +1,39 @@ -import { Tag } from 'twenty-ui'; +import { styled } from '@linaria/react'; +import { Tag, THEME_COMMON } from 'twenty-ui'; import { useFieldFocus } from '@/object-record/record-field/hooks/useFieldFocus'; -import { useMultiSelectField } from '@/object-record/record-field/meta-types/hooks/useMultiSelectField'; +import { useMultiSelectFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useMultiSelectFieldDisplay'; import { ExpandableList } from '@/ui/layout/expandable-list/components/ExpandableList'; +const spacing1 = THEME_COMMON.spacing(1); + +const StyledContainer = styled.div` + align-items: center; + display: flex; + gap: ${spacing1}; + justify-content: flex-start; + + max-width: 100%; + + overflow: hidden; + + width: 100%; +`; + export const MultiSelectFieldDisplay = () => { - const { fieldValues, fieldDefinition } = useMultiSelectField(); + const { fieldValue, fieldDefinition } = useMultiSelectFieldDisplay(); const { isFocused } = useFieldFocus(); - const selectedOptions = fieldValues + const selectedOptions = fieldValue ? fieldDefinition.metadata.options?.filter((option) => - fieldValues.includes(option.value), + fieldValue.includes(option.value), ) : []; if (!selectedOptions) return null; - return ( + return isFocused ? ( {selectedOptions.map((selectedOption, index) => ( { /> ))} + ) : ( + + {selectedOptions.map((selectedOption, index) => ( + + ))} + ); }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/NumberFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/NumberFieldDisplay.tsx index 30aa598889..087a4117c4 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/NumberFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/NumberFieldDisplay.tsx @@ -1,9 +1,8 @@ +import { useNumberFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useNumberFieldDisplay'; import { NumberDisplay } from '@/ui/field/display/components/NumberDisplay'; -import { useNumberField } from '../../hooks/useNumberField'; - export const NumberFieldDisplay = () => { - const { fieldValue } = useNumberField(); + const { fieldValue } = useNumberFieldDisplay(); return ; }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/SelectFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/SelectFieldDisplay.tsx index 403fb268fa..d4492cac05 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/SelectFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/SelectFieldDisplay.tsx @@ -1,17 +1,24 @@ import { Tag } from 'twenty-ui'; -import { useSelectField } from '../../hooks/useSelectField'; +import { useSelectFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useSelectFieldDisplay'; +import { isDefined } from '~/utils/isDefined'; export const SelectFieldDisplay = () => { - const { fieldValue, fieldDefinition } = useSelectField(); + const { fieldValue, fieldDefinition } = useSelectFieldDisplay(); const selectedOption = fieldDefinition.metadata.options?.find( (option) => option.value === fieldValue, ); - return selectedOption ? ( - - ) : ( - <> + if (!isDefined(selectedOption)) { + return <>; + } + + return ( + ); }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/TextFieldDisplay.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/TextFieldDisplay.tsx index a68f70404d..104216c5ce 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/TextFieldDisplay.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/TextFieldDisplay.tsx @@ -1,9 +1,8 @@ +import { useTextFieldDisplay } from '@/object-record/record-field/meta-types/hooks/useTextFieldDisplay'; import { TextDisplay } from '@/ui/field/display/components/TextDisplay'; -import { useTextField } from '../../hooks/useTextField'; - export const TextFieldDisplay = () => { - const { fieldValue, maxWidth } = useTextField(); + const { fieldValue, maxWidth } = useTextFieldDisplay(); return ; }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/DateTimeFieldDisplay.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/DateTimeFieldDisplay.stories.tsx deleted file mode 100644 index 73fb54ae39..0000000000 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/DateTimeFieldDisplay.stories.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import { useEffect } from 'react'; -import { Meta, StoryObj } from '@storybook/react'; -import { ComponentDecorator } from 'twenty-ui'; - -import { FieldMetadataType } from '~/generated/graphql'; - -import { FieldContext } from '../../../../contexts/FieldContext'; -import { useDateTimeField } from '../../../hooks/useDateTimeField'; -import { DateTimeFieldDisplay } from '../DateTimeFieldDisplay'; - -const formattedDate = new Date('2023-04-01'); - -const DateFieldValueSetterEffect = ({ value }: { value: string }) => { - const { setFieldValue } = useDateTimeField(); - - useEffect(() => { - setFieldValue(value); - }, [setFieldValue, value]); - - return null; -}; - -const meta: Meta = { - title: 'UI/Data/Field/Display/DateFieldDisplay', - decorators: [ - (Story, { args }) => ( - - - - - ), - ComponentDecorator, - ], - component: DateTimeFieldDisplay, - argTypes: { value: { control: 'date' } }, - args: { - value: formattedDate, - }, -}; - -export default meta; - -type Story = StoryObj; - -export const Default: Story = {}; - -export const Elipsis: Story = { - parameters: { - container: { width: 50 }, - }, -}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/EmailFieldDisplay.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/EmailFieldDisplay.stories.tsx deleted file mode 100644 index 11cc8d5b65..0000000000 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/EmailFieldDisplay.stories.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import { useEffect } from 'react'; -import { Meta, StoryObj } from '@storybook/react'; -import { ComponentDecorator } from 'twenty-ui'; - -import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; -import { useEmailField } from '@/object-record/record-field/meta-types/hooks/useEmailField'; -import { FieldMetadataType } from '~/generated/graphql'; -import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; - -import { EmailFieldDisplay } from '../EmailFieldDisplay'; - -const EmailFieldValueSetterEffect = ({ value }: { value: string }) => { - const { setFieldValue } = useEmailField(); - - useEffect(() => { - setFieldValue(value); - }, [setFieldValue, value]); - - return null; -}; - -const meta: Meta = { - title: 'UI/Data/Field/Display/EmailFieldDisplay', - decorators: [ - MemoryRouterDecorator, - (Story, { args }) => ( - - - - - ), - ComponentDecorator, - ], - component: EmailFieldDisplay, - args: { - value: 'Test@Test.test', - }, -}; - -export default meta; - -type Story = StoryObj; - -export const Default: Story = {}; - -export const Elipsis: Story = { - parameters: { - container: { width: 50 }, - }, -}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/NumberFieldDisplay.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/NumberFieldDisplay.stories.tsx deleted file mode 100644 index 9d86b6a7c5..0000000000 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/NumberFieldDisplay.stories.tsx +++ /dev/null @@ -1,83 +0,0 @@ -import { useEffect } from 'react'; -import { Meta, StoryObj } from '@storybook/react'; -import { ComponentDecorator } from 'twenty-ui'; - -import { FieldMetadataType } from '~/generated/graphql'; - -import { FieldContext } from '../../../../contexts/FieldContext'; -import { useNumberField } from '../../../hooks/useNumberField'; -import { NumberFieldDisplay } from '../NumberFieldDisplay'; - -const NumberFieldValueSetterEffect = ({ value }: { value: number }) => { - const { setFieldValue } = useNumberField(); - - useEffect(() => { - setFieldValue(value); - }, [setFieldValue, value]); - - return null; -}; - -const meta: Meta = { - title: 'UI/Data/Field/Display/NumberFieldDisplay', - decorators: [ - (Story, { args }) => ( - [() => undefined, {}], - }} - > - - - - ), - ComponentDecorator, - ], - component: NumberFieldDisplay, -}; - -export default meta; - -type Story = StoryObj; - -export const Default: Story = { - args: { - value: 100, - }, -}; - -export const Elipsis: Story = { - args: { - value: 1e100, - }, - parameters: { - container: { width: 100 }, - }, -}; - -export const Negative: Story = { - args: { - value: -1000, - }, -}; - -export const Float: Story = { - args: { - value: 1.357802, - }, -}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/AddressFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/AddressFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..6c138c7954 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/AddressFieldDisplay.perf.stories.tsx @@ -0,0 +1,54 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { AddressFieldDisplay } from '@/object-record/record-field/meta-types/display/components/AddressFieldDisplay'; +import { FieldAddressValue } from '@/object-record/record-field/types/FieldMetadata'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/AddressFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'testAddress'), + ComponentDecorator, + ], + component: AddressFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Elipsis: Story = { + parameters: { + container: { width: 100 }, + }, + decorators: [ + getFieldDecorator('person', 'testAddress', { + addressCity: + 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam', + addressCountry: 'United States', + addressStreet1: '1234 Elm Street', + addressStreet2: 'Apt 1234', + addressLat: 0, + addressLng: 0, + addressPostcode: '12345', + addressState: 'CA', + } as FieldAddressValue), + ], +}; + +export const Performance = getProfilingStory({ + componentName: 'AddressFieldDisplay', + averageThresholdInMs: 0.15, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/BooleanFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/BooleanFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..5c009dba9d --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/BooleanFieldDisplay.perf.stories.tsx @@ -0,0 +1,34 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { BooleanFieldDisplay } from '@/object-record/record-field/meta-types/display/components/BooleanFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/BooleanFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'testBoolean'), + ComponentDecorator, + ], + component: BooleanFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Performance = getProfilingStory({ + componentName: 'BooleanFieldDisplay', + averageThresholdInMs: 0.15, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/CurrencyFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/CurrencyFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..476e621635 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/CurrencyFieldDisplay.perf.stories.tsx @@ -0,0 +1,64 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { CurrencyFieldDisplay } from '@/object-record/record-field/meta-types/display/components/CurrencyFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/CurrencyFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('company', 'annualRecurringRevenue'), + ComponentDecorator, + ], + component: CurrencyFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Millions: Story = { + decorators: [ + getFieldDecorator('company', 'annualRecurringRevenue', { + __typename: 'Currency', + amountMicros: 18200000 * 1000000, + currencyCode: 'EUR', + }), + ], +}; + +export const Billions: Story = { + decorators: [ + getFieldDecorator('company', 'annualRecurringRevenue', { + __typename: 'Currency', + amountMicros: 3230000000 * 1000000, + currencyCode: 'USD', + }), + ], +}; + +export const Bazillions: Story = { + decorators: [ + getFieldDecorator('company', 'annualRecurringRevenue', { + __typename: 'Currency', + amountMicros: 1e100, + currencyCode: 'USD', + }), + ], +}; + +export const Performance = getProfilingStory({ + componentName: 'CurrencyFieldDisplay', + averageThresholdInMs: 0.2, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/DateFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/DateFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..b3ab3a732c --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/DateFieldDisplay.perf.stories.tsx @@ -0,0 +1,40 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { DateFieldDisplay } from '@/object-record/record-field/meta-types/display/components/DateFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/DateFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'createdAt'), + ComponentDecorator, + ], + component: DateFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Elipsis: Story = { + parameters: { + container: { width: 50 }, + }, +}; + +export const Performance = getProfilingStory({ + componentName: 'DateFieldDisplay', + averageThresholdInMs: 0.1, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/DateTimeFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/DateTimeFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..f974e587ab --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/DateTimeFieldDisplay.perf.stories.tsx @@ -0,0 +1,40 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { DateTimeFieldDisplay } from '@/object-record/record-field/meta-types/display/components/DateTimeFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/DateTimeFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'createdAt'), + ComponentDecorator, + ], + component: DateTimeFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Elipsis: Story = { + parameters: { + container: { width: 50 }, + }, +}; + +export const Performance = getProfilingStory({ + componentName: 'DateTimeFieldDisplay', + averageThresholdInMs: 0.1, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/EmailFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/EmailFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..b901caa9c1 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/EmailFieldDisplay.perf.stories.tsx @@ -0,0 +1,47 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { EmailFieldDisplay } from '@/object-record/record-field/meta-types/display/components/EmailFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/EmailFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'email'), + ComponentDecorator, + ], + component: EmailFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Elipsis: Story = { + parameters: { + container: { width: 50 }, + }, + decorators: [ + getFieldDecorator( + 'person', + 'email', + 'asdasdasdaksjdhkajshdkajhasmdkamskdsd@asdkjhaksjdhaksjd.com', + ), + ], +}; + +export const Performance = getProfilingStory({ + componentName: 'EmailFieldDisplay', + averageThresholdInMs: 0.5, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/FullNameFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/FullNameFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..4b79852897 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/FullNameFieldDisplay.perf.stories.tsx @@ -0,0 +1,40 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { FullNameFieldDisplay } from '@/object-record/record-field/meta-types/display/components/FullNameFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/FullNameFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'name'), + ComponentDecorator, + ], + component: FullNameFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Elipsis: Story = { + parameters: { + container: { width: 50 }, + }, +}; + +export const Performance = getProfilingStory({ + componentName: 'FullNameFieldDisplay', + averageThresholdInMs: 0.5, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/JsonFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/JsonFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..ff444b4dc1 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/JsonFieldDisplay.perf.stories.tsx @@ -0,0 +1,40 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { JsonFieldDisplay } from '@/object-record/record-field/meta-types/display/components/JsonFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/JsonFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'testJson'), + ComponentDecorator, + ], + component: JsonFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Elipsis: Story = { + parameters: { + container: { width: 50 }, + }, +}; + +export const Performance = getProfilingStory({ + componentName: 'JsonFieldDisplay', + averageThresholdInMs: 0.1, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/LinkFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/LinkFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..d169a4e3ce --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/LinkFieldDisplay.perf.stories.tsx @@ -0,0 +1,34 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { LinkFieldDisplay } from '@/object-record/record-field/meta-types/display/components/LinkFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/LinkFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'testLink'), + ComponentDecorator, + ], + component: LinkFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Performance = getProfilingStory({ + componentName: 'LinkFieldDisplay', + averageThresholdInMs: 0.5, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/LinksFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/LinksFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..0e7776f035 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/LinksFieldDisplay.perf.stories.tsx @@ -0,0 +1,69 @@ +import { useContext, useEffect } from 'react'; +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { FieldFocusContext } from '@/object-record/record-field/contexts/FieldFocusContext'; +import { FieldFocusContextProvider } from '@/object-record/record-field/contexts/FieldFocusContextProvider'; +import { LinksFieldDisplay } from '@/object-record/record-field/meta-types/display/components/LinksFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const FieldFocusEffect = () => { + const { setIsFocused } = useContext(FieldFocusContext); + + useEffect(() => { + setIsFocused(true); + }, [setIsFocused]); + + return <>; +}; + +const meta: Meta = { + title: 'UI/Data/Field/Display/LinksFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'testLinks'), + ComponentDecorator, + ], + component: LinksFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const ExpandableList: Story = { + decorators: [ + (Story) => { + return ( + + + + + ); + }, + ], + parameters: { + container: { width: 100 }, + }, +}; + +export const Elipsis: Story = { + parameters: { + container: { width: 50 }, + }, +}; + +export const Performance = getProfilingStory({ + componentName: 'LinksFieldDisplay', + averageThresholdInMs: 0.5, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/MultiSelectFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/MultiSelectFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..34ab051b24 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/MultiSelectFieldDisplay.perf.stories.tsx @@ -0,0 +1,69 @@ +import { useContext, useEffect } from 'react'; +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { FieldFocusContext } from '@/object-record/record-field/contexts/FieldFocusContext'; +import { FieldFocusContextProvider } from '@/object-record/record-field/contexts/FieldFocusContextProvider'; +import { MultiSelectFieldDisplay } from '@/object-record/record-field/meta-types/display/components/MultiSelectFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const FieldFocusEffect = () => { + const { setIsFocused } = useContext(FieldFocusContext); + + useEffect(() => { + setIsFocused(true); + }, [setIsFocused]); + + return <>; +}; + +const meta: Meta = { + title: 'UI/Data/Field/Display/MultiSelectFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'testMultiSelect'), + ComponentDecorator, + ], + component: MultiSelectFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const ExpandableList: Story = { + decorators: [ + (Story) => { + return ( + + + + + ); + }, + ], + parameters: { + container: { width: 130 }, + }, +}; + +export const Elipsis: Story = { + parameters: { + container: { width: 50 }, + }, +}; + +export const Performance = getProfilingStory({ + componentName: 'MultiSelectFieldDisplay', + averageThresholdInMs: 0.2, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/NumberFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/NumberFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..89263a0b8d --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/NumberFieldDisplay.perf.stories.tsx @@ -0,0 +1,53 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { NumberFieldDisplay } from '@/object-record/record-field/meta-types/display/components/NumberFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/NumberFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('company', 'employees'), + ComponentDecorator, + ], + component: NumberFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = { + args: { + value: 100, + }, +}; + +export const Elipsis: Story = { + decorators: [getFieldDecorator('company', 'employees', 1e100)], + parameters: { + container: { width: 100 }, + }, +}; + +export const Negative: Story = { + decorators: [getFieldDecorator('company', 'employees', -1000)], +}; + +export const Float: Story = { + decorators: [getFieldDecorator('company', 'employees', 3.14159)], +}; + +export const Performance = getProfilingStory({ + componentName: 'NumberFieldDisplay', + averageThresholdInMs: 0.5, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/PhoneFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/PhoneFieldDisplay.perf.stories.tsx index ccccf51695..fed4bbe247 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/PhoneFieldDisplay.perf.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/PhoneFieldDisplay.perf.stories.tsx @@ -33,9 +33,6 @@ export const Elipsis: Story = { }; export const WrongNumber: Story = { - parameters: { - container: { width: 50 }, - }, decorators: [getFieldDecorator('person', 'phone', 'sdklaskdj')], }; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/SelectFieldDisplay.perf.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/SelectFieldDisplay.perf.stories.tsx new file mode 100644 index 0000000000..5d92422c70 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/SelectFieldDisplay.perf.stories.tsx @@ -0,0 +1,40 @@ +import { Meta, StoryObj } from '@storybook/react'; +import { ComponentDecorator } from 'twenty-ui'; + +import { SelectFieldDisplay } from '@/object-record/record-field/meta-types/display/components/SelectFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; + +const meta: Meta = { + title: 'UI/Data/Field/Display/SelectFieldDisplay', + decorators: [ + MemoryRouterDecorator, + getFieldDecorator('person', 'testSelect'), + ComponentDecorator, + ], + component: SelectFieldDisplay, + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, + }, +}; + +export default meta; + +type Story = StoryObj; + +export const Default: Story = {}; + +export const Elipsis: Story = { + parameters: { + container: { width: 50 }, + }, +}; + +export const Performance = getProfilingStory({ + componentName: 'SelectFieldDisplay', + averageThresholdInMs: 0.2, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/TextFieldDisplay.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/TextFieldDisplay.perf.stories.tsx similarity index 50% rename from packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/TextFieldDisplay.stories.tsx rename to packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/TextFieldDisplay.perf.stories.tsx index 6fd793f3a7..29ac8cc222 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/TextFieldDisplay.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/TextFieldDisplay.perf.stories.tsx @@ -1,54 +1,22 @@ -import { useEffect } from 'react'; import { Meta, StoryObj } from '@storybook/react'; import { ComponentDecorator } from 'twenty-ui'; -import { FieldMetadataType } from '~/generated/graphql'; - -import { FieldContext } from '../../../../contexts/FieldContext'; -import { useTextField } from '../../../hooks/useTextField'; -import { TextFieldDisplay } from '../TextFieldDisplay'; - -const TextFieldValueSetterEffect = ({ value }: { value: string }) => { - const { setFieldValue } = useTextField(); - - useEffect(() => { - setFieldValue(value); - }, [setFieldValue, value]); - - return null; -}; +import { TextFieldDisplay } from '@/object-record/record-field/meta-types/display/components/TextFieldDisplay'; +import { getFieldDecorator } from '~/testing/decorators/getFieldDecorator'; +import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorator'; +import { getProfilingStory } from '~/testing/profiling/utils/getProfilingStory'; const meta: Meta = { title: 'UI/Data/Field/Display/TextFieldDisplay', decorators: [ - (Story, { args }) => ( - - - - - ), + MemoryRouterDecorator, + getFieldDecorator('person', 'city'), ComponentDecorator, ], component: TextFieldDisplay, - args: { - value: 'Lorem ipsum', + args: {}, + parameters: { + chromatic: { disableSnapshot: true }, }, }; @@ -59,11 +27,21 @@ type Story = StoryObj; export const Default: Story = {}; export const Elipsis: Story = { - args: { - value: - 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Recusandae rerum fugiat veniam illum accusantium saepe, voluptate inventore libero doloribus doloremque distinctio blanditiis amet quis dolor a nulla? Placeat nam itaque rerum esse quidem animi, temporibus saepe debitis commodi quia eius eos minus inventore. Voluptates fugit optio sit ab consectetur ipsum, neque eius atque blanditiis. Ullam provident at porro minima, nobis vero dicta consequatur maxime laboriosam fugit repudiandae repellat tempore voluptas non voluptatibus neque aliquam ducimus doloribus ipsa? Sapiente suscipit unde modi commodi possimus doloribus eum voluptatibus, architecto laudantium, magnam, eos numquam exercitationem est maxime explicabo odio nemo qui distinctio temporibus.', - }, parameters: { container: { width: 100 }, }, + decorators: [ + getFieldDecorator( + 'person', + 'city', + 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Recusandae rerum fugiat veniam illum accusantium saepe, voluptate inventore libero doloribus doloremque distinctio blanditiis amet quis dolor a nulla? Placeat nam itaque rerum esse quidem animi, temporibus saepe debitis commodi quia eius eos minus inventore. Voluptates fugit optio sit ab consectetur ipsum, neque eius atque blanditiis. Ullam provident at porro minima, nobis vero dicta consequatur maxime laboriosam fugit repudiandae repellat tempore voluptas non voluptatibus neque aliquam ducimus doloribus ipsa? Sapiente suscipit unde modi commodi possimus doloribus eum voluptatibus, architecto laudantium, magnam, eos numquam exercitationem est maxime explicabo odio nemo qui distinctio temporibus.', + ), + ], }; + +export const Performance = getProfilingStory({ + componentName: 'TextFieldDisplay', + averageThresholdInMs: 0.5, + numberOfRuns: 50, + numberOfTestsPerRun: 100, +}); diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useAddressFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useAddressFieldDisplay.ts new file mode 100644 index 0000000000..c8cbccea38 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useAddressFieldDisplay.ts @@ -0,0 +1,22 @@ +import { useContext } from 'react'; + +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; +import { FieldAddressValue } from '../../types/FieldMetadata'; + +export const useAddressFieldDisplay = () => { + const { entityId, fieldDefinition } = useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition, + fieldValue, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useBooleanFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useBooleanFieldDisplay.ts new file mode 100644 index 0000000000..755b59ba01 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useBooleanFieldDisplay.ts @@ -0,0 +1,21 @@ +import { useContext } from 'react'; + +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; + +export const useBooleanFieldDisplay = () => { + const { entityId, fieldDefinition } = useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition, + fieldValue, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useCurrencyFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useCurrencyFieldDisplay.ts new file mode 100644 index 0000000000..fc70259cbd --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useCurrencyFieldDisplay.ts @@ -0,0 +1,22 @@ +import { useContext } from 'react'; + +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; +import { FieldCurrencyValue } from '../../types/FieldMetadata'; + +export const useCurrencyFieldDisplay = () => { + const { entityId, fieldDefinition } = useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition, + fieldValue, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useDateFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useDateFieldDisplay.ts new file mode 100644 index 0000000000..ed6abb042e --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useDateFieldDisplay.ts @@ -0,0 +1,24 @@ +import { useContext } from 'react'; + +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; + +export const useDateFieldDisplay = () => { + const { entityId, fieldDefinition, hotkeyScope, clearable } = + useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition, + fieldValue, + hotkeyScope, + clearable, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useDateTimeFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useDateTimeFieldDisplay.ts new file mode 100644 index 0000000000..c39d5e6407 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useDateTimeFieldDisplay.ts @@ -0,0 +1,24 @@ +import { useContext } from 'react'; + +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; + +export const useDateTimeFieldDisplay = () => { + const { entityId, fieldDefinition, hotkeyScope, clearable } = + useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition, + fieldValue, + hotkeyScope, + clearable, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useEmailFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useEmailFieldDisplay.ts new file mode 100644 index 0000000000..c8ccb7a735 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useEmailFieldDisplay.ts @@ -0,0 +1,22 @@ +import { useContext } from 'react'; + +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; + +export const useEmailFieldDisplay = () => { + const { entityId, fieldDefinition, hotkeyScope } = useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition, + fieldValue, + hotkeyScope, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useFullNameFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useFullNameFieldDisplay.ts new file mode 100644 index 0000000000..587a02c076 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useFullNameFieldDisplay.ts @@ -0,0 +1,22 @@ +import { useContext } from 'react'; + +import { FieldFullNameValue } from '@/object-record/record-field/types/FieldMetadata'; +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; + +export const useFullNameFieldDisplay = () => { + const { entityId, fieldDefinition } = useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition, + fieldValue, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useJsonFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useJsonFieldDisplay.ts new file mode 100644 index 0000000000..e71eba095f --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useJsonFieldDisplay.ts @@ -0,0 +1,23 @@ +import { useContext } from 'react'; + +import { FieldJsonValue } from '@/object-record/record-field/types/FieldMetadata'; +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; + +export const useJsonFieldDisplay = () => { + const { entityId, fieldDefinition, maxWidth } = useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + maxWidth, + fieldDefinition, + fieldValue, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useLinkFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useLinkFieldDisplay.ts new file mode 100644 index 0000000000..d4ca7aac37 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useLinkFieldDisplay.ts @@ -0,0 +1,21 @@ +import { useContext } from 'react'; + +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; +import { FieldLinkValue } from '../../types/FieldMetadata'; + +export const useLinkFieldDisplay = () => { + const { entityId, fieldDefinition } = useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition, + fieldValue, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useLinksFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useLinksFieldDisplay.ts new file mode 100644 index 0000000000..7727eff3a2 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useLinksFieldDisplay.ts @@ -0,0 +1,22 @@ +import { useContext } from 'react'; + +import { FieldLinksValue } from '@/object-record/record-field/types/FieldMetadata'; +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; + +export const useLinksFieldDisplay = () => { + const { entityId, fieldDefinition } = useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition, + fieldValue, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useMultiSelectFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useMultiSelectFieldDisplay.ts new file mode 100644 index 0000000000..e96f71df49 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useMultiSelectFieldDisplay.ts @@ -0,0 +1,26 @@ +import { useContext } from 'react'; + +import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; +import { FieldDefinition } from '@/object-record/record-field/types/FieldDefinition'; +import { + FieldMultiSelectMetadata, + FieldMultiSelectValue, +} from '@/object-record/record-field/types/FieldMetadata'; +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +export const useMultiSelectFieldDisplay = () => { + const { entityId, fieldDefinition } = useContext(FieldContext); + + const { fieldName } = fieldDefinition.metadata; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition: + fieldDefinition as FieldDefinition, + fieldValue, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useNumberFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useNumberFieldDisplay.ts new file mode 100644 index 0000000000..80720b43d6 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useNumberFieldDisplay.ts @@ -0,0 +1,26 @@ +import { useContext } from 'react'; + +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; +import { FieldMetadataType } from '~/generated-metadata/graphql'; + +import { FieldContext } from '../../contexts/FieldContext'; +import { assertFieldMetadata } from '../../types/guards/assertFieldMetadata'; +import { isFieldNumber } from '../../types/guards/isFieldNumber'; + +export const useNumberFieldDisplay = () => { + const { entityId, fieldDefinition, hotkeyScope } = useContext(FieldContext); + + assertFieldMetadata(FieldMetadataType.Number, isFieldNumber, fieldDefinition); + + const fieldName = fieldDefinition.metadata.fieldName; + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition, + fieldValue, + hotkeyScope, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/usePhoneFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/usePhoneFieldDisplay.ts index e96a81f3cf..d1a9067e9a 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/usePhoneFieldDisplay.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/usePhoneFieldDisplay.ts @@ -9,7 +9,10 @@ export const usePhoneFieldDisplay = () => { const fieldName = fieldDefinition.metadata.fieldName; - const fieldValue = useRecordFieldValue(entityId, fieldName); + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); return { fieldDefinition, diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useRelationFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useRelationFieldDisplay.ts index 546a6ba43c..a7af482ed7 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useRelationFieldDisplay.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useRelationFieldDisplay.ts @@ -3,6 +3,7 @@ import { isNonEmptyString } from '@sniptt/guards'; import { PreComputedChipGeneratorsContext } from '@/object-metadata/context/PreComputedChipGeneratorsContext'; import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; +import { ObjectRecord } from '@/object-record/types/ObjectRecord'; import { FIELD_EDIT_BUTTON_WIDTH } from '@/ui/field/display/constants/FieldEditButtonWidth'; import { FieldMetadataType } from '~/generated-metadata/graphql'; import { isDefined } from '~/utils/isDefined'; @@ -32,7 +33,10 @@ export const useRelationFieldDisplay = () => { const fieldName = fieldDefinition.metadata.fieldName; - const fieldValue = useRecordFieldValue(entityId, fieldName); + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); const maxWidthForField = isDefined(button) && isDefined(maxWidth) diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useSelectFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useSelectFieldDisplay.ts new file mode 100644 index 0000000000..c0a6ee7c22 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useSelectFieldDisplay.ts @@ -0,0 +1,26 @@ +import { useContext } from 'react'; + +import { FieldDefinition } from '@/object-record/record-field/types/FieldDefinition'; +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; +import { + FieldSelectMetadata, + FieldSelectValue, +} from '../../types/FieldMetadata'; + +export const useSelectFieldDisplay = () => { + const { entityId, fieldDefinition } = useContext(FieldContext); + + const { fieldName } = fieldDefinition.metadata; + + const fieldValue = useRecordFieldValue( + entityId, + fieldName, + ); + + return { + fieldDefinition: fieldDefinition as FieldDefinition, + fieldValue, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useTextFieldDisplay.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useTextFieldDisplay.ts new file mode 100644 index 0000000000..5a137e2ac0 --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/hooks/useTextFieldDisplay.ts @@ -0,0 +1,22 @@ +import { useContext } from 'react'; + +import { useRecordFieldValue } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; + +import { FieldContext } from '../../contexts/FieldContext'; + +export const useTextFieldDisplay = () => { + const { entityId, fieldDefinition, hotkeyScope, maxWidth } = + useContext(FieldContext); + + const fieldName = fieldDefinition.metadata.fieldName; + + const fieldValue = + useRecordFieldValue(entityId, fieldName) ?? ''; + + return { + maxWidth, + fieldDefinition, + fieldValue, + hotkeyScope, + }; +}; diff --git a/packages/twenty-front/src/modules/object-record/record-filter/utils/isRecordMatchingFilter.spec.ts b/packages/twenty-front/src/modules/object-record/record-filter/utils/isRecordMatchingFilter.spec.ts index c745fec8fe..5e4c21c914 100644 --- a/packages/twenty-front/src/modules/object-record/record-filter/utils/isRecordMatchingFilter.spec.ts +++ b/packages/twenty-front/src/modules/object-record/record-filter/utils/isRecordMatchingFilter.spec.ts @@ -1,20 +1,26 @@ import { RecordGqlOperationFilter } from '@/object-record/graphql/types/RecordGqlOperationFilter'; -import { mockedCompaniesData } from '~/testing/mock-data/companies'; -import { mockObjectMetadataItem } from '~/testing/mock-data/objectMetadataItems'; +import { getCompaniesMock } from '~/testing/mock-data/companies'; +import { generatedMockObjectMetadataItems } from '~/testing/mock-data/objectMetadataItems'; import { isRecordMatchingFilter } from './isRecordMatchingFilter'; +const companiesMock = getCompaniesMock(); + +const companyMockObjectMetadataItem = generatedMockObjectMetadataItems.find( + (item) => item.nameSingular === 'company', +)!; + describe('isRecordMatchingFilter', () => { describe('Empty Filters', () => { it('matches any record when no filter is provided', () => { const emptyFilter = {}; - mockedCompaniesData.forEach((company) => { + companiesMock.forEach((company) => { expect( isRecordMatchingFilter({ record: company, filter: emptyFilter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); }); @@ -26,12 +32,12 @@ describe('isRecordMatchingFilter', () => { employees: {}, }; - mockedCompaniesData.forEach((company) => { + companiesMock.forEach((company) => { expect( isRecordMatchingFilter({ record: company, filter: filterWithEmptyFields, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); }); @@ -40,12 +46,12 @@ describe('isRecordMatchingFilter', () => { it('matches any record with an empty and filter', () => { const filter = { and: [] }; - mockedCompaniesData.forEach((company) => { + companiesMock.forEach((company) => { expect( isRecordMatchingFilter({ record: company, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); }); @@ -54,12 +60,12 @@ describe('isRecordMatchingFilter', () => { it('matches any record with an empty or filter', () => { const filter = { or: [] }; - mockedCompaniesData.forEach((company) => { + companiesMock.forEach((company) => { expect( isRecordMatchingFilter({ record: company, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); }); @@ -68,12 +74,12 @@ describe('isRecordMatchingFilter', () => { it('matches any record with an empty not filter', () => { const filter = { not: {} }; - mockedCompaniesData.forEach((company) => { + companiesMock.forEach((company) => { expect( isRecordMatchingFilter({ record: company, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); }); @@ -82,92 +88,161 @@ describe('isRecordMatchingFilter', () => { describe('Simple Filters', () => { it('matches a record with a simple equality filter on name', () => { - const filter = { name: { eq: 'Airbnb' } }; + const companyMockInFilter = { + ...companiesMock[0], + }; + + const companyMockNotInFilter = { + ...companiesMock[0], + name: companyMockInFilter.name + 'Different', + }; + + const filter = { name: { eq: companyMockInFilter.name } }; expect( isRecordMatchingFilter({ - record: mockedCompaniesData[0], + record: companyMockInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); expect( isRecordMatchingFilter({ - record: mockedCompaniesData[1], + record: companyMockNotInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(false); }); it('matches a record with a simple equality filter on domainName', () => { - const filter = { domainName: { eq: 'airbnb.com' } }; + const companyMockInFilter = { + ...companiesMock[0], + }; + + const companyMockNotInFilter = { + ...companiesMock[0], + domainName: companyMockInFilter.domainName + 'Different', + }; + + const filter = { domainName: { eq: companyMockInFilter.domainName } }; expect( isRecordMatchingFilter({ - record: mockedCompaniesData[0], + record: companyMockInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); expect( isRecordMatchingFilter({ - record: mockedCompaniesData[1], + record: companyMockNotInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(false); }); it('matches a record with a greater than filter on employees', () => { - const filter = { employees: { gt: 10 } }; + const companyMockInFilter = { + ...companiesMock[0], + employees: 100, + }; + + const companyMockNotInFilter = { + ...companiesMock[0], + employees: companyMockInFilter.employees - 50, + }; + + const filter = { + employees: { gt: companyMockInFilter.employees - 1 }, + }; expect( isRecordMatchingFilter({ - record: mockedCompaniesData[0], + record: companyMockInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); + expect( isRecordMatchingFilter({ - record: mockedCompaniesData[1], + record: companyMockNotInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(false); }); it('matches a record with a boolean filter on idealCustomerProfile', () => { - const filter = { idealCustomerProfile: { eq: true } }; + const companyIdealCustomerProfileTrue = { + ...companiesMock[0], + idealCustomerProfile: true, + }; + + const companyIdealCustomerProfileFalse = { + ...companiesMock[0], + idealCustomerProfile: false, + }; + + const filter = { + idealCustomerProfile: { + eq: companyIdealCustomerProfileTrue.idealCustomerProfile, + }, + }; expect( isRecordMatchingFilter({ - record: mockedCompaniesData[0], + record: companyIdealCustomerProfileTrue, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), - ).toBe(true); + ).toBe(companyIdealCustomerProfileTrue.idealCustomerProfile); expect( isRecordMatchingFilter({ - record: mockedCompaniesData[4], // Assuming this record has idealCustomerProfile as false + record: companyIdealCustomerProfileFalse, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), - ).toBe(false); + ).toBe(companyIdealCustomerProfileFalse.idealCustomerProfile); }); }); describe('Complex And/Or/Not Nesting', () => { it('matches record with a combination of and + or filters', () => { + const companyMockInFilter = { + ...companiesMock[0], + idealCustomerProfile: true, + employees: 100, + }; + + const companyMockNotInFilter = { + ...companiesMock[0], + idealCustomerProfile: false, + employees: 0, + }; + const filter: RecordGqlOperationFilter = { and: [ - { domainName: { eq: 'airbnb.com' } }, + { + domainName: { + eq: companyMockInFilter.domainName, + }, + }, { or: [ - { employees: { gt: 10 } }, - { idealCustomerProfile: { eq: true } }, + { + employees: { + gt: companyMockInFilter.employees - 1, + }, + }, + { + idealCustomerProfile: { + eq: companyMockInFilter.idealCustomerProfile, + }, + }, ], }, ], @@ -175,118 +250,181 @@ describe('isRecordMatchingFilter', () => { expect( isRecordMatchingFilter({ - record: mockedCompaniesData[0], // Airbnb + record: companyMockInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); expect( isRecordMatchingFilter({ - record: mockedCompaniesData[1], // Aircall + record: companyMockNotInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(false); }); it('matches record with nested not filter', () => { + const companyMockInFilter = { + ...companiesMock[0], + idealCustomerProfile: true, + employees: 100, + }; + + const companyMockNotInFilter = { + ...companiesMock[0], + idealCustomerProfile: false, + name: companyMockInFilter.name + 'Different', + }; + const filter: RecordGqlOperationFilter = { not: { and: [ - { name: { eq: 'Airbnb' } }, - { idealCustomerProfile: { eq: true } }, + { name: { eq: companyMockInFilter.name } }, + { + idealCustomerProfile: { + eq: companyMockInFilter.idealCustomerProfile, + }, + }, ], }, }; expect( isRecordMatchingFilter({ - record: mockedCompaniesData[0], // Airbnb + record: companyMockInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), - ).toBe(false); // Should not match as it's Airbnb with idealCustomerProfile true + ).toBe(false); expect( isRecordMatchingFilter({ - record: mockedCompaniesData[3], // Apple + record: companyMockNotInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), - ).toBe(true); // Should match as it's not Airbnb + ).toBe(true); }); it('matches record with deep nesting of and, or, and not filters', () => { + const companyMockInFilter = { + ...companiesMock[0], + idealCustomerProfile: true, + employees: 100, + }; + + const companyMockNotInFilter = { + ...companiesMock[0], + domainName: companyMockInFilter.domainName + 'Different', + employees: 5, + name: companyMockInFilter.name + 'Different', + }; + const filter: RecordGqlOperationFilter = { and: [ - { domainName: { eq: 'apple.com' } }, + { domainName: { eq: companyMockInFilter.domainName } }, { - or: [{ employees: { eq: 10 } }, { not: { name: { eq: 'Apple' } } }], + or: [ + { employees: { eq: companyMockInFilter.employees } }, + { not: { name: { eq: companyMockInFilter.name } } }, + ], }, ], }; expect( isRecordMatchingFilter({ - record: mockedCompaniesData[3], // Apple + record: companyMockInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); expect( isRecordMatchingFilter({ - record: mockedCompaniesData[4], // Qonto + record: companyMockNotInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(false); }); it('matches record with and filter at root level', () => { + const companyMockInFilter = { + ...companiesMock[0], + idealCustomerProfile: true, + }; + + const companyMockNotInFilter = { + ...companiesMock[0], + idealCustomerProfile: false, + name: companyMockInFilter.name + 'Different', + }; + const filter: RecordGqlOperationFilter = { and: [ - { name: { eq: 'Facebook' } }, - { idealCustomerProfile: { eq: true } }, + { name: { eq: companyMockInFilter.name } }, + { + idealCustomerProfile: { + eq: companyMockInFilter.idealCustomerProfile, + }, + }, ], }; expect( isRecordMatchingFilter({ - record: mockedCompaniesData[5], // Facebook + record: companyMockInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); expect( isRecordMatchingFilter({ - record: mockedCompaniesData[0], // Airbnb + record: companyMockNotInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(false); }); it('matches record with or filter at root level including a not condition', () => { + const companyMockInFilter = { + ...companiesMock[0], + idealCustomerProfile: true, + employees: 100, + }; + + const companyMockNotInFilter = { + ...companiesMock[0], + idealCustomerProfile: false, + name: companyMockInFilter.name + 'Different', + employees: companyMockInFilter.employees - 1, + }; + const filter: RecordGqlOperationFilter = { - or: [{ name: { eq: 'Sequoia' } }, { not: { employees: { eq: 1 } } }], + or: [ + { name: { eq: companyMockInFilter.name } }, + { not: { employees: { eq: companyMockInFilter.employees - 1 } } }, + ], }; expect( isRecordMatchingFilter({ - record: mockedCompaniesData[6], // Sequoia + record: companyMockInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); expect( isRecordMatchingFilter({ - record: mockedCompaniesData[1], // Aircall + record: companyMockNotInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(false); }); @@ -294,49 +432,75 @@ describe('isRecordMatchingFilter', () => { describe('Implicit And Conditions', () => { it('matches record with implicit and of multiple operators within the same field', () => { + const companyMockInFilter = { + ...companiesMock[0], + idealCustomerProfile: true, + employees: 100, + }; + + const companyMockNotInFilter = { + ...companiesMock[0], + idealCustomerProfile: false, + name: companyMockInFilter.name + 'Different', + employees: companyMockInFilter.employees + 100, + }; + const filter = { - employees: { gt: 10, lt: 100000 }, - name: { eq: 'Airbnb' }, + employees: { + gt: companyMockInFilter.employees - 10, + lt: companyMockInFilter.employees + 10, + }, + name: { eq: companyMockInFilter.name }, }; expect( isRecordMatchingFilter({ - record: mockedCompaniesData[0], // Airbnb + record: companyMockInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); // Matches as Airbnb's employee count is between 10 and 100000 expect( isRecordMatchingFilter({ - record: mockedCompaniesData[1], // Aircall + record: companyMockNotInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(false); // Does not match as Aircall's employee count is not within the range }); it('matches record with implicit and within an object passed to or', () => { + const companyMockInFilter = { + ...companiesMock[0], + }; + + const companyMockNotInFilter = { + ...companiesMock[0], + name: companyMockInFilter.name + 'Different', + domainName: companyMockInFilter.name + 'Different', + }; + const filter = { or: { - name: { eq: 'Airbnb' }, - domainName: { eq: 'airbnb.com' }, + name: { eq: companyMockInFilter.name }, + domainName: { eq: companyMockInFilter.domainName }, }, }; expect( isRecordMatchingFilter({ - record: mockedCompaniesData[0], // Airbnb + record: companyMockInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(true); expect( isRecordMatchingFilter({ - record: mockedCompaniesData[2], // Algolia + record: companyMockNotInFilter, filter, - objectMetadataItem: mockObjectMetadataItem, + objectMetadataItem: companyMockObjectMetadataItem, }), ).toBe(false); }); diff --git a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/__stories__/RecordDetailDuplicatesSection.stories.tsx b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/__stories__/RecordDetailDuplicatesSection.stories.tsx index 52d7629ad3..bfa43973d0 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/__stories__/RecordDetailDuplicatesSection.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/__stories__/RecordDetailDuplicatesSection.stories.tsx @@ -6,10 +6,12 @@ import { MemoryRouterDecorator } from '~/testing/decorators/MemoryRouterDecorato import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { mockedCompaniesData } from '~/testing/mock-data/companies'; +import { getCompaniesMock } from '~/testing/mock-data/companies'; import { RecordDetailDuplicatesSection } from '../RecordDetailDuplicatesSection'; +const companiesMock = getCompaniesMock(); + const meta: Meta = { title: 'Modules/ObjectRecord/RecordShow/RecordDetailSection/RecordDetailDuplicatesSection', @@ -21,7 +23,7 @@ const meta: Meta = { MemoryRouterDecorator, ], args: { - objectRecordId: mockedCompaniesData[0].id, + objectRecordId: companiesMock[0].id, objectNameSingular: CoreObjectNameSingular.Company, }, parameters: { 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 5f06f7593e..388cf711ac 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 @@ -8,12 +8,16 @@ import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadat 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 { getCompaniesMock } from '~/testing/mock-data/companies'; import { mockedCompanyObjectMetadataItem } from '~/testing/mock-data/metadata'; -import { mockedPeopleData } from '~/testing/mock-data/people'; +import { getPeopleMock } from '~/testing/mock-data/people'; import { RecordDetailRelationSection } from '../RecordDetailRelationSection'; +const companiesMock = getCompaniesMock(); + +const peopleMock = getPeopleMock(); + const meta: Meta = { title: 'Modules/ObjectRecord/RecordShow/RecordDetailSection/RecordDetailRelationSection', @@ -22,7 +26,7 @@ const meta: Meta = { (Story) => ( = { ], parameters: { msw: graphqlMocks, - records: mockedCompaniesData, + records: companiesMock, }, }; @@ -58,10 +62,10 @@ export const WithRecords: Story = { parameters: { records: [ { - ...mockedCompaniesData[0], - people: mockedPeopleData, + ...companiesMock[0], + people: peopleMock, }, - ...mockedPeopleData, + ...peopleMock, ], }, }; diff --git a/packages/twenty-front/src/modules/object-record/record-store/contexts/RecordFieldValueSelectorContext.tsx b/packages/twenty-front/src/modules/object-record/record-store/contexts/RecordFieldValueSelectorContext.tsx index 3f7c074142..a83d435317 100644 --- a/packages/twenty-front/src/modules/object-record/record-store/contexts/RecordFieldValueSelectorContext.tsx +++ b/packages/twenty-front/src/modules/object-record/record-store/contexts/RecordFieldValueSelectorContext.tsx @@ -36,13 +36,16 @@ export const useRecordValue = (recordId: string) => { return tableValue?.[recordId] as ObjectRecord | undefined; }; -export const useRecordFieldValue = (recordId: string, fieldName: string) => { +export const useRecordFieldValue = ( + recordId: string, + fieldName: string, +) => { const recordFieldValues = useContextSelector( RecordFieldValueSelectorContext, (value) => value[0], ); - return recordFieldValues?.[recordId]?.[fieldName]; + return recordFieldValues?.[recordId]?.[fieldName] as T; }; export const useSetRecordFieldValue = () => { diff --git a/packages/twenty-front/src/modules/object-record/relation-picker/components/__stories__/SingleEntitySelect.stories.tsx b/packages/twenty-front/src/modules/object-record/relation-picker/components/__stories__/SingleEntitySelect.stories.tsx index 0bb2497fbf..882d5f3933 100644 --- a/packages/twenty-front/src/modules/object-record/relation-picker/components/__stories__/SingleEntitySelect.stories.tsx +++ b/packages/twenty-front/src/modules/object-record/relation-picker/components/__stories__/SingleEntitySelect.stories.tsx @@ -8,16 +8,18 @@ import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadat import { RelationPickerDecorator } from '~/testing/decorators/RelationPickerDecorator'; import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { mockedPeopleData } from '~/testing/mock-data/people'; +import { getPeopleMock } from '~/testing/mock-data/people'; import { sleep } from '~/testing/sleep'; import { EntityForSelect } from '../../types/EntityForSelect'; import { SingleEntitySelect } from '../SingleEntitySelect'; -const entities = mockedPeopleData.map((person) => ({ +const peopleMock = getPeopleMock(); + +const entities = peopleMock.map((person) => ({ id: person.id, name: person.name.firstName + ' ' + person.name.lastName, - avatarUrl: person.avatarUrl, + avatarUrl: 'https://picsum.photos/200', avatarType: 'rounded', record: { ...person, __typename: 'Person' }, })); diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsEmailsBlocklistTableRow.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsEmailsBlocklistTableRow.tsx index 6ffafb27cf..a09a092ed2 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsEmailsBlocklistTableRow.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsEmailsBlocklistTableRow.tsx @@ -4,7 +4,7 @@ import { BlocklistItem } from '@/accounts/types/BlocklistItem'; import { IconButton } from '@/ui/input/button/components/IconButton'; import { TableCell } from '@/ui/layout/table/components/TableCell'; import { TableRow } from '@/ui/layout/table/components/TableRow'; -import { formatToHumanReadableDate } from '~/utils'; +import { formatToHumanReadableDate } from '~/utils/date-utils'; type SettingsAccountsEmailsBlocklistTableRowProps = { blocklistItem: BlocklistItem; diff --git a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsEmailsBlocklistTable.stories.tsx b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsEmailsBlocklistTable.stories.tsx index 64abc507a5..7ab7f1c9b0 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsEmailsBlocklistTable.stories.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsEmailsBlocklistTable.stories.tsx @@ -4,7 +4,7 @@ import { ComponentDecorator } from 'twenty-ui'; import { mockedBlocklist } from '@/settings/accounts/components/__stories__/mockedBlocklist'; import { SettingsAccountsEmailsBlocklistTable } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistTable'; -import { formatToHumanReadableDate } from '~/utils'; +import { formatToHumanReadableDate } from '~/utils/date-utils'; const handleBlockedEmailRemoveJestFn = fn(); diff --git a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsEmailsBlocklistTableRow.stories.tsx b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsEmailsBlocklistTableRow.stories.tsx index bb173f0825..f24b0033f5 100644 --- a/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsEmailsBlocklistTableRow.stories.tsx +++ b/packages/twenty-front/src/modules/settings/accounts/components/__stories__/SettingsAccountsEmailsBlocklistTableRow.stories.tsx @@ -4,7 +4,7 @@ import { ComponentDecorator } from 'twenty-ui'; import { mockedBlocklist } from '@/settings/accounts/components/__stories__/mockedBlocklist'; import { SettingsAccountsEmailsBlocklistTableRow } from '@/settings/accounts/components/SettingsAccountsEmailsBlocklistTableRow'; -import { formatToHumanReadableDate } from '~/utils'; +import { formatToHumanReadableDate } from '~/utils/date-utils'; const onRemoveJestFn = fn(); diff --git a/packages/twenty-front/src/modules/ui/field/display/components/BooleanDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/BooleanDisplay.tsx index 47911a936b..992667a835 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/BooleanDisplay.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/BooleanDisplay.tsx @@ -1,36 +1,32 @@ -import { useTheme } from '@emotion/react'; -import styled from '@emotion/styled'; -import { IconCheck, IconX } from 'twenty-ui'; +import { styled } from '@linaria/react'; +import { IconCheck, IconX, THEME_COMMON } from 'twenty-ui'; import { isDefined } from '~/utils/isDefined'; +const spacing = THEME_COMMON.spacingMultiplicator * 1; +const iconSizeSm = THEME_COMMON.icon.size.sm; + const StyledBooleanFieldValue = styled.div` - margin-left: ${({ theme }) => theme.spacing(1)}; + margin-left: ${spacing}px; `; type BooleanDisplayProps = { - value: boolean | null; + value: boolean | null | undefined; }; export const BooleanDisplay = ({ value }: BooleanDisplayProps) => { - const theme = useTheme(); + if (!isDefined(value)) { + return <>; + } + + const isTrue = value === true; return ( <> - {isDefined(value) ? ( - <> - {value ? ( - - ) : ( - - )} - - {value ? 'True' : 'False'} - - - ) : ( - <> - )} + {isTrue ? : } + + {isTrue ? 'True' : 'False'} + ); }; diff --git a/packages/twenty-front/src/modules/ui/field/display/components/CurrencyDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/CurrencyDisplay.tsx index 715ab0c473..55f641ca4d 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/CurrencyDisplay.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/CurrencyDisplay.tsx @@ -1,20 +1,23 @@ import { useTheme } from '@emotion/react'; -import styled from '@emotion/styled'; +import { styled } from '@linaria/react'; import { FieldCurrencyValue } from '@/object-record/record-field/types/FieldMetadata'; import { SETTINGS_FIELD_CURRENCY_CODES } from '@/settings/data-model/constants/SettingsFieldCurrencyCodes'; import { formatAmount } from '~/utils/format/formatAmount'; import { isDefined } from '~/utils/isDefined'; -import { EllipsisDisplay } from './EllipsisDisplay'; - type CurrencyDisplayProps = { currencyValue: FieldCurrencyValue | null | undefined; }; -const StyledEllipsisDisplay = styled(EllipsisDisplay)` +const StyledEllipsisDisplay = styled.div` align-items: center; display: flex; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 100%; `; export const CurrencyDisplay = ({ currencyValue }: CurrencyDisplayProps) => { @@ -26,9 +29,7 @@ export const CurrencyDisplay = ({ currencyValue }: CurrencyDisplayProps) => { ? SETTINGS_FIELD_CURRENCY_CODES[currencyValue?.currencyCode]?.Icon : null; - const amountToDisplay = isDefined(currencyValue?.amountMicros) - ? currencyValue.amountMicros / 1000000 - : 0; + const amountToDisplay = (currencyValue?.amountMicros ?? 0) / 1000000; if (!shouldDisplayCurrency) { return {0}; diff --git a/packages/twenty-front/src/modules/ui/field/display/components/DateDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/DateDisplay.tsx index 4e41fb3bc9..54053bc59f 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/DateDisplay.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/DateDisplay.tsx @@ -1,11 +1,13 @@ -import { formatToHumanReadableDate } from '~/utils'; +import { formatISOStringToHumanReadableDate } from '~/utils/date-utils'; import { EllipsisDisplay } from './EllipsisDisplay'; type DateDisplayProps = { - value: Date | string | null | undefined; + value: string | null | undefined; }; export const DateDisplay = ({ value }: DateDisplayProps) => ( - {value && formatToHumanReadableDate(value)} + + {value ? formatISOStringToHumanReadableDate(value) : ''} + ); diff --git a/packages/twenty-front/src/modules/ui/field/display/components/DateTimeDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/DateTimeDisplay.tsx index d1381489e0..7ce008c6af 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/DateTimeDisplay.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/DateTimeDisplay.tsx @@ -1,13 +1,13 @@ -import { formatToHumanReadableDateTime } from '~/utils'; +import { formatISOStringToHumanReadableDateTime } from '~/utils/date-utils'; import { EllipsisDisplay } from './EllipsisDisplay'; type DateTimeDisplayProps = { - value: Date | string | null | undefined; + value: string | null | undefined; }; export const DateTimeDisplay = ({ value }: DateTimeDisplayProps) => ( - {value && formatToHumanReadableDateTime(value)} + {value ? formatISOStringToHumanReadableDateTime(value) : ''} ); diff --git a/packages/twenty-front/src/modules/ui/field/display/components/EmailDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/EmailDisplay.tsx index f393d1a6e1..60b8ef9966 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/EmailDisplay.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/EmailDisplay.tsx @@ -1,21 +1,39 @@ import { MouseEvent } from 'react'; import { ContactLink } from '@/ui/navigation/link/components/ContactLink'; +import { isDefined } from '~/utils/isDefined'; import { EllipsisDisplay } from './EllipsisDisplay'; const validateEmail = (email: string) => { - const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; - return emailPattern.test(email.trim()); + // const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; + // return emailPattern.test(email.trim()); + + // Record this without using regex + const emailParts = email.split('@'); + + if (emailParts.length !== 2) { + return false; + } + + return true; }; type EmailDisplayProps = { value: string | null; }; -export const EmailDisplay = ({ value }: EmailDisplayProps) => ( - - {value && validateEmail(value) ? ( +export const EmailDisplay = ({ value }: EmailDisplayProps) => { + if (!isDefined(value)) { + return {value}; + } + + if (!validateEmail(value)) { + return {value}; + } + + return ( + ) => { @@ -24,8 +42,6 @@ export const EmailDisplay = ({ value }: EmailDisplayProps) => ( > {value} - ) : ( - {value} - )} - -); + + ); +}; diff --git a/packages/twenty-front/src/modules/ui/field/display/components/LinkDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/LinkDisplay.tsx index 2fe16defa4..e966fd1cd9 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/LinkDisplay.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/LinkDisplay.tsx @@ -1,4 +1,4 @@ -import { MouseEvent } from 'react'; +import { isNonEmptyString } from '@sniptt/guards'; import { FieldLinkValue } from '@/object-record/record-field/types/FieldMetadata'; import { RoundedLink } from '@/ui/navigation/link/components/RoundedLink'; @@ -6,34 +6,31 @@ import { LinkType, SocialLink, } from '@/ui/navigation/link/components/SocialLink'; -import { checkUrlType } from '~/utils/checkUrlType'; -import { getAbsoluteUrl } from '~/utils/url/getAbsoluteUrl'; -import { getUrlHostName } from '~/utils/url/getUrlHostName'; type LinkDisplayProps = { value?: FieldLinkValue; }; export const LinkDisplay = ({ value }: LinkDisplayProps) => { - const handleClick = (event: MouseEvent) => { - event.stopPropagation(); - }; + const url = value?.url; - const absoluteUrl = getAbsoluteUrl(value?.url || ''); - const displayedValue = value?.label || getUrlHostName(absoluteUrl); - const type = checkUrlType(absoluteUrl); - - if (type === LinkType.LinkedIn || type === LinkType.Twitter) { - return ( - - {displayedValue} - - ); + if (!isNonEmptyString(url)) { + return <>; } - return ( - - {displayedValue} - - ); + const displayedValue = isNonEmptyString(value?.label) + ? value?.label + : url?.replace(/^http[s]?:\/\/(?:[w]+\.)?/gm, '').replace(/^[w]+\./gm, ''); + + const type = displayedValue.startsWith('linkedin.') + ? LinkType.LinkedIn + : displayedValue.startsWith('twitter.') + ? LinkType.Twitter + : LinkType.Url; + + if (type === LinkType.LinkedIn || type === LinkType.Twitter) { + return ; + } + + return ; }; diff --git a/packages/twenty-front/src/modules/ui/field/display/components/LinksDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/LinksDisplay.tsx index 0b59325aa4..ee58d124fb 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/LinksDisplay.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/LinksDisplay.tsx @@ -1,4 +1,6 @@ -import { MouseEventHandler, useMemo } from 'react'; +import { useMemo } from 'react'; +import { styled } from '@linaria/react'; +import { THEME_COMMON } from 'twenty-ui'; import { FieldLinksValue } from '@/object-record/record-field/types/FieldMetadata'; import { ExpandableList } from '@/ui/layout/expandable-list/components/ExpandableList'; @@ -17,6 +19,21 @@ type LinksDisplayProps = { isFocused?: boolean; }; +const themeSpacing = THEME_COMMON.spacingMultiplicator; + +const StyledContainer = styled.div` + align-items: center; + display: flex; + gap: ${themeSpacing * 1}px; + justify-content: flex-start; + + max-width: 100%; + + overflow: hidden; + + width: 100%; +`; + export const LinksDisplay = ({ value, isFocused }: LinksDisplayProps) => { const links = useMemo( () => @@ -41,21 +58,25 @@ export const LinksDisplay = ({ value, isFocused }: LinksDisplayProps) => { [value?.primaryLinkLabel, value?.primaryLinkUrl, value?.secondaryLinks], ); - const handleClick: MouseEventHandler = (event) => event.stopPropagation(); - - return ( + return isFocused ? ( {links.map(({ url, label, type }, index) => type === LinkType.LinkedIn || type === LinkType.Twitter ? ( - - {label} - + ) : ( - - {label} - + ), )} + ) : ( + + {links.map(({ url, label, type }, index) => + type === LinkType.LinkedIn || type === LinkType.Twitter ? ( + + ) : ( + + ), + )} + ); }; diff --git a/packages/twenty-front/src/modules/ui/field/display/components/URLDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/URLDisplay.tsx index 858a59e1c0..561b1d0dd3 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/URLDisplay.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/URLDisplay.tsx @@ -42,17 +42,22 @@ export const URLDisplay = ({ value }: URLDisplayProps) => { if (type === LinkType.LinkedIn || type === LinkType.Twitter) { return ( - - {displayedValue} - + ); } return ( - - {displayedValue} - + ); }; diff --git a/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink.tsx b/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink.tsx index d5d39cd9fd..4b63ca0902 100644 --- a/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink.tsx @@ -1,50 +1,71 @@ -import * as React from 'react'; -import { Link as ReactLink } from 'react-router-dom'; -import styled from '@emotion/styled'; -import { Chip, ChipSize, ChipVariant } from 'twenty-ui'; +import { MouseEvent } from 'react'; +import { styled } from '@linaria/react'; +import { isNonEmptyString } from '@sniptt/guards'; +import { FONT_COMMON, THEME_COMMON } from 'twenty-ui'; type RoundedLinkProps = { href: string; - children?: React.ReactNode; - className?: string; + label?: string; onClick?: (event: React.MouseEvent) => void; }; -const StyledLink = styled(ReactLink)` - font-size: ${({ theme }) => theme.font.size.md}; +const fontSizeMd = FONT_COMMON.size.md; +const spacing1 = THEME_COMMON.spacing(1); +const spacing3 = THEME_COMMON.spacing(3); + +const spacingMultiplicator = THEME_COMMON.spacingMultiplicator; + +const StyledLink = styled.a` + align-items: center; + background-color: var(--twentycrm-background-transparent-light); + border: 1px solid var(--twentycrm-border-color-medium); + + border-radius: 50px; + color: var(--twentycrm-font-color-primary); + + cursor: pointer; + display: inline-flex; + font-weight: ${fontSizeMd}; + + gap: ${spacing1}; + + height: ${spacing3}; + justify-content: center; + + max-width: calc(100% - ${spacingMultiplicator} * 2px); + max-width: 100%; - height: ${({ theme }) => theme.spacing(5)}; + + min-width: fit-content; + + overflow: hidden; + padding: ${spacing1} ${spacing1}; + + text-decoration: none; + text-overflow: ellipsis; + user-select: none; + white-space: nowrap; `; -const StyledChip = styled(Chip)` - border-color: ${({ theme }) => theme.border.color.strong}; - box-sizing: border-box; - padding: ${({ theme }) => theme.spacing(0, 2)}; - max-width: 100%; - height: ${({ theme }) => theme.spacing(5)}; - min-width: 40px; -`; +export const RoundedLink = ({ label, href, onClick }: RoundedLinkProps) => { + if (!isNonEmptyString(label)) { + return <>; + } -export const RoundedLink = ({ - children, - className, - href, - onClick, -}: RoundedLinkProps) => { - if (!children) return null; + const handleClick = (event: MouseEvent) => { + event.stopPropagation(); + + onClick?.(event); + }; return ( - + {label} ); }; diff --git a/packages/twenty-front/src/modules/ui/navigation/link/components/SocialLink.tsx b/packages/twenty-front/src/modules/ui/navigation/link/components/SocialLink.tsx index bb23e32bac..aa98b45691 100644 --- a/packages/twenty-front/src/modules/ui/navigation/link/components/SocialLink.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/link/components/SocialLink.tsx @@ -11,24 +11,15 @@ export enum LinkType { } type SocialLinkProps = { + label: string; href: string; - children?: React.ReactNode; type: LinkType; onClick?: (event: React.MouseEvent) => void; }; -export const SocialLink = ({ - children, - href, - onClick, - type, -}: SocialLinkProps) => { +export const SocialLink = ({ label, href, onClick, type }: SocialLinkProps) => { const displayValue = - getDisplayValueByUrlType({ type: type, href: href }) ?? children; + getDisplayValueByUrlType({ type: type, href: href }) ?? label; - return ( - - {displayValue} - - ); + return ; }; diff --git a/packages/twenty-front/src/modules/ui/navigation/link/components/__stories__/RoundedLink.stories.tsx b/packages/twenty-front/src/modules/ui/navigation/link/components/__stories__/RoundedLink.stories.tsx index b988d4c451..898213169d 100644 --- a/packages/twenty-front/src/modules/ui/navigation/link/components/__stories__/RoundedLink.stories.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/link/components/__stories__/RoundedLink.stories.tsx @@ -11,7 +11,7 @@ const meta: Meta = { decorators: [ComponentWithRouterDecorator], args: { href: '/test', - children: 'Rounded chip', + label: 'Rounded chip', }, }; diff --git a/packages/twenty-front/src/modules/ui/navigation/link/components/__stories__/SocialLink.stories.tsx b/packages/twenty-front/src/modules/ui/navigation/link/components/__stories__/SocialLink.stories.tsx index 5838f4959b..48fc83fd16 100644 --- a/packages/twenty-front/src/modules/ui/navigation/link/components/__stories__/SocialLink.stories.tsx +++ b/packages/twenty-front/src/modules/ui/navigation/link/components/__stories__/SocialLink.stories.tsx @@ -11,7 +11,7 @@ const meta: Meta = { decorators: [ComponentWithRouterDecorator], args: { href: '/test', - children: 'Social Link', + label: 'Social Link', }, }; @@ -25,7 +25,7 @@ const twitter: LinkType = LinkType.Twitter; export const LinkedIn: Story = { args: { href: '/LinkedIn', - children: 'LinkedIn', + label: 'LinkedIn', onClick: clickJestFn, type: linkedin, }, @@ -34,7 +34,7 @@ export const LinkedIn: Story = { export const Twitter: Story = { args: { href: '/Twitter', - children: 'Twitter', + label: 'Twitter', onClick: clickJestFn, type: twitter, }, diff --git a/packages/twenty-front/src/modules/ui/theme/components/AppThemeProvider.tsx b/packages/twenty-front/src/modules/ui/theme/components/AppThemeProvider.tsx index ff3d685a2e..abfbe9e206 100644 --- a/packages/twenty-front/src/modules/ui/theme/components/AppThemeProvider.tsx +++ b/packages/twenty-front/src/modules/ui/theme/components/AppThemeProvider.tsx @@ -1,6 +1,6 @@ import { useEffect } from 'react'; import { ThemeProvider } from '@emotion/react'; -import { THEME_DARK, THEME_LIGHT } from 'twenty-ui'; +import { THEME_DARK, THEME_LIGHT, ThemeContextProvider } from 'twenty-ui'; import { useColorScheme } from '../hooks/useColorScheme'; import { useSystemColorScheme } from '../hooks/useSystemColorScheme'; @@ -24,5 +24,9 @@ export const AppThemeProvider = ({ children }: AppThemeProviderProps) => { theme.name === 'dark' ? 'dark' : 'light'; }, [theme]); - return {children}; + return ( + + {children} + + ); }; diff --git a/packages/twenty-front/src/pages/object-record/__stories__/RecordIndexPage.stories.tsx b/packages/twenty-front/src/pages/object-record/__stories__/RecordIndexPage.stories.tsx index a8ecfda08e..465b931c61 100644 --- a/packages/twenty-front/src/pages/object-record/__stories__/RecordIndexPage.stories.tsx +++ b/packages/twenty-front/src/pages/object-record/__stories__/RecordIndexPage.stories.tsx @@ -35,7 +35,6 @@ export const Default: Story = { await canvas.findByText('People'); await canvas.findAllByText('Companies'); await canvas.findByText('Opportunities'); - await canvas.findByText('Listings'); await canvas.findByText('My Customs'); }, }; diff --git a/packages/twenty-front/src/pages/object-record/__stories__/RecordShowPage.stories.tsx b/packages/twenty-front/src/pages/object-record/__stories__/RecordShowPage.stories.tsx index 57741d149f..efec731eef 100644 --- a/packages/twenty-front/src/pages/object-record/__stories__/RecordShowPage.stories.tsx +++ b/packages/twenty-front/src/pages/object-record/__stories__/RecordShowPage.stories.tsx @@ -8,11 +8,13 @@ import { PageDecoratorArgs, } from '~/testing/decorators/PageDecorator'; import { graphqlMocks } from '~/testing/graphqlMocks'; -import { mockedPeopleData } from '~/testing/mock-data/people'; +import { getPeopleMock } from '~/testing/mock-data/people'; import { mockedWorkspaceMemberData } from '~/testing/mock-data/users'; import { RecordShowPage } from '../RecordShowPage'; +const peopleMock = getPeopleMock(); + const meta: Meta = { title: 'Pages/ObjectRecord/RecordShowPage', component: RecordShowPage, @@ -29,7 +31,7 @@ const meta: Meta = { graphql.query('FindOnePerson', () => { return HttpResponse.json({ data: { - person: mockedPeopleData[0], + person: peopleMock[0], }, }); }), @@ -87,7 +89,9 @@ export const Default: Story = { play: async ({ canvasElement }) => { const canvas = within(canvasElement); - await canvas.findAllByText('Alexandre Prot'); + await canvas.findAllByText( + peopleMock[0].name.firstName + ' ' + peopleMock[0].name.lastName, + ); await canvas.findByText('Add your first Activity'); }, }; @@ -99,7 +103,11 @@ export const Loading: Story = { play: async ({ canvasElement }) => { const canvas = within(canvasElement); - expect(canvas.queryByText('Alexandre Prot')).toBeNull(); + expect( + canvas.queryByText( + peopleMock[0].name.firstName + ' ' + peopleMock[0].name.lastName, + ), + ).toBeNull(); expect(canvas.queryByText('Add your first Activity')).toBeNull(); }, }; diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx index 307ccfbbe0..921c366051 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx @@ -161,13 +161,13 @@ export const SettingsObjectNewFieldStep2 = () => { const excludedFieldTypes: SettingsSupportedFieldType[] = ( [ - FieldMetadataType.Email, - FieldMetadataType.FullName, - FieldMetadataType.Link, + // FieldMetadataType.Email, + // FieldMetadataType.FullName, + // FieldMetadataType.Link, FieldMetadataType.Numeric, FieldMetadataType.Probability, - FieldMetadataType.Uuid, - FieldMetadataType.Phone, + // FieldMetadataType.Uuid, + // FieldMetadataType.Phone, ] as const ).filter(isDefined); diff --git a/packages/twenty-front/src/testing/decorators/getFieldDecorator.tsx b/packages/twenty-front/src/testing/decorators/getFieldDecorator.tsx index b0de8bcefb..a4aeee8952 100644 --- a/packages/twenty-front/src/testing/decorators/getFieldDecorator.tsx +++ b/packages/twenty-front/src/testing/decorators/getFieldDecorator.tsx @@ -2,7 +2,6 @@ import { useEffect } from 'react'; import { Decorator } from '@storybook/react'; import { useRecoilCallback } from 'recoil'; -import { Company } from '@/companies/types/Company'; import { formatFieldMetadataItemAsColumnDefinition } from '@/object-metadata/utils/formatFieldMetadataItemAsColumnDefinition'; import { isLabelIdentifierField } from '@/object-metadata/utils/isLabelIdentifierField'; import { FieldContext } from '@/object-record/record-field/contexts/FieldContext'; @@ -12,18 +11,17 @@ import { } from '@/object-record/record-store/contexts/RecordFieldValueSelectorContext'; import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState'; import { ObjectRecord } from '@/object-record/types/ObjectRecord'; -import { Person } from '@/people/types/Person'; -import { mockedCompaniesDataV2 } from '~/testing/mock-data/companiesV2'; +import { getCompaniesMock } from '~/testing/mock-data/companies'; import { generatedMockObjectMetadataItems } from '~/testing/mock-data/objectMetadataItems'; -import { mockPeopleDataV2 } from '~/testing/mock-data/peopleV2'; +import { getPeopleMock } from '~/testing/mock-data/people'; import { isDefined } from '~/utils/isDefined'; const RecordMockSetterEffect = ({ companies, people, }: { - companies: Company[]; - people: Person[]; + companies: ObjectRecord[]; + people: ObjectRecord[]; }) => { const setRecordValue = useSetRecordValue(); @@ -56,21 +54,25 @@ export const getFieldDecorator = fieldValue?: any, ): Decorator => (Story) => { + const companiesMock = getCompaniesMock(); + const companies = objectNameSingular === 'company' && isDefined(fieldValue) ? [ - { ...mockedCompaniesDataV2[0], [fieldName]: fieldValue }, - ...mockedCompaniesDataV2.slice(1), + { ...companiesMock[0], [fieldName]: fieldValue }, + ...companiesMock.slice(1), ] - : mockedCompaniesDataV2; + : companiesMock; + + const peopleMock = getPeopleMock(); const people = objectNameSingular === 'person' && isDefined(fieldValue) ? [ - { ...mockPeopleDataV2[0], [fieldName]: fieldValue }, - ...mockPeopleDataV2.slice(1), + { ...peopleMock[0], [fieldName]: fieldValue }, + ...peopleMock.slice(1), ] - : mockPeopleDataV2; + : peopleMock; const record = objectNameSingular === 'company' ? companies[0] : people[0]; diff --git a/packages/twenty-front/src/testing/graphqlMocks.ts b/packages/twenty-front/src/testing/graphqlMocks.ts index 60cd918f02..c550618318 100644 --- a/packages/twenty-front/src/testing/graphqlMocks.ts +++ b/packages/twenty-front/src/testing/graphqlMocks.ts @@ -8,20 +8,24 @@ import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser'; import { REACT_APP_SERVER_BASE_URL } from '~/config'; import { mockedActivities } from '~/testing/mock-data/activities'; import { - mockedCompaniesData, - mockedDuplicateCompanyData, + getCompaniesMock, + getCompanyDuplicateMock, } from '~/testing/mock-data/companies'; import { mockedClientConfig } from '~/testing/mock-data/config'; import { mockedObjectMetadataItemsQueryResult } from '~/testing/mock-data/metadata'; +import { getPeopleMock } from '~/testing/mock-data/people'; import { mockedRemoteTables } from '~/testing/mock-data/remote-tables'; import { mockedUsersData } from '~/testing/mock-data/users'; import { mockedViewsData } from '~/testing/mock-data/views'; import { mockWorkspaceMembers } from '~/testing/mock-data/workspace-members'; -import { mockedPeopleData } from './mock-data/people'; import { mockedRemoteServers } from './mock-data/remote-servers'; import { mockedViewFieldsData } from './mock-data/view-fields'; +const peopleMock = getPeopleMock(); +const companiesMock = getCompaniesMock(); +const duplicateCompanyMock = getCompanyDuplicateMock(); + export const metadataGraphql = graphql.link( `${REACT_APP_SERVER_BASE_URL}/metadata`, ); @@ -108,8 +112,8 @@ export const graphqlMocks = { }), graphql.query('FindManyCompanies', ({ variables }) => { const mockedData = variables.limit - ? mockedCompaniesData.slice(0, variables.limit) - : mockedCompaniesData; + ? companiesMock.slice(0, variables.limit) + : companiesMock; return HttpResponse.json({ data: { @@ -157,7 +161,7 @@ export const graphqlMocks = { edges: [ { node: { - ...mockedDuplicateCompanyData, + ...duplicateCompanyMock, favorites: { edges: [], __typename: 'FavoriteConnection', @@ -197,7 +201,7 @@ export const graphqlMocks = { return HttpResponse.json({ data: { people: { - edges: mockedPeopleData.map((person) => ({ + edges: peopleMock.map((person) => ({ node: person, cursor: null, })), diff --git a/packages/twenty-front/src/testing/mock-data/companies.ts b/packages/twenty-front/src/testing/mock-data/companies.ts index 492ba0eece..a2fc79b6f3 100644 --- a/packages/twenty-front/src/testing/mock-data/companies.ts +++ b/packages/twenty-front/src/testing/mock-data/companies.ts @@ -1,210 +1,393 @@ -import { Company } from '@/companies/types/Company'; -import { Favorite } from '@/favorites/types/Favorite'; -import { WorkspaceMember } from '@/workspace-member/types/WorkspaceMember'; - -import { mockedUsersData } from './users'; - -type MockedCompany = Omit & { - accountOwner: WorkspaceMember | null; - Favorite: Pick | null; +export const getCompaniesMock = () => { + return companiesQueryResult.companies.edges.map((edge) => edge.node); }; -export const mockedCompaniesData: Array = [ - { +export const getCompanyDuplicateMock = () => { + return { + ...companiesQueryResult.companies.edges[0].node, + id: '8b40856a-2ec9-4c03-8bc0-c032c89e1824', + }; +}; + +export const getEmptyCompanyMock = () => { + return { + id: '9231e6ee-4cc2-4c7b-8c55-dff16f4d968a', + name: '', + domainName: '', + address: '', + accountOwner: null, + createdAt: null, + updatedAt: null, + employees: null, + idealCustomerProfile: null, + linkedinLink: null, + xLink: null, + _activityCount: null, __typename: 'Company', - id: '89bb825c-171e-4bcc-9cf7-43448d6fb278', - domainName: 'airbnb.com', - name: 'Airbnb', - createdAt: '2023-04-26T10:08:54.724515+00:00', - updatedAt: '2023-04-26T10:23:42.33625+00:00', - address: '17 rue de clignancourt', - employees: 12, - linkedinLink: { - url: 'https://www.linkedin.com/company/airbnb/', - label: 'https://www.linkedin.com/company/airbnb/', + }; +}; + +export const companiesQueryResult = { + companies: { + __typename: 'CompanyConnection', + totalCount: 13, + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + startCursor: + 'WzEsICIyMDIwMjAyMC0zZWMzLTRmZTMtODk5Ny1iNzZhYTBiZmE0MDgiXQ==', + endCursor: 'WzEzLCAiMjAyMDIwMjAtMTQ1NS00YzU3LWFmYWYtZGQ1ZGMwODYzNjFkIl0=', }, - xLink: { - url: 'https://twitter.com/airbnb', - label: 'https://twitter.com/airbnb', - }, - annualRecurringRevenue: { amountMicros: 5000000, currencyCode: 'USD' }, - idealCustomerProfile: true, - Favorite: null, - accountOwnerId: mockedUsersData[0].id, - accountOwner: { - __typename: 'WorkspaceMember', - name: { - firstName: 'Charles', - lastName: 'Test', + edges: [ + { + __typename: 'CompanyEdge', + cursor: 'WzEsICIyMDIwMjAyMC0zZWMzLTRmZTMtODk5Ny1iNzZhYTBiZmE0MDgiXQ==', + node: { + __typename: 'Company', + id: '20202020-3ec3-4fe3-8997-b76aa0bfa408', + employees: 100, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Linkedin', + accountOwner: null, + domainName: 'linkedin.com', + address: '', + position: 1, + idealCustomerProfile: true, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + previousEmployees: { + __typename: 'Person', + id: '20202020-2d40-4e49-8df4-9c6a049191de', + email: 'louis.duss@google.com', + position: 14, + testJson: null, + testRating: null, + companyId: '20202020-c21e-4ec2-873b-de4264d89025', + avatarUrl: '', + updatedAt: '2024-06-05T09:36:42.400Z', + testMultiSelect: null, + testBoolean: true, + testSelect: 'OPTION_1', + testDateOnly: null, + bestCompanyId: null, + testUuid: null, + phone: '+33788901234', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Seattle', + testPhone: '', + jobTitle: 'CTO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Louis', + lastName: 'Duss', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, }, - avatarUrl: null, - id: mockedUsersData[0].id, - locale: 'en', - colorScheme: 'Light', - updatedAt: '2023-04-26T10:23:42.33625+00:00', - createdAt: '2023-04-26T10:23:42.33625+00:00', - userId: mockedUsersData[0].id, - userEmail: 'charles@test.com', - }, + { + __typename: 'CompanyEdge', + cursor: 'WzIsICIyMDIwMjAyMC01ZDgxLTQ2ZDYtYmY4My1mN2ZkMzNlYTYxMDIiXQ==', + node: { + __typename: 'Company', + id: '20202020-5d81-46d6-bf83-f7fd33ea6102', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Facebook', + idealCustomerProfile: false, + accountOwner: null, + domainName: 'facebook.com', + address: '', + previousEmployees: null, + position: 2, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzMsICIyMDIwMjAyMC0wNzEzLTQwYTUtODIxNi04MjgwMjQwMWQzM2UiXQ==', + node: { + __typename: 'Company', + id: '20202020-0713-40a5-8216-82802401d33e', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Qonto', + idealCustomerProfile: false, + accountOwner: null, + domainName: 'qonto.com', + address: '', + previousEmployees: null, + position: 3, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzQsICIyMDIwMjAyMC1lZDg5LTQxM2EtYjMxYS05NjI5ODZlNjdiYjQiXQ==', + node: { + __typename: 'Company', + id: '20202020-ed89-413a-b31a-962986e67bb4', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Microsoft', + idealCustomerProfile: true, + accountOwner: null, + domainName: 'microsoft.com', + address: '', + previousEmployees: null, + position: 4, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzUsICIyMDIwMjAyMC0xNzFlLTRiY2MtOWNmNy00MzQ0OGQ2ZmIyNzgiXQ==', + node: { + __typename: 'Company', + id: '20202020-171e-4bcc-9cf7-43448d6fb278', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Airbnb', + idealCustomerProfile: true, + accountOwner: null, + domainName: 'airbnb.com', + address: '', + previousEmployees: null, + position: 5, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzYsICIyMDIwMjAyMC1jMjFlLTRlYzItODczYi1kZTQyNjRkODkwMjUiXQ==', + node: { + __typename: 'Company', + id: '20202020-c21e-4ec2-873b-de4264d89025', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Google', + idealCustomerProfile: false, + accountOwner: null, + domainName: 'google.com', + address: '', + previousEmployees: null, + position: 6, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzcsICIyMDIwMjAyMC03MDdlLTQ0ZGMtYTFkMi0zMDAzMGJmMWE5NDQiXQ==', + node: { + __typename: 'Company', + id: '20202020-707e-44dc-a1d2-30030bf1a944', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Netflix', + idealCustomerProfile: true, + accountOwner: null, + domainName: 'netflix.com', + address: '', + previousEmployees: null, + position: 7, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzgsICIyMDIwMjAyMC0zZjc0LTQ5MmQtYTEwMS0yYTcwZjUwYTE2NDUiXQ==', + node: { + __typename: 'Company', + id: '20202020-3f74-492d-a101-2a70f50a1645', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Libeo', + idealCustomerProfile: false, + accountOwner: null, + domainName: 'libeo.io', + address: '', + previousEmployees: null, + position: 8, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzksICIyMDIwMjAyMC1jZmJmLTQxNTYtYTc5MC1lMzk4NTRkY2Q0ZWIiXQ==', + node: { + __typename: 'Company', + id: '20202020-cfbf-4156-a790-e39854dcd4eb', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Claap', + idealCustomerProfile: false, + accountOwner: null, + domainName: 'claap.io', + address: '', + previousEmployees: null, + position: 9, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzEwLCAiMjAyMDIwMjAtZjg2Yi00MTlmLWI3OTQtMDIzMTlhYmU4NjM3Il0=', + node: { + __typename: 'Company', + id: '20202020-f86b-419f-b794-02319abe8637', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Hasura', + idealCustomerProfile: false, + accountOwner: null, + domainName: 'hasura.io', + address: '', + previousEmployees: null, + position: 10, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzExLCAiMjAyMDIwMjAtNTUxOC00NTUzLTk0MzMtNDJkOGViODI4MzRiIl0=', + node: { + __typename: 'Company', + id: '20202020-5518-4553-9433-42d8eb82834b', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Wework', + idealCustomerProfile: false, + accountOwner: null, + domainName: 'wework.com', + address: '', + previousEmployees: null, + position: 11, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzEyLCAiMjAyMDIwMjAtZjc5ZS00MGRkLWJkMDYtYzM2ZTZhYmI0Njc4Il0=', + node: { + __typename: 'Company', + id: '20202020-f79e-40dd-bd06-c36e6abb4678', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Samsung', + idealCustomerProfile: false, + accountOwner: null, + domainName: 'samsung.com', + address: '', + previousEmployees: null, + position: 12, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + { + __typename: 'CompanyEdge', + cursor: 'WzEzLCAiMjAyMDIwMjAtMTQ1NS00YzU3LWFmYWYtZGQ1ZGMwODYzNjFkIl0=', + node: { + __typename: 'Company', + id: '20202020-1455-4c57-afaf-dd5dc086361d', + employees: null, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Algolia', + idealCustomerProfile: false, + accountOwner: null, + domainName: 'algolia.com', + address: '', + previousEmployees: null, + position: 13, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + ], }, - { - __typename: 'Company', - id: 'b396e6b9-dc5c-4643-bcff-61b6cf7523ae', - domainName: 'aircall.io', - name: 'Aircall', - createdAt: '2023-04-26T10:12:42.33625+00:00', - updatedAt: '2023-04-26T10:23:42.33625+00:00', - address: '', - employees: 1, - accountOwnerId: null, - linkedinLink: { - url: 'https://www.linkedin.com/company/aircall/', - label: 'https://www.linkedin.com/company/aircall/', - }, - xLink: { - url: 'https://twitter.com/aircall', - label: 'https://twitter.com/aircall', - }, - annualRecurringRevenue: { amountMicros: 500000, currencyCode: 'USD' }, - idealCustomerProfile: false, - accountOwner: null, - Favorite: null, - }, - { - __typename: 'Company', - id: 'a674fa6c-1455-4c57-afaf-dd5dc086361d', - domainName: 'algolia.com', - name: 'Algolia', - createdAt: '2023-04-26T10:10:32.530184+00:00', - updatedAt: '2023-04-26T10:23:42.33625+00:00', - address: '', - employees: 1, - linkedinLink: { - url: 'https://www.linkedin.com/company/algolia/', - label: 'https://www.linkedin.com/company/algolia/', - }, - xLink: { - url: 'https://twitter.com/algolia', - label: 'https://twitter.com/algolia', - }, - annualRecurringRevenue: { amountMicros: 5000000, currencyCode: 'USD' }, - idealCustomerProfile: true, - accountOwner: null, - Favorite: null, - accountOwnerId: null, - }, - { - __typename: 'Company', - id: 'b1cfd51b-a831-455f-ba07-4e30671e1dc3', - domainName: 'apple.com', - name: 'Apple', - createdAt: '2023-03-21T06:30:25.39474+00:00', - updatedAt: '2023-04-26T10:23:42.33625+00:00', - address: '', - employees: 10, - linkedinLink: { - url: 'https://www.linkedin.com/company/apple/', - label: 'https://www.linkedin.com/company/apple/', - }, - xLink: { - url: 'https://twitter.com/apple', - label: 'https://twitter.com/apple', - }, - annualRecurringRevenue: { amountMicros: 1000000, currencyCode: 'USD' }, - idealCustomerProfile: false, - accountOwner: null, - Favorite: null, - accountOwnerId: null, - }, - { - __typename: 'Company', - id: '5c21e19e-e049-4393-8c09-3e3f8fb09ecb', - domainName: 'qonto.com', - name: 'Qonto', - createdAt: '2023-04-26T10:13:29.712485+00:00', - updatedAt: '2023-04-26T10:23:42.33625+00:00', - address: '10 rue de la Paix', - employees: 1, - linkedinLink: { - url: 'https://www.linkedin.com/company/qonto/', - label: 'https://www.linkedin.com/company/qonto/', - }, - xLink: { - url: 'https://twitter.com/qonto', - label: 'https://twitter.com/qonto', - }, - annualRecurringRevenue: { amountMicros: 5000000, currencyCode: 'USD' }, - idealCustomerProfile: false, - accountOwner: null, - Favorite: null, - accountOwnerId: null, - }, - { - __typename: 'Company', - id: '9d162de6-cfbf-4156-a790-e39854dcd4eb', - domainName: 'facebook.com', - name: 'Facebook', - createdAt: '2023-04-26T10:09:25.656555+00:00', - updatedAt: '2023-04-26T10:23:42.33625+00:00', - address: '', - employees: 1, - linkedinLink: { - url: 'https://www.linkedin.com/company/facebook/', - label: 'https://www.linkedin.com/company/facebook/', - }, - xLink: { - url: 'https://twitter.com/facebook', - label: 'https://twitter.com/facebook', - }, - annualRecurringRevenue: { amountMicros: 5000000, currencyCode: 'USD' }, - idealCustomerProfile: true, - accountOwner: null, - Favorite: null, - accountOwnerId: null, - }, - { - __typename: 'Company', - id: '9d162de6-cfbf-4156-a790-e39854dcd4ef', - domainName: 'sequoia.com', - name: 'Sequoia', - createdAt: '2023-04-26T10:09:25.656555+00:00', - updatedAt: '2023-04-26T10:23:42.33625+00:00', - address: '', - employees: 1, - linkedinLink: { - url: 'https://www.linkedin.com/company/sequoia/', - label: 'https://www.linkedin.com/company/sequoia/', - }, - xLink: { - url: 'https://twitter.com/sequoia', - label: 'https://twitter.com/sequoia', - }, - annualRecurringRevenue: { amountMicros: 5000000, currencyCode: 'USD' }, - idealCustomerProfile: true, - accountOwner: null, - Favorite: null, - accountOwnerId: null, - }, -]; - -export const mockedDuplicateCompanyData: MockedCompany = { - ...mockedCompaniesData[0], - id: '8b40856a-2ec9-4c03-8bc0-c032c89e1824', -}; - -export const mockedEmptyCompanyData = { - id: '9231e6ee-4cc2-4c7b-8c55-dff16f4d968a', - name: '', - domainName: '', - address: '', - accountOwner: null, - annualRecurringRevenue: null, - createdAt: null, - updatedAt: null, - employees: null, - idealCustomerProfile: null, - linkedinLink: null, - xLink: null, - _activityCount: null, - __typename: 'Company', }; diff --git a/packages/twenty-front/src/testing/mock-data/companiesV2.ts b/packages/twenty-front/src/testing/mock-data/companiesV2.ts deleted file mode 100644 index ad19e3f4ea..0000000000 --- a/packages/twenty-front/src/testing/mock-data/companiesV2.ts +++ /dev/null @@ -1,493 +0,0 @@ -import { Company } from '@/companies/types/Company'; -import { Favorite } from '@/favorites/types/Favorite'; -import { WorkspaceMember } from '@/workspace-member/types/WorkspaceMember'; -import { mockedCompaniesData } from '~/testing/mock-data/companies'; - -type MockedCompanyV2 = Omit & { - accountOwner: WorkspaceMember | null; - Favorite?: Pick | null; -}; - -export const mockedCompaniesDataV2: Array = [ - { - __typename: 'Company', - domainName: 'paris.com', - name: 'Test', - employees: null, - address: 'Paris France', - createdAt: '2024-05-27T11:23:05.954Z', - id: 'd55c240e-e4e0-4248-b56d-8004d1218a9c', - position: 6.109375, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 1000000000, - currencyCode: 'USD', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: 'paris.com', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-1553-45c6-a028-5a9064cce07f', - colorScheme: 'Light', - updatedAt: '2024-05-01T13:16:29.046Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-7169-42cf-bc47-1cfef15264b8', - userEmail: 'phil.schiler@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Phil', - lastName: 'Shiler', - }, - }, - }, - { - __typename: 'Company', - domainName: 'google.com', - name: 'Google', - employees: 10202, - address: 'Paris France', - createdAt: '2024-05-21T13:16:29.000Z', - id: '20202020-c21e-4ec2-873b-de4264d89025', - position: 7.5, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 1001000000, - currencyCode: 'USD', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: '', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-0687-4c41-b707-ed1bfca972a7', - colorScheme: 'Light', - updatedAt: '2024-05-30T09:00:31.127Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-9e3b-46d4-a556-88b9ddc2b034', - userEmail: 'tim@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Tim', - lastName: 'Apple', - }, - }, - }, - { - __typename: 'Company', - domainName: 'hasura.io', - name: 'Hasura', - employees: 102938102938, - address: '', - createdAt: '2024-05-16T13:16:29.000Z', - id: '20202020-f86b-419f-b794-02319abe8637', - position: 10, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: '', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-77d5-4cb6-b60a-f4a835a85d61', - colorScheme: 'Light', - updatedAt: '2024-05-01T13:16:29.046Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-3957-4908-9c36-2929a23f8357', - userEmail: 'jony.ive@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Jony', - lastName: 'Ive', - }, - }, - }, - { - __typename: 'Company', - domainName: 'netflix.com', - name: 'Netflix', - employees: null, - address: '', - createdAt: '2024-05-15T13:16:29.000Z', - id: '20202020-707e-44dc-a1d2-30030bf1a944', - position: 7, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 2000000000, - currencyCode: 'USD', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: '', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-1553-45c6-a028-5a9064cce07f', - colorScheme: 'Light', - updatedAt: '2024-05-01T13:16:29.046Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-7169-42cf-bc47-1cfef15264b8', - userEmail: 'phil.schiler@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Phil', - lastName: 'Shiler', - }, - }, - }, - { - __typename: 'Company', - domainName: 'claap.io', - name: 'Claap', - employees: 2131920, - address: 'asdasd', - createdAt: '2024-05-10T13:16:29.000Z', - id: '20202020-cfbf-4156-a790-e39854dcd4eb', - position: 9, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: 'asmdlkasd', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-0687-4c41-b707-ed1bfca972a7', - colorScheme: 'Light', - updatedAt: '2024-05-30T09:00:31.127Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-9e3b-46d4-a556-88b9ddc2b034', - userEmail: 'tim@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Tim', - lastName: 'Apple', - }, - }, - }, - { - __typename: 'Company', - domainName: 'libeo.io', - name: 'Libeo', - employees: 1239819238, - address: '', - createdAt: '2024-05-09T13:16:29.000Z', - id: '20202020-3f74-492d-a101-2a70f50a1645', - position: 8, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: '', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-1553-45c6-a028-5a9064cce07f', - colorScheme: 'Light', - updatedAt: '2024-05-01T13:16:29.046Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-7169-42cf-bc47-1cfef15264b8', - userEmail: 'phil.schiler@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Phil', - lastName: 'Shiler', - }, - }, - }, - { - __typename: 'Company', - domainName: 'qonto.com', - name: 'Qonto', - employees: 123123123, - address: '', - createdAt: '2024-05-08T13:16:29.000Z', - id: '20202020-0713-40a5-8216-82802401d33e', - position: 9.5, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: '', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-1553-45c6-a028-5a9064cce07f', - colorScheme: 'Light', - updatedAt: '2024-05-01T13:16:29.046Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-7169-42cf-bc47-1cfef15264b8', - userEmail: 'phil.schiler@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Phil', - lastName: 'Shiler', - }, - }, - }, - { - __typename: 'Company', - domainName: 'wework.com', - name: 'Wework', - employees: 123123123, - address: '', - createdAt: '2024-05-08T13:16:29.000Z', - id: '20202020-5518-4553-9433-42d8eb82834b', - position: 11, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: '', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-0687-4c41-b707-ed1bfca972a7', - colorScheme: 'Light', - updatedAt: '2024-05-30T09:00:31.127Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-9e3b-46d4-a556-88b9ddc2b034', - userEmail: 'tim@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Tim', - lastName: 'Apple', - }, - }, - }, - { - __typename: 'Company', - domainName: 'linkedin.com', - name: 'Linkedin', - employees: 10102, - accountOwner: null, - address: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-3ec3-4fe3-8997-b76aa0bfa408', - position: 1, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { - __typename: 'Link', - label: 'adasd', - url: 'adasd', - }, - }, - { - __typename: 'Company', - domainName: 'airbnb.com', - name: 'Airbnb', - employees: 123333, - accountOwner: null, - address: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-171e-4bcc-9cf7-43448d6fb278', - position: 5, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: '', - }, - }, - { - __typename: 'Company', - domainName: 'samsung.com', - name: 'Samsung', - employees: 10000, - address: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-f79e-40dd-bd06-c36e6abb4678', - position: 12, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: '', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-1553-45c6-a028-5a9064cce07f', - colorScheme: 'Light', - updatedAt: '2024-05-01T13:16:29.046Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-7169-42cf-bc47-1cfef15264b8', - userEmail: 'phil.schiler@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Phil', - lastName: 'Shiler', - }, - }, - }, - { - __typename: 'Company', - domainName: 'algolia.com', - name: 'Algolia', - employees: 10000, - address: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-1455-4c57-afaf-dd5dc086361d', - position: 13, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: '', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-77d5-4cb6-b60a-f4a835a85d61', - colorScheme: 'Light', - updatedAt: '2024-05-01T13:16:29.046Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-3957-4908-9c36-2929a23f8357', - userEmail: 'jony.ive@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Jony', - lastName: 'Ive', - }, - }, - }, - { - __typename: 'Company', - domainName: 'facebook.com', - name: 'Facebook', - employees: 220323, - accountOwner: null, - address: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-5d81-46d6-bf83-f7fd33ea6102', - position: 6.0625, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: 'asdasd', - }, - }, - { - __typename: 'Company', - domainName: 'microsoft.com', - name: 'Microsoft', - employees: 10000, - address: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-ed89-413a-b31a-962986e67bb4', - position: 6.09375, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 10000000000, - currencyCode: 'USD', - }, - linkedinLink: { - __typename: 'Link', - label: '', - url: '', - }, - accountOwner: { - __typename: 'WorkspaceMember', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-0687-4c41-b707-ed1bfca972a7', - colorScheme: 'Light', - updatedAt: '2024-05-30T09:00:31.127Z', - locale: 'en', - avatarUrl: '', - userId: '20202020-9e3b-46d4-a556-88b9ddc2b034', - userEmail: 'tim@apple.dev', - name: { - __typename: 'FullName', - firstName: 'Tim', - lastName: 'Apple', - }, - }, - }, -]; - -export const mockedDuplicateCompanyData: MockedCompanyV2 = { - ...mockedCompaniesData[0], - id: '8b40856a-2ec9-4c03-8bc0-c032c89e1824', -}; - -export const mockedEmptyCompanyData = { - id: '9231e6ee-4cc2-4c7b-8c55-dff16f4d968a', - name: '', - domainName: '', - address: '', - accountOwner: null, - annualRecurringRevenue: null, - createdAt: null, - updatedAt: null, - employees: null, - idealCustomerProfile: null, - linkedinLink: null, - xLink: null, - _activityCount: null, - __typename: 'Company', -}; 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 index 7adbd67f30..c31eaaa657 100644 --- 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 @@ -12,13241 +12,13366 @@ import { CalendarChannelVisibility, MessageChannelVisibility } from "~/generated 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', - options: null, - 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, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - 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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - 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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: 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: '2024-04-08T12:48:49.538Z', - updatedAt: '2024-04-08T12:48:49.538Z', - defaultValue: null, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - 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', - options: null, - 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'", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - 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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - 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', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - 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', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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'", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - 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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - 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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - 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: `'${CalendarChannelVisibility.ShareEverything}'`, - options: [ - { - id: 'b60eeb97-c67b-4d01-b647-1143d58ed49f', - color: 'green', - label: 'Metadata', - value: CalendarChannelVisibility.Metadata, - position: 0, - }, - { - id: '7064c804-deb0-4f65-b7d6-3fe4df9a474c', - color: 'orange', - label: 'Share Everything', - value: CalendarChannelVisibility.ShareEverything, - position: 1, - }, - ], - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - 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', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - id: '7ada51cb-58be-42cd-86df-16c3f2bb8b58', - type: FieldMetadataType.Phone, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - }, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: null, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: null, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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'", - 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', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - 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', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - 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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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'", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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'", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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'", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - }, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - id: '24147b01-4394-4aee-92a4-5f6b5073704f', - type: 'DATE_TIME', - name: 'syncStageStartedAt', - label: 'Sync stage started at', - description: 'Sync stage 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - 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: `'${MessageChannelVisibility.ShareEverything}'`, - options: [ - { - id: '112e7633-0451-4f7e-bc79-f988b78fabb8', - color: 'green', - label: 'Metadata', - value: MessageChannelVisibility.Metadata, - position: 0, - }, - { - id: '148143c4-882d-4c94-b8db-ead6f4581ab1', - color: 'blue', - label: 'Subject', - value: MessageChannelVisibility.Subject, - position: 1, - }, - { - id: '9bf90844-93cf-4c0a-95e9-02f7d5fa397f', - color: 'orange', - label: 'Share Everything', - value: MessageChannelVisibility.ShareEverything, - 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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - 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', - options: null, - 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', - 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', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - 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', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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'", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - }, - 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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - }, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - 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', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - 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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - 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', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: `'${CurrencyCode.USD}'`, - }, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: null, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - }, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - 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', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - 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', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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: "''", - 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', - options: null, - 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: "''", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - 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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: true, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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, - isRemote: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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, - isRemote: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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, - isRemote: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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, - isRemote: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - 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', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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, - isRemote: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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'", - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - 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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - isRemote: false, - isSystem: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - 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', - isRemote: false, - isSystem: false, - }, - }, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - fromRelationMetadata: null, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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, - isRemote: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - fromRelationMetadata: null, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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, - isRemote: false, - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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', - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - relationDefinition: null, - fromRelationMetadata: null, - toRelationMetadata: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - options: null, - 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, - 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, - isRemote: false, - }, - }, - relationDefinition: { - relationId: '6a0aa90c-d7bb-458d-9364-12366fc8683b', - __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[], - }, + "__typename": "ObjectConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjI4" + }, + "edges": [ + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "ff218fee-2274-4c2e-91b2-ff56249ce144", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "a7e6e901-e96b-46fd-8138-4883b8a5107a", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "105bb68b-9422-40cb-9857-7c421a0ef844", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "50f1dba6-68b1-4b91-8d2f-6f8a7dc00899", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ed7b7c8a-84ea-40c2-af56-8b34e4316585", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "57d32dec-d975-4e0d-bcd8-4fb4eaba978d", + "type": "RELATION", + "name": "messageThread", + "label": "Message Thread Id", + "description": "Message Thread Id", + "icon": "IconHash", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "8518d75e-58c3-46c2-a111-a43f3987bb5a", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ff218fee-2274-4c2e-91b2-ff56249ce144", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "57d32dec-d975-4e0d-bcd8-4fb4eaba978d", + "name": "messageThread" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "8a811392-01fa-4725-bf18-6f94e60d9d8e", + "nameSingular": "messageThread", + "namePlural": "messageThreads" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "c89757a5-8251-4b4f-a5ec-8aba89a50a49", + "name": "messageChannelMessageAssociations" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "8518d75e-58c3-46c2-a111-a43f3987bb5a", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "c89757a5-8251-4b4f-a5ec-8aba89a50a49", + "fromObjectMetadata": { + "__typename": "object", + "id": "8a811392-01fa-4725-bf18-6f94e60d9d8e", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "messageThread", + "namePlural": "messageThreads", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "24f85128-df33-47c7-8126-9bcb65670f76", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0eedf2e2-3b5b-427c-9d6e-b5c3773856d2", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e100f9e7-aff5-46ea-bff6-3239a01ea828", + "type": "RELATION", + "name": "message", + "label": "Message Id", + "description": "Message Id", + "icon": "IconHash", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "a098dd38-d544-43c2-ad72-eee88fa60b9c", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ff218fee-2274-4c2e-91b2-ff56249ce144", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "e100f9e7-aff5-46ea-bff6-3239a01ea828", + "name": "message" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ef2f11c1-d293-4774-bd79-006a8f367fd8", + "nameSingular": "message", + "namePlural": "messages" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "2950341d-338c-46ed-a866-61a5c397e558", + "name": "messageChannelMessageAssociations" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "a098dd38-d544-43c2-ad72-eee88fa60b9c", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "2950341d-338c-46ed-a866-61a5c397e558", + "fromObjectMetadata": { + "__typename": "object", + "id": "ef2f11c1-d293-4774-bd79-006a8f367fd8", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "message", + "namePlural": "messages", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4bddaa2a-d49f-414f-919e-d40f936af413", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c279d1a1-b4a2-424a-b61f-cfe986b4b1f0", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "57b02715-a5e9-42fc-92c2-23d8a4aac792", + "type": "RELATION", + "name": "messageChannel", + "label": "Message Channel Id", + "description": "Message Channel Id", + "icon": "IconHash", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "965a3bf0-b43a-4391-a26f-27a1bd30476f", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ff218fee-2274-4c2e-91b2-ff56249ce144", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "57b02715-a5e9-42fc-92c2-23d8a4aac792", + "name": "messageChannel" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ad8a423b-20c4-4545-abd3-1694294406e5", + "nameSingular": "messageChannel", + "namePlural": "messageChannels" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "198509cb-277f-4da0-acde-482cd52cd814", + "name": "messageChannelMessageAssociations" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "965a3bf0-b43a-4391-a26f-27a1bd30476f", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "198509cb-277f-4da0-acde-482cd52cd814", + "fromObjectMetadata": { + "__typename": "object", + "id": "ad8a423b-20c4-4545-abd3-1694294406e5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "messageChannel", + "namePlural": "messageChannels", + "isSystem": true, + "isRemote": false + } + } + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "company", + "namePlural": "companies", + "labelSingular": "Company", + "labelPlural": "Companies", + "description": "A company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "661391a1-6655-424b-b1c2-d8b5722aec49", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": false, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "29f5afd2-b0e3-43b9-bcd1-f9a767192dba", + "type": "RELATION", + "name": "people", + "label": "People", + "description": "People linked to the company.", + "icon": "IconUsers", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "2b293dd1-7b1e-4349-b77d-5d1effe53cf7", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "29f5afd2-b0e3-43b9-bcd1-f9a767192dba", + "name": "people" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8cfc11ef-201d-4fb6-9cfd-f82a872a3f77", + "name": "company" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "2b293dd1-7b1e-4349-b77d-5d1effe53cf7", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "8cfc11ef-201d-4fb6-9cfd-f82a872a3f77", + "toObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "person", + "namePlural": "people", + "isSystem": false, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8fcf63f1-91cd-42c7-bc6d-99f21ab3e9af", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "4d810e79-eae5-4212-984b-8e95632fd07d", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8fcf63f1-91cd-42c7-bc6d-99f21ab3e9af", + "name": "accountOwner" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "79edf404-895d-4db5-9c93-140c547d5af9", + "name": "accountOwnerForCompanies" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "4d810e79-eae5-4212-984b-8e95632fd07d", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "79edf404-895d-4db5-9c93-140c547d5af9", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fb558bde-aad6-4d0b-a4c6-54750c530e5e", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Attachments linked to the company", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "36daf4c7-9fdf-48f3-9baf-a60d290b729c", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "fb558bde-aad6-4d0b-a4c6-54750c530e5e", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8e9ba278-5293-4e30-9faf-369eb3459790", + "name": "company" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "36daf4c7-9fdf-48f3-9baf-a60d290b729c", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "8e9ba278-5293-4e30-9faf-369eb3459790", + "toObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "attachment", + "namePlural": "attachments", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e214ccd0-756d-49aa-ba7a-1b7b47ceaa65", + "type": "RELATION", + "name": "opportunities", + "label": "Opportunities", + "description": "Opportunities linked to the company.", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "ab95d4bd-fa78-43b0-ba0b-7414a4bc85f0", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "e214ccd0-756d-49aa-ba7a-1b7b47ceaa65", + "name": "opportunities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "fd2615ef-8c24-47e6-862c-ed2b0d9eddf4", + "name": "company" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "ab95d4bd-fa78-43b0-ba0b-7414a4bc85f0", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "fd2615ef-8c24-47e6-862c-ed2b0d9eddf4", + "toObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "opportunity", + "namePlural": "opportunities", + "isSystem": false, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "245f5a05-4fac-4e17-8a74-abb8113ca6a3", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": { + "amountMicros": null, + "currencyCode": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8558d1d1-7c48-4222-a41f-acff24ea695b", + "type": "RELATION", + "name": "timelineActivities", + "label": "Timeline Activities", + "description": "Timeline Activities linked to the company", + "icon": "IconIconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "44825151-f568-4e5b-833a-70093068fb37", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8558d1d1-7c48-4222-a41f-acff24ea695b", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "0c27da2b-afde-48bc-90f4-c58c1f6bd1d1", + "name": "company" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "44825151-f568-4e5b-833a-70093068fb37", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "0c27da2b-afde-48bc-90f4-c58c1f6bd1d1", + "toObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "516f8e21-ffe3-4d1c-814d-996048e8559e", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Company record position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bdff89f8-3731-42f6-acb9-228181e8c99a", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c66e1086-cbcf-46f8-abec-19d141a83a10", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f80b2ce2-1836-4533-8c22-08eb8ebaa002", + "type": "TEXT", + "name": "address", + "label": "Address", + "description": "The company address", + "icon": "IconMap", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "78363357-09c3-450d-b335-9d9cd219b784", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "The company name", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6b97ae7c-9b97-4a8f-885b-7f8ee3122a7d", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "efaa1ccd-4c1f-4d81-9d30-f93030d32190", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the company", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "b45f0926-607e-418f-9e26-613594f97868", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "efaa1ccd-4c1f-4d81-9d30-f93030d32190", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "f56c8d42-3894-4ccf-8588-ad97d2a7df0a", + "name": "company" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "b45f0926-607e-418f-9e26-613594f97868", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "f56c8d42-3894-4ccf-8588-ad97d2a7df0a", + "toObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "favorite", + "namePlural": "favorites", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dddef9c7-6dc3-492e-b35a-6e2b2e0eb1e6", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c5938b67-e0e5-471b-94eb-32bfc7f8b4c6", + "type": "RELATION", + "name": "activityTargets", + "label": "Activities", + "description": "Activities tied to the company", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "63a61588-de8c-47ec-b695-da342836625f", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "c5938b67-e0e5-471b-94eb-32bfc7f8b4c6", + "name": "activityTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "1e7a5c6f-b913-4349-a672-295018c2437c", + "name": "company" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "63a61588-de8c-47ec-b695-da342836625f", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "1e7a5c6f-b913-4349-a672-295018c2437c", + "toObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "activityTarget", + "namePlural": "activityTargets", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d85ca4ac-d23a-4a72-8cec-95d1d9de84f5", + "type": "LINK", + "name": "xLink", + "label": "X", + "description": "The company Twitter/X account", + "icon": "IconBrandX", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": { + "url": "''", + "label": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6d35699a-5f7b-44b9-843e-2f6a267a4d90", + "type": "LINK", + "name": "linkedinLink", + "label": "Linkedin", + "description": "The company Linkedin account", + "icon": "IconBrandLinkedin", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": { + "url": "''", + "label": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "688991bc-3bb7-4515-ab65-7b6a85cd791c", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c09e6901-108d-48b4-a854-bd693104cbe5", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "person", + "namePlural": "people", + "labelSingular": "Person", + "labelPlural": "People", + "description": "A person", + "icon": "IconUser", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "labelIdentifierFieldMetadataId": null, + "imageIdentifierFieldMetadataId": null, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjI5" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8c2a0d3d-3c52-4ae2-b78a-852b5775b377", + "type": "ADDRESS", + "name": "testAddress", + "label": "Test address", + "description": null, + "icon": "IconUsers", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:32:19.818Z", + "updatedAt": "2024-06-07T09:32:19.818Z", + "defaultValue": { + "addressLat": null, + "addressLng": null, + "addressCity": "''", + "addressState": "''", + "addressCountry": "''", + "addressStreet1": "''", + "addressStreet2": "''", + "addressPostcode": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d987bd9a-f83b-4238-8260-42511d8f2aba", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2df6ebe6-7fc5-4220-b672-881788798001", + "type": "LINK", + "name": "xLink", + "label": "X", + "description": "Contact’s X/Twitter account", + "icon": "IconBrandX", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": { + "url": "''", + "label": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "64564882-8823-4b00-8cc5-2cc6d8cbc23c", + "type": "FULL_NAME", + "name": "name", + "label": "Name", + "description": "Contact’s name", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": { + "lastName": "''", + "firstName": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8a0d463e-00b2-4053-b972-a4824a9dfbaf", + "type": "MULTI_SELECT", + "name": "testMultiSelect", + "label": "Test multi select", + "description": null, + "icon": "IconUsers", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:39:20.747Z", + "updatedAt": "2024-06-07T09:39:20.747Z", + "defaultValue": null, + "options": [ + { + "id": "c39d006a-4bef-4b8d-98ee-29ef7218750f", + "color": "green", + "label": "Option 1", + "value": "OPTION_1", + "position": 0 + }, + { + "id": "b7aa0c66-ba2f-434f-80ec-149a9325549f", + "color": "turquoise", + "label": "Option 2", + "value": "OPTION_2", + "position": 1 + }, + { + "id": "01b3d48b-3d29-4769-b9ab-b6dd029179ae", + "color": "sky", + "label": "Option 3", + "value": "OPTION_3", + "position": 2 + }, + { + "id": "438a6323-d33e-40ea-9ce8-0a6cd2db6ddf", + "color": "blue", + "label": "Option 4", + "value": "OPTION_4", + "position": 3 + }, + { + "id": "2d6449fd-7b3a-4c44-8892-7f4a5485ba7f", + "color": "purple", + "label": "Option 5", + "value": "OPTION_5", + "position": 4 + }, + { + "id": "78d6cb72-b065-4c9c-b4ee-d63b813bf6c4", + "color": "pink", + "label": "Option 6", + "value": "OPTION_6", + "position": 5 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7b1e5fbc-1418-4e35-9df2-5f5e3b64a2dd", + "type": "RELATION", + "name": "messageParticipants", + "label": "Message Participants", + "description": "Message Participants", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "e2296019-f6ef-4bab-aa5e-2cd60b4c886c", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "7b1e5fbc-1418-4e35-9df2-5f5e3b64a2dd", + "name": "messageParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "810c0e7f-5e65-4d68-8596-1e585862bee9", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "392dc86a-75b5-433e-9a1e-ef11e022e975", + "name": "person" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "e2296019-f6ef-4bab-aa5e-2cd60b4c886c", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "392dc86a-75b5-433e-9a1e-ef11e022e975", + "toObjectMetadata": { + "__typename": "object", + "id": "810c0e7f-5e65-4d68-8596-1e585862bee9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f75a661f-531f-4df3-a2da-0ffe1c34ac51", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a1f598f7-f449-40e5-84c7-69d31842f683", + "type": "LINKS", + "name": "testLinks", + "label": "Test links", + "description": null, + "icon": "IconUsers", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:32:46.002Z", + "updatedAt": "2024-06-07T09:37:05.524Z", + "defaultValue": { + "primaryLinkUrl": "''", + "secondaryLinks": null, + "primaryLinkLabel": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2ab56606-c3b4-451e-a73a-c01c96f35055", + "type": "TEXT", + "name": "avatarUrl", + "label": "Avatar", + "description": "Contact’s avatar", + "icon": "IconFileUpload", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dbb954bf-992b-4d62-b492-1dd25226b7e4", + "type": "DATE", + "name": "testDate", + "label": "Test date", + "description": null, + "icon": "IconUsers", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:38:48.913Z", + "updatedAt": "2024-06-07T09:38:48.913Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "812aea3f-b533-43a1-b8bd-b87aaa84c76e", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the contact", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "313373c0-98af-4e63-9ecd-e689302ea794", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "812aea3f-b533-43a1-b8bd-b87aaa84c76e", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "83e3f065-3419-424d-b46e-76e0d422bacc", + "name": "person" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "313373c0-98af-4e63-9ecd-e689302ea794", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "83e3f065-3419-424d-b46e-76e0d422bacc", + "toObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "favorite", + "namePlural": "favorites", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2e35f235-2139-478c-a540-e9bccd9c0a4d", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Person record Position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "31d8c0d4-a2a2-4d28-9ea2-d55f287d8999", + "type": "SELECT", + "name": "testSelect", + "label": "Test select", + "description": null, + "icon": "IconUsers", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:39:03.797Z", + "updatedAt": "2024-06-07T09:39:03.797Z", + "defaultValue": null, + "options": [ + { + "id": "05410d4f-3447-4b3a-836b-6724876ee9bc", + "color": "green", + "label": "Option 1", + "value": "OPTION_1", + "position": 0 + }, + { + "id": "d0165ddd-7ad5-4a19-9cfb-5596ebc4a41b", + "color": "turquoise", + "label": "Option 2", + "value": "OPTION_2", + "position": 1 + }, + { + "id": "d2747df7-44dc-4cd1-ae4d-76559bf35e4e", + "color": "sky", + "label": "Option 3", + "value": "OPTION_3", + "position": 2 + }, + { + "id": "696cdf92-d12c-4a74-ab57-70a9f7f62de9", + "color": "blue", + "label": "Option 4", + "value": "OPTION_4", + "position": 3 + }, + { + "id": "fc6ba02d-6853-490d-97e5-9ddea4f0ab20", + "color": "purple", + "label": "Option 5", + "value": "OPTION_5", + "position": 4 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7a39618f-1aa7-4a6d-8965-fd6a1a4b7c20", + "type": "NUMBER", + "name": "testNumber", + "label": "Test number", + "description": null, + "icon": "IconUsers", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:38:36.510Z", + "updatedAt": "2024-06-07T09:38:36.510Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "062edd24-2b82-47b4-903c-4d5ba8756d9d", + "type": "BOOLEAN", + "name": "testBoolean", + "label": "Test boolean", + "description": null, + "icon": "IconUsers", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:32:57.922Z", + "updatedAt": "2024-06-07T09:39:40.715Z", + "defaultValue": true, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a1ff7641-5c7f-4dce-8264-455666d77450", + "type": "LINK", + "name": "linkedinLink", + "label": "Linkedin", + "description": "Contact’s Linkedin account", + "icon": "IconBrandLinkedin", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": { + "url": "''", + "label": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "adcf8f46-55b8-4060-af85-cbdb82308aca", + "type": "RELATION", + "name": "timelineActivities", + "label": "Events", + "description": "Events linked to the company", + "icon": "IconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "05f685a8-eda1-4c8d-a367-4d165f1b5ee0", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "adcf8f46-55b8-4060-af85-cbdb82308aca", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "d5c27551-c047-4409-8cfb-346056cb9b92", + "name": "person" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "05f685a8-eda1-4c8d-a367-4d165f1b5ee0", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "d5c27551-c047-4409-8cfb-346056cb9b92", + "toObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a2534d90-aaf2-474b-84da-77492ce31c0b", + "type": "EMAIL", + "name": "email", + "label": "Email", + "description": "Contact’s Email", + "icon": "IconMail", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cd47c9fc-e5d1-43f5-ba2f-d3357b6d86c6", + "type": "TEXT", + "name": "city", + "label": "City", + "description": "Contact’s city", + "icon": "IconMap", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dd71f23a-4717-475c-9765-df35ee7adf57", + "type": "LINK", + "name": "testLink", + "label": "Test link", + "description": null, + "icon": "IconUsers", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:32:35.068Z", + "updatedAt": "2024-06-07T09:37:13.904Z", + "defaultValue": { + "url": "''", + "label": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5c9c1774-1f7d-4b7e-ba08-5ddd3dae09f1", + "type": "RELATION", + "name": "calendarEventParticipants", + "label": "Calendar Event Participants", + "description": "Calendar Event Participants", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "c8a635ef-198d-44a3-98cc-f803f5a1700f", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "5c9c1774-1f7d-4b7e-ba08-5ddd3dae09f1", + "name": "calendarEventParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "c8fcc468-5891-4938-abf8-ad4d99078d7c", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "9ff8ffc5-4747-4729-a72c-f2f9860b8aa2", + "name": "person" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "c8a635ef-198d-44a3-98cc-f803f5a1700f", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "9ff8ffc5-4747-4729-a72c-f2f9860b8aa2", + "toObjectMetadata": { + "__typename": "object", + "id": "c8fcc468-5891-4938-abf8-ad4d99078d7c", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ccefd09d-2d62-4ac2-9920-a0dfd8603d9b", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7dfcf973-36cd-4dd7-8405-31807108f465", + "type": "TEXT", + "name": "phone", + "label": "Phone", + "description": "Contact’s phone number", + "icon": "IconPhone", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f67cab28-c0f0-4cc3-9878-366bf34d5d9d", + "type": "RAW_JSON", + "name": "testJson", + "label": "Test JSON", + "description": null, + "icon": "IconUsers", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:40:06.402Z", + "updatedAt": "2024-06-07T09:40:06.402Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "48459697-8b98-474d-a114-f4cc4b0a91b1", + "type": "RELATION", + "name": "activityTargets", + "label": "Activities", + "description": "Activities tied to the contact", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "b60d73fb-4bff-4c74-9376-e638bfd4a715", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "48459697-8b98-474d-a114-f4cc4b0a91b1", + "name": "activityTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "44a6181f-f572-4fc1-ba33-09c4499514a1", + "name": "person" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "b60d73fb-4bff-4c74-9376-e638bfd4a715", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "44a6181f-f572-4fc1-ba33-09c4499514a1", + "toObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "activityTarget", + "namePlural": "activityTargets", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8cfc11ef-201d-4fb6-9cfd-f82a872a3f77", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "Contact’s company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "2b293dd1-7b1e-4349-b77d-5d1effe53cf7", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8cfc11ef-201d-4fb6-9cfd-f82a872a3f77", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "29f5afd2-b0e3-43b9-bcd1-f9a767192dba", + "name": "people" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "2b293dd1-7b1e-4349-b77d-5d1effe53cf7", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "29f5afd2-b0e3-43b9-bcd1-f9a767192dba", + "fromObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "company", + "namePlural": "companies", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "137ce599-3dfe-4021-a437-03a787f74cec", + "type": "TEXT", + "name": "jobTitle", + "label": "Job Title", + "description": "Contact’s job title", + "icon": "IconBriefcase", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "326f4ddb-7e33-415a-8bee-11e886e08b52", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "489177bb-2349-4319-9fda-efb466487ccb", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "cb2d1429-2bed-4ad5-9c4d-5637efbdb339", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "489177bb-2349-4319-9fda-efb466487ccb", + "name": "pointOfContactForOpportunities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "c6008099-5271-43d6-9ab5-55a1d7be7d1b", + "name": "pointOfContact" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "cb2d1429-2bed-4ad5-9c4d-5637efbdb339", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "c6008099-5271-43d6-9ab5-55a1d7be7d1b", + "toObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "opportunity", + "namePlural": "opportunities", + "isSystem": false, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "50024036-0722-4727-bdff-ea073fcdc831", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Attachments linked to the contact.", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "4b99c7e5-a47e-4919-93fb-056f7813ce39", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "50024036-0722-4727-bdff-ea073fcdc831", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "179aa192-8b24-49ba-a9a2-e81b19f6ac6e", + "name": "person" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "4b99c7e5-a47e-4919-93fb-056f7813ce39", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "179aa192-8b24-49ba-a9a2-e81b19f6ac6e", + "toObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "attachment", + "namePlural": "attachments", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "f2785a7a-b2b7-4ce7-9042-ec63b49931eb", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "view", + "namePlural": "views", + "labelSingular": "View", + "labelPlural": "Views", + "description": "(System) Views", + "icon": "IconLayoutCollage", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "03ffaeae-992b-45f3-a3da-03fff10c93cb", + "type": "TEXT", + "name": "kanbanFieldMetadataId", + "label": "kanbanfieldMetadataId", + "description": "View Kanban column field", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f254836c-5164-4125-9f6e-5f278fa08e5f", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b97bc9bb-3e68-40d2-9b33-c2937915fc9f", + "type": "RELATION", + "name": "viewFields", + "label": "View Fields", + "description": "View Fields", + "icon": "IconTag", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0e501570-837b-4473-af63-07400ce99b52", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2785a7a-b2b7-4ce7-9042-ec63b49931eb", + "nameSingular": "view", + "namePlural": "views" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "b97bc9bb-3e68-40d2-9b33-c2937915fc9f", + "name": "viewFields" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "7fb647a5-af0b-4f95-8428-fa72571a8bee", + "nameSingular": "viewField", + "namePlural": "viewFields" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "4f355b63-a015-488e-8d67-ea8c2c28e58a", + "name": "view" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "0e501570-837b-4473-af63-07400ce99b52", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "4f355b63-a015-488e-8d67-ea8c2c28e58a", + "toObjectMetadata": { + "__typename": "object", + "id": "7fb647a5-af0b-4f95-8428-fa72571a8bee", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "viewField", + "namePlural": "viewFields", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4b4e38fe-4cf5-4504-8a62-f34f593dda92", + "type": "RELATION", + "name": "viewSorts", + "label": "View Sorts", + "description": "View Sorts", + "icon": "IconArrowsSort", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "d94fad0b-db58-4f7b-b546-5f86d645ebca", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2785a7a-b2b7-4ce7-9042-ec63b49931eb", + "nameSingular": "view", + "namePlural": "views" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "4b4e38fe-4cf5-4504-8a62-f34f593dda92", + "name": "viewSorts" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "a5521923-2a4f-4dff-8330-69ba0b26ea73", + "nameSingular": "viewSort", + "namePlural": "viewSorts" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "9daddfd5-c437-45cd-8070-311c049d36fb", + "name": "view" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "d94fad0b-db58-4f7b-b546-5f86d645ebca", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "9daddfd5-c437-45cd-8070-311c049d36fb", + "toObjectMetadata": { + "__typename": "object", + "id": "a5521923-2a4f-4dff-8330-69ba0b26ea73", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "viewSort", + "namePlural": "viewSorts", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8a96c5d8-43e9-42f1-be4a-473189a316d6", + "type": "TEXT", + "name": "type", + "label": "Type", + "description": "View type", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'table'", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2d03e711-7791-4c1d-bb40-378232397120", + "type": "RELATION", + "name": "viewFilters", + "label": "View Filters", + "description": "View Filters", + "icon": "IconFilterBolt", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "09c6bd7d-7601-4dd2-b143-9f08b25a5566", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2785a7a-b2b7-4ce7-9042-ec63b49931eb", + "nameSingular": "view", + "namePlural": "views" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "2d03e711-7791-4c1d-bb40-378232397120", + "name": "viewFilters" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "8c617a9b-9e5e-4b8a-951e-4b4066786a26", + "nameSingular": "viewFilter", + "namePlural": "viewFilters" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "aaee6a8c-b7d4-4de0-9bdc-de5c1fe9b539", + "name": "view" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "09c6bd7d-7601-4dd2-b143-9f08b25a5566", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "aaee6a8c-b7d4-4de0-9bdc-de5c1fe9b539", + "toObjectMetadata": { + "__typename": "object", + "id": "8c617a9b-9e5e-4b8a-951e-4b4066786a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "viewFilter", + "namePlural": "viewFilters", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cdf0bf44-ecd7-4404-b3b4-9b4859256482", + "type": "UUID", + "name": "objectMetadataId", + "label": "Object Metadata Id", + "description": "View target object", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5b406d20-f904-4752-9ebf-25978bb59669", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "67f3e4d2-2139-4c0c-91a1-2dc423423e19", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "View position", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "31e2dd00-bff3-43e3-8c5f-cfa526acf891", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "View name", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "77397ee3-5f66-42fe-91a6-28bc02b4f577", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": false, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0bb67fec-fc79-40c0-b6cd-b48443ad8140", + "type": "TEXT", + "name": "icon", + "label": "Icon", + "description": "View icon", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b61118a7-6518-4b9f-b04a-221044ee54db", + "type": "SELECT", + "name": "key", + "label": "Key", + "description": "View key", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'INDEX'", + "options": [ + { + "id": "f4917981-10ac-401e-a10a-3b25ade2d591", + "color": "red", + "label": "Index", + "value": "INDEX", + "position": 0 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a62d649e-477f-41f9-8db5-eb8dbf42ddf6", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "ef2f11c1-d293-4774-bd79-006a8f367fd8", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "message", + "namePlural": "messages", + "labelSingular": "Message", + "labelPlural": "Messages", + "description": "Message", + "icon": "IconMessage", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "e9ea5897-dc2f-4ec6-9973-90d07423db5b", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "291d8c74-2bb0-4c3e-9ecf-8c395db03116", + "type": "SELECT", + "name": "direction", + "label": "Direction", + "description": "Message Direction", + "icon": "IconDirection", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'incoming'", + "options": [ + { + "id": "74a83a9f-a1cd-4853-901b-16c519e49241", + "color": "green", + "label": "Incoming", + "value": "incoming", + "position": 0 + }, + { + "id": "81fb5d1f-26bd-44c1-9a17-bf4ec61c3e90", + "color": "blue", + "label": "Outgoing", + "value": "outgoing", + "position": 1 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ed99d901-e5d9-4746-8114-bd57e6816f2d", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c896468d-8186-401c-8e75-11e8bdfca03a", + "type": "TEXT", + "name": "text", + "label": "Text", + "description": "Text", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2950341d-338c-46ed-a866-61a5c397e558", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "a098dd38-d544-43c2-ad72-eee88fa60b9c", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ef2f11c1-d293-4774-bd79-006a8f367fd8", + "nameSingular": "message", + "namePlural": "messages" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "2950341d-338c-46ed-a866-61a5c397e558", + "name": "messageChannelMessageAssociations" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ff218fee-2274-4c2e-91b2-ff56249ce144", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "e100f9e7-aff5-46ea-bff6-3239a01ea828", + "name": "message" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "a098dd38-d544-43c2-ad72-eee88fa60b9c", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "e100f9e7-aff5-46ea-bff6-3239a01ea828", + "toObjectMetadata": { + "__typename": "object", + "id": "ff218fee-2274-4c2e-91b2-ff56249ce144", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e881701e-03c3-49ed-b0c7-c028f81244ab", + "type": "RELATION", + "name": "messageThread", + "label": "Message Thread Id", + "description": "Message Thread Id", + "icon": "IconHash", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "9ad26c7f-9db7-495b-b6d5-c49ea634d167", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ef2f11c1-d293-4774-bd79-006a8f367fd8", + "nameSingular": "message", + "namePlural": "messages" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "e881701e-03c3-49ed-b0c7-c028f81244ab", + "name": "messageThread" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "8a811392-01fa-4725-bf18-6f94e60d9d8e", + "nameSingular": "messageThread", + "namePlural": "messageThreads" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "6737187a-370b-4331-82f9-e4b6c2461f0b", + "name": "messages" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "9ad26c7f-9db7-495b-b6d5-c49ea634d167", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "6737187a-370b-4331-82f9-e4b6c2461f0b", + "fromObjectMetadata": { + "__typename": "object", + "id": "8a811392-01fa-4725-bf18-6f94e60d9d8e", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "messageThread", + "namePlural": "messageThreads", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6f859303-fa24-4263-a49c-ef20e810c05f", + "type": "RELATION", + "name": "messageParticipants", + "label": "Message Participants", + "description": "Message Participants", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "5659a093-e3dc-4be7-9b49-9a6ab498671e", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ef2f11c1-d293-4774-bd79-006a8f367fd8", + "nameSingular": "message", + "namePlural": "messages" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "6f859303-fa24-4263-a49c-ef20e810c05f", + "name": "messageParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "810c0e7f-5e65-4d68-8596-1e585862bee9", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "776e54b2-db3d-4b75-84e6-3dc7e8a209ef", + "name": "message" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "5659a093-e3dc-4be7-9b49-9a6ab498671e", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "776e54b2-db3d-4b75-84e6-3dc7e8a209ef", + "toObjectMetadata": { + "__typename": "object", + "id": "810c0e7f-5e65-4d68-8596-1e585862bee9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3c8989d3-01cf-41a0-b298-3274b5516292", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6c121683-c0e5-4788-a806-bf22408f0b7d", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ea19287b-4e9b-4f7f-bbce-ef77aeedac7f", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9809268c-baf6-4d55-b05b-6a550905b7d2", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "657da315-4a91-402d-9203-621b592d8090", + "type": "TEXT", + "name": "subject", + "label": "Subject", + "description": "Subject", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "e5c3675a-24bf-487c-828d-0b544dacff29", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "5c768823-df78-40a6-8793-16d25df63179", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "f91e1ab8-a08b-4bc6-916e-13d2e0228e14", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "e5c3675a-24bf-487c-828d-0b544dacff29", + "nameSingular": "calendarEvent", + "namePlural": "calendarEvents" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "5c768823-df78-40a6-8793-16d25df63179", + "name": "calendarChannelEventAssociations" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "09959589-4056-4bf3-86cc-ba3e2ad28e86", + "nameSingular": "calendarChannelEventAssociation", + "namePlural": "calendarChannelEventAssociations" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "2661566e-a215-4c93-8b62-7b558a5ebbf5", + "name": "calendarEvent" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "f91e1ab8-a08b-4bc6-916e-13d2e0228e14", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "2661566e-a215-4c93-8b62-7b558a5ebbf5", + "toObjectMetadata": { + "__typename": "object", + "id": "09959589-4056-4bf3-86cc-ba3e2ad28e86", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "calendarChannelEventAssociation", + "namePlural": "calendarChannelEventAssociations", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e1791638-3b3c-411f-83f6-190bf51d3efa", + "type": "TEXT", + "name": "iCalUID", + "label": "iCal UID", + "description": "iCal UID", + "icon": "IconKey", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0db24c06-22e4-4cb7-a5c2-07f6569162c8", + "type": "TEXT", + "name": "title", + "label": "Title", + "description": "Title", + "icon": "IconH1", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a98ba601-e1fe-402a-8e36-51073465056e", + "type": "TEXT", + "name": "description", + "label": "Description", + "description": "Description", + "icon": "IconFileDescription", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ad638363-3387-4f51-97ee-e0598367a124", + "type": "DATE_TIME", + "name": "startsAt", + "label": "Start Date", + "description": "Start Date", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "39a394f6-799f-4e7f-9995-7bc9ef771506", + "type": "DATE_TIME", + "name": "externalCreatedAt", + "label": "Creation DateTime", + "description": "Creation DateTime", + "icon": "IconCalendarPlus", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "121f84ea-ba41-427d-8ec6-7d61668d5a3f", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fe6f579c-ca67-4f34-8f2a-b1678c0d4e62", + "type": "BOOLEAN", + "name": "isFullDay", + "label": "Is Full Day", + "description": "Is Full Day", + "icon": "Icon24Hours", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "95dbe93e-c028-4788-a503-af5f43433a4d", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "16fd4611-28df-4486-bb80-cd8d097f77b3", + "type": "TEXT", + "name": "recurringEventExternalId", + "label": "Recurring Event ID", + "description": "Recurring Event ID", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4aaa900a-4c08-4c55-894b-049494f76703", + "type": "TEXT", + "name": "location", + "label": "Location", + "description": "Location", + "icon": "IconMapPin", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cbae4816-654a-4d44-80ea-2e8fbc68cf28", + "type": "LINK", + "name": "conferenceLink", + "label": "Meet Link", + "description": "Meet Link", + "icon": "IconLink", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": { + "url": "''", + "label": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b2c90089-1ba3-4d7c-aa00-f9e7989e7b1c", + "type": "DATE_TIME", + "name": "endsAt", + "label": "End Date", + "description": "End Date", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e787b0b8-d449-4db9-991b-7eb48857d1e8", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e544155a-4088-44ad-9077-94dab2e4439c", + "type": "BOOLEAN", + "name": "isCanceled", + "label": "Is canceled", + "description": "Is canceled", + "icon": "IconCalendarCancel", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "55861e8d-d5eb-4449-9f5e-45f2b8c54c83", + "type": "TEXT", + "name": "conferenceSolution", + "label": "Conference Solution", + "description": "Conference Solution", + "icon": "IconScreenShare", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ec570b60-fc06-4890-87cf-6d7560e00144", + "type": "RELATION", + "name": "calendarEventParticipants", + "label": "Event Participants", + "description": "Event Participants", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "cb00e32f-5536-4b7e-b4e2-8dad8d7b03fe", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "e5c3675a-24bf-487c-828d-0b544dacff29", + "nameSingular": "calendarEvent", + "namePlural": "calendarEvents" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "ec570b60-fc06-4890-87cf-6d7560e00144", + "name": "calendarEventParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "c8fcc468-5891-4938-abf8-ad4d99078d7c", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "7d899bb1-3299-4f60-a08a-b79b44526161", + "name": "calendarEvent" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "cb00e32f-5536-4b7e-b4e2-8dad8d7b03fe", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "7d899bb1-3299-4f60-a08a-b79b44526161", + "toObjectMetadata": { + "__typename": "object", + "id": "c8fcc468-5891-4938-abf8-ad4d99078d7c", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "606f81d2-7ee1-4c42-9f7b-eede30e1c343", + "type": "DATE_TIME", + "name": "externalUpdatedAt", + "label": "Update DateTime", + "description": "Update DateTime", + "icon": "IconCalendarCog", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "c8fcc468-5891-4938-abf8-ad4d99078d7c", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "39982c0b-ce01-4c25-8e79-0717cf9c7ae0", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b8317d6b-5aba-4475-bba9-c62bc5426986", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "96c5cb56-4598-4109-a33e-a666b022d600", + "type": "RELATION", + "name": "workspaceMember", + "label": "Workspace Member", + "description": "Workspace Member", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "4d2b18e2-8704-42ee-994d-cf8e83e1c217", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "c8fcc468-5891-4938-abf8-ad4d99078d7c", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "96c5cb56-4598-4109-a33e-a666b022d600", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "23293e02-6b84-4f0a-beba-e4325714fc9f", + "name": "calendarEventParticipants" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "4d2b18e2-8704-42ee-994d-cf8e83e1c217", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "23293e02-6b84-4f0a-beba-e4325714fc9f", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6e6927c9-99bc-4a81-ad52-e42a6b2df882", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9ff8ffc5-4747-4729-a72c-f2f9860b8aa2", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "Person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "c8a635ef-198d-44a3-98cc-f803f5a1700f", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "c8fcc468-5891-4938-abf8-ad4d99078d7c", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "9ff8ffc5-4747-4729-a72c-f2f9860b8aa2", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "5c9c1774-1f7d-4b7e-ba08-5ddd3dae09f1", + "name": "calendarEventParticipants" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "c8a635ef-198d-44a3-98cc-f803f5a1700f", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "5c9c1774-1f7d-4b7e-ba08-5ddd3dae09f1", + "fromObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "person", + "namePlural": "people", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3570fbbb-6f30-4fea-b2dc-d59705205292", + "type": "BOOLEAN", + "name": "isOrganizer", + "label": "Is Organizer", + "description": "Is Organizer", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": false, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cbccda72-9d0c-4671-87fe-b359fe297c07", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5d95c937-e52a-423e-b96a-267d75af016b", + "type": "TEXT", + "name": "displayName", + "label": "Display Name", + "description": "Display Name", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9194d530-4a04-4a20-b0a9-5601eefa2720", + "type": "TEXT", + "name": "handle", + "label": "Handle", + "description": "Handle", + "icon": "IconMail", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "80bd7163-1c7e-47fe-935d-3f76ac88011d", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9f6f6e26-d374-4ee5-93e0-c516af7549f9", + "type": "SELECT", + "name": "responseStatus", + "label": "Response Status", + "description": "Response Status", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'NEEDS_ACTION'", + "options": [ + { + "id": "268caccb-5fe4-4725-af32-5cad01cca203", + "color": "orange", + "label": "Needs Action", + "value": "NEEDS_ACTION", + "position": 0 + }, + { + "id": "a51fbd8d-fe17-4b5e-adbc-ea4373174efa", + "color": "red", + "label": "Declined", + "value": "DECLINED", + "position": 1 + }, + { + "id": "e4c00b38-b08c-4231-ab81-1b0461bd8354", + "color": "yellow", + "label": "Tentative", + "value": "TENTATIVE", + "position": 2 + }, + { + "id": "5cc2551a-877b-4498-b83f-9d04ef3477a1", + "color": "green", + "label": "Accepted", + "value": "ACCEPTED", + "position": 3 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c2c52d5b-ad26-4cf6-b69b-471c48f2225c", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7d899bb1-3299-4f60-a08a-b79b44526161", + "type": "RELATION", + "name": "calendarEvent", + "label": "Event ID", + "description": "Event ID", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "cb00e32f-5536-4b7e-b4e2-8dad8d7b03fe", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "c8fcc468-5891-4938-abf8-ad4d99078d7c", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "7d899bb1-3299-4f60-a08a-b79b44526161", + "name": "calendarEvent" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "e5c3675a-24bf-487c-828d-0b544dacff29", + "nameSingular": "calendarEvent", + "namePlural": "calendarEvents" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "ec570b60-fc06-4890-87cf-6d7560e00144", + "name": "calendarEventParticipants" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "cb00e32f-5536-4b7e-b4e2-8dad8d7b03fe", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "ec570b60-fc06-4890-87cf-6d7560e00144", + "fromObjectMetadata": { + "__typename": "object", + "id": "e5c3675a-24bf-487c-828d-0b544dacff29", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "calendarEvent", + "namePlural": "calendarEvents", + "isSystem": true, + "isRemote": false + } + } + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "bbed2598-c2be-4b73-9e5b-eb40a9323c02", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "behavioralEvent", + "namePlural": "behavioralEvents", + "labelSingular": "Behavioral Event", + "labelPlural": "Behavioral Events", + "description": "An event related to user behavior", + "icon": "IconIconTimelineEvent", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "f390d049-b453-4b64-98f9-45ee44d64085", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f6a59ead-47f2-4486-869e-6346fa6f17a7", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cf25403b-cef6-45f5-a1a6-e10ea62bc857", + "type": "RAW_JSON", + "name": "context", + "label": "Event context", + "description": "Json object to provide context (user, device, workspace, etc.)", + "icon": "IconListDetails", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fed1ea0a-df2b-48f1-acbe-8cec4a6bca4a", + "type": "UUID", + "name": "recordId", + "label": "Object id", + "description": "Event name/type", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a5e596fe-eef0-4c72-b360-b544537b3701", + "type": "TEXT", + "name": "name", + "label": "Event name", + "description": "Event name", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "400cb214-99f4-47c9-9b50-35ba2ca1cb3a", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d39e160d-8475-4af7-84d4-918802337279", + "type": "TEXT", + "name": "objectName", + "label": "Object name", + "description": "If the event is related to a particular object", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d8f3114b-0d29-4ae1-9908-f66f3d140c70", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "44a6181f-f572-4fc1-ba33-09c4499514a1", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "ActivityTarget person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "b60d73fb-4bff-4c74-9376-e638bfd4a715", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "44a6181f-f572-4fc1-ba33-09c4499514a1", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "48459697-8b98-474d-a114-f4cc4b0a91b1", + "name": "activityTargets" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "b60d73fb-4bff-4c74-9376-e638bfd4a715", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "48459697-8b98-474d-a114-f4cc4b0a91b1", + "fromObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "person", + "namePlural": "people", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8d059d8f-27ed-4aac-8655-aa3d9ea0f9ad", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3fd9a59f-3aaa-445a-b1b6-484834f4c243", + "type": "RELATION", + "name": "opportunity", + "label": "Opportunity", + "description": "ActivityTarget opportunity", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "a38b4570-f4ad-42ba-91ca-3b0700594ab6", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "3fd9a59f-3aaa-445a-b1b6-484834f4c243", + "name": "opportunity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "cd5b7961-afe1-41e3-9c20-a17c5beb45d7", + "name": "activityTargets" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "a38b4570-f4ad-42ba-91ca-3b0700594ab6", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "cd5b7961-afe1-41e3-9c20-a17c5beb45d7", + "fromObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "opportunity", + "namePlural": "opportunities", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d200e261-66cd-4566-8d6f-20cb987087cd", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5912ae34-73a5-46da-b5f9-7c21e0dd9676", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ae7632c8-8b1d-403e-b1c5-c166ce746d39", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2a2012d8-9255-4c18-9577-2981ea7fe11a", + "type": "RELATION", + "name": "activity", + "label": "Activity", + "description": "ActivityTarget activity", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "d08d2845-f4ab-4369-a188-8abdb71e150d", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "2a2012d8-9255-4c18-9577-2981ea7fe11a", + "name": "activity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "nameSingular": "activity", + "namePlural": "activities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "72ffadfa-ecda-4c78-8a68-f82d442b553d", + "name": "activityTargets" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "d08d2845-f4ab-4369-a188-8abdb71e150d", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "72ffadfa-ecda-4c78-8a68-f82d442b553d", + "fromObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "activity", + "namePlural": "activities", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1e7a5c6f-b913-4349-a672-295018c2437c", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "ActivityTarget company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "63a61588-de8c-47ec-b695-da342836625f", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "1e7a5c6f-b913-4349-a672-295018c2437c", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "c5938b67-e0e5-471b-94eb-32bfc7f8b4c6", + "name": "activityTargets" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "63a61588-de8c-47ec-b695-da342836625f", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "c5938b67-e0e5-471b-94eb-32bfc7f8b4c6", + "fromObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "company", + "namePlural": "companies", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3bd3da79-374b-444c-8591-9ce9296d496d", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a56fc074-50fa-4a72-ba1d-9514a552f75b", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "79569d3b-f7d6-480a-b62f-0e87124e7bce", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "opportunity", + "namePlural": "opportunities", + "labelSingular": "Opportunity", + "labelPlural": "Opportunities", + "description": "An opportunity", + "icon": "IconTargetArrow", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "cbd58f16-c99d-4d6b-80b3-aa27b3e72b9d", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8ee597ac-9683-4eb9-b1dd-41e46f67f8bc", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Opportunity record position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "170c324a-821f-4c5d-a25f-a7443b2f751d", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the opportunity", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "f9177e4d-571d-450a-babb-c109af5b18d6", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "170c324a-821f-4c5d-a25f-a7443b2f751d", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8fa8a81e-f9b8-4eb6-a9b4-729b1f1c75a9", + "name": "opportunity" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "f9177e4d-571d-450a-babb-c109af5b18d6", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "8fa8a81e-f9b8-4eb6-a9b4-729b1f1c75a9", + "toObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "favorite", + "namePlural": "favorites", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fd2615ef-8c24-47e6-862c-ed2b0d9eddf4", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "Opportunity company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "ab95d4bd-fa78-43b0-ba0b-7414a4bc85f0", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "fd2615ef-8c24-47e6-862c-ed2b0d9eddf4", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "e214ccd0-756d-49aa-ba7a-1b7b47ceaa65", + "name": "opportunities" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "ab95d4bd-fa78-43b0-ba0b-7414a4bc85f0", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "e214ccd0-756d-49aa-ba7a-1b7b47ceaa65", + "fromObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "company", + "namePlural": "companies", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ae3d5dd4-343d-4b4d-a426-56d1675ce0c3", + "type": "SELECT", + "name": "stage", + "label": "Stage", + "description": "Opportunity stage", + "icon": "IconProgressCheck", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'NEW'", + "options": [ + { + "id": "419b0355-6c4c-48a4-99c8-7ce7d51aab04", + "color": "red", + "label": "New", + "value": "NEW", + "position": 0 + }, + { + "id": "46f62b9a-6905-491d-a5aa-be64761793b9", + "color": "purple", + "label": "Screening", + "value": "SCREENING", + "position": 1 + }, + { + "id": "9acd3622-57c1-4636-8818-7fbbed9126fb", + "color": "sky", + "label": "Meeting", + "value": "MEETING", + "position": 2 + }, + { + "id": "3b130324-43ee-4fea-a599-60fb7a45563f", + "color": "turquoise", + "label": "Proposal", + "value": "PROPOSAL", + "position": 3 + }, + { + "id": "753a4a31-374c-4040-91d4-f6fba1e7929c", + "color": "yellow", + "label": "Customer", + "value": "CUSTOMER", + "position": 4 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c6008099-5271-43d6-9ab5-55a1d7be7d1b", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "cb2d1429-2bed-4ad5-9c4d-5637efbdb339", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "c6008099-5271-43d6-9ab5-55a1d7be7d1b", + "name": "pointOfContact" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "489177bb-2349-4319-9fda-efb466487ccb", + "name": "pointOfContactForOpportunities" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "cb2d1429-2bed-4ad5-9c4d-5637efbdb339", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "489177bb-2349-4319-9fda-efb466487ccb", + "fromObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "person", + "namePlural": "people", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "23c40fc1-3f1f-40b2-a5cd-5ecec3294469", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2dd0b2c4-ce5d-4783-a180-b48f8972369a", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Attachments linked to the opportunity", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "3219f278-8658-410d-ae56-a795d52aee58", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "2dd0b2c4-ce5d-4783-a180-b48f8972369a", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "61379090-02cf-4f96-8dee-6f5761323e9f", + "name": "opportunity" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "3219f278-8658-410d-ae56-a795d52aee58", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "61379090-02cf-4f96-8dee-6f5761323e9f", + "toObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "attachment", + "namePlural": "attachments", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c7180ca6-9d2a-480f-994a-e96a0935ea3a", + "type": "CURRENCY", + "name": "amount", + "label": "Amount", + "description": "Opportunity amount", + "icon": "IconCurrencyDollar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": { + "amountMicros": null, + "currencyCode": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "92853a60-273a-4e96-aca1-1f618abc123e", + "type": "DATE_TIME", + "name": "closeDate", + "label": "Close date", + "description": "Opportunity close date", + "icon": "IconCalendarEvent", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "80c1a65d-c475-4ce5-8ff4-533e2d75b2dc", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "The opportunity name", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e81bc2e2-9259-4b4d-a1a0-9e53c3f1b2e4", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0940cf42-487e-4c91-8cf7-5742aeace973", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5ca7bb66-e757-4764-99da-3c8e974197a5", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dd99cf8d-a10c-4d41-8469-6b5e03e5ae2e", + "type": "TEXT", + "name": "probability", + "label": "Probability", + "description": "Opportunity probability", + "icon": "IconProgressCheck", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'0'", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cd5b7961-afe1-41e3-9c20-a17c5beb45d7", + "type": "RELATION", + "name": "activityTargets", + "label": "Activities", + "description": "Activities tied to the opportunity", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "a38b4570-f4ad-42ba-91ca-3b0700594ab6", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "cd5b7961-afe1-41e3-9c20-a17c5beb45d7", + "name": "activityTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "3fd9a59f-3aaa-445a-b1b6-484834f4c243", + "name": "opportunity" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "a38b4570-f4ad-42ba-91ca-3b0700594ab6", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "3fd9a59f-3aaa-445a-b1b6-484834f4c243", + "toObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "activityTarget", + "namePlural": "activityTargets", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ca06db11-c292-4226-9555-d0d49f249fc4", + "type": "RELATION", + "name": "timelineActivities", + "label": "Timeline Activities", + "description": "Timeline Activities linked to the opportunity.", + "icon": "IconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "ec6a5670-6853-4d3c-8b8e-6580bd5584dc", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "ca06db11-c292-4226-9555-d0d49f249fc4", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "29ff7f77-4e79-494e-aa14-dea5c136e6f7", + "name": "opportunity" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "ec6a5670-6853-4d3c-8b8e-6580bd5584dc", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "29ff7f77-4e79-494e-aa14-dea5c136e6f7", + "toObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities", + "labelSingular": "Timeline Activity", + "labelPlural": "Timeline Activities", + "description": "Aggregated / filtered event to be displayed on the timeline", + "icon": "IconIconTimelineEvent", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "866a3a06-bd61-4b64-9755-8d57b4427c26", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e5a4018c-c8dc-4a6d-b5ae-e029be23e7d6", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0c27da2b-afde-48bc-90f4-c58c1f6bd1d1", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "Event company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "44825151-f568-4e5b-833a-70093068fb37", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "0c27da2b-afde-48bc-90f4-c58c1f6bd1d1", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8558d1d1-7c48-4222-a41f-acff24ea695b", + "name": "timelineActivities" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "44825151-f568-4e5b-833a-70093068fb37", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "8558d1d1-7c48-4222-a41f-acff24ea695b", + "fromObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "company", + "namePlural": "companies", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d5c27551-c047-4409-8cfb-346056cb9b92", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "Event person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "05f685a8-eda1-4c8d-a367-4d165f1b5ee0", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "d5c27551-c047-4409-8cfb-346056cb9b92", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "adcf8f46-55b8-4060-af85-cbdb82308aca", + "name": "timelineActivities" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "05f685a8-eda1-4c8d-a367-4d165f1b5ee0", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "adcf8f46-55b8-4060-af85-cbdb82308aca", + "fromObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "person", + "namePlural": "people", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "29ff7f77-4e79-494e-aa14-dea5c136e6f7", + "type": "RELATION", + "name": "opportunity", + "label": "Opportunity", + "description": "Event opportunity", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "ec6a5670-6853-4d3c-8b8e-6580bd5584dc", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "29ff7f77-4e79-494e-aa14-dea5c136e6f7", + "name": "opportunity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "ca06db11-c292-4226-9555-d0d49f249fc4", + "name": "timelineActivities" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "ec6a5670-6853-4d3c-8b8e-6580bd5584dc", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "ca06db11-c292-4226-9555-d0d49f249fc4", + "fromObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "opportunity", + "namePlural": "opportunities", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5fea70fb-b40c-4199-899a-7e38d9ef6043", + "type": "TEXT", + "name": "name", + "label": "Event name", + "description": "Event name", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dc81b15a-5655-491c-99d0-9f07e008bedd", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4885f105-c593-4de1-9f90-5e5428b06bfa", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5e0ced21-d910-47b9-a8a8-bc789a60939c", + "type": "DATE_TIME", + "name": "happensAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "40216419-eccc-4f63-a344-eda6f753845d", + "type": "RELATION", + "name": "workspaceMember", + "label": "Workspace Member", + "description": "Event workspace member", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "6964f5a7-8edd-41a1-98c7-9d445ee722e3", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "40216419-eccc-4f63-a344-eda6f753845d", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "de6b0b95-5481-4cc7-8dc6-cd08808b2929", + "name": "timelineActivities" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "6964f5a7-8edd-41a1-98c7-9d445ee722e3", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "de6b0b95-5481-4cc7-8dc6-cd08808b2929", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c18dcfda-a9fb-4e49-a215-440069a77be3", + "type": "UUID", + "name": "opportunityId", + "label": "Opportunity id (foreign key)", + "description": "Event opportunity id foreign key", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5f899b8b-a0e0-4f42-92aa-210f51d6418e", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4731ec62-a93e-4f3f-a55b-d52f90c3bcac", + "type": "UUID", + "name": "linkedObjectMetadataId", + "label": "Linked Object Metadata Id", + "description": "inked Object Metadata Id", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7aa39de4-acfe-4090-9f13-a3854254e3bc", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "221bd36e-e315-40e9-a1ac-91f45c157c5d", + "type": "TEXT", + "name": "linkedRecordCachedName", + "label": "Linked Record cached name", + "description": "Cached record name", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c7fad8c0-d41e-4536-b7aa-c9fa2ee68109", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a55d0cad-ed84-430a-a92d-4075a3d8c6f0", + "type": "UUID", + "name": "linkedRecordId", + "label": "Linked Record id", + "description": "Linked Record id", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "ad8a423b-20c4-4545-abd3-1694294406e5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "30a01ab0-0daf-4a9d-8d10-5af042f3b2ee", + "type": "SELECT", + "name": "visibility", + "label": "Visibility", + "description": "Visibility", + "icon": "IconEyeglass", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'SHARE_EVERYTHING'", + "options": [ + { + "id": "6a51d527-6552-4e1f-a091-7e8ad05b99dd", + "color": "green", + "label": "Metadata", + "value": "METADATA", + "position": 0 + }, + { + "id": "b445b24d-4145-4252-a042-a9fe49d99080", + "color": "blue", + "label": "Subject", + "value": "SUBJECT", + "position": 1 + }, + { + "id": "df5aae98-08a0-4432-ad8e-bde036b331fc", + "color": "orange", + "label": "Share Everything", + "value": "SHARE_EVERYTHING", + "position": 2 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "36751cb9-6301-4aa2-a8ec-47079c10f8dc", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "95760150-a2f4-4ea7-8d59-0969a7ad642b", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "da3417b8-ede3-4546-b056-108e4c5f6ea8", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": true, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5270dd71-2233-4861-bf0f-d570f9a50b34", + "type": "NUMBER", + "name": "throttleFailureCount", + "label": "Throttle Failure Count", + "description": "Throttle Failure Count", + "icon": "IconX", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": 0, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d70533e8-e473-4233-a31e-72fe51029e5c", + "type": "TEXT", + "name": "handle", + "label": "Handle", + "description": "Handle", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "227aa60b-7af8-4a5b-bb18-2b0227512204", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "28e14926-cf7e-46cc-acf9-132aabf834a4", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5b6f6a51-42af-4b7b-8040-1c36c4270916", + "type": "SELECT", + "name": "syncStatus", + "label": "Sync status", + "description": "Sync status", + "icon": "IconStatusChange", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": [ + { + "id": "e9ebede5-09c7-4215-8c62-4c794fae73c7", + "color": "blue", + "label": "Pending", + "value": "PENDING", + "position": 0 + }, + { + "id": "15118700-3587-430f-a8b2-885967fc1755", + "color": "green", + "label": "Succeeded", + "value": "SUCCEEDED", + "position": 2 + }, + { + "id": "2ba37905-ddb7-4537-82d3-cb1492874312", + "color": "red", + "label": "Failed", + "value": "FAILED", + "position": 3 + }, + { + "id": "f4b38dde-87ff-49bd-93ba-1b79a8a7e16f", + "color": "yellow", + "label": "Ongoing", + "value": "ONGOING", + "position": 1 + }, + { + "id": "9d79ec38-068e-4d3d-8484-ebdcb794882b", + "color": "blue", + "label": "Not Synced", + "value": "NOT_SYNCED", + "position": 4 + }, + { + "id": "f90732e5-cc5d-4556-ba56-5a663e5ae5b6", + "color": "green", + "label": "Completed", + "value": "COMPLETED", + "position": 5 + }, + { + "id": "627e8a55-da70-4563-948f-d77d16d6d803", + "color": "red", + "label": "Failed Insufficient Permissions", + "value": "FAILED_INSUFFICIENT_PERMISSIONS", + "position": 6 + }, + { + "id": "69e37923-84b7-4206-aa59-1470a355b9a3", + "color": "red", + "label": "Failed Unknown", + "value": "FAILED_UNKNOWN", + "position": 7 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "198509cb-277f-4da0-acde-482cd52cd814", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "965a3bf0-b43a-4391-a26f-27a1bd30476f", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ad8a423b-20c4-4545-abd3-1694294406e5", + "nameSingular": "messageChannel", + "namePlural": "messageChannels" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "198509cb-277f-4da0-acde-482cd52cd814", + "name": "messageChannelMessageAssociations" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ff218fee-2274-4c2e-91b2-ff56249ce144", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "57b02715-a5e9-42fc-92c2-23d8a4aac792", + "name": "messageChannel" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "965a3bf0-b43a-4391-a26f-27a1bd30476f", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "57b02715-a5e9-42fc-92c2-23d8a4aac792", + "toObjectMetadata": { + "__typename": "object", + "id": "ff218fee-2274-4c2e-91b2-ff56249ce144", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ad603e6a-fab4-476e-a7cf-2bac9332df8d", + "type": "SELECT", + "name": "type", + "label": "Type", + "description": "Channel Type", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'email'", + "options": [ + { + "id": "555d2b05-5855-483e-a0b9-98095fb332e3", + "color": "green", + "label": "Email", + "value": "email", + "position": 0 + }, + { + "id": "7178823a-9951-4424-9359-023c8da6a1b9", + "color": "blue", + "label": "SMS", + "value": "sms", + "position": 1 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f70b4868-063a-4571-9a1f-3c3211a35a97", + "type": "SELECT", + "name": "syncStage", + "label": "Sync stage", + "description": "Sync stage", + "icon": "IconStatusChange", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'FULL_MESSAGE_LIST_FETCH_PENDING'", + "options": [ + { + "id": "7c6f5073-49f6-477e-8cdf-704c65ae7fe5", + "color": "blue", + "label": "Full messages list fetch pending", + "value": "FULL_MESSAGE_LIST_FETCH_PENDING", + "position": 0 + }, + { + "id": "e84e3426-1897-4214-a6fa-19531edd6d29", + "color": "blue", + "label": "Partial messages list fetch pending", + "value": "PARTIAL_MESSAGE_LIST_FETCH_PENDING", + "position": 1 + }, + { + "id": "e94047e5-e441-431c-8abd-5599cc2f8f12", + "color": "orange", + "label": "Messages list fetch ongoing", + "value": "MESSAGE_LIST_FETCH_ONGOING", + "position": 2 + }, + { + "id": "d2a12dec-08d8-4f1b-bb50-8cc097ace56a", + "color": "blue", + "label": "Messages import pending", + "value": "MESSAGES_IMPORT_PENDING", + "position": 3 + }, + { + "id": "dcb438e2-f4af-4686-9eed-7b190afb359d", + "color": "orange", + "label": "Messages import ongoing", + "value": "MESSAGES_IMPORT_ONGOING", + "position": 4 + }, + { + "id": "5b8cb1f1-fe9c-49cf-b8a5-38911e6fec36", + "color": "red", + "label": "Failed", + "value": "FAILED", + "position": 5 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3839e19e-028b-4ead-b641-b723e9f14e66", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5ff41676-6c9e-4bc9-882f-b43f7ebf05bd", + "type": "TEXT", + "name": "syncCursor", + "label": "Last sync cursor", + "description": "Last sync cursor", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "977f9927-1acd-42c1-913f-02de9667b840", + "type": "RELATION", + "name": "connectedAccount", + "label": "Connected Account", + "description": "Connected Account", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "d180a991-84c4-4af7-8ef4-e42ea964aa1a", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "ad8a423b-20c4-4545-abd3-1694294406e5", + "nameSingular": "messageChannel", + "namePlural": "messageChannels" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "977f9927-1acd-42c1-913f-02de9667b840", + "name": "connectedAccount" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "9e54a328-9247-4d39-8999-35007b4bd34d", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "5d6ae55d-2eb5-4797-856f-fcddfa3513dd", + "name": "messageChannels" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "d180a991-84c4-4af7-8ef4-e42ea964aa1a", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "5d6ae55d-2eb5-4797-856f-fcddfa3513dd", + "fromObjectMetadata": { + "__typename": "object", + "id": "9e54a328-9247-4d39-8999-35007b4bd34d", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2bb5dfac-4764-418f-bed2-8d867c681ab9", + "type": "DATE_TIME", + "name": "syncStageStartedAt", + "label": "Sync stage started at", + "description": "Sync stage started at", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9c043b2a-40e3-4226-90f4-2081bcc8b75b", + "type": "BOOLEAN", + "name": "isSyncEnabled", + "label": "Is Sync Enabled", + "description": "Is Sync Enabled", + "icon": "IconRefresh", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": true, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "a5521923-2a4f-4dff-8330-69ba0b26ea73", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "422466fa-13f7-4860-866b-2dafd86207c6", + "type": "TEXT", + "name": "direction", + "label": "Direction", + "description": "View Sort direction", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'asc'", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0e2672f5-64bb-4921-8cd9-057a466328d9", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8b42cd7a-53df-433b-a674-9e98c34a7f3d", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4517a1b7-331a-416d-a4d1-313a0d730873", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "73a1574b-31f1-4d3f-a240-6d7b550f57c1", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "00c7b190-ee08-4c83-9046-e9cd68dd1f2a", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9daddfd5-c437-45cd-8070-311c049d36fb", + "type": "RELATION", + "name": "view", + "label": "View", + "description": "View Sort related view", + "icon": "IconLayoutCollage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "d94fad0b-db58-4f7b-b546-5f86d645ebca", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "a5521923-2a4f-4dff-8330-69ba0b26ea73", + "nameSingular": "viewSort", + "namePlural": "viewSorts" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "9daddfd5-c437-45cd-8070-311c049d36fb", + "name": "view" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2785a7a-b2b7-4ce7-9042-ec63b49931eb", + "nameSingular": "view", + "namePlural": "views" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "4b4e38fe-4cf5-4504-8a62-f34f593dda92", + "name": "viewSorts" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "d94fad0b-db58-4f7b-b546-5f86d645ebca", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "4b4e38fe-4cf5-4504-8a62-f34f593dda92", + "fromObjectMetadata": { + "__typename": "object", + "id": "f2785a7a-b2b7-4ce7-9042-ec63b49931eb", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "view", + "namePlural": "views", + "isSystem": true, + "isRemote": false + } + } + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "a47a16bf-eab2-4fd3-bf50-f1a9fc225a42", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "blocklist", + "namePlural": "blocklists", + "labelSingular": "Blocklist", + "labelPlural": "Blocklists", + "description": "Blocklist", + "icon": "IconForbid2", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "8b033c4a-725b-497d-88ed-ab2fe93ef82e", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8b58e7b4-d114-4b27-b7eb-6411f85a7a7a", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dd4629df-7066-49a7-89dc-ffd2ccc5c614", + "type": "TEXT", + "name": "handle", + "label": "Handle", + "description": "Handle", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "50ea7eae-17f1-44eb-a0df-1c841413211f", + "type": "RELATION", + "name": "workspaceMember", + "label": "WorkspaceMember", + "description": "WorkspaceMember", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "34d39eb8-8f2d-4541-ac9c-74627e65def3", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "a47a16bf-eab2-4fd3-bf50-f1a9fc225a42", + "nameSingular": "blocklist", + "namePlural": "blocklists" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "50ea7eae-17f1-44eb-a0df-1c841413211f", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "cf0b6bfc-d42f-4a69-ab0e-bdb7a6de85c9", + "name": "blocklist" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "34d39eb8-8f2d-4541-ac9c-74627e65def3", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "cf0b6bfc-d42f-4a69-ab0e-bdb7a6de85c9", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c7b10446-f611-4d4a-826a-bbba648f17f3", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f88e28bf-86ae-45cf-96c9-11303232bbe2", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "9e54a328-9247-4d39-8999-35007b4bd34d", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "6c3e4ebf-271a-4091-91e6-5bc0666a4f5a", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e732ec5c-814d-4d9a-81fb-f8085da76a6d", + "type": "TEXT", + "name": "refreshToken", + "label": "Refresh Token", + "description": "Messaging provider refresh token", + "icon": "IconKey", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5f8ab6fa-af5b-4546-858a-cdb0c2ac4f4d", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5d6ae55d-2eb5-4797-856f-fcddfa3513dd", + "type": "RELATION", + "name": "messageChannels", + "label": "Message Channels", + "description": "Message Channels", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "d180a991-84c4-4af7-8ef4-e42ea964aa1a", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "9e54a328-9247-4d39-8999-35007b4bd34d", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "5d6ae55d-2eb5-4797-856f-fcddfa3513dd", + "name": "messageChannels" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ad8a423b-20c4-4545-abd3-1694294406e5", + "nameSingular": "messageChannel", + "namePlural": "messageChannels" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "977f9927-1acd-42c1-913f-02de9667b840", + "name": "connectedAccount" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "d180a991-84c4-4af7-8ef4-e42ea964aa1a", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "977f9927-1acd-42c1-913f-02de9667b840", + "toObjectMetadata": { + "__typename": "object", + "id": "ad8a423b-20c4-4545-abd3-1694294406e5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "messageChannel", + "namePlural": "messageChannels", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "de19b238-63cd-4e48-9d27-65615100c8d0", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ddf473c4-4b5e-4feb-b69b-4a4d005248ff", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4e050045-407f-42d1-b6db-e74c476c11ac", + "type": "TEXT", + "name": "provider", + "label": "provider", + "description": "The account provider", + "icon": "IconSettings", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3b558f9d-5e8b-48b1-a260-cb5464ad4c8d", + "type": "RELATION", + "name": "calendarChannels", + "label": "Calendar Channels", + "description": "Calendar Channels", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "42b809af-849c-4cdb-ae1f-aaa0922d3f4e", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "9e54a328-9247-4d39-8999-35007b4bd34d", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "3b558f9d-5e8b-48b1-a260-cb5464ad4c8d", + "name": "calendarChannels" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "4f34d651-9013-43ad-9d52-de8f3713e6a5", + "nameSingular": "calendarChannel", + "namePlural": "calendarChannels" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "143e8157-1136-49ff-a956-be99d4c76155", + "name": "connectedAccount" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "42b809af-849c-4cdb-ae1f-aaa0922d3f4e", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "143e8157-1136-49ff-a956-be99d4c76155", + "toObjectMetadata": { + "__typename": "object", + "id": "4f34d651-9013-43ad-9d52-de8f3713e6a5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "calendarChannel", + "namePlural": "calendarChannels", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6179780d-21bc-4d1b-bbc4-97d14591a921", + "type": "TEXT", + "name": "accessToken", + "label": "Access Token", + "description": "Messaging provider access token", + "icon": "IconKey", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "395cc961-c5e0-4715-8439-c170c076fa8b", + "type": "RELATION", + "name": "accountOwner", + "label": "Account Owner", + "description": "Account Owner", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7362ff24-6c6a-4b1c-aca7-21b9458798aa", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "9e54a328-9247-4d39-8999-35007b4bd34d", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "395cc961-c5e0-4715-8439-c170c076fa8b", + "name": "accountOwner" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "b2afa83b-d17c-42af-bbfe-f5c59db0a02c", + "name": "connectedAccounts" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "7362ff24-6c6a-4b1c-aca7-21b9458798aa", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "b2afa83b-d17c-42af-bbfe-f5c59db0a02c", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a6540be4-5874-4e0b-bd76-87e681c890bf", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a2765fcb-cd1e-4bba-b8ec-9f1c67b5fc9d", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "04892a7b-7de3-4b3e-bdc0-97b193afbb0b", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "8c617a9b-9e5e-4b8a-951e-4b4066786a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "61923569-3ec5-420d-9ac4-2a589c1e263f", + "type": "TEXT", + "name": "displayValue", + "label": "Display Value", + "description": "View Filter Display Value", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a95ffce7-e354-4e09-a767-586463bb9ab5", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a5036b2a-f0c6-4144-afdf-abef7ce8a06d", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "aaee6a8c-b7d4-4de0-9bdc-de5c1fe9b539", + "type": "RELATION", + "name": "view", + "label": "View", + "description": "View Filter related view", + "icon": "IconLayoutCollage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "09c6bd7d-7601-4dd2-b143-9f08b25a5566", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "8c617a9b-9e5e-4b8a-951e-4b4066786a26", + "nameSingular": "viewFilter", + "namePlural": "viewFilters" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "aaee6a8c-b7d4-4de0-9bdc-de5c1fe9b539", + "name": "view" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2785a7a-b2b7-4ce7-9042-ec63b49931eb", + "nameSingular": "view", + "namePlural": "views" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "2d03e711-7791-4c1d-bb40-378232397120", + "name": "viewFilters" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "09c6bd7d-7601-4dd2-b143-9f08b25a5566", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "2d03e711-7791-4c1d-bb40-378232397120", + "fromObjectMetadata": { + "__typename": "object", + "id": "f2785a7a-b2b7-4ce7-9042-ec63b49931eb", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "view", + "namePlural": "views", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "44bfe600-518a-4edc-8dc4-1508e70f387d", + "type": "TEXT", + "name": "value", + "label": "Value", + "description": "View Filter value", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "17b2d8a8-bf31-4eda-a6a3-3cbccc147c6f", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d302165c-80a0-4b58-87a6-ad5fd1e2ae38", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4834cfe2-3182-4c23-955f-878471ace554", + "type": "TEXT", + "name": "operand", + "label": "Operand", + "description": "View Filter operand", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'Contains'", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c8fd2bce-febf-4810-b671-ff4d771446b2", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "8a811392-01fa-4725-bf18-6f94e60d9d8e", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "6737187a-370b-4331-82f9-e4b6c2461f0b", + "type": "RELATION", + "name": "messages", + "label": "Messages", + "description": "Messages from the thread.", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "9ad26c7f-9db7-495b-b6d5-c49ea634d167", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "8a811392-01fa-4725-bf18-6f94e60d9d8e", + "nameSingular": "messageThread", + "namePlural": "messageThreads" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "6737187a-370b-4331-82f9-e4b6c2461f0b", + "name": "messages" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ef2f11c1-d293-4774-bd79-006a8f367fd8", + "nameSingular": "message", + "namePlural": "messages" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "e881701e-03c3-49ed-b0c7-c028f81244ab", + "name": "messageThread" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "9ad26c7f-9db7-495b-b6d5-c49ea634d167", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "e881701e-03c3-49ed-b0c7-c028f81244ab", + "toObjectMetadata": { + "__typename": "object", + "id": "ef2f11c1-d293-4774-bd79-006a8f367fd8", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "message", + "namePlural": "messages", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8218e87e-bd58-4124-b5b9-a36f17972efe", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0eb467f4-cd95-4cc2-a7c5-dc2f01c9acd1", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c89757a5-8251-4b4f-a5ec-8aba89a50a49", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "8518d75e-58c3-46c2-a111-a43f3987bb5a", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "8a811392-01fa-4725-bf18-6f94e60d9d8e", + "nameSingular": "messageThread", + "namePlural": "messageThreads" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "c89757a5-8251-4b4f-a5ec-8aba89a50a49", + "name": "messageChannelMessageAssociations" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ff218fee-2274-4c2e-91b2-ff56249ce144", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "57d32dec-d975-4e0d-bcd8-4fb4eaba978d", + "name": "messageThread" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "8518d75e-58c3-46c2-a111-a43f3987bb5a", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "57d32dec-d975-4e0d-bcd8-4fb4eaba978d", + "toObjectMetadata": { + "__typename": "object", + "id": "ff218fee-2274-4c2e-91b2-ff56249ce144", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "82d81026-6816-4554-aa53-0b47f3f3e759", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "810c0e7f-5e65-4d68-8596-1e585862bee9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "c6186a67-5032-4f7f-9435-7c10a8efeeab", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3c4946f0-49fe-47ae-888f-e1aa94605057", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3cee348f-955d-48c4-9618-292bdccc589c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fa6b2391-61fc-4008-86c0-dacff59c5036", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "94934fdc-2e4d-43b0-8446-105bb7b9c9bd", + "type": "TEXT", + "name": "displayName", + "label": "Display Name", + "description": "Display Name", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0f870437-4809-4d36-ad60-51fd08fce03c", + "type": "TEXT", + "name": "handle", + "label": "Handle", + "description": "Handle", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "776e54b2-db3d-4b75-84e6-3dc7e8a209ef", + "type": "RELATION", + "name": "message", + "label": "Message", + "description": "Message", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "5659a093-e3dc-4be7-9b49-9a6ab498671e", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "810c0e7f-5e65-4d68-8596-1e585862bee9", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "776e54b2-db3d-4b75-84e6-3dc7e8a209ef", + "name": "message" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ef2f11c1-d293-4774-bd79-006a8f367fd8", + "nameSingular": "message", + "namePlural": "messages" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "6f859303-fa24-4263-a49c-ef20e810c05f", + "name": "messageParticipants" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "5659a093-e3dc-4be7-9b49-9a6ab498671e", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "6f859303-fa24-4263-a49c-ef20e810c05f", + "fromObjectMetadata": { + "__typename": "object", + "id": "ef2f11c1-d293-4774-bd79-006a8f367fd8", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "message", + "namePlural": "messages", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5c4982ac-46ed-4912-96c4-1977138c6df6", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4f81e76c-54f3-4a8c-89f7-9ed806154a66", + "type": "RELATION", + "name": "workspaceMember", + "label": "Workspace Member", + "description": "Workspace member", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "40a3eefd-e2c0-4e59-934d-e6e6b7eb695c", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "810c0e7f-5e65-4d68-8596-1e585862bee9", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "4f81e76c-54f3-4a8c-89f7-9ed806154a66", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "9082d9b0-08af-45d6-9047-534f804e3c02", + "name": "messageParticipants" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "40a3eefd-e2c0-4e59-934d-e6e6b7eb695c", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "9082d9b0-08af-45d6-9047-534f804e3c02", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "612a8e89-da49-4212-8b5a-c5f56019f19f", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "392dc86a-75b5-433e-9a1e-ef11e022e975", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "Person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "e2296019-f6ef-4bab-aa5e-2cd60b4c886c", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "810c0e7f-5e65-4d68-8596-1e585862bee9", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "392dc86a-75b5-433e-9a1e-ef11e022e975", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "7b1e5fbc-1418-4e35-9df2-5f5e3b64a2dd", + "name": "messageParticipants" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "e2296019-f6ef-4bab-aa5e-2cd60b4c886c", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "7b1e5fbc-1418-4e35-9df2-5f5e3b64a2dd", + "fromObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "person", + "namePlural": "people", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d47f550b-9dd7-4137-b111-3302194a1b6e", + "type": "SELECT", + "name": "role", + "label": "Role", + "description": "Role", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'from'", + "options": [ + { + "id": "06f956ef-25b2-4c99-ab22-b1fbfcdc78b8", + "color": "green", + "label": "From", + "value": "from", + "position": 0 + }, + { + "id": "ecdb5f1f-d442-4eef-abed-5b97194aac5d", + "color": "blue", + "label": "To", + "value": "to", + "position": 1 + }, + { + "id": "1092e3b5-29f7-47f0-b153-02e59d25b3c2", + "color": "orange", + "label": "Cc", + "value": "cc", + "position": 2 + }, + { + "id": "1acf90c3-265d-4725-879f-2df2ccb872d9", + "color": "red", + "label": "Bcc", + "value": "bcc", + "position": 3 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "7fb647a5-af0b-4f95-8428-fa72571a8bee", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "5409b174-5453-456a-8a28-65ef7b73b95c", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2d987caf-9ddb-4dac-bdb8-90168f070c5b", + "type": "BOOLEAN", + "name": "isVisible", + "label": "Visible", + "description": "View Field visibility", + "icon": "IconEye", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": true, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ee71934a-3ed3-4b2f-ac48-fe2755fe983c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "484c8852-8049-4082-993b-29e49e713bf9", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0e55d284-458e-49ad-b349-357045d4dff5", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c6bb84d2-8c37-432d-9732-f9a7fa97a48b", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "60e26856-075b-4ac3-b246-503fb55220d8", + "type": "NUMBER", + "name": "size", + "label": "Size", + "description": "View Field size", + "icon": "IconEye", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": 0, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "be8d505d-079c-462c-aec3-1d89f38a29fe", + "type": "NUMBER", + "name": "position", + "label": "Position", + "description": "View Field position", + "icon": "IconList", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": 0, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4f355b63-a015-488e-8d67-ea8c2c28e58a", + "type": "RELATION", + "name": "view", + "label": "View", + "description": "View Field related view", + "icon": "IconLayoutCollage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0e501570-837b-4473-af63-07400ce99b52", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "7fb647a5-af0b-4f95-8428-fa72571a8bee", + "nameSingular": "viewField", + "namePlural": "viewFields" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "4f355b63-a015-488e-8d67-ea8c2c28e58a", + "name": "view" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2785a7a-b2b7-4ce7-9042-ec63b49931eb", + "nameSingular": "view", + "namePlural": "views" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "b97bc9bb-3e68-40d2-9b33-c2937915fc9f", + "name": "viewFields" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "0e501570-837b-4473-af63-07400ce99b52", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "b97bc9bb-3e68-40d2-9b33-c2937915fc9f", + "fromObjectMetadata": { + "__typename": "object", + "id": "f2785a7a-b2b7-4ce7-9042-ec63b49931eb", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "view", + "namePlural": "views", + "isSystem": true, + "isRemote": false + } + } + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "activity", + "namePlural": "activities", + "labelSingular": "Activity", + "labelPlural": "Activities", + "description": "An activity", + "icon": "IconCheckbox", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "5768c343-4127-4f36-b750-9558f0ac2f14", + "type": "DATE_TIME", + "name": "dueAt", + "label": "Due Date", + "description": "Activity due date", + "icon": "IconCalendarEvent", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a546e207-8380-41ff-9e65-d9e2cf258412", + "type": "DATE_TIME", + "name": "reminderAt", + "label": "Reminder Date", + "description": "Activity reminder date", + "icon": "IconCalendarEvent", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "72b3344e-04b1-4e0a-ac66-7b47eb2498b7", + "type": "RELATION", + "name": "assignee", + "label": "Assignee", + "description": "Activity assignee", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "daad07d2-8c0b-4f7a-a10f-273e5c3586e8", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "nameSingular": "activity", + "namePlural": "activities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "72b3344e-04b1-4e0a-ac66-7b47eb2498b7", + "name": "assignee" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "86e2868f-e6af-4629-b00a-84972c3c3e8f", + "name": "assignedActivities" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "daad07d2-8c0b-4f7a-a10f-273e5c3586e8", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "86e2868f-e6af-4629-b00a-84972c3c3e8f", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c4e8d3c9-763f-4b13-9a84-c7f0224c3cd2", + "type": "DATE_TIME", + "name": "completedAt", + "label": "Completion Date", + "description": "Activity completion date", + "icon": "IconCheck", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e12b7288-d018-4091-9e97-4200a3ad77fc", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f413df0e-524e-486d-8d94-d0577027237e", + "type": "TEXT", + "name": "title", + "label": "Title", + "description": "Activity title", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "72ffadfa-ecda-4c78-8a68-f82d442b553d", + "type": "RELATION", + "name": "activityTargets", + "label": "Targets", + "description": "Activity targets", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "d08d2845-f4ab-4369-a188-8abdb71e150d", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "nameSingular": "activity", + "namePlural": "activities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "72ffadfa-ecda-4c78-8a68-f82d442b553d", + "name": "activityTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "2a2012d8-9255-4c18-9577-2981ea7fe11a", + "name": "activity" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "d08d2845-f4ab-4369-a188-8abdb71e150d", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "2a2012d8-9255-4c18-9577-2981ea7fe11a", + "toObjectMetadata": { + "__typename": "object", + "id": "b3db5174-865b-4da3-9c7f-fd2a816b3d90", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "activityTarget", + "namePlural": "activityTargets", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "10b42cf0-a57c-4e35-97ec-336952040be2", + "type": "RELATION", + "name": "comments", + "label": "Comments", + "description": "Activity comments", + "icon": "IconComment", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "ee654bd4-29bf-4f12-94a2-069ea032af8b", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "nameSingular": "activity", + "namePlural": "activities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "10b42cf0-a57c-4e35-97ec-336952040be2", + "name": "comments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "0e780173-f829-4110-bfcf-7520d6664564", + "nameSingular": "comment", + "namePlural": "comments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "18fc498e-f1ba-4a45-a49d-5acac3eb606c", + "name": "activity" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "ee654bd4-29bf-4f12-94a2-069ea032af8b", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "18fc498e-f1ba-4a45-a49d-5acac3eb606c", + "toObjectMetadata": { + "__typename": "object", + "id": "0e780173-f829-4110-bfcf-7520d6664564", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "comment", + "namePlural": "comments", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4ce01a80-f7f0-45cb-a6e9-eb1db83a413a", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "50f226f7-57a6-447b-a9a8-47a5db4e33b6", + "type": "TEXT", + "name": "type", + "label": "Type", + "description": "Activity type", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'Note'", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "69d59f37-101e-4fff-a270-44a2ed8319e5", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d14e70fb-081d-4b09-9002-e42ea0acc4f6", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Activity attachments", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "766a94ea-8935-45c2-8828-60649c73d3e5", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "nameSingular": "activity", + "namePlural": "activities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "d14e70fb-081d-4b09-9002-e42ea0acc4f6", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "278876b8-4245-4b3a-a50e-ddd4dd2be0a0", + "name": "activity" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "766a94ea-8935-45c2-8828-60649c73d3e5", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "278876b8-4245-4b3a-a50e-ddd4dd2be0a0", + "toObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "attachment", + "namePlural": "attachments", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2623f7b8-87a2-4213-9f2e-211c5e69f6a5", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "09296fb4-914c-495e-b7d3-1d6830d0c8e7", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "76d0579a-b32b-41c0-ba8f-b3e2a891af11", + "type": "RELATION", + "name": "author", + "label": "Author", + "description": "Activity author", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "fc0b5b46-da68-45d0-850b-fae825805507", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "nameSingular": "activity", + "namePlural": "activities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "76d0579a-b32b-41c0-ba8f-b3e2a891af11", + "name": "author" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "527a55ab-6aa7-4c6f-9476-052c568f42d5", + "name": "authoredActivities" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "fc0b5b46-da68-45d0-850b-fae825805507", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "527a55ab-6aa7-4c6f-9476-052c568f42d5", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f7d5db6e-0916-49cc-a4d4-b0489b8fbdbc", + "type": "TEXT", + "name": "body", + "label": "Body", + "description": "Activity body", + "icon": "IconList", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "71c95623-ea5b-4a6f-ac62-20cc2a04f8b7", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "auditLog", + "namePlural": "auditLogs", + "labelSingular": "Audit Log", + "labelPlural": "Audit Logs", + "description": "An audit log of actions performed in the system", + "icon": "IconIconTimelineEvent", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "18cc1590-50c9-4c76-92da-307f1cbd538e", + "type": "RELATION", + "name": "workspaceMember", + "label": "Workspace Member", + "description": "Event workspace member", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "f2ecb7d8-b7f3-42d6-b435-f4b48adf0a6d", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "71c95623-ea5b-4a6f-ac62-20cc2a04f8b7", + "nameSingular": "auditLog", + "namePlural": "auditLogs" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "18cc1590-50c9-4c76-92da-307f1cbd538e", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "4c445e0e-6157-47b1-b5f3-fff8483f6cfb", + "name": "auditLogs" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "f2ecb7d8-b7f3-42d6-b435-f4b48adf0a6d", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "4c445e0e-6157-47b1-b5f3-fff8483f6cfb", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c6aff1c6-a93a-48d4-b672-0408ced43c64", + "type": "TEXT", + "name": "objectName", + "label": "Object name", + "description": "If the event is related to a particular object", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c42df07a-210e-4c6d-b3c0-bf10141b4650", + "type": "TEXT", + "name": "name", + "label": "Event name", + "description": "Event name/type", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "95cf88a8-cf9b-4c77-b4f6-b57a8be8142a", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "262f5029-c4ac-47e5-9552-20f92440c9d9", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ccb2add4-fa25-4314-a55b-4c83dd5b2d40", + "type": "UUID", + "name": "recordId", + "label": "Object id", + "description": "Event name/type", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "10dc7e8f-39d4-4165-b835-0c159d0383cc", + "type": "TEXT", + "name": "objectMetadataId", + "label": "Object name", + "description": "If the event is related to a particular object", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "baf57f5d-55b2-4497-8e9e-e2c56682201e", + "type": "RAW_JSON", + "name": "context", + "label": "Event context", + "description": "Json object to provide context (user, device, workspace, etc.)", + "icon": "IconListDetails", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e8e38fc0-5ece-4651-a614-3fb5449b1c07", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c9c07299-04f4-467a-a71f-db95bf2ce1f0", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7f4f46e6-6479-4b1e-88dd-b085b23510b6", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "4f34d651-9013-43ad-9d52-de8f3713e6a5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "322d18bf-d629-4867-8d42-a7fe0f0e84bd", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "143e8157-1136-49ff-a956-be99d4c76155", + "type": "RELATION", + "name": "connectedAccount", + "label": "Connected Account", + "description": "Connected Account", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "42b809af-849c-4cdb-ae1f-aaa0922d3f4e", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "4f34d651-9013-43ad-9d52-de8f3713e6a5", + "nameSingular": "calendarChannel", + "namePlural": "calendarChannels" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "143e8157-1136-49ff-a956-be99d4c76155", + "name": "connectedAccount" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "9e54a328-9247-4d39-8999-35007b4bd34d", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "3b558f9d-5e8b-48b1-a260-cb5464ad4c8d", + "name": "calendarChannels" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "42b809af-849c-4cdb-ae1f-aaa0922d3f4e", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "3b558f9d-5e8b-48b1-a260-cb5464ad4c8d", + "fromObjectMetadata": { + "__typename": "object", + "id": "9e54a328-9247-4d39-8999-35007b4bd34d", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "eafe3727-d061-4cae-a7dc-ab8bf5743ddc", + "type": "NUMBER", + "name": "throttleFailureCount", + "label": "Throttle Failure Count", + "description": "Throttle Failure Count", + "icon": "IconX", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": 0, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "75975274-8627-48cb-af2f-9b63936bd8cd", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "87f918a0-a5e8-4b9b-ac0a-131e780e2f29", + "type": "BOOLEAN", + "name": "isSyncEnabled", + "label": "Is Sync Enabled", + "description": "Is Sync Enabled", + "icon": "IconRefresh", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": true, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8da769d8-e793-4439-b468-43361047fe3a", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ed229cd6-ff79-462e-be57-8af68792f737", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9f26f6a7-7610-4263-b520-99dfbdf14180", + "type": "SELECT", + "name": "visibility", + "label": "Visibility", + "description": "Visibility", + "icon": "IconEyeglass", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'SHARE_EVERYTHING'", + "options": [ + { + "id": "04a22518-0b58-4ac5-9287-1145f7abd831", + "color": "green", + "label": "Metadata", + "value": "METADATA", + "position": 0 + }, + { + "id": "6ee22ede-8710-44f8-9566-66e38987281e", + "color": "orange", + "label": "Share Everything", + "value": "SHARE_EVERYTHING", + "position": 1 + } + ], + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0bac812e-5fe7-4b59-a96e-7a1322e48935", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": true, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b6d4d880-1a87-4ee1-8c7f-8fa1f061641d", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "3034a445-6ce9-4218-b157-c657437ed426", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "4f34d651-9013-43ad-9d52-de8f3713e6a5", + "nameSingular": "calendarChannel", + "namePlural": "calendarChannels" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "b6d4d880-1a87-4ee1-8c7f-8fa1f061641d", + "name": "calendarChannelEventAssociations" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "09959589-4056-4bf3-86cc-ba3e2ad28e86", + "nameSingular": "calendarChannelEventAssociation", + "namePlural": "calendarChannelEventAssociations" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "32d7cbd6-4715-4e79-94cf-d7ae1f961dba", + "name": "calendarChannel" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "3034a445-6ce9-4218-b157-c657437ed426", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "32d7cbd6-4715-4e79-94cf-d7ae1f961dba", + "toObjectMetadata": { + "__typename": "object", + "id": "09959589-4056-4bf3-86cc-ba3e2ad28e86", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "calendarChannelEventAssociation", + "namePlural": "calendarChannelEventAssociations", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "68c314e0-8722-474a-aa44-59be3e4a5094", + "type": "TEXT", + "name": "handle", + "label": "Handle", + "description": "Handle", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e3036a6c-e3fa-4932-9f14-94f0315b3420", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "86e2868f-e6af-4629-b00a-84972c3c3e8f", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "daad07d2-8c0b-4f7a-a10f-273e5c3586e8", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "86e2868f-e6af-4629-b00a-84972c3c3e8f", + "name": "assignedActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "nameSingular": "activity", + "namePlural": "activities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "72b3344e-04b1-4e0a-ac66-7b47eb2498b7", + "name": "assignee" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "daad07d2-8c0b-4f7a-a10f-273e5c3586e8", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "72b3344e-04b1-4e0a-ac66-7b47eb2498b7", + "toObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "activity", + "namePlural": "activities", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8ede3375-da0e-4bb5-9444-a042523ccc33", + "type": "FULL_NAME", + "name": "name", + "label": "Name", + "description": "Workspace member name", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": { + "lastName": "''", + "firstName": "''" + }, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cf0b6bfc-d42f-4a69-ab0e-bdb7a6de85c9", + "type": "RELATION", + "name": "blocklist", + "label": "Blocklist", + "description": "Blocklisted handles", + "icon": "IconForbid2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "34d39eb8-8f2d-4541-ac9c-74627e65def3", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "cf0b6bfc-d42f-4a69-ab0e-bdb7a6de85c9", + "name": "blocklist" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "a47a16bf-eab2-4fd3-bf50-f1a9fc225a42", + "nameSingular": "blocklist", + "namePlural": "blocklists" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "50ea7eae-17f1-44eb-a0df-1c841413211f", + "name": "workspaceMember" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "34d39eb8-8f2d-4541-ac9c-74627e65def3", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "50ea7eae-17f1-44eb-a0df-1c841413211f", + "toObjectMetadata": { + "__typename": "object", + "id": "a47a16bf-eab2-4fd3-bf50-f1a9fc225a42", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "blocklist", + "namePlural": "blocklists", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "937a5c60-3dc6-4c57-88f7-5b7c888db1fa", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fdaa3e1e-4b14-4526-b9c5-a8fbbf1789ff", + "type": "TEXT", + "name": "userEmail", + "label": "User Email", + "description": "Related user email address", + "icon": "IconMail", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "527a55ab-6aa7-4c6f-9476-052c568f42d5", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "fc0b5b46-da68-45d0-850b-fae825805507", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "527a55ab-6aa7-4c6f-9476-052c568f42d5", + "name": "authoredActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "nameSingular": "activity", + "namePlural": "activities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "76d0579a-b32b-41c0-ba8f-b3e2a891af11", + "name": "author" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "fc0b5b46-da68-45d0-850b-fae825805507", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "76d0579a-b32b-41c0-ba8f-b3e2a891af11", + "toObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "activity", + "namePlural": "activities", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "03d793d5-59dd-4fef-ab31-c5f21c42252e", + "type": "UUID", + "name": "userId", + "label": "User Id", + "description": "Associated User Id", + "icon": "IconCircleUsers", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "67d62616-508b-4c54-a5a1-212c7edcb602", + "type": "TEXT", + "name": "avatarUrl", + "label": "Avatar Url", + "description": "Workspace member avatar", + "icon": "IconFileUpload", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "aee083d6-f7b1-4c26-ab53-3183b8b1d4d8", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b2afa83b-d17c-42af-bbfe-f5c59db0a02c", + "type": "RELATION", + "name": "connectedAccounts", + "label": "Connected accounts", + "description": "Connected accounts", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7362ff24-6c6a-4b1c-aca7-21b9458798aa", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "b2afa83b-d17c-42af-bbfe-f5c59db0a02c", + "name": "connectedAccounts" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "9e54a328-9247-4d39-8999-35007b4bd34d", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "395cc961-c5e0-4715-8439-c170c076fa8b", + "name": "accountOwner" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "7362ff24-6c6a-4b1c-aca7-21b9458798aa", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "395cc961-c5e0-4715-8439-c170c076fa8b", + "toObjectMetadata": { + "__typename": "object", + "id": "9e54a328-9247-4d39-8999-35007b4bd34d", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e530abeb-c6d7-43dc-a4f2-3f04b7000738", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "d74d14b6-130b-49ac-83fe-5c564ed96e18", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "e530abeb-c6d7-43dc-a4f2-3f04b7000738", + "name": "authoredAttachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "0a8628a5-0a2a-4dc8-b7f7-c852a5cd50d8", + "name": "author" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "d74d14b6-130b-49ac-83fe-5c564ed96e18", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "0a8628a5-0a2a-4dc8-b7f7-c852a5cd50d8", + "toObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "attachment", + "namePlural": "attachments", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4c445e0e-6157-47b1-b5f3-fff8483f6cfb", + "type": "RELATION", + "name": "auditLogs", + "label": "Audit Logs", + "description": "Audit Logs linked to the workspace member", + "icon": "IconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "f2ecb7d8-b7f3-42d6-b435-f4b48adf0a6d", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "4c445e0e-6157-47b1-b5f3-fff8483f6cfb", + "name": "auditLogs" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "71c95623-ea5b-4a6f-ac62-20cc2a04f8b7", + "nameSingular": "auditLog", + "namePlural": "auditLogs" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "18cc1590-50c9-4c76-92da-307f1cbd538e", + "name": "workspaceMember" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "f2ecb7d8-b7f3-42d6-b435-f4b48adf0a6d", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "18cc1590-50c9-4c76-92da-307f1cbd538e", + "toObjectMetadata": { + "__typename": "object", + "id": "71c95623-ea5b-4a6f-ac62-20cc2a04f8b7", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "auditLog", + "namePlural": "auditLogs", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "46ad37c6-7934-41af-b1b1-51b06d7d230c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "5f13fa68-4367-4a2f-b50c-d40bde96953a", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "46ad37c6-7934-41af-b1b1-51b06d7d230c", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "b1ba6c14-de0b-491b-96e7-e693f359c6f6", + "name": "workspaceMember" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "5f13fa68-4367-4a2f-b50c-d40bde96953a", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "b1ba6c14-de0b-491b-96e7-e693f359c6f6", + "toObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "favorite", + "namePlural": "favorites", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0604d7f7-f2d1-4d0e-84d5-13df68ea688b", + "type": "TEXT", + "name": "colorScheme", + "label": "Color Scheme", + "description": "Preferred color scheme", + "icon": "IconColorSwatch", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'Light'", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "79edf404-895d-4db5-9c93-140c547d5af9", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "4d810e79-eae5-4212-984b-8e95632fd07d", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "79edf404-895d-4db5-9c93-140c547d5af9", + "name": "accountOwnerForCompanies" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8fcf63f1-91cd-42c7-bc6d-99f21ab3e9af", + "name": "accountOwner" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "4d810e79-eae5-4212-984b-8e95632fd07d", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "8fcf63f1-91cd-42c7-bc6d-99f21ab3e9af", + "toObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "company", + "namePlural": "companies", + "isSystem": false, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "de6b0b95-5481-4cc7-8dc6-cd08808b2929", + "type": "RELATION", + "name": "timelineActivities", + "label": "Events", + "description": "Events linked to the workspace member", + "icon": "IconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "6964f5a7-8edd-41a1-98c7-9d445ee722e3", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "de6b0b95-5481-4cc7-8dc6-cd08808b2929", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "40216419-eccc-4f63-a344-eda6f753845d", + "name": "workspaceMember" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "6964f5a7-8edd-41a1-98c7-9d445ee722e3", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "40216419-eccc-4f63-a344-eda6f753845d", + "toObjectMetadata": { + "__typename": "object", + "id": "ae47ee7c-ea45-4273-94ee-336d1433ae33", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "23293e02-6b84-4f0a-beba-e4325714fc9f", + "type": "RELATION", + "name": "calendarEventParticipants", + "label": "Calendar Event Participants", + "description": "Calendar Event Participants", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "4d2b18e2-8704-42ee-994d-cf8e83e1c217", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "23293e02-6b84-4f0a-beba-e4325714fc9f", + "name": "calendarEventParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "c8fcc468-5891-4938-abf8-ad4d99078d7c", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "96c5cb56-4598-4109-a33e-a666b022d600", + "name": "workspaceMember" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "4d2b18e2-8704-42ee-994d-cf8e83e1c217", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "96c5cb56-4598-4109-a33e-a666b022d600", + "toObjectMetadata": { + "__typename": "object", + "id": "c8fcc468-5891-4938-abf8-ad4d99078d7c", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9082d9b0-08af-45d6-9047-534f804e3c02", + "type": "RELATION", + "name": "messageParticipants", + "label": "Message Participants", + "description": "Message Participants", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "40a3eefd-e2c0-4e59-934d-e6e6b7eb695c", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "9082d9b0-08af-45d6-9047-534f804e3c02", + "name": "messageParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "810c0e7f-5e65-4d68-8596-1e585862bee9", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "4f81e76c-54f3-4a8c-89f7-9ed806154a66", + "name": "workspaceMember" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "40a3eefd-e2c0-4e59-934d-e6e6b7eb695c", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "4f81e76c-54f3-4a8c-89f7-9ed806154a66", + "toObjectMetadata": { + "__typename": "object", + "id": "810c0e7f-5e65-4d68-8596-1e585862bee9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6afa53e9-d4c1-44a9-98e6-88d310e62314", + "type": "TEXT", + "name": "locale", + "label": "Language", + "description": "Preferred language", + "icon": "IconLanguage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "'en'", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5a85d3a7-a00c-4efb-8ccc-652f25b3fdb9", + "type": "RELATION", + "name": "authoredComments", + "label": "Authored comments", + "description": "Authored comments", + "icon": "IconComment", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "8e8bb81e-b667-4372-bf27-5d23b2b440f6", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "5a85d3a7-a00c-4efb-8ccc-652f25b3fdb9", + "name": "authoredComments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "0e780173-f829-4110-bfcf-7520d6664564", + "nameSingular": "comment", + "namePlural": "comments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "d17330db-5583-4e34-9223-0f96a116db4e", + "name": "author" + } + }, + "fromRelationMetadata": { + "__typename": "relation", + "id": "8e8bb81e-b667-4372-bf27-5d23b2b440f6", + "relationType": "ONE_TO_MANY", + "toFieldMetadataId": "d17330db-5583-4e34-9223-0f96a116db4e", + "toObjectMetadata": { + "__typename": "object", + "id": "0e780173-f829-4110-bfcf-7520d6664564", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "comment", + "namePlural": "comments", + "isSystem": true, + "isRemote": false + } + }, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9d794ac2-9bba-4308-bfce-745d1417c07b", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "1ceaec2d-09a2-403d-81b7-740283492c79", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "8c7336db-899f-4c0e-88e7-ad7887f13bd0", + "type": "DATE_TIME", + "name": "expiresAt", + "label": "Expiration date", + "description": "ApiKey expiration date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7a6fbfe8-4ae4-4f47-ac9d-3f53788f63bd", + "type": "DATE_TIME", + "name": "revokedAt", + "label": "Revocation date", + "description": "ApiKey revocation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5d0565d1-ed8b-4e7d-9762-eccff24f795f", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d6c9b463-f744-4fbc-9f59-ca4c81cfb078", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8928d662-fcc4-4232-a6fa-88d0fb73c36a", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "ApiKey name", + "icon": "IconLink", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "781d16db-c85d-4733-9671-92f0a9b4602e", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "0e780173-f829-4110-bfcf-7520d6664564", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "comment", + "namePlural": "comments", + "labelSingular": "Comment", + "labelPlural": "Comments", + "description": "A comment", + "icon": "IconMessageCircle", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "18fc498e-f1ba-4a45-a49d-5acac3eb606c", + "type": "RELATION", + "name": "activity", + "label": "Activity", + "description": "Comment activity", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "ee654bd4-29bf-4f12-94a2-069ea032af8b", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "0e780173-f829-4110-bfcf-7520d6664564", + "nameSingular": "comment", + "namePlural": "comments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "18fc498e-f1ba-4a45-a49d-5acac3eb606c", + "name": "activity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "nameSingular": "activity", + "namePlural": "activities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "10b42cf0-a57c-4e35-97ec-336952040be2", + "name": "comments" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "ee654bd4-29bf-4f12-94a2-069ea032af8b", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "10b42cf0-a57c-4e35-97ec-336952040be2", + "fromObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "activity", + "namePlural": "activities", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2d417ee5-adb5-4318-b8ec-7a6d56e09b6f", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cd9efab6-a13f-4d5b-96fc-193cd3c8bce1", + "type": "TEXT", + "name": "body", + "label": "Body", + "description": "Comment body", + "icon": "IconLink", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ec578fe6-3f62-4f78-8e01-794bf6791940", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bdcd5420-bb94-4487-b666-abdfcec405ab", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d17330db-5583-4e34-9223-0f96a116db4e", + "type": "RELATION", + "name": "author", + "label": "Author", + "description": "Comment author", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "8e8bb81e-b667-4372-bf27-5d23b2b440f6", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "0e780173-f829-4110-bfcf-7520d6664564", + "nameSingular": "comment", + "namePlural": "comments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "d17330db-5583-4e34-9223-0f96a116db4e", + "name": "author" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "5a85d3a7-a00c-4efb-8ccc-652f25b3fdb9", + "name": "authoredComments" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "8e8bb81e-b667-4372-bf27-5d23b2b440f6", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "5a85d3a7-a00c-4efb-8ccc-652f25b3fdb9", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "11cbc09d-6e41-4a74-acfe-5eb60333aa6d", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fe93ba79-5409-4a30-9d26-983ac9b5acf3", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "attachment", + "namePlural": "attachments", + "labelSingular": "Attachment", + "labelPlural": "Attachments", + "description": "An attachment", + "icon": "IconFileImport", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "963e4803-1fce-416d-a450-69c704658d9b", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "61379090-02cf-4f96-8dee-6f5761323e9f", + "type": "RELATION", + "name": "opportunity", + "label": "Opportunity", + "description": "Attachment opportunity", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "3219f278-8658-410d-ae56-a795d52aee58", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "61379090-02cf-4f96-8dee-6f5761323e9f", + "name": "opportunity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "2dd0b2c4-ce5d-4783-a180-b48f8972369a", + "name": "attachments" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "3219f278-8658-410d-ae56-a795d52aee58", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "2dd0b2c4-ce5d-4783-a180-b48f8972369a", + "fromObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "opportunity", + "namePlural": "opportunities", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e8ad2a46-3cd9-4256-b6b3-01db9e332608", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2b87a17f-0f9e-44a3-85c0-d6ccaa3d419b", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7fe03d5a-5ad4-4f83-ba5b-5f426ddfed1f", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3dc50db7-afc5-43ab-9636-5a6ee4b034f3", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "Attachment name", + "icon": "IconFileUpload", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8538ff1e-9223-4498-8c3c-7c25235887c7", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "278876b8-4245-4b3a-a50e-ddd4dd2be0a0", + "type": "RELATION", + "name": "activity", + "label": "Activity", + "description": "Attachment activity", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "766a94ea-8935-45c2-8828-60649c73d3e5", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "278876b8-4245-4b3a-a50e-ddd4dd2be0a0", + "name": "activity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "nameSingular": "activity", + "namePlural": "activities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "d14e70fb-081d-4b09-9002-e42ea0acc4f6", + "name": "attachments" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "766a94ea-8935-45c2-8828-60649c73d3e5", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "d14e70fb-081d-4b09-9002-e42ea0acc4f6", + "fromObjectMetadata": { + "__typename": "object", + "id": "723221aa-d945-4667-9563-3d06186d7f14", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "activity", + "namePlural": "activities", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c6d94dbe-a989-444e-938d-86c95d7e54f0", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "987bc5b8-3ceb-472c-bf2e-36a084cbffe1", + "type": "TEXT", + "name": "type", + "label": "Type", + "description": "Attachment type", + "icon": "IconList", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "93a19f29-8d35-4c2e-85bb-f39097a99e91", + "type": "TEXT", + "name": "fullPath", + "label": "Full path", + "description": "Attachment full path", + "icon": "IconLink", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8ee14cfb-aec5-490a-a37a-0793cce9c74c", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "091f3ec1-c30a-41af-bd7f-d104cb2f3875", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8e9ba278-5293-4e30-9faf-369eb3459790", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "Attachment company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "36daf4c7-9fdf-48f3-9baf-a60d290b729c", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8e9ba278-5293-4e30-9faf-369eb3459790", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "fb558bde-aad6-4d0b-a4c6-54750c530e5e", + "name": "attachments" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "36daf4c7-9fdf-48f3-9baf-a60d290b729c", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "fb558bde-aad6-4d0b-a4c6-54750c530e5e", + "fromObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "company", + "namePlural": "companies", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "179aa192-8b24-49ba-a9a2-e81b19f6ac6e", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "Attachment person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "4b99c7e5-a47e-4919-93fb-056f7813ce39", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "179aa192-8b24-49ba-a9a2-e81b19f6ac6e", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "50024036-0722-4727-bdff-ea073fcdc831", + "name": "attachments" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "4b99c7e5-a47e-4919-93fb-056f7813ce39", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "50024036-0722-4727-bdff-ea073fcdc831", + "fromObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "person", + "namePlural": "people", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0a8628a5-0a2a-4dc8-b7f7-c852a5cd50d8", + "type": "RELATION", + "name": "author", + "label": "Author", + "description": "Attachment author", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "d74d14b6-130b-49ac-83fe-5c564ed96e18", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "0c99085d-8a5a-4854-ad0d-ec29f3570f3a", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "0a8628a5-0a2a-4dc8-b7f7-c852a5cd50d8", + "name": "author" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "e530abeb-c6d7-43dc-a4f2-3f04b7000738", + "name": "authoredAttachments" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "d74d14b6-130b-49ac-83fe-5c564ed96e18", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "e530abeb-c6d7-43dc-a4f2-3f04b7000738", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "09959589-4056-4bf3-86cc-ba3e2ad28e86", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "32d7cbd6-4715-4e79-94cf-d7ae1f961dba", + "type": "RELATION", + "name": "calendarChannel", + "label": "Channel ID", + "description": "Channel ID", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "3034a445-6ce9-4218-b157-c657437ed426", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "09959589-4056-4bf3-86cc-ba3e2ad28e86", + "nameSingular": "calendarChannelEventAssociation", + "namePlural": "calendarChannelEventAssociations" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "32d7cbd6-4715-4e79-94cf-d7ae1f961dba", + "name": "calendarChannel" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "4f34d651-9013-43ad-9d52-de8f3713e6a5", + "nameSingular": "calendarChannel", + "namePlural": "calendarChannels" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "b6d4d880-1a87-4ee1-8c7f-8fa1f061641d", + "name": "calendarChannelEventAssociations" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "3034a445-6ce9-4218-b157-c657437ed426", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "b6d4d880-1a87-4ee1-8c7f-8fa1f061641d", + "fromObjectMetadata": { + "__typename": "object", + "id": "4f34d651-9013-43ad-9d52-de8f3713e6a5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "calendarChannel", + "namePlural": "calendarChannels", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c95687b5-72b4-48d5-890f-3d0715617bbf", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "234ef8b5-0b4f-46ae-8eb3-0f2375999b86", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "84a52c9f-fc5c-44d1-8007-5f485c91ea4c", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2661566e-a215-4c93-8b62-7b558a5ebbf5", + "type": "RELATION", + "name": "calendarEvent", + "label": "Event ID", + "description": "Event ID", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "f91e1ab8-a08b-4bc6-916e-13d2e0228e14", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "09959589-4056-4bf3-86cc-ba3e2ad28e86", + "nameSingular": "calendarChannelEventAssociation", + "namePlural": "calendarChannelEventAssociations" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "2661566e-a215-4c93-8b62-7b558a5ebbf5", + "name": "calendarEvent" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "e5c3675a-24bf-487c-828d-0b544dacff29", + "nameSingular": "calendarEvent", + "namePlural": "calendarEvents" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "5c768823-df78-40a6-8793-16d25df63179", + "name": "calendarChannelEventAssociations" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "f91e1ab8-a08b-4bc6-916e-13d2e0228e14", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "5c768823-df78-40a6-8793-16d25df63179", + "fromObjectMetadata": { + "__typename": "object", + "id": "e5c3675a-24bf-487c-828d-0b544dacff29", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "calendarEvent", + "namePlural": "calendarEvents", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f5061b2c-2110-4b87-80bb-ac07ca831222", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "731d31d6-53cd-4d6b-a9d3-6de1475ba017", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7f04fdec-6294-4038-aada-933791426649", + "type": "TEXT", + "name": "eventExternalId", + "label": "Event external ID", + "description": "Event external ID", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "favorite", + "namePlural": "favorites", + "labelSingular": "Favorite", + "labelPlural": "Favorites", + "description": "A favorite", + "icon": "IconHeart", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "16f8a279-b23d-4e7a-9388-2a1f48afd21b", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "83e3f065-3419-424d-b46e-76e0d422bacc", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "Favorite person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "313373c0-98af-4e63-9ecd-e689302ea794", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "83e3f065-3419-424d-b46e-76e0d422bacc", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "812aea3f-b533-43a1-b8bd-b87aaa84c76e", + "name": "favorites" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "313373c0-98af-4e63-9ecd-e689302ea794", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "812aea3f-b533-43a1-b8bd-b87aaa84c76e", + "fromObjectMetadata": { + "__typename": "object", + "id": "f90f0471-1042-4f38-a285-d870fb5a5a26", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "person", + "namePlural": "people", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f951e3c3-1bd2-41b2-9612-73a0ba3dbabb", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f56c8d42-3894-4ccf-8588-ad97d2a7df0a", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "Favorite company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "b45f0926-607e-418f-9e26-613594f97868", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "f56c8d42-3894-4ccf-8588-ad97d2a7df0a", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "efaa1ccd-4c1f-4d81-9d30-f93030d32190", + "name": "favorites" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "b45f0926-607e-418f-9e26-613594f97868", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "efaa1ccd-4c1f-4d81-9d30-f93030d32190", + "fromObjectMetadata": { + "__typename": "object", + "id": "f9fd99a8-108f-4066-9675-cde753cf5de9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "company", + "namePlural": "companies", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dead3c40-1c51-49e7-8763-c59c0d0c6699", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "43310ae4-74bc-4b29-a6b8-02a48688bf1a", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b1ba6c14-de0b-491b-96e7-e693f359c6f6", + "type": "RELATION", + "name": "workspaceMember", + "label": "Workspace Member", + "description": "Favorite workspace member", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "5f13fa68-4367-4a2f-b50c-d40bde96953a", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "b1ba6c14-de0b-491b-96e7-e693f359c6f6", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "46ad37c6-7934-41af-b1b1-51b06d7d230c", + "name": "favorites" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "5f13fa68-4367-4a2f-b50c-d40bde96953a", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "46ad37c6-7934-41af-b1b1-51b06d7d230c", + "fromObjectMetadata": { + "__typename": "object", + "id": "340eeb86-e27d-4a56-b2b3-b47c2ad604d9", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers", + "isSystem": true, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0429b209-c380-4b54-b769-e60772631ecc", + "type": "NUMBER", + "name": "position", + "label": "Position", + "description": "Favorite position", + "icon": "IconList", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": 0, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8fa8a81e-f9b8-4eb6-a9b4-729b1f1c75a9", + "type": "RELATION", + "name": "opportunity", + "label": "Opportunity", + "description": "Favorite opportunity", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "fromRelationMetadata": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "f9177e4d-571d-450a-babb-c109af5b18d6", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "038a733b-641f-4f09-8509-c210e729e6c5", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8fa8a81e-f9b8-4eb6-a9b4-729b1f1c75a9", + "name": "opportunity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "170c324a-821f-4c5d-a25f-a7443b2f751d", + "name": "favorites" + } + }, + "toRelationMetadata": { + "__typename": "relation", + "id": "f9177e4d-571d-450a-babb-c109af5b18d6", + "relationType": "ONE_TO_MANY", + "fromFieldMetadataId": "170c324a-821f-4c5d-a25f-a7443b2f751d", + "fromObjectMetadata": { + "__typename": "object", + "id": "afdbcc7a-95bc-4e30-917d-ba583448b405", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "opportunity", + "namePlural": "opportunities", + "isSystem": false, + "isRemote": false + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6d85f788-2aa9-4f20-b382-2e46e9fe0dae", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fb6ac052-14c2-4138-9d68-e4decf0bec4f", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1f2fdf33-a1f3-4df7-8d9d-fb6e15517888", + "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-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": null, + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "0216ee5f-8ac5-4e61-86e0-8c533db93a69", + "dataSourceId": "516da07d-6504-41f8-907c-db5c0a19785c", + "nameSingular": "webhook", + "namePlural": "webhooks", + "labelSingular": "Webhook", + "labelPlural": "Webhooks", + "description": "A webhook", + "icon": "IconRobot", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "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": "736afdae-80f6-4fc6-87a0-22efc070a9b6", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "uuid", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dcb735ad-251b-4a50-80a7-a288e1eedef6", + "type": "TEXT", + "name": "operation", + "label": "Operation", + "description": "Webhook operation", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "816b9b66-a5d4-4988-ac56-839293cf1da6", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Update date", + "description": "Update date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "34f57a7f-448b-4b35-ab66-312a4c1ce002", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "now", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "31b3f963-f42c-4edf-a7ea-3d6e78d811d5", + "type": "TEXT", + "name": "targetUrl", + "label": "Target Url", + "description": "Webhook target url", + "icon": "IconLink", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "createdAt": "2024-06-07T09:05:12.599Z", + "updatedAt": "2024-06-07T09:05:12.599Z", + "defaultValue": "''", + "options": null, + "relationDefinition": null, + "fromRelationMetadata": null, + "toRelationMetadata": null + } + } + ] + } + } + } + ] +} + } as ObjectMetadataItemsQuery; diff --git a/packages/twenty-front/src/testing/mock-data/objectMetadataItems.ts b/packages/twenty-front/src/testing/mock-data/objectMetadataItems.ts index e49af452c5..a728493428 100644 --- a/packages/twenty-front/src/testing/mock-data/objectMetadataItems.ts +++ b/packages/twenty-front/src/testing/mock-data/objectMetadataItems.ts @@ -1,8 +1,4 @@ import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; -import { - FieldMetadataType, - RelationMetadataType, -} from '~/generated-metadata/graphql'; import { mockedStandardObjectMetadataQueryResult } from '~/testing/mock-data/generated/standard-metadata-query-result'; export const generatedMockObjectMetadataItems: ObjectMetadataItem[] = @@ -10,431 +6,3 @@ export const generatedMockObjectMetadataItems: ObjectMetadataItem[] = ...edge.node, fields: edge.node.fields.edges.map((edge) => edge.node), })); - -export const mockObjectMetadataItem: ObjectMetadataItem = { - __typename: 'object', - id: 'b79a038c-b06b-4a5a-b7ee-f8ba412aa1c0', - nameSingular: 'company', - namePlural: 'companies', - labelSingular: 'Company', - labelPlural: 'Companies', - description: 'A company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: false, - createdAt: '2023-12-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: [ - { - __typename: 'field', - id: '390eb5e5-d8d1-4064-bf75-3461251eb142', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: '72a43010-f236-4fa2-8ac4-a31e6b37d692', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: { - id: 'f08943fe-e8a0-4747-951c-c3b391842453', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - id: 'fcccc985-5edf-405c-aa2b-80c82b230f35', - nameSingular: 'person', - namePlural: 'people', - isSystem: false, - isRemote: false, - }, - toFieldMetadataId: 'c756f6ff-8c00-4fe5-a923-c6cfc7b1ac4a', - }, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: '51636fba-1bd9-4344-bba8-9639cbc8e134', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: { - id: '7ffae8bb-b12b-4ad9-8922-da0d517b5612', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - id: '169e5b21-dc95-44a8-acd0-5e9447dd0784', - nameSingular: 'opportunity', - namePlural: 'opportunities', - isSystem: false, - isRemote: false, - }, - toFieldMetadataId: '00468e2a-a601-4635-ae9c-a9bb826cc860', - }, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: 'd541f76b-d327-4dda-8ef8-81b60e5ad01e', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: { - id: 'bc42672b-350f-45c3-bd1f-4debb536ccd1', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - id: 'b87c6cac-a8e7-4156-a525-30ec536acd75', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - isSystem: true, - isRemote: false, - }, - toFieldMetadataId: 'bba19feb-c248-487b-92d7-98df54c51e44', - }, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: 'dacb7562-497e-4080-8ef5-746d6786ed49', - type: FieldMetadataType.DateTime, - name: 'createdAt', - label: 'Creation date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2023-12-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: { - type: 'now', - }, - }, - { - __typename: 'field', - id: 'f3b4ff22-800b-4f13-8262-8003da8eed5b', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: 'c3e64012-32cc-43f1-af2f-33b37cc4e59d', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: 'fced9acc-0374-487d-9da4-579a17435df0', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: '63db0a2f-ffb4-4ea1-98c7-f7e13ce75c38', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: { - id: '901fd405-c6bf-4559-9d1f-d0937b6f16d9', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - id: '77240b4b-6bcf-454d-a102-19bbba181716', - nameSingular: 'attachment', - namePlural: 'attachments', - isSystem: true, - isRemote: false, - }, - toFieldMetadataId: '0880dac5-37d2-43a6-b143-722126d4923f', - }, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: 'e775ce12-87c0-4feb-bcfe-9af3d8ca117b', - type: FieldMetadataType.Uuid, - name: 'id', - label: 'Id', - description: null, - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: { - type: 'uuid', - }, - }, - { - __typename: 'field', - id: '2278ef91-3d6a-45cf-86f5-76b7bfa2bf32', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: { - value: '', - }, - }, - { - __typename: 'field', - id: '438291d7-18f4-48cf-8dca-05e96c5a0765', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: 'edb8475f-03fc-4ac1-9305-e9d4e2dacd11', - type: FieldMetadataType.DateTime, - name: 'updatedAt', - label: 'Update date', - description: null, - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2023-12-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: { - type: 'now', - }, - }, - { - __typename: 'field', - id: 'e3c9ba7f-cecf-4ac6-a7b9-7a9987be0253', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: { - id: '0317d74c-5187-491f-9e1d-d22f06ca2a38', - relationType: RelationMetadataType.OneToMany, - fromObjectMetadata: { - id: '92c306ce-ad06-4712-99d2-5d0daf13c95f', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - isSystem: true, - isRemote: false, - }, - fromFieldMetadataId: '0f3e456f-3bb4-4261-a436-95246dc0e159', - }, - defaultValue: null, - }, - { - __typename: 'field', - id: 'a34bd3b3-6949-4793-bac6-d2c054639c7f', - type: FieldMetadataType.Text, - name: 'address', - label: 'Address', - description: 'The company address', - icon: 'IconMap', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2023-12-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: { - value: '', - }, - }, - { - __typename: 'field', - id: '4b204845-f1fc-4fd8-8fdd-f4caeaab749f', - type: FieldMetadataType.Relation, - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the company', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2023-12-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: { - id: '8e0d3aa1-6135-4d65-aa28-15a5b6d1619c', - relationType: RelationMetadataType.OneToMany, - toObjectMetadata: { - id: '1415392e-0ecb-462e-aa67-001e424e6a37', - nameSingular: 'favorite', - namePlural: 'favorites', - isSystem: true, - isRemote: false, - }, - toFieldMetadataId: '8fd8965b-bd4e-4a9b-90e9-c75652dadda1', - }, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: 'a795e81e-0bcf-4fd6-8f2f-b3764b990d2d', - 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-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: null, - }, - { - __typename: 'field', - id: '87887d23-f632-4d3e-840a-02fcee960660', - type: FieldMetadataType.Text, - name: 'name', - label: 'Name', - description: 'The company name', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2023-12-19T12:15:28.459Z', - updatedAt: '2023-12-19T12:15:28.459Z', - fromRelationMetadata: null, - toRelationMetadata: null, - defaultValue: { - value: '', - }, - }, - ], -}; diff --git a/packages/twenty-front/src/testing/mock-data/people.ts b/packages/twenty-front/src/testing/mock-data/people.ts index 1baec770db..e0aaa78486 100644 --- a/packages/twenty-front/src/testing/mock-data/people.ts +++ b/packages/twenty-front/src/testing/mock-data/people.ts @@ -1,147 +1,9 @@ -import { Company } from '@/companies/types/Company'; -import { Person } from '@/people/types/Person'; +export const getPeopleMock = () => { + const peopleMock = peopleQueryResult.people.edges.map((edge) => edge.node); -export type RequiredAndNotNull = { - [P in keyof T]-?: Exclude; + return peopleMock; }; -export type MockedPerson = RequiredAndNotNull< - Pick< - Person, - | '__typename' - | 'id' - | 'name' - | 'linkedinLink' - | 'xLink' - | 'jobTitle' - | 'email' - | 'phone' - | 'city' - | 'avatarUrl' - | 'createdAt' - | 'companyId' - > & { - company: Pick; - } ->; - -export const mockedPeopleData: MockedPerson[] = [ - { - __typename: 'Person', - id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b', - name: { - firstName: 'Alexandre', - lastName: 'Prot', - }, - email: 'alexandre@qonto.com', - linkedinLink: { - url: 'https://www.linkedin.com/in/alexandreprot/', - label: 'https://www.linkedin.com/in/alexandreprot/', - }, - xLink: { - url: 'https://twitter.com/alexandreprot', - label: 'https://twitter.com/alexandreprot', - }, - avatarUrl: - 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAADygAwAEAAAAAQAAADwAAAAA/+0AOFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAAOEJJTQQlAAAAAAAQ1B2M2Y8AsgTpgAmY7PhCfv/AABEIADwAPAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2wBDAAoHCBUSFRgSEhUYGBgYGBgYGBgYGBgYGBgYGBgZGRgaGBgcIS4lHB4rIRgYJjgmKy8xNTU1GiQ7QDszPy40NTH/2wBDAQwMDBAPEBwSEh40ISQkMTQ0NjQxNDQ2NDQ0NDQ0MTQ0NDQ0NDQ0NDQ0NDE0NDQ0NDQ0PzQ0NDQ0NDQ0NDQ0NDT/3QAEAAT/2gAMAwEAAhEDEQA/AOtApcUtLWpkJiub1TxlawHaC0pGM+WAQM9ixIGfal8bas8ESwwjMs5KLjqq4+ZgO55A/wCBe1cDceGLxVyYCysOqfNjnoQOQfzqJTs7GkYNq53uleLba5KoCyO2fldcDI7b/uk/jW8VrxSSJowQ6OPqhwPxxXofw81Mz27IxyYmCjPUKRlee/f8qIyuKUbHT4oxT6SrIP/Q6+ilorUyOJ147tTjzjbFArEk4A3M/wD9au20u4Rl+R1bHXawJFZ89vGbgM4GWj2898HI/rTbXSIo5lkj5fpuyWO3upPccVx1H7zO6nH3EizroBjbIB/KuL+H0eJ7soMIBGPx3Ocfkf1rUbRPPzM0jYYtv3MTjkjCDOF7flS+C7Hyo5XznzZSRxjhAEH16E1VH4ia/wAJ0dFFLXUcZ//R7HFIRWXq/iS1teJZRu6hEG9+/JC9Bx1OK43VPiM7ZW2iCejyHc34Ivyj8zWpmdtqkiq8QfoxYe3bGfryKbNb8HEzIwyUYKCQCOnbP0IPasPwtKb+3JlcvICUck8hgSVYAcLkFSMelSya3LbL5U8Bl28K67efTcD0P0rjm7zZ3UtIocsZEQhDEu5IXrnaTks+Scnqa3LWBY1EaDCqMDkn9TXCSapNBIb+ZR0ZRGSQArY+Vf8Aa4GD9a6XRvE9tdYCuFc/8s3IVvw7MPcVtRStcwrybZuilpopa2Oc/9Ly0J/kUBaVTS1sZl7SNWmtH8yB9pPBBGVYZzhl7j9R611T/ERmHzWqFvXzDt+uNuevb9a4eiolCMtyozlHYu6zrE12QZSAF+6ijCjPfHc+5/Ss3bUlFUkkrITbbuze8P8Aiqe0IDMZIsjcjEsQOh8ticqcduhx26163FKGUMpyGAII6EEZBrwQmvX/AAFIXso93O0ug/3Vdgo/KmI//9k=', - jobTitle: 'CEO', - companyId: '5c21e19e-e049-4393-8c09-3e3f8fb09ecb', - company: { - __typename: 'Company', - id: '5c21e19e-e049-4393-8c09-3e3f8fb09ecb', - name: 'Qonto', - domainName: 'qonto.com', - }, - phone: '06 12 34 56 78', - createdAt: '2023-04-20T13:20:09.158312+00:00', - city: 'Paris', - }, - { - __typename: 'Person', - id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6d', - name: { firstName: 'John', lastName: 'Doe' }, - linkedinLink: { - url: 'https://www.linkedin.com/in/johndoe/', - label: 'https://www.linkedin.com/in/johndoe/', - }, - xLink: { - url: 'https://twitter.com/johndoe', - label: 'https://twitter.com/johndoe', - }, - avatarUrl: '', - jobTitle: 'CTO', - email: 'john@linkedin.com', - companyId: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6e', - company: { - __typename: 'Company', - id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6e', - name: 'LinkedIn', - domainName: 'linkedin.com', - }, - phone: '06 12 34 56 78', - createdAt: '2023-04-20T13:20:09.158312+00:00', - city: 'Paris', - }, - { - __typename: 'Person', - id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6f', - name: { - firstName: 'Jane', - lastName: 'Doe', - }, - linkedinLink: { - url: 'https://www.linkedin.com/in/janedoe/', - label: 'https://www.linkedin.com/in/janedoe/', - }, - xLink: { - url: 'https://twitter.com/janedoe', - label: 'https://twitter.com/janedoe', - }, - avatarUrl: '', - jobTitle: 'Investor', - email: 'jane@sequoiacap.com', - companyId: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6g', - company: { - __typename: 'Company', - id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6g', - name: 'Sequoia', - domainName: 'sequoiacap.com', - }, - phone: '06 12 34 56 78', - createdAt: '2023-04-20T13:20:09.158312+00:00', - city: 'Paris', - }, - { - __typename: 'Person', - id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6h', - name: { - firstName: 'Janice', - lastName: 'Dane', - }, - email: 'janice@facebook.com', - linkedinLink: { - url: 'https://www.linkedin.com/in/janicedane/', - label: 'https://www.linkedin.com/in/janicedane/', - }, - xLink: { - url: 'https://twitter.com/janicedane', - label: 'https://twitter.com/janicedane', - }, - avatarUrl: '', - jobTitle: 'CEO', - companyId: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6i', - company: { - __typename: 'Company', - id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6i', - name: 'Facebook', - domainName: 'facebook.com', - }, - phone: '06 12 34 56 78', - createdAt: '2023-04-20T13:20:09.158312+00:00', - city: 'Paris', - }, -]; - export const mockedEmptyPersonData = { id: 'ce7f0a37-88d7-4cd8-8b41-6721c57195b5', firstName: '', @@ -159,3 +21,1463 @@ export const mockedEmptyPersonData = { company: null, __typename: 'Person', }; + +export const peopleQueryResult = { + people: { + __typename: 'PersonConnection', + totalCount: 15, + pageInfo: { + __typename: 'PageInfo', + hasNextPage: false, + startCursor: + 'WzEsICIyMDIwMjAyMC0xYzBlLTQ5NGMtYTFiNi04NWIxYzZmZWZhYTUiXQ==', + endCursor: 'WzE1LCAiMjAyMDIwMjAtMmQ0MC00ZTQ5LThkZjQtOWM2YTA0OTE5MWRmIl0=', + }, + edges: [ + { + __typename: 'PersonEdge', + cursor: 'WzEsICIyMDIwMjAyMC0xYzBlLTQ5NGMtYTFiNi04NWIxYzZmZWZhYTUiXQ==', + node: { + __typename: 'Person', + id: '20202020-1c0e-494c-a1b6-85b1c6fefaa5', + email: 'christoph.calisto@linkedin.com', + position: 1, + testJson: { + asd: 2, + array: [1, 2, 3], + }, + testRating: 'RATING_2', + testMultiSelect: ['OPTION_5', 'OPTION_1', 'OPTION_2'], + testBoolean: true, + testSelect: 'OPTION_1', + testDateOnly: '2024-06-04T00:00:00.000Z', + phone: '+33789012345', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Seattle', + testPhone: '+33143554657', + jobTitle: 'CEO', + testCurrency: { + __typename: 'Currency', + amountMicros: 100000000000, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: 'https://www.linkedin.com/in/charlesbochet/', + primaryLinkLabel: '', + secondaryLinks: [ + { + url: 'https://msn.com', + label: '', + }, + { + url: 'https://msn.com', + label: '', + }, + { + url: 'https://msn.com', + label: '', + }, + ], + }, + name: { + __typename: 'FullName', + firstName: 'Christoph', + lastName: 'Callisto', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '1 rue de la paix', + addressStreet2: '', + addressCity: 'Paris', + addressState: 'Paris', + addressCountry: 'France', + addressPostcode: '75008', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: 'singlelink.com', + }, + bestCompany: { + __typename: 'Company', + id: '20202020-1455-4c57-afaf-dd5dc086361d', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Algolia', + domainName: 'algolia.com', + address: '', + position: 13, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + company: { + __typename: 'Company', + id: '20202020-3ec3-4fe3-8997-b76aa0bfa408', + employees: null, + previousEmployeesId: '20202020-2d40-4e49-8df4-9c6a049191de', + accountOwnerId: null, + updatedAt: '2024-06-05T09:39:33.886Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Linkedin', + domainName: 'linkedin.com', + address: '', + position: 1, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzIsICIyMDIwMjAyMC1hYzczLTQ3OTctODI0ZS04N2ExZjVhZWE5ZTAiXQ==', + node: { + __typename: 'Person', + id: '20202020-ac73-4797-824e-87a1f5aea9e0', + email: 'sylvie.palmer@linkedin.com', + bestCompany: null, + position: 2, + testJson: null, + testRating: 'RATING_5', + testMultiSelect: ['OPTION_2', 'OPTION_3', 'OPTION_4'], + testBoolean: false, + testSelect: null, + testDateOnly: '2024-06-06T00:00:00.000Z', + phone: '+33780123456', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Los Angeles', + testPhone: '', + jobTitle: 'CEO', + testCurrency: { + __typename: 'Currency', + amountMicros: 20323000000, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: 'https://algolia.com', + primaryLinkLabel: '', + secondaryLinks: [ + { + url: 'https://paris.com', + label: '', + }, + ], + }, + name: { + __typename: 'FullName', + firstName: 'Sylvie', + lastName: 'Palmer', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-3ec3-4fe3-8997-b76aa0bfa408', + employees: null, + previousEmployeesId: '20202020-2d40-4e49-8df4-9c6a049191de', + accountOwnerId: null, + updatedAt: '2024-06-05T09:39:33.886Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Linkedin', + domainName: 'linkedin.com', + address: '', + position: 1, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzMsICIyMDIwMjAyMC1mNTE3LTQyZmQtODBhZS0xNDE3M2IzYjcwYWUiXQ==', + node: { + __typename: 'Person', + id: '20202020-f517-42fd-80ae-14173b3b70ae', + email: 'christopher.gonzalez@qonto.com', + bestCompany: null, + position: 3, + testJson: null, + testRating: 'RATING_3', + testMultiSelect: ['OPTION_2', 'OPTION_4', 'OPTION_5'], + testBoolean: true, + testSelect: null, + testDateOnly: '2024-06-04T00:00:00.000Z', + phone: '+33789012345', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Seattle', + testPhone: '', + jobTitle: 'CTO', + testCurrency: { + __typename: 'Currency', + amountMicros: 343434000000, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Christopher', + lastName: 'Gonzalez', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-0713-40a5-8216-82802401d33e', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Qonto', + domainName: 'qonto.com', + address: '', + position: 3, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzQsICIyMDIwMjAyMC1lZWUxLTQ2OTAtYWQyYy04NjE5ZTViNTZhMmUiXQ==', + node: { + __typename: 'Person', + id: '20202020-eee1-4690-ad2c-8619e5b56a2e', + email: 'ashley.parker@qonto.com', + bestCompany: null, + position: 4, + testJson: null, + testRating: 'RATING_4', + testMultiSelect: ['OPTION_5', 'OPTION_2', 'OPTION_3'], + testBoolean: true, + testSelect: 'OPTION_4', + testDateOnly: '2024-06-19T00:00:00.000Z', + phone: '+33780123456', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Los Angeles', + testPhone: '', + jobTitle: 'CEO', + testCurrency: { + __typename: 'Currency', + amountMicros: 219232302323000000, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Ashley', + lastName: 'Parker', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-0713-40a5-8216-82802401d33e', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Qonto', + domainName: 'qonto.com', + address: '', + position: 3, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzUsICIyMDIwMjAyMC02Nzg0LTQ0NDktYWZkZi1kYzYyY2I4NzAyZjIiXQ==', + node: { + __typename: 'Person', + id: '20202020-6784-4449-afdf-dc62cb8702f2', + email: 'nicholas.wright@microsoft.com', + bestCompany: null, + position: 5, + testJson: null, + testRating: null, + testMultiSelect: null, + testBoolean: false, + testSelect: null, + testDateOnly: null, + phone: '+33781234567', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Seattle', + testPhone: '', + jobTitle: 'CTO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Nicholas', + lastName: 'Wright', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-ed89-413a-b31a-962986e67bb4', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Microsoft', + domainName: 'microsoft.com', + address: '', + position: 4, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzYsICIyMDIwMjAyMC00OTBmLTQ0NjYtODM5MS03MzNjZmQ2NmEwYzgiXQ==', + node: { + __typename: 'Person', + id: '20202020-490f-4466-8391-733cfd66a0c8', + email: 'isabella.scott@microsoft.com', + bestCompany: null, + position: 6, + testJson: null, + testRating: null, + testMultiSelect: ['OPTION_1', 'OPTION_3', 'OPTION_5'], + testBoolean: false, + testSelect: 'OPTION_4', + testDateOnly: null, + phone: '+33782345678', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'New York', + testPhone: '', + jobTitle: 'CFO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Isabella', + lastName: 'Scott', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-ed89-413a-b31a-962986e67bb4', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Microsoft', + domainName: 'microsoft.com', + address: '', + position: 4, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzcsICIyMDIwMjAyMC04MGYxLTRkZmYtYjU3MC1hNzQ5NDI1MjhkZTMiXQ==', + node: { + __typename: 'Person', + id: '20202020-80f1-4dff-b570-a74942528de3', + email: 'matthew.green@microsoft.com', + bestCompany: null, + position: 7, + testJson: null, + testRating: null, + testMultiSelect: ['OPTION_6', 'OPTION_7'], + testBoolean: false, + testSelect: null, + testDateOnly: null, + phone: '+33783456789', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Seattle', + testPhone: '', + jobTitle: 'CEO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Matthew', + lastName: 'Green', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-ed89-413a-b31a-962986e67bb4', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Microsoft', + domainName: 'microsoft.com', + address: '', + position: 4, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzgsICIyMDIwMjAyMC0zMzhiLTQ2ZGYtODgxMS1mYTA4YzdkMTlkMzUiXQ==', + node: { + __typename: 'Person', + id: '20202020-338b-46df-8811-fa08c7d19d35', + email: 'elizabeth.baker@airbnb.com', + bestCompany: null, + position: 8, + testJson: null, + testRating: null, + testMultiSelect: null, + testBoolean: true, + testSelect: 'OPTION_5', + testDateOnly: '2024-06-11T00:00:00.000Z', + phone: '+33784567890', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'New York', + testPhone: '', + jobTitle: 'CTO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Elizabeth', + lastName: 'Baker', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-171e-4bcc-9cf7-43448d6fb278', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Airbnb', + domainName: 'airbnb.com', + address: '', + position: 5, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzksICIyMDIwMjAyMC02NGFkLTRiMGUtYmJmZC1lOWZkNzk1YjcwMTYiXQ==', + node: { + __typename: 'Person', + id: '20202020-64ad-4b0e-bbfd-e9fd795b7016', + email: 'christopher.nelson@airbnb.com', + bestCompany: null, + position: 9, + testJson: null, + testRating: null, + testMultiSelect: null, + testBoolean: true, + testSelect: null, + testDateOnly: null, + phone: '+33785678901', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'San Francisco', + testPhone: '', + jobTitle: 'CFO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Christopher', + lastName: 'Nelson', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-171e-4bcc-9cf7-43448d6fb278', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Airbnb', + domainName: 'airbnb.com', + address: '', + position: 5, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzEwLCAiMjAyMDIwMjAtNWQ1NC00MWI3LWJhMzYtZjBkMjBlMTQxN2FlIl0=', + node: { + __typename: 'Person', + id: '20202020-5d54-41b7-ba36-f0d20e1417ae', + email: 'avery.carter@airbnb.com', + bestCompany: null, + position: 10, + testJson: null, + testRating: null, + testMultiSelect: null, + testBoolean: false, + testSelect: 'OPTION_2', + testDateOnly: null, + phone: '+33786789012', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'New York', + testPhone: '', + jobTitle: 'CTO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Avery', + lastName: 'Carter', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-171e-4bcc-9cf7-43448d6fb278', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Airbnb', + domainName: 'airbnb.com', + address: '', + position: 5, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzExLCAiMjAyMDIwMjAtNjIzZC00MWZlLTkyZTctZGQ0NWI3YzU2OGUxIl0=', + node: { + __typename: 'Person', + id: '20202020-623d-41fe-92e7-dd45b7c568e1', + email: 'ethan.mitchell@google.com', + bestCompany: null, + position: 11, + testJson: null, + testRating: null, + testMultiSelect: null, + testBoolean: true, + testSelect: null, + testDateOnly: null, + phone: '+33787890123', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Los Angeles', + testPhone: '', + jobTitle: 'CMO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Ethan', + lastName: 'Mitchell', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-c21e-4ec2-873b-de4264d89025', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Google', + domainName: 'google.com', + address: '', + position: 6, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzEyLCAiMjAyMDIwMjAtMmQ0MC00ZTQ5LThkZjQtOWM2YTA0OTE5MGVmIl0=', + node: { + __typename: 'Person', + id: '20202020-2d40-4e49-8df4-9c6a049190ef', + email: 'madison.perez@google.com', + bestCompany: null, + position: 12, + testJson: null, + testRating: null, + testMultiSelect: null, + testBoolean: true, + testSelect: null, + testDateOnly: null, + phone: '+33788901234', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Seattle', + testPhone: '', + jobTitle: 'CHO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Madison', + lastName: 'Perez', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-c21e-4ec2-873b-de4264d89025', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Google', + domainName: 'google.com', + address: '', + position: 6, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzEzLCAiMjAyMDIwMjAtMmQ0MC00ZTQ5LThkZjQtOWM2YTA0OTE5MGRmIl0=', + node: { + __typename: 'Person', + id: '20202020-2d40-4e49-8df4-9c6a049190df', + email: 'bertrand.voulzy@google.com', + bestCompany: null, + position: 13, + testJson: null, + testRating: null, + testMultiSelect: null, + testBoolean: false, + testSelect: null, + testDateOnly: null, + phone: '+33788901234', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Seattle', + testPhone: '', + jobTitle: 'CFO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Bertrand', + lastName: 'Voulzy', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-c21e-4ec2-873b-de4264d89025', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Google', + domainName: 'google.com', + address: '', + position: 6, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzE0LCAiMjAyMDIwMjAtMmQ0MC00ZTQ5LThkZjQtOWM2YTA0OTE5MWRlIl0=', + node: { + __typename: 'Person', + id: '20202020-2d40-4e49-8df4-9c6a049191de', + email: 'louis.duss@google.com', + bestCompany: null, + position: 14, + testJson: null, + testRating: null, + testMultiSelect: null, + testBoolean: true, + testSelect: 'OPTION_1', + testDateOnly: null, + phone: '+33788901234', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Seattle', + testPhone: '', + jobTitle: 'CTO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: 'twitter.com', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Louis', + lastName: 'Duss', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-c21e-4ec2-873b-de4264d89025', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Google', + domainName: 'google.com', + address: '', + position: 6, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + { + __typename: 'PersonEdge', + cursor: 'WzE1LCAiMjAyMDIwMjAtMmQ0MC00ZTQ5LThkZjQtOWM2YTA0OTE5MWRmIl0=', + node: { + __typename: 'Person', + id: '20202020-2d40-4e49-8df4-9c6a049191df', + email: 'lorie.vladim@google.com', + bestCompany: null, + position: 15, + testJson: null, + testRating: null, + testMultiSelect: null, + testBoolean: false, + testSelect: null, + testDateOnly: null, + phone: '+33788901235', + createdAt: '2024-06-05T09:00:20.412Z', + city: 'Seattle', + testPhone: '', + jobTitle: 'CEO', + testCurrency: { + __typename: 'Currency', + amountMicros: null, + currencyCode: 'USD', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + testLinks: { + __typename: 'Links', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, + }, + name: { + __typename: 'FullName', + firstName: 'Lorie', + lastName: 'Vladim', + }, + linkedinLink: { + __typename: 'Link', + label: '', + url: 'linkedin.com', + }, + testAddress: { + __typename: 'Address', + addressStreet1: '', + addressStreet2: '', + addressCity: '', + addressState: '', + addressCountry: '', + addressPostcode: '', + addressLat: null, + addressLng: null, + }, + testLink: { + __typename: 'Link', + label: '', + url: '', + }, + company: { + __typename: 'Company', + id: '20202020-c21e-4ec2-873b-de4264d89025', + employees: null, + previousEmployeesId: null, + accountOwnerId: null, + updatedAt: '2024-06-05T09:00:20.412Z', + idealCustomerProfile: false, + createdAt: '2024-06-05T09:00:20.412Z', + name: 'Google', + domainName: 'google.com', + address: '', + position: 6, + linkedinLink: { + __typename: 'Link', + label: '', + url: '', + }, + annualRecurringRevenue: { + __typename: 'Currency', + amountMicros: null, + currencyCode: '', + }, + xLink: { + __typename: 'Link', + label: '', + url: '', + }, + }, + }, + }, + ], + }, +}; diff --git a/packages/twenty-front/src/testing/mock-data/peopleV2.ts b/packages/twenty-front/src/testing/mock-data/peopleV2.ts deleted file mode 100644 index 066910f635..0000000000 --- a/packages/twenty-front/src/testing/mock-data/peopleV2.ts +++ /dev/null @@ -1,533 +0,0 @@ -import { Company } from '@/companies/types/Company'; -import { Person } from '@/people/types/Person'; - -export type MockedPersonV2 = Pick< - Person, - | '__typename' - | 'id' - | 'name' - | 'linkedinLink' - | 'xLink' - | 'links' - | 'jobTitle' - | 'email' - | 'phone' - | 'city' - | 'avatarUrl' - | 'createdAt' - | 'updatedAt' - | 'companyId' - | 'position' -> & { - company?: Company; -}; - -export const mockPeopleDataV2: MockedPersonV2[] = [ - { - __typename: 'Person', - city: 'Seattle', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-1c0e-494c-a1b6-85b1c6fefaa5', - email: 'christoph.calisto@linkedin.com', - phone: '+33789012345', - position: 1, - name: { - __typename: 'FullName', - firstName: 'Christoph', - lastName: 'Callisto', - }, - linkedinLink: { __typename: 'Link', label: '', url: 'asd' }, - xLink: { __typename: 'Link', label: '', url: 'asd' }, - company: { - __typename: 'Company', - domainName: 'linkedin.com', - name: 'Linkedin', - employees: 10102, - accountOwnerId: null, - address: '', - idealCustomerProfile: false, - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-3ec3-4fe3-8997-b76aa0bfa408', - position: 1, - updatedAt: '2024-05-23T13:21:41.159Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { __typename: 'Link', label: 'adasd', url: 'adasd' }, - }, - }, - { - __typename: 'Person', - city: 'Los Angeles', - jobTitle: '@', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-ac73-4797-824e-87a1f5aea9e0', - email: 'sylvie.palmer@linkedin.com', - phone: '+33780123456', - position: 2, - name: { __typename: 'FullName', firstName: 'Sylvie', lastName: 'Palmer' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'algolia.com', - name: 'Algolia', - employees: 10000, - accountOwnerId: '20202020-77d5-4cb6-b60a-f4a835a85d61', - address: '', - idealCustomerProfile: false, - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-1455-4c57-afaf-dd5dc086361d', - position: 13, - updatedAt: '2024-05-28T15:52:31.839Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'Seattle', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-f517-42fd-80ae-14173b3b70ae', - email: 'christopher.gonzalez@qonto.com', - phone: '+33789012345', - position: 3, - name: { - __typename: 'FullName', - firstName: 'Christopher', - lastName: 'Gonzalez', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'qonto.com', - name: 'Qonto', - employees: 123123123, - accountOwnerId: '20202020-1553-45c6-a028-5a9064cce07f', - address: '', - idealCustomerProfile: false, - createdAt: '2024-05-08T13:16:29.000Z', - id: '20202020-0713-40a5-8216-82802401d33e', - position: 9.5, - updatedAt: '2024-05-28T15:52:46.961Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'Los Angeles', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-eee1-4690-ad2c-8619e5b56a2e', - email: 'ashley.parker@qonto.com', - phone: '+33780123456', - position: 4, - name: { __typename: 'FullName', firstName: 'Ashley', lastName: 'Parker' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'qonto.com', - name: 'Qonto', - employees: 123123123, - accountOwnerId: '20202020-1553-45c6-a028-5a9064cce07f', - address: '', - idealCustomerProfile: false, - createdAt: '2024-05-08T13:16:29.000Z', - id: '20202020-0713-40a5-8216-82802401d33e', - position: 9.5, - updatedAt: '2024-05-28T15:52:46.961Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'Seattle', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-6784-4449-afdf-dc62cb8702f2', - email: 'nicholas.wright@microsoft.com', - phone: '+33781234567', - position: 5, - name: { __typename: 'FullName', firstName: 'Nicholas', lastName: 'Wright' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'microsoft.com', - name: 'Microsoft', - employees: 10000, - accountOwnerId: '20202020-0687-4c41-b707-ed1bfca972a7', - address: '', - idealCustomerProfile: false, - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-ed89-413a-b31a-962986e67bb4', - position: 6.09375, - updatedAt: '2024-05-28T15:52:35.621Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 10000000000, - currencyCode: 'USD', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'New York', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-490f-4466-8391-733cfd66a0c8', - email: 'isabella.scott@microsoft.com', - phone: '+33782345678', - position: 6, - name: { __typename: 'FullName', firstName: 'Isabella', lastName: 'Scott' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'microsoft.com', - name: 'Microsoft', - employees: 10000, - accountOwnerId: '20202020-0687-4c41-b707-ed1bfca972a7', - address: '', - idealCustomerProfile: false, - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-ed89-413a-b31a-962986e67bb4', - position: 6.09375, - updatedAt: '2024-05-28T15:52:35.621Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 10000000000, - currencyCode: 'USD', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'Seattle', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-80f1-4dff-b570-a74942528de3', - email: 'matthew.green@microsoft.com', - phone: '+33783456789', - position: 7, - name: { __typename: 'FullName', firstName: 'Matthew', lastName: 'Green' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'microsoft.com', - name: 'Microsoft', - employees: 10000, - accountOwnerId: '20202020-0687-4c41-b707-ed1bfca972a7', - address: '', - idealCustomerProfile: false, - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-ed89-413a-b31a-962986e67bb4', - position: 6.09375, - updatedAt: '2024-05-28T15:52:35.621Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 10000000000, - currencyCode: 'USD', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'New York', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-338b-46df-8811-fa08c7d19d35', - email: 'elizabeth.baker@airbnb.com', - phone: '+33784567890', - position: 8, - name: { __typename: 'FullName', firstName: 'Elizabeth', lastName: 'Baker' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'airbnb.com', - name: 'Airbnb', - employees: 123333, - accountOwnerId: null, - address: '', - idealCustomerProfile: false, - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-171e-4bcc-9cf7-43448d6fb278', - position: 5, - updatedAt: '2024-05-28T15:52:27.902Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'San Francisco', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-64ad-4b0e-bbfd-e9fd795b7016', - email: 'christopher.nelson@airbnb.com', - phone: '+33785678901', - position: 9, - name: { - __typename: 'FullName', - firstName: 'Christopher', - lastName: 'Nelson', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'airbnb.com', - name: 'Airbnb', - employees: 123333, - accountOwnerId: null, - address: '', - idealCustomerProfile: false, - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-171e-4bcc-9cf7-43448d6fb278', - position: 5, - updatedAt: '2024-05-28T15:52:27.902Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'New York', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-5d54-41b7-ba36-f0d20e1417ae', - email: 'avery.carter@airbnb.com', - phone: '+33786789012', - position: 10, - name: { __typename: 'FullName', firstName: 'Avery', lastName: 'Carter' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'airbnb.com', - name: 'Airbnb', - employees: 123333, - accountOwnerId: null, - address: '', - idealCustomerProfile: false, - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-171e-4bcc-9cf7-43448d6fb278', - position: 5, - updatedAt: '2024-05-28T15:52:27.902Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: null, - currencyCode: '', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'Los Angeles', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-623d-41fe-92e7-dd45b7c568e1', - email: 'ethan.mitchell@google.com', - phone: '+33787890123', - position: 11, - name: { __typename: 'FullName', firstName: 'Ethan', lastName: 'Mitchell' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'google.com', - name: 'Google', - employees: 10202, - accountOwnerId: '20202020-0687-4c41-b707-ed1bfca972a7', - address: 'Paris France', - idealCustomerProfile: false, - createdAt: '2024-05-21T13:16:29.000Z', - id: '20202020-c21e-4ec2-873b-de4264d89025', - position: 7.5, - updatedAt: '2024-05-28T15:53:28.838Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 1001000000, - currencyCode: 'USD', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'Seattle', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-2d40-4e49-8df4-9c6a049190ef', - email: 'madison.perez@google.com', - phone: '+33788901234', - position: 12, - name: { __typename: 'FullName', firstName: 'Madison', lastName: 'Perez' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'google.com', - name: 'Google', - employees: 10202, - accountOwnerId: '20202020-0687-4c41-b707-ed1bfca972a7', - address: 'Paris France', - idealCustomerProfile: false, - createdAt: '2024-05-21T13:16:29.000Z', - id: '20202020-c21e-4ec2-873b-de4264d89025', - position: 7.5, - updatedAt: '2024-05-28T15:53:28.838Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 1001000000, - currencyCode: 'USD', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'Seattle', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-2d40-4e49-8df4-9c6a049190df', - email: 'bertrand.voulzy@google.com', - phone: '+33788901234', - position: 13, - name: { __typename: 'FullName', firstName: 'Bertrand', lastName: 'Voulzy' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'google.com', - name: 'Google', - employees: 10202, - accountOwnerId: '20202020-0687-4c41-b707-ed1bfca972a7', - address: 'Paris France', - idealCustomerProfile: false, - createdAt: '2024-05-21T13:16:29.000Z', - id: '20202020-c21e-4ec2-873b-de4264d89025', - position: 7.5, - updatedAt: '2024-05-28T15:53:28.838Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 1001000000, - currencyCode: 'USD', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'Seattle', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-2d40-4e49-8df4-9c6a049191de', - email: 'louis.duss@google.com', - phone: '+33788901234', - position: 14, - name: { __typename: 'FullName', firstName: 'Louis', lastName: 'Duss' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'google.com', - name: 'Google', - employees: 10202, - accountOwnerId: '20202020-0687-4c41-b707-ed1bfca972a7', - address: 'Paris France', - idealCustomerProfile: false, - createdAt: '2024-05-21T13:16:29.000Z', - id: '20202020-c21e-4ec2-873b-de4264d89025', - position: 7.5, - updatedAt: '2024-05-28T15:53:28.838Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 1001000000, - currencyCode: 'USD', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, - { - __typename: 'Person', - city: 'Seattle', - jobTitle: '', - createdAt: '2024-05-01T13:16:29.046Z', - id: '20202020-2d40-4e49-8df4-9c6a049191df', - email: 'lorie.vladim@google.com', - phone: '+33788901235', - position: 15, - name: { __typename: 'FullName', firstName: 'Lorie', lastName: 'Vladim' }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - xLink: { __typename: 'Link', label: '', url: '' }, - company: { - __typename: 'Company', - domainName: 'google.com', - name: 'Google', - employees: 10202, - accountOwnerId: '20202020-0687-4c41-b707-ed1bfca972a7', - address: 'Paris France', - idealCustomerProfile: false, - createdAt: '2024-05-21T13:16:29.000Z', - id: '20202020-c21e-4ec2-873b-de4264d89025', - position: 7.5, - updatedAt: '2024-05-28T15:53:28.838Z', - xLink: { __typename: 'Link', label: '', url: '' }, - annualRecurringRevenue: { - __typename: 'Currency', - amountMicros: 1001000000, - currencyCode: 'USD', - }, - linkedinLink: { __typename: 'Link', label: '', url: '' }, - }, - }, -]; diff --git a/packages/twenty-front/src/utils/date-utils.ts b/packages/twenty-front/src/utils/date-utils.ts index cb1a6e8c16..ede9c37b68 100644 --- a/packages/twenty-front/src/utils/date-utils.ts +++ b/packages/twenty-front/src/utils/date-utils.ts @@ -2,6 +2,9 @@ import { isDate, isNumber, isString } from '@sniptt/guards'; import { differenceInCalendarDays, formatDistanceToNow } from 'date-fns'; import { DateTime } from 'luxon'; +import moize from 'moize'; + +import { isDefined } from '~/utils/isDefined'; import { logError } from './logError'; @@ -133,3 +136,75 @@ export const beautifyDateDiff = ( if (![0, 1].includes(dateDiff.days)) result = result + 's'; return result; }; + +const getMonthLabels = () => { + const formatter = new Intl.DateTimeFormat(undefined, { + month: 'short', + timeZone: 'UTC', + }); + + return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] + .map((month) => { + const monthZeroFilled = month < 10 ? `0${month}` : month; + return new Date(`2017-${monthZeroFilled}-01T00:00:00+00:00`); + }) + .map((date) => formatter.format(date)); +}; + +const getMonthLabelsMemoized = moize(getMonthLabels); + +export const formatISOStringToHumanReadableDateTime = (date: string) => { + const monthLabels = getMonthLabelsMemoized(); + + if (!isDefined(monthLabels)) { + return formatToHumanReadableDateTime(date); + } + + const year = date.slice(0, 4); + const month = date.slice(5, 7); + const day = date.slice(8, 10); + + const monthLabel = monthLabels[parseInt(month, 10) - 1]; + + const jsDate = new Date(date); + + return `${day} ${monthLabel} ${year} - ${jsDate.getHours()}:${jsDate.getMinutes()}`; +}; + +export const formatISOStringToHumanReadableDate = (date: string) => { + const monthLabels = getMonthLabelsMemoized(); + + if (!isDefined(monthLabels)) { + return formatToHumanReadableDate(date); + } + + const year = date.slice(0, 4); + const month = date.slice(5, 7); + const day = date.slice(8, 10); + + const monthLabel = monthLabels[parseInt(month, 10) - 1]; + + return `${day} ${monthLabel} ${year}`; +}; + +export const formatToHumanReadableDate = (date: Date | string) => { + const parsedJSDate = parseDate(date).toJSDate(); + + return new Intl.DateTimeFormat(undefined, { + month: 'short', + day: 'numeric', + year: 'numeric', + }).format(parsedJSDate); +}; + +export const formatToHumanReadableDateTime = (date: Date | string) => { + const parsedJSDate = parseDate(date).toJSDate(); + + return new Intl.DateTimeFormat(undefined, { + month: 'short', + day: 'numeric', + year: 'numeric', + hour: 'numeric', + minute: 'numeric', + }).format(parsedJSDate); +}; diff --git a/packages/twenty-front/src/utils/index.ts b/packages/twenty-front/src/utils/index.ts index 9edcbb6b97..073ef32f6e 100644 --- a/packages/twenty-front/src/utils/index.ts +++ b/packages/twenty-front/src/utils/index.ts @@ -1,27 +1,3 @@ -import { parseDate } from './date-utils'; - -export const formatToHumanReadableDate = (date: Date | string) => { - const parsedJSDate = parseDate(date).toJSDate(); - - return new Intl.DateTimeFormat(undefined, { - month: 'short', - day: 'numeric', - year: 'numeric', - }).format(parsedJSDate); -}; - -export const formatToHumanReadableDateTime = (date: Date | string) => { - const parsedJSDate = parseDate(date).toJSDate(); - - return new Intl.DateTimeFormat(undefined, { - month: 'short', - day: 'numeric', - year: 'numeric', - hour: 'numeric', - minute: 'numeric', - }).format(parsedJSDate); -}; - export const sanitizeURL = (link: string | null | undefined) => { return link ? link.replace(/(https?:\/\/)|(www\.)/g, '').replace(/\/$/, '') diff --git a/packages/twenty-front/vite.config.ts b/packages/twenty-front/vite.config.ts index b38c80ebcb..34055bdb14 100644 --- a/packages/twenty-front/vite.config.ts +++ b/packages/twenty-front/vite.config.ts @@ -49,8 +49,21 @@ export default defineConfig(({ command, mode }) => { }), svgr(), checker(checkers), + // TODO: fix this, we have to restrict the include to only the components that are using linaria + // Otherwise the build will fail because wyw tries to include emotion styled components wyw({ - include: ['**/EllipsisDisplay.tsx', '**/ContactLink.tsx'], + include: [ + '**/CurrencyDisplay.tsx', + '**/EllipsisDisplay.tsx', + '**/ContactLink.tsx', + '**/BooleanDisplay.tsx', + '**/LinksDisplay.tsx', + '**/RoundedLink.tsx', + '**/OverflowingTextWithTooltip.tsx', + '**/Chip.tsx', + '**/Tag.tsx', + '**/MultiSelectFieldDisplay.tsx', + ], babelOptions: { presets: ['@babel/preset-typescript', '@babel/preset-react'], }, diff --git a/packages/twenty-ui/.storybook/preview.tsx b/packages/twenty-ui/.storybook/preview.tsx index a82808e746..6e95c02831 100644 --- a/packages/twenty-ui/.storybook/preview.tsx +++ b/packages/twenty-ui/.storybook/preview.tsx @@ -3,7 +3,11 @@ import { ThemeProvider } from '@emotion/react'; import { Preview } from '@storybook/react'; import { useDarkMode } from 'storybook-dark-mode'; -import { THEME_DARK, THEME_LIGHT } from '../src/theme/index'; +import { + THEME_DARK, + THEME_LIGHT, + ThemeContextProvider, +} from '../src/theme/index'; const preview: Preview = { decorators: [ @@ -18,7 +22,9 @@ const preview: Preview = { return ( - + + + ); }, diff --git a/packages/twenty-ui/src/display/chip/components/Chip.module.css b/packages/twenty-ui/src/display/chip/components/Chip.module.css deleted file mode 100644 index f61c80cf71..0000000000 --- a/packages/twenty-ui/src/display/chip/components/Chip.module.css +++ /dev/null @@ -1,84 +0,0 @@ -.label { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.chip { - --chip-horizontal-padding: calc(var(--twentycrm-spacing-multiplicator) * 1px); - --chip-vertical-padding: calc(var(--twentycrm-spacing-multiplicator) * 1px); - - align-items: center; - border-radius: var(--twentycrm-border-radius-sm); - - color: var(--twentycrm-font-color-secondary); - - display: inline-flex; - justify-content: center; - - gap: calc(var(--twentycrm-spacing-multiplicator) * 1px); - height: calc(var(--twentycrm-spacing-multiplicator) * 3px); - - max-width: calc(100% - var(--chip-horizontal-padding) * 2px); - overflow: hidden; - - padding: var(--chip-vertical-padding) var(--chip-horizontal-padding); - - user-select: none; -} - -.disabled { - cursor: not-allowed; - - color: var(--twentycrm-font-color-light); - -} - -.clickable { - cursor: pointer; -} - -.accent-text-primary { - color: var(--twentycrm-font-color-primary); -} - -.accent-text-secondary { - font-weight: var(--twentycrm-font-weight-medium); -} - -.size-large { - height: calc(var(--twentycrm-spacing-multiplicator) * 4px); -} - -.variant-regular:hover { - background-color: var(--twentycrm-background-transparent-light); -} - -.variant-regular:active { - background-color: var(--twentycrm-background-transparent-medium); -} - -.variant-highlighted { - background-color: var(--twentycrm-background-transparent-light); -} - -.variant-highlighted:hover { - background-color: var(--twentycrm-background-transparent-medium); -} - -.variant-highlighted:active { - background-color: var(--twentycrm-background-transparent-strong); -} - -.variant-rounded { - --chip-horizontal-padding: calc(var(--twentycrm-spacing-multiplicator) * 2px); - --chip-vertical-padding: 1px; - - background-color: var(--twentycrm-background-transparent-light); - border: 1px solid var(--twentycrm-border-color-medium); - border-radius: 50px; -} - -.variant-transparent { - cursor: inherit; -} \ No newline at end of file diff --git a/packages/twenty-ui/src/display/chip/components/Chip.tsx b/packages/twenty-ui/src/display/chip/components/Chip.tsx index ac1a9c3037..9fce141805 100644 --- a/packages/twenty-ui/src/display/chip/components/Chip.tsx +++ b/packages/twenty-ui/src/display/chip/components/Chip.tsx @@ -1,10 +1,9 @@ import { MouseEvent, ReactNode } from 'react'; -import { clsx } from 'clsx'; +import { Theme, withTheme } from '@emotion/react'; +import { styled } from '@linaria/react'; import { OverflowingTextWithTooltip } from '@ui/display/tooltip/OverflowingTextWithTooltip'; -import styles from './Chip.module.css'; - export enum ChipSize { Large = 'large', Small = 'small', @@ -34,9 +33,86 @@ type ChipProps = { rightComponent?: ReactNode; className?: string; onClick?: (event: MouseEvent) => void; - to?: string; }; +const StyledContainer = withTheme(styled.div< + Pick< + ChipProps, + 'accent' | 'clickable' | 'disabled' | 'maxWidth' | 'size' | 'variant' + > & { theme: Theme } +>` + --chip-horizontal-padding: ${({ theme }) => theme.spacing(1)}; + --chip-vertical-padding: ${({ theme }) => theme.spacing(1)}; + + text-decoration: none; + align-items: center; + + color: ${({ theme, accent, disabled }) => + disabled + ? theme.font.color.light + : accent === ChipAccent.TextPrimary + ? theme.font.color.primary + : theme.font.color.secondary}; + + cursor: ${({ clickable, disabled, variant }) => + variant === ChipVariant.Transparent + ? 'inherit' + : clickable + ? 'pointer' + : disabled + ? 'not-allowed' + : 'inherit'}; + + display: inline-flex; + justify-content: center; + gap: ${({ theme }) => theme.spacing(1)}; + height: ${({ theme }) => theme.spacing(3)}; + max-width: ${({ maxWidth }) => + maxWidth + ? `calc(${maxWidth}px - 2 * var(--chip-horizontal-padding))` + : '200px'}; + + overflow: hidden; + padding: var(--chip-vertical-padding) var(--chip-horizontal-padding); + user-select: none; + + font-weight: ${({ theme, accent }) => + accent === ChipAccent.TextSecondary ? theme.font.weight.medium : 'inherit'}; + + &:hover { + background-color: ${({ theme, variant, disabled }) => + variant === ChipVariant.Regular && !disabled + ? theme.background.transparent.light + : variant === ChipVariant.Highlighted + ? theme.background.transparent.medium + : 'inherit'}; + } + + &:active { + background-color: ${({ theme, disabled, variant }) => + variant === ChipVariant.Regular && !disabled + ? theme.background.transparent.medium + : variant === ChipVariant.Highlighted + ? theme.background.transparent.strong + : 'inherit'}; + } + + background-color: ${({ theme, variant }) => + variant === ChipVariant.Highlighted + ? theme.background.transparent.light + : variant === ChipVariant.Rounded + ? theme.background.transparent.lighter + : 'inherit'}; + + border: ${({ theme, variant }) => + variant === ChipVariant.Rounded + ? `1px solid ${theme.border.color.medium}` + : 'none'}; + + border-radius: ${({ theme, variant }) => + variant === ChipVariant.Rounded ? '50px' : theme.border.radius.sm}; +`); + export const Chip = ({ size = ChipSize.Small, label, @@ -49,30 +125,21 @@ export const Chip = ({ onClick, }: ChipProps) => { return ( -
{leftComponent} -
- -
+ {rightComponent} -
+ ); }; diff --git a/packages/twenty-ui/src/display/tag/components/Tag.tsx b/packages/twenty-ui/src/display/tag/components/Tag.tsx index a751438072..3b2cb67b73 100644 --- a/packages/twenty-ui/src/display/tag/components/Tag.tsx +++ b/packages/twenty-ui/src/display/tag/components/Tag.tsx @@ -1,16 +1,28 @@ -import { useTheme } from '@emotion/react'; -import styled from '@emotion/styled'; +import { useContext } from 'react'; +import { styled } from '@linaria/react'; import { IconComponent, OverflowingTextWithTooltip } from '@ui/display'; -import { ThemeColor, themeColorSchema } from '@ui/theme'; +import { + BORDER_COMMON, + THEME_COMMON, + ThemeColor, + ThemeContext, + ThemeType, +} from '@ui/theme'; + +const spacing5 = THEME_COMMON.spacing(5); +const spacing2 = THEME_COMMON.spacing(2); +const spacing1 = THEME_COMMON.spacing(1); const StyledTag = styled.h3<{ + theme: ThemeType; color: ThemeColor; weight: TagWeight; + preventShrink?: boolean; }>` align-items: center; background: ${({ color, theme }) => theme.tag.background[color]}; - border-radius: ${({ theme }) => theme.border.radius.sm}; + border-radius: ${BORDER_COMMON.radius.sm}; color: ${({ color, theme }) => theme.tag.text[color]}; display: inline-flex; font-size: ${({ theme }) => theme.font.size.md}; @@ -19,10 +31,15 @@ const StyledTag = styled.h3<{ weight === 'regular' ? theme.font.weight.regular : theme.font.weight.medium}; - height: ${({ theme }) => theme.spacing(5)}; + height: ${spacing5}; margin: 0; overflow: hidden; - padding: 0 ${({ theme }) => theme.spacing(2)}; + padding: 0 ${spacing2}; + + gap: ${spacing1}; + + min-width: ${({ preventShrink }) => + preventShrink ? 'fit-content' : 'none;'}; `; const StyledContent = styled.span` @@ -31,9 +48,13 @@ const StyledContent = styled.span` white-space: nowrap; `; +const StyledNonShrinkableText = styled.span` + white-space: nowrap; + width: fit-content; +`; + const StyledIconContainer = styled.div` display: flex; - margin-right: ${({ theme }) => theme.spacing(1)}; `; type TagWeight = 'regular' | 'medium'; @@ -45,8 +66,10 @@ type TagProps = { Icon?: IconComponent; onClick?: () => void; weight?: TagWeight; + preventShrink?: boolean; }; +// TODO: Find a way to have ellipsis and shrinkable tag in tag list while keeping good perf for table cells export const Tag = ({ className, color, @@ -54,23 +77,31 @@ export const Tag = ({ Icon, onClick, weight = 'regular', + preventShrink, }: TagProps) => { - const theme = useTheme(); + const { theme } = useContext(ThemeContext); + return ( {!!Icon && ( )} - - - + {preventShrink ? ( + {text} + ) : ( + + + + )} ); }; diff --git a/packages/twenty-ui/src/display/tag/components/__stories__/Tag.stories.tsx b/packages/twenty-ui/src/display/tag/components/__stories__/Tag.stories.tsx index 0108923779..e764a42aa5 100644 --- a/packages/twenty-ui/src/display/tag/components/__stories__/Tag.stories.tsx +++ b/packages/twenty-ui/src/display/tag/components/__stories__/Tag.stories.tsx @@ -1,6 +1,7 @@ import { Meta, StoryObj } from '@storybook/react'; import { expect, fn, userEvent, within } from '@storybook/test'; +import { IconUser } from '@ui/display/icon/components/TablerIcons'; import { CatalogDecorator, CatalogStory, @@ -48,6 +49,30 @@ export const WithLongText: Story = { }, }; +export const WithIcon: Story = { + decorators: [ComponentDecorator], + args: { + color: 'green', + text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit', + Icon: IconUser, + }, + parameters: { + container: { width: 100 }, + }, +}; + +export const DontShrink: Story = { + decorators: [ComponentDecorator], + args: { + color: 'green', + text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit', + preventShrink: true, + }, + parameters: { + container: { width: 100 }, + }, +}; + export const Catalog: CatalogStory = { argTypes: { color: { control: false }, diff --git a/packages/twenty-ui/src/display/tooltip/OverflowingTextWithTooltip.tsx b/packages/twenty-ui/src/display/tooltip/OverflowingTextWithTooltip.tsx index 6f0967e860..0fbd883f53 100644 --- a/packages/twenty-ui/src/display/tooltip/OverflowingTextWithTooltip.tsx +++ b/packages/twenty-ui/src/display/tooltip/OverflowingTextWithTooltip.tsx @@ -1,11 +1,38 @@ import { useRef, useState } from 'react'; import { createPortal } from 'react-dom'; -import clsx from 'clsx'; -import { v4 as uuidV4 } from 'uuid'; +import { styled } from '@linaria/react'; + +import { THEME_COMMON } from '@ui/theme'; import { AppTooltip } from './AppTooltip'; -import styles from './OverflowingTextWithTooltip.module.css'; +const spacing4 = THEME_COMMON.spacing(4); + +const StyledOverflowingText = styled.div<{ + cursorPointer: boolean; + size: 'large' | 'small'; +}>` + cursor: ${({ cursorPointer }) => (cursorPointer ? 'pointer' : 'inherit')}; + font-family: inherit; + font-size: inherit; + + font-weight: inherit; + max-width: 100%; + overflow: hidden; + text-decoration: inherit; + + text-overflow: ellipsis; + white-space: nowrap; + + height: ${({ size }) => (size === 'large' ? spacing4 : 'auto')}; + + & :hover { + text-overflow: ${({ cursorPointer }) => + cursorPointer ? 'clip' : 'ellipsis'}; + white-space: ${({ cursorPointer }) => + cursorPointer ? 'normal' : 'nowrap'}; + } +`; export const OverflowingTextWithTooltip = ({ size = 'small', @@ -16,7 +43,7 @@ export const OverflowingTextWithTooltip = ({ text: string | null | undefined; mutliline?: boolean; }) => { - const textElementId = `title-id-${uuidV4()}`; + const textElementId = `title-id-${+new Date()}`; const textRef = useRef(null); @@ -43,20 +70,17 @@ export const OverflowingTextWithTooltip = ({ return ( <> -
{text} -
+ {isTitleOverflowing && createPortal(
diff --git a/packages/twenty-ui/src/theme/index.ts b/packages/twenty-ui/src/theme/index.ts index 2d98d81f68..b525f14ae4 100644 --- a/packages/twenty-ui/src/theme/index.ts +++ b/packages/twenty-ui/src/theme/index.ts @@ -34,6 +34,7 @@ export * from './constants/TextInputStyle'; export * from './constants/ThemeCommon'; export * from './constants/ThemeDark'; export * from './constants/ThemeLight'; +export * from './provider/ThemeContextProvider'; export * from './provider/ThemeProvider'; export * from './types/ThemeType'; export * from './utils/getNextThemeColor'; diff --git a/packages/twenty-ui/src/theme/provider/ThemeContextProvider.tsx b/packages/twenty-ui/src/theme/provider/ThemeContextProvider.tsx new file mode 100644 index 0000000000..dc0d94ceae --- /dev/null +++ b/packages/twenty-ui/src/theme/provider/ThemeContextProvider.tsx @@ -0,0 +1,23 @@ +import { createContext } from 'react'; + +import { ThemeType } from '@ui/theme/types/ThemeType'; + +export type ThemeContextType = { + theme: ThemeType; +}; + +export const ThemeContext = createContext( + {} as ThemeContextType, +); + +export const ThemeContextProvider = ({ + children, + theme, +}: { + children: React.ReactNode; + theme: ThemeType; +}) => { + return ( + {children} + ); +}; diff --git a/packages/twenty-ui/src/theme/provider/ThemeProvider.tsx b/packages/twenty-ui/src/theme/provider/ThemeProvider.tsx index 5d86eff433..1282213f8f 100644 --- a/packages/twenty-ui/src/theme/provider/ThemeProvider.tsx +++ b/packages/twenty-ui/src/theme/provider/ThemeProvider.tsx @@ -1,6 +1,8 @@ import { ReactNode, useEffect } from 'react'; import { ThemeProvider as EmotionThemeProvider } from '@emotion/react'; +import { ThemeContextProvider } from '@ui/theme/provider/ThemeContextProvider'; + import { ThemeType } from '..'; import './theme.css'; @@ -16,7 +18,11 @@ const ThemeProvider = ({ theme, children }: ThemeProviderProps) => { theme.name === 'dark' ? 'dark' : 'light'; }, [theme]); - return {children}; + return ( + + {children} + + ); }; export default ThemeProvider; diff --git a/packages/twenty-ui/vite.config.ts b/packages/twenty-ui/vite.config.ts index 2451d0edaa..bac435e19c 100644 --- a/packages/twenty-ui/vite.config.ts +++ b/packages/twenty-ui/vite.config.ts @@ -1,5 +1,6 @@ /// import react from '@vitejs/plugin-react-swc'; +import wyw from '@wyw-in-js/vite'; import * as path from 'path'; import { defineConfig } from 'vite'; import checker from 'vite-plugin-checker'; @@ -27,6 +28,16 @@ export default defineConfig({ tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'), }, }), + wyw({ + include: [ + '**/OverflowingTextWithTooltip.tsx', + '**/Chip.tsx', + '**/Tag.tsx', + ], + babelOptions: { + presets: ['@babel/preset-typescript', '@babel/preset-react'], + }, + }), ], // Configuration for building your library. diff --git a/yarn.lock b/yarn.lock index a95b93a370..96f3306ce9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -27907,6 +27907,13 @@ __metadata: languageName: node linkType: hard +"fast-equals@npm:^3.0.1": + version: 3.0.3 + resolution: "fast-equals@npm:3.0.3" + checksum: ec59372c3f0604fe1569814dd5f86bbe46a5e8ec049f8eda49ce9ab0218e1700c9b7fdef5fe8253453788829a6b2aae6af5f9003f376aed1117f9194b2a7578c + languageName: node + linkType: hard + "fast-fifo@npm:^1.1.0, fast-fifo@npm:^1.2.0": version: 1.3.2 resolution: "fast-fifo@npm:1.3.2" @@ -36160,6 +36167,13 @@ __metadata: languageName: node linkType: hard +"micro-memoize@npm:^4.1.2": + version: 4.1.2 + resolution: "micro-memoize@npm:4.1.2" + checksum: 4b52dc1aa1c4b533f4008f6181f1e640e1bd1d4826881672b4f60f07ab6acc1deea073413e0488d589308e862abf6f03d1dcf7018bf08e751690268a462de4d3 + languageName: node + linkType: hard + "microdiff@npm:^1.3.2": version: 1.3.2 resolution: "microdiff@npm:1.3.2" @@ -37627,6 +37641,16 @@ __metadata: languageName: node linkType: hard +"moize@npm:^6.1.6": + version: 6.1.6 + resolution: "moize@npm:6.1.6" + dependencies: + fast-equals: "npm:^3.0.1" + micro-memoize: "npm:^4.1.2" + checksum: 5496569c25fd2eaf7a50707e62b5109bad9c3ca43166a82e52c7d3fed41d8b7312cabe3180e1c3c68b3785db06dbeee1bfc60b01b69c7389fae4ce3b3154e28f + languageName: node + linkType: hard + "moment@npm:^2.22.1": version: 2.30.1 resolution: "moment@npm:2.30.1" @@ -47444,6 +47468,7 @@ __metadata: lodash.upperfirst: "npm:^4.3.1" luxon: "npm:^3.3.0" microdiff: "npm:^1.3.2" + moize: "npm:^6.1.6" msw: "npm:^2.0.11" msw-storybook-addon: "npm:2.0.0--canary.122.b3ed3b1.0" nest-commander: "npm:^3.12.0"