Skip to content

The open alternative to Salesforce, designed for AI.

Visualize workflow run step input (#10677)

Baptiste Devessiercb5f4820d7f4
diff --git a/packages/twenty-front/src/modules/object-record/record-show/components/CardComponents.tsx b/packages/twenty-front/src/modules/object-record/record-show/components/CardComponents.tsx
index 01dfca09b42..7ccfec51180 100644
--- a/packages/twenty-front/src/modules/object-record/record-show/components/CardComponents.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-show/components/CardComponents.tsx
@@ -10,6 +10,7 @@ import { CardType } from '@/object-record/record-show/types/CardType';
import { ShowPageActivityContainer } from '@/ui/layout/show-page/components/ShowPageActivityContainer';
import { WorkflowRunOutputVisualizer } from '@/workflow/components/WorkflowRunOutputVisualizer';
import { WorkflowRunVisualizer } from '@/workflow/components/WorkflowRunVisualizer';
+import { WorkflowRunVisualizerEffect } from '@/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect';
import { WorkflowVersionVisualizer } from '@/workflow/workflow-diagram/components/WorkflowVersionVisualizer';
import { WorkflowVersionVisualizerEffect } from '@/workflow/workflow-diagram/components/WorkflowVersionVisualizerEffect';
import { WorkflowVisualizer } from '@/workflow/workflow-diagram/components/WorkflowVisualizer';
@@ -94,7 +95,11 @@ export const CardComponents: Record<CardType, CardComponentType> = {
),
[CardType.WorkflowRunCard]: ({ targetableObject }) => (
- <WorkflowRunVisualizer workflowRunId={targetableObject.id} />
+ <>
+ <WorkflowRunVisualizerEffect workflowRunId={targetableObject.id} />
+
+ <WorkflowRunVisualizer workflowRunId={targetableObject.id} />
+ </>
),
[CardType.WorkflowRunOutputCard]: ({ targetableObject }) => (
<WorkflowRunOutputVisualizer workflowRunId={targetableObject.id} />
diff --git a/packages/twenty-front/src/modules/workflow/components/WorkflowRunVisualizerContent.tsx b/packages/twenty-front/src/modules/workflow/components/WorkflowRunVisualizerContent.tsx
index dd0623d8442..eb2afbcec6c 100644
--- a/packages/twenty-front/src/modules/workflow/components/WorkflowRunVisualizerContent.tsx
+++ b/packages/twenty-front/src/modules/workflow/components/WorkflowRunVisualizerContent.tsx
@@ -1,7 +1,6 @@
import { useWorkflowVersion } from '@/workflow/hooks/useWorkflowVersion';
import { WorkflowRun } from '@/workflow/types/Workflow';
import { WorkflowRunDiagramCanvas } from '@/workflow/workflow-diagram/components/WorkflowRunDiagramCanvas';
-import { WorkflowRunVisualizerEffect } from '@/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect';
import { isDefined } from 'twenty-shared';
export const WorkflowRunVisualizerContent = ({
@@ -14,11 +13,5 @@ export const WorkflowRunVisualizerContent = ({
return null;
}
- return (
- <>
- <WorkflowRunVisualizerEffect workflowRun={workflowRun} />
-
- <WorkflowRunDiagramCanvas versionStatus={workflowVersion.status} />
- </>
- );
+ return <WorkflowRunDiagramCanvas versionStatus={workflowVersion.status} />;
};
diff --git a/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonArrayNode.tsx b/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonArrayNode.tsx
index 7f173c8fad2..0a288f7cdba 100644
--- a/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonArrayNode.tsx
+++ b/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonArrayNode.tsx
@@ -14,7 +14,8 @@ export const JsonArrayNode = ({
return (
<JsonNestedNode
elements={[...value.entries()].map(([key, value]) => ({
- key: String(key),
+ id: key,
+ label: String(key),
value,
}))}
label={label}
diff --git a/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonNestedNode.tsx b/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonNestedNode.tsx
index b5749a12b0d..c66b6fcaaa4 100644
--- a/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonNestedNode.tsx
+++ b/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonNestedNode.tsx
@@ -28,7 +28,7 @@ export const JsonNestedNode = ({
}: {
label?: string;
Icon: IconComponent;
- elements: Array<{ key: string; value: JsonValue }>;
+ elements: Array<{ id: string | number; label: string; value: JsonValue }>;
depth: number;
}) => {
const hideRoot = !isDefined(label);
@@ -37,8 +37,8 @@ export const JsonNestedNode = ({
const renderedChildren = (
<JsonList depth={depth}>
- {elements.map(({ key, value }) => (
- <JsonNode key={key} label={key} value={value} depth={depth + 1} />
+ {elements.map(({ id, label, value }) => (
+ <JsonNode key={id} label={label} value={value} depth={depth + 1} />
))}
</JsonList>
);
diff --git a/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonObjectNode.tsx b/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonObjectNode.tsx
index 9f9e11a9688..152b058e4af 100644
--- a/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonObjectNode.tsx
+++ b/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/JsonObjectNode.tsx
@@ -14,7 +14,8 @@ export const JsonObjectNode = ({
return (
<JsonNestedNode
elements={Object.entries(value).map(([key, value]) => ({
- key,
+ id: key,
+ label: key,
value,
}))}
label={label}
diff --git a/packages/twenty-front/src/modules/workflow/hooks/useWorkflowRunIdOrThrow.ts b/packages/twenty-front/src/modules/workflow/hooks/useWorkflowRunIdOrThrow.ts
new file mode 100644
index 00000000000..bfc18b341f9
--- /dev/null
+++ b/packages/twenty-front/src/modules/workflow/hooks/useWorkflowRunIdOrThrow.ts
@@ -0,0 +1,12 @@
+import { workflowRunIdState } from '@/workflow/states/workflowRunIdState';
+import { useRecoilValue } from 'recoil';
+import { isDefined } from 'twenty-shared';
+
+export const useWorkflowRunIdOrThrow = () => {
+ const workflowRunId = useRecoilValue(workflowRunIdState);
+ if (!isDefined(workflowRunId)) {
+ throw new Error('Expected the workflow run ID to be defined');
+ }
+
+ return workflowRunId;
+};
diff --git a/packages/twenty-front/src/modules/workflow/states/workflowRunIdState.ts b/packages/twenty-front/src/modules/workflow/states/workflowRunIdState.ts
new file mode 100644
index 00000000000..3a8e07da269
--- /dev/null
+++ b/packages/twenty-front/src/modules/workflow/states/workflowRunIdState.ts
@@ -0,0 +1,6 @@
+import { createState } from '@ui/utilities/state/utils/createState';
+
+export const workflowRunIdState = createState<string | undefined>({
+ key: 'workflowRunIdState',
+ defaultValue: undefined,
+});
diff --git a/packages/twenty-front/src/modules/workflow/types/Workflow.ts b/packages/twenty-front/src/modules/workflow/types/Workflow.ts
index 56af95bef2a..44c9b6104f6 100644
--- a/packages/twenty-front/src/modules/workflow/types/Workflow.ts
+++ b/packages/twenty-front/src/modules/workflow/types/Workflow.ts
@@ -11,7 +11,9 @@ import {
workflowFindRecordsActionSchema,
workflowFindRecordsActionSettingsSchema,
workflowManualTriggerSchema,
+ workflowRunContextSchema,
workflowRunOutputSchema,
+ workflowRunOutputStepsOutputSchema,
workflowRunSchema,
workflowSendEmailActionSchema,
workflowSendEmailActionSettingsSchema,
@@ -97,7 +99,13 @@ export type WorkflowVersion = {
};
export type WorkflowRunOutput = z.infer<typeof workflowRunOutputSchema>;
-export type WorkflowRunOutputStepsOutput = WorkflowRunOutput['stepsOutput'];
+export type WorkflowRunOutputStepsOutput = z.infer<
+ typeof workflowRunOutputStepsOutputSchema
+>;
+
+export type WorkflowRunContext = z.infer<typeof workflowRunContextSchema>;
+
+export type WorkflowRunFlow = WorkflowRunOutput['flow'];
export type WorkflowRun = z.infer<typeof workflowRunSchema>;
diff --git a/packages/twenty-front/src/modules/workflow/validation-schemas/workflowSchema.ts b/packages/twenty-front/src/modules/workflow/validation-schemas/workflowSchema.ts
index 26628665d01..b6ab3b21a0d 100644
--- a/packages/twenty-front/src/modules/workflow/validation-schemas/workflowSchema.ts
+++ b/packages/twenty-front/src/modules/workflow/validation-schemas/workflowSchema.ts
@@ -181,7 +181,7 @@ const workflowExecutorOutputSchema = z.object({
error: z.string().optional(),
});
-const workflowRunOutputStepsOutputSchema = z.record(
+export const workflowRunOutputStepsOutputSchema = z.record(
workflowExecutorOutputSchema,
);
@@ -195,11 +195,18 @@ export const workflowRunOutputSchema = z.object({
error: z.string().optional(),
});
-export const workflowRunSchema = z.object({
- __typename: z.literal('WorkflowRun'),
- id: z.string(),
- workflowVersionId: z.string(),
- output: workflowRunOutputSchema.nullable(),
-});
-
-export type WorkflowRunOutput = z.infer<typeof workflowRunOutputSchema>;
+export const workflowRunContextSchema = z.record(z.any());
+
+export const workflowRunSchema = z
+ .object({
+ __typename: z.literal('WorkflowRun'),
+ id: z.string(),
+ workflowVersionId: z.string(),
+ output: workflowRunOutputSchema.nullable(),
+ context: workflowRunContextSchema.nullable(),
+ createdAt: z.string(),
+ deletedAt: z.string().nullable(),
+ endedAt: z.string().nullable(),
+ name: z.string(),
+ })
+ .passthrough();
diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunDiagramCanvasEffect.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunDiagramCanvasEffect.tsx
index 2aa3822757f..6048220c3ea 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunDiagramCanvasEffect.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunDiagramCanvasEffect.tsx
@@ -2,16 +2,21 @@ import { useCommandMenu } from '@/command-menu/hooks/useCommandMenu';
import { useRightDrawer } from '@/ui/layout/right-drawer/hooks/useRightDrawer';
import { RightDrawerHotkeyScope } from '@/ui/layout/right-drawer/types/RightDrawerHotkeyScope';
import { RightDrawerPages } from '@/ui/layout/right-drawer/types/RightDrawerPages';
+import { useTabListStates } from '@/ui/layout/tab/hooks/internal/useTabListStates';
import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope';
+import { getSnapshotValue } from '@/ui/utilities/state/utils/getSnapshotValue';
import { workflowSelectedNodeState } from '@/workflow/workflow-diagram/states/workflowSelectedNodeState';
import {
WorkflowDiagramNode,
WorkflowDiagramStepNodeData,
} from '@/workflow/workflow-diagram/types/WorkflowDiagram';
import { getWorkflowNodeIconKey } from '@/workflow/workflow-diagram/utils/getWorkflowNodeIconKey';
+import { WORKFLOW_RUN_STEP_SIDE_PANEL_TAB_LIST_COMPONENT_ID } from '@/workflow/workflow-steps/constants/WorkflowRunStepSidePanelTabListComponentId';
+import { WorkflowRunTabId } from '@/workflow/workflow-steps/types/WorkflowRunTabId';
+import { TRIGGER_STEP_ID } from '@/workflow/workflow-trigger/constants/TriggerStepId';
import { OnSelectionChangeParams, useOnSelectionChange } from '@xyflow/react';
import { useCallback } from 'react';
-import { useSetRecoilState } from 'recoil';
+import { useRecoilCallback, useSetRecoilState } from 'recoil';
import { isDefined } from 'twenty-shared';
import { useIcons } from 'twenty-ui';
@@ -22,6 +27,26 @@ export const WorkflowRunDiagramCanvasEffect = () => {
const setHotkeyScope = useSetHotkeyScope();
const { closeCommandMenu } = useCommandMenu();
+ const { activeTabIdState: workflowRunRightDrawerListActiveTabIdState } =
+ useTabListStates({
+ tabListScopeId: WORKFLOW_RUN_STEP_SIDE_PANEL_TAB_LIST_COMPONENT_ID,
+ });
+
+ const goBackToFirstWorkflowRunRightDrawerTabIfNeeded = useRecoilCallback(
+ ({ snapshot, set }) =>
+ () => {
+ const activeWorkflowRunRightDrawerTab = getSnapshotValue(
+ snapshot,
+ workflowRunRightDrawerListActiveTabIdState,
+ ) as WorkflowRunTabId | null;
+
+ if (activeWorkflowRunRightDrawerTab === 'input') {
+ set(workflowRunRightDrawerListActiveTabIdState, 'node');
+ }
+ },
+ [workflowRunRightDrawerListActiveTabIdState],
+ );
+
const handleSelectionChange = useCallback(
({ nodes }: OnSelectionChangeParams) => {
const selectedNode = nodes[0] as WorkflowDiagramNode;
@@ -38,6 +63,14 @@ export const WorkflowRunDiagramCanvasEffect = () => {
const selectedNodeData = selectedNode.data as WorkflowDiagramStepNodeData;
+ if (
+ selectedNode.id === TRIGGER_STEP_ID ||
+ selectedNodeData.runStatus === 'not-executed' ||
+ selectedNodeData.runStatus === 'running'
+ ) {
+ goBackToFirstWorkflowRunRightDrawerTabIfNeeded();
+ }
+
openRightDrawer(RightDrawerPages.WorkflowRunStepView, {
title: selectedNodeData.name,
Icon: getIcon(getWorkflowNodeIconKey(selectedNodeData)),
@@ -47,9 +80,10 @@ export const WorkflowRunDiagramCanvasEffect = () => {
setWorkflowSelectedNode,
setHotkeyScope,
openRightDrawer,
+ getIcon,
closeRightDrawer,
closeCommandMenu,
- getIcon,
+ goBackToFirstWorkflowRunRightDrawerTabIfNeeded,
],
);
diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect.tsx
index f105b049357..dad655f5cb4 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunVisualizerEffect.tsx
@@ -1,5 +1,6 @@
+import { useWorkflowRun } from '@/workflow/hooks/useWorkflowRun';
import { flowState } from '@/workflow/states/flowState';
-import { WorkflowRun } from '@/workflow/types/Workflow';
+import { workflowRunIdState } from '@/workflow/states/workflowRunIdState';
import { workflowDiagramState } from '@/workflow/workflow-diagram/states/workflowDiagramState';
import { generateWorkflowRunDiagram } from '@/workflow/workflow-diagram/utils/generateWorkflowRunDiagram';
import { useEffect } from 'react';
@@ -7,16 +8,24 @@ import { useSetRecoilState } from 'recoil';
import { isDefined } from 'twenty-shared';
export const WorkflowRunVisualizerEffect = ({
- workflowRun,
+ workflowRunId,
}: {
- workflowRun: WorkflowRun;
+ workflowRunId: string;
}) => {
+ const workflowRun = useWorkflowRun({ workflowRunId });
+
+ const setWorkflowRunId = useSetRecoilState(workflowRunIdState);
const setFlow = useSetRecoilState(flowState);
const setWorkflowDiagram = useSetRecoilState(workflowDiagramState);
useEffect(() => {
- if (!isDefined(workflowRun.output)) {
+ setWorkflowRunId(workflowRunId);
+ }, [setWorkflowRunId, workflowRunId]);
+
+ useEffect(() => {
+ if (!isDefined(workflowRun?.output)) {
setFlow(undefined);
+ setWorkflowDiagram(undefined);
return;
}
@@ -25,14 +34,6 @@ export const WorkflowRunVisualizerEffect = ({
trigger: workflowRun.output.flow.trigger,
steps: workflowRun.output.flow.steps,
});
- }, [setFlow, workflowRun.output]);
-
- useEffect(() => {
- if (!isDefined(workflowRun.output)) {
- setWorkflowDiagram(undefined);
-
- return;
- }
const nextWorkflowDiagram = generateWorkflowRunDiagram({
trigger: workflowRun.output.flow.trigger,
@@ -41,7 +42,7 @@ export const WorkflowRunVisualizerEffect = ({
});
setWorkflowDiagram(nextWorkflowDiagram);
- }, [setWorkflowDiagram, workflowRun.output]);
+ }, [setFlow, setWorkflowDiagram, workflowRun?.output]);
return null;
};
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/components/RightDrawerWorkflowRunViewStep.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/components/RightDrawerWorkflowRunViewStep.tsx
index c66a4d4cda7..1667632ca00 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/components/RightDrawerWorkflowRunViewStep.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/components/RightDrawerWorkflowRunViewStep.tsx
@@ -2,10 +2,16 @@ import { ShowPageSubContainerTabListContainer } from '@/ui/layout/show-page/comp
import { SingleTabProps, TabList } from '@/ui/layout/tab/components/TabList';
import { useTabList } from '@/ui/layout/tab/hooks/useTabList';
import { useFlowOrThrow } from '@/workflow/hooks/useFlowOrThrow';
+import { useWorkflowRun } from '@/workflow/hooks/useWorkflowRun';
+import { useWorkflowRunIdOrThrow } from '@/workflow/hooks/useWorkflowRunIdOrThrow';
import { useWorkflowSelectedNodeOrThrow } from '@/workflow/workflow-diagram/hooks/useWorkflowSelectedNodeOrThrow';
+import { WorkflowRunStepInputDetail } from '@/workflow/workflow-steps/components/WorkflowRunStepInputDetail';
import { WorkflowStepDetail } from '@/workflow/workflow-steps/components/WorkflowStepDetail';
import { WORKFLOW_RUN_STEP_SIDE_PANEL_TAB_LIST_COMPONENT_ID } from '@/workflow/workflow-steps/constants/WorkflowRunStepSidePanelTabListComponentId';
+import { getWorkflowRunStepExecutionStatus } from '@/workflow/workflow-steps/utils/getWorkflowRunStepExecutionStatus';
+import { TRIGGER_STEP_ID } from '@/workflow/workflow-trigger/constants/TriggerStepId';
import styled from '@emotion/styled';
+import { isDefined } from 'twenty-shared';
import { IconLogin2, IconLogout, IconStepInto } from 'twenty-ui';
const StyledTabListContainer = styled(ShowPageSubContainerTabListContainer)`
@@ -17,17 +23,41 @@ type TabId = 'node' | 'input' | 'output';
export const RightDrawerWorkflowRunViewStep = () => {
const flow = useFlowOrThrow();
const workflowSelectedNode = useWorkflowSelectedNodeOrThrow();
+ const workflowRunId = useWorkflowRunIdOrThrow();
+
+ const workflowRun = useWorkflowRun({ workflowRunId });
const { activeTabId } = useTabList<TabId>(
WORKFLOW_RUN_STEP_SIDE_PANEL_TAB_LIST_COMPONENT_ID,
);
+ const stepExecutionStatus = isDefined(workflowRun)
+ ? getWorkflowRunStepExecutionStatus({
+ workflowRunOutput: workflowRun.output,
+ stepId: workflowSelectedNode,
+ })
+ : undefined;
+
+ const isInputTabDisabled =
+ workflowSelectedNode === TRIGGER_STEP_ID ||
+ stepExecutionStatus === 'running' ||
+ stepExecutionStatus === 'not-executed';
+
const tabs: SingleTabProps<TabId>[] = [
{ id: 'node', title: 'Node', Icon: IconStepInto },
- { id: 'input', title: 'Input', Icon: IconLogin2 },
+ {
+ id: 'input',
+ title: 'Input',
+ Icon: IconLogin2,
+ disabled: isInputTabDisabled,
+ },
{ id: 'output', title: 'Output', Icon: IconLogout },
];
+ if (!isDefined(workflowRun)) {
+ return null;
+ }
+
return (
<>
<StyledTabListContainer>
@@ -46,6 +76,10 @@ export const RightDrawerWorkflowRunViewStep = () => {
steps={flow.steps}
/>
) : null}
+
+ {activeTabId === 'input' ? (
+ <WorkflowRunStepInputDetail stepId={workflowSelectedNode} />
+ ) : null}
</>
);
};
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowRunStepInputDetail.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowRunStepInputDetail.tsx
new file mode 100644
index 00000000000..50d33c03c6b
--- /dev/null
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/components/WorkflowRunStepInputDetail.tsx
@@ -0,0 +1,47 @@
+import { JsonNestedNode } from '@/workflow/components/json-visualizer/components/JsonNestedNode';
+import { useWorkflowRun } from '@/workflow/hooks/useWorkflowRun';
+import { useWorkflowRunIdOrThrow } from '@/workflow/hooks/useWorkflowRunIdOrThrow';
+import { getWorkflowRunStepContext } from '@/workflow/workflow-steps/utils/getWorkflowRunStepContext';
+import styled from '@emotion/styled';
+import { isDefined } from 'twenty-shared';
+import { IconBrackets } from 'twenty-ui';
+
+const StyledContainer = styled.div`
+ padding-block: ${({ theme }) => theme.spacing(4)};
+ padding-inline: ${({ theme }) => theme.spacing(3)};
+`;
+
+export const WorkflowRunStepInputDetail = ({ stepId }: { stepId: string }) => {
+ const workflowRunId = useWorkflowRunIdOrThrow();
+ const workflowRun = useWorkflowRun({ workflowRunId });
+
+ if (
+ !(
+ isDefined(workflowRun) &&
+ isDefined(workflowRun.context) &&
+ isDefined(workflowRun.output?.flow)
+ )
+ ) {
+ return null;
+ }
+
+ const stepContext = getWorkflowRunStepContext({
+ context: workflowRun.context,
+ flow: workflowRun.output.flow,
+ stepId,
+ });
+
+ return (
+ <StyledContainer>
+ <JsonNestedNode
+ elements={stepContext.map(({ id, name, context }) => ({
+ id,
+ label: name,
+ value: context,
+ }))}
+ Icon={IconBrackets}
+ depth={0}
+ />
+ </StyledContainer>
+ );
+};
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/components/__stories__/RightDrawerWorkflowRunViewStep.stories.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/components/__stories__/RightDrawerWorkflowRunViewStep.stories.tsx
new file mode 100644
index 00000000000..23b65af6747
--- /dev/null
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/components/__stories__/RightDrawerWorkflowRunViewStep.stories.tsx
@@ -0,0 +1,142 @@
+import { flowState } from '@/workflow/states/flowState';
+import { workflowRunIdState } from '@/workflow/states/workflowRunIdState';
+import { workflowSelectedNodeState } from '@/workflow/workflow-diagram/states/workflowSelectedNodeState';
+import { TRIGGER_STEP_ID } from '@/workflow/workflow-trigger/constants/TriggerStepId';
+import styled from '@emotion/styled';
+import { Meta, StoryObj } from '@storybook/react';
+import { expect, userEvent, waitFor, within } from '@storybook/test';
+import { graphql, HttpResponse } from 'msw';
+import { useSetRecoilState } from 'recoil';
+import { ComponentDecorator, RouterDecorator } from 'twenty-ui';
+import { I18nFrontDecorator } from '~/testing/decorators/I18nFrontDecorator';
+import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
+import { WorkspaceDecorator } from '~/testing/decorators/WorkspaceDecorator';
+import { graphqlMocks } from '~/testing/graphqlMocks';
+import { oneFailedWorkflowRunQueryResult } from '~/testing/mock-data/workflow-run';
+import { RightDrawerWorkflowRunViewStep } from '../RightDrawerWorkflowRunViewStep';
+
+const StyledWrapper = styled.div`
+ display: flex;
+ flex-direction: column;
+ width: 500px;
+`;
+
+const meta: Meta<typeof RightDrawerWorkflowRunViewStep> = {
+ title: 'Modules/Workflow/RightDrawerWorkflowRunViewStep',
+ component: RightDrawerWorkflowRunViewStep,
+ decorators: [
+ (Story) => (
+ <StyledWrapper>
+ <Story />
+ </StyledWrapper>
+ ),
+ I18nFrontDecorator,
+ ComponentDecorator,
+ (Story) => {
+ const setFlow = useSetRecoilState(flowState);
+ const setWorkflowSelectedNode = useSetRecoilState(
+ workflowSelectedNodeState,
+ );
+ const setWorkflowRunId = useSetRecoilState(workflowRunIdState);
+
+ setFlow(oneFailedWorkflowRunQueryResult.workflowRun.output.flow);
+ setWorkflowSelectedNode(
+ oneFailedWorkflowRunQueryResult.workflowRun.output.flow.steps[0].id,
+ );
+ setWorkflowRunId(oneFailedWorkflowRunQueryResult.workflowRun.id);
+
+ return <Story />;
+ },
+ RouterDecorator,
+ ObjectMetadataItemsDecorator,
+ WorkspaceDecorator,
+ ],
+ parameters: {
+ msw: {
+ handlers: [
+ graphql.query('FindOneWorkflowRun', () => {
+ return HttpResponse.json({
+ data: oneFailedWorkflowRunQueryResult,
+ });
+ }),
+ ...graphqlMocks.handlers,
+ ],
+ },
+ },
+};
+
+export default meta;
+
+type Story = StoryObj<typeof RightDrawerWorkflowRunViewStep>;
+
+export const NodeTab: Story = {};
+
+export const InputTab: Story = {
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(await canvas.findByRole('button', { name: 'Input' }));
+
+ expect(await canvas.findByText('Trigger')).toBeVisible();
+ },
+};
+
+export const InputTabDisabledForTrigger: Story = {
+ decorators: [
+ (Story) => {
+ const setWorkflowSelectedNode = useSetRecoilState(
+ workflowSelectedNodeState,
+ );
+
+ setWorkflowSelectedNode(TRIGGER_STEP_ID);
+
+ return <Story />;
+ },
+ ],
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ const inputTab = await canvas.findByRole('button', { name: 'Input' });
+
+ expect(inputTab).toBeDisabled();
+ },
+};
+
+export const InputTabNotExecutedStep: Story = {
+ decorators: [
+ (Story) => {
+ const setWorkflowSelectedNode = useSetRecoilState(
+ workflowSelectedNodeState,
+ );
+
+ setWorkflowSelectedNode(
+ oneFailedWorkflowRunQueryResult.workflowRun.output.flow.steps.at(-1)!
+ .id,
+ );
+
+ return <Story />;
+ },
+ ],
+
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ const inputTab = await canvas.findByRole('button', { name: 'Input' });
+
+ expect(inputTab).toBeDisabled();
+ },
+};
+
+export const OutputTab: Story = {
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByRole('button', { name: 'Output' }),
+ );
+
+ await waitFor(() => {
+ expect(canvas.queryByText('Create Record')).not.toBeInTheDocument();
+ });
+ },
+};
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/types/WorkflowRunTabId.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/types/WorkflowRunTabId.tsx
new file mode 100644
index 00000000000..f284c1fec23
--- /dev/null
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/types/WorkflowRunTabId.tsx
@@ -0,0 +1 @@
+export type WorkflowRunTabId = 'node' | 'input' | 'output';
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/utils/__tests__/getWorkflowRunStepContext.test.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/utils/__tests__/getWorkflowRunStepContext.test.ts
new file mode 100644
index 00000000000..58645bb44ec
--- /dev/null
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/utils/__tests__/getWorkflowRunStepContext.test.ts
@@ -0,0 +1,266 @@
+import { WorkflowRunFlow } from '@/workflow/types/Workflow';
+import { TRIGGER_STEP_ID } from '@/workflow/workflow-trigger/constants/TriggerStepId';
+import { getWorkflowRunStepContext } from '../getWorkflowRunStepContext';
+
+describe('getWorkflowRunStepContext', () => {
+ it('should return an empty array for trigger step', () => {
+ const flow = {
+ trigger: {
+ name: 'Company Created',
+ type: 'DATABASE_EVENT',
+ settings: {
+ eventName: 'company.created',
+ outputSchema: {},
+ },
+ },
+ steps: [],
+ } satisfies WorkflowRunFlow;
+ const context = {
+ [TRIGGER_STEP_ID]: { company: { id: '123' } },
+ };
+
+ const result = getWorkflowRunStepContext({
+ stepId: TRIGGER_STEP_ID,
+ flow,
+ context,
+ });
+
+ expect(result).toEqual([]);
+ });
+
+ it('should include previous steps context', () => {
+ const flow = {
+ trigger: {
+ name: 'Company Created',
+ type: 'DATABASE_EVENT',
+ settings: {
+ eventName: 'company.created',
+ outputSchema: {},
+ },
+ },
+ steps: [
+ {
+ id: 'step1',
+ name: 'Create company',
+ type: 'CREATE_RECORD',
+ settings: {
+ errorHandlingOptions: {
+ continueOnFailure: { value: false },
+ retryOnFailure: { value: false },
+ },
+ input: {
+ objectName: 'Company',
+ objectRecord: {},
+ },
+ outputSchema: {},
+ },
+ valid: true,
+ },
+ {
+ id: 'step2',
+ name: 'Send Email',
+ type: 'SEND_EMAIL',
+ settings: {
+ errorHandlingOptions: {
+ continueOnFailure: { value: false },
+ retryOnFailure: { value: false },
+ },
+ input: {
+ connectedAccountId: '123',
+ email: '',
+ },
+ outputSchema: {},
+ },
+ valid: true,
+ },
+ ],
+ } satisfies WorkflowRunFlow;
+ const context = {
+ [TRIGGER_STEP_ID]: { company: { id: '123' } },
+ step1: { taskId: '456' },
+ };
+
+ const result = getWorkflowRunStepContext({
+ stepId: 'step2',
+ flow,
+ context,
+ });
+
+ expect(result).toEqual([
+ {
+ id: TRIGGER_STEP_ID,
+ name: 'Company Created',
+ context: { company: { id: '123' } },
+ },
+ {
+ id: 'step1',
+ name: 'Create company',
+ context: { taskId: '456' },
+ },
+ ]);
+ });
+
+ it('should not include subsequent steps context', () => {
+ const flow = {
+ trigger: {
+ name: 'Company Created',
+ type: 'DATABASE_EVENT',
+ settings: {
+ eventName: 'company.created',
+ outputSchema: {},
+ },
+ },
+ steps: [
+ {
+ id: 'step1',
+ name: 'Create company',
+ type: 'CREATE_RECORD',
+ settings: {
+ errorHandlingOptions: {
+ continueOnFailure: { value: false },
+ retryOnFailure: { value: false },
+ },
+ input: {
+ objectName: 'Company',
+ objectRecord: {},
+ },
+ outputSchema: {},
+ },
+ valid: true,
+ },
+ {
+ id: 'step2',
+ name: 'Send Email',
+ type: 'SEND_EMAIL',
+ settings: {
+ errorHandlingOptions: {
+ continueOnFailure: { value: false },
+ retryOnFailure: { value: false },
+ },
+ input: {
+ connectedAccountId: '123',
+ email: '',
+ },
+ outputSchema: {},
+ },
+ valid: true,
+ },
+ ],
+ } satisfies WorkflowRunFlow;
+ const context = {
+ [TRIGGER_STEP_ID]: { company: { id: '123' } },
+ step1: { taskId: '456' },
+ step2: { emailId: '789' },
+ };
+
+ const result = getWorkflowRunStepContext({
+ stepId: 'step1',
+ flow,
+ context,
+ });
+
+ expect(result).toEqual([
+ {
+ id: TRIGGER_STEP_ID,
+ name: 'Company Created',
+ context: { company: { id: '123' } },
+ },
+ ]);
+ });
+
+ it('should handle multiple steps with the same name', () => {
+ const flow = {
+ trigger: {
+ name: 'Company Created',
+ type: 'DATABASE_EVENT',
+ settings: {
+ eventName: 'company.created',
+ outputSchema: {},
+ },
+ },
+ steps: [
+ {
+ id: 'step1',
+ name: 'Create Note',
+ type: 'CREATE_RECORD',
+ settings: {
+ errorHandlingOptions: {
+ continueOnFailure: { value: false },
+ retryOnFailure: { value: false },
+ },
+ input: {
+ objectName: 'Note',
+ objectRecord: {},
+ },
+ outputSchema: {},
+ },
+ valid: true,
+ },
+ {
+ id: 'step2',
+ name: 'Create Note',
+ type: 'CREATE_RECORD',
+ settings: {
+ errorHandlingOptions: {
+ continueOnFailure: { value: false },
+ retryOnFailure: { value: false },
+ },
+ input: {
+ objectName: 'Note',
+ objectRecord: {},
+ },
+ outputSchema: {},
+ },
+ valid: true,
+ },
+ {
+ id: 'step3',
+ name: 'Create Note',
+ type: 'CREATE_RECORD',
+ settings: {
+ errorHandlingOptions: {
+ continueOnFailure: { value: false },
+ retryOnFailure: { value: false },
+ },
+ input: {
+ objectName: 'Note',
+ objectRecord: {},
+ },
+ outputSchema: {},
+ },
+ valid: true,
+ },
+ ],
+ } satisfies WorkflowRunFlow;
+ const context = {
+ [TRIGGER_STEP_ID]: { company: { id: '123' } },
+ step1: { noteId: '456' },
+ step2: { noteId: '789' },
+ step3: { noteId: '101' },
+ };
+
+ const result = getWorkflowRunStepContext({
+ stepId: 'step3',
+ flow,
+ context,
+ });
+
+ expect(result).toEqual([
+ {
+ id: TRIGGER_STEP_ID,
+ name: 'Company Created',
+ context: { company: { id: '123' } },
+ },
+ {
+ id: 'step1',
+ name: 'Create Note',
+ context: { noteId: '456' },
+ },
+ {
+ id: 'step2',
+ name: 'Create Note',
+ context: { noteId: '789' },
+ },
+ ]);
+ });
+});
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/utils/__tests__/getWorkflowRunStepExecutionStatus.test.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/utils/__tests__/getWorkflowRunStepExecutionStatus.test.ts
new file mode 100644
index 00000000000..37402bdcf16
--- /dev/null
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/utils/__tests__/getWorkflowRunStepExecutionStatus.test.ts
@@ -0,0 +1,230 @@
+import { getWorkflowRunStepExecutionStatus } from '../getWorkflowRunStepExecutionStatus';
+
+describe('getWorkflowRunStepExecutionStatus', () => {
+ const stepId = '453e0084-aca2-45b9-8d1c-458a2b8ac70a';
+
+ it('should return not-executed when the output is null', () => {
+ expect(
+ getWorkflowRunStepExecutionStatus({
+ workflowRunOutput: null,
+ stepId,
+ }),
+ ).toBe('not-executed');
+ });
+
+ it('should return success when step has result', () => {
+ expect(
+ getWorkflowRunStepExecutionStatus({
+ workflowRunOutput: {
+ flow: {
+ steps: [
+ {
+ id: stepId,
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId:
+ '5f7b9b44-bb07-41ba-aef8-ec0eaa5eea2c',
+ serverlessFunctionInput: {
+ a: null,
+ b: null,
+ },
+ serverlessFunctionVersion: 'draft',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ ],
+ trigger: {
+ type: 'MANUAL',
+ settings: {
+ outputSchema: {},
+ },
+ },
+ },
+ stepsOutput: {
+ [stepId]: {
+ result: {},
+ },
+ },
+ },
+ stepId,
+ }),
+ ).toBe('success');
+ });
+
+ it('should return failure when workflow has error', () => {
+ const error = 'fn(...).then is not a function';
+
+ expect(
+ getWorkflowRunStepExecutionStatus({
+ workflowRunOutput: {
+ flow: {
+ steps: [
+ {
+ id: stepId,
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId:
+ '5f7b9b44-bb07-41ba-aef8-ec0eaa5eea2c',
+ serverlessFunctionInput: {
+ a: null,
+ b: null,
+ },
+ serverlessFunctionVersion: 'draft',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ ],
+ trigger: {
+ type: 'MANUAL',
+ settings: {
+ outputSchema: {},
+ },
+ },
+ },
+ error,
+ stepsOutput: {
+ [stepId]: {
+ error,
+ },
+ },
+ },
+ stepId,
+ }),
+ ).toBe('failure');
+ });
+
+ it('should return not-executed when step has no output', () => {
+ const secondStepId = '5f7b9b44-bb07-41ba-aef8-ec0eaa5eea2c';
+
+ expect(
+ getWorkflowRunStepExecutionStatus({
+ workflowRunOutput: {
+ flow: {
+ steps: [
+ {
+ id: stepId,
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId:
+ '5f7b9b44-bb07-41ba-aef8-ec0eaa5eea2c',
+ serverlessFunctionInput: {
+ a: null,
+ b: null,
+ },
+ serverlessFunctionVersion: 'draft',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: secondStepId,
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId:
+ '5f7b9b44-bb07-41ba-aef8-ec0eaa5eea2c',
+ serverlessFunctionInput: {
+ a: null,
+ b: null,
+ },
+ serverlessFunctionVersion: 'draft',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ ],
+ trigger: {
+ type: 'MANUAL',
+ settings: {
+ outputSchema: {},
+ },
+ },
+ },
+ stepsOutput: {
+ [stepId]: {
+ result: {},
+ },
+ },
+ },
+ stepId: secondStepId,
+ }),
+ ).toBe('not-executed');
+ });
+});
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/utils/getWorkflowRunStepContext.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/utils/getWorkflowRunStepContext.ts
new file mode 100644
index 00000000000..2bfea30d5e6
--- /dev/null
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/utils/getWorkflowRunStepContext.ts
@@ -0,0 +1,38 @@
+import { WorkflowRunContext, WorkflowRunFlow } from '@/workflow/types/Workflow';
+import { TRIGGER_STEP_ID } from '@/workflow/workflow-trigger/constants/TriggerStepId';
+
+export const getWorkflowRunStepContext = ({
+ stepId,
+ flow,
+ context,
+}: {
+ stepId: string;
+ context: WorkflowRunContext;
+ flow: WorkflowRunFlow;
+}) => {
+ const stepContext: Array<{ id: string; name: string; context: any }> = [];
+
+ if (stepId === TRIGGER_STEP_ID) {
+ return stepContext;
+ }
+
+ stepContext.push({
+ id: TRIGGER_STEP_ID,
+ name: flow.trigger.name ?? 'Trigger',
+ context: context[TRIGGER_STEP_ID],
+ });
+
+ for (const step of flow.steps) {
+ if (step.id === stepId) {
+ break;
+ }
+
+ stepContext.push({
+ id: step.id,
+ name: step.name,
+ context: context[step.id],
+ });
+ }
+
+ return stepContext;
+};
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/utils/getWorkflowRunStepExecutionStatus.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/utils/getWorkflowRunStepExecutionStatus.ts
new file mode 100644
index 00000000000..697473e7920
--- /dev/null
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/utils/getWorkflowRunStepExecutionStatus.ts
@@ -0,0 +1,28 @@
+import { WorkflowRunOutput } from '@/workflow/types/Workflow';
+import { WorkflowDiagramRunStatus } from '@/workflow/workflow-diagram/types/WorkflowDiagram';
+import { isNull } from '@sniptt/guards';
+import { isDefined } from 'twenty-shared';
+
+export const getWorkflowRunStepExecutionStatus = ({
+ workflowRunOutput,
+ stepId,
+}: {
+ workflowRunOutput: WorkflowRunOutput | null;
+ stepId: string;
+}): WorkflowDiagramRunStatus => {
+ if (isNull(workflowRunOutput)) {
+ return 'not-executed';
+ }
+
+ const stepOutput = workflowRunOutput.stepsOutput?.[stepId];
+
+ if (isDefined(stepOutput?.error)) {
+ return 'failure';
+ }
+
+ if (isDefined(stepOutput?.result)) {
+ return 'success';
+ }
+
+ return 'not-executed';
+};
diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/RightDrawerWorkflowSelectTriggerTypeContent.tsx b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/RightDrawerWorkflowSelectTriggerTypeContent.tsx
index 5a5cf5011e7..78e5e3299fd 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/RightDrawerWorkflowSelectTriggerTypeContent.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/RightDrawerWorkflowSelectTriggerTypeContent.tsx
@@ -1,8 +1,13 @@
import { useFilteredObjectMetadataItems } from '@/object-metadata/hooks/useFilteredObjectMetadataItems';
import { useRightDrawer } from '@/ui/layout/right-drawer/hooks/useRightDrawer';
import { RightDrawerPages } from '@/ui/layout/right-drawer/types/RightDrawerPages';
-import { WorkflowWithCurrentVersion } from '@/workflow/types/Workflow';
+import {
+ WorkflowTriggerType,
+ WorkflowWithCurrentVersion,
+} from '@/workflow/types/Workflow';
import { workflowSelectedNodeState } from '@/workflow/workflow-diagram/states/workflowSelectedNodeState';
+import { RightDrawerStepListContainer } from '@/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepContainer';
+import { RightDrawerWorkflowSelectStepTitle } from '@/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepTitle';
import { DATABASE_TRIGGER_TYPES } from '@/workflow/workflow-trigger/constants/DatabaseTriggerTypes';
import { OTHER_TRIGGER_TYPES } from '@/workflow/workflow-trigger/constants/OtherTriggerTypes';
import { TRIGGER_STEP_ID } from '@/workflow/workflow-trigger/constants/TriggerStepId';
@@ -10,8 +15,6 @@ import { useUpdateWorkflowVersionTrigger } from '@/workflow/workflow-trigger/hoo
import { getTriggerDefaultDefinition } from '@/workflow/workflow-trigger/utils/getTriggerDefaultDefinition';
import { useSetRecoilState } from 'recoil';
import { MenuItemCommand, useIcons } from 'twenty-ui';
-import { RightDrawerStepListContainer } from '@/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepContainer';
-import { RightDrawerWorkflowSelectStepTitle } from '@/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepTitle';
export const RightDrawerWorkflowSelectTriggerTypeContent = ({
workflow,
@@ -26,6 +29,33 @@ export const RightDrawerWorkflowSelectTriggerTypeContent = ({
const { openRightDrawer } = useRightDrawer();
const setWorkflowSelectedNode = useSetRecoilState(workflowSelectedNodeState);
+ const handleTriggerTypeClick = ({
+ type,
+ defaultLabel,
+ icon,
+ }: {
+ type: WorkflowTriggerType;
+ defaultLabel: string;
+ icon: string;
+ }) => {
+ return async () => {
+ await updateTrigger(
+ getTriggerDefaultDefinition({
+ defaultLabel,
+ type,
+ activeObjectMetadataItems,
+ }),
+ );
+
+ setWorkflowSelectedNode(TRIGGER_STEP_ID);
+
+ openRightDrawer(RightDrawerPages.WorkflowStepEdit, {
+ title: defaultLabel,
+ Icon: getIcon(icon),
+ });
+ };
+ };
+
return (
<RightDrawerStepListContainer>
<RightDrawerWorkflowSelectStepTitle>
@@ -36,22 +66,7 @@ export const RightDrawerWorkflowSelectTriggerTypeContent = ({
key={action.defaultLabel}
LeftIcon={getIcon(action.icon)}
text={action.defaultLabel}
- onClick={async () => {
- await updateTrigger(
- getTriggerDefaultDefinition({
- defaultLabel: action.defaultLabel,
- type: action.type,
- activeObjectMetadataItems,
- }),
- );
-
- setWorkflowSelectedNode(TRIGGER_STEP_ID);
-
- openRightDrawer(RightDrawerPages.WorkflowStepEdit, {
- title: action.defaultLabel,
- Icon: getIcon(action.icon),
- });
- }}
+ onClick={handleTriggerTypeClick(action)}
/>
))}
<RightDrawerWorkflowSelectStepTitle>
@@ -62,22 +77,7 @@ export const RightDrawerWorkflowSelectTriggerTypeContent = ({
key={action.defaultLabel}
LeftIcon={getIcon(action.icon)}
text={action.defaultLabel}
- onClick={async () => {
- await updateTrigger(
- getTriggerDefaultDefinition({
- defaultLabel: action.defaultLabel,
- type: action.type,
- activeObjectMetadataItems,
- }),
- );
-
- setWorkflowSelectedNode(TRIGGER_STEP_ID);
-
- openRightDrawer(RightDrawerPages.WorkflowStepEdit, {
- title: action.defaultLabel,
- Icon: getIcon(action.icon),
- });
- }}
+ onClick={handleTriggerTypeClick(action)}
/>
))}
</RightDrawerStepListContainer>
diff --git a/packages/twenty-front/src/testing/graphqlMocks.ts b/packages/twenty-front/src/testing/graphqlMocks.ts
index 4d3f3a850e9..ce24d4c0d86 100644
--- a/packages/twenty-front/src/testing/graphqlMocks.ts
+++ b/packages/twenty-front/src/testing/graphqlMocks.ts
@@ -30,6 +30,7 @@ import {
getWorkflowVersionsMock,
workflowQueryResult,
} from '~/testing/mock-data/workflow';
+import { oneSucceededWorkflowRunQueryResult } from '~/testing/mock-data/workflow-run';
import { mockedRemoteServers } from './mock-data/remote-servers';
import { mockedViewFieldsData } from './mock-data/view-fields';
@@ -714,6 +715,11 @@ export const graphqlMocks = {
},
});
}),
+ graphql.query('FindOneWorkflowRun', () => {
+ return HttpResponse.json({
+ data: oneSucceededWorkflowRunQueryResult,
+ });
+ }),
graphql.query('FindManyWorkflowVersions', () => {
return HttpResponse.json({
data: {
diff --git a/packages/twenty-front/src/testing/mock-data/workflow-run.ts b/packages/twenty-front/src/testing/mock-data/workflow-run.ts
new file mode 100644
index 00000000000..7282f63bd5b
--- /dev/null
+++ b/packages/twenty-front/src/testing/mock-data/workflow-run.ts
@@ -0,0 +1,12009 @@
+import { WorkflowRun } from '@/workflow/types/Workflow';
+
+export const mockWorkflowRunFailedStepId =
+ 'a01b2953-9aa7-4d9a-aded-8e9bafbd6c30';
+
+export const oneFailedWorkflowRunQueryResult = {
+ workflowRun: {
+ __typename: 'WorkflowRun',
+ context: {
+ trigger: {
+ userId: '20202020-9e3b-46d4-a556-88b9ddc2b034',
+ recordId: 'd7d081c7-6a04-4d62-abbb-86de750ce2ae',
+ properties: {
+ after: {
+ id: 'd7d081c7-6a04-4d62-abbb-86de750ce2ae',
+ name: '',
+ xLink: {
+ primaryLinkUrl: '',
+ secondaryLinks: [],
+ primaryLinkLabel: '',
+ },
+ address: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: '',
+ addressState: '',
+ addressCountry: '',
+ addressStreet1: '',
+ addressStreet2: '',
+ addressPostcode: '',
+ },
+ tagline: '',
+ position: -1,
+ createdAt: '2025-03-06T11:52:42.765Z',
+ createdBy: {
+ name: 'Tim Apple',
+ source: 'MANUAL',
+ context: {},
+ workspaceMemberId: '20202020-0687-4c41-b707-ed1bfca972a7',
+ },
+ deletedAt: null,
+ employees: null,
+ favorites: [],
+ updatedAt: '2025-03-06T11:52:42.765Z',
+ domainName: {
+ primaryLinkUrl: '',
+ secondaryLinks: [],
+ primaryLinkLabel: '',
+ },
+ introVideo: {
+ primaryLinkUrl: '',
+ secondaryLinks: [],
+ primaryLinkLabel: '',
+ },
+ workPolicy: null,
+ attachments: [],
+ noteTargets: [],
+ accountOwner: null,
+ linkedinLink: {
+ primaryLinkUrl: '',
+ secondaryLinks: [],
+ primaryLinkLabel: '',
+ },
+ searchVector: '',
+ opportunities: [],
+ accountOwnerId: null,
+ visaSponsorship: false,
+ idealCustomerProfile: false,
+ annualRecurringRevenue: {
+ amountMicros: null,
+ currencyCode: '',
+ },
+ },
+ before: null,
+ },
+ objectMetadata: {
+ id: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ icon: 'IconBuildingSkyscraper',
+ fields: [
+ {
+ id: '5fc216dc-7af4-4927-a026-0e5144afa436',
+ icon: 'IconBrandX',
+ name: 'xLink',
+ type: 'LINKS',
+ label: 'X',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-6f64-4fd9-9580-9c1991c7d8c3',
+ description: 'The company Twitter/X account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'fba56220-3f40-4569-a500-35a4a312e473',
+ icon: 'IconMoneybag',
+ name: 'annualRecurringRevenue',
+ type: 'CURRENCY',
+ label: 'ARR',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-602a-495c-9776-f5d5b11d227b',
+ description:
+ 'Annual Recurring Revenue: The actual or estimated annual revenue of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ amountMicros: null,
+ currencyCode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0b32256a-1bd2-40e1-98e0-74b400452aab',
+ icon: 'IconMap',
+ name: 'address',
+ type: 'ADDRESS',
+ label: 'Address',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c5ce-4adc-b7b6-9c0979fc55e7',
+ description: 'Address of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: "''",
+ addressState: "''",
+ addressCountry: "''",
+ addressStreet1: "''",
+ addressStreet2: "''",
+ addressPostcode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '214a5118-3ab5-4d2a-ac89-020f776831b3',
+ icon: 'IconTarget',
+ name: 'idealCustomerProfile',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-ba6b-438a-8213-2c5ba28d76a2',
+ description:
+ 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4',
+ icon: 'IconHierarchy2',
+ name: 'position',
+ type: 'POSITION',
+ label: 'Position',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-9b4e-462b-991d-a0ee33326454',
+ description: 'Company record position',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 0,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '943f218e-6061-4f61-ac3a-298ac14cef41',
+ icon: 'IconCreativeCommonsSa',
+ name: 'createdBy',
+ type: 'ACTOR',
+ label: 'Created by',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-fabc-451d-ab7d-412170916baa',
+ description: 'The creator of the record',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ name: "'System'",
+ source: "'MANUAL'",
+ context: {},
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ icon: 'IconUser',
+ name: 'searchVector',
+ type: 'TS_VECTOR',
+ label: 'Search vector',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '85c71601-72f9-4b7b-b343-d46100b2c74d',
+ description: 'Field used for full-text search',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '593dd556-69ab-4df7-aa2e-ab5e20eb7977',
+ icon: 'Icon123',
+ name: 'id',
+ type: 'UUID',
+ label: 'Id',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-eda0-4cee-9577-3eb357e3c22b',
+ description: 'Id',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'uuid',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4ebb7bb9-d451-4433-880d-32cd3f3744df',
+ icon: 'IconCalendar',
+ name: 'createdAt',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-66ac-4502-9975-e4d959c50311',
+ description: 'Creation date',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '39526b16-7d21-4a91-a70c-bca108b27989',
+ icon: 'IconCalendarClock',
+ name: 'updatedAt',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-d767-4622-bdcf-d8a084834d86',
+ description: 'Last time the record was changed',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ icon: 'IconCalendarMinus',
+ name: 'deletedAt',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-b9a7-48d8-8387-b9a3090a50ec',
+ description: 'Date when the record was deleted',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ icon: 'IconUsers',
+ name: 'people',
+ type: 'RELATION',
+ label: 'People',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-3213-4ddf-9494-6422bcff8d7c',
+ description: 'People linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '427d1095-8ac0-4854-bf85-2adff18b653e',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: 'd25fcd48-4b3f-4d6a-b1c0-4241d64502ac',
+ toObjectMetadataId: '462ac013-3ba0-4e87-b6a3-07069c308ca3',
+ fromFieldMetadataId: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ icon: 'IconUserCircle',
+ name: 'accountOwnerId',
+ type: 'UUID',
+ label: 'Account Owner id (foreign key)',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cce0-424e-8028-91f50eb9c768',
+ description:
+ 'Your team member responsible for managing the company account id foreign key',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ icon: 'IconUserCircle',
+ name: 'accountOwner',
+ type: 'RELATION',
+ label: 'Account Owner',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-95b8-4e10-9881-edb5d4765f9d',
+ description:
+ 'Your team member responsible for managing the company account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: {
+ id: '9ca11143-4ae4-4ed4-b636-158bc14d9513',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ toObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ fromFieldMetadataId: '58a6c41e-9ff0-4607-be3a-4356175b75dc',
+ fromObjectMetadataId: '82dd61be-d849-41c2-b7c2-6a8ddb796e3e',
+ },
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ icon: 'IconCheckbox',
+ name: 'taskTargets',
+ type: 'RELATION',
+ label: 'Tasks',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cb17-4a61-8f8f-3be6730480de',
+ description: 'Tasks tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '40a2f0d1-f420-46a2-a010-2489e7f27a9d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e3ee1c65-5ec0-4d68-aac4-6c66720240f0',
+ toObjectMetadataId: '3e31c837-b0f0-4e8e-a1e3-28d3b12950f4',
+ fromFieldMetadataId: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ icon: 'IconNotes',
+ name: 'noteTargets',
+ type: 'RELATION',
+ label: 'Notes',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-bae0-4556-a74a-a9c686f77a88',
+ description: 'Notes tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'b240e206-e8ba-496a-9671-063ad48a447d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '5c582b90-c1d4-4ebe-bd66-3cc94e4abd35',
+ toObjectMetadataId: 'b58841d9-7545-41b7-bb84-75e821285933',
+ fromFieldMetadataId: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ icon: 'IconTargetArrow',
+ name: 'opportunities',
+ type: 'RELATION',
+ label: 'Opportunities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-add3-4658-8e23-d70dccb6d0ec',
+ description: 'Opportunities linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '889b83fc-9a5e-414c-acb6-48e5aa029394',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '2a12de2d-3c43-4108-bd0a-f52b053e2449',
+ toObjectMetadataId: 'da77d279-8984-4cb1-987a-14e2b0501288',
+ fromFieldMetadataId: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ icon: 'IconHeart',
+ name: 'favorites',
+ type: 'RELATION',
+ label: 'Favorites',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-4d1d-41ac-b13b-621631298d55',
+ description: 'Favorites linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '2163bf40-3b55-4bf9-bb59-968b8eda9114',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '3f34086f-ad66-4e1d-9d4b-f42cdc0f2040',
+ toObjectMetadataId: '323f077c-138b-4243-bbf2-59a77252f3c5',
+ fromFieldMetadataId: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ icon: 'IconFileImport',
+ name: 'attachments',
+ type: 'RELATION',
+ label: 'Attachments',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c1b5-4120-b0f0-987ca401ed53',
+ description: 'Attachments linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'a2c6a4d7-fbda-4075-9fec-0a96ee07953a',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e907c0a6-3e66-45a4-9922-8bc4d5bf5208',
+ toObjectMetadataId: 'f85c3930-9919-4887-b950-2e0496597c58',
+ fromFieldMetadataId: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ icon: 'IconIconTimelineEvent',
+ name: 'timelineActivities',
+ type: 'RELATION',
+ label: 'Timeline Activities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-0414-4daf-9c0d-64fe7b27f89f',
+ description: 'Timeline Activities linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '29a10f41-0265-4775-923f-0bbf548dc2ec',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '96896f47-cb02-4164-b3f2-c24d12b30e74',
+ toObjectMetadataId: '1a41f4ba-7aad-4111-8035-961962702ebb',
+ fromFieldMetadataId: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4f069436-1c42-4ec4-8dda-6b22011fc75a',
+ icon: 'IconAdCircle',
+ name: 'tagline',
+ type: 'TEXT',
+ label: 'Tagline',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.009Z',
+ updatedAt: '2025-03-05T15:41:12.009Z',
+ isNullable: false,
+ standardId: null,
+ description: "Company's Tagline",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '49e40a03-3f21-49d5-b03a-439bbc9ab73b',
+ icon: 'IconVideo',
+ name: 'introVideo',
+ type: 'LINKS',
+ label: 'Intro Video',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.011Z',
+ updatedAt: '2025-03-05T15:41:12.011Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Intro Video",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8a2883df-3e19-4d52-9309-d636767d1b6a',
+ icon: 'IconHome',
+ name: 'workPolicy',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ options: [
+ {
+ id: '4554330a-c3db-4042-b941-c2e299734d12',
+ color: 'green',
+ label: 'On-Site',
+ value: 'ON_SITE',
+ position: 0,
+ },
+ {
+ id: 'abfde6f9-64d5-430a-adb3-bea2f403d9a4',
+ color: 'turquoise',
+ label: 'Hybrid',
+ value: 'HYBRID',
+ position: 1,
+ },
+ {
+ id: '8eaca902-05c5-4087-86c0-30c664c2c4f5',
+ color: 'sky',
+ label: 'Remote Work',
+ value: 'REMOTE_WORK',
+ position: 2,
+ },
+ ],
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.013Z',
+ updatedAt: '2025-03-05T15:41:12.013Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Work Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '26a67635-7d43-47f0-b895-1c8194a7fa30',
+ icon: 'IconBrandVisa',
+ name: 'visaSponsorship',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.014Z',
+ updatedAt: '2025-03-05T15:41:12.014Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Visa Sponsorship Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ icon: 'IconBuildingSkyscraper',
+ name: 'name',
+ type: 'TEXT',
+ label: 'Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-4d99-4e2e-a84c-4a27837b1ece',
+ description: 'The company name',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ icon: 'IconLink',
+ name: 'domainName',
+ type: 'LINKS',
+ label: 'Domain Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: true,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-0c28-43d8-8ba5-3659924d3489',
+ description:
+ 'The company website URL. We use this url to fetch the company icon',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c750e2c6-3de6-4c18-9876-6ba5ba970d42',
+ icon: 'IconUsers',
+ name: 'employees',
+ type: 'NUMBER',
+ label: 'Employees',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-8965-464a-8a75-74bafc152a0b',
+ description: 'Number of employees in the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa',
+ icon: 'IconBrandLinkedin',
+ name: 'linkedinLink',
+ type: 'LINKS',
+ label: 'Linkedin',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-ebeb-4beb-b9ad-6848036fb451',
+ description: 'The company Linkedin account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ ],
+ isActive: true,
+ isCustom: false,
+ isRemote: false,
+ isSystem: false,
+ shortcut: 'C',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ fieldsById: {
+ '038ca1af-7f15-460d-b111-b71062a8a6be': {
+ id: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ icon: 'IconIconTimelineEvent',
+ name: 'timelineActivities',
+ type: 'RELATION',
+ label: 'Timeline Activities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-0414-4daf-9c0d-64fe7b27f89f',
+ description: 'Timeline Activities linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '29a10f41-0265-4775-923f-0bbf548dc2ec',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '96896f47-cb02-4164-b3f2-c24d12b30e74',
+ toObjectMetadataId: '1a41f4ba-7aad-4111-8035-961962702ebb',
+ fromFieldMetadataId: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '0ae7a621-f443-47f7-b255-82d2e589ca21': {
+ id: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ icon: 'IconFileImport',
+ name: 'attachments',
+ type: 'RELATION',
+ label: 'Attachments',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c1b5-4120-b0f0-987ca401ed53',
+ description: 'Attachments linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'a2c6a4d7-fbda-4075-9fec-0a96ee07953a',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e907c0a6-3e66-45a4-9922-8bc4d5bf5208',
+ toObjectMetadataId: 'f85c3930-9919-4887-b950-2e0496597c58',
+ fromFieldMetadataId: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '0b32256a-1bd2-40e1-98e0-74b400452aab': {
+ id: '0b32256a-1bd2-40e1-98e0-74b400452aab',
+ icon: 'IconMap',
+ name: 'address',
+ type: 'ADDRESS',
+ label: 'Address',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c5ce-4adc-b7b6-9c0979fc55e7',
+ description: 'Address of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: "''",
+ addressState: "''",
+ addressCountry: "''",
+ addressStreet1: "''",
+ addressStreet2: "''",
+ addressPostcode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '11a04849-150b-4af0-9332-b4a9ba693b17': {
+ id: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ icon: 'IconUsers',
+ name: 'people',
+ type: 'RELATION',
+ label: 'People',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-3213-4ddf-9494-6422bcff8d7c',
+ description: 'People linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '427d1095-8ac0-4854-bf85-2adff18b653e',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: 'd25fcd48-4b3f-4d6a-b1c0-4241d64502ac',
+ toObjectMetadataId: '462ac013-3ba0-4e87-b6a3-07069c308ca3',
+ fromFieldMetadataId: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a': {
+ id: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ icon: 'IconUserCircle',
+ name: 'accountOwner',
+ type: 'RELATION',
+ label: 'Account Owner',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-95b8-4e10-9881-edb5d4765f9d',
+ description:
+ 'Your team member responsible for managing the company account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: {
+ id: '9ca11143-4ae4-4ed4-b636-158bc14d9513',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ toObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ fromFieldMetadataId: '58a6c41e-9ff0-4607-be3a-4356175b75dc',
+ fromObjectMetadataId: '82dd61be-d849-41c2-b7c2-6a8ddb796e3e',
+ },
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '214a5118-3ab5-4d2a-ac89-020f776831b3': {
+ id: '214a5118-3ab5-4d2a-ac89-020f776831b3',
+ icon: 'IconTarget',
+ name: 'idealCustomerProfile',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-ba6b-438a-8213-2c5ba28d76a2',
+ description:
+ 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '26a67635-7d43-47f0-b895-1c8194a7fa30': {
+ id: '26a67635-7d43-47f0-b895-1c8194a7fa30',
+ icon: 'IconBrandVisa',
+ name: 'visaSponsorship',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.014Z',
+ updatedAt: '2025-03-05T15:41:12.014Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Visa Sponsorship Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '39526b16-7d21-4a91-a70c-bca108b27989': {
+ id: '39526b16-7d21-4a91-a70c-bca108b27989',
+ icon: 'IconCalendarClock',
+ name: 'updatedAt',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-d767-4622-bdcf-d8a084834d86',
+ description: 'Last time the record was changed',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '45b5decf-cd19-4a2e-a321-b0c7ad3c1407': {
+ id: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ icon: 'IconHeart',
+ name: 'favorites',
+ type: 'RELATION',
+ label: 'Favorites',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-4d1d-41ac-b13b-621631298d55',
+ description: 'Favorites linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '2163bf40-3b55-4bf9-bb59-968b8eda9114',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '3f34086f-ad66-4e1d-9d4b-f42cdc0f2040',
+ toObjectMetadataId: '323f077c-138b-4243-bbf2-59a77252f3c5',
+ fromFieldMetadataId: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '49e40a03-3f21-49d5-b03a-439bbc9ab73b': {
+ id: '49e40a03-3f21-49d5-b03a-439bbc9ab73b',
+ icon: 'IconVideo',
+ name: 'introVideo',
+ type: 'LINKS',
+ label: 'Intro Video',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.011Z',
+ updatedAt: '2025-03-05T15:41:12.011Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Intro Video",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '4ebb7bb9-d451-4433-880d-32cd3f3744df': {
+ id: '4ebb7bb9-d451-4433-880d-32cd3f3744df',
+ icon: 'IconCalendar',
+ name: 'createdAt',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-66ac-4502-9975-e4d959c50311',
+ description: 'Creation date',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '4f069436-1c42-4ec4-8dda-6b22011fc75a': {
+ id: '4f069436-1c42-4ec4-8dda-6b22011fc75a',
+ icon: 'IconAdCircle',
+ name: 'tagline',
+ type: 'TEXT',
+ label: 'Tagline',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.009Z',
+ updatedAt: '2025-03-05T15:41:12.009Z',
+ isNullable: false,
+ standardId: null,
+ description: "Company's Tagline",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '55e17b77-84f7-4b8a-bef5-be65f783d9f8': {
+ id: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ icon: 'IconCalendarMinus',
+ name: 'deletedAt',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-b9a7-48d8-8387-b9a3090a50ec',
+ description: 'Date when the record was deleted',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '593dd556-69ab-4df7-aa2e-ab5e20eb7977': {
+ id: '593dd556-69ab-4df7-aa2e-ab5e20eb7977',
+ icon: 'Icon123',
+ name: 'id',
+ type: 'UUID',
+ label: 'Id',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-eda0-4cee-9577-3eb357e3c22b',
+ description: 'Id',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'uuid',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '5fc216dc-7af4-4927-a026-0e5144afa436': {
+ id: '5fc216dc-7af4-4927-a026-0e5144afa436',
+ icon: 'IconBrandX',
+ name: 'xLink',
+ type: 'LINKS',
+ label: 'X',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-6f64-4fd9-9580-9c1991c7d8c3',
+ description: 'The company Twitter/X account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '7524cc63-2522-4c70-8b12-21fe2fe8de26': {
+ id: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ icon: 'IconTargetArrow',
+ name: 'opportunities',
+ type: 'RELATION',
+ label: 'Opportunities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-add3-4658-8e23-d70dccb6d0ec',
+ description: 'Opportunities linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '889b83fc-9a5e-414c-acb6-48e5aa029394',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '2a12de2d-3c43-4108-bd0a-f52b053e2449',
+ toObjectMetadataId: 'da77d279-8984-4cb1-987a-14e2b0501288',
+ fromFieldMetadataId: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '7dd1b1ac-9765-423e-ac74-050b2b730885': {
+ id: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ icon: 'IconNotes',
+ name: 'noteTargets',
+ type: 'RELATION',
+ label: 'Notes',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-bae0-4556-a74a-a9c686f77a88',
+ description: 'Notes tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'b240e206-e8ba-496a-9671-063ad48a447d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '5c582b90-c1d4-4ebe-bd66-3cc94e4abd35',
+ toObjectMetadataId: 'b58841d9-7545-41b7-bb84-75e821285933',
+ fromFieldMetadataId: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '8a2883df-3e19-4d52-9309-d636767d1b6a': {
+ id: '8a2883df-3e19-4d52-9309-d636767d1b6a',
+ icon: 'IconHome',
+ name: 'workPolicy',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ options: [
+ {
+ id: '4554330a-c3db-4042-b941-c2e299734d12',
+ color: 'green',
+ label: 'On-Site',
+ value: 'ON_SITE',
+ position: 0,
+ },
+ {
+ id: 'abfde6f9-64d5-430a-adb3-bea2f403d9a4',
+ color: 'turquoise',
+ label: 'Hybrid',
+ value: 'HYBRID',
+ position: 1,
+ },
+ {
+ id: '8eaca902-05c5-4087-86c0-30c664c2c4f5',
+ color: 'sky',
+ label: 'Remote Work',
+ value: 'REMOTE_WORK',
+ position: 2,
+ },
+ ],
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.013Z',
+ updatedAt: '2025-03-05T15:41:12.013Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Work Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03': {
+ id: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ icon: 'IconUser',
+ name: 'searchVector',
+ type: 'TS_VECTOR',
+ label: 'Search vector',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '85c71601-72f9-4b7b-b343-d46100b2c74d',
+ description: 'Field used for full-text search',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '943f218e-6061-4f61-ac3a-298ac14cef41': {
+ id: '943f218e-6061-4f61-ac3a-298ac14cef41',
+ icon: 'IconCreativeCommonsSa',
+ name: 'createdBy',
+ type: 'ACTOR',
+ label: 'Created by',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-fabc-451d-ab7d-412170916baa',
+ description: 'The creator of the record',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ name: "'System'",
+ source: "'MANUAL'",
+ context: {},
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa': {
+ id: 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa',
+ icon: 'IconBrandLinkedin',
+ name: 'linkedinLink',
+ type: 'LINKS',
+ label: 'Linkedin',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-ebeb-4beb-b9ad-6848036fb451',
+ description: 'The company Linkedin account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2': {
+ id: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ icon: 'IconUserCircle',
+ name: 'accountOwnerId',
+ type: 'UUID',
+ label: 'Account Owner id (foreign key)',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cce0-424e-8028-91f50eb9c768',
+ description:
+ 'Your team member responsible for managing the company account id foreign key',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4': {
+ id: 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4',
+ icon: 'IconHierarchy2',
+ name: 'position',
+ type: 'POSITION',
+ label: 'Position',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-9b4e-462b-991d-a0ee33326454',
+ description: 'Company record position',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 0,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07': {
+ id: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ icon: 'IconCheckbox',
+ name: 'taskTargets',
+ type: 'RELATION',
+ label: 'Tasks',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cb17-4a61-8f8f-3be6730480de',
+ description: 'Tasks tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '40a2f0d1-f420-46a2-a010-2489e7f27a9d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e3ee1c65-5ec0-4d68-aac4-6c66720240f0',
+ toObjectMetadataId: '3e31c837-b0f0-4e8e-a1e3-28d3b12950f4',
+ fromFieldMetadataId: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10': {
+ id: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ icon: 'IconBuildingSkyscraper',
+ name: 'name',
+ type: 'TEXT',
+ label: 'Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-4d99-4e2e-a84c-4a27837b1ece',
+ description: 'The company name',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'c750e2c6-3de6-4c18-9876-6ba5ba970d42': {
+ id: 'c750e2c6-3de6-4c18-9876-6ba5ba970d42',
+ icon: 'IconUsers',
+ name: 'employees',
+ type: 'NUMBER',
+ label: 'Employees',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-8965-464a-8a75-74bafc152a0b',
+ description: 'Number of employees in the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'dbc86e47-d2cf-4094-9a57-90212efde6a0': {
+ id: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ icon: 'IconLink',
+ name: 'domainName',
+ type: 'LINKS',
+ label: 'Domain Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: true,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-0c28-43d8-8ba5-3659924d3489',
+ description:
+ 'The company website URL. We use this url to fetch the company icon',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'fba56220-3f40-4569-a500-35a4a312e473': {
+ id: 'fba56220-3f40-4569-a500-35a4a312e473',
+ icon: 'IconMoneybag',
+ name: 'annualRecurringRevenue',
+ type: 'CURRENCY',
+ label: 'ARR',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-602a-495c-9776-f5d5b11d227b',
+ description:
+ 'Annual Recurring Revenue: The actual or estimated annual revenue of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ amountMicros: null,
+ currencyCode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ },
+ namePlural: 'companies',
+ standardId: '20202020-b374-4779-a561-80086cb2e17f',
+ description: 'A company',
+ labelPlural: 'Companies',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ dataSourceId: 'f20df2e6-420e-40e0-a4ca-68846bbe6c92',
+ fieldsByName: {
+ id: {
+ id: '593dd556-69ab-4df7-aa2e-ab5e20eb7977',
+ icon: 'Icon123',
+ name: 'id',
+ type: 'UUID',
+ label: 'Id',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-eda0-4cee-9577-3eb357e3c22b',
+ description: 'Id',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'uuid',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ name: {
+ id: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ icon: 'IconBuildingSkyscraper',
+ name: 'name',
+ type: 'TEXT',
+ label: 'Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-4d99-4e2e-a84c-4a27837b1ece',
+ description: 'The company name',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ xLink: {
+ id: '5fc216dc-7af4-4927-a026-0e5144afa436',
+ icon: 'IconBrandX',
+ name: 'xLink',
+ type: 'LINKS',
+ label: 'X',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-6f64-4fd9-9580-9c1991c7d8c3',
+ description: 'The company Twitter/X account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ people: {
+ id: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ icon: 'IconUsers',
+ name: 'people',
+ type: 'RELATION',
+ label: 'People',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-3213-4ddf-9494-6422bcff8d7c',
+ description: 'People linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '427d1095-8ac0-4854-bf85-2adff18b653e',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: 'd25fcd48-4b3f-4d6a-b1c0-4241d64502ac',
+ toObjectMetadataId: '462ac013-3ba0-4e87-b6a3-07069c308ca3',
+ fromFieldMetadataId: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ address: {
+ id: '0b32256a-1bd2-40e1-98e0-74b400452aab',
+ icon: 'IconMap',
+ name: 'address',
+ type: 'ADDRESS',
+ label: 'Address',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c5ce-4adc-b7b6-9c0979fc55e7',
+ description: 'Address of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: "''",
+ addressState: "''",
+ addressCountry: "''",
+ addressStreet1: "''",
+ addressStreet2: "''",
+ addressPostcode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ tagline: {
+ id: '4f069436-1c42-4ec4-8dda-6b22011fc75a',
+ icon: 'IconAdCircle',
+ name: 'tagline',
+ type: 'TEXT',
+ label: 'Tagline',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.009Z',
+ updatedAt: '2025-03-05T15:41:12.009Z',
+ isNullable: false,
+ standardId: null,
+ description: "Company's Tagline",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ position: {
+ id: 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4',
+ icon: 'IconHierarchy2',
+ name: 'position',
+ type: 'POSITION',
+ label: 'Position',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-9b4e-462b-991d-a0ee33326454',
+ description: 'Company record position',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 0,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ createdAt: {
+ id: '4ebb7bb9-d451-4433-880d-32cd3f3744df',
+ icon: 'IconCalendar',
+ name: 'createdAt',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-66ac-4502-9975-e4d959c50311',
+ description: 'Creation date',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ createdBy: {
+ id: '943f218e-6061-4f61-ac3a-298ac14cef41',
+ icon: 'IconCreativeCommonsSa',
+ name: 'createdBy',
+ type: 'ACTOR',
+ label: 'Created by',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-fabc-451d-ab7d-412170916baa',
+ description: 'The creator of the record',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ name: "'System'",
+ source: "'MANUAL'",
+ context: {},
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ deletedAt: {
+ id: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ icon: 'IconCalendarMinus',
+ name: 'deletedAt',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-b9a7-48d8-8387-b9a3090a50ec',
+ description: 'Date when the record was deleted',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ employees: {
+ id: 'c750e2c6-3de6-4c18-9876-6ba5ba970d42',
+ icon: 'IconUsers',
+ name: 'employees',
+ type: 'NUMBER',
+ label: 'Employees',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-8965-464a-8a75-74bafc152a0b',
+ description: 'Number of employees in the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ favorites: {
+ id: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ icon: 'IconHeart',
+ name: 'favorites',
+ type: 'RELATION',
+ label: 'Favorites',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-4d1d-41ac-b13b-621631298d55',
+ description: 'Favorites linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '2163bf40-3b55-4bf9-bb59-968b8eda9114',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '3f34086f-ad66-4e1d-9d4b-f42cdc0f2040',
+ toObjectMetadataId: '323f077c-138b-4243-bbf2-59a77252f3c5',
+ fromFieldMetadataId: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ updatedAt: {
+ id: '39526b16-7d21-4a91-a70c-bca108b27989',
+ icon: 'IconCalendarClock',
+ name: 'updatedAt',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-d767-4622-bdcf-d8a084834d86',
+ description: 'Last time the record was changed',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ domainName: {
+ id: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ icon: 'IconLink',
+ name: 'domainName',
+ type: 'LINKS',
+ label: 'Domain Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: true,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-0c28-43d8-8ba5-3659924d3489',
+ description:
+ 'The company website URL. We use this url to fetch the company icon',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ introVideo: {
+ id: '49e40a03-3f21-49d5-b03a-439bbc9ab73b',
+ icon: 'IconVideo',
+ name: 'introVideo',
+ type: 'LINKS',
+ label: 'Intro Video',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.011Z',
+ updatedAt: '2025-03-05T15:41:12.011Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Intro Video",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ workPolicy: {
+ id: '8a2883df-3e19-4d52-9309-d636767d1b6a',
+ icon: 'IconHome',
+ name: 'workPolicy',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ options: [
+ {
+ id: '4554330a-c3db-4042-b941-c2e299734d12',
+ color: 'green',
+ label: 'On-Site',
+ value: 'ON_SITE',
+ position: 0,
+ },
+ {
+ id: 'abfde6f9-64d5-430a-adb3-bea2f403d9a4',
+ color: 'turquoise',
+ label: 'Hybrid',
+ value: 'HYBRID',
+ position: 1,
+ },
+ {
+ id: '8eaca902-05c5-4087-86c0-30c664c2c4f5',
+ color: 'sky',
+ label: 'Remote Work',
+ value: 'REMOTE_WORK',
+ position: 2,
+ },
+ ],
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.013Z',
+ updatedAt: '2025-03-05T15:41:12.013Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Work Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ attachments: {
+ id: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ icon: 'IconFileImport',
+ name: 'attachments',
+ type: 'RELATION',
+ label: 'Attachments',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c1b5-4120-b0f0-987ca401ed53',
+ description: 'Attachments linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'a2c6a4d7-fbda-4075-9fec-0a96ee07953a',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e907c0a6-3e66-45a4-9922-8bc4d5bf5208',
+ toObjectMetadataId: 'f85c3930-9919-4887-b950-2e0496597c58',
+ fromFieldMetadataId: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ noteTargets: {
+ id: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ icon: 'IconNotes',
+ name: 'noteTargets',
+ type: 'RELATION',
+ label: 'Notes',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-bae0-4556-a74a-a9c686f77a88',
+ description: 'Notes tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'b240e206-e8ba-496a-9671-063ad48a447d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '5c582b90-c1d4-4ebe-bd66-3cc94e4abd35',
+ toObjectMetadataId: 'b58841d9-7545-41b7-bb84-75e821285933',
+ fromFieldMetadataId: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ taskTargets: {
+ id: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ icon: 'IconCheckbox',
+ name: 'taskTargets',
+ type: 'RELATION',
+ label: 'Tasks',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cb17-4a61-8f8f-3be6730480de',
+ description: 'Tasks tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '40a2f0d1-f420-46a2-a010-2489e7f27a9d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e3ee1c65-5ec0-4d68-aac4-6c66720240f0',
+ toObjectMetadataId: '3e31c837-b0f0-4e8e-a1e3-28d3b12950f4',
+ fromFieldMetadataId: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ accountOwner: {
+ id: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ icon: 'IconUserCircle',
+ name: 'accountOwner',
+ type: 'RELATION',
+ label: 'Account Owner',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-95b8-4e10-9881-edb5d4765f9d',
+ description:
+ 'Your team member responsible for managing the company account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: {
+ id: '9ca11143-4ae4-4ed4-b636-158bc14d9513',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ toObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ fromFieldMetadataId: '58a6c41e-9ff0-4607-be3a-4356175b75dc',
+ fromObjectMetadataId: '82dd61be-d849-41c2-b7c2-6a8ddb796e3e',
+ },
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ linkedinLink: {
+ id: 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa',
+ icon: 'IconBrandLinkedin',
+ name: 'linkedinLink',
+ type: 'LINKS',
+ label: 'Linkedin',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-ebeb-4beb-b9ad-6848036fb451',
+ description: 'The company Linkedin account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ searchVector: {
+ id: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ icon: 'IconUser',
+ name: 'searchVector',
+ type: 'TS_VECTOR',
+ label: 'Search vector',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '85c71601-72f9-4b7b-b343-d46100b2c74d',
+ description: 'Field used for full-text search',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ opportunities: {
+ id: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ icon: 'IconTargetArrow',
+ name: 'opportunities',
+ type: 'RELATION',
+ label: 'Opportunities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-add3-4658-8e23-d70dccb6d0ec',
+ description: 'Opportunities linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '889b83fc-9a5e-414c-acb6-48e5aa029394',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '2a12de2d-3c43-4108-bd0a-f52b053e2449',
+ toObjectMetadataId: 'da77d279-8984-4cb1-987a-14e2b0501288',
+ fromFieldMetadataId: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ accountOwnerId: {
+ id: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ icon: 'IconUserCircle',
+ name: 'accountOwnerId',
+ type: 'UUID',
+ label: 'Account Owner id (foreign key)',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cce0-424e-8028-91f50eb9c768',
+ description:
+ 'Your team member responsible for managing the company account id foreign key',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ visaSponsorship: {
+ id: '26a67635-7d43-47f0-b895-1c8194a7fa30',
+ icon: 'IconBrandVisa',
+ name: 'visaSponsorship',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.014Z',
+ updatedAt: '2025-03-05T15:41:12.014Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Visa Sponsorship Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ timelineActivities: {
+ id: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ icon: 'IconIconTimelineEvent',
+ name: 'timelineActivities',
+ type: 'RELATION',
+ label: 'Timeline Activities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-0414-4daf-9c0d-64fe7b27f89f',
+ description: 'Timeline Activities linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '29a10f41-0265-4775-923f-0bbf548dc2ec',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '96896f47-cb02-4164-b3f2-c24d12b30e74',
+ toObjectMetadataId: '1a41f4ba-7aad-4111-8035-961962702ebb',
+ fromFieldMetadataId: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ idealCustomerProfile: {
+ id: '214a5118-3ab5-4d2a-ac89-020f776831b3',
+ icon: 'IconTarget',
+ name: 'idealCustomerProfile',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-ba6b-438a-8213-2c5ba28d76a2',
+ description:
+ 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ annualRecurringRevenue: {
+ id: 'fba56220-3f40-4569-a500-35a4a312e473',
+ icon: 'IconMoneybag',
+ name: 'annualRecurringRevenue',
+ type: 'CURRENCY',
+ label: 'ARR',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-602a-495c-9776-f5d5b11d227b',
+ description:
+ 'Annual Recurring Revenue: The actual or estimated annual revenue of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ amountMicros: null,
+ currencyCode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ },
+ isSearchable: true,
+ nameSingular: 'company',
+ isAuditLogged: true,
+ labelSingular: 'Company',
+ indexMetadatas: [
+ {
+ id: '9d5ef0cf-a301-44bf-98dd-c839d363f8f6',
+ name: 'IDX_UNIQUE_2a32339058d0b6910b0834ddf81',
+ isCustom: false,
+ isUnique: true,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ indexType: 'BTREE',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ indexWhereClause: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ indexFieldMetadatas: [
+ {
+ id: '12f75acc-33fc-49ee-af8f-39d9e8f17c3d',
+ order: 0,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ fieldMetadataId: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ indexMetadataId: '9d5ef0cf-a301-44bf-98dd-c839d363f8f6',
+ },
+ ],
+ },
+ {
+ id: 'e554c7bb-c355-4594-a708-4ea4e7cbcbdc',
+ name: 'IDX_123501237187c835ede626367b7',
+ isCustom: false,
+ isUnique: false,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ indexType: 'BTREE',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ indexWhereClause: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ indexFieldMetadatas: [
+ {
+ id: 'cf3ebe8e-e213-4c4c-939f-d7fb36016823',
+ order: 0,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ fieldMetadataId: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ indexMetadataId: 'e554c7bb-c355-4594-a708-4ea4e7cbcbdc',
+ },
+ {
+ id: 'd2663353-c4a2-4787-98d1-6ad448a66d86',
+ order: 1,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ fieldMetadataId: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ indexMetadataId: 'e554c7bb-c355-4594-a708-4ea4e7cbcbdc',
+ },
+ ],
+ },
+ {
+ id: '48102f0b-0aef-4ae3-b3de-54e7c5bbdd1c',
+ name: 'IDX_fb1f4905546cfc6d70a971c76f7',
+ isCustom: false,
+ isUnique: false,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ indexType: 'GIN',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ indexWhereClause: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ indexFieldMetadatas: [
+ {
+ id: '5cd649b1-79b8-4b07-9c56-b70fe247954b',
+ order: 0,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ fieldMetadataId: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ indexMetadataId: '48102f0b-0aef-4ae3-b3de-54e7c5bbdd1c',
+ },
+ ],
+ },
+ ],
+ targetTableName: 'DEPRECATED',
+ duplicateCriteria: [['name'], ['domainNamePrimaryLinkUrl']],
+ isLabelSyncedWithName: false,
+ imageIdentifierFieldMetadataId: null,
+ labelIdentifierFieldMetadataId:
+ 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ },
+ },
+ '212a171a-f887-4213-8892-e39c2a3ecc30': {
+ userId: ['20202020', '9e3b', '46d4', 'a556', '88b9ddc2b034'],
+ },
+ },
+ createdAt: '2025-03-06T11:52:42.801Z',
+ deletedAt: null,
+ endedAt: '2025-03-06T11:52:42.910Z',
+ id: '7473ccf8-303f-4588-8917-513b9b21c5c0',
+ name: 'Execution of v2',
+ output: {
+ flow: {
+ steps: [
+ {
+ id: '212a171a-f887-4213-8892-e39c2a3ecc30',
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId: 'e031ae6a-5b9e-496b-9a98-ba015f7b5508',
+ serverlessFunctionInput: {
+ userId: '{{trigger.userId}}',
+ },
+ serverlessFunctionVersion: '1',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: 'a01b2953-9aa7-4d9a-aded-8e9bafbd6c30',
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId: '605efcda-6689-43b3-b24c-2eb76948f523',
+ serverlessFunctionInput: {},
+ serverlessFunctionVersion: '1',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: '753b124e-f427-44a4-ab08-bacfe9c2f746',
+ name: 'Create Record',
+ type: 'CREATE_RECORD',
+ valid: false,
+ settings: {
+ input: {
+ objectName: 'note',
+ objectRecord: {
+ title: 'Proposal for {{trigger.properties.after.name}}',
+ },
+ },
+ outputSchema: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ body: {
+ icon: 'IconFilePencil',
+ type: 'RICH_TEXT',
+ label: 'Body (deprecated)',
+ value: 'My rich text',
+ isLeaf: true,
+ },
+ title: {
+ icon: 'IconNotes',
+ type: 'TEXT',
+ label: 'Title',
+ value: 'My text',
+ isLeaf: true,
+ },
+ bodyV2: {
+ icon: 'IconFilePencil',
+ label: 'Body',
+ value: {
+ markdown: {
+ type: 'TEXT',
+ label: ' Markdown',
+ value: 'My text',
+ isLeaf: true,
+ },
+ blocknote: {
+ type: 'TEXT',
+ label: ' Blocknote',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ },
+ object: {
+ icon: 'IconNotes',
+ label: 'Note',
+ value: 'A note',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'note',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: 'd4a73172-3156-45bf-bc49-9358fbab2907',
+ name: 'Create Record',
+ type: 'CREATE_RECORD',
+ valid: false,
+ settings: {
+ input: {
+ objectName: 'opportunity',
+ objectRecord: {
+ name: 'Opportunity with {{trigger.properties.after.name}}',
+ stage: 'NEW',
+ },
+ },
+ outputSchema: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ name: {
+ icon: 'IconTargetArrow',
+ type: 'TEXT',
+ label: 'Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ stage: {
+ icon: 'IconProgressCheck',
+ type: 'SELECT',
+ label: 'Stage',
+ value: null,
+ isLeaf: true,
+ },
+ amount: {
+ icon: 'IconCurrencyDollar',
+ label: 'Amount',
+ value: {
+ amountMicros: {
+ type: 'NUMERIC',
+ label: ' Amount Micros',
+ value: null,
+ isLeaf: true,
+ },
+ currencyCode: {
+ type: 'TEXT',
+ label: ' Currency Code',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ closeDate: {
+ icon: 'IconCalendarEvent',
+ type: 'DATE_TIME',
+ label: 'Close date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ },
+ object: {
+ icon: 'IconTargetArrow',
+ label: 'Opportunity',
+ value: 'An opportunity',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'opportunity',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ ],
+ trigger: {
+ type: 'DATABASE_EVENT',
+ settings: {
+ eventName: 'company.created',
+ outputSchema: {
+ userId: {
+ type: 'string',
+ label: 'User ID',
+ value: '977a8fb6-1b97-4203-a64b-5d3e12f8587c',
+ isLeaf: true,
+ },
+ recordId: {
+ type: 'string',
+ label: 'Record ID',
+ value: '80d61929-1860-4f37-a639-b406a67f7800',
+ isLeaf: true,
+ },
+ objectMetadata: {
+ label: 'Object Metadata',
+ value: {
+ id: {
+ label: ' Id',
+ value: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLeaf: true,
+ },
+ icon: {
+ label: ' Icon',
+ value: 'IconBuildingSkyscraper',
+ isLeaf: true,
+ },
+ fields: {
+ label: ' Fields',
+ value: [
+ {
+ id: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ icon: 'IconBuildingSkyscraper',
+ name: 'name',
+ type: 'TEXT',
+ label: 'Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-4d99-4e2e-a84c-4a27837b1ece',
+ description: 'The company name',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ icon: 'IconLink',
+ name: 'domainName',
+ type: 'LINKS',
+ label: 'Domain Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: true,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-0c28-43d8-8ba5-3659924d3489',
+ description:
+ 'The company website URL. We use this url to fetch the company icon',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c750e2c6-3de6-4c18-9876-6ba5ba970d42',
+ icon: 'IconUsers',
+ name: 'employees',
+ type: 'NUMBER',
+ label: 'Employees',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-8965-464a-8a75-74bafc152a0b',
+ description: 'Number of employees in the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa',
+ icon: 'IconBrandLinkedin',
+ name: 'linkedinLink',
+ type: 'LINKS',
+ label: 'Linkedin',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-ebeb-4beb-b9ad-6848036fb451',
+ description: 'The company Linkedin account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '5fc216dc-7af4-4927-a026-0e5144afa436',
+ icon: 'IconBrandX',
+ name: 'xLink',
+ type: 'LINKS',
+ label: 'X',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-6f64-4fd9-9580-9c1991c7d8c3',
+ description: 'The company Twitter/X account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'fba56220-3f40-4569-a500-35a4a312e473',
+ icon: 'IconMoneybag',
+ name: 'annualRecurringRevenue',
+ type: 'CURRENCY',
+ label: 'ARR',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-602a-495c-9776-f5d5b11d227b',
+ description:
+ 'Annual Recurring Revenue: The actual or estimated annual revenue of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ amountMicros: null,
+ currencyCode: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0b32256a-1bd2-40e1-98e0-74b400452aab',
+ icon: 'IconMap',
+ name: 'address',
+ type: 'ADDRESS',
+ label: 'Address',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c5ce-4adc-b7b6-9c0979fc55e7',
+ description: 'Address of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: "''",
+ addressState: "''",
+ addressCountry: "''",
+ addressStreet1: "''",
+ addressStreet2: "''",
+ addressPostcode: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '214a5118-3ab5-4d2a-ac89-020f776831b3',
+ icon: 'IconTarget',
+ name: 'idealCustomerProfile',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-ba6b-438a-8213-2c5ba28d76a2',
+ description:
+ 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4',
+ icon: 'IconHierarchy2',
+ name: 'position',
+ type: 'POSITION',
+ label: 'Position',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-9b4e-462b-991d-a0ee33326454',
+ description: 'Company record position',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 0,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '943f218e-6061-4f61-ac3a-298ac14cef41',
+ icon: 'IconCreativeCommonsSa',
+ name: 'createdBy',
+ type: 'ACTOR',
+ label: 'Created by',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-fabc-451d-ab7d-412170916baa',
+ description: 'The creator of the record',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ name: "'System'",
+ source: "'MANUAL'",
+ context: {},
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ icon: 'IconUser',
+ name: 'searchVector',
+ type: 'TS_VECTOR',
+ label: 'Search vector',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '85c71601-72f9-4b7b-b343-d46100b2c74d',
+ description: 'Field used for full-text search',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '593dd556-69ab-4df7-aa2e-ab5e20eb7977',
+ icon: 'Icon123',
+ name: 'id',
+ type: 'UUID',
+ label: 'Id',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-eda0-4cee-9577-3eb357e3c22b',
+ description: 'Id',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'uuid',
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4ebb7bb9-d451-4433-880d-32cd3f3744df',
+ icon: 'IconCalendar',
+ name: 'createdAt',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-66ac-4502-9975-e4d959c50311',
+ description: 'Creation date',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '39526b16-7d21-4a91-a70c-bca108b27989',
+ icon: 'IconCalendarClock',
+ name: 'updatedAt',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-d767-4622-bdcf-d8a084834d86',
+ description: 'Last time the record was changed',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ icon: 'IconCalendarMinus',
+ name: 'deletedAt',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-b9a7-48d8-8387-b9a3090a50ec',
+ description: 'Date when the record was deleted',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ icon: 'IconUsers',
+ name: 'people',
+ type: 'RELATION',
+ label: 'People',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-3213-4ddf-9494-6422bcff8d7c',
+ description: 'People linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ icon: 'IconUserCircle',
+ name: 'accountOwnerId',
+ type: 'UUID',
+ label: 'Account Owner id (foreign key)',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cce0-424e-8028-91f50eb9c768',
+ description:
+ 'Your team member responsible for managing the company account id foreign key',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ icon: 'IconUserCircle',
+ name: 'accountOwner',
+ type: 'RELATION',
+ label: 'Account Owner',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-95b8-4e10-9881-edb5d4765f9d',
+ description:
+ 'Your team member responsible for managing the company account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ icon: 'IconCheckbox',
+ name: 'taskTargets',
+ type: 'RELATION',
+ label: 'Tasks',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cb17-4a61-8f8f-3be6730480de',
+ description: 'Tasks tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ icon: 'IconNotes',
+ name: 'noteTargets',
+ type: 'RELATION',
+ label: 'Notes',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-bae0-4556-a74a-a9c686f77a88',
+ description: 'Notes tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ icon: 'IconTargetArrow',
+ name: 'opportunities',
+ type: 'RELATION',
+ label: 'Opportunities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-add3-4658-8e23-d70dccb6d0ec',
+ description: 'Opportunities linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ icon: 'IconHeart',
+ name: 'favorites',
+ type: 'RELATION',
+ label: 'Favorites',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-4d1d-41ac-b13b-621631298d55',
+ description: 'Favorites linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ icon: 'IconFileImport',
+ name: 'attachments',
+ type: 'RELATION',
+ label: 'Attachments',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c1b5-4120-b0f0-987ca401ed53',
+ description: 'Attachments linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ icon: 'IconIconTimelineEvent',
+ name: 'timelineActivities',
+ type: 'RELATION',
+ label: 'Timeline Activities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-0414-4daf-9c0d-64fe7b27f89f',
+ description:
+ 'Timeline Activities linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4f069436-1c42-4ec4-8dda-6b22011fc75a',
+ icon: 'IconAdCircle',
+ name: 'tagline',
+ type: 'TEXT',
+ label: 'Tagline',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.009Z',
+ updatedAt: '2025-03-05T15:41:12.009Z',
+ isNullable: false,
+ standardId: null,
+ description: "Company's Tagline",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '49e40a03-3f21-49d5-b03a-439bbc9ab73b',
+ icon: 'IconVideo',
+ name: 'introVideo',
+ type: 'LINKS',
+ label: 'Intro Video',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.011Z',
+ updatedAt: '2025-03-05T15:41:12.011Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Intro Video",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8a2883df-3e19-4d52-9309-d636767d1b6a',
+ icon: 'IconHome',
+ name: 'workPolicy',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ options: [
+ {
+ id: '4554330a-c3db-4042-b941-c2e299734d12',
+ color: 'green',
+ label: 'On-Site',
+ value: 'ON_SITE',
+ position: 0,
+ },
+ {
+ id: 'abfde6f9-64d5-430a-adb3-bea2f403d9a4',
+ color: 'turquoise',
+ label: 'Hybrid',
+ value: 'HYBRID',
+ position: 1,
+ },
+ {
+ id: '8eaca902-05c5-4087-86c0-30c664c2c4f5',
+ color: 'sky',
+ label: 'Remote Work',
+ value: 'REMOTE_WORK',
+ position: 2,
+ },
+ ],
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.013Z',
+ updatedAt: '2025-03-05T15:41:12.013Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Work Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '26a67635-7d43-47f0-b895-1c8194a7fa30',
+ icon: 'IconBrandVisa',
+ name: 'visaSponsorship',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.014Z',
+ updatedAt: '2025-03-05T15:41:12.014Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Visa Sponsorship Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ ],
+ isLeaf: true,
+ },
+ isActive: {
+ label: ' Is Active',
+ value: true,
+ isLeaf: true,
+ },
+ isCustom: {
+ label: ' Is Custom',
+ value: false,
+ isLeaf: true,
+ },
+ isRemote: {
+ label: ' Is Remote',
+ value: false,
+ isLeaf: true,
+ },
+ isSystem: {
+ label: ' Is System',
+ value: false,
+ isLeaf: true,
+ },
+ shortcut: {
+ label: ' Shortcut',
+ value: 'C',
+ isLeaf: true,
+ },
+ createdAt: {
+ label: ' Created At',
+ value: '2025-03-05T15:41:09.390Z',
+ isLeaf: true,
+ },
+ updatedAt: {
+ label: ' Updated At',
+ value: '2025-03-05T15:41:09.390Z',
+ isLeaf: true,
+ },
+ namePlural: {
+ label: ' Name Plural',
+ value: 'companies',
+ isLeaf: true,
+ },
+ standardId: {
+ label: ' Standard Id',
+ value: '20202020-b374-4779-a561-80086cb2e17f',
+ isLeaf: true,
+ },
+ description: {
+ label: ' Description',
+ value: 'A company',
+ isLeaf: true,
+ },
+ labelPlural: {
+ label: ' Label Plural',
+ value: 'Companies',
+ isLeaf: true,
+ },
+ workspaceId: {
+ label: ' Workspace Id',
+ value: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ isLeaf: true,
+ },
+ dataSourceId: {
+ label: ' Data Source Id',
+ value: 'f20df2e6-420e-40e0-a4ca-68846bbe6c92',
+ isLeaf: true,
+ },
+ isSearchable: {
+ label: ' Is Searchable',
+ value: true,
+ isLeaf: true,
+ },
+ nameSingular: {
+ label: ' Name Singular',
+ value: 'company',
+ isLeaf: true,
+ },
+ isAuditLogged: {
+ label: ' Is Audit Logged',
+ value: true,
+ isLeaf: true,
+ },
+ labelSingular: {
+ label: ' Label Singular',
+ value: 'Company',
+ isLeaf: true,
+ },
+ targetTableName: {
+ label: ' Target Table Name',
+ value: 'DEPRECATED',
+ isLeaf: true,
+ },
+ duplicateCriteria: {
+ label: ' Duplicate Criteria',
+ value: [['name'], ['domainNamePrimaryLinkUrl']],
+ isLeaf: true,
+ },
+ isLabelSyncedWithName: {
+ label: ' Is Label Synced With Name',
+ value: false,
+ isLeaf: true,
+ },
+ imageIdentifierFieldMetadataId: {
+ label: ' Image Identifier Field Metadata Id',
+ value: null,
+ isLeaf: true,
+ },
+ labelIdentifierFieldMetadataId: {
+ label: ' Label Identifier Field Metadata Id',
+ value: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ 'properties.after': {
+ label: 'Record Fields',
+ value: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ name: {
+ icon: 'IconBuildingSkyscraper',
+ type: 'TEXT',
+ label: 'Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ xLink: {
+ icon: 'IconBrandX',
+ label: 'X',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ address: {
+ icon: 'IconMap',
+ label: 'Address',
+ value: {
+ addressLat: {
+ type: 'NUMERIC',
+ label: ' Address Lat',
+ value: null,
+ isLeaf: true,
+ },
+ addressLng: {
+ type: 'NUMERIC',
+ label: ' Address Lng',
+ value: null,
+ isLeaf: true,
+ },
+ addressCity: {
+ type: 'TEXT',
+ label: ' Address City',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressState: {
+ type: 'TEXT',
+ label: ' Address State',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressCountry: {
+ type: 'TEXT',
+ label: ' Address Country',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressStreet1: {
+ type: 'TEXT',
+ label: ' Address Street1',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressStreet2: {
+ type: 'TEXT',
+ label: ' Address Street2',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressPostcode: {
+ type: 'TEXT',
+ label: ' Address Postcode',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ tagline: {
+ icon: 'IconAdCircle',
+ type: 'TEXT',
+ label: 'Tagline',
+ value: 'My text',
+ isLeaf: true,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ employees: {
+ icon: 'IconUsers',
+ type: 'NUMBER',
+ label: 'Employees',
+ value: 20,
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ domainName: {
+ icon: 'IconLink',
+ label: 'Domain Name',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ introVideo: {
+ icon: 'IconVideo',
+ label: 'Intro Video',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ workPolicy: {
+ icon: 'IconHome',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ value: null,
+ isLeaf: true,
+ },
+ linkedinLink: {
+ icon: 'IconBrandLinkedin',
+ label: 'Linkedin',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ visaSponsorship: {
+ icon: 'IconBrandVisa',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ value: true,
+ isLeaf: true,
+ },
+ idealCustomerProfile: {
+ icon: 'IconTarget',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ value: true,
+ isLeaf: true,
+ },
+ annualRecurringRevenue: {
+ icon: 'IconMoneybag',
+ label: 'ARR',
+ value: {
+ amountMicros: {
+ type: 'NUMERIC',
+ label: ' Amount Micros',
+ value: null,
+ isLeaf: true,
+ },
+ currencyCode: {
+ type: 'TEXT',
+ label: ' Currency Code',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ },
+ object: {
+ icon: 'IconBuildingSkyscraper',
+ label: 'Company',
+ value: 'A company',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'company',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ isLeaf: false,
+ },
+ workspaceMemberId: {
+ type: 'string',
+ label: 'Workspace Member ID',
+ value: '53562519-b9e8-44f1-8dd1-e247cc7ef584',
+ isLeaf: true,
+ },
+ },
+ },
+ },
+ },
+ error: 'fn(...).then is not a function',
+ stepsOutput: {
+ '212a171a-f887-4213-8892-e39c2a3ecc30': {
+ result: {
+ userId: ['20202020', '9e3b', '46d4', 'a556', '88b9ddc2b034'],
+ },
+ },
+ 'a01b2953-9aa7-4d9a-aded-8e9bafbd6c30': {
+ error: 'fn(...).then is not a function',
+ },
+ },
+ },
+ position: 0,
+ startedAt: '2025-03-06T11:52:42.818Z',
+ status: 'FAILED',
+ updatedAt: '2025-03-06T11:52:42.911Z',
+ workflowId: 'f355201d-b1b5-4467-94b9-2a9da4202979',
+ workflowVersionId: 'f3a93101-bc3a-4b5e-9e42-22d0ef5db23b',
+ createdBy: {
+ __typename: 'Actor',
+ source: 'WORKFLOW',
+ workspaceMemberId: null,
+ name: 'Test Workflow',
+ context: {},
+ },
+ favorites: {
+ __typename: 'FavoriteConnection',
+ edges: [],
+ },
+ timelineActivities: {
+ __typename: 'TimelineActivityConnection',
+ edges: [],
+ },
+ workflowVersion: {
+ __typename: 'WorkflowVersion',
+ createdAt: '2025-03-06T11:46:56.265Z',
+ deletedAt: null,
+ id: 'f3a93101-bc3a-4b5e-9e42-22d0ef5db23b',
+ name: 'v2',
+ position: 0,
+ status: 'ACTIVE',
+ steps: [
+ {
+ id: '212a171a-f887-4213-8892-e39c2a3ecc30',
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId: 'e031ae6a-5b9e-496b-9a98-ba015f7b5508',
+ serverlessFunctionInput: {
+ userId: '{{trigger.userId}}',
+ },
+ serverlessFunctionVersion: '1',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: 'a01b2953-9aa7-4d9a-aded-8e9bafbd6c30',
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId: '605efcda-6689-43b3-b24c-2eb76948f523',
+ serverlessFunctionInput: {},
+ serverlessFunctionVersion: '1',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: '753b124e-f427-44a4-ab08-bacfe9c2f746',
+ name: 'Create Record',
+ type: 'CREATE_RECORD',
+ valid: false,
+ settings: {
+ input: {
+ objectName: 'note',
+ objectRecord: {
+ title: 'Proposal for {{trigger.properties.after.name}}',
+ },
+ },
+ outputSchema: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ body: {
+ icon: 'IconFilePencil',
+ type: 'RICH_TEXT',
+ label: 'Body (deprecated)',
+ value: 'My rich text',
+ isLeaf: true,
+ },
+ title: {
+ icon: 'IconNotes',
+ type: 'TEXT',
+ label: 'Title',
+ value: 'My text',
+ isLeaf: true,
+ },
+ bodyV2: {
+ icon: 'IconFilePencil',
+ label: 'Body',
+ value: {
+ markdown: {
+ type: 'TEXT',
+ label: ' Markdown',
+ value: 'My text',
+ isLeaf: true,
+ },
+ blocknote: {
+ type: 'TEXT',
+ label: ' Blocknote',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ },
+ object: {
+ icon: 'IconNotes',
+ label: 'Note',
+ value: 'A note',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'note',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: 'd4a73172-3156-45bf-bc49-9358fbab2907',
+ name: 'Create Record',
+ type: 'CREATE_RECORD',
+ valid: false,
+ settings: {
+ input: {
+ objectName: 'opportunity',
+ objectRecord: {
+ name: 'Opportunity with {{trigger.properties.after.name}}',
+ stage: 'NEW',
+ },
+ },
+ outputSchema: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ name: {
+ icon: 'IconTargetArrow',
+ type: 'TEXT',
+ label: 'Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ stage: {
+ icon: 'IconProgressCheck',
+ type: 'SELECT',
+ label: 'Stage',
+ value: null,
+ isLeaf: true,
+ },
+ amount: {
+ icon: 'IconCurrencyDollar',
+ label: 'Amount',
+ value: {
+ amountMicros: {
+ type: 'NUMERIC',
+ label: ' Amount Micros',
+ value: null,
+ isLeaf: true,
+ },
+ currencyCode: {
+ type: 'TEXT',
+ label: ' Currency Code',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ closeDate: {
+ icon: 'IconCalendarEvent',
+ type: 'DATE_TIME',
+ label: 'Close date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ },
+ object: {
+ icon: 'IconTargetArrow',
+ label: 'Opportunity',
+ value: 'An opportunity',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'opportunity',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ ],
+ trigger: {
+ type: 'DATABASE_EVENT',
+ settings: {
+ eventName: 'company.created',
+ outputSchema: {
+ userId: {
+ type: 'string',
+ label: 'User ID',
+ value: '977a8fb6-1b97-4203-a64b-5d3e12f8587c',
+ isLeaf: true,
+ },
+ recordId: {
+ type: 'string',
+ label: 'Record ID',
+ value: '80d61929-1860-4f37-a639-b406a67f7800',
+ isLeaf: true,
+ },
+ objectMetadata: {
+ label: 'Object Metadata',
+ value: {
+ id: {
+ label: ' Id',
+ value: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLeaf: true,
+ },
+ icon: {
+ label: ' Icon',
+ value: 'IconBuildingSkyscraper',
+ isLeaf: true,
+ },
+ fields: {
+ label: ' Fields',
+ value: [
+ {
+ id: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ icon: 'IconBuildingSkyscraper',
+ name: 'name',
+ type: 'TEXT',
+ label: 'Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-4d99-4e2e-a84c-4a27837b1ece',
+ description: 'The company name',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ icon: 'IconLink',
+ name: 'domainName',
+ type: 'LINKS',
+ label: 'Domain Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: true,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-0c28-43d8-8ba5-3659924d3489',
+ description:
+ 'The company website URL. We use this url to fetch the company icon',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c750e2c6-3de6-4c18-9876-6ba5ba970d42',
+ icon: 'IconUsers',
+ name: 'employees',
+ type: 'NUMBER',
+ label: 'Employees',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-8965-464a-8a75-74bafc152a0b',
+ description: 'Number of employees in the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa',
+ icon: 'IconBrandLinkedin',
+ name: 'linkedinLink',
+ type: 'LINKS',
+ label: 'Linkedin',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-ebeb-4beb-b9ad-6848036fb451',
+ description: 'The company Linkedin account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '5fc216dc-7af4-4927-a026-0e5144afa436',
+ icon: 'IconBrandX',
+ name: 'xLink',
+ type: 'LINKS',
+ label: 'X',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-6f64-4fd9-9580-9c1991c7d8c3',
+ description: 'The company Twitter/X account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'fba56220-3f40-4569-a500-35a4a312e473',
+ icon: 'IconMoneybag',
+ name: 'annualRecurringRevenue',
+ type: 'CURRENCY',
+ label: 'ARR',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-602a-495c-9776-f5d5b11d227b',
+ description:
+ 'Annual Recurring Revenue: The actual or estimated annual revenue of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ amountMicros: null,
+ currencyCode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0b32256a-1bd2-40e1-98e0-74b400452aab',
+ icon: 'IconMap',
+ name: 'address',
+ type: 'ADDRESS',
+ label: 'Address',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c5ce-4adc-b7b6-9c0979fc55e7',
+ description: 'Address of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: "''",
+ addressState: "''",
+ addressCountry: "''",
+ addressStreet1: "''",
+ addressStreet2: "''",
+ addressPostcode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '214a5118-3ab5-4d2a-ac89-020f776831b3',
+ icon: 'IconTarget',
+ name: 'idealCustomerProfile',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-ba6b-438a-8213-2c5ba28d76a2',
+ description:
+ 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4',
+ icon: 'IconHierarchy2',
+ name: 'position',
+ type: 'POSITION',
+ label: 'Position',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-9b4e-462b-991d-a0ee33326454',
+ description: 'Company record position',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 0,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '943f218e-6061-4f61-ac3a-298ac14cef41',
+ icon: 'IconCreativeCommonsSa',
+ name: 'createdBy',
+ type: 'ACTOR',
+ label: 'Created by',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-fabc-451d-ab7d-412170916baa',
+ description: 'The creator of the record',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ name: "'System'",
+ source: "'MANUAL'",
+ context: {},
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ icon: 'IconUser',
+ name: 'searchVector',
+ type: 'TS_VECTOR',
+ label: 'Search vector',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '85c71601-72f9-4b7b-b343-d46100b2c74d',
+ description: 'Field used for full-text search',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '593dd556-69ab-4df7-aa2e-ab5e20eb7977',
+ icon: 'Icon123',
+ name: 'id',
+ type: 'UUID',
+ label: 'Id',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-eda0-4cee-9577-3eb357e3c22b',
+ description: 'Id',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'uuid',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4ebb7bb9-d451-4433-880d-32cd3f3744df',
+ icon: 'IconCalendar',
+ name: 'createdAt',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-66ac-4502-9975-e4d959c50311',
+ description: 'Creation date',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '39526b16-7d21-4a91-a70c-bca108b27989',
+ icon: 'IconCalendarClock',
+ name: 'updatedAt',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-d767-4622-bdcf-d8a084834d86',
+ description: 'Last time the record was changed',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ icon: 'IconCalendarMinus',
+ name: 'deletedAt',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-b9a7-48d8-8387-b9a3090a50ec',
+ description: 'Date when the record was deleted',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ icon: 'IconUsers',
+ name: 'people',
+ type: 'RELATION',
+ label: 'People',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-3213-4ddf-9494-6422bcff8d7c',
+ description: 'People linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ icon: 'IconUserCircle',
+ name: 'accountOwnerId',
+ type: 'UUID',
+ label: 'Account Owner id (foreign key)',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cce0-424e-8028-91f50eb9c768',
+ description:
+ 'Your team member responsible for managing the company account id foreign key',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ icon: 'IconUserCircle',
+ name: 'accountOwner',
+ type: 'RELATION',
+ label: 'Account Owner',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-95b8-4e10-9881-edb5d4765f9d',
+ description:
+ 'Your team member responsible for managing the company account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ icon: 'IconCheckbox',
+ name: 'taskTargets',
+ type: 'RELATION',
+ label: 'Tasks',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cb17-4a61-8f8f-3be6730480de',
+ description: 'Tasks tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ icon: 'IconNotes',
+ name: 'noteTargets',
+ type: 'RELATION',
+ label: 'Notes',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-bae0-4556-a74a-a9c686f77a88',
+ description: 'Notes tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ icon: 'IconTargetArrow',
+ name: 'opportunities',
+ type: 'RELATION',
+ label: 'Opportunities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-add3-4658-8e23-d70dccb6d0ec',
+ description: 'Opportunities linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ icon: 'IconHeart',
+ name: 'favorites',
+ type: 'RELATION',
+ label: 'Favorites',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-4d1d-41ac-b13b-621631298d55',
+ description: 'Favorites linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ icon: 'IconFileImport',
+ name: 'attachments',
+ type: 'RELATION',
+ label: 'Attachments',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c1b5-4120-b0f0-987ca401ed53',
+ description: 'Attachments linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ icon: 'IconIconTimelineEvent',
+ name: 'timelineActivities',
+ type: 'RELATION',
+ label: 'Timeline Activities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-0414-4daf-9c0d-64fe7b27f89f',
+ description: 'Timeline Activities linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4f069436-1c42-4ec4-8dda-6b22011fc75a',
+ icon: 'IconAdCircle',
+ name: 'tagline',
+ type: 'TEXT',
+ label: 'Tagline',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.009Z',
+ updatedAt: '2025-03-05T15:41:12.009Z',
+ isNullable: false,
+ standardId: null,
+ description: "Company's Tagline",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '49e40a03-3f21-49d5-b03a-439bbc9ab73b',
+ icon: 'IconVideo',
+ name: 'introVideo',
+ type: 'LINKS',
+ label: 'Intro Video',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.011Z',
+ updatedAt: '2025-03-05T15:41:12.011Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Intro Video",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8a2883df-3e19-4d52-9309-d636767d1b6a',
+ icon: 'IconHome',
+ name: 'workPolicy',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ options: [
+ {
+ id: '4554330a-c3db-4042-b941-c2e299734d12',
+ color: 'green',
+ label: 'On-Site',
+ value: 'ON_SITE',
+ position: 0,
+ },
+ {
+ id: 'abfde6f9-64d5-430a-adb3-bea2f403d9a4',
+ color: 'turquoise',
+ label: 'Hybrid',
+ value: 'HYBRID',
+ position: 1,
+ },
+ {
+ id: '8eaca902-05c5-4087-86c0-30c664c2c4f5',
+ color: 'sky',
+ label: 'Remote Work',
+ value: 'REMOTE_WORK',
+ position: 2,
+ },
+ ],
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.013Z',
+ updatedAt: '2025-03-05T15:41:12.013Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Work Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '26a67635-7d43-47f0-b895-1c8194a7fa30',
+ icon: 'IconBrandVisa',
+ name: 'visaSponsorship',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.014Z',
+ updatedAt: '2025-03-05T15:41:12.014Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Visa Sponsorship Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ ],
+ isLeaf: true,
+ },
+ isActive: {
+ label: ' Is Active',
+ value: true,
+ isLeaf: true,
+ },
+ isCustom: {
+ label: ' Is Custom',
+ value: false,
+ isLeaf: true,
+ },
+ isRemote: {
+ label: ' Is Remote',
+ value: false,
+ isLeaf: true,
+ },
+ isSystem: {
+ label: ' Is System',
+ value: false,
+ isLeaf: true,
+ },
+ shortcut: {
+ label: ' Shortcut',
+ value: 'C',
+ isLeaf: true,
+ },
+ createdAt: {
+ label: ' Created At',
+ value: '2025-03-05T15:41:09.390Z',
+ isLeaf: true,
+ },
+ updatedAt: {
+ label: ' Updated At',
+ value: '2025-03-05T15:41:09.390Z',
+ isLeaf: true,
+ },
+ namePlural: {
+ label: ' Name Plural',
+ value: 'companies',
+ isLeaf: true,
+ },
+ standardId: {
+ label: ' Standard Id',
+ value: '20202020-b374-4779-a561-80086cb2e17f',
+ isLeaf: true,
+ },
+ description: {
+ label: ' Description',
+ value: 'A company',
+ isLeaf: true,
+ },
+ labelPlural: {
+ label: ' Label Plural',
+ value: 'Companies',
+ isLeaf: true,
+ },
+ workspaceId: {
+ label: ' Workspace Id',
+ value: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ isLeaf: true,
+ },
+ dataSourceId: {
+ label: ' Data Source Id',
+ value: 'f20df2e6-420e-40e0-a4ca-68846bbe6c92',
+ isLeaf: true,
+ },
+ isSearchable: {
+ label: ' Is Searchable',
+ value: true,
+ isLeaf: true,
+ },
+ nameSingular: {
+ label: ' Name Singular',
+ value: 'company',
+ isLeaf: true,
+ },
+ isAuditLogged: {
+ label: ' Is Audit Logged',
+ value: true,
+ isLeaf: true,
+ },
+ labelSingular: {
+ label: ' Label Singular',
+ value: 'Company',
+ isLeaf: true,
+ },
+ targetTableName: {
+ label: ' Target Table Name',
+ value: 'DEPRECATED',
+ isLeaf: true,
+ },
+ duplicateCriteria: {
+ label: ' Duplicate Criteria',
+ value: [['name'], ['domainNamePrimaryLinkUrl']],
+ isLeaf: true,
+ },
+ isLabelSyncedWithName: {
+ label: ' Is Label Synced With Name',
+ value: false,
+ isLeaf: true,
+ },
+ imageIdentifierFieldMetadataId: {
+ label: ' Image Identifier Field Metadata Id',
+ value: null,
+ isLeaf: true,
+ },
+ labelIdentifierFieldMetadataId: {
+ label: ' Label Identifier Field Metadata Id',
+ value: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ 'properties.after': {
+ label: 'Record Fields',
+ value: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ name: {
+ icon: 'IconBuildingSkyscraper',
+ type: 'TEXT',
+ label: 'Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ xLink: {
+ icon: 'IconBrandX',
+ label: 'X',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ address: {
+ icon: 'IconMap',
+ label: 'Address',
+ value: {
+ addressLat: {
+ type: 'NUMERIC',
+ label: ' Address Lat',
+ value: null,
+ isLeaf: true,
+ },
+ addressLng: {
+ type: 'NUMERIC',
+ label: ' Address Lng',
+ value: null,
+ isLeaf: true,
+ },
+ addressCity: {
+ type: 'TEXT',
+ label: ' Address City',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressState: {
+ type: 'TEXT',
+ label: ' Address State',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressCountry: {
+ type: 'TEXT',
+ label: ' Address Country',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressStreet1: {
+ type: 'TEXT',
+ label: ' Address Street1',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressStreet2: {
+ type: 'TEXT',
+ label: ' Address Street2',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressPostcode: {
+ type: 'TEXT',
+ label: ' Address Postcode',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ tagline: {
+ icon: 'IconAdCircle',
+ type: 'TEXT',
+ label: 'Tagline',
+ value: 'My text',
+ isLeaf: true,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ employees: {
+ icon: 'IconUsers',
+ type: 'NUMBER',
+ label: 'Employees',
+ value: 20,
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ domainName: {
+ icon: 'IconLink',
+ label: 'Domain Name',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ introVideo: {
+ icon: 'IconVideo',
+ label: 'Intro Video',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ workPolicy: {
+ icon: 'IconHome',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ value: null,
+ isLeaf: true,
+ },
+ linkedinLink: {
+ icon: 'IconBrandLinkedin',
+ label: 'Linkedin',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ visaSponsorship: {
+ icon: 'IconBrandVisa',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ value: true,
+ isLeaf: true,
+ },
+ idealCustomerProfile: {
+ icon: 'IconTarget',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ value: true,
+ isLeaf: true,
+ },
+ annualRecurringRevenue: {
+ icon: 'IconMoneybag',
+ label: 'ARR',
+ value: {
+ amountMicros: {
+ type: 'NUMERIC',
+ label: ' Amount Micros',
+ value: null,
+ isLeaf: true,
+ },
+ currencyCode: {
+ type: 'TEXT',
+ label: ' Currency Code',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ },
+ object: {
+ icon: 'IconBuildingSkyscraper',
+ label: 'Company',
+ value: 'A company',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'company',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ isLeaf: false,
+ },
+ workspaceMemberId: {
+ type: 'string',
+ label: 'Workspace Member ID',
+ value: '53562519-b9e8-44f1-8dd1-e247cc7ef584',
+ isLeaf: true,
+ },
+ },
+ },
+ },
+ updatedAt: '2025-03-06T11:52:37.081Z',
+ workflowId: 'f355201d-b1b5-4467-94b9-2a9da4202979',
+ },
+ workflow: {
+ __typename: 'Workflow',
+ createdAt: '2025-03-05T15:43:13.971Z',
+ deletedAt: null,
+ id: 'f355201d-b1b5-4467-94b9-2a9da4202979',
+ lastPublishedVersionId: 'f3a93101-bc3a-4b5e-9e42-22d0ef5db23b',
+ name: 'Test Workflow',
+ position: 1,
+ statuses: ['ACTIVE'],
+ updatedAt: '2025-03-06T11:52:37.083Z',
+ createdBy: {
+ __typename: 'Actor',
+ source: 'MANUAL',
+ workspaceMemberId: '20202020-0687-4c41-b707-ed1bfca972a7',
+ name: 'Tim Apple',
+ context: {},
+ },
+ },
+ },
+} satisfies { workflowRun: WorkflowRun };
+
+export const oneSucceededWorkflowRunQueryResult = {
+ workflowRun: {
+ __typename: 'WorkflowRun',
+ context: {
+ trigger: {
+ userId: '20202020-9e3b-46d4-a556-88b9ddc2b034',
+ recordId: '6bba55b1-6be2-49d3-adcd-470a56547c73',
+ properties: {
+ after: {
+ id: '6bba55b1-6be2-49d3-adcd-470a56547c73',
+ name: '',
+ xLink: {
+ primaryLinkUrl: '',
+ secondaryLinks: [],
+ primaryLinkLabel: '',
+ },
+ people: [],
+ address: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: '',
+ addressState: '',
+ addressCountry: '',
+ addressStreet1: '',
+ addressStreet2: '',
+ addressPostcode: '',
+ },
+ tagline: '',
+ position: -3,
+ createdAt: '2025-03-06T12:15:43.288Z',
+ createdBy: {
+ name: 'Tim Apple',
+ source: 'MANUAL',
+ context: {},
+ workspaceMemberId: '20202020-0687-4c41-b707-ed1bfca972a7',
+ },
+ deletedAt: null,
+ employees: null,
+ favorites: [],
+ updatedAt: '2025-03-06T12:15:43.288Z',
+ domainName: {
+ primaryLinkUrl: '',
+ secondaryLinks: [],
+ primaryLinkLabel: '',
+ },
+ introVideo: {
+ primaryLinkUrl: '',
+ secondaryLinks: [],
+ primaryLinkLabel: '',
+ },
+ workPolicy: null,
+ attachments: [],
+ noteTargets: [],
+ accountOwner: null,
+ linkedinLink: {
+ primaryLinkUrl: '',
+ secondaryLinks: [],
+ primaryLinkLabel: '',
+ },
+ searchVector: '',
+ opportunities: [],
+ accountOwnerId: null,
+ visaSponsorship: false,
+ idealCustomerProfile: false,
+ annualRecurringRevenue: {
+ amountMicros: null,
+ currencyCode: '',
+ },
+ },
+ before: null,
+ },
+ objectMetadata: {
+ id: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ icon: 'IconBuildingSkyscraper',
+ fields: [
+ {
+ id: '5fc216dc-7af4-4927-a026-0e5144afa436',
+ icon: 'IconBrandX',
+ name: 'xLink',
+ type: 'LINKS',
+ label: 'X',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-6f64-4fd9-9580-9c1991c7d8c3',
+ description: 'The company Twitter/X account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'fba56220-3f40-4569-a500-35a4a312e473',
+ icon: 'IconMoneybag',
+ name: 'annualRecurringRevenue',
+ type: 'CURRENCY',
+ label: 'ARR',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-602a-495c-9776-f5d5b11d227b',
+ description:
+ 'Annual Recurring Revenue: The actual or estimated annual revenue of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ amountMicros: null,
+ currencyCode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0b32256a-1bd2-40e1-98e0-74b400452aab',
+ icon: 'IconMap',
+ name: 'address',
+ type: 'ADDRESS',
+ label: 'Address',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c5ce-4adc-b7b6-9c0979fc55e7',
+ description: 'Address of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: "''",
+ addressState: "''",
+ addressCountry: "''",
+ addressStreet1: "''",
+ addressStreet2: "''",
+ addressPostcode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '214a5118-3ab5-4d2a-ac89-020f776831b3',
+ icon: 'IconTarget',
+ name: 'idealCustomerProfile',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-ba6b-438a-8213-2c5ba28d76a2',
+ description:
+ 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4',
+ icon: 'IconHierarchy2',
+ name: 'position',
+ type: 'POSITION',
+ label: 'Position',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-9b4e-462b-991d-a0ee33326454',
+ description: 'Company record position',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 0,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '943f218e-6061-4f61-ac3a-298ac14cef41',
+ icon: 'IconCreativeCommonsSa',
+ name: 'createdBy',
+ type: 'ACTOR',
+ label: 'Created by',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-fabc-451d-ab7d-412170916baa',
+ description: 'The creator of the record',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ name: "'System'",
+ source: "'MANUAL'",
+ context: {},
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ icon: 'IconUser',
+ name: 'searchVector',
+ type: 'TS_VECTOR',
+ label: 'Search vector',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '85c71601-72f9-4b7b-b343-d46100b2c74d',
+ description: 'Field used for full-text search',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '593dd556-69ab-4df7-aa2e-ab5e20eb7977',
+ icon: 'Icon123',
+ name: 'id',
+ type: 'UUID',
+ label: 'Id',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-eda0-4cee-9577-3eb357e3c22b',
+ description: 'Id',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'uuid',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4ebb7bb9-d451-4433-880d-32cd3f3744df',
+ icon: 'IconCalendar',
+ name: 'createdAt',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-66ac-4502-9975-e4d959c50311',
+ description: 'Creation date',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '39526b16-7d21-4a91-a70c-bca108b27989',
+ icon: 'IconCalendarClock',
+ name: 'updatedAt',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-d767-4622-bdcf-d8a084834d86',
+ description: 'Last time the record was changed',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ icon: 'IconCalendarMinus',
+ name: 'deletedAt',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-b9a7-48d8-8387-b9a3090a50ec',
+ description: 'Date when the record was deleted',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ icon: 'IconUsers',
+ name: 'people',
+ type: 'RELATION',
+ label: 'People',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-3213-4ddf-9494-6422bcff8d7c',
+ description: 'People linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '427d1095-8ac0-4854-bf85-2adff18b653e',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: 'd25fcd48-4b3f-4d6a-b1c0-4241d64502ac',
+ toObjectMetadataId: '462ac013-3ba0-4e87-b6a3-07069c308ca3',
+ fromFieldMetadataId: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ icon: 'IconUserCircle',
+ name: 'accountOwnerId',
+ type: 'UUID',
+ label: 'Account Owner id (foreign key)',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cce0-424e-8028-91f50eb9c768',
+ description:
+ 'Your team member responsible for managing the company account id foreign key',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ icon: 'IconUserCircle',
+ name: 'accountOwner',
+ type: 'RELATION',
+ label: 'Account Owner',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-95b8-4e10-9881-edb5d4765f9d',
+ description:
+ 'Your team member responsible for managing the company account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: {
+ id: '9ca11143-4ae4-4ed4-b636-158bc14d9513',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ toObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ fromFieldMetadataId: '58a6c41e-9ff0-4607-be3a-4356175b75dc',
+ fromObjectMetadataId: '82dd61be-d849-41c2-b7c2-6a8ddb796e3e',
+ },
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ icon: 'IconCheckbox',
+ name: 'taskTargets',
+ type: 'RELATION',
+ label: 'Tasks',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cb17-4a61-8f8f-3be6730480de',
+ description: 'Tasks tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '40a2f0d1-f420-46a2-a010-2489e7f27a9d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e3ee1c65-5ec0-4d68-aac4-6c66720240f0',
+ toObjectMetadataId: '3e31c837-b0f0-4e8e-a1e3-28d3b12950f4',
+ fromFieldMetadataId: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ icon: 'IconNotes',
+ name: 'noteTargets',
+ type: 'RELATION',
+ label: 'Notes',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-bae0-4556-a74a-a9c686f77a88',
+ description: 'Notes tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'b240e206-e8ba-496a-9671-063ad48a447d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '5c582b90-c1d4-4ebe-bd66-3cc94e4abd35',
+ toObjectMetadataId: 'b58841d9-7545-41b7-bb84-75e821285933',
+ fromFieldMetadataId: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ icon: 'IconTargetArrow',
+ name: 'opportunities',
+ type: 'RELATION',
+ label: 'Opportunities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-add3-4658-8e23-d70dccb6d0ec',
+ description: 'Opportunities linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '889b83fc-9a5e-414c-acb6-48e5aa029394',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '2a12de2d-3c43-4108-bd0a-f52b053e2449',
+ toObjectMetadataId: 'da77d279-8984-4cb1-987a-14e2b0501288',
+ fromFieldMetadataId: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ icon: 'IconHeart',
+ name: 'favorites',
+ type: 'RELATION',
+ label: 'Favorites',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-4d1d-41ac-b13b-621631298d55',
+ description: 'Favorites linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '2163bf40-3b55-4bf9-bb59-968b8eda9114',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '3f34086f-ad66-4e1d-9d4b-f42cdc0f2040',
+ toObjectMetadataId: '323f077c-138b-4243-bbf2-59a77252f3c5',
+ fromFieldMetadataId: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ icon: 'IconFileImport',
+ name: 'attachments',
+ type: 'RELATION',
+ label: 'Attachments',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c1b5-4120-b0f0-987ca401ed53',
+ description: 'Attachments linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'a2c6a4d7-fbda-4075-9fec-0a96ee07953a',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e907c0a6-3e66-45a4-9922-8bc4d5bf5208',
+ toObjectMetadataId: 'f85c3930-9919-4887-b950-2e0496597c58',
+ fromFieldMetadataId: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ icon: 'IconIconTimelineEvent',
+ name: 'timelineActivities',
+ type: 'RELATION',
+ label: 'Timeline Activities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-0414-4daf-9c0d-64fe7b27f89f',
+ description: 'Timeline Activities linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '29a10f41-0265-4775-923f-0bbf548dc2ec',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '96896f47-cb02-4164-b3f2-c24d12b30e74',
+ toObjectMetadataId: '1a41f4ba-7aad-4111-8035-961962702ebb',
+ fromFieldMetadataId: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4f069436-1c42-4ec4-8dda-6b22011fc75a',
+ icon: 'IconAdCircle',
+ name: 'tagline',
+ type: 'TEXT',
+ label: 'Tagline',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.009Z',
+ updatedAt: '2025-03-05T15:41:12.009Z',
+ isNullable: false,
+ standardId: null,
+ description: "Company's Tagline",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '49e40a03-3f21-49d5-b03a-439bbc9ab73b',
+ icon: 'IconVideo',
+ name: 'introVideo',
+ type: 'LINKS',
+ label: 'Intro Video',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.011Z',
+ updatedAt: '2025-03-05T15:41:12.011Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Intro Video",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8a2883df-3e19-4d52-9309-d636767d1b6a',
+ icon: 'IconHome',
+ name: 'workPolicy',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ options: [
+ {
+ id: '4554330a-c3db-4042-b941-c2e299734d12',
+ color: 'green',
+ label: 'On-Site',
+ value: 'ON_SITE',
+ position: 0,
+ },
+ {
+ id: 'abfde6f9-64d5-430a-adb3-bea2f403d9a4',
+ color: 'turquoise',
+ label: 'Hybrid',
+ value: 'HYBRID',
+ position: 1,
+ },
+ {
+ id: '8eaca902-05c5-4087-86c0-30c664c2c4f5',
+ color: 'sky',
+ label: 'Remote Work',
+ value: 'REMOTE_WORK',
+ position: 2,
+ },
+ ],
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.013Z',
+ updatedAt: '2025-03-05T15:41:12.013Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Work Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '26a67635-7d43-47f0-b895-1c8194a7fa30',
+ icon: 'IconBrandVisa',
+ name: 'visaSponsorship',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.014Z',
+ updatedAt: '2025-03-05T15:41:12.014Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Visa Sponsorship Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ icon: 'IconBuildingSkyscraper',
+ name: 'name',
+ type: 'TEXT',
+ label: 'Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-4d99-4e2e-a84c-4a27837b1ece',
+ description: 'The company name',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ icon: 'IconLink',
+ name: 'domainName',
+ type: 'LINKS',
+ label: 'Domain Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: true,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-0c28-43d8-8ba5-3659924d3489',
+ description:
+ 'The company website URL. We use this url to fetch the company icon',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c750e2c6-3de6-4c18-9876-6ba5ba970d42',
+ icon: 'IconUsers',
+ name: 'employees',
+ type: 'NUMBER',
+ label: 'Employees',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-8965-464a-8a75-74bafc152a0b',
+ description: 'Number of employees in the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa',
+ icon: 'IconBrandLinkedin',
+ name: 'linkedinLink',
+ type: 'LINKS',
+ label: 'Linkedin',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-ebeb-4beb-b9ad-6848036fb451',
+ description: 'The company Linkedin account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ ],
+ isActive: true,
+ isCustom: false,
+ isRemote: false,
+ isSystem: false,
+ shortcut: 'C',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ fieldsById: {
+ '038ca1af-7f15-460d-b111-b71062a8a6be': {
+ id: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ icon: 'IconIconTimelineEvent',
+ name: 'timelineActivities',
+ type: 'RELATION',
+ label: 'Timeline Activities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-0414-4daf-9c0d-64fe7b27f89f',
+ description: 'Timeline Activities linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '29a10f41-0265-4775-923f-0bbf548dc2ec',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '96896f47-cb02-4164-b3f2-c24d12b30e74',
+ toObjectMetadataId: '1a41f4ba-7aad-4111-8035-961962702ebb',
+ fromFieldMetadataId: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '0ae7a621-f443-47f7-b255-82d2e589ca21': {
+ id: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ icon: 'IconFileImport',
+ name: 'attachments',
+ type: 'RELATION',
+ label: 'Attachments',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c1b5-4120-b0f0-987ca401ed53',
+ description: 'Attachments linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'a2c6a4d7-fbda-4075-9fec-0a96ee07953a',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e907c0a6-3e66-45a4-9922-8bc4d5bf5208',
+ toObjectMetadataId: 'f85c3930-9919-4887-b950-2e0496597c58',
+ fromFieldMetadataId: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '0b32256a-1bd2-40e1-98e0-74b400452aab': {
+ id: '0b32256a-1bd2-40e1-98e0-74b400452aab',
+ icon: 'IconMap',
+ name: 'address',
+ type: 'ADDRESS',
+ label: 'Address',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c5ce-4adc-b7b6-9c0979fc55e7',
+ description: 'Address of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: "''",
+ addressState: "''",
+ addressCountry: "''",
+ addressStreet1: "''",
+ addressStreet2: "''",
+ addressPostcode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '11a04849-150b-4af0-9332-b4a9ba693b17': {
+ id: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ icon: 'IconUsers',
+ name: 'people',
+ type: 'RELATION',
+ label: 'People',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-3213-4ddf-9494-6422bcff8d7c',
+ description: 'People linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '427d1095-8ac0-4854-bf85-2adff18b653e',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: 'd25fcd48-4b3f-4d6a-b1c0-4241d64502ac',
+ toObjectMetadataId: '462ac013-3ba0-4e87-b6a3-07069c308ca3',
+ fromFieldMetadataId: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a': {
+ id: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ icon: 'IconUserCircle',
+ name: 'accountOwner',
+ type: 'RELATION',
+ label: 'Account Owner',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-95b8-4e10-9881-edb5d4765f9d',
+ description:
+ 'Your team member responsible for managing the company account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: {
+ id: '9ca11143-4ae4-4ed4-b636-158bc14d9513',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ toObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ fromFieldMetadataId: '58a6c41e-9ff0-4607-be3a-4356175b75dc',
+ fromObjectMetadataId: '82dd61be-d849-41c2-b7c2-6a8ddb796e3e',
+ },
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '214a5118-3ab5-4d2a-ac89-020f776831b3': {
+ id: '214a5118-3ab5-4d2a-ac89-020f776831b3',
+ icon: 'IconTarget',
+ name: 'idealCustomerProfile',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-ba6b-438a-8213-2c5ba28d76a2',
+ description:
+ 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '26a67635-7d43-47f0-b895-1c8194a7fa30': {
+ id: '26a67635-7d43-47f0-b895-1c8194a7fa30',
+ icon: 'IconBrandVisa',
+ name: 'visaSponsorship',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.014Z',
+ updatedAt: '2025-03-05T15:41:12.014Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Visa Sponsorship Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '39526b16-7d21-4a91-a70c-bca108b27989': {
+ id: '39526b16-7d21-4a91-a70c-bca108b27989',
+ icon: 'IconCalendarClock',
+ name: 'updatedAt',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-d767-4622-bdcf-d8a084834d86',
+ description: 'Last time the record was changed',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '45b5decf-cd19-4a2e-a321-b0c7ad3c1407': {
+ id: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ icon: 'IconHeart',
+ name: 'favorites',
+ type: 'RELATION',
+ label: 'Favorites',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-4d1d-41ac-b13b-621631298d55',
+ description: 'Favorites linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '2163bf40-3b55-4bf9-bb59-968b8eda9114',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '3f34086f-ad66-4e1d-9d4b-f42cdc0f2040',
+ toObjectMetadataId: '323f077c-138b-4243-bbf2-59a77252f3c5',
+ fromFieldMetadataId: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '49e40a03-3f21-49d5-b03a-439bbc9ab73b': {
+ id: '49e40a03-3f21-49d5-b03a-439bbc9ab73b',
+ icon: 'IconVideo',
+ name: 'introVideo',
+ type: 'LINKS',
+ label: 'Intro Video',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.011Z',
+ updatedAt: '2025-03-05T15:41:12.011Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Intro Video",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '4ebb7bb9-d451-4433-880d-32cd3f3744df': {
+ id: '4ebb7bb9-d451-4433-880d-32cd3f3744df',
+ icon: 'IconCalendar',
+ name: 'createdAt',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-66ac-4502-9975-e4d959c50311',
+ description: 'Creation date',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '4f069436-1c42-4ec4-8dda-6b22011fc75a': {
+ id: '4f069436-1c42-4ec4-8dda-6b22011fc75a',
+ icon: 'IconAdCircle',
+ name: 'tagline',
+ type: 'TEXT',
+ label: 'Tagline',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.009Z',
+ updatedAt: '2025-03-05T15:41:12.009Z',
+ isNullable: false,
+ standardId: null,
+ description: "Company's Tagline",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '55e17b77-84f7-4b8a-bef5-be65f783d9f8': {
+ id: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ icon: 'IconCalendarMinus',
+ name: 'deletedAt',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-b9a7-48d8-8387-b9a3090a50ec',
+ description: 'Date when the record was deleted',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '593dd556-69ab-4df7-aa2e-ab5e20eb7977': {
+ id: '593dd556-69ab-4df7-aa2e-ab5e20eb7977',
+ icon: 'Icon123',
+ name: 'id',
+ type: 'UUID',
+ label: 'Id',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-eda0-4cee-9577-3eb357e3c22b',
+ description: 'Id',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'uuid',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '5fc216dc-7af4-4927-a026-0e5144afa436': {
+ id: '5fc216dc-7af4-4927-a026-0e5144afa436',
+ icon: 'IconBrandX',
+ name: 'xLink',
+ type: 'LINKS',
+ label: 'X',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-6f64-4fd9-9580-9c1991c7d8c3',
+ description: 'The company Twitter/X account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '7524cc63-2522-4c70-8b12-21fe2fe8de26': {
+ id: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ icon: 'IconTargetArrow',
+ name: 'opportunities',
+ type: 'RELATION',
+ label: 'Opportunities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-add3-4658-8e23-d70dccb6d0ec',
+ description: 'Opportunities linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '889b83fc-9a5e-414c-acb6-48e5aa029394',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '2a12de2d-3c43-4108-bd0a-f52b053e2449',
+ toObjectMetadataId: 'da77d279-8984-4cb1-987a-14e2b0501288',
+ fromFieldMetadataId: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '7dd1b1ac-9765-423e-ac74-050b2b730885': {
+ id: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ icon: 'IconNotes',
+ name: 'noteTargets',
+ type: 'RELATION',
+ label: 'Notes',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-bae0-4556-a74a-a9c686f77a88',
+ description: 'Notes tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'b240e206-e8ba-496a-9671-063ad48a447d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '5c582b90-c1d4-4ebe-bd66-3cc94e4abd35',
+ toObjectMetadataId: 'b58841d9-7545-41b7-bb84-75e821285933',
+ fromFieldMetadataId: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '8a2883df-3e19-4d52-9309-d636767d1b6a': {
+ id: '8a2883df-3e19-4d52-9309-d636767d1b6a',
+ icon: 'IconHome',
+ name: 'workPolicy',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ options: [
+ {
+ id: '4554330a-c3db-4042-b941-c2e299734d12',
+ color: 'green',
+ label: 'On-Site',
+ value: 'ON_SITE',
+ position: 0,
+ },
+ {
+ id: 'abfde6f9-64d5-430a-adb3-bea2f403d9a4',
+ color: 'turquoise',
+ label: 'Hybrid',
+ value: 'HYBRID',
+ position: 1,
+ },
+ {
+ id: '8eaca902-05c5-4087-86c0-30c664c2c4f5',
+ color: 'sky',
+ label: 'Remote Work',
+ value: 'REMOTE_WORK',
+ position: 2,
+ },
+ ],
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.013Z',
+ updatedAt: '2025-03-05T15:41:12.013Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Work Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03': {
+ id: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ icon: 'IconUser',
+ name: 'searchVector',
+ type: 'TS_VECTOR',
+ label: 'Search vector',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '85c71601-72f9-4b7b-b343-d46100b2c74d',
+ description: 'Field used for full-text search',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ '943f218e-6061-4f61-ac3a-298ac14cef41': {
+ id: '943f218e-6061-4f61-ac3a-298ac14cef41',
+ icon: 'IconCreativeCommonsSa',
+ name: 'createdBy',
+ type: 'ACTOR',
+ label: 'Created by',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-fabc-451d-ab7d-412170916baa',
+ description: 'The creator of the record',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ name: "'System'",
+ source: "'MANUAL'",
+ context: {},
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa': {
+ id: 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa',
+ icon: 'IconBrandLinkedin',
+ name: 'linkedinLink',
+ type: 'LINKS',
+ label: 'Linkedin',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-ebeb-4beb-b9ad-6848036fb451',
+ description: 'The company Linkedin account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2': {
+ id: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ icon: 'IconUserCircle',
+ name: 'accountOwnerId',
+ type: 'UUID',
+ label: 'Account Owner id (foreign key)',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cce0-424e-8028-91f50eb9c768',
+ description:
+ 'Your team member responsible for managing the company account id foreign key',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4': {
+ id: 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4',
+ icon: 'IconHierarchy2',
+ name: 'position',
+ type: 'POSITION',
+ label: 'Position',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-9b4e-462b-991d-a0ee33326454',
+ description: 'Company record position',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 0,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07': {
+ id: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ icon: 'IconCheckbox',
+ name: 'taskTargets',
+ type: 'RELATION',
+ label: 'Tasks',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cb17-4a61-8f8f-3be6730480de',
+ description: 'Tasks tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '40a2f0d1-f420-46a2-a010-2489e7f27a9d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e3ee1c65-5ec0-4d68-aac4-6c66720240f0',
+ toObjectMetadataId: '3e31c837-b0f0-4e8e-a1e3-28d3b12950f4',
+ fromFieldMetadataId: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10': {
+ id: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ icon: 'IconBuildingSkyscraper',
+ name: 'name',
+ type: 'TEXT',
+ label: 'Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-4d99-4e2e-a84c-4a27837b1ece',
+ description: 'The company name',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'c750e2c6-3de6-4c18-9876-6ba5ba970d42': {
+ id: 'c750e2c6-3de6-4c18-9876-6ba5ba970d42',
+ icon: 'IconUsers',
+ name: 'employees',
+ type: 'NUMBER',
+ label: 'Employees',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-8965-464a-8a75-74bafc152a0b',
+ description: 'Number of employees in the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'dbc86e47-d2cf-4094-9a57-90212efde6a0': {
+ id: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ icon: 'IconLink',
+ name: 'domainName',
+ type: 'LINKS',
+ label: 'Domain Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: true,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-0c28-43d8-8ba5-3659924d3489',
+ description:
+ 'The company website URL. We use this url to fetch the company icon',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ 'fba56220-3f40-4569-a500-35a4a312e473': {
+ id: 'fba56220-3f40-4569-a500-35a4a312e473',
+ icon: 'IconMoneybag',
+ name: 'annualRecurringRevenue',
+ type: 'CURRENCY',
+ label: 'ARR',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-602a-495c-9776-f5d5b11d227b',
+ description:
+ 'Annual Recurring Revenue: The actual or estimated annual revenue of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ amountMicros: null,
+ currencyCode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ },
+ namePlural: 'companies',
+ standardId: '20202020-b374-4779-a561-80086cb2e17f',
+ description: 'A company',
+ labelPlural: 'Companies',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ dataSourceId: 'f20df2e6-420e-40e0-a4ca-68846bbe6c92',
+ fieldsByName: {
+ id: {
+ id: '593dd556-69ab-4df7-aa2e-ab5e20eb7977',
+ icon: 'Icon123',
+ name: 'id',
+ type: 'UUID',
+ label: 'Id',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-eda0-4cee-9577-3eb357e3c22b',
+ description: 'Id',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'uuid',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ name: {
+ id: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ icon: 'IconBuildingSkyscraper',
+ name: 'name',
+ type: 'TEXT',
+ label: 'Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-4d99-4e2e-a84c-4a27837b1ece',
+ description: 'The company name',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ xLink: {
+ id: '5fc216dc-7af4-4927-a026-0e5144afa436',
+ icon: 'IconBrandX',
+ name: 'xLink',
+ type: 'LINKS',
+ label: 'X',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-6f64-4fd9-9580-9c1991c7d8c3',
+ description: 'The company Twitter/X account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ people: {
+ id: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ icon: 'IconUsers',
+ name: 'people',
+ type: 'RELATION',
+ label: 'People',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-3213-4ddf-9494-6422bcff8d7c',
+ description: 'People linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '427d1095-8ac0-4854-bf85-2adff18b653e',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: 'd25fcd48-4b3f-4d6a-b1c0-4241d64502ac',
+ toObjectMetadataId: '462ac013-3ba0-4e87-b6a3-07069c308ca3',
+ fromFieldMetadataId: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ address: {
+ id: '0b32256a-1bd2-40e1-98e0-74b400452aab',
+ icon: 'IconMap',
+ name: 'address',
+ type: 'ADDRESS',
+ label: 'Address',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c5ce-4adc-b7b6-9c0979fc55e7',
+ description: 'Address of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: "''",
+ addressState: "''",
+ addressCountry: "''",
+ addressStreet1: "''",
+ addressStreet2: "''",
+ addressPostcode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ tagline: {
+ id: '4f069436-1c42-4ec4-8dda-6b22011fc75a',
+ icon: 'IconAdCircle',
+ name: 'tagline',
+ type: 'TEXT',
+ label: 'Tagline',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.009Z',
+ updatedAt: '2025-03-05T15:41:12.009Z',
+ isNullable: false,
+ standardId: null,
+ description: "Company's Tagline",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ position: {
+ id: 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4',
+ icon: 'IconHierarchy2',
+ name: 'position',
+ type: 'POSITION',
+ label: 'Position',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-9b4e-462b-991d-a0ee33326454',
+ description: 'Company record position',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 0,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ createdAt: {
+ id: '4ebb7bb9-d451-4433-880d-32cd3f3744df',
+ icon: 'IconCalendar',
+ name: 'createdAt',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-66ac-4502-9975-e4d959c50311',
+ description: 'Creation date',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ createdBy: {
+ id: '943f218e-6061-4f61-ac3a-298ac14cef41',
+ icon: 'IconCreativeCommonsSa',
+ name: 'createdBy',
+ type: 'ACTOR',
+ label: 'Created by',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-fabc-451d-ab7d-412170916baa',
+ description: 'The creator of the record',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ name: "'System'",
+ source: "'MANUAL'",
+ context: {},
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ deletedAt: {
+ id: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ icon: 'IconCalendarMinus',
+ name: 'deletedAt',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-b9a7-48d8-8387-b9a3090a50ec',
+ description: 'Date when the record was deleted',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ employees: {
+ id: 'c750e2c6-3de6-4c18-9876-6ba5ba970d42',
+ icon: 'IconUsers',
+ name: 'employees',
+ type: 'NUMBER',
+ label: 'Employees',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-8965-464a-8a75-74bafc152a0b',
+ description: 'Number of employees in the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ favorites: {
+ id: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ icon: 'IconHeart',
+ name: 'favorites',
+ type: 'RELATION',
+ label: 'Favorites',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-4d1d-41ac-b13b-621631298d55',
+ description: 'Favorites linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '2163bf40-3b55-4bf9-bb59-968b8eda9114',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '3f34086f-ad66-4e1d-9d4b-f42cdc0f2040',
+ toObjectMetadataId: '323f077c-138b-4243-bbf2-59a77252f3c5',
+ fromFieldMetadataId: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ updatedAt: {
+ id: '39526b16-7d21-4a91-a70c-bca108b27989',
+ icon: 'IconCalendarClock',
+ name: 'updatedAt',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-d767-4622-bdcf-d8a084834d86',
+ description: 'Last time the record was changed',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ domainName: {
+ id: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ icon: 'IconLink',
+ name: 'domainName',
+ type: 'LINKS',
+ label: 'Domain Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: true,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-0c28-43d8-8ba5-3659924d3489',
+ description:
+ 'The company website URL. We use this url to fetch the company icon',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ introVideo: {
+ id: '49e40a03-3f21-49d5-b03a-439bbc9ab73b',
+ icon: 'IconVideo',
+ name: 'introVideo',
+ type: 'LINKS',
+ label: 'Intro Video',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.011Z',
+ updatedAt: '2025-03-05T15:41:12.011Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Intro Video",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ workPolicy: {
+ id: '8a2883df-3e19-4d52-9309-d636767d1b6a',
+ icon: 'IconHome',
+ name: 'workPolicy',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ options: [
+ {
+ id: '4554330a-c3db-4042-b941-c2e299734d12',
+ color: 'green',
+ label: 'On-Site',
+ value: 'ON_SITE',
+ position: 0,
+ },
+ {
+ id: 'abfde6f9-64d5-430a-adb3-bea2f403d9a4',
+ color: 'turquoise',
+ label: 'Hybrid',
+ value: 'HYBRID',
+ position: 1,
+ },
+ {
+ id: '8eaca902-05c5-4087-86c0-30c664c2c4f5',
+ color: 'sky',
+ label: 'Remote Work',
+ value: 'REMOTE_WORK',
+ position: 2,
+ },
+ ],
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.013Z',
+ updatedAt: '2025-03-05T15:41:12.013Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Work Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ attachments: {
+ id: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ icon: 'IconFileImport',
+ name: 'attachments',
+ type: 'RELATION',
+ label: 'Attachments',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c1b5-4120-b0f0-987ca401ed53',
+ description: 'Attachments linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'a2c6a4d7-fbda-4075-9fec-0a96ee07953a',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e907c0a6-3e66-45a4-9922-8bc4d5bf5208',
+ toObjectMetadataId: 'f85c3930-9919-4887-b950-2e0496597c58',
+ fromFieldMetadataId: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ noteTargets: {
+ id: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ icon: 'IconNotes',
+ name: 'noteTargets',
+ type: 'RELATION',
+ label: 'Notes',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-bae0-4556-a74a-a9c686f77a88',
+ description: 'Notes tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: 'b240e206-e8ba-496a-9671-063ad48a447d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '5c582b90-c1d4-4ebe-bd66-3cc94e4abd35',
+ toObjectMetadataId: 'b58841d9-7545-41b7-bb84-75e821285933',
+ fromFieldMetadataId: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ taskTargets: {
+ id: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ icon: 'IconCheckbox',
+ name: 'taskTargets',
+ type: 'RELATION',
+ label: 'Tasks',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cb17-4a61-8f8f-3be6730480de',
+ description: 'Tasks tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '40a2f0d1-f420-46a2-a010-2489e7f27a9d',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: 'e3ee1c65-5ec0-4d68-aac4-6c66720240f0',
+ toObjectMetadataId: '3e31c837-b0f0-4e8e-a1e3-28d3b12950f4',
+ fromFieldMetadataId: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ accountOwner: {
+ id: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ icon: 'IconUserCircle',
+ name: 'accountOwner',
+ type: 'RELATION',
+ label: 'Account Owner',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-95b8-4e10-9881-edb5d4765f9d',
+ description:
+ 'Your team member responsible for managing the company account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: {
+ id: '9ca11143-4ae4-4ed4-b636-158bc14d9513',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ toObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ fromFieldMetadataId: '58a6c41e-9ff0-4607-be3a-4356175b75dc',
+ fromObjectMetadataId: '82dd61be-d849-41c2-b7c2-6a8ddb796e3e',
+ },
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ linkedinLink: {
+ id: 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa',
+ icon: 'IconBrandLinkedin',
+ name: 'linkedinLink',
+ type: 'LINKS',
+ label: 'Linkedin',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-ebeb-4beb-b9ad-6848036fb451',
+ description: 'The company Linkedin account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ searchVector: {
+ id: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ icon: 'IconUser',
+ name: 'searchVector',
+ type: 'TS_VECTOR',
+ label: 'Search vector',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '85c71601-72f9-4b7b-b343-d46100b2c74d',
+ description: 'Field used for full-text search',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ opportunities: {
+ id: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ icon: 'IconTargetArrow',
+ name: 'opportunities',
+ type: 'RELATION',
+ label: 'Opportunities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-add3-4658-8e23-d70dccb6d0ec',
+ description: 'Opportunities linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '889b83fc-9a5e-414c-acb6-48e5aa029394',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'SET_NULL',
+ toFieldMetadataId: '2a12de2d-3c43-4108-bd0a-f52b053e2449',
+ toObjectMetadataId: 'da77d279-8984-4cb1-987a-14e2b0501288',
+ fromFieldMetadataId: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ accountOwnerId: {
+ id: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ icon: 'IconUserCircle',
+ name: 'accountOwnerId',
+ type: 'UUID',
+ label: 'Account Owner id (foreign key)',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cce0-424e-8028-91f50eb9c768',
+ description:
+ 'Your team member responsible for managing the company account id foreign key',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ visaSponsorship: {
+ id: '26a67635-7d43-47f0-b895-1c8194a7fa30',
+ icon: 'IconBrandVisa',
+ name: 'visaSponsorship',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.014Z',
+ updatedAt: '2025-03-05T15:41:12.014Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Visa Sponsorship Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ timelineActivities: {
+ id: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ icon: 'IconIconTimelineEvent',
+ name: 'timelineActivities',
+ type: 'RELATION',
+ label: 'Timeline Activities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-0414-4daf-9c0d-64fe7b27f89f',
+ description: 'Timeline Activities linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: {
+ id: '29a10f41-0265-4775-923f-0bbf548dc2ec',
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ relationType: 'ONE_TO_MANY',
+ onDeleteAction: 'CASCADE',
+ toFieldMetadataId: '96896f47-cb02-4164-b3f2-c24d12b30e74',
+ toObjectMetadataId: '1a41f4ba-7aad-4111-8035-961962702ebb',
+ fromFieldMetadataId: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ fromObjectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ },
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ idealCustomerProfile: {
+ id: '214a5118-3ab5-4d2a-ac89-020f776831b3',
+ icon: 'IconTarget',
+ name: 'idealCustomerProfile',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-ba6b-438a-8213-2c5ba28d76a2',
+ description:
+ 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ annualRecurringRevenue: {
+ id: 'fba56220-3f40-4569-a500-35a4a312e473',
+ icon: 'IconMoneybag',
+ name: 'annualRecurringRevenue',
+ type: 'CURRENCY',
+ label: 'ARR',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-602a-495c-9776-f5d5b11d227b',
+ description:
+ 'Annual Recurring Revenue: The actual or estimated annual revenue of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ amountMicros: null,
+ currencyCode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ toRelationMetadata: null,
+ fromRelationMetadata: null,
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ },
+ isSearchable: true,
+ nameSingular: 'company',
+ isAuditLogged: true,
+ labelSingular: 'Company',
+ indexMetadatas: [
+ {
+ id: '9d5ef0cf-a301-44bf-98dd-c839d363f8f6',
+ name: 'IDX_UNIQUE_2a32339058d0b6910b0834ddf81',
+ isCustom: false,
+ isUnique: true,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ indexType: 'BTREE',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ indexWhereClause: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ indexFieldMetadatas: [
+ {
+ id: '12f75acc-33fc-49ee-af8f-39d9e8f17c3d',
+ order: 0,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ fieldMetadataId: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ indexMetadataId: '9d5ef0cf-a301-44bf-98dd-c839d363f8f6',
+ },
+ ],
+ },
+ {
+ id: 'e554c7bb-c355-4594-a708-4ea4e7cbcbdc',
+ name: 'IDX_123501237187c835ede626367b7',
+ isCustom: false,
+ isUnique: false,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ indexType: 'BTREE',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ indexWhereClause: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ indexFieldMetadatas: [
+ {
+ id: 'cf3ebe8e-e213-4c4c-939f-d7fb36016823',
+ order: 0,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ fieldMetadataId: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ indexMetadataId: 'e554c7bb-c355-4594-a708-4ea4e7cbcbdc',
+ },
+ {
+ id: 'd2663353-c4a2-4787-98d1-6ad448a66d86',
+ order: 1,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ fieldMetadataId: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ indexMetadataId: 'e554c7bb-c355-4594-a708-4ea4e7cbcbdc',
+ },
+ ],
+ },
+ {
+ id: '48102f0b-0aef-4ae3-b3de-54e7c5bbdd1c',
+ name: 'IDX_fb1f4905546cfc6d70a971c76f7',
+ isCustom: false,
+ isUnique: false,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ indexType: 'GIN',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ indexWhereClause: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ indexFieldMetadatas: [
+ {
+ id: '5cd649b1-79b8-4b07-9c56-b70fe247954b',
+ order: 0,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ fieldMetadataId: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ indexMetadataId: '48102f0b-0aef-4ae3-b3de-54e7c5bbdd1c',
+ },
+ ],
+ },
+ ],
+ targetTableName: 'DEPRECATED',
+ duplicateCriteria: [['name'], ['domainNamePrimaryLinkUrl']],
+ isLabelSyncedWithName: false,
+ imageIdentifierFieldMetadataId: null,
+ labelIdentifierFieldMetadataId:
+ 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ },
+ },
+ '212a171a-f887-4213-8892-e39c2a3ecc30': {
+ userId: ['20202020', '9e3b', '46d4', 'a556', '88b9ddc2b034'],
+ },
+ '753b124e-f427-44a4-ab08-bacfe9c2f746': {
+ id: '0455ca41-bae1-4a3a-968c-b268a4e809bb',
+ body: null,
+ title: 'Proposal for ',
+ bodyV2: {
+ markdown: '',
+ blocknote: '',
+ },
+ position: 0,
+ createdAt: '2025-03-06T12:15:43.371Z',
+ createdBy: {
+ name: 'Workflow',
+ source: 'WORKFLOW',
+ context: {},
+ workspaceMemberId: null,
+ },
+ deletedAt: null,
+ updatedAt: '2025-03-06T12:15:43.371Z',
+ searchVector: "'for':2 'proposal':1",
+ },
+ 'a01b2953-9aa7-4d9a-aded-8e9bafbd6c30': {
+ date: '2025-03-06T12:15:43.358Z',
+ },
+ 'd4a73172-3156-45bf-bc49-9358fbab2907': {
+ id: 'f76b6058-2c8b-4bfa-86c1-4a4d39de3ee9',
+ name: 'Opportunity with ',
+ stage: 'NEW',
+ amount: {
+ amountMicros: null,
+ currencyCode: '',
+ },
+ position: 0,
+ closeDate: null,
+ companyId: null,
+ createdAt: '2025-03-06T12:15:43.386Z',
+ createdBy: {
+ name: 'Workflow',
+ source: 'WORKFLOW',
+ context: {},
+ workspaceMemberId: null,
+ },
+ deletedAt: null,
+ updatedAt: '2025-03-06T12:15:43.386Z',
+ searchVector: "'opportunity':1 'with':2",
+ pointOfContactId: null,
+ },
+ },
+ createdAt: '2025-03-06T12:15:43.316Z',
+ deletedAt: null,
+ endedAt: '2025-03-06T12:15:43.404Z',
+ id: 'cb13fb82-82e5-46b6-8a80-0f8251ac98ff',
+ name: 'Execution of v5',
+ output: {
+ flow: {
+ steps: [
+ {
+ id: '212a171a-f887-4213-8892-e39c2a3ecc30',
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId: 'e031ae6a-5b9e-496b-9a98-ba015f7b5508',
+ serverlessFunctionInput: {
+ userId: '{{trigger.userId}}',
+ },
+ serverlessFunctionVersion: '1',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: 'a01b2953-9aa7-4d9a-aded-8e9bafbd6c30',
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId: '605efcda-6689-43b3-b24c-2eb76948f523',
+ serverlessFunctionInput: {},
+ serverlessFunctionVersion: '2',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: '753b124e-f427-44a4-ab08-bacfe9c2f746',
+ name: 'Create Record',
+ type: 'CREATE_RECORD',
+ valid: false,
+ settings: {
+ input: {
+ objectName: 'note',
+ objectRecord: {
+ title: 'Proposal for {{trigger.properties.after.name}}',
+ },
+ },
+ outputSchema: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ body: {
+ icon: 'IconFilePencil',
+ type: 'RICH_TEXT',
+ label: 'Body (deprecated)',
+ value: 'My rich text',
+ isLeaf: true,
+ },
+ title: {
+ icon: 'IconNotes',
+ type: 'TEXT',
+ label: 'Title',
+ value: 'My text',
+ isLeaf: true,
+ },
+ bodyV2: {
+ icon: 'IconFilePencil',
+ label: 'Body',
+ value: {
+ markdown: {
+ type: 'TEXT',
+ label: ' Markdown',
+ value: 'My text',
+ isLeaf: true,
+ },
+ blocknote: {
+ type: 'TEXT',
+ label: ' Blocknote',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ },
+ object: {
+ icon: 'IconNotes',
+ label: 'Note',
+ value: 'A note',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'note',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: 'd4a73172-3156-45bf-bc49-9358fbab2907',
+ name: 'Create Record',
+ type: 'CREATE_RECORD',
+ valid: false,
+ settings: {
+ input: {
+ objectName: 'opportunity',
+ objectRecord: {
+ name: 'Opportunity with {{trigger.properties.after.name}}',
+ stage: 'NEW',
+ },
+ },
+ outputSchema: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ name: {
+ icon: 'IconTargetArrow',
+ type: 'TEXT',
+ label: 'Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ stage: {
+ icon: 'IconProgressCheck',
+ type: 'SELECT',
+ label: 'Stage',
+ value: null,
+ isLeaf: true,
+ },
+ amount: {
+ icon: 'IconCurrencyDollar',
+ label: 'Amount',
+ value: {
+ amountMicros: {
+ type: 'NUMERIC',
+ label: ' Amount Micros',
+ value: null,
+ isLeaf: true,
+ },
+ currencyCode: {
+ type: 'TEXT',
+ label: ' Currency Code',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ closeDate: {
+ icon: 'IconCalendarEvent',
+ type: 'DATE_TIME',
+ label: 'Close date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ },
+ object: {
+ icon: 'IconTargetArrow',
+ label: 'Opportunity',
+ value: 'An opportunity',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'opportunity',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ ],
+ trigger: {
+ type: 'DATABASE_EVENT',
+ settings: {
+ eventName: 'company.created',
+ outputSchema: {
+ userId: {
+ type: 'string',
+ label: 'User ID',
+ value: '977a8fb6-1b97-4203-a64b-5d3e12f8587c',
+ isLeaf: true,
+ },
+ recordId: {
+ type: 'string',
+ label: 'Record ID',
+ value: '80d61929-1860-4f37-a639-b406a67f7800',
+ isLeaf: true,
+ },
+ objectMetadata: {
+ label: 'Object Metadata',
+ value: {
+ id: {
+ label: ' Id',
+ value: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLeaf: true,
+ },
+ icon: {
+ label: ' Icon',
+ value: 'IconBuildingSkyscraper',
+ isLeaf: true,
+ },
+ fields: {
+ label: ' Fields',
+ value: [
+ {
+ id: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ icon: 'IconBuildingSkyscraper',
+ name: 'name',
+ type: 'TEXT',
+ label: 'Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-4d99-4e2e-a84c-4a27837b1ece',
+ description: 'The company name',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ icon: 'IconLink',
+ name: 'domainName',
+ type: 'LINKS',
+ label: 'Domain Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: true,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-0c28-43d8-8ba5-3659924d3489',
+ description:
+ 'The company website URL. We use this url to fetch the company icon',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c750e2c6-3de6-4c18-9876-6ba5ba970d42',
+ icon: 'IconUsers',
+ name: 'employees',
+ type: 'NUMBER',
+ label: 'Employees',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-8965-464a-8a75-74bafc152a0b',
+ description: 'Number of employees in the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa',
+ icon: 'IconBrandLinkedin',
+ name: 'linkedinLink',
+ type: 'LINKS',
+ label: 'Linkedin',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-ebeb-4beb-b9ad-6848036fb451',
+ description: 'The company Linkedin account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '5fc216dc-7af4-4927-a026-0e5144afa436',
+ icon: 'IconBrandX',
+ name: 'xLink',
+ type: 'LINKS',
+ label: 'X',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-6f64-4fd9-9580-9c1991c7d8c3',
+ description: 'The company Twitter/X account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'fba56220-3f40-4569-a500-35a4a312e473',
+ icon: 'IconMoneybag',
+ name: 'annualRecurringRevenue',
+ type: 'CURRENCY',
+ label: 'ARR',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-602a-495c-9776-f5d5b11d227b',
+ description:
+ 'Annual Recurring Revenue: The actual or estimated annual revenue of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ amountMicros: null,
+ currencyCode: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0b32256a-1bd2-40e1-98e0-74b400452aab',
+ icon: 'IconMap',
+ name: 'address',
+ type: 'ADDRESS',
+ label: 'Address',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c5ce-4adc-b7b6-9c0979fc55e7',
+ description: 'Address of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: "''",
+ addressState: "''",
+ addressCountry: "''",
+ addressStreet1: "''",
+ addressStreet2: "''",
+ addressPostcode: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '214a5118-3ab5-4d2a-ac89-020f776831b3',
+ icon: 'IconTarget',
+ name: 'idealCustomerProfile',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-ba6b-438a-8213-2c5ba28d76a2',
+ description:
+ 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4',
+ icon: 'IconHierarchy2',
+ name: 'position',
+ type: 'POSITION',
+ label: 'Position',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-9b4e-462b-991d-a0ee33326454',
+ description: 'Company record position',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 0,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '943f218e-6061-4f61-ac3a-298ac14cef41',
+ icon: 'IconCreativeCommonsSa',
+ name: 'createdBy',
+ type: 'ACTOR',
+ label: 'Created by',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-fabc-451d-ab7d-412170916baa',
+ description: 'The creator of the record',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ name: "'System'",
+ source: "'MANUAL'",
+ context: {},
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ icon: 'IconUser',
+ name: 'searchVector',
+ type: 'TS_VECTOR',
+ label: 'Search vector',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '85c71601-72f9-4b7b-b343-d46100b2c74d',
+ description: 'Field used for full-text search',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '593dd556-69ab-4df7-aa2e-ab5e20eb7977',
+ icon: 'Icon123',
+ name: 'id',
+ type: 'UUID',
+ label: 'Id',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-eda0-4cee-9577-3eb357e3c22b',
+ description: 'Id',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'uuid',
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4ebb7bb9-d451-4433-880d-32cd3f3744df',
+ icon: 'IconCalendar',
+ name: 'createdAt',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-66ac-4502-9975-e4d959c50311',
+ description: 'Creation date',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '39526b16-7d21-4a91-a70c-bca108b27989',
+ icon: 'IconCalendarClock',
+ name: 'updatedAt',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-d767-4622-bdcf-d8a084834d86',
+ description: 'Last time the record was changed',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ icon: 'IconCalendarMinus',
+ name: 'deletedAt',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-b9a7-48d8-8387-b9a3090a50ec',
+ description: 'Date when the record was deleted',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ icon: 'IconUsers',
+ name: 'people',
+ type: 'RELATION',
+ label: 'People',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-3213-4ddf-9494-6422bcff8d7c',
+ description: 'People linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ icon: 'IconUserCircle',
+ name: 'accountOwnerId',
+ type: 'UUID',
+ label: 'Account Owner id (foreign key)',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cce0-424e-8028-91f50eb9c768',
+ description:
+ 'Your team member responsible for managing the company account id foreign key',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ icon: 'IconUserCircle',
+ name: 'accountOwner',
+ type: 'RELATION',
+ label: 'Account Owner',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-95b8-4e10-9881-edb5d4765f9d',
+ description:
+ 'Your team member responsible for managing the company account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ icon: 'IconCheckbox',
+ name: 'taskTargets',
+ type: 'RELATION',
+ label: 'Tasks',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cb17-4a61-8f8f-3be6730480de',
+ description: 'Tasks tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ icon: 'IconNotes',
+ name: 'noteTargets',
+ type: 'RELATION',
+ label: 'Notes',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-bae0-4556-a74a-a9c686f77a88',
+ description: 'Notes tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ icon: 'IconTargetArrow',
+ name: 'opportunities',
+ type: 'RELATION',
+ label: 'Opportunities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-add3-4658-8e23-d70dccb6d0ec',
+ description: 'Opportunities linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ icon: 'IconHeart',
+ name: 'favorites',
+ type: 'RELATION',
+ label: 'Favorites',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-4d1d-41ac-b13b-621631298d55',
+ description: 'Favorites linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ icon: 'IconFileImport',
+ name: 'attachments',
+ type: 'RELATION',
+ label: 'Attachments',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c1b5-4120-b0f0-987ca401ed53',
+ description: 'Attachments linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ icon: 'IconIconTimelineEvent',
+ name: 'timelineActivities',
+ type: 'RELATION',
+ label: 'Timeline Activities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-0414-4daf-9c0d-64fe7b27f89f',
+ description:
+ 'Timeline Activities linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4f069436-1c42-4ec4-8dda-6b22011fc75a',
+ icon: 'IconAdCircle',
+ name: 'tagline',
+ type: 'TEXT',
+ label: 'Tagline',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.009Z',
+ updatedAt: '2025-03-05T15:41:12.009Z',
+ isNullable: false,
+ standardId: null,
+ description: "Company's Tagline",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '49e40a03-3f21-49d5-b03a-439bbc9ab73b',
+ icon: 'IconVideo',
+ name: 'introVideo',
+ type: 'LINKS',
+ label: 'Intro Video',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.011Z',
+ updatedAt: '2025-03-05T15:41:12.011Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Intro Video",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8a2883df-3e19-4d52-9309-d636767d1b6a',
+ icon: 'IconHome',
+ name: 'workPolicy',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ options: [
+ {
+ id: '4554330a-c3db-4042-b941-c2e299734d12',
+ color: 'green',
+ label: 'On-Site',
+ value: 'ON_SITE',
+ position: 0,
+ },
+ {
+ id: 'abfde6f9-64d5-430a-adb3-bea2f403d9a4',
+ color: 'turquoise',
+ label: 'Hybrid',
+ value: 'HYBRID',
+ position: 1,
+ },
+ {
+ id: '8eaca902-05c5-4087-86c0-30c664c2c4f5',
+ color: 'sky',
+ label: 'Remote Work',
+ value: 'REMOTE_WORK',
+ position: 2,
+ },
+ ],
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.013Z',
+ updatedAt: '2025-03-05T15:41:12.013Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Work Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '26a67635-7d43-47f0-b895-1c8194a7fa30',
+ icon: 'IconBrandVisa',
+ name: 'visaSponsorship',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.014Z',
+ updatedAt: '2025-03-05T15:41:12.014Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Visa Sponsorship Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId:
+ '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ ],
+ isLeaf: true,
+ },
+ isActive: {
+ label: ' Is Active',
+ value: true,
+ isLeaf: true,
+ },
+ isCustom: {
+ label: ' Is Custom',
+ value: false,
+ isLeaf: true,
+ },
+ isRemote: {
+ label: ' Is Remote',
+ value: false,
+ isLeaf: true,
+ },
+ isSystem: {
+ label: ' Is System',
+ value: false,
+ isLeaf: true,
+ },
+ shortcut: {
+ label: ' Shortcut',
+ value: 'C',
+ isLeaf: true,
+ },
+ createdAt: {
+ label: ' Created At',
+ value: '2025-03-05T15:41:09.390Z',
+ isLeaf: true,
+ },
+ updatedAt: {
+ label: ' Updated At',
+ value: '2025-03-05T15:41:09.390Z',
+ isLeaf: true,
+ },
+ namePlural: {
+ label: ' Name Plural',
+ value: 'companies',
+ isLeaf: true,
+ },
+ standardId: {
+ label: ' Standard Id',
+ value: '20202020-b374-4779-a561-80086cb2e17f',
+ isLeaf: true,
+ },
+ description: {
+ label: ' Description',
+ value: 'A company',
+ isLeaf: true,
+ },
+ labelPlural: {
+ label: ' Label Plural',
+ value: 'Companies',
+ isLeaf: true,
+ },
+ workspaceId: {
+ label: ' Workspace Id',
+ value: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ isLeaf: true,
+ },
+ dataSourceId: {
+ label: ' Data Source Id',
+ value: 'f20df2e6-420e-40e0-a4ca-68846bbe6c92',
+ isLeaf: true,
+ },
+ isSearchable: {
+ label: ' Is Searchable',
+ value: true,
+ isLeaf: true,
+ },
+ nameSingular: {
+ label: ' Name Singular',
+ value: 'company',
+ isLeaf: true,
+ },
+ isAuditLogged: {
+ label: ' Is Audit Logged',
+ value: true,
+ isLeaf: true,
+ },
+ labelSingular: {
+ label: ' Label Singular',
+ value: 'Company',
+ isLeaf: true,
+ },
+ targetTableName: {
+ label: ' Target Table Name',
+ value: 'DEPRECATED',
+ isLeaf: true,
+ },
+ duplicateCriteria: {
+ label: ' Duplicate Criteria',
+ value: [['name'], ['domainNamePrimaryLinkUrl']],
+ isLeaf: true,
+ },
+ isLabelSyncedWithName: {
+ label: ' Is Label Synced With Name',
+ value: false,
+ isLeaf: true,
+ },
+ imageIdentifierFieldMetadataId: {
+ label: ' Image Identifier Field Metadata Id',
+ value: null,
+ isLeaf: true,
+ },
+ labelIdentifierFieldMetadataId: {
+ label: ' Label Identifier Field Metadata Id',
+ value: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ 'properties.after': {
+ label: 'Record Fields',
+ value: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ name: {
+ icon: 'IconBuildingSkyscraper',
+ type: 'TEXT',
+ label: 'Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ xLink: {
+ icon: 'IconBrandX',
+ label: 'X',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ address: {
+ icon: 'IconMap',
+ label: 'Address',
+ value: {
+ addressLat: {
+ type: 'NUMERIC',
+ label: ' Address Lat',
+ value: null,
+ isLeaf: true,
+ },
+ addressLng: {
+ type: 'NUMERIC',
+ label: ' Address Lng',
+ value: null,
+ isLeaf: true,
+ },
+ addressCity: {
+ type: 'TEXT',
+ label: ' Address City',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressState: {
+ type: 'TEXT',
+ label: ' Address State',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressCountry: {
+ type: 'TEXT',
+ label: ' Address Country',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressStreet1: {
+ type: 'TEXT',
+ label: ' Address Street1',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressStreet2: {
+ type: 'TEXT',
+ label: ' Address Street2',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressPostcode: {
+ type: 'TEXT',
+ label: ' Address Postcode',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ tagline: {
+ icon: 'IconAdCircle',
+ type: 'TEXT',
+ label: 'Tagline',
+ value: 'My text',
+ isLeaf: true,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ employees: {
+ icon: 'IconUsers',
+ type: 'NUMBER',
+ label: 'Employees',
+ value: 20,
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ domainName: {
+ icon: 'IconLink',
+ label: 'Domain Name',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ introVideo: {
+ icon: 'IconVideo',
+ label: 'Intro Video',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ workPolicy: {
+ icon: 'IconHome',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ value: null,
+ isLeaf: true,
+ },
+ linkedinLink: {
+ icon: 'IconBrandLinkedin',
+ label: 'Linkedin',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ visaSponsorship: {
+ icon: 'IconBrandVisa',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ value: true,
+ isLeaf: true,
+ },
+ idealCustomerProfile: {
+ icon: 'IconTarget',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ value: true,
+ isLeaf: true,
+ },
+ annualRecurringRevenue: {
+ icon: 'IconMoneybag',
+ label: 'ARR',
+ value: {
+ amountMicros: {
+ type: 'NUMERIC',
+ label: ' Amount Micros',
+ value: null,
+ isLeaf: true,
+ },
+ currencyCode: {
+ type: 'TEXT',
+ label: ' Currency Code',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ },
+ object: {
+ icon: 'IconBuildingSkyscraper',
+ label: 'Company',
+ value: 'A company',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'company',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ isLeaf: false,
+ },
+ workspaceMemberId: {
+ type: 'string',
+ label: 'Workspace Member ID',
+ value: '53562519-b9e8-44f1-8dd1-e247cc7ef584',
+ isLeaf: true,
+ },
+ },
+ },
+ },
+ },
+ stepsOutput: {
+ '212a171a-f887-4213-8892-e39c2a3ecc30': {
+ result: {
+ userId: ['20202020', '9e3b', '46d4', 'a556', '88b9ddc2b034'],
+ },
+ },
+ '753b124e-f427-44a4-ab08-bacfe9c2f746': {
+ result: {
+ id: '0455ca41-bae1-4a3a-968c-b268a4e809bb',
+ body: null,
+ title: 'Proposal for ',
+ bodyV2: {
+ markdown: '',
+ blocknote: '',
+ },
+ position: 0,
+ createdAt: '2025-03-06T12:15:43.371Z',
+ createdBy: {
+ name: 'Workflow',
+ source: 'WORKFLOW',
+ context: {},
+ workspaceMemberId: null,
+ },
+ deletedAt: null,
+ updatedAt: '2025-03-06T12:15:43.371Z',
+ searchVector: "'for':2 'proposal':1",
+ },
+ },
+ 'a01b2953-9aa7-4d9a-aded-8e9bafbd6c30': {
+ result: {
+ date: '2025-03-06T12:15:43.358Z',
+ },
+ },
+ 'd4a73172-3156-45bf-bc49-9358fbab2907': {
+ result: {
+ id: 'f76b6058-2c8b-4bfa-86c1-4a4d39de3ee9',
+ name: 'Opportunity with ',
+ stage: 'NEW',
+ amount: {
+ amountMicros: null,
+ currencyCode: '',
+ },
+ position: 0,
+ closeDate: null,
+ companyId: null,
+ createdAt: '2025-03-06T12:15:43.386Z',
+ createdBy: {
+ name: 'Workflow',
+ source: 'WORKFLOW',
+ context: {},
+ workspaceMemberId: null,
+ },
+ deletedAt: null,
+ updatedAt: '2025-03-06T12:15:43.386Z',
+ searchVector: "'opportunity':1 'with':2",
+ pointOfContactId: null,
+ },
+ },
+ },
+ },
+ position: 0,
+ startedAt: '2025-03-06T12:15:43.328Z',
+ status: 'COMPLETED',
+ updatedAt: '2025-03-06T12:15:43.404Z',
+ workflowId: 'f355201d-b1b5-4467-94b9-2a9da4202979',
+ workflowVersionId: '7f3aeb80-b0ce-461b-869c-8b1b1a1c8ca7',
+ createdBy: {
+ __typename: 'Actor',
+ source: 'WORKFLOW',
+ workspaceMemberId: null,
+ name: 'Test Workflow',
+ context: {},
+ },
+ favorites: {
+ __typename: 'FavoriteConnection',
+ edges: [],
+ },
+ timelineActivities: {
+ __typename: 'TimelineActivityConnection',
+ edges: [],
+ },
+ workflowVersion: {
+ __typename: 'WorkflowVersion',
+ createdAt: '2025-03-06T12:15:31.208Z',
+ deletedAt: null,
+ id: '7f3aeb80-b0ce-461b-869c-8b1b1a1c8ca7',
+ name: 'v5',
+ position: 0,
+ status: 'ACTIVE',
+ steps: [
+ {
+ id: '212a171a-f887-4213-8892-e39c2a3ecc30',
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId: 'e031ae6a-5b9e-496b-9a98-ba015f7b5508',
+ serverlessFunctionInput: {
+ userId: '{{trigger.userId}}',
+ },
+ serverlessFunctionVersion: '1',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: 'a01b2953-9aa7-4d9a-aded-8e9bafbd6c30',
+ name: 'Code - Serverless Function',
+ type: 'CODE',
+ valid: false,
+ settings: {
+ input: {
+ serverlessFunctionId: '605efcda-6689-43b3-b24c-2eb76948f523',
+ serverlessFunctionInput: {},
+ serverlessFunctionVersion: '2',
+ },
+ outputSchema: {
+ link: {
+ tab: 'test',
+ icon: 'IconVariable',
+ label: 'Generate Function Output',
+ isLeaf: true,
+ },
+ _outputSchemaType: 'LINK',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: '753b124e-f427-44a4-ab08-bacfe9c2f746',
+ name: 'Create Record',
+ type: 'CREATE_RECORD',
+ valid: false,
+ settings: {
+ input: {
+ objectName: 'note',
+ objectRecord: {
+ title: 'Proposal for {{trigger.properties.after.name}}',
+ },
+ },
+ outputSchema: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ body: {
+ icon: 'IconFilePencil',
+ type: 'RICH_TEXT',
+ label: 'Body (deprecated)',
+ value: 'My rich text',
+ isLeaf: true,
+ },
+ title: {
+ icon: 'IconNotes',
+ type: 'TEXT',
+ label: 'Title',
+ value: 'My text',
+ isLeaf: true,
+ },
+ bodyV2: {
+ icon: 'IconFilePencil',
+ label: 'Body',
+ value: {
+ markdown: {
+ type: 'TEXT',
+ label: ' Markdown',
+ value: 'My text',
+ isLeaf: true,
+ },
+ blocknote: {
+ type: 'TEXT',
+ label: ' Blocknote',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ },
+ object: {
+ icon: 'IconNotes',
+ label: 'Note',
+ value: 'A note',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'note',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ {
+ id: 'd4a73172-3156-45bf-bc49-9358fbab2907',
+ name: 'Create Record',
+ type: 'CREATE_RECORD',
+ valid: false,
+ settings: {
+ input: {
+ objectName: 'opportunity',
+ objectRecord: {
+ name: 'Opportunity with {{trigger.properties.after.name}}',
+ stage: 'NEW',
+ },
+ },
+ outputSchema: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ name: {
+ icon: 'IconTargetArrow',
+ type: 'TEXT',
+ label: 'Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ stage: {
+ icon: 'IconProgressCheck',
+ type: 'SELECT',
+ label: 'Stage',
+ value: null,
+ isLeaf: true,
+ },
+ amount: {
+ icon: 'IconCurrencyDollar',
+ label: 'Amount',
+ value: {
+ amountMicros: {
+ type: 'NUMERIC',
+ label: ' Amount Micros',
+ value: null,
+ isLeaf: true,
+ },
+ currencyCode: {
+ type: 'TEXT',
+ label: ' Currency Code',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ closeDate: {
+ icon: 'IconCalendarEvent',
+ type: 'DATE_TIME',
+ label: 'Close date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ },
+ object: {
+ icon: 'IconTargetArrow',
+ label: 'Opportunity',
+ value: 'An opportunity',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'opportunity',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ errorHandlingOptions: {
+ retryOnFailure: {
+ value: false,
+ },
+ continueOnFailure: {
+ value: false,
+ },
+ },
+ },
+ },
+ ],
+ trigger: {
+ type: 'DATABASE_EVENT',
+ settings: {
+ eventName: 'company.created',
+ outputSchema: {
+ userId: {
+ type: 'string',
+ label: 'User ID',
+ value: '977a8fb6-1b97-4203-a64b-5d3e12f8587c',
+ isLeaf: true,
+ },
+ recordId: {
+ type: 'string',
+ label: 'Record ID',
+ value: '80d61929-1860-4f37-a639-b406a67f7800',
+ isLeaf: true,
+ },
+ objectMetadata: {
+ label: 'Object Metadata',
+ value: {
+ id: {
+ label: ' Id',
+ value: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLeaf: true,
+ },
+ icon: {
+ label: ' Icon',
+ value: 'IconBuildingSkyscraper',
+ isLeaf: true,
+ },
+ fields: {
+ label: ' Fields',
+ value: [
+ {
+ id: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ icon: 'IconBuildingSkyscraper',
+ name: 'name',
+ type: 'TEXT',
+ label: 'Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-4d99-4e2e-a84c-4a27837b1ece',
+ description: 'The company name',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'dbc86e47-d2cf-4094-9a57-90212efde6a0',
+ icon: 'IconLink',
+ name: 'domainName',
+ type: 'LINKS',
+ label: 'Domain Name',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: true,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-0c28-43d8-8ba5-3659924d3489',
+ description:
+ 'The company website URL. We use this url to fetch the company icon',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c750e2c6-3de6-4c18-9876-6ba5ba970d42',
+ icon: 'IconUsers',
+ name: 'employees',
+ type: 'NUMBER',
+ label: 'Employees',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-8965-464a-8a75-74bafc152a0b',
+ description: 'Number of employees in the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a4230bd8-66ec-4f2f-810b-1d02f9709bfa',
+ icon: 'IconBrandLinkedin',
+ name: 'linkedinLink',
+ type: 'LINKS',
+ label: 'Linkedin',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-ebeb-4beb-b9ad-6848036fb451',
+ description: 'The company Linkedin account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '5fc216dc-7af4-4927-a026-0e5144afa436',
+ icon: 'IconBrandX',
+ name: 'xLink',
+ type: 'LINKS',
+ label: 'X',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-6f64-4fd9-9580-9c1991c7d8c3',
+ description: 'The company Twitter/X account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'fba56220-3f40-4569-a500-35a4a312e473',
+ icon: 'IconMoneybag',
+ name: 'annualRecurringRevenue',
+ type: 'CURRENCY',
+ label: 'ARR',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-602a-495c-9776-f5d5b11d227b',
+ description:
+ 'Annual Recurring Revenue: The actual or estimated annual revenue of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ amountMicros: null,
+ currencyCode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0b32256a-1bd2-40e1-98e0-74b400452aab',
+ icon: 'IconMap',
+ name: 'address',
+ type: 'ADDRESS',
+ label: 'Address',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c5ce-4adc-b7b6-9c0979fc55e7',
+ description: 'Address of the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ addressLat: null,
+ addressLng: null,
+ addressCity: "''",
+ addressState: "''",
+ addressCountry: "''",
+ addressStreet1: "''",
+ addressStreet2: "''",
+ addressPostcode: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '214a5118-3ab5-4d2a-ac89-020f776831b3',
+ icon: 'IconTarget',
+ name: 'idealCustomerProfile',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-ba6b-438a-8213-2c5ba28d76a2',
+ description:
+ 'Ideal Customer Profile: Indicates whether the company is the most suitable and valuable customer for you',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'b66efff8-c0ef-4cb6-a5f1-3ea7fd0bfbb4',
+ icon: 'IconHierarchy2',
+ name: 'position',
+ type: 'POSITION',
+ label: 'Position',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-9b4e-462b-991d-a0ee33326454',
+ description: 'Company record position',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 0,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '943f218e-6061-4f61-ac3a-298ac14cef41',
+ icon: 'IconCreativeCommonsSa',
+ name: 'createdBy',
+ type: 'ACTOR',
+ label: 'Created by',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-fabc-451d-ab7d-412170916baa',
+ description: 'The creator of the record',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ name: "'System'",
+ source: "'MANUAL'",
+ context: {},
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8b1e9e2c-684f-4e9e-9bdf-e1f705f8ca03',
+ icon: 'IconUser',
+ name: 'searchVector',
+ type: 'TS_VECTOR',
+ label: 'Search vector',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '85c71601-72f9-4b7b-b343-d46100b2c74d',
+ description: 'Field used for full-text search',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '593dd556-69ab-4df7-aa2e-ab5e20eb7977',
+ icon: 'Icon123',
+ name: 'id',
+ type: 'UUID',
+ label: 'Id',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-eda0-4cee-9577-3eb357e3c22b',
+ description: 'Id',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'uuid',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4ebb7bb9-d451-4433-880d-32cd3f3744df',
+ icon: 'IconCalendar',
+ name: 'createdAt',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-66ac-4502-9975-e4d959c50311',
+ description: 'Creation date',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '39526b16-7d21-4a91-a70c-bca108b27989',
+ icon: 'IconCalendarClock',
+ name: 'updatedAt',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: false,
+ standardId: '20202020-d767-4622-bdcf-d8a084834d86',
+ description: 'Last time the record was changed',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: 'now',
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '55e17b77-84f7-4b8a-bef5-be65f783d9f8',
+ icon: 'IconCalendarMinus',
+ name: 'deletedAt',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: {
+ displayAsRelativeDate: true,
+ },
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-b9a7-48d8-8387-b9a3090a50ec',
+ description: 'Date when the record was deleted',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '11a04849-150b-4af0-9332-b4a9ba693b17',
+ icon: 'IconUsers',
+ name: 'people',
+ type: 'RELATION',
+ label: 'People',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-3213-4ddf-9494-6422bcff8d7c',
+ description: 'People linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'a6f9558c-76df-49d1-9011-16f2f3b8dbe2',
+ icon: 'IconUserCircle',
+ name: 'accountOwnerId',
+ type: 'UUID',
+ label: 'Account Owner id (foreign key)',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cce0-424e-8028-91f50eb9c768',
+ description:
+ 'Your team member responsible for managing the company account id foreign key',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '20e60c1f-2dd8-4f1f-a1eb-b4c179cbcd4a',
+ icon: 'IconUserCircle',
+ name: 'accountOwner',
+ type: 'RELATION',
+ label: 'Account Owner',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-95b8-4e10-9881-edb5d4765f9d',
+ description:
+ 'Your team member responsible for managing the company account',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: 'c0d5849e-f4cd-4f40-81ff-5c8c82e49c07',
+ icon: 'IconCheckbox',
+ name: 'taskTargets',
+ type: 'RELATION',
+ label: 'Tasks',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-cb17-4a61-8f8f-3be6730480de',
+ description: 'Tasks tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7dd1b1ac-9765-423e-ac74-050b2b730885',
+ icon: 'IconNotes',
+ name: 'noteTargets',
+ type: 'RELATION',
+ label: 'Notes',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-bae0-4556-a74a-a9c686f77a88',
+ description: 'Notes tied to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '7524cc63-2522-4c70-8b12-21fe2fe8de26',
+ icon: 'IconTargetArrow',
+ name: 'opportunities',
+ type: 'RELATION',
+ label: 'Opportunities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-add3-4658-8e23-d70dccb6d0ec',
+ description: 'Opportunities linked to the company.',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '45b5decf-cd19-4a2e-a321-b0c7ad3c1407',
+ icon: 'IconHeart',
+ name: 'favorites',
+ type: 'RELATION',
+ label: 'Favorites',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-4d1d-41ac-b13b-621631298d55',
+ description: 'Favorites linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '0ae7a621-f443-47f7-b255-82d2e589ca21',
+ icon: 'IconFileImport',
+ name: 'attachments',
+ type: 'RELATION',
+ label: 'Attachments',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-c1b5-4120-b0f0-987ca401ed53',
+ description: 'Attachments linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '038ca1af-7f15-460d-b111-b71062a8a6be',
+ icon: 'IconIconTimelineEvent',
+ name: 'timelineActivities',
+ type: 'RELATION',
+ label: 'Timeline Activities',
+ options: null,
+ isActive: true,
+ isCustom: false,
+ isSystem: true,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:09.390Z',
+ updatedAt: '2025-03-05T15:41:09.390Z',
+ isNullable: true,
+ standardId: '20202020-0414-4daf-9c0d-64fe7b27f89f',
+ description: 'Timeline Activities linked to the company',
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '4f069436-1c42-4ec4-8dda-6b22011fc75a',
+ icon: 'IconAdCircle',
+ name: 'tagline',
+ type: 'TEXT',
+ label: 'Tagline',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.009Z',
+ updatedAt: '2025-03-05T15:41:12.009Z',
+ isNullable: false,
+ standardId: null,
+ description: "Company's Tagline",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: "''",
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '49e40a03-3f21-49d5-b03a-439bbc9ab73b',
+ icon: 'IconVideo',
+ name: 'introVideo',
+ type: 'LINKS',
+ label: 'Intro Video',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.011Z',
+ updatedAt: '2025-03-05T15:41:12.011Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Intro Video",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: {
+ primaryLinkUrl: "''",
+ secondaryLinks: "'[]'",
+ primaryLinkLabel: "''",
+ },
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '8a2883df-3e19-4d52-9309-d636767d1b6a',
+ icon: 'IconHome',
+ name: 'workPolicy',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ options: [
+ {
+ id: '4554330a-c3db-4042-b941-c2e299734d12',
+ color: 'green',
+ label: 'On-Site',
+ value: 'ON_SITE',
+ position: 0,
+ },
+ {
+ id: 'abfde6f9-64d5-430a-adb3-bea2f403d9a4',
+ color: 'turquoise',
+ label: 'Hybrid',
+ value: 'HYBRID',
+ position: 1,
+ },
+ {
+ id: '8eaca902-05c5-4087-86c0-30c664c2c4f5',
+ color: 'sky',
+ label: 'Remote Work',
+ value: 'REMOTE_WORK',
+ position: 2,
+ },
+ ],
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.013Z',
+ updatedAt: '2025-03-05T15:41:12.013Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Work Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: null,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ {
+ id: '26a67635-7d43-47f0-b895-1c8194a7fa30',
+ icon: 'IconBrandVisa',
+ name: 'visaSponsorship',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ options: null,
+ isActive: true,
+ isCustom: true,
+ isSystem: false,
+ isUnique: false,
+ settings: null,
+ createdAt: '2025-03-05T15:41:12.014Z',
+ updatedAt: '2025-03-05T15:41:12.014Z',
+ isNullable: true,
+ standardId: null,
+ description: "Company's Visa Sponsorship Policy",
+ workspaceId: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ defaultValue: false,
+ objectMetadataId: '685ac06e-2351-421c-97ac-0bf4595819b8',
+ isLabelSyncedWithName: false,
+ relationTargetFieldMetadataId: null,
+ relationTargetObjectMetadataId: null,
+ },
+ ],
+ isLeaf: true,
+ },
+ isActive: {
+ label: ' Is Active',
+ value: true,
+ isLeaf: true,
+ },
+ isCustom: {
+ label: ' Is Custom',
+ value: false,
+ isLeaf: true,
+ },
+ isRemote: {
+ label: ' Is Remote',
+ value: false,
+ isLeaf: true,
+ },
+ isSystem: {
+ label: ' Is System',
+ value: false,
+ isLeaf: true,
+ },
+ shortcut: {
+ label: ' Shortcut',
+ value: 'C',
+ isLeaf: true,
+ },
+ createdAt: {
+ label: ' Created At',
+ value: '2025-03-05T15:41:09.390Z',
+ isLeaf: true,
+ },
+ updatedAt: {
+ label: ' Updated At',
+ value: '2025-03-05T15:41:09.390Z',
+ isLeaf: true,
+ },
+ namePlural: {
+ label: ' Name Plural',
+ value: 'companies',
+ isLeaf: true,
+ },
+ standardId: {
+ label: ' Standard Id',
+ value: '20202020-b374-4779-a561-80086cb2e17f',
+ isLeaf: true,
+ },
+ description: {
+ label: ' Description',
+ value: 'A company',
+ isLeaf: true,
+ },
+ labelPlural: {
+ label: ' Label Plural',
+ value: 'Companies',
+ isLeaf: true,
+ },
+ workspaceId: {
+ label: ' Workspace Id',
+ value: '20202020-1c25-4d02-bf25-6aeccf7ea419',
+ isLeaf: true,
+ },
+ dataSourceId: {
+ label: ' Data Source Id',
+ value: 'f20df2e6-420e-40e0-a4ca-68846bbe6c92',
+ isLeaf: true,
+ },
+ isSearchable: {
+ label: ' Is Searchable',
+ value: true,
+ isLeaf: true,
+ },
+ nameSingular: {
+ label: ' Name Singular',
+ value: 'company',
+ isLeaf: true,
+ },
+ isAuditLogged: {
+ label: ' Is Audit Logged',
+ value: true,
+ isLeaf: true,
+ },
+ labelSingular: {
+ label: ' Label Singular',
+ value: 'Company',
+ isLeaf: true,
+ },
+ targetTableName: {
+ label: ' Target Table Name',
+ value: 'DEPRECATED',
+ isLeaf: true,
+ },
+ duplicateCriteria: {
+ label: ' Duplicate Criteria',
+ value: [['name'], ['domainNamePrimaryLinkUrl']],
+ isLeaf: true,
+ },
+ isLabelSyncedWithName: {
+ label: ' Is Label Synced With Name',
+ value: false,
+ isLeaf: true,
+ },
+ imageIdentifierFieldMetadataId: {
+ label: ' Image Identifier Field Metadata Id',
+ value: null,
+ isLeaf: true,
+ },
+ labelIdentifierFieldMetadataId: {
+ label: ' Label Identifier Field Metadata Id',
+ value: 'c6e6cf7d-63af-4131-9f99-ce0f74fd7d10',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ 'properties.after': {
+ label: 'Record Fields',
+ value: {
+ fields: {
+ id: {
+ icon: 'Icon123',
+ type: 'UUID',
+ label: 'Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ name: {
+ icon: 'IconBuildingSkyscraper',
+ type: 'TEXT',
+ label: 'Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ xLink: {
+ icon: 'IconBrandX',
+ label: 'X',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ address: {
+ icon: 'IconMap',
+ label: 'Address',
+ value: {
+ addressLat: {
+ type: 'NUMERIC',
+ label: ' Address Lat',
+ value: null,
+ isLeaf: true,
+ },
+ addressLng: {
+ type: 'NUMERIC',
+ label: ' Address Lng',
+ value: null,
+ isLeaf: true,
+ },
+ addressCity: {
+ type: 'TEXT',
+ label: ' Address City',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressState: {
+ type: 'TEXT',
+ label: ' Address State',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressCountry: {
+ type: 'TEXT',
+ label: ' Address Country',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressStreet1: {
+ type: 'TEXT',
+ label: ' Address Street1',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressStreet2: {
+ type: 'TEXT',
+ label: ' Address Street2',
+ value: 'My text',
+ isLeaf: true,
+ },
+ addressPostcode: {
+ type: 'TEXT',
+ label: ' Address Postcode',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ tagline: {
+ icon: 'IconAdCircle',
+ type: 'TEXT',
+ label: 'Tagline',
+ value: 'My text',
+ isLeaf: true,
+ },
+ createdAt: {
+ icon: 'IconCalendar',
+ type: 'DATE_TIME',
+ label: 'Creation date',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ createdBy: {
+ icon: 'IconCreativeCommonsSa',
+ label: 'Created by',
+ value: {
+ name: {
+ type: 'TEXT',
+ label: ' Name',
+ value: 'My text',
+ isLeaf: true,
+ },
+ source: {
+ type: 'SELECT',
+ label: ' Source',
+ value: null,
+ isLeaf: true,
+ },
+ context: {
+ type: 'RAW_JSON',
+ label: ' Context',
+ value: null,
+ isLeaf: true,
+ },
+ workspaceMemberId: {
+ type: 'UUID',
+ label: ' Workspace Member Id',
+ value: '123e4567-e89b-12d3-a456-426614174000',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ deletedAt: {
+ icon: 'IconCalendarMinus',
+ type: 'DATE_TIME',
+ label: 'Deleted at',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ employees: {
+ icon: 'IconUsers',
+ type: 'NUMBER',
+ label: 'Employees',
+ value: 20,
+ isLeaf: true,
+ },
+ updatedAt: {
+ icon: 'IconCalendarClock',
+ type: 'DATE_TIME',
+ label: 'Last update',
+ value: '01/23/2025 15:16',
+ isLeaf: true,
+ },
+ domainName: {
+ icon: 'IconLink',
+ label: 'Domain Name',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ introVideo: {
+ icon: 'IconVideo',
+ label: 'Intro Video',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ workPolicy: {
+ icon: 'IconHome',
+ type: 'MULTI_SELECT',
+ label: 'Work Policy',
+ value: null,
+ isLeaf: true,
+ },
+ linkedinLink: {
+ icon: 'IconBrandLinkedin',
+ label: 'Linkedin',
+ value: {
+ primaryLinkUrl: {
+ type: 'TEXT',
+ label: ' Primary Link Url',
+ value: 'My text',
+ isLeaf: true,
+ },
+ secondaryLinks: {
+ type: 'RAW_JSON',
+ label: ' Secondary Links',
+ value: null,
+ isLeaf: true,
+ },
+ primaryLinkLabel: {
+ type: 'TEXT',
+ label: ' Primary Link Label',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ visaSponsorship: {
+ icon: 'IconBrandVisa',
+ type: 'BOOLEAN',
+ label: 'Visa Sponsorship',
+ value: true,
+ isLeaf: true,
+ },
+ idealCustomerProfile: {
+ icon: 'IconTarget',
+ type: 'BOOLEAN',
+ label: 'ICP',
+ value: true,
+ isLeaf: true,
+ },
+ annualRecurringRevenue: {
+ icon: 'IconMoneybag',
+ label: 'ARR',
+ value: {
+ amountMicros: {
+ type: 'NUMERIC',
+ label: ' Amount Micros',
+ value: null,
+ isLeaf: true,
+ },
+ currencyCode: {
+ type: 'TEXT',
+ label: ' Currency Code',
+ value: 'My text',
+ isLeaf: true,
+ },
+ },
+ isLeaf: false,
+ },
+ },
+ object: {
+ icon: 'IconBuildingSkyscraper',
+ label: 'Company',
+ value: 'A company',
+ isLeaf: true,
+ fieldIdName: 'id',
+ nameSingular: 'company',
+ },
+ _outputSchemaType: 'RECORD',
+ },
+ isLeaf: false,
+ },
+ workspaceMemberId: {
+ type: 'string',
+ label: 'Workspace Member ID',
+ value: '53562519-b9e8-44f1-8dd1-e247cc7ef584',
+ isLeaf: true,
+ },
+ },
+ },
+ },
+ updatedAt: '2025-03-06T12:15:33.862Z',
+ workflowId: 'f355201d-b1b5-4467-94b9-2a9da4202979',
+ },
+ workflow: {
+ __typename: 'Workflow',
+ createdAt: '2025-03-05T15:43:13.971Z',
+ deletedAt: null,
+ id: 'f355201d-b1b5-4467-94b9-2a9da4202979',
+ lastPublishedVersionId: '7f3aeb80-b0ce-461b-869c-8b1b1a1c8ca7',
+ name: 'Test Workflow',
+ position: 1,
+ statuses: ['ACTIVE'],
+ updatedAt: '2025-03-06T12:15:33.864Z',
+ createdBy: {
+ __typename: 'Actor',
+ source: 'MANUAL',
+ workspaceMemberId: '20202020-0687-4c41-b707-ed1bfca972a7',
+ name: 'Tim Apple',
+ context: {},
+ },
+ },
+ },
+} satisfies { workflowRun: WorkflowRun };