diff --git a/packages/twenty-front/src/generated-metadata/gql.ts b/packages/twenty-front/src/generated-metadata/gql.ts index 7a5bc0d07778..415482505650 100644 --- a/packages/twenty-front/src/generated-metadata/gql.ts +++ b/packages/twenty-front/src/generated-metadata/gql.ts @@ -32,7 +32,7 @@ const documents = { "\n mutation DeleteOneObjectMetadataItem($idToDelete: UUID!) {\n deleteOneObject(input: { id: $idToDelete }) {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isActive\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n }\n }\n": types.DeleteOneObjectMetadataItemDocument, "\n mutation DeleteOneFieldMetadataItem($idToDelete: UUID!) {\n deleteOneField(input: { id: $idToDelete }) {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isNullable\n createdAt\n updatedAt\n settings\n }\n }\n": types.DeleteOneFieldMetadataItemDocument, "\n mutation DeleteOneRelationMetadataItem($idToDelete: UUID!) {\n deleteOneRelation(input: { id: $idToDelete }) {\n id\n }\n }\n": types.DeleteOneRelationMetadataItemDocument, - "\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n createdAt\n updatedAt\n defaultValue\n options\n settings\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n": types.ObjectMetadataItemsDocument, + "\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n indexMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n order\n fieldMetadataId\n }\n }\n }\n }\n }\n }\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n": types.ObjectMetadataItemsDocument, "\n fragment ServerlessFunctionFields on ServerlessFunction {\n id\n name\n description\n runtime\n syncStatus\n latestVersion\n createdAt\n updatedAt\n }\n": types.ServerlessFunctionFieldsFragmentDoc, "\n \n mutation CreateOneServerlessFunctionItem(\n $input: CreateServerlessFunctionInput!\n ) {\n createOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n": types.CreateOneServerlessFunctionItemDocument, "\n \n mutation DeleteOneServerlessFunction($input: DeleteServerlessFunctionInput!) {\n deleteOneServerlessFunction(input: $input) {\n ...ServerlessFunctionFields\n }\n }\n": types.DeleteOneServerlessFunctionDocument, @@ -138,7 +138,7 @@ export function graphql(source: "\n mutation DeleteOneRelationMetadataItem($idT /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n createdAt\n updatedAt\n defaultValue\n options\n settings\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"): (typeof documents)["\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n createdAt\n updatedAt\n defaultValue\n options\n settings\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"]; +export function graphql(source: "\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n indexMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n order\n fieldMetadataId\n }\n }\n }\n }\n }\n }\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"): (typeof documents)["\n query ObjectMetadataItems(\n $objectFilter: objectFilter\n $fieldFilter: fieldFilter\n ) {\n objects(paging: { first: 1000 }, filter: $objectFilter) {\n edges {\n node {\n id\n dataSourceId\n nameSingular\n namePlural\n labelSingular\n labelPlural\n description\n icon\n isCustom\n isRemote\n isActive\n isSystem\n createdAt\n updatedAt\n labelIdentifierFieldMetadataId\n imageIdentifierFieldMetadataId\n indexMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n name\n indexWhereClause\n indexType\n isUnique\n indexFieldMetadatas(paging: { first: 100 }) {\n edges {\n node {\n id\n createdAt\n updatedAt\n order\n fieldMetadataId\n }\n }\n }\n }\n }\n }\n fields(paging: { first: 1000 }, filter: $fieldFilter) {\n edges {\n node {\n id\n type\n name\n label\n description\n icon\n isCustom\n isActive\n isSystem\n isNullable\n isUnique\n createdAt\n updatedAt\n defaultValue\n options\n settings\n relationDefinition {\n relationId\n direction\n sourceObjectMetadata {\n id\n nameSingular\n namePlural\n }\n sourceFieldMetadata {\n id\n name\n }\n targetObjectMetadata {\n id\n nameSingular\n namePlural\n }\n targetFieldMetadata {\n id\n name\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts index 7b49d1c42fcb..97705b937cba 100644 --- a/packages/twenty-front/src/generated-metadata/graphql.ts +++ b/packages/twenty-front/src/generated-metadata/graphql.ts @@ -180,6 +180,7 @@ export type CreateFieldInput = { isNullable?: InputMaybe; isRemoteCreation?: InputMaybe; isSystem?: InputMaybe; + isUnique?: InputMaybe; label: Scalars['String']['input']; name: Scalars['String']['input']; objectMetadataId: Scalars['String']['input']; @@ -398,6 +399,36 @@ export type GetServerlessFunctionSourceCodeInput = { version?: Scalars['String']['input']; }; +export type IndexConnection = { + __typename?: 'IndexConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + +export type IndexIndexFieldMetadatasConnection = { + __typename?: 'IndexIndexFieldMetadatasConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + +export type IndexObjectMetadataConnection = { + __typename?: 'IndexObjectMetadataConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + +/** Type of the index */ +export enum IndexType { + Btree = 'BTREE', + Gin = 'GIN' +} + export type InvalidatePassword = { __typename?: 'InvalidatePassword'; /** Boolean that confirms query was dispatched */ @@ -753,6 +784,14 @@ export type ObjectFieldsConnection = { pageInfo: PageInfo; }; +export type ObjectIndexMetadatasConnection = { + __typename?: 'ObjectIndexMetadatasConnection'; + /** Array of edges. */ + edges: Array; + /** Paging information */ + pageInfo: PageInfo; +}; + /** Onboarding status */ export enum OnboardingStatus { Completed = 'COMPLETED', @@ -832,6 +871,8 @@ export type Query = { getTimelineCalendarEventsFromPersonId: TimelineCalendarEventsWithTotal; getTimelineThreadsFromCompanyId: TimelineThreadsWithTotal; getTimelineThreadsFromPersonId: TimelineThreadsWithTotal; + index: Index; + indexMetadatas: IndexConnection; object: Object; objects: ObjectConnection; relation: Relation; @@ -932,6 +973,17 @@ export type QueryGetTimelineThreadsFromPersonIdArgs = { }; +export type QueryIndexArgs = { + id: Scalars['UUID']['input']; +}; + + +export type QueryIndexMetadatasArgs = { + filter?: IndexFilter; + paging?: CursorPaging; +}; + + export type QueryObjectArgs = { id: Scalars['UUID']['input']; }; @@ -1276,6 +1328,7 @@ export type UpdateFieldInput = { isCustom?: InputMaybe; isNullable?: InputMaybe; isSystem?: InputMaybe; + isUnique?: InputMaybe; label?: InputMaybe; name?: InputMaybe; options?: InputMaybe; @@ -1511,6 +1564,7 @@ export type Field = { isCustom?: Maybe; isNullable?: Maybe; isSystem?: Maybe; + isUnique?: Maybe; label: Scalars['String']['output']; name: Scalars['String']['output']; object?: Maybe; @@ -1539,6 +1593,71 @@ export type FieldFilter = { or?: InputMaybe>; }; +export type Index = { + __typename?: 'index'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['UUID']['output']; + indexFieldMetadatas: IndexIndexFieldMetadatasConnection; + indexType: IndexType; + indexWhereClause?: Maybe; + isCustom?: Maybe; + isUnique: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + objectMetadata: IndexObjectMetadataConnection; + updatedAt: Scalars['DateTime']['output']; +}; + + +export type IndexIndexFieldMetadatasArgs = { + filter?: IndexFieldFilter; + paging?: CursorPaging; +}; + + +export type IndexObjectMetadataArgs = { + filter?: ObjectFilter; + paging?: CursorPaging; +}; + +export type IndexEdge = { + __typename?: 'indexEdge'; + /** Cursor for this node. */ + cursor: Scalars['ConnectionCursor']['output']; + /** The node containing the index */ + node: Index; +}; + +export type IndexField = { + __typename?: 'indexField'; + createdAt: Scalars['DateTime']['output']; + fieldMetadataId: Scalars['UUID']['output']; + id: Scalars['UUID']['output']; + order: Scalars['Float']['output']; + updatedAt: Scalars['DateTime']['output']; +}; + +export type IndexFieldEdge = { + __typename?: 'indexFieldEdge'; + /** Cursor for this node. */ + cursor: Scalars['ConnectionCursor']['output']; + /** The node containing the indexField */ + node: IndexField; +}; + +export type IndexFieldFilter = { + and?: InputMaybe>; + fieldMetadataId?: InputMaybe; + id?: InputMaybe; + or?: InputMaybe>; +}; + +export type IndexFilter = { + and?: InputMaybe>; + id?: InputMaybe; + isCustom?: InputMaybe; + or?: InputMaybe>; +}; + export type Object = { __typename?: 'object'; createdAt: Scalars['DateTime']['output']; @@ -1548,6 +1667,7 @@ export type Object = { icon?: Maybe; id: Scalars['UUID']['output']; imageIdentifierFieldMetadataId?: Maybe; + indexMetadatas: ObjectIndexMetadatasConnection; isActive: Scalars['Boolean']['output']; isCustom: Scalars['Boolean']['output']; isRemote: Scalars['Boolean']['output']; @@ -1566,6 +1686,12 @@ export type ObjectFieldsArgs = { paging?: CursorPaging; }; + +export type ObjectIndexMetadatasArgs = { + filter?: IndexFilter; + paging?: CursorPaging; +}; + export type ObjectEdge = { __typename?: 'objectEdge'; /** Cursor for this node. */ @@ -1737,7 +1863,7 @@ export type ObjectMetadataItemsQueryVariables = Exact<{ }>; -export type ObjectMetadataItemsQuery = { __typename?: 'Query', objects: { __typename?: 'ObjectConnection', edges: Array<{ __typename?: 'objectEdge', node: { __typename?: 'object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isRemote: boolean, isActive: boolean, isSystem: boolean, createdAt: any, updatedAt: any, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, fields: { __typename?: 'ObjectFieldsConnection', edges: Array<{ __typename?: 'fieldEdge', node: { __typename?: 'field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isSystem?: boolean | null, isNullable?: boolean | null, createdAt: any, updatedAt: any, defaultValue?: any | null, options?: any | null, settings?: any | null, relationDefinition?: { __typename?: 'RelationDefinition', relationId: any, direction: RelationDefinitionType, sourceObjectMetadata: { __typename?: 'object', id: any, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'field', id: any, name: string }, targetObjectMetadata: { __typename?: 'object', id: any, nameSingular: string, namePlural: string }, targetFieldMetadata: { __typename?: 'field', id: any, name: string } } | null } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } }; +export type ObjectMetadataItemsQuery = { __typename?: 'Query', objects: { __typename?: 'ObjectConnection', edges: Array<{ __typename?: 'objectEdge', node: { __typename?: 'object', id: any, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isRemote: boolean, isActive: boolean, isSystem: boolean, createdAt: any, updatedAt: any, labelIdentifierFieldMetadataId?: string | null, imageIdentifierFieldMetadataId?: string | null, indexMetadatas: { __typename?: 'ObjectIndexMetadatasConnection', edges: Array<{ __typename?: 'indexEdge', node: { __typename?: 'index', id: any, createdAt: any, updatedAt: any, name: string, indexWhereClause?: string | null, indexType: IndexType, isUnique: boolean, indexFieldMetadatas: { __typename?: 'IndexIndexFieldMetadatasConnection', edges: Array<{ __typename?: 'indexFieldEdge', node: { __typename?: 'indexField', id: any, createdAt: any, updatedAt: any, order: number, fieldMetadataId: any } }> } } }> }, fields: { __typename?: 'ObjectFieldsConnection', edges: Array<{ __typename?: 'fieldEdge', node: { __typename?: 'field', id: any, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, isCustom?: boolean | null, isActive?: boolean | null, isSystem?: boolean | null, isNullable?: boolean | null, isUnique?: boolean | null, createdAt: any, updatedAt: any, defaultValue?: any | null, options?: any | null, settings?: any | null, relationDefinition?: { __typename?: 'RelationDefinition', relationId: any, direction: RelationDefinitionType, sourceObjectMetadata: { __typename?: 'object', id: any, nameSingular: string, namePlural: string }, sourceFieldMetadata: { __typename?: 'field', id: any, name: string }, targetObjectMetadata: { __typename?: 'object', id: any, nameSingular: string, namePlural: string }, targetFieldMetadata: { __typename?: 'field', id: any, name: string } } | null } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } }; export type ServerlessFunctionFieldsFragment = { __typename?: 'ServerlessFunction', id: any, name: string, description?: string | null, runtime: string, syncStatus: ServerlessFunctionSyncStatus, latestVersion?: string | null, createdAt: any, updatedAt: any }; @@ -1820,7 +1946,7 @@ export const UpdateOneObjectMetadataItemDocument = {"kind":"Document","definitio export const DeleteOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneObject"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}}]}}]}}]} as unknown as DocumentNode; export const DeleteOneFieldMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneFieldMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneField"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}}]}}]}}]} as unknown as DocumentNode; export const DeleteOneRelationMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneRelationMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneRelation"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"idToDelete"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; -export const ObjectMetadataItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectMetadataItems"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"objectFilter"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"objectFilter"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldFilter"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"fieldFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"objectFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"relationDefinition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"relationId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}}]} as unknown as DocumentNode; +export const ObjectMetadataItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ObjectMetadataItems"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"objectFilter"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"objectFilter"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldFilter"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"fieldFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"objectFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isRemote"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"labelIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"imageIdentifierFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"indexMetadatas"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"100"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"indexWhereClause"}},{"kind":"Field","name":{"kind":"Name","value":"indexType"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"indexFieldMetadatas"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"100"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"order"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}}]}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"fields"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"paging"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"first"},"value":{"kind":"IntValue","value":"1000"}}]}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"edges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"node"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isNullable"}},{"kind":"Field","name":{"kind":"Name","value":"isUnique"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"defaultValue"}},{"kind":"Field","name":{"kind":"Name","value":"options"}},{"kind":"Field","name":{"kind":"Name","value":"settings"}},{"kind":"Field","name":{"kind":"Name","value":"relationDefinition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"relationId"}},{"kind":"Field","name":{"kind":"Name","value":"direction"}},{"kind":"Field","name":{"kind":"Name","value":"sourceObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetObjectMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}}]}},{"kind":"Field","name":{"kind":"Name","value":"targetFieldMetadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"hasPreviousPage"}},{"kind":"Field","name":{"kind":"Name","value":"startCursor"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}}]}}]}}]}}]} as unknown as DocumentNode; export const CreateOneServerlessFunctionItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneServerlessFunctionItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateServerlessFunctionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerlessFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; export const DeleteOneServerlessFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteOneServerlessFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteServerlessFunctionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerlessFunctionFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerlessFunctionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerlessFunction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"runtime"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"latestVersion"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode; export const ExecuteOneServerlessFunctionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ExecuteOneServerlessFunction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ExecuteServerlessFunctionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"executeOneServerlessFunction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"}},{"kind":"Field","name":{"kind":"Name","value":"duration"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"error"}}]}}]}}]} as unknown as DocumentNode; diff --git a/packages/twenty-front/src/modules/command-menu/hooks/__test__/useCommandMenu.test.tsx b/packages/twenty-front/src/modules/command-menu/hooks/__test__/useCommandMenu.test.tsx index b0502e58374a..9d7e103398cc 100644 --- a/packages/twenty-front/src/modules/command-menu/hooks/__test__/useCommandMenu.test.tsx +++ b/packages/twenty-front/src/modules/command-menu/hooks/__test__/useCommandMenu.test.tsx @@ -136,6 +136,7 @@ describe('useCommandMenu', () => { 'ab7901eb-43e1-4dc7-8f3b-cdee2857eb9a', imageIdentifierFieldMetadataId: null, fields: [], + indexMetadatas: [], }, ]); }); diff --git a/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx b/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx index 1b500320199c..a385b1fb0261 100644 --- a/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx +++ b/packages/twenty-front/src/modules/error-handler/components/PromiseRejectionEffect.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useEffect } from 'react'; +import { useCallback, useEffect } from 'react'; import { ObjectMetadataItemNotFoundError } from '@/object-metadata/errors/ObjectMetadataNotFoundError'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; @@ -20,7 +20,7 @@ export const PromiseRejectionEffect = () => { }, ); } else { - enqueueSnackBar(`Error: ${event.reason}`, { + enqueueSnackBar(`${error.message}`, { variant: SnackBarVariant.Error, }); } diff --git a/packages/twenty-front/src/modules/favorites/hooks/__mocks__/useFavorites.ts b/packages/twenty-front/src/modules/favorites/hooks/__mocks__/useFavorites.ts index cf0fe8e888b1..84cf2310c86b 100644 --- a/packages/twenty-front/src/modules/favorites/hooks/__mocks__/useFavorites.ts +++ b/packages/twenty-front/src/modules/favorites/hooks/__mocks__/useFavorites.ts @@ -47,38 +47,36 @@ export const initialFavorites = [ }, ]; -export const sortedFavorites = [ - { - "avatarType": "rounded", - "avatarUrl": "", - "id": "1", - "labelIdentifier": " ", - "link": "/object/person/1", - "position": 0, - "recordId": "1", - "workspaceMemberId": undefined, - }, - { - "avatarType": "rounded", - "avatarUrl": "", - "id": "2", - "labelIdentifier": " ", - "link": "/object/person/3", - "position": 1, - "recordId": "3", - "workspaceMemberId": undefined, - }, - { - "avatarType": "squared", - "avatarUrl": "example.com", - "id": "3", - "key": "8f3b2121-f194-4ba4-9fbf-2d5a37126806", - "labelIdentifier": "favoriteLabel", - "link": "example.com", - "position": 2, - "recordId": "1", - }, - ] +export const sortedFavorites = [ + { + id: '1', + recordId: '2', + position: 0, + avatarType: 'squared', + avatarUrl: undefined, + labelIdentifier: 'ABC Corp', + link: '/object/company/2', + }, + { + id: '2', + recordId: '4', + position: 1, + avatarType: 'squared', + avatarUrl: undefined, + labelIdentifier: 'Company Test', + link: '/object/company/4', + }, + { + id: '3', + position: 2, + key: '8f3b2121-f194-4ba4-9fbf-2d5a37126806', + labelIdentifier: 'favoriteLabel', + avatarUrl: 'example.com', + avatarType: 'squared', + link: 'example.com', + recordId: '1', + }, +]; export const mocks = [ { @@ -343,8 +341,8 @@ export const mocks = [ mutation DeleteOneFavorite($idToDelete: ID!) { deleteFavorite(id: $idToDelete) { __typename - deletedAt id + deletedAt } } `, diff --git a/packages/twenty-front/src/modules/localization/utils/__tests__/findAvailableTimeZoneOption.test.ts b/packages/twenty-front/src/modules/localization/utils/__tests__/findAvailableTimeZoneOption.test.ts new file mode 100644 index 000000000000..fa2bc25078e6 --- /dev/null +++ b/packages/twenty-front/src/modules/localization/utils/__tests__/findAvailableTimeZoneOption.test.ts @@ -0,0 +1,15 @@ +import { findAvailableTimeZoneOption } from '@/localization/utils/findAvailableTimeZoneOption'; + +describe('findAvailableTimeZoneOption', () => { + it('should find the matching available IANA time zone select option from a given IANA time zone', () => { + const ianaTimeZone = 'Europe/Paris'; + const expectedOption = { + label: '(GMT+02:00) Central European Summer Time - Paris', + value: 'Europe/Paris', + }; + + const option = findAvailableTimeZoneOption(ianaTimeZone); + + expect(option).toEqual(expectedOption); + }); +}); diff --git a/packages/twenty-front/src/modules/object-metadata/components/ObjectMetadataItemsLoadEffect.tsx b/packages/twenty-front/src/modules/object-metadata/components/ObjectMetadataItemsLoadEffect.tsx index c8659e1689c8..aeb16de86a66 100644 --- a/packages/twenty-front/src/modules/object-metadata/components/ObjectMetadataItemsLoadEffect.tsx +++ b/packages/twenty-front/src/modules/object-metadata/components/ObjectMetadataItemsLoadEffect.tsx @@ -6,24 +6,11 @@ import { currentUserState } from '@/auth/states/currentUserState'; import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState'; import { useFindManyObjectMetadataItems } from '@/object-metadata/hooks/useFindManyObjectMetadataItems'; import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState'; -import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; -import { FieldMetadataType } from '~/generated-metadata/graphql'; import { WorkspaceActivationStatus } from '~/generated/graphql'; import { generatedMockObjectMetadataItems } from '~/testing/mock-data/generatedMockObjectMetadataItems'; import { isDeeplyEqual } from '~/utils/isDeeplyEqual'; import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; -const filterTsVectorFields = ( - objectMetadataItems: ObjectMetadataItem[], -): ObjectMetadataItem[] => { - return objectMetadataItems.map((item) => ({ - ...item, - fields: item.fields.filter( - (field) => field.type !== FieldMetadataType.TsVector, - ), - })); -}; - export const ObjectMetadataItemsLoadEffect = () => { const currentUser = useRecoilValue(currentUserState); const currentWorkspace = useRecoilValue(currentWorkspaceState); @@ -37,13 +24,12 @@ export const ObjectMetadataItemsLoadEffect = () => { const updateObjectMetadataItems = useRecoilCallback( ({ set, snapshot }) => () => { - const filteredFields = filterTsVectorFields(newObjectMetadataItems); const toSetObjectMetadataItems = isUndefinedOrNull(currentUser) || currentWorkspace?.activationStatus !== WorkspaceActivationStatus.Active ? generatedMockObjectMetadataItems - : filteredFields; + : newObjectMetadataItems; if ( !isDeeplyEqual( diff --git a/packages/twenty-front/src/modules/object-metadata/graphql/queries.ts b/packages/twenty-front/src/modules/object-metadata/graphql/queries.ts index a61811431d2f..35beb162d350 100644 --- a/packages/twenty-front/src/modules/object-metadata/graphql/queries.ts +++ b/packages/twenty-front/src/modules/object-metadata/graphql/queries.ts @@ -24,6 +24,30 @@ export const FIND_MANY_OBJECT_METADATA_ITEMS = gql` updatedAt labelIdentifierFieldMetadataId imageIdentifierFieldMetadataId + indexMetadatas(paging: { first: 100 }) { + edges { + node { + id + createdAt + updatedAt + name + indexWhereClause + indexType + isUnique + indexFieldMetadatas(paging: { first: 100 }) { + edges { + node { + id + createdAt + updatedAt + order + fieldMetadataId + } + } + } + } + } + } fields(paging: { first: 1000 }, filter: $fieldFilter) { edges { node { @@ -37,6 +61,7 @@ export const FIND_MANY_OBJECT_METADATA_ITEMS = gql` isActive isSystem isNullable + isUnique createdAt updatedAt defaultValue diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/useFindManyObjectMetadataItems.ts b/packages/twenty-front/src/modules/object-metadata/hooks/useFindManyObjectMetadataItems.ts index 4bf7c29d9298..884dfbcff695 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/useFindManyObjectMetadataItems.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/useFindManyObjectMetadataItems.ts @@ -1,5 +1,5 @@ -import { useMemo } from 'react'; import { useQuery } from '@apollo/client'; +import { useMemo } from 'react'; import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; @@ -41,12 +41,9 @@ export const useFindManyObjectMetadataItems = ({ skip: skip || !apolloMetadataClient, onError: (error) => { logError('useFindManyObjectMetadataItems error : ' + error); - enqueueSnackBar( - `Error during useFindManyObjectMetadataItems, ${error.message}`, - { - variant: SnackBarVariant.Error, - }, - ); + enqueueSnackBar(`${error.message}`, { + variant: SnackBarVariant.Error, + }); }, }); diff --git a/packages/twenty-front/src/modules/object-metadata/types/IndexFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/types/IndexFieldMetadataItem.ts new file mode 100644 index 000000000000..c6b30db7a8dc --- /dev/null +++ b/packages/twenty-front/src/modules/object-metadata/types/IndexFieldMetadataItem.ts @@ -0,0 +1,5 @@ +import { IndexField as GeneratedIndexField } from '~/generated-metadata/graphql'; + +export type IndexFieldMetadataItem = Omit & { + __typename?: string; +}; diff --git a/packages/twenty-front/src/modules/object-metadata/types/IndexMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/types/IndexMetadataItem.ts new file mode 100644 index 000000000000..33e5260dd49c --- /dev/null +++ b/packages/twenty-front/src/modules/object-metadata/types/IndexMetadataItem.ts @@ -0,0 +1,10 @@ +import { IndexFieldMetadataItem } from '@/object-metadata/types/IndexFieldMetadataItem'; +import { Index as GeneratedIndex } from '~/generated-metadata/graphql'; + +export type IndexMetadataItem = Omit< + GeneratedIndex, + '__typename' | 'indexFieldMetadatas' | 'objectMetadata' +> & { + __typename?: string; + indexFieldMetadatas: IndexFieldMetadataItem[]; +}; diff --git a/packages/twenty-front/src/modules/object-metadata/types/ObjectMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/types/ObjectMetadataItem.ts index 9bc2cfaa0a82..61c0fc495fea 100644 --- a/packages/twenty-front/src/modules/object-metadata/types/ObjectMetadataItem.ts +++ b/packages/twenty-front/src/modules/object-metadata/types/ObjectMetadataItem.ts @@ -1,11 +1,13 @@ import { Object as GeneratedObject } from '~/generated-metadata/graphql'; +import { IndexMetadataItem } from '@/object-metadata/types/IndexMetadataItem'; import { FieldMetadataItem } from './FieldMetadataItem'; export type ObjectMetadataItem = Omit< GeneratedObject, - '__typename' | 'fields' | 'dataSourceId' + '__typename' | 'fields' | 'dataSourceId' | 'indexMetadatas' > & { __typename?: string; fields: FieldMetadataItem[]; + indexMetadatas: IndexMetadataItem[]; }; diff --git a/packages/twenty-front/src/modules/object-metadata/utils/mapPaginatedObjectMetadataItemsToObjectMetadataItems.ts b/packages/twenty-front/src/modules/object-metadata/utils/mapPaginatedObjectMetadataItemsToObjectMetadataItems.ts index 9c714cb95a92..db3506c2d12c 100644 --- a/packages/twenty-front/src/modules/object-metadata/utils/mapPaginatedObjectMetadataItemsToObjectMetadataItems.ts +++ b/packages/twenty-front/src/modules/object-metadata/utils/mapPaginatedObjectMetadataItemsToObjectMetadataItems.ts @@ -11,6 +11,12 @@ export const mapPaginatedObjectMetadataItemsToObjectMetadataItems = ({ pagedObjectMetadataItems?.objects.edges.map((object) => ({ ...object.node, fields: object.node.fields.edges.map((field) => field.node), + indexMetadatas: object.node.indexMetadatas.edges.map((index) => ({ + ...index.node, + indexFieldMetadatas: index.node.indexFieldMetadatas?.edges.map( + (indexField) => indexField.node, + ), + })), })) ?? []; return formattedObjects; diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts index 18fc5722a1a2..5d4ddc67cbb2 100644 --- a/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts +++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts @@ -20,6 +20,7 @@ export const fieldMetadataItemSchema = (existingLabels?: string[]) => { isActive: z.boolean(), isCustom: z.boolean(), isNullable: z.boolean(), + isUnique: z.boolean(), isSystem: z.boolean(), label: metadataLabelSchema(existingLabels), name: camelCaseStringSchema, diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexFieldMetadataItemSchema.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexFieldMetadataItemSchema.ts new file mode 100644 index 000000000000..a88fe26ecde5 --- /dev/null +++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexFieldMetadataItemSchema.ts @@ -0,0 +1,12 @@ +import { z } from 'zod'; + +import { IndexFieldMetadataItem } from '@/object-metadata/types/IndexFieldMetadataItem'; + +export const indexFieldMetadataItemSchema = z.object({ + __typename: z.literal('indexField'), + fieldMetadataId: z.string().uuid(), + id: z.string(), + createdAt: z.string(), + updatedAt: z.string(), + order: z.number(), +}) satisfies z.ZodType; diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts new file mode 100644 index 000000000000..50d80da705ec --- /dev/null +++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts @@ -0,0 +1,18 @@ +import { z } from 'zod'; + +import { IndexMetadataItem } from '@/object-metadata/types/IndexMetadataItem'; +import { indexFieldMetadataItemSchema } from '@/object-metadata/validation-schemas/indexFieldMetadataItemSchema'; +import { IndexType } from '~/generated-metadata/graphql'; + +export const indexMetadataItemSchema = z.object({ + __typename: z.literal('index'), + id: z.string().uuid(), + name: z.string(), + indexFieldMetadatas: z.array(indexFieldMetadataItemSchema), + createdAt: z.string(), + updatedAt: z.string(), + indexType: z.nativeEnum(IndexType), + indexWhereClause: z.string().nullable(), + isUnique: z.boolean(), + objectMetadata: z.any(), +}) satisfies z.ZodType; diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/objectMetadataItemSchema.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/objectMetadataItemSchema.ts index 145d9f68091e..a12b072ebc35 100644 --- a/packages/twenty-front/src/modules/object-metadata/validation-schemas/objectMetadataItemSchema.ts +++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/objectMetadataItemSchema.ts @@ -2,6 +2,7 @@ import { z } from 'zod'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { fieldMetadataItemSchema } from '@/object-metadata/validation-schemas/fieldMetadataItemSchema'; +import { indexMetadataItemSchema } from '@/object-metadata/validation-schemas/indexMetadataItemSchema'; import { metadataLabelSchema } from '@/object-metadata/validation-schemas/metadataLabelSchema'; import { camelCaseStringSchema } from '~/utils/validation-schemas/camelCaseStringSchema'; @@ -11,6 +12,7 @@ export const objectMetadataItemSchema = z.object({ dataSourceId: z.string().uuid(), description: z.string().trim().nullable().optional(), fields: z.array(fieldMetadataItemSchema()), + indexMetadatas: z.array(indexMetadataItemSchema), icon: z.string().startsWith('Icon').trim(), id: z.string().uuid(), imageIdentifierFieldMetadataId: z.string().uuid().nullable(), diff --git a/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts index 61cabcb72cda..192b642bf79d 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts @@ -13,6 +13,7 @@ import { ObjectRecord } from '@/object-record/types/ObjectRecord'; import { getDeleteManyRecordsMutationResponseField } from '@/object-record/utils/getDeleteManyRecordsMutationResponseField'; import { useRecoilValue } from 'recoil'; import { isDefined } from '~/utils/isDefined'; +import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; import { sleep } from '~/utils/sleep'; import { capitalize } from '~/utils/string/capitalize'; @@ -132,7 +133,7 @@ export const useDeleteManyRecords = ({ }) .catch((error: Error) => { cachedRecords.forEach((cachedRecord) => { - if (!cachedRecord) { + if (isUndefinedOrNull(cachedRecord?.id)) { return; } diff --git a/packages/twenty-front/src/modules/object-record/hooks/useFindDuplicateRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useFindDuplicateRecords.ts index 7b73f918fd74..aac408d014e3 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useFindDuplicateRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useFindDuplicateRecords.ts @@ -53,12 +53,9 @@ export const useFindDuplicateRecords = ({ `useFindDuplicateRecords for "${objectMetadataItem.nameSingular}" error : ` + error, ); - enqueueSnackBar( - `Error during useFindDuplicateRecords for "${objectMetadataItem.nameSingular}", ${error.message}`, - { - variant: SnackBarVariant.Error, - }, - ); + enqueueSnackBar(`Error finding duplicates:", ${error.message}`, { + variant: SnackBarVariant.Error, + }); }, }, ); diff --git a/packages/twenty-front/src/modules/object-record/hooks/useHandleFindManyRecordsError.ts b/packages/twenty-front/src/modules/object-record/hooks/useHandleFindManyRecordsError.ts index 1b5a8cae64ef..1517c92e7c45 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useHandleFindManyRecordsError.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useHandleFindManyRecordsError.ts @@ -19,12 +19,9 @@ export const useHandleFindManyRecordsError = ({ `useFindManyRecords for "${objectMetadataItem.namePlural}" error : ` + error, ); - enqueueSnackBar( - `Error during useFindManyRecords for "${objectMetadataItem.namePlural}", ${error.message}`, - { - variant: SnackBarVariant.Error, - }, - ); + enqueueSnackBar(`${error.message}`, { + variant: SnackBarVariant.Error, + }); handleError?.(error); }; diff --git a/packages/twenty-front/src/modules/object-record/hooks/useUpdateOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/useUpdateOneRecord.ts index c87cbf9246a9..8f77eaaee238 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/useUpdateOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/useUpdateOneRecord.ts @@ -11,6 +11,7 @@ import { useUpdateOneRecordMutation } from '@/object-record/hooks/useUpdateOneRe import { ObjectRecord } from '@/object-record/types/ObjectRecord'; import { getUpdateOneRecordMutationResponseField } from '@/object-record/utils/getUpdateOneRecordMutationResponseField'; import { sanitizeRecordInput } from '@/object-record/utils/sanitizeRecordInput'; +import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull'; import { capitalize } from '~/utils/string/capitalize'; type useUpdateOneRecordProps = { @@ -130,7 +131,7 @@ export const useUpdateOneRecord = < }, }) .catch((error: Error) => { - if (!cachedRecord) { + if (isUndefinedOrNull(cachedRecord?.id)) { throw error; } updateRecordFromCache({ diff --git a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/__tests__/turnSortsIntoOrderBy.test.tsx b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/__tests__/turnSortsIntoOrderBy.test.tsx index 8534f11cabc3..12fcaff75558 100644 --- a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/__tests__/turnSortsIntoOrderBy.test.tsx +++ b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/__tests__/turnSortsIntoOrderBy.test.tsx @@ -13,6 +13,7 @@ const sortDefinition: SortDefinition = { const objectMetadataItem: ObjectMetadataItem = { id: 'object1', fields: [], + indexMetadatas: [], createdAt: '2021-01-01', updatedAt: '2021-01-01', nameSingular: 'object1', diff --git a/packages/twenty-front/src/modules/object-record/record-field/types/FieldMetadata.ts b/packages/twenty-front/src/modules/object-record/record-field/types/FieldMetadata.ts index 8c924c6ab123..434d168e7e11 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/types/FieldMetadata.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/types/FieldMetadata.ts @@ -156,6 +156,11 @@ export type FieldPhonesMetadata = { fieldName: string; }; +export type FieldTsVectorMetadata = { + objectMetadataNameSingular?: string; + fieldName: string; +}; + export type FieldMetadata = | FieldBooleanMetadata | FieldCurrencyMetadata @@ -174,8 +179,8 @@ export type FieldMetadata = | FieldUuidMetadata | FieldAddressMetadata | FieldActorMetadata - | FieldArrayMetadata; - + | FieldArrayMetadata + | FieldTsVectorMetadata; export type FieldTextValue = string; export type FieldUUidValue = string; // TODO: can we replace with a template literal type, or maybe overkill ? export type FieldDateTimeValue = string | null; diff --git a/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldTsVectorValue.ts b/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldTsVectorValue.ts new file mode 100644 index 000000000000..107db30a8fbd --- /dev/null +++ b/packages/twenty-front/src/modules/object-record/record-field/types/guards/isFieldTsVectorValue.ts @@ -0,0 +1,10 @@ +import { FieldMetadata, FieldTsVectorMetadata } from '../FieldMetadata'; + +import { FieldDefinition } from '../FieldDefinition'; + +import { FieldMetadataType } from '~/generated-metadata/graphql'; + +export const isFieldTsVector = ( + field: Pick, 'type'>, +): field is FieldDefinition => + field.type === FieldMetadataType.TsVector; diff --git a/packages/twenty-front/src/modules/object-record/record-field/utils/isFieldValueEmpty.ts b/packages/twenty-front/src/modules/object-record/record-field/utils/isFieldValueEmpty.ts index 4f7d2fe2b570..93ee5eaa5458 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/utils/isFieldValueEmpty.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/utils/isFieldValueEmpty.ts @@ -32,6 +32,7 @@ import { isFieldRichText } from '@/object-record/record-field/types/guards/isFie import { isFieldSelect } from '@/object-record/record-field/types/guards/isFieldSelect'; import { isFieldSelectValue } from '@/object-record/record-field/types/guards/isFieldSelectValue'; import { isFieldText } from '@/object-record/record-field/types/guards/isFieldText'; +import { isFieldTsVector } from '@/object-record/record-field/types/guards/isFieldTsVectorValue'; import { isFieldUuid } from '@/object-record/record-field/types/guards/isFieldUuid'; import { isDefined } from '~/utils/isDefined'; import { stripSimpleQuotesFromString } from '~/utils/string/stripSimpleQuotesFromString'; @@ -130,6 +131,10 @@ export const isFieldValueEmpty = ({ ); } + if (isFieldTsVector(fieldDefinition)) { + return false; + } + throw new Error( `Entity field type not supported in isFieldValueEmpty : ${fieldDefinition.type}}`, ); diff --git a/packages/twenty-front/src/modules/object-record/record-index/options/hooks/__tests__/useTableData.test.tsx b/packages/twenty-front/src/modules/object-record/record-index/options/hooks/__tests__/useTableData.test.tsx index d670b908cb22..aa9f392782f0 100644 --- a/packages/twenty-front/src/modules/object-record/record-index/options/hooks/__tests__/useTableData.test.tsx +++ b/packages/twenty-front/src/modules/object-record/record-index/options/hooks/__tests__/useTableData.test.tsx @@ -220,7 +220,7 @@ describe('useTableData', () => { delayMs: 0, viewType: ViewType.Kanban, }), - setKanbanFieldName: useRecordBoard(recordIndexId), + useRecordBoardHook: useRecordBoard(recordIndexId), kanbanFieldName: useRecoilValue(kanbanFieldNameState), kanbanData: useRecordIndexOptionsForBoard({ objectNameSingular, @@ -243,7 +243,7 @@ describe('useTableData', () => { ); await act(async () => { - result.current.setKanbanFieldName.setKanbanFieldMetadataName( + result.current.useRecordBoardHook.setKanbanFieldMetadataName( updatedAtFieldMetadataItem?.name, ); }); @@ -278,10 +278,14 @@ describe('useTableData', () => { relationObjectMetadataNameSingular: '', relationType: undefined, targetFieldMetadataName: '', - settings: {}, + settings: { + displayAsRelativeDate: true, + }, + }, + position: expect.any(Number), + settings: { + displayAsRelativeDate: true, }, - position: 7, - settings: {}, showLabel: undefined, size: 100, type: 'DATE_TIME', diff --git a/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useLimitPerMetadataItem.test.tsx b/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useLimitPerMetadataItem.test.tsx index 95cdddcda144..ead53f498fdc 100644 --- a/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useLimitPerMetadataItem.test.tsx +++ b/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useLimitPerMetadataItem.test.tsx @@ -27,6 +27,7 @@ describe('useLimitPerMetadataItem', () => { nameSingular: 'nameSingular', updatedAt: 'updatedAt', fields: [], + indexMetadatas: [], }, ]; diff --git a/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useMultiObjectSearch.test.tsx b/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useMultiObjectSearch.test.tsx index 54fb2aeaa323..73d1715f5503 100644 --- a/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useMultiObjectSearch.test.tsx +++ b/packages/twenty-front/src/modules/object-record/relation-picker/hooks/__tests__/useMultiObjectSearch.test.tsx @@ -46,6 +46,7 @@ const objectData: ObjectMetadataItem[] = [ isActive: true, }, ], + indexMetadatas: [], }, ]; diff --git a/packages/twenty-front/src/modules/settings/data-model/object-details/states/settingsObjectIndexesFamilyState.ts b/packages/twenty-front/src/modules/settings/data-model/object-details/states/settingsObjectIndexesFamilyState.ts new file mode 100644 index 000000000000..939fcf5920c7 --- /dev/null +++ b/packages/twenty-front/src/modules/settings/data-model/object-details/states/settingsObjectIndexesFamilyState.ts @@ -0,0 +1,14 @@ +import { IndexMetadataItem } from '@/object-metadata/types/IndexMetadataItem'; +import { createFamilyState } from '@/ui/utilities/state/utils/createFamilyState'; + +export type SortedIndexByTableFamilyStateKey = { + objectMetadataItemId: string; +}; + +export const settingsObjectIndexesFamilyState = createFamilyState< + IndexMetadataItem[] | null, + SortedIndexByTableFamilyStateKey +>({ + key: 'settingsObjectIndexesFamilyState', + defaultValue: null, +}); diff --git a/packages/twenty-front/src/modules/ui/field/display/components/EllipsisDisplay.tsx b/packages/twenty-front/src/modules/ui/field/display/components/EllipsisDisplay.tsx index d5c336005ff7..1e909c6e613c 100644 --- a/packages/twenty-front/src/modules/ui/field/display/components/EllipsisDisplay.tsx +++ b/packages/twenty-front/src/modules/ui/field/display/components/EllipsisDisplay.tsx @@ -1,7 +1,7 @@ import { styled } from '@linaria/react'; const StyledEllipsisDisplay = styled.div<{ maxWidth?: number }>` - max-width: ${({ maxWidth }) => maxWidth ?? '100%'}; + max-width: ${({ maxWidth }) => (maxWidth ? maxWidth + 'px' : '100%')}; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; diff --git a/packages/twenty-front/src/modules/ui/layout/table/components/SortableTableHeader.tsx b/packages/twenty-front/src/modules/ui/layout/table/components/SortableTableHeader.tsx index fcdb02ebf543..da59fd4af380 100644 --- a/packages/twenty-front/src/modules/ui/layout/table/components/SortableTableHeader.tsx +++ b/packages/twenty-front/src/modules/ui/layout/table/components/SortableTableHeader.tsx @@ -2,7 +2,7 @@ import { TableHeader } from '@/ui/layout/table/components/TableHeader'; import { sortedFieldByTableFamilyState } from '@/ui/layout/table/states/sortedFieldByTableFamilyState'; import { TableSortValue } from '@/ui/layout/table/types/TableSortValue'; import { useRecoilState } from 'recoil'; -import { IconArrowDown, IconArrowUp } from 'twenty-ui'; +import { IconArrowDown, IconArrowUp, IconComponent } from 'twenty-ui'; export const SortableTableHeader = ({ tableId, @@ -10,12 +10,14 @@ export const SortableTableHeader = ({ label, align = 'left', initialSort, + Icon, }: { tableId: string; fieldName: string; label: string; align?: 'left' | 'center' | 'right'; initialSort?: TableSortValue; + Icon?: IconComponent; }) => { const [sortedFieldByTable, setSortedFieldByTable] = useRecoilState( sortedFieldByTableFamilyState({ tableId }), @@ -54,6 +56,7 @@ export const SortableTableHeader = ({ ) ) : null} + {Icon && } {label} {isSortActive && align === 'left' ? ( isAsc ? ( diff --git a/packages/twenty-front/src/modules/ui/layout/table/types/TableFieldMetadata.ts b/packages/twenty-front/src/modules/ui/layout/table/types/TableFieldMetadata.ts index 4e807bda6533..9e42c14ee18f 100644 --- a/packages/twenty-front/src/modules/ui/layout/table/types/TableFieldMetadata.ts +++ b/packages/twenty-front/src/modules/ui/layout/table/types/TableFieldMetadata.ts @@ -1,6 +1,9 @@ +import { IconComponent } from 'twenty-ui'; + export type TableFieldMetadata = { fieldLabel: string; fieldName: keyof ItemType; fieldType: 'string' | 'number'; align: 'left' | 'right'; + FieldIcon?: IconComponent; }; diff --git a/packages/twenty-front/src/modules/workspace/types/FeatureFlagKey.ts b/packages/twenty-front/src/modules/workspace/types/FeatureFlagKey.ts index 9a79efa933bf..cde44977047b 100644 --- a/packages/twenty-front/src/modules/workspace/types/FeatureFlagKey.ts +++ b/packages/twenty-front/src/modules/workspace/types/FeatureFlagKey.ts @@ -14,4 +14,5 @@ export type FeatureFlagKey = | 'IS_QUERY_RUNNER_TWENTY_ORM_ENABLED' | 'IS_GMAIL_SEND_EMAIL_SCOPE_ENABLED' | 'IS_WORKSPACE_MIGRATED_FOR_SEARCH' - | 'IS_ANALYTICS_V2_ENABLED'; + | 'IS_ANALYTICS_V2_ENABLED' + | 'IS_UNIQUE_INDEXES_ENABLED'; diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPageContent.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPageContent.tsx index 8a300ecf9266..37fb2d9c0cd2 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPageContent.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPageContent.tsx @@ -8,10 +8,14 @@ import { Button } from '@/ui/input/button/components/Button'; import { SubMenuTopBarContainer } from '@/ui/layout/page/SubMenuTopBarContainer'; import { Section } from '@/ui/layout/section/components/Section'; import { UndecoratedLink } from '@/ui/navigation/link/components/UndecoratedLink'; +import { isAdvancedModeEnabledState } from '@/ui/navigation/navigation-drawer/states/isAdvancedModeEnabledState'; +import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled'; import styled from '@emotion/styled'; import { useNavigate } from 'react-router-dom'; +import { useRecoilValue } from 'recoil'; import { H2Title, IconPlus } from 'twenty-ui'; import { SettingsObjectFieldTable } from '~/pages/settings/data-model/SettingsObjectFieldTable'; +import { SettingsObjectIndexTable } from '~/pages/settings/data-model/SettingsObjectIndexTable'; const StyledDiv = styled.div` display: flex; @@ -40,6 +44,12 @@ export const SettingsObjectDetailPageContent = ({ const shouldDisplayAddFieldButton = !objectMetadataItem.isRemote; + const isAdvancedModeEnabled = useRecoilValue(isAdvancedModeEnabledState); + + const isUniqueIndexesEnabled = useIsFeatureEnabled( + 'IS_UNIQUE_INDEXES_ENABLED', + ); + return ( )} + {isAdvancedModeEnabled && isUniqueIndexesEnabled && ( +
+ + +
+ )}
); diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx index 0f19c414ae5b..651243747a2e 100644 --- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx +++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectFieldEdit.tsx @@ -223,7 +223,17 @@ export const SettingsObjectFieldEdit = () => { />
- + {fieldMetadataItem.isUnique ? ( + + ) : ( + + )} = + { + tableId: 'settingsObjectIndexs', + fields: [ + { + fieldLabel: 'Fields', + fieldName: 'indexFields', + fieldType: 'string', + align: 'left', + }, + { + fieldLabel: '', + FieldIcon: IconSquareKey, + fieldName: 'isUnique', + fieldType: 'string', + align: 'left', + }, + { + fieldLabel: 'Type', + fieldName: 'indexType', + fieldType: 'string', + align: 'right', + }, + ], + initialSort: { + fieldName: 'name', + orderBy: 'AscNullsLast', + }, + }; + +const StyledSearchInput = styled(TextInput)` + padding-bottom: ${({ theme }) => theme.spacing(2)}; + width: 100%; +`; +export type SettingsObjectIndexTableProps = { + objectMetadataItem: ObjectMetadataItem; +}; + +export const SettingsObjectIndexTable = ({ + objectMetadataItem, +}: SettingsObjectIndexTableProps) => { + const [searchTerm, setSearchTerm] = useState(''); + + const [settingsObjectIndexes, setSettingsObjectIndexes] = useRecoilState( + settingsObjectIndexesFamilyState({ + objectMetadataItemId: objectMetadataItem.id, + }), + ); + + useEffect(() => { + setSettingsObjectIndexes(objectMetadataItem.indexMetadatas); + }, [objectMetadataItem, setSettingsObjectIndexes]); + + const objectSettingsDetailItems = useMemo(() => { + return ( + settingsObjectIndexes?.map((indexMetadataItem) => { + return { + name: indexMetadataItem.name, + isUnique: indexMetadataItem.isUnique, + indexType: indexMetadataItem.indexType, + indexFields: indexMetadataItem.indexFieldMetadatas + ?.map((indexField) => { + const fieldMetadataItem = objectMetadataItem.fields.find( + (field) => field.id === indexField.fieldMetadataId, + ); + return fieldMetadataItem?.label; + }) + .join(', '), + }; + }) ?? [] + ); + }, [settingsObjectIndexes, objectMetadataItem]); + + const sortedActiveObjectSettingsDetailItems = useSortedArray( + objectSettingsDetailItems, + SETTINGS_OBJECT_DETAIL_TABLE_METADATA_STANDARD, + ); + + const filteredActiveItems = useMemo( + () => + sortedActiveObjectSettingsDetailItems.filter( + (item) => + item.name.toLowerCase().includes(searchTerm.toLowerCase()) || + item.indexType.toLowerCase().includes(searchTerm.toLowerCase()), + ), + [sortedActiveObjectSettingsDetailItems, searchTerm], + ); + + return ( + <> + + + + {SETTINGS_OBJECT_DETAIL_TABLE_METADATA_STANDARD.fields.map((item) => ( + + ))} + + + {isNonEmptyArray(filteredActiveItems) && + filteredActiveItems.map((objectSettingsIndex) => ( + + {objectSettingsIndex.indexFields} + + {objectSettingsIndex.isUnique ? ( + + ) : ( + '' + )} + + {objectSettingsIndex.indexType} + + ))} +
+ + ); +}; diff --git a/packages/twenty-front/src/pages/settings/data-model/types/SettingsObjectIndexesTableItem.ts b/packages/twenty-front/src/pages/settings/data-model/types/SettingsObjectIndexesTableItem.ts new file mode 100644 index 000000000000..eccc260585cb --- /dev/null +++ b/packages/twenty-front/src/pages/settings/data-model/types/SettingsObjectIndexesTableItem.ts @@ -0,0 +1,9 @@ +import { IndexType } from '~/generated-metadata/graphql'; + +export type SettingsObjectIndexesTableItem = { + name: string; + indexType: IndexType; + isUnique: boolean; + indexWhereClause?: string | null; + indexFields: string; +}; diff --git a/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts b/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts index 86428fa72919..a090fca9a7da 100644 --- a/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts +++ b/packages/twenty-front/src/testing/mock-data/generated/mock-metadata-query-result.ts @@ -6,17496 +6,21074 @@ import { ObjectMetadataItemsQuery } from '~/generated-metadata/graphql'; // ⚠️ WARNING ⚠️: Be sure to activate the workflow feature flag (IsWorkflowEnabled) before updating that mock. export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery = { - objects: { - __typename: 'ObjectConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjM2', + "objects": { + "__typename": "ObjectConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjM2" }, - edges: [ + "edges": [ { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'f8c3e3e7-8392-469f-9f3c-b0972910bec0', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'webhook', - namePlural: 'webhooks', - labelSingular: 'Webhook', - labelPlural: 'Webhooks', - description: 'A webhook', - icon: 'IconRobot', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'a8876650-a7b6-4a9f-95b4-9ec1d6c232cc', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjY=', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ed0dfa31-8e2f-4b23-87e4-8fa55eb16729', - type: 'TEXT', - name: 'operation', - label: 'Operation', - description: 'Webhook operation', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '814795ef-6f2d-4798-a6f9-4e1c87c68d43', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1c802ccf-c0ae-4b04-8c1e-f77417e6c3f8', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6f210155-9cdc-48c6-9803-e20f63512024', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5fa54f64-3363-4a21-89ca-30d4816d8c77', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a8876650-a7b6-4a9f-95b4-9ec1d6c232cc', - type: 'TEXT', - name: 'targetUrl', - label: 'Target Url', - description: 'Webhook target url', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'afae3f60-bfeb-4faf-a899-b0eb0fefac51', - type: 'TEXT', - name: 'description', - label: 'Description', - description: null, - icon: 'IconInfo', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - ], + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "noteTarget", + "namePlural": "noteTargets", + "labelSingular": "Note Target", + "labelPlural": "Note Targets", + "description": "A note target", + "icon": "IconCheckbox", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "fec280d4-58dd-410f-addf-be34060d9f90", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "e0cacb65-c2ea-44b7-8d5c-508176b44ec7", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_19ea95ddb39f610f7dcad4c4336", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "15d4514a-0c1f-461d-bd8c-cf57010c6979", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "f7c177a2-a730-4571-8c06-b16b26476d69" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "9eb89e9b-422d-4f81-83a9-0395e5916c8e", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "8d01445d-36e3-45b1-8804-a3e27e177cbc" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "9974574d-2f7c-4666-88b5-40982e1fa0bb", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_241f0cca089399c8c5954086b8d", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "7e45c242-ba08-4ce7-8521-ddaa16ac1387", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_68bce49f4de05facd5365a3a797", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "838dc5e9-c28e-4530-b380-525df2ebbbff", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "b152c814-d0f9-44da-8bf0-b8772e7fe4f8" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "cfbcdd2e-63cd-41c4-b1b1-e90b9aad7078", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_56454973bce16e65ee1ae3d2e40", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "cd268504-7b0c-48da-902d-0b4935be93b5", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "78a0334d-e28e-4b6e-a529-da28c4e73d89" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "2f776bc0-22cc-463b-a1a7-2986b1691b30", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "8d01445d-36e3-45b1-8804-a3e27e177cbc" + } + } + ] + } + } + } + ] }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - labelSingular: 'Task Target', - labelPlural: 'Task Targets', - description: 'An task target', - icon: 'IconCheckbox', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '400c9e53-283b-42d8-a69f-5010fb75d977', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEz', + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEz" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ad82920a-857a-4357-8e4a-ed70961ba5d8', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '89662f00-b57c-49f6-aa48-d1c84f5fd7c7', - type: 'UUID', - name: 'personId', - label: 'Person id (foreign key)', - description: 'TaskTarget person id foreign key', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '19270b1d-73b4-4aa9-8106-c1c81351ec53', - type: 'UUID', - name: 'rocketId', - label: 'Rocket ID (foreign key)', - description: 'TaskTarget Rocket id foreign key', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.610Z', - updatedAt: '2024-09-25T13:45:42.610Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0c796ac5-0592-455f-9a0a-66ad53c6e4cf', - type: 'UUID', - name: 'companyId', - label: 'Company id (foreign key)', - description: 'TaskTarget company id foreign key', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dadac630-f64e-4d3d-9923-78ca579373f3', - type: 'RELATION', - name: 'rocket', - label: 'Rocket', - description: 'TaskTarget Rocket', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.612Z', - updatedAt: '2024-09-25T13:45:42.612Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '140a67f3-988e-4d60-b24c-8a4fcb4ea6e9', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'dadac630-f64e-4d3d-9923-78ca579373f3', - name: 'rocket', - }, - targetObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '83515891-eb29-472e-9cde-4a1d42b6855d', - name: 'taskTargets', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a87c2280-8913-4e89-b6a3-4403b70087d4", + "type": "RELATION", + "name": "rocket", + "label": "Rocket", + "description": "NoteTarget Rocket", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.725Z", + "updatedAt": "2024-10-10T15:05:42.725Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "bd9974b4-9210-4ef3-892d-4adc2d40feb6", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "nameSingular": "noteTarget", + "namePlural": "noteTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "a87c2280-8913-4e89-b6a3-4403b70087d4", + "name": "rocket" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "b3186db8-8ea1-49b6-8922-82e4bdc06eb9", + "name": "noteTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "78a0334d-e28e-4b6e-a529-da28c4e73d89", + "type": "UUID", + "name": "personId", + "label": "Person id (foreign key)", + "description": "NoteTarget person id foreign key", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4f3ed77c-73e0-41ba-9519-dbaba2e5f571", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0fcdebbb-a332-45ec-ab46-c30d5d7f9ef0', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '37882bc2-c8d8-4cc5-bc13-4b820cc05b83', - type: 'UUID', - name: 'taskId', - label: 'Task id (foreign key)', - description: 'TaskTarget task id foreign key', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'da63ddb4-7c19-49f0-bf90-ac2cc9486ae7', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '26cc6ba3-cff7-4b84-bf78-71823187a824', - type: 'RELATION', - name: 'person', - label: 'Person', - description: 'TaskTarget person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'c0c28147-9606-4d8f-9c27-688f19c00dc4', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '26cc6ba3-cff7-4b84-bf78-71823187a824', - name: 'person', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'b328a712-5dc3-457a-aa56-8631f1b57248', - name: 'taskTargets', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e4414119-6f9c-465a-9ee2-95d1fc5eec01', - type: 'UUID', - name: 'opportunityId', - label: 'Opportunity id (foreign key)', - description: 'TaskTarget opportunity id foreign key', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '598688a1-9766-439d-abd3-c0a47c8f36a3', - type: 'RELATION', - name: 'opportunity', - label: 'Opportunity', - description: 'TaskTarget opportunity', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '8cdbd838-30d2-4062-94aa-0fa93376635c', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '598688a1-9766-439d-abd3-c0a47c8f36a3', - name: 'opportunity', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '9e7b7d2f-02fb-426b-8e3e-392225f5b6b3', - name: 'taskTargets', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b152c814-d0f9-44da-8bf0-b8772e7fe4f8", + "type": "UUID", + "name": "companyId", + "label": "Company id (foreign key)", + "description": "NoteTarget company id foreign key", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "63ae8928-a35e-4053-bf6c-ee548e3614c4", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "NoteTarget person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "9eac5248-f58a-49d3-ab69-376c12f71680", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "nameSingular": "noteTarget", + "namePlural": "noteTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "63ae8928-a35e-4053-bf6c-ee548e3614c4", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "b0200630-5587-4c10-b5ca-1d1344ee2343", + "name": "noteTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "145a910b-bd70-42f6-bb62-2fd1424af4e8", + "type": "UUID", + "name": "rocketId", + "label": "Rocket ID (foreign key)", + "description": "NoteTarget Rocket id foreign key", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.724Z", + "updatedAt": "2024-10-10T15:05:42.724Z", + "defaultValue": null, + "options": null, + "settings": { + "isForeignKey": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'cd7f57e8-a67f-4be9-a971-b5609cb0fb83', - type: 'RELATION', - name: 'company', - label: 'Company', - description: 'TaskTarget company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '309200d8-c547-47a7-82a5-25915056db15', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'cd7f57e8-a67f-4be9-a971-b5609cb0fb83', - name: 'company', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'd69eb854-c043-43d9-a40e-65a0649fd1a9', - name: 'taskTargets', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f7c177a2-a730-4571-8c06-b16b26476d69", + "type": "UUID", + "name": "opportunityId", + "label": "Opportunity id (foreign key)", + "description": "NoteTarget opportunity id foreign key", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "67bfa361-4269-4494-b2eb-3a9f26f992fd", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "NoteTarget company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "99a8cc42-5f5d-41f2-9d5a-44e18f8412e4", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "nameSingular": "noteTarget", + "namePlural": "noteTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "67bfa361-4269-4494-b2eb-3a9f26f992fd", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "408a7fce-1980-48b2-9c0e-9e23b58b5e07", + "name": "noteTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fa189561-0de7-478f-8673-9f6b68527bed", + "type": "RELATION", + "name": "opportunity", + "label": "Opportunity", + "description": "NoteTarget opportunity", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "48b33f6e-6f79-4990-9d3a-7bc3ae6020bb", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "nameSingular": "noteTarget", + "namePlural": "noteTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "fa189561-0de7-478f-8673-9f6b68527bed", + "name": "opportunity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "9637bff7-b622-48f7-8f6c-2ea7ee18edef", + "name": "noteTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f23b5bd0-ceff-4741-a250-2fa1c10bb315", + "type": "UUID", + "name": "noteId", + "label": "Note id (foreign key)", + "description": "NoteTarget note id foreign key", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8d01445d-36e3-45b1-8804-a3e27e177cbc", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '400c9e53-283b-42d8-a69f-5010fb75d977', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ec532542-a4dc-4722-99c3-fca6366db597', - type: 'RELATION', - name: 'task', - label: 'Task', - description: 'TaskTarget task', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '81926481-abaa-4b04-900e-2170694cc034', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'ec532542-a4dc-4722-99c3-fca6366db597', - name: 'task', - }, - targetObjectMetadata: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - nameSingular: 'task', - namePlural: 'tasks', - }, - targetFieldMetadata: { - __typename: 'field', - id: '80932806-6350-4941-a291-4d1430275d65', - name: 'taskTargets', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fec280d4-58dd-410f-addf-be34060d9f90", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3f1365a0-a273-4d82-9c58-0095c8590541", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5ea37b6c-76b5-4cc3-981e-fefebaa91607", + "type": "RELATION", + "name": "note", + "label": "Note", + "description": "NoteTarget note", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7be32a73-9b29-422b-b5aa-1933cf5ad254", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "nameSingular": "noteTarget", + "namePlural": "noteTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "5ea37b6c-76b5-4cc3-981e-fefebaa91607", + "name": "note" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "6a09bc08-33ae-4321-868a-30064279097f", + "nameSingular": "note", + "namePlural": "notes" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "45d38878-cca8-4c8c-b7e4-539adf09c5b1", + "name": "noteTargets" + } + } + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - labelSingular: 'Note Target', - labelPlural: 'Note Targets', - description: 'A note target', - icon: 'IconCheckbox', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'e6a5a8b1-ebef-4e01-ba22-a5f86d894eb5', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEz', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "f98ea433-1b70-46d3-aefa-43eb369925d2", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "063a1df3-99e1-478e-9be4-7935cad6dc84", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjQ=" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '26c57af1-5c70-4a9d-974f-e54c6a77a2b4', - type: 'RELATION', - name: 'rocket', - label: 'Rocket', - description: 'NoteTarget Rocket', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.605Z', - updatedAt: '2024-09-25T13:45:42.605Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '9cbf4ccc-cff9-4439-86c9-6f8c01970442', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '26c57af1-5c70-4a9d-974f-e54c6a77a2b4', - name: 'rocket', - }, - targetObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '75f64c23-e9a5-4ada-8dc6-3c2c2ea27280', - name: 'noteTargets', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "45323df4-a610-484e-a9cf-bac16dd4f085", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '434d1fd2-e6e0-4de7-9b15-706398e34d2d', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '06fcb5e2-b2f7-4118-a9f0-34558429b72c', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4b6aaf36-4247-4bbb-b26d-64987b02f805', - type: 'RELATION', - name: 'company', - label: 'Company', - description: 'NoteTarget company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '706df621-2977-49c9-a05f-38a6d4389011', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '4b6aaf36-4247-4bbb-b26d-64987b02f805', - name: 'company', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - targetFieldMetadata: { - __typename: 'field', - id: '531c4b2e-94a0-46f4-9395-277c3239413d', - name: 'noteTargets', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "68d0646f-9477-4c8e-8d60-22ac5d665f91", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c9bbd140-d9ab-4557-bd77-b446cd80774b', - type: 'UUID', - name: 'personId', - label: 'Person id (foreign key)', - description: 'NoteTarget person id foreign key', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b86fd021-b648-4a1e-b02e-080f0b280303', - type: 'UUID', - name: 'rocketId', - label: 'Rocket ID (foreign key)', - description: 'NoteTarget Rocket id foreign key', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.602Z', - updatedAt: '2024-09-25T13:45:42.602Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'cd3a9c3d-a29e-4b27-9fdb-0e8959f21f10', - type: 'UUID', - name: 'opportunityId', - label: 'Opportunity id (foreign key)', - description: 'NoteTarget opportunity id foreign key', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e6a5a8b1-ebef-4e01-ba22-a5f86d894eb5', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9d568132-6cbc-4e87-95e8-7c2509549391', - type: 'RELATION', - name: 'note', - label: 'Note', - description: 'NoteTarget note', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'e512fc88-2b02-4ba4-a118-ead545db5a63', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '9d568132-6cbc-4e87-95e8-7c2509549391', - name: 'note', - }, - targetObjectMetadata: { - __typename: 'object', - id: '1e1abbd5-5b66-4ddc-bbf8-d049802bb93e', - nameSingular: 'note', - namePlural: 'notes', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'bef43ac8-834a-4a86-8bfb-5bed6cd94a57', - name: 'noteTargets', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "84b1f586-7867-4cd9-b793-4826d4d99cf5", + "type": "RELATION", + "name": "messages", + "label": "Messages", + "description": "Messages from the thread.", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "fcbbe4ce-01e3-4332-8424-16709c40d819", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f98ea433-1b70-46d3-aefa-43eb369925d2", + "nameSingular": "messageThread", + "namePlural": "messageThreads" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "84b1f586-7867-4cd9-b793-4826d4d99cf5", + "name": "messages" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "673b8cb8-44c1-4c20-9834-7c35d44fd180", + "nameSingular": "message", + "namePlural": "messages" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "efdfbd70-a365-4e96-9fb0-095eb91e061a", + "name": "messageThread" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e521c5e0-67d6-4a3c-b4e3-3a767f4237dd", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6f80afcd-8ed7-4bf9-a987-9de3d1cddc81', - type: 'RELATION', - name: 'opportunity', - label: 'Opportunity', - description: 'NoteTarget opportunity', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'c6d4a2d6-1baf-49c3-87a8-2516c098b717', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '6f80afcd-8ed7-4bf9-a987-9de3d1cddc81', - name: 'opportunity', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '78f1d502-397e-4cce-b096-a525b2d373e2', - name: 'noteTargets', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dc63ee78-06ac-4312-b223-1d41a7ea2af4', - type: 'UUID', - name: 'noteId', - label: 'Note id (foreign key)', - description: 'NoteTarget note id foreign key', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '646f3b4b-0fad-495a-a90d-136593464c7f', - type: 'UUID', - name: 'companyId', - label: 'Company id (foreign key)', - description: 'NoteTarget company id foreign key', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2b9481a9-c605-45d0-8aad-801a19c4b92c', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '77508442-f0de-4809-b690-3c998edfc0b5', - type: 'RELATION', - name: 'person', - label: 'Person', - description: 'NoteTarget person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '4bde4058-4875-4a16-9cc3-4e387121a875', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '77508442-f0de-4809-b690-3c998edfc0b5', - name: 'person', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - targetFieldMetadata: { - __typename: 'field', - id: '0f7b1621-5da6-439a-927f-948fd2dd6f29', - name: 'noteTargets', - }, - }, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "063a1df3-99e1-478e-9be4-7935cad6dc84", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'ee346c8e-6ca8-4142-852e-2d9180e80176', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'f3eafb28-947a-4c7a-9464-24fa5549fb03', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEw', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '27e79204-ba19-4791-8110-ec2bdc523e07', - type: 'TEXT', - name: 'messageThreadExternalId', - label: 'Thread External Id', - description: 'Thread id from the messaging provider', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1d9f0c85-c16f-41e9-9241-2acd90781cdd', - type: 'RELATION', - name: 'message', - label: 'Message Id', - description: 'Message Id', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'f9f525c4-c303-48a0-aaeb-23dcb0ef41bb', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'ee346c8e-6ca8-4142-852e-2d9180e80176', - nameSingular: 'messageChannelMessageAssociation', - namePlural: 'messageChannelMessageAssociations', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '1d9f0c85-c16f-41e9-9241-2acd90781cdd', - name: 'message', - }, - targetObjectMetadata: { - __typename: 'object', - id: '027b772b-3cca-4634-931e-23b82dda16c7', - nameSingular: 'message', - namePlural: 'messages', - }, - targetFieldMetadata: { - __typename: 'field', - id: '86a6dca6-5ad5-4576-b8f4-4be343e573de', - name: 'messageChannelMessageAssociations', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '72a85b74-9803-4279-9f74-dafb833847fb', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6cb121b9-32d1-44fe-af26-324d73ffe0ac', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9491ddd2-aea5-47fe-bd93-09fb6969b20c', - type: 'TEXT', - name: 'messageExternalId', - label: 'Message External Id', - description: 'Message id from the messaging provider', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f3eafb28-947a-4c7a-9464-24fa5549fb03', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dbfff493-11a0-4866-9ef6-e4e8418a661a', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '95488a9d-6473-47e8-aa62-a04d49238a2f', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f4582d66-df12-4499-8ede-ab347427241b', - type: 'RELATION', - name: 'messageChannel', - label: 'Message Channel Id', - description: 'Message Channel Id', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '9047ee65-1739-4228-8e3a-255bbaf7b374', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'ee346c8e-6ca8-4142-852e-2d9180e80176', - nameSingular: 'messageChannelMessageAssociation', - namePlural: 'messageChannelMessageAssociations', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'f4582d66-df12-4499-8ede-ab347427241b', - name: 'messageChannel', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'ec7f4695-2b0a-49c8-881d-73f046aba063', - nameSingular: 'messageChannel', - namePlural: 'messageChannels', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'a3c22a32-9c6c-4294-abc4-7b3f9b6d8816', - name: 'messageChannelMessageAssociations', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7bf79a5a-f5b7-495e-a336-4ddf85a5b2f7', - type: 'SELECT', - name: 'direction', - label: 'Direction', - description: 'Message Direction', - icon: 'IconDirection', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'INCOMING'", - options: [ - { - id: '8b272ab7-bc81-4896-bba3-c222e087e7fb', - color: 'green', - label: 'Incoming', - value: 'INCOMING', - position: 0, - }, - { - id: 'c57aa860-fdf0-455f-97ee-4a0bf7e31202', - color: 'blue', - label: 'Outgoing', - value: 'OUTGOING', - position: 1, - }, - ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a18edc4a-1b58-4a78-8de4-9564479b09cc', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - ], + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "948959ff-3aee-4617-aa03-042285cd342b", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [] }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'ed425cdd-b5c8-4a35-8294-d3486a0c6149', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '8dcde658-c38a-4659-8546-89c60465d36e', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEy', + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjI1" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ea62fcb2-2161-47db-9151-19011419ac66', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e2f2b624-93bf-4d16-8517-bf66e43cabc4', - type: 'RELATION', - name: 'message', - label: 'Message', - description: 'Message', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '7048eb73-25bf-4170-9ac0-41b7f8dec24b', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'ed425cdd-b5c8-4a35-8294-d3486a0c6149', - nameSingular: 'messageParticipant', - namePlural: 'messageParticipants', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'e2f2b624-93bf-4d16-8517-bf66e43cabc4', - name: 'message', - }, - targetObjectMetadata: { - __typename: 'object', - id: '027b772b-3cca-4634-931e-23b82dda16c7', - nameSingular: 'message', - namePlural: 'messages', - }, - targetFieldMetadata: { - __typename: 'field', - id: '606cef74-d9c3-4abc-b6ae-bb778f518e49', - name: 'messageParticipants', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b92e3ff7-e5e0-4fec-b36e-cb496e2b57ae', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ef5a67e6-88dd-4c92-a9be-7ab0605804e7', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f3db188f-7329-40bc-9978-e30e5c07d962', - type: 'RELATION', - name: 'person', - label: 'Person', - description: 'Person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '8c36bb62-2757-4c24-88da-160a6a9e56d6', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'ed425cdd-b5c8-4a35-8294-d3486a0c6149', - nameSingular: 'messageParticipant', - namePlural: 'messageParticipants', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'f3db188f-7329-40bc-9978-e30e5c07d962', - name: 'person', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - targetFieldMetadata: { - __typename: 'field', - id: '779bdf5a-a28d-48be-8d02-b6ca93851829', - name: 'messageParticipants', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '26c81156-529d-4bec-b5fb-f92e991907b5', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'aa502069-91c1-4eeb-bc8e-b22240564fe1', - type: 'TEXT', - name: 'displayName', - label: 'Display Name', - description: 'Display Name', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd205df4f-f9de-4f61-9a85-40f340a4de23', - type: 'RELATION', - name: 'workspaceMember', - label: 'Workspace Member', - description: 'Workspace member', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'fa25f857-7b30-4cd7-87c6-7910bde2d050', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'ed425cdd-b5c8-4a35-8294-d3486a0c6149', - nameSingular: 'messageParticipant', - namePlural: 'messageParticipants', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'd205df4f-f9de-4f61-9a85-40f340a4de23', - name: 'workspaceMember', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'd82db237-ca6d-4bee-8d69-dfa0f753707b', - name: 'messageParticipants', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bae3fa70-47b5-495b-9f52-6724f5823bca", + "type": "RELATION", + "name": "connectedAccounts", + "label": "Connected accounts", + "description": "Connected accounts", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "1ba150ca-e985-4ac5-9f0a-055022bab4eb", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "bae3fa70-47b5-495b-9f52-6724f5823bca", + "name": "connectedAccounts" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d828bda6-68e2-47f0-b0aa-b810b1f33981", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "94ca1303-d7ef-4ee0-a661-14e64f16d8d0", + "name": "accountOwner" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "948959ff-3aee-4617-aa03-042285cd342b", + "type": "FULL_NAME", + "name": "name", + "label": "Name", + "description": "Workspace member name", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "lastName": "''", + "firstName": "''" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0cf35f0a-eb64-47ef-88a4-55b92ca57c64', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e8550477-6034-45f4-8370-5a1cd75f7a55', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8dcde658-c38a-4659-8546-89c60465d36e', - type: 'TEXT', - name: 'handle', - label: 'Handle', - description: 'Handle', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '56ff0ed7-7916-4610-834c-a7c0657fa9e7', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7a8597e3-bbce-4ff5-9f6e-9bf3c7fd43fa', - type: 'SELECT', - name: 'role', - label: 'Role', - description: 'Role', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'from'", - options: [ - { - id: 'c6cd481c-59fd-4107-bcb7-f09474785c06', - color: 'green', - label: 'From', - value: 'from', - position: 0, - }, - { - id: '8957abb3-924b-4cb5-af08-8b96269ce502', - color: 'blue', - label: 'To', - value: 'to', - position: 1, - }, - { - id: '9e814524-6b58-4395-bdd4-3ce29218cd80', - color: 'orange', - label: 'Cc', - value: 'cc', - position: 2, - }, - { - id: '3efb003f-644d-4a71-abfa-565932918a16', - color: 'red', - label: 'Bcc', - value: 'bcc', - position: 3, - }, - ], - relationDefinition: null, - }, - }, - ], - }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'ec7f4695-2b0a-49c8-881d-73f046aba063', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '7ca7d194-3cdc-4ff9-a90f-6bfaedba8280', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjIw', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9061081a-eed9-49b8-99ab-9a7b8ce7a355', - type: 'BOOLEAN', - name: 'isContactAutoCreationEnabled', - label: 'Is Contact Auto Creation Enabled', - description: 'Is Contact Auto Creation Enabled', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: true, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'df104a7c-39e5-491d-8bde-6e3f75a3156b', - type: 'DATE_TIME', - name: 'syncedAt', - label: 'Last sync date', - description: 'Last sync date', - icon: 'IconHistory', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '751ef307-be5e-4451-9434-e2bae8861873', - type: 'BOOLEAN', - name: 'excludeNonProfessionalEmails', - label: 'Exclude non professional emails', - description: 'Exclude non professional emails', - icon: 'IconBriefcase', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: true, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9a8520ed-6577-46b0-a732-1a08aafb0160', - type: 'SELECT', - name: 'visibility', - label: 'Visibility', - description: 'Visibility', - icon: 'IconEyeglass', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'SHARE_EVERYTHING'", - options: [ + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5f482f83-ad70-448c-b612-a4bcc25cfc2c", + "type": "TEXT", + "name": "timeZone", + "label": "Time zone", + "description": "User time zone", + "icon": "IconTimezone", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'system'", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f2012359-cf46-43e7-8577-0dfc2615eb4e", + "type": "SELECT", + "name": "timeFormat", + "label": "Time format", + "description": "User's preferred time format", + "icon": "IconClock2", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'SYSTEM'", + "options": [ { - id: 'b4ebf1ba-0434-4697-b851-d171b7d34cdf', - color: 'green', - label: 'Metadata', - value: 'METADATA', - position: 0, + "id": "d8aac04a-a1c6-4660-9557-950dbe0ebfe0", + "color": "sky", + "label": "System", + "value": "SYSTEM", + "position": 0 }, { - id: '6081348d-23da-44a6-8b16-57fc550e24c6', - color: 'blue', - label: 'Subject', - value: 'SUBJECT', - position: 1, + "id": "221dbdac-72a5-4dc0-99aa-07fd656963f6", + "color": "red", + "label": "24HRS", + "value": "HOUR_24", + "position": 1 }, { - id: '6cd27613-6217-4aac-9c62-5c956a187786', - color: 'orange', - label: 'Share Everything', - value: 'SHARE_EVERYTHING', - position: 2, - }, + "id": "77a20632-42f6-4d82-a296-7de278743bdc", + "color": "purple", + "label": "12HRS", + "value": "HOUR_12", + "position": 2 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2f7f7ea2-c5d0-47bc-bb0e-e3afc6d82b91', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dafc931d-0466-4c83-91b3-72be3fdee12f', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '97ba10a8-da33-4d1f-a9c6-964f814f5fd7', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a3c22a32-9c6c-4294-abc4-7b3f9b6d8816', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '9047ee65-1739-4228-8e3a-255bbaf7b374', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'ec7f4695-2b0a-49c8-881d-73f046aba063', - nameSingular: 'messageChannel', - namePlural: 'messageChannels', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'a3c22a32-9c6c-4294-abc4-7b3f9b6d8816', - name: 'messageChannelMessageAssociations', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'ee346c8e-6ca8-4142-852e-2d9180e80176', - nameSingular: 'messageChannelMessageAssociation', - namePlural: 'messageChannelMessageAssociations', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'f4582d66-df12-4499-8ede-ab347427241b', - name: 'messageChannel', - }, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0d89e67d-e021-4fb7-9022-5b91d22706d4", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "95aa4a80-fab0-4ffa-ab6b-a0213b94cdbd", + "type": "RELATION", + "name": "authoredComments", + "label": "Authored comments", + "description": "Authored comments", + "icon": "IconComment", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "45553fd2-1f4d-4b1b-8536-e41307b80cf7", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "95aa4a80-fab0-4ffa-ab6b-a0213b94cdbd", + "name": "authoredComments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "eda936a5-97b9-4b9f-986a-d8e19e8ea882", + "nameSingular": "comment", + "namePlural": "comments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "50d416ef-6abd-4329-b51e-7dae0193ce33", + "name": "author" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8e4da134-4b27-4f18-9fae-dddee6c6f3e9", + "type": "RELATION", + "name": "authoredActivities", + "label": "Authored activities", + "description": "Activities created by the workspace member", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "c07499e3-5511-4e95-82de-5d2490c89470", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8e4da134-4b27-4f18-9fae-dddee6c6f3e9", + "name": "authoredActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "nameSingular": "activity", + "namePlural": "activities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "1b094a8b-20f7-4402-8fdc-40af2405186f", + "name": "author" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "792d296b-22ae-4f57-a2a0-f7dad5cfd4a2", + "type": "TEXT", + "name": "avatarUrl", + "label": "Avatar Url", + "description": "Workspace member avatar", + "icon": "IconFileUpload", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cf9c06a1-f820-476d-95ad-ebc12598a5f0", + "type": "UUID", + "name": "userId", + "label": "User Id", + "description": "Associated User Id", + "icon": "IconCircleUsers", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "174dc37b-4a28-4789-8f72-5d3782b32b06", + "type": "TEXT", + "name": "userEmail", + "label": "User Email", + "description": "Related user email address", + "icon": "IconMail", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4af78cad-69c5-4190-a23f-6db322f80f27", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "1aef1a4d-f090-4f5a-8e39-f7d21d465199", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "4af78cad-69c5-4190-a23f-6db322f80f27", + "name": "auditLogs" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "2590029a-05d7-4908-8b7a-a253967068a1", + "nameSingular": "auditLog", + "namePlural": "auditLogs" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "1475304d-4734-4b66-96a8-ed7d84727fe6", + "name": "workspaceMember" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "07667783-a2b1-4eb5-8e3b-86ec786993fa", + "type": "RELATION", + "name": "messageParticipants", + "label": "Message Participants", + "description": "Message Participants", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "1c4db1ed-209f-4274-bf95-004e0cb74404", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "07667783-a2b1-4eb5-8e3b-86ec786993fa", + "name": "messageParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "6edf5dd8-ee31-42ec-80f9-728b01c50ff4", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "edc0cbe6-9c05-48a7-8cf5-6ff782ad055d", + "name": "workspaceMember" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c5797fa5-1ff4-403f-896a-eb45447b468f", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c1686e5a-1af6-45d9-a9f8-d2ecaef71526', - type: 'RELATION', - name: 'connectedAccount', - label: 'Connected Account', - description: 'Connected Account', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '37d43107-c5ad-4d15-bd29-2bc6986f75d8', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'ec7f4695-2b0a-49c8-881d-73f046aba063', - nameSingular: 'messageChannel', - namePlural: 'messageChannels', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'c1686e5a-1af6-45d9-a9f8-d2ecaef71526', - name: 'connectedAccount', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e90531b4-c0eb-454b-b246-b99c27e30d5d', - nameSingular: 'connectedAccount', - namePlural: 'connectedAccounts', - }, - targetFieldMetadata: { - __typename: 'field', - id: '178f1e8a-cbbf-448e-95f3-d1262d9ff33d', - name: 'messageChannels', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b391761f-fedd-4a1d-acd1-497c21a615ba", + "type": "RELATION", + "name": "blocklist", + "label": "Blocklist", + "description": "Blocklisted handles", + "icon": "IconForbid2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "1185289f-ef64-4b23-a7ef-c16303bea50f", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "b391761f-fedd-4a1d-acd1-497c21a615ba", + "name": "blocklist" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "8ae98b12-2ef6-4c20-adc6-240857dd7343", + "nameSingular": "blocklist", + "namePlural": "blocklists" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "84b616f8-2db3-472d-93dd-a8e89b9db810", + "name": "workspaceMember" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5233906b-4d12-4e40-9081-436ff5c6cefe", + "type": "RELATION", + "name": "assignedTasks", + "label": "Assigned tasks", + "description": "Tasks assigned to the workspace member", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "970f0f7f-a30d-4a6f-b023-c3bc5a1b412c", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "5233906b-4d12-4e40-9081-436ff5c6cefe", + "name": "assignedTasks" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "nameSingular": "task", + "namePlural": "tasks" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "0400e2ae-05e4-46f5-b7e1-3fd8e7c15731", + "name": "assignee" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5ef8d68c-516d-42b4-a727-612b1619ae55", + "type": "TEXT", + "name": "locale", + "label": "Language", + "description": "Preferred language", + "icon": "IconLanguage", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'en'", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3687c43a-dab2-4043-b2c5-ba090cb9f46d", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the workspace member", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "09d87091-a73a-440d-9ef0-11f4639dbd64", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "3687c43a-dab2-4043-b2c5-ba090cb9f46d", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "37bb5979-9521-434c-8fca-84a84a545314", + "name": "workspaceMember" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6d033705-c48b-43e0-9cc1-5191c0f9ecd2", + "type": "RELATION", + "name": "timelineActivities", + "label": "Events", + "description": "Events linked to the workspace member", + "icon": "IconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "5622d0fd-cbf2-4baa-8be9-bc5ea20d321b", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "6d033705-c48b-43e0-9cc1-5191c0f9ecd2", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "93e24db5-c860-420d-90eb-782c3855a36d", + "name": "workspaceMember" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a308f6ca-1a9b-46f2-9215-f184cd7d53d6", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7eaa0427-04b4-4cf8-9676-4e28c88a0fa8', - type: 'DATE_TIME', - name: 'syncStageStartedAt', - label: 'Sync stage started at', - description: 'Sync stage started at', - icon: 'IconHistory', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '290318a3-e994-4dee-8dd1-6bebe92043af', - type: 'SELECT', - name: 'syncStatus', - label: 'Sync status', - description: 'Sync status', - icon: 'IconStatusChange', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: [ - { - id: 'a875b66f-c31a-4bdb-b75a-0b1454f1fb2e', - color: 'yellow', - label: 'Ongoing', - value: 'ONGOING', - position: 1, - }, - { - id: '37d8441e-8649-4986-abc4-457a0e804635', - color: 'blue', - label: 'Not Synced', - value: 'NOT_SYNCED', - position: 2, - }, - { - id: '45b1f6c8-ed8e-4f54-a3fb-40ce6ab035a8', - color: 'green', - label: 'Active', - value: 'ACTIVE', - position: 3, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "be802643-0a4b-42d1-a87c-606fce69f9f7", + "type": "RELATION", + "name": "assignedActivities", + "label": "Assigned activities", + "description": "Activities assigned to the workspace member", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "1756bbce-2212-4ec2-b1e3-5053810abdb1", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "be802643-0a4b-42d1-a87c-606fce69f9f7", + "name": "assignedActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "nameSingular": "activity", + "namePlural": "activities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "d2f57ffe-0cbd-40a0-b83a-1939aaeac560", + "name": "assignee" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e167ca8f-66e1-4d49-8a2f-eb8c96c2285d", + "type": "RELATION", + "name": "calendarEventParticipants", + "label": "Calendar Event Participants", + "description": "Calendar Event Participants", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "15a3fcda-90b1-4599-a31c-bd0807184401", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "e167ca8f-66e1-4d49-8a2f-eb8c96c2285d", + "name": "calendarEventParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "af56ee43-5666-482f-a980-434fefac00c7", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "409c079f-742a-4bf5-a710-c782544fa21b", + "name": "workspaceMember" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "80303ac9-b0f9-4f44-8e31-3aa4fec4b0ed", + "type": "SELECT", + "name": "dateFormat", + "label": "Date format", + "description": "User's preferred date format", + "icon": "IconCalendarEvent", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'SYSTEM'", + "options": [ { - id: '350b5cff-abbd-4232-bd82-35f904e8a9fc', - color: 'red', - label: 'Failed Insufficient Permissions', - value: 'FAILED_INSUFFICIENT_PERMISSIONS', - position: 4, + "id": "fc002c8e-9bde-4057-b5aa-61d40e5d90e6", + "color": "turquoise", + "label": "System", + "value": "SYSTEM", + "position": 0 }, { - id: '850bbb80-49bb-48bb-986f-e72351f80014', - color: 'red', - label: 'Failed Unknown', - value: 'FAILED_UNKNOWN', - position: 5, + "id": "1c89f46a-edbf-4c72-b796-8c04caad4a5c", + "color": "red", + "label": "Month First", + "value": "MONTH_FIRST", + "position": 1 }, - ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7238d6c1-c54c-4787-aa4f-79294220acdc', - type: 'BOOLEAN', - name: 'isSyncEnabled', - label: 'Is Sync Enabled', - description: 'Is Sync Enabled', - icon: 'IconRefresh', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: true, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9416f68a-84cb-4b1f-805b-e58fb009cc44', - type: 'TEXT', - name: 'syncCursor', - label: 'Last sync cursor', - description: 'Last sync cursor', - icon: 'IconHistory', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '09ec080b-c8fe-432f-aff1-c151861c3ec7', - type: 'SELECT', - name: 'contactAutoCreationPolicy', - label: 'Contact auto creation policy', - description: - 'Automatically create People records when receiving or sending emails', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'SENT'", - options: [ - { - id: '1a097274-4e65-4488-ac6b-0756f80c97c5', - color: 'green', - label: 'Sent and Received', - value: 'SENT_AND_RECEIVED', - position: 0, - }, - { - id: '1968f899-3858-431b-8d5a-8802ba7c9862', - color: 'blue', - label: 'Sent', - value: 'SENT', - position: 1, - }, - { - id: '6e98f8e3-e57c-4292-ba26-61a03d131fef', - color: 'red', - label: 'None', - value: 'NONE', - position: 2, - }, - ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd30ddf0c-769a-4480-a9cf-fea5867f9eea', - type: 'BOOLEAN', - name: 'excludeGroupEmails', - label: 'Exclude group emails', - description: 'Exclude group emails', - icon: 'IconUsersGroup', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: true, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '839a7a90-3b1a-4f76-8207-5a0779ca909d', - type: 'SELECT', - name: 'type', - label: 'Type', - description: 'Channel Type', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'email'", - options: [ { - id: '214b0bc6-38b6-4cd6-9dbd-190619598d8e', - color: 'green', - label: 'Email', - value: 'email', - position: 0, + "id": "1ccb080d-9d1e-47ba-affa-ceade664bc83", + "color": "purple", + "label": "Day First", + "value": "DAY_FIRST", + "position": 2 }, { - id: '47d7521c-7ad5-42c0-9f80-11f39efcef82', - color: 'blue', - label: 'SMS', - value: 'sms', - position: 1, - }, + "id": "39d1d19a-2788-427a-ba61-0be5bea94e63", + "color": "sky", + "label": "Year First", + "value": "YEAR_FIRST", + "position": 3 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b0026844-d54e-4fe2-af36-ed7ac7be1833', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7ca7d194-3cdc-4ff9-a90f-6bfaedba8280', - type: 'TEXT', - name: 'handle', - label: 'Handle', - description: 'Handle', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5f87d969-7dae-4a25-8b11-9577aa11285e', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'aafcc52e-d761-4b6a-97a6-1bc097e2ccd2', - type: 'SELECT', - name: 'syncStage', - label: 'Sync stage', - description: 'Sync stage', - icon: 'IconStatusChange', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'FULL_MESSAGE_LIST_FETCH_PENDING'", - options: [ - { - id: '84df43eb-72c8-433b-a861-b98db7d2d224', - color: 'blue', - label: 'Full messages list fetch pending', - value: 'FULL_MESSAGE_LIST_FETCH_PENDING', - position: 0, - }, - { - id: '562abf2a-c19f-4782-bc2d-5a9e8707fc45', - color: 'blue', - label: 'Partial messages list fetch pending', - value: 'PARTIAL_MESSAGE_LIST_FETCH_PENDING', - position: 1, - }, - { - id: 'fd47b29d-9d01-4f3e-8503-63649665a966', - color: 'orange', - label: 'Messages list fetch ongoing', - value: 'MESSAGE_LIST_FETCH_ONGOING', - position: 2, - }, - { - id: '23e113b3-0f82-47c6-b668-54955bb05baa', - color: 'blue', - label: 'Messages import pending', - value: 'MESSAGES_IMPORT_PENDING', - position: 3, - }, - { - id: '3d751a1f-d1cb-43ca-801f-3b3248a39b96', - color: 'orange', - label: 'Messages import ongoing', - value: 'MESSAGES_IMPORT_ONGOING', - position: 4, - }, - { - id: '16478389-d2b5-47f7-af2e-239d25f6d0d4', - color: 'red', - label: 'Failed', - value: 'FAILED', - position: 5, - }, - ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '33180dbd-4124-43eb-84c3-17e32b4848e4', - type: 'NUMBER', - name: 'throttleFailureCount', - label: 'Throttle Failure Count', - description: 'Throttle Failure Count', - icon: 'IconX', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 0, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "579d2711-4edc-4645-99bb-3ecbb45ebf06", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8f1ea273-7d99-442e-94cc-1f77d494edf7", + "type": "TEXT", + "name": "colorScheme", + "label": "Color Scheme", + "description": "Preferred color scheme", + "icon": "IconColorSwatch", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'Light'", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b6b66a3c-6c39-4e93-b940-836aced4de12", + "type": "RELATION", + "name": "accountOwnerForCompanies", + "label": "Account Owner For Companies", + "description": "Account owner for companies", + "icon": "IconBriefcase", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "9b71c7ff-5d2e-43c4-a524-611e309e6f45", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "b6b66a3c-6c39-4e93-b940-836aced4de12", + "name": "accountOwnerForCompanies" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "09e066b4-d809-49c8-908b-51b8b8724a4c", + "name": "accountOwner" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4c6c8adf-6958-48d6-b7e6-0bbab57e2dd1", + "type": "RELATION", + "name": "authoredAttachments", + "label": "Authored attachments", + "description": "Attachments created by the workspace member", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7a297555-158b-4bcb-a751-18e30aac5f3d", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "4c6c8adf-6958-48d6-b7e6-0bbab57e2dd1", + "name": "authoredAttachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "3faea476-e6f7-450d-a699-5f58da0f0a09", + "name": "author" + } + } + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'e90531b4-c0eb-454b-b246-b99c27e30d5d', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '762d59c0-f7e9-410f-b5dc-df66d764de0d', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE0', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "f04a7171-564a-44ec-a061-63938e29f0c5", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "51abf943-f933-446f-932e-3c7b2dc4c8c6", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjY=" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8ca32bd7-4999-4562-9e41-698a458944ea', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '236195db-49d1-4386-99b9-4518ab7586f2', - type: 'RELATION', - name: 'accountOwner', - label: 'Account Owner', - description: 'Account Owner', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'ee186212-93d2-4f15-b74c-c703bedbd396', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'e90531b4-c0eb-454b-b246-b99c27e30d5d', - nameSingular: 'connectedAccount', - namePlural: 'connectedAccounts', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '236195db-49d1-4386-99b9-4518ab7586f2', - name: 'accountOwner', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: '13531c23-42ca-4b1e-a6e3-3fcfad74a3e9', - name: 'connectedAccounts', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "51abf943-f933-446f-932e-3c7b2dc4c8c6", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "ApiKey name", + "icon": "IconLink", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "19346f2e-1c93-4d28-bb1b-85f232a0a65a", + "type": "DATE_TIME", + "name": "expiresAt", + "label": "Expiration date", + "description": "ApiKey expiration date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b9268707-467d-42b0-875e-dbccd5974263", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '919dadd4-8dda-479f-a8a7-b4ed89eafae5', - type: 'RELATION', - name: 'calendarChannels', - label: 'Calendar Channels', - description: 'Calendar Channels', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '7fe521fe-1b22-4354-92ba-8164ce5c9b5d', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e90531b4-c0eb-454b-b246-b99c27e30d5d', - nameSingular: 'connectedAccount', - namePlural: 'connectedAccounts', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '919dadd4-8dda-479f-a8a7-b4ed89eafae5', - name: 'calendarChannels', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'c8993ad6-46d5-4ab0-88f5-d407625c0c75', - nameSingular: 'calendarChannel', - namePlural: 'calendarChannels', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'c933e11e-7820-42e4-a589-389c2f314add', - name: 'connectedAccount', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c41f695a-568b-43de-a41c-4f617b51e4e2", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "18649d38-e8ea-47ff-8109-89920b2f8fc5", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '75c78041-39ca-4b46-bcff-6ed0af05248e', - type: 'TEXT', - name: 'handleAliases', - label: 'Handle Aliases', - description: 'Handle Aliases', - icon: 'IconMail', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd3f821eb-c8b1-48a5-aebb-1bfe23c4128e', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6f74d250-76f0-4eff-8e27-d1a12782517d', - type: 'TEXT', - name: 'lastSyncHistoryId', - label: 'Last sync history ID', - description: 'Last sync history ID', - icon: 'IconHistory', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'fd6c04f4-8dba-47ac-a597-90300eb1a079', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8f7d7528-83a8-442e-b0b6-958f52a1de5e', - type: 'DATE_TIME', - name: 'authFailedAt', - label: 'Auth failed at', - description: 'Auth failed at', - icon: 'IconX', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '762d59c0-f7e9-410f-b5dc-df66d764de0d', - type: 'TEXT', - name: 'handle', - label: 'handle', - description: - 'The account handle (email, username, phone number, etc.)', - icon: 'IconMail', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f45f5e44-f88a-490c-b112-df2465b612a3', - type: 'TEXT', - name: 'refreshToken', - label: 'Refresh Token', - description: 'Messaging provider refresh token', - icon: 'IconKey', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2aa282f3-5542-47e8-adf3-4384e9ce5d10', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5f411e82-b626-4456-896c-d5a326e5e02a', - type: 'TEXT', - name: 'accessToken', - label: 'Access Token', - description: 'Messaging provider access token', - icon: 'IconKey', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c21734fd-6539-410f-bc1a-e91a3177b9c9', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5b0a8a38-9d02-4e06-8f07-2f76f0ab70eb', - type: 'TEXT', - name: 'provider', - label: 'provider', - description: 'The account provider', - icon: 'IconSettings', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '178f1e8a-cbbf-448e-95f3-d1262d9ff33d', - type: 'RELATION', - name: 'messageChannels', - label: 'Message Channels', - description: 'Message Channels', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '37d43107-c5ad-4d15-bd29-2bc6986f75d8', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e90531b4-c0eb-454b-b246-b99c27e30d5d', - nameSingular: 'connectedAccount', - namePlural: 'connectedAccounts', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '178f1e8a-cbbf-448e-95f3-d1262d9ff33d', - name: 'messageChannels', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'ec7f4695-2b0a-49c8-881d-73f046aba063', - nameSingular: 'messageChannel', - namePlural: 'messageChannels', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'c1686e5a-1af6-45d9-a9f8-d2ecaef71526', - name: 'connectedAccount', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ad8dc420-e7a8-4bf6-9d31-01f43c21ff53", + "type": "DATE_TIME", + "name": "revokedAt", + "label": "Revocation date", + "description": "ApiKey revocation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d0d69076-3369-4672-923c-736b71263a1c", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - ], - }, - }, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'opportunity', - namePlural: 'opportunities', - labelSingular: 'Opportunity', - labelPlural: 'Opportunities', - description: 'An opportunity', - icon: 'IconTargetArrow', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '6d5401c0-d456-42c4-85d4-9666900615ef', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE5', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "taskTarget", + "namePlural": "taskTargets", + "labelSingular": "Task Target", + "labelPlural": "Task Targets", + "description": "An task target", + "icon": "IconCheckbox", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "94e86beb-7c83-4779-b723-c9696eca0c4c", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "195e34dd-24b9-48bc-99ae-66ef1a239ea2", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_4e929e3af362914c41035c4d438", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "670e311e-a705-4e3d-a599-d44826329501", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "81ac8880-d8ea-4794-b87b-77b89b5e5141" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "16f945fd-63b1-4609-a31d-de06265893a2", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "28ca5b60-d78e-4cb3-a142-742ef928631c" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "e34fc97b-d91f-4aa3-b353-a36806a4fa51", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_627d4437c96f22d5d46cc9a85bb", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "d76441f4-8236-45eb-b1f2-40ed4a738439", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "f933b4e1-d1d3-404e-8ef8-ab666fba9d35" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "93be2dfb-e46f-42dc-a37d-5d550a2658ff", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_cf12e6c92058f11b59852ffdfe3", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "4de510a8-25b7-4435-b248-79a5df020a52", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "81ac8880-d8ea-4794-b87b-77b89b5e5141" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "887ecf80-a073-4d15-b42e-8f4290537fd0", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "1e2d2291-460a-4ed8-94e8-d3c1f2bbd74f" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "cf162c2b-2ec8-4385-98ff-6049e7e968d0", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_b0ba7efcd8c529922bf6e858bc1", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "be0c4484-eb8b-47e3-ad6d-4a0663d81af7", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "81ac8880-d8ea-4794-b87b-77b89b5e5141" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEz" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9e7b7d2f-02fb-426b-8e3e-392225f5b6b3', - type: 'RELATION', - name: 'taskTargets', - label: 'Tasks', - description: 'Tasks tied to the opportunity', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '8cdbd838-30d2-4062-94aa-0fa93376635c', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '9e7b7d2f-02fb-426b-8e3e-392225f5b6b3', - name: 'taskTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '598688a1-9766-439d-abd3-c0a47c8f36a3', - name: 'opportunity', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "80b77505-9340-45f2-8c9e-931754da1192", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "TaskTarget person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7fd53175-abb0-470e-a394-9c1de590b24e", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "nameSingular": "taskTarget", + "namePlural": "taskTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "80b77505-9340-45f2-8c9e-931754da1192", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "80092f7e-405b-4a94-b767-cdf877b2ef41", + "name": "taskTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f0adc079-73ce-4316-80e0-90295a7192f1", + "type": "RELATION", + "name": "opportunity", + "label": "Opportunity", + "description": "TaskTarget opportunity", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "3edc0e3a-d735-4b9c-ac34-352b48a6e705", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "nameSingular": "taskTarget", + "namePlural": "taskTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "f0adc079-73ce-4316-80e0-90295a7192f1", + "name": "opportunity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "db2d038b-73d8-4c99-a709-8737e7e6658c", + "name": "taskTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4c42e3b9-26a9-4ce1-a37a-9606da0bc12a", + "type": "RELATION", + "name": "rocket", + "label": "Rocket", + "description": "TaskTarget Rocket", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.731Z", + "updatedAt": "2024-10-10T15:05:42.731Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7df72299-c1f4-4575-98bf-24156cb3e5b8", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "nameSingular": "taskTarget", + "namePlural": "taskTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "4c42e3b9-26a9-4ce1-a37a-9606da0bc12a", + "name": "rocket" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "f3e444fc-afa9-45d7-b885-5000c2fa2b7d", + "name": "taskTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1e2d2291-460a-4ed8-94e8-d3c1f2bbd74f", + "type": "UUID", + "name": "personId", + "label": "Person id (foreign key)", + "description": "TaskTarget person id foreign key", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "298b6f3b-4c03-4583-bbcc-8d43b742903e", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '78f1d502-397e-4cce-b096-a525b2d373e2', - type: 'RELATION', - name: 'noteTargets', - label: 'Notes', - description: 'Notes tied to the opportunity', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'c6d4a2d6-1baf-49c3-87a8-2516c098b717', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '78f1d502-397e-4cce-b096-a525b2d373e2', - name: 'noteTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '6f80afcd-8ed7-4bf9-a987-9de3d1cddc81', - name: 'opportunity', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "94e86beb-7c83-4779-b723-c9696eca0c4c", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f933b4e1-d1d3-404e-8ef8-ab666fba9d35", + "type": "UUID", + "name": "taskId", + "label": "Task id (foreign key)", + "description": "TaskTarget task id foreign key", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "24a17b5b-e5cd-43c9-bcd8-422a00b0ebf6", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "TaskTarget company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "e38b7482-42bb-43b3-a36f-9c7eec06d59e", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "nameSingular": "taskTarget", + "namePlural": "taskTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "24a17b5b-e5cd-43c9-bcd8-422a00b0ebf6", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "eafdfdda-7cda-4fe4-bcaa-be49232fbfd4", + "name": "taskTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "81ac8880-d8ea-4794-b87b-77b89b5e5141", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c692555c-020e-46a4-b537-c9c4c7d3cd32', - type: 'ACTOR', - name: 'createdBy', - label: 'Created by', - description: 'The creator of the record', - icon: 'IconCreativeCommonsSa', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - name: "''", - source: "'MANUAL'", + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "61963eea-7040-4cba-be90-031464ad1e69", + "type": "RELATION", + "name": "task", + "label": "Task", + "description": "TaskTarget task", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "2cb467d4-4e91-459c-a145-5f276f6186e1", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "nameSingular": "taskTarget", + "namePlural": "taskTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "61963eea-7040-4cba-be90-031464ad1e69", + "name": "task" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "nameSingular": "task", + "namePlural": "tasks" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "74bf0e2d-9fc5-4609-b180-a50e18f5f9ca", + "name": "taskTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "28ca5b60-d78e-4cb3-a142-742ef928631c", + "type": "UUID", + "name": "companyId", + "label": "Company id (foreign key)", + "description": "TaskTarget company id foreign key", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9338cb5b-62e3-4636-a544-c872350ef691", + "type": "UUID", + "name": "rocketId", + "label": "Rocket ID (foreign key)", + "description": "TaskTarget Rocket id foreign key", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.730Z", + "updatedAt": "2024-10-10T15:05:42.730Z", + "defaultValue": null, + "options": null, + "settings": { + "isForeignKey": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6d32aa8b-28c0-4e35-b45e-9643fd8e1c33', - type: 'CURRENCY', - name: 'amount', - label: 'Amount', - description: 'Opportunity amount', - icon: 'IconCurrencyDollar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - amountMicros: null, - currencyCode: "''", + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ae4f0b40-33c6-429b-bfca-84812311bfbe", + "type": "UUID", + "name": "opportunityId", + "label": "Opportunity id (foreign key)", + "description": "TaskTarget opportunity id foreign key", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9fcd7cb0-7f2f-473b-ab03-8f604f9c5d69", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c859b99c-2554-483d-8ffe-4d29cb9c8459', - type: 'RELATION', - name: 'company', - label: 'Company', - description: 'Opportunity company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '06717b0b-194c-46e4-9394-f2ef37bdee90', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'c859b99c-2554-483d-8ffe-4d29cb9c8459', - name: 'company', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - targetFieldMetadata: { - __typename: 'field', - id: '8421d3d3-d5ac-4065-a431-95780fda2ce7', - name: 'opportunities', - }, + "relationDefinition": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "eda936a5-97b9-4b9f-986a-d8e19e8ea882", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "comment", + "namePlural": "comments", + "labelSingular": "Comment", + "labelPlural": "Comments", + "description": "A comment", + "icon": "IconMessageCircle", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "bf3832d9-cdfd-4d88-bd77-2058fbd81447", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "7ee50853-aacd-49da-8d15-cba48b38a353", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_13404a209dc268d64d59e458f86", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "1d8f2dac-d481-4ac1-9e14-ee2e901b5a6f", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "506fa74d-51eb-4160-8dba-3166aa4d2301" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "127f01e8-a06c-479e-8aab-129b21eea852", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "c91d7ffc-5a65-4e57-b5e7-1de26022617b" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "19dbdfa2-259f-4aaf-b4ee-3d22231ff3fe", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_59b3acef02e58676e983e724ae1", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "f9a1e7a6-7cc0-48dd-84bb-226e6959b4a3", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "e36ca5db-8217-4aff-8c62-eeefcfac1691" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjg=" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c91d7ffc-5a65-4e57-b5e7-1de26022617b", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "506fa74d-51eb-4160-8dba-3166aa4d2301", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7ad6853d-d1e9-46a8-a77a-38eeae27e1d6', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'c80603a0-f9b4-47c0-ba4d-7a1c5d0735e8', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '7ad6853d-d1e9-46a8-a77a-38eeae27e1d6', - name: 'pointOfContact', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'f926708e-cc19-4e5f-8684-d14a1a1bc7df', - name: 'pointOfContactForOpportunities', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e36ca5db-8217-4aff-8c62-eeefcfac1691", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "87d27084-f6b5-420d-b17e-0cd16628437f", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f6c45230-619b-4432-82fd-e5bed0c4e8f4', - type: 'SELECT', - name: 'stage', - label: 'Stage', - description: 'Opportunity stage', - icon: 'IconProgressCheck', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'NEW'", - options: [ - { - id: '2bf53bd1-c267-4389-bd53-60d91d623e52', - color: 'red', - label: 'New', - value: 'NEW', - position: 0, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4bfa0272-145c-4f0e-8c38-54ce1e01fea6", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d010344a-e348-47ef-b8c3-a7da39b3285d", + "type": "TEXT", + "name": "body", + "label": "Body", + "description": "Comment body", + "icon": "IconLink", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "50d416ef-6abd-4329-b51e-7dae0193ce33", + "type": "RELATION", + "name": "author", + "label": "Author", + "description": "Comment author", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "45553fd2-1f4d-4b1b-8536-e41307b80cf7", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "eda936a5-97b9-4b9f-986a-d8e19e8ea882", + "nameSingular": "comment", + "namePlural": "comments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "50d416ef-6abd-4329-b51e-7dae0193ce33", + "name": "author" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "95aa4a80-fab0-4ffa-ab6b-a0213b94cdbd", + "name": "authoredComments" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "04e07930-a3f1-4f57-9265-7364f18f2651", + "type": "RELATION", + "name": "activity", + "label": "Activity", + "description": "Comment activity", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "ed3d480f-cc49-4fee-ae36-94e6edd64940", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "eda936a5-97b9-4b9f-986a-d8e19e8ea882", + "nameSingular": "comment", + "namePlural": "comments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "04e07930-a3f1-4f57-9265-7364f18f2651", + "name": "activity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "nameSingular": "activity", + "namePlural": "activities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "ccd81283-2fcb-445c-af6f-c2ac27a42824", + "name": "comments" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bf3832d9-cdfd-4d88-bd77-2058fbd81447", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "e5915d30-4425-4c4c-a9c4-1b4bff20c469", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "workflowVersion", + "namePlural": "workflowVersions", + "labelSingular": "Workflow Version", + "labelPlural": "Workflow Versions", + "description": "A workflow version", + "icon": "IconVersions", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "01a5ead6-66ab-4188-87b7-55662b90b318", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "093a3d04-734a-4461-93ad-39cc75e79c9e", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_a362c5eff4a28fcdffdd3bdff16", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "475f6fe5-3025-4ba7-a243-2e0cffa82820", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "c7a5fd23-5b6f-4f84-bae6-e51aeb6ce3b2" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "8882dd98-35e5-441c-8f1d-f83496078d73", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "0f5844fe-f16b-4218-9ece-a4631efcc4a9" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEx" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d067b570-d85f-4c24-9341-70d0fd8534e9", + "type": "RAW_JSON", + "name": "trigger", + "label": "Version trigger", + "description": "Json object to provide trigger", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "edfd48ca-31da-4872-8d23-f18671916ae4", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Workflow version position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0f5844fe-f16b-4218-9ece-a4631efcc4a9", + "type": "UUID", + "name": "workflowId", + "label": "Workflow id (foreign key)", + "description": "WorkflowVersion workflow id foreign key", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "54150a7d-80b4-4deb-a09e-e5b57f57fda1", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "928bb407-6191-4cb3-95df-a75cd34d11c3", + "type": "SELECT", + "name": "status", + "label": "Version status", + "description": "The workflow version status", + "icon": "IconStatusChange", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'DRAFT'", + "options": [ { - id: 'b2c9d73a-2c6d-4bd9-a159-f72554ee8b68', - color: 'purple', - label: 'Screening', - value: 'SCREENING', - position: 1, + "id": "70cd7090-c978-4428-88e3-b03269310eaf", + "color": "yellow", + "label": "Draft", + "value": "DRAFT", + "position": 0 }, { - id: 'e42a14ea-6a05-4ca8-8096-e61cf21aa94e', - color: 'sky', - label: 'Meeting', - value: 'MEETING', - position: 2, + "id": "1185beb6-82c3-4429-b12e-a6831ae52c4e", + "color": "green", + "label": "Active", + "value": "ACTIVE", + "position": 1 }, { - id: 'a90f6256-246d-4897-b86e-bfd30aec941b', - color: 'turquoise', - label: 'Proposal', - value: 'PROPOSAL', - position: 3, + "id": "15def951-8fd6-41bb-8a6f-d1c3ecc55e15", + "color": "red", + "label": "Deactivated", + "value": "DEACTIVATED", + "position": 2 }, { - id: '3ac0a9b3-259a-4876-9912-6f4fd4aa5a9f', - color: 'yellow', - label: 'Customer', - value: 'CUSTOMER', - position: 4, - }, + "id": "bc1f10f9-b0b5-4b76-bc20-e8d7fbfac7a1", + "color": "grey", + "label": "Archived", + "value": "ARCHIVED", + "position": 3 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5d3ca5b4-9468-4061-8c6b-ef03a9b123df', - type: 'RELATION', - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the opportunity', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'aeb1d35c-771a-4226-a11a-4dbe1228fa7c', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '5d3ca5b4-9468-4061-8c6b-ef03a9b123df', - name: 'favorites', - }, - targetObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - targetFieldMetadata: { - __typename: 'field', - id: '1d3858e1-e4aa-484f-b422-8bbefa9409c8', - name: 'opportunity', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3bc37e42-10f2-4501-94e4-760a7c3fa38e', - type: 'POSITION', - name: 'position', - label: 'Position', - description: 'Opportunity record position', - icon: 'IconHierarchy2', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9019bf90-efbc-4499-a87b-0624bda5a559', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '8d8d083e-b9a2-4de2-a368-2422a4df4a83', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '9019bf90-efbc-4499-a87b-0624bda5a559', - name: 'timelineActivities', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '88a829b3-6d66-4e53-b1ad-ed02e544e4d2', - name: 'opportunity', - }, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2f2b9ae4-4755-4dd3-a465-1e5ca585df8a", + "type": "RAW_JSON", + "name": "steps", + "label": "Version steps", + "description": "Json object to provide steps", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "754a62dc-6d46-41f6-9a61-603e19b44ff8", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c7472787-44e9-4641-9901-cc4909ca031d', - type: 'DATE_TIME', - name: 'closeDate', - label: 'Close date', - description: 'Opportunity close date', - icon: 'IconCalendarEvent', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '01e75534-627f-4a49-bc28-c08170a71085', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6d5401c0-d456-42c4-85d4-9666900615ef', - type: 'TEXT', - name: 'name', - label: 'Name', - description: 'The opportunity name', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'aa651efa-1576-4edc-9599-070666a76dda', - type: 'RELATION', - name: 'attachments', - label: 'Attachments', - description: 'Attachments linked to the opportunity', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'ca5b3017-82e4-4d9f-94c1-c73a37b56e0b', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'aa651efa-1576-4edc-9599-070666a76dda', - name: 'attachments', - }, - targetObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'fa9d964c-3d30-4d8b-bc57-9b382053e9e3', - name: 'opportunity', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5c088faa-7d48-44e0-bc61-a338fe597395", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b8eb99bd-3485-44bb-8483-f0c600af4e92', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '55fd22aa-80df-4c0b-b5ee-f19163d10a82', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd487fe61-e181-4077-ba4e-9c7b466085ad', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bf11e668-6598-42ee-8c81-563641403ba9', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2e77023d-fdeb-454d-9368-ab638a68a0bb', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ac708d8f-abd4-436f-aec7-9a8c4ec2cd28', - type: 'RELATION', - name: 'activityTargets', - label: 'Activities', - description: 'Activities tied to the opportunity', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '842709df-7276-45b0-8c07-cc44b1f575c6', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'ac708d8f-abd4-436f-aec7-9a8c4ec2cd28', - name: 'activityTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'c2708db4-5c1e-482b-bdd4-bd620612c15f', - name: 'opportunity', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c7a5fd23-5b6f-4f84-bae6-e51aeb6ce3b2", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8afee0ef-f4da-41bf-824a-e7cb357d8fc7", + "type": "RELATION", + "name": "runs", + "label": "Runs", + "description": "Workflow runs linked to the version.", + "icon": "IconVersions", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "5a8466a5-1aa6-48e2-a415-878bcb28eb0e", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "e5915d30-4425-4c4c-a9c4-1b4bff20c469", + "nameSingular": "workflowVersion", + "namePlural": "workflowVersions" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8afee0ef-f4da-41bf-824a-e7cb357d8fc7", + "name": "runs" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "45b7e1cf-792c-45fa-8d6a-0d5e67e1fa42", + "nameSingular": "workflowRun", + "namePlural": "workflowRuns" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "ff72aee0-1e66-4493-a057-4f4455f6b738", + "name": "workflowVersion" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "69e06184-8fa4-4df5-95dc-7563936ed95f", + "type": "RELATION", + "name": "workflow", + "label": "Workflow", + "description": "WorkflowVersion workflow", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "5e09f62f-3f3a-4b9a-a2f8-434e7ac69969", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "e5915d30-4425-4c4c-a9c4-1b4bff20c469", + "nameSingular": "workflowVersion", + "namePlural": "workflowVersions" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "69e06184-8fa4-4df5-95dc-7563936ed95f", + "name": "workflow" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "7cab9c82-929f-4ea3-98e1-5c221a12263d", + "nameSingular": "workflow", + "namePlural": "workflows" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "46f260da-54b5-4739-90c3-b6aab057e442", + "name": "versions" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "01a5ead6-66ab-4188-87b7-55662b90b318", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "The workflow version name", + "icon": "IconVersions", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '86438a20-0beb-4e73-93d9-cf91bfe9ac3f', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEz', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "d828bda6-68e2-47f0-b0aa-b810b1f33981", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "ab45908f-63c2-4158-b89e-13cec2cfa8fb", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "9dafdc07-412c-49ab-9fb3-c22755bf1002", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_7d1b454b2a538273bdb947e848f", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "04fb0407-046b-4412-a4c6-6392e979dabf", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "76f53ec3-f021-4a75-8886-3916234ada48" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "e84dbe39-c202-438b-ba33-9688cfc96ca6", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "7ae566f5-11c4-447a-ba00-dab85eda1d09" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjE1" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4a2da98e-6880-47be-8673-165e1d77a910', - type: 'RELATION', - name: 'rocket', - label: 'Rocket', - description: 'ActivityTarget Rocket', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.577Z', - updatedAt: '2024-09-25T13:45:42.577Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '624c8a51-ba95-409f-bd54-72c85bb1bb2d', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '4a2da98e-6880-47be-8673-165e1d77a910', - name: 'rocket', - }, - targetObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '9aed4be2-3434-489f-a8a3-384311ee585e', - name: 'activityTargets', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7ae566f5-11c4-447a-ba00-dab85eda1d09", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '03aab98d-e16c-48fb-91e7-bffc2300402d', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e1d06322-0658-4c45-9c9b-8a42750c8751', - type: 'RELATION', - name: 'company', - label: 'Company', - description: 'ActivityTarget company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '08d38bf1-1b43-416a-915d-1d5718a829a7', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'e1d06322-0658-4c45-9c9b-8a42750c8751', - name: 'company', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'e2e632fe-1c08-4c12-9aba-88f8595bf5be', - name: 'activityTargets', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ab45908f-63c2-4158-b89e-13cec2cfa8fb", + "type": "TEXT", + "name": "handle", + "label": "handle", + "description": "The account handle (email, username, phone number, etc.)", + "icon": "IconMail", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "94ca1303-d7ef-4ee0-a661-14e64f16d8d0", + "type": "RELATION", + "name": "accountOwner", + "label": "Account Owner", + "description": "Account Owner", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "1ba150ca-e985-4ac5-9f0a-055022bab4eb", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d828bda6-68e2-47f0-b0aa-b810b1f33981", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "94ca1303-d7ef-4ee0-a661-14e64f16d8d0", + "name": "accountOwner" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "bae3fa70-47b5-495b-9f52-6724f5823bca", + "name": "connectedAccounts" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6f5b80bc-d041-4b93-902c-cf5bc3429a82", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ca812263-7b62-4e7f-8f31-bed3de2d4a94', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '984d38ae-335d-41fb-ac29-9029ff43c4c6', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b2531e1e-39ad-46c8-af56-853fe1cc7dd6', - type: 'RELATION', - name: 'activity', - label: 'Activity', - description: 'ActivityTarget activity', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'bb02c0cb-18dc-4af7-ae59-d105c515bddc', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'b2531e1e-39ad-46c8-af56-853fe1cc7dd6', - name: 'activity', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - nameSingular: 'activity', - namePlural: 'activities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '1dc0b9af-181a-4f2c-bd01-9c4bf355b9de', - name: 'activityTargets', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5d207989-c76c-49db-add7-a988ba0cd9f6", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7eedbbe1-3395-436a-8409-b8b95e5c5bea", + "type": "TEXT", + "name": "lastSyncHistoryId", + "label": "Last sync history ID", + "description": "Last sync history ID", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "76f53ec3-f021-4a75-8886-3916234ada48", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "44aa8b95-c247-4507-bf76-17ff3449b4cb", + "type": "RELATION", + "name": "calendarChannels", + "label": "Calendar Channels", + "description": "Calendar Channels", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "38ead7c5-b8c5-40a1-9db4-088a93b3c798", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d828bda6-68e2-47f0-b0aa-b810b1f33981", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "44aa8b95-c247-4507-bf76-17ff3449b4cb", + "name": "calendarChannels" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "8cceadc4-de6b-4ecf-8324-82c6b4eec077", + "nameSingular": "calendarChannel", + "namePlural": "calendarChannels" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "fe2812bf-cf28-4ab1-9c52-1e8598224947", + "name": "connectedAccount" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7036df84-657d-4e56-bb7b-48a8c72df2be", + "type": "RELATION", + "name": "messageChannels", + "label": "Message Channels", + "description": "Message Channels", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "4b072b41-d4e4-4bb0-b64b-51b17887b5a3", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d828bda6-68e2-47f0-b0aa-b810b1f33981", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "7036df84-657d-4e56-bb7b-48a8c72df2be", + "name": "messageChannels" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "92b529f1-b82b-4352-a0d5-18f32f8e47ab", + "nameSingular": "messageChannel", + "namePlural": "messageChannels" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "4a315b5d-ec77-47cf-9467-cc3d86328f02", + "name": "connectedAccount" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e760de08-161b-4772-8261-a4f13234bd46", + "type": "TEXT", + "name": "accessToken", + "label": "Access Token", + "description": "Messaging provider access token", + "icon": "IconKey", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4e191733-69a2-496c-9c1c-2b8f164c86fe", + "type": "TEXT", + "name": "handleAliases", + "label": "Handle Aliases", + "description": "Handle Aliases", + "icon": "IconMail", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4290f6df-ce65-49e4-a428-246422f12ac7", + "type": "ARRAY", + "name": "scopes", + "label": "Scopes", + "description": "Scopes", + "icon": "IconSettings", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cdfa99d0-fb44-4527-9851-874e3a0da145", + "type": "TEXT", + "name": "provider", + "label": "provider", + "description": "The account provider", + "icon": "IconSettings", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "384762e8-f9ee-4a98-8990-dfcf89293d60", + "type": "DATE_TIME", + "name": "authFailedAt", + "label": "Auth failed at", + "description": "Auth failed at", + "icon": "IconX", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5d845a06-0f8b-4ffd-9abe-d277a2eaf367", + "type": "TEXT", + "name": "refreshToken", + "label": "Refresh Token", + "description": "Messaging provider refresh token", + "icon": "IconKey", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "20848b35-b160-470f-a467-8fda3e7f28ef", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '26d681d7-4ef2-40eb-bd0c-7e0b7d6d6cb0', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dc9c8fec-55d2-40b6-9fcd-d441024be60f', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '08806161-5d03-4777-8825-b5cff93de042', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9ff04b9e-f87c-44df-82ed-518748ca0d81', - type: 'UUID', - name: 'rocketId', - label: 'Rocket ID (foreign key)', - description: 'ActivityTarget Rocket id foreign key', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.575Z', - updatedAt: '2024-09-25T13:45:42.575Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '86438a20-0beb-4e73-93d9-cf91bfe9ac3f', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2f2ed506-e96e-48d3-8225-45a9c0b55e76', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '867aff40-ddf5-4af8-a3f5-6359ab91eb2c', - type: 'RELATION', - name: 'person', - label: 'Person', - description: 'ActivityTarget person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '22f8c2a7-9887-4642-821c-6fefaab56aed', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '867aff40-ddf5-4af8-a3f5-6359ab91eb2c', - name: 'person', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - targetFieldMetadata: { - __typename: 'field', - id: '23c64ee1-4935-4a25-b401-afc08a0967fd', - name: 'activityTargets', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c2708db4-5c1e-482b-bdd4-bd620612c15f', - type: 'RELATION', - name: 'opportunity', - label: 'Opportunity', - description: 'ActivityTarget opportunity', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '842709df-7276-45b0-8c07-cc44b1f575c6', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'c2708db4-5c1e-482b-bdd4-bd620612c15f', - name: 'opportunity', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'ac708d8f-abd4-436f-aec7-9a8c4ec2cd28', - name: 'activityTargets', - }, - }, - }, - }, - ], - }, - }, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'activity', - namePlural: 'activities', - labelSingular: 'Activity', - labelPlural: 'Activities', - description: 'An activity', - icon: 'IconCheckbox', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '7314a7d0-f318-4aa0-b8f3-db1953139d3f', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE2', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "attachment", + "namePlural": "attachments", + "labelSingular": "Attachment", + "labelPlural": "Attachments", + "description": "An attachment", + "icon": "IconFileImport", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "7ea64783-b660-4ade-b155-012c66810d45", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "c2b4689a-1592-4ec9-963a-9f646b709e92", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_30f969e0ec549acca94396d3efe", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "63ec8514-11f6-48fe-85cd-c81b5ffbec0a", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "48681c53-aac1-4971-bb56-58bbdd97e7b1" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "07bed533-2603-40bc-bb3f-1f4c6ee46863", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_2055e4e583e9a2e5b4c239fd992", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "3c035e56-b3a8-42c2-bc54-1a2ec53e9b23", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "8fad0250-f884-4a20-9bbc-03f95a213e06" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "4fe9fa6f-110a-4f43-a470-d179d91cd1ad", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "48681c53-aac1-4971-bb56-58bbdd97e7b1" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "f2338a67-5927-4dec-9baa-eb1b0f9b112b", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_0698fed0e67005b7051b5d353b6", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "8760c9f0-03be-4d4a-9277-7494329a5d3a", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "48681c53-aac1-4971-bb56-58bbdd97e7b1" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "a47bad55-3b7d-48ba-9c63-4948e06a8a1d", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "e2a8c344-0c1e-4f49-afdc-7b2cc4d09a54" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "ccfda9d5-7d59-46a1-b5ba-0579fbbab49b", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_3ca1d5243ff67f58c7c65c9a8a2", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "d0d55a3a-a721-40ae-8074-69e922e9bc24", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "c524abb7-af5f-4ac7-9add-a944b6765a0f" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "92b95079-df52-4840-bfe1-f0bf8a729066", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "48681c53-aac1-4971-bb56-58bbdd97e7b1" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "eb88ae97-325a-4182-bfff-451285fc8599", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_63f7d3dda8101b0fde171835da6", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "45fbb56c-9349-494f-851e-96bd210b809e", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "61793dd1-8f80-4b0b-bea7-d59bd26667a1" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "fe574c74-845f-4ebc-8b8a-e04fa66b599b", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "48681c53-aac1-4971-bb56-58bbdd97e7b1" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "130c2f7f-be71-44d5-876b-8d38cc7998b0", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_73615a6bdc972b013956b19c59e", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "7c6e3992-e68e-4ebb-884f-d685c958a712", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "48681c53-aac1-4971-bb56-58bbdd97e7b1" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "433e113f-de68-4662-992b-fe6b126408ba", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "a6656d59-63e1-4ec0-afbc-3fd5c509b74e" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "f014e3b3-5b7d-4b23-a5ec-9a3516afaec1", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_91e687ea21123af4e02c9a07a43", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjIy" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'eb926345-9d3c-4815-a044-bf1085b31cdc', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7314a7d0-f318-4aa0-b8f3-db1953139d3f', - type: 'TEXT', - name: 'title', - label: 'Title', - description: 'Activity title', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3e63dfad-08ba-422f-88e5-0c1ebffd6496', - type: 'RELATION', - name: 'author', - label: 'Author', - description: 'Activity author', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'dd13169a-0cc9-44c1-9e12-4d66e31dcfc0', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - nameSingular: 'activity', - namePlural: 'activities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '3e63dfad-08ba-422f-88e5-0c1ebffd6496', - name: 'author', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'f76b3faa-0bc6-45ed-9654-0421171a1f1a', - name: 'authoredActivities', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5ceb1884-c3ff-4a31-9629-3ef599b1a461', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ffdb396b-200a-4dc5-a3aa-e2c23b180ac0', - type: 'TEXT', - name: 'body', - label: 'Body', - description: 'Activity body', - icon: 'IconList', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0f1cfe74-f960-44f9-91f3-fc9d25a4b96b', - type: 'RELATION', - name: 'comments', - label: 'Comments', - description: 'Activity comments', - icon: 'IconComment', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'a3bdce1c-b0a8-4961-8a06-b7dc8355e879', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - nameSingular: 'activity', - namePlural: 'activities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '0f1cfe74-f960-44f9-91f3-fc9d25a4b96b', - name: 'comments', - }, - targetObjectMetadata: { - __typename: 'object', - id: '7610fd21-9f3e-44d2-bdf9-f30e442ead53', - nameSingular: 'comment', - namePlural: 'comments', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'e48bc6a2-211c-46aa-9f22-1859aedac28e', - name: 'activity', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a6656d59-63e1-4ec0-afbc-3fd5c509b74e", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9907dc47-5e02-4966-91f8-5df22fafaaa4", + "type": "RELATION", + "name": "task", + "label": "Task", + "description": "Attachment task", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "4a95e7b4-8bdc-49ca-b6d3-ae3d86a6e040", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "9907dc47-5e02-4966-91f8-5df22fafaaa4", + "name": "task" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "nameSingular": "task", + "namePlural": "tasks" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "1bb59b31-1c7d-4697-98d5-9f984cc9ea9c", + "name": "attachments" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5c2e25df-c9e1-4f06-81ca-7b64251ee6e0", + "type": "UUID", + "name": "rocketId", + "label": "Rocket ID (foreign key)", + "description": "Attachment Rocket id foreign key", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.721Z", + "updatedAt": "2024-10-10T15:05:42.721Z", + "defaultValue": null, + "options": null, + "settings": { + "isForeignKey": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '248b356d-5a70-458d-a10b-92d70512497b', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2f1f7b1a-2c98-42ca-8f6c-784406d7bad8', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '799c1e27-3fa5-4411-bfa2-a1f494d2434a', - type: 'DATE_TIME', - name: 'reminderAt', - label: 'Reminder Date', - description: 'Activity reminder date', - icon: 'IconCalendarEvent', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dd5354bb-dd0a-4426-ac75-87e9ab171dc4', - type: 'RELATION', - name: 'assignee', - label: 'Assignee', - description: 'Activity assignee', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'bd41ada4-a132-4297-8f7f-e622a090f243', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - nameSingular: 'activity', - namePlural: 'activities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'dd5354bb-dd0a-4426-ac75-87e9ab171dc4', - name: 'assignee', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'e32f7a81-d208-4c14-afb4-a4befc938670', - name: 'assignedActivities', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "61793dd1-8f80-4b0b-bea7-d59bd26667a1", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c524abb7-af5f-4ac7-9add-a944b6765a0f", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3faea476-e6f7-450d-a699-5f58da0f0a09", + "type": "RELATION", + "name": "author", + "label": "Author", + "description": "Attachment author", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7a297555-158b-4bcb-a751-18e30aac5f3d", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "3faea476-e6f7-450d-a699-5f58da0f0a09", + "name": "author" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "4c6c8adf-6958-48d6-b7e6-0bbab57e2dd1", + "name": "authoredAttachments" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8fad0250-f884-4a20-9bbc-03f95a213e06", + "type": "UUID", + "name": "taskId", + "label": "Task id (foreign key)", + "description": "Attachment task id foreign key", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "144087ac-d621-4897-8172-14578d80a07b", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "Attachment person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0a89048f-6e64-4a8d-ad24-51ab63af3a85", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "144087ac-d621-4897-8172-14578d80a07b", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "561cbb88-39b8-47e2-9f48-6ed929f6ca2a", + "name": "attachments" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7592ab0d-a3bd-459f-a2cb-8220148b7cc6", + "type": "RELATION", + "name": "activity", + "label": "Activity", + "description": "Attachment activity", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "58616cac-8d7a-4148-9051-a6878ca7e361", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "7592ab0d-a3bd-459f-a2cb-8220148b7cc6", + "name": "activity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "nameSingular": "activity", + "namePlural": "activities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "ab39f722-059b-4804-8683-a75f58db81c3", + "name": "attachments" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "619eb737-7e83-4f2b-958d-8098bf95c91e", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2f907f04-3122-4b7b-bd83-c192cacc4a83", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "Attachment company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "c9ce54d1-cb4a-4492-879f-be86056fcce5", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "2f907f04-3122-4b7b-bd83-c192cacc4a83", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "1b548bb0-c4fc-4232-a18f-b7882b6a1ddf", + "name": "attachments" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "99ab5575-ac5d-4284-8621-7e4ac98a5e51", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd7b4584a-d0ed-49f8-b14c-198036b60fe8', - type: 'DATE_TIME', - name: 'dueAt', - label: 'Due Date', - description: 'Activity due date', - icon: 'IconCalendarEvent', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9b8808d3-be01-4595-9b20-ebb9553cd7db', - type: 'DATE_TIME', - name: 'completedAt', - label: 'Completion Date', - description: 'Activity completion date', - icon: 'IconCheck', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd0341ced-bdb0-4629-a816-d402df827bd7', - type: 'TEXT', - name: 'type', - label: 'Type', - description: 'Activity type', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'Note'", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1dc0b9af-181a-4f2c-bd01-9c4bf355b9de', - type: 'RELATION', - name: 'activityTargets', - label: 'Targets', - description: 'Activity targets', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'bb02c0cb-18dc-4af7-ae59-d105c515bddc', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - nameSingular: 'activity', - namePlural: 'activities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '1dc0b9af-181a-4f2c-bd01-9c4bf355b9de', - name: 'activityTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'b2531e1e-39ad-46c8-af56-853fe1cc7dd6', - name: 'activity', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "01b00bde-0e1f-4e47-ad06-9df00dd1c7a3", + "type": "RELATION", + "name": "rocket", + "label": "Rocket", + "description": "Attachment Rocket", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.722Z", + "updatedAt": "2024-10-10T15:05:42.722Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "07793950-4b19-4d72-afda-f1815ec8e5e4", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "01b00bde-0e1f-4e47-ad06-9df00dd1c7a3", + "name": "rocket" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "c2721d06-ae7f-40e4-b061-d96179f0be97", + "name": "attachments" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f84f5b1b-70b1-4d06-9093-d4be29917d3e", + "type": "RELATION", + "name": "opportunity", + "label": "Opportunity", + "description": "Attachment opportunity", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0984e2b5-1ba8-46d8-ade2-11bf79f52557", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "f84f5b1b-70b1-4d06-9093-d4be29917d3e", + "name": "opportunity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "f2b2e717-0c19-417c-b81a-98d95cadcc67", + "name": "attachments" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "10689971-5c26-4b38-ace8-bab4bca531a7", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b31fdd11-115b-4405-8265-c03329338f0c', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bfa2ab3d-a55b-41ca-906b-9d497aee7ba8', - type: 'RELATION', - name: 'attachments', - label: 'Attachments', - description: 'Activity attachments', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'e954bb33-50a5-4f94-85c3-be141fa17f70', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - nameSingular: 'activity', - namePlural: 'activities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'bfa2ab3d-a55b-41ca-906b-9d497aee7ba8', - name: 'attachments', - }, - targetObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - targetFieldMetadata: { - __typename: 'field', - id: '3669c8b2-ba73-4e9b-be61-10a2023955fd', - name: 'activity', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "48681c53-aac1-4971-bb56-58bbdd97e7b1", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '33b0ccb9-19fc-42d6-b7af-87bc4411692e', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e2a8c344-0c1e-4f49-afdc-7b2cc4d09a54", + "type": "UUID", + "name": "noteId", + "label": "Note id (foreign key)", + "description": "Attachment note id foreign key", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c3bd28b7-06b4-448a-9a25-9fffcc4c856f", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "052cd77c-3540-4c77-a571-e0144b944351", + "type": "RELATION", + "name": "note", + "label": "Note", + "description": "Attachment note", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "fc78e196-db67-41d8-8d95-b1da605f98d5", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "052cd77c-3540-4c77-a571-e0144b944351", + "name": "note" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "6a09bc08-33ae-4321-868a-30064279097f", + "nameSingular": "note", + "namePlural": "notes" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "20646869-ca0e-49a0-9344-fe9272d64f6d", + "name": "attachments" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2df006ae-0867-475d-b5db-15b8152c5e87", + "type": "TEXT", + "name": "fullPath", + "label": "Full path", + "description": "Attachment full path", + "icon": "IconLink", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a0e86fca-ff82-4d04-be4b-13918686feba", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "35ff7d4f-78f1-4ac7-b6f6-c1f76c177648", + "type": "TEXT", + "name": "type", + "label": "Type", + "description": "Attachment type", + "icon": "IconList", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7ea64783-b660-4ade-b155-012c66810d45", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "Attachment name", + "icon": "IconFileUpload", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'd2ea4c05-34cd-4c7c-9215-d044c9c92522', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'c97d9e28-d807-4fff-ba2c-c72f99087f89', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEz', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "favorite", + "namePlural": "favorites", + "labelSingular": "Favorite", + "labelPlural": "Favorites", + "description": "A favorite", + "icon": "IconHeart", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "4cf1af4a-e7c7-40c9-88e5-c1bbb79776d0", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "d71f5aa2-0433-4b1e-a5f5-001efc908018", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_505a1fccd2804f2472bd92e8720", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "666cb283-0e48-4982-9a10-b8bd813e93da", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "66cbb849-1798-424d-8924-701491da5955" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "bf689f43-2536-4bda-9e44-49794722c47e", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_e14b3424016bea8b7fe220f7761", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "3aadce0a-04ce-4e5e-8ca3-6ed6534fd449", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "31d02158-ff64-4da7-adc8-0b170418bae5" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "8c32e5f8-c510-4400-a298-9225d7c16274", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "66cbb849-1798-424d-8924-701491da5955" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "6f30b5f2-f039-4e58-840d-daaa1b14d6eb", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_21d905e0adf19e835f6059a9f3d", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "b13cd64b-486f-4dcd-9bcd-06632dee78a5", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "eea55a50-4866-4e40-b4ee-55cfc8f24f37" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "941a0458-02b1-46e7-97b8-df46b23da17e", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "66cbb849-1798-424d-8924-701491da5955" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "3830e581-4114-4914-9858-06cdaf072777", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_eecddc968e93b9b8ebbfd85dad3", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "f747d40f-bf6e-465f-92b8-c0cd8384109f", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "66cbb849-1798-424d-8924-701491da5955" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "4b9718e7-4bf4-4c18-b77d-3982bc066c0b", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "e3d4db69-e331-4db1-b26c-5714900c2996" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "23f93471-7dd4-418f-8ba6-566493294692", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_a900d9f809273abe54dc5e166fa", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "f67e1247-7831-4b70-b656-faeac8e86d34", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "de785063-55a9-433d-866f-7b219c8a605e" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "4cb8c460-5fd2-47f6-8023-058e1efbf59f", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_1f7e4cb168e77496349c8cefed6", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "ae8f9213-825e-4a9f-9b00-704c338d9e58", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "66cbb849-1798-424d-8924-701491da5955" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "3b43ed22-9ff3-4752-b865-1362201acd96", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_c3ee83d51bc99ba99fe1998c508", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "373a9183-07ca-47e6-a43e-870fe50f30c5", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "66cbb849-1798-424d-8924-701491da5955" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "8baea079-e5c6-4ec3-afa1-821e8b4a8eca", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_85f024f9ec673d530d14cf75fe5", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "ef971ebb-ad07-4d92-8667-b51318ce4b3b", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "7da1d1c6-8ea5-4aac-abea-831483bd204a" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjIy" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e166c79b-99c1-4fb4-9575-5cf7e7f4811f', - type: 'BOOLEAN', - name: 'isOrganizer', - label: 'Is Organizer', - description: 'Is Organizer', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: false, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '34f2ac5d-bb7e-446c-ab52-18e722345a24', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0c215138-fc5b-4be2-8c37-0acc7cb4e5a1', - type: 'SELECT', - name: 'responseStatus', - label: 'Response Status', - description: 'Response Status', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'NEEDS_ACTION'", - options: [ - { - id: '0896acf3-8f3e-4b7f-ba24-e102e68a9c30', - color: 'orange', - label: 'Needs Action', - value: 'NEEDS_ACTION', - position: 0, - }, - { - id: '6eefa8a1-3a90-4fb2-afd1-b46b73598c6a', - color: 'red', - label: 'Declined', - value: 'DECLINED', - position: 1, - }, - { - id: 'ec2aea9f-55c8-44b2-b98e-b861a075edf2', - color: 'yellow', - label: 'Tentative', - value: 'TENTATIVE', - position: 2, - }, - { - id: '96ae698f-1bae-43e2-8ec2-5fc928de9959', - color: 'green', - label: 'Accepted', - value: 'ACCEPTED', - position: 3, - }, - ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '16b867dd-9fb1-43ab-8254-2478004b30b3', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'fdfea59a-624c-4af3-9901-1f86d1972b23', - type: 'TEXT', - name: 'displayName', - label: 'Display Name', - description: 'Display Name', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2f77bc8e-26dc-40b1-964a-f0748feb193a', - type: 'RELATION', - name: 'person', - label: 'Person', - description: 'Person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '7aced498-e104-4898-939c-187937ea7bca', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'd2ea4c05-34cd-4c7c-9215-d044c9c92522', - nameSingular: 'calendarEventParticipant', - namePlural: 'calendarEventParticipants', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '2f77bc8e-26dc-40b1-964a-f0748feb193a', - name: 'person', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'aa5e7931-e042-45d5-af4a-e4c22979a3b7', - name: 'calendarEventParticipants', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f7905ef7-a551-41eb-877f-bd2feef547e0", + "type": "RELATION", + "name": "view", + "label": "View", + "description": "Favorite view", + "icon": "IconLayoutCollage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "415982de-24e3-4428-a0cc-784d91a4a41c", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "f7905ef7-a551-41eb-877f-bd2feef547e0", + "name": "view" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "c46916fc-0528-4331-9766-6ac2247a70fb", + "nameSingular": "view", + "namePlural": "views" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "f82b5a4c-e41c-4d92-b36a-c18b5387d373", + "name": "favorites" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2c985750-bb37-4974-ace6-0f3d65846524", + "type": "UUID", + "name": "rocketId", + "label": "Rocket ID (foreign key)", + "description": "Favorite Rocket id foreign key", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.717Z", + "updatedAt": "2024-10-10T15:05:42.717Z", + "defaultValue": null, + "options": null, + "settings": { + "isForeignKey": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '597d153f-8724-4d61-8863-8bfae905721f', - type: 'RELATION', - name: 'calendarEvent', - label: 'Event ID', - description: 'Event ID', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '089a99c0-0893-4288-ad62-ac723007a426', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'd2ea4c05-34cd-4c7c-9215-d044c9c92522', - nameSingular: 'calendarEventParticipant', - namePlural: 'calendarEventParticipants', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '597d153f-8724-4d61-8863-8bfae905721f', - name: 'calendarEvent', - }, - targetObjectMetadata: { - __typename: 'object', - id: '75c685e2-f612-415f-a81c-6ca8eda30c8d', - nameSingular: 'calendarEvent', - namePlural: 'calendarEvents', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'bc8be6a6-4707-498a-9e79-8ffb86e92a43', - name: 'calendarEventParticipants', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "23e21a62-5a1f-4fe5-b5f0-1a5949d622f1", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '83d94e19-f9f3-47bb-a277-6935af6ae69d', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'cc27c5b5-44cc-4f19-a56e-8ce172e2ab37', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '22c34bd1-550b-4b5c-a2a4-fbb475a4420b', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7b7792da-246d-4015-855a-ea029f0b8a02', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7794c913-c52f-4c06-921e-2b391b63e51e', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '30fd4e8a-2089-4443-ac06-5cd53d9a3fcf', - type: 'RELATION', - name: 'workspaceMember', - label: 'Workspace Member', - description: 'Workspace Member', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'd23fa3d8-e4ce-4cc9-a949-cafbd231d563', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'd2ea4c05-34cd-4c7c-9215-d044c9c92522', - nameSingular: 'calendarEventParticipant', - namePlural: 'calendarEventParticipants', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '30fd4e8a-2089-4443-ac06-5cd53d9a3fcf', - name: 'workspaceMember', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: '7370da8c-294f-4671-91e5-7f87f4dccc1e', - name: 'calendarEventParticipants', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c19bfc7c-f7a6-47ac-bd5b-a352ce7ff74b", + "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": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "eea55a50-4866-4e40-b4ee-55cfc8f24f37", + "type": "UUID", + "name": "noteId", + "label": "Note id (foreign key)", + "description": "Favorite note id foreign key", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7da1d1c6-8ea5-4aac-abea-831483bd204a", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cfcd1a8f-e40e-49cb-a711-c92aab1e4158", + "type": "NUMBER", + "name": "position", + "label": "Position", + "description": "Favorite position", + "icon": "IconList", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": 0, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0d9f922f-d7db-485e-b5ff-1293a0b51dc9", + "type": "RELATION", + "name": "opportunity", + "label": "Opportunity", + "description": "Favorite opportunity", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "85086085-d6fb-4f1c-9f77-1edd0b07adcb", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "0d9f922f-d7db-485e-b5ff-1293a0b51dc9", + "name": "opportunity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "30756ebf-d27c-4ffb-a30f-8a04b909839f", + "name": "favorites" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "31d02158-ff64-4da7-adc8-0b170418bae5", + "type": "UUID", + "name": "taskId", + "label": "Task id (foreign key)", + "description": "Favorite task id foreign key", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4cf1af4a-e7c7-40c9-88e5-c1bbb79776d0", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "71e4555a-9fcc-41bd-a8f0-248d1605567e", + "type": "RELATION", + "name": "workflow", + "label": "Workflow", + "description": "Favorite workflow", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "fa6c3b55-5fe4-4406-89a8-9474ca539769", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "71e4555a-9fcc-41bd-a8f0-248d1605567e", + "name": "workflow" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "7cab9c82-929f-4ea3-98e1-5c221a12263d", + "nameSingular": "workflow", + "namePlural": "workflows" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "05d6227a-bc2d-4e08-8390-cfcec921e4a4", + "name": "favorites" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5569602d-cf0d-4b49-ac90-f5d1fc18bde7", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c97d9e28-d807-4fff-ba2c-c72f99087f89', - type: 'TEXT', - name: 'handle', - label: 'Handle', - description: 'Handle', - icon: 'IconMail', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3f7749a5-7d4e-4b3c-b5ae-12b8ea631676", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "Favorite company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "3e2f75b9-76aa-436f-8d24-129798ca4090", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "3f7749a5-7d4e-4b3c-b5ae-12b8ea631676", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "134b368a-cf99-438e-8105-9150a2827fd4", + "name": "favorites" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "de785063-55a9-433d-866f-7b219c8a605e", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "89fe6ca9-b01e-4f73-8fe2-f51ba3a67024", + "type": "RELATION", + "name": "rocket", + "label": "Rocket", + "description": "Favorite Rocket", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.718Z", + "updatedAt": "2024-10-10T15:05:42.718Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "9a12826d-783a-4411-89ac-a2a2369e5eb2", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "89fe6ca9-b01e-4f73-8fe2-f51ba3a67024", + "name": "rocket" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "4d64de07-68da-42c9-b169-d5adf91ae282", + "name": "favorites" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ea2ca48b-3fa6-4b65-9fb2-eb0a194385f5", + "type": "UUID", + "name": "viewId", + "label": "View id (foreign key)", + "description": "Favorite view id foreign key", + "icon": "IconLayoutCollage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "60db3d95-7824-4335-9a49-eec97888c068", + "type": "RELATION", + "name": "task", + "label": "Task", + "description": "Favorite task", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "14f171b6-2a7e-4ae3-adc6-1721e91b791f", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "60db3d95-7824-4335-9a49-eec97888c068", + "name": "task" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "nameSingular": "task", + "namePlural": "tasks" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "0111a4d1-f387-4f21-bc99-94b80139ff7f", + "name": "favorites" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "85779625-b591-4436-bcee-4e69f937a2ea", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e3d4db69-e331-4db1-b26c-5714900c2996", + "type": "UUID", + "name": "workflowId", + "label": "Workflow id (foreign key)", + "description": "Favorite workflow id foreign key", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7626da40-ddb4-4cbc-8554-441f9785ef5e", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "Favorite person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "033e99d2-7a1a-405c-950d-06031b93a773", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "7626da40-ddb4-4cbc-8554-441f9785ef5e", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "42052d18-6fab-4d08-bb69-667683392617", + "name": "favorites" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "53790b28-fd71-4f0f-994d-72e9cb8b018b", + "type": "RELATION", + "name": "note", + "label": "Note", + "description": "Favorite note", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "8206c6dd-98d8-4526-9836-bad9f2b065bb", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "53790b28-fd71-4f0f-994d-72e9cb8b018b", + "name": "note" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "6a09bc08-33ae-4321-868a-30064279097f", + "nameSingular": "note", + "namePlural": "notes" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "f86335f9-07e3-4108-a2a2-cafa6820e85e", + "name": "favorites" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "66cbb849-1798-424d-8924-701491da5955", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "37bb5979-9521-434c-8fca-84a84a545314", + "type": "RELATION", + "name": "workspaceMember", + "label": "Workspace Member", + "description": "Favorite workspace member", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "09d87091-a73a-440d-9ef0-11f4639dbd64", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "37bb5979-9521-434c-8fca-84a84a545314", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "3687c43a-dab2-4043-b2c5-ba090cb9f46d", + "name": "favorites" + } + } + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'cd90b6c9-4f22-4c62-a107-dc396e5396ed', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '0383ac8e-6138-4e06-a828-bfc391e53d01', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEx', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "c55193eb-042d-42d5-a6a7-8263fd1433a2", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "2416e698-40fa-4a3f-9190-fed51819cd7e", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "a4e03ada-488b-4c7b-bcbb-ed2f76d4f82f", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_a01889a3e5b30d56447736329aa", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "a7c3045f-a5b7-4409-9d85-0d71e1e7ee1d", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "5505a8ee-ac5f-4b0a-bf90-87f80307d8d8" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "5512c691-fa4f-4d75-a0bc-06ca74dd5666", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "6aeb1851-3091-4fb9-9aa5-c2a3e3d3aea3" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "274f0fa6-16c3-49e2-a033-72b0e7fa4310", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_9564690e029f3f186dff29c9c88", + "indexWhereClause": "\"deletedAt\" IS NULL", + "indexType": "BTREE", + "isUnique": true, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "a6632868-3a90-4dcb-909d-905deee50405", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "5505a8ee-ac5f-4b0a-bf90-87f80307d8d8" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "674e69ba-749c-4fd1-925a-9a9498177af6", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "9dd7a1fc-bda5-4452-810c-6a966757e1f1" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjc=" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e8a5a86c-b1ce-4db1-8d51-d5b01d2b361b', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '09a753b7-a5f9-4810-ae2f-389982f593c3', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7881aa82-a7ed-4090-923d-f1c0cf16a486', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7f1d2847-9f16-457f-a57c-de36c401286a', - type: 'UUID', - name: 'recordId', - label: 'Record id', - description: 'Record id', - icon: 'IconAbc', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1db6f800-bb46-45a2-a324-cfe52362ed9a', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '785dc6cb-77dc-4bdd-be44-60ad8f1f45da', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3d6dc314-877d-4aaa-88bd-364dc50f780b', - type: 'RELATION', - name: 'workspaceMember', - label: 'Workspace Member', - description: 'Event workspace member', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '07071415-1159-4913-9dee-81b8f9b8cdb4', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'cd90b6c9-4f22-4c62-a107-dc396e5396ed', - nameSingular: 'auditLog', - namePlural: 'auditLogs', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '3d6dc314-877d-4aaa-88bd-364dc50f780b', - name: 'workspaceMember', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: '85df4525-aed1-4e46-b718-b5bc963da41d', - name: 'auditLogs', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dc1b5993-36b2-45eb-be43-506965789902", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '80fe2b13-5cb0-48a0-9341-aec08481628f', - 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: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0383ac8e-6138-4e06-a828-bfc391e53d01', - type: 'TEXT', - name: 'name', - label: 'Event name', - description: 'Event name/type', - icon: 'IconAbc', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f4f0343a-8241-492a-8156-18d40c75f46a', - type: 'RAW_JSON', - name: 'properties', - label: 'Event details', - description: 'Json value for event details', - icon: 'IconListDetails', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a8282a28-724f-487b-a9fa-f0d10c919237', - type: 'TEXT', - name: 'objectName', - label: 'Object name', - description: 'Object name', - icon: 'IconAbc', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd85abbad-9616-456f-978c-4cced740490c', - type: 'TEXT', - name: 'objectMetadataId', - label: 'Object metadata id', - description: 'Object metadata id', - icon: 'IconAbc', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "aa5a8453-0d51-4f10-98b2-0a15fcc723c1", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6aeb1851-3091-4fb9-9aa5-c2a3e3d3aea3", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9dd7a1fc-bda5-4452-810c-6a966757e1f1", + "type": "UUID", + "name": "fieldMetadataId", + "label": "Field Metadata Id", + "description": "View Sort target field", + "icon": "IconTag", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d0bce78c-57eb-48c1-9a66-5e0de3d63a61", + "type": "RELATION", + "name": "view", + "label": "View", + "description": "View Sort related view", + "icon": "IconLayoutCollage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "05ae03d1-1a38-4c4e-bbe1-f46ca40ece76", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "c55193eb-042d-42d5-a6a7-8263fd1433a2", + "nameSingular": "viewSort", + "namePlural": "viewSorts" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "d0bce78c-57eb-48c1-9a66-5e0de3d63a61", + "name": "view" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "c46916fc-0528-4331-9766-6ac2247a70fb", + "nameSingular": "view", + "namePlural": "views" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "db666f56-a9ac-41a3-9a41-bb172dbc9cae", + "name": "viewSorts" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1e5c3440-e396-44ed-9616-c603c514a96e", + "type": "TEXT", + "name": "direction", + "label": "Direction", + "description": "View Sort direction", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'asc'", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5505a8ee-ac5f-4b0a-bf90-87f80307d8d8", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2416e698-40fa-4a3f-9190-fed51819cd7e", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'c8993ad6-46d5-4ab0-88f5-d407625c0c75', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '93658b38-cb56-4d2b-93f8-3a4c7714f7c4', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE2', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "c46916fc-0528-4331-9766-6ac2247a70fb", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "view", + "namePlural": "views", + "labelSingular": "View", + "labelPlural": "Views", + "description": "(System) Views", + "icon": "IconLayoutCollage", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "6cefd31f-49fd-4e11-b306-3017ca5a653d", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjE1" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '818ec7cd-9181-4c72-ad99-c19b00fde065', - 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: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '93658b38-cb56-4d2b-93f8-3a4c7714f7c4', - type: 'TEXT', - name: 'handle', - label: 'Handle', - description: 'Handle', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'af61423d-0891-4e91-b6d3-2f7ed6363916', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e921674b-2e9f-4f19-a067-920685cf9164', - type: 'SELECT', - name: 'visibility', - label: 'Visibility', - description: 'Visibility', - icon: 'IconEyeglass', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'SHARE_EVERYTHING'", - options: [ - { - id: '862f57cb-ef30-47e4-a520-396f1036f245', - color: 'green', - label: 'Metadata', - value: 'METADATA', - position: 0, - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bbb3ca4e-a73c-45a4-9040-d062c94dd8fa", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "712a82cd-43fd-429d-83c5-8b1b2c8e90c0", + "type": "TEXT", + "name": "kanbanFieldMetadataId", + "label": "kanbanfieldMetadataId", + "description": "View Kanban column field", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1c2ddd98-f8e7-4c61-ba6a-5508383d4702", + "type": "BOOLEAN", + "name": "isCompact", + "label": "Compact View", + "description": "Describes if the view is in compact mode", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": false, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "312163f0-9b2f-4c59-8473-9eb1906b8f41", + "type": "RELATION", + "name": "viewFilters", + "label": "View Filters", + "description": "View Filters", + "icon": "IconFilterBolt", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "678c1f91-1825-4eb5-9960-bea05bd2ca87", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "c46916fc-0528-4331-9766-6ac2247a70fb", + "nameSingular": "view", + "namePlural": "views" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "312163f0-9b2f-4c59-8473-9eb1906b8f41", + "name": "viewFilters" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "88f29168-a15b-4330-89a1-680581a2e86b", + "nameSingular": "viewFilter", + "namePlural": "viewFilters" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "d3db3f5c-49f7-4008-b8a4-cec85ac3505e", + "name": "view" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4f39ff46-1298-4408-8db7-47ac99750ff9", + "type": "TEXT", + "name": "icon", + "label": "Icon", + "description": "View icon", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "90203b84-6898-4ced-976f-cfdb2c3aa691", + "type": "TEXT", + "name": "type", + "label": "Type", + "description": "View type", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'table'", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f82b5a4c-e41c-4d92-b36a-c18b5387d373", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the view", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "415982de-24e3-4428-a0cc-784d91a4a41c", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "c46916fc-0528-4331-9766-6ac2247a70fb", + "nameSingular": "view", + "namePlural": "views" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "f82b5a4c-e41c-4d92-b36a-c18b5387d373", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "f7905ef7-a551-41eb-877f-bd2feef547e0", + "name": "view" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2833387e-799c-44b9-a751-87acdefbd502", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "View position", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "763a455b-2f04-41be-b4d6-cc0c381bc7e9", + "type": "SELECT", + "name": "key", + "label": "Key", + "description": "View key", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'INDEX'", + "options": [ { - id: '4e9e36e1-e402-4453-80ca-832f0e2e07a6', - color: 'orange', - label: 'Share Everything', - value: 'SHARE_EVERYTHING', - position: 1, - }, + "id": "f425b635-b0f5-461b-a321-96e621c25a5d", + "color": "red", + "label": "Index", + "value": "INDEX", + "position": 0 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0abc3baf-2797-4f88-8565-a3ffa4468b55', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e567e960-f3c8-4ef0-b810-d8a4bc6a4f7d', - type: 'BOOLEAN', - name: 'isSyncEnabled', - label: 'Is Sync Enabled', - description: 'Is Sync Enabled', - icon: 'IconRefresh', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: true, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bb3531fe-a008-4505-820b-0cb2c365b05d', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd9a353c7-25ba-403f-8157-0d8bee911cec', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd1596020-b595-4bf9-b3c1-782f9b49f41b', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'da686bc9-04d2-4665-b0ce-2bfa306c1087', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'c8993ad6-46d5-4ab0-88f5-d407625c0c75', - nameSingular: 'calendarChannel', - namePlural: 'calendarChannels', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'd1596020-b595-4bf9-b3c1-782f9b49f41b', - name: 'calendarChannelEventAssociations', - }, - targetObjectMetadata: { - __typename: 'object', - id: '97548143-02cb-4372-8e0e-416793d65a38', - nameSingular: 'calendarChannelEventAssociation', - namePlural: 'calendarChannelEventAssociations', - }, - targetFieldMetadata: { - __typename: 'field', - id: '906e35f2-e2d1-45d5-8326-cb7712a19e60', - name: 'calendarChannel', - }, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8c46a404-3ed7-4a94-8a02-e9b03197de5e", + "type": "RELATION", + "name": "viewFields", + "label": "View Fields", + "description": "View Fields", + "icon": "IconTag", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7184d260-316e-4e2c-af72-431957b1af98", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "c46916fc-0528-4331-9766-6ac2247a70fb", + "nameSingular": "view", + "namePlural": "views" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8c46a404-3ed7-4a94-8a02-e9b03197de5e", + "name": "viewFields" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "50f61b05-868d-425b-ab3f-c085e1652d82", + "nameSingular": "viewField", + "namePlural": "viewFields" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "911faf74-aef1-4b31-a5a3-f1ed80496f18", + "name": "view" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "db666f56-a9ac-41a3-9a41-bb172dbc9cae", + "type": "RELATION", + "name": "viewSorts", + "label": "View Sorts", + "description": "View Sorts", + "icon": "IconArrowsSort", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "05ae03d1-1a38-4c4e-bbe1-f46ca40ece76", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "c46916fc-0528-4331-9766-6ac2247a70fb", + "nameSingular": "view", + "namePlural": "views" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "db666f56-a9ac-41a3-9a41-bb172dbc9cae", + "name": "viewSorts" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "c55193eb-042d-42d5-a6a7-8263fd1433a2", + "nameSingular": "viewSort", + "namePlural": "viewSorts" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "d0bce78c-57eb-48c1-9a66-5e0de3d63a61", + "name": "view" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "46ed3f5f-46da-4475-acae-0d91a634d7e2", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3bc56d31-4180-49d8-9aab-a5de97a6d180", + "type": "UUID", + "name": "objectMetadataId", + "label": "Object Metadata Id", + "description": "View target object", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6cefd31f-49fd-4e11-b306-3017ca5a653d", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "View name", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "196ec541-c7a6-49d3-bc76-138511d47263", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9802ccbc-bfab-42eb-b8f3-1f4cb61d3a26", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "opportunity", + "namePlural": "opportunities", + "labelSingular": "Opportunity", + "labelPlural": "Opportunities", + "description": "An opportunity", + "icon": "IconTargetArrow", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "08f7b793-78cc-4cc8-b0d3-19d9b7f61370", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "5c9d3acc-4705-4cc5-960e-73e436a0fad2", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_9f96d65260c4676faac27cb6bf3", + "indexWhereClause": null, + "indexType": "GIN", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "7535eeab-940b-4f4f-a541-8a32da4b80a2", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_425ac6c73ecb993cf9cbc2c2b00", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "27564152-a4a9-4e1e-804e-541cfb4318a7", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_82cdf247553f960093baa7c6635", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "defacb32-eb1f-4538-a17b-6032425ad870", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "a6152400-37e6-4cb1-91e0-50d2e9f88801" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "d269e2cd-5b30-4252-90ff-ee583e2be728", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "665675f5-e856-489e-8f05-0233a3c40507" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "0d3d7f9e-cce7-4eef-8c7d-381d12fc4606", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_4f469d3a7ee08aefdc099836364", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "06af04f3-4899-460b-be19-2a821c327eec", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "368d7023-7d0d-4c18-98f5-b83b2633e689" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "ac9fa71b-6751-4f9d-93b1-8321aff03e6f", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "665675f5-e856-489e-8f05-0233a3c40507" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjIw" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9637bff7-b622-48f7-8f6c-2ea7ee18edef", + "type": "RELATION", + "name": "noteTargets", + "label": "Notes", + "description": "Notes tied to the opportunity", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "48b33f6e-6f79-4990-9d3a-7bc3ae6020bb", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "9637bff7-b622-48f7-8f6c-2ea7ee18edef", + "name": "noteTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "nameSingular": "noteTarget", + "namePlural": "noteTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "fa189561-0de7-478f-8673-9f6b68527bed", + "name": "opportunity" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6e66cbc4-5e29-4bea-85ce-2dd4eda73a73", + "type": "TS_VECTOR", + "name": "searchVector", + "label": "Search vector", + "description": "Field used for full-text search", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a6152400-37e6-4cb1-91e0-50d2e9f88801", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "788977f3-a7c3-4686-8d46-a915649d524d", + "type": "ACTOR", + "name": "createdBy", + "label": "Created by", + "description": "The creator of the record", + "icon": "IconCreativeCommonsSa", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "name": "''", + "source": "'MANUAL'" + }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "23df41ee-2db8-4901-bab4-7ebbc763f5b7", + "type": "CURRENCY", + "name": "amount", + "label": "Amount", + "description": "Opportunity amount", + "icon": "IconCurrencyDollar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "amountMicros": null, + "currencyCode": "''" + }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c7d6d50c-3677-4639-8c2e-801ac13be879", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a679e0f1-1766-4814-ac8e-64b82329cdb9", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "Opportunity company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "c2fcfb71-1f23-47b7-a818-27371a165214", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "a679e0f1-1766-4814-ac8e-64b82329cdb9", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8323137c-6b37-4ec2-9977-accefa773841", + "name": "opportunities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "30756ebf-d27c-4ffb-a30f-8a04b909839f", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the opportunity", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "85086085-d6fb-4f1c-9f77-1edd0b07adcb", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "30756ebf-d27c-4ffb-a30f-8a04b909839f", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "0d9f922f-d7db-485e-b5ff-1293a0b51dc9", + "name": "opportunity" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ed057590-4d06-4159-a153-48f124dfed73", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd757fd20-3568-411f-a2ba-ec2f7b30dc55', - type: 'SELECT', - name: 'syncStatus', - label: 'Sync status', - description: 'Sync status', - icon: 'IconStatusChange', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: [ + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "08f7b793-78cc-4cc8-b0d3-19d9b7f61370", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "The opportunity name", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "665675f5-e856-489e-8f05-0233a3c40507", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d560e379-92da-454c-9f4a-1be6d5543816", + "type": "RELATION", + "name": "timelineActivities", + "label": "Timeline Activities", + "description": "Timeline Activities linked to the opportunity.", + "icon": "IconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0f840679-a025-4d20-9bc0-102e5865dda0", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "d560e379-92da-454c-9f4a-1be6d5543816", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "58dbba6f-4a0c-4db7-883a-8a99618be069", + "name": "opportunity" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3d67a957-e029-4f7d-b04d-8fedb77a4c57", + "type": "DATE_TIME", + "name": "closeDate", + "label": "Close date", + "description": "Opportunity close date", + "icon": "IconCalendarEvent", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d9ca2742-9b92-47b2-8af3-63121919d3e6", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Opportunity record position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ba574a70-ed4f-450b-be6b-71907d7264cd", + "type": "RELATION", + "name": "activityTargets", + "label": "Activities", + "description": "Activities tied to the opportunity", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "a0f78a63-3342-48c2-966d-2de9111ef8ca", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "ba574a70-ed4f-450b-be6b-71907d7264cd", + "name": "activityTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "36de1418-2c3d-4444-b88f-606993e3d796", + "name": "opportunity" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "db2d038b-73d8-4c99-a709-8737e7e6658c", + "type": "RELATION", + "name": "taskTargets", + "label": "Tasks", + "description": "Tasks tied to the opportunity", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "3edc0e3a-d735-4b9c-ac34-352b48a6e705", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "db2d038b-73d8-4c99-a709-8737e7e6658c", + "name": "taskTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "nameSingular": "taskTarget", + "namePlural": "taskTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "f0adc079-73ce-4316-80e0-90295a7192f1", + "name": "opportunity" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "368d7023-7d0d-4c18-98f5-b83b2633e689", + "type": "SELECT", + "name": "stage", + "label": "Stage", + "description": "Opportunity stage", + "icon": "IconProgressCheck", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'NEW'", + "options": [ { - id: 'b630226e-bf35-4598-be4d-292eb96c2a37', - color: 'yellow', - label: 'Ongoing', - value: 'ONGOING', - position: 1, + "id": "1127a5a1-03ee-4cfd-8319-4b33603f93d7", + "color": "red", + "label": "New", + "value": "NEW", + "position": 0 }, { - id: '53e06d7a-d579-47cc-925c-2f2c869503cc', - color: 'blue', - label: 'Not Synced', - value: 'NOT_SYNCED', - position: 2, + "id": "5d04982d-f01c-4ad4-8487-d0a12998fbb5", + "color": "purple", + "label": "Screening", + "value": "SCREENING", + "position": 1 }, { - id: '3285bfab-5312-493b-b907-58b2000e9406', - color: 'green', - label: 'Active', - value: 'ACTIVE', - position: 3, + "id": "ec927e11-84b1-4d43-a948-cb6ed0642a52", + "color": "sky", + "label": "Meeting", + "value": "MEETING", + "position": 2 }, { - id: '224383b8-e2fb-4ccd-8b63-6ec929eb134c', - color: 'red', - label: 'Failed Insufficient Permissions', - value: 'FAILED_INSUFFICIENT_PERMISSIONS', - position: 4, + "id": "f92507db-1c45-496f-9647-ca3d9014d1f1", + "color": "turquoise", + "label": "Proposal", + "value": "PROPOSAL", + "position": 3 }, { - id: '9177a080-60f6-44cf-982a-9f6c40871588', - color: 'red', - label: 'Failed Unknown', - value: 'FAILED_UNKNOWN', - position: 5, - }, + "id": "ca5dea89-f5d5-42e2-b623-c43663338c0a", + "color": "yellow", + "label": "Customer", + "value": "CUSTOMER", + "position": 4 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '529b36bb-42d1-4361-ac0a-e683557cc879', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8d7cb56f-29f1-40ad-90cf-4497bee669a1', - type: 'SELECT', - name: 'contactAutoCreationPolicy', - label: 'Contact auto creation policy', - description: - 'Automatically create records for people you participated with in an event.', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'AS_PARTICIPANT_AND_ORGANIZER'", - options: [ + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f2b2e717-0c19-417c-b81a-98d95cadcc67", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Attachments linked to the opportunity", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0984e2b5-1ba8-46d8-ade2-11bf79f52557", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "f2b2e717-0c19-417c-b81a-98d95cadcc67", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "f84f5b1b-70b1-4d06-9093-d4be29917d3e", + "name": "opportunity" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "24a6beff-2f9f-4dd6-8d77-728080e72adb", + "type": "RELATION", + "name": "pointOfContact", + "label": "Point of Contact", + "description": "Opportunity point of contact", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "cdcedc94-c874-441c-a3ee-9d787cc67cce", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "24a6beff-2f9f-4dd6-8d77-728080e72adb", + "name": "pointOfContact" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "fd058bb2-7fee-4d8c-8cce-031cb50e7bfe", + "name": "pointOfContactForOpportunities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5defb8ea-aeae-4f30-a5de-86a67f285c8e", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "20d9ac99-1460-4382-ba48-1a2fd242b4f9", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "person", + "namePlural": "people", + "labelSingular": "Person", + "labelPlural": "People", + "description": "A person", + "icon": "IconUser", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "7da10df3-f210-421f-9003-533fe5a19dee", + "imageIdentifierFieldMetadataId": "4c3340cd-5177-41e3-a76a-12bd85f413b8", + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "88deeb4f-02da-4415-9b86-c706e1f9018f", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_UNIQUE_87914cd3ce963115f8cb943e2ac", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": true, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "c691cb88-ca83-418f-8b47-a0781ef6be3c", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_6a862a788ac6ce967afa06df812", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "d26f789a-9291-4e84-8e9e-4d8cb2cb0a8e", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "9733d9e6-cfea-45ca-b8e3-2368c72c6c22" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "f021ef99-96fc-46aa-8c92-0fea7900e780", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_bbd7aec1976fc684a0a5e4816c9", + "indexWhereClause": null, + "indexType": "GIN", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "d80aa4d1-5fbe-4921-8dda-b69d6fbe4a38", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "7b699b17-5d81-41cd-a16c-a9e678a6ab40" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjI5" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0dec9acf-ed41-4b67-8722-a16296bd79aa", + "type": "RELATION", + "name": "calendarEventParticipants", + "label": "Calendar Event Participants", + "description": "Calendar Event Participants", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "d0aca517-d1b2-4923-a374-65c899bf677d", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "0dec9acf-ed41-4b67-8722-a16296bd79aa", + "name": "calendarEventParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "af56ee43-5666-482f-a980-434fefac00c7", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "3ffb6e9f-600b-40bd-90b8-d042607b3c64", + "name": "person" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "561cbb88-39b8-47e2-9f48-6ed929f6ca2a", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Attachments linked to the contact.", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0a89048f-6e64-4a8d-ad24-51ab63af3a85", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "561cbb88-39b8-47e2-9f48-6ed929f6ca2a", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "144087ac-d621-4897-8172-14578d80a07b", + "name": "person" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b0200630-5587-4c10-b5ca-1d1344ee2343", + "type": "RELATION", + "name": "noteTargets", + "label": "Notes", + "description": "Notes tied to the contact", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "9eac5248-f58a-49d3-ab69-376c12f71680", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "b0200630-5587-4c10-b5ca-1d1344ee2343", + "name": "noteTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "nameSingular": "noteTarget", + "namePlural": "noteTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "63ae8928-a35e-4053-bf6c-ee548e3614c4", + "name": "person" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6eed0523-94de-4b4b-8c11-8173b1efbd84", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "81f8a863-1a7a-40ed-a6bc-c1217122a9e4", + "type": "RATING", + "name": "performanceRating", + "label": "Performance Rating", + "description": "Person's Performance Rating", + "icon": "IconStars", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.600Z", + "updatedAt": "2024-10-10T15:05:42.600Z", + "defaultValue": null, + "options": [ { - id: 'd8da75a6-19b3-4ecd-902c-72646a7d01a3', - color: 'green', - label: 'As Participant and Organizer', - value: 'AS_PARTICIPANT_AND_ORGANIZER', - position: 0, + "id": "1a96cbbe-4d42-4796-b1cc-d7d57f64af0d", + "label": "1", + "value": "RATING_1", + "position": 0 }, { - id: 'f5b362bf-5dd0-4742-894c-b9393dd97550', - color: 'orange', - label: 'As Participant', - value: 'AS_PARTICIPANT', - position: 1, + "id": "4357a50c-5ce4-4b21-b667-cf330053dd2b", + "label": "2", + "value": "RATING_2", + "position": 1 }, { - id: 'e3bd7054-2e28-453a-a21a-e2245858cae9', - color: 'blue', - label: 'As Organizer', - value: 'AS_ORGANIZER', - position: 2, + "id": "a884885a-1eba-4c22-84f2-28d4b60387af", + "label": "3", + "value": "RATING_3", + "position": 2 }, { - id: '3ef1eec3-ba71-4440-a700-012652a2b6e8', - color: 'red', - label: 'None', - value: 'NONE', - position: 3, + "id": "4336f387-6651-4be8-8c3d-5e4e21091087", + "label": "4", + "value": "RATING_4", + "position": 3 }, + { + "id": "b7a661cc-67b1-4c40-a8bf-bcab4912d086", + "label": "5", + "value": "RATING_5", + "position": 4 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c933e11e-7820-42e4-a589-389c2f314add', - type: 'RELATION', - name: 'connectedAccount', - label: 'Connected Account', - description: 'Connected Account', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '7fe521fe-1b22-4354-92ba-8164ce5c9b5d', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'c8993ad6-46d5-4ab0-88f5-d407625c0c75', - nameSingular: 'calendarChannel', - namePlural: 'calendarChannels', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'c933e11e-7820-42e4-a589-389c2f314add', - name: 'connectedAccount', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e90531b4-c0eb-454b-b246-b99c27e30d5d', - nameSingular: 'connectedAccount', - namePlural: 'connectedAccounts', - }, - targetFieldMetadata: { - __typename: 'field', - id: '919dadd4-8dda-479f-a8a7-b4ed89eafae5', - name: 'calendarChannels', - }, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "40d5dd09-08b0-4b6b-af56-2983d6437941", + "type": "TEXT", + "name": "city", + "label": "City", + "description": "Contact’s city", + "icon": "IconMap", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "418c54ba-a0da-4feb-8198-9287bf38e31c", + "type": "RELATION", + "name": "activityTargets", + "label": "Activities", + "description": "Activities tied to the contact", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "85634196-b66b-4921-b30f-c4e078b58926", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "418c54ba-a0da-4feb-8198-9287bf38e31c", + "name": "activityTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "54a9d278-cf83-4152-bdfb-f26245d39d65", + "name": "person" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2b4a6b30-b62d-4c77-a0ee-c4107d999451", + "type": "EMAILS", + "name": "emails", + "label": "Emails", + "description": "Contact’s Emails", + "icon": "IconMail", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "primaryEmail": "''", + "additionalEmails": null }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '01e23a9d-d8b7-47c6-a1f8-7e012ae9f54a', - type: 'DATE_TIME', - name: 'syncStageStartedAt', - label: 'Sync stage started at', - description: 'Sync stage started at', - icon: 'IconHistory', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9c5f7d31-5b5e-4af1-9918-859ce66b6c08', - type: 'SELECT', - name: 'syncStage', - label: 'Sync stage', - description: 'Sync stage', - icon: 'IconStatusChange', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'FULL_CALENDAR_EVENT_LIST_FETCH_PENDING'", - options: [ - { - id: '0eede3ef-23ee-49ff-8e08-39d85dc33558', - color: 'blue', - label: 'Full calendar event list fetch pending', - value: 'FULL_CALENDAR_EVENT_LIST_FETCH_PENDING', - position: 0, - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c502a91b-fde5-426b-aa27-a856ad28fc71", + "type": "RELATION", + "name": "messageParticipants", + "label": "Message Participants", + "description": "Message Participants", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "89f811eb-6211-4b53-bc32-1acf1241a5dd", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "c502a91b-fde5-426b-aa27-a856ad28fc71", + "name": "messageParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "6edf5dd8-ee31-42ec-80f9-728b01c50ff4", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8507c38d-6f90-4b15-afa1-19b749774092", + "name": "person" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b9d318fd-1f3c-45eb-afcc-1f0a4133e2a4", + "type": "MULTI_SELECT", + "name": "workPreference", + "label": "Work Preference", + "description": "Person's Work Preference", + "icon": "IconHome", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.497Z", + "updatedAt": "2024-10-10T15:05:42.497Z", + "defaultValue": null, + "options": [ { - id: 'b6c4a65e-df0e-40dc-a038-dcd7038ab32e', - color: 'blue', - label: 'Partial calendar event list fetch pending', - value: 'PARTIAL_CALENDAR_EVENT_LIST_FETCH_PENDING', - position: 1, + "id": "d93d744c-999d-44ce-b374-cedffe58a570", + "color": "green", + "label": "On-Site", + "value": "ON_SITE", + "position": 0 }, { - id: '5c7302cb-02e0-4335-be97-71b8571e0374', - color: 'orange', - label: 'Calendar event list fetch ongoing', - value: 'CALENDAR_EVENT_LIST_FETCH_ONGOING', - position: 2, + "id": "0c1c6f5c-e2ad-4330-9855-06982c930095", + "color": "turquoise", + "label": "Hybrid", + "value": "HYBRID", + "position": 1 }, { - id: 'e087a4ad-717a-40e6-9139-57b5aaab9fb9', - color: 'blue', - label: 'Calendar events import pending', - value: 'CALENDAR_EVENTS_IMPORT_PENDING', - position: 3, - }, - { - id: '2b18f762-4d31-40e1-b10b-e1a57f8fb54c', - color: 'orange', - label: 'Calendar events import ongoing', - value: 'CALENDAR_EVENTS_IMPORT_ONGOING', - position: 4, - }, + "id": "56ab2069-89ce-491e-8743-6260ad4e906c", + "color": "sky", + "label": "Remote Work", + "value": "REMOTE_WORK", + "position": 2 + } + ], + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "812d8e31-43da-429c-8189-391e7492e6f5", + "type": "PHONES", + "name": "whatsapp", + "label": "Whatsapp", + "description": "Contact's Whatsapp Number", + "icon": "IconBrandWhatsapp", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.397Z", + "updatedAt": "2024-10-10T15:05:42.397Z", + "defaultValue": [ { - id: '0fd50f39-d60f-47a7-a988-37948fdbbfaa', - color: 'red', - label: 'Failed', - value: 'FAILED', - position: 5, - }, + "additionalPhones": {}, + "primaryPhoneNumber": "", + "primaryPhoneCountryCode": "" + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0c81da27-4ff4-4bf4-8937-9a8ee627e46c', - type: 'NUMBER', - name: 'throttleFailureCount', - label: 'Throttle Failure Count', - description: 'Throttle Failure Count', - icon: 'IconX', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 0, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5c73b1cc-ddda-46a8-a517-f0bb5f0c5f60', - type: 'BOOLEAN', - name: 'isContactAutoCreationEnabled', - label: 'Is Contact Auto Creation Enabled', - description: 'Is Contact Auto Creation Enabled', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: true, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'b5cd74c7-a68f-4ccb-be66-24604d10a315', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '823a20db-9431-422c-b0a1-4f559b992651', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjQ=', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0cc37cbd-c7ce-4898-b34d-5da7736e7b54', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '537e956c-58bb-4ed4-8127-beb0f2d04dd2', - type: 'RELATION', - name: 'messages', - label: 'Messages', - description: 'Messages from the thread.', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '30c65174-8905-4a32-9239-c5659a1acc9e', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'b5cd74c7-a68f-4ccb-be66-24604d10a315', - nameSingular: 'messageThread', - namePlural: 'messageThreads', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '537e956c-58bb-4ed4-8127-beb0f2d04dd2', - name: 'messages', - }, - targetObjectMetadata: { - __typename: 'object', - id: '027b772b-3cca-4634-931e-23b82dda16c7', - nameSingular: 'message', - namePlural: 'messages', - }, - targetFieldMetadata: { - __typename: 'field', - id: '11f38fa4-e7b8-4275-b0b2-59688cb2eed8', - name: 'messageThread', - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9f20ae61-c8c6-40a9-b1c0-c4e1417affee", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Person record Position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f62802b9-ef34-4186-8db9-ab2d365aa51a", + "type": "ACTOR", + "name": "createdBy", + "label": "Created by", + "description": "The creator of the record", + "icon": "IconCreativeCommonsSa", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "name": "''", + "source": "'MANUAL'" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '728f4580-9220-4130-9a25-c56669ad0e43', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'fe0508ef-6e8e-4422-b822-67899af4aa58', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '823a20db-9431-422c-b0a1-4f559b992651', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'company', - namePlural: 'companies', - labelSingular: 'Company', - labelPlural: 'Companies', - description: 'A company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '3b52848e-e419-4361-8fbc-3d4ed19f1956', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjI3', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7011922c-2271-4960-81eb-b9f9ae3ae00c', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '37abc2ae-9f44-4bc0-8277-e3ddfd54738c', - type: 'RELATION', - name: 'people', - label: 'People', - description: 'People linked to the company.', - icon: 'IconUsers', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'd9add14d-13bd-4bb7-abab-06d4fdc78a3e', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '37abc2ae-9f44-4bc0-8277-e3ddfd54738c', - name: 'people', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - targetFieldMetadata: { - __typename: 'field', - id: '504f7e23-1476-422b-ac1d-5d86d3d33022', - name: 'company', - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7b699b17-5d81-41cd-a16c-a9e678a6ab40", + "type": "TS_VECTOR", + "name": "searchVector", + "label": "Search vector", + "description": "Field used for full-text search", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "60664773-e0eb-4376-8d17-543eca22b19d", + "type": "PHONES", + "name": "phones", + "label": "Phones", + "description": "Contact’s phone numbers", + "icon": "IconPhone", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "additionalPhones": null, + "primaryPhoneNumber": "''", + "primaryPhoneCountryCode": "''" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c264b8c8-1260-410b-aa34-d69b14bba19b', - type: 'LINKS', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - primaryLinkUrl: "''", - secondaryLinks: null, - primaryLinkLabel: "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "89da564c-2cb7-4ffa-9bfb-b067222d167c", + "type": "LINKS", + "name": "linkedinLink", + "label": "Linkedin", + "description": "Contact’s Linkedin account", + "icon": "IconBrandLinkedin", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "primaryLinkUrl": "''", + "secondaryLinks": null, + "primaryLinkLabel": "''" }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '73c7c0bc-a328-488f-b357-fd9dc332ab75', - type: 'BOOLEAN', - name: 'visaSponsorship', - label: 'Visa Sponsorship', - description: "Company's Visa Sponsorship Policy", - icon: 'IconBrandVisa', - isCustom: true, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:41.908Z', - updatedAt: '2024-09-25T13:45:41.908Z', - defaultValue: false, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b08a8600-2c4f-4e8a-8f32-6ffe7041e569', - type: 'ADDRESS', - name: 'address', - label: 'Address', - description: 'Address of the company', - icon: 'IconMap', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - addressLat: null, - addressLng: null, - addressCity: "''", - addressState: "''", - addressCountry: "''", - addressStreet1: "''", - addressStreet2: "''", - addressPostcode: "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fd058bb2-7fee-4d8c-8cce-031cb50e7bfe", + "type": "RELATION", + "name": "pointOfContactForOpportunities", + "label": "Linked Opportunities", + "description": "List of opportunities for which that person is the point of contact", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "cdcedc94-c874-441c-a3ee-9d787cc67cce", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "fd058bb2-7fee-4d8c-8cce-031cb50e7bfe", + "name": "pointOfContactForOpportunities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "24a6beff-2f9f-4dd6-8d77-728080e72adb", + "name": "pointOfContact" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "90040907-df23-4e64-a35e-b1f109b730b5", + "type": "TEXT", + "name": "jobTitle", + "label": "Job Title", + "description": "Contact’s job title", + "icon": "IconBriefcase", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4c3340cd-5177-41e3-a76a-12bd85f413b8", + "type": "TEXT", + "name": "avatarUrl", + "label": "Avatar", + "description": "Contact’s avatar", + "icon": "IconFileUpload", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "06a69687-dab0-4edd-ba1b-1e23c01ddd11", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '107fd869-fa4a-4ca5-b6b1-a918ec78851e', - type: 'POSITION', - name: 'position', - label: 'Position', - description: 'Company record position', - icon: 'IconHierarchy2', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2f0ab2d8-3cdf-49d1-a8be-ef204e871968', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9677b321-e8fc-4d1b-9d7f-145a5dea0001', - type: 'RELATION', - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the company', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '48f0a4f6-84e3-48e9-8444-72109a32f149', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '9677b321-e8fc-4d1b-9d7f-145a5dea0001', - name: 'favorites', - }, - targetObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - targetFieldMetadata: { - __typename: 'field', - id: '7155582f-4bbc-4643-be0c-38165b8a282f', - name: 'company', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7da10df3-f210-421f-9003-533fe5a19dee", + "type": "FULL_NAME", + "name": "name", + "label": "Name", + "description": "Contact’s name", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "lastName": "''", + "firstName": "''" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8a21fcb9-5ee7-498c-a09d-1d3137be0540', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '300545a5-6ca7-487a-8374-a662bab5d717', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e41f22fd-ecd5-4b28-a2ed-a04d2a017c19', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - amountMicros: null, - currencyCode: "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9733d9e6-cfea-45ca-b8e3-2368c72c6c22", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "80092f7e-405b-4a94-b767-cdf877b2ef41", + "type": "RELATION", + "name": "taskTargets", + "label": "Tasks", + "description": "Tasks tied to the contact", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7fd53175-abb0-470e-a394-9c1de590b24e", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "80092f7e-405b-4a94-b767-cdf877b2ef41", + "name": "taskTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "nameSingular": "taskTarget", + "namePlural": "taskTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "80b77505-9340-45f2-8c9e-931754da1192", + "name": "person" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "42052d18-6fab-4d08-bb69-667683392617", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the contact", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "033e99d2-7a1a-405c-950d-06031b93a773", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "42052d18-6fab-4d08-bb69-667683392617", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "7626da40-ddb4-4cbc-8554-441f9785ef5e", + "name": "person" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7d307698-eece-4e31-8c4c-7d5d596eb542", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "Contact’s company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "659373cb-ab85-4d36-aed2-58789be66d23", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "7d307698-eece-4e31-8c4c-7d5d596eb542", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "7fbd8d22-49a3-4c55-a80b-1876129eee86", + "name": "people" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "81bb2a30-e02d-48ff-925d-14a6c84d535c", + "type": "RELATION", + "name": "timelineActivities", + "label": "Events", + "description": "Events linked to the person", + "icon": "IconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "66a4759e-f5f3-4979-9891-f7c8c60143df", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "81bb2a30-e02d-48ff-925d-14a6c84d535c", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "ac01d46e-e6da-42d7-aa8b-16eb964485fa", + "name": "person" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "17fc5491-8def-413f-8f02-e1e70bcacbb2", + "type": "TEXT", + "name": "intro", + "label": "Intro", + "description": "Contact's Intro", + "icon": "IconNote", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.312Z", + "updatedAt": "2024-10-10T15:05:42.312Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1144f285-5116-49ac-91c1-347877888fcf", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '24cc7f7b-e8d3-4c12-a3c5-caa5ccf61523', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8421d3d3-d5ac-4065-a431-95780fda2ce7', - type: 'RELATION', - name: 'opportunities', - label: 'Opportunities', - description: 'Opportunities linked to the company.', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '06717b0b-194c-46e4-9394-f2ef37bdee90', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '8421d3d3-d5ac-4065-a431-95780fda2ce7', - name: 'opportunities', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'c859b99c-2554-483d-8ffe-4d29cb9c8459', - name: 'company', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "745f585b-7ac3-45c1-9d3a-c984f420c32a", + "type": "LINKS", + "name": "xLink", + "label": "X", + "description": "Contact’s X/Twitter account", + "icon": "IconBrandX", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "primaryLinkUrl": "''", + "secondaryLinks": null, + "primaryLinkLabel": "''" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2395970c-d0a2-43df-9f55-58299e930b34', - type: 'RELATION', - name: 'attachments', - label: 'Attachments', - description: 'Attachments linked to the company', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'ed757882-8668-407f-8fb8-314b68aa58f8', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '2395970c-d0a2-43df-9f55-58299e930b34', - name: 'attachments', - }, - targetObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - targetFieldMetadata: { - __typename: 'field', - id: '1433d739-29ed-450c-8216-6afea26d21fb', - name: 'company', - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1929a65e-2e30-4b56-8f85-5c18d9948b57", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "86139958-429c-4d36-80b6-a6faa4ed80ef", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "d019f884-cea1-4b6a-a1c7-cb75a63a8bb1", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_a98bc2277b52c6dd52303e52c21", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "766b1864-0ba4-4b3d-b8df-a35c81af7f35", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "a1c53a03-7e99-4d03-bab4-7c7f04f6790e" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "956842c7-621e-41a9-95de-8c68f16e3136", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "d9162917-c820-4002-8241-0de6ad5ad8d7" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "645073b7-e8e5-49de-8b3f-3f9720296159", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_84b1e01cb0480e514a6e7ec0095", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "ada56d55-9814-424e-83da-9b584ea0a94b", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "a1c53a03-7e99-4d03-bab4-7c7f04f6790e" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "98810481-bd9a-4ab1-bc2c-2c81e4880f50", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "e0415588-ce4c-4715-8027-73e4f59ce40b" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "6620b20c-e1c7-48c3-a949-4ddd7e121fd0", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_7e0d952730f13369e3bd9c2f1a9", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "d9ca91ee-6794-4c20-b691-74f0f4091e62", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "a1c53a03-7e99-4d03-bab4-7c7f04f6790e" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "f559be97-9dae-416c-99df-399a3196f84c", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "27af584b-7869-48cd-82bf-b7cea235cfbb" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "b0a44268-a8cc-4d34-b6ac-2c4f41daa993", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_a930d316a6b4f3b81d3f026dd16", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "d7209fa3-c69a-4999-9e19-ae7e7ceee1c0", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "ced82236-eddf-45f8-8378-6a84b285c8ba" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "0bb617e3-ede3-40d2-b4f6-617bba617132", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_b292fe34a9e2d55884febd07e93", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "173120ce-b190-45d5-9fe5-c2324268c4ed", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "a1c53a03-7e99-4d03-bab4-7c7f04f6790e" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "9876795c-3bdc-4f96-9500-a078d118117f", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "0af727ed-8edf-438f-ad53-b9b8b4af8bc1" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "68babc5a-ed9a-4b27-b2a9-b20224b46f9a", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_daf6592d1dff4cff3401bf23c67", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "7b157673-8b45-479e-a460-6dca57c36204", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "a1c53a03-7e99-4d03-bab4-7c7f04f6790e" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "3e40e0d6-d4c1-4a34-a9c1-df89ee8cd6d4", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "fe1628ec-c28d-4fcb-9e43-b9335be3ef81" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjIz" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a1c53a03-7e99-4d03-bab4-7c7f04f6790e", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3b52848e-e419-4361-8fbc-3d4ed19f1956', - type: 'TEXT', - name: 'name', - label: 'Name', - description: 'The company name', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5f23c37a-9971-4060-a861-19f030848b90', - type: 'LINKS', - name: 'xLink', - label: 'X', - description: 'The company Twitter/X account', - icon: 'IconBrandX', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - primaryLinkUrl: "''", - secondaryLinks: null, - primaryLinkLabel: "''", + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "58dbba6f-4a0c-4db7-883a-8a99618be069", + "type": "RELATION", + "name": "opportunity", + "label": "Opportunity", + "description": "Event opportunity", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0f840679-a025-4d20-9bc0-102e5865dda0", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "58dbba6f-4a0c-4db7-883a-8a99618be069", + "name": "opportunity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "d560e379-92da-454c-9f4a-1be6d5543816", + "name": "timelineActivities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3156baf4-4034-4c43-bba6-345807b15bc3", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c5103301-686a-4c1f-86d1-69e32a4a34ae', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '81907e01-90e3-412a-9aa5-9ae8352b679d', - type: 'ACTOR', - name: 'createdBy', - label: 'Created by', - description: 'The creator of the record', - icon: 'IconCreativeCommonsSa', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - name: "''", - source: "'MANUAL'", + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "93e24db5-c860-420d-90eb-782c3855a36d", + "type": "RELATION", + "name": "workspaceMember", + "label": "Workspace Member", + "description": "Event workspace member", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "5622d0fd-cbf2-4baa-8be9-bc5ea20d321b", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "93e24db5-c860-420d-90eb-782c3855a36d", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "6d033705-c48b-43e0-9cc1-5191c0f9ecd2", + "name": "timelineActivities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d9162917-c820-4002-8241-0de6ad5ad8d7", + "type": "UUID", + "name": "noteId", + "label": "Note id (foreign key)", + "description": "Event note id foreign key", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8376c21d-fd88-4006-b8d7-40d1f27692ac", + "type": "RELATION", + "name": "note", + "label": "Note", + "description": "Event note", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "49ad3d9a-01a3-4c82-b6bc-a8d21398e51a", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8376c21d-fd88-4006-b8d7-40d1f27692ac", + "name": "note" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "6a09bc08-33ae-4321-868a-30064279097f", + "nameSingular": "note", + "namePlural": "notes" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "325aafc9-525a-457e-9f67-15a8994bd6b8", + "name": "timelineActivities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2d6776a4-7f43-46a6-9fbf-cf1fa21cd13f", + "type": "DATE_TIME", + "name": "happensAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a8323586-5ff9-491c-a067-ae4a348adaf5", + "type": "TEXT", + "name": "linkedRecordCachedName", + "label": "Linked Record cached name", + "description": "Cached record name", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f4341a81-fcba-4480-a757-929635181162", + "type": "UUID", + "name": "rocketId", + "label": "Rocket ID (foreign key)", + "description": "Timeline Activity Rocket id foreign key", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.708Z", + "updatedAt": "2024-10-10T15:05:42.708Z", + "defaultValue": null, + "options": null, + "settings": { + "isForeignKey": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f8393bb6-05c2-44d7-bff8-4a7671b43f15', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'b8909cf8-5b9d-4512-8fdf-d6fc4b450191', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'f8393bb6-05c2-44d7-bff8-4a7671b43f15', - name: 'timelineActivities', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '145c8790-abd1-49fb-9857-650da78c6717', - name: 'company', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "86139958-429c-4d36-80b6-a6faa4ed80ef", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "41761644-f778-43cb-a5d8-80286d7dee8c", + "type": "TEXT", + "name": "name", + "label": "Event name", + "description": "Event name", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fe1628ec-c28d-4fcb-9e43-b9335be3ef81", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7d14aef8-f63c-47cd-8ce7-29806518d6ca", + "type": "RELATION", + "name": "rocket", + "label": "Rocket", + "description": "Timeline Activity Rocket", + "icon": "IconTimeline", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.709Z", + "updatedAt": "2024-10-10T15:05:42.709Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "f8ddd621-26f4-4fa8-b426-3f545094bd5f", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "7d14aef8-f63c-47cd-8ce7-29806518d6ca", + "name": "rocket" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "baea02d1-1817-4df3-b9eb-c8020452f3e0", + "name": "timelineActivities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5096824c-bd72-488b-902e-e5768070e736", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "Event company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0f9bad06-3762-4797-9079-d7d190da55e5", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "5096824c-bd72-488b-902e-e5768070e736", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "50c723e9-af8c-455e-a9c6-0dbd591b0258", + "name": "timelineActivities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e0415588-ce4c-4715-8027-73e4f59ce40b", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4e1bab9b-3855-42c5-b0ea-7fcc119949fe", + "type": "UUID", + "name": "linkedObjectMetadataId", + "label": "Linked Object Metadata Id", + "description": "inked Object Metadata Id", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ced82236-eddf-45f8-8378-6a84b285c8ba", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "49b48088-8d98-4d8d-a9a8-c4f8f462aa72", + "type": "RELATION", + "name": "task", + "label": "Task", + "description": "Event task", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "e940e46a-ab1a-4e0c-82a4-1af978adcc2c", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "49b48088-8d98-4d8d-a9a8-c4f8f462aa72", + "name": "task" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "nameSingular": "task", + "namePlural": "tasks" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "77726d5f-43e6-4011-952a-d9585dc14597", + "name": "timelineActivities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ac01d46e-e6da-42d7-aa8b-16eb964485fa", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "Event person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "66a4759e-f5f3-4979-9891-f7c8c60143df", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "ac01d46e-e6da-42d7-aa8b-16eb964485fa", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "81bb2a30-e02d-48ff-925d-14a6c84d535c", + "name": "timelineActivities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c1522e3e-e03f-43d3-971c-af60e584ca7a", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4882e808-7cd2-487f-911f-ab2d9353e60d', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '39f43faa-8471-4440-88d5-d6bc2c8e49fd', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '4882e808-7cd2-487f-911f-ab2d9353e60d', - name: 'accountOwner', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'bb548a08-0706-4021-833d-e527c23e2a48', - name: 'accountOwnerForCompanies', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1a313c5f-8fbe-4986-9d1c-933e9ed4053c", + "type": "RAW_JSON", + "name": "properties", + "label": "Event details", + "description": "Json value for event details", + "icon": "IconListDetails", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0af727ed-8edf-438f-ad53-b9b8b4af8bc1", + "type": "UUID", + "name": "taskId", + "label": "Task id (foreign key)", + "description": "Event task id foreign key", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0a5469c0-341b-4085-bc79-a75bae50a278", + "type": "UUID", + "name": "linkedRecordId", + "label": "Linked Record id", + "description": "Linked Record id", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "27af584b-7869-48cd-82bf-b7cea235cfbb", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "af56ee43-5666-482f-a980-434fefac00c7", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "cfcd1013-a7a8-492d-acbe-c5266baed6cd", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "6c2da5c4-b0b0-41d1-967b-7dfc0fac7a06", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_0da422bbe7adbabb8144c696ebd", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "8ffd767f-2987-402f-8a27-13245a019583", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "5434e1fa-b089-4dd2-ba71-230ec323236f" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "8c3e1ee1-755e-4984-8ee0-15468d599b5f", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_dd22aee9059fd7002165df6d8cc", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "8de5e4bc-53ba-44ee-821c-d4ec87ef7997", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "af004cd3-1b68-41be-a50a-6e406c979968" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "914d1b2f-2ff6-40ad-94fe-e64b4eda1dae", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_2bf094726f6d91639302c1c143d", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "6d19cbcf-1260-4188-a3bb-dd6360f89851", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "ab0136fe-6d3a-469a-81ef-a3c5f4426226" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "0de99eff-7da0-4dbd-a5be-823464ed6522", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "af004cd3-1b68-41be-a50a-6e406c979968" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEz" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3c4d9816-97f2-4528-ab9b-47013dd6fa12", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a8cf3568-4d04-43cf-b8c2-2070a7eb0e4e', - type: 'MULTI_SELECT', - name: 'workPolicy', - label: 'Work Policy', - description: "Company's Work Policy", - icon: 'IconHome', - isCustom: true, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:41.780Z', - updatedAt: '2024-09-25T13:45:41.780Z', - defaultValue: null, - options: [ + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "733e467e-f258-4d83-aa99-2db4674a9c10", + "type": "SELECT", + "name": "responseStatus", + "label": "Response Status", + "description": "Response Status", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'NEEDS_ACTION'", + "options": [ { - id: '3d8e885e-9481-41f3-b90e-1264020e731e', - color: 'green', - label: 'On-Site', - value: 'ON_SITE', - position: 0, + "id": "f42abc88-10a8-4e85-8beb-22c099372e83", + "color": "orange", + "label": "Needs Action", + "value": "NEEDS_ACTION", + "position": 0 }, { - id: '8b05941b-9ed0-4f76-a97c-6647d0d54976', - color: 'turquoise', - label: 'Hybrid', - value: 'HYBRID', - position: 1, + "id": "4ba52cef-ccdb-4e62-a811-6f7db31fb836", + "color": "red", + "label": "Declined", + "value": "DECLINED", + "position": 1 }, { - id: '97561fec-643d-4477-a6ae-f213b86a047d', - color: 'sky', - label: 'Remote Work', - value: 'REMOTE_WORK', - position: 2, + "id": "790aa598-64bc-4be7-a1f1-c87380fbcc36", + "color": "yellow", + "label": "Tentative", + "value": "TENTATIVE", + "position": 2 }, + { + "id": "777111bf-a14a-4e36-9626-647c75978155", + "color": "green", + "label": "Accepted", + "value": "ACCEPTED", + "position": 3 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd69eb854-c043-43d9-a40e-65a0649fd1a9', - type: 'RELATION', - name: 'taskTargets', - label: 'Tasks', - description: 'Tasks tied to the company', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '309200d8-c547-47a7-82a5-25915056db15', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'd69eb854-c043-43d9-a40e-65a0649fd1a9', - name: 'taskTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'cd7f57e8-a67f-4be9-a971-b5609cb0fb83', - name: 'company', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '531c4b2e-94a0-46f4-9395-277c3239413d', - type: 'RELATION', - name: 'noteTargets', - label: 'Notes', - description: 'Notes tied to the company', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '706df621-2977-49c9-a05f-38a6d4389011', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '531c4b2e-94a0-46f4-9395-277c3239413d', - name: 'noteTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '4b6aaf36-4247-4bbb-b26d-64987b02f805', - name: 'company', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'de10d71e-4cfa-4322-b967-761871e69bc0', - type: 'LINKS', - name: 'introVideo', - label: 'Intro Video', - description: "Company's Intro Video", - icon: 'IconVideo', - isCustom: true, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:41.643Z', - updatedAt: '2024-09-25T13:45:41.643Z', - defaultValue: { - primaryLinkUrl: "''", - secondaryLinks: null, - primaryLinkLabel: "''", - }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e2e632fe-1c08-4c12-9aba-88f8595bf5be', - type: 'RELATION', - name: 'activityTargets', - label: 'Activities', - description: 'Activities tied to the company', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '08d38bf1-1b43-416a-915d-1d5718a829a7', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'e2e632fe-1c08-4c12-9aba-88f8595bf5be', - name: 'activityTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'e1d06322-0658-4c45-9c9b-8a42750c8751', - name: 'company', - }, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "77115ac7-f8d1-486f-9c8d-020532f996c1", + "type": "TEXT", + "name": "displayName", + "label": "Display Name", + "description": "Display Name", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "409c079f-742a-4bf5-a710-c782544fa21b", + "type": "RELATION", + "name": "workspaceMember", + "label": "Workspace Member", + "description": "Workspace Member", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "15a3fcda-90b1-4599-a31c-bd0807184401", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "af56ee43-5666-482f-a980-434fefac00c7", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "409c079f-742a-4bf5-a710-c782544fa21b", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "e167ca8f-66e1-4d49-8a2f-eb8c96c2285d", + "name": "calendarEventParticipants" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f75ef0a1-23d5-4504-8ccf-5729806d14b5", + "type": "RELATION", + "name": "calendarEvent", + "label": "Event ID", + "description": "Event ID", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "cd9d90ae-65c2-49b4-ac70-76335498e9f1", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "af56ee43-5666-482f-a980-434fefac00c7", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "f75ef0a1-23d5-4504-8ccf-5729806d14b5", + "name": "calendarEvent" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "981fd8a9-37a2-4742-98c1-08509d995bd3", + "nameSingular": "calendarEvent", + "namePlural": "calendarEvents" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "db316e57-6812-40b7-8c9f-e85f0f492ca8", + "name": "calendarEventParticipants" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cfcd1013-a7a8-492d-acbe-c5266baed6cd", + "type": "TEXT", + "name": "handle", + "label": "Handle", + "description": "Handle", + "icon": "IconMail", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "af004cd3-1b68-41be-a50a-6e406c979968", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '16838104-8adf-45a3-93bf-e97551240b66', - type: 'LINKS', - name: 'linkedinLink', - label: 'Linkedin', - description: 'The company Linkedin account', - icon: 'IconBrandLinkedin', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - primaryLinkUrl: "''", - secondaryLinks: null, - primaryLinkLabel: "''", + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f3a2d134-0b23-4bc6-a857-cbaeb85a54d8", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ab0136fe-6d3a-469a-81ef-a3c5f4426226", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3ffb6e9f-600b-40bd-90b8-d042607b3c64", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "Person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "d0aca517-d1b2-4923-a374-65c899bf677d", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "af56ee43-5666-482f-a980-434fefac00c7", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "3ffb6e9f-600b-40bd-90b8-d042607b3c64", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "0dec9acf-ed41-4b67-8722-a16296bd79aa", + "name": "calendarEventParticipants" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "57fa6b52-2169-4ecf-ab1a-6c5a5983dbb4", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '195db745-305e-40f0-b740-d071c5c19214', - type: 'TEXT', - name: 'tagline', - label: 'Tagline', - description: "Company's Tagline", - icon: 'IconAdCircle', - isCustom: true, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:41.458Z', - updatedAt: '2024-09-25T13:45:41.458Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2d8e886a-3ebf-474c-8c7a-909e9d7fcc6f', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: false, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5434e1fa-b089-4dd2-ba71-230ec323236f", + "type": "UUID", + "name": "personId", + "label": "Person id (foreign key)", + "description": "Person id foreign key", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "40d7bc5e-2d27-4fb4-afd8-99434799e144", + "type": "BOOLEAN", + "name": "isOrganizer", + "label": "Is Organizer", + "description": "Is Organizer", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": false, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f5a2f8c3-aff4-484e-9dc6-5a649031dc5f", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '97548143-02cb-4372-8e0e-416793d65a38', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '8505bc8b-e978-401a-8983-f1f1e64aa26d', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjg=', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "981fd8a9-37a2-4742-98c1-08509d995bd3", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "49a3400e-e71f-40cb-86b0-bfa8d2ef02ca", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjE3" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c496110c-239a-4dd4-bdbd-022ca4fdc62c', - type: 'RELATION', - name: 'calendarEvent', - label: 'Event ID', - description: 'Event ID', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '81106456-6209-4373-b7fd-e1ed6b6c26a5', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '97548143-02cb-4372-8e0e-416793d65a38', - nameSingular: 'calendarChannelEventAssociation', - namePlural: 'calendarChannelEventAssociations', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'c496110c-239a-4dd4-bdbd-022ca4fdc62c', - name: 'calendarEvent', - }, - targetObjectMetadata: { - __typename: 'object', - id: '75c685e2-f612-415f-a81c-6ca8eda30c8d', - nameSingular: 'calendarEvent', - namePlural: 'calendarEvents', - }, - targetFieldMetadata: { - __typename: 'field', - id: '52db308a-e428-4efd-95ed-2b0e19cbdc92', - name: 'calendarChannelEventAssociations', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9d659849-ffbb-4550-9590-e6fa9967b586", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8505bc8b-e978-401a-8983-f1f1e64aa26d', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '18e21e78-56c2-492a-8082-f1e8ceb72e14', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b61d8723-b739-42b6-b23d-b82e09b34669', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '97a0be23-ba2e-4af3-8503-d4c27c293a37', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '906e35f2-e2d1-45d5-8326-cb7712a19e60', - type: 'RELATION', - name: 'calendarChannel', - label: 'Channel ID', - description: 'Channel ID', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'da686bc9-04d2-4665-b0ce-2bfa306c1087', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '97548143-02cb-4372-8e0e-416793d65a38', - nameSingular: 'calendarChannelEventAssociation', - namePlural: 'calendarChannelEventAssociations', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '906e35f2-e2d1-45d5-8326-cb7712a19e60', - name: 'calendarChannel', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'c8993ad6-46d5-4ab0-88f5-d407625c0c75', - nameSingular: 'calendarChannel', - namePlural: 'calendarChannels', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'd1596020-b595-4bf9-b3c1-782f9b49f41b', - name: 'calendarChannelEventAssociations', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2d337999-7468-4f6f-bce0-87679dcb5e2f", + "type": "RELATION", + "name": "calendarChannelEventAssociations", + "label": "Calendar Channel Event Associations", + "description": "Calendar Channel Event Associations", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "daa269f7-c111-492e-88c8-1bfe82e3d637", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "981fd8a9-37a2-4742-98c1-08509d995bd3", + "nameSingular": "calendarEvent", + "namePlural": "calendarEvents" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "2d337999-7468-4f6f-bce0-87679dcb5e2f", + "name": "calendarChannelEventAssociations" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "149f1a0d-f528-48a3-a3f8-0203926d07f5", + "nameSingular": "calendarChannelEventAssociation", + "namePlural": "calendarChannelEventAssociations" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "1dc48a6a-270b-466a-8e11-9efd02729791", + "name": "calendarEvent" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d83e0bfc-1879-4a13-92b1-e639f58b2d20", + "type": "TEXT", + "name": "description", + "label": "Description", + "description": "Description", + "icon": "IconFileDescription", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9dcd16f4-35f6-4cd3-b13a-6d9f18d6ef3c", + "type": "TEXT", + "name": "conferenceSolution", + "label": "Conference Solution", + "description": "Conference Solution", + "icon": "IconScreenShare", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0500721b-4273-4d6b-be4c-3458ac521ef5", + "type": "BOOLEAN", + "name": "isFullDay", + "label": "Is Full Day", + "description": "Is Full Day", + "icon": "Icon24Hours", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": false, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "747dc06a-73f3-43cc-ac03-6195edd77034", + "type": "DATE_TIME", + "name": "startsAt", + "label": "Start Date", + "description": "Start Date", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d2e9755f-4593-452b-b3c0-8debd51153d6", + "type": "TEXT", + "name": "iCalUID", + "label": "iCal UID", + "description": "iCal UID", + "icon": "IconKey", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "db316e57-6812-40b7-8c9f-e85f0f492ca8", + "type": "RELATION", + "name": "calendarEventParticipants", + "label": "Event Participants", + "description": "Event Participants", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "cd9d90ae-65c2-49b4-ac70-76335498e9f1", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "981fd8a9-37a2-4742-98c1-08509d995bd3", + "nameSingular": "calendarEvent", + "namePlural": "calendarEvents" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "db316e57-6812-40b7-8c9f-e85f0f492ca8", + "name": "calendarEventParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "af56ee43-5666-482f-a980-434fefac00c7", + "nameSingular": "calendarEventParticipant", + "namePlural": "calendarEventParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "f75ef0a1-23d5-4504-8ccf-5729806d14b5", + "name": "calendarEvent" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c7a5ce10-8ca8-40ec-a989-45cb53475d4a", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "82922b98-0f27-421a-8b70-0b845fc827e7", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'aa298945-e331-40de-a6db-855b58b99d05', - type: 'TEXT', - name: 'eventExternalId', - label: 'Event external ID', - description: 'Event external ID', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0ec16ef5-2331-4a1e-b429-0e4fc3d9576f', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2c765e90-ce86-4f6b-a528-94e38b5aaf54', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6edaa2aa-617d-4f54-906e-885682bd6d1c", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "918e7bcf-0afb-4857-9b35-ec307ccfb1ac", + "type": "DATE_TIME", + "name": "externalCreatedAt", + "label": "Creation DateTime", + "description": "Creation DateTime", + "icon": "IconCalendarPlus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "02e208a0-45cc-429b-ba83-32406e20cb2e", + "type": "DATE_TIME", + "name": "endsAt", + "label": "End Date", + "description": "End Date", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c0383d68-3275-4827-9350-f7a117869e16", + "type": "LINKS", + "name": "conferenceLink", + "label": "Meet Link", + "description": "Meet Link", + "icon": "IconLink", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "primaryLinkUrl": "''", + "secondaryLinks": null, + "primaryLinkLabel": "''" + }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7bbecfaa-b414-40b7-b72e-e5285ff61818", + "type": "BOOLEAN", + "name": "isCanceled", + "label": "Is canceled", + "description": "Is canceled", + "icon": "IconCalendarCancel", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": false, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7a6164bc-0594-40de-94b6-b79065dadaca", + "type": "TEXT", + "name": "location", + "label": "Location", + "description": "Location", + "icon": "IconMapPin", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "49a3400e-e71f-40cb-86b0-bfa8d2ef02ca", + "type": "TEXT", + "name": "title", + "label": "Title", + "description": "Title", + "icon": "IconH1", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ba5611be-cafc-41bb-bdfc-a4881b6adb25", + "type": "DATE_TIME", + "name": "externalUpdatedAt", + "label": "Update DateTime", + "description": "Update DateTime", + "icon": "IconCalendarCog", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '82209518-55fb-4fbd-acdd-f7c5a9d587f4', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '78eec6b7-ab9c-4dee-ac64-2b9e40b467f6', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjY=', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '78eec6b7-ab9c-4dee-ac64-2b9e40b467f6', - type: 'TEXT', - name: 'name', - label: 'Name', - description: 'ApiKey name', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd2653ce4-585b-4a38-9e09-4ae8e2afae51', - type: 'DATE_TIME', - name: 'expiresAt', - label: 'Expiration date', - description: 'ApiKey expiration date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9e5cd8cb-e800-4b25-a9e6-cfb6d51623c6', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '68704d45-b248-4e41-a07b-21d5874663bb', - type: 'DATE_TIME', - name: 'revokedAt', - label: 'Revocation date', - description: 'ApiKey revocation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '77ef9f04-627b-4708-b400-076629ed9f20', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dc4892f0-a890-4a49-90ae-5a7999665785', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bbe022a1-426f-40c2-ad1d-8294ef127c0b', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - ], + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "92b529f1-b82b-4352-a0d5-18f32f8e47ab", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "c6b9967f-3bf3-4de8-a0f7-1a5d8404068f", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "f45f65e3-0387-4af1-be3e-162dc3c77a62", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_c3af632ce35236d21f8ae1f4cfd", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "98488b85-c958-4fa4-9f8b-5b0387eee9e8", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "7365f80a-9b92-4aeb-81aa-0a25be7f0e97" + } + } + ] + } + } + } + ] }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'favorite', - namePlural: 'favorites', - labelSingular: 'Favorite', - labelPlural: 'Favorites', - description: 'A favorite', - icon: 'IconHeart', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'a1555234-ff28-4a04-871c-31008b39e442', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjIy', + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjIw" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9d2499b3-403c-473f-b61f-61bbea97afeb', - type: 'UUID', - name: 'noteId', - label: 'Note id (foreign key)', - description: 'Favorite note id foreign key', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0d232853-5ae9-43f3-ac4a-248c50e2a64e', - type: 'UUID', - name: 'taskId', - label: 'Task id (foreign key)', - description: 'Favorite task id foreign key', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8e506212-1b66-4981-95d6-f0ac83f5d869', - type: 'RELATION', - name: 'person', - label: 'Person', - description: 'Favorite person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '001dae2b-80e6-4e2d-b5fe-ee0349e940d7', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '8e506212-1b66-4981-95d6-f0ac83f5d869', - name: 'person', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'c188f5b7-2259-4207-87d2-5232ec775029', - name: 'favorites', + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4a315b5d-ec77-47cf-9467-cc3d86328f02", + "type": "RELATION", + "name": "connectedAccount", + "label": "Connected Account", + "description": "Connected Account", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "4b072b41-d4e4-4bb0-b64b-51b17887b5a3", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "92b529f1-b82b-4352-a0d5-18f32f8e47ab", + "nameSingular": "messageChannel", + "namePlural": "messageChannels" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "4a315b5d-ec77-47cf-9467-cc3d86328f02", + "name": "connectedAccount" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d828bda6-68e2-47f0-b0aa-b810b1f33981", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "7036df84-657d-4e56-bb7b-48a8c72df2be", + "name": "messageChannels" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b38ce87f-490e-4787-b665-096ca83ea9d7", + "type": "DATE_TIME", + "name": "syncStageStartedAt", + "label": "Sync stage started at", + "description": "Sync stage started at", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "df4c1a6b-ed46-4ca5-baf7-6f0fb053e1bf", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2db95ca6-4d28-46a1-aef8-7e947244bf17", + "type": "SELECT", + "name": "type", + "label": "Type", + "description": "Channel Type", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'email'", + "options": [ + { + "id": "dda1da8b-785f-4d7f-8f42-8e9f48c3ba7d", + "color": "green", + "label": "Email", + "value": "email", + "position": 0 }, + { + "id": "72d3ec38-a442-442b-bea8-34252a14769b", + "color": "blue", + "label": "SMS", + "value": "sms", + "position": 1 + } + ], + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "58657610-ed68-4735-933e-390cfa3b448a", + "type": "TEXT", + "name": "syncCursor", + "label": "Last sync cursor", + "description": "Last sync cursor", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "18c6892b-8723-41fd-b414-5fbd14e59fd4", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dc005581-351b-4fa0-9b39-da5bbe2554b7', - type: 'RELATION', - name: 'task', - label: 'Task', - description: 'Favorite task', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'c349fbab-ecda-4dd6-bf3f-b60a4118db25', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'dc005581-351b-4fa0-9b39-da5bbe2554b7', - name: 'task', - }, - targetObjectMetadata: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - nameSingular: 'task', - namePlural: 'tasks', - }, - targetFieldMetadata: { - __typename: 'field', - id: '1d53ad9c-bdf4-4660-b4b6-e79162d13c39', - name: 'favorites', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c6b9967f-3bf3-4de8-a0f7-1a5d8404068f", + "type": "TEXT", + "name": "handle", + "label": "Handle", + "description": "Handle", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6a0dc17c-504f-4f37-b423-7e4a806b89df", + "type": "BOOLEAN", + "name": "excludeNonProfessionalEmails", + "label": "Exclude non professional emails", + "description": "Exclude non professional emails", + "icon": "IconBriefcase", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": true, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5e01dcbf-ed18-43e9-a2d0-ee3286d9d0bf", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "79232ac7-685b-4591-978c-7ce86bd10aec", + "type": "BOOLEAN", + "name": "isContactAutoCreationEnabled", + "label": "Is Contact Auto Creation Enabled", + "description": "Is Contact Auto Creation Enabled", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": true, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7365f80a-9b92-4aeb-81aa-0a25be7f0e97", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '86e97af0-ec16-4937-b5b6-e4531027be82', - type: 'UUID', - name: 'rocketId', - label: 'Rocket ID (foreign key)', - description: 'Favorite Rocket id foreign key', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.584Z', - updatedAt: '2024-09-25T13:45:42.584Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c33a0768-3f55-4c7b-aa1a-07aeacf3fb85', - type: 'UUID', - name: 'viewId', - label: 'View id (foreign key)', - description: 'Favorite view id foreign key', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'afc385d4-22d1-4f83-a67a-46450df368e9', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '90a28b04-0214-424f-afad-172b7cd28073', - type: 'UUID', - name: 'workflowId', - label: 'Workflow id (foreign key)', - description: 'Favorite workflow id foreign key', - icon: 'IconSettingsAutomation', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6a245087-243d-450b-9f00-c951d417d4ef', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '14e0bf40-d4eb-4893-a5f2-3df3ce749996', - 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: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0ecb3679-5ff7-4b55-9ed3-9927bc9e184b', - type: 'RELATION', - name: 'note', - label: 'Note', - description: 'Favorite note', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'aeec4288-a886-4c86-8f42-1be726bd4fb4', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '0ecb3679-5ff7-4b55-9ed3-9927bc9e184b', - name: 'note', - }, - targetObjectMetadata: { - __typename: 'object', - id: '1e1abbd5-5b66-4ddc-bbf8-d049802bb93e', - nameSingular: 'note', - namePlural: 'notes', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'f115229b-f5b3-4623-ac80-f8bf3df5e077', - name: 'favorites', + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "90648e68-2f7c-4d0c-ab8a-79e6eec769ee", + "type": "RELATION", + "name": "messageChannelMessageAssociations", + "label": "Message Channel Association", + "description": "Messages from the channel.", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "612d689f-eb0d-4e6b-b72e-82acb8ae76e2", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "92b529f1-b82b-4352-a0d5-18f32f8e47ab", + "nameSingular": "messageChannel", + "namePlural": "messageChannels" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "90648e68-2f7c-4d0c-ab8a-79e6eec769ee", + "name": "messageChannelMessageAssociations" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "631882fd-28e8-4a87-8ceb-f8217006a620", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "aac54567-521e-4fe8-a0bc-116f2aabf592", + "name": "messageChannel" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ee91dcdd-90d4-4258-9575-cf5a49c2c67c", + "type": "BOOLEAN", + "name": "excludeGroupEmails", + "label": "Exclude group emails", + "description": "Exclude group emails", + "icon": "IconUsersGroup", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": true, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b5da4f14-5aca-4311-bf0c-06a0678388a1", + "type": "BOOLEAN", + "name": "isSyncEnabled", + "label": "Is Sync Enabled", + "description": "Is Sync Enabled", + "icon": "IconRefresh", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": true, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3b99363d-b465-47ee-b7d6-8f9776c5aa84", + "type": "SELECT", + "name": "visibility", + "label": "Visibility", + "description": "Visibility", + "icon": "IconEyeglass", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'SHARE_EVERYTHING'", + "options": [ + { + "id": "ab451f3e-e3c0-4695-bcdb-f4e1d4d80d9a", + "color": "green", + "label": "Metadata", + "value": "METADATA", + "position": 0 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3a561744-45bd-45a6-af94-bfb4d4f508fe', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '46ff8942-360f-4837-9a83-007739c8ba05', - type: 'RELATION', - name: 'view', - label: 'View', - description: 'Favorite view', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'a081c61b-9c8f-4e93-820e-a6c11cb51950', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '46ff8942-360f-4837-9a83-007739c8ba05', - name: 'view', - }, - targetObjectMetadata: { - __typename: 'object', - id: '020d393a-d6ba-431e-945c-174f5dceec6b', - nameSingular: 'view', - namePlural: 'views', - }, - targetFieldMetadata: { - __typename: 'field', - id: '61fe3c78-ab04-4a83-9a40-8560f7285abe', - name: 'favorites', + { + "id": "9b543bcd-1a4d-4daf-ac80-1bf6a10451e8", + "color": "blue", + "label": "Subject", + "value": "SUBJECT", + "position": 1 }, + { + "id": "036d2ea4-5333-4131-9c07-6f59796388f3", + "color": "orange", + "label": "Share Everything", + "value": "SHARE_EVERYTHING", + "position": 2 + } + ], + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2547a346-f71c-4f28-a7fd-6181ac26ea98", + "type": "NUMBER", + "name": "throttleFailureCount", + "label": "Throttle Failure Count", + "description": "Throttle Failure Count", + "icon": "IconX", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": 0, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9b7e0a88-b635-4ce3-a401-0bd9429aec84", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6e104959-9dfb-42a7-80da-0ddb0dab12f9', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f112f2a8-4f21-454d-b3a7-fcd85f0eab72', - type: 'NUMBER', - name: 'position', - label: 'Position', - description: 'Favorite position', - icon: 'IconList', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 0, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e4102fb0-c6e3-47e8-a810-71e0b6453705', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a1555234-ff28-4a04-871c-31008b39e442', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '10509b5e-71c0-49e8-9cb8-d0ff7ee8691b', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'eed525bd-edf3-4030-9f09-8ff68226a6a0', - type: 'RELATION', - name: 'workflow', - label: 'Workflow', - description: 'Favorite workflow', - icon: 'IconSettingsAutomation', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '892e8ce6-83f8-4dbd-8c0d-eb5bb7db71f6', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'eed525bd-edf3-4030-9f09-8ff68226a6a0', - name: 'workflow', - }, - targetObjectMetadata: { - __typename: 'object', - id: '470b50d2-333a-4897-92cb-181d4883a0f3', - nameSingular: 'workflow', - namePlural: 'workflows', - }, - targetFieldMetadata: { - __typename: 'field', - id: '141281c7-5b28-41d4-99bd-31c1e4c88e9b', - name: 'favorites', + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6cc31dce-2ad0-443f-b4ba-54f2fdf11bb3", + "type": "SELECT", + "name": "contactAutoCreationPolicy", + "label": "Contact auto creation policy", + "description": "Automatically create People records when receiving or sending emails", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'SENT'", + "options": [ + { + "id": "631a81c3-ac67-48c7-879f-f09e17696387", + "color": "green", + "label": "Sent and Received", + "value": "SENT_AND_RECEIVED", + "position": 0 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5b559e4c-eb75-4a1e-b904-a486d2328b24', - type: 'RELATION', - name: 'workspaceMember', - label: 'Workspace Member', - description: 'Favorite workspace member', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '4549947d-17e5-497b-898e-cf42e1ad3d99', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '5b559e4c-eb75-4a1e-b904-a486d2328b24', - name: 'workspaceMember', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'ac76a0ff-f5c1-4127-b354-0b3ce2b3696b', - name: 'favorites', + { + "id": "229a6e5b-3299-4b75-ada7-7512be411ba5", + "color": "blue", + "label": "Sent", + "value": "SENT", + "position": 1 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7155582f-4bbc-4643-be0c-38165b8a282f', - type: 'RELATION', - name: 'company', - label: 'Company', - description: 'Favorite company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '48f0a4f6-84e3-48e9-8444-72109a32f149', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '7155582f-4bbc-4643-be0c-38165b8a282f', - name: 'company', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - targetFieldMetadata: { - __typename: 'field', - id: '9677b321-e8fc-4d1b-9d7f-145a5dea0001', - name: 'favorites', + { + "id": "9cc86698-3cc4-439e-b1db-c7f3fcb57039", + "color": "red", + "label": "None", + "value": "NONE", + "position": 2 + } + ], + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "01f7fe00-ee96-4c2e-a7e8-568cf750ee1e", + "type": "DATE_TIME", + "name": "syncedAt", + "label": "Last sync date", + "description": "Last sync date", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7ebfb686-ecb8-422b-b0e0-f657876f54ae", + "type": "SELECT", + "name": "syncStatus", + "label": "Sync status", + "description": "Sync status", + "icon": "IconStatusChange", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": [ + { + "id": "0401fe59-2ba4-4fb7-987f-f034cc320dc0", + "color": "yellow", + "label": "Ongoing", + "value": "ONGOING", + "position": 1 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '11e6c0a0-e1fa-4931-a705-8725a79afe24', - type: 'RELATION', - name: 'rocket', - label: 'Rocket', - description: 'Favorite Rocket', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.587Z', - updatedAt: '2024-09-25T13:45:42.587Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '2d9dcc60-3d44-4ea4-ac02-146fdbdeac22', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '11e6c0a0-e1fa-4931-a705-8725a79afe24', - name: 'rocket', - }, - targetObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '79da64bc-eea3-476e-801b-f08c86a8c337', - name: 'favorites', + { + "id": "39e83b69-9c92-40dc-9d56-108c0cc503df", + "color": "blue", + "label": "Not Synced", + "value": "NOT_SYNCED", + "position": 2 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1d3858e1-e4aa-484f-b422-8bbefa9409c8', - type: 'RELATION', - name: 'opportunity', - label: 'Opportunity', - description: 'Favorite opportunity', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'aeb1d35c-771a-4226-a11a-4dbe1228fa7c', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '1d3858e1-e4aa-484f-b422-8bbefa9409c8', - name: 'opportunity', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '5d3ca5b4-9468-4061-8c6b-ef03a9b123df', - name: 'favorites', + { + "id": "9add7229-e120-492f-bb55-2331213d816e", + "color": "green", + "label": "Active", + "value": "ACTIVE", + "position": 3 }, - }, - }, - }, - ], - }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '7610fd21-9f3e-44d2-bdf9-f30e442ead53', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'comment', - namePlural: 'comments', - labelSingular: 'Comment', - labelPlural: 'Comments', - description: 'A comment', - icon: 'IconMessageCircle', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '8f985123-68d4-4e8a-b75b-85a75f0f071e', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjg=', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '974ab999-a946-409f-820c-aa2e2c21f3ce', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '70a9b04f-0d11-41a1-bce8-e7ac8bb0ed5d', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'da1dda8a-b7b6-4166-b11b-740a8414706b', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3b07941b-15b6-4468-8e2f-52abf7ff36b3', - type: 'TEXT', - name: 'body', - label: 'Body', - description: 'Comment body', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8f985123-68d4-4e8a-b75b-85a75f0f071e', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e48bc6a2-211c-46aa-9f22-1859aedac28e', - type: 'RELATION', - name: 'activity', - label: 'Activity', - description: 'Comment activity', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'a3bdce1c-b0a8-4961-8a06-b7dc8355e879', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '7610fd21-9f3e-44d2-bdf9-f30e442ead53', - nameSingular: 'comment', - namePlural: 'comments', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'e48bc6a2-211c-46aa-9f22-1859aedac28e', - name: 'activity', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - nameSingular: 'activity', - namePlural: 'activities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '0f1cfe74-f960-44f9-91f3-fc9d25a4b96b', - name: 'comments', + { + "id": "2f387da6-5621-4a98-a393-2afbb6dca0cc", + "color": "red", + "label": "Failed Insufficient Permissions", + "value": "FAILED_INSUFFICIENT_PERMISSIONS", + "position": 4 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c39eb95c-2e9f-4fd3-abc3-103986dd21bb', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '571e3b8c-0c80-4292-93b1-c73b4d976b05', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b1ead0df-5b1c-4c00-b0c5-05a67ec37327', - type: 'RELATION', - name: 'author', - label: 'Author', - description: 'Comment author', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '00facee3-c07f-443c-8eca-4a8f4d8bec0d', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '7610fd21-9f3e-44d2-bdf9-f30e442ead53', - nameSingular: 'comment', - namePlural: 'comments', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'b1ead0df-5b1c-4c00-b0c5-05a67ec37327', - name: 'author', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'f74a56bf-9230-4452-b6a0-099ba9f7de0d', - name: 'authoredComments', + { + "id": "e7ae1d24-0d7b-47bf-b9f5-37c58f339b19", + "color": "red", + "label": "Failed Unknown", + "value": "FAILED_UNKNOWN", + "position": 5 + } + ], + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6b5d2d3d-7f2c-473c-a480-72f0118a94fe", + "type": "SELECT", + "name": "syncStage", + "label": "Sync stage", + "description": "Sync stage", + "icon": "IconStatusChange", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'FULL_MESSAGE_LIST_FETCH_PENDING'", + "options": [ + { + "id": "a1249249-c073-4722-9959-9080e9f280e8", + "color": "blue", + "label": "Full messages list fetch pending", + "value": "FULL_MESSAGE_LIST_FETCH_PENDING", + "position": 0 }, - }, - }, - }, - ], - }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '75c685e2-f612-415f-a81c-6ca8eda30c8d', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '45bd7c28-f450-4487-a556-1fd85be68beb', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE4', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0c1f5af5-c2d5-4f38-9fd4-6ce854e693d3', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f06f5946-e54f-458d-9c77-47d6d8fbd995', - type: 'DATE_TIME', - name: 'endsAt', - label: 'End Date', - description: 'End Date', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bc8be6a6-4707-498a-9e79-8ffb86e92a43', - type: 'RELATION', - name: 'calendarEventParticipants', - label: 'Event Participants', - description: 'Event Participants', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '089a99c0-0893-4288-ad62-ac723007a426', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '75c685e2-f612-415f-a81c-6ca8eda30c8d', - nameSingular: 'calendarEvent', - namePlural: 'calendarEvents', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'bc8be6a6-4707-498a-9e79-8ffb86e92a43', - name: 'calendarEventParticipants', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'd2ea4c05-34cd-4c7c-9215-d044c9c92522', - nameSingular: 'calendarEventParticipant', - namePlural: 'calendarEventParticipants', - }, - targetFieldMetadata: { - __typename: 'field', - id: '597d153f-8724-4d61-8863-8bfae905721f', - name: 'calendarEvent', + { + "id": "4ce4e92c-a3e2-43ae-a1bf-c99fd6e58155", + "color": "blue", + "label": "Partial messages list fetch pending", + "value": "PARTIAL_MESSAGE_LIST_FETCH_PENDING", + "position": 1 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6bfac067-9c6c-4b4d-bdaf-ecf7737b2599', - type: 'TEXT', - name: 'iCalUID', - label: 'iCal UID', - description: 'iCal UID', - icon: 'IconKey', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '45bd7c28-f450-4487-a556-1fd85be68beb', - type: 'TEXT', - name: 'title', - label: 'Title', - description: 'Title', - icon: 'IconH1', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '52d1ed74-b3d5-4339-b408-6f4c8dbc3969', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4078641f-c8b4-418c-9e7a-0bfdc411c4d9', - type: 'DATE_TIME', - name: 'externalUpdatedAt', - label: 'Update DateTime', - description: 'Update DateTime', - icon: 'IconCalendarCog', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ae4f8ff1-47f1-4b84-b61b-c519c939a409', - type: 'TEXT', - name: 'conferenceSolution', - label: 'Conference Solution', - description: 'Conference Solution', - icon: 'IconScreenShare', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a77794e2-adea-40cb-a0f9-a91a6d4494ed', - type: 'DATE_TIME', - name: 'startsAt', - label: 'Start Date', - description: 'Start Date', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '62d6a06b-0083-4702-be85-edd6ca882816', - type: 'TEXT', - name: 'location', - label: 'Location', - description: 'Location', - icon: 'IconMapPin', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c0ed400f-b0cf-4fe1-a929-89698dc020a5', - type: 'DATE_TIME', - name: 'externalCreatedAt', - label: 'Creation DateTime', - description: 'Creation DateTime', - icon: 'IconCalendarPlus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'da0d1cc9-be28-4b41-9ddf-48041702024b', - type: 'TEXT', - name: 'description', - label: 'Description', - description: 'Description', - icon: 'IconFileDescription', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '52db308a-e428-4efd-95ed-2b0e19cbdc92', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '81106456-6209-4373-b7fd-e1ed6b6c26a5', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '75c685e2-f612-415f-a81c-6ca8eda30c8d', - nameSingular: 'calendarEvent', - namePlural: 'calendarEvents', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '52db308a-e428-4efd-95ed-2b0e19cbdc92', - name: 'calendarChannelEventAssociations', - }, - targetObjectMetadata: { - __typename: 'object', - id: '97548143-02cb-4372-8e0e-416793d65a38', - nameSingular: 'calendarChannelEventAssociation', - namePlural: 'calendarChannelEventAssociations', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'c496110c-239a-4dd4-bdbd-022ca4fdc62c', - name: 'calendarEvent', + { + "id": "2953ac47-534a-49e3-9c78-4577db774dd0", + "color": "orange", + "label": "Messages list fetch ongoing", + "value": "MESSAGE_LIST_FETCH_ONGOING", + "position": 2 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '63904769-6145-4230-b294-c4554c36a273', - type: 'BOOLEAN', - name: 'isCanceled', - label: 'Is canceled', - description: 'Is canceled', - icon: 'IconCalendarCancel', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: false, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '48fac512-a780-4c44-b1dc-f178bd8ab3f8', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1ba833a8-68ca-4396-b3ed-9a7411e1dc4f', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3050381d-7191-4d18-be27-9a92cbefb57a', - type: 'LINKS', - name: 'conferenceLink', - label: 'Meet Link', - description: 'Meet Link', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - primaryLinkUrl: "''", - secondaryLinks: null, - primaryLinkLabel: "''", - }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b6cf9c5d-e923-4026-9316-c3a513ce7c12', - type: 'BOOLEAN', - name: 'isFullDay', - label: 'Is Full Day', - description: 'Is Full Day', - icon: 'Icon24Hours', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: false, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + { + "id": "7518c99f-9d8d-4a94-b747-e527e4579dbe", + "color": "blue", + "label": "Messages import pending", + "value": "MESSAGES_IMPORT_PENDING", + "position": 3 + }, + { + "id": "98ace89b-8b49-4e7a-8d75-d8a4b9648c51", + "color": "orange", + "label": "Messages import ongoing", + "value": "MESSAGES_IMPORT_ONGOING", + "position": 4 + }, + { + "id": "89909514-399d-41c7-97c0-260f087a3a56", + "color": "red", + "label": "Failed", + "value": "FAILED", + "position": 5 + } + ], + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'a1ffe54a-6b76-47fa-bd25-df479a31eee2', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjI1', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "8cceadc4-de6b-4ecf-8324-82c6b4eec077", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "72762a31-80cf-45cf-bc6c-49609d4c940e", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "e342f766-c2f8-4ad5-8c91-c2a5bca9590f", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_3465c79448bacd2f1268e5f6310", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "352f65a9-6b7e-4b12-a29a-d9b9800297d9", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "1b7e194e-4b39-40ab-a91c-eb06cf6d6ddc" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "3e73f944-1df9-4e7c-9ceb-13a6add8fe23", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "41fef682-fda8-488a-baa6-a58e38d5b71a" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjE3" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ac76a0ff-f5c1-4127-b354-0b3ce2b3696b', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '4549947d-17e5-497b-898e-cf42e1ad3d99', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'ac76a0ff-f5c1-4127-b354-0b3ce2b3696b', - name: 'favorites', - }, - targetObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - targetFieldMetadata: { - __typename: 'field', - id: '5b559e4c-eb75-4a1e-b904-a486d2328b24', - name: 'workspaceMember', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e32f7a81-d208-4c14-afb4-a4befc938670', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'bd41ada4-a132-4297-8f7f-e622a090f243', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'e32f7a81-d208-4c14-afb4-a4befc938670', - name: 'assignedActivities', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - nameSingular: 'activity', - namePlural: 'activities', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'dd5354bb-dd0a-4426-ac75-87e9ab171dc4', - name: 'assignee', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '85df4525-aed1-4e46-b718-b5bc963da41d', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '07071415-1159-4913-9dee-81b8f9b8cdb4', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '85df4525-aed1-4e46-b718-b5bc963da41d', - name: 'auditLogs', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'cd90b6c9-4f22-4c62-a107-dc396e5396ed', - nameSingular: 'auditLog', - namePlural: 'auditLogs', - }, - targetFieldMetadata: { - __typename: 'field', - id: '3d6dc314-877d-4aaa-88bd-364dc50f780b', - name: 'workspaceMember', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a1ffe54a-6b76-47fa-bd25-df479a31eee2', - type: 'FULL_NAME', - name: 'name', - label: 'Name', - description: 'Workspace member name', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - lastName: "''", - firstName: "''", + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e9781587-1419-4700-bc53-ed815b69d169", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7370da8c-294f-4671-91e5-7f87f4dccc1e', - type: 'RELATION', - name: 'calendarEventParticipants', - label: 'Calendar Event Participants', - description: 'Calendar Event Participants', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'd23fa3d8-e4ce-4cc9-a949-cafbd231d563', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '7370da8c-294f-4671-91e5-7f87f4dccc1e', - name: 'calendarEventParticipants', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'd2ea4c05-34cd-4c7c-9215-d044c9c92522', - nameSingular: 'calendarEventParticipant', - namePlural: 'calendarEventParticipants', - }, - targetFieldMetadata: { - __typename: 'field', - id: '30fd4e8a-2089-4443-ac06-5cd53d9a3fcf', - name: 'workspaceMember', + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1acd47f7-2ddf-434a-876a-683f602dcfbd", + "type": "SELECT", + "name": "syncStatus", + "label": "Sync status", + "description": "Sync status", + "icon": "IconStatusChange", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": [ + { + "id": "2a678cd8-8077-4fc0-bc7e-68dfd9d58668", + "color": "yellow", + "label": "Ongoing", + "value": "ONGOING", + "position": 1 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '13531c23-42ca-4b1e-a6e3-3fcfad74a3e9', - type: 'RELATION', - name: 'connectedAccounts', - label: 'Connected accounts', - description: 'Connected accounts', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'ee186212-93d2-4f15-b74c-c703bedbd396', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '13531c23-42ca-4b1e-a6e3-3fcfad74a3e9', - name: 'connectedAccounts', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e90531b4-c0eb-454b-b246-b99c27e30d5d', - nameSingular: 'connectedAccount', - namePlural: 'connectedAccounts', - }, - targetFieldMetadata: { - __typename: 'field', - id: '236195db-49d1-4386-99b9-4518ab7586f2', - name: 'accountOwner', + { + "id": "142f711d-95ba-4707-9e83-209c50d93e85", + "color": "blue", + "label": "Not Synced", + "value": "NOT_SYNCED", + "position": 2 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a5fc2711-0e3d-40ac-938a-8beafeac1f57', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'db084a18-152f-4ea9-967e-69a45f2d24ab', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'a5fc2711-0e3d-40ac-938a-8beafeac1f57', - name: 'timelineActivities', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '137a88ef-9c08-414c-adcc-2d450624acf8', - name: 'workspaceMember', + { + "id": "bac0648b-9b3b-4bce-b59c-bc5afedd2012", + "color": "green", + "label": "Active", + "value": "ACTIVE", + "position": 3 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bb548a08-0706-4021-833d-e527c23e2a48', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '39f43faa-8471-4440-88d5-d6bc2c8e49fd', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'bb548a08-0706-4021-833d-e527c23e2a48', - name: 'accountOwnerForCompanies', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - targetFieldMetadata: { - __typename: 'field', - id: '4882e808-7cd2-487f-911f-ab2d9353e60d', - name: 'accountOwner', + { + "id": "365a2ee9-e467-4cd9-b74f-045c2b832560", + "color": "red", + "label": "Failed Insufficient Permissions", + "value": "FAILED_INSUFFICIENT_PERMISSIONS", + "position": 4 }, + { + "id": "a372985e-5404-45ce-9265-510552007505", + "color": "red", + "label": "Failed Unknown", + "value": "FAILED_UNKNOWN", + "position": 5 + } + ], + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6689ffa2-6e50-4a72-8574-3e91469976b6", + "type": "NUMBER", + "name": "throttleFailureCount", + "label": "Throttle Failure Count", + "description": "Throttle Failure Count", + "icon": "IconX", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": 0, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "72ea3e4e-79c9-40ff-b83d-e413d86d7781", + "type": "DATE_TIME", + "name": "syncStageStartedAt", + "label": "Sync stage started at", + "description": "Sync stage started at", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "72b79103-2228-4530-8481-68504790bfcd", + "type": "BOOLEAN", + "name": "isContactAutoCreationEnabled", + "label": "Is Contact Auto Creation Enabled", + "description": "Is Contact Auto Creation Enabled", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": true, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1b7e194e-4b39-40ab-a91c-eb06cf6d6ddc", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'fc4f41c0-01ea-428d-9e0c-e2496acc765b', - type: 'TEXT', - name: 'avatarUrl', - label: 'Avatar Url', - description: 'Workspace member avatar', - icon: 'IconFileUpload', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f74a56bf-9230-4452-b6a0-099ba9f7de0d', - type: 'RELATION', - name: 'authoredComments', - label: 'Authored comments', - description: 'Authored comments', - icon: 'IconComment', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '00facee3-c07f-443c-8eca-4a8f4d8bec0d', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'f74a56bf-9230-4452-b6a0-099ba9f7de0d', - name: 'authoredComments', - }, - targetObjectMetadata: { - __typename: 'object', - id: '7610fd21-9f3e-44d2-bdf9-f30e442ead53', - nameSingular: 'comment', - namePlural: 'comments', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'b1ead0df-5b1c-4c00-b0c5-05a67ec37327', - name: 'author', + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "674a0bad-ff98-40d2-a711-47a92d7b3a46", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6c212aec-f637-4abc-84e4-9328ec4f454a", + "type": "BOOLEAN", + "name": "isSyncEnabled", + "label": "Is Sync Enabled", + "description": "Is Sync Enabled", + "icon": "IconRefresh", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": true, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2d3cece4-46f8-4b2d-bff7-381591429995", + "type": "SELECT", + "name": "visibility", + "label": "Visibility", + "description": "Visibility", + "icon": "IconEyeglass", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'SHARE_EVERYTHING'", + "options": [ + { + "id": "0fd14471-aa1c-4637-91a6-0917614dfe35", + "color": "green", + "label": "Metadata", + "value": "METADATA", + "position": 0 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e2895a0d-0e4f-4673-a778-2b99cac1ab20', - type: 'UUID', - name: 'userId', - label: 'User Id', - description: 'Associated User Id', - icon: 'IconCircleUsers', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4cceec11-98cc-41c6-b08c-b04887a0ac22', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1dc4eef9-d576-4106-b19e-2fc91777470d', - type: 'TEXT', - name: 'timeZone', - label: 'Time zone', - description: 'User time zone', - icon: 'IconTimezone', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'system'", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2f548d63-6cf6-4116-ae5a-03fcc35ffd1d', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6cc143e8-f88a-4d75-a52c-d5c7f7419d97', - type: 'SELECT', - name: 'timeFormat', - label: 'Time format', - description: "User's preferred time format", - icon: 'IconClock2', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'SYSTEM'", - options: [ { - id: '1dd82256-aaf1-4ff7-b720-90d1fd15bcdd', - color: 'sky', - label: 'System', - value: 'SYSTEM', - position: 0, + "id": "b95b0238-fdb2-4b63-8b3f-908a156cb6ee", + "color": "orange", + "label": "Share Everything", + "value": "SHARE_EVERYTHING", + "position": 1 + } + ], + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c845dede-582d-47c8-a631-34862f5e9c87", + "type": "DATE_TIME", + "name": "syncedAt", + "label": "Last sync date", + "description": "Last sync date", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "75fba4a8-ddf9-46e3-a6f0-4da74d180dc4", + "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": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fe2812bf-cf28-4ab1-9c52-1e8598224947", + "type": "RELATION", + "name": "connectedAccount", + "label": "Connected Account", + "description": "Connected Account", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "38ead7c5-b8c5-40a1-9db4-088a93b3c798", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "8cceadc4-de6b-4ecf-8324-82c6b4eec077", + "nameSingular": "calendarChannel", + "namePlural": "calendarChannels" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "fe2812bf-cf28-4ab1-9c52-1e8598224947", + "name": "connectedAccount" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d828bda6-68e2-47f0-b0aa-b810b1f33981", + "nameSingular": "connectedAccount", + "namePlural": "connectedAccounts" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "44aa8b95-c247-4507-bf76-17ff3449b4cb", + "name": "calendarChannels" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7ec1ea5f-c98f-4569-91ef-8797294cf183", + "type": "RELATION", + "name": "calendarChannelEventAssociations", + "label": "Calendar Channel Event Associations", + "description": "Calendar Channel Event Associations", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "c040d959-808f-4b7d-8844-ac87a45c0b04", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "8cceadc4-de6b-4ecf-8324-82c6b4eec077", + "nameSingular": "calendarChannel", + "namePlural": "calendarChannels" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "7ec1ea5f-c98f-4569-91ef-8797294cf183", + "name": "calendarChannelEventAssociations" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "149f1a0d-f528-48a3-a3f8-0203926d07f5", + "nameSingular": "calendarChannelEventAssociation", + "namePlural": "calendarChannelEventAssociations" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "5d68a9e6-9e85-4ae4-8601-43e685dcf90b", + "name": "calendarChannel" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "41fef682-fda8-488a-baa6-a58e38d5b71a", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "eeb8bb8b-85b7-46f8-a434-ab35704f1afa", + "type": "SELECT", + "name": "contactAutoCreationPolicy", + "label": "Contact auto creation policy", + "description": "Automatically create records for people you participated with in an event.", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'AS_PARTICIPANT_AND_ORGANIZER'", + "options": [ + { + "id": "6632b738-012f-4841-ac54-7bc6593cd551", + "color": "green", + "label": "As Participant and Organizer", + "value": "AS_PARTICIPANT_AND_ORGANIZER", + "position": 0 }, { - id: '3f2efae9-372a-4b46-9fba-4dae9ead2c7a', - color: 'red', - label: '24HRS', - value: 'HOUR_24', - position: 1, + "id": "c0b6918d-925c-4f80-a900-c374833e2c40", + "color": "orange", + "label": "As Participant", + "value": "AS_PARTICIPANT", + "position": 1 }, { - id: '77bb9aa5-2afe-4501-92c7-5527c457e59d', - color: 'purple', - label: '12HRS', - value: 'HOUR_12', - position: 2, + "id": "639ded55-04c3-4068-b340-ad8eb6137cee", + "color": "blue", + "label": "As Organizer", + "value": "AS_ORGANIZER", + "position": 2 }, + { + "id": "2493394c-ca24-4600-8caf-fff75eae583a", + "color": "red", + "label": "None", + "value": "NONE", + "position": 3 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b9f4e812-721f-4c83-9f1e-42b79042d905', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '12e6ccfa-23ef-4b68-a043-6012bc7b9c67', - type: 'TEXT', - name: 'locale', - label: 'Language', - description: 'Preferred language', - icon: 'IconLanguage', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'en'", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b75d64ca-eb86-439d-ad61-3f23efec07e4', - type: 'TEXT', - name: 'userEmail', - label: 'User Email', - description: 'Related user email address', - icon: 'IconMail', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dd63010d-24f1-4e62-9b49-b4728bb3bd81', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f173a8e9-af79-4377-9b21-5cb1ca27bc87', - type: 'TEXT', - name: 'colorScheme', - label: 'Color Scheme', - description: 'Preferred color scheme', - icon: 'IconColorSwatch', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'Light'", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f76b3faa-0bc6-45ed-9654-0421171a1f1a', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'dd13169a-0cc9-44c1-9e12-4d66e31dcfc0', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'f76b3faa-0bc6-45ed-9654-0421171a1f1a', - name: 'authoredActivities', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - nameSingular: 'activity', - namePlural: 'activities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '3e63dfad-08ba-422f-88e5-0c1ebffd6496', - name: 'author', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c5df2d21-5db8-4e72-82bf-aeb3ec984ca9', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '58c1c703-990d-4296-a410-a5420209b106', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'c5df2d21-5db8-4e72-82bf-aeb3ec984ca9', - name: 'authoredAttachments', - }, - targetObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'd9a80298-6f72-4b2f-a859-2bd355d36735', - name: 'author', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd82db237-ca6d-4bee-8d69-dfa0f753707b', - type: 'RELATION', - name: 'messageParticipants', - label: 'Message Participants', - description: 'Message Participants', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'fa25f857-7b30-4cd7-87c6-7910bde2d050', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'd82db237-ca6d-4bee-8d69-dfa0f753707b', - name: 'messageParticipants', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'ed425cdd-b5c8-4a35-8294-d3486a0c6149', - nameSingular: 'messageParticipant', - namePlural: 'messageParticipants', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'd205df4f-f9de-4f61-9a85-40f340a4de23', - name: 'workspaceMember', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e64fef03-fda1-4b5c-8894-d1bee725e7e2', - type: 'RELATION', - name: 'blocklist', - label: 'Blocklist', - description: 'Blocklisted handles', - icon: 'IconForbid2', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'd0a8b3ba-9219-40d6-957c-3e8d5d656d3a', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'e64fef03-fda1-4b5c-8894-d1bee725e7e2', - name: 'blocklist', - }, - targetObjectMetadata: { - __typename: 'object', - id: '522136fb-741c-4b3b-b44a-b20b62352b47', - nameSingular: 'blocklist', - namePlural: 'blocklists', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'f966b379-0438-4b9c-8696-3edf18c197f7', - name: 'workspaceMember', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3653df1b-5687-45c1-a2bf-afc261fe85a8', - type: 'RELATION', - name: 'assignedTasks', - label: 'Assigned tasks', - description: 'Tasks assigned to the workspace member', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'fe131172-06fc-4057-b1d0-c23dc5f030b9', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '3653df1b-5687-45c1-a2bf-afc261fe85a8', - name: 'assignedTasks', - }, - targetObjectMetadata: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - nameSingular: 'task', - namePlural: 'tasks', - }, - targetFieldMetadata: { - __typename: 'field', - id: '7a062a59-07da-4d2d-a0e8-f79f87e2e5e3', - name: 'assignee', + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5b646ee9-aa3d-41ff-b786-3f9cfad7ee12", + "type": "SELECT", + "name": "syncStage", + "label": "Sync stage", + "description": "Sync stage", + "icon": "IconStatusChange", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'FULL_CALENDAR_EVENT_LIST_FETCH_PENDING'", + "options": [ + { + "id": "9ddbe48c-b6b5-4582-8079-b97ab459dc05", + "color": "blue", + "label": "Full calendar event list fetch pending", + "value": "FULL_CALENDAR_EVENT_LIST_FETCH_PENDING", + "position": 0 }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '18a0276f-ce5e-4fc7-81fc-c32f6dd844f3', - type: 'SELECT', - name: 'dateFormat', - label: 'Date format', - description: "User's preferred date format", - icon: 'IconCalendarEvent', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'SYSTEM'", - options: [ { - id: 'bfb45c9c-2ac1-4504-9e92-7bd8e75fdd16', - color: 'turquoise', - label: 'System', - value: 'SYSTEM', - position: 0, + "id": "b632a8f0-ab5d-4c39-954e-4b0a5b7bce35", + "color": "blue", + "label": "Partial calendar event list fetch pending", + "value": "PARTIAL_CALENDAR_EVENT_LIST_FETCH_PENDING", + "position": 1 }, { - id: 'df73e5f4-9269-4034-aeca-cfb69682a09d', - color: 'red', - label: 'Month First', - value: 'MONTH_FIRST', - position: 1, + "id": "9591ff35-9a14-4f04-b25c-482d84f57e6a", + "color": "orange", + "label": "Calendar event list fetch ongoing", + "value": "CALENDAR_EVENT_LIST_FETCH_ONGOING", + "position": 2 }, { - id: 'c3b8caaa-87e0-4836-b13e-ab0613dcc44f', - color: 'purple', - label: 'Day First', - value: 'DAY_FIRST', - position: 2, + "id": "f64e01f4-de1e-4b2c-99ee-31f649b65dcd", + "color": "blue", + "label": "Calendar events import pending", + "value": "CALENDAR_EVENTS_IMPORT_PENDING", + "position": 3 }, { - id: '2aabe048-b8c0-4b63-a733-a8bc293231aa', - color: 'sky', - label: 'Year First', - value: 'YEAR_FIRST', - position: 3, + "id": "c56a146f-88fe-4676-a69f-5b22e75c8376", + "color": "orange", + "label": "Calendar events import ongoing", + "value": "CALENDAR_EVENTS_IMPORT_ONGOING", + "position": 4 }, + { + "id": "084344f8-fa0c-45a2-ac45-0526b9afc004", + "color": "red", + "label": "Failed", + "value": "FAILED", + "position": 5 + } ], - relationDefinition: null, - }, - }, - ], - }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '6f69be9e-d899-4e40-bf15-0c8194e6a934', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'workflowEventListener', - namePlural: 'workflowEventListeners', - labelSingular: 'WorkflowEventListener', - labelPlural: 'WorkflowEventListeners', - description: 'A workflow event listener', - icon: null, - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'd26efc67-251a-4bdd-a585-177717e298a6', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjY=', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f58f100f-8ee9-4a0c-8f35-8bdcb561d586', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a3740f53-215a-477d-82be-b57265731d83', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '67dbcf4d-f15b-4703-ba84-4bc2b9903579', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd26efc67-251a-4bdd-a585-177717e298a6', - type: 'TEXT', - name: 'eventName', - label: 'Name', - description: 'The workflow event listener name', - icon: 'IconPhoneCheck', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c8d7ed48-3d0e-47fa-a4af-5a62e578c128', - type: 'UUID', - name: 'workflowId', - label: 'Workflow id (foreign key)', - description: - 'WorkflowEventListener workflow id foreign key', - icon: 'IconSettingsAutomation', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a424fba4-d3f4-41b1-bf9a-4b809ad628a9', - type: 'RELATION', - name: 'workflow', - label: 'Workflow', - description: 'WorkflowEventListener workflow', - icon: 'IconSettingsAutomation', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '1353dcd5-92ce-4947-8156-c1de74eaf54b', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '6f69be9e-d899-4e40-bf15-0c8194e6a934', - nameSingular: 'workflowEventListener', - namePlural: 'workflowEventListeners', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'a424fba4-d3f4-41b1-bf9a-4b809ad628a9', - name: 'workflow', - }, - targetObjectMetadata: { - __typename: 'object', - id: '470b50d2-333a-4897-92cb-181d4883a0f3', - nameSingular: 'workflow', - namePlural: 'workflows', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'b14865e9-26a6-4ae8-930d-d22c21c7696c', - name: 'eventListeners', - }, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "72762a31-80cf-45cf-bc6c-49609d4c940e", + "type": "TEXT", + "name": "handle", + "label": "Handle", + "description": "Handle", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6a3003ce-1041-451b-8e66-f69d9b0dd2ab", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'aabd6970-7bf9-488b-8411-5bc654574d58', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '69c8b455-e982-4fd2-965b-7bd5206cb860', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '959d36dc-493b-4e08-ae3d-38680bab1d0d', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjk=', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ee4d98d0-37a4-42cc-8794-653099d4df54', - type: 'BOOLEAN', - name: 'isVisible', - label: 'Visible', - description: 'View Field visibility', - icon: 'IconEye', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: true, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '643509ce-5666-4264-8b09-f095e23a1624', - type: 'NUMBER', - name: 'position', - label: 'Position', - description: 'View Field position', - icon: 'IconList', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 0, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c672e744-21f3-4d23-abd8-fcc03fad503a', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '49e8ada7-3a80-49c7-869a-3ebfdae35387', - type: 'NUMBER', - name: 'size', - label: 'Size', - description: 'View Field size', - icon: 'IconEye', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 0, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dd7510e1-4f22-4376-8436-19d7d631ea77', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f74ba2c1-22ab-4827-85ad-d2dbbe2a9b51', - type: 'RELATION', - name: 'view', - label: 'View', - description: 'View Field related view', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '76c82afe-f2bd-4a86-9c7f-4e7fa3918b1b', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '69c8b455-e982-4fd2-965b-7bd5206cb860', - nameSingular: 'viewField', - namePlural: 'viewFields', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'f74ba2c1-22ab-4827-85ad-d2dbbe2a9b51', - name: 'view', - }, - targetObjectMetadata: { - __typename: 'object', - id: '020d393a-d6ba-431e-945c-174f5dceec6b', - nameSingular: 'view', - namePlural: 'views', - }, - targetFieldMetadata: { - __typename: 'field', - id: '027418ee-6028-456f-a570-0b032d35b07f', - name: 'viewFields', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '959d36dc-493b-4e08-ae3d-38680bab1d0d', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '300b7bf6-e1fa-4cd2-a601-7a125b7bf1b8', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0f7acd2a-ccd1-437e-b80a-bf4555a7c034', - type: 'UUID', - name: 'fieldMetadataId', - label: 'Field Metadata Id', - description: 'View Field target field', - icon: 'IconTag', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '217be100-e82e-4aae-9566-b091823a5466', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - ], + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "8ae98b12-2ef6-4c20-adc6-240857dd7343", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "blocklist", + "namePlural": "blocklists", + "labelSingular": "Blocklist", + "labelPlural": "Blocklists", + "description": "Blocklist", + "icon": "IconForbid2", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "50f7918f-c677-4e34-baae-3012e3b6d5a8", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "7a223e05-f418-496a-b258-1df57a7c4acf", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_76a190ab8a6f439791358d63d60", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "8e1db228-ee1a-455f-a00d-b32d69aeb309", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "fd3f4444-1951-4869-a25c-f6198d9d37a2" + } + } + ] + } + } + } + ] }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '6987128d-cf7d-45eb-9bcc-19a406b774ec', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'e4f8f882-dec2-4d6b-a141-936e87d3fd27', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjc=', + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjY=" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '330a6b96-c7eb-41ae-962e-eb528dc16aaf', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '45fe30a3-141f-4908-be8b-b826f84edb75', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7924f4d6-c92b-436f-a86d-26b2dcc521aa', - type: 'TEXT', - name: 'direction', - label: 'Direction', - description: 'View Sort direction', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'asc'", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'fc34ddd1-7f8a-4f23-a2b6-9a6d3165cc0a', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e4f8f882-dec2-4d6b-a141-936e87d3fd27', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '25ae0938-795a-491a-b029-e4672412e85f', - type: 'RELATION', - name: 'view', - label: 'View', - description: 'View Sort related view', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '6156cfd2-ab7f-47d1-8b4a-5e093f08fb9e', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '6987128d-cf7d-45eb-9bcc-19a406b774ec', - nameSingular: 'viewSort', - namePlural: 'viewSorts', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '25ae0938-795a-491a-b029-e4672412e85f', - name: 'view', - }, - targetObjectMetadata: { - __typename: 'object', - id: '020d393a-d6ba-431e-945c-174f5dceec6b', - nameSingular: 'view', - namePlural: 'views', - }, - targetFieldMetadata: { - __typename: 'field', - id: '23b99490-be92-4edc-a939-07e0f64f13eb', - name: 'viewSorts', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c1ba16b8-45a1-48b3-a945-eb9390421d4c", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "50f7918f-c677-4e34-baae-3012e3b6d5a8", + "type": "TEXT", + "name": "handle", + "label": "Handle", + "description": "Handle", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d3588b81-9a6d-49c9-8c1f-66006c5bbf40", + "type": "UUID", + "name": "workspaceMemberId", + "label": "WorkspaceMember id (foreign key)", + "description": "WorkspaceMember id foreign key", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c7856143-ebb9-425b-8e13-1be7b63387a6", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '540715e7-6531-4746-b567-b0a7fcda60ef', - type: 'UUID', - name: 'fieldMetadataId', - label: 'Field Metadata Id', - description: 'View Sort target field', - icon: 'IconTag', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '26889121-d2d9-49dc-86ac-51c64d123197', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fd3f4444-1951-4869-a25c-f6198d9d37a2", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fe6a4945-0e11-43b8-b052-a8b433f341ea", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "84b616f8-2db3-472d-93dd-a8e89b9db810", + "type": "RELATION", + "name": "workspaceMember", + "label": "WorkspaceMember", + "description": "WorkspaceMember", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "1185289f-ef64-4b23-a7ef-c16303bea50f", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "8ae98b12-2ef6-4c20-adc6-240857dd7343", + "nameSingular": "blocklist", + "namePlural": "blocklists" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "84b616f8-2db3-472d-93dd-a8e89b9db810", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "b391761f-fedd-4a1d-acd1-497c21a615ba", + "name": "blocklist" + } + } + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'rocket', - namePlural: 'rockets', - labelSingular: 'Rocket', - labelPlural: 'Rockets', - description: 'A rocket', - icon: 'IconRocket', - isCustom: true, - isRemote: false, - isActive: true, - isSystem: false, - createdAt: '2024-09-25T13:45:42.556Z', - updatedAt: '2024-09-25T13:45:42.556Z', - labelIdentifierFieldMetadataId: null, - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEy', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "88f29168-a15b-4330-89a1-680581a2e86b", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "f036575d-bd0d-43da-bbcc-545384a75b64", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "d9778e2a-e57a-4117-83f1-5da2c78036e2", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_5653b106ee9a9e3d5c1c790419a", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "efb10056-7029-43c4-a074-4504eca5c775", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "cb05eb84-b336-494a-b3d9-eb9cf64dba10" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjk=" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9aed4be2-3434-489f-a8a3-384311ee585e', - type: 'RELATION', - name: 'activityTargets', - label: 'Activities', - description: 'Activities tied to the Rocket', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.577Z', - updatedAt: '2024-09-25T13:45:42.577Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '624c8a51-ba95-409f-bd54-72c85bb1bb2d', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '9aed4be2-3434-489f-a8a3-384311ee585e', - name: 'activityTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '4a2da98e-6880-47be-8673-165e1d77a910', - name: 'rocket', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '13794481-6a3a-48cb-80c2-109b7558f7b3', - type: 'RELATION', - name: 'attachments', - label: 'Attachments', - description: 'Attachments tied to the Rocket', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.595Z', - updatedAt: '2024-09-25T13:45:42.595Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '20cefbaf-15be-4235-a952-39dff94d00f2', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '13794481-6a3a-48cb-80c2-109b7558f7b3', - name: 'attachments', - }, - targetObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - targetFieldMetadata: { - __typename: 'field', - id: '60f8c4fb-1ab9-44a7-a5bd-e89a0349feb7', - name: 'rocket', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '79da64bc-eea3-476e-801b-f08c86a8c337', - type: 'RELATION', - name: 'favorites', - label: 'Favorites', - description: 'Favorites tied to the Rocket', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.587Z', - updatedAt: '2024-09-25T13:45:42.587Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '2d9dcc60-3d44-4ea4-ac02-146fdbdeac22', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '79da64bc-eea3-476e-801b-f08c86a8c337', - name: 'favorites', - }, - targetObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - targetFieldMetadata: { - __typename: 'field', - id: '11e6c0a0-e1fa-4931-a705-8725a79afe24', - name: 'rocket', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "31efb6ce-3571-4786-99bf-40b9f22e4678", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0a688ec2-f55c-4485-a7a9-9438c19bcbe3', - type: 'ACTOR', - name: 'createdBy', - label: 'Created by', - description: 'The creator of the record', - icon: 'IconCreativeCommonsSa', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:42.556Z', - updatedAt: '2024-09-25T13:45:42.556Z', - defaultValue: { - name: "''", - source: "'MANUAL'", + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "70f8731d-006a-4a1e-9391-e5f180c63d24", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '17cbb6ed-1acc-43e9-a802-96a2b373a067', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:42.556Z', - updatedAt: '2024-09-25T13:45:42.556Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ba68ee30-5dc6-47db-bf6f-db25d829feb5', - type: 'TEXT', - name: 'name', - label: 'Name', - description: 'Name', - icon: 'IconAbc', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:42.556Z', - updatedAt: '2024-09-25T13:45:42.556Z', - defaultValue: "'Untitled'", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ff73fd8a-9b60-4480-82d0-7b96c3c3aab6', - type: 'POSITION', - name: 'position', - label: 'Position', - description: 'Position', - icon: 'IconHierarchy2', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.556Z', - updatedAt: '2024-09-25T13:45:42.556Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '83515891-eb29-472e-9cde-4a1d42b6855d', - type: 'RELATION', - name: 'taskTargets', - label: 'Tasks', - description: 'Tasks tied to the Rocket', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.612Z', - updatedAt: '2024-09-25T13:45:42.612Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '140a67f3-988e-4d60-b24c-8a4fcb4ea6e9', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '83515891-eb29-472e-9cde-4a1d42b6855d', - name: 'taskTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'dadac630-f64e-4d3d-9923-78ca579373f3', - name: 'rocket', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8180c369-8f83-4244-9ae5-ebed178d3601", + "type": "TEXT", + "name": "operand", + "label": "Operand", + "description": "View Filter operand", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'Contains'", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "961fcf39-4973-49e0-8686-715d1c6f8f7f", + "type": "TEXT", + "name": "value", + "label": "Value", + "description": "View Filter value", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f036575d-bd0d-43da-bbcc-545384a75b64", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "cb05eb84-b336-494a-b3d9-eb9cf64dba10", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "854ce53f-9073-4cc2-b3f3-2f8467afccc1", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '73428c65-a426-4c59-b50b-0dea5ffe9bf0', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:42.556Z', - updatedAt: '2024-09-25T13:45:42.556Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6c65c781-9def-4c6c-98d4-25d3c0c085b8', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:42.556Z', - updatedAt: '2024-09-25T13:45:42.556Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b2643f4a-319e-49d4-a7b7-cbfff4712bf7', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Deletion date', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.556Z', - updatedAt: '2024-09-25T13:45:42.556Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '75f64c23-e9a5-4ada-8dc6-3c2c2ea27280', - type: 'RELATION', - name: 'noteTargets', - label: 'Notes', - description: 'Notes tied to the Rocket', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.605Z', - updatedAt: '2024-09-25T13:45:42.605Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '9cbf4ccc-cff9-4439-86c9-6f8c01970442', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '75f64c23-e9a5-4ada-8dc6-3c2c2ea27280', - name: 'noteTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '26c57af1-5c70-4a9d-974f-e54c6a77a2b4', - name: 'rocket', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'aeefa434-6843-4b47-92f6-3ce6d8e93860', - type: 'RELATION', - name: 'timelineActivities', - label: 'Timeline Activities', - description: 'Timeline Activities tied to the Rocket', - icon: 'IconIconTimelineEvent', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.569Z', - updatedAt: '2024-09-25T13:45:42.569Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'f684f74f-b705-4253-aad5-caf1c5f7f19a', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'aeefa434-6843-4b47-92f6-3ce6d8e93860', - name: 'timelineActivities', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'f2f27d9e-c959-4dee-aed4-f87c64229c3f', - name: 'rocket', - }, - }, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "356029e0-d8e9-4d36-8921-936265c27d90", + "type": "TEXT", + "name": "displayValue", + "label": "Display Value", + "description": "View Filter Display Value", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2004362c-52c5-4a3f-99e7-ddef7eeaf9af", + "type": "UUID", + "name": "fieldMetadataId", + "label": "Field Metadata Id", + "description": "View Filter target field", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d3db3f5c-49f7-4008-b8a4-cec85ac3505e", + "type": "RELATION", + "name": "view", + "label": "View", + "description": "View Filter related view", + "icon": "IconLayoutCollage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "678c1f91-1825-4eb5-9960-bea05bd2ca87", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "88f29168-a15b-4330-89a1-680581a2e86b", + "nameSingular": "viewFilter", + "namePlural": "viewFilters" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "d3db3f5c-49f7-4008-b8a4-cec85ac3505e", + "name": "view" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "c46916fc-0528-4331-9766-6ac2247a70fb", + "nameSingular": "view", + "namePlural": "views" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "312163f0-9b2f-4c59-8473-9eb1906b8f41", + "name": "viewFilters" + } + } + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '522136fb-741c-4b3b-b44a-b20b62352b47', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'blocklist', - namePlural: 'blocklists', - labelSingular: 'Blocklist', - labelPlural: 'Blocklists', - description: 'Blocklist', - icon: 'IconForbid2', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '37f7671b-aa7c-4fed-b50c-9b7cc7f59aa8', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjY=', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "823e8b9d-1947-48f9-9f43-116a2cbceba3", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "webhook", + "namePlural": "webhooks", + "labelSingular": "Webhook", + "labelPlural": "Webhooks", + "description": "A webhook", + "icon": "IconRobot", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "9f7e51c5-d296-4a59-ad04-82c92b5b26fd", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjY=" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'fa957d80-c61a-4298-aab9-54e8fba2110d', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f966b379-0438-4b9c-8696-3edf18c197f7', - type: 'RELATION', - name: 'workspaceMember', - label: 'WorkspaceMember', - description: 'WorkspaceMember', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'd0a8b3ba-9219-40d6-957c-3e8d5d656d3a', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '522136fb-741c-4b3b-b44a-b20b62352b47', - nameSingular: 'blocklist', - namePlural: 'blocklists', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'f966b379-0438-4b9c-8696-3edf18c197f7', - name: 'workspaceMember', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'e64fef03-fda1-4b5c-8894-d1bee725e7e2', - name: 'blocklist', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "df862ab4-9901-4a1e-87ae-231f783f9647", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '37f7671b-aa7c-4fed-b50c-9b7cc7f59aa8', - type: 'TEXT', - name: 'handle', - label: 'Handle', - description: 'Handle', - icon: 'IconAt', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '862261a3-5473-4e16-9220-16444ee99243', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1233f40e-cc97-4281-a8a8-c23de8961693', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a75f6045-cf57-4b05-960b-5719ce2037c9', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c30e3bff-ce4e-4e64-80e3-bf417ceefa25', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "af92d573-4e0e-409c-be39-d6756f5ac540", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e1890810-5257-4bf8-9f56-e1c801424462", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fb283e72-3e58-4509-aa8a-f5e364bc6862", + "type": "TEXT", + "name": "operation", + "label": "Operation", + "description": "Webhook operation", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "defedbc6-cf37-4bed-9594-0eba58fb3b0f", + "type": "TEXT", + "name": "description", + "label": "Description", + "description": null, + "icon": "IconInfo", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4b835f28-6706-49df-8399-5ba87cb02d0f", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9f7e51c5-d296-4a59-ad04-82c92b5b26fd", + "type": "TEXT", + "name": "targetUrl", + "label": "Target Url", + "description": "Webhook target url", + "icon": "IconLink", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '51dd66f3-a025-4631-9d6a-594419bbda05', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'workflowRun', - namePlural: 'workflowRuns', - labelSingular: 'workflowRun', - labelPlural: 'WorkflowRuns', - description: 'A workflow run', - icon: null, - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'f40e2edc-c0dd-46d8-9a01-a0afd33a00db', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEx', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "7cab9c82-929f-4ea3-98e1-5c221a12263d", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "workflow", + "namePlural": "workflows", + "labelSingular": "Workflow", + "labelPlural": "Workflows", + "description": "A workflow", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "aba08838-a25b-4e59-b634-c3bbd4e38c47", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEx" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2d00a390-5ae4-40d9-8d6c-6abbcdc0bc75', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2aab6f08-2cab-4beb-8775-1ad8b89c3313', - type: 'ACTOR', - name: 'createdBy', - label: 'Created by', - description: 'The creator of the record', - icon: 'IconCreativeCommonsSa', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - name: "''", - source: "'MANUAL'", - }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f40e2edc-c0dd-46d8-9a01-a0afd33a00db', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '421de2e5-36a1-4fb2-ae00-4e2f62dd67e6', - type: 'UUID', - name: 'workflowVersionId', - label: 'Workflow version id (foreign key)', - description: - 'Workflow version linked to the run. id foreign key', - icon: 'IconVersions', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c9e837bb-4516-43ad-8756-7a9c2ad33ca9', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'aec86cc0-1fb6-4ff0-b1df-85b74ee6a974', - type: 'UUID', - name: 'workflowId', - label: 'Workflow id (foreign key)', - description: 'Workflow linked to the run. id foreign key', - icon: 'IconSettingsAutomation', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b38c3f7d-d455-4f1c-b674-66b86c0d56cc', - type: 'RELATION', - name: 'workflowVersion', - label: 'Workflow version', - description: 'Workflow version linked to the run.', - icon: 'IconVersions', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '2d71efdd-cd73-4056-8c3b-73ec03843110', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '51dd66f3-a025-4631-9d6a-594419bbda05', - nameSingular: 'workflowRun', - namePlural: 'workflowRuns', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'b38c3f7d-d455-4f1c-b674-66b86c0d56cc', - name: 'workflowVersion', - }, - targetObjectMetadata: { - __typename: 'object', - id: '081c04be-c9e7-455a-990b-ea6c92bb042f', - nameSingular: 'workflowVersion', - namePlural: 'workflowVersions', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'ef3d8797-2f17-4f31-9970-697fc230df7f', - name: 'runs', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ef5457d1-77ad-4c68-87aa-31a108160922", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '446d4c37-71ac-4a61-8b65-16d70250cbc5', - type: 'SELECT', - name: 'status', - label: 'Workflow run status', - description: 'Workflow run status', - icon: 'IconHistory', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'NOT_STARTED'", - options: [ + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "05d6227a-bc2d-4e08-8390-cfcec921e4a4", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the contact", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "fa6c3b55-5fe4-4406-89a8-9474ca539769", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "7cab9c82-929f-4ea3-98e1-5c221a12263d", + "nameSingular": "workflow", + "namePlural": "workflows" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "05d6227a-bc2d-4e08-8390-cfcec921e4a4", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "71e4555a-9fcc-41bd-a8f0-248d1605567e", + "name": "workflow" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "561bdfd7-91b4-426c-a7ff-30c5469e7d54", + "type": "MULTI_SELECT", + "name": "statuses", + "label": "Statuses", + "description": "The current statuses of the workflow versions", + "icon": "IconStatusChange", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": [ { - id: 'ac758ebd-217c-4402-806a-2989740a5674', - color: 'grey', - label: 'Not started', - value: 'NOT_STARTED', - position: 0, + "color": "yellow", + "label": "Draft", + "value": "DRAFT", + "position": 0 }, { - id: '2db304c4-717a-40c2-afe3-bc62f2114476', - color: 'yellow', - label: 'Running', - value: 'RUNNING', - position: 1, + "color": "green", + "label": "Active", + "value": "ACTIVE", + "position": 1 }, { - id: 'ae5d8a99-538f-4851-a186-1f3c56596b0c', - color: 'green', - label: 'Completed', - value: 'COMPLETED', - position: 2, - }, - { - id: 'ac331d7d-ab1b-4e77-9395-37334d102eb2', - color: 'red', - label: 'Failed', - value: 'FAILED', - position: 3, - }, + "color": "grey", + "label": "Deactivated", + "value": "DEACTIVATED", + "position": 2 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0ed4a200-4d2e-4d4d-81b2-45240ae9e1b8', - type: 'DATE_TIME', - name: 'endedAt', - label: 'Workflow run ended at', - description: 'Workflow run ended at', - icon: 'IconHistory', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a5444b51-1ad5-46ae-b9d9-ef5f1def9232', - type: 'RELATION', - name: 'workflow', - label: 'Workflow', - description: 'Workflow linked to the run.', - icon: 'IconSettingsAutomation', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'f4f3d2da-cded-4999-871d-2f70e96e99fc', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '51dd66f3-a025-4631-9d6a-594419bbda05', - nameSingular: 'workflowRun', - namePlural: 'workflowRuns', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'a5444b51-1ad5-46ae-b9d9-ef5f1def9232', - name: 'workflow', - }, - targetObjectMetadata: { - __typename: 'object', - id: '470b50d2-333a-4897-92cb-181d4883a0f3', - nameSingular: 'workflow', - namePlural: 'workflows', - }, - targetFieldMetadata: { - __typename: 'field', - id: '4f32f14b-5009-4624-8b19-e65084368349', - name: 'runs', - }, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1f691bcc-0b90-452c-b922-54a6f39e9e37", + "type": "RELATION", + "name": "runs", + "label": "Runs", + "description": "Workflow runs linked to the workflow.", + "icon": "IconVersions", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "e73cc998-6f8b-4968-a56f-504738c4aa71", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "7cab9c82-929f-4ea3-98e1-5c221a12263d", + "nameSingular": "workflow", + "namePlural": "workflows" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "1f691bcc-0b90-452c-b922-54a6f39e9e37", + "name": "runs" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "45b7e1cf-792c-45fa-8d6a-0d5e67e1fa42", + "nameSingular": "workflowRun", + "namePlural": "workflowRuns" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "1e1810ae-6ebf-49a1-b7e4-2b217c3a5a13", + "name": "workflow" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "330683fa-283d-4e2a-b351-88ded0749f48", + "type": "TEXT", + "name": "lastPublishedVersionId", + "label": "Last published Version Id", + "description": "The workflow last published version id", + "icon": "IconVersions", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "427e9c03-19df-4f8a-89d7-af0bcdbe8a38", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Workflow record position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0cf97b57-1c48-48a3-bccb-c1e4557e1de0", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bd955f7c-c827-477e-9aaa-f46fc9cc09a1", + "type": "RELATION", + "name": "eventListeners", + "label": "Event Listeners", + "description": "Workflow event listeners linked to the workflow.", + "icon": "IconVersions", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "dc06be4a-4d8f-45ed-b331-4a353a080894", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "7cab9c82-929f-4ea3-98e1-5c221a12263d", + "nameSingular": "workflow", + "namePlural": "workflows" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "bd955f7c-c827-477e-9aaa-f46fc9cc09a1", + "name": "eventListeners" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "65cce76e-0f4c-4de1-a68a-6cadce4d000e", + "nameSingular": "workflowEventListener", + "namePlural": "workflowEventListeners" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "de496463-da61-4d9d-8d14-730a48c66f45", + "name": "workflow" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "aba08838-a25b-4e59-b634-c3bbd4e38c47", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "The workflow name", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "46f260da-54b5-4739-90c3-b6aab057e442", + "type": "RELATION", + "name": "versions", + "label": "Versions", + "description": "Workflow versions linked to the workflow.", + "icon": "IconVersions", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "5e09f62f-3f3a-4b9a-a2f8-434e7ac69969", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "7cab9c82-929f-4ea3-98e1-5c221a12263d", + "nameSingular": "workflow", + "namePlural": "workflows" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "46f260da-54b5-4739-90c3-b6aab057e442", + "name": "versions" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "e5915d30-4425-4c4c-a9c4-1b4bff20c469", + "nameSingular": "workflowVersion", + "namePlural": "workflowVersions" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "69e06184-8fa4-4df5-95dc-7563936ed95f", + "name": "workflow" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "97f377f3-7d31-486d-8a59-fad17484efcf", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b388b202-371a-4663-9299-afc6be461a8c', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2e84a165-18af-492f-8662-14fbd5852b0c', - type: 'DATE_TIME', - name: 'startedAt', - label: 'Workflow run started at', - description: 'Workflow run started at', - icon: 'IconHistory', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "de537cba-0660-4a43-872a-8a5c867f3638", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'task', - namePlural: 'tasks', - labelSingular: 'Task', - labelPlural: 'Tasks', - description: 'A task', - icon: 'IconCheckbox', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '0413dccd-00a6-4abd-967a-45233e8cf666', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE1', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "6edf5dd8-ee31-42ec-80f9-728b01c50ff4", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "78a29a18-74ca-4d90-81bc-563916d82017", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "b4a9798c-a77f-443b-9a68-4f105affbed2", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_6d9700e5ae2ab8c294d614e72f6", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "89bb196f-6678-4b21-a527-4753a6830cff", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_8d0144e4074d86d0cb7094f40c2", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "aca3173e-3128-402e-9c4c-7c0f126b7626", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "6b5429cd-116b-4470-95e6-bb4a15269715" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "f588e813-71dc-4cf9-96d9-d7443bb11cbf", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_8c4f617db0813d41aef587e49ea", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "665ff0a5-e5b6-4fc3-8a04-670078815cf6", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "90325846-5bd5-4867-ad09-a2dd66b569b3" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEy" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6f41b722-fbc4-44d9-9315-51498900e157', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1d53ad9c-bdf4-4660-b4b6-e79162d13c39', - type: 'RELATION', - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the task', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'c349fbab-ecda-4dd6-bf3f-b60a4118db25', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - nameSingular: 'task', - namePlural: 'tasks', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '1d53ad9c-bdf4-4660-b4b6-e79162d13c39', - name: 'favorites', - }, - targetObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'dc005581-351b-4fa0-9b39-da5bbe2554b7', - name: 'task', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e7df66e0-50cc-4047-9b91-8f5ee1ff7246', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '34ec585e-b42e-4e63-8e4b-7f9bf6a4e79b', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '22b735aa-95d7-44fe-a4a6-965171e3f7b7', - type: 'DATE_TIME', - name: 'dueAt', - label: 'Due Date', - description: 'Task due date', - icon: 'IconCalendarEvent', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'fea3a2f3-73ca-4142-8d15-3b8877b68cee', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4f82dbad-cf61-4dd1-ad90-4cec71b288be', - type: 'RELATION', - name: 'attachments', - label: 'Attachments', - description: 'Task attachments', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '5a06cc7e-b994-4a53-881f-d32decfe9f3e', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - nameSingular: 'task', - namePlural: 'tasks', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '4f82dbad-cf61-4dd1-ad90-4cec71b288be', - name: 'attachments', - }, - targetObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - targetFieldMetadata: { - __typename: 'field', - id: '26668e62-39e7-4842-a198-a657f44206f8', - name: 'task', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b52cbdab-0c97-4601-b5ad-de766ec9f940', - type: 'SELECT', - name: 'status', - label: 'Status', - description: 'Task status', - icon: 'IconCheck', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'TODO'", - options: [ + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "76780c2e-a012-4ff7-8c5f-1dee290dd458", + "type": "SELECT", + "name": "role", + "label": "Role", + "description": "Role", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'from'", + "options": [ { - id: 'daaeca90-3643-4127-b364-80cf3dea8f71', - color: 'sky', - label: 'To do', - value: 'TODO', - position: 0, + "id": "37c322cd-7db3-4bcd-9b57-00c6e99a2e95", + "color": "green", + "label": "From", + "value": "from", + "position": 0 }, { - id: '49f1408b-5f51-4659-a4e1-bb2bb74bb977', - color: 'purple', - label: 'In progress', - value: 'IN_PROGESS', - position: 1, + "id": "d1bcffe7-9417-4580-98ed-6f3202713057", + "color": "blue", + "label": "To", + "value": "to", + "position": 1 }, { - id: '552511ed-d17e-4863-ae7e-862034214507', - color: 'green', - label: 'Done', - value: 'DONE', - position: 1, + "id": "6e4bb3b8-7ba1-48bb-9a4d-a5027f7e1283", + "color": "orange", + "label": "Cc", + "value": "cc", + "position": 2 }, + { + "id": "51527ffd-620b-4b53-859c-93714cddc508", + "color": "red", + "label": "Bcc", + "value": "bcc", + "position": 3 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1eea9af9-53a3-4085-9391-4a2fad697eb7', - type: 'RELATION', - name: 'timelineActivities', - label: 'Timeline Activities', - description: 'Timeline Activities linked to the task.', - icon: 'IconTimelineEvent', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '881b8fa7-814a-435a-84b7-da344fc0639a', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - nameSingular: 'task', - namePlural: 'tasks', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '1eea9af9-53a3-4085-9391-4a2fad697eb7', - name: 'timelineActivities', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '8626f50f-1d39-40e7-a05b-528c42fe4313', - name: 'task', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '78360243-9830-4f40-a515-59cd8faf88b1', - type: 'RICH_TEXT', - name: 'body', - label: 'Body', - description: 'Task body', - icon: 'IconFilePencil', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '33d7eb92-8231-417c-8efe-eb837c6ccadf', - type: 'ACTOR', - name: 'createdBy', - label: 'Created by', - description: 'The creator of the record', - icon: 'IconCreativeCommonsSa', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - name: "''", - source: "'MANUAL'", + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "90325846-5bd5-4867-ad09-a2dd66b569b3", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6f328351-fb72-43a2-bf91-ef7c98972589", + "type": "UUID", + "name": "personId", + "label": "Person id (foreign key)", + "description": "Person id foreign key", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e497dbce-a48a-4ea8-82c9-5f8a38ca26dc", + "type": "TEXT", + "name": "displayName", + "label": "Display Name", + "description": "Display Name", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "edc0cbe6-9c05-48a7-8cf5-6ff782ad055d", + "type": "RELATION", + "name": "workspaceMember", + "label": "Workspace Member", + "description": "Workspace member", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "1c4db1ed-209f-4274-bf95-004e0cb74404", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "6edf5dd8-ee31-42ec-80f9-728b01c50ff4", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "edc0cbe6-9c05-48a7-8cf5-6ff782ad055d", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "07667783-a2b1-4eb5-8e3b-86ec786993fa", + "name": "messageParticipants" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0b579046-7846-4d34-a22a-21c64991e776", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5f9a8761-e5e6-492c-87ab-401c7b0e25cd', - type: 'UUID', - name: 'assigneeId', - label: 'Assignee id (foreign key)', - description: 'Task assignee id foreign key', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7a062a59-07da-4d2d-a0e8-f79f87e2e5e3', - type: 'RELATION', - name: 'assignee', - label: 'Assignee', - description: 'Task assignee', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'fe131172-06fc-4057-b1d0-c23dc5f030b9', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - nameSingular: 'task', - namePlural: 'tasks', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '7a062a59-07da-4d2d-a0e8-f79f87e2e5e3', - name: 'assignee', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: '3653df1b-5687-45c1-a2bf-afc261fe85a8', - name: 'assignedTasks', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "78a29a18-74ca-4d90-81bc-563916d82017", + "type": "TEXT", + "name": "handle", + "label": "Handle", + "description": "Handle", + "icon": "IconAt", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6b5429cd-116b-4470-95e6-bb4a15269715", + "type": "UUID", + "name": "messageId", + "label": "Message id (foreign key)", + "description": "Message id foreign key", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8afc59b9-a712-4158-9103-910312d481e5", + "type": "RELATION", + "name": "message", + "label": "Message", + "description": "Message", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "2433b7ad-ce4f-4ea3-a572-910b6e2ce66f", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "6edf5dd8-ee31-42ec-80f9-728b01c50ff4", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8afc59b9-a712-4158-9103-910312d481e5", + "name": "message" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "673b8cb8-44c1-4c20-9834-7c35d44fd180", + "nameSingular": "message", + "namePlural": "messages" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8791bc22-6d54-4267-9b2f-758946e99bbf", + "name": "messageParticipants" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2bb51505-1b04-43c7-8e81-74c33911f4f8", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '80932806-6350-4941-a291-4d1430275d65', - type: 'RELATION', - name: 'taskTargets', - label: 'Relations', - description: 'Task targets', - icon: 'IconArrowUpRight', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '81926481-abaa-4b04-900e-2170694cc034', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - nameSingular: 'task', - namePlural: 'tasks', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '80932806-6350-4941-a291-4d1430275d65', - name: 'taskTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'ec532542-a4dc-4722-99c3-fca6366db597', - name: 'task', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ef9604ad-a71d-444c-936f-bbd8e4a18997", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8507c38d-6f90-4b15-afa1-19b749774092", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "Person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "89f811eb-6211-4b53-bc32-1acf1241a5dd", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "6edf5dd8-ee31-42ec-80f9-728b01c50ff4", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8507c38d-6f90-4b15-afa1-19b749774092", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "c502a91b-fde5-426b-aa27-a856ad28fc71", + "name": "messageParticipants" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3f2d6322-f612-4c7c-8329-42de4a988867", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'daf389ba-49e6-4753-8a5a-a0330c5ab154', - type: 'POSITION', - name: 'position', - label: 'Position', - description: 'Task record position', - icon: 'IconHierarchy2', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0413dccd-00a6-4abd-967a-45233e8cf666', - type: 'TEXT', - name: 'title', - label: 'Title', - description: 'Task title', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - ], + "relationDefinition": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "6a09bc08-33ae-4321-868a-30064279097f", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "note", + "namePlural": "notes", + "labelSingular": "Note", + "labelPlural": "Notes", + "description": "A note", + "icon": "IconNotes", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "c9c0b35e-a84c-449a-b6ca-69efc8f71a52", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [] }, - }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEx" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "14bcdb46-70ad-4947-92d6-2b981a01d8dc", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Note record position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "20646869-ca0e-49a0-9344-fe9272d64f6d", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Note attachments", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "fc78e196-db67-41d8-8d95-b1da605f98d5", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "6a09bc08-33ae-4321-868a-30064279097f", + "nameSingular": "note", + "namePlural": "notes" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "20646869-ca0e-49a0-9344-fe9272d64f6d", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "052cd77c-3540-4c77-a571-e0144b944351", + "name": "note" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "45d38878-cca8-4c8c-b7e4-539adf09c5b1", + "type": "RELATION", + "name": "noteTargets", + "label": "Relations", + "description": "Note targets", + "icon": "IconArrowUpRight", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7be32a73-9b29-422b-b5aa-1933cf5ad254", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "6a09bc08-33ae-4321-868a-30064279097f", + "nameSingular": "note", + "namePlural": "notes" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "45d38878-cca8-4c8c-b7e4-539adf09c5b1", + "name": "noteTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "nameSingular": "noteTarget", + "namePlural": "noteTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "5ea37b6c-76b5-4cc3-981e-fefebaa91607", + "name": "note" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "20718057-bac8-4dc8-b755-d547d461ddf2", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "94bd02c5-733a-466f-8525-e4b53a221533", + "type": "ACTOR", + "name": "createdBy", + "label": "Created by", + "description": "The creator of the record", + "icon": "IconCreativeCommonsSa", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "name": "''", + "source": "'MANUAL'" + }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f86335f9-07e3-4108-a2a2-cafa6820e85e", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the note", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "8206c6dd-98d8-4526-9836-bad9f2b065bb", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "6a09bc08-33ae-4321-868a-30064279097f", + "nameSingular": "note", + "namePlural": "notes" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "f86335f9-07e3-4108-a2a2-cafa6820e85e", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "53790b28-fd71-4f0f-994d-72e9cb8b018b", + "name": "note" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2f11215d-436b-4cf6-ab77-7bb582af633c", + "type": "RICH_TEXT", + "name": "body", + "label": "Body", + "description": "Note body", + "icon": "IconFilePencil", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c9c0b35e-a84c-449a-b6ca-69efc8f71a52", + "type": "TEXT", + "name": "title", + "label": "Title", + "description": "Note title", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fb8df7bd-0b5b-42cf-9f62-1e0b05a06286", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "325aafc9-525a-457e-9f67-15a8994bd6b8", + "type": "RELATION", + "name": "timelineActivities", + "label": "Timeline Activities", + "description": "Timeline Activities linked to the note.", + "icon": "IconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "49ad3d9a-01a3-4c82-b6bc-a8d21398e51a", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "6a09bc08-33ae-4321-868a-30064279097f", + "nameSingular": "note", + "namePlural": "notes" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "325aafc9-525a-457e-9f67-15a8994bd6b8", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8376c21d-fd88-4006-b8d7-40d1f27692ac", + "name": "note" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9c8f3988-16e1-40be-abc1-4ab3e03822f6", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e94bf127-bdef-4d9e-a703-5202d624bc5b", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '470b50d2-333a-4897-92cb-181d4883a0f3', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'workflow', - namePlural: 'workflows', - labelSingular: 'Workflow', - labelPlural: 'Workflows', - description: 'A workflow', - icon: 'IconSettingsAutomation', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'bab376b1-a7d9-48b8-88b7-f302bc6d483d', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEx', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "task", + "namePlural": "tasks", + "labelSingular": "Task", + "labelPlural": "Tasks", + "description": "A task", + "icon": "IconCheckbox", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "5691876e-1463-4117-a7ef-2d0b089fa1ff", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "0d1fcd80-02e2-4bbe-80c5-bc0c09f9241d", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_ee5298b25512b38b29390e084f7", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "4afbc310-7760-4e36-9796-7590c75c902b", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "559b6272-f96c-4f39-883e-a01b4741b2ed" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "39a9a119-fbfe-4a02-9b32-cb805fa52791", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "e99d0dcd-4e33-46bd-9bd7-d80a957003f8" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjE1" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '38f5127c-ab53-45bc-90b9-a3883d697eb9', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b2a7002e-19f2-4f16-8b5b-ea452aeb7104', - type: 'TEXT', - name: 'lastPublishedVersionId', - label: 'Last published Version Id', - description: 'The workflow last published version id', - icon: 'IconVersions', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd6fb9120-9aa5-4fdf-a84a-2805bb359855', - type: 'RELATION', - name: 'versions', - label: 'Versions', - description: 'Workflow versions linked to the workflow.', - icon: 'IconVersions', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '8bcc3362-58ea-46ab-8639-e3def87eb454', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '470b50d2-333a-4897-92cb-181d4883a0f3', - nameSingular: 'workflow', - namePlural: 'workflows', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'd6fb9120-9aa5-4fdf-a84a-2805bb359855', - name: 'versions', - }, - targetObjectMetadata: { - __typename: 'object', - id: '081c04be-c9e7-455a-990b-ea6c92bb042f', - nameSingular: 'workflowVersion', - namePlural: 'workflowVersions', - }, - targetFieldMetadata: { - __typename: 'field', - id: '54cde78b-4bd4-436b-b10b-e6de37494161', - name: 'workflow', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "46331eb9-1722-4cfa-8d2e-fdbc87e6d879", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e3e5b381-059f-49f9-acc6-38d92ca70bd7", + "type": "ACTOR", + "name": "createdBy", + "label": "Created by", + "description": "The creator of the record", + "icon": "IconCreativeCommonsSa", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "name": "''", + "source": "'MANUAL'" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '99d7e7e6-ac6a-4b74-9129-d4a9759bc928', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '06a5a424-930c-4465-9943-2a9c486f2038', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '650b02ef-32b5-4b10-bdab-a49f4e3b7a9b', - type: 'MULTI_SELECT', - name: 'statuses', - label: 'Statuses', - description: - 'The current statuses of the workflow versions', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: [ + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "61700dc0-7a07-4421-a85f-50d1b40ef66e", + "type": "DATE_TIME", + "name": "dueAt", + "label": "Due Date", + "description": "Task due date", + "icon": "IconCalendarEvent", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0a0a3b30-46a9-476b-ab0c-a4b9a91a0456", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d6ad1859-b68e-4363-8bba-7db17b61fca5", + "type": "SELECT", + "name": "status", + "label": "Status", + "description": "Task status", + "icon": "IconCheck", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'TODO'", + "options": [ { - color: 'yellow', - label: 'Draft', - value: 'DRAFT', - position: 0, + "id": "af1e2cda-b54d-4014-b1ec-dc8237098028", + "color": "sky", + "label": "To do", + "value": "TODO", + "position": 0 }, { - color: 'green', - label: 'Active', - value: 'ACTIVE', - position: 1, + "id": "e2c18902-9ba6-4d35-9036-22d8c04985fd", + "color": "purple", + "label": "In progress", + "value": "IN_PROGESS", + "position": 1 }, { - color: 'grey', - label: 'Deactivated', - value: 'DEACTIVATED', - position: 2, - }, + "id": "b0f06a1d-7821-46ae-9eb9-1a13201d0a2f", + "color": "green", + "label": "Done", + "value": "DONE", + "position": 1 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b14865e9-26a6-4ae8-930d-d22c21c7696c', - type: 'RELATION', - name: 'eventListeners', - label: 'Event Listeners', - description: - 'Workflow event listeners linked to the workflow.', - icon: 'IconVersions', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '1353dcd5-92ce-4947-8156-c1de74eaf54b', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '470b50d2-333a-4897-92cb-181d4883a0f3', - nameSingular: 'workflow', - namePlural: 'workflows', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'b14865e9-26a6-4ae8-930d-d22c21c7696c', - name: 'eventListeners', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6f69be9e-d899-4e40-bf15-0c8194e6a934', - nameSingular: 'workflowEventListener', - namePlural: 'workflowEventListeners', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'a424fba4-d3f4-41b1-bf9a-4b809ad628a9', - name: 'workflow', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4f32f14b-5009-4624-8b19-e65084368349', - type: 'RELATION', - name: 'runs', - label: 'Runs', - description: 'Workflow runs linked to the workflow.', - icon: 'IconVersions', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'f4f3d2da-cded-4999-871d-2f70e96e99fc', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '470b50d2-333a-4897-92cb-181d4883a0f3', - nameSingular: 'workflow', - namePlural: 'workflows', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '4f32f14b-5009-4624-8b19-e65084368349', - name: 'runs', - }, - targetObjectMetadata: { - __typename: 'object', - id: '51dd66f3-a025-4631-9d6a-594419bbda05', - nameSingular: 'workflowRun', - namePlural: 'workflowRuns', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'a5444b51-1ad5-46ae-b9d9-ef5f1def9232', - name: 'workflow', - }, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e99d0dcd-4e33-46bd-9bd7-d80a957003f8", + "type": "UUID", + "name": "assigneeId", + "label": "Assignee id (foreign key)", + "description": "Task assignee id foreign key", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1bb59b31-1c7d-4697-98d5-9f984cc9ea9c", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Task attachments", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "4a95e7b4-8bdc-49ca-b6d3-ae3d86a6e040", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "nameSingular": "task", + "namePlural": "tasks" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "1bb59b31-1c7d-4697-98d5-9f984cc9ea9c", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "9907dc47-5e02-4966-91f8-5df22fafaaa4", + "name": "task" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0400e2ae-05e4-46f5-b7e1-3fd8e7c15731", + "type": "RELATION", + "name": "assignee", + "label": "Assignee", + "description": "Task assignee", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "970f0f7f-a30d-4a6f-b023-c3bc5a1b412c", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "nameSingular": "task", + "namePlural": "tasks" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "0400e2ae-05e4-46f5-b7e1-3fd8e7c15731", + "name": "assignee" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "5233906b-4d12-4e40-9081-436ff5c6cefe", + "name": "assignedTasks" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9fd18cc3-10c9-4017-91a6-ee42e1955e29", + "type": "RICH_TEXT", + "name": "body", + "label": "Body", + "description": "Task body", + "icon": "IconFilePencil", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "77726d5f-43e6-4011-952a-d9585dc14597", + "type": "RELATION", + "name": "timelineActivities", + "label": "Timeline Activities", + "description": "Timeline Activities linked to the task.", + "icon": "IconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "e940e46a-ab1a-4e0c-82a4-1af978adcc2c", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "nameSingular": "task", + "namePlural": "tasks" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "77726d5f-43e6-4011-952a-d9585dc14597", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "49b48088-8d98-4d8d-a9a8-c4f8f462aa72", + "name": "task" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0111a4d1-f387-4f21-bc99-94b80139ff7f", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the task", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "14f171b6-2a7e-4ae3-adc6-1721e91b791f", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "nameSingular": "task", + "namePlural": "tasks" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "0111a4d1-f387-4f21-bc99-94b80139ff7f", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "60db3d95-7824-4335-9a49-eec97888c068", + "name": "task" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5691876e-1463-4117-a7ef-2d0b089fa1ff", + "type": "TEXT", + "name": "title", + "label": "Title", + "description": "Task title", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ceef7231-1933-4c8b-a2d1-a0e9749cd69a", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Task record position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "74bf0e2d-9fc5-4609-b180-a50e18f5f9ca", + "type": "RELATION", + "name": "taskTargets", + "label": "Relations", + "description": "Task targets", + "icon": "IconArrowUpRight", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "2cb467d4-4e91-459c-a145-5f276f6186e1", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "681f89d7-0581-42b0-b97d-870e3b2a8359", + "nameSingular": "task", + "namePlural": "tasks" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "74bf0e2d-9fc5-4609-b180-a50e18f5f9ca", + "name": "taskTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "nameSingular": "taskTarget", + "namePlural": "taskTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "61963eea-7040-4cba-be90-031464ad1e69", + "name": "task" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bec117bf-86b7-4531-b192-d8917777a9c6", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bab376b1-a7d9-48b8-88b7-f302bc6d483d', - type: 'TEXT', - name: 'name', - label: 'Name', - description: 'The workflow name', - icon: 'IconSettingsAutomation', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '141281c7-5b28-41d4-99bd-31c1e4c88e9b', - type: 'RELATION', - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the contact', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '892e8ce6-83f8-4dbd-8c0d-eb5bb7db71f6', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '470b50d2-333a-4897-92cb-181d4883a0f3', - nameSingular: 'workflow', - namePlural: 'workflows', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '141281c7-5b28-41d4-99bd-31c1e4c88e9b', - name: 'favorites', - }, - targetObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'eed525bd-edf3-4030-9f09-8ff68226a6a0', - name: 'workflow', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "559b6272-f96c-4f39-883e-a01b4741b2ed", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f21077b2-283f-4362-98fd-e5ea5f87d621', - type: 'POSITION', - name: 'position', - label: 'Position', - description: 'Workflow record position', - icon: 'IconHierarchy2', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b063853c-a442-4b52-8f89-f750c44a2e04', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '6615546f-8744-4b36-83d5-59c1ef72e845', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjIz', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "673b8cb8-44c1-4c20-9834-7c35d44fd180", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "message", + "namePlural": "messages", + "labelSingular": "Message", + "labelPlural": "Messages", + "description": "Message", + "icon": "IconMessage", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "8624c6f2-87b6-4bb5-b90a-4fd63230c2fd", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "ccd3d99a-7422-40f1-9eb7-39fd739613bf", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_78fa73d661d632619e17de211e6", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "dbb0a4c8-7607-474c-a360-56ee92260e7c", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "373b653f-399a-4fe2-940e-b10efe9973b1" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEx" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6615546f-8744-4b36-83d5-59c1ef72e845', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '299c9bdc-5137-4d2b-8225-ddb81a720bfe', - type: 'UUID', - name: 'rocketId', - label: 'Rocket ID (foreign key)', - description: 'Timeline Activity Rocket id foreign key', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.564Z', - updatedAt: '2024-09-25T13:45:42.564Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8626f50f-1d39-40e7-a05b-528c42fe4313', - type: 'RELATION', - name: 'task', - label: 'Task', - description: 'Event task', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '881b8fa7-814a-435a-84b7-da344fc0639a', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '8626f50f-1d39-40e7-a05b-528c42fe4313', - name: 'task', - }, - targetObjectMetadata: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - nameSingular: 'task', - namePlural: 'tasks', - }, - targetFieldMetadata: { - __typename: 'field', - id: '1eea9af9-53a3-4085-9391-4a2fad697eb7', - name: 'timelineActivities', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f2f27d9e-c959-4dee-aed4-f87c64229c3f', - type: 'RELATION', - name: 'rocket', - label: 'Rocket', - description: 'Timeline Activity Rocket', - icon: 'IconTimeline', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.569Z', - updatedAt: '2024-09-25T13:45:42.569Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'f684f74f-b705-4253-aad5-caf1c5f7f19a', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'f2f27d9e-c959-4dee-aed4-f87c64229c3f', - name: 'rocket', - }, - targetObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'aeefa434-6843-4b47-92f6-3ce6d8e93860', - name: 'timelineActivities', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "373b653f-399a-4fe2-940e-b10efe9973b1", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "34f11a4b-3fab-4402-a1dd-e5ba6eb57a40", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '62e278a5-d719-4b49-a820-fc5ed358311e', - type: 'DATE_TIME', - name: 'happensAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '145c8790-abd1-49fb-9857-650da78c6717', - type: 'RELATION', - name: 'company', - label: 'Company', - description: 'Event company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'b8909cf8-5b9d-4512-8fdf-d6fc4b450191', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '145c8790-abd1-49fb-9857-650da78c6717', - name: 'company', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'f8393bb6-05c2-44d7-bff8-4a7671b43f15', - name: 'timelineActivities', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "129b9862-08af-4424-b313-2b38dae6c003", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '08dd3999-ca07-43cf-b872-a2bed317aa6a', - type: 'TEXT', - name: 'name', - label: 'Event name', - description: 'Event name', - icon: 'IconAbc', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bbdf103a-60cb-4c39-a982-1704e26f6735', - type: 'UUID', - name: 'noteId', - label: 'Note id (foreign key)', - description: 'Event note id foreign key', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9e9d4989-fdf2-4e71-90af-aae2ef0b4923', - type: 'RELATION', - name: 'person', - label: 'Person', - description: 'Event person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'bc97fb28-bb40-41de-9535-4bae43cf653c', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '9e9d4989-fdf2-4e71-90af-aae2ef0b4923', - name: 'person', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - targetFieldMetadata: { - __typename: 'field', - id: '6e46c199-d4f9-4c60-b9bb-19da859991b4', - name: 'timelineActivities', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8791bc22-6d54-4267-9b2f-758946e99bbf", + "type": "RELATION", + "name": "messageParticipants", + "label": "Message Participants", + "description": "Message Participants", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "2433b7ad-ce4f-4ea3-a572-910b6e2ce66f", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "673b8cb8-44c1-4c20-9834-7c35d44fd180", + "nameSingular": "message", + "namePlural": "messages" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8791bc22-6d54-4267-9b2f-758946e99bbf", + "name": "messageParticipants" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "6edf5dd8-ee31-42ec-80f9-728b01c50ff4", + "nameSingular": "messageParticipant", + "namePlural": "messageParticipants" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8afc59b9-a712-4158-9103-910312d481e5", + "name": "message" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c2396aae-ce94-4dc2-b0b1-45c595bbb067", + "type": "TEXT", + "name": "text", + "label": "Text", + "description": "Text", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "82974b3e-72cf-47d4-9b1d-52008c370b14", + "type": "DATE_TIME", + "name": "receivedAt", + "label": "Received At", + "description": "The date the message was received", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "efdfbd70-a365-4e96-9fb0-095eb91e061a", + "type": "RELATION", + "name": "messageThread", + "label": "Message Thread Id", + "description": "Message Thread Id", + "icon": "IconHash", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "fcbbe4ce-01e3-4332-8424-16709c40d819", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "673b8cb8-44c1-4c20-9834-7c35d44fd180", + "nameSingular": "message", + "namePlural": "messages" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "efdfbd70-a365-4e96-9fb0-095eb91e061a", + "name": "messageThread" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f98ea433-1b70-46d3-aefa-43eb369925d2", + "nameSingular": "messageThread", + "namePlural": "messageThreads" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "84b1f586-7867-4cd9-b793-4826d4d99cf5", + "name": "messages" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b5d8a70e-5e7c-4ec1-bcdd-d29ce5ce31bf", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a1050506-9f21-47d5-be1f-2ae25b974c1c", + "type": "TEXT", + "name": "headerMessageId", + "label": "Header message Id", + "description": "Message id from the message header", + "icon": "IconHash", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9a32cb5a-af34-4c27-9e66-a741674b0701", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1b496b65-948d-4614-889f-2a9e0a6292f3', - type: 'UUID', - name: 'linkedObjectMetadataId', - label: 'Linked Object Metadata Id', - description: 'inked Object Metadata Id', - icon: 'IconAbc', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'cd22914c-60d6-4e45-9936-9ff345d3a5bb', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '77f9059d-33f5-4fa1-8641-4976d38eaeb7', - type: 'TEXT', - name: 'linkedRecordCachedName', - label: 'Linked Record cached name', - description: 'Cached record name', - icon: 'IconAbc', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '137a88ef-9c08-414c-adcc-2d450624acf8', - type: 'RELATION', - name: 'workspaceMember', - label: 'Workspace Member', - description: 'Event workspace member', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'db084a18-152f-4ea9-967e-69a45f2d24ab', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '137a88ef-9c08-414c-adcc-2d450624acf8', - name: 'workspaceMember', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'a5fc2711-0e3d-40ac-938a-8beafeac1f57', - name: 'timelineActivities', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8624c6f2-87b6-4bb5-b90a-4fd63230c2fd", + "type": "TEXT", + "name": "subject", + "label": "Subject", + "description": "Subject", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1be8e5e6-167b-49cd-9a37-224969040f28", + "type": "RELATION", + "name": "messageChannelMessageAssociations", + "label": "Message Channel Association", + "description": "Messages from the channel.", + "icon": "IconMessage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "f7d4519f-c655-4cb4-a371-c7bf44451fd4", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "673b8cb8-44c1-4c20-9834-7c35d44fd180", + "nameSingular": "message", + "namePlural": "messages" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "1be8e5e6-167b-49cd-9a37-224969040f28", + "name": "messageChannelMessageAssociations" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "631882fd-28e8-4a87-8ceb-f8217006a620", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "310ff925-20c8-4525-9343-9c243efeb8df", + "name": "message" + } + } + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "65cce76e-0f4c-4de1-a68a-6cadce4d000e", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "workflowEventListener", + "namePlural": "workflowEventListeners", + "labelSingular": "WorkflowEventListener", + "labelPlural": "WorkflowEventListeners", + "description": "A workflow event listener", + "icon": null, + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "bc61037f-5ab1-48c4-9565-5b743b45bc1e", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "74da0929-df7b-429d-93dc-5658aeb95a87", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_9d6a1fb98ccde16ede8c5949d40", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "b6983178-9322-4010-aa89-61d2860af688", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "1e7c94c5-c013-4924-aa6c-cb67d45b33a3" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjY=" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8cf7ceee-898f-4835-b966-eaf2c1429798", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b2df9370-1560-47f6-89b6-88293de46572', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '9cb24716-07e8-4c54-a0c8-7005a619314e', - type: 'RAW_JSON', - name: 'properties', - label: 'Event details', - description: 'Json value for event details', - icon: 'IconListDetails', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bc5277df-a1ec-4ae2-affe-e42aed88f0b9', - type: 'UUID', - name: 'taskId', - label: 'Task id (foreign key)', - description: 'Event task id foreign key', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'cda06c7c-9c62-4579-b3ba-2e8275c604b1', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '95fa7d72-fd85-4a32-a489-a5d03199debb', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1d16560a-4a8f-448c-8289-70e3e98ad3b4', - type: 'UUID', - name: 'linkedRecordId', - label: 'Linked Record id', - description: 'Linked Record id', - icon: 'IconAbc', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c646eaf5-2754-4924-a212-c5747b0d1d41', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '88a829b3-6d66-4e53-b1ad-ed02e544e4d2', - type: 'RELATION', - name: 'opportunity', - label: 'Opportunity', - description: 'Event opportunity', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '8d8d083e-b9a2-4de2-a368-2422a4df4a83', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '88a829b3-6d66-4e53-b1ad-ed02e544e4d2', - name: 'opportunity', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '9019bf90-efbc-4499-a87b-0624bda5a559', - name: 'timelineActivities', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6f46ad82-ecec-472d-9a1b-dbabbda3c339", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'db7ab4e8-9d93-4f45-bbbf-f68eb31776cb', - type: 'RELATION', - name: 'note', - label: 'Note', - description: 'Event note', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'e122b1c1-7518-425d-854c-d0817d42988b', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'db7ab4e8-9d93-4f45-bbbf-f68eb31776cb', - name: 'note', - }, - targetObjectMetadata: { - __typename: 'object', - id: '1e1abbd5-5b66-4ddc-bbf8-d049802bb93e', - nameSingular: 'note', - namePlural: 'notes', - }, - targetFieldMetadata: { - __typename: 'field', - id: '210b544b-46f7-422d-84e7-328ef270f081', - name: 'timelineActivities', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "18c59e83-4a1a-406b-b1cc-8b7706c9a661", + "type": "UUID", + "name": "workflowId", + "label": "Workflow id (foreign key)", + "description": "WorkflowEventListener workflow id foreign key", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1e7c94c5-c013-4924-aa6c-cb67d45b33a3", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1ee1c4bc-7281-4eff-bc32-6afaff324477', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '225d1acc-2ccc-458d-acd5-06f7d8647a38', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "de496463-da61-4d9d-8d14-730a48c66f45", + "type": "RELATION", + "name": "workflow", + "label": "Workflow", + "description": "WorkflowEventListener workflow", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "dc06be4a-4d8f-45ed-b331-4a353a080894", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "65cce76e-0f4c-4de1-a68a-6cadce4d000e", + "nameSingular": "workflowEventListener", + "namePlural": "workflowEventListeners" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "de496463-da61-4d9d-8d14-730a48c66f45", + "name": "workflow" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "7cab9c82-929f-4ea3-98e1-5c221a12263d", + "nameSingular": "workflow", + "namePlural": "workflows" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "bd955f7c-c827-477e-9aaa-f46fc9cc09a1", + "name": "eventListeners" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bc61037f-5ab1-48c4-9565-5b743b45bc1e", + "type": "TEXT", + "name": "eventName", + "label": "Name", + "description": "The workflow event listener name", + "icon": "IconPhoneCheck", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3b08bd66-e033-4c78-befd-5a7e19be4ebe", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'person', - namePlural: 'people', - labelSingular: 'Person', - labelPlural: 'People', - description: 'A person', - icon: 'IconUser', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '5a063961-bffe-4d68-a0c8-e86b6b26f85e', - imageIdentifierFieldMetadataId: - '377efd0d-9798-4522-b9db-73c19bf55e26', - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjI4', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "631882fd-28e8-4a87-8ceb-f8217006a620", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "87d926ac-0aab-4ea6-b41f-7ab64cbdd65b", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "f6c85d6e-6efb-43bb-bb4e-47a3b98856f9", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_671dd9e01a80d1e4c89fc166c3b", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "ce685d06-92ee-4612-9cb1-dbd6bb9fa713", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "c44b95ee-3e23-48c0-864f-eb693a46719d" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "48bde8b2-0629-4028-bb59-cc1634902000", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "c6659e96-78c1-4a71-b927-5d5c0d852248" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "d1d32a0f-692a-4dce-8abf-cc11c26fbc07", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_63953e5f88351922043480b8801", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "4490d296-7ef7-46b5-b76a-20797916881b", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "c44b95ee-3e23-48c0-864f-eb693a46719d" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "b029d0fa-593e-4000-a708-b7263f338e77", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "bdb6b50a-a084-4717-83d4-cdf7d36a056e" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEw" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f926708e-cc19-4e5f-8684-d14a1a1bc7df', - type: 'RELATION', - name: 'pointOfContactForOpportunities', - label: 'Linked Opportunities', - description: - 'List of opportunities for which that person is the point of contact', - icon: 'IconTargetArrow', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'c80603a0-f9b4-47c0-ba4d-7a1c5d0735e8', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'f926708e-cc19-4e5f-8684-d14a1a1bc7df', - name: 'pointOfContactForOpportunities', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '7ad6853d-d1e9-46a8-a77a-38eeae27e1d6', - name: 'pointOfContact', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5ae16290-e931-4be5-b155-343044540f60", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5a063961-bffe-4d68-a0c8-e86b6b26f85e', - type: 'FULL_NAME', - name: 'name', - label: 'Name', - description: 'Contact’s name', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - lastName: "''", - firstName: "''", + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c6659e96-78c1-4a71-b927-5d5c0d852248", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bdb6b50a-a084-4717-83d4-cdf7d36a056e", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "310ff925-20c8-4525-9343-9c243efeb8df", + "type": "RELATION", + "name": "message", + "label": "Message Id", + "description": "Message Id", + "icon": "IconHash", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "f7d4519f-c655-4cb4-a371-c7bf44451fd4", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "631882fd-28e8-4a87-8ceb-f8217006a620", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "310ff925-20c8-4525-9343-9c243efeb8df", + "name": "message" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "673b8cb8-44c1-4c20-9834-7c35d44fd180", + "nameSingular": "message", + "namePlural": "messages" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "1be8e5e6-167b-49cd-9a37-224969040f28", + "name": "messageChannelMessageAssociations" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "490611ce-ddb6-4dee-a2c1-159bdf0ab5a9", + "type": "TEXT", + "name": "messageThreadExternalId", + "label": "Thread External Id", + "description": "Thread id from the messaging provider", + "icon": "IconHash", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "aac54567-521e-4fe8-a0bc-116f2aabf592", + "type": "RELATION", + "name": "messageChannel", + "label": "Message Channel Id", + "description": "Message Channel Id", + "icon": "IconHash", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "612d689f-eb0d-4e6b-b72e-82acb8ae76e2", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "631882fd-28e8-4a87-8ceb-f8217006a620", + "nameSingular": "messageChannelMessageAssociation", + "namePlural": "messageChannelMessageAssociations" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "aac54567-521e-4fe8-a0bc-116f2aabf592", + "name": "messageChannel" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "92b529f1-b82b-4352-a0d5-18f32f8e47ab", + "nameSingular": "messageChannel", + "namePlural": "messageChannels" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "90648e68-2f7c-4d0c-ab8a-79e6eec769ee", + "name": "messageChannelMessageAssociations" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c44b95ee-3e23-48c0-864f-eb693a46719d", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd02d52c8-379b-476d-84d6-1222c2179db7', - type: 'LINKS', - name: 'linkedinLink', - label: 'Linkedin', - description: 'Contact’s Linkedin account', - icon: 'IconBrandLinkedin', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - primaryLinkUrl: "''", - secondaryLinks: null, - primaryLinkLabel: "''", + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "316e028e-acbf-4d5e-a7ad-28ba9ae41938", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '504f7e23-1476-422b-ac1d-5d86d3d33022', - type: 'RELATION', - name: 'company', - label: 'Company', - description: 'Contact’s company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'd9add14d-13bd-4bb7-abab-06d4fdc78a3e', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '504f7e23-1476-422b-ac1d-5d86d3d33022', - name: 'company', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - targetFieldMetadata: { - __typename: 'field', - id: '37abc2ae-9f44-4bc0-8277-e3ddfd54738c', - name: 'people', + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "87d926ac-0aab-4ea6-b41f-7ab64cbdd65b", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "139c4436-2b14-41f0-a29f-64da3c7f46cf", + "type": "TEXT", + "name": "messageExternalId", + "label": "Message External Id", + "description": "Message id from the messaging provider", + "icon": "IconHash", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "16d3b512-51f7-451a-8531-666b7ad80bcb", + "type": "SELECT", + "name": "direction", + "label": "Direction", + "description": "Message Direction", + "icon": "IconDirection", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'INCOMING'", + "options": [ + { + "id": "de903213-75ec-464b-b4ea-29b636638475", + "color": "green", + "label": "Incoming", + "value": "INCOMING", + "position": 0 }, + { + "id": "2d0e7921-4cb4-41ac-87a6-263957a0f037", + "color": "blue", + "label": "Outgoing", + "value": "OUTGOING", + "position": 1 + } + ], + "settings": null, + "relationDefinition": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "activity", + "namePlural": "activities", + "labelSingular": "Activity", + "labelPlural": "Activities", + "description": "An activity", + "icon": "IconCheckbox", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": true, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "e865ea21-e17e-47e3-8d14-6b3e4aa8b6a9", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "f5874304-d8ee-4cba-93dc-4f8f3d4826c7", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_29e3cc1255fe5ae28e61841001c", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "c858a5d9-2120-460a-9006-827014ce7de5", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "f64fd8c3-ce7d-462f-b12d-1437434cd614" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "26f6e296-e919-4239-985e-d9c26ada07f1", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_4fd6a4b57c6237b197275440102", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "2914f54a-0fd1-4467-b8b7-b3564ea2eeb5", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "a5636fee-d403-4824-b2fd-bfdc1144927c" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "5e838e0c-73c2-4e9c-abed-b4e117ec5ef0", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "9d00fec5-f501-4c12-831d-78936dca9c4f" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjE2" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ccd81283-2fcb-445c-af6f-c2ac27a42824", + "type": "RELATION", + "name": "comments", + "label": "Comments", + "description": "Activity comments", + "icon": "IconComment", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "ed3d480f-cc49-4fee-ae36-94e6edd64940", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "nameSingular": "activity", + "namePlural": "activities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "ccd81283-2fcb-445c-af6f-c2ac27a42824", + "name": "comments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "eda936a5-97b9-4b9f-986a-d8e19e8ea882", + "nameSingular": "comment", + "namePlural": "comments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "04e07930-a3f1-4f57-9265-7364f18f2651", + "name": "activity" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "eac47cad-333f-40d9-bb57-0f9239520875", + "type": "DATE_TIME", + "name": "reminderAt", + "label": "Reminder Date", + "description": "Activity reminder date", + "icon": "IconCalendarEvent", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9c2c3c63-b1ef-4065-b314-93d812db936e", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'daab9749-7d39-44cb-9557-23e0e257aaad', - type: 'RELATION', - name: 'attachments', - label: 'Attachments', - description: 'Attachments linked to the contact.', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'e2ac522a-6bd8-4e24-9171-b9c00acf8ed1', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'daab9749-7d39-44cb-9557-23e0e257aaad', - name: 'attachments', - }, - targetObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - targetFieldMetadata: { - __typename: 'field', - id: '610633e7-0221-4838-adaf-71943d18a5ca', - name: 'person', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e865ea21-e17e-47e3-8d14-6b3e4aa8b6a9", + "type": "TEXT", + "name": "title", + "label": "Title", + "description": "Activity title", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d2f57ffe-0cbd-40a0-b83a-1939aaeac560", + "type": "RELATION", + "name": "assignee", + "label": "Assignee", + "description": "Activity assignee", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "1756bbce-2212-4ec2-b1e3-5053810abdb1", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "nameSingular": "activity", + "namePlural": "activities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "d2f57ffe-0cbd-40a0-b83a-1939aaeac560", + "name": "assignee" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "be802643-0a4b-42d1-a87c-606fce69f9f7", + "name": "assignedActivities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "054b0615-518b-4b65-84ec-8663b07bff43", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6e46c199-d4f9-4c60-b9bb-19da859991b4', - type: 'RELATION', - name: 'timelineActivities', - label: 'Events', - description: 'Events linked to the person', - icon: 'IconTimelineEvent', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'bc97fb28-bb40-41de-9535-4bae43cf653c', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '6e46c199-d4f9-4c60-b9bb-19da859991b4', - name: 'timelineActivities', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - targetFieldMetadata: { - __typename: 'field', - id: '9e9d4989-fdf2-4e71-90af-aae2ef0b4923', - name: 'person', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9d00fec5-f501-4c12-831d-78936dca9c4f", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1b094a8b-20f7-4402-8fdc-40af2405186f", + "type": "RELATION", + "name": "author", + "label": "Author", + "description": "Activity author", + "icon": "IconUserCircle", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "c07499e3-5511-4e95-82de-5d2490c89470", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "nameSingular": "activity", + "namePlural": "activities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "1b094a8b-20f7-4402-8fdc-40af2405186f", + "name": "author" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8e4da134-4b27-4f18-9fae-dddee6c6f3e9", + "name": "authoredActivities" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a5636fee-d403-4824-b2fd-bfdc1144927c", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'aa5e7931-e042-45d5-af4a-e4c22979a3b7', - type: 'RELATION', - name: 'calendarEventParticipants', - label: 'Calendar Event Participants', - description: 'Calendar Event Participants', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '7aced498-e104-4898-939c-187937ea7bca', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'aa5e7931-e042-45d5-af4a-e4c22979a3b7', - name: 'calendarEventParticipants', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'd2ea4c05-34cd-4c7c-9215-d044c9c92522', - nameSingular: 'calendarEventParticipant', - namePlural: 'calendarEventParticipants', - }, - targetFieldMetadata: { - __typename: 'field', - id: '2f77bc8e-26dc-40b1-964a-f0748feb193a', - name: 'person', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "df718d85-fe6c-4740-8397-e7b3d3809ce8", + "type": "TEXT", + "name": "body", + "label": "Body", + "description": "Activity body", + "icon": "IconList", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7d84599b-e518-4dcf-8719-1b7a78843303", + "type": "DATE_TIME", + "name": "dueAt", + "label": "Due Date", + "description": "Activity due date", + "icon": "IconCalendarEvent", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "247a39b1-477f-4727-abe3-11f17a816611", + "type": "RELATION", + "name": "activityTargets", + "label": "Targets", + "description": "Activity targets", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "2ed29dba-4fa9-47d4-b5cb-7cdf6912267f", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "nameSingular": "activity", + "namePlural": "activities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "247a39b1-477f-4727-abe3-11f17a816611", + "name": "activityTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "89b493ae-6316-4de6-894b-e65566e3ca3a", + "name": "activity" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fe4cb329-682f-426b-b367-08f7ae5f3e10", + "type": "TEXT", + "name": "type", + "label": "Type", + "description": "Activity type", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'Note'", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f64fd8c3-ce7d-462f-b12d-1437434cd614", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ab39f722-059b-4804-8683-a75f58db81c3", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Activity attachments", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "58616cac-8d7a-4148-9051-a6878ca7e361", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "nameSingular": "activity", + "namePlural": "activities" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "ab39f722-059b-4804-8683-a75f58db81c3", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "7592ab0d-a3bd-459f-a2cb-8220148b7cc6", + "name": "activity" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "aacc33bd-7ba4-4885-a43a-761c48826279", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "657693c8-662d-4679-b89e-d930d0c04ad9", + "type": "DATE_TIME", + "name": "completedAt", + "label": "Completion Date", + "description": "Activity completion date", + "icon": "IconCheck", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "50f61b05-868d-425b-ab3f-c085e1652d82", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "9561ae08-0209-4d26-ade1-04fcf0b5ee55", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "a6ec8c2f-707f-4bf8-a3de-51d7424f7f53", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_260f80ae1d2ccc67388995d6d05", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "b0ea4747-200b-4948-a5a0-10f6b7150d72", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_6d269465206d2f3e283ce479b2e", + "indexWhereClause": "\"deletedAt\" IS NULL", + "indexType": "BTREE", + "isUnique": true, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "6584884e-629c-4a0c-9531-1e5f9606efc5", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "2e706f77-92fe-40e2-847e-f9d03c4e8762" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "5088ff87-fa9f-494b-8052-f30b42a9d54b", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "779c3768-2387-4954-ac78-eac2266b879c" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjk=" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9561ae08-0209-4d26-ade1-04fcf0b5ee55", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2e706f77-92fe-40e2-847e-f9d03c4e8762", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "779c3768-2387-4954-ac78-eac2266b879c", + "type": "UUID", + "name": "fieldMetadataId", + "label": "Field Metadata Id", + "description": "View Field target field", + "icon": "IconTag", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "03e37726-2233-4ff6-ac40-423aad045e61", + "type": "NUMBER", + "name": "position", + "label": "Position", + "description": "View Field position", + "icon": "IconList", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": 0, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a292d9ab-60ac-4483-89a7-4473f1f7faa4", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a8a3d68a-a1b1-4912-aa13-51f088c6a754', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e442f814-f8a6-44e9-b60c-d736afec87dd', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a91e4125-7885-4b3c-9672-0f6d2fc49c07', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4a9a6c3e-633d-47d6-99bc-b8e6e9b6aad9', - type: 'TEXT', - name: 'jobTitle', - label: 'Job Title', - description: 'Contact’s job title', - icon: 'IconBriefcase', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b801b0d2-2a24-42be-b878-ef439ef7ea78', - type: 'TEXT', - name: 'intro', - label: 'Intro', - description: "Contact's Intro", - icon: 'IconNote', - isCustom: true, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:42.038Z', - updatedAt: '2024-09-25T13:45:42.038Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c188f5b7-2259-4207-87d2-5232ec775029', - type: 'RELATION', - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the contact', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '001dae2b-80e6-4e2d-b5fe-ee0349e940d7', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'c188f5b7-2259-4207-87d2-5232ec775029', - name: 'favorites', - }, - targetObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - targetFieldMetadata: { - __typename: 'field', - id: '8e506212-1b66-4981-95d6-f0ac83f5d869', - name: 'person', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d6a609c8-f596-46a2-acfc-086adea1744f", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5cdf5de5-6c7f-4787-b47d-de5e3787e670', - type: 'MULTI_SELECT', - name: 'workPreference', - label: 'Work Preference', - description: "Person's Work Preference", - icon: 'IconHome', - isCustom: true, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.291Z', - updatedAt: '2024-09-25T13:45:42.291Z', - defaultValue: null, - options: [ - { - id: '4fa9fd50-9206-490f-92e3-f143915a6088', - color: 'green', - label: 'On-Site', - value: 'ON_SITE', - position: 0, - }, - { - id: 'abc69904-c7cb-4b4b-888d-0b5bd64f0edf', - color: 'turquoise', - label: 'Hybrid', - value: 'HYBRID', - position: 1, - }, - { - id: '1cc7265d-87ca-47fc-835e-5956108bb6d2', - color: 'sky', - label: 'Remote Work', - value: 'REMOTE_WORK', - position: 2, - }, - ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1315ca79-3abd-4b7f-917e-8949db3e01f3', - type: 'RATING', - name: 'performanceRating', - label: 'Performance Rating', - description: "Person's Performance Rating", - icon: 'IconStars', - isCustom: true, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.424Z', - updatedAt: '2024-09-25T13:45:42.424Z', - defaultValue: null, - options: [ - { - id: 'fc406c33-e6dc-4e2c-b10c-d0c86fa17108', - label: '1', - value: 'RATING_1', - position: 0, - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "639e87d6-fbfd-4cd0-9b61-c374f2b0f816", + "type": "BOOLEAN", + "name": "isVisible", + "label": "Visible", + "description": "View Field visibility", + "icon": "IconEye", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": true, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a6aec827-c50d-4079-aff3-a7b4632d74ea", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "adffcf84-60be-48b3-bb3e-a13d5451cc84", + "type": "NUMBER", + "name": "size", + "label": "Size", + "description": "View Field size", + "icon": "IconEye", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": 0, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "911faf74-aef1-4b31-a5a3-f1ed80496f18", + "type": "RELATION", + "name": "view", + "label": "View", + "description": "View Field related view", + "icon": "IconLayoutCollage", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7184d260-316e-4e2c-af72-431957b1af98", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "50f61b05-868d-425b-ab3f-c085e1652d82", + "nameSingular": "viewField", + "namePlural": "viewFields" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "911faf74-aef1-4b31-a5a3-f1ed80496f18", + "name": "view" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "c46916fc-0528-4331-9766-6ac2247a70fb", + "nameSingular": "view", + "namePlural": "views" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8c46a404-3ed7-4a94-8a02-e9b03197de5e", + "name": "viewFields" + } + } + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "45b7e1cf-792c-45fa-8d6a-0d5e67e1fa42", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "workflowRun", + "namePlural": "workflowRuns", + "labelSingular": "Workflow Run", + "labelPlural": "Workflow Runs", + "description": "A workflow run", + "icon": "IconHistory", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "a93f8b7c-6f7b-434f-9c7c-c316640d959a", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "babe87a1-7a4d-41a3-b53b-4b0e388a0724", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_eee970874f46ff99eefc0015001", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "e5983670-2cb1-43d9-96a4-423e039570d3", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "986ce5ad-1381-4fd4-84ba-a91e2582d0ca" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "1b77049d-6e10-4dce-a985-f76540e522a4", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_faa5772594c4ce15b9305919f2f", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "075185d5-c0ec-4b02-8fe0-266cca150361", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "6b7c15a7-bc2e-4ebd-9083-9e561573f4b2" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjE0" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6b7c15a7-bc2e-4ebd-9083-9e561573f4b2", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true + }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b5683731-4a83-493a-b0f6-5a521b1fdc65", + "type": "RAW_JSON", + "name": "output", + "label": "Output", + "description": "Json object to provide output of the workflow run", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e0e5b711-ccda-4616-98e2-736d43e3b0b1", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0b00ed15-16de-44da-801d-29633021ceaa", + "type": "DATE_TIME", + "name": "startedAt", + "label": "Workflow run started at", + "description": "Workflow run started at", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a93f8b7c-6f7b-434f-9c7c-c316640d959a", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "Name of the workflow run", + "icon": "IconText", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "986ce5ad-1381-4fd4-84ba-a91e2582d0ca", + "type": "UUID", + "name": "workflowId", + "label": "Workflow id (foreign key)", + "description": "Workflow linked to the run. id foreign key", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "351e2e90-ca93-4e66-9733-811998b116d1", + "type": "SELECT", + "name": "status", + "label": "Workflow run status", + "description": "Workflow run status", + "icon": "IconStatusChange", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "'NOT_STARTED'", + "options": [ { - id: '6657fe2f-4e4f-4725-b088-d4c01d16bfc7', - label: '2', - value: 'RATING_2', - position: 1, + "id": "79559b6a-641c-423a-8d76-bfb6f571da2e", + "color": "grey", + "label": "Not started", + "value": "NOT_STARTED", + "position": 0 }, { - id: '21f68a36-568c-468f-8115-bc64b0473371', - label: '3', - value: 'RATING_3', - position: 2, + "id": "d2443780-e320-435f-b7ba-9b17a77d401c", + "color": "yellow", + "label": "Running", + "value": "RUNNING", + "position": 1 }, { - id: 'fc09af32-0f32-422f-9def-c456a48e7e80', - label: '4', - value: 'RATING_4', - position: 3, + "id": "e6eb98ea-9413-49d0-a7ef-1f04980890c6", + "color": "green", + "label": "Completed", + "value": "COMPLETED", + "position": 2 }, { - id: '0c40c9f6-5d06-4692-8c8a-6dc14c3dc4be', - label: '5', - value: 'RATING_5', - position: 4, - }, + "id": "85887608-fd25-4798-a91e-90f44d2c91e1", + "color": "red", + "label": "Failed", + "value": "FAILED", + "position": 3 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '749e13b2-5430-4993-83db-635c6ff11d1a', - type: 'LINKS', - name: 'xLink', - label: 'X', - description: 'Contact’s X/Twitter account', - icon: 'IconBrandX', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - primaryLinkUrl: "''", - secondaryLinks: null, - primaryLinkLabel: "''", + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1e1810ae-6ebf-49a1-b7e4-2b217c3a5a13", + "type": "RELATION", + "name": "workflow", + "label": "Workflow", + "description": "Workflow linked to the run.", + "icon": "IconSettingsAutomation", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "e73cc998-6f8b-4968-a56f-504738c4aa71", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "45b7e1cf-792c-45fa-8d6a-0d5e67e1fa42", + "nameSingular": "workflowRun", + "namePlural": "workflowRuns" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "1e1810ae-6ebf-49a1-b7e4-2b217c3a5a13", + "name": "workflow" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "7cab9c82-929f-4ea3-98e1-5c221a12263d", + "nameSingular": "workflow", + "namePlural": "workflows" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "1f691bcc-0b90-452c-b922-54a6f39e9e37", + "name": "runs" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "3c44c451-c804-49f0-8505-1b6cd9b9ff8d", + "type": "UUID", + "name": "workflowVersionId", + "label": "Workflow version id (foreign key)", + "description": "Workflow version linked to the run. id foreign key", + "icon": "IconVersions", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2df11dc4-8ac5-4832-840d-391487e2743b", + "type": "ACTOR", + "name": "createdBy", + "label": "Created by", + "description": "The creator of the record", + "icon": "IconCreativeCommonsSa", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "name": "''", + "source": "'MANUAL'" }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '0f7b1621-5da6-439a-927f-948fd2dd6f29', - type: 'RELATION', - name: 'noteTargets', - label: 'Notes', - description: 'Notes tied to the contact', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '4bde4058-4875-4a16-9cc3-4e387121a875', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '0f7b1621-5da6-439a-927f-948fd2dd6f29', - name: 'noteTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '77508442-f0de-4809-b690-3c998edfc0b5', - name: 'person', - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ca88a1c5-f009-46e7-8350-640d4154c203", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Workflow run position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "aed8a050-3ad5-4db6-b8e3-ec207e5e381e", + "type": "DATE_TIME", + "name": "endedAt", + "label": "Workflow run ended at", + "description": "Workflow run ended at", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ff72aee0-1e66-4493-a057-4f4455f6b738", + "type": "RELATION", + "name": "workflowVersion", + "label": "Workflow version", + "description": "Workflow version linked to the run.", + "icon": "IconVersions", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "5a8466a5-1aa6-48e2-a415-878bcb28eb0e", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "45b7e1cf-792c-45fa-8d6a-0d5e67e1fa42", + "nameSingular": "workflowRun", + "namePlural": "workflowRuns" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "ff72aee0-1e66-4493-a057-4f4455f6b738", + "name": "workflowVersion" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "e5915d30-4425-4c4c-a9c4-1b4bff20c469", + "nameSingular": "workflowVersion", + "namePlural": "workflowVersions" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "8afee0ef-f4da-41bf-824a-e7cb357d8fc7", + "name": "runs" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bcd5dc97-b168-4c12-9624-9a6de51d5497", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '759da4e9-e9c6-4827-9802-5b7b4021448f', - type: 'TEXT', - name: 'city', - label: 'City', - description: 'Contact’s city', - icon: 'IconMap', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '48f76fc3-3c82-463d-afa7-977011eed7c8', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '23c64ee1-4935-4a25-b401-afc08a0967fd', - type: 'RELATION', - name: 'activityTargets', - label: 'Activities', - description: 'Activities tied to the contact', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '22f8c2a7-9887-4642-821c-6fefaab56aed', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '23c64ee1-4935-4a25-b401-afc08a0967fd', - name: 'activityTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e241490a-b533-4c60-8fc8-a1cbda8d7e1d', - nameSingular: 'activityTarget', - namePlural: 'activityTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '867aff40-ddf5-4af8-a3f5-6359ab91eb2c', - name: 'person', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8f462d3d-8f64-4ebb-a4a3-b0b89ff804ce", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd4a5fecc-285b-42d7-8eb4-96fc2a6838c4', - type: 'PHONES', - name: 'phones', - label: 'Phones', - description: 'Contact’s phone numbers', - icon: 'IconPhone', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - additionalPhones: null, - primaryPhoneNumber: "''", - primaryPhoneCountryCode: "''", - }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bb5900a5-29ff-46bb-8bbb-7dbedd844e29', - type: 'ACTOR', - name: 'createdBy', - label: 'Created by', - description: 'The creator of the record', - icon: 'IconCreativeCommonsSa', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - name: "''", - source: "'MANUAL'", - }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '54fbea0f-ce3f-4d28-8fa4-abcfe1ae3d54', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '718ee8a6-a294-4609-91d4-7ab0e83d996f', - type: 'POSITION', - name: 'position', - label: 'Position', - description: 'Person record Position', - icon: 'IconHierarchy2', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '779bdf5a-a28d-48be-8d02-b6ca93851829', - type: 'RELATION', - name: 'messageParticipants', - label: 'Message Participants', - description: 'Message Participants', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '8c36bb62-2757-4c24-88da-160a6a9e56d6', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '779bdf5a-a28d-48be-8d02-b6ca93851829', - name: 'messageParticipants', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'ed425cdd-b5c8-4a35-8294-d3486a0c6149', - nameSingular: 'messageParticipant', - namePlural: 'messageParticipants', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'f3db188f-7329-40bc-9978-e30e5c07d962', - name: 'person', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7f8249b8-5919-4fee-81cf-b4dfdb89cf4d', - type: 'EMAILS', - name: 'emails', - label: 'Emails', - description: 'Contact’s Emails', - icon: 'IconMail', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - primaryEmail: "''", - additionalEmails: null, - }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'b328a712-5dc3-457a-aa56-8631f1b57248', - type: 'RELATION', - name: 'taskTargets', - label: 'Tasks', - description: 'Tasks tied to the contact', - icon: 'IconCheckbox', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'c0c28147-9606-4d8f-9c27-688f19c00dc4', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'b328a712-5dc3-457a-aa56-8631f1b57248', - name: 'taskTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'f823669a-4e86-415e-8758-be44b864de1c', - nameSingular: 'taskTarget', - namePlural: 'taskTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '26cc6ba3-cff7-4b84-bf78-71823187a824', - name: 'person', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '377efd0d-9798-4522-b9db-73c19bf55e26', - type: 'TEXT', - name: 'avatarUrl', - label: 'Avatar', - description: 'Contact’s avatar', - icon: 'IconFileUpload', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3a34e81d-d5b1-417d-9831-a355040a6f44', - type: 'PHONES', - name: 'whatsapp', - label: 'Whatsapp', - description: "Contact's Whatsapp Number", - icon: 'IconBrandWhatsapp', - isCustom: true, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:42.159Z', - updatedAt: '2024-09-25T13:45:42.159Z', - defaultValue: { - additionalPhones: null, - primaryPhoneNumber: "''", - primaryPhoneCountryCode: "''", - }, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '1e1abbd5-5b66-4ddc-bbf8-d049802bb93e', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'note', - namePlural: 'notes', - labelSingular: 'Note', - labelPlural: 'Notes', - description: 'A note', - icon: 'IconNotes', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '7ffc4d21-aa5d-4f0f-bc91-61c72660f2ba', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEx', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "d065441d-308f-4fc9-845d-30c634328802", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "f130efec-e85d-4aae-9178-4d3a7043f155", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_899f0157b7ab84de320daec7041", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "88d0bdd6-b736-4e77-ac0d-ae165ae66db5", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "d4cc7cf0-d1b1-4be9-af85-de8d8e184ed1" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "be1d11f7-41e8-470d-bac8-1da9e1c06cd4", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_45db58e96a1bb9769a13a02c828", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "915aa8e3-2bd6-440f-a8b5-ba746caf88cb", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "dc199543-c1a2-44d6-861b-70631e9ba86a" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "a188d050-017d-4863-8ac8-0bcdac2fe36c", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "adf5b30e-3dad-46d9-b69b-caf13743a69c" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "422e32e1-5431-4946-be58-eac598431d29", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_6eb4b6d76fb7806d24d08bb1766", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "497ab28c-706d-4b61-befe-9823b5a140f3", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "bb01f3ff-e3d2-4f56-98b6-7cb8e41b17a5" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "aa082553-f078-48b1-976f-47d477a8ee11", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "dc199543-c1a2-44d6-861b-70631e9ba86a" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "d8d0f396-224e-4d9e-8d44-f96044ff6378", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_224c121e7e3114e53f42b5774cb", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "5b205e1b-9c11-49a8-917b-a0ae7695e0e2", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "949994a2-dedb-4b12-967a-bf8646549ec2" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEz" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f115229b-f5b3-4623-ac80-f8bf3df5e077', - type: 'RELATION', - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the note', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'aeec4288-a886-4c86-8f42-1be726bd4fb4', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '1e1abbd5-5b66-4ddc-bbf8-d049802bb93e', - nameSingular: 'note', - namePlural: 'notes', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'f115229b-f5b3-4623-ac80-f8bf3df5e077', - name: 'favorites', - }, - targetObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - targetFieldMetadata: { - __typename: 'field', - id: '0ecb3679-5ff7-4b55-9ed3-9927bc9e184b', - name: 'note', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d065441d-308f-4fc9-845d-30c634328802", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "54a9d278-cf83-4152-bdfb-f26245d39d65", + "type": "RELATION", + "name": "person", + "label": "Person", + "description": "ActivityTarget person", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "85634196-b66b-4921-b30f-c4e078b58926", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "54a9d278-cf83-4152-bdfb-f26245d39d65", + "name": "person" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "418c54ba-a0da-4feb-8198-9287bf38e31c", + "name": "activityTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8972d18f-9c46-4d11-bffb-f77278a17b99", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ed46299b-4006-45b4-aaa4-2dc7c0c25613', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '54952f24-63cc-475e-ab4c-b0f3ad6400bc', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'bef43ac8-834a-4a86-8bfb-5bed6cd94a57', - type: 'RELATION', - name: 'noteTargets', - label: 'Relations', - description: 'Note targets', - icon: 'IconArrowUpRight', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'e512fc88-2b02-4ba4-a118-ead545db5a63', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '1e1abbd5-5b66-4ddc-bbf8-d049802bb93e', - nameSingular: 'note', - namePlural: 'notes', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'bef43ac8-834a-4a86-8bfb-5bed6cd94a57', - name: 'noteTargets', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'f274711e-b4cd-4a13-b74d-d48205f61332', - nameSingular: 'noteTarget', - namePlural: 'noteTargets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '9d568132-6cbc-4e87-95e8-7c2509549391', - name: 'note', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b3d96a62-4d15-433d-bd4f-caf3c62d1876", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '210b544b-46f7-422d-84e7-328ef270f081', - type: 'RELATION', - name: 'timelineActivities', - label: 'Timeline Activities', - description: 'Timeline Activities linked to the note.', - icon: 'IconTimelineEvent', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'e122b1c1-7518-425d-854c-d0817d42988b', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '1e1abbd5-5b66-4ddc-bbf8-d049802bb93e', - nameSingular: 'note', - namePlural: 'notes', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '210b544b-46f7-422d-84e7-328ef270f081', - name: 'timelineActivities', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2ee34d7c-4efb-4ac2-abed-a53dff446b0b', - nameSingular: 'timelineActivity', - namePlural: 'timelineActivities', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'db7ab4e8-9d93-4f45-bbbf-f68eb31776cb', - name: 'note', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d4cc7cf0-d1b1-4be9-af85-de8d8e184ed1", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9b42b1c9-98e0-4893-9ae9-3e9195dc904a", + "type": "UUID", + "name": "rocketId", + "label": "Rocket ID (foreign key)", + "description": "ActivityTarget Rocket id foreign key", + "icon": null, + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.713Z", + "updatedAt": "2024-10-10T15:05:42.713Z", + "defaultValue": null, + "options": null, + "settings": { + "isForeignKey": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd80706c2-3c5d-491f-9759-b05b25004799', - type: 'POSITION', - name: 'position', - label: 'Position', - description: 'Note record position', - icon: 'IconHierarchy2', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2238e043-a33f-4e8d-99d6-386cd0d2ea3b', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c996b13e-a787-44f7-ad7a-2ba22afd46bc', - type: 'ACTOR', - name: 'createdBy', - label: 'Created by', - description: 'The creator of the record', - icon: 'IconCreativeCommonsSa', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: { - name: "''", - source: "'MANUAL'", + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "89b493ae-6316-4de6-894b-e65566e3ca3a", + "type": "RELATION", + "name": "activity", + "label": "Activity", + "description": "ActivityTarget activity", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "2ed29dba-4fa9-47d4-b5cb-7cdf6912267f", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "89b493ae-6316-4de6-894b-e65566e3ca3a", + "name": "activity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "5a1aa92b-1ee9-4a7e-ab08-ca8c1e462d16", + "nameSingular": "activity", + "namePlural": "activities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "247a39b1-477f-4727-abe3-11f17a816611", + "name": "activityTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "36de1418-2c3d-4444-b88f-606993e3d796", + "type": "RELATION", + "name": "opportunity", + "label": "Opportunity", + "description": "ActivityTarget opportunity", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "a0f78a63-3342-48c2-966d-2de9111ef8ca", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "36de1418-2c3d-4444-b88f-606993e3d796", + "name": "opportunity" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "ba574a70-ed4f-450b-be6b-71907d7264cd", + "name": "activityTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a0752532-9ed5-4ba1-8ee4-eb7393d36a62", + "type": "RELATION", + "name": "company", + "label": "Company", + "description": "ActivityTarget company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "75f42dd7-0c3a-4658-98d2-7af163fbcf6a", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "a0752532-9ed5-4ba1-8ee4-eb7393d36a62", + "name": "company" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "b9c2d94a-41dd-4a59-8266-76973d472a09", + "name": "activityTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9deff6cb-fd97-4d2a-9c5b-be2fd90d5d7e", + "type": "RELATION", + "name": "rocket", + "label": "Rocket", + "description": "ActivityTarget Rocket", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.714Z", + "updatedAt": "2024-10-10T15:05:42.714Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0b9d9ac1-f853-4df1-be0e-1b2f6fce2d4f", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "9deff6cb-fd97-4d2a-9c5b-be2fd90d5d7e", + "name": "rocket" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "2951011a-6c7b-4a4c-bded-f212f70ca93a", + "name": "activityTargets" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bb01f3ff-e3d2-4f56-98b6-7cb8e41b17a5", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "949994a2-dedb-4b12-967a-bf8646549ec2", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "adf5b30e-3dad-46d9-b69b-caf13743a69c", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dc199543-c1a2-44d6-861b-70631e9ba86a", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '61375724-caaa-46b1-8e50-4b2f23afac71', - type: 'RICH_TEXT', - name: 'body', - label: 'Body', - description: 'Note body', - icon: 'IconFilePencil', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7ffc4d21-aa5d-4f0f-bc91-61c72660f2ba', - type: 'TEXT', - name: 'title', - label: 'Title', - description: 'Note title', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '27b7400b-e754-4db9-b895-0a9252a015bf', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '80479763-1c19-4465-a62f-cd5e37c9165a', - type: 'RELATION', - name: 'attachments', - label: 'Attachments', - description: 'Note attachments', - icon: 'IconFileImport', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '9a0ad471-2e53-4943-8b28-30950550a9a7', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '1e1abbd5-5b66-4ddc-bbf8-d049802bb93e', - nameSingular: 'note', - namePlural: 'notes', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '80479763-1c19-4465-a62f-cd5e37c9165a', - name: 'attachments', - }, - targetObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - targetFieldMetadata: { - __typename: 'field', - id: '6a5833a9-0741-44f0-948d-424a60d3264e', - name: 'note', - }, - }, - }, - }, - ], - }, - }, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '0c5ade71-e5e7-45a0-b93c-ecb3b84f6287', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '362cb4b7-dda1-4136-9385-4f5402b4f700', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjk=', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4e4f0f26-89bd-41eb-bc00-a591e041ca7d', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '362cb4b7-dda1-4136-9385-4f5402b4f700', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd13848d4-b41e-43b0-87ca-ab40c00fd739', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '81685712-ecaa-4d04-a8d9-e6c93a6bfe7a', - type: 'TEXT', - name: 'displayValue', - label: 'Display Value', - description: 'View Filter Display Value', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f72701d1-8337-4640-84b7-4570cfbe96aa', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e323bb1b-8018-4b6f-b065-37c979caf7fc', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '646c0bfc-071d-44f3-b8d4-428061106500', - type: 'UUID', - name: 'fieldMetadataId', - label: 'Field Metadata Id', - description: 'View Filter target field', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '016a2312-ac04-4d46-b7c7-2d6e24e363c8', - type: 'TEXT', - name: 'value', - label: 'Value', - description: 'View Filter value', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'e09cc7ab-2750-4cd9-86e1-c257dac8b390', - type: 'TEXT', - name: 'operand', - label: 'Operand', - description: 'View Filter operand', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'Contains'", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd1829b60-e886-4dac-8cf3-0d3b84da093d', - type: 'RELATION', - name: 'view', - label: 'View', - description: 'View Filter related view', - icon: 'IconLayoutCollage', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '7ffac7d4-2cfc-4932-9f3c-3ad4ab6eb4f7', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '0c5ade71-e5e7-45a0-b93c-ecb3b84f6287', - nameSingular: 'viewFilter', - namePlural: 'viewFilters', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'd1829b60-e886-4dac-8cf3-0d3b84da093d', - name: 'view', - }, - targetObjectMetadata: { - __typename: 'object', - id: '020d393a-d6ba-431e-945c-174f5dceec6b', - nameSingular: 'view', - namePlural: 'views', - }, - targetFieldMetadata: { - __typename: 'field', - id: '7974ab3b-7d05-4738-a05b-b76840f98328', - name: 'viewFilters', - }, - }, - }, - }, - ], + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "company", + "namePlural": "companies", + "labelSingular": "Company", + "labelPlural": "Companies", + "description": "A company", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "bed55285-cec4-4a78-ba3a-a70febd66dc6", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "371d89ea-c6b5-41b6-a190-1ab22566b8d0", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_UNIQUE_2a32339058d0b6910b0834ddf81", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": true, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "229ae450-d9c8-40fa-ad58-fefe1925b806", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "c41db169-bd37-442d-a8ce-61a60307587c" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "ba420185-6ce2-4162-8705-7e7fb4ceb3b5", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_fb1f4905546cfc6d70a971c76f7", + "indexWhereClause": null, + "indexType": "GIN", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "296575a1-21ac-4821-96b5-3cfc4fda0486", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "6e131b8b-27b6-4b00-8a41-8e35ccca14ae" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "d2c39785-3dfb-41e3-8d72-93438715b82f", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_123501237187c835ede626367b7", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "cf214e76-2c21-408d-a397-fd86f7e77d06", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "68df0343-db1c-46ee-a142-8694d291827a" + } + } + ] + } + } + } + ] }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '081c04be-c9e7-455a-990b-ea6c92bb042f', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'workflowVersion', - namePlural: 'workflowVersions', - labelSingular: 'WorkflowVersion', - labelPlural: 'WorkflowVersions', - description: 'A workflow version', - icon: 'IconVersions', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'ef2dd597-faaa-4b1d-96b7-5953cd8c8539', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEw', + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjI4" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dd208a4e-3e5e-4192-83a1-adbc5b9123a1', - type: 'RAW_JSON', - name: 'steps', - label: 'Version steps', - description: 'Json object to provide steps', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'fe28de2e-8979-4cfd-9b66-03e67e93406b', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dcdf9413-04c8-44f7-ace7-a11950ce3019', - type: 'SELECT', - name: 'status', - label: 'Version status', - description: 'The workflow version status', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'DRAFT'", - options: [ - { - id: '8e499a03-e349-47ec-9d59-b32f2666cf2d', - color: 'yellow', - label: 'Draft', - value: 'DRAFT', - position: 0, - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4da6fb76-9f16-4fd9-baf9-3fe93dd93002", + "type": "ACTOR", + "name": "createdBy", + "label": "Created by", + "description": "The creator of the record", + "icon": "IconCreativeCommonsSa", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "name": "''", + "source": "'MANUAL'" + }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "31df49f2-d793-462e-aca6-be5ac250f069", + "type": "MULTI_SELECT", + "name": "workPolicy", + "label": "Work Policy", + "description": "Company's Work Policy", + "icon": "IconHome", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.123Z", + "updatedAt": "2024-10-10T15:05:42.123Z", + "defaultValue": null, + "options": [ { - id: 'c97e3271-1f41-424a-bd8f-5540f2b79a43', - color: 'green', - label: 'Active', - value: 'ACTIVE', - position: 1, + "id": "4a5d069c-706e-497a-9a22-23a1ff870cc6", + "color": "green", + "label": "On-Site", + "value": "ON_SITE", + "position": 0 }, { - id: '1e708b75-2826-4745-9014-b2427aad60a8', - color: 'red', - label: 'Deactivated', - value: 'DEACTIVATED', - position: 2, + "id": "c8a21cdc-220f-45aa-ad42-506f0e3a0ae8", + "color": "turquoise", + "label": "Hybrid", + "value": "HYBRID", + "position": 1 }, { - id: 'e458f973-723a-4fed-9146-cec11a7887bb', - color: 'grey', - label: 'Archived', - value: 'ARCHIVED', - position: 3, - }, + "id": "3eb0c16b-e0a6-4991-a65d-5b972b12c4da", + "color": "sky", + "label": "Remote Work", + "value": "REMOTE_WORK", + "position": 2 + } ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ef3d8797-2f17-4f31-9970-697fc230df7f', - type: 'RELATION', - name: 'runs', - label: 'Runs', - description: 'Workflow runs linked to the version.', - icon: 'IconVersions', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '2d71efdd-cd73-4056-8c3b-73ec03843110', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '081c04be-c9e7-455a-990b-ea6c92bb042f', - nameSingular: 'workflowVersion', - namePlural: 'workflowVersions', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'ef3d8797-2f17-4f31-9970-697fc230df7f', - name: 'runs', - }, - targetObjectMetadata: { - __typename: 'object', - id: '51dd66f3-a025-4631-9d6a-594419bbda05', - nameSingular: 'workflowRun', - namePlural: 'workflowRuns', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'b38c3f7d-d455-4f1c-b674-66b86c0d56cc', - name: 'workflowVersion', - }, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "77cdca6a-51fd-42d2-bb1c-5e423f721fff", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ebe58c33-17d2-418b-b33f-f5c3907e97d7', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1b223e47-9228-41c4-a420-ff6ed516393e', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '54cde78b-4bd4-436b-b10b-e6de37494161', - type: 'RELATION', - name: 'workflow', - label: 'Workflow', - description: 'WorkflowVersion workflow', - icon: 'IconSettingsAutomation', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '8bcc3362-58ea-46ab-8639-e3def87eb454', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '081c04be-c9e7-455a-990b-ea6c92bb042f', - nameSingular: 'workflowVersion', - namePlural: 'workflowVersions', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '54cde78b-4bd4-436b-b10b-e6de37494161', - name: 'workflow', - }, - targetObjectMetadata: { - __typename: 'object', - id: '470b50d2-333a-4897-92cb-181d4883a0f3', - nameSingular: 'workflow', - namePlural: 'workflows', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'd6fb9120-9aa5-4fdf-a84a-2805bb359855', - name: 'versions', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4ebb0eb9-9ad6-4e5b-b01b-837b0e2c0718', - type: 'RAW_JSON', - name: 'trigger', - label: 'Version trigger', - description: 'Json object to provide trigger', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ef2dd597-faaa-4b1d-96b7-5953cd8c8539', - type: 'TEXT', - name: 'name', - label: 'Name', - description: 'The workflow version name', - icon: 'IconVersions', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd9f1d5c8-ce95-48c3-a4f3-0909aea7e322', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '182c0466-9e03-4500-8cf7-22673e05b299', - type: 'UUID', - name: 'workflowId', - label: 'Workflow id (foreign key)', - description: 'WorkflowVersion workflow id foreign key', - icon: 'IconSettingsAutomation', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, - }, - { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'attachment', - namePlural: 'attachments', - labelSingular: 'Attachment', - labelPlural: 'Attachments', - description: 'An attachment', - icon: 'IconFileImport', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'd76c9b48-5a3e-445f-be15-948de8ba2fc2', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjIy', - }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '426142c4-5a52-4105-a880-387b6dba6362', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4d459669-2ffd-4fd0-b28b-57d8a1eb9434', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1a6dd2bf-3da7-492d-80de-a8891c5307b7', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3669c8b2-ba73-4e9b-be61-10a2023955fd', - type: 'RELATION', - name: 'activity', - label: 'Activity', - description: 'Attachment activity', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'e954bb33-50a5-4f94-85c3-be141fa17f70', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '3669c8b2-ba73-4e9b-be61-10a2023955fd', - name: 'activity', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e1487ae7-cfcd-4c09-bb8b-80a9e1aea91f', - nameSingular: 'activity', - namePlural: 'activities', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'bfa2ab3d-a55b-41ca-906b-9d497aee7ba8', - name: 'attachments', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a4758b6c-4a48-4ec7-8898-d1f91eec75d9", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Company record position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "50c723e9-af8c-455e-a9c6-0dbd591b0258", + "type": "RELATION", + "name": "timelineActivities", + "label": "Timeline Activities", + "description": "Timeline Activities linked to the company", + "icon": "IconIconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0f9bad06-3762-4797-9079-d7d190da55e5", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "50c723e9-af8c-455e-a9c6-0dbd591b0258", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "5096824c-bd72-488b-902e-e5768070e736", + "name": "company" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a19a3726-642e-4b1f-a8e0-0d05ce62dcd4", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": false, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7fbd8d22-49a3-4c55-a80b-1876129eee86", + "type": "RELATION", + "name": "people", + "label": "People", + "description": "People linked to the company.", + "icon": "IconUsers", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "659373cb-ab85-4d36-aed2-58789be66d23", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "7fbd8d22-49a3-4c55-a80b-1876129eee86", + "name": "people" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b74e80b0-7132-469f-bbd9-6e6fc12f04f8", + "nameSingular": "person", + "namePlural": "people" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "7d307698-eece-4e31-8c4c-7d5d596eb542", + "name": "company" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "77add2d7-09c4-4648-b202-f7909fd11442", + "type": "NUMBER", + "name": "employees", + "label": "Employees", + "description": "Number of employees in the company", + "icon": "IconUsers", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8caf11d2-f8c7-41df-948b-10c6e702459c", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '023f376c-023a-4cae-89e8-961add0b3743', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '6a5833a9-0741-44f0-948d-424a60d3264e', - type: 'RELATION', - name: 'note', - label: 'Note', - description: 'Attachment note', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '9a0ad471-2e53-4943-8b28-30950550a9a7', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '6a5833a9-0741-44f0-948d-424a60d3264e', - name: 'note', - }, - targetObjectMetadata: { - __typename: 'object', - id: '1e1abbd5-5b66-4ddc-bbf8-d049802bb93e', - nameSingular: 'note', - namePlural: 'notes', - }, - targetFieldMetadata: { - __typename: 'field', - id: '80479763-1c19-4465-a62f-cd5e37c9165a', - name: 'attachments', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ef38e2d0-9369-4744-840d-85e5841f36dc", + "type": "LINKS", + "name": "xLink", + "label": "X", + "description": "The company Twitter/X account", + "icon": "IconBrandX", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "primaryLinkUrl": "''", + "secondaryLinks": null, + "primaryLinkLabel": "''" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1d3d2f23-c3e6-4ee0-b62e-7668e4f8147d', - type: 'TEXT', - name: 'fullPath', - label: 'Full path', - description: 'Attachment full path', - icon: 'IconLink', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd9a80298-6f72-4b2f-a859-2bd355d36735', - type: 'RELATION', - name: 'author', - label: 'Author', - description: 'Attachment author', - icon: 'IconCircleUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '58c1c703-990d-4296-a410-a5420209b106', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'd9a80298-6f72-4b2f-a859-2bd355d36735', - name: 'author', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6ffaa59f-d5f3-4e2f-b9d5-f69324638f75', - nameSingular: 'workspaceMember', - namePlural: 'workspaceMembers', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'c5df2d21-5db8-4e72-82bf-aeb3ec984ca9', - name: 'authoredAttachments', - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "585ee60d-cc7d-4500-8db9-e38ab8f90a60", + "type": "ADDRESS", + "name": "address", + "label": "Address", + "description": "Address of the company", + "icon": "IconMap", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "addressLat": null, + "addressLng": null, + "addressCity": "''", + "addressState": "''", + "addressCountry": "''", + "addressStreet1": "''", + "addressStreet2": "''", + "addressPostcode": "''" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '42dbb8d7-320b-460d-a25e-943222ae2a9b', - type: 'TEXT', - name: 'type', - label: 'Type', - description: 'Attachment type', - icon: 'IconList', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a7971798-8b85-477e-8a1e-9b2f2fb5da6d', - type: 'UUID', - name: 'rocketId', - label: 'Rocket ID (foreign key)', - description: 'Attachment Rocket id foreign key', - icon: null, - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:42.593Z', - updatedAt: '2024-09-25T13:45:42.593Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '610633e7-0221-4838-adaf-71943d18a5ca', - type: 'RELATION', - name: 'person', - label: 'Person', - description: 'Attachment person', - icon: 'IconUser', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'e2ac522a-6bd8-4e24-9171-b9c00acf8ed1', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '610633e7-0221-4838-adaf-71943d18a5ca', - name: 'person', - }, - targetObjectMetadata: { - __typename: 'object', - id: '2c21d97b-9364-44a7-b916-8f24b8add9a4', - nameSingular: 'person', - namePlural: 'people', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'daab9749-7d39-44cb-9557-23e0e257aaad', - name: 'attachments', - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "bed55285-cec4-4a78-ba3a-a70febd66dc6", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "The company name", + "icon": "IconBuildingSkyscraper", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b9c2d94a-41dd-4a59-8266-76973d472a09", + "type": "RELATION", + "name": "activityTargets", + "label": "Activities", + "description": "Activities tied to the company", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "75f42dd7-0c3a-4658-98d2-7af163fbcf6a", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "b9c2d94a-41dd-4a59-8266-76973d472a09", + "name": "activityTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "a0752532-9ed5-4ba1-8ee4-eb7393d36a62", + "name": "company" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "395bfecf-e9ce-46d2-9612-3d8840ee3f59", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "8323137c-6b37-4ec2-9977-accefa773841", + "type": "RELATION", + "name": "opportunities", + "label": "Opportunities", + "description": "Opportunities linked to the company.", + "icon": "IconTargetArrow", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "c2fcfb71-1f23-47b7-a818-27371a165214", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "8323137c-6b37-4ec2-9977-accefa773841", + "name": "opportunities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "be13cda6-aff5-4003-8fe9-e936011b3325", + "nameSingular": "opportunity", + "namePlural": "opportunities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "a679e0f1-1766-4814-ac8e-64b82329cdb9", + "name": "company" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c41db169-bd37-442d-a8ce-61a60307587c", + "type": "LINKS", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "primaryLinkUrl": "''", + "secondaryLinks": null, + "primaryLinkLabel": "''" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '26668e62-39e7-4842-a198-a657f44206f8', - type: 'RELATION', - name: 'task', - label: 'Task', - description: 'Attachment task', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '5a06cc7e-b994-4a53-881f-d32decfe9f3e', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '26668e62-39e7-4842-a198-a657f44206f8', - name: 'task', - }, - targetObjectMetadata: { - __typename: 'object', - id: '4e9be637-8364-454a-96f9-ecbc318ab884', - nameSingular: 'task', - namePlural: 'tasks', - }, - targetFieldMetadata: { - __typename: 'field', - id: '4f82dbad-cf61-4dd1-ad90-4cec71b288be', - name: 'attachments', - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "9aa7c531-5fcc-4a24-a149-a28daf8d11a3", + "type": "LINKS", + "name": "linkedinLink", + "label": "Linkedin", + "description": "The company Linkedin account", + "icon": "IconBrandLinkedin", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "primaryLinkUrl": "''", + "secondaryLinks": null, + "primaryLinkLabel": "''" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1433d739-29ed-450c-8216-6afea26d21fb', - type: 'RELATION', - name: 'company', - label: 'Company', - description: 'Attachment company', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'ed757882-8668-407f-8fb8-314b68aa58f8', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '1433d739-29ed-450c-8216-6afea26d21fb', - name: 'company', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'b4d6699a-eb22-49e3-ab15-eb292d72975b', - nameSingular: 'company', - namePlural: 'companies', - }, - targetFieldMetadata: { - __typename: 'field', - id: '2395970c-d0a2-43df-9f55-58299e930b34', - name: 'attachments', - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "09e066b4-d809-49c8-908b-51b8b8724a4c", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "9b71c7ff-5d2e-43c4-a524-611e309e6f45", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "09e066b4-d809-49c8-908b-51b8b8724a4c", + "name": "accountOwner" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "b6b66a3c-6c39-4e93-b940-836aced4de12", + "name": "accountOwnerForCompanies" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "408a7fce-1980-48b2-9c0e-9e23b58b5e07", + "type": "RELATION", + "name": "noteTargets", + "label": "Notes", + "description": "Notes tied to the company", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "99a8cc42-5f5d-41f2-9d5a-44e18f8412e4", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "408a7fce-1980-48b2-9c0e-9e23b58b5e07", + "name": "noteTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "nameSingular": "noteTarget", + "namePlural": "noteTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "67bfa361-4269-4494-b2eb-3a9f26f992fd", + "name": "company" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "328a0398-9023-4f24-b4df-ba56f5efcc0e", + "type": "TEXT", + "name": "tagline", + "label": "Tagline", + "description": "Company's Tagline", + "icon": "IconAdCircle", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:41.897Z", + "updatedAt": "2024-10-10T15:05:41.897Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "134b368a-cf99-438e-8105-9150a2827fd4", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites linked to the company", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "3e2f75b9-76aa-436f-8d24-129798ca4090", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "134b368a-cf99-438e-8105-9150a2827fd4", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "3f7749a5-7d4e-4b3c-b5ae-12b8ea631676", + "name": "company" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1b548bb0-c4fc-4232-a18f-b7882b6a1ddf", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Attachments linked to the company", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "c9ce54d1-cb4a-4492-879f-be86056fcce5", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "1b548bb0-c4fc-4232-a18f-b7882b6a1ddf", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "2f907f04-3122-4b7b-bd83-c192cacc4a83", + "name": "company" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "7d98e29b-96a1-4f6b-973e-dac0b3477f03", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '1a8466d6-8be7-458a-a7ea-cdf11b4fe31d', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7dc968df-7127-4e05-b63e-f2e9809324ee', - type: 'UUID', - name: 'noteId', - label: 'Note id (foreign key)', - description: 'Attachment note id foreign key', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7ffec116-99d2-402d-adea-68b731be4c74', - type: 'UUID', - name: 'taskId', - label: 'Task id (foreign key)', - description: 'Attachment task id foreign key', - icon: 'IconNotes', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd76c9b48-5a3e-445f-be15-948de8ba2fc2', - type: 'TEXT', - name: 'name', - label: 'Name', - description: 'Attachment name', - icon: 'IconFileUpload', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'fa9d964c-3d30-4d8b-bc57-9b382053e9e3', - type: 'RELATION', - name: 'opportunity', - label: 'Opportunity', - description: 'Attachment opportunity', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'ca5b3017-82e4-4d9f-94c1-c73a37b56e0b', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - sourceFieldMetadata: { - __typename: 'field', - id: 'fa9d964c-3d30-4d8b-bc57-9b382053e9e3', - name: 'opportunity', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'e2456edb-3fd3-4f8c-9a49-1946108cc5b0', - nameSingular: 'opportunity', - namePlural: 'opportunities', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'aa651efa-1576-4edc-9599-070666a76dda', - name: 'attachments', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "e79f5c59-356b-473d-97f6-69fc4e075134", + "type": "LINKS", + "name": "introVideo", + "label": "Intro Video", + "description": "Company's Intro Video", + "icon": "IconVideo", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.009Z", + "updatedAt": "2024-10-10T15:05:42.009Z", + "defaultValue": { + "primaryLinkUrl": "''", + "secondaryLinks": null, + "primaryLinkLabel": "''" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '133dcd8e-aa07-4c9e-a337-92dabd5f7d03', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'd10c5485-159b-4700-a709-37d3049a8778', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '60f8c4fb-1ab9-44a7-a5bd-e89a0349feb7', - type: 'RELATION', - name: 'rocket', - label: 'Rocket', - description: 'Attachment Rocket', - icon: 'IconBuildingSkyscraper', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:42.595Z', - updatedAt: '2024-09-25T13:45:42.595Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '20cefbaf-15be-4235-a952-39dff94d00f2', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '03041aee-2468-4bec-820e-9ad1c15ac342', - nameSingular: 'attachment', - namePlural: 'attachments', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '60f8c4fb-1ab9-44a7-a5bd-e89a0349feb7', - name: 'rocket', - }, - targetObjectMetadata: { - __typename: 'object', - id: '545ae884-96b2-49d5-9db2-cad1c0cfca24', - nameSingular: 'rocket', - namePlural: 'rockets', - }, - targetFieldMetadata: { - __typename: 'field', - id: '13794481-6a3a-48cb-80c2-109b7558f7b3', - name: 'attachments', - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "eafdfdda-7cda-4fe4-bcaa-be49232fbfd4", + "type": "RELATION", + "name": "taskTargets", + "label": "Tasks", + "description": "Tasks tied to the company", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "e38b7482-42bb-43b3-a36f-9c7eec06d59e", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "39d5f2b7-03ce-41e7-afe9-7710aeb766a2", + "nameSingular": "company", + "namePlural": "companies" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "eafdfdda-7cda-4fe4-bcaa-be49232fbfd4", + "name": "taskTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "nameSingular": "taskTarget", + "namePlural": "taskTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "24a17b5b-e5cd-43c9-bcd8-422a00b0ebf6", + "name": "company" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6e131b8b-27b6-4b00-8a41-8e35ccca14ae", + "type": "TS_VECTOR", + "name": "searchVector", + "label": "Search vector", + "description": "Field used for full-text search", + "icon": "IconUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "dbcb6817-a87a-4d76-8b1c-eca83d525c5d", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": { + "amountMicros": null, + "currencyCode": "''" }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'adaa359c-c834-44bb-8639-44ef1affce2f', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '3486e0e2-053c-4e27-9d5d-c27b5dd739ea', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "68df0343-db1c-46ee-a142-8694d291827a", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5e0a25f0-fe8b-42f3-af2b-423766333ab2", + "type": "BOOLEAN", + "name": "visaSponsorship", + "label": "Visa Sponsorship", + "description": "Company's Visa Sponsorship Policy", + "icon": "IconBrandVisa", + "isCustom": true, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.226Z", + "updatedAt": "2024-10-10T15:05:42.226Z", + "defaultValue": false, + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '027b772b-3cca-4634-931e-23b82dda16c7', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'message', - namePlural: 'messages', - labelSingular: 'Message', - labelPlural: 'Messages', - description: 'Message', - icon: 'IconMessage', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - '2697ab29-9991-4188-9569-8bc6fc079ec6', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjEx', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "2590029a-05d7-4908-8b7a-a253967068a1", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "4fdcef64-197f-438c-8b92-a6712a80e747", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "d0f42493-dfe8-43a9-9c2f-bb0f63759210", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_ca389a7ad7595bb15d733535998", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "8115bdeb-f099-464f-b438-5ac80d23637a", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "c89083d6-f45d-4fd0-8149-9c3a9e71eb1f" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEx" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '827beccf-c3ca-4f24-a349-5d7c8690ac95', - type: 'TEXT', - name: 'headerMessageId', - label: 'Header message Id', - description: 'Message id from the message header', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f51b5646-06b0-45e4-960f-5f8eaeb18c83', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f32d4ef7-cadd-4ce5-84ce-a95fd76fde05', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'c36f257c-2318-4b61-9c63-666e1fc0810c', - type: 'DATE_TIME', - name: 'receivedAt', - label: 'Received At', - description: 'The date the message was received', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '86a6dca6-5ad5-4576-b8f4-4be343e573de', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'f9f525c4-c303-48a0-aaeb-23dcb0ef41bb', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '027b772b-3cca-4634-931e-23b82dda16c7', - nameSingular: 'message', - namePlural: 'messages', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '86a6dca6-5ad5-4576-b8f4-4be343e573de', - name: 'messageChannelMessageAssociations', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'ee346c8e-6ca8-4142-852e-2d9180e80176', - nameSingular: 'messageChannelMessageAssociation', - namePlural: 'messageChannelMessageAssociations', - }, - targetFieldMetadata: { - __typename: 'field', - id: '1d9f0c85-c16f-41e9-9241-2acd90781cdd', - name: 'message', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "743142f7-9e4d-4f92-beae-7d7040233009", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '606cef74-d9c3-4abc-b6ae-bb778f518e49', - type: 'RELATION', - name: 'messageParticipants', - label: 'Message Participants', - description: 'Message Participants', - icon: 'IconUserCircle', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '7048eb73-25bf-4170-9ac0-41b7f8dec24b', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '027b772b-3cca-4634-931e-23b82dda16c7', - nameSingular: 'message', - namePlural: 'messages', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '606cef74-d9c3-4abc-b6ae-bb778f518e49', - name: 'messageParticipants', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'ed425cdd-b5c8-4a35-8294-d3486a0c6149', - nameSingular: 'messageParticipant', - namePlural: 'messageParticipants', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'e2f2b624-93bf-4d16-8517-bf66e43cabc4', - name: 'message', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a8ebb52f-95f7-4c65-bd68-b9d2372907c8", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '21c34ce8-7505-4d6c-9fc8-218dd8532a25', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '48f20f05-700d-4609-965b-8a954bf07e8d', - 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-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '11f38fa4-e7b8-4275-b0b2-59688cb2eed8', - type: 'RELATION', - name: 'messageThread', - label: 'Message Thread Id', - description: 'Message Thread Id', - icon: 'IconHash', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '30c65174-8905-4a32-9239-c5659a1acc9e', - direction: 'MANY_TO_ONE', - sourceObjectMetadata: { - __typename: 'object', - id: '027b772b-3cca-4634-931e-23b82dda16c7', - nameSingular: 'message', - namePlural: 'messages', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '11f38fa4-e7b8-4275-b0b2-59688cb2eed8', - name: 'messageThread', - }, - targetObjectMetadata: { - __typename: 'object', - id: 'b5cd74c7-a68f-4ccb-be66-24604d10a315', - nameSingular: 'messageThread', - namePlural: 'messageThreads', - }, - targetFieldMetadata: { - __typename: 'field', - id: '537e956c-58bb-4ed4-8127-beb0f2d04dd2', - name: 'messages', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "be533c19-a031-4c6d-86cf-3e2fb2defb2f", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c89083d6-f45d-4fd0-8149-9c3a9e71eb1f", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2697ab29-9991-4188-9569-8bc6fc079ec6', - type: 'TEXT', - name: 'subject', - label: 'Subject', - description: 'Subject', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f6a75fcf-f8a3-41dd-b1d0-efce8358e2d2', - type: 'TEXT', - name: 'text', - label: 'Text', - description: 'Text', - icon: 'IconMessage', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '29f11f81-aab0-4b96-971f-24d84c81f1bf', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - ], + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1475304d-4734-4b66-96a8-ed7d84727fe6", + "type": "RELATION", + "name": "workspaceMember", + "label": "Workspace Member", + "description": "Event workspace member", + "icon": "IconCircleUser", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "1aef1a4d-f090-4f5a-8e39-f7d21d465199", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "2590029a-05d7-4908-8b7a-a253967068a1", + "nameSingular": "auditLog", + "namePlural": "auditLogs" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "1475304d-4734-4b66-96a8-ed7d84727fe6", + "name": "workspaceMember" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "f2414140-86ea-4fa3-bc63-ca5dab9f9044", + "nameSingular": "workspaceMember", + "namePlural": "workspaceMembers" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "4af78cad-69c5-4190-a23f-6db322f80f27", + "name": "auditLogs" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "86e941ea-a43a-412c-8197-479adbb09a15", + "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": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "ab8ea51d-bc10-426c-9e5c-65c09c09f5bd", + "type": "TEXT", + "name": "objectMetadataId", + "label": "Object metadata id", + "description": "Object metadata id", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4fdcef64-197f-438c-8b92-a6712a80e747", + "type": "TEXT", + "name": "name", + "label": "Event name", + "description": "Event name/type", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d6812840-4b41-46f8-a5c0-6ad697d00fe3", + "type": "UUID", + "name": "recordId", + "label": "Record id", + "description": "Record id", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0b88c2e2-68a1-488a-ae3c-32f1919ba8b8", + "type": "TEXT", + "name": "objectName", + "label": "Object name", + "description": "Object name", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "be183254-da94-4664-a8d4-b72a26ba115d", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5e414096-d916-4d3f-9710-54a4932078a8", + "type": "RAW_JSON", + "name": "properties", + "label": "Event details", + "description": "Json value for event details", + "icon": "IconListDetails", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } + }, + { + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "nameSingular": "rocket", + "namePlural": "rockets", + "labelSingular": "Rocket", + "labelPlural": "Rockets", + "description": "A rocket", + "icon": "IconRocket", + "isCustom": true, + "isRemote": false, + "isActive": true, + "isSystem": false, + "createdAt": "2024-10-10T15:05:42.702Z", + "updatedAt": "2024-10-10T15:05:42.702Z", + "labelIdentifierFieldMetadataId": null, + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "ee1a3903-9f40-4789-a61c-90716bce789d", + "createdAt": "2024-10-10T15:05:42.750Z", + "updatedAt": "2024-10-10T15:05:42.750Z", + "name": "IDX_530792e4278e7696c4e3e3e55f8", + "indexWhereClause": null, + "indexType": "GIN", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "b6b09e0f-38a7-4c1a-b80b-46e392accdd8", + "createdAt": "2024-10-10T15:05:42.750Z", + "updatedAt": "2024-10-10T15:05:42.750Z", + "order": 0, + "fieldMetadataId": "c2df610f-40a0-4c0f-9c24-dd3356f5f871" + } + } + ] + } + } + } + ] }, - }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjEz" + }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "4d64de07-68da-42c9-b169-d5adf91ae282", + "type": "RELATION", + "name": "favorites", + "label": "Favorites", + "description": "Favorites tied to the Rocket", + "icon": "IconHeart", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.718Z", + "updatedAt": "2024-10-10T15:05:42.718Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "9a12826d-783a-4411-89ac-a2a2369e5eb2", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "4d64de07-68da-42c9-b169-d5adf91ae282", + "name": "favorites" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "cb8c8d67-16c0-4a38-a919-b375845abf42", + "nameSingular": "favorite", + "namePlural": "favorites" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "89fe6ca9-b01e-4f73-8fe2-f51ba3a67024", + "name": "rocket" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "38556e40-979a-4c6a-9328-a99b1392d98f", + "type": "POSITION", + "name": "position", + "label": "Position", + "description": "Position", + "icon": "IconHierarchy2", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.702Z", + "updatedAt": "2024-10-10T15:05:42.702Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c2df610f-40a0-4c0f-9c24-dd3356f5f871", + "type": "TS_VECTOR", + "name": "searchVector", + "label": "Search vector", + "description": "Field used for full-text search", + "icon": null, + "isCustom": false, + "isActive": false, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.747Z", + "updatedAt": "2024-10-10T15:05:42.747Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "492bf0fb-85ee-4805-a41d-6ad94b1bd904", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.702Z", + "updatedAt": "2024-10-10T15:05:42.702Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "d4700cc4-14a1-4264-96c9-0d87ebeeb482", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Deletion date", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.702Z", + "updatedAt": "2024-10-10T15:05:42.702Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "c2721d06-ae7f-40e4-b061-d96179f0be97", + "type": "RELATION", + "name": "attachments", + "label": "Attachments", + "description": "Attachments tied to the Rocket", + "icon": "IconFileImport", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.722Z", + "updatedAt": "2024-10-10T15:05:42.722Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "07793950-4b19-4d72-afda-f1815ec8e5e4", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "c2721d06-ae7f-40e4-b061-d96179f0be97", + "name": "attachments" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "d00ff1e9-774a-4b08-87fb-03d37c24f174", + "nameSingular": "attachment", + "namePlural": "attachments" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "01b00bde-0e1f-4e47-ad06-9df00dd1c7a3", + "name": "rocket" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b3186db8-8ea1-49b6-8922-82e4bdc06eb9", + "type": "RELATION", + "name": "noteTargets", + "label": "Notes", + "description": "Notes tied to the Rocket", + "icon": "IconNotes", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.725Z", + "updatedAt": "2024-10-10T15:05:42.725Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "bd9974b4-9210-4ef3-892d-4adc2d40feb6", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "b3186db8-8ea1-49b6-8922-82e4bdc06eb9", + "name": "noteTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "fd99213f-1b50-4d72-8708-75ba80097736", + "nameSingular": "noteTarget", + "namePlural": "noteTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "a87c2280-8913-4e89-b6a3-4403b70087d4", + "name": "rocket" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "2951011a-6c7b-4a4c-bded-f212f70ca93a", + "type": "RELATION", + "name": "activityTargets", + "label": "Activities", + "description": "Activities tied to the Rocket", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.714Z", + "updatedAt": "2024-10-10T15:05:42.714Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "0b9d9ac1-f853-4df1-be0e-1b2f6fce2d4f", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "2951011a-6c7b-4a4c-bded-f212f70ca93a", + "name": "activityTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "43fe0e45-b323-4b6e-ab98-1d9fe30c9af9", + "nameSingular": "activityTarget", + "namePlural": "activityTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "9deff6cb-fd97-4d2a-9c5b-be2fd90d5d7e", + "name": "rocket" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "baea02d1-1817-4df3-b9eb-c8020452f3e0", + "type": "RELATION", + "name": "timelineActivities", + "label": "Timeline Activities", + "description": "Timeline Activities tied to the Rocket", + "icon": "IconIconTimelineEvent", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.709Z", + "updatedAt": "2024-10-10T15:05:42.709Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "f8ddd621-26f4-4fa8-b426-3f545094bd5f", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "baea02d1-1817-4df3-b9eb-c8020452f3e0", + "name": "timelineActivities" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "b6e22795-68e7-4d18-a242-545afea5a8a9", + "nameSingular": "timelineActivity", + "namePlural": "timelineActivities" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "7d14aef8-f63c-47cd-8ce7-29806518d6ca", + "name": "rocket" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "fd7a600a-93e7-4139-b944-4cd2022f07c6", + "type": "ACTOR", + "name": "createdBy", + "label": "Created by", + "description": "The creator of the record", + "icon": "IconCreativeCommonsSa", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.702Z", + "updatedAt": "2024-10-10T15:05:42.702Z", + "defaultValue": { + "name": "''", + "source": "'MANUAL'" + }, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1fb5fc79-28b2-419f-87cf-ecb498d7d3dd", + "type": "TEXT", + "name": "name", + "label": "Name", + "description": "Name", + "icon": "IconAbc", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.702Z", + "updatedAt": "2024-10-10T15:05:42.702Z", + "defaultValue": "'Untitled'", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "f3e444fc-afa9-45d7-b885-5000c2fa2b7d", + "type": "RELATION", + "name": "taskTargets", + "label": "Tasks", + "description": "Tasks tied to the Rocket", + "icon": "IconCheckbox", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.731Z", + "updatedAt": "2024-10-10T15:05:42.731Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "7df72299-c1f4-4575-98bf-24156cb3e5b8", + "direction": "ONE_TO_MANY", + "sourceObjectMetadata": { + "__typename": "object", + "id": "1e5ee6b2-67e5-4549-bebc-8d35bc6bc649", + "nameSingular": "rocket", + "namePlural": "rockets" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "f3e444fc-afa9-45d7-b885-5000c2fa2b7d", + "name": "taskTargets" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "edfd2da3-26e4-4e84-b490-c0790848dc23", + "nameSingular": "taskTarget", + "namePlural": "taskTargets" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "4c42e3b9-26a9-4ce1-a37a-9606da0bc12a", + "name": "rocket" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "22ea99a0-3835-4e6a-b3ef-af40ec618326", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.702Z", + "updatedAt": "2024-10-10T15:05:42.702Z", + "defaultValue": "now", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "6ba199c2-44a2-4cee-b9f2-ee6d6686b6f8", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:42.702Z", + "updatedAt": "2024-10-10T15:05:42.702Z", + "defaultValue": "now", + "options": null, + "settings": null, + "relationDefinition": null + } + } + ] + } + } }, { - __typename: 'objectEdge', - node: { - __typename: 'object', - id: '020d393a-d6ba-431e-945c-174f5dceec6b', - dataSourceId: '88ab50ee-cf39-4d7d-b004-b55f65b56041', - nameSingular: 'view', - namePlural: 'views', - labelSingular: 'View', - labelPlural: 'Views', - description: '(System) Views', - icon: 'IconLayoutCollage', - isCustom: false, - isRemote: false, - isActive: true, - isSystem: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - labelIdentifierFieldMetadataId: - 'a24df79d-a05a-45e7-8791-b71957dff236', - imageIdentifierFieldMetadataId: null, - fields: { - __typename: 'ObjectFieldsConnection', - pageInfo: { - __typename: 'PageInfo', - hasNextPage: false, - hasPreviousPage: false, - startCursor: 'YXJyYXljb25uZWN0aW9uOjA=', - endCursor: 'YXJyYXljb25uZWN0aW9uOjE1', + "__typename": "objectEdge", + "node": { + "__typename": "object", + "id": "149f1a0d-f528-48a3-a3f8-0203926d07f5", + "dataSourceId": "d8a38ce6-6ac9-4c10-b55f-408386f86290", + "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-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "labelIdentifierFieldMetadataId": "0687870d-58fb-45ee-ad5f-9c35bea78a70", + "imageIdentifierFieldMetadataId": null, + "indexMetadatas": { + "__typename": "ObjectIndexMetadatasConnection", + "edges": [ + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "7e192f75-5a94-4914-a60a-58d324a76ae4", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_a88c3ab301c25202d4b52fb4b1b", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "71fa278a-a8a3-4129-bdaf-8ee244ce5257", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "72a89c96-8301-46b5-b2ba-b05c418a9863" + } + } + ] + } + } + }, + { + "__typename": "indexEdge", + "node": { + "__typename": "index", + "id": "90fc8a97-03c9-4bf3-8de0-7a9bc6417579", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "name": "IDX_92a888b681107c4f78926820db7", + "indexWhereClause": null, + "indexType": "BTREE", + "isUnique": false, + "indexFieldMetadatas": { + "__typename": "IndexIndexFieldMetadatasConnection", + "edges": [ + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "632e255a-abbf-466c-96e1-f9b9c160cfc0", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 1, + "fieldMetadataId": "045d4eed-8f9f-463d-9ee0-4b579c090121" + } + }, + { + "__typename": "indexFieldEdge", + "node": { + "__typename": "indexField", + "id": "e7a0d7d5-0006-4795-b9e4-3ab822aa16e1", + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "order": 0, + "fieldMetadataId": "90e949eb-5d48-4a77-8496-71aa56184df7" + } + } + ] + } + } + } + ] + }, + "fields": { + "__typename": "ObjectFieldsConnection", + "pageInfo": { + "__typename": "PageInfo", + "hasNextPage": false, + "hasPreviousPage": false, + "startCursor": "YXJyYXljb25uZWN0aW9uOjA=", + "endCursor": "YXJyYXljb25uZWN0aW9uOjk=" }, - edges: [ - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '61fe3c78-ab04-4a83-9a40-8560f7285abe', - type: 'RELATION', - name: 'favorites', - label: 'Favorites', - description: 'Favorites linked to the view', - icon: 'IconHeart', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: 'a081c61b-9c8f-4e93-820e-a6c11cb51950', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '020d393a-d6ba-431e-945c-174f5dceec6b', - nameSingular: 'view', - namePlural: 'views', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '61fe3c78-ab04-4a83-9a40-8560f7285abe', - name: 'favorites', - }, - targetObjectMetadata: { - __typename: 'object', - id: '77c79754-bc77-4f77-bf4b-6b7b042500fa', - nameSingular: 'favorite', - namePlural: 'favorites', - }, - targetFieldMetadata: { - __typename: 'field', - id: '46ff8942-360f-4837-9a83-007739c8ba05', - name: 'view', - }, + "edges": [ + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "045d4eed-8f9f-463d-9ee0-4b579c090121", + "type": "DATE_TIME", + "name": "deletedAt", + "label": "Deleted at", + "description": "Date when the record was deleted", + "icon": "IconCalendarMinus", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '027418ee-6028-456f-a570-0b032d35b07f', - type: 'RELATION', - name: 'viewFields', - label: 'View Fields', - description: 'View Fields', - icon: 'IconTag', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '76c82afe-f2bd-4a86-9c7f-4e7fa3918b1b', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '020d393a-d6ba-431e-945c-174f5dceec6b', - nameSingular: 'view', - namePlural: 'views', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '027418ee-6028-456f-a570-0b032d35b07f', - name: 'viewFields', - }, - targetObjectMetadata: { - __typename: 'object', - id: '69c8b455-e982-4fd2-965b-7bd5206cb860', - nameSingular: 'viewField', - namePlural: 'viewFields', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'f74ba2c1-22ab-4827-85ad-d2dbbe2a9b51', - name: 'view', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "1dc48a6a-270b-466a-8e11-9efd02729791", + "type": "RELATION", + "name": "calendarEvent", + "label": "Event ID", + "description": "Event ID", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "daa269f7-c111-492e-88c8-1bfe82e3d637", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "149f1a0d-f528-48a3-a3f8-0203926d07f5", + "nameSingular": "calendarChannelEventAssociation", + "namePlural": "calendarChannelEventAssociations" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "1dc48a6a-270b-466a-8e11-9efd02729791", + "name": "calendarEvent" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "981fd8a9-37a2-4742-98c1-08509d995bd3", + "nameSingular": "calendarEvent", + "namePlural": "calendarEvents" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "2d337999-7468-4f6f-bce0-87679dcb5e2f", + "name": "calendarChannelEventAssociations" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a407c6e4-c9ea-4dd4-838a-230893118ab8", + "type": "TEXT", + "name": "recurringEventExternalId", + "label": "Recurring Event ID", + "description": "Recurring Event ID", + "icon": "IconHistory", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0687870d-58fb-45ee-ad5f-9c35bea78a70", + "type": "UUID", + "name": "id", + "label": "Id", + "description": "Id", + "icon": "Icon123", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "uuid", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "0b649b56-2018-4645-b6d1-3dbb44125b50", + "type": "TEXT", + "name": "eventExternalId", + "label": "Event external ID", + "description": "Event external ID", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "''", + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "5d68a9e6-9e85-4ae4-8601-43e685dcf90b", + "type": "RELATION", + "name": "calendarChannel", + "label": "Channel ID", + "description": "Channel ID", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": true, + "isNullable": true, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": { + "__typename": "RelationDefinition", + "relationId": "c040d959-808f-4b7d-8844-ac87a45c0b04", + "direction": "MANY_TO_ONE", + "sourceObjectMetadata": { + "__typename": "object", + "id": "149f1a0d-f528-48a3-a3f8-0203926d07f5", + "nameSingular": "calendarChannelEventAssociation", + "namePlural": "calendarChannelEventAssociations" + }, + "sourceFieldMetadata": { + "__typename": "field", + "id": "5d68a9e6-9e85-4ae4-8601-43e685dcf90b", + "name": "calendarChannel" + }, + "targetObjectMetadata": { + "__typename": "object", + "id": "8cceadc4-de6b-4ecf-8324-82c6b4eec077", + "nameSingular": "calendarChannel", + "namePlural": "calendarChannels" + }, + "targetFieldMetadata": { + "__typename": "field", + "id": "7ec1ea5f-c98f-4569-91ef-8797294cf183", + "name": "calendarChannelEventAssociations" + } + } + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "90e949eb-5d48-4a77-8496-71aa56184df7", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "a4b46b44-3ff6-46cd-b354-2ae81e3298e8", + "type": "DATE_TIME", + "name": "updatedAt", + "label": "Last update", + "description": "Last time the record was changed", + "icon": "IconCalendarClock", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '4385a72b-bb9d-4ac6-9c08-d9853c468726', - type: 'UUID', - name: 'id', - label: 'Id', - description: 'Id', - icon: 'Icon123', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'uuid', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '421bf244-013a-4962-970a-37150cf38057', - type: 'TEXT', - name: 'type', - label: 'Type', - description: 'View type', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'table'", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '8ee5c1d6-718a-4e43-b468-91563270ae35', - type: 'TEXT', - name: 'icon', - label: 'Icon', - description: 'View icon', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '073a7e52-0c68-4853-a500-5470b026c914', - type: 'SELECT', - name: 'key', - label: 'Key', - description: 'View key', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "'INDEX'", - options: [ - { - id: 'e1a48d3b-78c6-479d-bca7-0816dcf2faec', - color: 'red', - label: 'Index', - value: 'INDEX', - position: 0, - }, - ], - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'ed944e8e-e84d-40ef-aa44-b423453c23f9', - type: 'BOOLEAN', - name: 'isCompact', - label: 'Compact View', - description: 'Describes if the view is in compact mode', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: false, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '5454b125-73c2-438b-991b-eb361bcd6295', - type: 'TEXT', - name: 'kanbanFieldMetadataId', - label: 'kanbanfieldMetadataId', - description: 'View Kanban column field', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '7974ab3b-7d05-4738-a05b-b76840f98328', - type: 'RELATION', - name: 'viewFilters', - label: 'View Filters', - description: 'View Filters', - icon: 'IconFilterBolt', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '7ffac7d4-2cfc-4932-9f3c-3ad4ab6eb4f7', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '020d393a-d6ba-431e-945c-174f5dceec6b', - nameSingular: 'view', - namePlural: 'views', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '7974ab3b-7d05-4738-a05b-b76840f98328', - name: 'viewFilters', - }, - targetObjectMetadata: { - __typename: 'object', - id: '0c5ade71-e5e7-45a0-b93c-ecb3b84f6287', - nameSingular: 'viewFilter', - namePlural: 'viewFilters', - }, - targetFieldMetadata: { - __typename: 'field', - id: 'd1829b60-e886-4dac-8cf3-0d3b84da093d', - name: 'view', - }, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "72a89c96-8301-46b5-b2ba-b05c418a9863", + "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, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": null, + "options": null, + "settings": null, + "relationDefinition": null + } + }, + { + "__typename": "fieldEdge", + "node": { + "__typename": "field", + "id": "b7acd3f1-6921-4a7a-92a6-fbf48572bbc2", + "type": "DATE_TIME", + "name": "createdAt", + "label": "Creation date", + "description": "Creation date", + "icon": "IconCalendar", + "isCustom": false, + "isActive": true, + "isSystem": false, + "isNullable": false, + "isUnique": false, + "createdAt": "2024-10-10T15:05:37.064Z", + "updatedAt": "2024-10-10T15:05:37.064Z", + "defaultValue": "now", + "options": null, + "settings": { + "displayAsRelativeDate": true }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '23b99490-be92-4edc-a939-07e0f64f13eb', - type: 'RELATION', - name: 'viewSorts', - label: 'View Sorts', - description: 'View Sorts', - icon: 'IconArrowsSort', - isCustom: false, - isActive: true, - isSystem: true, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: { - __typename: 'RelationDefinition', - relationId: '6156cfd2-ab7f-47d1-8b4a-5e093f08fb9e', - direction: 'ONE_TO_MANY', - sourceObjectMetadata: { - __typename: 'object', - id: '020d393a-d6ba-431e-945c-174f5dceec6b', - nameSingular: 'view', - namePlural: 'views', - }, - sourceFieldMetadata: { - __typename: 'field', - id: '23b99490-be92-4edc-a939-07e0f64f13eb', - name: 'viewSorts', - }, - targetObjectMetadata: { - __typename: 'object', - id: '6987128d-cf7d-45eb-9bcc-19a406b774ec', - nameSingular: 'viewSort', - namePlural: 'viewSorts', - }, - targetFieldMetadata: { - __typename: 'field', - id: '25ae0938-795a-491a-b029-e4672412e85f', - name: 'view', - }, - }, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '36f1f251-121a-461c-aef5-aba2c9fa39a6', - type: 'UUID', - name: 'objectMetadataId', - label: 'Object Metadata Id', - description: 'View target object', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: '2fcf2221-da1f-4c19-acdc-adfb089ea219', - type: 'POSITION', - name: 'position', - label: 'Position', - description: 'View position', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a0e02b0d-6681-41da-a8a8-48c0bc5ba690', - type: 'DATE_TIME', - name: 'createdAt', - label: 'Creation date', - description: 'Creation date', - icon: 'IconCalendar', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'dbc64e7b-2b59-4e9e-9e1e-bcd9e9f5a57a', - type: 'DATE_TIME', - name: 'deletedAt', - label: 'Deleted at', - description: 'Date when the record was deleted', - icon: 'IconCalendarMinus', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: true, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: null, - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'f5c9b9fc-87fd-4a74-af09-28a330a53bec', - type: 'DATE_TIME', - name: 'updatedAt', - label: 'Last update', - description: 'Last time the record was changed', - icon: 'IconCalendarClock', - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: 'now', - options: null, - relationDefinition: null, - }, - }, - { - __typename: 'fieldEdge', - node: { - __typename: 'field', - settings: {}, - id: 'a24df79d-a05a-45e7-8791-b71957dff236', - type: 'TEXT', - name: 'name', - label: 'Name', - description: 'View name', - icon: null, - isCustom: false, - isActive: true, - isSystem: false, - isNullable: false, - createdAt: '2024-09-25T13:45:32.757Z', - updatedAt: '2024-09-25T13:45:32.757Z', - defaultValue: "''", - options: null, - relationDefinition: null, - }, - }, - ], - }, - }, - }, - ], - }, - } as ObjectMetadataItemsQuery; + "relationDefinition": null + } + } + ] + } + } + } + ] + } + } as ObjectMetadataItemsQuery; \ No newline at end of file diff --git a/packages/twenty-front/src/testing/mock-data/generatedMockObjectMetadataItems.ts b/packages/twenty-front/src/testing/mock-data/generatedMockObjectMetadataItems.ts index 63631396de02..ea4a8fae3850 100644 --- a/packages/twenty-front/src/testing/mock-data/generatedMockObjectMetadataItems.ts +++ b/packages/twenty-front/src/testing/mock-data/generatedMockObjectMetadataItems.ts @@ -5,4 +5,10 @@ export const generatedMockObjectMetadataItems: ObjectMetadataItem[] = mockedStandardObjectMetadataQueryResult.objects.edges.map((edge) => ({ ...edge.node, fields: edge.node.fields.edges.map((edge) => edge.node), + indexMetadatas: edge.node.indexMetadatas.edges.map((index) => ({ + ...index.node, + indexFieldMetadatas: index.node.indexFieldMetadatas?.edges.map( + (indexField) => indexField.node, + ), + })), })); diff --git a/packages/twenty-server/felix b/packages/twenty-server/felix new file mode 160000 index 000000000000..a33b01797795 --- /dev/null +++ b/packages/twenty-server/felix @@ -0,0 +1 @@ +Subproject commit a33b01797795419edef84f122b5214472648d1ce diff --git a/packages/twenty-server/src/database/commands/database-command.module.ts b/packages/twenty-server/src/database/commands/database-command.module.ts index ec6414db9b94..f8207c318b24 100644 --- a/packages/twenty-server/src/database/commands/database-command.module.ts +++ b/packages/twenty-server/src/database/commands/database-command.module.ts @@ -7,7 +7,7 @@ import { DataSeedDemoWorkspaceCommand } from 'src/database/commands/data-seed-de import { DataSeedDemoWorkspaceModule } from 'src/database/commands/data-seed-demo-workspace/data-seed-demo-workspace.module'; import { DataSeedWorkspaceCommand } from 'src/database/commands/data-seed-dev-workspace.command'; import { ConfirmationQuestion } from 'src/database/commands/questions/confirmation.question'; -import { UpgradeTo0_31CommandModule } from 'src/database/commands/upgrade-version/0-31/0-31-upgrade-version.module'; +import { UpgradeTo0_32CommandModule } from 'src/database/commands/upgrade-version/0-32/0-32-upgrade-version.module'; import { TypeORMModule } from 'src/database/typeorm/typeorm.module'; import { BillingSubscription } from 'src/engine/core-modules/billing/entities/billing-subscription.entity'; import { FeatureFlagEntity } from 'src/engine/core-modules/feature-flag/feature-flag.entity'; @@ -46,7 +46,7 @@ import { WorkspaceSyncMetadataModule } from 'src/engine/workspace-manager/worksp DataSeedDemoWorkspaceModule, WorkspaceCacheStorageModule, WorkspaceMetadataVersionModule, - UpgradeTo0_31CommandModule, + UpgradeTo0_32CommandModule, FeatureFlagModule, ], providers: [ diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-add-index-key-to-tasks-and-notes-views.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-add-index-key-to-tasks-and-notes-views.command.ts deleted file mode 100644 index 35f9a55b0744..000000000000 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-add-index-key-to-tasks-and-notes-views.command.ts +++ /dev/null @@ -1,128 +0,0 @@ -import { InjectRepository } from '@nestjs/typeorm'; - -import chalk from 'chalk'; -import { Command } from 'nest-commander'; -import { In, Repository } from 'typeorm'; - -import { - ActiveWorkspacesCommandOptions, - ActiveWorkspacesCommandRunner, -} from 'src/database/commands/active-workspaces.command'; -import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; -import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; -import { TwentyORMGlobalManager } from 'src/engine/twenty-orm/twenty-orm-global.manager'; -import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-object-ids'; -import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.workspace-entity'; - -@Command({ - name: 'upgrade-0.31:add-index-key-to-tasks-and-notes-views', - description: 'Add index key to tasks and notes views', -}) -export class AddIndexKeyToTasksAndNotesViewsCommand extends ActiveWorkspacesCommandRunner { - constructor( - @InjectRepository(Workspace, 'core') - protected readonly workspaceRepository: Repository, - @InjectRepository(ObjectMetadataEntity, 'metadata') - private readonly objectMetadataRepository: Repository, - private readonly twentyORMGlobalManager: TwentyORMGlobalManager, - ) { - super(workspaceRepository); - } - - async executeActiveWorkspacesCommand( - _passedParam: string[], - _options: ActiveWorkspacesCommandOptions, - workspaceIds: string[], - ): Promise { - this.logger.log('Running command to fix migration'); - - for (const workspaceId of workspaceIds) { - this.logger.log(`Running command for workspace ${workspaceId}`); - - try { - this.logger.log(chalk.green(`Cleaning views of ${workspaceId}.`)); - - await this.addIndexKeyToTasksAndNotesViews( - workspaceId, - _options.dryRun ?? false, - ); - - await this.twentyORMGlobalManager.destroyDataSourceForWorkspace( - workspaceId, - ); - } catch (error) { - this.logger.log( - chalk.red( - `Running command on workspace ${workspaceId} failed with error: ${error}`, - ), - ); - continue; - } finally { - this.logger.log( - chalk.green(`Finished running command for workspace ${workspaceId}.`), - ); - } - - this.logger.log(chalk.green(`Command completed!`)); - } - } - - private async addIndexKeyToTasksAndNotesViews( - workspaceId: string, - dryRun: boolean, - ): Promise { - const viewRepository = - await this.twentyORMGlobalManager.getRepositoryForWorkspace( - workspaceId, - 'view', - false, - ); - - const allViews = await viewRepository.find(); - - const viewObjectMetadataIds = allViews.map((view) => view.objectMetadataId); - - const objectMetadataEntities = await this.objectMetadataRepository.find({ - where: { - id: In(viewObjectMetadataIds), - }, - }); - - const tasksAndNotesObjectMetadataIds = objectMetadataEntities.filter( - (entity) => - entity.standardId === STANDARD_OBJECT_IDS.task || - entity.standardId === STANDARD_OBJECT_IDS.note, - ); - - const viewsToUpdate = allViews.filter( - (view) => - tasksAndNotesObjectMetadataIds.some( - (entity) => entity.id === view.objectMetadataId, - ) && - ['All Tasks', 'All Notes'].includes(view.name) && - view.key === null, - ); - - if (dryRun) { - this.logger.log( - chalk.green( - `Found ${viewsToUpdate.length} views to update in workspace ${workspaceId}.`, - ), - ); - } - - if (viewsToUpdate.length > 0 && !dryRun) { - await viewRepository.update( - viewsToUpdate.map((view) => view.id), - { - key: 'INDEX', - }, - ); - this.logger.log(chalk.green(`Updating ${viewsToUpdate.length} views.`)); - } - - if (viewsToUpdate.length === 0 && !dryRun) { - this.logger.log(chalk.green(`No views to update.`)); - } - } -} diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-backfill-workspace-favorites.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-backfill-workspace-favorites.command.ts deleted file mode 100644 index 90c415123a38..000000000000 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-backfill-workspace-favorites.command.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { InjectRepository } from '@nestjs/typeorm'; - -import chalk from 'chalk'; -import { Command } from 'nest-commander'; -import { In, Repository } from 'typeorm'; - -import { - ActiveWorkspacesCommandOptions, - ActiveWorkspacesCommandRunner, -} from 'src/database/commands/active-workspaces.command'; -import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; -import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; -import { TwentyORMGlobalManager } from 'src/engine/twenty-orm/twenty-orm-global.manager'; -import { FavoriteWorkspaceEntity } from 'src/modules/favorite/standard-objects/favorite.workspace-entity'; -import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.workspace-entity'; - -@Command({ - name: 'upgrade-0.31:backfill-workspace-favorites-migration', - description: 'Create a workspace favorite for all workspace views', -}) -export class BackfillWorkspaceFavoritesCommand extends ActiveWorkspacesCommandRunner { - constructor( - @InjectRepository(Workspace, 'core') - protected readonly workspaceRepository: Repository, - @InjectRepository(ObjectMetadataEntity, 'metadata') - private readonly objectMetadataRepository: Repository, - private readonly twentyORMGlobalManager: TwentyORMGlobalManager, - ) { - super(workspaceRepository); - } - - async executeActiveWorkspacesCommand( - _passedParam: string[], - _options: ActiveWorkspacesCommandOptions, - workspaceIds: string[], - ): Promise { - this.logger.log('Running command to fix migration'); - - for (const workspaceId of workspaceIds) { - this.logger.log(`Running command for workspace ${workspaceId}`); - - try { - const allWorkspaceIndexViews = await this.getIndexViews(workspaceId); - - const activeWorkspaceIndexViews = - await this.filterViewsWithoutObjectMetadata( - workspaceId, - allWorkspaceIndexViews, - ); - - await this.createViewWorkspaceFavorites( - workspaceId, - activeWorkspaceIndexViews.map((view) => view.id), - _options.dryRun ?? false, - ); - - this.logger.log( - chalk.green(`Backfilled workspace favorites to ${workspaceId}.`), - ); - - await this.twentyORMGlobalManager.destroyDataSourceForWorkspace( - workspaceId, - ); - } catch (error) { - this.logger.log( - chalk.red( - `Running command on workspace ${workspaceId} failed with error: ${error}`, - ), - ); - continue; - } finally { - this.logger.log( - chalk.green(`Finished running command for workspace ${workspaceId}.`), - ); - } - - this.logger.log(chalk.green(`Command completed!`)); - } - } - - private async getIndexViews( - workspaceId: string, - ): Promise { - const viewRepository = - await this.twentyORMGlobalManager.getRepositoryForWorkspace( - workspaceId, - 'view', - false, - ); - - return viewRepository.find({ - where: { - key: 'INDEX', - }, - }); - } - - private async filterViewsWithoutObjectMetadata( - workspaceId: string, - views: ViewWorkspaceEntity[], - ): Promise { - const viewObjectMetadataIds = views.map((view) => view.objectMetadataId); - - const objectMetadataEntities = await this.objectMetadataRepository.find({ - where: { - workspaceId, - id: In(viewObjectMetadataIds), - }, - }); - - const objectMetadataIds = new Set( - objectMetadataEntities.map((entity) => entity.id), - ); - - return views.filter((view) => objectMetadataIds.has(view.objectMetadataId)); - } - - private async createViewWorkspaceFavorites( - workspaceId: string, - viewIds: string[], - dryRun: boolean, - ) { - const favoriteRepository = - await this.twentyORMGlobalManager.getRepositoryForWorkspace( - workspaceId, - 'favorite', - ); - - let nextFavoritePosition = await favoriteRepository.count(); - let createdFavorites = 0; - - for (const viewId of viewIds) { - const existingFavorites = await favoriteRepository.find({ - where: { - viewId, - }, - }); - - if (existingFavorites.length) { - continue; - } - - if (!dryRun) { - await favoriteRepository.insert( - favoriteRepository.create({ - viewId, - position: nextFavoritePosition, - }), - ); - } - - createdFavorites++; - nextFavoritePosition++; - } - - this.logger.log( - chalk.green( - `Found ${createdFavorites} favorites to backfill in workspace ${workspaceId}.`, - ), - ); - } -} diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-clean-views-associated-with-outdated-objects.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-clean-views-associated-with-outdated-objects.command.ts deleted file mode 100644 index 6643f68427e2..000000000000 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-clean-views-associated-with-outdated-objects.command.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { InjectRepository } from '@nestjs/typeorm'; - -import chalk from 'chalk'; -import { Command } from 'nest-commander'; -import { In, Repository } from 'typeorm'; - -import { - ActiveWorkspacesCommandOptions, - ActiveWorkspacesCommandRunner, -} from 'src/database/commands/active-workspaces.command'; -import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; -import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; -import { TwentyORMGlobalManager } from 'src/engine/twenty-orm/twenty-orm-global.manager'; -import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-object-ids'; -import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.workspace-entity'; - -@Command({ - name: 'upgrade-0.31:clean-views-associated-with-outdated-objects', - description: - 'Clean views associated with deleted object metadata or activities', -}) -export class CleanViewsAssociatedWithOutdatedObjectsCommand extends ActiveWorkspacesCommandRunner { - constructor( - @InjectRepository(Workspace, 'core') - protected readonly workspaceRepository: Repository, - @InjectRepository(ObjectMetadataEntity, 'metadata') - private readonly objectMetadataRepository: Repository, - private readonly twentyORMGlobalManager: TwentyORMGlobalManager, - ) { - super(workspaceRepository); - } - - async executeActiveWorkspacesCommand( - _passedParam: string[], - _options: ActiveWorkspacesCommandOptions, - workspaceIds: string[], - ): Promise { - this.logger.log('Running command to fix migration'); - - for (const workspaceId of workspaceIds) { - this.logger.log(`Running command for workspace ${workspaceId}`); - - try { - this.logger.log(chalk.green(`Cleaning views of ${workspaceId}.`)); - - await this.cleanViewsWithDeletedObjectMetadata( - workspaceId, - _options.dryRun ?? false, - ); - - await this.twentyORMGlobalManager.destroyDataSourceForWorkspace( - workspaceId, - ); - } catch (error) { - this.logger.log( - chalk.red( - `Running command on workspace ${workspaceId} failed with error: ${error}`, - ), - ); - continue; - } finally { - this.logger.log( - chalk.green(`Finished running command for workspace ${workspaceId}.`), - ); - } - - this.logger.log(chalk.green(`Command completed!`)); - } - } - - private async cleanViewsWithDeletedObjectMetadata( - workspaceId: string, - dryRun: boolean, - ): Promise { - const viewRepository = - await this.twentyORMGlobalManager.getRepositoryForWorkspace( - workspaceId, - 'view', - false, - ); - - const allViews = await viewRepository.find(); - - const viewObjectMetadataIds = allViews.map((view) => view.objectMetadataId); - - const objectMetadataEntities = await this.objectMetadataRepository.find({ - where: { - id: In(viewObjectMetadataIds), - }, - }); - - const validObjectMetadataIds = new Set( - objectMetadataEntities - .filter((entity) => entity.standardId !== STANDARD_OBJECT_IDS.activity) - .map((entity) => entity.id), - ); - - const viewIdsToDelete = allViews - .filter((view) => !validObjectMetadataIds.has(view.objectMetadataId)) - .map((view) => view.id); - - if (dryRun) { - this.logger.log( - chalk.green( - `Found ${viewIdsToDelete.length} views to clean in workspace ${workspaceId}.`, - ), - ); - } - - if (viewIdsToDelete.length > 0 && !dryRun) { - await viewRepository.delete(viewIdsToDelete); - this.logger.log(chalk.green(`Cleaning ${viewIdsToDelete.length} views.`)); - } - - if (viewIdsToDelete.length === 0) { - this.logger.log(chalk.green(`No views to clean.`)); - } - } -} diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-delete-name-column-standard-object-tables.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-delete-name-column-standard-object-tables.command.ts deleted file mode 100644 index 91576604e642..000000000000 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-delete-name-column-standard-object-tables.command.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { InjectRepository } from '@nestjs/typeorm'; - -import chalk from 'chalk'; -import { Command } from 'nest-commander'; -import { Repository } from 'typeorm'; - -import { - ActiveWorkspacesCommandOptions, - ActiveWorkspacesCommandRunner, -} from 'src/database/commands/active-workspaces.command'; -import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; -import { FieldMetadataType } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity'; -import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; -import { TwentyORMGlobalManager } from 'src/engine/twenty-orm/twenty-orm-global.manager'; - -@Command({ - name: 'upgrade-0.31:delete-name-column-standard-object-tables', - description: 'Delete name column from standard object tables', -}) -export class DeleteNameColumnStandardObjectTablesCommand extends ActiveWorkspacesCommandRunner { - constructor( - @InjectRepository(Workspace, 'core') - protected readonly workspaceRepository: Repository, - @InjectRepository(ObjectMetadataEntity, 'metadata') - private readonly objectMetadataRepository: Repository, - private readonly twentyORMGlobalManager: TwentyORMGlobalManager, - ) { - super(workspaceRepository); - } - - async executeActiveWorkspacesCommand( - _passedParam: string[], - options: ActiveWorkspacesCommandOptions, - workspaceIds: string[], - ): Promise { - this.logger.log('Running command to fix migration'); - - for (const workspaceId of workspaceIds) { - this.logger.log(`Running command for workspace ${workspaceId}`); - - try { - this.logger.log( - chalk.green(`Deleting name columns from workspace ${workspaceId}.`), - ); - - const standardObjects = await this.objectMetadataRepository.find({ - where: { - isCustom: false, - workspaceId, - }, - relations: ['fields'], - }); - - const dataSource = - await this.twentyORMGlobalManager.getDataSourceForWorkspace( - workspaceId, - ); - - dataSource.transaction(async (entityManager) => { - const queryRunner = entityManager.queryRunner; - - for (const standardObject of standardObjects) { - if (options.dryRun) { - this.logger.log( - chalk.yellow( - `Dry run mode enabled. Skipping deletion of name column for workspace ${workspaceId} and table ${standardObject.nameSingular}.`, - ), - ); - continue; - } - - const nameColumnExists = await queryRunner?.hasColumn( - standardObject.nameSingular, - 'name', - ); - - const nameFieldMetadataExists = standardObject.fields.some( - (field) => - field.name === 'name' && field.type === FieldMetadataType.TEXT, - ); - - if (nameFieldMetadataExists) { - this.logger.log( - chalk.yellow( - `Name field exists for workspace ${workspaceId} and table ${standardObject.nameSingular}. Skipping deletion.`, - ), - ); - continue; - } - - if (!nameColumnExists) { - this.logger.log( - chalk.yellow( - `Name column does not exist for workspace ${workspaceId} and table ${standardObject.nameSingular}. Skipping deletion.`, - ), - ); - continue; - } - - await queryRunner?.dropColumn(standardObject.nameSingular, 'name'); - } - }); - } catch (error) { - this.logger.log( - chalk.red( - `Running command on workspace ${workspaceId} failed with error: ${error}`, - ), - ); - continue; - } finally { - this.logger.log( - chalk.green(`Finished running command for workspace ${workspaceId}.`), - ); - - await this.twentyORMGlobalManager.destroyDataSourceForWorkspace( - workspaceId, - ); - } - } - } -} diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-upgrade-version.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-upgrade-version.command.ts deleted file mode 100644 index 247e8cd4d20d..000000000000 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-upgrade-version.command.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { InjectRepository } from '@nestjs/typeorm'; - -import { Command } from 'nest-commander'; -import { Repository } from 'typeorm'; - -import { ActiveWorkspacesCommandRunner } from 'src/database/commands/active-workspaces.command'; -import { AddIndexKeyToTasksAndNotesViewsCommand } from 'src/database/commands/upgrade-version/0-31/0-31-add-index-key-to-tasks-and-notes-views.command'; -import { BackfillWorkspaceFavoritesCommand } from 'src/database/commands/upgrade-version/0-31/0-31-backfill-workspace-favorites.command'; -import { CleanViewsAssociatedWithOutdatedObjectsCommand } from 'src/database/commands/upgrade-version/0-31/0-31-clean-views-associated-with-outdated-objects.command'; -import { DeleteNameColumnStandardObjectTablesCommand } from 'src/database/commands/upgrade-version/0-31/0-31-delete-name-column-standard-object-tables.command'; -import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; -import { SyncWorkspaceMetadataCommand } from 'src/engine/workspace-manager/workspace-sync-metadata/commands/sync-workspace-metadata.command'; - -interface UpdateTo0_31CommandOptions { - workspaceId?: string; -} - -@Command({ - name: 'upgrade-0.31', - description: 'Upgrade to 0.31', -}) -export class UpgradeTo0_31Command extends ActiveWorkspacesCommandRunner { - constructor( - @InjectRepository(Workspace, 'core') - protected readonly workspaceRepository: Repository, - private readonly syncWorkspaceMetadataCommand: SyncWorkspaceMetadataCommand, - private readonly backfillWorkspaceFavoritesCommand: BackfillWorkspaceFavoritesCommand, - private readonly cleanViewsAssociatedWithOutdatedObjectsCommand: CleanViewsAssociatedWithOutdatedObjectsCommand, - private readonly addIndexKeyToTasksAndNotesViewsCommand: AddIndexKeyToTasksAndNotesViewsCommand, - private readonly deleteNameColumnStandardObjectTablesCommand: DeleteNameColumnStandardObjectTablesCommand, - ) { - super(workspaceRepository); - } - - async executeActiveWorkspacesCommand( - passedParam: string[], - options: UpdateTo0_31CommandOptions, - workspaceIds: string[], - ): Promise { - await this.syncWorkspaceMetadataCommand.executeActiveWorkspacesCommand( - passedParam, - { - ...options, - force: true, - }, - workspaceIds, - ); - await this.cleanViewsAssociatedWithOutdatedObjectsCommand.executeActiveWorkspacesCommand( - passedParam, - options, - workspaceIds, - ); - await this.addIndexKeyToTasksAndNotesViewsCommand.executeActiveWorkspacesCommand( - passedParam, - options, - workspaceIds, - ); - await this.backfillWorkspaceFavoritesCommand.executeActiveWorkspacesCommand( - passedParam, - options, - workspaceIds, - ); - await this.deleteNameColumnStandardObjectTablesCommand.executeActiveWorkspacesCommand( - passedParam, - options, - workspaceIds, - ); - } -} diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-upgrade-version.module.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-upgrade-version.module.ts deleted file mode 100644 index e1f731cb5ba4..000000000000 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-31/0-31-upgrade-version.module.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Module } from '@nestjs/common'; -import { TypeOrmModule } from '@nestjs/typeorm'; - -import { AddIndexKeyToTasksAndNotesViewsCommand } from 'src/database/commands/upgrade-version/0-31/0-31-add-index-key-to-tasks-and-notes-views.command'; -import { BackfillWorkspaceFavoritesCommand } from 'src/database/commands/upgrade-version/0-31/0-31-backfill-workspace-favorites.command'; -import { CleanViewsAssociatedWithOutdatedObjectsCommand } from 'src/database/commands/upgrade-version/0-31/0-31-clean-views-associated-with-outdated-objects.command'; -import { DeleteNameColumnStandardObjectTablesCommand } from 'src/database/commands/upgrade-version/0-31/0-31-delete-name-column-standard-object-tables.command'; -import { UpgradeTo0_31Command } from 'src/database/commands/upgrade-version/0-31/0-31-upgrade-version.command'; -import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; -import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; -import { WorkspaceSyncMetadataCommandsModule } from 'src/engine/workspace-manager/workspace-sync-metadata/commands/workspace-sync-metadata-commands.module'; - -@Module({ - imports: [ - TypeOrmModule.forFeature([Workspace], 'core'), - TypeOrmModule.forFeature([ObjectMetadataEntity], 'metadata'), - WorkspaceSyncMetadataCommandsModule, - ], - providers: [ - UpgradeTo0_31Command, - BackfillWorkspaceFavoritesCommand, - CleanViewsAssociatedWithOutdatedObjectsCommand, - AddIndexKeyToTasksAndNotesViewsCommand, - DeleteNameColumnStandardObjectTablesCommand, - ], -}) -export class UpgradeTo0_31CommandModule {} diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-enforce-unique-constraints.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-enforce-unique-constraints.command.ts new file mode 100644 index 000000000000..70576e9bef24 --- /dev/null +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-enforce-unique-constraints.command.ts @@ -0,0 +1,303 @@ +import { InjectRepository } from '@nestjs/typeorm'; + +import chalk from 'chalk'; +import { Command, Option } from 'nest-commander'; +import { IsNull, Repository } from 'typeorm'; + +import { + ActiveWorkspacesCommandOptions, + ActiveWorkspacesCommandRunner, +} from 'src/database/commands/active-workspaces.command'; +import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; +import { TwentyORMGlobalManager } from 'src/engine/twenty-orm/twenty-orm-global.manager'; + +interface EnforceUniqueConstraintsCommandOptions + extends ActiveWorkspacesCommandOptions { + person?: boolean; + company?: boolean; + viewField?: boolean; + viewSort?: boolean; +} + +@Command({ + name: 'upgrade-0.32:enforce-unique-constraints', + description: + 'Enforce unique constraints on company domainName, person emailsPrimaryEmail, ViewField, and ViewSort', +}) +export class EnforceUniqueConstraintsCommand extends ActiveWorkspacesCommandRunner { + constructor( + @InjectRepository(Workspace, 'core') + protected readonly workspaceRepository: Repository, + private readonly twentyORMGlobalManager: TwentyORMGlobalManager, + ) { + super(workspaceRepository); + } + + @Option({ + flags: '--person', + description: 'Enforce unique constraints on person emailsPrimaryEmail', + }) + parsePerson() { + return true; + } + + @Option({ + flags: '--company', + description: 'Enforce unique constraints on company domainName', + }) + parseCompany() { + return true; + } + + @Option({ + flags: '--view-field', + description: 'Enforce unique constraints on ViewField', + }) + parseViewField() { + return true; + } + + @Option({ + flags: '--view-sort', + description: 'Enforce unique constraints on ViewSort', + }) + parseViewSort() { + return true; + } + + async executeActiveWorkspacesCommand( + _passedParam: string[], + options: EnforceUniqueConstraintsCommandOptions, + workspaceIds: string[], + ): Promise { + this.logger.log('Running command to enforce unique constraints'); + + for (const workspaceId of workspaceIds) { + this.logger.log(`Running command for workspace ${workspaceId}`); + + try { + await this.enforceUniqueConstraintsForWorkspace( + workspaceId, + options.dryRun ?? false, + options, + ); + + await this.twentyORMGlobalManager.destroyDataSourceForWorkspace( + workspaceId, + ); + } catch (error) { + this.logger.log( + chalk.red( + `Running command on workspace ${workspaceId} failed with error: ${error}, ${error.stack}`, + ), + ); + continue; + } finally { + this.logger.log( + chalk.green(`Finished running command for workspace ${workspaceId}.`), + ); + } + } + + this.logger.log(chalk.green(`Command completed!`)); + } + + private async enforceUniqueConstraintsForWorkspace( + workspaceId: string, + dryRun: boolean, + options: EnforceUniqueConstraintsCommandOptions, + ): Promise { + if (options.company) { + await this.enforceUniqueCompanyDomainName(workspaceId, dryRun); + } + if (options.person) { + await this.enforceUniquePersonEmail(workspaceId, dryRun); + } + if (options.viewField) { + await this.enforceUniqueViewField(workspaceId, dryRun); + } + if (options.viewSort) { + await this.enforceUniqueViewSort(workspaceId, dryRun); + } + } + + private async enforceUniqueCompanyDomainName( + workspaceId: string, + dryRun: boolean, + ): Promise { + const companyRepository = + await this.twentyORMGlobalManager.getRepositoryForWorkspace( + workspaceId, + 'company', + ); + + const duplicates = await companyRepository + .createQueryBuilder('company') + .select('company.domainNamePrimaryLinkUrl') + .addSelect('COUNT(*)', 'count') + .where('company.deletedAt IS NULL') + .where('company.domainNamePrimaryLinkUrl IS NOT NULL') + .where("company.domainNamePrimaryLinkUrl != ''") + .groupBy('company.domainNamePrimaryLinkUrl') + .having('COUNT(*) > 1') + .getRawMany(); + + for (const duplicate of duplicates) { + const { company_domainNamePrimaryLinkUrl } = duplicate; + const companies = await companyRepository.find({ + where: { + domainName: { + primaryLinkUrl: company_domainNamePrimaryLinkUrl, + }, + deletedAt: IsNull(), + }, + order: { createdAt: 'DESC' }, + }); + + for (let i = 1; i < companies.length; i++) { + const newdomainNamePrimaryLinkUrl = `${company_domainNamePrimaryLinkUrl}${i}`; + + if (!dryRun) { + await companyRepository.update(companies[i].id, { + domainNamePrimaryLinkUrl: newdomainNamePrimaryLinkUrl, + }); + } + this.logger.log( + chalk.yellow( + `Updated company ${companies[i].id} domainName from ${company_domainNamePrimaryLinkUrl} to ${newdomainNamePrimaryLinkUrl}`, + ), + ); + } + } + } + + private async enforceUniquePersonEmail( + workspaceId: string, + dryRun: boolean, + ): Promise { + const personRepository = + await this.twentyORMGlobalManager.getRepositoryForWorkspace( + workspaceId, + 'person', + ); + + const duplicates = await personRepository + .createQueryBuilder('person') + .select('person.emailsPrimaryEmail') + .addSelect('COUNT(*)', 'count') + .where('person.deletedAt IS NULL') + .where('person.emailsPrimaryEmail IS NOT NULL') + .where("person.emailsPrimaryEmail != ''") + .groupBy('person.emailsPrimaryEmail') + .having('COUNT(*) > 1') + .getRawMany(); + + for (const duplicate of duplicates) { + const { person_emailsPrimaryEmail } = duplicate; + const persons = await personRepository.find({ + where: { + emails: { + primaryEmail: person_emailsPrimaryEmail, + }, + deletedAt: IsNull(), + }, + order: { createdAt: 'DESC' }, + }); + + for (let i = 1; i < persons.length; i++) { + const newEmail = person_emailsPrimaryEmail?.includes('@') + ? `${person_emailsPrimaryEmail.split('@')[0]}+${i}@${person_emailsPrimaryEmail.split('@')[1]}` + : `${person_emailsPrimaryEmail}+${i}`; + + if (!dryRun) { + await personRepository.update(persons[i].id, { + emailsPrimaryEmail: newEmail, + }); + } + this.logger.log( + chalk.yellow( + `Updated person ${persons[i].id} emailsPrimaryEmail from ${person_emailsPrimaryEmail} to ${newEmail}`, + ), + ); + } + } + } + + private async enforceUniqueViewField( + workspaceId: string, + dryRun: boolean, + ): Promise { + const viewFieldRepository = + await this.twentyORMGlobalManager.getRepositoryForWorkspace( + workspaceId, + 'viewField', + ); + + const duplicates = await viewFieldRepository + .createQueryBuilder('viewField') + .select(['viewField.fieldMetadataId', 'viewField.viewId']) + .addSelect('COUNT(*)', 'count') + .where('viewField.deletedAt IS NULL') + .groupBy('viewField.fieldMetadataId, viewField.viewId') + .having('COUNT(*) > 1') + .getRawMany(); + + for (const duplicate of duplicates) { + const { fieldMetadataId, viewId } = duplicate; + const viewFields = await viewFieldRepository.find({ + where: { fieldMetadataId, viewId, deletedAt: IsNull() }, + order: { createdAt: 'DESC' }, + }); + + for (let i = 1; i < viewFields.length; i++) { + if (!dryRun) { + await viewFieldRepository.softDelete(viewFields[i].id); + } + this.logger.log( + chalk.yellow( + `Soft deleted duplicate ViewField ${viewFields[i].id} for fieldMetadataId ${fieldMetadataId} and viewId ${viewId}`, + ), + ); + } + } + } + + private async enforceUniqueViewSort( + workspaceId: string, + dryRun: boolean, + ): Promise { + const viewSortRepository = + await this.twentyORMGlobalManager.getRepositoryForWorkspace( + workspaceId, + 'viewSort', + ); + + const duplicates = await viewSortRepository + .createQueryBuilder('viewSort') + .select(['viewSort.fieldMetadataId', 'viewSort.viewId']) + .addSelect('COUNT(*)', 'count') + .where('viewSort.deletedAt IS NULL') + .groupBy('viewSort.fieldMetadataId, viewSort.viewId') + .having('COUNT(*) > 1') + .getRawMany(); + + for (const duplicate of duplicates) { + const { fieldMetadataId, viewId } = duplicate; + const viewSorts = await viewSortRepository.find({ + where: { fieldMetadataId, viewId, deletedAt: IsNull() }, + order: { createdAt: 'DESC' }, + }); + + for (let i = 1; i < viewSorts.length; i++) { + if (!dryRun) { + await viewSortRepository.softDelete(viewSorts[i].id); + } + this.logger.log( + chalk.yellow( + `Soft deleted duplicate ViewSort ${viewSorts[i].id} for fieldMetadataId ${fieldMetadataId} and viewId ${viewId}`, + ), + ); + } + } + } +} diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-upgrade-version.command.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-upgrade-version.command.ts new file mode 100644 index 000000000000..44d5c4a639ef --- /dev/null +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-upgrade-version.command.ts @@ -0,0 +1,50 @@ +import { InjectRepository } from '@nestjs/typeorm'; + +import { Command } from 'nest-commander'; +import { Repository } from 'typeorm'; + +import { ActiveWorkspacesCommandRunner } from 'src/database/commands/active-workspaces.command'; +import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; +import { SyncWorkspaceMetadataCommand } from 'src/engine/workspace-manager/workspace-sync-metadata/commands/sync-workspace-metadata.command'; + +import { EnforceUniqueConstraintsCommand } from './0-32-enforce-unique-constraints.command'; + +interface UpdateTo0_32CommandOptions { + workspaceId?: string; +} + +@Command({ + name: 'upgrade-0.32', + description: 'Upgrade to 0.32', +}) +export class UpgradeTo0_32Command extends ActiveWorkspacesCommandRunner { + constructor( + @InjectRepository(Workspace, 'core') + protected readonly workspaceRepository: Repository, + private readonly syncWorkspaceMetadataCommand: SyncWorkspaceMetadataCommand, + private readonly enforceUniqueConstraintsCommand: EnforceUniqueConstraintsCommand, + ) { + super(workspaceRepository); + } + + async executeActiveWorkspacesCommand( + passedParam: string[], + options: UpdateTo0_32CommandOptions, + workspaceIds: string[], + ): Promise { + await this.syncWorkspaceMetadataCommand.executeActiveWorkspacesCommand( + passedParam, + { + ...options, + force: true, + }, + workspaceIds, + ); + + await this.enforceUniqueConstraintsCommand.executeActiveWorkspacesCommand( + passedParam, + options, + workspaceIds, + ); + } +} diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-upgrade-version.module.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-upgrade-version.module.ts new file mode 100644 index 000000000000..1a6ec704f424 --- /dev/null +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-upgrade-version.module.ts @@ -0,0 +1,18 @@ +import { Module } from '@nestjs/common'; +import { TypeOrmModule } from '@nestjs/typeorm'; + +import { EnforceUniqueConstraintsCommand } from 'src/database/commands/upgrade-version/0-32/0-32-enforce-unique-constraints.command'; +import { UpgradeTo0_32Command } from 'src/database/commands/upgrade-version/0-32/0-32-upgrade-version.command'; +import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity'; +import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; +import { WorkspaceSyncMetadataCommandsModule } from 'src/engine/workspace-manager/workspace-sync-metadata/commands/workspace-sync-metadata-commands.module'; + +@Module({ + imports: [ + TypeOrmModule.forFeature([Workspace], 'core'), + TypeOrmModule.forFeature([ObjectMetadataEntity], 'metadata'), + WorkspaceSyncMetadataCommandsModule, + ], + providers: [UpgradeTo0_32Command, EnforceUniqueConstraintsCommand], +}) +export class UpgradeTo0_32CommandModule {} diff --git a/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts b/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts index 97ce8581f042..c618677d3733 100644 --- a/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts +++ b/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts @@ -43,7 +43,7 @@ export const seedFeatureFlags = async ( { key: FeatureFlagKey.IsWorkflowEnabled, workspaceId: workspaceId, - value: false, + value: true, }, { key: FeatureFlagKey.IsMessageThreadSubscriberEnabled, @@ -53,7 +53,7 @@ export const seedFeatureFlags = async ( { key: FeatureFlagKey.IsWorkspaceFavoriteEnabled, workspaceId: workspaceId, - value: false, + value: true, }, { key: FeatureFlagKey.IsSearchEnabled, @@ -75,6 +75,11 @@ export const seedFeatureFlags = async ( workspaceId: workspaceId, value: true, }, + { + key: FeatureFlagKey.IsUniqueIndexesEnabled, + workspaceId: workspaceId, + value: false, + }, ]) .execute(); }; diff --git a/packages/twenty-server/src/database/typeorm-seeds/metadata/fieldsMetadata.ts b/packages/twenty-server/src/database/typeorm-seeds/metadata/fieldsMetadata.ts index 5f0f8219c8f3..a0b8081c9d59 100644 --- a/packages/twenty-server/src/database/typeorm-seeds/metadata/fieldsMetadata.ts +++ b/packages/twenty-server/src/database/typeorm-seeds/metadata/fieldsMetadata.ts @@ -15,6 +15,7 @@ export const getDevSeedCompanyCustomFields = ( icon: 'IconAdCircle', isActive: true, isNullable: false, + isUnique: false, defaultValue: "''", objectMetadataId, }, @@ -27,6 +28,7 @@ export const getDevSeedCompanyCustomFields = ( icon: 'IconVideo', isActive: true, isNullable: true, + isUnique: false, objectMetadataId, }, { @@ -38,6 +40,7 @@ export const getDevSeedCompanyCustomFields = ( icon: 'IconHome', isActive: true, isNullable: true, + isUnique: false, objectMetadataId, options: [ { @@ -69,6 +72,7 @@ export const getDevSeedCompanyCustomFields = ( icon: 'IconBrandVisa', isActive: true, isNullable: true, + isUnique: false, objectMetadataId, defaultValue: false, }, @@ -89,6 +93,7 @@ export const getDevSeedPeopleCustomFields = ( icon: 'IconNote', isActive: true, isNullable: true, + isUnique: false, objectMetadataId, }, { @@ -100,6 +105,7 @@ export const getDevSeedPeopleCustomFields = ( icon: 'IconBrandWhatsapp', isActive: true, isNullable: false, + isUnique: false, defaultValue: [ { primaryPhoneNumber: '', @@ -118,6 +124,7 @@ export const getDevSeedPeopleCustomFields = ( icon: 'IconHome', isActive: true, isNullable: true, + isUnique: false, objectMetadataId, options: [ { @@ -149,6 +156,7 @@ export const getDevSeedPeopleCustomFields = ( icon: 'IconStars', isActive: true, isNullable: true, + isUnique: false, objectMetadataId, options: [ { diff --git a/packages/twenty-server/src/database/typeorm/metadata/migrations/1726757368824-migrationDebt.ts b/packages/twenty-server/src/database/typeorm/metadata/migrations/1726757368824-migrationDebt.ts new file mode 100644 index 000000000000..06eb90d488b3 --- /dev/null +++ b/packages/twenty-server/src/database/typeorm/metadata/migrations/1726757368824-migrationDebt.ts @@ -0,0 +1,53 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class MigrationDebt1726757368824 implements MigrationInterface { + name = 'MigrationDebt1726757368824'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TYPE "metadata"."relationMetadata_ondeleteaction_enum" RENAME TO "relationMetadata_ondeleteaction_enum_old"`, + ); + await queryRunner.query( + `CREATE TYPE "metadata"."relationMetadata_ondeleteaction_enum" AS ENUM('CASCADE', 'RESTRICT', 'SET_NULL', 'NO_ACTION')`, + ); + await queryRunner.query( + `ALTER TABLE "metadata"."relationMetadata" ALTER COLUMN "onDeleteAction" DROP DEFAULT`, + ); + await queryRunner.query( + `ALTER TABLE "metadata"."relationMetadata" ALTER COLUMN "onDeleteAction" TYPE "metadata"."relationMetadata_ondeleteaction_enum" USING "onDeleteAction"::"text"::"metadata"."relationMetadata_ondeleteaction_enum"`, + ); + await queryRunner.query( + `ALTER TABLE "metadata"."relationMetadata" ALTER COLUMN "onDeleteAction" SET DEFAULT 'SET_NULL'`, + ); + await queryRunner.query( + `DROP TYPE "metadata"."relationMetadata_ondeleteaction_enum_old"`, + ); + await queryRunner.query( + `ALTER TABLE "metadata"."workspaceMigration" ALTER COLUMN "name" SET NOT NULL`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "metadata"."workspaceMigration" ALTER COLUMN "name" DROP NOT NULL`, + ); + await queryRunner.query( + `CREATE TYPE "metadata"."relationMetadata_ondeleteaction_enum_old" AS ENUM('CASCADE', 'RESTRICT', 'SET_NULL')`, + ); + await queryRunner.query( + `ALTER TABLE "metadata"."relationMetadata" ALTER COLUMN "onDeleteAction" DROP DEFAULT`, + ); + await queryRunner.query( + `ALTER TABLE "metadata"."relationMetadata" ALTER COLUMN "onDeleteAction" TYPE "metadata"."relationMetadata_ondeleteaction_enum_old" USING "onDeleteAction"::"text"::"metadata"."relationMetadata_ondeleteaction_enum_old"`, + ); + await queryRunner.query( + `ALTER TABLE "metadata"."relationMetadata" ALTER COLUMN "onDeleteAction" SET DEFAULT 'SET_NULL'`, + ); + await queryRunner.query( + `DROP TYPE "metadata"."relationMetadata_ondeleteaction_enum"`, + ); + await queryRunner.query( + `ALTER TYPE "metadata"."relationMetadata_ondeleteaction_enum_old" RENAME TO "relationMetadata_ondeleteaction_enum"`, + ); + } +} diff --git a/packages/twenty-server/src/database/typeorm/metadata/migrations/1726757368825-addIsUniqueToIndexMetadata.ts b/packages/twenty-server/src/database/typeorm/metadata/migrations/1726757368825-addIsUniqueToIndexMetadata.ts new file mode 100644 index 000000000000..5f00a1d18ae7 --- /dev/null +++ b/packages/twenty-server/src/database/typeorm/metadata/migrations/1726757368825-addIsUniqueToIndexMetadata.ts @@ -0,0 +1,19 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class AddIsUniqueToIndexMetadata1726757368825 + implements MigrationInterface +{ + name = 'AddIsUniqueToIndexMetadata1726757368825'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "metadata"."indexMetadata" ADD "isUnique" boolean NOT NULL DEFAULT false`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "metadata"."indexMetadata" DROP COLUMN "isUnique"`, + ); + } +} diff --git a/packages/twenty-server/src/database/typeorm/metadata/migrations/1726766871572-addWhereToIndexMetadata.ts b/packages/twenty-server/src/database/typeorm/metadata/migrations/1726766871572-addWhereToIndexMetadata.ts new file mode 100644 index 000000000000..2869ad54c53d --- /dev/null +++ b/packages/twenty-server/src/database/typeorm/metadata/migrations/1726766871572-addWhereToIndexMetadata.ts @@ -0,0 +1,19 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class AddWhereToIndexMetadata1726766871572 + implements MigrationInterface +{ + name = 'AddWhereToIndexMetadata1726766871572'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "metadata"."indexMetadata" ADD "indexWhereClause" text`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "metadata"."indexMetadata" DROP COLUMN "indexWhereClause"`, + ); + } +} diff --git a/packages/twenty-server/src/database/typeorm/metadata/migrations/1728563893694-addIsUniqueToFields.ts b/packages/twenty-server/src/database/typeorm/metadata/migrations/1728563893694-addIsUniqueToFields.ts new file mode 100644 index 000000000000..2a6203c5d61b --- /dev/null +++ b/packages/twenty-server/src/database/typeorm/metadata/migrations/1728563893694-addIsUniqueToFields.ts @@ -0,0 +1,17 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class AddIsUniqueToFields1728563893694 implements MigrationInterface { + name = 'AddIsUniqueToFields1728563893694'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "metadata"."fieldMetadata" ADD "isUnique" boolean DEFAULT false`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "metadata"."indexMetadata" DROP COLUMN "indexWhereClause"`, + ); + } +} diff --git a/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/graphql-query-parsers/graphql-query-filter/graphql-query-filter-field.parser.ts b/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/graphql-query-parsers/graphql-query-filter/graphql-query-filter-field.parser.ts index 63f64b8ef3cb..9b1d1020b7bd 100644 --- a/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/graphql-query-parsers/graphql-query-filter/graphql-query-filter-field.parser.ts +++ b/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/graphql-query-parsers/graphql-query-filter/graphql-query-filter-field.parser.ts @@ -1,4 +1,4 @@ -import { ObjectLiteral, WhereExpressionBuilder } from 'typeorm'; +import { WhereExpressionBuilder } from 'typeorm'; import { FieldMetadataInterface } from 'src/engine/metadata-modules/field-metadata/interfaces/field-metadata.interface'; @@ -6,17 +6,13 @@ import { GraphqlQueryRunnerException, GraphqlQueryRunnerExceptionCode, } from 'src/engine/api/graphql/graphql-query-runner/errors/graphql-query-runner.exception'; +import { computeWhereConditionParts } from 'src/engine/api/graphql/graphql-query-runner/utils/compute-where-condition-parts'; import { compositeTypeDefinitions } from 'src/engine/metadata-modules/field-metadata/composite-types'; import { isCompositeFieldMetadataType } from 'src/engine/metadata-modules/field-metadata/utils/is-composite-field-metadata-type.util'; import { FieldMetadataMap } from 'src/engine/metadata-modules/utils/generate-object-metadata-map.util'; import { CompositeFieldMetadataType } from 'src/engine/metadata-modules/workspace-migration/factories/composite-column-action.factory'; import { capitalize } from 'src/utils/capitalize'; -type WhereConditionParts = { - sql: string; - params: ObjectLiteral; -}; - export class GraphqlQueryFilterFieldParser { private fieldMetadataMap: FieldMetadataMap; @@ -57,7 +53,7 @@ export class GraphqlQueryFilterFieldParser { } } - const { sql, params } = this.computeWhereConditionParts( + const { sql, params } = computeWhereConditionParts( operator, objectNameSingular, key, @@ -71,83 +67,6 @@ export class GraphqlQueryFilterFieldParser { } } - private computeWhereConditionParts( - operator: string, - objectNameSingular: string, - key: string, - value: any, - ): WhereConditionParts { - const uuid = Math.random().toString(36).slice(2, 7); - - switch (operator) { - case 'eq': - return { - sql: `"${objectNameSingular}"."${key}" = :${key}${uuid}`, - params: { [`${key}${uuid}`]: value }, - }; - case 'neq': - return { - sql: `"${objectNameSingular}"."${key}" != :${key}${uuid}`, - params: { [`${key}${uuid}`]: value }, - }; - case 'gt': - return { - sql: `"${objectNameSingular}"."${key}" > :${key}${uuid}`, - params: { [`${key}${uuid}`]: value }, - }; - case 'gte': - return { - sql: `"${objectNameSingular}"."${key}" >= :${key}${uuid}`, - params: { [`${key}${uuid}`]: value }, - }; - case 'lt': - return { - sql: `"${objectNameSingular}".${key} < :${key}${uuid}`, - params: { [`${key}${uuid}`]: value }, - }; - case 'lte': - return { - sql: `"${objectNameSingular}"."${key}" <= :${key}${uuid}`, - params: { [`${key}${uuid}`]: value }, - }; - case 'in': - return { - sql: `"${objectNameSingular}"."${key}" IN (:...${key}${uuid})`, - params: { [`${key}${uuid}`]: value }, - }; - case 'is': - return { - sql: `"${objectNameSingular}"."${key}" IS ${value === 'NULL' ? 'NULL' : 'NOT NULL'}`, - params: {}, - }; - case 'like': - return { - sql: `"${objectNameSingular}"."${key}" LIKE :${key}${uuid}`, - params: { [`${key}${uuid}`]: `${value}` }, - }; - case 'ilike': - return { - sql: `"${objectNameSingular}"."${key}" ILIKE :${key}${uuid}`, - params: { [`${key}${uuid}`]: `${value}` }, - }; - case 'startsWith': - return { - sql: `"${objectNameSingular}"."${key}" LIKE :${key}${uuid}`, - params: { [`${key}${uuid}`]: `${value}` }, - }; - case 'endsWith': - return { - sql: `"${objectNameSingular}"."${key}" LIKE :${key}${uuid}`, - params: { [`${key}${uuid}`]: `${value}` }, - }; - default: - throw new GraphqlQueryRunnerException( - `Operator "${operator}" is not supported`, - GraphqlQueryRunnerExceptionCode.UNSUPPORTED_OPERATOR, - ); - } - } - private parseCompositeFieldForFilter( queryBuilder: WhereExpressionBuilder, fieldMetadata: FieldMetadataInterface, @@ -182,7 +101,7 @@ export class GraphqlQueryFilterFieldParser { subFieldFilter as Record, ); - const { sql, params } = this.computeWhereConditionParts( + const { sql, params } = computeWhereConditionParts( operator, objectNameSingular, fullFieldName, diff --git a/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/resolvers/graphql-query-create-many-resolver.service.ts b/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/resolvers/graphql-query-create-many-resolver.service.ts index d5ee25e9be6d..6cd7a111138e 100644 --- a/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/resolvers/graphql-query-create-many-resolver.service.ts +++ b/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/resolvers/graphql-query-create-many-resolver.service.ts @@ -107,6 +107,7 @@ export class GraphqlQueryCreateManyResolverService options: WorkspaceQueryRunnerOptions, ): Promise { assertMutationNotOnRemoteObject(options.objectMetadataItem); + args.data.forEach((record) => { if (record?.id) { assertIsValidUuid(record.id); diff --git a/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/utils/compute-where-condition-parts.ts b/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/utils/compute-where-condition-parts.ts new file mode 100644 index 000000000000..ef8d4680ebb3 --- /dev/null +++ b/packages/twenty-server/src/engine/api/graphql/graphql-query-runner/utils/compute-where-condition-parts.ts @@ -0,0 +1,88 @@ +import { ObjectLiteral } from 'typeorm'; + +import { + GraphqlQueryRunnerException, + GraphqlQueryRunnerExceptionCode, +} from 'src/engine/api/graphql/graphql-query-runner/errors/graphql-query-runner.exception'; + +type WhereConditionParts = { + sql: string; + params: ObjectLiteral; +}; + +export const computeWhereConditionParts = ( + operator: string, + objectNameSingular: string, + key: string, + value: any, +): WhereConditionParts => { + const uuid = Math.random().toString(36).slice(2, 7); + + switch (operator) { + case 'eq': + return { + sql: `"${objectNameSingular}"."${key}" = :${key}${uuid}`, + params: { [`${key}${uuid}`]: value }, + }; + case 'neq': + return { + sql: `"${objectNameSingular}"."${key}" != :${key}${uuid}`, + params: { [`${key}${uuid}`]: value }, + }; + case 'gt': + return { + sql: `"${objectNameSingular}"."${key}" > :${key}${uuid}`, + params: { [`${key}${uuid}`]: value }, + }; + case 'gte': + return { + sql: `"${objectNameSingular}"."${key}" >= :${key}${uuid}`, + params: { [`${key}${uuid}`]: value }, + }; + case 'lt': + return { + sql: `"${objectNameSingular}"."${key}" < :${key}${uuid}`, + params: { [`${key}${uuid}`]: value }, + }; + case 'lte': + return { + sql: `"${objectNameSingular}"."${key}" <= :${key}${uuid}`, + params: { [`${key}${uuid}`]: value }, + }; + case 'in': + return { + sql: `"${objectNameSingular}"."${key}" IN (:...${key}${uuid})`, + params: { [`${key}${uuid}`]: value }, + }; + case 'is': + return { + sql: `"${objectNameSingular}"."${key}" IS ${value === 'NULL' ? 'NULL' : 'NOT NULL'}`, + params: {}, + }; + case 'like': + return { + sql: `"${objectNameSingular}"."${key}" LIKE :${key}${uuid}`, + params: { [`${key}${uuid}`]: `${value}` }, + }; + case 'ilike': + return { + sql: `"${objectNameSingular}"."${key}" ILIKE :${key}${uuid}`, + params: { [`${key}${uuid}`]: `${value}` }, + }; + case 'startsWith': + return { + sql: `"${objectNameSingular}"."${key}" LIKE :${key}${uuid}`, + params: { [`${key}${uuid}`]: `${value}` }, + }; + case 'endsWith': + return { + sql: `"${objectNameSingular}"."${key}" LIKE :${key}${uuid}`, + params: { [`${key}${uuid}`]: `${value}` }, + }; + default: + throw new GraphqlQueryRunnerException( + `Operator "${operator}" is not supported`, + GraphqlQueryRunnerExceptionCode.UNSUPPORTED_OPERATOR, + ); + } +}; diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts b/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts index 0a05be29da2e..fc2f0fbbaef9 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-query-runner/utils/workspace-query-runner-graphql-api-exception-handler.util.ts @@ -1,3 +1,7 @@ +import { QueryFailedError } from 'typeorm'; + +import { WorkspaceSchemaBuilderContext } from 'src/engine/api/graphql/workspace-schema-builder/interfaces/workspace-schema-builder-context.interface'; + import { GraphqlQueryRunnerException, GraphqlQueryRunnerExceptionCode, @@ -16,7 +20,51 @@ import { export const workspaceQueryRunnerGraphqlApiExceptionHandler = ( error: Error, + context: WorkspaceSchemaBuilderContext, ) => { + if (error instanceof QueryFailedError) { + if ( + error.message.includes('duplicate key value violates unique constraint') + ) { + const indexNameMatch = error.message.match(/"([^"]+)"/); + + if (indexNameMatch) { + const indexName = indexNameMatch[1]; + + const deletedAtFieldMetadata = context.objectMetadataItem.fields.find( + (field) => field.name === 'deletedAt', + ); + + const affectedColumns = context.objectMetadataItem.indexMetadatas + .find((index) => index.name === indexName) + ?.indexFieldMetadatas?.filter( + (field) => field.fieldMetadataId !== deletedAtFieldMetadata?.id, + ) + .map((indexField) => { + const fieldMetadata = context.objectMetadataItem.fields.find( + (objectField) => indexField.fieldMetadataId === objectField.id, + ); + + return fieldMetadata?.label; + }); + + const columnNames = affectedColumns?.join(', '); + + if (affectedColumns?.length === 1) { + throw new UserInputError( + `Duplicate ${columnNames}. Please set a unique one.`, + ); + } + + throw new UserInputError( + `A duplicate entry was detected. The combination of ${columnNames} must be unique.`, + ); + } + } + + throw error; + } + if (error instanceof WorkspaceQueryRunnerException) { switch (error.code) { case WorkspaceQueryRunnerExceptionCode.DATA_NOT_FOUND: diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/create-many-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/create-many-resolver.factory.ts index 4fe199acfd04..c6d3303fb42f 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/create-many-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/create-many-resolver.factory.ts @@ -40,7 +40,7 @@ export class CreateManyResolverFactory return await this.graphqlQueryRunnerService.createMany(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, context); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/create-one-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/create-one-resolver.factory.ts index dce8a669a00e..3c2d9095e62c 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/create-one-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/create-one-resolver.factory.ts @@ -40,7 +40,7 @@ export class CreateOneResolverFactory return await this.graphqlQueryRunnerService.createOne(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/delete-many-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/delete-many-resolver.factory.ts index abd58e356e69..191514f86309 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/delete-many-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/delete-many-resolver.factory.ts @@ -40,7 +40,7 @@ export class DeleteManyResolverFactory return await this.graphqlQueryRunnerService.deleteMany(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/delete-one-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/delete-one-resolver.factory.ts index 5e1b62488609..7cbd7bf3bddd 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/delete-one-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/delete-one-resolver.factory.ts @@ -40,7 +40,7 @@ export class DeleteOneResolverFactory return await this.graphqlQueryRunnerService.deleteOne(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/destroy-many-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/destroy-many-resolver.factory.ts index 26c55baddba1..80da084e630c 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/destroy-many-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/destroy-many-resolver.factory.ts @@ -40,7 +40,7 @@ export class DestroyManyResolverFactory return await this.graphqlQueryRunnerService.destroyMany(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/destroy-one-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/destroy-one-resolver.factory.ts index bb1e2aaaa9ba..c3dd4416918b 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/destroy-one-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/destroy-one-resolver.factory.ts @@ -40,7 +40,7 @@ export class DestroyOneResolverFactory return await this.graphQLQueryRunnerService.destroyOne(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-duplicates-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-duplicates-resolver.factory.ts index 16af5fa676ec..154c2c88646e 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-duplicates-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-duplicates-resolver.factory.ts @@ -43,7 +43,7 @@ export class FindDuplicatesResolverFactory options, ); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-many-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-many-resolver.factory.ts index c695079e2f62..d46db50962b8 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-many-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-many-resolver.factory.ts @@ -40,7 +40,7 @@ export class FindManyResolverFactory return await this.graphqlQueryRunnerService.findMany(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-one-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-one-resolver.factory.ts index 00845e841710..7543d59eccd3 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-one-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/find-one-resolver.factory.ts @@ -40,7 +40,7 @@ export class FindOneResolverFactory return await this.graphqlQueryRunnerService.findOne(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/restore-many-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/restore-many-resolver.factory.ts index c7d07785790c..709dcc40d312 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/restore-many-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/restore-many-resolver.factory.ts @@ -40,7 +40,7 @@ export class RestoreManyResolverFactory return await this.graphqlQueryRunnerService.restoreMany(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/search-resolver-factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/search-resolver-factory.ts index 9d559b656194..35520538b0f1 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/search-resolver-factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/search-resolver-factory.ts @@ -38,7 +38,7 @@ export class SearchResolverFactory return await this.graphqlQueryRunnerService.search(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/update-many-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/update-many-resolver.factory.ts index 1987ff1dad95..af9f0935eeb4 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/update-many-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/update-many-resolver.factory.ts @@ -40,7 +40,7 @@ export class UpdateManyResolverFactory return await this.graphqlQueryRunnerService.updateMany(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/update-one-resolver.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/update-one-resolver.factory.ts index 09aaf2a3e6ff..b1198cf1a361 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/update-one-resolver.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-resolver-builder/factories/update-one-resolver.factory.ts @@ -40,7 +40,7 @@ export class UpdateOneResolverFactory return await this.graphqlQueryRunnerService.updateOne(args, options); } catch (error) { - workspaceQueryRunnerGraphqlApiExceptionHandler(error); + workspaceQueryRunnerGraphqlApiExceptionHandler(error, internalContext); } }; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/connection-type.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/connection-type.factory.ts index d6400e7cb0d8..99ce89573c38 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/connection-type.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/connection-type.factory.ts @@ -5,12 +5,12 @@ import { GraphQLOutputType } from 'graphql'; import { WorkspaceBuildSchemaOptions } from 'src/engine/api/graphql/workspace-schema-builder/interfaces/workspace-build-schema-optionts.interface'; import { ObjectMetadataInterface } from 'src/engine/metadata-modules/field-metadata/interfaces/object-metadata.interface'; +import { PageInfoType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/object'; import { TypeMapperService, TypeOptions, } from 'src/engine/api/graphql/workspace-schema-builder/services/type-mapper.service'; import { TypeDefinitionsStorage } from 'src/engine/api/graphql/workspace-schema-builder/storages/type-definitions.storage'; -import { PageInfoType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/object'; import { ConnectionTypeDefinitionKind } from './connection-type-definition.factory'; import { ObjectTypeDefinitionKind } from './object-type-definition.factory'; @@ -27,7 +27,7 @@ export class ConnectionTypeFactory { public create( objectMetadata: ObjectMetadataInterface, kind: ConnectionTypeDefinitionKind, - buildOtions: WorkspaceBuildSchemaOptions, + buildOptions: WorkspaceBuildSchemaOptions, typeOptions: TypeOptions, ): GraphQLOutputType { if (kind === ConnectionTypeDefinitionKind.PageInfo) { @@ -44,7 +44,7 @@ export class ConnectionTypeFactory { `Edge type for ${objectMetadata.nameSingular} was not found. Please, check if you have defined it.`, { objectMetadata, - buildOtions, + buildOptions, }, ); diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/edge-type.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/edge-type.factory.ts index 30ddfd0166a9..3adeeb2d187f 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/edge-type.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/edge-type.factory.ts @@ -5,15 +5,15 @@ import { GraphQLOutputType } from 'graphql'; import { WorkspaceBuildSchemaOptions } from 'src/engine/api/graphql/workspace-schema-builder/interfaces/workspace-build-schema-optionts.interface'; import { ObjectMetadataInterface } from 'src/engine/metadata-modules/field-metadata/interfaces/object-metadata.interface'; +import { CursorScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars'; import { TypeMapperService, TypeOptions, } from 'src/engine/api/graphql/workspace-schema-builder/services/type-mapper.service'; import { TypeDefinitionsStorage } from 'src/engine/api/graphql/workspace-schema-builder/storages/type-definitions.storage'; -import { CursorScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars'; -import { ObjectTypeDefinitionKind } from './object-type-definition.factory'; import { EdgeTypeDefinitionKind } from './edge-type-definition.factory'; +import { ObjectTypeDefinitionKind } from './object-type-definition.factory'; @Injectable() export class EdgeTypeFactory { @@ -27,7 +27,7 @@ export class EdgeTypeFactory { public create( objectMetadata: ObjectMetadataInterface, kind: EdgeTypeDefinitionKind, - buildOtions: WorkspaceBuildSchemaOptions, + buildOptions: WorkspaceBuildSchemaOptions, typeOptions: TypeOptions, ): GraphQLOutputType { if (kind === EdgeTypeDefinitionKind.Cursor) { @@ -44,7 +44,7 @@ export class EdgeTypeFactory { `Node type for ${objectMetadata.nameSingular} was not found. Please, check if you have defined it.`, { objectMetadata, - buildOtions, + buildOptions, }, ); diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/output-type.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/output-type.factory.ts index 1b8ef4c1cbb2..ea3bdda4c21c 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/output-type.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/factories/output-type.factory.ts @@ -26,7 +26,7 @@ export class OutputTypeFactory { target: string, type: FieldMetadataType, kind: ObjectTypeDefinitionKind, - buildOtions: WorkspaceBuildSchemaOptions, + buildOptions: WorkspaceBuildSchemaOptions, typeOptions: TypeOptions, ): GraphQLOutputType { let gqlType: GraphQLOutputType | undefined = @@ -40,8 +40,9 @@ export class OutputTypeFactory { if (!gqlType) { this.logger.error(`Could not find a GraphQL type for ${target}`, { + kind, type, - buildOtions, + buildOptions, typeOptions, }); diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/services/type-mapper.service.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/services/type-mapper.service.ts index dc2fbbfd2a21..429cd195faca 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/services/type-mapper.service.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/services/type-mapper.service.ts @@ -79,6 +79,7 @@ export class TypeMapperService { StringArrayScalarType as unknown as GraphQLScalarType, ], [FieldMetadataType.RICH_TEXT, GraphQLString], + [FieldMetadataType.TS_VECTOR, GraphQLString], ]); return typeScalarMapping.get(fieldMetadataType); @@ -114,6 +115,7 @@ export class TypeMapperService { [FieldMetadataType.RAW_JSON, RawJsonFilterType], [FieldMetadataType.RICH_TEXT, StringFilterType], [FieldMetadataType.ARRAY, ArrayFilterType], + [FieldMetadataType.TS_VECTOR, StringFilterType], // TODO: Add TSVectorFilterType ]); return typeFilterMapping.get(fieldMetadataType); @@ -137,6 +139,7 @@ export class TypeMapperService { [FieldMetadataType.RAW_JSON, OrderByDirectionType], [FieldMetadataType.RICH_TEXT, OrderByDirectionType], [FieldMetadataType.ARRAY, OrderByDirectionType], + [FieldMetadataType.TS_VECTOR, OrderByDirectionType], // TODO: Add TSVectorOrderByType ]); return typeOrderByMapping.get(fieldMetadataType); diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/utils/generate-fields.utils.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/utils/generate-fields.utils.ts index d27f0eba9a76..88e8091a0433 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/utils/generate-fields.utils.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema-builder/utils/generate-fields.utils.ts @@ -46,10 +46,7 @@ export const generateFields = < const fields = {}; for (const fieldMetadata of objectMetadata.fields) { - if ( - isRelationFieldMetadataType(fieldMetadata.type) || - fieldMetadata.type === FieldMetadataType.TS_VECTOR - ) { + if (isRelationFieldMetadataType(fieldMetadata.type)) { continue; } diff --git a/packages/twenty-server/src/engine/api/graphql/workspace-schema.factory.ts b/packages/twenty-server/src/engine/api/graphql/workspace-schema.factory.ts index 32a44ad4d26e..558ece2b4768 100644 --- a/packages/twenty-server/src/engine/api/graphql/workspace-schema.factory.ts +++ b/packages/twenty-server/src/engine/api/graphql/workspace-schema.factory.ts @@ -76,6 +76,7 @@ export class WorkspaceSchemaFactory { (objectMetadataItem) => ({ ...objectMetadataItem, fields: Object.values(objectMetadataItem.fields), + indexes: objectMetadataItem.indexMetadatas, }), ); diff --git a/packages/twenty-server/src/engine/api/rest/core/query-builder/utils/__tests__/map-field-metadata-to-graphql-query.utils.spec.ts b/packages/twenty-server/src/engine/api/rest/core/query-builder/utils/__tests__/map-field-metadata-to-graphql-query.utils.spec.ts index 625da7f23b07..4fec6c7ab443 100644 --- a/packages/twenty-server/src/engine/api/rest/core/query-builder/utils/__tests__/map-field-metadata-to-graphql-query.utils.spec.ts +++ b/packages/twenty-server/src/engine/api/rest/core/query-builder/utils/__tests__/map-field-metadata-to-graphql-query.utils.spec.ts @@ -31,9 +31,6 @@ describe('mapFieldMetadataToGraphqlQuery', () => { }); describe('should handle all field metadata types', () => { Object.values(FieldMetadataType).forEach((fieldMetadataType) => { - if (fieldMetadataType === FieldMetadataType.TS_VECTOR) { - return; - } it(`with field type ${fieldMetadataType}`, () => { const field = { type: fieldMetadataType, diff --git a/packages/twenty-server/src/engine/api/rest/core/query-builder/utils/map-field-metadata-to-graphql-query.utils.ts b/packages/twenty-server/src/engine/api/rest/core/query-builder/utils/map-field-metadata-to-graphql-query.utils.ts index 4b2dd84f1e5f..a5ce9aa30023 100644 --- a/packages/twenty-server/src/engine/api/rest/core/query-builder/utils/map-field-metadata-to-graphql-query.utils.ts +++ b/packages/twenty-server/src/engine/api/rest/core/query-builder/utils/map-field-metadata-to-graphql-query.utils.ts @@ -30,6 +30,7 @@ export const mapFieldMetadataToGraphqlQuery = ( FieldMetadataType.RAW_JSON, FieldMetadataType.RICH_TEXT, FieldMetadataType.ARRAY, + FieldMetadataType.TS_VECTOR, ].includes(fieldType); if (fieldIsSimpleValue) { diff --git a/packages/twenty-server/src/engine/core-modules/event-emitter/utils/__tests__/object-record-changed-values.spec.ts b/packages/twenty-server/src/engine/core-modules/event-emitter/utils/__tests__/object-record-changed-values.spec.ts index c9c1806698f6..b18400d080bf 100644 --- a/packages/twenty-server/src/engine/core-modules/event-emitter/utils/__tests__/object-record-changed-values.spec.ts +++ b/packages/twenty-server/src/engine/core-modules/event-emitter/utils/__tests__/object-record-changed-values.spec.ts @@ -13,6 +13,7 @@ const mockObjectMetadata: ObjectMetadataInterface = { fromRelations: [], toRelations: [], fields: [], + indexMetadatas: [], isSystem: false, isCustom: false, isActive: true, diff --git a/packages/twenty-server/src/engine/core-modules/feature-flag/enums/feature-flag-key.enum.ts b/packages/twenty-server/src/engine/core-modules/feature-flag/enums/feature-flag-key.enum.ts index 836f6cd6d792..8483f3089f6b 100644 --- a/packages/twenty-server/src/engine/core-modules/feature-flag/enums/feature-flag-key.enum.ts +++ b/packages/twenty-server/src/engine/core-modules/feature-flag/enums/feature-flag-key.enum.ts @@ -14,4 +14,5 @@ export enum FeatureFlagKey { IsWorkspaceMigratedForSearch = 'IS_WORKSPACE_MIGRATED_FOR_SEARCH', IsGmailSendEmailScopeEnabled = 'IS_GMAIL_SEND_EMAIL_SCOPE_ENABLED', IsAnalyticsV2Enabled = 'IS_ANALYTICS_V2_ENABLED', + IsUniqueIndexesEnabled = 'IS_UNIQUE_INDEXES_ENABLED', } diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/emails.composite-type.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/emails.composite-type.ts index 9ca5ceea55a6..5cda75160530 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/emails.composite-type.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/emails.composite-type.ts @@ -10,6 +10,7 @@ export const emailsCompositeType: CompositeType = { type: FieldMetadataType.TEXT, hidden: false, isRequired: false, + isIncludedInUniqueConstraint: true, }, { name: 'additionalEmails', diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/full-name.composite-type.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/full-name.composite-type.ts index 835adb703501..937a9f6aae3a 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/full-name.composite-type.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/full-name.composite-type.ts @@ -10,12 +10,14 @@ export const fullNameCompositeType: CompositeType = { type: FieldMetadataType.TEXT, hidden: false, isRequired: false, + isIncludedInUniqueConstraint: true, }, { name: 'lastName', type: FieldMetadataType.TEXT, hidden: false, isRequired: false, + isIncludedInUniqueConstraint: true, }, ], }; diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/links.composite-type.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/links.composite-type.ts index 2238e2175847..eedfeb4da0ab 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/links.composite-type.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/links.composite-type.ts @@ -16,6 +16,7 @@ export const linksCompositeType: CompositeType = { type: FieldMetadataType.TEXT, hidden: false, isRequired: false, + isIncludedInUniqueConstraint: true, }, { name: 'secondaryLinks', diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/phones.composite-type.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/phones.composite-type.ts index a53661779b80..366e957545cb 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/phones.composite-type.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/composite-types/phones.composite-type.ts @@ -10,6 +10,7 @@ export const phonesCompositeType: CompositeType = { type: FieldMetadataType.TEXT, hidden: false, isRequired: false, + isIncludedInUniqueConstraint: true, }, { name: 'primaryPhoneCountryCode', diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto.ts index b81cf7a76b8b..862fcd4e0156 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto.ts @@ -118,6 +118,11 @@ export class FieldMetadataDTO< @Field({ nullable: true }) isNullable?: boolean; + @IsBoolean() + @IsOptional() + @Field({ nullable: true }) + isUnique?: boolean; + @Validate(IsFieldMetadataDefaultValue) @IsOptional() @Field(() => GraphQLJSON, { nullable: true }) diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts index 5ab017f17b12..31d2dab39185 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/field-metadata.entity.ts @@ -108,6 +108,9 @@ export class FieldMetadataEntity< @Column({ nullable: true, default: true }) isNullable: boolean; + @Column({ nullable: true, default: false }) + isUnique: boolean; + @Column({ nullable: false, type: 'uuid' }) workspaceId: string; @@ -126,7 +129,7 @@ export class FieldMetadataEntity< @OneToMany( () => IndexFieldMetadataEntity, (indexFieldMetadata: IndexFieldMetadataEntity) => - indexFieldMetadata.fieldMetadata, + indexFieldMetadata.indexMetadata, { cascade: true, }, diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/composite-type.interface.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/composite-type.interface.ts index c6f34b31806b..321cd3c7f917 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/composite-type.interface.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/composite-type.interface.ts @@ -10,6 +10,7 @@ export interface CompositeProperty< type: Type; hidden: 'input' | 'output' | true | false; isRequired: boolean; + isIncludedInUniqueConstraint?: boolean; isArray?: boolean; options?: FieldMetadataOptions; } diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/field-metadata.interface.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/field-metadata.interface.ts index 53a7a67a6159..a33fe7392cdd 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/field-metadata.interface.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/field-metadata.interface.ts @@ -19,6 +19,7 @@ export interface FieldMetadataInterface< workspaceId?: string; description?: string; isNullable?: boolean; + isUnique?: boolean; fromRelationMetadata?: RelationMetadataEntity; toRelationMetadata?: RelationMetadataEntity; isCustom?: boolean; diff --git a/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/object-metadata.interface.ts b/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/object-metadata.interface.ts index 8d805dfe4a03..cc903fba3c1d 100644 --- a/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/object-metadata.interface.ts +++ b/packages/twenty-server/src/engine/metadata-modules/field-metadata/interfaces/object-metadata.interface.ts @@ -1,3 +1,5 @@ +import { IndexMetadataInterface } from 'src/engine/metadata-modules/index-metadata/interfaces/index-metadata.interface'; + import { FieldMetadataInterface } from './field-metadata.interface'; import { RelationMetadataInterface } from './relation-metadata.interface'; @@ -13,6 +15,7 @@ export interface ObjectMetadataInterface { fromRelations: RelationMetadataInterface[]; toRelations: RelationMetadataInterface[]; fields: FieldMetadataInterface[]; + indexMetadatas: IndexMetadataInterface[]; isSystem: boolean; isCustom: boolean; isActive: boolean; diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-field-metadata.dto.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-field-metadata.dto.ts new file mode 100644 index 000000000000..8235ec9b335d --- /dev/null +++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-field-metadata.dto.ts @@ -0,0 +1,62 @@ +import { Field, HideField, ObjectType } from '@nestjs/graphql'; + +import { + Authorize, + FilterableField, + IDField, + QueryOptions, + Relation, +} from '@ptc-org/nestjs-query-graphql'; +import { IsDateString, IsNotEmpty, IsNumber, IsUUID } from 'class-validator'; + +import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars'; +import { FieldMetadataDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto'; + +import { IndexMetadataDTO } from './index-metadata.dto'; + +@ObjectType('indexField') +@Authorize({ + authorize: (context: any) => ({ + workspaceId: { eq: context?.req?.workspace?.id }, + }), +}) +@QueryOptions({ + defaultResultSize: 10, + disableSort: true, + maxResultsSize: 1000, +}) +@Relation('indexMetadata', () => IndexMetadataDTO, { + nullable: true, +}) +@Relation('fieldMetadata', () => FieldMetadataDTO, { + nullable: true, +}) +export class IndexFieldMetadataDTO { + @IsUUID() + @IsNotEmpty() + @IDField(() => UUIDScalarType) + id: string; + + indexMetadataId: string; + + @IsUUID() + @IsNotEmpty() + @FilterableField(() => UUIDScalarType) + fieldMetadataId: string; + + @IsNumber() + @IsNotEmpty() + @Field() + order: number; + + @IsDateString() + @Field() + createdAt: Date; + + @IsDateString() + @Field() + updatedAt: Date; + + @HideField() + workspaceId: string; +} diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto.ts new file mode 100644 index 000000000000..209c1cafa7ec --- /dev/null +++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto.ts @@ -0,0 +1,93 @@ +import { + Field, + HideField, + ObjectType, + registerEnumType, +} from '@nestjs/graphql'; + +import { + Authorize, + CursorConnection, + FilterableField, + IDField, + QueryOptions, +} from '@ptc-org/nestjs-query-graphql'; +import { + IsBoolean, + IsDateString, + IsEnum, + IsNotEmpty, + IsOptional, + IsString, + IsUUID, +} from 'class-validator'; + +import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars'; +import { IsValidMetadataName } from 'src/engine/decorators/metadata/is-valid-metadata-name.decorator'; +import { IndexFieldMetadataDTO } from 'src/engine/metadata-modules/index-metadata/dtos/index-field-metadata.dto'; +import { IndexType } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity'; +import { ObjectMetadataDTO } from 'src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto'; + +registerEnumType(IndexType, { + name: 'IndexType', + description: 'Type of the index', +}); + +@ObjectType('index') +@Authorize({ + authorize: (context: any) => ({ + workspaceId: { eq: context?.req?.workspace?.id }, + }), +}) +@QueryOptions({ + defaultResultSize: 10, + disableSort: true, + maxResultsSize: 1000, +}) +@CursorConnection('objectMetadata', () => ObjectMetadataDTO) +@CursorConnection('indexFieldMetadatas', () => IndexFieldMetadataDTO) +export class IndexMetadataDTO { + @IsUUID() + @IsNotEmpty() + @IDField(() => UUIDScalarType) + id: string; + + @IsString() + @IsNotEmpty() + @Field() + @IsValidMetadataName() + name: string; + + @IsBoolean() + @IsOptional() + @FilterableField({ nullable: true }) + isCustom?: boolean; + + @IsBoolean() + @IsNotEmpty() + @Field() + isUnique: boolean; + + @IsString() + @IsOptional() + @Field({ nullable: true }) + indexWhereClause?: string; + + @IsEnum(IndexType) + @IsNotEmpty() + @Field(() => IndexType) + indexType: IndexType; + + objectMetadataId: string; + + @IsDateString() + @Field() + createdAt: Date; + + @IsDateString() + @Field() + updatedAt: Date; + + @HideField() + workspaceId: string; +} diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.entity.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.entity.ts index 07471ac9b2da..fc2f991ce225 100644 --- a/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.entity.ts +++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.entity.ts @@ -23,6 +23,12 @@ export class IndexMetadataEntity { @PrimaryGeneratedColumn('uuid') id: string; + @CreateDateColumn({ type: 'timestamptz' }) + createdAt: Date; + + @UpdateDateColumn({ type: 'timestamptz' }) + updatedAt: Date; + @Column({ nullable: false }) name: string; @@ -32,7 +38,7 @@ export class IndexMetadataEntity { @Column({ nullable: false, type: 'uuid' }) objectMetadataId: string; - @ManyToOne(() => ObjectMetadataEntity, (object) => object.indexes, { + @ManyToOne(() => ObjectMetadataEntity, (object) => object.indexMetadatas, { onDelete: 'CASCADE', }) @JoinColumn() @@ -48,15 +54,15 @@ export class IndexMetadataEntity { ) indexFieldMetadatas: Relation; - @CreateDateColumn({ type: 'timestamptz' }) - createdAt: Date; - - @UpdateDateColumn({ type: 'timestamptz' }) - updatedAt: Date; - @Column({ default: false }) isCustom: boolean; + @Column({ nullable: false, default: false }) + isUnique: boolean; + + @Column({ type: 'text', nullable: true }) + indexWhereClause: string | null; + @Column({ type: 'enum', enum: IndexType, diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.module.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.module.ts index c22a56dfb222..826fb9b796e4 100644 --- a/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.module.ts +++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.module.ts @@ -1,14 +1,50 @@ import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; +import { SortDirection } from '@ptc-org/nestjs-query-core'; +import { NestjsQueryGraphQLModule } from '@ptc-org/nestjs-query-graphql'; +import { NestjsQueryTypeOrmModule } from '@ptc-org/nestjs-query-typeorm'; + +import { WorkspaceAuthGuard } from 'src/engine/guards/workspace-auth.guard'; +import { IndexMetadataDTO } from 'src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto'; +import { IndexFieldMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-field-metadata.entity'; import { IndexMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity'; import { IndexMetadataService } from 'src/engine/metadata-modules/index-metadata/index-metadata.service'; +import { ObjectMetadataGraphqlApiExceptionInterceptor } from 'src/engine/metadata-modules/object-metadata/interceptors/object-metadata-graphql-api-exception.interceptor'; import { WorkspaceMigrationModule } from 'src/engine/metadata-modules/workspace-migration/workspace-migration.module'; @Module({ imports: [ TypeOrmModule.forFeature([IndexMetadataEntity], 'metadata'), - WorkspaceMigrationModule, + NestjsQueryGraphQLModule.forFeature({ + imports: [ + NestjsQueryTypeOrmModule.forFeature( + [IndexMetadataEntity, IndexFieldMetadataEntity], + 'metadata', + ), + WorkspaceMigrationModule, + ], + services: [IndexMetadataService], + resolvers: [ + { + EntityClass: IndexMetadataEntity, + DTOClass: IndexMetadataDTO, + read: { + defaultSort: [{ field: 'id', direction: SortDirection.DESC }], + many: { + name: 'indexMetadatas', //TODO: check + singular + }, + }, + create: { + disabled: true, + }, + update: { disabled: true }, + delete: { disabled: true }, + guards: [WorkspaceAuthGuard], + interceptors: [ObjectMetadataGraphqlApiExceptionInterceptor], + }, + ], + }), ], providers: [IndexMetadataService], exports: [IndexMetadataService], diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.service.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.service.ts index f84572c33e8c..362519ef78a4 100644 --- a/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.service.ts +++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/index-metadata.service.ts @@ -32,8 +32,10 @@ export class IndexMetadataService { workspaceId: string, objectMetadata: ObjectMetadataEntity, fieldMetadataToIndex: Partial[], + isUnique: boolean, isCustom: boolean, indexType?: IndexType, + indexWhereClause?: string, ) { const tableName = computeObjectTargetTable(objectMetadata); @@ -82,6 +84,8 @@ export class IndexMetadataService { action: WorkspaceMigrationIndexActionType.CREATE, columns: columnNames, name: indexName, + isUnique, + where: indexWhereClause, type: indexType, }, ], diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/interfaces/index-field-metadata.interface.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/interfaces/index-field-metadata.interface.ts new file mode 100644 index 000000000000..f9fd9c6f3402 --- /dev/null +++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/interfaces/index-field-metadata.interface.ts @@ -0,0 +1,11 @@ +import { FieldMetadataInterface } from 'src/engine/metadata-modules/field-metadata/interfaces/field-metadata.interface'; +import { IndexMetadataInterface } from 'src/engine/metadata-modules/index-metadata/interfaces/index-metadata.interface'; + +export interface IndexFieldMetadataInterface { + id: string; + indexMetadataId: string; + fieldMetadataId: string; + fieldMetadata: FieldMetadataInterface; + indexMetadata: IndexMetadataInterface; + order: number; +} diff --git a/packages/twenty-server/src/engine/metadata-modules/index-metadata/interfaces/index-metadata.interface.ts b/packages/twenty-server/src/engine/metadata-modules/index-metadata/interfaces/index-metadata.interface.ts new file mode 100644 index 000000000000..2b928a967250 --- /dev/null +++ b/packages/twenty-server/src/engine/metadata-modules/index-metadata/interfaces/index-metadata.interface.ts @@ -0,0 +1,7 @@ +import { IndexFieldMetadataInterface } from 'src/engine/metadata-modules/index-metadata/interfaces/index-field-metadata.interface'; + +export interface IndexMetadataInterface { + name: string; + isUnique: boolean; + indexFieldMetadatas: IndexFieldMetadataInterface[]; +} diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto.ts index 6a494370d962..e390aca9f236 100644 --- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto.ts +++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/dtos/object-metadata.dto.ts @@ -11,6 +11,7 @@ import { import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars'; import { FieldMetadataDTO } from 'src/engine/metadata-modules/field-metadata/dtos/field-metadata.dto'; +import { IndexMetadataDTO } from 'src/engine/metadata-modules/index-metadata/dtos/index-metadata.dto'; import { BeforeDeleteOneObject } from 'src/engine/metadata-modules/object-metadata/hooks/before-delete-one-object.hook'; @ObjectType('object') @@ -26,6 +27,7 @@ import { BeforeDeleteOneObject } from 'src/engine/metadata-modules/object-metada }) @BeforeDeleteOne(BeforeDeleteOneObject) @CursorConnection('fields', () => FieldMetadataDTO) +@CursorConnection('indexMetadatas', () => IndexMetadataDTO) export class ObjectMetadataDTO { @IDField(() => UUIDScalarType) id: string; diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.entity.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.entity.ts index 3d550b02fe5d..9cfc8bedc12e 100644 --- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.entity.ts +++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.entity.ts @@ -86,7 +86,7 @@ export class ObjectMetadataEntity implements ObjectMetadataInterface { @OneToMany(() => IndexMetadataEntity, (index) => index.objectMetadata, { cascade: true, }) - indexes: Relation; + indexMetadatas: Relation; @OneToMany( () => RelationMetadataEntity, diff --git a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.service.ts b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.service.ts index ff08237d20fc..83db047cd859 100644 --- a/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.service.ts +++ b/packages/twenty-server/src/engine/metadata-modules/object-metadata/object-metadata.service.ts @@ -673,6 +673,7 @@ export class ObjectMetadataService extends TypeOrmQueryService { + if (propertyKey === undefined) { + throw new Error('This decorator should be used with a field not a class'); + } + + const gate = TypedReflect.getMetadata( + 'workspace:gate-metadata-args', + target, + propertyKey.toString(), + ); + + const additionalDefaultColumnsForIndex = getColumnsForIndex( + options?.indexType, + ); + + const columns = [ + propertyKey.toString(), + ...additionalDefaultColumnsForIndex, + ]; + + metadataArgsStorage.addIndexes({ + name: `IDX_${generateDeterministicIndexName([ + convertClassNameToObjectMetadataName(target.constructor.name), + ...columns, + ])}`, + columns, + target: target.constructor, + gate, + isUnique: options?.isUnique ?? false, + whereClause: options?.indexWhereClause ?? null, + type: options?.indexType, + }); + }; +} diff --git a/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-field.decorator.ts b/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-field.decorator.ts index c0ffcc5df721..35068e823005 100644 --- a/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-field.decorator.ts +++ b/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-field.decorator.ts @@ -57,6 +57,12 @@ export function WorkspaceField( object, propertyKey.toString(), ) ?? false; + const isUnique = + TypedReflect.getMetadata( + 'workspace:is-unique-metadata-args', + object, + propertyKey.toString(), + ) ?? false; const defaultValue = (options.defaultValue ?? generateDefaultValue(options.type)) as FieldMetadataDefaultValue | null; @@ -77,6 +83,7 @@ export function WorkspaceField( isSystem, gate, isDeprecated, + isUnique, isActive: options.isActive, asExpression: options.asExpression, generatedType: options.generatedType, diff --git a/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-index.decorator.ts b/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-index.decorator.ts index ef39e0cceff5..f35dcca18f01 100644 --- a/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-index.decorator.ts +++ b/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-index.decorator.ts @@ -1,83 +1,40 @@ import { IndexType } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity'; import { generateDeterministicIndexName } from 'src/engine/metadata-modules/index-metadata/utils/generate-deterministic-index-name'; import { metadataArgsStorage } from 'src/engine/twenty-orm/storage/metadata-args.storage'; -import { getColumnsForIndex } from 'src/engine/twenty-orm/utils/get-default-columns-for-index.util'; import { convertClassNameToObjectMetadataName } from 'src/engine/workspace-manager/workspace-sync-metadata/utils/convert-class-to-object-metadata-name.util'; -import { isDefined } from 'src/utils/is-defined'; import { TypedReflect } from 'src/utils/typed-reflect'; -export type WorkspaceIndexMetadata = { - columns?: string[]; +export type WorkspaceIndexOptions = { + isUnique?: boolean; + indexWhereClause?: string; indexType?: IndexType; }; export function WorkspaceIndex( - metadata?: WorkspaceIndexMetadata, -): PropertyDecorator; -export function WorkspaceIndex( - metadata: WorkspaceIndexMetadata, -): ClassDecorator; -export function WorkspaceIndex( - metadata?: WorkspaceIndexMetadata, -): PropertyDecorator | ClassDecorator { - return (target: any, propertyKey: string | symbol) => { - if (propertyKey === undefined && metadata === undefined) { - throw new Error('Class level WorkspaceIndex should be used with columns'); - } - - if (propertyKey !== undefined && metadata?.columns !== undefined) { - throw new Error( - 'Property level WorkspaceIndex should not be used with columns', - ); - } - + columns: string[], + options: WorkspaceIndexOptions, +): ClassDecorator { + if (!Array.isArray(columns) || columns.length === 0) { + throw new Error('Class level WorkspaceIndex should be used with columns'); + } + + return (target: any) => { const gate = TypedReflect.getMetadata( 'workspace:gate-metadata-args', target, - propertyKey.toString(), ); - // TODO: handle composite field metadata types - if (isDefined(metadata?.columns)) { - const columns = metadata.columns; - - if (columns.length > 0) { - metadataArgsStorage.addIndexes({ - name: `IDX_${generateDeterministicIndexName([ - convertClassNameToObjectMetadataName(target.name), - ...columns, - ])}`, - columns, - target: target, - gate, - ...(isDefined(metadata?.indexType) - ? { type: metadata.indexType } - : {}), - }); - - return; - } - } - - if (isDefined(propertyKey)) { - const additionalDefaultColumnsForIndex = getColumnsForIndex( - metadata?.indexType, - ); - const columns = [ - propertyKey.toString(), - ...additionalDefaultColumnsForIndex, - ]; - - metadataArgsStorage.addIndexes({ - name: `IDX_${generateDeterministicIndexName([ - convertClassNameToObjectMetadataName(target.constructor.name), - ...columns, - ])}`, - columns, - target: target.constructor, - ...(isDefined(metadata?.indexType) ? { type: metadata.indexType } : {}), - gate, - }); - } + metadataArgsStorage.addIndexes({ + name: `IDX_${generateDeterministicIndexName([ + convertClassNameToObjectMetadataName(target.name), + ...columns, + ])}`, + columns, + target: target, + gate, + isUnique: options?.isUnique ?? false, + whereClause: options?.indexWhereClause ?? null, + type: options?.indexType, + }); }; } diff --git a/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-is-unique.decorator.ts b/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-is-unique.decorator.ts new file mode 100644 index 000000000000..179aa1390249 --- /dev/null +++ b/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-is-unique.decorator.ts @@ -0,0 +1,39 @@ +import { generateDeterministicIndexName } from 'src/engine/metadata-modules/index-metadata/utils/generate-deterministic-index-name'; +import { metadataArgsStorage } from 'src/engine/twenty-orm/storage/metadata-args.storage'; +import { convertClassNameToObjectMetadataName } from 'src/engine/workspace-manager/workspace-sync-metadata/utils/convert-class-to-object-metadata-name.util'; +import { TypedReflect } from 'src/utils/typed-reflect'; + +export function WorkspaceIsUnique(): PropertyDecorator { + return (target: any, propertyKey: string | symbol) => { + if (propertyKey === undefined) { + throw new Error('This decorator should be used with a field not a class'); + } + + const gate = TypedReflect.getMetadata( + 'workspace:gate-metadata-args', + target, + propertyKey.toString(), + ); + + const columns = [propertyKey.toString()]; + + metadataArgsStorage.addIndexes({ + name: `IDX_UNIQUE_${generateDeterministicIndexName([ + convertClassNameToObjectMetadataName(target.constructor.name), + ...columns, + ])}`, + columns, + target: target.constructor, + gate, + isUnique: true, + whereClause: null, + }); + + return TypedReflect.defineMetadata( + 'workspace:is-unique-metadata-args', + true, + target, + propertyKey.toString(), + ); + }; +} diff --git a/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-join-column.decorator.ts b/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-join-column.decorator.ts index 98dc6eedb10c..8b1954afb6bf 100644 --- a/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-join-column.decorator.ts +++ b/packages/twenty-server/src/engine/twenty-orm/decorators/workspace-join-column.decorator.ts @@ -1,4 +1,4 @@ -import { WorkspaceIndex } from 'src/engine/twenty-orm/decorators/workspace-index.decorator'; +import { WorkspaceFieldIndex } from 'src/engine/twenty-orm/decorators/workspace-field-index.decorator'; import { metadataArgsStorage } from 'src/engine/twenty-orm/storage/metadata-args.storage'; export function WorkspaceJoinColumn( @@ -12,6 +12,6 @@ export function WorkspaceJoinColumn( }); // Register index for join column - WorkspaceIndex()(object, propertyKey); + WorkspaceFieldIndex()(object, propertyKey); }; } diff --git a/packages/twenty-server/src/engine/twenty-orm/interfaces/workspace-field-metadata-args.interface.ts b/packages/twenty-server/src/engine/twenty-orm/interfaces/workspace-field-metadata-args.interface.ts index 46ad1132dadc..03862b3adf61 100644 --- a/packages/twenty-server/src/engine/twenty-orm/interfaces/workspace-field-metadata-args.interface.ts +++ b/packages/twenty-server/src/engine/twenty-orm/interfaces/workspace-field-metadata-args.interface.ts @@ -75,6 +75,11 @@ export interface WorkspaceFieldMetadataArgs { */ readonly isNullable: boolean; + /** + * Is unique field. + */ + readonly isUnique: boolean; + /** * Field gate. */ diff --git a/packages/twenty-server/src/engine/twenty-orm/interfaces/workspace-index-metadata-args.interface.ts b/packages/twenty-server/src/engine/twenty-orm/interfaces/workspace-index-metadata-args.interface.ts index 0ad260070947..df2fc1e8366a 100644 --- a/packages/twenty-server/src/engine/twenty-orm/interfaces/workspace-index-metadata-args.interface.ts +++ b/packages/twenty-server/src/engine/twenty-orm/interfaces/workspace-index-metadata-args.interface.ts @@ -19,11 +19,21 @@ export interface WorkspaceIndexMetadataArgs { */ columns: string[]; + /** + * Is index unique. + */ + isUnique: boolean; + /* * Index type. Defaults to Btree. */ type?: IndexType; + /** + * Index where clause. + */ + whereClause: string | null; + /** * Field gate. */ diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-health/interfaces/workspace-table-definition.interface.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-health/interfaces/workspace-table-definition.interface.ts index 6a762c1b7269..543db747ff4c 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-health/interfaces/workspace-table-definition.interface.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-health/interfaces/workspace-table-definition.interface.ts @@ -5,9 +5,9 @@ export interface WorkspaceTableStructure { dataType: string; columnDefault: string; isNullable: boolean; + isUnique: boolean; isPrimaryKey: boolean; isForeignKey: boolean; - isUnique: boolean; isArray: boolean; onUpdateAction: string; onDeleteAction: string; diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-builder/factories/workspace-migration-index.factory.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-builder/factories/workspace-migration-index.factory.ts index 206e5097ac5a..480d5f87c652 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-builder/factories/workspace-migration-index.factory.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-builder/factories/workspace-migration-index.factory.ts @@ -1,7 +1,11 @@ import { Injectable } from '@nestjs/common'; +import { CompositeType } from 'src/engine/metadata-modules/field-metadata/interfaces/composite-type.interface'; import { WorkspaceMigrationBuilderAction } from 'src/engine/workspace-manager/workspace-migration-builder/interfaces/workspace-migration-builder-action.interface'; +import { compositeTypeDefinitions } from 'src/engine/metadata-modules/field-metadata/composite-types'; +import { computeCompositeColumnName } from 'src/engine/metadata-modules/field-metadata/utils/compute-column-name.util'; +import { isCompositeFieldMetadataType } from 'src/engine/metadata-modules/field-metadata/utils/is-composite-field-metadata-type.util'; import { IndexMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity'; import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; import { generateMigrationName } from 'src/engine/metadata-modules/workspace-migration/utils/generate-migration-name.util'; @@ -77,10 +81,8 @@ export class WorkspaceMigrationIndexFactory { objectMetadata.fields.map((field) => [field.id, field]), ); - const indexes = indexMetadataCollection.map((indexMetadata) => ({ - name: indexMetadata.name, - action: WorkspaceMigrationIndexActionType.CREATE, - columns: indexMetadata.indexFieldMetadatas + const indexes = indexMetadataCollection.map((indexMetadata) => { + const columns = indexMetadata.indexFieldMetadatas .sort((a, b) => a.order - b.order) .map((indexFieldMetadata) => { const fieldMetadata = @@ -92,10 +94,35 @@ export class WorkspaceMigrationIndexFactory { ); } - return fieldMetadata.name; - }), - type: indexMetadata.indexType, - })); + if (!isCompositeFieldMetadataType(fieldMetadata.type)) { + return fieldMetadata.name; + } + + const compositeType = compositeTypeDefinitions.get( + fieldMetadata.type, + ) as CompositeType; + + return compositeType.properties + .filter((property) => property.isIncludedInUniqueConstraint) + .map((property) => + computeCompositeColumnName(fieldMetadata, property), + ); + }) + .flat(); + + const defaultWhereClause = indexMetadata.isUnique + ? `${columns.map((column) => `"${column}"`).join(" != '' AND ")} != '' AND "deletedAt" IS NULL` + : null; + + return { + name: indexMetadata.name, + action: WorkspaceMigrationIndexActionType.CREATE, + isUnique: indexMetadata.isUnique, + columns, + type: indexMetadata.indexType, + where: indexMetadata.indexWhereClause ?? defaultWhereClause, + }; + }); workspaceMigrations.push({ workspaceId: objectMetadata.workspaceId, @@ -134,6 +161,7 @@ export class WorkspaceMigrationIndexFactory { name: indexMetadata.name, action: WorkspaceMigrationIndexActionType.DROP, columns: [], + isUnique: indexMetadata.isUnique, })); workspaceMigrations.push({ diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts index afd381cb16c4..843042832bfd 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service.ts @@ -77,6 +77,7 @@ export class WorkspaceMigrationEnumService { enumName: newEnumTypeName, isArray: columnDefinition.isArray, isNullable: columnDefinition.isNullable, + isUnique: columnDefinition.isUnique, }), ); diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/workspace-migration-runner.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/workspace-migration-runner.service.ts index db2072c8447b..df85336609db 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/workspace-migration-runner.service.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration-runner/workspace-migration-runner.service.ts @@ -1,5 +1,6 @@ import { Injectable } from '@nestjs/common'; +import { isDefined } from 'class-validator'; import { QueryRunner, Table, @@ -9,6 +10,7 @@ import { TableUnique, } from 'typeorm'; +import { IndexType } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity'; import { WorkspaceMigrationColumnAction, WorkspaceMigrationColumnActionType, @@ -27,7 +29,6 @@ import { WorkspaceDataSourceService } from 'src/engine/workspace-datasource/work import { WorkspaceMigrationEnumService } from 'src/engine/workspace-manager/workspace-migration-runner/services/workspace-migration-enum.service'; import { convertOnDeleteActionToOnDelete } from 'src/engine/workspace-manager/workspace-migration-runner/utils/convert-on-delete-action-to-on-delete.util'; import { tableDefaultColumns } from 'src/engine/workspace-manager/workspace-migration-runner/utils/table-default-column.util'; -import { isDefined } from 'src/utils/is-defined'; import { WorkspaceMigrationTypeService } from './services/workspace-migration-type.service'; @@ -200,7 +201,7 @@ export class WorkspaceMigrationRunnerService { for (const index of indexes) { switch (index.action) { case WorkspaceMigrationIndexActionType.CREATE: - if (isDefined(index.type)) { + if (isDefined(index.type) && index.type !== IndexType.BTREE) { const quotedColumns = index.columns.map((column) => `"${column}"`); await queryRunner.query(` @@ -212,6 +213,8 @@ export class WorkspaceMigrationRunnerService { new TableIndex({ name: index.name, columnNames: index.columns, + isUnique: index.isUnique, + where: index.where ?? undefined, }), ); } @@ -404,6 +407,7 @@ export class WorkspaceMigrationRunnerService { enumName: enumName, isArray: migrationColumn.isArray, isNullable: migrationColumn.isNullable, + isUnique: migrationColumn.isUnique, asExpression: migrationColumn.asExpression, generatedType: migrationColumn.generatedType, }), @@ -459,6 +463,7 @@ export class WorkspaceMigrationRunnerService { ), isArray: migrationColumn.currentColumnDefinition.isArray, isNullable: migrationColumn.currentColumnDefinition.isNullable, + isUnique: migrationColumn.currentColumnDefinition.isUnique, }), new TableColumn({ name: migrationColumn.alteredColumnDefinition.columnName, @@ -469,6 +474,7 @@ export class WorkspaceMigrationRunnerService { ), isArray: migrationColumn.alteredColumnDefinition.isArray, isNullable: migrationColumn.alteredColumnDefinition.isNullable, + isUnique: migrationColumn.alteredColumnDefinition.isUnique, }), ); } diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-index.comparator.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-index.comparator.ts index 5fbf2ad9756d..d8693db4e768 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-index.comparator.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-index.comparator.ts @@ -3,8 +3,8 @@ import { Injectable } from '@nestjs/common'; import diff from 'microdiff'; import { - IndexComparatorResult, ComparatorAction, + IndexComparatorResult, } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/comparator.interface'; import { IndexMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity'; diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-object.comparator.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-object.comparator.ts index eaa37da7cf84..350fdaf5348b 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-object.comparator.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/comparators/workspace-object.comparator.ts @@ -1,7 +1,7 @@ import { Injectable } from '@nestjs/common'; -import diff from 'microdiff'; import omit from 'lodash.omit'; +import diff from 'microdiff'; import { ComparatorAction, @@ -9,8 +9,8 @@ import { } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/comparator.interface'; import { ComputedPartialWorkspaceEntity } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/partial-object-metadata.interface'; -import { transformMetadataForComparison } from 'src/engine/workspace-manager/workspace-sync-metadata/comparators/utils/transform-metadata-for-comparison.util'; import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; +import { transformMetadataForComparison } from 'src/engine/workspace-manager/workspace-sync-metadata/comparators/utils/transform-metadata-for-comparison.util'; const objectPropertiesToIgnore = [ 'id', @@ -28,7 +28,10 @@ export class WorkspaceObjectComparator { public compare( originalObjectMetadata: Omit | undefined, - standardObjectMetadata: Omit, + standardObjectMetadata: Omit< + ComputedPartialWorkspaceEntity, + 'fields' | 'indexMetadatas' + >, ): ObjectComparatorResult { // If the object doesn't exist in the original metadata, we need to create it if (!originalObjectMetadata) { diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-field.factory.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-field.factory.ts index 28c6ca74435e..1aae07797ea7 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-field.factory.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-field.factory.ts @@ -12,6 +12,7 @@ import { import { WorkspaceSyncContext } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/workspace-sync-context.interface'; import { FieldMetadataType } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity'; +import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity'; import { metadataArgsStorage } from 'src/engine/twenty-orm/storage/metadata-args.storage'; import { getJoinColumn } from 'src/engine/twenty-orm/utils/get-join-column.util'; @@ -163,6 +164,7 @@ export class StandardFieldFactory { settings: workspaceFieldMetadataArgs.settings, workspaceId: context.workspaceId, isNullable: workspaceFieldMetadataArgs.isNullable, + isUnique: workspaceFieldMetadataArgs.isUnique, isCustom: workspaceFieldMetadataArgs.isDeprecated ? true : false, isSystem: workspaceFieldMetadataArgs.isSystem ?? false, isActive: workspaceFieldMetadataArgs.isActive ?? true, @@ -218,6 +220,9 @@ export class StandardFieldFactory { isCustom: false, isSystem: true, isNullable: workspaceRelationMetadataArgs.isNullable, + isUnique: + workspaceRelationMetadataArgs.type === + RelationMetadataType.ONE_TO_ONE, isActive: workspaceRelationMetadataArgs.isActive ?? true, }); } @@ -236,6 +241,8 @@ export class StandardFieldFactory { workspaceEntityMetadataArgs?.isSystem || workspaceRelationMetadataArgs.isSystem, isNullable: true, + isUnique: + workspaceRelationMetadataArgs.type === RelationMetadataType.ONE_TO_ONE, isActive: workspaceRelationMetadataArgs.isActive ?? true, }); diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-index.factory.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-index.factory.ts index f3d89d0312c6..5d6412fef7b7 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-index.factory.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-index.factory.ts @@ -88,7 +88,9 @@ export class StandardIndexFactory { objectMetadataId: objectMetadata.id, name: workspaceIndexMetadataArgs.name, columns: workspaceIndexMetadataArgs.columns, + isUnique: workspaceIndexMetadataArgs.isUnique, isCustom: false, + indexWhereClause: workspaceIndexMetadataArgs.whereClause, indexType: workspaceIndexMetadataArgs.type, }; @@ -130,7 +132,9 @@ export class StandardIndexFactory { name: `IDX_${generateDeterministicIndexName([computeTableName(customObjectName, true), ...workspaceIndexMetadataArgs.columns])}`, columns: workspaceIndexMetadataArgs.columns, isCustom: false, + isUnique: workspaceIndexMetadataArgs.isUnique, indexType: workspaceIndexMetadataArgs.type, + indexWhereClause: workspaceIndexMetadataArgs.whereClause, }; return indexMetadata; diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-object.factory.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-object.factory.ts index c3156881dc64..c45e3b9ae82b 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-object.factory.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/factories/standard-object.factory.ts @@ -14,7 +14,7 @@ export class StandardObjectFactory { standardObjectMetadataDefinitions: (typeof BaseWorkspaceEntity)[], context: WorkspaceSyncContext, workspaceFeatureFlagsMap: FeatureFlagMap, - ): Omit[] { + ): Omit[] { return standardObjectMetadataDefinitions .map((metadata) => this.createObjectMetadata(metadata, context, workspaceFeatureFlagsMap), @@ -26,7 +26,7 @@ export class StandardObjectFactory { target: typeof BaseWorkspaceEntity, context: WorkspaceSyncContext, workspaceFeatureFlagsMap: FeatureFlagMap, - ): Omit | undefined { + ): Omit | undefined { const workspaceEntityMetadataArgs = metadataArgsStorage.filterEntities(target); diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/interfaces/comparator.interface.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/interfaces/comparator.interface.ts index b4279b5d2397..23c746a5f18c 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/interfaces/comparator.interface.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/interfaces/comparator.interface.ts @@ -1,6 +1,6 @@ import { FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity'; -import { RelationMetadataEntity } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; import { IndexMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity'; +import { RelationMetadataEntity } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; import { ComputedPartialFieldMetadata } from './partial-field-metadata.interface'; import { ComputedPartialWorkspaceEntity } from './partial-object-metadata.interface'; @@ -33,9 +33,15 @@ export interface ComparatorDeleteResult { export type ObjectComparatorResult = | ComparatorSkipResult - | ComparatorCreateResult> + | ComparatorCreateResult< + Omit + > | ComparatorUpdateResult< - Partial> & { id: string } + Partial< + Omit + > & { + id: string; + } >; export type FieldComparatorResult = diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/services/workspace-metadata-updater.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/services/workspace-metadata-updater.service.ts index 7fff3860d216..8f3df062afc8 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/services/workspace-metadata-updater.service.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/services/workspace-metadata-updater.service.ts @@ -13,17 +13,22 @@ import { v4 as uuidV4 } from 'uuid'; import { PartialFieldMetadata } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/partial-field-metadata.interface'; import { PartialIndexMetadata } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/partial-index-metadata.interface'; +import { compositeTypeDefinitions } from 'src/engine/metadata-modules/field-metadata/composite-types'; import { FieldMetadataComplexOption } from 'src/engine/metadata-modules/field-metadata/dtos/options.input'; import { FieldMetadataEntity, FieldMetadataType, } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity'; +import { isCompositeFieldMetadataType } from 'src/engine/metadata-modules/field-metadata/utils/is-composite-field-metadata-type.util'; +import { IndexFieldMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-field-metadata.entity'; import { IndexMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity'; import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; import { RelationMetadataEntity } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; +import { CompositeFieldMetadataType } from 'src/engine/metadata-modules/workspace-migration/factories/composite-column-action.factory'; import { FieldMetadataUpdate } from 'src/engine/workspace-manager/workspace-migration-builder/factories/workspace-migration-field.factory'; import { ObjectMetadataUpdate } from 'src/engine/workspace-manager/workspace-migration-builder/factories/workspace-migration-object.factory'; import { WorkspaceSyncStorage } from 'src/engine/workspace-manager/workspace-sync-metadata/storage/workspace-sync.storage'; +import { capitalize } from 'src/utils/capitalize'; @Injectable() export class WorkspaceMetadataUpdaterService { @@ -241,10 +246,42 @@ export class WorkspaceMetadataUpdaterService { const convertIndexFieldMetadataForSaving = ( column: string, order: number, - ) => { + ): DeepPartial => { + // Ensure correct type const fieldMetadata = originalObjectMetadataCollection .find((object) => object.id === indexMetadata.objectMetadataId) - ?.fields.find((field) => column === field.name); + ?.fields.find((field) => { + if (field.name === column) { + return true; + } + + if (!isCompositeFieldMetadataType(field.type)) { + return; + } + + const compositeType = compositeTypeDefinitions.get( + field.type as CompositeFieldMetadataType, + ); + + if (!compositeType) { + throw new Error( + `Composite type definition not found for type: ${field.type}`, + ); + } + + const columnNames = compositeType.properties.reduce( + (acc, column) => { + acc.push(`${field.name}${capitalize(column.name)}`); + + return acc; + }, + [] as string[], + ); + + if (columnNames.includes(column)) { + return true; + } + }); if (!fieldMetadata) { throw new Error(` diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/services/workspace-sync-index-metadata.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/services/workspace-sync-index-metadata.service.ts index a5357d1608b9..d9ee8908ce0e 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/services/workspace-sync-index-metadata.service.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/services/workspace-sync-index-metadata.service.ts @@ -51,7 +51,7 @@ export class WorkspaceSyncIndexMetadataService { // We're only interested in standard fields fields: { isCustom: false }, }, - relations: ['dataSource', 'fields', 'indexes'], + relations: ['dataSource', 'fields', 'indexMetadatas'], }); // Create map of object metadata & field metadata by unique identifier diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/storage/workspace-sync.storage.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/storage/workspace-sync.storage.ts index 3cbbf6b5ebe6..8d3aea6b385c 100644 --- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/storage/workspace-sync.storage.ts +++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/storage/workspace-sync.storage.ts @@ -1,19 +1,19 @@ -import { ComputedPartialWorkspaceEntity } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/partial-object-metadata.interface'; import { ComputedPartialFieldMetadata } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/partial-field-metadata.interface'; +import { ComputedPartialWorkspaceEntity } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/partial-object-metadata.interface'; -import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; import { FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity'; -import { RelationMetadataEntity } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; import { IndexMetadataEntity } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity'; +import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity'; +import { RelationMetadataEntity } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; export class WorkspaceSyncStorage { // Object metadata private readonly _objectMetadataCreateCollection: Omit< ComputedPartialWorkspaceEntity, - 'fields' + 'fields' | 'indexMetadatas' >[] = []; private readonly _objectMetadataUpdateCollection: (Partial< - Omit + Omit > & { id: string; })[] = []; @@ -89,7 +89,7 @@ export class WorkspaceSyncStorage { } addCreateObjectMetadata( - object: Omit, + object: Omit, ) { this._objectMetadataCreateCollection.push(object); } diff --git a/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts b/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts index df129f13471b..1abbf5dd3c28 100644 --- a/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts +++ b/packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts @@ -16,8 +16,8 @@ import { } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity'; import { WorkspaceEntity } from 'src/engine/twenty-orm/decorators/workspace-entity.decorator'; +import { WorkspaceFieldIndex } from 'src/engine/twenty-orm/decorators/workspace-field-index.decorator'; import { WorkspaceField } from 'src/engine/twenty-orm/decorators/workspace-field.decorator'; -import { WorkspaceIndex } from 'src/engine/twenty-orm/decorators/workspace-index.decorator'; import { WorkspaceIsDeprecated } from 'src/engine/twenty-orm/decorators/workspace-is-deprecated.decorator'; import { WorkspaceIsNullable } from 'src/engine/twenty-orm/decorators/workspace-is-nullable.decorator'; import { WorkspaceIsSystem } from 'src/engine/twenty-orm/decorators/workspace-is-system.decorator'; @@ -66,6 +66,10 @@ export class CompanyWorkspaceEntity extends BaseWorkspaceEntity { 'The company website URL. We use this url to fetch the company icon', icon: 'IconLink', }) + /* + TODO: add soon once we've confirmed it's stabled + @WorkspaceIsUnique() + */ [DOMAIN_NAME_FIELD_NAME]?: LinksMetadata; @WorkspaceField({ @@ -295,6 +299,6 @@ export class CompanyWorkspaceEntity extends BaseWorkspaceEntity { }) @WorkspaceIsNullable() @WorkspaceIsSystem() - @WorkspaceIndex({ indexType: IndexType.GIN }) + @WorkspaceFieldIndex({ indexType: IndexType.GIN }) [SEARCH_VECTOR_FIELD.name]: any; } diff --git a/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts b/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts index 72e71098ea50..52f1a449f312 100644 --- a/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts +++ b/packages/twenty-server/src/modules/opportunity/standard-objects/opportunity.workspace-entity.ts @@ -14,8 +14,8 @@ import { } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity'; import { WorkspaceEntity } from 'src/engine/twenty-orm/decorators/workspace-entity.decorator'; +import { WorkspaceFieldIndex } from 'src/engine/twenty-orm/decorators/workspace-field-index.decorator'; import { WorkspaceField } from 'src/engine/twenty-orm/decorators/workspace-field.decorator'; -import { WorkspaceIndex } from 'src/engine/twenty-orm/decorators/workspace-index.decorator'; import { WorkspaceIsDeprecated } from 'src/engine/twenty-orm/decorators/workspace-is-deprecated.decorator'; import { WorkspaceIsNotAuditLogged } from 'src/engine/twenty-orm/decorators/workspace-is-not-audit-logged.decorator'; import { WorkspaceIsNullable } from 'src/engine/twenty-orm/decorators/workspace-is-nullable.decorator'; @@ -96,7 +96,7 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity { ], defaultValue: "'NEW'", }) - @WorkspaceIndex() + @WorkspaceFieldIndex() stage: string; @WorkspaceField({ @@ -251,6 +251,6 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity { }) @WorkspaceIsNullable() @WorkspaceIsSystem() - @WorkspaceIndex({ indexType: IndexType.GIN }) + @WorkspaceFieldIndex({ indexType: IndexType.GIN }) [SEARCH_VECTOR_FIELD.name]: any; } diff --git a/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts b/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts index 39fcead68cb7..32d9dd50f531 100644 --- a/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts +++ b/packages/twenty-server/src/modules/person/standard-objects/person.workspace-entity.ts @@ -17,11 +17,12 @@ import { } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity'; import { WorkspaceEntity } from 'src/engine/twenty-orm/decorators/workspace-entity.decorator'; +import { WorkspaceFieldIndex } from 'src/engine/twenty-orm/decorators/workspace-field-index.decorator'; import { WorkspaceField } from 'src/engine/twenty-orm/decorators/workspace-field.decorator'; -import { WorkspaceIndex } from 'src/engine/twenty-orm/decorators/workspace-index.decorator'; import { WorkspaceIsDeprecated } from 'src/engine/twenty-orm/decorators/workspace-is-deprecated.decorator'; import { WorkspaceIsNullable } from 'src/engine/twenty-orm/decorators/workspace-is-nullable.decorator'; import { WorkspaceIsSystem } from 'src/engine/twenty-orm/decorators/workspace-is-system.decorator'; +import { WorkspaceIsUnique } from 'src/engine/twenty-orm/decorators/workspace-is-unique.decorator'; import { WorkspaceJoinColumn } from 'src/engine/twenty-orm/decorators/workspace-join-column.decorator'; import { WorkspaceRelation } from 'src/engine/twenty-orm/decorators/workspace-relation.decorator'; import { PERSON_STANDARD_FIELD_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-field-ids'; @@ -70,6 +71,7 @@ export class PersonWorkspaceEntity extends BaseWorkspaceEntity { description: 'Contact’s Emails', icon: 'IconMail', }) + @WorkspaceIsUnique() [EMAILS_FIELD_NAME]: EmailsMetadata; @WorkspaceField({ @@ -304,6 +306,6 @@ export class PersonWorkspaceEntity extends BaseWorkspaceEntity { }) @WorkspaceIsNullable() @WorkspaceIsSystem() - @WorkspaceIndex({ indexType: IndexType.GIN }) + @WorkspaceFieldIndex({ indexType: IndexType.GIN }) [SEARCH_VECTOR_FIELD.name]: any; } diff --git a/packages/twenty-server/src/modules/view/standard-objects/view-field.workspace-entity.ts b/packages/twenty-server/src/modules/view/standard-objects/view-field.workspace-entity.ts index e46ee8c0effd..3fb3d7c532ca 100644 --- a/packages/twenty-server/src/modules/view/standard-objects/view-field.workspace-entity.ts +++ b/packages/twenty-server/src/modules/view/standard-objects/view-field.workspace-entity.ts @@ -1,16 +1,16 @@ import { FieldMetadataType } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity'; import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity'; +import { WorkspaceEntity } from 'src/engine/twenty-orm/decorators/workspace-entity.decorator'; import { WorkspaceField } from 'src/engine/twenty-orm/decorators/workspace-field.decorator'; import { WorkspaceIsNotAuditLogged } from 'src/engine/twenty-orm/decorators/workspace-is-not-audit-logged.decorator'; import { WorkspaceIsNullable } from 'src/engine/twenty-orm/decorators/workspace-is-nullable.decorator'; import { WorkspaceIsSystem } from 'src/engine/twenty-orm/decorators/workspace-is-system.decorator'; -import { WorkspaceEntity } from 'src/engine/twenty-orm/decorators/workspace-entity.decorator'; +import { WorkspaceJoinColumn } from 'src/engine/twenty-orm/decorators/workspace-join-column.decorator'; import { WorkspaceRelation } from 'src/engine/twenty-orm/decorators/workspace-relation.decorator'; import { VIEW_FIELD_STANDARD_FIELD_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-field-ids'; import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-object-ids'; import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.workspace-entity'; -import { WorkspaceJoinColumn } from 'src/engine/twenty-orm/decorators/workspace-join-column.decorator'; @WorkspaceEntity({ standardId: STANDARD_OBJECT_IDS.viewField, @@ -22,6 +22,12 @@ import { WorkspaceJoinColumn } from 'src/engine/twenty-orm/decorators/workspace- }) @WorkspaceIsNotAuditLogged() @WorkspaceIsSystem() +/* +TODO: add soon once we've confirmed it's stabled +@WorkspaceIndex(['fieldMetadataId', 'viewId'], { + isUnique: true, + indexWhereClause: '"deletedAt" IS NULL', +})*/ export class ViewFieldWorkspaceEntity extends BaseWorkspaceEntity { @WorkspaceField({ standardId: VIEW_FIELD_STANDARD_FIELD_IDS.fieldMetadataId, diff --git a/packages/twenty-server/src/modules/view/standard-objects/view-sort.workspace-entity.ts b/packages/twenty-server/src/modules/view/standard-objects/view-sort.workspace-entity.ts index 5abc9848ed7d..f4c65ba5c4de 100644 --- a/packages/twenty-server/src/modules/view/standard-objects/view-sort.workspace-entity.ts +++ b/packages/twenty-server/src/modules/view/standard-objects/view-sort.workspace-entity.ts @@ -1,18 +1,18 @@ import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface'; import { FieldMetadataType } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity'; -import { VIEW_SORT_STANDARD_FIELD_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-field-ids'; -import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-object-ids'; -import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.workspace-entity'; +import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity'; import { WorkspaceEntity } from 'src/engine/twenty-orm/decorators/workspace-entity.decorator'; -import { WorkspaceIsNotAuditLogged } from 'src/engine/twenty-orm/decorators/workspace-is-not-audit-logged.decorator'; -import { WorkspaceIsSystem } from 'src/engine/twenty-orm/decorators/workspace-is-system.decorator'; import { WorkspaceField } from 'src/engine/twenty-orm/decorators/workspace-field.decorator'; +import { WorkspaceIsNotAuditLogged } from 'src/engine/twenty-orm/decorators/workspace-is-not-audit-logged.decorator'; import { WorkspaceIsNullable } from 'src/engine/twenty-orm/decorators/workspace-is-nullable.decorator'; -import { WorkspaceRelation } from 'src/engine/twenty-orm/decorators/workspace-relation.decorator'; -import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity'; +import { WorkspaceIsSystem } from 'src/engine/twenty-orm/decorators/workspace-is-system.decorator'; import { WorkspaceJoinColumn } from 'src/engine/twenty-orm/decorators/workspace-join-column.decorator'; +import { WorkspaceRelation } from 'src/engine/twenty-orm/decorators/workspace-relation.decorator'; +import { VIEW_SORT_STANDARD_FIELD_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-field-ids'; +import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync-metadata/constants/standard-object-ids'; +import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.workspace-entity'; @WorkspaceEntity({ standardId: STANDARD_OBJECT_IDS.viewSort, @@ -24,6 +24,12 @@ import { WorkspaceJoinColumn } from 'src/engine/twenty-orm/decorators/workspace- }) @WorkspaceIsNotAuditLogged() @WorkspaceIsSystem() +/* +TODO: add soon once we've confirmed it's stabled +@WorkspaceIndex(['fieldMetadataId', 'viewId'], { + isUnique: true, + indexWhereClause: '"deletedAt" IS NULL', +})*/ export class ViewSortWorkspaceEntity extends BaseWorkspaceEntity { @WorkspaceField({ standardId: VIEW_SORT_STANDARD_FIELD_IDS.fieldMetadataId, diff --git a/packages/twenty-server/src/utils/typed-reflect.ts b/packages/twenty-server/src/utils/typed-reflect.ts index 5abec76b8401..0ee6b0604b62 100644 --- a/packages/twenty-server/src/utils/typed-reflect.ts +++ b/packages/twenty-server/src/utils/typed-reflect.ts @@ -9,6 +9,7 @@ export interface ReflectMetadataTypeMap { ['workspace:is-audit-logged-metadata-args']: false; ['workspace:is-primary-field-metadata-args']: true; ['workspace:is-deprecated-field-metadata-args']: true; + ['workspace:is-unique-metadata-args']: true; } export class TypedReflect { diff --git a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts index c2e19f37fe70..ffef2fdeda79 100644 --- a/packages/twenty-ui/src/display/icon/components/TablerIcons.ts +++ b/packages/twenty-ui/src/display/icon/components/TablerIcons.ts @@ -98,11 +98,11 @@ export { IconCurrencyRufiyaa, IconCurrencyRupee, IconCurrencyRupeeNepalese, + IconCurrencyShekel, + IconCurrencySom, IconCurrencyTaka, IconCurrencyTenge, IconCurrencyTugrik, - IconCurrencySom, - IconCurrencyShekel, IconCurrencyWon, IconCurrencyYen, IconCurrencyYuan, @@ -203,6 +203,7 @@ export { IconSortDescending, IconSparkles, IconSql, + IconSquareKey, IconSquareRoundedCheck, IconTable, IconTag,